@gridsuite/commons-ui 0.92.1 → 0.92.2

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.
@@ -1,8 +1,7 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState } from "react";
3
3
  import { Box } from "@mui/material";
4
- import CloseIcon from "@mui/icons-material/Close";
5
- import WarningAmberIcon from "@mui/icons-material/WarningAmber";
4
+ import { WarningAmber, Close } from "@mui/icons-material";
6
5
  const styles = {
7
6
  banner: (theme) => ({
8
7
  left: 0,
@@ -45,9 +44,9 @@ const styles = {
45
44
  function MessageBanner({ children }) {
46
45
  const [visible, setVisible] = useState(true);
47
46
  return visible && /* @__PURE__ */ jsxs(Box, { sx: styles.banner, children: [
48
- /* @__PURE__ */ jsx(Box, { sx: styles.icon, children: /* @__PURE__ */ jsx(WarningAmberIcon, {}) }),
47
+ /* @__PURE__ */ jsx(Box, { sx: styles.icon, children: /* @__PURE__ */ jsx(WarningAmber, {}) }),
49
48
  /* @__PURE__ */ jsx(Box, { sx: styles.message, children }),
50
- /* @__PURE__ */ jsx(Box, { sx: styles.button, onClick: () => setVisible(false), children: /* @__PURE__ */ jsx(CloseIcon, {}) })
49
+ /* @__PURE__ */ jsx(Box, { sx: styles.button, onClick: () => setVisible(false), children: /* @__PURE__ */ jsx(Close, {}) })
51
50
  ] });
52
51
  }
53
52
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.92.1",
3
+ "version": "0.92.2",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",