@konstructio/ui 0.0.12-alpha.9 → 0.0.13-alpha.1

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.
Files changed (144) hide show
  1. package/dist/{Modal-B-E9uaA6.js → Modal-i7eolhYH.js} +311 -307
  2. package/dist/components/Alert/Alert.js +24 -29
  3. package/dist/components/Alert/Alert.variants.js +9 -15
  4. package/dist/components/AlertDialog/AlertDialog.js +59 -46
  5. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -2
  6. package/dist/components/AlertDialog/components/index.js +1 -1
  7. package/dist/components/Autocomplete/Autocomplete.js +76 -72
  8. package/dist/components/Autocomplete/Autocomplete.variants.js +11 -20
  9. package/dist/components/Autocomplete/components/List/List.js +28 -30
  10. package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
  11. package/dist/components/Breadcrumb/Breadcrumb.js +47 -56
  12. package/dist/components/Breadcrumb/Breadcrumb.variants.js +6 -26
  13. package/dist/components/Breadcrumb/components/Item/Item.js +29 -41
  14. package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -20
  15. package/dist/components/Button/Button.js +33 -37
  16. package/dist/components/Button/Button.variants.js +138 -195
  17. package/dist/components/Card/Card.js +32 -37
  18. package/dist/components/Card/Card.variants.js +18 -53
  19. package/dist/components/Checkbox/Checkbox.js +65 -68
  20. package/dist/components/Checkbox/Checkbox.variants.js +11 -35
  21. package/dist/components/Command/Command.js +33 -25
  22. package/dist/components/Command/Command.variants.js +47 -94
  23. package/dist/components/Command/components/Command.js +1 -1
  24. package/dist/components/Command/components/CommandEmpty.js +1 -1
  25. package/dist/components/Command/components/CommandGroup.js +1 -1
  26. package/dist/components/Command/components/CommandInput.js +1 -1
  27. package/dist/components/Command/components/CommandItem.js +1 -1
  28. package/dist/components/Command/components/CommandList.js +1 -1
  29. package/dist/components/Command/components/CommandSeparator.js +1 -1
  30. package/dist/components/Command/components/DialogContent.js +1 -1
  31. package/dist/components/Command/components/DialogOverlay.js +8 -8
  32. package/dist/components/Divider/Divider.js +3 -2
  33. package/dist/components/Divider/Divider.variants.js +12 -9
  34. package/dist/components/Dropdown/Dropdown.js +6 -6
  35. package/dist/components/Dropdown/Dropdown.variants.js +31 -38
  36. package/dist/components/Dropdown/components/List/List.js +17 -15
  37. package/dist/components/Dropdown/components/List/List.variants.js +22 -32
  38. package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -19
  39. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -30
  40. package/dist/components/Dropdown/components/Wrapper.js +127 -90
  41. package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
  42. package/dist/components/Dropdown/contexts/dropdown.provider.js +9 -9
  43. package/dist/components/Input/Input.js +37 -37
  44. package/dist/components/Input/Input.variants.js +8 -13
  45. package/dist/components/Loading/Loading.js +60 -58
  46. package/dist/components/Loading/Loading.variants.js +9 -15
  47. package/dist/components/Modal/Modal.js +2 -2
  48. package/dist/components/Modal/components/Body/Body.js +1 -1
  49. package/dist/components/Modal/components/Footer/Footer.js +2 -2
  50. package/dist/components/Modal/components/Header/Header.js +3 -3
  51. package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -4
  52. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
  53. package/dist/components/Modal/components/index.js +1 -1
  54. package/dist/components/NumberInput/NumberInput.js +93 -111
  55. package/dist/components/NumberInput/NumberInput.variants.js +30 -51
  56. package/dist/components/ProgressBar/ProgressBar.js +25 -29
  57. package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
  58. package/dist/components/Radio/Radio.js +45 -46
  59. package/dist/components/Radio/Radio.variants.js +4 -13
  60. package/dist/components/RadioCard/RadioCard.js +31 -37
  61. package/dist/components/RadioCard/RadioCard.variants.js +8 -17
  62. package/dist/components/RadioCardGroup/RadioCardGroup.js +22 -23
  63. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +3 -9
  64. package/dist/components/RadioGroup/RadioGroup.js +30 -31
  65. package/dist/components/RadioGroup/RadioGroup.variants.js +2 -8
  66. package/dist/components/Range/Range.js +28 -34
  67. package/dist/components/Range/Range.variants.js +21 -53
  68. package/dist/components/Sidebar/Sidebar.js +12 -13
  69. package/dist/components/Sidebar/Sidebar.variants.js +30 -56
  70. package/dist/components/Sidebar/components/Footer/Footer.js +5 -17
  71. package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
  72. package/dist/components/Sidebar/components/Logo/Logo.js +5 -15
  73. package/dist/components/Sidebar/components/Logo/Logo.variants.js +20 -36
  74. package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -28
  75. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
  76. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +21 -34
  77. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +2 -13
  78. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +21 -27
  79. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +7 -17
  80. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -19
  81. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
  82. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +8 -21
  83. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
  84. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -44
  85. package/dist/components/Slider/Slider.js +26 -27
  86. package/dist/components/Slider/Slider.variants.js +22 -34
  87. package/dist/components/Switch/Switch.js +103 -106
  88. package/dist/components/Switch/Switch.variants.js +28 -53
  89. package/dist/components/Table/Table.js +27 -0
  90. package/dist/components/Table/Table.variants.js +40 -0
  91. package/dist/components/Table/components/Body.js +18 -0
  92. package/dist/components/Table/components/Filter.js +9 -0
  93. package/dist/components/Table/components/Head.js +18 -0
  94. package/dist/components/Table/components/Row.js +28 -0
  95. package/dist/components/Table/components/index.js +10 -0
  96. package/dist/components/Tag/Tag.js +1 -1
  97. package/dist/components/TagSelect/TagSelect.variants.js +23 -55
  98. package/dist/components/TagSelect/components/Item/Item.js +12 -14
  99. package/dist/components/TagSelect/components/Item/Item.variants.js +11 -10
  100. package/dist/components/TagSelect/components/List/List.js +9 -10
  101. package/dist/components/TagSelect/components/List/List.variants.js +21 -35
  102. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +46 -48
  103. package/dist/components/TextArea/TextArea.js +20 -23
  104. package/dist/components/TextArea/TextArea.variants.js +19 -31
  105. package/dist/components/Toast/Toast.js +110 -116
  106. package/dist/components/Toast/Toast.variants.js +42 -70
  107. package/dist/components/Tooltip/Tooltip.js +21 -27
  108. package/dist/components/Tooltip/Tooltip.variants.js +61 -62
  109. package/dist/components/Typography/Typography.js +23 -19
  110. package/dist/components/Typography/Typography.variants.js +1 -7
  111. package/dist/components/index.js +22 -20
  112. package/dist/contexts/theme.provider.js +37 -39
  113. package/dist/domain/theme.js +0 -0
  114. package/dist/index-AM3avohj.js +133 -0
  115. package/dist/{index-BzaHYXkt.js → index-BOx5P4tS.js} +5 -5
  116. package/dist/index-Bk324h27.js +82 -0
  117. package/dist/{index-4ecjw_Aj.js → index-Bry5AFQ2.js} +1 -1
  118. package/dist/{index-CbTU3cnP.js → index-CWKdynYu.js} +1 -1
  119. package/dist/index-D9BbbgUq.js +47 -0
  120. package/dist/{index-DyKo5ZJT.js → index-DvFiic6N.js} +45 -45
  121. package/dist/{index-Dj1pom3_.js → index-G_6jG4Qc.js} +2 -2
  122. package/dist/{index-D_76wh4w.js → index-YaQrdkGE.js} +3 -3
  123. package/dist/{index-Cva-e5M4.js → index-bYyfdsls.js} +9 -9
  124. package/dist/index-dRxIWVBr.js +313 -0
  125. package/dist/{index-D7QNmo_D.js → index-g-TFwd6Y.js} +41 -41
  126. package/dist/index.d.ts +115 -98
  127. package/dist/index.js +30 -30
  128. package/dist/package.json +37 -36
  129. package/dist/styles.css +1 -1
  130. package/dist/ui/kubefirst-theme.css +296 -0
  131. package/dist/ui/theme.css +6 -0
  132. package/dist/ui/utilities.css +165 -0
  133. package/dist/utils/index.js +675 -424
  134. package/package.json +37 -36
  135. package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
  136. package/dist/index-B_6_jmOO.js +0 -68
  137. package/dist/index-BbsJ0VIJ.js +0 -47
  138. package/dist/index-CzSBQN5S.js +0 -432
  139. package/dist/index-DUA6Y_AE.js +0 -126
  140. package/dist/plugins/index.js +0 -4
  141. package/dist/plugins/konstruct.js +0 -118
  142. package/dist/plugins/utils/animation.styles.js +0 -162
  143. package/dist/plugins/utils/colors.js +0 -331
  144. package/dist/plugins/utils/index.js +0 -7
@@ -0,0 +1,82 @@
1
+ import * as i from "react";
2
+ import { jsx as f, Fragment as g } from "react/jsx-runtime";
3
+ function d(e, n) {
4
+ if (typeof e == "function")
5
+ return e(n);
6
+ e != null && (e.current = n);
7
+ }
8
+ function m(...e) {
9
+ return (n) => {
10
+ let r = !1;
11
+ const o = e.map((t) => {
12
+ const l = d(t, n);
13
+ return !r && typeof l == "function" && (r = !0), l;
14
+ });
15
+ if (r)
16
+ return () => {
17
+ for (let t = 0; t < o.length; t++) {
18
+ const l = o[t];
19
+ typeof l == "function" ? l() : d(e[t], null);
20
+ }
21
+ };
22
+ };
23
+ }
24
+ function x(...e) {
25
+ return i.useCallback(m(...e), e);
26
+ }
27
+ // @__NO_SIDE_EFFECTS__
28
+ function C(e) {
29
+ const n = /* @__PURE__ */ b(e), r = i.forwardRef((o, t) => {
30
+ const { children: l, ...a } = o, s = i.Children.toArray(l), u = s.find(E);
31
+ if (u) {
32
+ const c = u.props.children, S = s.map((p) => p === u ? i.Children.count(c) > 1 ? i.Children.only(null) : i.isValidElement(c) ? c.props.children : null : p);
33
+ return /* @__PURE__ */ f(n, { ...a, ref: t, children: i.isValidElement(c) ? i.cloneElement(c, void 0, S) : null });
34
+ }
35
+ return /* @__PURE__ */ f(n, { ...a, ref: t, children: l });
36
+ });
37
+ return r.displayName = `${e}.Slot`, r;
38
+ }
39
+ var I = /* @__PURE__ */ C("Slot");
40
+ // @__NO_SIDE_EFFECTS__
41
+ function b(e) {
42
+ const n = i.forwardRef((r, o) => {
43
+ const { children: t, ...l } = r;
44
+ if (i.isValidElement(t)) {
45
+ const a = h(t), s = R(l, t.props);
46
+ return t.type !== i.Fragment && (s.ref = o ? m(o, a) : a), i.cloneElement(t, s);
47
+ }
48
+ return i.Children.count(t) > 1 ? i.Children.only(null) : null;
49
+ });
50
+ return n.displayName = `${e}.SlotClone`, n;
51
+ }
52
+ var y = Symbol("radix.slottable");
53
+ // @__NO_SIDE_EFFECTS__
54
+ function V(e) {
55
+ const n = ({ children: r }) => /* @__PURE__ */ f(g, { children: r });
56
+ return n.displayName = `${e}.Slottable`, n.__radixId = y, n;
57
+ }
58
+ function E(e) {
59
+ return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === y;
60
+ }
61
+ function R(e, n) {
62
+ const r = { ...n };
63
+ for (const o in n) {
64
+ const t = e[o], l = n[o];
65
+ /^on[A-Z]/.test(o) ? t && l ? r[o] = (...s) => {
66
+ l(...s), t(...s);
67
+ } : t && (r[o] = t) : o === "style" ? r[o] = { ...t, ...l } : o === "className" && (r[o] = [t, l].filter(Boolean).join(" "));
68
+ }
69
+ return { ...e, ...r };
70
+ }
71
+ function h(e) {
72
+ var o, t;
73
+ let n = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, r = n && "isReactWarning" in n && n.isReactWarning;
74
+ return r ? e.ref : (n = (t = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : t.get, r = n && "isReactWarning" in n && n.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
75
+ }
76
+ export {
77
+ I as S,
78
+ m as a,
79
+ V as b,
80
+ C as c,
81
+ x as u
82
+ };
@@ -1,5 +1,5 @@
1
1
  import * as f from "react";
2
- import { u as a } from "./index-Cva-e5M4.js";
2
+ import { u as a } from "./index-bYyfdsls.js";
3
3
  function h(r) {
4
4
  const e = f.useRef({ value: r, previous: r });
5
5
  return f.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- import { P as o } from "./index-D7QNmo_D.js";
2
+ import { P as o } from "./index-g-TFwd6Y.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  var d = "VisuallyHidden", a = e.forwardRef(
5
5
  (r, i) => /* @__PURE__ */ t(
@@ -0,0 +1,47 @@
1
+ import r from "react";
2
+ import { c as y } from "./index-bYyfdsls.js";
3
+ import { u as M, c as x } from "./index-Bk324h27.js";
4
+ import { jsx as d } from "react/jsx-runtime";
5
+ function D(s) {
6
+ const f = s + "CollectionProvider", [A, N] = y(f), [_, m] = A(
7
+ f,
8
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
9
+ ), p = (c) => {
10
+ const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
11
+ return /* @__PURE__ */ d(_, { scope: e, itemMap: t, collectionRef: o, children: l });
12
+ };
13
+ p.displayName = f;
14
+ const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
15
+ (c, e) => {
16
+ const { scope: l, children: o } = c, t = m(a, l), n = M(e, t.collectionRef);
17
+ return /* @__PURE__ */ d(E, { ref: n, children: o });
18
+ }
19
+ );
20
+ C.displayName = a;
21
+ const u = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(u), I = r.forwardRef(
22
+ (c, e) => {
23
+ const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = m(u, l);
24
+ return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d(T, { [R]: "", ref: S, children: o });
25
+ }
26
+ );
27
+ I.displayName = u;
28
+ function O(c) {
29
+ const e = m(s + "CollectionConsumer", c);
30
+ return r.useCallback(() => {
31
+ const o = e.collectionRef.current;
32
+ if (!o) return [];
33
+ const t = Array.from(o.querySelectorAll(`[${R}]`));
34
+ return Array.from(e.itemMap.values()).sort(
35
+ (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
36
+ );
37
+ }, [e.collectionRef, e.itemMap]);
38
+ }
39
+ return [
40
+ { Provider: p, Slot: C, ItemSlot: I },
41
+ O,
42
+ N
43
+ ];
44
+ }
45
+ export {
46
+ D as c
47
+ };
@@ -1,12 +1,12 @@
1
1
  import * as i from "react";
2
- import { u as Ee, d as j, a as he, c as ye, b as _, e as De } from "./index-Cva-e5M4.js";
3
- import { u as S, S as be } from "./index-B_6_jmOO.js";
4
- import { P as Ce, D as Ae } from "./index-D_76wh4w.js";
5
- import { P as N } from "./index-D7QNmo_D.js";
2
+ import { u as Ee, d as j, a as he, c as ye, b as _, e as De } from "./index-bYyfdsls.js";
3
+ import { u as S, c as be } from "./index-Bk324h27.js";
4
+ import { P as Ce, D as Re } from "./index-YaQrdkGE.js";
5
+ import { P as N } from "./index-g-TFwd6Y.js";
6
6
  import { jsx as f, jsxs as q, Fragment as B } from "react/jsx-runtime";
7
- import { P as W } from "./index-Dj1pom3_.js";
8
- import { R as Re } from "./Combination-b348x__d.js";
9
- var Ne = i.useId || (() => {
7
+ import { P as W } from "./index-G_6jG4Qc.js";
8
+ import { R as Ae } from "./Combination-b348x__d.js";
9
+ var Ne = i[" useId ".trim().toString()] || (() => {
10
10
  }), Oe = 0;
11
11
  function M(e) {
12
12
  const [n, t] = i.useState(Ne());
@@ -161,7 +161,7 @@ var we = function(e) {
161
161
  return null;
162
162
  var n = Array.isArray(e) ? e[0] : e;
163
163
  return n.ownerDocument.body;
164
- }, R = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), T = {}, k = 0, ee = function(e) {
164
+ }, A = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), T = {}, k = 0, ee = function(e) {
165
165
  return e && (e.host || ee(e.parentNode));
166
166
  }, Le = function(e, n) {
167
167
  return n.map(function(t) {
@@ -185,8 +185,8 @@ var we = function(e) {
185
185
  h(d);
186
186
  else
187
187
  try {
188
- var p = d.getAttribute(o), I = p !== null && p !== "false", l = (R.get(d) || 0) + 1, b = (r.get(d) || 0) + 1;
189
- R.set(d, l), r.set(d, b), c.push(d), l === 1 && I && P.set(d, !0), b === 1 && d.setAttribute(t, "true"), I || d.setAttribute(o, "true");
188
+ var p = d.getAttribute(o), I = p !== null && p !== "false", l = (A.get(d) || 0) + 1, b = (r.get(d) || 0) + 1;
189
+ A.set(d, l), r.set(d, b), c.push(d), l === 1 && I && P.set(d, !0), b === 1 && d.setAttribute(t, "true"), I || d.setAttribute(o, "true");
190
190
  } catch (v) {
191
191
  console.error("aria-hidden: cannot operate on ", d, v);
192
192
  }
@@ -194,9 +194,9 @@ var we = function(e) {
194
194
  };
195
195
  return h(n), s.clear(), k++, function() {
196
196
  c.forEach(function(u) {
197
- var d = R.get(u) - 1, p = r.get(u) - 1;
198
- R.set(u, d), r.set(u, p), d || (P.has(u) || u.removeAttribute(o), P.delete(u)), p || u.removeAttribute(t);
199
- }), k--, k || (R = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), T = {});
197
+ var d = A.get(u) - 1, p = r.get(u) - 1;
198
+ A.set(u, d), r.set(u, p), d || (P.has(u) || u.removeAttribute(o), P.delete(u)), p || u.removeAttribute(t);
199
+ }), k--, k || (A = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), T = {});
200
200
  };
201
201
  }, We = function(e, n, t) {
202
202
  t === void 0 && (t = "data-aria-hidden");
@@ -204,7 +204,7 @@ var we = function(e) {
204
204
  return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), ke(o, a, t, "aria-hidden")) : function() {
205
205
  return null;
206
206
  };
207
- }, U = "Dialog", [te, et] = ye(U), [Ue, E] = te(U), ne = (e) => {
207
+ }, U = "Dialog", [te, tt] = ye(U), [Ue, E] = te(U), ne = (e) => {
208
208
  const {
209
209
  __scopeDialog: n,
210
210
  children: t,
@@ -264,17 +264,17 @@ se.displayName = K;
264
264
  var F = "DialogOverlay", ie = i.forwardRef(
265
265
  (e, n) => {
266
266
  const t = ae(F, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = E(F, e.__scopeDialog);
267
- return r.modal ? /* @__PURE__ */ f(W, { present: o || r.open, children: /* @__PURE__ */ f(Ge, { ...a, ref: n }) }) : null;
267
+ return r.modal ? /* @__PURE__ */ f(W, { present: o || r.open, children: /* @__PURE__ */ f($e, { ...a, ref: n }) }) : null;
268
268
  }
269
269
  );
270
270
  ie.displayName = F;
271
- var Ge = i.forwardRef(
271
+ var Ge = be("DialogOverlay.RemoveScroll"), $e = i.forwardRef(
272
272
  (e, n) => {
273
273
  const { __scopeDialog: t, ...o } = e, a = E(F, t);
274
274
  return (
275
275
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
276
276
  // ie. when `Overlay` and `Content` are siblings
277
- /* @__PURE__ */ f(Re, { as: be, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
277
+ /* @__PURE__ */ f(Ae, { as: Ge, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
278
278
  N.div,
279
279
  {
280
280
  "data-state": $(a.open),
@@ -285,16 +285,16 @@ var Ge = i.forwardRef(
285
285
  ) })
286
286
  );
287
287
  }
288
- ), A = "DialogContent", ce = i.forwardRef(
288
+ ), R = "DialogContent", ce = i.forwardRef(
289
289
  (e, n) => {
290
- const t = ae(A, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = E(A, e.__scopeDialog);
291
- return /* @__PURE__ */ f(W, { present: o || r.open, children: r.modal ? /* @__PURE__ */ f($e, { ...a, ref: n }) : /* @__PURE__ */ f(He, { ...a, ref: n }) });
290
+ const t = ae(R, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = E(R, e.__scopeDialog);
291
+ return /* @__PURE__ */ f(W, { present: o || r.open, children: r.modal ? /* @__PURE__ */ f(He, { ...a, ref: n }) : /* @__PURE__ */ f(je, { ...a, ref: n }) });
292
292
  }
293
293
  );
294
- ce.displayName = A;
295
- var $e = i.forwardRef(
294
+ ce.displayName = R;
295
+ var He = i.forwardRef(
296
296
  (e, n) => {
297
- const t = E(A, e.__scopeDialog), o = i.useRef(null), a = S(n, t.contentRef, o);
297
+ const t = E(R, e.__scopeDialog), o = i.useRef(null), a = S(n, t.contentRef, o);
298
298
  return i.useEffect(() => {
299
299
  const r = o.current;
300
300
  if (r) return We(r);
@@ -320,9 +320,9 @@ var $e = i.forwardRef(
320
320
  }
321
321
  );
322
322
  }
323
- ), He = i.forwardRef(
323
+ ), je = i.forwardRef(
324
324
  (e, n) => {
325
- const t = E(A, e.__scopeDialog), o = i.useRef(!1), a = i.useRef(!1);
325
+ const t = E(R, e.__scopeDialog), o = i.useRef(!1), a = i.useRef(!1);
326
326
  return /* @__PURE__ */ f(
327
327
  ue,
328
328
  {
@@ -345,7 +345,7 @@ var $e = i.forwardRef(
345
345
  }
346
346
  ), ue = i.forwardRef(
347
347
  (e, n) => {
348
- const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...c } = e, s = E(A, t), g = i.useRef(null), m = S(n, g);
348
+ const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...c } = e, s = E(R, t), g = i.useRef(null), m = S(n, g);
349
349
  return xe(), /* @__PURE__ */ q(B, { children: [
350
350
  /* @__PURE__ */ f(
351
351
  Q,
@@ -356,7 +356,7 @@ var $e = i.forwardRef(
356
356
  onMountAutoFocus: a,
357
357
  onUnmountAutoFocus: r,
358
358
  children: /* @__PURE__ */ f(
359
- Ae,
359
+ Re,
360
360
  {
361
361
  role: "dialog",
362
362
  id: s.contentId,
@@ -371,8 +371,8 @@ var $e = i.forwardRef(
371
371
  }
372
372
  ),
373
373
  /* @__PURE__ */ q(B, { children: [
374
- /* @__PURE__ */ f(je, { titleId: s.titleId }),
375
- /* @__PURE__ */ f(Be, { contentRef: g, descriptionId: s.descriptionId })
374
+ /* @__PURE__ */ f(qe, { titleId: s.titleId }),
375
+ /* @__PURE__ */ f(Ve, { contentRef: g, descriptionId: s.descriptionId })
376
376
  ] })
377
377
  ] });
378
378
  }
@@ -408,11 +408,11 @@ ve.displayName = pe;
408
408
  function $(e) {
409
409
  return e ? "open" : "closed";
410
410
  }
411
- var me = "DialogTitleWarning", [tt, ge] = De(me, {
412
- contentName: A,
411
+ var me = "DialogTitleWarning", [nt, ge] = De(me, {
412
+ contentName: R,
413
413
  titleName: G,
414
414
  docsSlug: "dialog"
415
- }), je = ({ titleId: e }) => {
415
+ }), qe = ({ titleId: e }) => {
416
416
  const n = ge(me), t = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
417
417
 
418
418
  If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -421,26 +421,26 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
421
421
  return i.useEffect(() => {
422
422
  e && (document.getElementById(e) || console.error(t));
423
423
  }, [t, e]), null;
424
- }, qe = "DialogDescriptionWarning", Be = ({ contentRef: e, descriptionId: n }) => {
425
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ge(qe).contentName}}.`;
424
+ }, Be = "DialogDescriptionWarning", Ve = ({ contentRef: e, descriptionId: n }) => {
425
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ge(Be).contentName}}.`;
426
426
  return i.useEffect(() => {
427
427
  var r;
428
428
  const a = (r = e.current) == null ? void 0 : r.getAttribute("aria-describedby");
429
429
  n && a && (document.getElementById(n) || console.warn(o));
430
430
  }, [o, e, n]), null;
431
- }, nt = ne, ot = re, rt = se, at = ie, st = ce, it = le, ct = de, ut = ve;
431
+ }, ot = ne, rt = re, at = se, st = ie, it = ce, ct = le, ut = de, lt = ve;
432
432
  export {
433
- st as C,
433
+ it as C,
434
434
  le as D,
435
- at as O,
436
- rt as P,
437
- nt as R,
438
- it as T,
439
- tt as W,
435
+ st as O,
436
+ at as P,
437
+ ot as R,
438
+ ct as T,
439
+ nt as W,
440
440
  se as a,
441
- ut as b,
442
- et as c,
443
- ct as d,
444
- ot as e,
441
+ lt as b,
442
+ tt as c,
443
+ ut as d,
444
+ rt as e,
445
445
  M as u
446
446
  };
@@ -1,6 +1,6 @@
1
1
  import * as a from "react";
2
- import { u as T } from "./index-B_6_jmOO.js";
3
- import { u as A } from "./index-Cva-e5M4.js";
2
+ import { u as T } from "./index-Bk324h27.js";
3
+ import { u as A } from "./index-bYyfdsls.js";
4
4
  function E(n, e) {
5
5
  return a.useReducer((r, t) => e[r][t] ?? r, n);
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import * as i from "react";
2
- import { d as b, b as h, u as U } from "./index-Cva-e5M4.js";
3
- import { P as m, d as z, R as H } from "./index-D7QNmo_D.js";
4
- import { u as T } from "./index-B_6_jmOO.js";
2
+ import { d as b, b as h, u as U } from "./index-bYyfdsls.js";
3
+ import { P as m, d as z, R as H } from "./index-g-TFwd6Y.js";
4
+ import { u as T } from "./index-Bk324h27.js";
5
5
  import { jsx as P } from "react/jsx-runtime";
6
6
  function K(r, e = globalThis == null ? void 0 : globalThis.document) {
7
7
  const s = b(r);
@@ -19,18 +19,18 @@ function y(t, e = []) {
19
19
  function s(c, r) {
20
20
  const i = u.createContext(r), f = n.length;
21
21
  n = [...n, r];
22
- const a = (l) => {
22
+ const a = (d) => {
23
23
  var S;
24
- const { scope: d, children: h, ...x } = l, m = ((S = d == null ? void 0 : d[t]) == null ? void 0 : S[f]) || i, p = u.useMemo(() => x, Object.values(x));
24
+ const { scope: l, children: h, ...x } = d, m = ((S = l == null ? void 0 : l[t]) == null ? void 0 : S[f]) || i, p = u.useMemo(() => x, Object.values(x));
25
25
  return /* @__PURE__ */ v(m.Provider, { value: p, children: h });
26
26
  };
27
27
  a.displayName = c + "Provider";
28
- function C(l, d) {
28
+ function C(d, l) {
29
29
  var m;
30
- const h = ((m = d == null ? void 0 : d[t]) == null ? void 0 : m[f]) || i, x = u.useContext(h);
30
+ const h = ((m = l == null ? void 0 : l[t]) == null ? void 0 : m[f]) || i, x = u.useContext(h);
31
31
  if (x) return x;
32
32
  if (r !== void 0) return r;
33
- throw new Error(`\`${l}\` must be used within \`${c}\``);
33
+ throw new Error(`\`${d}\` must be used within \`${c}\``);
34
34
  }
35
35
  return [a, C];
36
36
  }
@@ -56,8 +56,8 @@ function b(...t) {
56
56
  }));
57
57
  return function(c) {
58
58
  const r = s.reduce((i, { useScope: f, scopeName: a }) => {
59
- const l = f(c)[`__scope${a}`];
60
- return { ...i, ...l };
59
+ const d = f(c)[`__scope${a}`];
60
+ return { ...i, ...d };
61
61
  }, {});
62
62
  return u.useMemo(() => ({ [`__scope${e.scopeName}`]: r }), [r]);
63
63
  };
@@ -90,8 +90,8 @@ function j({
90
90
  const [s, o] = $({ defaultProp: e, onChange: n }), c = t !== void 0, r = c ? t : s, i = P(n), f = u.useCallback(
91
91
  (a) => {
92
92
  if (c) {
93
- const l = typeof a == "function" ? a(t) : a;
94
- l !== t && i(l);
93
+ const d = typeof a == "function" ? a(t) : a;
94
+ d !== t && i(d);
95
95
  } else
96
96
  o(a);
97
97
  },