@zydon/common 1.0.16 → 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/hooks/useActiveLink.d.ts +2 -2
- package/dist/hooks/useActiveLink.d.ts.map +1 -1
- package/dist/index.js +61 -54
- package/dist/index.umd.cjs +6 -6
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/routes.d.ts +2 -0
- package/dist/utils/routes.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,6 @@ type ReturnType = {
|
|
|
2
2
|
active: boolean;
|
|
3
3
|
isExternalLink: boolean;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
declare const useActiveLink: (path: string, deep?: boolean) => ReturnType;
|
|
6
|
+
export default useActiveLink;
|
|
7
7
|
//# sourceMappingURL=useActiveLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useActiveLink.d.ts","sourceRoot":"","sources":["../../src/hooks/useActiveLink.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"useActiveLink.d.ts","sourceRoot":"","sources":["../../src/hooks/useActiveLink.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,aAAa,SAAU,MAAM,qBAAgB,UAalD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9683,7 +9683,7 @@ const MM = ({
|
|
|
9683
9683
|
}
|
|
9684
9684
|
)
|
|
9685
9685
|
] });
|
|
9686
|
-
},
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
21368
|
+
}), Bj = ({
|
|
21369
21369
|
open: e,
|
|
21370
21370
|
children: t,
|
|
21371
21371
|
arrow: r = "top-right",
|
|
@@ -21403,15 +21403,13 @@ const $I = Et("span")(({
|
|
|
21403
21403
|
]
|
|
21404
21404
|
}
|
|
21405
21405
|
);
|
|
21406
|
-
}
|
|
21407
|
-
function nc(e, t = !0) {
|
|
21406
|
+
}, nc = (e, t = !0) => {
|
|
21408
21407
|
const { pathname: r } = Ho(), n = e ? !!lc({ path: e, end: !0 }, r) : !1, a = e ? !!lc({ path: e, end: !1 }, r) : !1;
|
|
21409
21408
|
return {
|
|
21410
21409
|
active: t ? a : n,
|
|
21411
21410
|
isExternalLink: e.includes("http")
|
|
21412
21411
|
};
|
|
21413
|
-
}
|
|
21414
|
-
const vo = {
|
|
21412
|
+
}, vo = {
|
|
21415
21413
|
W_BASE: 260,
|
|
21416
21414
|
W_DASHBOARD: 280,
|
|
21417
21415
|
W_DASHBOARD_MINI: 88,
|
|
@@ -21487,7 +21485,7 @@ const Ih = {
|
|
|
21487
21485
|
"&::-webkit-scrollbar": {
|
|
21488
21486
|
display: "none"
|
|
21489
21487
|
}
|
|
21490
|
-
},
|
|
21488
|
+
}, Hj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21491
21489
|
__proto__: null,
|
|
21492
21490
|
bgBlur: ac,
|
|
21493
21491
|
bgGradient: _I,
|
|
@@ -21728,7 +21726,7 @@ const II = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
|
|
|
21728
21726
|
n.subheader
|
|
21729
21727
|
))
|
|
21730
21728
|
}
|
|
21731
|
-
),
|
|
21729
|
+
), Wj = Rs(LI), NI = Et(Ds, {
|
|
21732
21730
|
shouldForwardProp: (e) => e !== "active" && e !== "caption"
|
|
21733
21731
|
})(({ active: e, disabled: t, depth: r, caption: n, theme: a }) => {
|
|
21734
21732
|
const o = a.palette.mode === "light", i = r !== 1, s = {
|
|
@@ -21890,7 +21888,7 @@ const II = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
|
|
|
21890
21888
|
),
|
|
21891
21889
|
r && /* @__PURE__ */ y.jsx(h0, { in: i, unmountOnExit: !0, children: /* @__PURE__ */ y.jsx(WI, { data: e.children, depth: t }) })
|
|
21892
21890
|
] });
|
|
21893
|
-
},
|
|
21891
|
+
}, zj = ({
|
|
21894
21892
|
data: e,
|
|
21895
21893
|
sx: t,
|
|
21896
21894
|
...r
|
|
@@ -22104,7 +22102,7 @@ const GI = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
|
|
|
22104
22102
|
...r,
|
|
22105
22103
|
children: e.map((n) => /* @__PURE__ */ y.jsx(VI, { items: n.items }, n.subheader))
|
|
22106
22104
|
}
|
|
22107
|
-
),
|
|
22105
|
+
), Uj = Rs(qI), Yj = (e) => {
|
|
22108
22106
|
const [t, r] = Zt(!1);
|
|
22109
22107
|
return /* @__PURE__ */ y.jsx(
|
|
22110
22108
|
xI,
|
|
@@ -22129,7 +22127,7 @@ const GI = ({ data: e, depth: t }) => /* @__PURE__ */ y.jsx(y.Fragment, { childr
|
|
|
22129
22127
|
}
|
|
22130
22128
|
}
|
|
22131
22129
|
);
|
|
22132
|
-
},
|
|
22130
|
+
}, Gj = ({
|
|
22133
22131
|
children: e,
|
|
22134
22132
|
container: t
|
|
22135
22133
|
}) => M0(
|
|
@@ -22562,7 +22560,7 @@ const ej = Et("div")(() => ({
|
|
|
22562
22560
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
22563
22561
|
n
|
|
22564
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 }) });
|
|
22565
|
-
},
|
|
22563
|
+
}, Vj = Rs(rj), qj = ({ name: e, ...t }) => {
|
|
22566
22564
|
const { control: r } = Nn();
|
|
22567
22565
|
return /* @__PURE__ */ y.jsx(
|
|
22568
22566
|
Fn,
|
|
@@ -22600,7 +22598,7 @@ const ej = Et("div")(() => ({
|
|
|
22600
22598
|
}
|
|
22601
22599
|
}
|
|
22602
22600
|
);
|
|
22603
|
-
},
|
|
22601
|
+
}, Xj = () => {
|
|
22604
22602
|
const [e, t] = Zt(!1), [r, n] = Zt(
|
|
22605
22603
|
document.activeElement
|
|
22606
22604
|
);
|
|
@@ -22622,9 +22620,9 @@ var oj = aj;
|
|
|
22622
22620
|
const ij = /* @__PURE__ */ ka(oj), sj = (e, t) => ij(e, t), lj = (e) => {
|
|
22623
22621
|
const t = No();
|
|
22624
22622
|
return sj(e, t.current) || (t.current = e), t.current;
|
|
22625
|
-
},
|
|
22623
|
+
}, Kj = (e, t) => {
|
|
22626
22624
|
yr(e, t.map(lj));
|
|
22627
|
-
},
|
|
22625
|
+
}, Qj = () => {
|
|
22628
22626
|
const e = No(!0);
|
|
22629
22627
|
return e.current ? (e.current = !1, !0) : e.current;
|
|
22630
22628
|
};
|
|
@@ -22686,13 +22684,13 @@ function io(e, t = {}) {
|
|
|
22686
22684
|
match: u
|
|
22687
22685
|
}), u;
|
|
22688
22686
|
}
|
|
22689
|
-
const
|
|
22687
|
+
const Zj = (e, t, r) => {
|
|
22690
22688
|
const n = rc(), a = io(n.breakpoints.up(t)), o = io(n.breakpoints.down(t)), i = io(
|
|
22691
22689
|
n.breakpoints.between(t, r)
|
|
22692
22690
|
), s = io(n.breakpoints.only(t));
|
|
22693
22691
|
return e === "up" ? a : e === "down" ? o : e === "between" ? i : s;
|
|
22694
22692
|
};
|
|
22695
|
-
function
|
|
22693
|
+
function Jj(e) {
|
|
22696
22694
|
const [t, r] = Zt(e || "");
|
|
22697
22695
|
return {
|
|
22698
22696
|
currentTab: t,
|
|
@@ -22702,13 +22700,13 @@ function Zj(e) {
|
|
|
22702
22700
|
setCurrentTab: r
|
|
22703
22701
|
};
|
|
22704
22702
|
}
|
|
22705
|
-
const
|
|
22703
|
+
const eL = (e = !1) => {
|
|
22706
22704
|
const [t, r] = Zt(e), n = n0(() => r((a) => !a), []);
|
|
22707
22705
|
return [t, n, r];
|
|
22708
22706
|
}, fj = (e, t, r) => {
|
|
22709
22707
|
const n = `data:application/octet-stream;base64,${r}`, a = document.createElement("a"), o = `${e.replace(t, "")}.${t}`;
|
|
22710
22708
|
a.href = n, a.download = o, a.click();
|
|
22711
|
-
},
|
|
22709
|
+
}, tL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22712
22710
|
__proto__: null,
|
|
22713
22711
|
downloadFile: fj
|
|
22714
22712
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -22781,52 +22779,61 @@ function wj(e) {
|
|
|
22781
22779
|
addSuffix: !0
|
|
22782
22780
|
}) : null;
|
|
22783
22781
|
}
|
|
22784
|
-
const
|
|
22782
|
+
const rL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22785
22783
|
__proto__: null,
|
|
22786
22784
|
fDate: bj,
|
|
22787
22785
|
fDateTime: yj,
|
|
22788
22786
|
fTimestamp: xj,
|
|
22789
22787
|
fToNow: wj
|
|
22790
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
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) => (
|
|
22791
22797
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22792
22798
|
function(r) {
|
|
22793
22799
|
return /* @__PURE__ */ y.jsx(a0, { fallback: /* @__PURE__ */ y.jsx(v0, {}), children: /* @__PURE__ */ y.jsx(e, { ...r }) });
|
|
22794
22800
|
}
|
|
22795
22801
|
);
|
|
22796
22802
|
export {
|
|
22797
|
-
|
|
22803
|
+
Aj as ColorPickerField,
|
|
22798
22804
|
MM as ColorPickerInput,
|
|
22799
|
-
|
|
22805
|
+
Rj as Common,
|
|
22800
22806
|
mI as CustomAvatar,
|
|
22801
22807
|
bI as CustomAvatarGroup,
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22808
|
+
Dj as DataGrid,
|
|
22809
|
+
Ij as DatePicker,
|
|
22810
|
+
jj as DateRangePicker,
|
|
22811
|
+
Lj as DateTimePicker,
|
|
22812
|
+
Nj as Delayed,
|
|
22807
22813
|
xI as Field,
|
|
22808
|
-
|
|
22814
|
+
Fj as Form,
|
|
22809
22815
|
Or as Iconify,
|
|
22810
22816
|
TI as Image,
|
|
22811
22817
|
SI as Label,
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
|
|
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,
|
|
22819
22825
|
gI as ThemeProvider,
|
|
22820
|
-
|
|
22821
|
-
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
|
|
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,
|
|
22826
22833
|
nc as useActiveLink,
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
22834
|
+
Kj as useDeepCompareEffect,
|
|
22835
|
+
Qj as useIsMounting,
|
|
22836
|
+
Zj as useResponsive,
|
|
22837
|
+
Jj as useTabs,
|
|
22838
|
+
eL as useToggle
|
|
22832
22839
|
};
|