@spear-ai/spectral 1.3.55 → 1.3.57

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
@@ -2,164 +2,151 @@ import { Alert as e } from "./Alert.js";
2
2
  import { Badge as p } from "./Badge.js";
3
3
  import { Button as m } from "./Button.js";
4
4
  import { ButtonIcon as x } from "./ButtonIcon.js";
5
- import { Drawer as s } from "./Drawer.js";
6
- import { Input as a } from "./Input.js";
7
- import { Popover as i, PopoverContent as g, PopoverTrigger as C } from "./Popover.js";
8
- import { RadioButtonGroup as d, RadioButtonGroupItem as S } from "./RadioButtonGroup.js";
9
- import { RadioGroup as P, RadioGroupItem as h } from "./RadioGroup.js";
10
- import { Select as E } from "./Select.js";
11
- import { Skeleton as G } from "./Skeleton.js";
12
- import { Slider as y } from "./Slider.js";
13
- import { Switch as w } from "./Switch.js";
14
- import { Tabs as D } from "./Tabs.js";
15
- import { Toggle as b } from "./Toggle.js";
16
- import { ToggleGroup as A, ToggleGroupItem as M } from "./ToggleGroup.js";
17
- import { Tooltip as Z, TooltipContent as V, TooltipTrigger as q } from "./Tooltip.js";
5
+ import { Dialog as I } from "./Dialog.js";
6
+ import { Drawer as l } from "./Drawer.js";
7
+ import { Input as i } from "./Input.js";
8
+ import { Label as C } from "./Label.js";
9
+ import { Popover as d, PopoverContent as T, PopoverTrigger as S } from "./Popover.js";
10
+ import { RadioButtonGroup as L, RadioButtonGroupItem as v } from "./RadioButtonGroup.js";
11
+ import { RadioGroup as P, RadioGroupItem as k } from "./RadioGroup.js";
12
+ import { Select as D } from "./Select.js";
13
+ import { Skeleton as b } from "./Skeleton.js";
14
+ import { Slider as R } from "./Slider.js";
15
+ import { Switch as A } from "./Switch.js";
16
+ import { Tabs as U } from "./Tabs.js";
17
+ import { Textarea as q } from "./Textarea.js";
18
+ import { Toggle as H } from "./Toggle.js";
19
+ import { ToggleGroup as V, ToggleGroupItem as W } from "./ToggleGroup.js";
20
+ import { Tooltip as Y, TooltipContent as j, TooltipTrigger as z } from "./Tooltip.js";
18
21
  import { AnnotationsIcon as K } from "./Icons/AnnotationsIcon.js";
19
- import { CalendarIcon as W } from "./Icons/CalendarIcon.js";
20
- import { CheckCircleIcon as Y } from "./Icons/CheckCircleIcon.js";
21
- import { CheckSquareIcon as z } from "./Icons/CheckSquareIcon.js";
22
- import { CheckmarkIcon as Q } from "./Icons/CheckmarkIcon.js";
23
- import { ChevronDownIcon as $ } from "./Icons/ChevronDownIcon.js";
24
- import { ChevronUpIcon as ro } from "./Icons/ChevronUpIcon.js";
25
- import { ClockIcon as to } from "./Icons/ClockIcon.js";
26
- import { CloseCircleIcon as no } from "./Icons/CloseCircleIcon.js";
27
- import { CloseIcon as fo } from "./Icons/CloseIcon.js";
28
- import { DashboardIcon as co } from "./Icons/DashboardIcon.js";
29
- import { DeleteIcon as Io } from "./Icons/DeleteIcon.js";
30
- import { DurationIcon as lo } from "./Icons/DurationIcon.js";
31
- import { EmailIcon as go } from "./Icons/EmailIcon.js";
32
- import { EraserIcon as uo } from "./Icons/EraserIcon.js";
33
- import { ErrorIcon as To } from "./Icons/ErrorIcon.js";
34
- import { EyeClosedIcon as ho } from "./Icons/EyeClosedIcon.js";
35
- import { EyeClosedIcon2 as Eo } from "./Icons/EyeClosedIcon2.js";
36
- import { EyeOpenIcon as Go } from "./Icons/EyeOpenIcon.js";
37
- import { GoToFirstIcon as yo } from "./Icons/GoToFirstIcon.js";
38
- import { GoToLastIcon as wo } from "./Icons/GoToLastIcon.js";
39
- import { HarmonicCursorsIcon as Do } from "./Icons/HarmonicCursorsIcon.js";
40
- import { InfoIcon as bo } from "./Icons/InfoIcon.js";
41
- import { LabelIcon as Ao } from "./Icons/LabelIcon.js";
42
- import { LassoIcon as Uo } from "./Icons/LassoIcon.js";
43
- import { LineToolIcon as Vo } from "./Icons/LineToolIcon.js";
44
- import { LiveViewIcon as Ho } from "./Icons/LiveViewIcon.js";
22
+ import { CalendarIcon as Q } from "./Icons/CalendarIcon.js";
23
+ import { CheckCircleIcon as $ } from "./Icons/CheckCircleIcon.js";
24
+ import { CheckSquareIcon as ro } from "./Icons/CheckSquareIcon.js";
25
+ import { CheckmarkIcon as to } from "./Icons/CheckmarkIcon.js";
26
+ import { ChevronDownIcon as no } from "./Icons/ChevronDownIcon.js";
27
+ import { ChevronUpIcon as fo } from "./Icons/ChevronUpIcon.js";
28
+ import { ClockIcon as co } from "./Icons/ClockIcon.js";
29
+ import { CloseCircleIcon as ao } from "./Icons/CloseCircleIcon.js";
30
+ import { CloseIcon as so } from "./Icons/CloseIcon.js";
31
+ import { DashboardIcon as uo } from "./Icons/DashboardIcon.js";
32
+ import { DeleteIcon as go } from "./Icons/DeleteIcon.js";
33
+ import { DurationIcon as So } from "./Icons/DurationIcon.js";
34
+ import { EmailIcon as Lo } from "./Icons/EmailIcon.js";
35
+ import { EraserIcon as Go } from "./Icons/EraserIcon.js";
36
+ import { ErrorIcon as ko } from "./Icons/ErrorIcon.js";
37
+ import { EyeClosedIcon as Do } from "./Icons/EyeClosedIcon.js";
38
+ import { EyeClosedIcon2 as bo } from "./Icons/EyeClosedIcon2.js";
39
+ import { EyeOpenIcon as Ro } from "./Icons/EyeOpenIcon.js";
40
+ import { GoToFirstIcon as Ao } from "./Icons/GoToFirstIcon.js";
41
+ import { GoToLastIcon as Uo } from "./Icons/GoToLastIcon.js";
42
+ import { HarmonicCursorsIcon as qo } from "./Icons/HarmonicCursorsIcon.js";
43
+ import { InfoIcon as Ho } from "./Icons/InfoIcon.js";
44
+ import { LabelIcon as Vo } from "./Icons/LabelIcon.js";
45
+ import { LassoIcon as Xo } from "./Icons/LassoIcon.js";
46
+ import { LineToolIcon as jo } from "./Icons/LineToolIcon.js";
47
+ import { LiveViewIcon as Jo } from "./Icons/LiveViewIcon.js";
45
48
  import { LoaderIcon as No } from "./Icons/LoaderIcon.js";
46
- import { LocationIcon as Xo } from "./Icons/LocationIcon.js";
47
- import { LogoutIcon as jo } from "./Icons/LogoutIcon.js";
48
- import { MetadataIcon as Jo } from "./Icons/MetadataIcon.js";
49
- import { OntologyIcon as _o } from "./Icons/OntologyIcon.js";
50
- import { PanelIconClose as or } from "./Icons/PanelIconClose.js";
51
- import { PanelIconOpen as er } from "./Icons/PanelIconOpen.js";
52
- import { PlayIcon as pr } from "./Icons/PlayIcon.js";
53
- import { PlusIcon as mr } from "./Icons/PlusIcon.js";
54
- import { ResetIcon as xr } from "./Icons/ResetIcon.js";
55
- import { ScissorsIcon as sr } from "./Icons/ScissorsIcon.js";
56
- import { SettingsIcon as ar } from "./Icons/SettingsIcon.js";
57
- import { TrashIcon as ir } from "./Icons/TrashIcon.js";
58
- import { UndoIcon as Cr } from "./Icons/UndoIcon.js";
59
- import { UserIcon as dr } from "./Icons/UserIcon.js";
60
- import { WarningIcon as Tr } from "./Icons/WarningIcon.js";
61
- import { ZoomAllIcon as hr } from "./Icons/ZoomAllIcon.js";
62
- import { ZoomXIcon as Er } from "./Icons/ZoomXIcon.js";
63
- import { ZoomYIcon as Gr } from "./Icons/ZoomYIcon.js";
64
- import { default as yr, SvgIdContext as Fr } from "./Icons/IconBase.js";
65
- import { useControllableState as Br } from "./hooks/useControllableState.js";
66
- import { useTheme as Or } from "./hooks/useTheme.js";
67
- import { EmptyState as Rr, ErrorMessage as Ar, LoadingState as Mr, getAriaProps as Ur, getDropdownClasses as Zr, getErrorMessageId as Vr, getFormFieldCSSProperties as qr, getInputClasses as Hr, getOptionClasses as Kr, getStateClasses as Nr, getTextareaClasses as Wr, getTriggerClasses as Xr, groupOptions as Yr, scrollIntoView as jr, useClickOutside as zr, useFormFieldId as Jr, useFormFieldState as Qr, useKeyboardNavigation as _r } from "./utils/formFieldUtils.js";
68
- import { c as oe } from "./twUtils-CRiPKpXj.js";
69
- import { SpectralProvider as ee } from "./SpectralProvider.js";
49
+ import { LocationIcon as _o } from "./Icons/LocationIcon.js";
50
+ import { LogoutIcon as or } from "./Icons/LogoutIcon.js";
51
+ import { MetadataIcon as er } from "./Icons/MetadataIcon.js";
52
+ import { OntologyIcon as pr } from "./Icons/OntologyIcon.js";
53
+ import { PanelIconClose as mr } from "./Icons/PanelIconClose.js";
54
+ import { PanelIconOpen as xr } from "./Icons/PanelIconOpen.js";
55
+ import { PlayIcon as Ir } from "./Icons/PlayIcon.js";
56
+ import { PlusIcon as lr } from "./Icons/PlusIcon.js";
57
+ import { ResetIcon as ir } from "./Icons/ResetIcon.js";
58
+ import { ScissorsIcon as Cr } from "./Icons/ScissorsIcon.js";
59
+ import { SettingsIcon as dr } from "./Icons/SettingsIcon.js";
60
+ import { TrashIcon as Sr } from "./Icons/TrashIcon.js";
61
+ import { UndoIcon as Lr } from "./Icons/UndoIcon.js";
62
+ import { UserIcon as Gr } from "./Icons/UserIcon.js";
63
+ import { WarningIcon as kr } from "./Icons/WarningIcon.js";
64
+ import { ZoomAllIcon as Dr } from "./Icons/ZoomAllIcon.js";
65
+ import { ZoomXIcon as br } from "./Icons/ZoomXIcon.js";
66
+ import { ZoomYIcon as Rr } from "./Icons/ZoomYIcon.js";
67
+ import { default as Ar, SvgIdContext as Or } from "./Icons/IconBase.js";
68
+ import { useControllableState as Zr } from "./hooks/useControllableState.js";
69
+ import { useTheme as Fr } from "./hooks/useTheme.js";
70
+ import { c as Mr } from "./twUtils-CRiPKpXj.js";
71
+ import { SpectralProvider as Wr } from "./SpectralProvider.js";
70
72
  export {
71
73
  e as Alert,
72
74
  K as AnnotationsIcon,
73
75
  p as Badge,
74
76
  m as Button,
75
77
  x as ButtonIcon,
76
- W as CalendarIcon,
77
- Y as CheckCircleIcon,
78
- z as CheckSquareIcon,
79
- Q as CheckmarkIcon,
80
- $ as ChevronDownIcon,
81
- ro as ChevronUpIcon,
82
- to as ClockIcon,
83
- no as CloseCircleIcon,
84
- fo as CloseIcon,
85
- co as DashboardIcon,
86
- Io as DeleteIcon,
87
- s as Drawer,
88
- lo as DurationIcon,
89
- go as EmailIcon,
90
- Rr as EmptyState,
91
- uo as EraserIcon,
92
- To as ErrorIcon,
93
- Ar as ErrorMessage,
94
- ho as EyeClosedIcon,
95
- Eo as EyeClosedIcon2,
96
- Go as EyeOpenIcon,
97
- yo as GoToFirstIcon,
98
- wo as GoToLastIcon,
99
- Do as HarmonicCursorsIcon,
100
- yr as IconBase,
101
- bo as InfoIcon,
102
- a as Input,
103
- Ao as LabelIcon,
104
- Uo as LassoIcon,
105
- Vo as LineToolIcon,
106
- Ho as LiveViewIcon,
78
+ Q as CalendarIcon,
79
+ $ as CheckCircleIcon,
80
+ ro as CheckSquareIcon,
81
+ to as CheckmarkIcon,
82
+ no as ChevronDownIcon,
83
+ fo as ChevronUpIcon,
84
+ co as ClockIcon,
85
+ ao as CloseCircleIcon,
86
+ so as CloseIcon,
87
+ uo as DashboardIcon,
88
+ go as DeleteIcon,
89
+ I as Dialog,
90
+ l as Drawer,
91
+ So as DurationIcon,
92
+ Lo as EmailIcon,
93
+ Go as EraserIcon,
94
+ ko as ErrorIcon,
95
+ Do as EyeClosedIcon,
96
+ bo as EyeClosedIcon2,
97
+ Ro as EyeOpenIcon,
98
+ Ao as GoToFirstIcon,
99
+ Uo as GoToLastIcon,
100
+ qo as HarmonicCursorsIcon,
101
+ Ar as IconBase,
102
+ Ho as InfoIcon,
103
+ i as Input,
104
+ C as Label,
105
+ Vo as LabelIcon,
106
+ Xo as LassoIcon,
107
+ jo as LineToolIcon,
108
+ Jo as LiveViewIcon,
107
109
  No as LoaderIcon,
108
- Mr as LoadingState,
109
- Xo as LocationIcon,
110
- jo as LogoutIcon,
111
- Jo as MetadataIcon,
112
- _o as OntologyIcon,
113
- or as PanelIconClose,
114
- er as PanelIconOpen,
115
- pr as PlayIcon,
116
- mr as PlusIcon,
117
- i as Popover,
118
- g as PopoverContent,
119
- C as PopoverTrigger,
120
- d as RadioButtonGroup,
121
- S as RadioButtonGroupItem,
110
+ _o as LocationIcon,
111
+ or as LogoutIcon,
112
+ er as MetadataIcon,
113
+ pr as OntologyIcon,
114
+ mr as PanelIconClose,
115
+ xr as PanelIconOpen,
116
+ Ir as PlayIcon,
117
+ lr as PlusIcon,
118
+ d as Popover,
119
+ T as PopoverContent,
120
+ S as PopoverTrigger,
121
+ L as RadioButtonGroup,
122
+ v as RadioButtonGroupItem,
122
123
  P as RadioGroup,
123
- h as RadioGroupItem,
124
- xr as ResetIcon,
125
- sr as ScissorsIcon,
126
- E as Select,
127
- ar as SettingsIcon,
128
- G as Skeleton,
129
- y as Slider,
130
- ee as SpectralProvider,
131
- Fr as SvgIdContext,
132
- w as Switch,
133
- D as Tabs,
134
- b as Toggle,
135
- A as ToggleGroup,
136
- M as ToggleGroupItem,
137
- Z as Tooltip,
138
- V as TooltipContent,
139
- q as TooltipTrigger,
140
- ir as TrashIcon,
141
- Cr as UndoIcon,
142
- dr as UserIcon,
143
- Tr as WarningIcon,
144
- hr as ZoomAllIcon,
145
- Er as ZoomXIcon,
146
- Gr as ZoomYIcon,
147
- oe as cn,
148
- Ur as getAriaProps,
149
- Zr as getDropdownClasses,
150
- Vr as getErrorMessageId,
151
- qr as getFormFieldCSSProperties,
152
- Hr as getInputClasses,
153
- Kr as getOptionClasses,
154
- Nr as getStateClasses,
155
- Wr as getTextareaClasses,
156
- Xr as getTriggerClasses,
157
- Yr as groupOptions,
158
- jr as scrollIntoView,
159
- zr as useClickOutside,
160
- Br as useControllableState,
161
- Jr as useFormFieldId,
162
- Qr as useFormFieldState,
163
- _r as useKeyboardNavigation,
164
- Or as useTheme
124
+ k as RadioGroupItem,
125
+ ir as ResetIcon,
126
+ Cr as ScissorsIcon,
127
+ D as Select,
128
+ dr as SettingsIcon,
129
+ b as Skeleton,
130
+ R as Slider,
131
+ Wr as SpectralProvider,
132
+ Or as SvgIdContext,
133
+ A as Switch,
134
+ U as Tabs,
135
+ q as Textarea,
136
+ H as Toggle,
137
+ V as ToggleGroup,
138
+ W as ToggleGroupItem,
139
+ Y as Tooltip,
140
+ j as TooltipContent,
141
+ z as TooltipTrigger,
142
+ Sr as TrashIcon,
143
+ Lr as UndoIcon,
144
+ Gr as UserIcon,
145
+ kr as WarningIcon,
146
+ Dr as ZoomAllIcon,
147
+ br as ZoomXIcon,
148
+ Rr as ZoomYIcon,
149
+ Mr as cn,
150
+ Zr as useControllableState,
151
+ Fr as useTheme
165
152
  };
package/dist/Button.d.ts CHANGED
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import { ButtonHTMLAttributes, MouseEvent, ReactNode } from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "secondary" | "outline" | "primary" | "ghost" | null | undefined;
5
- size?: "default" | "icon" | "fullWidth" | null | undefined;
5
+ size?: "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> {
@@ -13,7 +13,7 @@ export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
13
13
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
14
14
  readonly dataTestId?: string;
15
15
  readonly label: string;
16
- readonly size?: 'default' | 'icon' | 'fullWidth';
16
+ readonly size?: 'default' | 'fullWidth';
17
17
  readonly state?: 'loading' | 'error' | 'default';
18
18
  readonly type?: 'button' | 'submit' | 'reset';
19
19
  startIcon?: ReactNode;
package/dist/Button.js CHANGED
@@ -1,31 +1,30 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
- import { jsxs as l, jsx as n } from "react/jsx-runtime";
3
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
4
4
  import { c as u } from "./twUtils-CRiPKpXj.js";
5
- import { c as v } from "./index-CRBC94ik.js";
5
+ import { c as y } from "./index-CRBC94ik.js";
6
6
  import { forwardRef as h } from "react";
7
- import { L as N } from "./loader-circle-CvdzOiQ_.js";
8
- const w = v(
7
+ import { L as f } from "./loader-circle-CvdzOiQ_.js";
8
+ const N = y(
9
9
  `
10
10
  !font-sans flex relative items-center justify-center gap-2 whitespace-nowrap transition-colors cursor-pointer rounded-lg border font-semibold disabled:pointer-events-none
11
- focus:outline-none focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
11
+ focus:outline-none focus:outline-none focus-visible:outline-1 focus-visible:outline-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
12
12
  `,
13
13
  {
14
14
  variants: {
15
15
  variant: {
16
- primary: "bg-button-primary-bg text-button-primary-text border-button-primary-border disabled:bg-button-primary-bg--disabled disabled:text-button-primary-text--disabled disabled:border-button-primary-border--disabled",
17
- secondary: "bg-button-secondary-bg border-button-secondary-border text-button-secondary-text disabled:bg-button-secondary-bg--disabled disabled:text-button-secondary-text--disabled disabled:border-button-secondary-border--disabled",
18
- outline: "bg-button-outline-bg border-button-outline-border text-button-outline-text disabled:text-button-outline-text--disabled disabled:border-button-outline-border--disabled",
19
- ghost: "bg-button-ghost-bg border-none text-button-ghost-text hover:bg-button-ghost-bg--hover hover:text-button-ghost-text--hover disabled:text-button-ghost-text--disabled"
16
+ primary: "bg-button-primary-bg text-button-primary-text border-button-primary-border hover:bg-button-primary-bg--hover hover:text-button-primary-text--hover hover:border-button-primary-border--hover focus-visible:outline-button-primary-border disabled:bg-button-primary-bg--disabled disabled:text-button-primary-text--disabled disabled:border-button-primary-border--disabled",
17
+ secondary: "bg-button-secondary-bg border-button-secondary-border text-button-secondary-text hover:bg-button-secondary-bg--hover hover:text-button-secondary-text--hover focus-visible:outline-button-secondary-border disabled:bg-button-secondary-bg--disabled disabled:text-button-secondary-text--disabled disabled:border-button-secondary-border--disabled",
18
+ 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 disabled:text-button-outline-text--disabled disabled:border-button-outline-border--disabled",
19
+ 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"
20
20
  },
21
21
  size: {
22
22
  default: "py-2 px-6 w-fit",
23
- icon: "size-9",
24
23
  fullWidth: "py-2 px-6 w-full"
25
24
  },
26
25
  state: {
27
26
  default: "",
28
- error: "bg-button-danger text-button-primary-text transition pointer-events-none",
27
+ error: "bg-button-danger text-text-primary transition pointer-events-none focus-visible:outline-button-danger",
29
28
  loading: "cursor-wait pointer-events-none"
30
29
  }
31
30
  },
@@ -35,23 +34,23 @@ const w = v(
35
34
  size: "default"
36
35
  }
37
36
  }
38
- ), j = h(
37
+ ), w = h(
39
38
  ({
40
- children: g,
41
- className: p,
42
- dataTestId: c,
43
- disabled: o,
44
- endIcon: i,
45
- errorMessage: a,
46
- label: d,
47
- size: e,
48
- startIcon: s,
39
+ children: j,
40
+ className: l,
41
+ dataTestId: g,
42
+ disabled: n,
43
+ endIcon: b,
44
+ errorMessage: i,
45
+ label: p,
46
+ size: r,
47
+ startIcon: d,
49
48
  state: t,
50
- type: x = "button",
51
- variant: r,
52
- ...m
53
- }, y) => {
54
- const b = {
49
+ type: c = "button",
50
+ variant: e,
51
+ ...x
52
+ }, v) => {
53
+ const a = {
55
54
  error: {
56
55
  primary: "bg-button-danger border-button-danger text-button-primary-text pointer-events-none",
57
56
  secondary: "bg-button-danger border-button-danger text-button-secondary-text pointer-events-none",
@@ -64,39 +63,38 @@ const w = v(
64
63
  outline: "bg-button-outline-bg--disabled border-button-outline-border--disabled text-button-outline-text--disabled pointer-events-none",
65
64
  ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none"
66
65
  }
67
- }, f = u(
68
- w({ variant: r, state: t, size: e }),
69
- t === "error" && b.error[r || "primary"],
70
- t === "loading" && b.loading[r || "primary"],
71
- e,
72
- p
66
+ }, m = u(
67
+ N({ variant: e, state: t, size: r }),
68
+ t === "error" && a.error[e || "primary"],
69
+ t === "loading" && a.loading[e || "primary"],
70
+ r,
71
+ l
73
72
  );
74
- return /* @__PURE__ */ l("div", { className: u("flex flex-col justify-items-center", e), children: [
75
- /* @__PURE__ */ l(
73
+ return /* @__PURE__ */ s("div", { className: u("flex flex-col justify-items-center", r), children: [
74
+ /* @__PURE__ */ s(
76
75
  "button",
77
76
  {
78
- "aria-disabled": o,
79
- className: f,
77
+ "aria-disabled": n,
78
+ className: m,
80
79
  "data-state": t,
81
- "data-testid": c || `button-${r}`,
82
- disabled: o,
83
- ref: y,
84
- type: x,
85
- ...m,
80
+ "data-testid": g || `button-${e}`,
81
+ disabled: n,
82
+ ref: v,
83
+ type: c,
84
+ ...x,
86
85
  children: [
87
- s && /* @__PURE__ */ n("span", { className: "flex pr-2", "aria-hidden": !0, children: s }),
88
- e === "icon" ? /* @__PURE__ */ n("span", { className: "sr-only", children: d }) : d,
89
- t === "loading" && /* @__PURE__ */ n(N, { className: "ml-2 animate-spin", size: 16 }),
90
- i && t !== "loading" && /* @__PURE__ */ n("span", { className: "flex pl-2", "aria-hidden": !0, children: i }),
91
- e === "icon" && g
86
+ d && /* @__PURE__ */ o("span", { className: "flex pr-2", "aria-hidden": !0, children: d }),
87
+ t === "loading" && /* @__PURE__ */ o(f, { className: "ml-2 animate-spin", size: 16 }),
88
+ b && t !== "loading" && /* @__PURE__ */ o("span", { className: "flex pl-2", "aria-hidden": !0, children: b }),
89
+ p
92
90
  ]
93
91
  }
94
92
  ),
95
- t === "error" && a && /* @__PURE__ */ n("p", { className: "text-danger-100 mt-2 text-xs", role: "alert", "aria-live": "assertive", children: a })
93
+ t === "error" && i && /* @__PURE__ */ o("p", { className: "text-danger-100 mt-2 text-xs", role: "alert", "aria-live": "assertive", children: i })
96
94
  ] });
97
95
  }
98
96
  );
99
- j.displayName = "Button";
97
+ w.displayName = "Button";
100
98
  export {
101
- j as Button
99
+ w as Button
102
100
  };
@@ -38,7 +38,7 @@ type DialogOverlayProps = {
38
38
  };
39
39
  export declare function DialogOverlayBase({ className }: DialogOverlayProps): import("react/jsx-runtime").JSX.Element | null;
40
40
  declare const contentVariants: (props?: ({
41
- size?: "sm" | "lg" | "md" | "xl" | "2xl" | null | undefined;
41
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
42
42
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
43
43
  export type DialogSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
44
44
  export type DialogContentProps = {
package/dist/Drawer.d.ts CHANGED
@@ -8,7 +8,6 @@ export type DrawerProps = {
8
8
  trigger: ReactNode;
9
9
  open?: boolean;
10
10
  onOpenChange?: (open: boolean) => void;
11
- asChild?: boolean;
12
11
  };
13
- export declare const Drawer: ({ trigger, title, description, children, direction, size, asChild, }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Drawer: ({ trigger, title, description, children, direction, size }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
14
13
  //# sourceMappingURL=Drawer.d.ts.map