@vmscloud/moz-ui-components-react 0.1.49 → 0.1.50
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/components.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +137 -136
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var vt = Object.defineProperty;
|
|
2
2
|
var Tt = (e, t, o) => t in e ? vt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var q = (e, t, o) => Tt(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
-
import { createElement as $, createContext as W, useContext as D, useRef as
|
|
4
|
+
import { createElement as $, createContext as W, useContext as D, useRef as I, forwardRef as bt, useState as U, useLayoutEffect as st, useEffect as Q, useImperativeHandle as ht, Fragment as At, Children as ct, isValidElement as K, useId as Z, useCallback as _, useMemo as N, cloneElement as F } from "react";
|
|
5
5
|
import { createPortal as gt } from "react-dom";
|
|
6
6
|
import { createRoot as Rt } from "react-dom/client";
|
|
7
|
-
import { koKR as lt, createValidator as Ot, SPLITPANE_SPEC as _t, TOOLTIP_SPEC as
|
|
8
|
-
import { createValidator as
|
|
9
|
-
import { jsx as x, jsxs as
|
|
7
|
+
import { koKR as lt, createValidator as Ot, SPLITPANE_SPEC as _t, TOOLTIP_SPEC as Lt, POPOVER_SPEC as It, COLLAPSIBLE_SPEC as xt, AVATAR_SPEC as Mt, SCROLLAREA_SPEC as kt, BUTTON_SPEC as wt, LABEL_SPEC as zt, BADGE_SPEC as jt, CHIP_SPEC as Nt, CALLOUT_SPEC as Bt, TOGGLE_SPEC as Ut, BREADCRUMB_SPEC as Dt, EMPTYSTATE_SPEC as Kt, CHECKBOX_SPEC as Vt, RADIO_SPEC as Wt, INPUT_SPEC as $t, PASSWORDINPUT_SPEC as Ft, TEXTAREA_SPEC as Ht, NUMBERINPUT_SPEC as Gt, TAB_SPEC as qt, SLIDER_SPEC as Xt, CALENDAR_SPEC as Yt, DATEINPUT_SPEC as Jt, POPUP_SPEC as Qt, SELECT_SPEC as Zt, MULTISELECT_SPEC as te, TIMEPICKER_SPEC as ee, TAGINPUT_SPEC as oe, CONTEXTMENU_SPEC as ne, TABLESELECT_SPEC as re, TREESELECT_SPEC as se, CONTROLLER_SPEC as ce, TOAST_SPEC as le } from "@vmscloud/moz-ui-components-core";
|
|
8
|
+
import { createValidator as go, enUS as Ro, jaJP as Oo, koKR as _o, useToast as Lo, zhCN as Io } from "@vmscloud/moz-ui-components-core";
|
|
9
|
+
import { jsx as x, jsxs as ue } from "react/jsx-runtime";
|
|
10
10
|
const X = /* @__PURE__ */ new Set();
|
|
11
11
|
let Y = null;
|
|
12
12
|
function et(e) {
|
|
@@ -17,7 +17,7 @@ function et(e) {
|
|
|
17
17
|
for (const o of t) o.unmount();
|
|
18
18
|
}, 0));
|
|
19
19
|
}
|
|
20
|
-
class
|
|
20
|
+
class ae {
|
|
21
21
|
constructor() {
|
|
22
22
|
q(this, "contextWrapper", null);
|
|
23
23
|
q(this, "roots", /* @__PURE__ */ new Set());
|
|
@@ -69,17 +69,17 @@ function Ie({
|
|
|
69
69
|
)
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ie() {
|
|
73
73
|
return D(ut);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function pe() {
|
|
76
76
|
return D(at);
|
|
77
77
|
}
|
|
78
78
|
const tt = W(null);
|
|
79
|
-
function
|
|
79
|
+
function xe({
|
|
80
80
|
children: e
|
|
81
81
|
}) {
|
|
82
|
-
const t =
|
|
82
|
+
const t = I();
|
|
83
83
|
t.current || (t.current = Ot());
|
|
84
84
|
const o = { validate: t.current.validate, initValidator: t.current.initValidator };
|
|
85
85
|
return $(
|
|
@@ -88,13 +88,13 @@ function Le({
|
|
|
88
88
|
typeof e == "function" ? e(o) : e
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Me() {
|
|
92
92
|
return D(tt);
|
|
93
93
|
}
|
|
94
94
|
function H(e) {
|
|
95
95
|
return e.startsWith("update:") ? "on" + e.slice(7).charAt(0).toUpperCase() + e.slice(8) + "Change" : "on" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function fe(e, t) {
|
|
98
98
|
if (Object.is(e, t)) return !0;
|
|
99
99
|
if (typeof e != "object" || typeof t != "object" || e === null || t === null) return !1;
|
|
100
100
|
const o = Object.keys(e), r = Object.keys(t);
|
|
@@ -127,7 +127,7 @@ function p(e) {
|
|
|
127
127
|
// 코어(Tab)는 이 통로 없이는 React 에서 콘텐츠를 받을 수 없었다.
|
|
128
128
|
"slots"
|
|
129
129
|
]), r = bt((n, c) => {
|
|
130
|
-
const s =
|
|
130
|
+
const s = I(null), l = I(void 0), f = I(void 0), [m, y] = U(() => /* @__PURE__ */ new Map());
|
|
131
131
|
if (!f.current) {
|
|
132
132
|
const E = {};
|
|
133
133
|
Object.defineProperty(E, "el", {
|
|
@@ -138,11 +138,11 @@ function p(e) {
|
|
|
138
138
|
enumerable: !0
|
|
139
139
|
}), f.current = E;
|
|
140
140
|
}
|
|
141
|
-
const u =
|
|
142
|
-
u.current || (u.current = new
|
|
143
|
-
const d =
|
|
141
|
+
const u = I();
|
|
142
|
+
u.current || (u.current = new ae());
|
|
143
|
+
const d = pe();
|
|
144
144
|
u.current.setContextWrapper(d);
|
|
145
|
-
const a =
|
|
145
|
+
const a = ie(), S = D(tt), T = I(n);
|
|
146
146
|
T.current = n;
|
|
147
147
|
const b = ((E, ...i) => {
|
|
148
148
|
const v = H(String(E)), h = T.current[v];
|
|
@@ -178,7 +178,7 @@ function p(e) {
|
|
|
178
178
|
// setState … 로 끝나지 않는 비동기 루프가 된다(소비처 실측: 페이지 테스트 타임아웃).
|
|
179
179
|
update: (k) => y((w) => {
|
|
180
180
|
const j = w.get(M);
|
|
181
|
-
return !j ||
|
|
181
|
+
return !j || fe(j.scope, k) ? w : new Map(w).set(M, { ...j, scope: k });
|
|
182
182
|
}),
|
|
183
183
|
dispose: () => y((k) => {
|
|
184
184
|
if (!k.has(M)) return k;
|
|
@@ -213,15 +213,15 @@ function p(e) {
|
|
|
213
213
|
}
|
|
214
214
|
const v = E.slots;
|
|
215
215
|
return i.__dynamicSlotKeys = v ? Object.keys(v).sort().join("\0") : "", i;
|
|
216
|
-
}, R =
|
|
216
|
+
}, R = I(null);
|
|
217
217
|
Q(() => {
|
|
218
218
|
const E = l.current;
|
|
219
219
|
if (!E) return;
|
|
220
220
|
const i = C(), v = g(), h = R.current;
|
|
221
221
|
h && h.locale === a && ot(h.props, i) && ot(h.slots, v) || (R.current = { props: i, slots: v, locale: a }, (!h || h.locale !== a) && E.setLocale(a), E.update(i, { replace: !0, sync: e.syncUpdate }));
|
|
222
222
|
}), ht(c, () => f.current, []);
|
|
223
|
-
const
|
|
224
|
-
const v =
|
|
223
|
+
const L = n.slots, B = Array.from(m, ([E, i]) => {
|
|
224
|
+
const v = L == null ? void 0 : L[i.name], h = (typeof v == "function" ? v(i.scope) : v) ?? null;
|
|
225
225
|
return gt(h, i.el, E);
|
|
226
226
|
});
|
|
227
227
|
return $(
|
|
@@ -233,9 +233,9 @@ function p(e) {
|
|
|
233
233
|
});
|
|
234
234
|
return r.displayName = e.name, r;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const de = p(_t), Ce = (e) => null, ke = ({ horizontal: e, children: t }) => {
|
|
237
237
|
const o = ct.toArray(t).filter(
|
|
238
|
-
(c) => K(c) && c.type ===
|
|
238
|
+
(c) => K(c) && c.type === Ce
|
|
239
239
|
), r = o.map((c) => ({
|
|
240
240
|
size: c.props.size,
|
|
241
241
|
minSize: c.props.minSize,
|
|
@@ -244,12 +244,12 @@ const fe = p(_t), de = (e) => null, Me = ({ horizontal: e, children: t }) => {
|
|
|
244
244
|
})), n = {};
|
|
245
245
|
return o.forEach((c, s) => {
|
|
246
246
|
n[`pane-${s}`] = c.props.children;
|
|
247
|
-
}), /* @__PURE__ */ x(
|
|
248
|
-
},
|
|
247
|
+
}), /* @__PURE__ */ x(de, { panes: r, horizontal: e, ...n });
|
|
248
|
+
}, Ee = p(Lt), J = /* @__PURE__ */ new Set(), it = 200, Pe = 100, pt = W({
|
|
249
249
|
delayDuration: it,
|
|
250
250
|
disableHoverableContent: !1
|
|
251
251
|
});
|
|
252
|
-
function
|
|
252
|
+
function we({
|
|
253
253
|
delayDuration: e = it,
|
|
254
254
|
disableHoverableContent: t = !1,
|
|
255
255
|
children: o
|
|
@@ -266,7 +266,7 @@ function dt(e) {
|
|
|
266
266
|
if (!t) throw new Error(`${e} 는 <Tooltip> 안에서만 쓸 수 있습니다.`);
|
|
267
267
|
return t;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function ze({
|
|
270
270
|
open: e,
|
|
271
271
|
defaultOpen: t = !1,
|
|
272
272
|
onOpenChange: o,
|
|
@@ -274,43 +274,43 @@ function we({
|
|
|
274
274
|
disableHoverableContent: n,
|
|
275
275
|
children: c
|
|
276
276
|
}) {
|
|
277
|
-
const s = D(pt), l = r ?? s.delayDuration, f = !(n ?? s.disableHoverableContent), [m, y] = U(t), u = e !== void 0, d = u ? !!e : m, [a, S] = U(null), T = `moz-tooltip-${Z()}`, b =
|
|
277
|
+
const s = D(pt), l = r ?? s.delayDuration, f = !(n ?? s.disableHoverableContent), [m, y] = U(t), u = e !== void 0, d = u ? !!e : m, [a, S] = U(null), T = `moz-tooltip-${Z()}`, b = I(null), C = I(null), g = I(o);
|
|
278
278
|
g.current = o;
|
|
279
279
|
const R = _(() => {
|
|
280
280
|
b.current && clearTimeout(b.current), C.current && clearTimeout(C.current), b.current = null, C.current = null;
|
|
281
|
-
}, []),
|
|
281
|
+
}, []), L = _(
|
|
282
282
|
(A) => {
|
|
283
283
|
var z;
|
|
284
284
|
u || y(A), (z = g.current) == null || z.call(g, A);
|
|
285
285
|
},
|
|
286
286
|
[u]
|
|
287
287
|
), B = _(() => {
|
|
288
|
-
R(),
|
|
289
|
-
}, [R,
|
|
288
|
+
R(), L(!0);
|
|
289
|
+
}, [R, L]), E = _(() => {
|
|
290
290
|
if (C.current && (clearTimeout(C.current), C.current = null), !b.current) {
|
|
291
291
|
if (l <= 0) {
|
|
292
|
-
|
|
292
|
+
L(!0);
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
295
|
b.current = setTimeout(() => {
|
|
296
|
-
b.current = null,
|
|
296
|
+
b.current = null, L(!0);
|
|
297
297
|
}, l);
|
|
298
298
|
}
|
|
299
|
-
}, [l,
|
|
300
|
-
R(),
|
|
301
|
-
}, [R,
|
|
299
|
+
}, [l, L]), i = _(() => {
|
|
300
|
+
R(), L(!1);
|
|
301
|
+
}, [R, L]), v = _(() => {
|
|
302
302
|
if (b.current && (clearTimeout(b.current), b.current = null), !f) {
|
|
303
|
-
|
|
303
|
+
L(!1);
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
306
|
C.current || (C.current = setTimeout(() => {
|
|
307
|
-
C.current = null,
|
|
308
|
-
},
|
|
309
|
-
}, [f,
|
|
307
|
+
C.current = null, L(!1);
|
|
308
|
+
}, Pe));
|
|
309
|
+
}, [f, L]), h = _(() => {
|
|
310
310
|
C.current && (clearTimeout(C.current), C.current = null);
|
|
311
311
|
}, []);
|
|
312
312
|
Q(() => R, [R]);
|
|
313
|
-
const P =
|
|
313
|
+
const P = I(i);
|
|
314
314
|
P.current = i, Q(() => {
|
|
315
315
|
if (!d) return;
|
|
316
316
|
const A = () => P.current();
|
|
@@ -348,15 +348,15 @@ function V(e, t) {
|
|
|
348
348
|
function nt(e, t) {
|
|
349
349
|
e && (typeof e == "function" ? e(t) : e.current = t);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
const o = dt("TooltipTrigger"), { open: r, contentId: n, setAnchor: c, openNow: s, openDelayed: l, closeNow: f, closeSoon: m } = o, y = K(t) ? t : null, u = (y == null ? void 0 : y.props) ?? {}, d = y == null ? void 0 : y.ref, a =
|
|
351
|
+
function je({ asChild: e = !1, children: t }) {
|
|
352
|
+
const o = dt("TooltipTrigger"), { open: r, contentId: n, setAnchor: c, openNow: s, openDelayed: l, closeNow: f, closeSoon: m } = o, y = K(t) ? t : null, u = (y == null ? void 0 : y.props) ?? {}, d = y == null ? void 0 : y.ref, a = I(d);
|
|
353
353
|
a.current = d;
|
|
354
|
-
const S =
|
|
354
|
+
const S = I(null), T = _(
|
|
355
355
|
(g) => {
|
|
356
356
|
S.current = g, c(g), nt(a.current, g);
|
|
357
357
|
},
|
|
358
358
|
[c]
|
|
359
|
-
), b =
|
|
359
|
+
), b = I(d);
|
|
360
360
|
st(() => {
|
|
361
361
|
b.current !== d && (b.current = d, nt(d, S.current));
|
|
362
362
|
});
|
|
@@ -380,7 +380,7 @@ function ze({ asChild: e = !1, children: t }) {
|
|
|
380
380
|
};
|
|
381
381
|
return e && y ? F(y, C) : /* @__PURE__ */ x("span", { ...C, children: t });
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Ne({
|
|
384
384
|
side: e = "top",
|
|
385
385
|
align: t = "center",
|
|
386
386
|
sideOffset: o = 8,
|
|
@@ -391,11 +391,11 @@ function je({
|
|
|
391
391
|
children: l,
|
|
392
392
|
...f
|
|
393
393
|
}) {
|
|
394
|
-
const m = dt("TooltipContent"), { open: y, anchor: u, contentId: d, hoverable: a, cancelClose: S, closeSoon: T } = m, b =
|
|
394
|
+
const m = dt("TooltipContent"), { open: y, anchor: u, contentId: d, hoverable: a, cancelClose: S, closeSoon: T } = m, b = I({ cancelClose: S, closeSoon: T });
|
|
395
395
|
b.current = { cancelClose: S, closeSoon: T };
|
|
396
396
|
const C = _(() => b.current.cancelClose(), []), g = _(() => b.current.closeSoon(), []), R = N(() => ({ content: l }), [l]);
|
|
397
397
|
return /* @__PURE__ */ x(
|
|
398
|
-
|
|
398
|
+
Ee,
|
|
399
399
|
{
|
|
400
400
|
open: y,
|
|
401
401
|
anchor: u,
|
|
@@ -415,7 +415,7 @@ function je({
|
|
|
415
415
|
}
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
|
-
const
|
|
418
|
+
const me = p(It), Ct = W(null);
|
|
419
419
|
function G(e) {
|
|
420
420
|
const t = D(Ct);
|
|
421
421
|
if (!t) throw new Error(`${e} 는 <Popover> 안에서만 쓸 수 있습니다.`);
|
|
@@ -432,8 +432,8 @@ function Pt(e, t) {
|
|
|
432
432
|
typeof e == "function" && e(o), t(o);
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
const [n, c] = U(t), s = e !== void 0, l = s ? !!e : n, [f, m] = U(null), [y, u] = U(null), d = `moz-popover-${Z()}`, a =
|
|
435
|
+
function Be({ open: e, defaultOpen: t = !1, onOpenChange: o, children: r }) {
|
|
436
|
+
const [n, c] = U(t), s = e !== void 0, l = s ? !!e : n, [f, m] = U(null), [y, u] = U(null), d = `moz-popover-${Z()}`, a = I(o);
|
|
437
437
|
a.current = o;
|
|
438
438
|
const S = _(
|
|
439
439
|
(b) => {
|
|
@@ -447,7 +447,7 @@ function Ne({ open: e, defaultOpen: t = !1, onOpenChange: o, children: r }) {
|
|
|
447
447
|
);
|
|
448
448
|
return /* @__PURE__ */ x(Ct.Provider, { value: T, children: r });
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Ue({ asChild: e = !1, children: t }) {
|
|
451
451
|
const { open: o, setOpen: r, contentId: n, setTriggerEl: c } = G("PopoverTrigger"), s = K(t) ? t : null, l = (s == null ? void 0 : s.props) ?? {}, m = {
|
|
452
452
|
ref: N(
|
|
453
453
|
() => Et(c, s == null ? void 0 : s.ref),
|
|
@@ -461,20 +461,20 @@ function Be({ asChild: e = !1, children: t }) {
|
|
|
461
461
|
};
|
|
462
462
|
return e && s ? F(s, m) : /* @__PURE__ */ x("span", { ...m, children: t });
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function De({ asChild: e = !1, children: t }) {
|
|
465
465
|
const { setAnchorEl: o } = G("PopoverAnchor"), r = K(t) ? t : null, n = N(
|
|
466
466
|
() => Et(o, r == null ? void 0 : r.ref),
|
|
467
467
|
[o, r]
|
|
468
468
|
);
|
|
469
469
|
return e && r ? F(r, { ref: n }) : /* @__PURE__ */ x("span", { ref: n, children: t });
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Ke({ asChild: e = !1, children: t }) {
|
|
472
472
|
const { setOpen: o } = G("PopoverClose"), r = K(t) ? t : null, n = (r == null ? void 0 : r.props) ?? {}, c = {
|
|
473
473
|
onClick: Pt(n.onClick, () => o(!1))
|
|
474
474
|
};
|
|
475
475
|
return e && r ? F(r, c) : /* @__PURE__ */ x("button", { type: "button", ...c, children: t });
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function Ve({
|
|
478
478
|
side: e = "bottom",
|
|
479
479
|
align: t = "start",
|
|
480
480
|
sideOffset: o = 4,
|
|
@@ -490,9 +490,9 @@ function Ke({
|
|
|
490
490
|
children: d,
|
|
491
491
|
...a
|
|
492
492
|
}) {
|
|
493
|
-
const { open: S, setOpen: T, contentId: b, triggerEl: C, anchorEl: g } = G("PopoverContent"), R =
|
|
493
|
+
const { open: S, setOpen: T, contentId: b, triggerEl: C, anchorEl: g } = G("PopoverContent"), R = I({ setOpen: T, triggerEl: C, anchorEl: g, onOpenAutoFocus: f, onCloseAutoFocus: m, onEscapeKeyDown: y, onInteractOutside: u });
|
|
494
494
|
R.current = { setOpen: T, triggerEl: C, anchorEl: g, onOpenAutoFocus: f, onCloseAutoFocus: m, onEscapeKeyDown: y, onInteractOutside: u };
|
|
495
|
-
const
|
|
495
|
+
const L = _((P) => {
|
|
496
496
|
R.current.setOpen(!1);
|
|
497
497
|
}, []), B = _((P) => {
|
|
498
498
|
var O, A;
|
|
@@ -513,7 +513,7 @@ function Ke({
|
|
|
513
513
|
(A = (O = R.current).onCloseAutoFocus) == null || A.call(O, P);
|
|
514
514
|
}, []), h = N(() => ({ content: d }), [d]);
|
|
515
515
|
return /* @__PURE__ */ x(
|
|
516
|
-
|
|
516
|
+
me,
|
|
517
517
|
{
|
|
518
518
|
open: S,
|
|
519
519
|
anchor: g ?? C,
|
|
@@ -527,7 +527,7 @@ function Ke({
|
|
|
527
527
|
className: s,
|
|
528
528
|
style: l,
|
|
529
529
|
slots: h,
|
|
530
|
-
onRequestClose:
|
|
530
|
+
onRequestClose: L,
|
|
531
531
|
onEscapeKeyDown: B,
|
|
532
532
|
onInteractOutside: E,
|
|
533
533
|
onOpenAutoFocus: i,
|
|
@@ -536,13 +536,13 @@ function Ke({
|
|
|
536
536
|
}
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const ye = p(xt), mt = W(null);
|
|
540
540
|
function yt(e) {
|
|
541
541
|
const t = D(mt);
|
|
542
542
|
if (!t) throw new Error(`${e} 는 <Collapsible> 안에서만 쓸 수 있습니다.`);
|
|
543
543
|
return t;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Se(...e) {
|
|
546
546
|
return (t) => {
|
|
547
547
|
for (const o of e)
|
|
548
548
|
o && (typeof o == "function" ? o(t) : o.current = t);
|
|
@@ -557,7 +557,7 @@ function St(e, t) {
|
|
|
557
557
|
const o = [e, t].filter((r) => typeof r == "string" && r.length > 0).join(" ");
|
|
558
558
|
return o.length > 0 ? o : void 0;
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function We({
|
|
561
561
|
open: e,
|
|
562
562
|
defaultOpen: t = !1,
|
|
563
563
|
onOpenChange: o,
|
|
@@ -568,12 +568,12 @@ function Ve({
|
|
|
568
568
|
children: l,
|
|
569
569
|
...f
|
|
570
570
|
}) {
|
|
571
|
-
const [m, y] = U(t), u = e !== void 0, d = u ? !!e : m, a = `moz-collapsible-${Z()}`, S =
|
|
571
|
+
const [m, y] = U(t), u = e !== void 0, d = u ? !!e : m, a = `moz-collapsible-${Z()}`, S = I(o);
|
|
572
572
|
S.current = o;
|
|
573
573
|
const T = _(
|
|
574
|
-
(
|
|
574
|
+
(L) => {
|
|
575
575
|
var B;
|
|
576
|
-
u || y(
|
|
576
|
+
u || y(L), (B = S.current) == null || B.call(S, L);
|
|
577
577
|
},
|
|
578
578
|
[u]
|
|
579
579
|
), b = N(
|
|
@@ -590,7 +590,7 @@ function Ve({
|
|
|
590
590
|
}) : /* @__PURE__ */ x("div", { ...C, className: c, style: s, children: l });
|
|
591
591
|
return /* @__PURE__ */ x(mt.Provider, { value: b, children: R });
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function $e({
|
|
594
594
|
asChild: e = !1,
|
|
595
595
|
disabled: t,
|
|
596
596
|
className: o,
|
|
@@ -609,7 +609,7 @@ function We({
|
|
|
609
609
|
...s
|
|
610
610
|
};
|
|
611
611
|
if (e && a) {
|
|
612
|
-
const b =
|
|
612
|
+
const b = Se(a.ref);
|
|
613
613
|
return F(a, {
|
|
614
614
|
...T,
|
|
615
615
|
ref: b,
|
|
@@ -636,7 +636,7 @@ function We({
|
|
|
636
636
|
}
|
|
637
637
|
);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Fe({
|
|
640
640
|
forceMount: e = !1,
|
|
641
641
|
className: t,
|
|
642
642
|
style: o,
|
|
@@ -644,14 +644,14 @@ function $e({
|
|
|
644
644
|
children: n,
|
|
645
645
|
...c
|
|
646
646
|
}) {
|
|
647
|
-
const { open: s, contentId: l, disabled: f } = yt("CollapsibleContent"), m =
|
|
647
|
+
const { open: s, contentId: l, disabled: f } = yt("CollapsibleContent"), m = I({ onHeightChange: r });
|
|
648
648
|
m.current = { onHeightChange: r };
|
|
649
649
|
const y = _((d) => {
|
|
650
650
|
var a, S;
|
|
651
651
|
(S = (a = m.current).onHeightChange) == null || S.call(a, d);
|
|
652
652
|
}, []), u = N(() => ({ content: n }), [n]);
|
|
653
653
|
return /* @__PURE__ */ x(
|
|
654
|
-
|
|
654
|
+
ye,
|
|
655
655
|
{
|
|
656
656
|
open: s,
|
|
657
657
|
forceMount: e,
|
|
@@ -665,21 +665,21 @@ function $e({
|
|
|
665
665
|
}
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
|
-
const
|
|
669
|
-
function
|
|
668
|
+
const ve = p(Mt);
|
|
669
|
+
function Te(e) {
|
|
670
670
|
return null;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function be(e) {
|
|
673
673
|
return null;
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function He({ className: e, style: t, onLoadingStatusChange: o, children: r, ...n }) {
|
|
676
676
|
let c, s;
|
|
677
677
|
ct.forEach(r, (m) => {
|
|
678
|
-
K(m) && (m.type ===
|
|
678
|
+
K(m) && (m.type === Te ? c = m.props : m.type === be && (s = m.props));
|
|
679
679
|
});
|
|
680
680
|
const l = s == null ? void 0 : s.children, f = N(() => ({ fallback: l }), [l]);
|
|
681
681
|
return /* @__PURE__ */ x(
|
|
682
|
-
|
|
682
|
+
ve,
|
|
683
683
|
{
|
|
684
684
|
src: c == null ? void 0 : c.src,
|
|
685
685
|
alt: c == null ? void 0 : c.alt,
|
|
@@ -694,8 +694,8 @@ function Fe({ className: e, style: t, onLoadingStatusChange: o, children: r, ...
|
|
|
694
694
|
}
|
|
695
695
|
);
|
|
696
696
|
}
|
|
697
|
-
const
|
|
698
|
-
function
|
|
697
|
+
const he = p(kt);
|
|
698
|
+
function Ge({
|
|
699
699
|
orientation: e = "vertical",
|
|
700
700
|
scrollbarVisibility: t = "always",
|
|
701
701
|
className: o,
|
|
@@ -714,7 +714,7 @@ function He({
|
|
|
714
714
|
},
|
|
715
715
|
[s]
|
|
716
716
|
);
|
|
717
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ ue("div", { className: ["moz-scroll-area", o].filter(Boolean).join(" "), style: l, ...y, children: [
|
|
718
718
|
/* @__PURE__ */ x(
|
|
719
719
|
"div",
|
|
720
720
|
{
|
|
@@ -725,7 +725,7 @@ function He({
|
|
|
725
725
|
}
|
|
726
726
|
),
|
|
727
727
|
/* @__PURE__ */ x(
|
|
728
|
-
|
|
728
|
+
he,
|
|
729
729
|
{
|
|
730
730
|
viewport: u,
|
|
731
731
|
interactionRoot: u == null ? void 0 : u.parentElement,
|
|
@@ -738,68 +738,69 @@ function He({
|
|
|
738
738
|
)
|
|
739
739
|
] });
|
|
740
740
|
}
|
|
741
|
-
const
|
|
741
|
+
const qe = p(wt), Xe = p(zt), Ye = p(jt), Je = p(Nt), Qe = p(Bt), Ze = p(Ut), to = p(Dt), eo = p(Kt), oo = p(Vt), no = p(Wt), ro = p($t), so = p(Ft), co = p(Ht), lo = p(Gt), uo = p(qt), ao = p(Xt), io = p(Yt), po = p(Jt), fo = p(Qt), Co = p(Zt), Eo = p(te), Po = p(ee), mo = p(oe), yo = p(ne), So = p(re), vo = p(se), To = p(ce), bo = p(le);
|
|
742
742
|
export {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
743
|
+
He as Avatar,
|
|
744
|
+
be as AvatarFallback,
|
|
745
|
+
Te as AvatarImage,
|
|
746
|
+
Ye as Badge,
|
|
747
|
+
to as BreadCrumb,
|
|
748
|
+
qe as Button,
|
|
749
|
+
io as Calendar,
|
|
750
|
+
Qe as Callout,
|
|
751
|
+
oo as CheckBox,
|
|
752
|
+
Je as Chip,
|
|
753
|
+
We as Collapsible,
|
|
754
|
+
Fe as CollapsibleContent,
|
|
755
|
+
$e as CollapsibleTrigger,
|
|
756
|
+
yo as ContextMenu,
|
|
757
|
+
To as Controller,
|
|
758
|
+
po as DateInput,
|
|
759
|
+
eo as EmptyState,
|
|
760
|
+
ro as Input,
|
|
761
|
+
Xe as Label,
|
|
761
762
|
Ie as MozConfigProvider,
|
|
762
763
|
at as MozContextWrapperContext,
|
|
763
764
|
ut as MozLocaleContext,
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
765
|
+
Eo as MultiSelect,
|
|
766
|
+
lo as NumberInput,
|
|
767
|
+
Ce as Pane,
|
|
768
|
+
so as PasswordInput,
|
|
769
|
+
Be as Popover,
|
|
770
|
+
De as PopoverAnchor,
|
|
771
|
+
Ke as PopoverClose,
|
|
772
|
+
Ve as PopoverContent,
|
|
773
|
+
Ue as PopoverTrigger,
|
|
774
|
+
fo as Popup,
|
|
775
|
+
no as Radio,
|
|
776
|
+
ae as ReactRenderer,
|
|
777
|
+
Ge as ScrollArea,
|
|
778
|
+
Co as Select,
|
|
779
|
+
ao as Slider,
|
|
780
|
+
ke as SplitPane,
|
|
781
|
+
uo as Tab,
|
|
782
|
+
So as TableSelect,
|
|
783
|
+
mo as TagInput,
|
|
784
|
+
co as TextArea,
|
|
785
|
+
Po as TimePicker,
|
|
786
|
+
bo as Toast,
|
|
787
|
+
Ze as Toggle,
|
|
788
|
+
ze as Tooltip,
|
|
789
|
+
Ne as TooltipContent,
|
|
790
|
+
we as TooltipProvider,
|
|
791
|
+
je as TooltipTrigger,
|
|
792
|
+
vo as TreeSelect,
|
|
793
|
+
xe as Validator,
|
|
793
794
|
tt as ValidatorReactContext,
|
|
794
795
|
p as createMozComponent,
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
796
|
+
go as createValidator,
|
|
797
|
+
Ro as enUS,
|
|
798
|
+
Oo as jaJP,
|
|
799
|
+
_o as koKR,
|
|
800
|
+
pe as useMozContextWrapper,
|
|
801
|
+
ie as useMozLocale,
|
|
802
|
+
Lo as useToast,
|
|
803
|
+
Me as useValidatorContext,
|
|
804
|
+
Io as zhCN
|
|
804
805
|
};
|
|
805
806
|
//# sourceMappingURL=index.js.map
|