@fangzsx/component-library 0.0.20 → 0.0.22
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/{ButtonBase-DxZEqM87.js → ButtonBase-DycJOmlJ.js} +7 -6
- package/dist/{useForkRef-gLJikozA.js → DefaultPropsProvider-DVX_ssOt.js} +101 -125
- package/dist/{FormLabel-DLyFlUyL.js → FormLabel-D4ON51Wt.js} +1 -1
- package/dist/{Paper-DZg6u5tT.js → Paper-oafkOzNM.js} +1 -1
- package/dist/{SwitchBase-BPRcMkqu.js → SwitchBase-V2UoemN5.js} +3 -3
- package/dist/{Typography-DMROEdKW.js → Typography-CTrRb9FL.js} +2 -2
- package/dist/components/AppBarPublic/index.js +5 -5
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/index.js +5 -5
- package/dist/components/Dialog/index.d.ts +18 -0
- package/dist/components/Dialog/index.js +67 -0
- package/dist/components/MediaCardWithAction/index.js +4 -4
- package/dist/components/RadioButtonGroup/index.js +12 -11
- package/dist/components/Stepper/index.d.ts +2 -5
- package/dist/components/Stepper/index.js +150 -174
- package/dist/components/TextFieldInput/index.js +32 -31
- package/dist/{createSvgIcon-ChKzptBc.js → createSvgIcon-C0YrvByi.js} +1 -1
- package/dist/{index-B08hLYdM.js → index-BPIwhwks.js} +2 -2
- package/dist/{index-1CH5DDiw.js → index-Cx-D0vTo.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +15 -13
- package/dist/{mergeSlotProps-CADAqXOb.js → mergeSlotProps-S3NX_8iG.js} +1 -1
- package/dist/useForkRef-9kN4DArm.js +27 -0
- package/dist/{useSlot-jPRhj-MO.js → useSlot-DKccmcQE.js} +13 -12
- package/package.json +1 -1
|
@@ -2,20 +2,21 @@ import { jsxs as Te, jsx as I } from "react/jsx-runtime";
|
|
|
2
2
|
import * as u from "react";
|
|
3
3
|
import ot, { useState as Bt } from "react";
|
|
4
4
|
import { P as e, a as de, g as fe, c as Re, j as on, k as Nt, r as kt } from "../../generateUtilityClasses-BCID9NF1.js";
|
|
5
|
-
import {
|
|
6
|
-
import { i as St, u as re, r as jn, m as An, a as $n, e as Bn } from "../../useSlot-
|
|
5
|
+
import { s as U, u as be, c as pe, m as ye, a as ce, r as we, e as Ln } from "../../DefaultPropsProvider-DVX_ssOt.js";
|
|
6
|
+
import { i as St, u as re, r as jn, m as An, a as $n, e as Bn } from "../../useSlot-DKccmcQE.js";
|
|
7
7
|
import { u as rn } from "../../useId-CK6Kn3Tn.js";
|
|
8
8
|
import { a as pt, F as zn, u as zt } from "../../useFormControl-BGLuGvqS.js";
|
|
9
|
-
import { f as dt, i as sn, a as Wn, d as Un, c as Wt, b as Vn, F as Hn } from "../../FormLabel-
|
|
9
|
+
import { f as dt, i as sn, a as Wn, d as Un, c as Wt, b as Vn, F as Hn } from "../../FormLabel-D4ON51Wt.js";
|
|
10
10
|
import { _ as _n, b as qn, T as an, e as wt, g as ze, r as Ne, f as ln, c as Mt, a as Ft, d as Kn } from "../../useTimeout-DmOXPFt0.js";
|
|
11
|
-
import { g as Gn } from "../../index-
|
|
12
|
-
import { u as
|
|
11
|
+
import { g as Gn } from "../../index-Cx-D0vTo.js";
|
|
12
|
+
import { u as ve } from "../../useForkRef-9kN4DArm.js";
|
|
13
|
+
import { u as cn, P as Xn } from "../../Paper-oafkOzNM.js";
|
|
13
14
|
import "@mui/system";
|
|
14
15
|
import * as Yn from "react-dom";
|
|
15
16
|
import rt from "react-dom";
|
|
16
|
-
import { m as Zn } from "../../mergeSlotProps-
|
|
17
|
+
import { m as Zn } from "../../mergeSlotProps-S3NX_8iG.js";
|
|
17
18
|
import { i as Jn } from "../../integerPropType-BihGt2aU.js";
|
|
18
|
-
import { c as Qn } from "../../createSvgIcon-
|
|
19
|
+
import { c as Qn } from "../../createSvgIcon-C0YrvByi.js";
|
|
19
20
|
const eo = "exact-prop: ";
|
|
20
21
|
function un(t) {
|
|
21
22
|
return process.env.NODE_ENV === "production" ? t : {
|
|
@@ -427,7 +428,7 @@ const dn = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
427
428
|
...d
|
|
428
429
|
} = n, {
|
|
429
430
|
current: m
|
|
430
|
-
} = u.useRef(l != null), b = u.useRef(null), y =
|
|
431
|
+
} = u.useRef(l != null), b = u.useRef(null), y = ve(o, b), E = u.useRef(null), f = u.useRef(null), h = u.useCallback(() => {
|
|
431
432
|
const c = b.current, p = f.current;
|
|
432
433
|
if (!c || !p)
|
|
433
434
|
return;
|
|
@@ -583,7 +584,7 @@ const ft = (t, n) => {
|
|
|
583
584
|
name: "MuiInputBase",
|
|
584
585
|
slot: "Root",
|
|
585
586
|
overridesResolver: ft
|
|
586
|
-
})(
|
|
587
|
+
})(ye(({
|
|
587
588
|
theme: t
|
|
588
589
|
}) => ({
|
|
589
590
|
...t.typography.body1,
|
|
@@ -627,7 +628,7 @@ const ft = (t, n) => {
|
|
|
627
628
|
name: "MuiInputBase",
|
|
628
629
|
slot: "Input",
|
|
629
630
|
overridesResolver: mt
|
|
630
|
-
})(
|
|
631
|
+
})(ye(({
|
|
631
632
|
theme: t
|
|
632
633
|
}) => {
|
|
633
634
|
const n = t.palette.mode === "light", o = {
|
|
@@ -798,7 +799,7 @@ const ft = (t, n) => {
|
|
|
798
799
|
} = u.useRef(te != null), Z = u.useRef(), L = u.useCallback((K) => {
|
|
799
800
|
process.env.NODE_ENV !== "production" && K && K.nodeName !== "INPUT" && !K.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
800
801
|
`));
|
|
801
|
-
}, []), A =
|
|
802
|
+
}, []), A = ve(Z, p, c.ref, L), [G, ie] = u.useState(!1), F = pt();
|
|
802
803
|
process.env.NODE_ENV !== "production" && u.useEffect(() => {
|
|
803
804
|
if (F)
|
|
804
805
|
return F.registerEffect();
|
|
@@ -1191,7 +1192,7 @@ const qe = {
|
|
|
1191
1192
|
} = t;
|
|
1192
1193
|
return [...ft(t, n), !o.disableUnderline && n.underline];
|
|
1193
1194
|
}
|
|
1194
|
-
})(
|
|
1195
|
+
})(ye(({
|
|
1195
1196
|
theme: t
|
|
1196
1197
|
}) => {
|
|
1197
1198
|
let o = t.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
|
|
@@ -1532,7 +1533,7 @@ const Fe = {
|
|
|
1532
1533
|
} = t;
|
|
1533
1534
|
return [...ft(t, n), !o.disableUnderline && n.underline];
|
|
1534
1535
|
}
|
|
1535
|
-
})(
|
|
1536
|
+
})(ye(({
|
|
1536
1537
|
theme: t
|
|
1537
1538
|
}) => {
|
|
1538
1539
|
const n = t.palette.mode === "light", o = n ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", r = n ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", a = n ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", s = n ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
|
|
@@ -1669,7 +1670,7 @@ const Fe = {
|
|
|
1669
1670
|
name: "MuiFilledInput",
|
|
1670
1671
|
slot: "Input",
|
|
1671
1672
|
overridesResolver: mt
|
|
1672
|
-
})(
|
|
1673
|
+
})(ye(({
|
|
1673
1674
|
theme: t
|
|
1674
1675
|
}) => ({
|
|
1675
1676
|
paddingTop: 25,
|
|
@@ -2009,7 +2010,7 @@ const yo = U("fieldset", {
|
|
|
2009
2010
|
}), vo = U("legend", {
|
|
2010
2011
|
name: "MuiNotchedOutlined",
|
|
2011
2012
|
shouldForwardProp: we
|
|
2012
|
-
})(
|
|
2013
|
+
})(ye(({
|
|
2013
2014
|
theme: t
|
|
2014
2015
|
}) => ({
|
|
2015
2016
|
float: "unset",
|
|
@@ -2154,7 +2155,7 @@ const xe = {
|
|
|
2154
2155
|
name: "MuiOutlinedInput",
|
|
2155
2156
|
slot: "Root",
|
|
2156
2157
|
overridesResolver: ft
|
|
2157
|
-
})(
|
|
2158
|
+
})(ye(({
|
|
2158
2159
|
theme: t
|
|
2159
2160
|
}) => {
|
|
2160
2161
|
const n = t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
@@ -2227,7 +2228,7 @@ const xe = {
|
|
|
2227
2228
|
})), Oo = U(fn, {
|
|
2228
2229
|
name: "MuiOutlinedInput",
|
|
2229
2230
|
slot: "NotchedOutline"
|
|
2230
|
-
})(
|
|
2231
|
+
})(ye(({
|
|
2231
2232
|
theme: t
|
|
2232
2233
|
}) => {
|
|
2233
2234
|
const n = t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
|
|
@@ -2238,7 +2239,7 @@ const xe = {
|
|
|
2238
2239
|
name: "MuiOutlinedInput",
|
|
2239
2240
|
slot: "Input",
|
|
2240
2241
|
overridesResolver: mt
|
|
2241
|
-
})(
|
|
2242
|
+
})(ye(({
|
|
2242
2243
|
theme: t
|
|
2243
2244
|
}) => ({
|
|
2244
2245
|
padding: "16.5px 14px",
|
|
@@ -2566,7 +2567,7 @@ const So = (t) => {
|
|
|
2566
2567
|
[`& .${Un.asterisk}`]: n.asterisk
|
|
2567
2568
|
}, n.root, o.formControl && n.formControl, o.size === "small" && n.sizeSmall, o.shrink && n.shrink, !o.disableAnimation && n.animated, o.focused && n.focused, n[o.variant]];
|
|
2568
2569
|
}
|
|
2569
|
-
})(
|
|
2570
|
+
})(ye(({
|
|
2570
2571
|
theme: t
|
|
2571
2572
|
}) => ({
|
|
2572
2573
|
display: "block",
|
|
@@ -2814,7 +2815,7 @@ function Co(t) {
|
|
|
2814
2815
|
} = An({
|
|
2815
2816
|
...s,
|
|
2816
2817
|
externalSlotProps: i
|
|
2817
|
-
}), m =
|
|
2818
|
+
}), m = ve(d, i?.ref, t.additionalProps?.ref);
|
|
2818
2819
|
return $n(n, {
|
|
2819
2820
|
...l,
|
|
2820
2821
|
ref: m
|
|
@@ -3035,7 +3036,7 @@ const vn = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
3035
3036
|
w.previousKeyMatched && ($ || Ke(p, C, !1, d, Ot, w)) ? c.preventDefault() : w.previousKeyMatched = !1;
|
|
3036
3037
|
}
|
|
3037
3038
|
b && b(c);
|
|
3038
|
-
}, T =
|
|
3039
|
+
}, T = ve(f, o);
|
|
3039
3040
|
let g = -1;
|
|
3040
3041
|
u.Children.forEach(i, (c, p) => {
|
|
3041
3042
|
if (!/* @__PURE__ */ u.isValidElement(c)) {
|
|
@@ -3170,7 +3171,7 @@ const Fo = {
|
|
|
3170
3171
|
// eslint-disable-next-line react/prop-types
|
|
3171
3172
|
TransitionComponent: T = Oe,
|
|
3172
3173
|
...g
|
|
3173
|
-
} = n, R = Kn(), c = u.useRef(), p = cn(), v = u.useRef(null), O =
|
|
3174
|
+
} = n, R = Kn(), c = u.useRef(), p = cn(), v = u.useRef(null), O = ve(v, et(s), o), C = (x) => (P) => {
|
|
3174
3175
|
if (x) {
|
|
3175
3176
|
const V = v.current;
|
|
3176
3177
|
P === void 0 ? x(V) : x(V, P);
|
|
@@ -3485,7 +3486,7 @@ function ct(t) {
|
|
|
3485
3486
|
getTabbable: s = Vo,
|
|
3486
3487
|
isEnabled: i = Ho,
|
|
3487
3488
|
open: l
|
|
3488
|
-
} = t, d = u.useRef(!1), m = u.useRef(null), b = u.useRef(null), y = u.useRef(null), E = u.useRef(null), f = u.useRef(!1), h = u.useRef(null), N =
|
|
3489
|
+
} = t, d = u.useRef(!1), m = u.useRef(null), b = u.useRef(null), y = u.useRef(null), E = u.useRef(null), f = u.useRef(!1), h = u.useRef(null), N = ve(et(n), h), T = u.useRef(null);
|
|
3489
3490
|
u.useEffect(() => {
|
|
3490
3491
|
!l || !h.current || (f.current = !o);
|
|
3491
3492
|
}, [o, l]), u.useEffect(() => {
|
|
@@ -3623,7 +3624,7 @@ const ut = /* @__PURE__ */ u.forwardRef(function(n, o) {
|
|
|
3623
3624
|
children: r,
|
|
3624
3625
|
container: a,
|
|
3625
3626
|
disablePortal: s = !1
|
|
3626
|
-
} = n, [i, l] = u.useState(null), d =
|
|
3627
|
+
} = n, [i, l] = u.useState(null), d = ve(/* @__PURE__ */ u.isValidElement(r) ? et(r) : null, o);
|
|
3627
3628
|
if (ze(() => {
|
|
3628
3629
|
s || l(_o(a) || document.body);
|
|
3629
3630
|
}, [a, s]), ze(() => {
|
|
@@ -3697,7 +3698,7 @@ const qo = {
|
|
|
3697
3698
|
// eslint-disable-next-line react/prop-types
|
|
3698
3699
|
TransitionComponent: R = Oe,
|
|
3699
3700
|
...c
|
|
3700
|
-
} = n, p = u.useRef(null), v =
|
|
3701
|
+
} = n, p = u.useRef(null), v = ve(p, et(l), o), O = (M) => (x) => {
|
|
3701
3702
|
if (M) {
|
|
3702
3703
|
const P = p.current;
|
|
3703
3704
|
x === void 0 ? M(P) : M(P, x);
|
|
@@ -4033,7 +4034,7 @@ function Jo(t) {
|
|
|
4033
4034
|
onClose: d,
|
|
4034
4035
|
open: m,
|
|
4035
4036
|
rootRef: b
|
|
4036
|
-
} = t, y = u.useRef({}), E = u.useRef(null), f = u.useRef(null), h =
|
|
4037
|
+
} = t, y = u.useRef({}), E = u.useRef(null), f = u.useRef(null), h = ve(f, b), [N, T] = u.useState(!m), g = Zo(l);
|
|
4037
4038
|
let R = !0;
|
|
4038
4039
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (R = !1);
|
|
4039
4040
|
const c = () => ge(E.current), p = () => (y.current.modalRef = f.current, y.current.mount = E.current, y.current), v = () => {
|
|
@@ -4130,7 +4131,7 @@ const er = (t) => {
|
|
|
4130
4131
|
} = t;
|
|
4131
4132
|
return [n.root, !o.open && o.exited && n.hidden];
|
|
4132
4133
|
}
|
|
4133
|
-
})(
|
|
4134
|
+
})(ye(({
|
|
4134
4135
|
theme: t
|
|
4135
4136
|
}) => ({
|
|
4136
4137
|
position: "fixed",
|
|
@@ -5520,7 +5521,7 @@ const xr = (t) => {
|
|
|
5520
5521
|
name: "Select"
|
|
5521
5522
|
}), Q = u.useRef(null), ee = u.useRef(null), [te, he] = u.useState(null), {
|
|
5522
5523
|
current: Z
|
|
5523
|
-
} = u.useRef($ != null), [L, A] = u.useState(), G =
|
|
5524
|
+
} = u.useRef($ != null), [L, A] = u.useState(), G = ve(o, N), ie = u.useCallback((S) => {
|
|
5524
5525
|
ee.current = S, S && he(S);
|
|
5525
5526
|
}, []), F = te?.parentNode;
|
|
5526
5527
|
u.useImperativeHandle(G, () => ({
|
|
@@ -5960,7 +5961,7 @@ const Tr = Qn(/* @__PURE__ */ I("path", {
|
|
|
5960
5961
|
filled: /* @__PURE__ */ I(Sr, {
|
|
5961
5962
|
ownerState: M
|
|
5962
5963
|
})
|
|
5963
|
-
}[q], k =
|
|
5964
|
+
}[q], k = ve(o, et(X));
|
|
5964
5965
|
return /* @__PURE__ */ I(u.Fragment, {
|
|
5965
5966
|
children: /* @__PURE__ */ u.cloneElement(X, {
|
|
5966
5967
|
// Most of the logic is implemented in `SelectInput`.
|
|
@@ -6527,7 +6528,7 @@ process.env.NODE_ENV !== "production" && (Fn.propTypes = {
|
|
|
6527
6528
|
*/
|
|
6528
6529
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
6529
6530
|
});
|
|
6530
|
-
function
|
|
6531
|
+
function Gr({
|
|
6531
6532
|
label: t,
|
|
6532
6533
|
placeholder: n,
|
|
6533
6534
|
required: o = !1,
|
|
@@ -6595,5 +6596,5 @@ function Kr({
|
|
|
6595
6596
|
);
|
|
6596
6597
|
}
|
|
6597
6598
|
export {
|
|
6598
|
-
|
|
6599
|
+
Gr as TextFieldInput
|
|
6599
6600
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as a from "react";
|
|
2
2
|
import { jsxs as b, jsx as g } from "react/jsx-runtime";
|
|
3
3
|
import { g as w, a as N, c, P as e } from "./generateUtilityClasses-BCID9NF1.js";
|
|
4
|
-
import { u as C, s as O, c as T, a as R, m as E } from "./
|
|
4
|
+
import { u as C, s as O, c as T, a as R, m as E } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
5
5
|
function j(o) {
|
|
6
6
|
return w("MuiSvgIcon", o);
|
|
7
7
|
}
|
|
@@ -2,10 +2,10 @@ import { jsx as c, jsxs as U } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as P } from "./colors-BYtTt7gN.js";
|
|
3
3
|
import * as k from "react";
|
|
4
4
|
import { g as G, a as _, c as i, P as t } from "./generateUtilityClasses-BCID9NF1.js";
|
|
5
|
-
import { u as A, s as f, c as R, a as H, m as O,
|
|
5
|
+
import { u as A, s as f, c as R, a as H, m as O, b as so, r as lo } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
6
6
|
import { c as K, a as co } from "./useTimeout-DmOXPFt0.js";
|
|
7
7
|
import { u as po } from "./useId-CK6Kn3Tn.js";
|
|
8
|
-
import { B as uo } from "./ButtonBase-
|
|
8
|
+
import { B as uo } from "./ButtonBase-DycJOmlJ.js";
|
|
9
9
|
import { css as Y, keyframes as Z } from "@mui/system";
|
|
10
10
|
function go(o) {
|
|
11
11
|
return G("MuiCircularProgress", o);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { GlobalStyles as c } from "@mui/system";
|
|
3
3
|
import { i as m, d as y, T as p, P as o } from "./generateUtilityClasses-BCID9NF1.js";
|
|
4
|
-
import { d as x } from "./
|
|
4
|
+
import { d as x } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
5
5
|
const P = (e) => {
|
|
6
6
|
const r = {
|
|
7
7
|
systemProps: {},
|
package/dist/main.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { AppBarPublic } from './components/AppBarPublic';
|
|
|
2
2
|
export { Banner } from './components/Banner';
|
|
3
3
|
export { Button } from './components/Button';
|
|
4
4
|
export { CheckBox } from './components/Checkbox';
|
|
5
|
+
export { ScrollableDialog as Dialog } from './components/Dialog';
|
|
5
6
|
export { CheckboxGroup } from './components/CheckboxGroup';
|
|
6
7
|
export { Dropdown } from './components/Dropdown';
|
|
7
8
|
export { FlatBanner } from './components/FlatBanner';
|
package/dist/main.js
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { AppBarPublic as e } from "./components/AppBarPublic/index.js";
|
|
2
2
|
import { Banner as p } from "./components/Banner/index.js";
|
|
3
|
-
import { B as f } from "./index-
|
|
3
|
+
import { B as f } from "./index-BPIwhwks.js";
|
|
4
4
|
import { CheckBox as a } from "./components/Checkbox/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { ScrollableDialog as i } from "./components/Dialog/index.js";
|
|
6
|
+
import { CheckboxGroup as B } from "./components/CheckboxGroup/index.js";
|
|
7
|
+
import { Dropdown as c } from "./components/Dropdown/index.js";
|
|
8
|
+
import { FlatBanner as b } from "./components/FlatBanner/index.js";
|
|
9
|
+
import { Label as g } from "./components/Label/index.js";
|
|
10
|
+
import { LinearProgress as C } from "./components/LinearProgress/index.js";
|
|
10
11
|
import { MediaCardWithAction as k } from "./components/MediaCardWithAction/index.js";
|
|
11
12
|
import { RadioButtonGroup as F } from "./components/RadioButtonGroup/index.js";
|
|
12
13
|
import { Stepper as L } from "./components/Stepper/index.js";
|
|
13
|
-
import { Text as
|
|
14
|
+
import { Text as S } from "./components/Text/index.js";
|
|
14
15
|
import { TextFieldInput as w } from "./components/TextFieldInput/index.js";
|
|
15
16
|
export {
|
|
16
17
|
e as AppBarPublic,
|
|
17
18
|
p as Banner,
|
|
18
19
|
f as Button,
|
|
19
20
|
a as CheckBox,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
c as
|
|
23
|
-
b as
|
|
24
|
-
|
|
21
|
+
B as CheckboxGroup,
|
|
22
|
+
i as Dialog,
|
|
23
|
+
c as Dropdown,
|
|
24
|
+
b as FlatBanner,
|
|
25
|
+
g as Label,
|
|
26
|
+
C as LinearProgress,
|
|
25
27
|
k as MediaCardWithAction,
|
|
26
28
|
F as RadioButtonGroup,
|
|
27
29
|
L as Stepper,
|
|
28
|
-
|
|
30
|
+
S as Text,
|
|
29
31
|
w as TextFieldInput
|
|
30
32
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
function a(...e) {
|
|
3
|
+
const r = t.useRef(void 0), o = t.useCallback((n) => {
|
|
4
|
+
const f = e.map((u) => {
|
|
5
|
+
if (u == null)
|
|
6
|
+
return null;
|
|
7
|
+
if (typeof u == "function") {
|
|
8
|
+
const c = u, l = c(n);
|
|
9
|
+
return typeof l == "function" ? l : () => {
|
|
10
|
+
c(null);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
return u.current = n, () => {
|
|
14
|
+
u.current = null;
|
|
15
|
+
};
|
|
16
|
+
});
|
|
17
|
+
return () => {
|
|
18
|
+
f.forEach((u) => u?.());
|
|
19
|
+
};
|
|
20
|
+
}, e);
|
|
21
|
+
return t.useMemo(() => e.every((n) => n == null) ? null : (n) => {
|
|
22
|
+
r.current && (r.current(), r.current = void 0), n != null && (r.current = o(n));
|
|
23
|
+
}, e);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
a as u
|
|
27
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c as S
|
|
1
|
+
import { c as S } from "./DefaultPropsProvider-DVX_ssOt.js";
|
|
2
|
+
import { u as x } from "./useForkRef-9kN4DArm.js";
|
|
2
3
|
function v(e) {
|
|
3
4
|
return typeof e == "string";
|
|
4
5
|
}
|
|
@@ -36,10 +37,10 @@ function k(e) {
|
|
|
36
37
|
additionalProps: t,
|
|
37
38
|
externalSlotProps: s,
|
|
38
39
|
externalForwardedProps: o,
|
|
39
|
-
className:
|
|
40
|
+
className: u
|
|
40
41
|
} = e;
|
|
41
42
|
if (!n) {
|
|
42
|
-
const i = S(t?.className,
|
|
43
|
+
const i = S(t?.className, u, o?.className, s?.className), f = {
|
|
43
44
|
...t?.style,
|
|
44
45
|
...o?.style,
|
|
45
46
|
...s?.style
|
|
@@ -53,10 +54,10 @@ function k(e) {
|
|
|
53
54
|
internalRef: void 0
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
|
-
const
|
|
57
|
+
const d = H({
|
|
57
58
|
...o,
|
|
58
59
|
...s
|
|
59
|
-
}), p = h(s), P = h(o), r = n(
|
|
60
|
+
}), p = h(s), P = h(o), r = n(d), l = S(r?.className, t?.className, u, o?.className, s?.className), m = {
|
|
60
61
|
...r?.style,
|
|
61
62
|
...t?.style,
|
|
62
63
|
...o?.style,
|
|
@@ -72,13 +73,13 @@ function k(e) {
|
|
|
72
73
|
internalRef: r.ref
|
|
73
74
|
};
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function A(e, n) {
|
|
76
77
|
const {
|
|
77
78
|
className: t,
|
|
78
79
|
elementType: s,
|
|
79
80
|
ownerState: o,
|
|
80
|
-
externalForwardedProps:
|
|
81
|
-
internalForwardedProps:
|
|
81
|
+
externalForwardedProps: u,
|
|
82
|
+
internalForwardedProps: d,
|
|
82
83
|
shouldForwardComponentProp: p = !1,
|
|
83
84
|
...P
|
|
84
85
|
} = n, {
|
|
@@ -90,7 +91,7 @@ function R(e, n) {
|
|
|
90
91
|
[e]: void 0
|
|
91
92
|
},
|
|
92
93
|
...c
|
|
93
|
-
} =
|
|
94
|
+
} = u, i = l[e] || s, f = F(m[e], o), {
|
|
94
95
|
props: {
|
|
95
96
|
component: a,
|
|
96
97
|
...N
|
|
@@ -102,8 +103,8 @@ function R(e, n) {
|
|
|
102
103
|
externalForwardedProps: e === "root" ? c : void 0,
|
|
103
104
|
externalSlotProps: f
|
|
104
105
|
}), w = x(g, f?.ref, n.ref), y = e === "root" ? a || r : a, C = E(i, {
|
|
105
|
-
...e === "root" && !r && !l[e] &&
|
|
106
|
-
...e !== "root" && !l[e] &&
|
|
106
|
+
...e === "root" && !r && !l[e] && d,
|
|
107
|
+
...e !== "root" && !l[e] && d,
|
|
107
108
|
...N,
|
|
108
109
|
...y && !p && {
|
|
109
110
|
as: y
|
|
@@ -121,5 +122,5 @@ export {
|
|
|
121
122
|
v as i,
|
|
122
123
|
k as m,
|
|
123
124
|
F as r,
|
|
124
|
-
|
|
125
|
+
A as u
|
|
125
126
|
};
|