@zydon/common 1.0.17 → 1.0.18

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.
package/dist/index.js CHANGED
@@ -9683,7 +9683,7 @@ const MM = ({
9683
9683
  }
9684
9684
  )
9685
9685
  ] });
9686
- }, kj = ({
9686
+ }, Aj = ({
9687
9687
  name: e,
9688
9688
  rules: t,
9689
9689
  helperText: r,
@@ -19774,7 +19774,7 @@ const pI = "Public Sans, sans-serif", hI = {
19774
19774
  e
19775
19775
  ] }) });
19776
19776
  };
19777
- const Aj = ({
19777
+ const Rj = ({
19778
19778
  themeColor: e,
19779
19779
  children: t
19780
19780
  }) => /* @__PURE__ */ y.jsx(
@@ -19923,7 +19923,7 @@ const Qf = f0(At)({
19923
19923
  children: l
19924
19924
  }
19925
19925
  );
19926
- }, Rj = ({ columns: e, ...t }) => {
19926
+ }, Dj = ({ columns: e, ...t }) => {
19927
19927
  const r = [
19928
19928
  {
19929
19929
  ...$0,
@@ -19999,7 +19999,7 @@ const Qf = f0(At)({
19999
19999
  ...t
20000
20000
  }
20001
20001
  );
20002
- }, Dj = ({ name: e, ...t }) => {
20002
+ }, Ij = ({ name: e, ...t }) => {
20003
20003
  const { control: r } = Nn();
20004
20004
  return /* @__PURE__ */ y.jsx(
20005
20005
  Fn,
@@ -20039,7 +20039,7 @@ const Qf = f0(At)({
20039
20039
  }
20040
20040
  }
20041
20041
  );
20042
- }, Ij = ({
20042
+ }, jj = ({
20043
20043
  name: e,
20044
20044
  label: t,
20045
20045
  ...r
@@ -20091,7 +20091,7 @@ const Qf = f0(At)({
20091
20091
  )
20092
20092
  }
20093
20093
  );
20094
- }, jj = ({ name: e, ...t }) => {
20094
+ }, Lj = ({ name: e, ...t }) => {
20095
20095
  const { control: r } = Nn();
20096
20096
  return /* @__PURE__ */ y.jsx(
20097
20097
  Fn,
@@ -20133,7 +20133,7 @@ const Qf = f0(At)({
20133
20133
  }
20134
20134
  }
20135
20135
  );
20136
- }, Lj = ({
20136
+ }, Nj = ({
20137
20137
  children: e,
20138
20138
  waitBeforeShow: t = 500
20139
20139
  }) => {
@@ -20162,7 +20162,7 @@ const Qf = f0(At)({
20162
20162
  )
20163
20163
  }
20164
20164
  );
20165
- }, Nj = ({
20165
+ }, Fj = ({
20166
20166
  id: e,
20167
20167
  children: t,
20168
20168
  onSubmit: r,
@@ -21365,7 +21365,7 @@ const $I = Et("span")(({
21365
21365
  },
21366
21366
  ...e === "right-bottom" && { ...l, bottom: 20 }
21367
21367
  };
21368
- }), Fj = ({
21368
+ }), Bj = ({
21369
21369
  open: e,
21370
21370
  children: t,
21371
21371
  arrow: r = "top-right",
@@ -21485,7 +21485,7 @@ const Ih = {
21485
21485
  "&::-webkit-scrollbar": {
21486
21486
  display: "none"
21487
21487
  }
21488
- }, Bj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21488
+ }, Hj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21489
21489
  __proto__: null,
21490
21490
  bgBlur: ac,
21491
21491
  bgGradient: _I,
@@ -21726,7 +21726,7 @@ const II = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
21726
21726
  n.subheader
21727
21727
  ))
21728
21728
  }
21729
- ), Hj = Rs(LI), NI = Et(Ds, {
21729
+ ), Wj = Rs(LI), NI = Et(Ds, {
21730
21730
  shouldForwardProp: (e) => e !== "active" && e !== "caption"
21731
21731
  })(({ active: e, disabled: t, depth: r, caption: n, theme: a }) => {
21732
21732
  const o = a.palette.mode === "light", i = r !== 1, s = {
@@ -21888,7 +21888,7 @@ const II = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
21888
21888
  ),
21889
21889
  r && /* @__PURE__ */ y.jsx(h0, { in: i, unmountOnExit: !0, children: /* @__PURE__ */ y.jsx(WI, { data: e.children, depth: t }) })
21890
21890
  ] });
21891
- }, Wj = ({
21891
+ }, zj = ({
21892
21892
  data: e,
21893
21893
  sx: t,
21894
21894
  ...r
@@ -22102,7 +22102,7 @@ const GI = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
22102
22102
  ...r,
22103
22103
  children: e.map((n) => /* @__PURE__ */ y.jsx(VI, { items: n.items }, n.subheader))
22104
22104
  }
22105
- ), zj = Rs(qI), Uj = (e) => {
22105
+ ), Uj = Rs(qI), Yj = (e) => {
22106
22106
  const [t, r] = Zt(!1);
22107
22107
  return /* @__PURE__ */ y.jsx(
22108
22108
  xI,
@@ -22127,7 +22127,7 @@ const GI = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
22127
22127
  }
22128
22128
  }
22129
22129
  );
22130
- }, Yj = ({
22130
+ }, Gj = ({
22131
22131
  children: e,
22132
22132
  container: t
22133
22133
  }) => M0(
@@ -22560,7 +22560,7 @@ const ej = Et("div")(() => ({
22560
22560
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
22561
22561
  n
22562
22562
  ) ? /* @__PURE__ */ y.jsx(At, { sx: { overflowX: "auto", ...t }, ...r, children: e }) : /* @__PURE__ */ y.jsx(ej, { children: /* @__PURE__ */ y.jsx(tj, { clickOnTrack: !1, sx: t, ...r, children: e }) });
22563
- }, Gj = Rs(rj), Vj = ({ name: e, ...t }) => {
22563
+ }, Vj = Rs(rj), qj = ({ name: e, ...t }) => {
22564
22564
  const { control: r } = Nn();
22565
22565
  return /* @__PURE__ */ y.jsx(
22566
22566
  Fn,
@@ -22598,7 +22598,7 @@ const ej = Et("div")(() => ({
22598
22598
  }
22599
22599
  }
22600
22600
  );
22601
- }, qj = () => {
22601
+ }, Xj = () => {
22602
22602
  const [e, t] = Zt(!1), [r, n] = Zt(
22603
22603
  document.activeElement
22604
22604
  );
@@ -22620,9 +22620,9 @@ var oj = aj;
22620
22620
  const ij = /* @__PURE__ */ ka(oj), sj = (e, t) => ij(e, t), lj = (e) => {
22621
22621
  const t = No();
22622
22622
  return sj(e, t.current) || (t.current = e), t.current;
22623
- }, Xj = (e, t) => {
22623
+ }, Kj = (e, t) => {
22624
22624
  yr(e, t.map(lj));
22625
- }, Kj = () => {
22625
+ }, Qj = () => {
22626
22626
  const e = No(!0);
22627
22627
  return e.current ? (e.current = !1, !0) : e.current;
22628
22628
  };
@@ -22684,13 +22684,13 @@ function io(e, t = {}) {
22684
22684
  match: u
22685
22685
  }), u;
22686
22686
  }
22687
- const Qj = (e, t, r) => {
22687
+ const Zj = (e, t, r) => {
22688
22688
  const n = rc(), a = io(n.breakpoints.up(t)), o = io(n.breakpoints.down(t)), i = io(
22689
22689
  n.breakpoints.between(t, r)
22690
22690
  ), s = io(n.breakpoints.only(t));
22691
22691
  return e === "up" ? a : e === "down" ? o : e === "between" ? i : s;
22692
22692
  };
22693
- function Zj(e) {
22693
+ function Jj(e) {
22694
22694
  const [t, r] = Zt(e || "");
22695
22695
  return {
22696
22696
  currentTab: t,
@@ -22700,13 +22700,13 @@ function Zj(e) {
22700
22700
  setCurrentTab: r
22701
22701
  };
22702
22702
  }
22703
- const Jj = (e = !1) => {
22703
+ const eL = (e = !1) => {
22704
22704
  const [t, r] = Zt(e), n = n0(() => r((a) => !a), []);
22705
22705
  return [t, n, r];
22706
22706
  }, fj = (e, t, r) => {
22707
22707
  const n = `data:application/octet-stream;base64,${r}`, a = document.createElement("a"), o = `${e.replace(t, "")}.${t}`;
22708
22708
  a.href = n, a.download = o, a.click();
22709
- }, eL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22709
+ }, tL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22710
22710
  __proto__: null,
22711
22711
  downloadFile: fj
22712
22712
  }, Symbol.toStringTag, { value: "Module" }));
@@ -22779,52 +22779,61 @@ function wj(e) {
22779
22779
  addSuffix: !0
22780
22780
  }) : null;
22781
22781
  }
22782
- const tL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22782
+ const rL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22783
22783
  __proto__: null,
22784
22784
  fDate: bj,
22785
22785
  fDateTime: yj,
22786
22786
  fTimestamp: xj,
22787
22787
  fToNow: wj
22788
- }, Symbol.toStringTag, { value: "Module" })), rL = (e) => (
22788
+ }, Symbol.toStringTag, { value: "Module" }));
22789
+ function Oj(e) {
22790
+ const t = e.match(/\/([^/]+)/);
22791
+ return t ? t[0] : e;
22792
+ }
22793
+ const nL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22794
+ __proto__: null,
22795
+ getRoot: Oj
22796
+ }, Symbol.toStringTag, { value: "Module" })), aL = (e) => (
22789
22797
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22790
22798
  function(r) {
22791
22799
  return /* @__PURE__ */ y.jsx(a0, { fallback: /* @__PURE__ */ y.jsx(v0, {}), children: /* @__PURE__ */ y.jsx(e, { ...r }) });
22792
22800
  }
22793
22801
  );
22794
22802
  export {
22795
- kj as ColorPickerField,
22803
+ Aj as ColorPickerField,
22796
22804
  MM as ColorPickerInput,
22797
- Aj as Common,
22805
+ Rj as Common,
22798
22806
  mI as CustomAvatar,
22799
22807
  bI as CustomAvatarGroup,
22800
- Rj as DataGrid,
22801
- Dj as DatePicker,
22802
- Ij as DateRangePicker,
22803
- jj as DateTimePicker,
22804
- Lj as Delayed,
22808
+ Dj as DataGrid,
22809
+ Ij as DatePicker,
22810
+ jj as DateRangePicker,
22811
+ Lj as DateTimePicker,
22812
+ Nj as Delayed,
22805
22813
  xI as Field,
22806
- Nj as Form,
22814
+ Fj as Form,
22807
22815
  Or as Iconify,
22808
22816
  TI as Image,
22809
22817
  SI as Label,
22810
- Fj as MenuPopover,
22811
- zj as NavSectionHorizontal,
22812
- Hj as NavSectionMini,
22813
- Wj as NavSectionVertical,
22814
- Uj as PasswordField,
22815
- Yj as Portal,
22816
- Gj as Scrollbar,
22818
+ Bj as MenuPopover,
22819
+ Uj as NavSectionHorizontal,
22820
+ Wj as NavSectionMini,
22821
+ zj as NavSectionVertical,
22822
+ Yj as PasswordField,
22823
+ Gj as Portal,
22824
+ Vj as Scrollbar,
22817
22825
  gI as ThemeProvider,
22818
- Vj as TimePicker,
22819
- Bj as cssStyles,
22820
- eL as file,
22821
- tL as formatTime,
22822
- rL as loadable,
22823
- qj as useActiveElement,
22826
+ qj as TimePicker,
22827
+ Hj as cssStyles,
22828
+ tL as file,
22829
+ rL as formatTime,
22830
+ aL as loadable,
22831
+ nL as routes,
22832
+ Xj as useActiveElement,
22824
22833
  nc as useActiveLink,
22825
- Xj as useDeepCompareEffect,
22826
- Kj as useIsMounting,
22827
- Qj as useResponsive,
22828
- Zj as useTabs,
22829
- Jj as useToggle
22834
+ Kj as useDeepCompareEffect,
22835
+ Qj as useIsMounting,
22836
+ Zj as useResponsive,
22837
+ Jj as useTabs,
22838
+ eL as useToggle
22830
22839
  };