@spear-ai/spectral 1.8.1 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/dist/Accordion.js +8 -8
  3. package/dist/{Combination-CK_g12Qb.js → Combination-CQ5bXZqE.js} +1 -1
  4. package/dist/Dialog.js +2 -2
  5. package/dist/Drawer.js +1 -1
  6. package/dist/HoverCard.js +15 -15
  7. package/dist/Input/InputUtils.js +1 -1
  8. package/dist/InputOTP.d.ts +1 -1
  9. package/dist/InputOTP.js +3 -3
  10. package/dist/MultiSelect/MultiSelectBase.js +1 -1
  11. package/dist/Popover.d.ts +1 -1
  12. package/dist/Popover.js +15 -14
  13. package/dist/RadioGroup.js +5 -5
  14. package/dist/Select.js +5 -5
  15. package/dist/Slider.js +3 -3
  16. package/dist/Tabs/TabsBase.js +5 -5
  17. package/dist/Tooltip.js +9 -9
  18. package/dist/Tray.js +1 -1
  19. package/dist/{index-OnYbwQjk.js → index-9OmOYyjJ.js} +3 -3
  20. package/dist/{index-u1k2AYWy.js → index-BJ6qs9i5.js} +1 -1
  21. package/dist/{index-Cd9V_YZ4.js → index-CDkQCeZY.js} +1 -1
  22. package/dist/{index-B3FZpM60.js → index-CJKg3MVV.js} +2 -2
  23. package/dist/{index-Q3N6lgwg.js → index-CXltlPV-.js} +10 -10
  24. package/dist/{index-DSXuB1g3.js → index-Cgdmxb3F.js} +5 -5
  25. package/dist/{index-CqbPiOid.js → index-CmWCa9Ae.js} +5 -5
  26. package/dist/{index-D6HcSXrq.js → index-CtqlhLRO.js} +1 -1
  27. package/dist/{index-CrjD9cAD.js → index-D2Qxe4uK.js} +1 -1
  28. package/dist/{index-CpovUAO-.js → index-DqvTB1Bv.js} +7 -7
  29. package/dist/{index-ZExQO1ax.js → index-WBfSMXvE.js} +1 -1
  30. package/dist/{index-C12FUuIW.js → index-obMGvcdD.js} +1 -1
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/primitives/select.js +1 -1
  34. package/dist/styles/spectral.css +1 -1
  35. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![for-github](https://github.com/user-attachments/assets/57165f04-2b17-4b15-81d0-b5f0d72daee0)
1
+ ![spectral-logo](https://spectral.s3.us-gov-west-1.amazonaws.com/logo-for-github.svg)
2
2
 
3
3
 
4
4
  # Spear AI's Component Library
package/dist/Accordion.js CHANGED
@@ -70,12 +70,12 @@ import "./Icons/ZoomYIcon.js";
70
70
  import { useAccordionAutoScroll as Ce } from "./hooks/useAccordionAutoScroll.js";
71
71
  import * as f from "react";
72
72
  import u, { createContext as ge, Children as be, isValidElement as Ae, cloneElement as he, useRef as xe, useCallback as Ie, useContext as ye } from "react";
73
- import { c as F, P as y, b as z, e as M, u as B, f as Re } from "./index-OnYbwQjk.js";
74
- import { c as Ne, u as we } from "./index-DSXuB1g3.js";
75
- import { P as _e } from "./index-D6HcSXrq.js";
76
- import { u as U } from "./index-C12FUuIW.js";
73
+ import { P as y, c as F, e as M, a as z, u as B, f as Re } from "./index-9OmOYyjJ.js";
74
+ import { c as Ne, u as we } from "./index-Cgdmxb3F.js";
75
+ import { P as _e } from "./index-CtqlhLRO.js";
76
+ import { u as U } from "./index-obMGvcdD.js";
77
77
  import { cn as w } from "./utils/twUtils.js";
78
- var _ = "Collapsible", [Pe, q] = F(_), [Ee, V] = Pe(_), J = f.forwardRef(
78
+ var _ = "Collapsible", [Pe, q] = z(_), [Ee, V] = Pe(_), J = f.forwardRef(
79
79
  (e, a) => {
80
80
  const {
81
81
  __scopeCollapsible: o,
@@ -126,7 +126,7 @@ var Y = "CollapsibleTrigger", Q = f.forwardRef(
126
126
  disabled: n.disabled,
127
127
  ...t,
128
128
  ref: a,
129
- onClick: z(e.onClick, n.onOpenToggle)
129
+ onClick: F(e.onClick, n.onOpenToggle)
130
130
  }
131
131
  );
132
132
  }
@@ -175,7 +175,7 @@ var Se = f.forwardRef((e, a) => {
175
175
  function H(e) {
176
176
  return e ? "open" : "closed";
177
177
  }
178
- var Oe = J, Te = Q, ke = W, C = "Accordion", De = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [L, Me, Ve] = Ne(C), [P] = F(C, [
178
+ var Oe = J, Te = Q, ke = W, C = "Accordion", De = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [L, Me, Ve] = Ne(C), [P] = z(C, [
179
179
  Ve,
180
180
  q
181
181
  ]), j = q(), X = u.forwardRef(
@@ -245,7 +245,7 @@ var [Z, $e] = P(C), [ee, He] = P(
245
245
  );
246
246
  }), [Ge, E] = P(C), oe = u.forwardRef(
247
247
  (e, a) => {
248
- const { __scopeAccordion: o, disabled: t, dir: n, orientation: r = "vertical", ...c } = e, s = u.useRef(null), l = B(s, a), p = Me(o), v = we(n) === "ltr", x = z(e.onKeyDown, (g) => {
248
+ const { __scopeAccordion: o, disabled: t, dir: n, orientation: r = "vertical", ...c } = e, s = u.useRef(null), l = B(s, a), p = Me(o), v = we(n) === "ltr", x = F(e.onKeyDown, (g) => {
249
249
  if (!De.includes(g.key)) return;
250
250
  const R = g.target, b = p().filter((k) => !k.ref.current?.disabled), A = b.findIndex((k) => k.ref.current === R), h = b.length;
251
251
  if (A === -1) return;
@@ -1,7 +1,7 @@
1
1
  import "./styles/main.css";
2
2
  import * as u from "react";
3
3
  import { useState as ge } from "react";
4
- import { u as ye, P as be } from "./index-OnYbwQjk.js";
4
+ import { u as ye, P as be } from "./index-9OmOYyjJ.js";
5
5
  import { u as q } from "./index-0ioNhtNM.js";
6
6
  import { jsx as Ee } from "react/jsx-runtime";
7
7
  var _ = 0;
package/dist/Dialog.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import "./styles/main.css";
2
2
  import { jsx as o, jsxs as l } from "react/jsx-runtime";
3
3
  import { CloseIcon as m } from "./Icons/CloseIcon.js";
4
- import { R as p, C as i, a as f, D as u, O as x, P as b, T as h, b as v } from "./index-CqbPiOid.js";
4
+ import { R as p, C as i, a as f, D as u, O as x, P as b, T as h, b as v } from "./index-CmWCa9Ae.js";
5
5
  import { cn as e } from "./utils/twUtils.js";
6
6
  import "react";
7
- import { R as y } from "./Combination-CK_g12Qb.js";
7
+ import { R as y } from "./Combination-CQ5bXZqE.js";
8
8
  const j = ({
9
9
  isOpen: t,
10
10
  modal: a = !1,
package/dist/Drawer.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./styles/main.css";
2
2
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
3
3
  import { SpectralProvider as f } from "./SpectralProvider.js";
4
- import { D as e } from "./index-CrjD9cAD.js";
4
+ import { D as e } from "./index-D2Qxe4uK.js";
5
5
  const u = ({ children: l, defaultOpen: d = !1, description: i, direction: o = "right", dismissible: c = !0, modal: n = !0, onOpenChange: p, open: x, size: r = "380px", title: h, trigger: m }) => {
6
6
  const a = "font-sans! fixed", w = {
7
7
  left: {
package/dist/HoverCard.js CHANGED
@@ -3,14 +3,14 @@ import "./styles/main.css";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  import * as s from "react";
5
5
  import { createContext as I, useContext as B } from "react";
6
- import { e as U, c as $, b as m, P as W, u as z } from "./index-OnYbwQjk.js";
7
- import { c as O, R as G, A as K, C as j, a as V } from "./index-B3FZpM60.js";
8
- import { P as q, D as J } from "./index-u1k2AYWy.js";
9
- import { P as T } from "./index-D6HcSXrq.js";
6
+ import { e as U, c as m, P as $, u as W, a as z } from "./index-9OmOYyjJ.js";
7
+ import { R as G, A as K, c as O, C as j, a as V } from "./index-CJKg3MVV.js";
8
+ import { P as q, D as J } from "./index-BJ6qs9i5.js";
9
+ import { P as T } from "./index-CtqlhLRO.js";
10
10
  import { cn as E } from "./utils/twUtils.js";
11
- var H, b = "HoverCard", [N] = $(b, [
11
+ var H, x = "HoverCard", [N] = z(x, [
12
12
  O
13
- ]), x = O(), [Q, R] = N(b), _ = (e) => {
13
+ ]), R = O(), [Q, b] = N(x), _ = (e) => {
14
14
  const {
15
15
  __scopeHoverCard: o,
16
16
  children: r,
@@ -19,11 +19,11 @@ var H, b = "HoverCard", [N] = $(b, [
19
19
  onOpenChange: c,
20
20
  openDelay: u = 700,
21
21
  closeDelay: f = 300
22
- } = e, d = x(o), l = s.useRef(0), p = s.useRef(0), C = s.useRef(!1), v = s.useRef(!1), [h, t] = U({
22
+ } = e, d = R(o), l = s.useRef(0), p = s.useRef(0), C = s.useRef(!1), v = s.useRef(!1), [h, t] = U({
23
23
  prop: a,
24
24
  defaultProp: n ?? !1,
25
25
  onChange: c,
26
- caller: b
26
+ caller: x
27
27
  }), g = s.useCallback(() => {
28
28
  clearTimeout(p.current), l.current = window.setTimeout(() => t(!0), u);
29
29
  }, [u, t]), S = s.useCallback(() => {
@@ -46,12 +46,12 @@ var H, b = "HoverCard", [N] = $(b, [
46
46
  }
47
47
  );
48
48
  };
49
- _.displayName = b;
49
+ _.displayName = x;
50
50
  var D = "HoverCardTrigger", A = s.forwardRef(
51
51
  (e, o) => {
52
- const { __scopeHoverCard: r, ...a } = e, n = R(D, r), c = x(r);
52
+ const { __scopeHoverCard: r, ...a } = e, n = b(D, r), c = R(r);
53
53
  return /* @__PURE__ */ i(K, { asChild: !0, ...c, children: /* @__PURE__ */ i(
54
- W.a,
54
+ $.a,
55
55
  {
56
56
  "data-state": n.open ? "open" : "closed",
57
57
  ...a,
@@ -69,13 +69,13 @@ A.displayName = D;
69
69
  var y = "HoverCardPortal", [X, Y] = N(y, {
70
70
  forceMount: void 0
71
71
  }), L = (e) => {
72
- const { __scopeHoverCard: o, forceMount: r, children: a, container: n } = e, c = R(y, o);
72
+ const { __scopeHoverCard: o, forceMount: r, children: a, container: n } = e, c = b(y, o);
73
73
  return /* @__PURE__ */ i(X, { scope: o, forceMount: r, children: /* @__PURE__ */ i(T, { present: r || c.open, children: /* @__PURE__ */ i(q, { asChild: !0, container: n, children: a }) }) });
74
74
  };
75
75
  L.displayName = y;
76
76
  var P = "HoverCardContent", M = s.forwardRef(
77
77
  (e, o) => {
78
- const r = Y(P, e.__scopeHoverCard), { forceMount: a = r.forceMount, ...n } = e, c = R(P, e.__scopeHoverCard);
78
+ const r = Y(P, e.__scopeHoverCard), { forceMount: a = r.forceMount, ...n } = e, c = b(P, e.__scopeHoverCard);
79
79
  return /* @__PURE__ */ i(T, { present: a || c.open, children: /* @__PURE__ */ i(
80
80
  Z,
81
81
  {
@@ -97,7 +97,7 @@ var Z = s.forwardRef((e, o) => {
97
97
  onFocusOutside: c,
98
98
  onInteractOutside: u,
99
99
  ...f
100
- } = e, d = R(P, r), l = x(r), p = s.useRef(null), C = z(o, p), [v, h] = s.useState(!1);
100
+ } = e, d = b(P, r), l = R(r), p = s.useRef(null), C = W(o, p), [v, h] = s.useState(!1);
101
101
  return s.useEffect(() => {
102
102
  if (v) {
103
103
  const t = document.body;
@@ -156,7 +156,7 @@ var Z = s.forwardRef((e, o) => {
156
156
  );
157
157
  }), ee = "HoverCardArrow", te = s.forwardRef(
158
158
  (e, o) => {
159
- const { __scopeHoverCard: r, ...a } = e, n = x(r);
159
+ const { __scopeHoverCard: r, ...a } = e, n = R(r);
160
160
  return /* @__PURE__ */ i(V, { ...n, ...a, ref: o });
161
161
  }
162
162
  );
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { useState as u, useRef as l, useLayoutEffect as d, useCallback as f } from "react";
2
+ import { useState as u, useCallback as f, useRef as l, useLayoutEffect as d } from "react";
3
3
  const h = (t) => {
4
4
  const [r, s] = u(0), e = l(null);
5
5
  return d(() => {
@@ -16,7 +16,7 @@ export interface InputOTPBaseProps extends Omit<OTPInputProps, 'textAlign' | 'pu
16
16
  state?: FormFieldState;
17
17
  variant?: 'outlined' | 'filled';
18
18
  }
19
- type InputOTPProps = InputOTPBaseProps & ({
19
+ export type InputOTPProps = InputOTPBaseProps & ({
20
20
  value: number | string;
21
21
  onChange: (newValue: number | string) => void;
22
22
  } | {
package/dist/InputOTP.js CHANGED
@@ -67,7 +67,7 @@ import "./Icons/WarningIcon.js";
67
67
  import "./Icons/ZoomAllIcon.js";
68
68
  import "./Icons/ZoomXIcon.js";
69
69
  import "./Icons/ZoomYIcon.js";
70
- import { useFormFieldId as Gt, useFormFieldState as Lt, ErrorMessage as $t, getErrorMessageId as zt } from "./utils/formFieldUtils.js";
70
+ import { useFormFieldId as Gt, ErrorMessage as Lt, getErrorMessageId as $t, useFormFieldState as zt } from "./utils/formFieldUtils.js";
71
71
  import { cn as wt } from "./utils/twUtils.js";
72
72
  import * as n from "react";
73
73
  import { createContext as St, useContext as yt } from "react";
@@ -283,7 +283,7 @@ const Mt = St({}), Tt = St(null), ot = () => {
283
283
  variant: h = "outlined",
284
284
  ...P
285
285
  }) => {
286
- const T = Gt(v, m), { isInvalid: s } = Lt(!1, g), F = j ?? (i === "numeric" ? ae : void 0), J = (O) => {
286
+ const T = Gt(v, m), { isInvalid: s } = zt(!1, g), F = j ?? (i === "numeric" ? ae : void 0), J = (O) => {
287
287
  let W = O.clipboardData.getData("text/plain").trim().replaceAll("-", "");
288
288
  i === "numeric" && (W = W.replace(/\D/g, "")), W.length === d && typeof E == "function" && E(W);
289
289
  };
@@ -315,7 +315,7 @@ const Mt = St({}), Tt = St(null), ot = () => {
315
315
  render: ({ slots: O }) => /* @__PURE__ */ w(Tt.Provider, { value: { slots: O, variant: h, maxLength: d }, children: e ?? /* @__PURE__ */ w(at, { children: /* @__PURE__ */ w(it, {}) }) })
316
316
  }
317
317
  ),
318
- s && l && /* @__PURE__ */ w($t, { dataTestId: "spectral-input-otp-error-message", id: zt(T), message: l })
318
+ s && l && /* @__PURE__ */ w(Lt, { dataTestId: "spectral-input-otp-error-message", id: $t(T), message: l })
319
319
  ] }) });
320
320
  };
321
321
  kt.displayName = "InputOTP";
@@ -67,7 +67,7 @@ import "../Icons/WarningIcon.js";
67
67
  import "../Icons/ZoomAllIcon.js";
68
68
  import "../Icons/ZoomXIcon.js";
69
69
  import "../Icons/ZoomYIcon.js";
70
- import { R as be, T as ge, P as he, C as xe } from "../index-Q3N6lgwg.js";
70
+ import { R as be, T as ge, P as he, C as xe } from "../index-CXltlPV-.js";
71
71
  import { ErrorMessage as ye } from "../utils/formFieldUtils.js";
72
72
  import { cn as y } from "../utils/twUtils.js";
73
73
  import { useId as ve, useState as V, useRef as we, useMemo as v, useCallback as w, useEffect as Ne } from "react";
package/dist/Popover.d.ts CHANGED
@@ -5,6 +5,6 @@ export type PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimiti
5
5
  };
6
6
  export declare const Popover: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const PopoverTrigger: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
8
- export declare const PopoverContent: ({ align, className, side, sideOffset, width, ...props }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const PopoverContent: ({ align, className, collisionPadding, side, sideOffset, width, ...props }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const PopoverAnchor: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>) => import("react/jsx-runtime").JSX.Element;
10
10
  //# sourceMappingURL=Popover.d.ts.map
package/dist/Popover.js CHANGED
@@ -1,33 +1,34 @@
1
1
  import "./styles/main.css";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import { R as s, P as p, C as d, T as m, A as f } from "./index-Q3N6lgwg.js";
4
- import { cn as l } from "./utils/twUtils.js";
3
+ import { R as p, P as d, C as m, T as f, A as l } from "./index-CXltlPV-.js";
4
+ import { cn as c } from "./utils/twUtils.js";
5
5
  import "react";
6
- const u = ({ ...o }) => /* @__PURE__ */ t(s, { "data-slot": "popover", "data-testid": "spectral-popover", ...o }), x = ({ ...o }) => /* @__PURE__ */ t(m, { "data-slot": "popover-trigger", "data-testid": "spectral-popover-trigger", ...o }), b = ({ align: o = "center", className: a, side: r = "bottom", sideOffset: n = 4, width: e = "w-fit", ...i }) => /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
7
- d,
6
+ const x = ({ ...o }) => /* @__PURE__ */ t(p, { "data-slot": "popover", "data-testid": "spectral-popover", ...o }), b = ({ ...o }) => /* @__PURE__ */ t(f, { "data-slot": "popover-trigger", "data-testid": "spectral-popover-trigger", ...o }), P = ({ align: o = "center", className: a, collisionPadding: r = 8, side: n = "bottom", sideOffset: i = 4, width: e = "w-fit", ...s }) => /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
7
+ m,
8
8
  {
9
9
  align: o,
10
+ collisionPadding: r,
10
11
  "data-slot": "popover-content",
11
12
  "data-testid": "spectral-popover-content",
12
- side: r,
13
- sideOffset: n,
14
- className: l(
13
+ side: n,
14
+ sideOffset: i,
15
+ className: c(
15
16
  "bg-popover-bg text-popover-text motion-safe:data-[state=open]:animate-in motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=closed]:fade-out-0",
16
17
  "motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2",
17
18
  "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 z-50 h-fit",
18
- "max-h-(--radix-popover-content-max-height) origin-[--radix-popover-content-transform-origin] rounded-lg border-none p-4",
19
+ "max-h-(--radix-popover-content-available-height) origin-[--radix-popover-content-transform-origin] rounded-lg border-none p-4",
19
20
  "w-(--popover-width) overflow-x-hidden overflow-y-auto shadow-md outline-none",
20
21
  a
21
22
  ),
22
23
  style: {
23
24
  "--popover-width": typeof e == "number" ? `${e}px` : e === "w-fit" ? "320px" : e
24
25
  },
25
- ...i
26
+ ...s
26
27
  }
27
- ) }), P = ({ ...o }) => /* @__PURE__ */ t(f, { "data-slot": "popover-anchor", ...o });
28
+ ) }), w = ({ ...o }) => /* @__PURE__ */ t(l, { "data-slot": "popover-anchor", ...o });
28
29
  export {
29
- u as Popover,
30
- P as PopoverAnchor,
31
- b as PopoverContent,
32
- x as PopoverTrigger
30
+ x as Popover,
31
+ w as PopoverAnchor,
32
+ P as PopoverContent,
33
+ b as PopoverTrigger
33
34
  };
@@ -4,13 +4,13 @@ import { jsx as a, jsxs as Y } from "react/jsx-runtime";
4
4
  import { Label as D } from "./Label.js";
5
5
  import * as c from "react";
6
6
  import { useState as ge, createContext as he, memo as Ie, useMemo as ye, useContext as we, useId as Ce } from "react";
7
- import { c as L, P as F, b as y, u as _, e as $ } from "./index-OnYbwQjk.js";
8
- import { c as Ee, u as j } from "./index-DSXuB1g3.js";
9
- import { u as Se } from "./index-C12FUuIW.js";
7
+ import { P as F, c as y, a as L, u as _, e as $ } from "./index-9OmOYyjJ.js";
8
+ import { c as Ee, u as j } from "./index-Cgdmxb3F.js";
9
+ import { u as Se } from "./index-obMGvcdD.js";
10
10
  import { u as Fe } from "./index-0ioNhtNM.js";
11
- import { u as Ae } from "./index-ZExQO1ax.js";
11
+ import { u as Ae } from "./index-WBfSMXvE.js";
12
12
  import { u as Ne } from "./index-BZPx6jYI.js";
13
- import { P as _e } from "./index-D6HcSXrq.js";
13
+ import { P as _e } from "./index-CtqlhLRO.js";
14
14
  import { cn as E } from "./utils/twUtils.js";
15
15
  import { h as Pe, c as Te, p as xe, w as Ge, m as V } from "./proxy-CO_-Vget.js";
16
16
  import { A as ke } from "./index-Cl8VeY0o.js";
package/dist/Select.js CHANGED
@@ -68,8 +68,8 @@ import "./Icons/ZoomAllIcon.js";
68
68
  import "./Icons/ZoomXIcon.js";
69
69
  import "./Icons/ZoomYIcon.js";
70
70
  import { Label as I } from "./Label.js";
71
- import { R as Z, T as _, V as $, I as tt, P as et, C as rt, S as at, a as it, b as st, c as C, G as ot, d as lt, e as dt, f as mt } from "./index-CpovUAO-.js";
72
- import { useFormFieldId as ct, useFormFieldState as pt, getAriaProps as nt, groupOptions as ut, getFormFieldCSSProperties as gt, getStateClasses as ht, getTriggerClasses as ft, ErrorMessage as bt, getErrorMessageId as xt, LoadingState as yt, EmptyState as Nt, getOptionClasses as vt } from "./utils/formFieldUtils.js";
71
+ import { R as Z, T as _, V as $, I as tt, P as et, C as rt, S as at, a as it, b as st, c as C, G as ot, d as lt, e as dt, f as mt } from "./index-DqvTB1Bv.js";
72
+ import { useFormFieldId as ct, useFormFieldState as pt, getAriaProps as nt, groupOptions as ut, getFormFieldCSSProperties as gt, getStateClasses as ht, getTriggerClasses as ft, ErrorMessage as bt, LoadingState as xt, EmptyState as yt, getErrorMessageId as Nt, getOptionClasses as vt } from "./utils/formFieldUtils.js";
73
73
  import { cn as a } from "./utils/twUtils.js";
74
74
  import { useState as St } from "react";
75
75
  const wt = ({
@@ -100,11 +100,11 @@ const wt = ({
100
100
  "aria-describedby": A,
101
101
  ...s
102
102
  }) => {
103
- const [b, U] = St(!1), o = ct(V, g), x = xt(o), { isDisabled: m, isLoading: y, isInvalid: H } = pt(s.disabled, i), J = nt(i, A, s.required, x), { groups: N, ungrouped: v } = ut(h), K = () => {
103
+ const [b, U] = St(!1), o = ct(V, g), x = Nt(o), { isDisabled: m, isLoading: y, isInvalid: H } = pt(s.disabled, i), J = nt(i, A, s.required, x), { groups: N, ungrouped: v } = ut(h), K = () => {
104
104
  if (y)
105
- return /* @__PURE__ */ t(yt, { "data-testid": "spectral-select-loading", message: q });
105
+ return /* @__PURE__ */ t(xt, { "data-testid": "spectral-select-loading", message: q });
106
106
  if (h.length === 0)
107
- return /* @__PURE__ */ t(Nt, { "data-testid": "spectral-select-empty", message: T });
107
+ return /* @__PURE__ */ t(yt, { "data-testid": "spectral-select-empty", message: T });
108
108
  const S = (e) => {
109
109
  const c = f === e.value;
110
110
  return /* @__PURE__ */ r(lt, { className: a(vt(!!e.disabled, !1, c), "relative flex w-full cursor-pointer items-center"), "data-testid": "spectral-select-item", disabled: e.disabled, value: e.value, children: [
package/dist/Slider.js CHANGED
@@ -5,10 +5,10 @@ import { Input as Q } from "./primitives/input.js";
5
5
  import * as p from "react";
6
6
  import { useMemo as Se, useState as Z, useEffect as ge, useCallback as U } from "react";
7
7
  import { c as te } from "./index-rKs9bXHr.js";
8
- import { e as ve, c as be, b as N, P as L, u as T } from "./index-OnYbwQjk.js";
9
- import { c as we, u as ye } from "./index-DSXuB1g3.js";
8
+ import { e as ve, c as N, P as L, u as T, a as be } from "./index-9OmOYyjJ.js";
9
+ import { c as we, u as ye } from "./index-Cgdmxb3F.js";
10
10
  import { u as xe } from "./index-BZPx6jYI.js";
11
- import { u as Re } from "./index-ZExQO1ax.js";
11
+ import { u as Re } from "./index-WBfSMXvE.js";
12
12
  import { cn as ee } from "./utils/twUtils.js";
13
13
  var ne = ["PageUp", "PageDown"], re = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], oe = {
14
14
  "from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
@@ -3,12 +3,12 @@ import "../styles/main.css";
3
3
  import { jsx as p, jsxs as E } from "react/jsx-runtime";
4
4
  import { generateId as K, prefersReducedMotion as $, calculateIndicatorStyle as S, debounce as j } from "./tabsUtils.js";
5
5
  import { cn as x } from "../utils/twUtils.js";
6
- import { createContext as k, useContext as U, useState as M, useId as F, useCallback as T, useRef as q, useMemo as B, useEffect as R } from "react";
6
+ import { createContext as k, useState as M, useId as U, useCallback as T, useRef as F, useMemo as q, useEffect as R, useContext as B } from "react";
7
7
  import { j as H } from "../index-DEYs15GP.js";
8
8
  import { m as D } from "../proxy-CO_-Vget.js";
9
9
  import { A as G } from "../index-Cl8VeY0o.js";
10
10
  const N = k(null), A = (y = "Tabs") => {
11
- const d = U(N);
11
+ const d = B(N);
12
12
  if (d === null)
13
13
  throw new Error(`${y} components must be used within a Tabs.Root`);
14
14
  return d;
@@ -25,7 +25,7 @@ const N = k(null), A = (y = "Tabs") => {
25
25
  value: t,
26
26
  ...C
27
27
  }) {
28
- const [w, I] = M(s ?? ""), v = F() ?? K("tabs"), h = t !== void 0, c = h ? t : w, r = T(
28
+ const [w, I] = M(s ?? ""), v = U() ?? K("tabs"), h = t !== void 0, c = h ? t : w, r = T(
29
29
  (e) => {
30
30
  u || (h || I(e), n?.(e));
31
31
  },
@@ -49,10 +49,10 @@ const N = k(null), A = (y = "Tabs") => {
49
49
  rightSlot: f,
50
50
  ...u
51
51
  }) {
52
- const { orientation: n, disabled: m, value: b } = A("TabsList"), [t, C] = M(null), w = q(null), I = $(), v = T(() => {
52
+ const { orientation: n, disabled: m, value: b } = A("TabsList"), [t, C] = M(null), w = F(null), I = $(), v = T(() => {
53
53
  const r = S(w);
54
54
  (r.width > 0 || r.height > 0) && C(r);
55
- }, []), h = B(() => j(v, 16), [v]);
55
+ }, []), h = q(() => j(v, 16), [v]);
56
56
  R(() => {
57
57
  if (v(), typeof ResizeObserver > "u" || typeof MutationObserver > "u")
58
58
  return;
package/dist/Tooltip.js CHANGED
@@ -2,15 +2,15 @@
2
2
  import "./styles/main.css";
3
3
  import { jsx as u, jsxs as S } from "react/jsx-runtime";
4
4
  import * as a from "react";
5
- import { c as J, e as Q, u as G, P as Z, b as C, g as ee } from "./index-OnYbwQjk.js";
6
- import { P as te, D as oe } from "./index-u1k2AYWy.js";
7
- import { u as re } from "./index-C12FUuIW.js";
8
- import { c as j, R as ne, a as ae, A as se, C as ie } from "./index-B3FZpM60.js";
9
- import { P as V } from "./index-D6HcSXrq.js";
10
- import { R as le } from "./index-Cd9V_YZ4.js";
5
+ import { e as J, u as G, P as Q, c as C, a as Z, g as ee } from "./index-9OmOYyjJ.js";
6
+ import { P as te, D as oe } from "./index-BJ6qs9i5.js";
7
+ import { u as re } from "./index-obMGvcdD.js";
8
+ import { R as ne, a as ae, A as se, c as j, C as ie } from "./index-CJKg3MVV.js";
9
+ import { P as V } from "./index-CtqlhLRO.js";
10
+ import { R as le } from "./index-CDkQCeZY.js";
11
11
  import { cn as H } from "./utils/twUtils.js";
12
12
  import { c as F } from "./index-D29mdTf5.js";
13
- var [O] = J("Tooltip", [
13
+ var [O] = Z("Tooltip", [
14
14
  j
15
15
  ]), A = j(), z = "TooltipProvider", ce = 700, D = "tooltip.open", [ue, k] = O(z), $ = (e) => {
16
16
  const {
@@ -57,7 +57,7 @@ var R = "Tooltip", [pe, _] = O(R), B = (e) => {
57
57
  onOpenChange: s,
58
58
  disableHoverableContent: i,
59
59
  delayDuration: v
60
- } = e, l = k(R, e.__scopeTooltip), d = A(o), [c, f] = a.useState(null), m = re(), p = a.useRef(0), h = i ?? l.disableHoverableContent, T = v ?? l.delayDuration, g = a.useRef(!1), [y, x] = Q({
60
+ } = e, l = k(R, e.__scopeTooltip), d = A(o), [c, f] = a.useState(null), m = re(), p = a.useRef(0), h = i ?? l.disableHoverableContent, T = v ?? l.delayDuration, g = a.useRef(!1), [y, x] = J({
61
61
  prop: r,
62
62
  defaultProp: n ?? !1,
63
63
  onChange: (I) => {
@@ -102,7 +102,7 @@ var L = "TooltipTrigger", U = a.forwardRef(
102
102
  (e, o) => {
103
103
  const { __scopeTooltip: t, ...r } = e, n = _(L, t), s = k(L, t), i = A(t), v = a.useRef(null), l = G(o, v, n.onTriggerChange), d = a.useRef(!1), c = a.useRef(!1), f = a.useCallback(() => d.current = !1, []);
104
104
  return a.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ u(se, { asChild: !0, ...i, children: /* @__PURE__ */ u(
105
- Z.button,
105
+ Q.button,
106
106
  {
107
107
  "aria-describedby": n.open ? n.contentId : void 0,
108
108
  "data-state": n.stateAttribute,
package/dist/Tray.js CHANGED
@@ -72,7 +72,7 @@ import { cn as a } from "./utils/twUtils.js";
72
72
  import { c as M } from "./index-D29mdTf5.js";
73
73
  import { createContext as H, useRef as h, useMemo as T, useContext as I } from "react";
74
74
  import { j as g } from "./index-DEYs15GP.js";
75
- import { D as s } from "./index-CrjD9cAD.js";
75
+ import { D as s } from "./index-D2Qxe4uK.js";
76
76
  import { m as v } from "./proxy-CO_-Vget.js";
77
77
  import { A as O } from "./index-Cl8VeY0o.js";
78
78
  const j = M("fixed bottom-4 left-1/2 z-10 -translate-x-1/2 overflow-hidden rounded-2xl bg-drawer-bg outline-none w-full sm:max-md:max-w-full", {
@@ -220,9 +220,9 @@ function B(e, t) {
220
220
  }
221
221
  export {
222
222
  k as P,
223
- R as a,
224
- L as b,
225
- A as c,
223
+ A as a,
224
+ R as b,
225
+ L as c,
226
226
  W as d,
227
227
  T as e,
228
228
  O as f,
@@ -1,6 +1,6 @@
1
1
  import "./styles/main.css";
2
2
  import * as r from "react";
3
- import { u as T, P as m, b as h, h as k, f as M } from "./index-OnYbwQjk.js";
3
+ import { u as T, P as m, c as h, h as k, f as M } from "./index-9OmOYyjJ.js";
4
4
  import { u as b } from "./index-0ioNhtNM.js";
5
5
  import { jsx as P } from "react/jsx-runtime";
6
6
  import U from "react-dom";
@@ -1,6 +1,6 @@
1
1
  import "./styles/main.css";
2
2
  import * as i from "react";
3
- import { P as o } from "./index-OnYbwQjk.js";
3
+ import { P as o } from "./index-9OmOYyjJ.js";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  var d = Object.freeze({
6
6
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
@@ -2,10 +2,10 @@ import "./styles/main.css";
2
2
  import * as R from "react";
3
3
  import { useLayoutEffect as Ae } from "react";
4
4
  import * as Re from "react-dom";
5
- import { P as At, c as Ce, u as Yt, f as $t } from "./index-OnYbwQjk.js";
5
+ import { P as At, u as Yt, a as Ce, f as $t } from "./index-9OmOYyjJ.js";
6
6
  import { jsx as j } from "react/jsx-runtime";
7
7
  import { u as Pe } from "./index-0ioNhtNM.js";
8
- import { u as Oe } from "./index-ZExQO1ax.js";
8
+ import { u as Oe } from "./index-WBfSMXvE.js";
9
9
  const Se = ["top", "right", "bottom", "left"], Z = Math.min, W = Math.max, at = Math.round, ct = Math.floor, I = (t) => ({
10
10
  x: t,
11
11
  y: t
@@ -1,15 +1,15 @@
1
1
  import "./styles/main.css";
2
2
  import * as c from "react";
3
- import { e as G, c as H, u as O, P as _, b as P, a as K } from "./index-OnYbwQjk.js";
4
- import { P as $, D as j } from "./index-u1k2AYWy.js";
5
- import { h as U, R as V, u as W, F as Z } from "./Combination-CK_g12Qb.js";
6
- import { u as q } from "./index-C12FUuIW.js";
7
- import { c as x, R as z, A as w, C as B, a as J } from "./index-B3FZpM60.js";
8
- import { P as E } from "./index-D6HcSXrq.js";
3
+ import { e as G, u as O, P as _, c as P, a as H, b as K } from "./index-9OmOYyjJ.js";
4
+ import { P as $, D as j } from "./index-BJ6qs9i5.js";
5
+ import { h as U, R as V, u as W, F as Z } from "./Combination-CQ5bXZqE.js";
6
+ import { u as q } from "./index-obMGvcdD.js";
7
+ import { R as z, A as x, c as w, C as B, a as J } from "./index-CJKg3MVV.js";
8
+ import { P as E } from "./index-CtqlhLRO.js";
9
9
  import { jsx as p } from "react/jsx-runtime";
10
10
  var m = "Popover", [b] = H(m, [
11
- x
12
- ]), g = x(), [Q, u] = b(m), F = (e) => {
11
+ w
12
+ ]), g = w(), [Q, u] = b(m), F = (e) => {
13
13
  const {
14
14
  __scopePopover: n,
15
15
  children: t,
@@ -44,7 +44,7 @@ F.displayName = m;
44
44
  var N = "PopoverAnchor", S = c.forwardRef(
45
45
  (e, n) => {
46
46
  const { __scopePopover: t, ...a } = e, o = u(N, t), r = g(t), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = o;
47
- return c.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ p(w, { ...r, ...a, ref: n });
47
+ return c.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ p(x, { ...r, ...a, ref: n });
48
48
  }
49
49
  );
50
50
  S.displayName = N;
@@ -63,7 +63,7 @@ var y = "PopoverTrigger", D = c.forwardRef(
63
63
  onClick: P(e.onClick, o.onOpenToggle)
64
64
  }
65
65
  );
66
- return o.hasCustomAnchor ? i : /* @__PURE__ */ p(w, { asChild: !0, ...r, children: i });
66
+ return o.hasCustomAnchor ? i : /* @__PURE__ */ p(x, { asChild: !0, ...r, children: i });
67
67
  }
68
68
  );
69
69
  D.displayName = y;
@@ -1,9 +1,9 @@
1
1
  import "./styles/main.css";
2
2
  import * as A from "react";
3
3
  import r from "react";
4
- import { c as D, u as S, a as M } from "./index-OnYbwQjk.js";
4
+ import { a as D, u as S, b as M } from "./index-9OmOYyjJ.js";
5
5
  import { jsx as d } from "react/jsx-runtime";
6
- function h(l) {
6
+ function g(l) {
7
7
  const i = l + "CollectionProvider", [N, _] = D(i), [v, f] = N(
8
8
  i,
9
9
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -46,11 +46,11 @@ function h(l) {
46
46
  ];
47
47
  }
48
48
  var P = A.createContext(void 0);
49
- function b(l) {
49
+ function h(l) {
50
50
  const i = A.useContext(P);
51
51
  return l || i || "ltr";
52
52
  }
53
53
  export {
54
- h as c,
55
- b as u
54
+ g as c,
55
+ h as u
56
56
  };
@@ -1,10 +1,10 @@
1
1
  import "./styles/main.css";
2
2
  import * as i from "react";
3
- import { c as V, a as q, P as p, u as _, b as g, d as K, e as U } from "./index-OnYbwQjk.js";
4
- import { u as R } from "./index-C12FUuIW.js";
5
- import { D as Y, P as Z } from "./index-u1k2AYWy.js";
6
- import { R as z, h as J, u as Q, F as X } from "./Combination-CK_g12Qb.js";
7
- import { P as h } from "./index-D6HcSXrq.js";
3
+ import { P as p, u as _, c as g, a as V, b as q, d as K, e as U } from "./index-9OmOYyjJ.js";
4
+ import { u as R } from "./index-obMGvcdD.js";
5
+ import { D as Y, P as Z } from "./index-BJ6qs9i5.js";
6
+ import { R as z, h as J, u as Q, F as X } from "./Combination-CQ5bXZqE.js";
7
+ import { P as h } from "./index-CtqlhLRO.js";
8
8
  import { jsx as s, jsxs as N, Fragment as O } from "react/jsx-runtime";
9
9
  var v = "Dialog", [I] = V(v), [ee, u] = I(v), x = (e) => {
10
10
  const {
@@ -1,5 +1,5 @@
1
1
  import * as o from "react";
2
- import { u as y, f as A } from "./index-OnYbwQjk.js";
2
+ import { u as y, f as A } from "./index-9OmOYyjJ.js";
3
3
  function T(n, e) {
4
4
  return o.useReducer((t, r) => e[t][r] ?? t, n);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { O as me, a as pe, b as we, C as he, T as ge, D as ve, R as ye, P as be } from "./index-CqbPiOid.js";
1
+ import { O as me, a as pe, b as we, C as he, T as ge, D as ve, R as ye, P as be } from "./index-CmWCa9Ae.js";
2
2
  import * as Se from "react";
3
3
  import r, { useMemo as Te, useLayoutEffect as Re, useEffect as Ee } from "react";
4
4
  function De(t) {
@@ -2,15 +2,15 @@ import "./styles/main.css";
2
2
  import * as t from "react";
3
3
  import * as be from "react-dom";
4
4
  import { c as Re } from "./index-rKs9bXHr.js";
5
- import { e as Ee, c as st, u as k, P as M, b as R, f as Y, a as ct } from "./index-OnYbwQjk.js";
6
- import { u as lt, c as at } from "./index-DSXuB1g3.js";
7
- import { P as it, D as dt } from "./index-u1k2AYWy.js";
8
- import { h as ut, u as pt, R as ft, F as mt } from "./Combination-CK_g12Qb.js";
9
- import { u as Ie } from "./index-C12FUuIW.js";
10
- import { c as _e, R as ht, A as vt, C as gt, a as St } from "./index-B3FZpM60.js";
5
+ import { e as Ee, u as k, P as M, c as R, f as Y, a as st, b as ct } from "./index-9OmOYyjJ.js";
6
+ import { u as lt, c as at } from "./index-Cgdmxb3F.js";
7
+ import { P as it, D as dt } from "./index-BJ6qs9i5.js";
8
+ import { h as ut, u as pt, R as ft, F as mt } from "./Combination-CQ5bXZqE.js";
9
+ import { u as Ie } from "./index-obMGvcdD.js";
10
+ import { R as ht, A as vt, c as _e, C as gt, a as St } from "./index-CJKg3MVV.js";
11
11
  import { u as wt } from "./index-0ioNhtNM.js";
12
12
  import { u as Ct } from "./index-BZPx6jYI.js";
13
- import { V as xt } from "./index-Cd9V_YZ4.js";
13
+ import { V as xt } from "./index-CDkQCeZY.js";
14
14
  import { jsx as p, jsxs as le, Fragment as Te } from "react/jsx-runtime";
15
15
  var yt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ie, de, Tt] = at(J), [te] = st(J, [
16
16
  Tt,
@@ -1,5 +1,5 @@
1
1
  import * as u from "react";
2
- import { f as z } from "./index-OnYbwQjk.js";
2
+ import { f as z } from "./index-9OmOYyjJ.js";
3
3
  function n(r) {
4
4
  const [h, e] = u.useState(void 0);
5
5
  return z(() => {