@spear-ai/spectral 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/Accordion.js +8 -8
- package/dist/{Combination-CK_g12Qb.js → Combination-CQ5bXZqE.js} +1 -1
- package/dist/Dialog.js +2 -2
- package/dist/Drawer.js +1 -1
- package/dist/HoverCard.js +15 -15
- package/dist/Input/InputUtils.js +1 -1
- package/dist/InputOTP.js +3 -3
- package/dist/MultiSelect/MultiSelectBase.js +1 -1
- package/dist/Popover.d.ts +1 -1
- package/dist/Popover.js +15 -14
- package/dist/RadioGroup.js +5 -5
- package/dist/Select.js +5 -5
- package/dist/Slider.js +3 -3
- package/dist/Tabs/TabsBase.js +5 -5
- package/dist/Tooltip.js +9 -9
- package/dist/Tray.js +1 -1
- package/dist/{index-OnYbwQjk.js → index-9OmOYyjJ.js} +3 -3
- package/dist/{index-u1k2AYWy.js → index-BJ6qs9i5.js} +1 -1
- package/dist/{index-Cd9V_YZ4.js → index-CDkQCeZY.js} +1 -1
- package/dist/{index-B3FZpM60.js → index-CJKg3MVV.js} +2 -2
- package/dist/{index-Q3N6lgwg.js → index-CXltlPV-.js} +10 -10
- package/dist/{index-DSXuB1g3.js → index-Cgdmxb3F.js} +5 -5
- package/dist/{index-CqbPiOid.js → index-CmWCa9Ae.js} +5 -5
- package/dist/{index-D6HcSXrq.js → index-CtqlhLRO.js} +1 -1
- package/dist/{index-CrjD9cAD.js → index-D2Qxe4uK.js} +1 -1
- package/dist/{index-CpovUAO-.js → index-DqvTB1Bv.js} +7 -7
- package/dist/{index-ZExQO1ax.js → index-WBfSMXvE.js} +1 -1
- package/dist/{index-C12FUuIW.js → index-obMGvcdD.js} +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/styles/horizon/utilities.css +1 -1
- package/dist/styles/spectral.css +1 -1
- package/dist/styles/theme.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
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 {
|
|
74
|
-
import { c as Ne, u as we } from "./index-
|
|
75
|
-
import { P as _e } from "./index-
|
|
76
|
-
import { u as U } from "./index-
|
|
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] =
|
|
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:
|
|
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] =
|
|
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 =
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
7
|
-
import {
|
|
8
|
-
import { P as q, D as J } from "./index-
|
|
9
|
-
import { P as T } from "./index-
|
|
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,
|
|
11
|
+
var H, x = "HoverCard", [N] = z(x, [
|
|
12
12
|
O
|
|
13
|
-
]),
|
|
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 =
|
|
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:
|
|
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 =
|
|
49
|
+
_.displayName = x;
|
|
50
50
|
var D = "HoverCardTrigger", A = s.forwardRef(
|
|
51
51
|
(e, o) => {
|
|
52
|
-
const { __scopeHoverCard: r, ...a } = e, n =
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
159
|
+
const { __scopeHoverCard: r, ...a } = e, n = R(r);
|
|
160
160
|
return /* @__PURE__ */ i(V, { ...n, ...a, ref: o });
|
|
161
161
|
}
|
|
162
162
|
);
|
package/dist/Input/InputUtils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useState as u,
|
|
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(() => {
|
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,
|
|
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 } =
|
|
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(
|
|
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-
|
|
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
|
|
4
|
-
import { cn as
|
|
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
|
|
7
|
-
|
|
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:
|
|
13
|
-
sideOffset:
|
|
14
|
-
className:
|
|
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-
|
|
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
|
-
...
|
|
26
|
+
...s
|
|
26
27
|
}
|
|
27
|
-
) }),
|
|
28
|
+
) }), w = ({ ...o }) => /* @__PURE__ */ t(l, { "data-slot": "popover-anchor", ...o });
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
x as Popover,
|
|
31
|
+
w as PopoverAnchor,
|
|
32
|
+
P as PopoverContent,
|
|
33
|
+
b as PopoverTrigger
|
|
33
34
|
};
|
package/dist/RadioGroup.js
CHANGED
|
@@ -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 {
|
|
8
|
-
import { c as Ee, u as j } from "./index-
|
|
9
|
-
import { u as Se } from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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,
|
|
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 =
|
|
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(
|
|
105
|
+
return /* @__PURE__ */ t(xt, { "data-testid": "spectral-select-loading", message: q });
|
|
106
106
|
if (h.length === 0)
|
|
107
|
-
return /* @__PURE__ */ 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
|
|
9
|
-
import { c as we, u as ye } from "./index-
|
|
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-
|
|
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"],
|
package/dist/Tabs/TabsBase.js
CHANGED
|
@@ -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,
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 {
|
|
6
|
-
import { P as te, D as oe } from "./index-
|
|
7
|
-
import { u as re } from "./index-
|
|
8
|
-
import {
|
|
9
|
-
import { P as V } from "./index-
|
|
10
|
-
import { R as le } from "./index-
|
|
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] =
|
|
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] =
|
|
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
|
-
|
|
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-
|
|
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", {
|
|
@@ -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,
|
|
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-
|
|
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,
|
|
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-
|
|
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,
|
|
4
|
-
import { P as $, D as j } from "./index-
|
|
5
|
-
import { h as U, R as V, u as W, F as Z } from "./Combination-
|
|
6
|
-
import { u as q } from "./index-
|
|
7
|
-
import {
|
|
8
|
-
import { P as E } from "./index-
|
|
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
|
-
|
|
12
|
-
]), g =
|
|
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(
|
|
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(
|
|
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 {
|
|
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
|
|
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
|
|
49
|
+
function h(l) {
|
|
50
50
|
const i = A.useContext(P);
|
|
51
51
|
return l || i || "ltr";
|
|
52
52
|
}
|
|
53
53
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
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 {
|
|
4
|
-
import { u as R } from "./index-
|
|
5
|
-
import { D as Y, P as Z } from "./index-
|
|
6
|
-
import { R as z, h as J, u as Q, F as X } from "./Combination-
|
|
7
|
-
import { P as h } from "./index-
|
|
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,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-
|
|
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,
|
|
6
|
-
import { u as lt, c as at } from "./index-
|
|
7
|
-
import { P as it, D as dt } from "./index-
|
|
8
|
-
import { h as ut, u as pt, R as ft, F as mt } from "./Combination-
|
|
9
|
-
import { u as Ie } from "./index-
|
|
10
|
-
import {
|
|
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-
|
|
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,
|