@spear-ai/spectral 1.6.5 → 1.6.6
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 +57 -53
- package/dist/DateTimePicker/DateTimeDisplayInput.d.ts +5 -0
- package/dist/DateTimePicker/DateTimeDisplayInput.js +137 -136
- package/dist/DateTimePicker.d.ts +3 -1
- package/dist/DateTimePicker.js +97 -92
- package/dist/IconsAnimated/PanelLeftCloseIcon.d.ts +3 -0
- package/dist/IconsAnimated/PanelLeftCloseIcon.js +39 -0
- package/dist/IconsAnimated/PanelLeftOpenIcon.d.ts +3 -0
- package/dist/IconsAnimated/PanelLeftOpenIcon.js +39 -0
- package/dist/IconsAnimated.js +6 -0
- package/dist/Tabs/TabsBase.js +29 -28
- package/dist/Tray.js +2 -1
- package/dist/index-CeP1E2kK.js +209 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/proxy-Cukf-VVj.js +4667 -0
- package/dist/styles/spectral.css +1 -1
- package/dist/use-animation-zNd5Nq85.js +62 -0
- package/package.json +1 -1
- package/dist/index-BFbzRVZA.js +0 -4859
package/dist/.js
CHANGED
|
@@ -3,16 +3,16 @@ import { Alert as p } from "./Alert.js";
|
|
|
3
3
|
import { Avatar as m } from "./Avatar.js";
|
|
4
4
|
import { Badge as f } from "./Badge.js";
|
|
5
5
|
import { Button as I } from "./Button.js";
|
|
6
|
-
import { ButtonGroup as
|
|
6
|
+
import { ButtonGroup as l, ButtonGroupItem as u, ButtonGroupSeparator as i } from "./ButtonGroup.js";
|
|
7
7
|
import { ButtonIcon as d } from "./ButtonIcon.js";
|
|
8
8
|
import { Checkbox as g } from "./Checkbox.js";
|
|
9
9
|
import { DataCard as S } from "./DataCard.js";
|
|
10
10
|
import { DateTimePicker as A } from "./DateTimePicker.js";
|
|
11
|
-
import { Dialog as
|
|
12
|
-
import { Drawer as
|
|
11
|
+
import { Dialog as L } from "./Dialog.js";
|
|
12
|
+
import { Drawer as D } from "./Drawer.js";
|
|
13
13
|
import { HoverCard as b, HoverCardContent as h, HoverCardTrigger as k } from "./HoverCard.js";
|
|
14
14
|
import { Input as y } from "./Input.js";
|
|
15
|
-
import { InputGroup as R, InputGroupAddon as
|
|
15
|
+
import { InputGroup as R, InputGroupAddon as O, InputGroupButton as U, InputGroupInput as Z, InputGroupText as H, InputGroupTextarea as M } from "./InputGroup.js";
|
|
16
16
|
import { InputOTP as q } from "./InputOTP.js";
|
|
17
17
|
import { Kbd as F, KbdGroup as V } from "./Kbd.js";
|
|
18
18
|
import { Label as X } from "./Label.js";
|
|
@@ -23,18 +23,18 @@ import { Select as po } from "./Select.js";
|
|
|
23
23
|
import { Separator as mo } from "./Separator.js";
|
|
24
24
|
import { Skeleton as fo } from "./Skeleton.js";
|
|
25
25
|
import { Slider as Io } from "./Slider.js";
|
|
26
|
-
import { Switch as
|
|
26
|
+
import { Switch as lo } from "./Switch.js";
|
|
27
27
|
import { Tabs as io } from "./Tabs.js";
|
|
28
28
|
import { Textarea as Co } from "./Textarea.js";
|
|
29
29
|
import { Toggle as To } from "./Toggle.js";
|
|
30
30
|
import { ToggleGroup as Go, ToggleGroupItem as Ao } from "./ToggleGroup.js";
|
|
31
|
-
import { Tooltip as
|
|
31
|
+
import { Tooltip as Lo, TooltipContent as Po, TooltipTrigger as Do } from "./Tooltip.js";
|
|
32
32
|
import { Tray as bo } from "./Tray.js";
|
|
33
33
|
import { AnalyzeIcon as ko } from "./Icons/AnalyzeIcon.js";
|
|
34
34
|
import { AnnotationsIcon as yo } from "./Icons/AnnotationsIcon.js";
|
|
35
35
|
import { ApprovedIcon as Ro } from "./Icons/ApprovedIcon.js";
|
|
36
|
-
import { ArrowDownIcon as
|
|
37
|
-
import { ArrowUpIcon as
|
|
36
|
+
import { ArrowDownIcon as Uo } from "./Icons/ArrowDownIcon.js";
|
|
37
|
+
import { ArrowUpIcon as Ho } from "./Icons/ArrowUpIcon.js";
|
|
38
38
|
import { CalendarIcon as Ko } from "./Icons/CalendarIcon.js";
|
|
39
39
|
import { CheckCircleIcon as zo } from "./Icons/CheckCircleIcon.js";
|
|
40
40
|
import { CheckSquareIcon as Vo } from "./Icons/CheckSquareIcon.js";
|
|
@@ -48,20 +48,20 @@ import { DashboardIcon as pr } from "./Icons/DashboardIcon.js";
|
|
|
48
48
|
import { DatabaseIcon as mr } from "./Icons/DatabaseIcon.js";
|
|
49
49
|
import { DeleteIcon as fr } from "./Icons/DeleteIcon.js";
|
|
50
50
|
import { DurationIcon as Ir } from "./Icons/DurationIcon.js";
|
|
51
|
-
import { EditIcon as
|
|
51
|
+
import { EditIcon as lr } from "./Icons/EditIcon.js";
|
|
52
52
|
import { EmailIcon as ir } from "./Icons/EmailIcon.js";
|
|
53
53
|
import { EraserIcon as dr } from "./Icons/EraserIcon.js";
|
|
54
54
|
import { ErrorIcon as gr } from "./Icons/ErrorIcon.js";
|
|
55
55
|
import { EyeClosedIcon as Sr } from "./Icons/EyeClosedIcon.js";
|
|
56
56
|
import { EyeClosedIcon2 as Ar } from "./Icons/EyeClosedIcon2.js";
|
|
57
|
-
import { EyeOpenIcon as
|
|
58
|
-
import { GoToFirstIcon as
|
|
57
|
+
import { EyeOpenIcon as Lr } from "./Icons/EyeOpenIcon.js";
|
|
58
|
+
import { GoToFirstIcon as Dr } from "./Icons/GoToFirstIcon.js";
|
|
59
59
|
import { GoToLastIcon as br } from "./Icons/GoToLastIcon.js";
|
|
60
60
|
import { HarmonicCursorsIcon as kr } from "./Icons/HarmonicCursorsIcon.js";
|
|
61
61
|
import { InfoIcon as yr } from "./Icons/InfoIcon.js";
|
|
62
62
|
import { LabelIcon as Rr } from "./Icons/LabelIcon.js";
|
|
63
|
-
import { LassoIcon as
|
|
64
|
-
import { LineToolIcon as
|
|
63
|
+
import { LassoIcon as Ur } from "./Icons/LassoIcon.js";
|
|
64
|
+
import { LineToolIcon as Hr } from "./Icons/LineToolIcon.js";
|
|
65
65
|
import { LineToolIcon2 as Kr } from "./Icons/LineToolIcon2.js";
|
|
66
66
|
import { LiveViewIcon as zr } from "./Icons/LiveViewIcon.js";
|
|
67
67
|
import { LoaderIcon as Vr } from "./Icons/LoaderIcon.js";
|
|
@@ -75,42 +75,44 @@ import { PanelIconClose as pe } from "./Icons/PanelIconClose.js";
|
|
|
75
75
|
import { PanelIconOpen as me } from "./Icons/PanelIconOpen.js";
|
|
76
76
|
import { PlayIcon as fe } from "./Icons/PlayIcon.js";
|
|
77
77
|
import { PlusIcon as Ie } from "./Icons/PlusIcon.js";
|
|
78
|
-
import { ResetIcon as
|
|
78
|
+
import { ResetIcon as le } from "./Icons/ResetIcon.js";
|
|
79
79
|
import { ReviewedIcon as ie } from "./Icons/ReviewedIcon.js";
|
|
80
80
|
import { ScissorsIcon as de } from "./Icons/ScissorsIcon.js";
|
|
81
81
|
import { SettingsIcon as ge } from "./Icons/SettingsIcon.js";
|
|
82
82
|
import { SortAscendingIcon as Se } from "./Icons/SortAscendingIcon.js";
|
|
83
83
|
import { SortAtoZIcon as Ae } from "./Icons/SortAtoZIcon.js";
|
|
84
|
-
import { SortDescendingIcon as
|
|
85
|
-
import { SortZtoAIcon as
|
|
84
|
+
import { SortDescendingIcon as Le } from "./Icons/SortDescendingIcon.js";
|
|
85
|
+
import { SortZtoAIcon as De } from "./Icons/SortZtoAIcon.js";
|
|
86
86
|
import { StackIcon as be } from "./Icons/StackIcon.js";
|
|
87
87
|
import { StarIcon as ke } from "./Icons/StarIcon.js";
|
|
88
88
|
import { TrashIcon as ye } from "./Icons/TrashIcon.js";
|
|
89
89
|
import { UndoIcon as Re } from "./Icons/UndoIcon.js";
|
|
90
|
-
import { User2Icon as
|
|
91
|
-
import { UserIcon as
|
|
90
|
+
import { User2Icon as Ue } from "./Icons/User2Icon.js";
|
|
91
|
+
import { UserIcon as He } from "./Icons/UserIcon.js";
|
|
92
92
|
import { WarningIcon as Ke } from "./Icons/WarningIcon.js";
|
|
93
93
|
import { ZoomAllIcon as ze } from "./Icons/ZoomAllIcon.js";
|
|
94
94
|
import { ZoomXIcon as Ve } from "./Icons/ZoomXIcon.js";
|
|
95
95
|
import { ZoomYIcon as Xe } from "./Icons/ZoomYIcon.js";
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
96
|
+
import { PanelLeftOpenIcon as je } from "./IconsAnimated/PanelLeftOpenIcon.js";
|
|
97
|
+
import { PanelLeftCloseIcon as Ne } from "./IconsAnimated/PanelLeftCloseIcon.js";
|
|
98
|
+
import { default as _e, SvgIdContext as $e } from "./Icons/IconBase.js";
|
|
99
|
+
import { useAccordionAutoScroll as rt } from "./hooks/useAccordionAutoScroll.js";
|
|
100
|
+
import { useControllableState as tt } from "./hooks/useControllableState.js";
|
|
101
|
+
import { cn as nt } from "./utils/twUtils.js";
|
|
102
|
+
import { SpectralProvider as xt } from "./SpectralProvider.js";
|
|
101
103
|
export {
|
|
102
104
|
e as Accordion,
|
|
103
105
|
p as Alert,
|
|
104
106
|
ko as AnalyzeIcon,
|
|
105
107
|
yo as AnnotationsIcon,
|
|
106
108
|
Ro as ApprovedIcon,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
Uo as ArrowDownIcon,
|
|
110
|
+
Ho as ArrowUpIcon,
|
|
109
111
|
m as Avatar,
|
|
110
112
|
f as Badge,
|
|
111
113
|
I as Button,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
l as ButtonGroup,
|
|
115
|
+
u as ButtonGroupItem,
|
|
114
116
|
i as ButtonGroupSeparator,
|
|
115
117
|
d as ButtonIcon,
|
|
116
118
|
Ko as CalendarIcon,
|
|
@@ -128,38 +130,38 @@ export {
|
|
|
128
130
|
mr as DatabaseIcon,
|
|
129
131
|
A as DateTimePicker,
|
|
130
132
|
fr as DeleteIcon,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
L as Dialog,
|
|
134
|
+
D as Drawer,
|
|
133
135
|
Ir as DurationIcon,
|
|
134
|
-
|
|
136
|
+
lr as EditIcon,
|
|
135
137
|
ir as EmailIcon,
|
|
136
138
|
dr as EraserIcon,
|
|
137
139
|
gr as ErrorIcon,
|
|
138
140
|
Sr as EyeClosedIcon,
|
|
139
141
|
Ar as EyeClosedIcon2,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
Lr as EyeOpenIcon,
|
|
143
|
+
Dr as GoToFirstIcon,
|
|
142
144
|
br as GoToLastIcon,
|
|
143
145
|
kr as HarmonicCursorsIcon,
|
|
144
146
|
b as HoverCard,
|
|
145
147
|
h as HoverCardContent,
|
|
146
148
|
k as HoverCardTrigger,
|
|
147
|
-
|
|
149
|
+
_e as IconBase,
|
|
148
150
|
yr as InfoIcon,
|
|
149
151
|
y as Input,
|
|
150
152
|
R as InputGroup,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
O as InputGroupAddon,
|
|
154
|
+
U as InputGroupButton,
|
|
155
|
+
Z as InputGroupInput,
|
|
156
|
+
H as InputGroupText,
|
|
155
157
|
M as InputGroupTextarea,
|
|
156
158
|
q as InputOTP,
|
|
157
159
|
F as Kbd,
|
|
158
160
|
V as KbdGroup,
|
|
159
161
|
X as Label,
|
|
160
162
|
Rr as LabelIcon,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
Ur as LassoIcon,
|
|
164
|
+
Hr as LineToolIcon,
|
|
163
165
|
Kr as LineToolIcon2,
|
|
164
166
|
zr as LiveViewIcon,
|
|
165
167
|
Vr as LoaderIcon,
|
|
@@ -171,6 +173,8 @@ export {
|
|
|
171
173
|
ee as OntologyIcon,
|
|
172
174
|
pe as PanelIconClose,
|
|
173
175
|
me as PanelIconOpen,
|
|
176
|
+
Ne as PanelLeftCloseIcon,
|
|
177
|
+
je as PanelLeftOpenIcon,
|
|
174
178
|
fe as PlayIcon,
|
|
175
179
|
Ie as PlusIcon,
|
|
176
180
|
j as Popover,
|
|
@@ -180,7 +184,7 @@ export {
|
|
|
180
184
|
$ as RadioButtonGroupItem,
|
|
181
185
|
ro as RadioGroup,
|
|
182
186
|
eo as RadioGroupItem,
|
|
183
|
-
|
|
187
|
+
le as ResetIcon,
|
|
184
188
|
ie as ReviewedIcon,
|
|
185
189
|
de as ScissorsIcon,
|
|
186
190
|
po as Select,
|
|
@@ -190,31 +194,31 @@ export {
|
|
|
190
194
|
Io as Slider,
|
|
191
195
|
Se as SortAscendingIcon,
|
|
192
196
|
Ae as SortAtoZIcon,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
Le as SortDescendingIcon,
|
|
198
|
+
De as SortZtoAIcon,
|
|
199
|
+
xt as SpectralProvider,
|
|
196
200
|
be as StackIcon,
|
|
197
201
|
ke as StarIcon,
|
|
198
|
-
|
|
199
|
-
|
|
202
|
+
$e as SvgIdContext,
|
|
203
|
+
lo as Switch,
|
|
200
204
|
io as Tabs,
|
|
201
205
|
Co as Textarea,
|
|
202
206
|
To as Toggle,
|
|
203
207
|
Go as ToggleGroup,
|
|
204
208
|
Ao as ToggleGroupItem,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
209
|
+
Lo as Tooltip,
|
|
210
|
+
Po as TooltipContent,
|
|
211
|
+
Do as TooltipTrigger,
|
|
208
212
|
ye as TrashIcon,
|
|
209
213
|
bo as Tray,
|
|
210
214
|
Re as UndoIcon,
|
|
211
|
-
|
|
212
|
-
|
|
215
|
+
Ue as User2Icon,
|
|
216
|
+
He as UserIcon,
|
|
213
217
|
Ke as WarningIcon,
|
|
214
218
|
ze as ZoomAllIcon,
|
|
215
219
|
Ve as ZoomXIcon,
|
|
216
220
|
Xe as ZoomYIcon,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
221
|
+
nt as cn,
|
|
222
|
+
rt as useAccordionAutoScroll,
|
|
223
|
+
tt as useControllableState
|
|
220
224
|
};
|
|
@@ -38,6 +38,11 @@ export interface DateTimeDisplayInputProps extends Omit<ComponentProps<'div'>, '
|
|
|
38
38
|
* @default true
|
|
39
39
|
*/
|
|
40
40
|
showTime?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Visual state of the input.
|
|
43
|
+
* @default 'default'
|
|
44
|
+
*/
|
|
45
|
+
state?: 'default' | 'disabled' | 'error';
|
|
41
46
|
/**
|
|
42
47
|
* The controlled date value.
|
|
43
48
|
* Use together with `onChange` for controlled usage.
|