@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 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 k } from "./Drawer.js";
12
- import { HoverCard as b, HoverCardContent as y, HoverCardTrigger as E } from "./HoverCard.js";
13
- import { Input as R } from "./Input.js";
14
- import { InputGroup as O, InputGroupAddon as M, InputGroupButton as U, InputGroupInput as Z, InputGroupText as q, InputGroupTextarea as z } from "./InputGroup.js";
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 Po } from "./Tray.js";
31
- import { AnalyzeIcon as Do } from "./Icons/AnalyzeIcon.js";
32
- import { AnnotationsIcon as yo } from "./Icons/AnnotationsIcon.js";
33
- import { ApprovedIcon as Ho } from "./Icons/ApprovedIcon.js";
34
- import { CalendarIcon as wo } from "./Icons/CalendarIcon.js";
35
- import { CheckCircleIcon as Mo } from "./Icons/CheckCircleIcon.js";
36
- import { CheckSquareIcon as Zo } from "./Icons/CheckSquareIcon.js";
37
- import { CheckmarkIcon as zo } from "./Icons/CheckmarkIcon.js";
38
- import { ChevronDownIcon as Vo } from "./Icons/ChevronDownIcon.js";
39
- import { ChevronUpIcon as Xo } from "./Icons/ChevronUpIcon.js";
40
- import { ClockIcon as jo } from "./Icons/ClockIcon.js";
41
- import { CloseCircleIcon as Ko } from "./Icons/CloseCircleIcon.js";
42
- import { CloseIcon as Qo } from "./Icons/CloseIcon.js";
43
- import { DashboardIcon as $o } from "./Icons/DashboardIcon.js";
44
- import { DatabaseIcon as rr } from "./Icons/DatabaseIcon.js";
45
- import { DeleteIcon as tr } from "./Icons/DeleteIcon.js";
46
- import { DurationIcon as nr } from "./Icons/DurationIcon.js";
47
- import { EmailIcon as xr } from "./Icons/EmailIcon.js";
48
- import { EraserIcon as cr } from "./Icons/EraserIcon.js";
49
- import { ErrorIcon as ar } from "./Icons/ErrorIcon.js";
50
- import { EyeClosedIcon as ur } from "./Icons/EyeClosedIcon.js";
51
- import { EyeClosedIcon2 as dr } from "./Icons/EyeClosedIcon2.js";
52
- import { EyeOpenIcon as Cr } from "./Icons/EyeOpenIcon.js";
53
- import { GoToFirstIcon as Tr } from "./Icons/GoToFirstIcon.js";
54
- import { GoToLastIcon as Gr } from "./Icons/GoToLastIcon.js";
55
- import { HarmonicCursorsIcon as Ar } from "./Icons/HarmonicCursorsIcon.js";
56
- import { InfoIcon as Lr } from "./Icons/InfoIcon.js";
57
- import { LabelIcon as Pr } from "./Icons/LabelIcon.js";
58
- import { LassoIcon as Dr } from "./Icons/LassoIcon.js";
59
- import { LineToolIcon as yr } from "./Icons/LineToolIcon.js";
60
- import { LineToolIcon2 as Hr } from "./Icons/LineToolIcon2.js";
61
- import { LiveViewIcon as wr } from "./Icons/LiveViewIcon.js";
62
- import { LoaderIcon as Mr } from "./Icons/LoaderIcon.js";
63
- import { LocationIcon as Zr } from "./Icons/LocationIcon.js";
64
- import { LogoutIcon as zr } from "./Icons/LogoutIcon.js";
65
- import { MessagesIcon as Vr } from "./Icons/MessagesIcon.js";
66
- import { MetadataIcon as Xr } from "./Icons/MetadataIcon.js";
67
- import { MinusIcon as jr } from "./Icons/MinusIcon.js";
68
- import { OntologyIcon as Kr } from "./Icons/OntologyIcon.js";
69
- import { PanelIconClose as Qr } from "./Icons/PanelIconClose.js";
70
- import { PanelIconOpen as $r } from "./Icons/PanelIconOpen.js";
71
- import { PlayIcon as re } from "./Icons/PlayIcon.js";
72
- import { PlusIcon as te } from "./Icons/PlusIcon.js";
73
- import { ResetIcon as ne } from "./Icons/ResetIcon.js";
74
- import { ReviewedIcon as xe } from "./Icons/ReviewedIcon.js";
75
- import { ScissorsIcon as ce } from "./Icons/ScissorsIcon.js";
76
- import { SettingsIcon as ae } from "./Icons/SettingsIcon.js";
77
- import { SortAscendingIcon as ue } from "./Icons/SortAscendingIcon.js";
78
- import { SortDescendingIcon as de } from "./Icons/SortDescendingIcon.js";
79
- import { StackIcon as Ce } from "./Icons/StackIcon.js";
80
- import { StarIcon as Te } from "./Icons/StarIcon.js";
81
- import { TrashIcon as Ge } from "./Icons/TrashIcon.js";
82
- import { UndoIcon as Ae } from "./Icons/UndoIcon.js";
83
- import { UserIcon as Le } from "./Icons/UserIcon.js";
84
- import { WarningIcon as Pe } from "./Icons/WarningIcon.js";
85
- import { ZoomAllIcon as De } from "./Icons/ZoomAllIcon.js";
86
- import { ZoomXIcon as ye } from "./Icons/ZoomXIcon.js";
87
- import { ZoomYIcon as He } from "./Icons/ZoomYIcon.js";
88
- import { default as we, SvgIdContext as Oe } from "./Icons/IconBase.js";
89
- import { useAccordionAutoScroll as Ue } from "./hooks/useAccordionAutoScroll.js";
90
- import { useControllableState as qe } from "./hooks/useControllableState.js";
91
- import { cn as Fe } from "./utils/twUtils.js";
92
- import { SpectralProvider as We } from "./SpectralProvider.js";
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
- Do as AnalyzeIcon,
97
- yo as AnnotationsIcon,
98
- Ho as ApprovedIcon,
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
- wo as CalendarIcon,
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
- Mo as CheckCircleIcon,
113
- Zo as CheckSquareIcon,
116
+ zo as CheckCircleIcon,
117
+ Vo as CheckSquareIcon,
114
118
  B as Checkbox,
115
- zo as CheckmarkIcon,
116
- Vo as ChevronDownIcon,
117
- Xo as ChevronUpIcon,
118
- jo as ClockIcon,
119
- Ko as CloseCircleIcon,
120
- Qo as CloseIcon,
121
- $o as DashboardIcon,
122
- rr as DatabaseIcon,
123
- tr as DeleteIcon,
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
- k as Drawer,
126
- nr as DurationIcon,
127
- xr as EmailIcon,
128
- cr as EraserIcon,
129
- ar as ErrorIcon,
130
- ur as EyeClosedIcon,
131
- dr as EyeClosedIcon2,
132
- Cr as EyeOpenIcon,
133
- Tr as GoToFirstIcon,
134
- Gr as GoToLastIcon,
135
- Ar as HarmonicCursorsIcon,
136
- b as HoverCard,
137
- y as HoverCardContent,
138
- E as HoverCardTrigger,
139
- we as IconBase,
140
- Lr as InfoIcon,
141
- R as Input,
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
- M as InputGroupAddon,
144
- U as InputGroupButton,
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
- Pr as LabelIcon,
151
- Dr as LassoIcon,
152
- yr as LineToolIcon,
153
- Hr as LineToolIcon2,
154
- wr as LiveViewIcon,
155
- Mr as LoaderIcon,
156
- Zr as LocationIcon,
157
- zr as LogoutIcon,
158
- Vr as MessagesIcon,
159
- Xr as MetadataIcon,
160
- jr as MinusIcon,
161
- Kr as OntologyIcon,
162
- Qr as PanelIconClose,
163
- $r as PanelIconOpen,
164
- re as PlayIcon,
165
- te as PlusIcon,
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
- ne as ResetIcon,
174
- xe as ReviewedIcon,
175
- ce as ScissorsIcon,
177
+ ce as ResetIcon,
178
+ ae as ReviewedIcon,
179
+ ue as ScissorsIcon,
176
180
  to as Select,
177
181
  no as Separator,
178
- ae as SettingsIcon,
182
+ de as SettingsIcon,
179
183
  xo as Skeleton,
180
184
  co as Slider,
181
- ue as SortAscendingIcon,
182
- de as SortDescendingIcon,
183
- We as SpectralProvider,
184
- Ce as StackIcon,
185
- Te as StarIcon,
186
- Oe as SvgIdContext,
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
- Ge as TrashIcon,
197
- Po as Tray,
198
- Ae as UndoIcon,
199
- Le as UserIcon,
200
- Pe as WarningIcon,
201
- De as ZoomAllIcon,
202
- ye as ZoomXIcon,
203
- He as ZoomYIcon,
204
- Fe as cn,
205
- Ue as useAccordionAutoScroll,
206
- qe as useControllableState
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 Vt = ({ id: n, description: s, onClose: a, icon: l, title: c, className: d, variant: r = "default" }) => {
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
- Vt as Alert
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" | "card" | null | undefined;
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
- readonly endIcon?: ReactNode;
11
- readonly errorMessage?: string | ReactNode;
10
+ endIcon?: ReactNode;
11
+ errorMessage?: string | ReactNode;
12
12
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
13
- readonly dataTestId?: string;
14
- readonly label: string;
15
- readonly size?: 'default' | 'fullWidth';
16
- readonly startIcon?: ReactNode;
17
- readonly state?: 'default' | 'error' | 'loading';
18
- readonly type?: 'button' | 'submit' | 'reset';
19
- readonly variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'card';
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 y } from "./utils/formFieldUtils.js";
4
+ import { ErrorMessage as v } from "./utils/formFieldUtils.js";
5
5
  import { cn as u } from "./utils/twUtils.js";
6
- import { c as h } from "./index-D29mdTf5.js";
7
- import { forwardRef as f } from "react";
8
- import { c as N } from "./createLucideIcon-D4r5Phnh.js";
9
- const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N("loader-circle", w), j = h(
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
- default: "py-2 px-6 w-fit",
28
- fullWidth: "py-2 px-6 w-full"
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 = f(({ className: l, dataTestId: c, disabled: n, endIcon: b, errorMessage: d, label: g, size: r, startIcon: a, state: t, type: p = "button", variant: e, ...x }, m) => {
43
- const i = {
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
- }, v = u(j({ variant: e, state: t, size: r }), t === "error" && i.error[e || "primary"], t === "loading" && i.loading[e || "primary"], r, l);
59
- return /* @__PURE__ */ s("div", { className: u("flex flex-col justify-items-center", r), children: [
60
- /* @__PURE__ */ s("button", { "aria-disabled": n, className: v, "data-state": t, "data-testid": c || `spectral-button-${e}`, disabled: n, ref: m, type: p, ...x, children: [
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
- b && t !== "loading" && /* @__PURE__ */ o("span", { className: "flex pl-2", "aria-hidden": !0, "data-testid": "spectral-button-end-icon", children: b }),
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" && d && /* @__PURE__ */ o(y, { message: d, dataTestId: "spectral-button-error-message", id: "button-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";
@@ -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,3 @@
1
+ import { IconProps } from './iconTypes';
2
+ export declare const ArrowDownIcon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<SVGSVGElement>>;
3
+ //# sourceMappingURL=ArrowDownIcon.d.ts.map
@@ -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,3 @@
1
+ import { IconProps } from './iconTypes';
2
+ export declare const ArrowUpIcon: import('react').ForwardRefExoticComponent<IconProps & import('react').RefAttributes<SVGSVGElement>>;
3
+ //# sourceMappingURL=ArrowUpIcon.d.ts.map
@@ -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
+ };
@@ -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';