Skip to content

Commit e567321

Browse files
authored
add material symbols icons (#759)
* Add material symbols icon dependecy --------- Signed-off-by: souissimai <[email protected]>
1 parent 5ded2e0 commit e567321

File tree

6 files changed

+63
-0
lines changed

6 files changed

+63
-0
lines changed

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"dependencies": {
3737
"@ag-grid-community/locale": "^33.1.0",
3838
"@hello-pangea/dnd": "^18.0.1",
39+
"@material-symbols/svg-400": "^0.31.2",
3940
"@react-querybuilder/dnd": "^8.2.0",
4041
"@react-querybuilder/material": "^8.2.0",
4142
"autosuggest-highlight": "^3.3.4",
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
import LeftPanelClose from '@material-symbols/svg-400/outlined/left_panel_close.svg?react';
9+
import { useTheme } from '@mui/material';
10+
11+
export function LeftPanelCloseIcon() {
12+
const theme = useTheme();
13+
14+
return (
15+
<LeftPanelClose
16+
style={{
17+
width: 24,
18+
height: 24,
19+
fill: theme.palette.text.primary,
20+
}}
21+
/>
22+
);
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
import LeftPanelOpen from '@material-symbols/svg-400/outlined/left_panel_open.svg?react';
9+
import { useTheme } from '@mui/material';
10+
11+
export function LeftPanelOpenIcon() {
12+
const theme = useTheme();
13+
14+
return (
15+
<LeftPanelOpen
16+
style={{
17+
width: 24,
18+
height: 24,
19+
fill: theme.palette.text.primary,
20+
}}
21+
/>
22+
);
23+
}

src/components/icons/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
export { LeftPanelOpenIcon } from './LeftPanelOpenIcon';
8+
export { LeftPanelCloseIcon } from './LeftPanelCloseIcon';

src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ export * from './snackbarProvider';
2020
export * from './topBar';
2121
export * from './treeViewFinder';
2222
export * from './notifications';
23+
export * from './icons';

0 commit comments

Comments
 (0)