@spear-ai/spectral 1.4.6 → 1.4.8
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 +142 -138
- package/dist/Accordion.js +2 -0
- package/dist/Alert.js +4 -2
- package/dist/Button.d.ts +11 -11
- package/dist/Button.js +18 -20
- package/dist/ButtonIcon.js +2 -0
- package/dist/Checkbox.js +2 -0
- package/dist/Icons/ArrowDownIcon.d.ts +3 -0
- package/dist/Icons/ArrowDownIcon.js +10 -0
- package/dist/Icons/ArrowUpIcon.d.ts +3 -0
- package/dist/Icons/ArrowUpIcon.js +10 -0
- package/dist/Icons/index.d.ts +2 -0
- package/dist/Icons.js +112 -108
- package/dist/Input.js +2 -0
- package/dist/InputOTP.js +4 -2
- package/dist/MultiSelect/MultiSelectBase.js +38 -36
- package/dist/Select.js +2 -0
- package/dist/Textarea.js +2 -0
- package/dist/Tray.js +2 -0
- package/dist/primitives/select.js +18 -16
- package/dist/styles/main.css +1 -1
- package/package.json +1 -1
package/dist/.js
CHANGED
|
@@ -8,10 +8,10 @@ import { ButtonIcon as s } from "./ButtonIcon.js";
|
|
|
8
8
|
import { Card as g, CardContent as T, CardHeader as S, CardHeaderEndSlot as G, CardTitle as v } from "./Card.js";
|
|
9
9
|
import { Checkbox as B } from "./Checkbox.js";
|
|
10
10
|
import { Dialog as h } from "./Dialog.js";
|
|
11
|
-
import { Drawer as
|
|
12
|
-
import { HoverCard as
|
|
13
|
-
import { Input as
|
|
14
|
-
import { InputGroup as O, InputGroupAddon as
|
|
11
|
+
import { Drawer as P } from "./Drawer.js";
|
|
12
|
+
import { HoverCard as w, HoverCardContent as b, HoverCardTrigger as y } from "./HoverCard.js";
|
|
13
|
+
import { Input as H } from "./Input.js";
|
|
14
|
+
import { InputGroup as O, InputGroupAddon as U, InputGroupButton as M, InputGroupInput as Z, InputGroupText as q, InputGroupTextarea as z } from "./InputGroup.js";
|
|
15
15
|
import { InputOTP as V } from "./InputOTP.js";
|
|
16
16
|
import { Label as X } from "./Label.js";
|
|
17
17
|
import { Popover as j, PopoverContent as J, PopoverTrigger as K } from "./Popover.js";
|
|
@@ -27,75 +27,79 @@ import { Textarea as so } from "./Textarea.js";
|
|
|
27
27
|
import { Toggle as go } from "./Toggle.js";
|
|
28
28
|
import { ToggleGroup as So, ToggleGroupItem as Go } from "./ToggleGroup.js";
|
|
29
29
|
import { Tooltip as Ao, TooltipContent as Bo, TooltipTrigger as Lo } from "./Tooltip.js";
|
|
30
|
-
import { Tray as
|
|
31
|
-
import { AnalyzeIcon as
|
|
32
|
-
import { AnnotationsIcon as
|
|
33
|
-
import { ApprovedIcon as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
30
|
+
import { Tray as Do } from "./Tray.js";
|
|
31
|
+
import { AnalyzeIcon as ko } from "./Icons/AnalyzeIcon.js";
|
|
32
|
+
import { AnnotationsIcon as bo } from "./Icons/AnnotationsIcon.js";
|
|
33
|
+
import { ApprovedIcon as Eo } from "./Icons/ApprovedIcon.js";
|
|
34
|
+
import { ArrowDownIcon as Ro } from "./Icons/ArrowDownIcon.js";
|
|
35
|
+
import { ArrowUpIcon as Uo } from "./Icons/ArrowUpIcon.js";
|
|
36
|
+
import { CalendarIcon as Zo } from "./Icons/CalendarIcon.js";
|
|
37
|
+
import { CheckCircleIcon as zo } from "./Icons/CheckCircleIcon.js";
|
|
38
|
+
import { CheckSquareIcon as Vo } from "./Icons/CheckSquareIcon.js";
|
|
39
|
+
import { CheckmarkIcon as Xo } from "./Icons/CheckmarkIcon.js";
|
|
40
|
+
import { ChevronDownIcon as jo } from "./Icons/ChevronDownIcon.js";
|
|
41
|
+
import { ChevronUpIcon as Ko } from "./Icons/ChevronUpIcon.js";
|
|
42
|
+
import { ClockIcon as Qo } from "./Icons/ClockIcon.js";
|
|
43
|
+
import { CloseCircleIcon as $o } from "./Icons/CloseCircleIcon.js";
|
|
44
|
+
import { CloseIcon as rr } from "./Icons/CloseIcon.js";
|
|
45
|
+
import { DashboardIcon as tr } from "./Icons/DashboardIcon.js";
|
|
46
|
+
import { DatabaseIcon as nr } from "./Icons/DatabaseIcon.js";
|
|
47
|
+
import { DeleteIcon as xr } from "./Icons/DeleteIcon.js";
|
|
48
|
+
import { DurationIcon as cr } from "./Icons/DurationIcon.js";
|
|
49
|
+
import { EmailIcon as ar } from "./Icons/EmailIcon.js";
|
|
50
|
+
import { EraserIcon as ur } from "./Icons/EraserIcon.js";
|
|
51
|
+
import { ErrorIcon as dr } from "./Icons/ErrorIcon.js";
|
|
52
|
+
import { EyeClosedIcon as Cr } from "./Icons/EyeClosedIcon.js";
|
|
53
|
+
import { EyeClosedIcon2 as Tr } from "./Icons/EyeClosedIcon2.js";
|
|
54
|
+
import { EyeOpenIcon as Gr } from "./Icons/EyeOpenIcon.js";
|
|
55
|
+
import { GoToFirstIcon as Ar } from "./Icons/GoToFirstIcon.js";
|
|
56
|
+
import { GoToLastIcon as Lr } from "./Icons/GoToLastIcon.js";
|
|
57
|
+
import { HarmonicCursorsIcon as Dr } from "./Icons/HarmonicCursorsIcon.js";
|
|
58
|
+
import { InfoIcon as kr } from "./Icons/InfoIcon.js";
|
|
59
|
+
import { LabelIcon as br } from "./Icons/LabelIcon.js";
|
|
60
|
+
import { LassoIcon as Er } from "./Icons/LassoIcon.js";
|
|
61
|
+
import { LineToolIcon as Rr } from "./Icons/LineToolIcon.js";
|
|
62
|
+
import { LineToolIcon2 as Ur } from "./Icons/LineToolIcon2.js";
|
|
63
|
+
import { LiveViewIcon as Zr } from "./Icons/LiveViewIcon.js";
|
|
64
|
+
import { LoaderIcon as zr } from "./Icons/LoaderIcon.js";
|
|
65
|
+
import { LocationIcon as Vr } from "./Icons/LocationIcon.js";
|
|
66
|
+
import { LogoutIcon as Xr } from "./Icons/LogoutIcon.js";
|
|
67
|
+
import { MessagesIcon as jr } from "./Icons/MessagesIcon.js";
|
|
68
|
+
import { MetadataIcon as Kr } from "./Icons/MetadataIcon.js";
|
|
69
|
+
import { MinusIcon as Qr } from "./Icons/MinusIcon.js";
|
|
70
|
+
import { OntologyIcon as $r } from "./Icons/OntologyIcon.js";
|
|
71
|
+
import { PanelIconClose as re } from "./Icons/PanelIconClose.js";
|
|
72
|
+
import { PanelIconOpen as te } from "./Icons/PanelIconOpen.js";
|
|
73
|
+
import { PlayIcon as ne } from "./Icons/PlayIcon.js";
|
|
74
|
+
import { PlusIcon as xe } from "./Icons/PlusIcon.js";
|
|
75
|
+
import { ResetIcon as ce } from "./Icons/ResetIcon.js";
|
|
76
|
+
import { ReviewedIcon as ae } from "./Icons/ReviewedIcon.js";
|
|
77
|
+
import { ScissorsIcon as ue } from "./Icons/ScissorsIcon.js";
|
|
78
|
+
import { SettingsIcon as de } from "./Icons/SettingsIcon.js";
|
|
79
|
+
import { SortAscendingIcon as Ce } from "./Icons/SortAscendingIcon.js";
|
|
80
|
+
import { SortDescendingIcon as Te } from "./Icons/SortDescendingIcon.js";
|
|
81
|
+
import { StackIcon as Ge } from "./Icons/StackIcon.js";
|
|
82
|
+
import { StarIcon as Ae } from "./Icons/StarIcon.js";
|
|
83
|
+
import { TrashIcon as Le } from "./Icons/TrashIcon.js";
|
|
84
|
+
import { UndoIcon as De } from "./Icons/UndoIcon.js";
|
|
85
|
+
import { UserIcon as ke } from "./Icons/UserIcon.js";
|
|
86
|
+
import { WarningIcon as be } from "./Icons/WarningIcon.js";
|
|
87
|
+
import { ZoomAllIcon as Ee } from "./Icons/ZoomAllIcon.js";
|
|
88
|
+
import { ZoomXIcon as Re } from "./Icons/ZoomXIcon.js";
|
|
89
|
+
import { ZoomYIcon as Ue } from "./Icons/ZoomYIcon.js";
|
|
90
|
+
import { default as Ze, SvgIdContext as qe } from "./Icons/IconBase.js";
|
|
91
|
+
import { useAccordionAutoScroll as Fe } from "./hooks/useAccordionAutoScroll.js";
|
|
92
|
+
import { useControllableState as We } from "./hooks/useControllableState.js";
|
|
93
|
+
import { cn as Ye } from "./utils/twUtils.js";
|
|
94
|
+
import { SpectralProvider as Je } from "./SpectralProvider.js";
|
|
93
95
|
export {
|
|
94
96
|
e as Accordion,
|
|
95
97
|
p as Alert,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
ko as AnalyzeIcon,
|
|
99
|
+
bo as AnnotationsIcon,
|
|
100
|
+
Eo as ApprovedIcon,
|
|
101
|
+
Ro as ArrowDownIcon,
|
|
102
|
+
Uo as ArrowUpIcon,
|
|
99
103
|
m as Avatar,
|
|
100
104
|
f as Badge,
|
|
101
105
|
I as Button,
|
|
@@ -103,66 +107,66 @@ export {
|
|
|
103
107
|
u as ButtonGroupItem,
|
|
104
108
|
i as ButtonGroupSeparator,
|
|
105
109
|
s as ButtonIcon,
|
|
106
|
-
|
|
110
|
+
Zo as CalendarIcon,
|
|
107
111
|
g as Card,
|
|
108
112
|
T as CardContent,
|
|
109
113
|
S as CardHeader,
|
|
110
114
|
G as CardHeaderEndSlot,
|
|
111
115
|
v as CardTitle,
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
zo as CheckCircleIcon,
|
|
117
|
+
Vo as CheckSquareIcon,
|
|
114
118
|
B as Checkbox,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
Xo as CheckmarkIcon,
|
|
120
|
+
jo as ChevronDownIcon,
|
|
121
|
+
Ko as ChevronUpIcon,
|
|
122
|
+
Qo as ClockIcon,
|
|
123
|
+
$o as CloseCircleIcon,
|
|
124
|
+
rr as CloseIcon,
|
|
125
|
+
tr as DashboardIcon,
|
|
126
|
+
nr as DatabaseIcon,
|
|
127
|
+
xr as DeleteIcon,
|
|
124
128
|
h as Dialog,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
129
|
+
P as Drawer,
|
|
130
|
+
cr as DurationIcon,
|
|
131
|
+
ar as EmailIcon,
|
|
132
|
+
ur as EraserIcon,
|
|
133
|
+
dr as ErrorIcon,
|
|
134
|
+
Cr as EyeClosedIcon,
|
|
135
|
+
Tr as EyeClosedIcon2,
|
|
136
|
+
Gr as EyeOpenIcon,
|
|
137
|
+
Ar as GoToFirstIcon,
|
|
138
|
+
Lr as GoToLastIcon,
|
|
139
|
+
Dr as HarmonicCursorsIcon,
|
|
140
|
+
w as HoverCard,
|
|
141
|
+
b as HoverCardContent,
|
|
142
|
+
y as HoverCardTrigger,
|
|
143
|
+
Ze as IconBase,
|
|
144
|
+
kr as InfoIcon,
|
|
145
|
+
H as Input,
|
|
142
146
|
O as InputGroup,
|
|
143
|
-
|
|
144
|
-
|
|
147
|
+
U as InputGroupAddon,
|
|
148
|
+
M as InputGroupButton,
|
|
145
149
|
Z as InputGroupInput,
|
|
146
150
|
q as InputGroupText,
|
|
147
151
|
z as InputGroupTextarea,
|
|
148
152
|
V as InputOTP,
|
|
149
153
|
X as Label,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
154
|
+
br as LabelIcon,
|
|
155
|
+
Er as LassoIcon,
|
|
156
|
+
Rr as LineToolIcon,
|
|
157
|
+
Ur as LineToolIcon2,
|
|
158
|
+
Zr as LiveViewIcon,
|
|
159
|
+
zr as LoaderIcon,
|
|
160
|
+
Vr as LocationIcon,
|
|
161
|
+
Xr as LogoutIcon,
|
|
162
|
+
jr as MessagesIcon,
|
|
163
|
+
Kr as MetadataIcon,
|
|
164
|
+
Qr as MinusIcon,
|
|
165
|
+
$r as OntologyIcon,
|
|
166
|
+
re as PanelIconClose,
|
|
167
|
+
te as PanelIconOpen,
|
|
168
|
+
ne as PlayIcon,
|
|
169
|
+
xe as PlusIcon,
|
|
166
170
|
j as Popover,
|
|
167
171
|
J as PopoverContent,
|
|
168
172
|
K as PopoverTrigger,
|
|
@@ -170,20 +174,20 @@ export {
|
|
|
170
174
|
_ as RadioButtonGroupItem,
|
|
171
175
|
oo as RadioGroup,
|
|
172
176
|
ro as RadioGroupItem,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
177
|
+
ce as ResetIcon,
|
|
178
|
+
ae as ReviewedIcon,
|
|
179
|
+
ue as ScissorsIcon,
|
|
176
180
|
to as Select,
|
|
177
181
|
no as Separator,
|
|
178
|
-
|
|
182
|
+
de as SettingsIcon,
|
|
179
183
|
xo as Skeleton,
|
|
180
184
|
co as Slider,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
Ce as SortAscendingIcon,
|
|
186
|
+
Te as SortDescendingIcon,
|
|
187
|
+
Je as SpectralProvider,
|
|
188
|
+
Ge as StackIcon,
|
|
189
|
+
Ae as StarIcon,
|
|
190
|
+
qe as SvgIdContext,
|
|
187
191
|
ao as Switch,
|
|
188
192
|
uo as Tabs,
|
|
189
193
|
so as Textarea,
|
|
@@ -193,15 +197,15 @@ export {
|
|
|
193
197
|
Ao as Tooltip,
|
|
194
198
|
Bo as TooltipContent,
|
|
195
199
|
Lo as TooltipTrigger,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
200
|
+
Le as TrashIcon,
|
|
201
|
+
Do as Tray,
|
|
202
|
+
De as UndoIcon,
|
|
203
|
+
ke as UserIcon,
|
|
204
|
+
be as WarningIcon,
|
|
205
|
+
Ee as ZoomAllIcon,
|
|
206
|
+
Re as ZoomXIcon,
|
|
207
|
+
Ue as ZoomYIcon,
|
|
208
|
+
Ye as cn,
|
|
209
|
+
Fe as useAccordionAutoScroll,
|
|
210
|
+
We as useControllableState
|
|
207
211
|
};
|
package/dist/Accordion.js
CHANGED
|
@@ -4,6 +4,8 @@ import { jsx as i, jsxs as F } from "react/jsx-runtime";
|
|
|
4
4
|
import "./Icons/AnalyzeIcon.js";
|
|
5
5
|
import "./Icons/AnnotationsIcon.js";
|
|
6
6
|
import "./Icons/ApprovedIcon.js";
|
|
7
|
+
import "./Icons/ArrowDownIcon.js";
|
|
8
|
+
import "./Icons/ArrowUpIcon.js";
|
|
7
9
|
import "./Icons/CalendarIcon.js";
|
|
8
10
|
import "./Icons/CheckCircleIcon.js";
|
|
9
11
|
import "./Icons/CheckSquareIcon.js";
|
package/dist/Alert.js
CHANGED
|
@@ -5,6 +5,8 @@ import { AlertPortal as y, AlertBase as h, AlertTitle as A, AlertDescription as
|
|
|
5
5
|
import "./Icons/AnalyzeIcon.js";
|
|
6
6
|
import "./Icons/AnnotationsIcon.js";
|
|
7
7
|
import "./Icons/ApprovedIcon.js";
|
|
8
|
+
import "./Icons/ArrowDownIcon.js";
|
|
9
|
+
import "./Icons/ArrowUpIcon.js";
|
|
8
10
|
import "./Icons/CalendarIcon.js";
|
|
9
11
|
import "./Icons/CheckCircleIcon.js";
|
|
10
12
|
import { CheckSquareIcon as w } from "./Icons/CheckSquareIcon.js";
|
|
@@ -61,7 +63,7 @@ import "./Icons/ZoomXIcon.js";
|
|
|
61
63
|
import "./Icons/ZoomYIcon.js";
|
|
62
64
|
import { cn as g } from "./utils/twUtils.js";
|
|
63
65
|
import { useRef as R, useEffect as T } from "react";
|
|
64
|
-
const
|
|
66
|
+
const qt = ({ id: n, description: s, onClose: a, icon: l, title: c, className: d, variant: r = "default" }) => {
|
|
65
67
|
const o = R(null), u = l || {
|
|
66
68
|
info: /* @__PURE__ */ t(E, {}),
|
|
67
69
|
success: /* @__PURE__ */ t(w, {}),
|
|
@@ -105,5 +107,5 @@ const Vt = ({ id: n, description: s, onClose: a, icon: l, title: c, className: d
|
|
|
105
107
|
] }) });
|
|
106
108
|
};
|
|
107
109
|
export {
|
|
108
|
-
|
|
110
|
+
qt as Alert
|
|
109
111
|
};
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ButtonHTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "secondary" | "outline" | "primary" | "ghost" |
|
|
5
|
-
size?: "default" | "fullWidth" | null | undefined;
|
|
4
|
+
variant?: "secondary" | "outline" | "primary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "small" | "default" | "fullWidth" | null | undefined;
|
|
6
6
|
state?: "default" | "error" | "loading" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, VariantProps<typeof buttonVariants> {
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
endIcon?: ReactNode;
|
|
11
|
+
errorMessage?: string | ReactNode;
|
|
12
12
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
dataTestId?: string;
|
|
14
|
+
label: string;
|
|
15
|
+
size?: 'small' | 'default' | 'fullWidth';
|
|
16
|
+
startIcon?: ReactNode;
|
|
17
|
+
state?: 'default' | 'error' | 'loading';
|
|
18
|
+
type?: 'button' | 'submit' | 'reset';
|
|
19
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'ghost';
|
|
20
20
|
}
|
|
21
21
|
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
export {};
|
package/dist/Button.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./styles/main.css";
|
|
3
3
|
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
4
|
-
import { ErrorMessage as
|
|
4
|
+
import { ErrorMessage as v } from "./utils/formFieldUtils.js";
|
|
5
5
|
import { cn as u } from "./utils/twUtils.js";
|
|
6
|
-
import { c as
|
|
7
|
-
import { forwardRef as
|
|
8
|
-
import { c as
|
|
9
|
-
const
|
|
6
|
+
import { c as f } from "./index-D29mdTf5.js";
|
|
7
|
+
import { forwardRef as h } from "react";
|
|
8
|
+
import { c as w } from "./createLucideIcon-D4r5Phnh.js";
|
|
9
|
+
const N = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = w("loader-circle", N), j = f(
|
|
10
10
|
`
|
|
11
11
|
!font-sans flex relative items-center justify-center gap-2 whitespace-nowrap transition-colors cursor-pointer rounded-lg border font-semibold focus:outline-none focus:outline-none
|
|
12
12
|
focus-visible:outline-1 focus-visible:outline-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
|
|
@@ -20,12 +20,12 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
|
|
|
20
20
|
focus-visible:outline-button-secondary-border disabled:bg-button-secondary-bg--disabled disabled:text-button-secondary-text--disabled disabled:border-button-secondary-border--disabled`,
|
|
21
21
|
outline: `bg-button-outline-bg border-button-outline-border text-button-outline-text hover:bg-button-outline-bg--hover hover:text-button-outline-text--hover focus-visible:outline-button-outline-border
|
|
22
22
|
disabled:text-button-outline-text--disabled disabled:border-button-outline-border--disabled`,
|
|
23
|
-
ghost: "bg-button-ghost-bg border-none text-button-ghost-text hover:bg-button-ghost-bg--hover hover:text-button-ghost-text--hover focus-visible:outline-none disabled:text-button-ghost-text--disabled"
|
|
24
|
-
card: "bg-button-card-bg border-button-card-border text-button-card-text !py-1 hover:text-button-card-text--hover !font-medium text-sm hover:border-button-card-border--hover"
|
|
23
|
+
ghost: "bg-button-ghost-bg border-none text-button-ghost-text hover:bg-button-ghost-bg--hover hover:text-button-ghost-text--hover focus-visible:outline-none disabled:text-button-ghost-text--disabled"
|
|
25
24
|
},
|
|
26
25
|
size: {
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
small: "py-1 px-4 w-fit !text-sm",
|
|
27
|
+
default: "py-2 px-6 w-fit !text-base",
|
|
28
|
+
fullWidth: "py-2 px-6 w-full !text-base"
|
|
29
29
|
},
|
|
30
30
|
state: {
|
|
31
31
|
default: "",
|
|
@@ -39,31 +39,29 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
|
|
|
39
39
|
size: "default"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
), z =
|
|
43
|
-
const
|
|
42
|
+
), z = h(({ className: l, dataTestId: c, disabled: r, endIcon: n, errorMessage: b, label: g, size: i, startIcon: a, state: t, type: p = "button", variant: e, ...x }, m) => {
|
|
43
|
+
const d = {
|
|
44
44
|
error: {
|
|
45
45
|
primary: "bg-button-danger border-button-danger text-button-primary-text pointer-events-none",
|
|
46
46
|
secondary: "bg-button-danger border-button-danger text-button-secondary-text pointer-events-none",
|
|
47
47
|
outline: "bg-transparent border-button-danger text-button-danger pointer-events-none",
|
|
48
|
-
ghost: "bg-transparent text-button-danger pointer-events-none"
|
|
49
|
-
card: "bg-transparent border-button-danger text-button-danger pointer-events-none"
|
|
48
|
+
ghost: "bg-transparent text-button-danger pointer-events-none"
|
|
50
49
|
},
|
|
51
50
|
loading: {
|
|
52
51
|
primary: "bg-button-primary-bg--disabled border-button-primary-border--disabled text-button-primary-text--disabled pointer-events-none",
|
|
53
52
|
secondary: "bg-button-secondary-bg--disabled border-button-secondary-border--disabled text-button-secondary-text--disabled pointer-events-none",
|
|
54
53
|
outline: "bg-button-outline-bg--disabled border-button-outline-border--disabled text-button-outline-text--disabled pointer-events-none",
|
|
55
|
-
ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none"
|
|
56
|
-
card: "bg-button-card-bg--disabled border-button-card-border--disabled text-button-card-text--disabled pointer-events-none"
|
|
54
|
+
ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none"
|
|
57
55
|
}
|
|
58
|
-
},
|
|
59
|
-
return /* @__PURE__ */ s("div", { className: u("flex flex-col justify-items-center",
|
|
60
|
-
/* @__PURE__ */ s("button", { "aria-disabled":
|
|
56
|
+
}, y = u(j({ variant: e, state: t, size: i }), t === "error" && d.error[e], t === "loading" && d.loading[e], l);
|
|
57
|
+
return /* @__PURE__ */ s("div", { className: u("flex flex-col justify-items-center", i), children: [
|
|
58
|
+
/* @__PURE__ */ s("button", { "aria-disabled": r, className: y, "data-state": t, "data-testid": c || `spectral-button-${e}`, disabled: r, ref: m, type: p, ...x, children: [
|
|
61
59
|
a && /* @__PURE__ */ o("span", { className: "flex pr-2", "aria-hidden": !0, "data-testid": "spectral-button-start-icon", children: a }),
|
|
62
60
|
t === "loading" && /* @__PURE__ */ o(_, { className: "ml-2 animate-spin", size: 16 }),
|
|
63
|
-
|
|
61
|
+
n && t !== "loading" && /* @__PURE__ */ o("span", { className: "flex pl-2", "aria-hidden": !0, "data-testid": "spectral-button-end-icon", children: n }),
|
|
64
62
|
g
|
|
65
63
|
] }),
|
|
66
|
-
t === "error" &&
|
|
64
|
+
t === "error" && b && /* @__PURE__ */ o(v, { message: b, dataTestId: "spectral-button-error-message", id: "button-error" })
|
|
67
65
|
] });
|
|
68
66
|
});
|
|
69
67
|
z.displayName = "Button";
|
package/dist/ButtonIcon.js
CHANGED
|
@@ -4,6 +4,8 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
4
4
|
import "./Icons/AnalyzeIcon.js";
|
|
5
5
|
import "./Icons/AnnotationsIcon.js";
|
|
6
6
|
import "./Icons/ApprovedIcon.js";
|
|
7
|
+
import "./Icons/ArrowDownIcon.js";
|
|
8
|
+
import "./Icons/ArrowUpIcon.js";
|
|
7
9
|
import "./Icons/CalendarIcon.js";
|
|
8
10
|
import "./Icons/CheckCircleIcon.js";
|
|
9
11
|
import "./Icons/CheckSquareIcon.js";
|
package/dist/Checkbox.js
CHANGED
|
@@ -5,6 +5,8 @@ import { CheckboxBase as l, CheckboxIndicator as n } from "./Checkbox/CheckboxBa
|
|
|
5
5
|
import "./Icons/AnalyzeIcon.js";
|
|
6
6
|
import "./Icons/AnnotationsIcon.js";
|
|
7
7
|
import "./Icons/ApprovedIcon.js";
|
|
8
|
+
import "./Icons/ArrowDownIcon.js";
|
|
9
|
+
import "./Icons/ArrowUpIcon.js";
|
|
8
10
|
import "./Icons/CalendarIcon.js";
|
|
9
11
|
import "./Icons/CheckCircleIcon.js";
|
|
10
12
|
import "./Icons/CheckSquareIcon.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../styles/main.css";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
import d from "./IconBase.js";
|
|
5
|
+
import { forwardRef as m } from "react";
|
|
6
|
+
const p = ({ className: r, ariaHidden: n, title: t, description: e, size: c = 24, ...i }, s) => /* @__PURE__ */ o(d, { size: c, className: r, title: t, description: e, ariaHidden: n, ref: s, ...i, children: /* @__PURE__ */ o("path", { d: "M18 14L12 20L6 14M12 19V4", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), w = m(p);
|
|
7
|
+
w.displayName = "ArrowDownIcon";
|
|
8
|
+
export {
|
|
9
|
+
w as ArrowDownIcon
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../styles/main.css";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import s from "./IconBase.js";
|
|
5
|
+
import { forwardRef as d } from "react";
|
|
6
|
+
const m = ({ className: o, ariaHidden: n, title: t, description: e, size: p = 24, ...c }, i) => /* @__PURE__ */ r(s, { size: p, className: o, title: t, description: e, ariaHidden: n, ref: i, ...c, children: /* @__PURE__ */ r("path", { d: "M6 10L12 4L18 10M12 5V20", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), a = d(m);
|
|
7
|
+
a.displayName = "ArrowUpIcon";
|
|
8
|
+
export {
|
|
9
|
+
a as ArrowUpIcon
|
|
10
|
+
};
|
package/dist/Icons/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { AnalyzeIcon } from './AnalyzeIcon';
|
|
2
2
|
export { AnnotationsIcon } from './AnnotationsIcon';
|
|
3
3
|
export { ApprovedIcon } from './ApprovedIcon';
|
|
4
|
+
export { ArrowDownIcon } from './ArrowDownIcon';
|
|
5
|
+
export { ArrowUpIcon } from './ArrowUpIcon';
|
|
4
6
|
export { CalendarIcon } from './CalendarIcon';
|
|
5
7
|
export { CheckCircleIcon } from './CheckCircleIcon';
|
|
6
8
|
export { CheckSquareIcon } from './CheckSquareIcon';
|