@spear-ai/spectral 1.3.43 → 1.3.45

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.
Files changed (93) hide show
  1. package/dist/.js +142 -110
  2. package/dist/Alert.js +17 -12
  3. package/dist/Avatar.d.ts +2 -0
  4. package/dist/Avatar.js +1 -0
  5. package/dist/Button.js +24 -30
  6. package/dist/Dialog/DialogBase.d.ts +5 -5
  7. package/dist/Dialog/DialogBase.js +87 -86
  8. package/dist/Icons/CheckCircleIcon.d.ts +3 -0
  9. package/dist/Icons/CheckCircleIcon.js +29 -0
  10. package/dist/Icons/CheckSquareIcon.d.ts +3 -0
  11. package/dist/Icons/CheckSquareIcon.js +29 -0
  12. package/dist/Icons/ChevronDownIcon.d.ts +3 -0
  13. package/dist/Icons/ChevronDownIcon.js +28 -0
  14. package/dist/Icons/ChevronUpIcon.d.ts +3 -0
  15. package/dist/Icons/ChevronUpIcon.js +28 -0
  16. package/dist/Icons/{CheckIcon.d.ts → ErrorIcon.d.ts} +2 -2
  17. package/dist/Icons/ErrorIcon.js +30 -0
  18. package/dist/Icons/LoaderIcon.d.ts +3 -0
  19. package/dist/Icons/LoaderIcon.js +53 -0
  20. package/dist/Icons/index.d.ts +6 -1
  21. package/dist/Icons.js +82 -72
  22. package/dist/Input/InputUtils.d.ts +15 -0
  23. package/dist/Input/InputUtils.js +54 -0
  24. package/dist/Input.d.ts +26 -0
  25. package/dist/Input.js +172 -0
  26. package/dist/MultiSelect/MultiSelectBase.d.ts +34 -0
  27. package/dist/MultiSelect/MultiSelectBase.js +321 -0
  28. package/dist/MultiSelect/MutiSelect.d.ts +15 -0
  29. package/dist/MultiSelect/MutiSelect.js +30 -0
  30. package/dist/Popover.d.ts +1 -1
  31. package/dist/Popover.js +61 -59
  32. package/dist/RadioButtonGroup/RadioButtonGroupBase.js +18 -17
  33. package/dist/Select/SelectBase.d.ts +26 -0
  34. package/dist/Select/SelectBase.js +233 -0
  35. package/dist/Select.d.ts +50 -0
  36. package/dist/Select.js +136 -0
  37. package/dist/Textarea/TextareaUtils.d.ts +19 -0
  38. package/dist/Textarea/TextareaUtils.js +54 -0
  39. package/dist/Textarea.d.ts +17 -0
  40. package/dist/Textarea.js +160 -0
  41. package/dist/chevron-down-UbkgS76q.js +19 -0
  42. package/dist/components/Avatar/Avatar.d.ts +2 -0
  43. package/dist/components/Avatar/Avatar.d.ts.map +1 -0
  44. package/dist/components/Dialog/DialogBase.d.ts +5 -5
  45. package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
  46. package/dist/components/Icons/CheckCircleIcon.d.ts +3 -0
  47. package/dist/components/Icons/CheckCircleIcon.d.ts.map +1 -0
  48. package/dist/components/Icons/CheckSquareIcon.d.ts +3 -0
  49. package/dist/components/Icons/CheckSquareIcon.d.ts.map +1 -0
  50. package/dist/components/Icons/ChevronDownIcon.d.ts +3 -0
  51. package/dist/components/Icons/ChevronDownIcon.d.ts.map +1 -0
  52. package/dist/components/Icons/ChevronUpIcon.d.ts +3 -0
  53. package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
  54. package/dist/components/Icons/{CheckIcon.d.ts → ErrorIcon.d.ts} +2 -2
  55. package/dist/components/Icons/ErrorIcon.d.ts.map +1 -0
  56. package/dist/components/Icons/LoaderIcon.d.ts +3 -0
  57. package/dist/components/Icons/LoaderIcon.d.ts.map +1 -0
  58. package/dist/components/Icons/index.d.ts +6 -1
  59. package/dist/components/Icons/index.d.ts.map +1 -1
  60. package/dist/components/Input/Input.d.ts +26 -0
  61. package/dist/components/Input/Input.d.ts.map +1 -0
  62. package/dist/components/Input/InputUtils.d.ts +15 -0
  63. package/dist/components/Input/InputUtils.d.ts.map +1 -0
  64. package/dist/components/MultiSelect/MultiSelectBase.d.ts +34 -0
  65. package/dist/components/MultiSelect/MultiSelectBase.d.ts.map +1 -0
  66. package/dist/components/MultiSelect/MutiSelect.d.ts +15 -0
  67. package/dist/components/MultiSelect/MutiSelect.d.ts.map +1 -0
  68. package/dist/components/Popover/Popover.d.ts +1 -1
  69. package/dist/components/Popover/Popover.d.ts.map +1 -1
  70. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -1
  71. package/dist/components/Select/Select.d.ts +50 -0
  72. package/dist/components/Select/Select.d.ts.map +1 -0
  73. package/dist/components/Select/SelectBase.d.ts +26 -0
  74. package/dist/components/Select/SelectBase.d.ts.map +1 -0
  75. package/dist/components/Textarea/Textarea.d.ts +17 -0
  76. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  77. package/dist/components/Textarea/TextareaUtils.d.ts +19 -0
  78. package/dist/components/Textarea/TextareaUtils.d.ts.map +1 -0
  79. package/dist/features/LabelingTools.js +8 -3
  80. package/dist/features/SensorMetadata.js +12 -7
  81. package/dist/features/SettingsPopover.js +18 -13
  82. package/dist/index.d.ts +2 -1
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/loader-circle-CvdzOiQ_.js +11 -0
  85. package/dist/styles/base-colors.css +33 -33
  86. package/dist/styles/main.css +1 -1
  87. package/dist/utils/formFieldUtils.d.ts +70 -0
  88. package/dist/utils/formFieldUtils.d.ts.map +1 -0
  89. package/dist/utils/formFieldUtils.js +178 -0
  90. package/dist/x-BBpi7a_7.js +14 -0
  91. package/package.json +1 -1
  92. package/dist/Icons/CheckIcon.js +0 -29
  93. package/dist/components/Icons/CheckIcon.d.ts.map +0 -1
package/dist/.js CHANGED
@@ -2,121 +2,153 @@ 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 { Drawer as x } from "./Drawer.js";
5
- import { Popover as I, PopoverContent as a, PopoverTrigger as l } from "./Popover.js";
6
- import { RadioButtonGroup as i, RadioButtonGroupItem as u } from "./RadioButtonGroup.js";
7
- import { RadioGroup as g, RadioGroupItem as C } from "./RadioGroup.js";
8
- import { Skeleton as G } from "./Skeleton.js";
9
- import { Slider as P } from "./Slider.js";
10
- import { Switch as v } from "./Switch.js";
5
+ import { Input as c } from "./Input.js";
6
+ import { Popover as a, PopoverContent as l, PopoverTrigger as i } from "./Popover.js";
7
+ import { RadioButtonGroup as C, RadioButtonGroupItem as d } from "./RadioButtonGroup.js";
8
+ import { RadioGroup as S, RadioGroupItem as T } from "./RadioGroup.js";
9
+ import { Skeleton as L } from "./Skeleton.js";
10
+ import { Slider as G } from "./Slider.js";
11
+ import { Switch as h } from "./Switch.js";
11
12
  import { Toggle as y } from "./Toggle.js";
12
- import { ToggleGroup as R, ToggleGroupItem as k } from "./ToggleGroup.js";
13
- import { Tooltip as E, TooltipContent as w, TooltipTrigger as A } from "./Tooltip.js";
14
- import { AnnotationsIcon as Z } from "./Icons/AnnotationsIcon.js";
15
- import { CalendarIcon as U } from "./Icons/CalendarIcon.js";
16
- import { CheckIcon as H } from "./Icons/CheckIcon.js";
17
- import { ClockIcon as V } from "./Icons/ClockIcon.js";
18
- import { CloseCircleIcon as X } from "./Icons/CloseCircleIcon.js";
19
- import { CloseIcon as j } from "./Icons/CloseIcon.js";
20
- import { DashboardIcon as z } from "./Icons/DashboardIcon.js";
21
- import { DeleteIcon as K } from "./Icons/DeleteIcon.js";
22
- import { DurationIcon as Q } from "./Icons/DurationIcon.js";
23
- import { EraserIcon as $ } from "./Icons/EraserIcon.js";
24
- import { EyeClosedIcon as ro } from "./Icons/EyeClosedIcon.js";
25
- import { EyeClosedIcon2 as to } from "./Icons/EyeClosedIcon2.js";
26
- import { EyeOpenIcon as no } from "./Icons/EyeOpenIcon.js";
27
- import { GoToFirstIcon as fo } from "./Icons/GoToFirstIcon.js";
28
- import { GoToLastIcon as co } from "./Icons/GoToLastIcon.js";
29
- import { HarmonicCursorsIcon as ao } from "./Icons/HarmonicCursorsIcon.js";
30
- import { InfoIcon as so } from "./Icons/InfoIcon.js";
31
- import { LabelIcon as uo } from "./Icons/LabelIcon.js";
32
- import { LassoIcon as Co } from "./Icons/LassoIcon.js";
33
- import { LineToolIcon as Go } from "./Icons/LineToolIcon.js";
34
- import { LiveViewIcon as Po } from "./Icons/LiveViewIcon.js";
35
- import { LocationIcon as vo } from "./Icons/LocationIcon.js";
36
- import { LogoutIcon as yo } from "./Icons/LogoutIcon.js";
37
- import { MetadataIcon as Ro } from "./Icons/MetadataIcon.js";
38
- import { OntologyIcon as Do } from "./Icons/OntologyIcon.js";
39
- import { PanelIcon as wo } from "./Icons/PanelIcon.js";
40
- import { PlayIcon as Oo } from "./Icons/PlayIcon.js";
41
- import { PlusIcon as bo } from "./Icons/PlusIcon.js";
42
- import { ResetIcon as Fo } from "./Icons/ResetIcon.js";
43
- import { ScissorsIcon as Mo } from "./Icons/ScissorsIcon.js";
44
- import { SettingsIcon as Wo } from "./Icons/SettingsIcon.js";
45
- import { TrashIcon as Yo } from "./Icons/TrashIcon.js";
46
- import { UndoIcon as qo } from "./Icons/UndoIcon.js";
47
- import { UserIcon as Jo } from "./Icons/UserIcon.js";
48
- import { WarningIcon as No } from "./Icons/WarningIcon.js";
49
- import { ZoomAllIcon as _o } from "./Icons/ZoomAllIcon.js";
50
- import { ZoomXIcon as or } from "./Icons/ZoomXIcon.js";
51
- import { ZoomYIcon as er } from "./Icons/ZoomYIcon.js";
52
- import { default as pr, SvgIdContext as nr } from "./Icons/IconBase.js";
53
- import { useOutsideClick as fr } from "./hooks/useOutsideClick.js";
54
- import { useTheme as cr } from "./hooks/useTheme.js";
55
- import { c as ar } from "./twUtils-CRiPKpXj.js";
56
- import { SpectralProvider as sr } from "./SpectralProvider.js";
13
+ import { ToggleGroup as w, ToggleGroupItem as B } from "./ToggleGroup.js";
14
+ import { Tooltip as R, TooltipContent as Z, TooltipTrigger as k } from "./Tooltip.js";
15
+ import { AnnotationsIcon as _ } from "./Icons/AnnotationsIcon.js";
16
+ import { CalendarIcon as b } from "./Icons/CalendarIcon.js";
17
+ import { CheckCircleIcon as U } from "./Icons/CheckCircleIcon.js";
18
+ import { CheckSquareIcon as X } from "./Icons/CheckSquareIcon.js";
19
+ import { ChevronDownIcon as H } from "./Icons/ChevronDownIcon.js";
20
+ import { ChevronUpIcon as W } from "./Icons/ChevronUpIcon.js";
21
+ import { ClockIcon as j } from "./Icons/ClockIcon.js";
22
+ import { CloseCircleIcon as J } from "./Icons/CloseCircleIcon.js";
23
+ import { CloseIcon as $ } from "./Icons/CloseIcon.js";
24
+ import { DashboardIcon as ro } from "./Icons/DashboardIcon.js";
25
+ import { DeleteIcon as to } from "./Icons/DeleteIcon.js";
26
+ import { DurationIcon as no } from "./Icons/DurationIcon.js";
27
+ import { EraserIcon as fo } from "./Icons/EraserIcon.js";
28
+ import { ErrorIcon as Io } from "./Icons/ErrorIcon.js";
29
+ import { EyeClosedIcon as so } from "./Icons/EyeClosedIcon.js";
30
+ import { EyeClosedIcon2 as lo } from "./Icons/EyeClosedIcon2.js";
31
+ import { EyeOpenIcon as go } from "./Icons/EyeOpenIcon.js";
32
+ import { GoToFirstIcon as uo } from "./Icons/GoToFirstIcon.js";
33
+ import { GoToLastIcon as To } from "./Icons/GoToLastIcon.js";
34
+ import { HarmonicCursorsIcon as Lo } from "./Icons/HarmonicCursorsIcon.js";
35
+ import { InfoIcon as Go } from "./Icons/InfoIcon.js";
36
+ import { LabelIcon as ho } from "./Icons/LabelIcon.js";
37
+ import { LassoIcon as yo } from "./Icons/LassoIcon.js";
38
+ import { LineToolIcon as wo } from "./Icons/LineToolIcon.js";
39
+ import { LiveViewIcon as Do } from "./Icons/LiveViewIcon.js";
40
+ import { LoaderIcon as Zo } from "./Icons/LoaderIcon.js";
41
+ import { LocationIcon as Ao } from "./Icons/LocationIcon.js";
42
+ import { LogoutIcon as No } from "./Icons/LogoutIcon.js";
43
+ import { MetadataIcon as Mo } from "./Icons/MetadataIcon.js";
44
+ import { OntologyIcon as Vo } from "./Icons/OntologyIcon.js";
45
+ import { PanelIcon as qo } from "./Icons/PanelIcon.js";
46
+ import { PlayIcon as Ko } from "./Icons/PlayIcon.js";
47
+ import { PlusIcon as Yo } from "./Icons/PlusIcon.js";
48
+ import { ResetIcon as zo } from "./Icons/ResetIcon.js";
49
+ import { ScissorsIcon as Qo } from "./Icons/ScissorsIcon.js";
50
+ import { SettingsIcon as or } from "./Icons/SettingsIcon.js";
51
+ import { TrashIcon as er } from "./Icons/TrashIcon.js";
52
+ import { UndoIcon as pr } from "./Icons/UndoIcon.js";
53
+ import { UserIcon as mr } from "./Icons/UserIcon.js";
54
+ import { WarningIcon as xr } from "./Icons/WarningIcon.js";
55
+ import { ZoomAllIcon as cr } from "./Icons/ZoomAllIcon.js";
56
+ import { ZoomXIcon as ar } from "./Icons/ZoomXIcon.js";
57
+ import { ZoomYIcon as ir } from "./Icons/ZoomYIcon.js";
58
+ import { default as Cr, SvgIdContext as dr } from "./Icons/IconBase.js";
59
+ import { useTheme as Sr } from "./hooks/useTheme.js";
60
+ import { EmptyState as Er, ErrorMessage as Lr, ICON_SIZE as vr, LARGE_ICON_SIZE as Gr, LoadingState as Pr, XL_ICON_SIZE as hr, getAriaProps as Or, getBaseTriggerClasses as yr, getDropdownClasses as Fr, getErrorMessageId as wr, getFormFieldCSSProperties as Br, getInputClasses as Dr, getOptionClasses as Rr, getStateClasses as Zr, getTextareaClasses as kr, groupOptions as Ar, scrollIntoView as _r, useClickOutside as Nr, useFormFieldId as br, useFormFieldState as Mr, useKeyboardNavigation as Ur } from "./utils/formFieldUtils.js";
61
+ import { c as Xr } from "./twUtils-CRiPKpXj.js";
62
+ import { SpectralProvider as Hr } from "./SpectralProvider.js";
57
63
  export {
58
64
  e as Alert,
59
- Z as AnnotationsIcon,
65
+ _ as AnnotationsIcon,
60
66
  p as Badge,
61
67
  m as Button,
62
- U as CalendarIcon,
63
- H as CheckIcon,
64
- V as ClockIcon,
65
- X as CloseCircleIcon,
66
- j as CloseIcon,
67
- z as DashboardIcon,
68
- K as DeleteIcon,
68
+ b as CalendarIcon,
69
+ U as CheckCircleIcon,
70
+ X as CheckSquareIcon,
71
+ H as ChevronDownIcon,
72
+ W as ChevronUpIcon,
73
+ j as ClockIcon,
74
+ J as CloseCircleIcon,
75
+ $ as CloseIcon,
76
+ ro as DashboardIcon,
77
+ to as DeleteIcon,
69
78
  x as Drawer,
70
- Q as DurationIcon,
71
- $ as EraserIcon,
72
- ro as EyeClosedIcon,
73
- to as EyeClosedIcon2,
74
- no as EyeOpenIcon,
75
- fo as GoToFirstIcon,
76
- co as GoToLastIcon,
77
- ao as HarmonicCursorsIcon,
78
- pr as IconBase,
79
- so as InfoIcon,
80
- uo as LabelIcon,
81
- Co as LassoIcon,
82
- Go as LineToolIcon,
83
- Po as LiveViewIcon,
84
- vo as LocationIcon,
85
- yo as LogoutIcon,
86
- Ro as MetadataIcon,
87
- Do as OntologyIcon,
88
- wo as PanelIcon,
89
- Oo as PlayIcon,
90
- bo as PlusIcon,
91
- I as Popover,
92
- a as PopoverContent,
93
- l as PopoverTrigger,
94
- i as RadioButtonGroup,
95
- u as RadioButtonGroupItem,
96
- g as RadioGroup,
97
- C as RadioGroupItem,
98
- Fo as ResetIcon,
99
- Mo as ScissorsIcon,
100
- Wo as SettingsIcon,
101
- G as Skeleton,
102
- P as Slider,
103
- sr as SpectralProvider,
104
- nr as SvgIdContext,
105
- v as Switch,
79
+ no as DurationIcon,
80
+ Er as EmptyState,
81
+ fo as EraserIcon,
82
+ Io as ErrorIcon,
83
+ Lr as ErrorMessage,
84
+ so as EyeClosedIcon,
85
+ lo as EyeClosedIcon2,
86
+ go as EyeOpenIcon,
87
+ uo as GoToFirstIcon,
88
+ To as GoToLastIcon,
89
+ Lo as HarmonicCursorsIcon,
90
+ vr as ICON_SIZE,
91
+ Cr as IconBase,
92
+ Go as InfoIcon,
93
+ c as Input,
94
+ Gr as LARGE_ICON_SIZE,
95
+ ho as LabelIcon,
96
+ yo as LassoIcon,
97
+ wo as LineToolIcon,
98
+ Do as LiveViewIcon,
99
+ Zo as LoaderIcon,
100
+ Pr as LoadingState,
101
+ Ao as LocationIcon,
102
+ No as LogoutIcon,
103
+ Mo as MetadataIcon,
104
+ Vo as OntologyIcon,
105
+ qo as PanelIcon,
106
+ Ko as PlayIcon,
107
+ Yo as PlusIcon,
108
+ a as Popover,
109
+ l as PopoverContent,
110
+ i as PopoverTrigger,
111
+ C as RadioButtonGroup,
112
+ d as RadioButtonGroupItem,
113
+ S as RadioGroup,
114
+ T as RadioGroupItem,
115
+ zo as ResetIcon,
116
+ Qo as ScissorsIcon,
117
+ or as SettingsIcon,
118
+ L as Skeleton,
119
+ G as Slider,
120
+ Hr as SpectralProvider,
121
+ dr as SvgIdContext,
122
+ h as Switch,
106
123
  y as Toggle,
107
- R as ToggleGroup,
108
- k as ToggleGroupItem,
109
- E as Tooltip,
110
- w as TooltipContent,
111
- A as TooltipTrigger,
112
- Yo as TrashIcon,
113
- qo as UndoIcon,
114
- Jo as UserIcon,
115
- No as WarningIcon,
116
- _o as ZoomAllIcon,
117
- or as ZoomXIcon,
118
- er as ZoomYIcon,
119
- ar as cn,
120
- fr as useOutsideClick,
121
- cr as useTheme
124
+ w as ToggleGroup,
125
+ B as ToggleGroupItem,
126
+ R as Tooltip,
127
+ Z as TooltipContent,
128
+ k as TooltipTrigger,
129
+ er as TrashIcon,
130
+ pr as UndoIcon,
131
+ mr as UserIcon,
132
+ xr as WarningIcon,
133
+ hr as XL_ICON_SIZE,
134
+ cr as ZoomAllIcon,
135
+ ar as ZoomXIcon,
136
+ ir as ZoomYIcon,
137
+ Xr as cn,
138
+ Or as getAriaProps,
139
+ yr as getBaseTriggerClasses,
140
+ Fr as getDropdownClasses,
141
+ wr as getErrorMessageId,
142
+ Br as getFormFieldCSSProperties,
143
+ Dr as getInputClasses,
144
+ Rr as getOptionClasses,
145
+ Zr as getStateClasses,
146
+ kr as getTextareaClasses,
147
+ Ar as groupOptions,
148
+ _r as scrollIntoView,
149
+ Nr as useClickOutside,
150
+ br as useFormFieldId,
151
+ Mr as useFormFieldState,
152
+ Ur as useKeyboardNavigation,
153
+ Sr as useTheme
122
154
  };
package/dist/Alert.js CHANGED
@@ -1,9 +1,12 @@
1
1
  import "./styles/main.css";
2
- import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
+ import { jsx as r, jsxs as n } from "react/jsx-runtime";
3
3
  import { AlertPortal as h, AlertBase as w, AlertTitle as v, AlertDescription as I } from "./Alert/AlertBase.js";
4
4
  import "./Icons/AnnotationsIcon.js";
5
5
  import "./Icons/CalendarIcon.js";
6
- import { CheckIcon as y } from "./Icons/CheckIcon.js";
6
+ import "./Icons/CheckCircleIcon.js";
7
+ import { CheckSquareIcon as y } from "./Icons/CheckSquareIcon.js";
8
+ import "./Icons/ChevronDownIcon.js";
9
+ import "./Icons/ChevronUpIcon.js";
7
10
  import "./Icons/ClockIcon.js";
8
11
  import { CloseCircleIcon as A } from "./Icons/CloseCircleIcon.js";
9
12
  import { CloseIcon as b } from "./Icons/CloseIcon.js";
@@ -11,6 +14,7 @@ import "./Icons/DashboardIcon.js";
11
14
  import "./Icons/DeleteIcon.js";
12
15
  import "./Icons/DurationIcon.js";
13
16
  import "./Icons/EraserIcon.js";
17
+ import "./Icons/ErrorIcon.js";
14
18
  import "./Icons/EyeClosedIcon.js";
15
19
  import "./Icons/EyeClosedIcon2.js";
16
20
  import "./Icons/EyeOpenIcon.js";
@@ -22,6 +26,7 @@ import "./Icons/LabelIcon.js";
22
26
  import "./Icons/LassoIcon.js";
23
27
  import "./Icons/LineToolIcon.js";
24
28
  import "./Icons/LiveViewIcon.js";
29
+ import "./Icons/LoaderIcon.js";
25
30
  import "./Icons/LocationIcon.js";
26
31
  import "./Icons/LogoutIcon.js";
27
32
  import "./Icons/MetadataIcon.js";
@@ -42,28 +47,28 @@ import "./Icons/ZoomYIcon.js";
42
47
  import { SpectralProvider as C } from "./SpectralProvider.js";
43
48
  import { c as x } from "./twUtils-CRiPKpXj.js";
44
49
  import "react";
45
- const vr = ({ id: a, description: s, onClose: l, icon: m, title: c, className: d, variant: i = "default" }) => {
46
- const e = m || {
50
+ const Nr = ({ id: a, description: m, onClose: s, icon: l, title: c, className: d, variant: i = "default" }) => {
51
+ const e = l || {
47
52
  info: /* @__PURE__ */ r(N, {}),
48
53
  success: /* @__PURE__ */ r(y, {}),
49
54
  warning: /* @__PURE__ */ r(T, {}),
50
55
  danger: /* @__PURE__ */ r(A, {}),
51
56
  default: null
52
- }[i], n = (t) => {
57
+ }[i], p = (t) => {
53
58
  t.style.opacity = "0", setTimeout(() => {
54
- t.style.display = "none", l?.();
59
+ t.style.display = "none", s?.();
55
60
  }, 300);
56
61
  }, f = (t) => {
57
62
  const o = t.currentTarget.closest(".alert-wrapper");
58
- o && n(o);
63
+ o && p(o);
59
64
  }, u = (t) => {
60
65
  if (t.key === "Enter" || t.key === " ") {
61
66
  t.preventDefault();
62
67
  const o = t.currentTarget.closest(".alert-wrapper");
63
- o && n(o);
68
+ o && p(o);
64
69
  }
65
70
  }, g = (/* @__PURE__ */ new Set(["danger", "warning"])).has(i) ? "assertive" : "polite";
66
- return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ p(
71
+ return /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(h, { children: /* @__PURE__ */ n(
67
72
  w,
68
73
  {
69
74
  id: a,
@@ -73,9 +78,9 @@ const vr = ({ id: a, description: s, onClose: l, icon: m, title: c, className: d
73
78
  className: x("alert-wrapper tw-transition-opacity tw-duration-300 flex", d),
74
79
  children: [
75
80
  e && /* @__PURE__ */ r("div", { className: "icon-wrapper mr-2", children: e }),
76
- /* @__PURE__ */ p("div", { className: "content-wrapper", children: [
81
+ /* @__PURE__ */ n("div", { className: "content-wrapper", children: [
77
82
  /* @__PURE__ */ r(v, { children: c }),
78
- /* @__PURE__ */ r(I, { children: s })
83
+ /* @__PURE__ */ r(I, { children: m })
79
84
  ] }),
80
85
  /* @__PURE__ */ r("div", { className: "close-icon-wrapper focus-visible:ring-ring absolute top-2 right-2 cursor-pointer outline-transparent focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none", children: /* @__PURE__ */ r(
81
86
  b,
@@ -93,5 +98,5 @@ const vr = ({ id: a, description: s, onClose: l, icon: m, title: c, className: d
93
98
  ) }) });
94
99
  };
95
100
  export {
96
- vr as Alert
101
+ Nr as Alert
97
102
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Avatar.d.ts.map
package/dist/Avatar.js ADDED
@@ -0,0 +1 @@
1
+
package/dist/Button.js CHANGED
@@ -4,14 +4,8 @@ import { jsxs as l, jsx as n } from "react/jsx-runtime";
4
4
  import { c as u } from "./twUtils-CRiPKpXj.js";
5
5
  import { c as v } from "./index-CRBC94ik.js";
6
6
  import { forwardRef as h } from "react";
7
- import { c as N } from "./createLucideIcon-CI1yJrZf.js";
8
- /**
9
- * @license lucide-react v0.542.0 - ISC
10
- *
11
- * This source code is licensed under the ISC license.
12
- * See the LICENSE file in the root directory of this source tree.
13
- */
14
- const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N("loader-circle", w), j = v(
7
+ import { L as N } from "./loader-circle-CvdzOiQ_.js";
8
+ const w = v(
15
9
  `
16
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
17
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
@@ -41,18 +35,18 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
41
35
  size: "default"
42
36
  }
43
37
  }
44
- ), k = h(
38
+ ), j = h(
45
39
  ({
46
- className: c,
47
- variant: o,
48
- label: r,
49
- endIcon: a,
40
+ className: g,
41
+ variant: r,
42
+ label: o,
43
+ endIcon: i,
50
44
  state: t,
51
- errorMessage: d,
52
- startIcon: i,
45
+ errorMessage: a,
46
+ startIcon: d,
53
47
  disabled: s,
54
- type: g = "button",
55
- dataTestId: p = `button-${o}`,
48
+ type: p = "button",
49
+ dataTestId: c = `button-${r}`,
56
50
  size: e,
57
51
  children: x,
58
52
  ...m
@@ -71,11 +65,11 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
71
65
  ghost: "bg-transparent text-button-ghost-text--disabled pointer-events-none"
72
66
  }
73
67
  }, f = u(
74
- j({ variant: o, state: t, size: e }),
75
- t === "error" && b.error[o || "primary"],
76
- t === "loading" && b.loading[o || "primary"],
68
+ w({ variant: r, state: t, size: e }),
69
+ t === "error" && b.error[r || "primary"],
70
+ t === "loading" && b.loading[r || "primary"],
77
71
  e,
78
- c
72
+ g
79
73
  );
80
74
  return /* @__PURE__ */ l("div", { className: u("flex flex-col justify-items-center", e), children: [
81
75
  /* @__PURE__ */ l(
@@ -83,26 +77,26 @@ const w = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], _ = N
83
77
  {
84
78
  className: f,
85
79
  ref: y,
86
- type: g,
80
+ type: p,
87
81
  "aria-disabled": s,
88
82
  disabled: s,
89
- "data-testid": p,
83
+ "data-testid": c,
90
84
  ...m,
91
85
  "data-state": t,
92
86
  children: [
93
- i && /* @__PURE__ */ n("span", { className: "flex pr-2", "aria-hidden": !0, children: i }),
94
- e === "icon" ? /* @__PURE__ */ n("span", { className: "sr-only", children: r }) : r,
95
- t === "loading" && /* @__PURE__ */ n(_, { className: "ml-2 animate-spin", size: 16 }),
96
- a && t !== "loading" && /* @__PURE__ */ n("span", { className: "flex pl-2", "aria-hidden": !0, children: a }),
87
+ d && /* @__PURE__ */ n("span", { className: "flex pr-2", "aria-hidden": !0, children: d }),
88
+ e === "icon" ? /* @__PURE__ */ n("span", { className: "sr-only", children: o }) : o,
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 }),
97
91
  e === "icon" && x
98
92
  ]
99
93
  }
100
94
  ),
101
- t === "error" && d && /* @__PURE__ */ n("p", { className: "text-danger-100 mt-2 text-xs", role: "alert", "aria-live": "assertive", children: d })
95
+ t === "error" && a && /* @__PURE__ */ n("p", { className: "text-danger-100 mt-2 text-xs", role: "alert", "aria-live": "assertive", children: a })
102
96
  ] });
103
97
  }
104
98
  );
105
- k.displayName = "Button";
99
+ j.displayName = "Button";
106
100
  export {
107
- k as Button
101
+ j as Button
108
102
  };
@@ -1,14 +1,14 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { ReactElement, ReactNode } from 'react';
3
3
  export type DialogBaseProps = {
4
- open?: boolean;
4
+ isOpen?: boolean;
5
5
  defaultOpen?: boolean;
6
- onOpenChange?: (open: boolean) => void;
6
+ onOpenChange?: (isOpen: boolean) => void;
7
7
  children: ReactNode;
8
8
  };
9
9
  export type DialogContextValue = {
10
- open: boolean;
11
- setOpen: (open: boolean) => void;
10
+ isOpen: boolean;
11
+ setIsOpen: (isOpen: boolean) => void;
12
12
  contentId: string;
13
13
  titleId: string;
14
14
  descriptionId: string;
@@ -17,7 +17,7 @@ export type TriggerableElement = ReactElement<{
17
17
  onClick?: () => void;
18
18
  }>;
19
19
  export declare function useDialogContext(): DialogContextValue;
20
- export declare function DialogBase({ open: controlledOpen, defaultOpen, onOpenChange, children }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function DialogBase({ isOpen: controlledOpen, defaultOpen, onOpenChange, children }: DialogBaseProps): import("react/jsx-runtime").JSX.Element;
21
21
  type DialogTriggerProps = {
22
22
  children: ReactNode;
23
23
  asChild?: boolean;