Skip to content

Commit 85063f4

Browse files
ECHOES-1037 Create IconVisibility.tsx and IconVisibilityOff.tsx
1 parent 2d25ac8 commit 85063f4

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Echoes React
3+
* Copyright (C) 2023-2025 SonarSource Sàrl
4+
* mailto:info AT sonarsource DOT com
5+
*
6+
* This program is free software; you can redistribute it and/or
7+
* modify it under the terms of the GNU Lesser General Public
8+
* License as published by the Free Software Foundation; either
9+
* version 3 of the License, or (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
* Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with this program; if not, write to the Free Software Foundation,
18+
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
*/
20+
21+
import { forwardRef } from 'react';
22+
import { IconMaterialWrapper, IconProps } from './IconWrapper';
23+
24+
export const IconVisibility = forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
25+
// This is Material Symbols' "visibility" icon
26+
return (
27+
<IconMaterialWrapper {...props} ref={ref}>
28+
&#xE8F4;
29+
</IconMaterialWrapper>
30+
);
31+
});
32+
IconVisibility.displayName = 'IconVisibility';
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Echoes React
3+
* Copyright (C) 2023-2025 SonarSource Sàrl
4+
* mailto:info AT sonarsource DOT com
5+
*
6+
* This program is free software; you can redistribute it and/or
7+
* modify it under the terms of the GNU Lesser General Public
8+
* License as published by the Free Software Foundation; either
9+
* version 3 of the License, or (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
* Lesser General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU Lesser General Public License
17+
* along with this program; if not, write to the Free Software Foundation,
18+
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19+
*/
20+
21+
import { forwardRef } from 'react';
22+
import { IconMaterialWrapper, IconProps } from './IconWrapper';
23+
24+
export const IconVisibilityOff = forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
25+
// This is Material Symbols' "visibility_off" icon
26+
return (
27+
<IconMaterialWrapper {...props} ref={ref}>
28+
&#xE8F5;
29+
</IconMaterialWrapper>
30+
);
31+
});
32+
IconVisibilityOff.displayName = 'IconVisibilityOff';

src/components/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ export { IconTriangleUp } from './IconTriangleUp';
134134
export { IconUnfold } from './IconUnfold';
135135
export { IconUnfoldDown } from './IconUnfoldDown';
136136
export { IconUnfoldUp } from './IconUnfoldUp';
137+
export { IconVisibility } from './IconVisibility';
138+
export { IconVisibilityOff } from './IconVisibilityOff';
137139
export { IconVulnerability } from './IconVulnerability';
138140
export { IconWarning } from './IconWarning';
139141
export { IconX } from './IconX';
576 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)