@smart-factor/gem-ui-components 0.0.113 → 0.0.115

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.
Files changed (35) hide show
  1. package/dist/{Drawer-CR1frcWF.js → Drawer-DbJg-t8M.js} +50 -50
  2. package/dist/SignEditor.js +10186 -10573
  3. package/dist/{Stack-CP81SpOh.js → Stack-Bsa5WF4E.js} +50 -49
  4. package/dist/{Tree-6R0L5vqg.js → Tree-BScJ4KG_.js} +782 -1103
  5. package/dist/components/Drawer/index.js +1 -1
  6. package/dist/components/Login/AppVersion.d.ts +2 -0
  7. package/dist/components/Login/Login.d.ts +7 -0
  8. package/dist/components/Login/Login.stories.d.ts +7 -0
  9. package/dist/components/Login/Login.styles.d.ts +24 -0
  10. package/dist/components/Login/index.d.ts +2 -0
  11. package/dist/components/LoginModal/LoginModal.d.ts +0 -4
  12. package/dist/components/Sidebar/Sidebar.d.ts +31 -0
  13. package/dist/components/Sidebar/Sidebar.stories.d.ts +17 -0
  14. package/dist/components/Sidebar/SidebarCollapseButton/SidebarCollapseButton.d.ts +7 -0
  15. package/dist/components/Sidebar/SidebarCollapseButton/index.d.ts +2 -0
  16. package/dist/components/Sidebar/SidebarLogo.d.ts +5 -0
  17. package/dist/components/Sidebar/SidebarLogoutButton/SidebarLogoutButton.d.ts +6 -0
  18. package/dist/components/Sidebar/SidebarLogoutButton/index.d.ts +2 -0
  19. package/dist/components/Sidebar/SidebarMenuItem/SidebarMenuItem.d.ts +11 -0
  20. package/dist/components/Sidebar/SidebarMenuItem/SidebarMenuItem.styles.d.ts +5 -0
  21. package/dist/components/Sidebar/SidebarMenuItem/index.d.ts +2 -0
  22. package/dist/components/Sidebar/index.d.ts +2 -0
  23. package/dist/components/Tree/index.js +1 -1
  24. package/dist/licenses.txt +103 -103
  25. package/dist/main.d.ts +4 -1
  26. package/dist/main.js +1491 -1511
  27. package/dist/services/auth/clearAuthStorage.d.ts +4 -0
  28. package/dist/services/mutations/auth/useLogout.d.ts +4 -0
  29. package/dist/services/mutations/auth/useResetPassword.d.ts +5 -0
  30. package/dist/services/queries/auth/useGetAppDetails.d.ts +19 -0
  31. package/dist/services/queryKeys.d.ts +1 -0
  32. package/dist/{theme-CyElD8XL.js → theme-Dfrivrji.js} +27884 -26717
  33. package/dist/warning-BcYeNKLQ.js +416 -0
  34. package/package.json +1 -1
  35. package/dist/warning-CJpi1iFg.js +0 -95
@@ -1,6 +1,6 @@
1
1
  import { jsx as R, jsxs as se } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
- import { e as ie, P as e, o as W, g as ae, f as ce, h as le, i as de, s as K, j as xe, k as H, l as Pe, n as ue, p as pe, u as J, q as Re, t as De, v as ne, w as Ie, x as U, y as we, z as Ge, A as Je, B as Qe, C as X, D as Ze, c as et, E as tt, F as nt, S as ye, G as ot, I as rt } from "./Stack-CP81SpOh.js";
3
+ import { t as ie, P as e, v as W, g as ae, c as ce, e as le, i as de, s as K, w as xe, k as _, x as Pe, l as ue, o as pe, u as J, y as Re, h as De, n as ne, z as Ie, A as U, B as we, C as Ge, D as Je, E as Qe, F as X, G as Ze, q as et, H as tt, I as nt, S as ye, J as ot, K as rt } from "./Stack-Bsa5WF4E.js";
4
4
  import * as st from "react-dom";
5
5
  function it(t) {
6
6
  const {
@@ -85,15 +85,15 @@ function $e(t, n, r, o) {
85
85
  }
86
86
  return null;
87
87
  }
88
- function je(t, n, ...r) {
88
+ function Ae(t, n, ...r) {
89
89
  return t[n] === void 0 ? null : $e(t, n, ...r);
90
90
  }
91
91
  function be() {
92
92
  return null;
93
93
  }
94
- je.isRequired = $e;
94
+ Ae.isRequired = $e;
95
95
  be.isRequired = be;
96
- const Ae = process.env.NODE_ENV === "production" ? be : je;
96
+ const je = process.env.NODE_ENV === "production" ? be : Ae;
97
97
  function fe(t) {
98
98
  var n;
99
99
  return parseInt(d.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
@@ -173,7 +173,7 @@ const pt = (t) => {
173
173
  `)), /* @__PURE__ */ R(ft, {
174
174
  as: a,
175
175
  ownerState: T,
176
- className: H(P.root, i),
176
+ className: _(P.root, i),
177
177
  ref: r,
178
178
  ...g,
179
179
  style: {
@@ -217,7 +217,7 @@ process.env.NODE_ENV !== "production" && (Be.propTypes = {
217
217
  * It accepts values between 0 and 24 inclusive.
218
218
  * @default 1
219
219
  */
220
- elevation: ie(Ae, (t) => {
220
+ elevation: ie(je, (t) => {
221
221
  const {
222
222
  elevation: n,
223
223
  variant: r
@@ -340,7 +340,7 @@ const mt = {
340
340
  mode: "enter"
341
341
  });
342
342
  y.style.webkitTransition = o.transitions.create("opacity", m), y.style.transition = o.transitions.create("opacity", m), g && g(y, h);
343
- }), k = S(T), A = S(M), L = S((y) => {
343
+ }), k = S(T), j = S(M), L = S((y) => {
344
344
  const h = ne({
345
345
  style: w,
346
346
  timeout: N,
@@ -359,7 +359,7 @@ const mt = {
359
359
  onEntering: b,
360
360
  onExit: L,
361
361
  onExited: $,
362
- onExiting: A,
362
+ onExiting: j,
363
363
  addEndListener: (y) => {
364
364
  i && i(E.current, y);
365
365
  },
@@ -530,7 +530,7 @@ const yt = (t) => {
530
530
  }, [C, S] = U("root", {
531
531
  elementType: gt,
532
532
  externalForwardedProps: E,
533
- className: H(N.root, i),
533
+ className: _(N.root, i),
534
534
  ownerState: w
535
535
  }), [b, D] = U("transition", {
536
536
  elementType: Le,
@@ -817,7 +817,7 @@ function re(t) {
817
817
  const p = W(x.current), E = (b) => {
818
818
  w.current = b, !(o || !a() || b.key !== "Tab") && p.activeElement === x.current && b.shiftKey && (l.current = !0, g.current && g.current.focus());
819
819
  }, C = () => {
820
- var k, A;
820
+ var k, j;
821
821
  const b = x.current;
822
822
  if (b === null)
823
823
  return;
@@ -835,8 +835,8 @@ function re(t) {
835
835
  return;
836
836
  let D = [];
837
837
  if ((p.activeElement === u.current || p.activeElement === g.current) && (D = i(x.current)), D.length > 0) {
838
- const L = !!((k = w.current) != null && k.shiftKey && ((A = w.current) == null ? void 0 : A.key) === "Tab"), $ = D[0], j = D[D.length - 1];
839
- typeof $ != "string" && typeof j != "string" && (L ? j.focus() : $.focus());
838
+ const L = !!((k = w.current) != null && k.shiftKey && ((j = w.current) == null ? void 0 : j.key) === "Tab"), $ = D[0], A = D[D.length - 1];
839
+ typeof $ != "string" && typeof A != "string" && (L ? A.focus() : $.focus());
840
840
  } else
841
841
  b.focus();
842
842
  };
@@ -967,7 +967,7 @@ function It(t) {
967
967
  }, [k]), d.useEffect(() => {
968
968
  u ? S() : (!N || !s) && k();
969
969
  }, [u, k, N, s, S]);
970
- const A = (h) => (m) => {
970
+ const j = (h) => (m) => {
971
971
  var F;
972
972
  (F = h.onKeyDown) == null || F.call(h, m), !(m.key !== "Escape" || m.which === 229 || // Wait until IME is settled.
973
973
  !b()) && (r || (m.stopPropagation(), l && l(m, "escapeKeyDown")));
@@ -992,7 +992,7 @@ function It(t) {
992
992
  */
993
993
  role: "presentation",
994
994
  ...F,
995
- onKeyDown: A(F),
995
+ onKeyDown: j(F),
996
996
  ref: x
997
997
  };
998
998
  },
@@ -1063,7 +1063,7 @@ const Ft = (t) => {
1063
1063
  visibility: "hidden"
1064
1064
  }
1065
1065
  }]
1066
- }))), jt = K(ve, {
1066
+ }))), At = K(ve, {
1067
1067
  name: "MuiModal",
1068
1068
  slot: "Backdrop",
1069
1069
  overridesResolver: (t, n) => n.backdrop
@@ -1074,7 +1074,7 @@ const Ft = (t) => {
1074
1074
  name: "MuiModal",
1075
1075
  props: n
1076
1076
  }), {
1077
- BackdropComponent: s = jt,
1077
+ BackdropComponent: s = At,
1078
1078
  BackdropProps: i,
1079
1079
  classes: a,
1080
1080
  className: c,
@@ -1096,11 +1096,11 @@ const Ft = (t) => {
1096
1096
  onTransitionEnter: b,
1097
1097
  onTransitionExited: D,
1098
1098
  open: k,
1099
- slotProps: A = {},
1099
+ slotProps: j = {},
1100
1100
  slots: L = {},
1101
1101
  // eslint-disable-next-line react/prop-types
1102
1102
  theme: $,
1103
- ...j
1103
+ ...A
1104
1104
  } = o, y = {
1105
1105
  ...o,
1106
1106
  closeAfterTransition: l,
@@ -1129,10 +1129,10 @@ const Ft = (t) => {
1129
1129
  }, B = Ft(q), z = {};
1130
1130
  if (u.props.tabIndex === void 0 && (z.tabIndex = "-1"), Z) {
1131
1131
  const {
1132
- onEnter: _,
1132
+ onEnter: H,
1133
1133
  onExited: he
1134
1134
  } = F();
1135
- z.onEnter = _, z.onExited = he;
1135
+ z.onEnter = H, z.onExited = he;
1136
1136
  }
1137
1137
  const Te = {
1138
1138
  slots: {
@@ -1142,32 +1142,32 @@ const Ft = (t) => {
1142
1142
  },
1143
1143
  slotProps: {
1144
1144
  ...v,
1145
- ...A
1145
+ ...j
1146
1146
  }
1147
1147
  }, [We, Ke] = U("root", {
1148
1148
  ref: r,
1149
1149
  elementType: $t,
1150
1150
  externalForwardedProps: {
1151
1151
  ...Te,
1152
- ...j,
1152
+ ...A,
1153
1153
  component: T
1154
1154
  },
1155
1155
  getSlotProps: h,
1156
1156
  ownerState: q,
1157
- className: H(c, B == null ? void 0 : B.root, !q.open && q.exited && (B == null ? void 0 : B.hidden))
1157
+ className: _(c, B == null ? void 0 : B.root, !q.open && q.exited && (B == null ? void 0 : B.hidden))
1158
1158
  }), [Ye, Xe] = U("backdrop", {
1159
1159
  ref: i == null ? void 0 : i.ref,
1160
1160
  elementType: s,
1161
1161
  externalForwardedProps: Te,
1162
1162
  shouldForwardComponentProp: !0,
1163
1163
  additionalProps: i,
1164
- getSlotProps: (_) => m({
1165
- ..._,
1164
+ getSlotProps: (H) => m({
1165
+ ...H,
1166
1166
  onClick: (he) => {
1167
- _ != null && _.onClick && _.onClick(he);
1167
+ H != null && H.onClick && H.onClick(he);
1168
1168
  }
1169
1169
  }),
1170
- className: H(i == null ? void 0 : i.className, B == null ? void 0 : B.backdrop),
1170
+ className: _(i == null ? void 0 : i.className, B == null ? void 0 : B.backdrop),
1171
1171
  ownerState: q
1172
1172
  });
1173
1173
  return !C && !k && (!Z || V) ? null : /* @__PURE__ */ R(oe, {
@@ -1363,7 +1363,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
1363
1363
  */
1364
1364
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
1365
1365
  });
1366
- function At(t, n, r) {
1366
+ function jt(t, n, r) {
1367
1367
  const o = n.getBoundingClientRect(), s = r && r.getBoundingClientRect(), i = Y(n);
1368
1368
  let a;
1369
1369
  if (n.fakeTransform)
@@ -1383,7 +1383,7 @@ function Ue(t) {
1383
1383
  return typeof t == "function" ? t() : t;
1384
1384
  }
1385
1385
  function te(t, n, r) {
1386
- const o = Ue(r), s = At(t, n, o);
1386
+ const o = Ue(r), s = jt(t, n, o);
1387
1387
  s && (n.style.webkitTransform = s, n.style.transform = s);
1388
1388
  }
1389
1389
  const qe = /* @__PURE__ */ d.forwardRef(function(n, r) {
@@ -1414,7 +1414,7 @@ const qe = /* @__PURE__ */ d.forwardRef(function(n, r) {
1414
1414
  ...S
1415
1415
  } = n, b = d.useRef(null), D = J(fe(l), b, r), k = (f) => (I) => {
1416
1416
  f && (I === void 0 ? f(b.current) : f(b.current, I));
1417
- }, A = k((f, I) => {
1417
+ }, j = k((f, I) => {
1418
1418
  te(g, f, u), Ie(f), v && v(f, I);
1419
1419
  }), L = k((f, I) => {
1420
1420
  const V = ne({
@@ -1429,7 +1429,7 @@ const qe = /* @__PURE__ */ d.forwardRef(function(n, r) {
1429
1429
  }), f.style.transition = o.transitions.create("transform", {
1430
1430
  ...V
1431
1431
  }), f.style.webkitTransform = "none", f.style.transform = "none", M && M(f, I);
1432
- }), $ = k(x), j = k(O), y = k((f) => {
1432
+ }), $ = k(x), A = k(O), y = k((f) => {
1433
1433
  const I = ne({
1434
1434
  timeout: E,
1435
1435
  style: p,
@@ -1458,12 +1458,12 @@ const qe = /* @__PURE__ */ d.forwardRef(function(n, r) {
1458
1458
  P || F();
1459
1459
  }, [P, F]), /* @__PURE__ */ R(C, {
1460
1460
  nodeRef: b,
1461
- onEnter: A,
1461
+ onEnter: j,
1462
1462
  onEntered: $,
1463
1463
  onEntering: L,
1464
1464
  onExit: y,
1465
1465
  onExited: h,
1466
- onExiting: j,
1466
+ onExiting: A,
1467
1467
  addEndListener: m,
1468
1468
  appear: c,
1469
1469
  in: P,
@@ -1715,7 +1715,7 @@ const ze = (t, n) => {
1715
1715
  borderTop: `1px solid ${(t.vars || t).palette.divider}`
1716
1716
  }
1717
1717
  }]
1718
- }))), _e = {
1718
+ }))), He = {
1719
1719
  left: "right",
1720
1720
  right: "left",
1721
1721
  top: "down",
@@ -1724,12 +1724,12 @@ const ze = (t, n) => {
1724
1724
  function zt(t) {
1725
1725
  return ["left", "right"].includes(t);
1726
1726
  }
1727
- function _t({
1727
+ function Ht({
1728
1728
  direction: t
1729
1729
  }, n) {
1730
- return t === "rtl" && zt(n) ? _e[n] : n;
1730
+ return t === "rtl" && zt(n) ? He[n] : n;
1731
1731
  }
1732
- const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1732
+ const _e = /* @__PURE__ */ d.forwardRef(function(n, r) {
1733
1733
  const o = le({
1734
1734
  props: n,
1735
1735
  name: "MuiDrawer"
@@ -1762,7 +1762,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1762
1762
  d.useEffect(() => {
1763
1763
  k.current = !0;
1764
1764
  }, []);
1765
- const A = _t({
1765
+ const j = Ht({
1766
1766
  direction: i ? "rtl" : "ltr"
1767
1767
  }, c), $ = {
1768
1768
  ...o,
@@ -1771,7 +1771,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1771
1771
  open: w,
1772
1772
  variant: C,
1773
1773
  ...D
1774
- }, j = Lt($), y = {
1774
+ }, A = Lt($), y = {
1775
1775
  slots: {
1776
1776
  transition: p,
1777
1777
  ...S
@@ -1790,7 +1790,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1790
1790
  }, [h, m] = U("root", {
1791
1791
  ref: r,
1792
1792
  elementType: Vt,
1793
- className: H(j.root, j.modal, g),
1793
+ className: _(A.root, A.modal, g),
1794
1794
  shouldForwardComponentProp: !0,
1795
1795
  ownerState: $,
1796
1796
  externalForwardedProps: {
@@ -1812,7 +1812,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1812
1812
  }), [F, f] = U("paper", {
1813
1813
  elementType: qt,
1814
1814
  shouldForwardComponentProp: !0,
1815
- className: H(j.paper, N.className),
1815
+ className: _(A.paper, N.className),
1816
1816
  ownerState: $,
1817
1817
  externalForwardedProps: y,
1818
1818
  additionalProps: {
@@ -1822,7 +1822,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1822
1822
  }), [I, V] = U("docked", {
1823
1823
  elementType: Ut,
1824
1824
  ref: r,
1825
- className: H(j.root, j.docked, g),
1825
+ className: _(A.root, A.docked, g),
1826
1826
  ownerState: $,
1827
1827
  externalForwardedProps: y,
1828
1828
  additionalProps: D
@@ -1833,7 +1833,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1833
1833
  externalForwardedProps: y,
1834
1834
  additionalProps: {
1835
1835
  in: w,
1836
- direction: _e[A],
1836
+ direction: He[j],
1837
1837
  timeout: E,
1838
1838
  appear: k.current
1839
1839
  }
@@ -1858,7 +1858,7 @@ const He = /* @__PURE__ */ d.forwardRef(function(n, r) {
1858
1858
  children: z
1859
1859
  });
1860
1860
  });
1861
- process.env.NODE_ENV !== "production" && (He.propTypes = {
1861
+ process.env.NODE_ENV !== "production" && (_e.propTypes = {
1862
1862
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1863
1863
  // │ These PropTypes are generated from the TypeScript type definitions. │
1864
1864
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1888,7 +1888,7 @@ process.env.NODE_ENV !== "production" && (He.propTypes = {
1888
1888
  * The elevation of the drawer.
1889
1889
  * @default 16
1890
1890
  */
1891
- elevation: Ae,
1891
+ elevation: je,
1892
1892
  /**
1893
1893
  * If `true`, the backdrop is not rendered.
1894
1894
  * @default false
@@ -1968,7 +1968,7 @@ process.env.NODE_ENV !== "production" && (He.propTypes = {
1968
1968
  */
1969
1969
  variant: e.oneOf(["permanent", "persistent", "temporary"])
1970
1970
  });
1971
- const Ht = et(/* @__PURE__ */ R("path", {
1971
+ const _t = et(/* @__PURE__ */ R("path", {
1972
1972
  d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
1973
1973
  }), "Close"), Wt = ({
1974
1974
  size: t = 36,
@@ -1990,7 +1990,7 @@ const Ht = et(/* @__PURE__ */ R("path", {
1990
1990
  pb: 2,
1991
1991
  children: [
1992
1992
  /* @__PURE__ */ R(ot, { fontSize: 16, fontWeight: "bold", children: t }),
1993
- /* @__PURE__ */ R(rt, { size: "small", onClick: n, "data-testid": "drawer-close", children: /* @__PURE__ */ R(Ht, { fontSize: "inherit" }) })
1993
+ /* @__PURE__ */ R(rt, { size: "small", onClick: n, "data-testid": "drawer-close", children: /* @__PURE__ */ R(_t, { fontSize: "inherit" }) })
1994
1994
  ]
1995
1995
  }
1996
1996
  ), Ee = ({
@@ -1999,7 +1999,7 @@ const Ht = et(/* @__PURE__ */ R("path", {
1999
1999
  width: r,
2000
2000
  loading: o = !1,
2001
2001
  ...s
2002
- }) => /* @__PURE__ */ R(He, { anchor: t, "data-testid": "drawer", ...s, children: /* @__PURE__ */ se(ye, { height: "100%", p: 2, width: r, position: "relative", children: [
2002
+ }) => /* @__PURE__ */ R(_e, { anchor: t, "data-testid": "drawer", ...s, children: /* @__PURE__ */ se(ye, { height: "100%", p: 2, width: r, position: "relative", children: [
2003
2003
  n,
2004
2004
  /* @__PURE__ */ R(Wt, { open: o })
2005
2005
  ] }) });
@@ -2008,7 +2008,7 @@ Ee.Content = Kt;
2008
2008
  Ee.Footer = Yt;
2009
2009
  export {
2010
2010
  ve as B,
2011
- Ht as C,
2011
+ _t as C,
2012
2012
  Ee as D,
2013
2013
  Le as F,
2014
2014
  ge as H,
@@ -2022,7 +2022,7 @@ export {
2022
2022
  Fe as e,
2023
2023
  re as f,
2024
2024
  fe as g,
2025
- Ae as i,
2025
+ je as i,
2026
2026
  Y as o,
2027
2027
  Ne as s
2028
2028
  };