@spear-ai/spectral 1.6.17 → 1.8.0
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/dist/.js +201 -200
- package/dist/Accordion.d.ts +13 -15
- package/dist/Accordion.js +184 -179
- package/dist/Alert/AlertBase.d.ts +7 -7
- package/dist/Alert/AlertBase.js +21 -21
- package/dist/Alert.d.ts +2 -2
- package/dist/Alert.js +31 -31
- package/dist/Avatar.d.ts +2 -2
- package/dist/Avatar.js +30 -22
- package/dist/Badge.d.ts +1 -1
- package/dist/Badge.js +3 -2
- package/dist/Button.d.ts +3 -3
- package/dist/Button.js +108 -46
- package/dist/ButtonGroup/ButtonGroupButton.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroupButton.js +5 -5
- package/dist/ButtonGroup.d.ts +5 -5
- package/dist/ButtonGroup.js +21 -21
- package/dist/ButtonIcon.d.ts +2 -2
- package/dist/ButtonIcon.js +30 -31
- package/dist/Checkbox/CheckboxBase.d.ts +2 -2
- package/dist/Checkbox/CheckboxBase.js +50 -57
- package/dist/Checkbox.js +15 -19
- package/dist/DataCard/Card.d.ts +1 -1
- package/dist/DataCard/Card.js +1 -1
- package/dist/DataCard.js +1 -1
- package/dist/DateTimePicker/Calendar.d.ts +4 -4
- package/dist/DateTimePicker/Calendar.js +3 -3
- package/dist/DateTimePicker/DateTimeDisplayInput.js +126 -136
- package/dist/DateTimePicker/DateTimeInput.js +4 -4
- package/dist/DateTimePicker/DateTimeUtils.d.ts +31 -31
- package/dist/DateTimePicker/DateTimeUtils.js +139 -197
- package/dist/DateTimePicker/TimePicker.d.ts +4 -4
- package/dist/DateTimePicker/TimePicker.js +3 -3
- package/dist/DateTimePicker.d.ts +5 -5
- package/dist/DateTimePicker.js +90 -70
- package/dist/Dialog.d.ts +13 -13
- package/dist/Dialog.js +57 -84
- package/dist/Drawer.d.ts +2 -2
- package/dist/Drawer.js +8 -8
- package/dist/HoverCard.d.ts +6 -5
- package/dist/HoverCard.js +64 -64
- package/dist/Icons/PolygonIcon.d.ts +5 -0
- package/dist/Icons/PolygonIcon.js +40 -0
- package/dist/Icons/index.d.ts +1 -1
- package/dist/Icons.js +34 -34
- package/dist/IconsAnimated/PanelLeftCloseIcon.js +2 -2
- package/dist/IconsAnimated/PanelLeftOpenIcon.js +2 -2
- package/dist/Input/InputUtils.d.ts +2 -2
- package/dist/Input/InputUtils.js +4 -4
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +19 -19
- package/dist/InputOTP.d.ts +10 -10
- package/dist/InputOTP.js +114 -114
- package/dist/Kbd.d.ts +8 -5
- package/dist/Kbd.js +85 -20
- package/dist/Label.d.ts +4 -2
- package/dist/Label.js +3 -3
- package/dist/MultiSelect/MultiSelectBase.d.ts +1 -1
- package/dist/MultiSelect/MultiSelectBase.js +278 -202
- package/dist/MultiSelect.d.ts +6 -6
- package/dist/MultiSelect.js +9 -9
- package/dist/Popover.js +22 -237
- package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +11 -11
- package/dist/RadioButtonGroup/RadioButtonGroupBase.js +28 -28
- package/dist/RadioButtonGroup.d.ts +1 -1
- package/dist/RadioGroup.d.ts +15 -15
- package/dist/RadioGroup.js +253 -236
- package/dist/Select.d.ts +3 -1
- package/dist/Select.js +91 -88
- package/dist/Separator.js +4 -4
- package/dist/Skeleton.d.ts +1 -2
- package/dist/Skeleton.js +2 -4
- package/dist/Slider.d.ts +6 -6
- package/dist/Slider.js +78 -78
- package/dist/Switch/SwitchBase.d.ts +4 -4
- package/dist/Switch/SwitchBase.js +75 -111
- package/dist/Switch.d.ts +4 -4
- package/dist/Switch.js +122 -33
- package/dist/Tabs/TabsBase.js +39 -38
- package/dist/Tabs/tabsUtils.js +7 -7
- package/dist/Tabs.d.ts +0 -4
- package/dist/Tabs.js +62 -66
- package/dist/Textarea/TextareaUtils.d.ts +7 -7
- package/dist/Textarea/TextareaUtils.js +13 -13
- package/dist/Textarea.js +28 -18
- package/dist/Toast.d.ts +43 -0
- package/dist/Toast.js +883 -0
- package/dist/Toggle/ToggleBase.d.ts +4 -4
- package/dist/Toggle/ToggleBase.js +32 -33
- package/dist/Toggle.d.ts +1 -1
- package/dist/Toggle.js +7 -12
- package/dist/ToggleGroup/ToggleGroupBase.d.ts +5 -5
- package/dist/ToggleGroup/ToggleGroupBase.js +30 -30
- package/dist/ToggleGroup.d.ts +1 -1
- package/dist/ToggleGroup.js +27 -30
- package/dist/Tooltip.d.ts +1 -1
- package/dist/Tooltip.js +97 -97
- package/dist/Tray.d.ts +9 -9
- package/dist/Tray.js +71 -70
- package/dist/hooks/useAccordionAutoScroll.d.ts.map +1 -1
- package/dist/hooks/useAccordionAutoScroll.js +42 -39
- package/dist/hooks/useControllableState.d.ts +2 -2
- package/dist/hooks/useControllableState.d.ts.map +1 -1
- package/dist/hooks/useControllableState.js +2 -2
- package/dist/index-C12FUuIW.js +13 -0
- package/dist/{index-yU8jOTzS.js → index-CpovUAO-.js} +1 -1
- package/dist/{index-BdS7Ix8W.js → index-CqbPiOid.js} +1 -1
- package/dist/{index-B3UpsZ2x.js → index-CrjD9cAD.js} +1 -1
- package/dist/index-DEYs15GP.js +66 -0
- package/dist/index-DdFoGvON.js +146 -0
- package/dist/index-Q3N6lgwg.js +225 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/primitives/button.d.ts +1 -1
- package/dist/primitives/button.js +4 -4
- package/dist/primitives/input.d.ts.map +1 -1
- package/dist/primitives/input.js +8 -5
- package/dist/primitives/select.d.ts +12 -13
- package/dist/primitives/select.d.ts.map +1 -1
- package/dist/primitives/select.js +59 -88
- package/dist/primitives/slot.d.ts +5 -5
- package/dist/primitives/slot.d.ts.map +1 -1
- package/dist/primitives/slot.js +24 -33
- package/dist/primitives/textarea.d.ts.map +1 -1
- package/dist/primitives/textarea.js +4 -3
- package/dist/{proxy-Cukf-VVj.js → proxy-CgaCj1WQ.js} +7 -3
- package/dist/styles/base-colors.css +30 -30
- package/dist/styles/horizon/base-colors.css +30 -30
- package/dist/styles/horizon/colors.css +43 -13
- package/dist/styles/horizon/utilities.css +26 -3
- package/dist/styles/main.css +1 -1
- package/dist/styles/spectral.css +2 -2
- package/dist/styles/theme.css +99 -46
- package/dist/{use-animation-zNd5Nq85.js → use-animation-CR-SdV2l.js} +1 -1
- package/dist/utils/formFieldUtils.d.ts +2 -2
- package/dist/utils/formFieldUtils.d.ts.map +1 -1
- package/dist/utils/formFieldUtils.js +14 -11
- package/dist/utils/sharedUtils.d.ts +3 -3
- package/dist/utils/sharedUtils.d.ts.map +1 -1
- package/dist/utils/sharedUtils.js +1 -4
- package/dist/utils/twUtils.d.ts +1 -1
- package/dist/utils/twUtils.d.ts.map +1 -1
- package/dist/utils/twUtils.js +1 -4
- package/package.json +6 -1
- package/dist/Icons/LineToolIcon2.d.ts +0 -5
- package/dist/Icons/LineToolIcon2.js +0 -49
- package/dist/createLucideIcon-D4r5Phnh.js +0 -70
- package/dist/index-CeP1E2kK.js +0 -209
- package/dist/index-Dy-Hzr7y.js +0 -13
package/dist/Select.d.ts
CHANGED
|
@@ -18,13 +18,15 @@ export interface SelectProps extends Omit<ComponentPropsWithoutRef<'button'>, 'v
|
|
|
18
18
|
export interface SelectExtendedProps extends SelectProps {
|
|
19
19
|
align?: Align;
|
|
20
20
|
alignOffset?: number;
|
|
21
|
+
avoidCollisions?: boolean;
|
|
22
|
+
collisionBoundary?: Element | Element[] | null;
|
|
21
23
|
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
22
24
|
position?: 'popper' | 'item-aligned';
|
|
23
25
|
side?: Side;
|
|
24
26
|
sideOffset?: number;
|
|
25
27
|
}
|
|
26
28
|
export declare const Select: {
|
|
27
|
-
({
|
|
29
|
+
({ align, alignOffset, avoidCollisions, className, collisionBoundary, collisionPadding, defaultValue, emptyMessage, errorMessage, id, label, labelClassName, loadingMessage, name, onChange, options, placeholder, position, ref, side, sideOffset, state, value, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, ...props }: SelectExtendedProps & {
|
|
28
30
|
ref?: Ref<HTMLButtonElement>;
|
|
29
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
30
32
|
displayName: string;
|
package/dist/Select.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
|
-
import { jsxs as r, jsx as t, Fragment as
|
|
3
|
+
import { jsxs as r, jsx as t, Fragment as w } from "react/jsx-runtime";
|
|
4
4
|
import "./Icons/AnalyzeIcon.js";
|
|
5
5
|
import "./Icons/AnnotationsIcon.js";
|
|
6
6
|
import "./Icons/ApprovedIcon.js";
|
|
@@ -9,8 +9,8 @@ import "./Icons/ArrowUpIcon.js";
|
|
|
9
9
|
import "./Icons/CalendarIcon.js";
|
|
10
10
|
import "./Icons/CheckCircleIcon.js";
|
|
11
11
|
import "./Icons/CheckSquareIcon.js";
|
|
12
|
-
import { CheckmarkIcon as
|
|
13
|
-
import { ChevronDownIcon as
|
|
12
|
+
import { CheckmarkIcon as X } from "./Icons/CheckmarkIcon.js";
|
|
13
|
+
import { ChevronDownIcon as p } from "./Icons/ChevronDownIcon.js";
|
|
14
14
|
import "./Icons/ChevronUpIcon.js";
|
|
15
15
|
import "./Icons/ClockIcon.js";
|
|
16
16
|
import "./Icons/CloseCircleIcon.js";
|
|
@@ -34,9 +34,8 @@ import "./Icons/KeyboardIcon.js";
|
|
|
34
34
|
import "./Icons/LabelIcon.js";
|
|
35
35
|
import "./Icons/LassoIcon.js";
|
|
36
36
|
import "./Icons/LineToolIcon.js";
|
|
37
|
-
import "./Icons/LineToolIcon2.js";
|
|
38
37
|
import "./Icons/LiveViewIcon.js";
|
|
39
|
-
import { LoaderIcon as
|
|
38
|
+
import { LoaderIcon as Y } from "./Icons/LoaderIcon.js";
|
|
40
39
|
import "./Icons/LocationIcon.js";
|
|
41
40
|
import "./Icons/LogoutIcon.js";
|
|
42
41
|
import "./Icons/MeasureIcon.js";
|
|
@@ -48,6 +47,7 @@ import "./Icons/PanelIconClose.js";
|
|
|
48
47
|
import "./Icons/PanelIconOpen.js";
|
|
49
48
|
import "./Icons/PlayIcon.js";
|
|
50
49
|
import "./Icons/PlusIcon.js";
|
|
50
|
+
import "./Icons/PolygonIcon.js";
|
|
51
51
|
import "./Icons/ResetIcon.js";
|
|
52
52
|
import "./Icons/ReviewedIcon.js";
|
|
53
53
|
import "./Icons/ScissorsIcon.js";
|
|
@@ -67,118 +67,121 @@ import "./Icons/WarningIcon.js";
|
|
|
67
67
|
import "./Icons/ZoomAllIcon.js";
|
|
68
68
|
import "./Icons/ZoomXIcon.js";
|
|
69
69
|
import "./Icons/ZoomYIcon.js";
|
|
70
|
-
import { Label as
|
|
71
|
-
import { R as
|
|
72
|
-
import { useFormFieldId as
|
|
73
|
-
import { cn as
|
|
74
|
-
import { useState as
|
|
75
|
-
const
|
|
76
|
-
ref: w,
|
|
70
|
+
import { Label as I } from "./Label.js";
|
|
71
|
+
import { R as Z, T as _, V as $, I as tt, C as et, S as rt, a as at, b as it, c as C, G as st, d as ot, e as lt, f as dt } from "./index-CpovUAO-.js";
|
|
72
|
+
import { useFormFieldId as mt, useFormFieldState as ct, getAriaProps as pt, groupOptions as nt, getFormFieldCSSProperties as ut, getStateClasses as gt, getTriggerClasses as ft, ErrorMessage as ht, getErrorMessageId as bt, LoadingState as xt, EmptyState as yt, getOptionClasses as Nt } from "./utils/formFieldUtils.js";
|
|
73
|
+
import { cn as a } from "./utils/twUtils.js";
|
|
74
|
+
import { useState as St } from "react";
|
|
75
|
+
const vt = ({
|
|
77
76
|
align: z = "start",
|
|
78
77
|
alignOffset: F = 0,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
avoidCollisions: O = !0,
|
|
79
|
+
className: j,
|
|
80
|
+
collisionBoundary: k,
|
|
81
|
+
collisionPadding: L = 10,
|
|
82
|
+
defaultValue: T,
|
|
83
|
+
emptyMessage: V = "No options found",
|
|
84
|
+
errorMessage: n,
|
|
85
|
+
id: q,
|
|
85
86
|
label: l,
|
|
86
|
-
labelClassName:
|
|
87
|
-
loadingMessage:
|
|
88
|
-
name:
|
|
89
|
-
onChange:
|
|
90
|
-
options:
|
|
91
|
-
placeholder:
|
|
92
|
-
position:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"aria-
|
|
99
|
-
|
|
87
|
+
labelClassName: u,
|
|
88
|
+
loadingMessage: D = "Loading…",
|
|
89
|
+
name: g,
|
|
90
|
+
onChange: E,
|
|
91
|
+
options: f = [],
|
|
92
|
+
placeholder: P = "Select an option",
|
|
93
|
+
position: d = "popper",
|
|
94
|
+
ref: B,
|
|
95
|
+
side: G = "bottom",
|
|
96
|
+
sideOffset: M = 4,
|
|
97
|
+
state: i = "default",
|
|
98
|
+
value: h,
|
|
99
|
+
"aria-label": R,
|
|
100
|
+
"aria-describedby": A,
|
|
101
|
+
...s
|
|
100
102
|
}) => {
|
|
101
|
-
const [b,
|
|
102
|
-
if (
|
|
103
|
-
return /* @__PURE__ */ t(
|
|
104
|
-
if (
|
|
105
|
-
return /* @__PURE__ */ t(
|
|
103
|
+
const [b, U] = St(!1), o = mt(q, g), x = bt(o), { isDisabled: m, isLoading: y, isInvalid: H } = ct(s.disabled, i), J = pt(i, A, s.required, x), { groups: N, ungrouped: S } = nt(f), K = () => {
|
|
104
|
+
if (y)
|
|
105
|
+
return /* @__PURE__ */ t(xt, { "data-testid": "spectral-select-loading", message: D });
|
|
106
|
+
if (f.length === 0)
|
|
107
|
+
return /* @__PURE__ */ t(yt, { "data-testid": "spectral-select-empty", message: V });
|
|
106
108
|
const v = (e) => {
|
|
107
|
-
const
|
|
108
|
-
return /* @__PURE__ */ r(
|
|
109
|
-
/* @__PURE__ */ t(
|
|
110
|
-
/* @__PURE__ */ t(
|
|
109
|
+
const c = h === e.value;
|
|
110
|
+
return /* @__PURE__ */ r(ot, { className: a(Nt(!!e.disabled, !1, c), "relative flex w-full cursor-pointer items-center"), "data-testid": "spectral-select-item", disabled: e.disabled, value: e.value, children: [
|
|
111
|
+
/* @__PURE__ */ t(lt, { "data-testid": "spectral-select-item-text", className: "block truncate", children: e.label }),
|
|
112
|
+
/* @__PURE__ */ t(dt, { "data-testid": "spectral-select-item-selected-indicator", asChild: !0, children: /* @__PURE__ */ t("span", { className: "absolute right-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ t(X, { size: 16 }) }) })
|
|
111
113
|
] }, e.value);
|
|
112
114
|
};
|
|
113
|
-
return /* @__PURE__ */ r(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Object.keys(
|
|
115
|
+
return /* @__PURE__ */ r(w, { children: [
|
|
116
|
+
S.length > 0 && /* @__PURE__ */ r(w, { children: [
|
|
117
|
+
S.map(v),
|
|
118
|
+
Object.keys(N).length > 0 && /* @__PURE__ */ t(C, { className: "bg-border-secondary -mx-1 my-1 h-px", "data-testid": "spectral-select-separator" })
|
|
117
119
|
] }),
|
|
118
|
-
Object.entries(
|
|
119
|
-
|
|
120
|
-
/* @__PURE__ */ t(
|
|
121
|
-
|
|
120
|
+
Object.entries(N).map(([e, c], Q) => /* @__PURE__ */ r(st, { "data-testid": "spectral-select-group", children: [
|
|
121
|
+
Q > 0 && /* @__PURE__ */ t(C, { className: "bg-border-secondary -mx-1 my-1 h-px", "data-testid": "spectral-select-group-separator" }),
|
|
122
|
+
/* @__PURE__ */ t(I, { className: a("text-text-primary px-2 py-1.5 text-base font-semibold", u), "data-testid": "spectral-select-group-label", children: e }),
|
|
123
|
+
c.map((W) => v(W))
|
|
122
124
|
] }, e))
|
|
123
125
|
] });
|
|
124
126
|
};
|
|
125
127
|
return /* @__PURE__ */ r("div", { className: "w-full", children: [
|
|
126
|
-
l && /* @__PURE__ */ t(
|
|
127
|
-
/* @__PURE__ */ r(
|
|
128
|
+
l && /* @__PURE__ */ t(I, { className: a("text-text-primary mb-2 block", u, m && "text-text-secondary"), "data-testid": "spectral-select-label", htmlFor: o, children: l }),
|
|
129
|
+
/* @__PURE__ */ r(Z, { "data-testid": "spectral-select", defaultValue: T, disabled: m, name: g, onOpenChange: U, onValueChange: E, open: b, required: s.required, value: h, children: [
|
|
128
130
|
/* @__PURE__ */ t(
|
|
129
|
-
|
|
131
|
+
_,
|
|
130
132
|
{
|
|
131
|
-
"aria-controls":
|
|
133
|
+
"aria-controls": o,
|
|
132
134
|
"aria-expanded": b,
|
|
133
|
-
"aria-label":
|
|
135
|
+
"aria-label": R ?? l,
|
|
134
136
|
asChild: !0,
|
|
135
|
-
className:
|
|
137
|
+
className: a(ft(!1, i), gt(i), j),
|
|
136
138
|
"data-slot": "select-trigger",
|
|
137
|
-
"data-state":
|
|
139
|
+
"data-state": i,
|
|
138
140
|
"data-testid": "spectral-select-trigger",
|
|
139
|
-
id:
|
|
140
|
-
ref:
|
|
141
|
+
id: o,
|
|
142
|
+
ref: B,
|
|
141
143
|
role: "combobox",
|
|
142
|
-
style:
|
|
143
|
-
...
|
|
144
|
-
...
|
|
145
|
-
children: /* @__PURE__ */ r("button", { type: "button", disabled:
|
|
146
|
-
/* @__PURE__ */ t(
|
|
147
|
-
/* @__PURE__ */ t(
|
|
144
|
+
style: ut(),
|
|
145
|
+
...J,
|
|
146
|
+
...s,
|
|
147
|
+
children: /* @__PURE__ */ r("button", { type: "button", disabled: m, children: [
|
|
148
|
+
/* @__PURE__ */ t($, { className: "block truncate", "data-testid": "spectral-select-value", placeholder: P }),
|
|
149
|
+
/* @__PURE__ */ t(tt, { asChild: !0, children: /* @__PURE__ */ t("div", { className: "flex items-center", children: y ? /* @__PURE__ */ t(Y, { size: 20 }) : /* @__PURE__ */ t(p, { className: "transition-transform duration-200 data-[state=open]:rotate-180", size: 20 }) }) })
|
|
148
150
|
] })
|
|
149
151
|
}
|
|
150
152
|
),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
153
|
+
/* @__PURE__ */ r(
|
|
154
|
+
et,
|
|
153
155
|
{
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"data-[state=
|
|
159
|
-
"data-[
|
|
160
|
-
"data-[side=
|
|
161
|
-
"
|
|
162
|
-
"data-[side=
|
|
156
|
+
align: z,
|
|
157
|
+
alignOffset: F,
|
|
158
|
+
avoidCollisions: O,
|
|
159
|
+
className: a(
|
|
160
|
+
"border-input-border bg-input-bg motion-safe:data-[state=open]:animate-in motion-safe:data-[state=closed]:animate-out relative z-50 rounded-lg border shadow-md",
|
|
161
|
+
"motion-safe:data-[state=closed]:fade-out-0 motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95",
|
|
162
|
+
"motion-safe:data-[side=bottom]:slide-in-from-top-2 motion-safe:data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-select-content-available-height)",
|
|
163
|
+
"min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto",
|
|
164
|
+
d === "popper" && "data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1"
|
|
163
165
|
),
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
collisionBoundary: k,
|
|
167
|
+
collisionPadding: L,
|
|
168
|
+
"data-slot": "select-content",
|
|
169
|
+
"data-testid": "spectral-select-content",
|
|
170
|
+
position: d,
|
|
171
|
+
side: G,
|
|
172
|
+
sideOffset: M,
|
|
170
173
|
children: [
|
|
171
|
-
/* @__PURE__ */ t(
|
|
172
|
-
/* @__PURE__ */ t(
|
|
173
|
-
/* @__PURE__ */ t(
|
|
174
|
+
/* @__PURE__ */ t(rt, { className: "flex cursor-default items-center justify-center py-1", "data-testid": "spectral-select-scroll-up-button", children: /* @__PURE__ */ t(p, { "aria-hidden": "true", className: "rotate-180", size: 18 }) }),
|
|
175
|
+
/* @__PURE__ */ t(at, { asChild: !0, children: /* @__PURE__ */ t("div", { className: a("p-1", d === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"), "data-testid": "spectral-select-items", children: K() }) }),
|
|
176
|
+
/* @__PURE__ */ t(it, { className: "flex cursor-default items-center justify-center py-1", "data-testid": "spectral-select-scroll-down-button", children: /* @__PURE__ */ t(p, { "aria-hidden": "true", size: 18 }) })
|
|
174
177
|
]
|
|
175
178
|
}
|
|
176
|
-
)
|
|
179
|
+
)
|
|
177
180
|
] }),
|
|
178
|
-
|
|
181
|
+
H && n && /* @__PURE__ */ t(ht, { "data-testid": "spectral-select-error-message", id: x, message: n })
|
|
179
182
|
] });
|
|
180
183
|
};
|
|
181
|
-
|
|
184
|
+
vt.displayName = "Select";
|
|
182
185
|
export {
|
|
183
|
-
|
|
186
|
+
vt as Select
|
|
184
187
|
};
|
package/dist/Separator.js
CHANGED
|
@@ -5,13 +5,13 @@ import "react";
|
|
|
5
5
|
const l = ({ className: o, decorative: r = !0, orientation: a = "horizontal", ref: t, ...i }) => /* @__PURE__ */ p(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
|
-
ref: t,
|
|
9
|
-
"data-slot": "separator",
|
|
10
|
-
"data-orientation": a,
|
|
11
|
-
role: r ? "none" : "separator",
|
|
12
8
|
"aria-hidden": r ? "true" : void 0,
|
|
13
9
|
"aria-orientation": r ? void 0 : a,
|
|
14
10
|
className: e("bg-border shrink-0", a === "horizontal" ? "h-px w-full" : "h-full w-px", o),
|
|
11
|
+
"data-orientation": a,
|
|
12
|
+
"data-slot": "separator",
|
|
13
|
+
role: r ? "none" : "separator",
|
|
14
|
+
ref: t,
|
|
15
15
|
...i
|
|
16
16
|
}
|
|
17
17
|
);
|
package/dist/Skeleton.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
declare
|
|
3
|
-
export { Skeleton };
|
|
2
|
+
export declare const Skeleton: ({ className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
//# sourceMappingURL=Skeleton.d.ts.map
|
package/dist/Skeleton.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import "./styles/main.css";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { cn as r } from "./utils/twUtils.js";
|
|
4
4
|
import "react";
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ o("div", { "data-slot": "skeleton", className: r("bg-level-three animate-pulse rounded-md", e), ...t });
|
|
7
|
-
}
|
|
5
|
+
const a = ({ className: e, ...o }) => /* @__PURE__ */ t("div", { "data-slot": "skeleton", className: r("bg-level-three rounded-md motion-safe:animate-pulse", e), ...o });
|
|
8
6
|
export {
|
|
9
7
|
a as Skeleton
|
|
10
8
|
};
|
package/dist/Slider.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type SliderLabelPosition = 'end' | 'both';
|
|
3
3
|
export type SliderInputPosition = 'start' | 'both';
|
|
4
|
-
export
|
|
5
|
-
values: number[];
|
|
6
|
-
min: number;
|
|
4
|
+
export interface SliderLabelRenderProps {
|
|
7
5
|
max: number;
|
|
6
|
+
min: number;
|
|
8
7
|
position: 'start' | 'end';
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
values: number[];
|
|
9
|
+
}
|
|
10
|
+
export interface SliderProps {
|
|
11
11
|
accessibleName?: string;
|
|
12
12
|
className?: string;
|
|
13
13
|
defaultValue?: number[];
|
|
@@ -24,6 +24,6 @@ export type SliderProps = {
|
|
|
24
24
|
orientation?: 'horizontal' | 'vertical';
|
|
25
25
|
step?: number;
|
|
26
26
|
value?: number[];
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
28
|
export declare const Slider: ({ accessibleName, className, defaultValue, disabled, inputPosition, label, labelPosition, max, min, minStepsBetweenThumbs, name, onValueChange, onValueCommit, orientation, step, value }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
//# sourceMappingURL=Slider.d.ts.map
|