@inkorange/space-ui 1.0.1 → 1.0.3

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
@@ -1,7 +1,6 @@
1
1
  "use client";
2
2
  import { forwardRef as y, createElement as se, isValidElement as M, cloneElement as X, useId as L, useMemo as F, useState as R, useRef as w, useEffect as O, useLayoutEffect as ee, Children as he, useCallback as Be, useContext as x, createContext as q } from "react";
3
3
  import { jsx as r, jsxs as $, Fragment as U } from "react/jsx-runtime";
4
- import { c as E } from "./spaceControls.module-Bk7m5-Ag.js";
5
4
  const V = {
6
5
  0: "0",
7
6
  1: "var(--spacing-xs)",
@@ -82,7 +81,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
82
81
  size1: mt,
83
82
  size2: ht,
84
83
  size3: vt
85
- }, C1 = y(function({ asChild: n, size: o, className: s, style: t, m: l, mt: i, mb: c, p: _, pb: d, children: a, ...p }, u) {
84
+ }, w1 = y(function({ asChild: n, size: o, className: s, style: t, m: l, mt: i, mb: c, p: _, pb: d, children: a, ...p }, u) {
86
85
  const f = g(pe.link, o && pe[`size${o}`], s), C = D({ m: l, mt: i, mb: c, p: _, pb: d }, t);
87
86
  if (n && M(a)) {
88
87
  const m = a;
@@ -114,7 +113,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
114
113
  justifyBetween: jt,
115
114
  wrapWrap: Ot,
116
115
  wrapNowrap: Et
117
- }, Q = (e) => e[0].toUpperCase() + e.slice(1), m1 = y(function({ asChild: n, gap: o, direction: s, align: t, justify: l, wrap: i, className: c, style: _, m: d, mt: a, mb: p, p: u, pb: f, children: C, ...m }, h) {
116
+ }, Q = (e) => e[0].toUpperCase() + e.slice(1), y1 = y(function({ asChild: n, gap: o, direction: s, align: t, justify: l, wrap: i, className: c, style: _, m: d, mt: a, mb: p, p: u, pb: f, children: C, ...m }, h) {
118
117
  const v = g(
119
118
  N.flex,
120
119
  o && N[`gap${o}`],
@@ -133,7 +132,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
133
132
  });
134
133
  }
135
134
  return /* @__PURE__ */ r("div", { ...m, ref: h, className: v, style: I, children: C });
136
- }), h1 = y(function({ style: n, m: o, mt: s, mb: t, p: l, pb: i, ...c }, _) {
135
+ }), $1 = y(function({ style: n, m: o, mt: s, mb: t, p: l, pb: i, ...c }, _) {
137
136
  return /* @__PURE__ */ r("div", { ...c, ref: _, style: D({ m: o, mt: s, mb: t, p: l, pb: i }, n) });
138
137
  }), Pt = "_grid_erpqq_1", Vt = "_cols1_erpqq_5", Zt = "_cols2_erpqq_9", At = "_cols3_erpqq_13", Bt = "_smCols2_erpqq_18", Wt = "_smCols3_erpqq_21", Ft = "_mdCols2_erpqq_26", Gt = "_mdCols3_erpqq_29", Ut = "_gap1_erpqq_33", Kt = "_gap2_erpqq_37", Xt = "_gap3_erpqq_41", Yt = "_gap4_erpqq_45", Qt = "_gap5_erpqq_49", Jt = "_gap6_erpqq_53", T = {
139
138
  grid: Pt,
@@ -150,7 +149,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
150
149
  gap4: Yt,
151
150
  gap5: Qt,
152
151
  gap6: Jt
153
- }, v1 = y(function({ columns: n, gap: o, className: s, style: t, m: l, mt: i, mb: c, p: _, pb: d, ...a }, p) {
152
+ }, R1 = y(function({ columns: n, gap: o, className: s, style: t, m: l, mt: i, mb: c, p: _, pb: d, ...a }, p) {
154
153
  const u = typeof n == "string" ? [T[`cols${n}`]] : n ? [
155
154
  n.initial && T[`cols${n.initial}`],
156
155
  n.sm && T[`smCols${n.sm}`],
@@ -181,7 +180,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
181
180
  colorYellow: pn,
182
181
  solid: fn,
183
182
  wrap: gn
184
- }, Cn = (e) => e[0].toUpperCase() + e.slice(1), b1 = y(function({ color: n = "primary", variant: o = "soft", size: s = "1", wrap: t, className: l, style: i, m: c, mt: _, mb: d, p: a, pb: p, ...u }, f) {
183
+ }, Cn = (e) => e[0].toUpperCase() + e.slice(1), x1 = y(function({ color: n = "primary", variant: o = "soft", size: s = "1", wrap: t, className: l, style: i, m: c, mt: _, mb: d, p: a, pb: p, ...u }, f) {
185
184
  return /* @__PURE__ */ r(
186
185
  "span",
187
186
  {
@@ -201,7 +200,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
201
200
  }), mn = "_separator_vao01_1", hn = "_full_vao01_7", fe = {
202
201
  separator: mn,
203
202
  full: hn
204
- }, w1 = y(function({ size: n = "4", className: o, ...s }, t) {
203
+ }, q1 = y(function({ size: n = "4", className: o, ...s }, t) {
205
204
  return /* @__PURE__ */ r(
206
205
  "span",
207
206
  {
@@ -213,7 +212,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
213
212
  );
214
213
  }), vn = "_card_10wsm_1", bn = {
215
214
  card: vn
216
- }, y1 = y(function({ className: n, style: o, m: s, mt: t, mb: l, p: i, pb: c, ..._ }, d) {
215
+ }, k1 = y(function({ className: n, style: o, m: s, mt: t, mb: l, p: i, pb: c, ..._ }, d) {
217
216
  return /* @__PURE__ */ r(
218
217
  "div",
219
218
  {
@@ -225,7 +224,7 @@ const We = "_text_4vcq4_1", Fe = "_size1_4vcq4_5", Ge = "_size2_4vcq4_11", Ue =
225
224
  );
226
225
  }), wn = "_scrollArea_ujp70_1", yn = {
227
226
  scrollArea: wn
228
- }, $1 = y(function({ className: n, ...o }, s) {
227
+ }, z1 = y(function({ className: n, ...o }, s) {
229
228
  return /* @__PURE__ */ r("div", { ...o, ref: s, className: g(yn.scrollArea, n) });
230
229
  }), $n = "_spaceButton_kjhqx_14", Rn = "_rimRotate_kjhqx_1", xn = "_glintSweep_kjhqx_1", qn = "_iconOnly_kjhqx_97", kn = "_lg_kjhqx_104", zn = "_sm_kjhqx_110", Ln = "_micro_kjhqx_122", Mn = "_stars_kjhqx_136", Dn = "_fullWidth_kjhqx_141", In = "_ember_kjhqx_147", Sn = "_label_kjhqx_157", Nn = "_star_kjhqx_136", Tn = "_twinkle_kjhqx_1", k = {
231
230
  spaceButton: $n,
@@ -255,7 +254,7 @@ function jn(e) {
255
254
  n ^= e.charCodeAt(o), n = Math.imul(n, 16777619);
256
255
  return n >>> 0;
257
256
  }
258
- const R1 = y(
257
+ const L1 = y(
259
258
  function({ iconOnly: n, ember: o, size: s = "md", fullWidth: t, animated: l = !0, className: i, children: c, ..._ }, d) {
260
259
  const a = L(), p = F(() => {
261
260
  const f = Hn(jn(a));
@@ -300,7 +299,7 @@ const R1 = y(
300
299
  label: Wn,
301
300
  "sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
302
301
  };
303
- function x1({ size: e = "md", label: n, className: o }) {
302
+ function M1({ size: e = "md", label: n, className: o }) {
304
303
  return /* @__PURE__ */ $(
305
304
  "div",
306
305
  {
@@ -413,7 +412,7 @@ const Qn = "_group_1kj0b_3", Jn = "_segment_1kj0b_14", eo = "_active_1kj0b_34",
413
412
  segment: Jn,
414
413
  active: eo
415
414
  };
416
- function q1({
415
+ function D1({
417
416
  options: e,
418
417
  value: n,
419
418
  onValueChange: o,
@@ -445,7 +444,13 @@ const to = "_root_1bvtq_2", no = "_trigger_1bvtq_7", oo = "_labelWrap_1bvtq_30",
445
444
  chevron: lo,
446
445
  listbox: io,
447
446
  item: co
448
- }, ve = q(null), le = () => {
447
+ }, ao = "_spaceControl_18935_17", uo = "_spaceSlider_18935_74", _o = "_spacePanel_18935_111", po = "_spaceInput_18935_34", fo = "_spaceTextArea_18935_226", go = {
448
+ spaceControl: ao,
449
+ spaceSlider: uo,
450
+ spacePanel: _o,
451
+ spaceInput: po,
452
+ spaceTextArea: fo
453
+ }, E = go, ve = q(null), le = () => {
449
454
  const e = x(ve);
450
455
  if (!e) throw new Error("Select parts must be inside Select.Root");
451
456
  return e;
@@ -454,7 +459,7 @@ const to = "_root_1bvtq_2", no = "_trigger_1bvtq_7", oo = "_labelWrap_1bvtq_30",
454
459
  if (!e) throw new Error("Select parts must be inside Select.Root");
455
460
  return e;
456
461
  };
457
- function ao(e) {
462
+ function Co(e) {
458
463
  const n = [], o = (s) => {
459
464
  he.forEach(s, (t) => {
460
465
  if (!M(t)) return;
@@ -464,13 +469,13 @@ function ao(e) {
464
469
  };
465
470
  return o(e), n;
466
471
  }
467
- function uo({ value: e, onValueChange: n, disabled: o, children: s }) {
472
+ function mo({ value: e, onValueChange: n, disabled: o, children: s }) {
468
473
  const [t, l] = R(!1), [i, c] = R(null), _ = L(), d = w(null), a = w(null), p = F(() => {
469
474
  let h = null;
470
475
  return he.forEach(s, (v) => {
471
476
  M(v) && v.type === ye && (h = v.props.children);
472
477
  }), h;
473
- }, [s]), u = F(() => ao(p), [p]), f = F(() => u.filter((h) => !h.disabled).map((h) => h.value), [u]), C = F(() => u.map((h) => h.label), [u]), m = Be(
478
+ }, [s]), u = F(() => Co(p), [p]), f = F(() => u.filter((h) => !h.disabled).map((h) => h.value), [u]), C = F(() => u.map((h) => h.label), [u]), m = Be(
474
479
  (h) => {
475
480
  var v;
476
481
  return ((v = u.find((I) => I.value === h)) == null ? void 0 : v.label) ?? null;
@@ -491,7 +496,7 @@ function uo({ value: e, onValueChange: n, disabled: o, children: s }) {
491
496
  }
492
497
  );
493
498
  }
494
- function _o({ placeholder: e, animated: n = !0, className: o, ...s }) {
499
+ function ho({ placeholder: e, animated: n = !0, className: o, ...s }) {
495
500
  const t = le(), l = ie(), i = t.value ? t.labelFor(t.value) : null, c = (_) => {
496
501
  t.setHighlighted(_ ?? t.values[0] ?? null), t.setOpen(!0);
497
502
  };
@@ -588,17 +593,17 @@ function $e({ value: e, disabled: n, children: o }) {
588
593
  }
589
594
  );
590
595
  }
591
- const k1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
596
+ const I1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
592
597
  __proto__: null,
593
598
  Content: ye,
594
599
  Item: $e,
595
- Root: uo,
596
- Trigger: _o
597
- }, Symbol.toStringTag, { value: "Module" })), po = "_root_1lx7y_1", fo = "_input_1lx7y_7", go = "_slot_1lx7y_17", re = {
598
- root: po,
599
- input: fo,
600
- slot: go
601
- }, Co = y(function({ className: n, style: o, animated: s = !0, children: t, ...l }, i) {
600
+ Root: mo,
601
+ Trigger: ho
602
+ }, Symbol.toStringTag, { value: "Module" })), vo = "_root_1lx7y_1", bo = "_input_1lx7y_7", wo = "_slot_1lx7y_17", re = {
603
+ root: vo,
604
+ input: bo,
605
+ slot: wo
606
+ }, yo = y(function({ className: n, style: o, animated: s = !0, children: t, ...l }, i) {
602
607
  return /* @__PURE__ */ $(
603
608
  "div",
604
609
  {
@@ -612,19 +617,19 @@ const k1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
612
617
  }
613
618
  );
614
619
  });
615
- function mo({
620
+ function $o({
616
621
  children: e
617
622
  }) {
618
623
  return /* @__PURE__ */ r("span", { className: re.slot, children: e });
619
624
  }
620
- const z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
625
+ const S1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
621
626
  __proto__: null,
622
- Root: Co,
623
- Slot: mo
624
- }, Symbol.toStringTag, { value: "Module" })), ho = "_root_1qu6w_1", vo = "_textarea_1qu6w_6", Ce = {
625
- root: ho,
626
- textarea: vo
627
- }, L1 = y(function({ className: n, style: o, animated: s = !0, ...t }, l) {
627
+ Root: yo,
628
+ Slot: $o
629
+ }, Symbol.toStringTag, { value: "Module" })), Ro = "_root_1qu6w_1", xo = "_textarea_1qu6w_6", Ce = {
630
+ root: Ro,
631
+ textarea: xo
632
+ }, N1 = y(function({ className: n, style: o, animated: s = !0, ...t }, l) {
628
633
  return /* @__PURE__ */ r(
629
634
  "div",
630
635
  {
@@ -634,13 +639,13 @@ const z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
634
639
  children: /* @__PURE__ */ r("textarea", { ...t, ref: l, className: g(Ce.textarea, "spTextAreaInput") })
635
640
  }
636
641
  );
637
- }), bo = "_root_14a1b_1", wo = "_track_14a1b_12", yo = "_range_14a1b_22", $o = "_thumb_14a1b_28", Ro = "_input_14a1b_38", W = {
638
- root: bo,
639
- track: wo,
640
- range: yo,
641
- thumb: $o,
642
- input: Ro
643
- }, M1 = y(function({ value: n, onValueChange: o, min: s, max: t, step: l, disabled: i, className: c, "aria-label": _ }, d) {
642
+ }), qo = "_root_14a1b_1", ko = "_track_14a1b_12", zo = "_range_14a1b_22", Lo = "_thumb_14a1b_28", Mo = "_input_14a1b_38", W = {
643
+ root: qo,
644
+ track: ko,
645
+ range: zo,
646
+ thumb: Lo,
647
+ input: Mo
648
+ }, T1 = y(function({ value: n, onValueChange: o, min: s, max: t, step: l, disabled: i, className: c, "aria-label": _ }, d) {
644
649
  const a = n[0] ?? s, p = t === s ? 0 : (a - s) / (t - s) * 100;
645
650
  return /* @__PURE__ */ $("span", { className: g(W.root, E.spaceSlider, c), "data-disabled": i || void 0, children: [
646
651
  /* @__PURE__ */ r("span", { className: g(W.track, "spSliderTrack"), children: /* @__PURE__ */ r("span", { className: g(W.range, "spSliderRange"), style: { width: `${p}%` } }) }),
@@ -661,18 +666,18 @@ const z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
661
666
  }
662
667
  )
663
668
  ] });
664
- }), xo = "_root_1qhel_2", qo = "_item_1qhel_8", ko = "_selfLabeled_1qhel_15", zo = "_input_1qhel_19", Lo = "_orb_1qhel_35", j = {
665
- root: xo,
666
- item: qo,
667
- selfLabeled: ko,
668
- input: zo,
669
- orb: Lo
669
+ }), Do = "_root_1qhel_2", Io = "_item_1qhel_8", So = "_selfLabeled_1qhel_15", No = "_input_1qhel_19", To = "_orb_1qhel_35", j = {
670
+ root: Do,
671
+ item: Io,
672
+ selfLabeled: So,
673
+ input: No,
674
+ orb: To
670
675
  }, Re = q(null);
671
- function Mo({ value: e, onValueChange: n, disabled: o, className: s, children: t }) {
676
+ function Ho({ value: e, onValueChange: n, disabled: o, className: s, children: t }) {
672
677
  const l = L();
673
678
  return /* @__PURE__ */ r(Re.Provider, { value: { value: e, onValueChange: n, disabled: o, name: l }, children: /* @__PURE__ */ r("div", { role: "radiogroup", className: g(j.root, s), children: t }) });
674
679
  }
675
- function Do({ value: e, disabled: n, children: o }) {
680
+ function jo({ value: e, disabled: n, children: o }) {
676
681
  const s = x(Re);
677
682
  if (!s) throw new Error("RadioGroup.Item must be inside RadioGroup.Root");
678
683
  const t = n || s.disabled, l = /* @__PURE__ */ $(U, { children: [
@@ -695,14 +700,14 @@ function Do({ value: e, disabled: n, children: o }) {
695
700
  o
696
701
  ] });
697
702
  }
698
- const D1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
703
+ const H1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
699
704
  __proto__: null,
700
- Item: Do,
701
- Root: Mo
702
- }, Symbol.toStringTag, { value: "Module" })), Io = "_progress_1cre6_16", So = {
703
- progress: Io
705
+ Item: jo,
706
+ Root: Ho
707
+ }, Symbol.toStringTag, { value: "Module" })), Oo = "_progress_1cre6_16", Eo = {
708
+ progress: Oo
704
709
  };
705
- function I1({ value: e, max: n = 100, className: o, style: s, ...t }) {
710
+ function j1({ value: e, max: n = 100, className: o, style: s, ...t }) {
706
711
  const l = n > 0 ? Math.min(Math.max(e / n * 100, 0), 100) : 0;
707
712
  return /* @__PURE__ */ r(
708
713
  "div",
@@ -712,7 +717,7 @@ function I1({ value: e, max: n = 100, className: o, style: s, ...t }) {
712
717
  "aria-valuenow": e,
713
718
  "aria-valuemin": 0,
714
719
  "aria-valuemax": n,
715
- className: g(So.progress, o),
720
+ className: g(Eo.progress, o),
716
721
  style: s,
717
722
  children: /* @__PURE__ */ r("div", { style: { width: `${l}%`, height: "100%" } })
718
723
  }
@@ -726,7 +731,7 @@ const b = {
726
731
  xmlns: "http://www.w3.org/2000/svg",
727
732
  "aria-hidden": !0
728
733
  };
729
- function S1(e) {
734
+ function O1(e) {
730
735
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
731
736
  "path",
732
737
  {
@@ -737,7 +742,7 @@ function S1(e) {
737
742
  }
738
743
  ) });
739
744
  }
740
- function N1(e) {
745
+ function E1(e) {
741
746
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
742
747
  "path",
743
748
  {
@@ -748,7 +753,7 @@ function N1(e) {
748
753
  }
749
754
  ) });
750
755
  }
751
- function T1(e) {
756
+ function P1(e) {
752
757
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
753
758
  "path",
754
759
  {
@@ -759,7 +764,7 @@ function T1(e) {
759
764
  }
760
765
  ) });
761
766
  }
762
- function H1(e) {
767
+ function V1(e) {
763
768
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
764
769
  "path",
765
770
  {
@@ -770,7 +775,7 @@ function H1(e) {
770
775
  }
771
776
  ) });
772
777
  }
773
- function j1(e) {
778
+ function Z1(e) {
774
779
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
775
780
  "path",
776
781
  {
@@ -781,7 +786,7 @@ function j1(e) {
781
786
  }
782
787
  ) });
783
788
  }
784
- function O1(e) {
789
+ function A1(e) {
785
790
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
786
791
  "path",
787
792
  {
@@ -792,7 +797,7 @@ function O1(e) {
792
797
  }
793
798
  ) });
794
799
  }
795
- function E1(e) {
800
+ function B1(e) {
796
801
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
797
802
  "path",
798
803
  {
@@ -803,7 +808,7 @@ function E1(e) {
803
808
  }
804
809
  ) });
805
810
  }
806
- function P1(e) {
811
+ function W1(e) {
807
812
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
808
813
  "path",
809
814
  {
@@ -814,7 +819,7 @@ function P1(e) {
814
819
  }
815
820
  ) });
816
821
  }
817
- function V1(e) {
822
+ function F1(e) {
818
823
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
819
824
  "path",
820
825
  {
@@ -825,7 +830,7 @@ function V1(e) {
825
830
  }
826
831
  ) });
827
832
  }
828
- function Z1(e) {
833
+ function G1(e) {
829
834
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
830
835
  "path",
831
836
  {
@@ -836,7 +841,7 @@ function Z1(e) {
836
841
  }
837
842
  ) });
838
843
  }
839
- function A1(e) {
844
+ function U1(e) {
840
845
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
841
846
  "path",
842
847
  {
@@ -847,7 +852,7 @@ function A1(e) {
847
852
  }
848
853
  ) });
849
854
  }
850
- function B1(e) {
855
+ function K1(e) {
851
856
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
852
857
  "path",
853
858
  {
@@ -858,7 +863,7 @@ function B1(e) {
858
863
  }
859
864
  ) });
860
865
  }
861
- function W1(e) {
866
+ function X1(e) {
862
867
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
863
868
  "path",
864
869
  {
@@ -869,7 +874,7 @@ function W1(e) {
869
874
  }
870
875
  ) });
871
876
  }
872
- function F1(e) {
877
+ function Y1(e) {
873
878
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
874
879
  "path",
875
880
  {
@@ -880,7 +885,7 @@ function F1(e) {
880
885
  }
881
886
  ) });
882
887
  }
883
- function G1(e) {
888
+ function Q1(e) {
884
889
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
885
890
  "path",
886
891
  {
@@ -891,7 +896,7 @@ function G1(e) {
891
896
  }
892
897
  ) });
893
898
  }
894
- function U1(e) {
899
+ function J1(e) {
895
900
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
896
901
  "path",
897
902
  {
@@ -902,7 +907,7 @@ function U1(e) {
902
907
  }
903
908
  ) });
904
909
  }
905
- function K1(e) {
910
+ function er(e) {
906
911
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
907
912
  "path",
908
913
  {
@@ -913,7 +918,7 @@ function K1(e) {
913
918
  }
914
919
  ) });
915
920
  }
916
- function X1(e) {
921
+ function tr(e) {
917
922
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
918
923
  "path",
919
924
  {
@@ -924,7 +929,7 @@ function X1(e) {
924
929
  }
925
930
  ) });
926
931
  }
927
- function Y1(e) {
932
+ function nr(e) {
928
933
  return /* @__PURE__ */ r("svg", { ...b, ...e, children: /* @__PURE__ */ r(
929
934
  "path",
930
935
  {
@@ -935,7 +940,7 @@ function Y1(e) {
935
940
  }
936
941
  ) });
937
942
  }
938
- function No(e) {
943
+ function Po(e) {
939
944
  return /* @__PURE__ */ r("svg", { viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", ...e, children: /* @__PURE__ */ r(
940
945
  "path",
941
946
  {
@@ -944,12 +949,12 @@ function No(e) {
944
949
  }
945
950
  ) });
946
951
  }
947
- const To = "_dialog_1qqku_2", Ho = "_inner_1qqku_34", jo = "_size4_1qqku_39", Oo = "_title_1qqku_43", Eo = "_closeX_1qqku_51", G = {
948
- dialog: To,
949
- inner: Ho,
950
- size4: jo,
951
- title: Oo,
952
- closeX: Eo
952
+ const Vo = "_dialog_1qqku_2", Zo = "_inner_1qqku_34", Ao = "_size4_1qqku_39", Bo = "_title_1qqku_43", Wo = "_closeX_1qqku_51", G = {
953
+ dialog: Vo,
954
+ inner: Zo,
955
+ size4: Ao,
956
+ title: Bo,
957
+ closeX: Wo
953
958
  };
954
959
  let J = 0;
955
960
  const xe = q(null), P = () => {
@@ -965,7 +970,7 @@ function ce(e) {
965
970
  return /* @__PURE__ */ r(xe.Provider, { value: { open: _, setOpen: d, titleId: a, descId: p, alert: e, hasDesc: u, setHasDesc: f }, children: t });
966
971
  };
967
972
  }
968
- const Po = ce(!1), qe = (e, n) => {
973
+ const Fo = ce(!1), qe = (e, n) => {
969
974
  if (!M(e)) return e;
970
975
  const o = e;
971
976
  return X(o, {
@@ -1035,7 +1040,7 @@ function ze({ size: e = "3", maxWidth: n, className: o, style: s, children: t, .
1035
1040
  className: G.closeX,
1036
1041
  "aria-label": "Close",
1037
1042
  onClick: () => i.setOpen(!1),
1038
- children: /* @__PURE__ */ r(No, { width: 16, height: 16 })
1043
+ children: /* @__PURE__ */ r(Po, { width: 16, height: 16 })
1039
1044
  }
1040
1045
  ),
1041
1046
  t
@@ -1051,31 +1056,31 @@ function Me(e) {
1051
1056
  const n = P(), { setHasDesc: o } = n;
1052
1057
  return ee(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ r(rt, { as: "p", ...e, id: n.descId });
1053
1058
  }
1054
- const Q1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1059
+ const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1055
1060
  __proto__: null,
1056
1061
  Close: ae,
1057
1062
  Content: ze,
1058
1063
  Description: Me,
1059
- Root: Po,
1064
+ Root: Fo,
1060
1065
  Title: Le,
1061
1066
  Trigger: ke,
1062
1067
  makeRoot: ce,
1063
1068
  useDialog: P
1064
- }, Symbol.toStringTag, { value: "Module" })), Vo = ce(!0), Zo = ke, Ao = ze, Bo = Le, Wo = Me, Fo = ae, Go = ae, J1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1069
+ }, Symbol.toStringTag, { value: "Module" })), Go = ce(!0), Uo = ke, Ko = ze, Xo = Le, Yo = Me, Qo = ae, Jo = ae, rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1065
1070
  __proto__: null,
1066
- Action: Go,
1067
- Cancel: Fo,
1068
- Content: Ao,
1069
- Description: Wo,
1070
- Root: Vo,
1071
- Title: Bo,
1072
- Trigger: Zo
1073
- }, Symbol.toStringTag, { value: "Module" })), Uo = "_menu_1hwyv_1", Ko = "_label_1hwyv_16", Xo = "_item_1hwyv_26", Yo = "_danger_1hwyv_45", Qo = "_separator_1hwyv_49", K = {
1074
- menu: Uo,
1075
- label: Ko,
1076
- item: Xo,
1077
- danger: Yo,
1078
- separator: Qo
1071
+ Action: Jo,
1072
+ Cancel: Qo,
1073
+ Content: Ko,
1074
+ Description: Yo,
1075
+ Root: Go,
1076
+ Title: Xo,
1077
+ Trigger: Uo
1078
+ }, Symbol.toStringTag, { value: "Module" })), e1 = "_menu_1hwyv_1", t1 = "_label_1hwyv_16", n1 = "_item_1hwyv_26", o1 = "_danger_1hwyv_45", r1 = "_separator_1hwyv_49", K = {
1079
+ menu: e1,
1080
+ label: t1,
1081
+ item: n1,
1082
+ danger: o1,
1083
+ separator: r1
1079
1084
  }, De = q(null), ue = () => {
1080
1085
  const e = x(De);
1081
1086
  if (!e) throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");
@@ -1084,7 +1089,7 @@ const Q1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1084
1089
  const e = x(Ie);
1085
1090
  if (!e) throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");
1086
1091
  return e;
1087
- }, Ne = q(null), Jo = () => {
1092
+ }, Ne = q(null), s1 = () => {
1088
1093
  const e = x(Ne);
1089
1094
  if (!e) throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");
1090
1095
  return e;
@@ -1097,19 +1102,19 @@ const Q1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1097
1102
  if (!e) throw new Error("DropdownMenu parts must be inside DropdownMenu.Root");
1098
1103
  return e;
1099
1104
  };
1100
- function e1(e) {
1105
+ function l1(e) {
1101
1106
  return e.current ? (e.current = !1, !0) : !1;
1102
1107
  }
1103
1108
  function me(e) {
1104
1109
  e.current = !0;
1105
1110
  }
1106
- function t1({
1111
+ function i1({
1107
1112
  children: e
1108
1113
  }) {
1109
1114
  const [n, o] = R(!1), s = L(), t = w(null), l = w(null), i = w(!1), c = w(!1);
1110
1115
  return /* @__PURE__ */ r(De.Provider, { value: { open: n, setOpen: o, menuId: s }, children: /* @__PURE__ */ r(Ie.Provider, { value: t, children: /* @__PURE__ */ r(Ne.Provider, { value: l, children: /* @__PURE__ */ r(Te.Provider, { value: i, children: /* @__PURE__ */ r(je.Provider, { value: c, children: e }) }) }) }) });
1111
1116
  }
1112
- function n1({
1117
+ function c1({
1113
1118
  children: e
1114
1119
  }) {
1115
1120
  const n = ue(), o = Se(), s = He();
@@ -1122,15 +1127,15 @@ function n1({
1122
1127
  "aria-controls": n.menuId,
1123
1128
  onClick: (l) => {
1124
1129
  var i, c;
1125
- (c = (i = t.props).onClick) == null || c.call(i, l), !e1(s) && n.setOpen(!n.open);
1130
+ (c = (i = t.props).onClick) == null || c.call(i, l), !l1(s) && n.setOpen(!n.open);
1126
1131
  }
1127
1132
  });
1128
1133
  }
1129
- function o1({
1134
+ function a1({
1130
1135
  align: e = "start",
1131
1136
  children: n
1132
1137
  }) {
1133
- const o = ue(), s = Se(), t = Jo(), l = He(), i = Oe(), [c, _] = R(null);
1138
+ const o = ue(), s = Se(), t = s1(), l = He(), i = Oe(), [c, _] = R(null);
1134
1139
  return ee(() => {
1135
1140
  var a;
1136
1141
  const d = t.current;
@@ -1179,12 +1184,12 @@ function o1({
1179
1184
  }
1180
1185
  );
1181
1186
  }
1182
- function r1({
1187
+ function u1({
1183
1188
  children: e
1184
1189
  }) {
1185
1190
  return /* @__PURE__ */ r("div", { className: K.label, children: e });
1186
1191
  }
1187
- function s1({ asChild: e, color: n, onSelect: o, children: s }) {
1192
+ function d1({ asChild: e, color: n, onSelect: o, children: s }) {
1188
1193
  const t = ue(), l = Oe(), i = g(K.item, n === "danger" && K.danger), c = () => {
1189
1194
  me(l), t.setOpen(!1), o == null || o();
1190
1195
  };
@@ -1215,30 +1220,30 @@ function s1({ asChild: e, color: n, onSelect: o, children: s }) {
1215
1220
  }
1216
1221
  return /* @__PURE__ */ r("button", { type: "button", role: "menuitem", tabIndex: -1, className: i, onClick: c, children: s });
1217
1222
  }
1218
- function l1() {
1223
+ function _1() {
1219
1224
  return /* @__PURE__ */ r("div", { role: "separator", className: K.separator });
1220
1225
  }
1221
- const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1226
+ const sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1222
1227
  __proto__: null,
1223
- Content: o1,
1224
- Item: s1,
1225
- Label: r1,
1226
- Root: t1,
1227
- Separator: l1,
1228
- Trigger: n1
1229
- }, Symbol.toStringTag, { value: "Module" })), i1 = "_list_1hc3r_19", c1 = "_trigger_1hc3r_28", Ee = {
1230
- list: i1,
1231
- trigger: c1
1228
+ Content: a1,
1229
+ Item: d1,
1230
+ Label: u1,
1231
+ Root: i1,
1232
+ Separator: _1,
1233
+ Trigger: c1
1234
+ }, Symbol.toStringTag, { value: "Module" })), p1 = "_list_1hc3r_19", f1 = "_trigger_1hc3r_28", Ee = {
1235
+ list: p1,
1236
+ trigger: f1
1232
1237
  }, Pe = q(null), Ve = () => {
1233
1238
  const e = x(Pe);
1234
1239
  if (!e) throw new Error("Tabs parts must be inside Tabs.Root");
1235
1240
  return e;
1236
1241
  };
1237
- function a1({ value: e, onValueChange: n, className: o, children: s }) {
1242
+ function g1({ value: e, onValueChange: n, className: o, children: s }) {
1238
1243
  const t = L();
1239
1244
  return /* @__PURE__ */ r(Pe.Provider, { value: { value: e, onValueChange: n, id: t }, children: /* @__PURE__ */ r("div", { className: o, children: s }) });
1240
1245
  }
1241
- function u1({
1246
+ function C1({
1242
1247
  children: e
1243
1248
  }) {
1244
1249
  return /* @__PURE__ */ r(
@@ -1274,7 +1279,7 @@ function u1({
1274
1279
  }
1275
1280
  );
1276
1281
  }
1277
- function d1({ value: e, className: n, children: o, ...s }) {
1282
+ function m1({ value: e, className: n, children: o, ...s }) {
1278
1283
  const t = Ve(), l = t.value === e;
1279
1284
  return /* @__PURE__ */ r(
1280
1285
  "button",
@@ -1293,64 +1298,64 @@ function d1({ value: e, className: n, children: o, ...s }) {
1293
1298
  }
1294
1299
  );
1295
1300
  }
1296
- function _1({
1301
+ function h1({
1297
1302
  value: e,
1298
1303
  children: n
1299
1304
  }) {
1300
1305
  const o = Ve();
1301
1306
  return o.value !== e ? null : /* @__PURE__ */ r("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: n });
1302
1307
  }
1303
- const tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1308
+ const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1304
1309
  __proto__: null,
1305
- Content: _1,
1306
- List: u1,
1307
- Root: a1,
1308
- Trigger: d1
1310
+ Content: h1,
1311
+ List: C1,
1312
+ Root: g1,
1313
+ Trigger: m1
1309
1314
  }, Symbol.toStringTag, { value: "Module" }));
1310
1315
  export {
1311
- J1 as AlertDialog,
1312
- b1 as Badge,
1313
- Y1 as BookmarkIcon,
1314
- h1 as Box,
1315
- R1 as Button,
1316
- y1 as Card,
1317
- N1 as ChatBubbleIcon,
1318
- P1 as CheckIcon,
1319
- U1 as ChevronDownIcon,
1320
- X1 as ChevronLeftIcon,
1321
- K1 as ChevronRightIcon,
1322
- G1 as ChevronUpIcon,
1323
- Q1 as Dialog,
1324
- er as DropdownMenu,
1325
- E1 as EnterFullScreenIcon,
1326
- O1 as ExitFullScreenIcon,
1327
- m1 as Flex,
1328
- v1 as Grid,
1316
+ rr as AlertDialog,
1317
+ x1 as Badge,
1318
+ nr as BookmarkIcon,
1319
+ $1 as Box,
1320
+ L1 as Button,
1321
+ k1 as Card,
1322
+ E1 as ChatBubbleIcon,
1323
+ W1 as CheckIcon,
1324
+ J1 as ChevronDownIcon,
1325
+ tr as ChevronLeftIcon,
1326
+ er as ChevronRightIcon,
1327
+ Q1 as ChevronUpIcon,
1328
+ or as Dialog,
1329
+ sr as DropdownMenu,
1330
+ B1 as EnterFullScreenIcon,
1331
+ A1 as ExitFullScreenIcon,
1332
+ y1 as Flex,
1333
+ R1 as Grid,
1329
1334
  gt as Heading,
1330
- j1 as HeartFilledIcon,
1331
- F1 as HeartIcon,
1332
- q1 as IconToggle,
1333
- C1 as Link,
1334
- x1 as Loader,
1335
- W1 as MagnifyingGlassIcon,
1336
- B1 as MinusIcon,
1337
- H1 as Pencil1Icon,
1338
- A1 as PersonIcon,
1339
- T1 as PlusIcon,
1340
- I1 as Progress,
1341
- Z1 as QuestionMarkCircledIcon,
1342
- D1 as RadioGroup,
1343
- $1 as ScrollArea,
1344
- k1 as Select,
1345
- w1 as Separator,
1346
- S1 as Share2Icon,
1347
- M1 as Slider,
1348
- tr as Tabs,
1335
+ Z1 as HeartFilledIcon,
1336
+ Y1 as HeartIcon,
1337
+ D1 as IconToggle,
1338
+ w1 as Link,
1339
+ M1 as Loader,
1340
+ X1 as MagnifyingGlassIcon,
1341
+ K1 as MinusIcon,
1342
+ V1 as Pencil1Icon,
1343
+ U1 as PersonIcon,
1344
+ P1 as PlusIcon,
1345
+ j1 as Progress,
1346
+ G1 as QuestionMarkCircledIcon,
1347
+ H1 as RadioGroup,
1348
+ z1 as ScrollArea,
1349
+ I1 as Select,
1350
+ q1 as Separator,
1351
+ O1 as Share2Icon,
1352
+ T1 as Slider,
1353
+ lr as Tabs,
1349
1354
  rt as Text,
1350
- L1 as TextArea,
1351
- z1 as TextField,
1355
+ N1 as TextArea,
1356
+ S1 as TextField,
1352
1357
  Yn as Tooltip,
1353
- V1 as TrashIcon,
1354
- No as XIcon
1358
+ F1 as TrashIcon,
1359
+ Po as XIcon
1355
1360
  };
1356
1361
  //# sourceMappingURL=index.js.map