@gridsuite/commons-ui 0.95.0 → 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
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 declare function LeftPanelCloseIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import LeftPanelClose from "@material-symbols/svg-400/outlined/left_panel_close.svg?react";
3
+ import { useTheme } from "@mui/material";
4
+ function LeftPanelCloseIcon() {
5
+ const theme = useTheme();
6
+ return /* @__PURE__ */ jsx(
7
+ LeftPanelClose,
8
+ {
9
+ style: {
10
+ width: 24,
11
+ height: 24,
12
+ fill: theme.palette.text.primary
13
+ }
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ LeftPanelCloseIcon
19
+ };
@@ -0,0 +1,7 @@
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 declare function LeftPanelOpenIcon(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import LeftPanelOpen from "@material-symbols/svg-400/outlined/left_panel_open.svg?react";
3
+ import { useTheme } from "@mui/material";
4
+ function LeftPanelOpenIcon() {
5
+ const theme = useTheme();
6
+ return /* @__PURE__ */ jsx(
7
+ LeftPanelOpen,
8
+ {
9
+ style: {
10
+ width: 24,
11
+ height: 24,
12
+ fill: theme.palette.text.primary
13
+ }
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ LeftPanelOpenIcon
19
+ };
@@ -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';
@@ -0,0 +1,6 @@
1
+ import { LeftPanelOpenIcon } from "./LeftPanelOpenIcon.js";
2
+ import { LeftPanelCloseIcon } from "./LeftPanelCloseIcon.js";
3
+ export {
4
+ LeftPanelCloseIcon,
5
+ LeftPanelOpenIcon
6
+ };
@@ -20,3 +20,4 @@ export * from './snackbarProvider';
20
20
  export * from './topBar';
21
21
  export * from './treeViewFinder';
22
22
  export * from './notifications';
23
+ export * from './icons';
@@ -105,6 +105,8 @@ import { NotificationsProvider } from "./notifications/NotificationsProvider.js"
105
105
  import { NotificationsContext } from "./notifications/contexts/NotificationsContext.js";
106
106
  import { useNotificationsListener } from "./notifications/hooks/useNotificationsListener.js";
107
107
  import { useListenerManager } from "./notifications/hooks/useListenerManager.js";
108
+ import { LeftPanelOpenIcon } from "./icons/LeftPanelOpenIcon.js";
109
+ import { LeftPanelCloseIcon } from "./icons/LeftPanelCloseIcon.js";
108
110
  export {
109
111
  AboutDialog,
110
112
  ActivableChip,
@@ -175,6 +177,8 @@ export {
175
177
  InputWithPopupConfirmation,
176
178
  IntegerInput,
177
179
  LOAD_TYPE_OPTIONS,
180
+ LeftPanelCloseIcon,
181
+ LeftPanelOpenIcon,
178
182
  Login,
179
183
  LogoText,
180
184
  Logout,
package/dist/index.js CHANGED
@@ -106,6 +106,8 @@ import { NotificationsProvider } from "./components/notifications/NotificationsP
106
106
  import { NotificationsContext } from "./components/notifications/contexts/NotificationsContext.js";
107
107
  import { useNotificationsListener } from "./components/notifications/hooks/useNotificationsListener.js";
108
108
  import { useListenerManager } from "./components/notifications/hooks/useListenerManager.js";
109
+ import { LeftPanelOpenIcon } from "./components/icons/LeftPanelOpenIcon.js";
110
+ import { LeftPanelCloseIcon } from "./components/icons/LeftPanelCloseIcon.js";
109
111
  import { useStateBoolean } from "./hooks/customStates/useStateBoolean.js";
110
112
  import { useStateNumber } from "./hooks/customStates/useStateNumber.js";
111
113
  import { useModificationLabelComputer } from "./hooks/useModificationLabelComputer.js";
@@ -284,6 +286,8 @@ export {
284
286
  LIGHT_THEME,
285
287
  LOAD_TYPE_OPTIONS,
286
288
  LOGOUT_ERROR,
289
+ LeftPanelCloseIcon,
290
+ LeftPanelOpenIcon,
287
291
  Line,
288
292
  Load,
289
293
  Login,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.95.0",
3
+ "version": "0.96.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",
@@ -36,6 +36,7 @@
36
36
  "dependencies": {
37
37
  "@ag-grid-community/locale": "^33.1.0",
38
38
  "@hello-pangea/dnd": "^18.0.1",
39
+ "@material-symbols/svg-400": "^0.31.2",
39
40
  "@react-querybuilder/dnd": "^8.2.0",
40
41
  "@react-querybuilder/material": "^8.2.0",
41
42
  "autosuggest-highlight": "^3.3.4",