@spear-ai/spectral 1.11.3 → 1.12.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 (123) hide show
  1. package/README.md +4 -0
  2. package/dist/.js +124 -121
  3. package/dist/{Accordion-CDXdSAST.js → Accordion-Cyrb2byI.js} +1 -1
  4. package/dist/Accordion.js +1 -1
  5. package/dist/Alert/AlertBase.js +1 -1
  6. package/dist/Alert.js +3 -3
  7. package/dist/{AnimatePresence-D-9jXfgI.js → AnimatePresence-D9FLxIGV.js} +1 -1
  8. package/dist/Avatar.js +46 -48
  9. package/dist/Badge.js +1 -1
  10. package/dist/Button.js +1 -1
  11. package/dist/ButtonGroup/ButtonGroupButton.js +1 -1
  12. package/dist/ButtonGroup.js +1 -1
  13. package/dist/ButtonIcon.js +1 -1
  14. package/dist/{Calendar-s4lyijkn.js → Calendar-2UVWeLYp.js} +4 -4
  15. package/dist/Checkbox/CheckboxBase.js +1 -1
  16. package/dist/Checkbox.d.ts +10 -3
  17. package/dist/Checkbox.js +55 -35
  18. package/dist/{es2015-YHaMV-St.js → Combination-9q50p_Vu.js} +251 -254
  19. package/dist/Combobox/ComboboxBase.js +492 -3
  20. package/dist/Combobox-Ch5Rxk5v.js +6360 -0
  21. package/dist/Combobox.d.ts +5 -3
  22. package/dist/Combobox.js +3 -143
  23. package/dist/ControlGroup/ControlGroupSelect.d.ts +5 -2
  24. package/dist/ControlGroup/ControlGroupSelect.js +32 -29
  25. package/dist/ControlGroup.d.ts +3 -2
  26. package/dist/ControlGroup.js +41 -33
  27. package/dist/DataCard/Card.js +1 -1
  28. package/dist/DataCard.js +1 -1
  29. package/dist/DateTimePicker/Calendar.js +1 -1
  30. package/dist/DateTimePicker/DateTimeDisplayInput.js +84 -83
  31. package/dist/DateTimePicker/DateTimeInput.js +2 -2
  32. package/dist/DateTimePicker/DateTimeUtils.js +1 -1
  33. package/dist/DateTimePicker/TimePeriodSelect.js +32 -35
  34. package/dist/DateTimePicker/TimePicker.js +2 -2
  35. package/dist/DateTimePicker.d.ts +1 -1
  36. package/dist/DateTimePicker.js +55 -52
  37. package/dist/{DateTimeUtils-DVvG6H-p.js → DateTimeUtils-DrR2JWoU.js} +1 -1
  38. package/dist/Dialog.js +3 -3
  39. package/dist/Drawer.js +1 -1
  40. package/dist/DropdownMenu.d.ts +61 -0
  41. package/dist/DropdownMenu.js +869 -0
  42. package/dist/{HoverCard-CYDsIiVK.js → HoverCard-BGpW6LnA.js} +3 -3
  43. package/dist/HoverCard.js +1 -1
  44. package/dist/Icons/AdjustmentsIcon.d.ts +5 -0
  45. package/dist/Icons/AdjustmentsIcon.js +78 -0
  46. package/dist/Icons/MenuDotsIcon.d.ts +5 -0
  47. package/dist/Icons/MenuDotsIcon.js +36 -0
  48. package/dist/Icons/MenuIcon.d.ts +5 -0
  49. package/dist/Icons/MenuIcon.js +36 -0
  50. package/dist/Icons/index.d.ts +3 -0
  51. package/dist/Icons.js +81 -78
  52. package/dist/IconsAnimated/PanelLeftCloseIcon.js +3 -3
  53. package/dist/IconsAnimated/PanelLeftOpenIcon.js +3 -3
  54. package/dist/Input.js +1 -1
  55. package/dist/InputNumeric.js +1 -1
  56. package/dist/{InputOTP-cVn5Bzyp.js → InputOTP-BkSw_KIB.js} +12 -10
  57. package/dist/InputOTP.js +1 -1
  58. package/dist/Kbd.js +1 -1
  59. package/dist/Label.js +1 -1
  60. package/dist/MultiSelect/MultiSelectBase.d.ts +6 -4
  61. package/dist/MultiSelect/MultiSelectBase.js +222 -201
  62. package/dist/MultiSelect.d.ts +2 -1
  63. package/dist/MultiSelect.js +14 -12
  64. package/dist/Popover.js +2 -2
  65. package/dist/RadioButton.js +1 -1
  66. package/dist/RadioButtonGroup/RadioButtonGroupBase.js +1 -1
  67. package/dist/RadioButtonGroup.js +1 -1
  68. package/dist/RadioGroup-CfjhpW5o.js +328 -0
  69. package/dist/RadioGroup.d.ts +7 -0
  70. package/dist/RadioGroup.js +1 -1
  71. package/dist/Select.d.ts +5 -2
  72. package/dist/Select.js +97 -85
  73. package/dist/Separator.js +1 -1
  74. package/dist/Skeleton.js +1 -1
  75. package/dist/{Slider-BzzZT3Zm.js → Slider-mODhqkCs.js} +4 -4
  76. package/dist/Slider.js +1 -1
  77. package/dist/Switch-Wj_zov--.js +144 -0
  78. package/dist/Switch.d.ts +12 -3
  79. package/dist/Switch.js +1 -1
  80. package/dist/Tabs/TabsBase.js +4 -4
  81. package/dist/Tabs.js +1 -1
  82. package/dist/Textarea.d.ts +3 -2
  83. package/dist/Textarea.js +50 -45
  84. package/dist/{Toast-9zqXxKKO.js → Toast-CJvzLlMD.js} +1 -1
  85. package/dist/Toast.js +1 -1
  86. package/dist/Toggle.js +1 -1
  87. package/dist/ToggleGroup.js +1 -1
  88. package/dist/{Tooltip-D1K8kY1y.js → Tooltip-DH_BzFye.js} +5 -5
  89. package/dist/Tooltip.js +1 -1
  90. package/dist/Tray.js +5 -5
  91. package/dist/{chunk-h9knIhTc.js → chunk-C4rFPcKS.js} +1 -1
  92. package/dist/dist-BMu6Dgh_.js +149 -0
  93. package/dist/{dist-fW81qjVl.js → dist-C9fJjxxB.js} +41 -41
  94. package/dist/{dist-C0Hifjgh.js → dist-Cv8I-d2q.js} +2 -2
  95. package/dist/{dist-B9tup-4O.js → dist-D6QANKSj.js} +5 -5
  96. package/dist/{dist-3Af8168y.js → dist-Tbzy5UFA.js} +1 -1
  97. package/dist/{dist-B2k1iWFp.js → dist-jQ7HawWM.js} +1 -1
  98. package/dist/{dist-BtdmHAzK.js → dist-nYKAWiy4.js} +6 -6
  99. package/dist/main.js +1 -1
  100. package/dist/primitives/button.js +1 -1
  101. package/dist/primitives/input-group.js +1 -1
  102. package/dist/primitives/input.js +1 -1
  103. package/dist/primitives/popover.js +2 -2
  104. package/dist/primitives/select.js +40 -40
  105. package/dist/primitives/textarea.js +1 -1
  106. package/dist/{proxy-Dn10Pl_g.js → proxy-CCB7C4Pu.js} +10 -10
  107. package/dist/styles/spectral.css +1 -1
  108. package/dist/{twUtils-VNWgstKL.js → twUtils-D_qzdiwM.js} +1 -1
  109. package/dist/{use-animation-CBUDycyW.js → use-animation-C-qL83hj.js} +1 -1
  110. package/dist/utils/formFieldUtils.d.ts +15 -1
  111. package/dist/utils/formFieldUtils.d.ts.map +1 -1
  112. package/dist/utils/formFieldUtils.js +35 -19
  113. package/dist/utils/twUtils.js +1 -1
  114. package/package.json +27 -22
  115. package/dist/ComboboxBase-qX-mQhT6.js +0 -491
  116. package/dist/RadioGroup-w_q6RGEK.js +0 -447
  117. package/dist/Switch-CVzRJ-0n.js +0 -126
  118. /package/dist/{dist-Bfjk-jx9.js → dist-ChNh3U3S.js} +0 -0
  119. /package/dist/{dist-B4FgboI8.js → dist-Cujfuel1.js} +0 -0
  120. /package/dist/{dist-D8Wb_MX9.js → dist-DDjUcieO.js} +0 -0
  121. /package/dist/{dist-s1uWaZYZ.js → dist-DFT13f_s.js} +0 -0
  122. /package/dist/{dist-ClmepHp4.js → dist-DIt8FP2G.js} +0 -0
  123. /package/dist/{dist-BK1K0g9W.js → dist-K0_i37VL.js} +0 -0
@@ -2,13 +2,13 @@ import "./styles/main.css";
2
2
  import { a as e, d as t, i as n, l as r, o as i, r as a, t as o } from "./dist-7HRQ5IKN.js";
3
3
  import { n as s, t as c } from "./dist-CGzgmYB9.js";
4
4
  import { t as l } from "./dist-Dtvmk11N.js";
5
- import { t as u } from "./dist-ClmepHp4.js";
6
- import { n as d, t as f } from "./dist-B2k1iWFp.js";
7
- import { i as p, n as m, r as h, t as g } from "./es2015-YHaMV-St.js";
8
- import { t as _ } from "./dist-D8Wb_MX9.js";
9
- import { a as v, i as y, n as b, r as x, t as S } from "./dist-C0Hifjgh.js";
10
- import { t as C } from "./dist-s1uWaZYZ.js";
11
- import { n as w } from "./dist-Bfjk-jx9.js";
5
+ import { t as u } from "./dist-DDjUcieO.js";
6
+ import { t as d } from "./dist-DIt8FP2G.js";
7
+ import { n as f, t as p } from "./dist-jQ7HawWM.js";
8
+ import { i as m, n as h, r as g, t as _ } from "./Combination-9q50p_Vu.js";
9
+ import { a as v, i as y, n as b, r as x, t as S } from "./dist-Cv8I-d2q.js";
10
+ import { t as C } from "./dist-DFT13f_s.js";
11
+ import { n as w } from "./dist-ChNh3U3S.js";
12
12
  import * as T from "react";
13
13
  import * as E from "react-dom";
14
14
  import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
@@ -145,7 +145,7 @@ var ne = "SelectIcon", re = T.forwardRef((e, t) => {
145
145
  });
146
146
  });
147
147
  re.displayName = ne;
148
- var ie = "SelectPortal", ae = (e) => /* @__PURE__ */ O(f, {
148
+ var ie = "SelectPortal", ae = (e) => /* @__PURE__ */ O(p, {
149
149
  asChild: !0,
150
150
  ...e
151
151
  });
@@ -171,10 +171,10 @@ var K = "SelectContent", q = T.forwardRef((e, t) => {
171
171
  });
172
172
  q.displayName = K;
173
173
  var J = 10, [oe, Y] = I(K), se = "SelectContentImpl", ce = i("SelectContent.RemoveScroll"), le = T.forwardRef((t, n) => {
174
- let { __scopeSelect: i, position: a = "item-aligned", onCloseAutoFocus: o, onEscapeKeyDown: s, onPointerDownOutside: c, side: l, sideOffset: u, align: f, alignOffset: _, arrowPadding: v, collisionBoundary: y, collisionPadding: b, sticky: x, hideWhenDetached: S, avoidCollisions: C, ...w } = t, E = z(K, i), [D, k] = T.useState(null), [A, j] = T.useState(null), M = r(n, (e) => k(e)), [N, F] = T.useState(null), [I, ee] = T.useState(null), L = P(i), [R, te] = T.useState(!1), B = T.useRef(!1);
174
+ let { __scopeSelect: i, position: a = "item-aligned", onCloseAutoFocus: o, onEscapeKeyDown: s, onPointerDownOutside: c, side: l, sideOffset: u, align: d, alignOffset: p, arrowPadding: v, collisionBoundary: y, collisionPadding: b, sticky: x, hideWhenDetached: S, avoidCollisions: C, ...w } = t, E = z(K, i), [D, k] = T.useState(null), [A, j] = T.useState(null), M = r(n, (e) => k(e)), [N, F] = T.useState(null), [I, ee] = T.useState(null), L = P(i), [R, te] = T.useState(!1), B = T.useRef(!1);
175
175
  T.useEffect(() => {
176
- if (D) return g(D);
177
- }, [D]), h();
176
+ if (D) return h(D);
177
+ }, [D]), m();
178
178
  let V = T.useCallback((e) => {
179
179
  let [t, ...n] = L().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
180
180
  for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && A && (A.scrollTop = 0), n === r && A && (A.scrollTop = A.scrollHeight), n?.focus(), document.activeElement !== i)) return;
@@ -229,8 +229,8 @@ var J = 10, [oe, Y] = I(K), se = "SelectContentImpl", ce = i("SelectContent.Remo
229
229
  }, [E.value]), q = a === "popper" ? X : de, J = q === X ? {
230
230
  side: l,
231
231
  sideOffset: u,
232
- align: f,
233
- alignOffset: _,
232
+ align: d,
233
+ alignOffset: p,
234
234
  arrowPadding: v,
235
235
  collisionBoundary: y,
236
236
  collisionPadding: b,
@@ -252,10 +252,10 @@ var J = 10, [oe, Y] = I(K), se = "SelectContentImpl", ce = i("SelectContent.Remo
252
252
  position: a,
253
253
  isPositioned: R,
254
254
  searchRef: G,
255
- children: /* @__PURE__ */ O(m, {
255
+ children: /* @__PURE__ */ O(_, {
256
256
  as: ce,
257
257
  allowPinchZoom: !0,
258
- children: /* @__PURE__ */ O(p, {
258
+ children: /* @__PURE__ */ O(g, {
259
259
  asChild: !0,
260
260
  trapped: E.open,
261
261
  onMountAutoFocus: (e) => {
@@ -264,7 +264,7 @@ var J = 10, [oe, Y] = I(K), se = "SelectContentImpl", ce = i("SelectContent.Remo
264
264
  onUnmountAutoFocus: e(o, (e) => {
265
265
  E.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
266
266
  }),
267
- children: /* @__PURE__ */ O(d, {
267
+ children: /* @__PURE__ */ O(f, {
268
268
  asChild: !0,
269
269
  disableOutsidePointerEvents: !0,
270
270
  onEscapeKeyDown: s,
@@ -311,36 +311,36 @@ var J = 10, [oe, Y] = I(K), se = "SelectContentImpl", ce = i("SelectContent.Remo
311
311
  });
312
312
  le.displayName = se;
313
313
  var ue = "SelectItemAlignedPosition", de = T.forwardRef((e, t) => {
314
- let { __scopeSelect: i, onPlaced: a, ...s } = e, c = z(K, i), l = Y(K, i), [u, d] = T.useState(null), [f, p] = T.useState(null), m = r(t, (e) => p(e)), h = P(i), g = T.useRef(!1), v = T.useRef(!0), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = l, C = T.useCallback(() => {
315
- if (c.trigger && c.valueNode && u && f && y && b && x) {
316
- let e = c.trigger.getBoundingClientRect(), t = f.getBoundingClientRect(), n = c.valueNode.getBoundingClientRect(), r = x.getBoundingClientRect();
314
+ let { __scopeSelect: i, onPlaced: a, ...s } = e, c = z(K, i), l = Y(K, i), [d, f] = T.useState(null), [p, m] = T.useState(null), h = r(t, (e) => m(e)), g = P(i), _ = T.useRef(!1), v = T.useRef(!0), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = l, C = T.useCallback(() => {
315
+ if (c.trigger && c.valueNode && d && p && y && b && x) {
316
+ let e = c.trigger.getBoundingClientRect(), t = p.getBoundingClientRect(), n = c.valueNode.getBoundingClientRect(), r = x.getBoundingClientRect();
317
317
  if (c.dir !== "rtl") {
318
- let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - J, d = _(a, [J, Math.max(J, l - c)]);
319
- u.style.minWidth = s + "px", u.style.left = d + "px";
318
+ let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - J, f = u(a, [J, Math.max(J, l - c)]);
319
+ d.style.minWidth = s + "px", d.style.left = f + "px";
320
320
  } else {
321
- let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - J, d = _(a, [J, Math.max(J, l - c)]);
322
- u.style.minWidth = s + "px", u.style.right = d + "px";
321
+ let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, c = Math.max(s, t.width), l = window.innerWidth - J, f = u(a, [J, Math.max(J, l - c)]);
322
+ d.style.minWidth = s + "px", d.style.right = f + "px";
323
323
  }
324
- let i = h(), o = window.innerHeight - J * 2, s = y.scrollHeight, l = window.getComputedStyle(f), d = parseInt(l.borderTopWidth, 10), p = parseInt(l.paddingTop, 10), m = parseInt(l.borderBottomWidth, 10), v = parseInt(l.paddingBottom, 10), S = d + p + s + v + m, C = Math.min(b.offsetHeight * 5, S), w = window.getComputedStyle(y), T = parseInt(w.paddingTop, 10), E = parseInt(w.paddingBottom, 10), D = e.top + e.height / 2 - J, O = o - D, k = b.offsetHeight / 2, A = b.offsetTop + k, j = d + p + A, M = S - j;
324
+ let i = g(), o = window.innerHeight - J * 2, s = y.scrollHeight, l = window.getComputedStyle(p), f = parseInt(l.borderTopWidth, 10), m = parseInt(l.paddingTop, 10), h = parseInt(l.borderBottomWidth, 10), v = parseInt(l.paddingBottom, 10), S = f + m + s + v + h, C = Math.min(b.offsetHeight * 5, S), w = window.getComputedStyle(y), T = parseInt(w.paddingTop, 10), E = parseInt(w.paddingBottom, 10), D = e.top + e.height / 2 - J, O = o - D, k = b.offsetHeight / 2, A = b.offsetTop + k, j = f + m + A, M = S - j;
325
325
  if (j <= D) {
326
326
  let e = i.length > 0 && b === i[i.length - 1].ref.current;
327
- u.style.bottom = "0px";
328
- let t = f.clientHeight - y.offsetTop - y.offsetHeight, n = j + Math.max(O, k + (e ? E : 0) + t + m);
329
- u.style.height = n + "px";
327
+ d.style.bottom = "0px";
328
+ let t = p.clientHeight - y.offsetTop - y.offsetHeight, n = j + Math.max(O, k + (e ? E : 0) + t + h);
329
+ d.style.height = n + "px";
330
330
  } else {
331
331
  let e = i.length > 0 && b === i[0].ref.current;
332
- u.style.top = "0px";
333
- let t = Math.max(D, d + y.offsetTop + (e ? T : 0) + k) + M;
334
- u.style.height = t + "px", y.scrollTop = j - D + y.offsetTop;
332
+ d.style.top = "0px";
333
+ let t = Math.max(D, f + y.offsetTop + (e ? T : 0) + k) + M;
334
+ d.style.height = t + "px", y.scrollTop = j - D + y.offsetTop;
335
335
  }
336
- u.style.margin = `${J}px 0`, u.style.minHeight = C + "px", u.style.maxHeight = o + "px", a?.(), requestAnimationFrame(() => g.current = !0);
336
+ d.style.margin = `${J}px 0`, d.style.minHeight = C + "px", d.style.maxHeight = o + "px", a?.(), requestAnimationFrame(() => _.current = !0);
337
337
  }
338
338
  }, [
339
- h,
339
+ g,
340
340
  c.trigger,
341
341
  c.valueNode,
342
- u,
343
- f,
342
+ d,
343
+ p,
344
344
  y,
345
345
  b,
346
346
  x,
@@ -350,16 +350,16 @@ var ue = "SelectItemAlignedPosition", de = T.forwardRef((e, t) => {
350
350
  n(() => C(), [C]);
351
351
  let [w, E] = T.useState();
352
352
  return n(() => {
353
- f && E(window.getComputedStyle(f).zIndex);
354
- }, [f]), /* @__PURE__ */ O(pe, {
353
+ p && E(window.getComputedStyle(p).zIndex);
354
+ }, [p]), /* @__PURE__ */ O(pe, {
355
355
  scope: i,
356
- contentWrapper: u,
357
- shouldExpandOnScrollRef: g,
356
+ contentWrapper: d,
357
+ shouldExpandOnScrollRef: _,
358
358
  onScrollButtonChange: T.useCallback((e) => {
359
359
  e && v.current === !0 && (C(), S?.(), v.current = !1);
360
360
  }, [C, S]),
361
361
  children: /* @__PURE__ */ O("div", {
362
- ref: d,
362
+ ref: f,
363
363
  style: {
364
364
  display: "flex",
365
365
  flexDirection: "column",
@@ -368,7 +368,7 @@ var ue = "SelectItemAlignedPosition", de = T.forwardRef((e, t) => {
368
368
  },
369
369
  children: /* @__PURE__ */ O(o.div, {
370
370
  ...s,
371
- ref: m,
371
+ ref: h,
372
372
  style: {
373
373
  boxSizing: "border-box",
374
374
  maxHeight: "100%",
@@ -649,7 +649,7 @@ function ze(e) {
649
649
  return e === "" || e === void 0;
650
650
  }
651
651
  function Be(e) {
652
- let t = u(e), n = T.useRef(""), r = T.useRef(0), i = T.useCallback((e) => {
652
+ let t = d(e), n = T.useRef(""), r = T.useRef(0), i = T.useCallback((e) => {
653
653
  let i = n.current + e;
654
654
  t(i), (function e(t) {
655
655
  n.current = t, window.clearTimeout(r.current), t !== "" && (r.current = window.setTimeout(() => e(""), 1e3));
@@ -1,7 +1,7 @@
1
1
  import "./styles/main.css";
2
2
  import { d as e, i as t, l as n, t as r } from "./dist-7HRQ5IKN.js";
3
- import { t as i } from "./dist-ClmepHp4.js";
4
- import { t as a } from "./dist-BK1K0g9W.js";
3
+ import { t as i } from "./dist-DIt8FP2G.js";
4
+ import { t as a } from "./dist-K0_i37VL.js";
5
5
  import * as o from "react";
6
6
  import { useLayoutEffect as s } from "react";
7
7
  import * as c from "react-dom";
@@ -2,8 +2,8 @@ import "./styles/main.css";
2
2
  import { a as e, d as t, l as n, o as r, r as i, t as a, u as o } from "./dist-7HRQ5IKN.js";
3
3
  import { t as s } from "./dist-Bft31cJh.js";
4
4
  import { t as c } from "./dist-Dtvmk11N.js";
5
- import { n as l, t as u } from "./dist-B2k1iWFp.js";
6
- import { i as d, n as f, r as p, t as m } from "./es2015-YHaMV-St.js";
5
+ import { n as l, t as u } from "./dist-jQ7HawWM.js";
6
+ import { i as d, n as f, r as p, t as m } from "./Combination-9q50p_Vu.js";
7
7
  import * as h from "react";
8
8
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
9
9
  //#region node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_759603dcb12523e99413fb21d5cebc08/node_modules/@radix-ui/react-dialog/dist/index.mjs
@@ -72,7 +72,7 @@ var A = "DialogOverlay", j = h.forwardRef((e, t) => {
72
72
  j.displayName = A;
73
73
  var M = r("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
74
74
  let { __scopeDialog: n, ...r } = e, i = S(A, n);
75
- return /* @__PURE__ */ _(f, {
75
+ return /* @__PURE__ */ _(m, {
76
76
  as: M,
77
77
  allowPinchZoom: !0,
78
78
  shards: [i.contentRef],
@@ -104,7 +104,7 @@ var I = h.forwardRef((t, r) => {
104
104
  let i = S(P, t.__scopeDialog), a = h.useRef(null), o = n(r, i.contentRef, a);
105
105
  return h.useEffect(() => {
106
106
  let e = a.current;
107
- if (e) return m(e);
107
+ if (e) return f(e);
108
108
  }, []), /* @__PURE__ */ _(R, {
109
109
  ...t,
110
110
  ref: o,
@@ -137,7 +137,7 @@ var I = h.forwardRef((t, r) => {
137
137
  });
138
138
  }), R = h.forwardRef((e, t) => {
139
139
  let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = S(P, r), u = h.useRef(null), f = n(t, u);
140
- return p(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(d, {
140
+ return d(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(p, {
141
141
  asChild: !0,
142
142
  loop: !0,
143
143
  trapped: i,
@@ -1,4 +1,4 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./dist-B9tup-4O.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./dist-D6QANKSj.js";
2
2
  import * as c from "react";
3
3
  import l, { useEffect as u, useLayoutEffect as d, useMemo as f } from "react";
4
4
  //#region node_modules/.pnpm/vaul@1.1.2_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react@19.2.14_react-dom_25bbfe11f04fc4939122b58c852b1a12/node_modules/vaul/dist/index.mjs
@@ -1,6 +1,6 @@
1
1
  import "./styles/main.css";
2
2
  import { a as e, i as t, l as n, n as r, t as i } from "./dist-7HRQ5IKN.js";
3
- import { t as a } from "./dist-ClmepHp4.js";
3
+ import { t as a } from "./dist-DIt8FP2G.js";
4
4
  import * as o from "react";
5
5
  import s from "react-dom";
6
6
  import { jsx as c } from "react/jsx-runtime";
@@ -2,9 +2,9 @@ import "./styles/main.css";
2
2
  import { a as e, d as t, l as n, o as r, r as i, t as a } from "./dist-7HRQ5IKN.js";
3
3
  import { t as o } from "./dist-Bft31cJh.js";
4
4
  import { t as s } from "./dist-Dtvmk11N.js";
5
- import { n as c, t as l } from "./dist-B2k1iWFp.js";
6
- import { i as u, n as d, r as f, t as p } from "./es2015-YHaMV-St.js";
7
- import { a as m, i as h, n as g, r as _, t as v } from "./dist-C0Hifjgh.js";
5
+ import { n as c, t as l } from "./dist-jQ7HawWM.js";
6
+ import { i as u, n as d, r as f, t as p } from "./Combination-9q50p_Vu.js";
7
+ import { a as m, i as h, n as g, r as _, t as v } from "./dist-Cv8I-d2q.js";
8
8
  import * as y from "react";
9
9
  import { jsx as b } from "react/jsx-runtime";
10
10
  //#region node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.2.3_@types+react@19.2.14__@types+rea_e0b27b407ae4f4f39109212793ce9f4c/node_modules/@radix-ui/react-popover/dist/index.mjs
@@ -94,8 +94,8 @@ var R = r("PopoverContent.RemoveScroll"), z = y.forwardRef((t, r) => {
94
94
  let i = E(I, t.__scopePopover), a = y.useRef(null), o = n(r, a), s = y.useRef(!1);
95
95
  return y.useEffect(() => {
96
96
  let e = a.current;
97
- if (e) return p(e);
98
- }, []), /* @__PURE__ */ b(d, {
97
+ if (e) return d(e);
98
+ }, []), /* @__PURE__ */ b(p, {
99
99
  as: R,
100
100
  allowPinchZoom: !0,
101
101
  children: /* @__PURE__ */ b(V, {
@@ -131,7 +131,7 @@ var R = r("PopoverContent.RemoveScroll"), z = y.forwardRef((t, r) => {
131
131
  });
132
132
  }), V = y.forwardRef((e, t) => {
133
133
  let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: d, onInteractOutside: p, ...m } = e, h = E(I, n), g = w(n);
134
- return f(), /* @__PURE__ */ b(u, {
134
+ return u(), /* @__PURE__ */ b(f, {
135
135
  asChild: !0,
136
136
  loop: !0,
137
137
  trapped: r,
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
- import { i as e, t } from "./chunk-h9knIhTc.js";
3
+ import { i as e, t } from "./chunk-C4rFPcKS.js";
4
4
  import n from "./App.js";
5
5
  import { StrictMode as r } from "react";
6
6
  import { jsx as i } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../twUtils-VNWgstKL.js";
1
+ import { t as e } from "../twUtils-D_qzdiwM.js";
2
2
  import { t } from "../dist-B4g6zpUF.js";
3
3
  import { Slot as n } from "./slot.js";
4
4
  import "react";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../twUtils-VNWgstKL.js";
1
+ import { t as e } from "../twUtils-D_qzdiwM.js";
2
2
  import { t } from "../dist-B4g6zpUF.js";
3
3
  import { PrimitiveButton as n } from "./button.js";
4
4
  import { Input as r } from "./input.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../twUtils-VNWgstKL.js";
1
+ import { t as e } from "../twUtils-D_qzdiwM.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  //#region src/primitives/input.tsx
@@ -1,5 +1,5 @@
1
- import { t as e } from "../twUtils-VNWgstKL.js";
2
- import { a as t, i as n, n as r, r as i, t as a } from "../dist-BtdmHAzK.js";
1
+ import { t as e } from "../twUtils-D_qzdiwM.js";
2
+ import { a as t, i as n, n as r, r as i, t as a } from "../dist-nYKAWiy4.js";
3
3
  import "react";
4
4
  import { jsx as o } from "react/jsx-runtime";
5
5
  //#region src/primitives/popover.tsx
@@ -2,10 +2,10 @@
2
2
  import { CheckmarkIcon as e } from "../Icons/CheckmarkIcon.js";
3
3
  import { ChevronDownIcon as t } from "../Icons/ChevronDownIcon.js";
4
4
  import { ChevronUpIcon as n } from "../Icons/ChevronUpIcon.js";
5
- import { t as r } from "../twUtils-VNWgstKL.js";
5
+ import { t as r } from "../twUtils-D_qzdiwM.js";
6
6
  import { getDropdownSurfaceClasses as i } from "../utils/formFieldUtils.js";
7
- import { useAutoDropdownHorizontalShift as a } from "../utils/dropdownPositioning.js";
8
- import { a as o, c as s, d as c, f as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b } from "../dist-fW81qjVl.js";
7
+ import { a, c as o, d as s, f as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y } from "../dist-C9fJjxxB.js";
8
+ import { useAutoDropdownHorizontalShift as b } from "../utils/dropdownPositioning.js";
9
9
  import { useRef as x } from "react";
10
10
  import { jsx as S, jsxs as C } from "react/jsx-runtime";
11
11
  //#region src/primitives/select.tsx
@@ -33,91 +33,91 @@ var w = 12, T = (e) => {
33
33
  top: Math.max(0, r.scrollTop - s),
34
34
  behavior: "smooth"
35
35
  });
36
- }, D = ({ ...e }) => /* @__PURE__ */ S(f, {
36
+ }, D = ({ ...e }) => /* @__PURE__ */ S(d, {
37
37
  "data-slot": "select",
38
38
  ...e
39
- }), O = ({ ...e }) => /* @__PURE__ */ S(m, {
39
+ }), O = ({ ...e }) => /* @__PURE__ */ S(p, {
40
40
  "data-slot": "select-group",
41
41
  ...e
42
- }), k = ({ className: e, ...t }) => /* @__PURE__ */ S(p, {
42
+ }), k = ({ className: e, ...t }) => /* @__PURE__ */ S(f, {
43
43
  className: r("min-w-0 block max-w-full flex-1 truncate text-left whitespace-nowrap text-input-text! data-placeholder:text-input-text-placeholder!", e),
44
44
  "data-slot": "select-value",
45
45
  ...t
46
- }), A = ({ asChild: e, children: n, className: i, size: a = "default", ...o }) => /* @__PURE__ */ C(g, {
46
+ }), A = ({ asChild: e, children: n, className: i, size: a = "default", ...o }) => /* @__PURE__ */ C(h, {
47
47
  asChild: e,
48
48
  className: r("[&_svg:not([class*='text-'])]:text-text-placeholder focus-visible:border-ring focus-visible:ring-ring/50 gap-2 rounded-md px-3 py-2 text-sm shadow-xs h-9 *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 min-w-0 *:data-[slot=select-value]:min-w-0 flex w-fit cursor-pointer items-center justify-between border border-input-border bg-transparent text-input-text! transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-danger-400 data-placeholder:text-input-text-placeholder! *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center data-[state=open]:**:data-[slot=select-chevron]:rotate-180 [&_svg]:pointer-events-none [&_svg]:shrink-0", i),
49
49
  "data-size": a,
50
50
  "data-slot": "select-trigger",
51
51
  ...o,
52
- children: [n, !e && /* @__PURE__ */ S(_, {
52
+ children: [n, !e && /* @__PURE__ */ S(g, {
53
53
  asChild: !0,
54
54
  children: /* @__PURE__ */ S(t, {
55
55
  className: "size-4 opacity-50 transition-transform duration-200",
56
56
  "data-slot": "select-chevron"
57
57
  })
58
58
  })]
59
- }), j = ({ align: e = "center", children: t, className: n, dropdownWidth: o = "trigger", onCloseAutoFocus: c, onFocusCapture: l, position: d = "popper", style: f, ...p }) => {
60
- let m = x(!1), { dropdownShiftStyle: h, recalculateDropdownPosition: g, setDropdownElement: _ } = a(), v = o === "trigger" ? "var(--radix-select-trigger-width)" : o === "content" ? "max-content" : o, b = o === "trigger" || o === "content" ? o : "custom", w = (e) => {
61
- if (l?.(e), m.current) return;
62
- m.current = !0;
63
- let t = e.currentTarget;
64
- requestAnimationFrame(() => {
65
- E(t), g();
66
- });
67
- }, T = (e) => {
68
- m.current = !1, c?.(e);
69
- };
70
- return /* @__PURE__ */ S(s, { children: /* @__PURE__ */ C(y, {
59
+ }), j = ({ align: e = "center", children: t, className: n, dropdownWidth: a = "trigger", onCloseAutoFocus: s, onFocusCapture: c, position: u = "popper", style: d, ...f }) => {
60
+ let p = x(!1), { dropdownShiftStyle: m, recalculateDropdownPosition: h, setDropdownElement: g } = b(), _ = a === "trigger" ? "var(--radix-select-trigger-width)" : a === "content" ? "max-content" : a, y = a === "trigger" || a === "content" ? a : "custom";
61
+ return /* @__PURE__ */ S(o, { children: /* @__PURE__ */ C(v, {
71
62
  align: e,
72
- className: r("min-w-32 relative z-50 max-h-[--radix-select-content-available-height] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto text-text-primary motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:animate-in motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=open]:zoom-in-95", i(), d === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", n),
73
- "data-dropdown-width-mode": b,
74
- "data-dropdown-width-value": b === "custom" ? o : void 0,
63
+ className: r("min-w-32 relative z-50 max-h-[--radix-select-content-available-height] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto text-text-primary motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=left]:slide-in-from-right-2 motion-safe:data-[side=right]:slide-in-from-left-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:animate-in motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=open]:zoom-in-95", i(), u === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", n),
64
+ "data-dropdown-width-mode": y,
65
+ "data-dropdown-width-value": y === "custom" ? a : void 0,
75
66
  "data-slot": "select-content",
76
- onCloseAutoFocus: T,
77
- onFocusCapture: w,
78
- position: d,
79
- ref: _,
67
+ onCloseAutoFocus: (e) => {
68
+ p.current = !1, s?.(e);
69
+ },
70
+ onFocusCapture: (e) => {
71
+ if (c?.(e), p.current) return;
72
+ p.current = !0;
73
+ let t = e.currentTarget;
74
+ requestAnimationFrame(() => {
75
+ E(t), h();
76
+ });
77
+ },
78
+ position: u,
79
+ ref: g,
80
80
  style: {
81
- ...f,
82
- width: v,
83
- ...h
81
+ ...d,
82
+ width: _,
83
+ ...m
84
84
  },
85
- ...p,
85
+ ...f,
86
86
  children: [
87
87
  /* @__PURE__ */ S(F, {}),
88
- /* @__PURE__ */ S(u, {
89
- className: r("p-1", d === "popper" && "scroll-my-1 h-(--radix-select-trigger-height) w-full min-w-full"),
88
+ /* @__PURE__ */ S(l, {
89
+ className: r("p-1", u === "popper" && "scroll-my-1 h-(--radix-select-trigger-height) w-full min-w-full"),
90
90
  "data-slot": "select-viewport",
91
91
  children: t
92
92
  }),
93
93
  /* @__PURE__ */ S(I, {})
94
94
  ]
95
95
  }) });
96
- }, M = ({ className: e, ...t }) => /* @__PURE__ */ S(v, {
96
+ }, M = ({ className: e, ...t }) => /* @__PURE__ */ S(_, {
97
97
  className: r("px-2 py-1.5 text-xs text-text-primary", e),
98
98
  "data-slot": "select-label",
99
99
  ...t
100
- }), N = ({ className: t, children: n, ...i }) => /* @__PURE__ */ C(d, {
100
+ }), N = ({ className: t, children: n, ...i }) => /* @__PURE__ */ C(u, {
101
101
  className: r("gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-none select-none hover:border-input-border--hover hover:bg-accent hover:text-text-inverted! focus:border-input-border--focus focus:bg-accent focus:text-text-inverted! data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-accent data-highlighted:text-text-inverted! [&_svg]:pointer-events-none [&_svg]:shrink-0 hover:[&_svg]:text-text-inverted! focus:[&_svg]:text-text-inverted! data-highlighted:[&_svg]:text-text-inverted! *:[span]:last:flex *:[span]:last:items-center", t),
102
102
  "data-slot": "select-item",
103
103
  ...i,
104
104
  children: [/* @__PURE__ */ S("span", {
105
105
  className: "right-2 size-3.5 absolute flex items-center justify-center",
106
- children: /* @__PURE__ */ S(o, { children: /* @__PURE__ */ S(e, { className: "size-4" }) })
107
- }), /* @__PURE__ */ S(h, {
106
+ children: /* @__PURE__ */ S(a, { children: /* @__PURE__ */ S(e, { className: "size-4" }) })
107
+ }), /* @__PURE__ */ S(m, {
108
108
  className: "min-w-0 block max-w-full truncate whitespace-nowrap",
109
109
  children: n
110
110
  })]
111
- }), P = ({ className: e, ...t }) => /* @__PURE__ */ S(l, {
111
+ }), P = ({ className: e, ...t }) => /* @__PURE__ */ S(c, {
112
112
  className: r("bg-border -mx-1 my-1 pointer-events-none h-px", e),
113
113
  "data-slot": "select-separator",
114
114
  ...t
115
- }), F = ({ className: e, ...t }) => /* @__PURE__ */ S(c, {
115
+ }), F = ({ className: e, ...t }) => /* @__PURE__ */ S(s, {
116
116
  className: r("py-1 flex cursor-default items-center justify-center", e),
117
117
  "data-slot": "select-scroll-up-button",
118
118
  ...t,
119
119
  children: /* @__PURE__ */ S(n, { className: "size-4" })
120
- }), I = ({ className: e, ...n }) => /* @__PURE__ */ S(b, {
120
+ }), I = ({ className: e, ...n }) => /* @__PURE__ */ S(y, {
121
121
  className: r("py-1 flex cursor-default items-center justify-center", e),
122
122
  "data-slot": "select-scroll-down-button",
123
123
  ...n,
@@ -1,4 +1,4 @@
1
- import { t as e } from "../twUtils-VNWgstKL.js";
1
+ import { t as e } from "../twUtils-D_qzdiwM.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  //#region src/primitives/textarea.tsx
@@ -1,5 +1,5 @@
1
1
  import "./styles/main.css";
2
- import { a as e, n as t, r as n } from "./chunk-h9knIhTc.js";
2
+ import { a as e, n as t, r as n } from "./chunk-C4rFPcKS.js";
3
3
  import { Component as r, Fragment as i, createContext as a, createElement as o, forwardRef as s, useCallback as c, useContext as l, useEffect as u, useId as d, useInsertionEffect as f, useLayoutEffect as p, useMemo as m, useRef as h } from "react";
4
4
  import { jsx as g, jsxs as _ } from "react/jsx-runtime";
5
5
  //#region node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
@@ -913,7 +913,7 @@ var W = (e) => e * 180 / Math.PI, wn = (e) => En(W(Math.atan2(e[1], e[0]))), Tn
913
913
  skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
914
914
  };
915
915
  function jn(e) {
916
- return e.includes("scale") ? 1 : 0;
916
+ return +!!e.includes("scale");
917
917
  }
918
918
  function Mn(e, t) {
919
919
  if (!e || e === "none") return jn(t);
@@ -963,7 +963,7 @@ function Bn(e) {
963
963
  let t = [];
964
964
  return zn.forEach((n) => {
965
965
  let r = e.getValue(n);
966
- r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
966
+ r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
967
967
  }), t;
968
968
  }
969
969
  var G = {
@@ -1309,8 +1309,8 @@ var Cr = 40, wr = class extends bn {
1309
1309
  motionValue: c,
1310
1310
  element: l,
1311
1311
  ...u
1312
- };
1313
- this.keyframeResolver = new (l?.KeyframeResolver || Jn)(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
1312
+ }, f = l?.KeyframeResolver || Jn;
1313
+ this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
1314
1314
  }
1315
1315
  onKeyframesResolved(e, t, n, r) {
1316
1316
  this.keyframeResolver = void 0;
@@ -1791,7 +1791,7 @@ function hi(e) {
1791
1791
  if (t === "drop-shadow") return e;
1792
1792
  let [r] = n.match(Ze) || [];
1793
1793
  if (!r) return e;
1794
- let i = n.replace(r, ""), a = mi.has(t) ? 1 : 0;
1794
+ let i = n.replace(r, ""), a = +!!mi.has(t);
1795
1795
  return r !== n && (a *= 100), t + "(" + a + i + ")";
1796
1796
  }
1797
1797
  var gi = /\b([a-z-]*)\(.*?\)/gu, _i = {
@@ -2608,7 +2608,7 @@ function io(e, t, n) {
2608
2608
  let o = Fn[a], s = e[o];
2609
2609
  if (s === void 0) continue;
2610
2610
  let c = !0;
2611
- if (typeof s == "number") c = s === (o.startsWith("scale") ? 1 : 0);
2611
+ if (typeof s == "number") c = s === +!!o.startsWith("scale");
2612
2612
  else {
2613
2613
  let e = parseFloat(s);
2614
2614
  c = o.startsWith("scale") ? e === 1 : e === 0;
@@ -4872,14 +4872,14 @@ var ru = {
4872
4872
  root: t ? t.current : void 0,
4873
4873
  rootMargin: n,
4874
4874
  threshold: typeof r == "number" ? r : ru[r]
4875
- };
4876
- this.stopObserver = nu(this.node.current, a, (e) => {
4875
+ }, o = (e) => {
4877
4876
  let { isIntersecting: t } = e;
4878
4877
  if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
4879
4878
  t && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", t);
4880
4879
  let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
4881
4880
  a && a(e);
4882
- });
4881
+ };
4882
+ this.stopObserver = nu(this.node.current, a, o);
4883
4883
  }
4884
4884
  mount() {
4885
4885
  this.startObserver();