@m4l/components 0.2.24 → 0.2.25

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.
@@ -2,7 +2,7 @@ import React__default, { useState, useRef, useCallback, useEffect, useMemo } fro
2
2
  import { D as DraggableCore_1 } from "../../react-draggable.ee21cb7e.js";
3
3
  import clsx from "clsx";
4
4
  import { styled } from "@mui/material/styles";
5
- import { M as MAP_ZINDEX_OVER_MAP } from "../../vendor.2c881bac.js";
5
+ import { M as MAP_ZINDEX_OVER_MAP } from "../../vendor.a735310a.js";
6
6
  import { generateUtilityClasses } from "@mui/material";
7
7
  import "@mui/base";
8
8
  import { M as MAP_ZINDEX_OVER_MAP$1 } from "../PopupsProvider/index.3d5ad0ee.js";
@@ -110,7 +110,8 @@ const NavItemRoot = (props) => {
110
110
  const {
111
111
  title,
112
112
  children,
113
- module_id
113
+ module_id,
114
+ icon_url
114
115
  } = itemRootData;
115
116
  const [anchorEl, setAnchorEl] = useState(null);
116
117
  const [openedPopoverId, setOpenedPopoverId] = useState(null);
@@ -180,6 +181,9 @@ const NavItemRoot = (props) => {
180
181
  size: "medium",
181
182
  variant: "text",
182
183
  href: itemRootData.path,
184
+ startIcon: /* @__PURE__ */ jsx(Icon, {
185
+ src: `${icon_url}`
186
+ }),
183
187
  children: title
184
188
  }), /* @__PURE__ */ jsx(Button, {
185
189
  variant: "text",
@@ -187,6 +191,9 @@ const NavItemRoot = (props) => {
187
191
  onClick: (e) => handleClick(e, module_id),
188
192
  endIcon: /* @__PURE__ */ jsx(ArrowIcon, {
189
193
  openState: openedPopoverId === module_id ? true : false
194
+ }),
195
+ startIcon: /* @__PURE__ */ jsx(Icon, {
196
+ src: `${icon_url}`
190
197
  })
191
198
  }), renderPopover()]
192
199
  });
@@ -205,6 +212,9 @@ const NavItemRoot = (props) => {
205
212
  endIcon: /* @__PURE__ */ jsx(ArrowIcon, {
206
213
  openState: openedPopoverId === module_id ? true : false
207
214
  }),
215
+ startIcon: /* @__PURE__ */ jsx(Icon, {
216
+ src: `${icon_url}`
217
+ }),
208
218
  children: title
209
219
  }), renderPopover()]
210
220
  });
@@ -215,6 +225,9 @@ const NavItemRoot = (props) => {
215
225
  size: "medium",
216
226
  href: itemRootData.path,
217
227
  "aria-describedby": module_id,
228
+ startIcon: /* @__PURE__ */ jsx(Icon, {
229
+ src: `${icon_url}`
230
+ }),
218
231
  children: /* @__PURE__ */ jsx("div", {
219
232
  children: title
220
233
  })
package/index.js CHANGED
@@ -74,7 +74,7 @@ import { A as A9 } from "./components/CommonActions/components/ActionCancel/inde
74
74
  import { A as A10 } from "./components/CommonActions/components/ActionIntro/index.79fc2386.js";
75
75
  import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index.3fd5c858.js";
76
76
  import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index.07394f62.js";
77
- import { D as D5, d as d4 } from "./components/DragResizeWindow/index.62b6a916.js";
77
+ import { D as D5, d as d4 } from "./components/DragResizeWindow/index.051c743d.js";
78
78
  import { G, w, A as A13 } from "./components/GridLayout/index.0996cd19.js";
79
79
  import { R as R12, a as a8, b as b6, c as c5 } from "./components/GridLayout/subcomponents/Responsive/index.0fd1b7f8.js";
80
80
  import { w as w2 } from "./components/GridLayout/subcomponents/SizeProvider/index.7669a2cd.js";
@@ -105,8 +105,8 @@ import { A as A14, g as g20 } from "./components/AppBar/index.7106417d.js";
105
105
  import { A as A15, g as g21 } from "./components/AccountPopover/index.505e278a.js";
106
106
  import { A as A16 } from "./components/commercial/AppBarCommercial/index.c5022fdd.js";
107
107
  import { H as H3 } from "./components/HamburgerMenu/index.25029e23.js";
108
- import { T as T8 } from "./components/commercial/TopBar/index.1a73fecb.js";
109
- import { S as S6 } from "./vendor.2c881bac.js";
108
+ import { T as T8 } from "./components/commercial/TopBar/index.8e2163f7.js";
109
+ import { S as S6 } from "./vendor.a735310a.js";
110
110
  import { R as R14, g as g22 } from "./contexts/RHFormContext/index.7769076a.js";
111
111
  import { M as M7, a as a10 } from "./contexts/ModalContext/index.978a412d.js";
112
112
  import { g as g23, u as u3 } from "./hooks/useFormAddEdit/index.4caddd24.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.9.0",
@@ -74,7 +74,7 @@ import "./components/CommonActions/components/ActionCancel/index.de862adf.js";
74
74
  import "./components/CommonActions/components/ActionIntro/index.79fc2386.js";
75
75
  import "./components/CommonActions/components/ActionFormCancel/index.3fd5c858.js";
76
76
  import "./components/CommonActions/components/ActionFormIntro/index.07394f62.js";
77
- import "./components/DragResizeWindow/index.62b6a916.js";
77
+ import "./components/DragResizeWindow/index.051c743d.js";
78
78
  import "./components/GridLayout/index.0996cd19.js";
79
79
  import "./components/GridLayout/subcomponents/Responsive/index.0fd1b7f8.js";
80
80
  import "./components/GridLayout/subcomponents/SizeProvider/index.7669a2cd.js";
@@ -105,7 +105,7 @@ import "./components/AppBar/index.7106417d.js";
105
105
  import "./components/AccountPopover/index.505e278a.js";
106
106
  import "./components/commercial/AppBarCommercial/index.c5022fdd.js";
107
107
  import "./components/HamburgerMenu/index.25029e23.js";
108
- import "./components/commercial/TopBar/index.1a73fecb.js";
108
+ import "./components/commercial/TopBar/index.8e2163f7.js";
109
109
  import { generateUtilityClasses, styled } from "@mui/material";
110
110
  import { unstable_composeClasses } from "@mui/base";
111
111
  import { g as getComponentUtilityClass } from "./utils/index.de903261.js";