@spear-ai/spectral 1.12.0 → 1.12.2

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 (45) hide show
  1. package/dist/.js +8 -8
  2. package/dist/{es2015-YHaMV-St.js → Combination-9q50p_Vu.js} +251 -254
  3. package/dist/Combobox/ComboboxBase.js +492 -3
  4. package/dist/Combobox-Ch5Rxk5v.js +6360 -0
  5. package/dist/Combobox.js +3 -137
  6. package/dist/DateTimePicker/Calendar.js +1 -1
  7. package/dist/DateTimePicker/DateTimeDisplayInput.js +1 -1
  8. package/dist/DateTimePicker/DateTimeInput.js +1 -1
  9. package/dist/DateTimePicker/DateTimeUtils.js +1 -1
  10. package/dist/DateTimePicker/TimePicker.js +1 -1
  11. package/dist/DateTimePicker.js +2 -2
  12. package/dist/Dialog.js +2 -2
  13. package/dist/Drawer.js +1 -1
  14. package/dist/DropdownMenu.js +241 -241
  15. package/dist/{HoverCard-DERasp0v.js → HoverCard-BGpW6LnA.js} +2 -2
  16. package/dist/HoverCard.js +1 -1
  17. package/dist/MultiSelect/MultiSelectBase.js +1 -1
  18. package/dist/Popover.js +1 -1
  19. package/dist/{RadioGroup-DqKggFnI.js → RadioGroup-CfjhpW5o.js} +3 -3
  20. package/dist/RadioGroup.js +1 -1
  21. package/dist/Select.js +55 -55
  22. package/dist/{Slider-CfUFkWU4.js → Slider-mODhqkCs.js} +3 -3
  23. package/dist/Slider.js +1 -1
  24. package/dist/{Tooltip-BR0tdif4.js → Tooltip-DH_BzFye.js} +3 -3
  25. package/dist/Tooltip.js +1 -1
  26. package/dist/Tray.js +1 -1
  27. package/dist/{dist-DcUGLq_y.js → dist-BMu6Dgh_.js} +1 -1
  28. package/dist/{dist-fW81qjVl.js → dist-C9fJjxxB.js} +41 -41
  29. package/dist/{dist-C0Hifjgh.js → dist-Cv8I-d2q.js} +2 -2
  30. package/dist/{dist-B9tup-4O.js → dist-D6QANKSj.js} +5 -5
  31. package/dist/{dist-3Af8168y.js → dist-Tbzy5UFA.js} +1 -1
  32. package/dist/{dist-B2k1iWFp.js → dist-jQ7HawWM.js} +1 -1
  33. package/dist/{dist-BtdmHAzK.js → dist-nYKAWiy4.js} +6 -6
  34. package/dist/primitives/popover.js +1 -1
  35. package/dist/primitives/select.js +32 -32
  36. package/dist/styles/spectral.css +1 -1
  37. package/package.json +4 -2
  38. package/dist/ComboboxBase-BzDGK36x.js +0 -491
  39. /package/dist/{Calendar-Cnh_PTbQ.js → Calendar-2UVWeLYp.js} +0 -0
  40. /package/dist/{DateTimeUtils-BJUAMuot.js → DateTimeUtils-DrR2JWoU.js} +0 -0
  41. /package/dist/{dist-Bfjk-jx9.js → dist-ChNh3U3S.js} +0 -0
  42. /package/dist/{dist-D8Wb_MX9.js → dist-DDjUcieO.js} +0 -0
  43. /package/dist/{dist-s1uWaZYZ.js → dist-DFT13f_s.js} +0 -0
  44. /package/dist/{dist-ClmepHp4.js → dist-DIt8FP2G.js} +0 -0
  45. /package/dist/{dist-BK1K0g9W.js → dist-K0_i37VL.js} +0 -0
@@ -2,8 +2,8 @@ import "./styles/main.css";
2
2
  import { a as e, d as t, l as n, r, t as i } from "./dist-7HRQ5IKN.js";
3
3
  import { t as a } from "./dist-Bft31cJh.js";
4
4
  import { t as o } from "./twUtils-D_qzdiwM.js";
5
- import { n as s, t as c } from "./dist-B2k1iWFp.js";
6
- import { a as l, i as u, n as d, r as f, t as p } from "./dist-C0Hifjgh.js";
5
+ import { n as s, t as c } from "./dist-jQ7HawWM.js";
6
+ import { a as l, i as u, n as d, r as f, t as p } from "./dist-Cv8I-d2q.js";
7
7
  import * as m from "react";
8
8
  import { createContext as h, useContext as g } from "react";
9
9
  import { jsx as _ } from "react/jsx-runtime";
package/dist/HoverCard.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./HoverCard-DERasp0v.js";
1
+ import { n as e, r as t, t as n } from "./HoverCard-BGpW6LnA.js";
2
2
  export { n as HoverCard, e as HoverCardContent, t as HoverCardTrigger };
@@ -9,7 +9,7 @@ import { EmptyState as a, ErrorMessage as o, LoadingState as s, WarningMessage a
9
9
  import { useUncontrolledState as ne } from "../hooks/useUncontrolledState.js";
10
10
  import { Label as re } from "../Label.js";
11
11
  import { useAutoDropdownHorizontalShift as ie } from "../utils/dropdownPositioning.js";
12
- import { a as ae, i as oe, n as se, r as ce } from "../dist-BtdmHAzK.js";
12
+ import { a as ae, i as oe, n as se, r as ce } from "../dist-nYKAWiy4.js";
13
13
  import { useCallback as p, useEffect as le, useId as ue, useMemo as m, useRef as de, useState as h } from "react";
14
14
  import { Fragment as fe, jsx as g, jsxs as _ } from "react/jsx-runtime";
15
15
  //#region src/components/MultiSelect/MultiSelectBase.tsx
package/dist/Popover.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./styles/main.css";
2
2
  import { t as e } from "./twUtils-D_qzdiwM.js";
3
- import { a as t, i as n, n as r, r as i, t as a } from "./dist-BtdmHAzK.js";
3
+ import { a as t, i as n, n as r, r as i, t as a } from "./dist-nYKAWiy4.js";
4
4
  import "react";
5
5
  import { jsx as o } from "react/jsx-runtime";
6
6
  //#region src/components/Popover/Popover.tsx
@@ -5,9 +5,9 @@ import { t as o } from "./dist-Bft31cJh.js";
5
5
  import { t as s } from "./twUtils-D_qzdiwM.js";
6
6
  import { ErrorMessage as c, WarningMessage as l, useFormFieldId as u } from "./utils/formFieldUtils.js";
7
7
  import { Label as d } from "./Label.js";
8
- import { t as f } from "./dist-BK1K0g9W.js";
9
- import { t as p } from "./dist-s1uWaZYZ.js";
10
- import { n as m, r as h, t as g } from "./dist-DcUGLq_y.js";
8
+ import { t as f } from "./dist-K0_i37VL.js";
9
+ import { t as p } from "./dist-DFT13f_s.js";
10
+ import { n as m, r as h, t as g } from "./dist-BMu6Dgh_.js";
11
11
  import { a as _, i as v, o as y, t as b, u as x } from "./proxy-CCB7C4Pu.js";
12
12
  import { t as S } from "./AnimatePresence-D9FLxIGV.js";
13
13
  import * as C from "react";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./RadioGroup-DqKggFnI.js";
1
+ import { n as e, r as t, t as n } from "./RadioGroup-CfjhpW5o.js";
2
2
  export { n as RadioGroup, e as RadioGroupItem, t as RadioGroupLabel };
package/dist/Select.js CHANGED
@@ -6,24 +6,24 @@ import { LoaderIcon as n } from "./Icons/LoaderIcon.js";
6
6
  import { t as r } from "./twUtils-D_qzdiwM.js";
7
7
  import { EmptyState as i, ErrorMessage as a, LoadingState as o, WarningMessage as s, getAriaProps as c, getDropdownSurfaceClasses as l, getDropdownWidthStyles as ee, getErrorMessageId as te, getFormFieldCSSProperties as ne, getOptionClasses as re, getTriggerClasses as ie, groupOptions as ae, useFormFieldId as oe } from "./utils/formFieldUtils.js";
8
8
  import { Label as u } from "./Label.js";
9
- import { useAutoDropdownHorizontalShift as se } from "./utils/dropdownPositioning.js";
10
- import { a as d, c as ce, d as le, f, h as p, i as ue, l as de, m as fe, n as pe, o as me, p as he, r as ge, t as _e, u as ve } from "./dist-fW81qjVl.js";
9
+ import { a as se, c as ce, d as le, f as d, h as f, i as p, l as ue, m as de, n as fe, o as pe, p as me, r as he, t as ge, u as _e } from "./dist-C9fJjxxB.js";
10
+ import { useAutoDropdownHorizontalShift as ve } from "./utils/dropdownPositioning.js";
11
11
  import { useState as ye } from "react";
12
12
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
13
13
  //#region src/components/Select/Select.tsx
14
14
  var _ = (_) => {
15
- let v = "value" in _, { align: y = "start", alignOffset: b = 0, avoidCollisions: x = !0, className: S, collisionBoundary: C, collisionPadding: w = 10, defaultValue: T, dropdownWidth: E = "trigger", emptyMessage: D = "No options found", errorMessage: O, disabled: k, id: A, label: j, labelClassName: M, loadingMessage: N = "Loading…", name: P, onChange: be, onValueChange: xe, options: F = [], placeholder: Se = "Select an option", position: I = "popper", ref: L, required: R, side: Ce = "bottom", sideOffset: we = 4, state: z = "default", value: B, warningMessage: V, "aria-label": Te, "aria-describedby": Ee, ...De } = _, H = v ? B ?? "" : B, [U, Oe] = ye(!1), { dropdownShiftStyle: ke, setDropdownElement: Ae } = se(U), W = oe(A, P), G = `${W}-listbox`, K = te(W), q = `${W}-warning`, je = z === "error" && O ? K : z === "warning" && V ? q : void 0, { dropdownWidthMode: J, dropdownWidthStyle: Me, resolvedDropdownWidth: Y } = ee({
15
+ let v = "value" in _, { align: y = "start", alignOffset: b = 0, avoidCollisions: x = !0, className: S, collisionBoundary: C, collisionPadding: w = 10, defaultValue: T, dropdownWidth: E = "trigger", emptyMessage: D = "No options found", errorMessage: O, disabled: k, id: A, label: j, labelClassName: M, loadingMessage: N = "Loading…", name: P, onChange: be, onValueChange: xe, options: F = [], placeholder: Se = "Select an option", position: I = "popper", ref: Ce, required: L, side: we = "bottom", sideOffset: Te = 4, state: R = "default", value: z, warningMessage: B, "aria-label": Ee, "aria-describedby": De, ...Oe } = _, V = v ? z ?? "" : z, [H, ke] = ye(!1), { dropdownShiftStyle: Ae, setDropdownElement: je } = ve(H), U = oe(A, P), W = `${U}-listbox`, G = te(U), K = `${U}-warning`, Me = R === "error" && O ? G : R === "warning" && B ? K : void 0, { dropdownWidthMode: q, dropdownWidthStyle: Ne, resolvedDropdownWidth: J } = ee({
16
16
  dropdownWidth: E,
17
17
  triggerWidth: "var(--radix-select-trigger-width)"
18
- }), Ne = {
19
- "--spectral-select-content-width": Y,
20
- ...I === "item-aligned" ? { width: Y } : {},
21
- ...Me,
22
- ...ke
23
- }, X = !!k, Z = z === "loading", Pe = z === "error", Fe = c(z, Ee, R, je), { groups: Q, ungrouped: $ } = ae(F), Ie = (e) => {
18
+ }), Pe = {
19
+ "--spectral-select-content-width": J,
20
+ ...I === "item-aligned" ? { width: J } : {},
21
+ ...Ne,
22
+ ...Ae
23
+ }, Y = !!k, X = R === "loading", Fe = R === "error", Z = c(R, De, L, Me), { groups: Q, ungrouped: $ } = ae(F), Ie = (e) => {
24
24
  be?.(e), xe?.(e);
25
25
  }, Le = () => {
26
- if (Z) return /* @__PURE__ */ h(o, {
26
+ if (X) return /* @__PURE__ */ h(o, {
27
27
  "data-testid": "spectral-select-loading",
28
28
  message: N
29
29
  });
@@ -32,17 +32,17 @@ var _ = (_) => {
32
32
  message: D
33
33
  });
34
34
  let t = (t) => {
35
- let n = H === t.value;
36
- return /* @__PURE__ */ g(ue, {
35
+ let n = V === t.value;
36
+ return /* @__PURE__ */ g(p, {
37
37
  className: r(re(!!t.disabled, !1, n), "relative flex w-full cursor-pointer items-center"),
38
38
  "data-testid": "spectral-select-item",
39
39
  disabled: t.disabled,
40
40
  value: t.value,
41
- children: [/* @__PURE__ */ h(me, {
41
+ children: [/* @__PURE__ */ h(pe, {
42
42
  "data-testid": "spectral-select-item-text",
43
43
  className: "block truncate",
44
44
  children: t.label
45
- }), /* @__PURE__ */ h(d, {
45
+ }), /* @__PURE__ */ h(se, {
46
46
  "data-testid": "spectral-select-item-selected-indicator",
47
47
  asChild: !0,
48
48
  children: /* @__PURE__ */ h("span", {
@@ -52,13 +52,13 @@ var _ = (_) => {
52
52
  })]
53
53
  }, t.value);
54
54
  };
55
- return /* @__PURE__ */ g(m, { children: [$.length > 0 && /* @__PURE__ */ g(m, { children: [$.map(t), Object.keys(Q).length > 0 && /* @__PURE__ */ h(f, {
55
+ return /* @__PURE__ */ g(m, { children: [$.length > 0 && /* @__PURE__ */ g(m, { children: [$.map(t), Object.keys(Q).length > 0 && /* @__PURE__ */ h(d, {
56
56
  className: "-mx-1 my-1 h-px bg-border-secondary",
57
57
  "data-testid": "spectral-select-separator"
58
- })] }), Object.entries(Q).map(([e, n], i) => /* @__PURE__ */ g(pe, {
58
+ })] }), Object.entries(Q).map(([e, n], i) => /* @__PURE__ */ g(fe, {
59
59
  "data-testid": "spectral-select-group",
60
60
  children: [
61
- i > 0 && /* @__PURE__ */ h(f, {
61
+ i > 0 && /* @__PURE__ */ h(d, {
62
62
  className: "-mx-1 my-1 h-px bg-border-secondary",
63
63
  "data-testid": "spectral-select-group-separator"
64
64
  }),
@@ -75,72 +75,72 @@ var _ = (_) => {
75
75
  className: "w-full",
76
76
  children: [
77
77
  j && /* @__PURE__ */ h(u, {
78
- className: r("mb-2 block text-text-primary", M, X && "text-text-secondary"),
78
+ className: r("mb-2 block text-text-primary", M, Y && "text-text-secondary"),
79
79
  "data-testid": "spectral-select-label",
80
- htmlFor: W,
80
+ htmlFor: U,
81
81
  children: j
82
82
  }),
83
- /* @__PURE__ */ g(de, {
83
+ /* @__PURE__ */ g(ue, {
84
84
  "data-testid": "spectral-select",
85
85
  defaultValue: T,
86
- disabled: X,
86
+ disabled: Y,
87
87
  name: P,
88
- onOpenChange: Oe,
88
+ onOpenChange: ke,
89
89
  onValueChange: Ie,
90
- open: U,
91
- required: R,
92
- value: H,
93
- children: [/* @__PURE__ */ h(he, {
94
- "aria-controls": G,
95
- "aria-expanded": U,
96
- "aria-label": Te ?? j,
90
+ open: H,
91
+ required: L,
92
+ value: V,
93
+ children: [/* @__PURE__ */ h(me, {
94
+ "aria-controls": W,
95
+ "aria-expanded": H,
96
+ "aria-label": Ee ?? j,
97
97
  asChild: !0,
98
- className: r(ie(U, z), "text-input-text data-placeholder:text-input-text-placeholder!", S),
98
+ className: r(ie(H, R), "text-input-text data-placeholder:text-input-text-placeholder!", S),
99
99
  "data-slot": "select-trigger",
100
- "data-state": z,
100
+ "data-state": R,
101
101
  "data-testid": "spectral-select-trigger",
102
- id: W,
103
- ref: L,
102
+ id: U,
103
+ ref: Ce,
104
104
  role: "combobox",
105
105
  style: ne(),
106
- ...Fe,
107
- ...De,
106
+ ...Z,
107
+ ...Oe,
108
108
  children: /* @__PURE__ */ g("button", {
109
109
  className: "min-w-0 gap-2 [&>span]:min-w-0 grid w-full cursor-pointer grid-cols-[minmax(0,1fr)_auto] items-center overflow-hidden text-left whitespace-nowrap text-input-text! data-placeholder:text-input-text-placeholder! [&>span]:block [&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap [&>span[data-placeholder]]:text-input-text-placeholder!",
110
110
  type: "button",
111
- disabled: X,
112
- children: [/* @__PURE__ */ h(fe, {
111
+ disabled: Y,
112
+ children: [/* @__PURE__ */ h(de, {
113
113
  className: "min-w-0 block max-w-full flex-1 truncate text-left whitespace-nowrap text-input-text! data-placeholder:text-input-text-placeholder!",
114
114
  "data-testid": "spectral-select-value",
115
115
  placeholder: Se
116
- }), /* @__PURE__ */ h(ge, {
116
+ }), /* @__PURE__ */ h(he, {
117
117
  asChild: !0,
118
118
  children: /* @__PURE__ */ h("div", {
119
119
  className: "flex shrink-0 cursor-pointer items-center",
120
- children: Z ? /* @__PURE__ */ h(n, { size: 20 }) : /* @__PURE__ */ h(t, {
121
- className: r("transition-transform duration-200", U && "rotate-180"),
120
+ children: X ? /* @__PURE__ */ h(n, { size: 20 }) : /* @__PURE__ */ h(t, {
121
+ className: r("transition-transform duration-200", H && "rotate-180"),
122
122
  size: 20
123
123
  })
124
124
  })
125
125
  })]
126
126
  })
127
- }), /* @__PURE__ */ h(ce, { children: /* @__PURE__ */ g(_e, {
127
+ }), /* @__PURE__ */ h(ce, { children: /* @__PURE__ */ g(ge, {
128
128
  align: y,
129
129
  alignOffset: b,
130
130
  avoidCollisions: x,
131
131
  className: r("relative z-50 motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=open]:animate-in", l(), "motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=open]:zoom-in-95", "max-h-[min(var(--radix-select-content-available-height),300px)] motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=top]:slide-in-from-bottom-2", "min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto", I === "popper" && "data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1"),
132
132
  collisionBoundary: C,
133
133
  collisionPadding: w,
134
- "data-dropdown-width-mode": J,
135
- "data-dropdown-width-value": J === "custom" ? E : void 0,
136
- id: G,
134
+ "data-dropdown-width-mode": q,
135
+ "data-dropdown-width-value": q === "custom" ? E : void 0,
136
+ id: W,
137
137
  "data-slot": "select-content",
138
138
  "data-testid": "spectral-select-content",
139
139
  position: I,
140
- ref: Ae,
141
- side: Ce,
142
- sideOffset: we,
143
- style: Ne,
140
+ ref: je,
141
+ side: we,
142
+ sideOffset: Te,
143
+ style: Pe,
144
144
  children: [
145
145
  /* @__PURE__ */ h(le, {
146
146
  className: "py-1 flex cursor-default items-center justify-center",
@@ -151,7 +151,7 @@ var _ = (_) => {
151
151
  size: 18
152
152
  })
153
153
  }),
154
- /* @__PURE__ */ h(p, {
154
+ /* @__PURE__ */ h(f, {
155
155
  asChild: !0,
156
156
  children: /* @__PURE__ */ h("div", {
157
157
  className: r("p-1", I === "popper" && (E === "trigger" ? "scroll-my-1 h-(--radix-select-trigger-height) w-(--spectral-select-content-width) min-w-(--spectral-select-content-width)" : "scroll-my-1 h-(--radix-select-trigger-height)")),
@@ -159,7 +159,7 @@ var _ = (_) => {
159
159
  children: Le()
160
160
  })
161
161
  }),
162
- /* @__PURE__ */ h(ve, {
162
+ /* @__PURE__ */ h(_e, {
163
163
  className: "py-1 flex cursor-default items-center justify-center",
164
164
  "data-testid": "spectral-select-scroll-down-button",
165
165
  children: /* @__PURE__ */ h(t, {
@@ -170,15 +170,15 @@ var _ = (_) => {
170
170
  ]
171
171
  }) })]
172
172
  }),
173
- Pe && O && /* @__PURE__ */ h(a, {
173
+ Fe && O && /* @__PURE__ */ h(a, {
174
174
  dataTestId: "spectral-select-error-message",
175
- id: K,
175
+ id: G,
176
176
  message: O
177
177
  }),
178
- z === "warning" && V && /* @__PURE__ */ h(s, {
178
+ R === "warning" && B && /* @__PURE__ */ h(s, {
179
179
  dataTestId: "spectral-select-warning-message",
180
- id: q,
181
- message: V
180
+ id: K,
181
+ message: B
182
182
  })
183
183
  ]
184
184
  });
@@ -3,9 +3,9 @@ import { a as e, d as t, l as n, r, t as i } from "./dist-7HRQ5IKN.js";
3
3
  import { n as a, t as o } from "./dist-CGzgmYB9.js";
4
4
  import { t as s } from "./twUtils-D_qzdiwM.js";
5
5
  import { Input as c } from "./primitives/input.js";
6
- import { t as l } from "./dist-D8Wb_MX9.js";
7
- import { t as u } from "./dist-BK1K0g9W.js";
8
- import { t as d } from "./dist-s1uWaZYZ.js";
6
+ import { t as l } from "./dist-DDjUcieO.js";
7
+ import { t as u } from "./dist-K0_i37VL.js";
8
+ import { t as d } from "./dist-DFT13f_s.js";
9
9
  import * as f from "react";
10
10
  import { useCallback as p, useEffect as m, useMemo as h, useState as g } from "react";
11
11
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
package/dist/Slider.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Slider-CfUFkWU4.js";
1
+ import { t as e } from "./Slider-mODhqkCs.js";
2
2
  export { e as Slider };
@@ -4,9 +4,9 @@ import { t as o } from "./dist-Bft31cJh.js";
4
4
  import { t as s } from "./dist-Dtvmk11N.js";
5
5
  import { t as c } from "./twUtils-D_qzdiwM.js";
6
6
  import { t as l } from "./dist-B4g6zpUF.js";
7
- import { n as u, t as d } from "./dist-B2k1iWFp.js";
8
- import { a as f, i as p, n as m, r as h, t as g } from "./dist-C0Hifjgh.js";
9
- import { t as _ } from "./dist-Bfjk-jx9.js";
7
+ import { n as u, t as d } from "./dist-jQ7HawWM.js";
8
+ import { a as f, i as p, n as m, r as h, t as g } from "./dist-Cv8I-d2q.js";
9
+ import { t as _ } from "./dist-ChNh3U3S.js";
10
10
  import * as v from "react";
11
11
  import { jsx as y, jsxs as b } from "react/jsx-runtime";
12
12
  //#region node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.14__@types+reac_f164644780a8f95ec4733d733b3b08bc/node_modules/@radix-ui/react-tooltip/dist/index.mjs
package/dist/Tooltip.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./Tooltip-BR0tdif4.js";
1
+ import { i as e, n as t, r as n, t as r } from "./Tooltip-DH_BzFye.js";
2
2
  export { r as Tooltip, t as TooltipContent, n as TooltipProvider, e as TooltipTrigger };
package/dist/Tray.js CHANGED
@@ -4,7 +4,7 @@ import { CloseIcon as e } from "./Icons/CloseIcon.js";
4
4
  import { t } from "./twUtils-D_qzdiwM.js";
5
5
  import { t as n } from "./dist-B4g6zpUF.js";
6
6
  import { ButtonIcon as r } from "./ButtonIcon.js";
7
- import { t as i } from "./dist-3Af8168y.js";
7
+ import { t as i } from "./dist-Tbzy5UFA.js";
8
8
  import { t as a } from "./proxy-CCB7C4Pu.js";
9
9
  import { t as o } from "./AnimatePresence-D9FLxIGV.js";
10
10
  import { t as s } from "./dist-Cujfuel1.js";
@@ -2,7 +2,7 @@ import "./styles/main.css";
2
2
  import { a as e, d as t, l as n, r, t as i } from "./dist-7HRQ5IKN.js";
3
3
  import { n as a, t as o } from "./dist-CGzgmYB9.js";
4
4
  import { t as s } from "./dist-Dtvmk11N.js";
5
- import { t as c } from "./dist-ClmepHp4.js";
5
+ import { t as c } from "./dist-DIt8FP2G.js";
6
6
  import * as l from "react";
7
7
  import { jsx as u } from "react/jsx-runtime";
8
8
  //#region node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.11_@types+react-dom@19.2.3_@types+react@19.2.14__@type_201cfa283d5b26fb84e6cfb74449149c/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
@@ -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,
@@ -1,5 +1,5 @@
1
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-BtdmHAzK.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