@vmscloud/moz-ui-components-react 0.1.45 → 0.1.47

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
@@ -4,9 +4,9 @@ var q = (e, t, o) => Tt(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import { createElement as $, createContext as W, useContext as D, useRef as L, 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 It, POPOVER_SPEC as Lt, COLLAPSIBLE_SPEC as xt, AVATAR_SPEC as Mt, SCROLLAREA_SPEC as kt, BUTTON_SPEC as wt, LABEL_SPEC as zt, TOGGLE_SPEC as jt, BREADCRUMB_SPEC as Nt, EMPTYSTATE_SPEC as Bt, CHECKBOX_SPEC as Ut, RADIO_SPEC as Dt, INPUT_SPEC as Kt, PASSWORDINPUT_SPEC as Vt, TEXTAREA_SPEC as Wt, NUMBERINPUT_SPEC as $t, TAB_SPEC as Ft, SLIDER_SPEC as Ht, CALENDAR_SPEC as Gt, DATEINPUT_SPEC as qt, POPUP_SPEC as Xt, SELECT_SPEC as Yt, MULTISELECT_SPEC as Jt, TIMEPICKER_SPEC as Qt, TAGINPUT_SPEC as Zt, CONTEXTMENU_SPEC as te, TABLESELECT_SPEC as ee, TREESELECT_SPEC as oe, CONTROLLER_SPEC as ne, TOAST_SPEC as re } from "@vmscloud/moz-ui-components-core";
8
- import { createValidator as vo, enUS as So, jaJP as To, koKR as bo, useToast as ho, zhCN as Ao } from "@vmscloud/moz-ui-components-core";
9
- import { jsx as x, jsxs as se } from "react/jsx-runtime";
7
+ import { koKR as lt, createValidator as Ot, SPLITPANE_SPEC as _t, TOOLTIP_SPEC as It, POPOVER_SPEC as Lt, COLLAPSIBLE_SPEC as xt, AVATAR_SPEC as Mt, SCROLLAREA_SPEC as kt, BUTTON_SPEC as wt, LABEL_SPEC as zt, BADGE_SPEC as jt, TOGGLE_SPEC as Nt, BREADCRUMB_SPEC as Bt, EMPTYSTATE_SPEC as Ut, CHECKBOX_SPEC as Dt, RADIO_SPEC as Kt, INPUT_SPEC as Vt, PASSWORDINPUT_SPEC as Wt, TEXTAREA_SPEC as $t, NUMBERINPUT_SPEC as Ft, TAB_SPEC as Gt, SLIDER_SPEC as Ht, CALENDAR_SPEC as qt, DATEINPUT_SPEC as Xt, POPUP_SPEC as Yt, SELECT_SPEC as Jt, MULTISELECT_SPEC as Qt, TIMEPICKER_SPEC as Zt, TAGINPUT_SPEC as te, CONTEXTMENU_SPEC as ee, TABLESELECT_SPEC as oe, TREESELECT_SPEC as ne, CONTROLLER_SPEC as re, TOAST_SPEC as se } from "@vmscloud/moz-ui-components-core";
8
+ import { createValidator as To, enUS as bo, jaJP as ho, koKR as Ao, useToast as go, zhCN as Ro } from "@vmscloud/moz-ui-components-core";
9
+ import { jsx as x, jsxs as ce } 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 ce {
20
+ class le {
21
21
  constructor() {
22
22
  q(this, "contextWrapper", null);
23
23
  q(this, "roots", /* @__PURE__ */ new Set());
@@ -54,7 +54,7 @@ class ce {
54
54
  }
55
55
  }
56
56
  const ut = W(lt), at = W(null);
57
- function Oe({
57
+ function _e({
58
58
  locale: e = lt,
59
59
  contextWrapper: t,
60
60
  children: o
@@ -69,14 +69,14 @@ function Oe({
69
69
  )
70
70
  );
71
71
  }
72
- function le() {
72
+ function ue() {
73
73
  return D(ut);
74
74
  }
75
- function ue() {
75
+ function ae() {
76
76
  return D(at);
77
77
  }
78
78
  const tt = W(null);
79
- function _e({
79
+ function Ie({
80
80
  children: e
81
81
  }) {
82
82
  const t = L();
@@ -88,13 +88,13 @@ function _e({
88
88
  typeof e == "function" ? e(o) : e
89
89
  );
90
90
  }
91
- function Ie() {
91
+ function Le() {
92
92
  return D(tt);
93
93
  }
94
- function H(e) {
94
+ function G(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 ae(e, t) {
97
+ function ie(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);
@@ -107,15 +107,15 @@ function ot(e, t) {
107
107
  if (!Object.prototype.hasOwnProperty.call(t, n) || !Object.is(e[n], t[n])) return !1;
108
108
  return !0;
109
109
  }
110
- function m(e) {
110
+ function P(e) {
111
111
  const t = e.models ?? {}, o = /* @__PURE__ */ new Set([
112
112
  ...e.props,
113
113
  ...Object.keys(t),
114
114
  ...Object.values(t).map((n) => n.prop),
115
115
  ...(e.slots ?? []).map((n) => n === "default" ? "children" : n),
116
- ...(e.emits ?? []).map(H),
117
- ...Object.keys(t).map((n) => H(`update:${n}`)),
118
- ...Object.values(t).map((n) => H(n.event)),
116
+ ...(e.emits ?? []).map(G),
117
+ ...Object.keys(t).map((n) => G(`update:${n}`)),
118
+ ...Object.values(t).map((n) => G(n.event)),
119
119
  "children",
120
120
  "className",
121
121
  "style",
@@ -127,7 +127,7 @@ function m(e) {
127
127
  // 코어(Tab)는 이 통로 없이는 React 에서 콘텐츠를 받을 수 없었다.
128
128
  "slots"
129
129
  ]), r = bt((n, c) => {
130
- const s = L(null), l = L(void 0), p = L(void 0), [P, y] = U(() => /* @__PURE__ */ new Map());
130
+ const s = L(null), l = L(void 0), p = L(void 0), [m, y] = U(() => /* @__PURE__ */ new Map());
131
131
  if (!p.current) {
132
132
  const C = {};
133
133
  Object.defineProperty(C, "el", {
@@ -139,13 +139,13 @@ function m(e) {
139
139
  }), p.current = C;
140
140
  }
141
141
  const u = L();
142
- u.current || (u.current = new ce());
143
- const f = ue();
142
+ u.current || (u.current = new le());
143
+ const f = ae();
144
144
  u.current.setContextWrapper(f);
145
- const a = le(), v = D(tt), T = L(n);
145
+ const a = ue(), v = D(tt), T = L(n);
146
146
  T.current = n;
147
147
  const b = ((C, ...i) => {
148
- const S = H(String(C)), h = T.current[S];
148
+ const S = G(String(C)), h = T.current[S];
149
149
  typeof h == "function" && h(...i);
150
150
  }), d = () => {
151
151
  const C = T.current, i = {};
@@ -178,7 +178,7 @@ function m(e) {
178
178
  // setState … 로 끝나지 않는 비동기 루프가 된다(소비처 실측: 페이지 테스트 타임아웃).
179
179
  update: (k) => y((w) => {
180
180
  const j = w.get(M);
181
- return !j || ae(j.scope, k) ? w : new Map(w).set(M, { ...j, scope: k });
181
+ return !j || ie(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;
@@ -220,7 +220,7 @@ function m(e) {
220
220
  const i = d(), S = g(), h = R.current;
221
221
  h && h.locale === a && ot(h.props, i) && ot(h.slots, S) || (R.current = { props: i, slots: S, locale: a }, (!h || h.locale !== a) && C.setLocale(a), C.update(i, { replace: !0, sync: e.syncUpdate }));
222
222
  }), ht(c, () => p.current, []);
223
- const I = n.slots, B = Array.from(P, ([C, i]) => {
223
+ const I = n.slots, B = Array.from(m, ([C, i]) => {
224
224
  const S = I == null ? void 0 : I[i.name], h = (typeof S == "function" ? S(i.scope) : S) ?? null;
225
225
  return gt(h, i.el, C);
226
226
  });
@@ -233,9 +233,9 @@ function m(e) {
233
233
  });
234
234
  return r.displayName = e.name, r;
235
235
  }
236
- const ie = m(_t), pe = (e) => null, Le = ({ horizontal: e, children: t }) => {
236
+ const pe = P(_t), fe = (e) => null, xe = ({ horizontal: e, children: t }) => {
237
237
  const o = ct.toArray(t).filter(
238
- (c) => K(c) && c.type === pe
238
+ (c) => K(c) && c.type === fe
239
239
  ), r = o.map((c) => ({
240
240
  size: c.props.size,
241
241
  minSize: c.props.minSize,
@@ -244,12 +244,12 @@ const ie = m(_t), pe = (e) => null, Le = ({ 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(ie, { panes: r, horizontal: e, ...n });
248
- }, fe = m(It), J = /* @__PURE__ */ new Set(), it = 200, de = 100, pt = W({
247
+ }), /* @__PURE__ */ x(pe, { panes: r, horizontal: e, ...n });
248
+ }, de = P(It), J = /* @__PURE__ */ new Set(), it = 200, Ce = 100, pt = W({
249
249
  delayDuration: it,
250
250
  disableHoverableContent: !1
251
251
  });
252
- function xe({
252
+ function Me({
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 Me({
269
+ function ke({
270
270
  open: e,
271
271
  defaultOpen: t = !1,
272
272
  onOpenChange: o,
@@ -274,7 +274,7 @@ function Me({
274
274
  disableHoverableContent: n,
275
275
  children: c
276
276
  }) {
277
- const s = D(pt), l = r ?? s.delayDuration, p = !(n ?? s.disableHoverableContent), [P, y] = U(t), u = e !== void 0, f = u ? !!e : P, [a, v] = U(null), T = `moz-tooltip-${Z()}`, b = L(null), d = L(null), g = L(o);
277
+ const s = D(pt), l = r ?? s.delayDuration, p = !(n ?? s.disableHoverableContent), [m, y] = U(t), u = e !== void 0, f = u ? !!e : m, [a, v] = U(null), T = `moz-tooltip-${Z()}`, b = L(null), d = L(null), g = L(o);
278
278
  g.current = o;
279
279
  const R = _(() => {
280
280
  b.current && clearTimeout(b.current), d.current && clearTimeout(d.current), b.current = null, d.current = null;
@@ -305,7 +305,7 @@ function Me({
305
305
  }
306
306
  d.current || (d.current = setTimeout(() => {
307
307
  d.current = null, I(!1);
308
- }, de));
308
+ }, Ce));
309
309
  }, [p, I]), h = _(() => {
310
310
  d.current && (clearTimeout(d.current), d.current = null);
311
311
  }, []);
@@ -348,8 +348,8 @@ 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 ke({ asChild: e = !1, children: t }) {
352
- const o = dt("TooltipTrigger"), { open: r, contentId: n, setAnchor: c, openNow: s, openDelayed: l, closeNow: p, closeSoon: P } = o, y = K(t) ? t : null, u = (y == null ? void 0 : y.props) ?? {}, f = y == null ? void 0 : y.ref, a = L(f);
351
+ function we({ asChild: e = !1, children: t }) {
352
+ const o = dt("TooltipTrigger"), { open: r, contentId: n, setAnchor: c, openNow: s, openDelayed: l, closeNow: p, closeSoon: m } = o, y = K(t) ? t : null, u = (y == null ? void 0 : y.props) ?? {}, f = y == null ? void 0 : y.ref, a = L(f);
353
353
  a.current = f;
354
354
  const v = L(null), T = _(
355
355
  (g) => {
@@ -366,8 +366,8 @@ function ke({ asChild: e = !1, children: t }) {
366
366
  // 경우가 있어(예: fireEvent.pointerMove / fireEvent.mouseOver) 한쪽만 걸면 조용히 안 열린다.
367
367
  onPointerMove: V(u.onPointerMove, l),
368
368
  onMouseEnter: V(u.onMouseEnter, l),
369
- onPointerLeave: V(u.onPointerLeave, P),
370
- onMouseLeave: V(u.onMouseLeave, P),
369
+ onPointerLeave: V(u.onPointerLeave, m),
370
+ onMouseLeave: V(u.onMouseLeave, m),
371
371
  // 클릭하러 온 것이므로 즉시 치운다(누른 순간 가려지지 않게).
372
372
  onPointerDown: V(u.onPointerDown, p),
373
373
  // 포커스는 지연 없이 — 버블링된 focus 도 받는다(트리거가 감싼 span 인 경우).
@@ -380,7 +380,7 @@ function ke({ asChild: e = !1, children: t }) {
380
380
  };
381
381
  return e && y ? F(y, d) : /* @__PURE__ */ x("span", { ...d, children: t });
382
382
  }
383
- function we({
383
+ function ze({
384
384
  side: e = "top",
385
385
  align: t = "center",
386
386
  sideOffset: o = 8,
@@ -391,11 +391,11 @@ function we({
391
391
  children: l,
392
392
  ...p
393
393
  }) {
394
- const P = dt("TooltipContent"), { open: y, anchor: u, contentId: f, hoverable: a, cancelClose: v, closeSoon: T } = P, b = L({ cancelClose: v, closeSoon: T });
394
+ const m = dt("TooltipContent"), { open: y, anchor: u, contentId: f, hoverable: a, cancelClose: v, closeSoon: T } = m, b = L({ cancelClose: v, closeSoon: T });
395
395
  b.current = { cancelClose: v, closeSoon: T };
396
396
  const d = _(() => b.current.cancelClose(), []), g = _(() => b.current.closeSoon(), []), R = N(() => ({ content: l }), [l]);
397
397
  return /* @__PURE__ */ x(
398
- fe,
398
+ de,
399
399
  {
400
400
  open: y,
401
401
  anchor: u,
@@ -415,8 +415,8 @@ function we({
415
415
  }
416
416
  );
417
417
  }
418
- const Ce = m(Lt), Ct = W(null);
419
- function G(e) {
418
+ const Ee = P(Lt), Ct = W(null);
419
+ function H(e) {
420
420
  const t = D(Ct);
421
421
  if (!t) throw new Error(`${e} 는 <Popover> 안에서만 쓸 수 있습니다.`);
422
422
  return t;
@@ -432,8 +432,8 @@ function Pt(e, t) {
432
432
  typeof e == "function" && e(o), t(o);
433
433
  };
434
434
  }
435
- function ze({ open: e, defaultOpen: t = !1, onOpenChange: o, children: r }) {
436
- const [n, c] = U(t), s = e !== void 0, l = s ? !!e : n, [p, P] = U(null), [y, u] = U(null), f = `moz-popover-${Z()}`, a = L(o);
435
+ function je({ open: e, defaultOpen: t = !1, onOpenChange: o, children: r }) {
436
+ const [n, c] = U(t), s = e !== void 0, l = s ? !!e : n, [p, m] = U(null), [y, u] = U(null), f = `moz-popover-${Z()}`, a = L(o);
437
437
  a.current = o;
438
438
  const v = _(
439
439
  (b) => {
@@ -442,13 +442,13 @@ function ze({ open: e, defaultOpen: t = !1, onOpenChange: o, children: r }) {
442
442
  },
443
443
  [s]
444
444
  ), T = N(
445
- () => ({ open: l, setOpen: v, contentId: f, triggerEl: p, anchorEl: y, setTriggerEl: P, setAnchorEl: u }),
445
+ () => ({ open: l, setOpen: v, contentId: f, triggerEl: p, anchorEl: y, setTriggerEl: m, setAnchorEl: u }),
446
446
  [l, v, f, p, y]
447
447
  );
448
448
  return /* @__PURE__ */ x(Ct.Provider, { value: T, children: r });
449
449
  }
450
- function je({ asChild: e = !1, children: t }) {
451
- const { open: o, setOpen: r, contentId: n, setTriggerEl: c } = G("PopoverTrigger"), s = K(t) ? t : null, l = (s == null ? void 0 : s.props) ?? {}, P = {
450
+ function Ne({ asChild: e = !1, children: t }) {
451
+ const { open: o, setOpen: r, contentId: n, setTriggerEl: c } = H("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),
454
454
  [c, s]
@@ -459,22 +459,22 @@ function je({ asChild: e = !1, children: t }) {
459
459
  "aria-controls": o ? n : void 0,
460
460
  "data-state": o ? "open" : "closed"
461
461
  };
462
- return e && s ? F(s, P) : /* @__PURE__ */ x("span", { ...P, children: t });
462
+ return e && s ? F(s, m) : /* @__PURE__ */ x("span", { ...m, children: t });
463
463
  }
464
- function Ne({ asChild: e = !1, children: t }) {
465
- const { setAnchorEl: o } = G("PopoverAnchor"), r = K(t) ? t : null, n = N(
464
+ function Be({ asChild: e = !1, children: t }) {
465
+ const { setAnchorEl: o } = H("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 Be({ asChild: e = !1, children: t }) {
472
- const { setOpen: o } = G("PopoverClose"), r = K(t) ? t : null, n = (r == null ? void 0 : r.props) ?? {}, c = {
471
+ function Ue({ asChild: e = !1, children: t }) {
472
+ const { setOpen: o } = H("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 Ue({
477
+ function De({
478
478
  side: e = "bottom",
479
479
  align: t = "start",
480
480
  sideOffset: o = 4,
@@ -484,14 +484,14 @@ function Ue({
484
484
  className: s,
485
485
  style: l,
486
486
  onOpenAutoFocus: p,
487
- onCloseAutoFocus: P,
487
+ onCloseAutoFocus: m,
488
488
  onEscapeKeyDown: y,
489
489
  onInteractOutside: u,
490
490
  children: f,
491
491
  ...a
492
492
  }) {
493
- const { open: v, setOpen: T, contentId: b, triggerEl: d, anchorEl: g } = G("PopoverContent"), R = L({ setOpen: T, triggerEl: d, anchorEl: g, onOpenAutoFocus: p, onCloseAutoFocus: P, onEscapeKeyDown: y, onInteractOutside: u });
494
- R.current = { setOpen: T, triggerEl: d, anchorEl: g, onOpenAutoFocus: p, onCloseAutoFocus: P, onEscapeKeyDown: y, onInteractOutside: u };
493
+ const { open: v, setOpen: T, contentId: b, triggerEl: d, anchorEl: g } = H("PopoverContent"), R = L({ setOpen: T, triggerEl: d, anchorEl: g, onOpenAutoFocus: p, onCloseAutoFocus: m, onEscapeKeyDown: y, onInteractOutside: u });
494
+ R.current = { setOpen: T, triggerEl: d, anchorEl: g, onOpenAutoFocus: p, onCloseAutoFocus: m, onEscapeKeyDown: y, onInteractOutside: u };
495
495
  const I = _((E) => {
496
496
  R.current.setOpen(!1);
497
497
  }, []), B = _((E) => {
@@ -513,7 +513,7 @@ function Ue({
513
513
  (A = (O = R.current).onCloseAutoFocus) == null || A.call(O, E);
514
514
  }, []), h = N(() => ({ content: f }), [f]);
515
515
  return /* @__PURE__ */ x(
516
- Ce,
516
+ Ee,
517
517
  {
518
518
  open: v,
519
519
  anchor: g ?? d,
@@ -536,13 +536,13 @@ function Ue({
536
536
  }
537
537
  );
538
538
  }
539
- const Ee = m(xt), mt = W(null);
539
+ const Pe = 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 Pe(...e) {
545
+ function me(...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 vt(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 De({
560
+ function Ke({
561
561
  open: e,
562
562
  defaultOpen: t = !1,
563
563
  onOpenChange: o,
@@ -568,7 +568,7 @@ function De({
568
568
  children: l,
569
569
  ...p
570
570
  }) {
571
- const [P, y] = U(t), u = e !== void 0, f = u ? !!e : P, a = `moz-collapsible-${Z()}`, v = L(o);
571
+ const [m, y] = U(t), u = e !== void 0, f = u ? !!e : m, a = `moz-collapsible-${Z()}`, v = L(o);
572
572
  v.current = o;
573
573
  const T = _(
574
574
  (I) => {
@@ -590,7 +590,7 @@ function De({
590
590
  }) : /* @__PURE__ */ x("div", { ...d, className: c, style: s, children: l });
591
591
  return /* @__PURE__ */ x(mt.Provider, { value: b, children: R });
592
592
  }
593
- function Ke({
593
+ function Ve({
594
594
  asChild: e = !1,
595
595
  disabled: t,
596
596
  className: o,
@@ -599,17 +599,17 @@ function Ke({
599
599
  children: c,
600
600
  ...s
601
601
  }) {
602
- const { open: l, setOpen: p, contentId: P, disabled: y } = yt("CollapsibleTrigger"), u = t ?? y, f = _(() => {
602
+ const { open: l, setOpen: p, contentId: m, disabled: y } = yt("CollapsibleTrigger"), u = t ?? y, f = _(() => {
603
603
  u || p(!l);
604
604
  }, [u, l, p]), a = K(c) ? c : null, v = (a == null ? void 0 : a.props) ?? {}, T = {
605
605
  "aria-expanded": l,
606
- "aria-controls": P,
606
+ "aria-controls": m,
607
607
  "data-state": l ? "open" : "closed",
608
608
  "data-disabled": u ? "" : void 0,
609
609
  ...s
610
610
  };
611
611
  if (e && a) {
612
- const b = Pe(a.ref);
612
+ const b = me(a.ref);
613
613
  return F(a, {
614
614
  ...T,
615
615
  ref: b,
@@ -636,7 +636,7 @@ function Ke({
636
636
  }
637
637
  );
638
638
  }
639
- function Ve({
639
+ function We({
640
640
  forceMount: e = !1,
641
641
  className: t,
642
642
  style: o,
@@ -644,14 +644,14 @@ function Ve({
644
644
  children: n,
645
645
  ...c
646
646
  }) {
647
- const { open: s, contentId: l, disabled: p } = yt("CollapsibleContent"), P = L({ onHeightChange: r });
648
- P.current = { onHeightChange: r };
647
+ const { open: s, contentId: l, disabled: p } = yt("CollapsibleContent"), m = L({ onHeightChange: r });
648
+ m.current = { onHeightChange: r };
649
649
  const y = _((f) => {
650
650
  var a, v;
651
- (v = (a = P.current).onHeightChange) == null || v.call(a, f);
651
+ (v = (a = m.current).onHeightChange) == null || v.call(a, f);
652
652
  }, []), u = N(() => ({ content: n }), [n]);
653
653
  return /* @__PURE__ */ x(
654
- Ee,
654
+ Pe,
655
655
  {
656
656
  open: s,
657
657
  forceMount: e,
@@ -665,21 +665,21 @@ function Ve({
665
665
  }
666
666
  );
667
667
  }
668
- const me = m(Mt);
669
- function ye(e) {
668
+ const ye = P(Mt);
669
+ function ve(e) {
670
670
  return null;
671
671
  }
672
- function ve(e) {
672
+ function Se(e) {
673
673
  return null;
674
674
  }
675
- function We({ className: e, style: t, onLoadingStatusChange: o, children: r, ...n }) {
675
+ function $e({ className: e, style: t, onLoadingStatusChange: o, children: r, ...n }) {
676
676
  let c, s;
677
- ct.forEach(r, (P) => {
678
- K(P) && (P.type === ye ? c = P.props : P.type === ve && (s = P.props));
677
+ ct.forEach(r, (m) => {
678
+ K(m) && (m.type === ve ? c = m.props : m.type === Se && (s = m.props));
679
679
  });
680
680
  const l = s == null ? void 0 : s.children, p = N(() => ({ fallback: l }), [l]);
681
681
  return /* @__PURE__ */ x(
682
- me,
682
+ ye,
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 We({ className: e, style: t, onLoadingStatusChange: o, children: r, ...
694
694
  }
695
695
  );
696
696
  }
697
- const Se = m(kt);
698
- function $e({
697
+ const Te = P(kt);
698
+ function Fe({
699
699
  orientation: e = "vertical",
700
700
  scrollbarVisibility: t = "always",
701
701
  className: o,
@@ -705,7 +705,7 @@ function $e({
705
705
  viewportRef: s,
706
706
  style: l,
707
707
  onScroll: p,
708
- children: P,
708
+ children: m,
709
709
  ...y
710
710
  }) {
711
711
  const [u, f] = U(null), a = _(
@@ -714,18 +714,18 @@ function $e({
714
714
  },
715
715
  [s]
716
716
  );
717
- return /* @__PURE__ */ se("div", { className: ["moz-scroll-area", o].filter(Boolean).join(" "), style: l, ...y, children: [
717
+ return /* @__PURE__ */ ce("div", { className: ["moz-scroll-area", o].filter(Boolean).join(" "), style: l, ...y, children: [
718
718
  /* @__PURE__ */ x(
719
719
  "div",
720
720
  {
721
721
  ref: a,
722
722
  className: ["moz-scroll-area-viewport", r].filter(Boolean).join(" "),
723
723
  "data-moz-scroll-area-viewport": "",
724
- children: P
724
+ children: m
725
725
  }
726
726
  ),
727
727
  /* @__PURE__ */ x(
728
- Se,
728
+ Te,
729
729
  {
730
730
  viewport: u,
731
731
  interactionRoot: u == null ? void 0 : u.parentElement,
@@ -738,66 +738,67 @@ function $e({
738
738
  )
739
739
  ] });
740
740
  }
741
- const Fe = m(wt), He = m(zt), Ge = m(jt), qe = m(Nt), Xe = m(Bt), Ye = m(Ut), Je = m(Dt), Qe = m(Kt), Ze = m(Vt), to = m(Wt), eo = m($t), oo = m(Ft), no = m(Ht), ro = m(Gt), so = m(qt), co = m(Xt), lo = m(Yt), uo = m(Jt), ao = m(Qt), io = m(Zt), po = m(te), fo = m(ee), Co = m(oe), Eo = m(ne), Po = m(re);
741
+ const Ge = P(wt), He = P(zt), qe = P(jt), Xe = P(Nt), Ye = P(Bt), Je = P(Ut), Qe = P(Dt), Ze = P(Kt), to = P(Vt), eo = P(Wt), oo = P($t), no = P(Ft), ro = P(Gt), so = P(Ht), co = P(qt), lo = P(Xt), uo = P(Yt), ao = P(Jt), io = P(Qt), po = P(Zt), fo = P(te), Co = P(ee), Eo = P(oe), Po = P(ne), mo = P(re), yo = P(se);
742
742
  export {
743
- We as Avatar,
744
- ve as AvatarFallback,
745
- ye as AvatarImage,
746
- qe as BreadCrumb,
747
- Fe as Button,
748
- ro as Calendar,
749
- Ye as CheckBox,
750
- De as Collapsible,
751
- Ve as CollapsibleContent,
752
- Ke as CollapsibleTrigger,
753
- po as ContextMenu,
754
- Eo as Controller,
755
- so as DateInput,
756
- Xe as EmptyState,
757
- Qe as Input,
743
+ $e as Avatar,
744
+ Se as AvatarFallback,
745
+ ve as AvatarImage,
746
+ qe as Badge,
747
+ Ye as BreadCrumb,
748
+ Ge as Button,
749
+ co as Calendar,
750
+ Qe as CheckBox,
751
+ Ke as Collapsible,
752
+ We as CollapsibleContent,
753
+ Ve as CollapsibleTrigger,
754
+ Co as ContextMenu,
755
+ mo as Controller,
756
+ lo as DateInput,
757
+ Je as EmptyState,
758
+ to as Input,
758
759
  He as Label,
759
- Oe as MozConfigProvider,
760
+ _e as MozConfigProvider,
760
761
  at as MozContextWrapperContext,
761
762
  ut as MozLocaleContext,
762
- uo as MultiSelect,
763
- eo as NumberInput,
764
- pe as Pane,
765
- Ze as PasswordInput,
766
- ze as Popover,
767
- Ne as PopoverAnchor,
768
- Be as PopoverClose,
769
- Ue as PopoverContent,
770
- je as PopoverTrigger,
771
- co as Popup,
772
- Je as Radio,
773
- ce as ReactRenderer,
774
- $e as ScrollArea,
775
- lo as Select,
776
- no as Slider,
777
- Le as SplitPane,
778
- oo as Tab,
779
- fo as TableSelect,
780
- io as TagInput,
781
- to as TextArea,
782
- ao as TimePicker,
783
- Po as Toast,
784
- Ge as Toggle,
785
- Me as Tooltip,
786
- we as TooltipContent,
787
- xe as TooltipProvider,
788
- ke as TooltipTrigger,
789
- Co as TreeSelect,
790
- _e as Validator,
763
+ io as MultiSelect,
764
+ no as NumberInput,
765
+ fe as Pane,
766
+ eo as PasswordInput,
767
+ je as Popover,
768
+ Be as PopoverAnchor,
769
+ Ue as PopoverClose,
770
+ De as PopoverContent,
771
+ Ne as PopoverTrigger,
772
+ uo as Popup,
773
+ Ze as Radio,
774
+ le as ReactRenderer,
775
+ Fe as ScrollArea,
776
+ ao as Select,
777
+ so as Slider,
778
+ xe as SplitPane,
779
+ ro as Tab,
780
+ Eo as TableSelect,
781
+ fo as TagInput,
782
+ oo as TextArea,
783
+ po as TimePicker,
784
+ yo as Toast,
785
+ Xe as Toggle,
786
+ ke as Tooltip,
787
+ ze as TooltipContent,
788
+ Me as TooltipProvider,
789
+ we as TooltipTrigger,
790
+ Po as TreeSelect,
791
+ Ie as Validator,
791
792
  tt as ValidatorReactContext,
792
- m as createMozComponent,
793
- vo as createValidator,
794
- So as enUS,
795
- To as jaJP,
796
- bo as koKR,
797
- ue as useMozContextWrapper,
798
- le as useMozLocale,
799
- ho as useToast,
800
- Ie as useValidatorContext,
801
- Ao as zhCN
793
+ P as createMozComponent,
794
+ To as createValidator,
795
+ bo as enUS,
796
+ ho as jaJP,
797
+ Ao as koKR,
798
+ ae as useMozContextWrapper,
799
+ ue as useMozLocale,
800
+ go as useToast,
801
+ Le as useValidatorContext,
802
+ Ro as zhCN
802
803
  };
803
804
  //# sourceMappingURL=index.js.map