@spear-ai/spectral 1.3.42 → 1.3.44

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 (308) hide show
  1. package/dist/.js +152 -106
  2. package/dist/Accordion/AccordionBase.d.ts +8 -8
  3. package/dist/Alert/AlertBase.d.ts +14 -0
  4. package/dist/Alert/AlertBase.js +63 -0
  5. package/dist/Alert.d.ts +12 -0
  6. package/dist/Alert.js +102 -0
  7. package/dist/Avatar.d.ts +2 -0
  8. package/dist/Avatar.js +1 -0
  9. package/dist/Badge/BadgeBase.d.ts +1 -1
  10. package/dist/Button.d.ts +2 -2
  11. package/dist/Button.js +24 -30
  12. package/dist/Checkbox/CheckboxBase.d.ts +5 -5
  13. package/dist/Dialog/DialogBase.d.ts +7 -7
  14. package/dist/Dialog/DialogBase.js +87 -86
  15. package/dist/Dialog.d.ts +1 -1
  16. package/dist/Drawer.d.ts +1 -1
  17. package/dist/Drawer.js +141 -139
  18. package/dist/Icons/AnnotationsIcon.d.ts +1 -1
  19. package/dist/Icons/AnnotationsIcon.js +8 -7
  20. package/dist/Icons/CalendarIcon.d.ts +1 -1
  21. package/dist/Icons/CalendarIcon.js +9 -8
  22. package/dist/Icons/CheckCircleIcon.d.ts +3 -0
  23. package/dist/Icons/CheckCircleIcon.js +29 -0
  24. package/dist/Icons/CheckSquareIcon.d.ts +3 -0
  25. package/dist/Icons/CheckSquareIcon.js +29 -0
  26. package/dist/Icons/ChevronDownIcon.d.ts +3 -0
  27. package/dist/Icons/ChevronDownIcon.js +28 -0
  28. package/dist/Icons/ChevronUpIcon.d.ts +3 -0
  29. package/dist/Icons/ChevronUpIcon.js +28 -0
  30. package/dist/Icons/ClockIcon.d.ts +1 -1
  31. package/dist/Icons/ClockIcon.js +9 -8
  32. package/dist/Icons/CloseCircleIcon.d.ts +3 -0
  33. package/dist/Icons/CloseCircleIcon.js +29 -0
  34. package/dist/Icons/CloseIcon.d.ts +3 -0
  35. package/dist/Icons/CloseIcon.js +28 -0
  36. package/dist/Icons/DashboardIcon.d.ts +1 -1
  37. package/dist/Icons/DashboardIcon.js +9 -8
  38. package/dist/Icons/DeleteIcon.d.ts +1 -1
  39. package/dist/Icons/DeleteIcon.js +9 -8
  40. package/dist/Icons/DurationIcon.d.ts +1 -1
  41. package/dist/Icons/DurationIcon.js +9 -8
  42. package/dist/Icons/EraserIcon.d.ts +1 -1
  43. package/dist/Icons/EraserIcon.js +9 -8
  44. package/dist/Icons/ErrorIcon.d.ts +3 -0
  45. package/dist/Icons/ErrorIcon.js +30 -0
  46. package/dist/Icons/EyeClosedIcon.d.ts +3 -0
  47. package/dist/Icons/EyeClosedIcon.js +32 -0
  48. package/dist/Icons/EyeClosedIcon2.d.ts +3 -0
  49. package/dist/Icons/EyeClosedIcon2.js +30 -0
  50. package/dist/Icons/EyeOpenIcon.d.ts +3 -0
  51. package/dist/Icons/EyeOpenIcon.js +28 -0
  52. package/dist/Icons/GoToFirstIcon.d.ts +1 -1
  53. package/dist/Icons/GoToFirstIcon.js +9 -8
  54. package/dist/Icons/GoToLastIcon.d.ts +1 -1
  55. package/dist/Icons/GoToLastIcon.js +9 -8
  56. package/dist/Icons/HarmonicCursorsIcon.d.ts +1 -1
  57. package/dist/Icons/HarmonicCursorsIcon.js +9 -8
  58. package/dist/Icons/IconBase.d.ts +3 -3
  59. package/dist/Icons/InfoIcon.d.ts +1 -1
  60. package/dist/Icons/InfoIcon.js +9 -8
  61. package/dist/Icons/LabelIcon.d.ts +1 -1
  62. package/dist/Icons/LabelIcon.js +8 -7
  63. package/dist/Icons/LassoIcon.d.ts +1 -1
  64. package/dist/Icons/LassoIcon.js +9 -8
  65. package/dist/Icons/LineToolIcon.d.ts +1 -1
  66. package/dist/Icons/LineToolIcon.js +9 -8
  67. package/dist/Icons/LiveViewIcon.d.ts +1 -1
  68. package/dist/Icons/LiveViewIcon.js +9 -8
  69. package/dist/Icons/LoaderIcon.d.ts +3 -0
  70. package/dist/Icons/LoaderIcon.js +53 -0
  71. package/dist/Icons/LocationIcon.d.ts +1 -1
  72. package/dist/Icons/LocationIcon.js +9 -8
  73. package/dist/Icons/LogoutIcon.d.ts +1 -1
  74. package/dist/Icons/LogoutIcon.js +8 -7
  75. package/dist/Icons/MetadataIcon.d.ts +1 -1
  76. package/dist/Icons/MetadataIcon.js +8 -7
  77. package/dist/Icons/OntologyIcon.d.ts +1 -1
  78. package/dist/Icons/OntologyIcon.js +9 -8
  79. package/dist/Icons/PanelIcon.d.ts +1 -1
  80. package/dist/Icons/PanelIcon.js +9 -8
  81. package/dist/Icons/PlayIcon.d.ts +1 -1
  82. package/dist/Icons/PlayIcon.js +8 -7
  83. package/dist/Icons/PlusIcon.d.ts +1 -1
  84. package/dist/Icons/PlusIcon.js +8 -7
  85. package/dist/Icons/ResetIcon.d.ts +1 -1
  86. package/dist/Icons/ResetIcon.js +8 -7
  87. package/dist/Icons/ScissorsIcon.d.ts +1 -1
  88. package/dist/Icons/ScissorsIcon.js +9 -8
  89. package/dist/Icons/SettingsIcon.d.ts +1 -1
  90. package/dist/Icons/SettingsIcon.js +9 -8
  91. package/dist/Icons/TrashIcon.d.ts +1 -1
  92. package/dist/Icons/TrashIcon.js +8 -7
  93. package/dist/Icons/UndoIcon.d.ts +1 -1
  94. package/dist/Icons/UndoIcon.js +8 -7
  95. package/dist/Icons/UserIcon.d.ts +1 -1
  96. package/dist/Icons/UserIcon.js +8 -7
  97. package/dist/Icons/WarningIcon.d.ts +1 -1
  98. package/dist/Icons/WarningIcon.js +8 -7
  99. package/dist/Icons/ZoomAllIcon.d.ts +1 -1
  100. package/dist/Icons/ZoomAllIcon.js +9 -8
  101. package/dist/Icons/ZoomXIcon.d.ts +1 -1
  102. package/dist/Icons/ZoomXIcon.js +9 -8
  103. package/dist/Icons/ZoomYIcon.d.ts +1 -1
  104. package/dist/Icons/ZoomYIcon.js +9 -8
  105. package/dist/Icons/index.d.ts +11 -0
  106. package/dist/Icons.js +82 -60
  107. package/dist/Input/InputUtils.d.ts +15 -0
  108. package/dist/Input/InputUtils.js +54 -0
  109. package/dist/Input.d.ts +24 -0
  110. package/dist/Input.js +170 -0
  111. package/dist/Label.d.ts +2 -2
  112. package/dist/MultiSelect/MultiSelectBase.d.ts +34 -0
  113. package/dist/MultiSelect/MultiSelectBase.js +321 -0
  114. package/dist/MultiSelect/MutiSelect.d.ts +15 -0
  115. package/dist/MultiSelect/MutiSelect.js +30 -0
  116. package/dist/Popover.d.ts +2 -2
  117. package/dist/Popover.js +61 -59
  118. package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +5 -3
  119. package/dist/RadioButtonGroup/RadioButtonGroupBase.js +43 -40
  120. package/dist/RadioButtonGroup.d.ts +2 -2
  121. package/dist/RadioButtonGroup.js +6 -6
  122. package/dist/RadioGroup/RadioGroupBase.d.ts +7 -7
  123. package/dist/RadioGroup.d.ts +1 -1
  124. package/dist/Select/SelectBase.d.ts +26 -0
  125. package/dist/Select/SelectBase.js +233 -0
  126. package/dist/Select.d.ts +50 -0
  127. package/dist/Select.js +136 -0
  128. package/dist/Skeleton.d.ts +1 -1
  129. package/dist/Slider/SliderBase.d.ts +7 -7
  130. package/dist/SpectralProvider.d.ts +1 -1
  131. package/dist/Switch/SwitchBase.d.ts +4 -4
  132. package/dist/Switch.d.ts +2 -2
  133. package/dist/Textarea/TextareaUtils.d.ts +19 -0
  134. package/dist/Textarea/TextareaUtils.js +54 -0
  135. package/dist/Textarea.d.ts +17 -0
  136. package/dist/Textarea.js +160 -0
  137. package/dist/Toggle/ToggleBase.d.ts +5 -4
  138. package/dist/Toggle/ToggleBase.js +30 -28
  139. package/dist/Toggle.d.ts +2 -2
  140. package/dist/ToggleGroup/ToggleGroupBase.d.ts +2 -2
  141. package/dist/ToggleGroup.d.ts +3 -3
  142. package/dist/Tooltip/TooltipBase.d.ts +8 -8
  143. package/dist/Tooltip.d.ts +1 -1
  144. package/dist/chevron-down-UbkgS76q.js +19 -0
  145. package/dist/components/Accordion/AccordionBase.d.ts +8 -8
  146. package/dist/components/Alert/Alert.d.ts +12 -0
  147. package/dist/components/Alert/Alert.d.ts.map +1 -0
  148. package/dist/components/Alert/AlertBase.d.ts +14 -0
  149. package/dist/components/Alert/AlertBase.d.ts.map +1 -0
  150. package/dist/components/Avatar/Avatar.d.ts +2 -0
  151. package/dist/components/Avatar/Avatar.d.ts.map +1 -0
  152. package/dist/components/Badge/BadgeBase.d.ts +1 -1
  153. package/dist/components/Button/Button.d.ts +2 -2
  154. package/dist/components/Checkbox/CheckboxBase.d.ts +5 -5
  155. package/dist/components/Dialog/Dialog.d.ts +1 -1
  156. package/dist/components/Dialog/DialogBase.d.ts +7 -7
  157. package/dist/components/Dialog/DialogBase.d.ts.map +1 -1
  158. package/dist/components/Drawer/Drawer.d.ts +1 -1
  159. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  160. package/dist/components/Icons/AnnotationsIcon.d.ts +1 -1
  161. package/dist/components/Icons/AnnotationsIcon.d.ts.map +1 -1
  162. package/dist/components/Icons/CalendarIcon.d.ts +1 -1
  163. package/dist/components/Icons/CalendarIcon.d.ts.map +1 -1
  164. package/dist/components/Icons/CheckCircleIcon.d.ts +3 -0
  165. package/dist/components/Icons/CheckCircleIcon.d.ts.map +1 -0
  166. package/dist/components/Icons/CheckSquareIcon.d.ts +3 -0
  167. package/dist/components/Icons/CheckSquareIcon.d.ts.map +1 -0
  168. package/dist/components/Icons/ChevronDownIcon.d.ts +3 -0
  169. package/dist/components/Icons/ChevronDownIcon.d.ts.map +1 -0
  170. package/dist/components/Icons/ChevronUpIcon.d.ts +3 -0
  171. package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
  172. package/dist/components/Icons/ClockIcon.d.ts +1 -1
  173. package/dist/components/Icons/ClockIcon.d.ts.map +1 -1
  174. package/dist/components/Icons/CloseCircleIcon.d.ts +3 -0
  175. package/dist/components/Icons/CloseCircleIcon.d.ts.map +1 -0
  176. package/dist/components/Icons/CloseIcon.d.ts +3 -0
  177. package/dist/components/Icons/CloseIcon.d.ts.map +1 -0
  178. package/dist/components/Icons/DashboardIcon.d.ts +1 -1
  179. package/dist/components/Icons/DashboardIcon.d.ts.map +1 -1
  180. package/dist/components/Icons/DeleteIcon.d.ts +1 -1
  181. package/dist/components/Icons/DeleteIcon.d.ts.map +1 -1
  182. package/dist/components/Icons/DurationIcon.d.ts +1 -1
  183. package/dist/components/Icons/DurationIcon.d.ts.map +1 -1
  184. package/dist/components/Icons/EraserIcon.d.ts +1 -1
  185. package/dist/components/Icons/EraserIcon.d.ts.map +1 -1
  186. package/dist/components/Icons/ErrorIcon.d.ts +3 -0
  187. package/dist/components/Icons/ErrorIcon.d.ts.map +1 -0
  188. package/dist/components/Icons/EyeClosedIcon.d.ts +3 -0
  189. package/dist/components/Icons/EyeClosedIcon.d.ts.map +1 -0
  190. package/dist/components/Icons/EyeClosedIcon2.d.ts +3 -0
  191. package/dist/components/Icons/EyeClosedIcon2.d.ts.map +1 -0
  192. package/dist/components/Icons/EyeOpenIcon.d.ts +3 -0
  193. package/dist/components/Icons/EyeOpenIcon.d.ts.map +1 -0
  194. package/dist/components/Icons/GoToFirstIcon.d.ts +1 -1
  195. package/dist/components/Icons/GoToFirstIcon.d.ts.map +1 -1
  196. package/dist/components/Icons/GoToLastIcon.d.ts +1 -1
  197. package/dist/components/Icons/GoToLastIcon.d.ts.map +1 -1
  198. package/dist/components/Icons/HarmonicCursorsIcon.d.ts +1 -1
  199. package/dist/components/Icons/HarmonicCursorsIcon.d.ts.map +1 -1
  200. package/dist/components/Icons/IconBase.d.ts +3 -3
  201. package/dist/components/Icons/InfoIcon.d.ts +1 -1
  202. package/dist/components/Icons/InfoIcon.d.ts.map +1 -1
  203. package/dist/components/Icons/LabelIcon.d.ts +1 -1
  204. package/dist/components/Icons/LabelIcon.d.ts.map +1 -1
  205. package/dist/components/Icons/LassoIcon.d.ts +1 -1
  206. package/dist/components/Icons/LassoIcon.d.ts.map +1 -1
  207. package/dist/components/Icons/LineToolIcon.d.ts +1 -1
  208. package/dist/components/Icons/LineToolIcon.d.ts.map +1 -1
  209. package/dist/components/Icons/LiveViewIcon.d.ts +1 -1
  210. package/dist/components/Icons/LiveViewIcon.d.ts.map +1 -1
  211. package/dist/components/Icons/LoaderIcon.d.ts +3 -0
  212. package/dist/components/Icons/LoaderIcon.d.ts.map +1 -0
  213. package/dist/components/Icons/LocationIcon.d.ts +1 -1
  214. package/dist/components/Icons/LocationIcon.d.ts.map +1 -1
  215. package/dist/components/Icons/LogoutIcon.d.ts +1 -1
  216. package/dist/components/Icons/LogoutIcon.d.ts.map +1 -1
  217. package/dist/components/Icons/MetadataIcon.d.ts +1 -1
  218. package/dist/components/Icons/MetadataIcon.d.ts.map +1 -1
  219. package/dist/components/Icons/OntologyIcon.d.ts +1 -1
  220. package/dist/components/Icons/OntologyIcon.d.ts.map +1 -1
  221. package/dist/components/Icons/PanelIcon.d.ts +1 -1
  222. package/dist/components/Icons/PanelIcon.d.ts.map +1 -1
  223. package/dist/components/Icons/PlayIcon.d.ts +1 -1
  224. package/dist/components/Icons/PlayIcon.d.ts.map +1 -1
  225. package/dist/components/Icons/PlusIcon.d.ts +1 -1
  226. package/dist/components/Icons/PlusIcon.d.ts.map +1 -1
  227. package/dist/components/Icons/ResetIcon.d.ts +1 -1
  228. package/dist/components/Icons/ResetIcon.d.ts.map +1 -1
  229. package/dist/components/Icons/ScissorsIcon.d.ts +1 -1
  230. package/dist/components/Icons/ScissorsIcon.d.ts.map +1 -1
  231. package/dist/components/Icons/SettingsIcon.d.ts +1 -1
  232. package/dist/components/Icons/SettingsIcon.d.ts.map +1 -1
  233. package/dist/components/Icons/TrashIcon.d.ts +1 -1
  234. package/dist/components/Icons/TrashIcon.d.ts.map +1 -1
  235. package/dist/components/Icons/UndoIcon.d.ts +1 -1
  236. package/dist/components/Icons/UndoIcon.d.ts.map +1 -1
  237. package/dist/components/Icons/UserIcon.d.ts +1 -1
  238. package/dist/components/Icons/UserIcon.d.ts.map +1 -1
  239. package/dist/components/Icons/WarningIcon.d.ts +1 -1
  240. package/dist/components/Icons/WarningIcon.d.ts.map +1 -1
  241. package/dist/components/Icons/ZoomAllIcon.d.ts +1 -1
  242. package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
  243. package/dist/components/Icons/ZoomXIcon.d.ts +1 -1
  244. package/dist/components/Icons/ZoomXIcon.d.ts.map +1 -1
  245. package/dist/components/Icons/ZoomYIcon.d.ts +1 -1
  246. package/dist/components/Icons/ZoomYIcon.d.ts.map +1 -1
  247. package/dist/components/Icons/iconTypes.d.ts +3 -3
  248. package/dist/components/Icons/iconTypes.d.ts.map +1 -1
  249. package/dist/components/Icons/index.d.ts +11 -0
  250. package/dist/components/Icons/index.d.ts.map +1 -1
  251. package/dist/components/Input/Input.d.ts +24 -0
  252. package/dist/components/Input/Input.d.ts.map +1 -0
  253. package/dist/components/Input/InputUtils.d.ts +15 -0
  254. package/dist/components/Input/InputUtils.d.ts.map +1 -0
  255. package/dist/components/Label/Label.d.ts +2 -2
  256. package/dist/components/MultiSelect/MultiSelectBase.d.ts +34 -0
  257. package/dist/components/MultiSelect/MultiSelectBase.d.ts.map +1 -0
  258. package/dist/components/MultiSelect/MutiSelect.d.ts +15 -0
  259. package/dist/components/MultiSelect/MutiSelect.d.ts.map +1 -0
  260. package/dist/components/Popover/Popover.d.ts +2 -2
  261. package/dist/components/Popover/Popover.d.ts.map +1 -1
  262. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
  263. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -1
  264. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts +5 -3
  265. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -1
  266. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  267. package/dist/components/RadioGroup/RadioGroupBase.d.ts +7 -7
  268. package/dist/components/Select/Select.d.ts +50 -0
  269. package/dist/components/Select/Select.d.ts.map +1 -0
  270. package/dist/components/Select/SelectBase.d.ts +26 -0
  271. package/dist/components/Select/SelectBase.d.ts.map +1 -0
  272. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  273. package/dist/components/Slider/SliderBase.d.ts +7 -7
  274. package/dist/components/SpectralProvider/SpectralProvider.d.ts +1 -1
  275. package/dist/components/Switch/Switch.d.ts +2 -2
  276. package/dist/components/Switch/SwitchBase.d.ts +4 -4
  277. package/dist/components/Textarea/Textarea.d.ts +17 -0
  278. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  279. package/dist/components/Textarea/TextareaUtils.d.ts +19 -0
  280. package/dist/components/Textarea/TextareaUtils.d.ts.map +1 -0
  281. package/dist/components/Toggle/Toggle.d.ts +2 -2
  282. package/dist/components/Toggle/ToggleBase.d.ts +5 -4
  283. package/dist/components/Toggle/ToggleBase.d.ts.map +1 -1
  284. package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -3
  285. package/dist/components/ToggleGroup/ToggleGroupBase.d.ts +2 -2
  286. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  287. package/dist/components/Tooltip/TooltipBase.d.ts +8 -8
  288. package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts +1 -1
  289. package/dist/features/LabelingToolbar/LabelingToolbar.d.ts +1 -1
  290. package/dist/features/LabelingTools.js +19 -8
  291. package/dist/features/SensorMetadata.js +21 -10
  292. package/dist/features/SettingsPopover/SettingsPopover.d.ts.map +1 -1
  293. package/dist/features/SettingsPopover.js +36 -24
  294. package/dist/hooks/useAccordionAutoScroll.d.ts +1 -1
  295. package/dist/hooks/useOutsideClick.d.ts +1 -1
  296. package/dist/index.d.ts +3 -1
  297. package/dist/index.d.ts.map +1 -1
  298. package/dist/loader-circle-CvdzOiQ_.js +11 -0
  299. package/dist/primitives/label.d.ts +2 -2
  300. package/dist/primitives/slot.d.ts +3 -3
  301. package/dist/styles/base-colors.css +52 -42
  302. package/dist/styles/main.css +1 -1
  303. package/dist/utils/formFieldUtils.d.ts +70 -0
  304. package/dist/utils/formFieldUtils.d.ts.map +1 -0
  305. package/dist/utils/formFieldUtils.js +178 -0
  306. package/dist/utils/refs.d.ts +1 -1
  307. package/dist/x-BBpi7a_7.js +14 -0
  308. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  import { AsChildProp } from '../../primitives/slot';
2
- import { ButtonHTMLAttributes, HTMLAttributes } from '../../../node_modules/react';
2
+ import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
3
  type Orientation = 'horizontal' | 'vertical';
4
4
  type Dir = 'ltr' | 'rtl';
5
5
  export type SliderBaseProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
@@ -18,7 +18,7 @@ export type SliderBaseProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
18
18
  form?: string;
19
19
  required?: boolean;
20
20
  };
21
- export declare const SliderBase: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
21
+ export declare const SliderBase: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
22
22
  value?: number[];
23
23
  defaultValue?: number[];
24
24
  onValueChange?: (values: number[]) => void;
@@ -33,22 +33,22 @@ export declare const SliderBase: import('../../../node_modules/react').ForwardRe
33
33
  name?: string;
34
34
  form?: string;
35
35
  required?: boolean;
36
- } & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
36
+ } & import('react').RefAttributes<HTMLDivElement>>;
37
37
  export type SliderTrackProps = HTMLAttributes<HTMLDivElement> & AsChildProp;
38
- export declare const SliderTrack: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
38
+ export declare const SliderTrack: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('react').RefAttributes<HTMLDivElement>>;
39
39
  export type SliderRangeProps = HTMLAttributes<HTMLDivElement> & AsChildProp;
40
- export declare const SliderRange: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
40
+ export declare const SliderRange: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('react').RefAttributes<HTMLDivElement>>;
41
41
  export type SliderThumbProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & AsChildProp & {
42
42
  index?: number;
43
43
  'aria-label'?: string;
44
44
  'aria-labelledby'?: string;
45
45
  'aria-valuetext'?: string;
46
46
  };
47
- export declare const SliderThumb: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & AsChildProp & {
47
+ export declare const SliderThumb: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & AsChildProp & {
48
48
  index?: number;
49
49
  'aria-label'?: string;
50
50
  'aria-labelledby'?: string;
51
51
  'aria-valuetext'?: string;
52
- } & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
52
+ } & import('react').RefAttributes<HTMLButtonElement>>;
53
53
  export {};
54
54
  //# sourceMappingURL=SliderBase.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from '../../../node_modules/react';
1
+ import { FC, ReactNode } from 'react';
2
2
  export interface SpectralProviderProps {
3
3
  children: ReactNode;
4
4
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { AsChildProp } from '../../primitives/slot';
2
- import { ButtonHTMLAttributes, HTMLAttributes } from '../../../node_modules/react';
2
+ import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
3
  type BaseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value'>;
4
4
  export type SwitchProps = BaseButtonProps & AsChildProp & {
5
5
  checked?: boolean;
@@ -10,7 +10,7 @@ export type SwitchProps = BaseButtonProps & AsChildProp & {
10
10
  required?: boolean;
11
11
  form?: string;
12
12
  };
13
- export declare const Switch: import('../../../node_modules/react').ForwardRefExoticComponent<BaseButtonProps & AsChildProp & {
13
+ export declare const Switch: import('react').ForwardRefExoticComponent<BaseButtonProps & AsChildProp & {
14
14
  checked?: boolean;
15
15
  defaultChecked?: boolean;
16
16
  onCheckedChange?: (checked: boolean) => void;
@@ -18,8 +18,8 @@ export declare const Switch: import('../../../node_modules/react').ForwardRefExo
18
18
  value?: string;
19
19
  required?: boolean;
20
20
  form?: string;
21
- } & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
21
+ } & import('react').RefAttributes<HTMLButtonElement>>;
22
22
  export type SwitchThumbProps = HTMLAttributes<HTMLSpanElement> & AsChildProp;
23
- export declare const SwitchThumb: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & AsChildProp & import('../../../node_modules/react').RefAttributes<HTMLSpanElement>>;
23
+ export declare const SwitchThumb: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & AsChildProp & import('react').RefAttributes<HTMLSpanElement>>;
24
24
  export {};
25
25
  //# sourceMappingURL=SwitchBase.d.ts.map
package/dist/Switch.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SwitchProps as SwitchBaseProps } from './SwitchBase';
2
- export declare const Switch: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<SwitchBaseProps, "onCheckedChange"> & {
2
+ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<SwitchBaseProps, "onCheckedChange"> & {
3
3
  labelPosition?: "left" | "right";
4
4
  labelText: string;
5
5
  id: string;
@@ -8,5 +8,5 @@ export declare const Switch: import('../../../node_modules/react').ForwardRefExo
8
8
  required?: boolean;
9
9
  value?: string;
10
10
  variant?: "default" | "squared";
11
- } & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
11
+ } & import('react').RefAttributes<HTMLButtonElement>>;
12
12
  //# sourceMappingURL=Switch.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { ChangeEvent, ClipboardEvent, FocusEvent } from 'react';
2
+ export type UseTextareaOptions = {
3
+ maxLength: number;
4
+ value: string;
5
+ onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
6
+ onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
7
+ onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
8
+ };
9
+ export type UseTextareaReturn = {
10
+ handleFocus: (e: FocusEvent<HTMLTextAreaElement>) => void;
11
+ handleBlur: (e: FocusEvent<HTMLTextAreaElement>) => void;
12
+ handleChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;
13
+ handlePaste: (e: ClipboardEvent<HTMLTextAreaElement>) => void;
14
+ };
15
+ /**
16
+ * Custom hook for textarea functionality with character limits and event handling
17
+ */
18
+ export declare const useTextarea: ({ maxLength, value, onChange, onFocus, onBlur }: UseTextareaOptions) => UseTextareaReturn;
19
+ //# sourceMappingURL=TextareaUtils.d.ts.map
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { useCallback as i } from "react";
3
+ const v = (t, s, a) => {
4
+ t.target.value.length <= s && a?.(t);
5
+ }, V = (t, s, a, r) => {
6
+ const c = t.clipboardData.getData("text"), o = s || "", n = t.currentTarget, l = n.selectionStart || 0, u = n.selectionEnd || 0, e = o.substring(0, l), d = o.substring(u);
7
+ if ((e + c + d).length > a) {
8
+ t.preventDefault();
9
+ const b = u - l, f = a - o.length + b, p = c.substring(0, Math.max(0, f)), g = e + p + d, T = {
10
+ target: { value: g, name: n.name },
11
+ currentTarget: { value: g, name: n.name },
12
+ type: "change",
13
+ preventDefault: () => {
14
+ },
15
+ stopPropagation: () => {
16
+ }
17
+ };
18
+ r?.(T), setTimeout(() => {
19
+ const h = l + p.length;
20
+ n.setSelectionRange(h, h);
21
+ }, 0);
22
+ }
23
+ }, m = ({ maxLength: t, value: s, onChange: a, onFocus: r, onBlur: c }) => {
24
+ const o = i(
25
+ (e) => {
26
+ r?.(e);
27
+ },
28
+ [r]
29
+ ), n = i(
30
+ (e) => {
31
+ c?.(e);
32
+ },
33
+ [c]
34
+ ), l = i(
35
+ (e) => {
36
+ v(e, t, a);
37
+ },
38
+ [t, a]
39
+ ), u = i(
40
+ (e) => {
41
+ V(e, s, t, a);
42
+ },
43
+ [s, t, a]
44
+ );
45
+ return {
46
+ handleFocus: o,
47
+ handleBlur: n,
48
+ handleChange: l,
49
+ handlePaste: u
50
+ };
51
+ };
52
+ export {
53
+ m as useTextarea
54
+ };
@@ -0,0 +1,17 @@
1
+ import { ChangeEvent, ComponentProps, FocusEvent } from 'react';
2
+ export type TextareaState = 'default' | 'error' | 'disabled' | 'loading';
3
+ export type TextareaProps = ComponentProps<'textarea'> & {
4
+ className?: string;
5
+ state?: TextareaState;
6
+ errorMessage?: string;
7
+ name: string;
8
+ id?: string;
9
+ label: string;
10
+ value?: string;
11
+ maxLength?: number;
12
+ onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
13
+ onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
14
+ onChange?: (e: ChangeEvent<HTMLTextAreaElement>) => void;
15
+ };
16
+ export declare const Textarea: import('react').ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
17
+ //# sourceMappingURL=Textarea.d.ts.map
@@ -0,0 +1,160 @@
1
+ "use client";
2
+ import "./styles/main.css";
3
+ import { jsxs as d, jsx as a } from "react/jsx-runtime";
4
+ import { useTextarea as D } from "./Textarea/TextareaUtils.js";
5
+ import "./Icons/AnnotationsIcon.js";
6
+ import "./Icons/CalendarIcon.js";
7
+ import "./Icons/CheckCircleIcon.js";
8
+ import "./Icons/CheckSquareIcon.js";
9
+ import "./Icons/ChevronDownIcon.js";
10
+ import "./Icons/ChevronUpIcon.js";
11
+ import "./Icons/ClockIcon.js";
12
+ import "./Icons/CloseCircleIcon.js";
13
+ import "./Icons/CloseIcon.js";
14
+ import "./Icons/DashboardIcon.js";
15
+ import "./Icons/DeleteIcon.js";
16
+ import "./Icons/DurationIcon.js";
17
+ import "./Icons/EraserIcon.js";
18
+ import "./Icons/ErrorIcon.js";
19
+ import "./Icons/EyeClosedIcon.js";
20
+ import "./Icons/EyeClosedIcon2.js";
21
+ import "./Icons/EyeOpenIcon.js";
22
+ import "./Icons/GoToFirstIcon.js";
23
+ import "./Icons/GoToLastIcon.js";
24
+ import "./Icons/HarmonicCursorsIcon.js";
25
+ import "./Icons/InfoIcon.js";
26
+ import "./Icons/LabelIcon.js";
27
+ import "./Icons/LassoIcon.js";
28
+ import "./Icons/LineToolIcon.js";
29
+ import "./Icons/LiveViewIcon.js";
30
+ import { LoaderIcon as F } from "./Icons/LoaderIcon.js";
31
+ import "./Icons/LocationIcon.js";
32
+ import "./Icons/LogoutIcon.js";
33
+ import "./Icons/MetadataIcon.js";
34
+ import "./Icons/OntologyIcon.js";
35
+ import "./Icons/PanelIcon.js";
36
+ import "./Icons/PlayIcon.js";
37
+ import "./Icons/PlusIcon.js";
38
+ import "./Icons/ResetIcon.js";
39
+ import "./Icons/ScissorsIcon.js";
40
+ import "./Icons/SettingsIcon.js";
41
+ import "./Icons/TrashIcon.js";
42
+ import "./Icons/UndoIcon.js";
43
+ import "./Icons/UserIcon.js";
44
+ import "./Icons/WarningIcon.js";
45
+ import "./Icons/ZoomAllIcon.js";
46
+ import "./Icons/ZoomXIcon.js";
47
+ import "./Icons/ZoomYIcon.js";
48
+ import { c as l } from "./twUtils-CRiPKpXj.js";
49
+ import { forwardRef as L, useId as M, useRef as O } from "react";
50
+ const _ = "absolute right-4 top-4", E = (t) => t || "off", G = (t) => ({
51
+ error: "border-danger hover:border-danger focus-visible:border-danger focus-visible:ring-danger",
52
+ loading: "border-input-border--disabled cursor-wait pointer-events-none",
53
+ disabled: "pointer-events-none border-input-border--disabled bg-input-bg--disabled text-input-text--disabled",
54
+ default: ""
55
+ })[t], V = (t, e) => {
56
+ const r = "absolute bottom-2 right-3 text-xs pointer-events-none z-10 tabular-nums", o = t >= e ? "text-danger" : "text-input-text-secondary";
57
+ return l(r, o);
58
+ }, q = L(
59
+ ({
60
+ className: t,
61
+ state: e = "default",
62
+ errorMessage: r,
63
+ name: o,
64
+ id: f,
65
+ label: g,
66
+ value: s = "",
67
+ onFocus: x,
68
+ onBlur: h,
69
+ onChange: v,
70
+ disabled: C,
71
+ required: p,
72
+ maxLength: i = 280,
73
+ autoComplete: N,
74
+ autoCorrect: I = "off",
75
+ ...m
76
+ }, y) => {
77
+ const S = M(), c = f || `${o}-${S}`, u = `${c}-error`, w = O(null), $ = y || w, { handleFocus: R, handleBlur: k, handleChange: z, handlePaste: A } = D({
78
+ maxLength: i,
79
+ value: s,
80
+ onChange: v,
81
+ onFocus: x,
82
+ onBlur: h
83
+ }), P = C || e === "disabled", b = e === "error", T = e === "loading", n = s?.length || 0, j = l(
84
+ "peer flex h-24 w-full resize-none rounded-lg border border-input-border bg-input-bg px-4 py-3 text-sm",
85
+ "hover:border-input-border--hover focus:border-input-border--focus focus:outline-none",
86
+ "focus:ring-2 focus:ring-black focus:ring-offset-2",
87
+ "disabled:pointer-events-none disabled:border-input-border--disabled disabled:bg-input-bg--disabled disabled:text-input-text--disabled",
88
+ "transition duration-200 focus-visible:border-input-border--focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2",
89
+ "placeholder:text-input-text-placeholder",
90
+ G(e),
91
+ t
92
+ ), B = () => ({
93
+ "--textarea-min-height": "6rem",
94
+ "--textarea-max-height": "12rem",
95
+ "--textarea-border-radius": "0.5rem"
96
+ });
97
+ return /* @__PURE__ */ d("div", { className: "w-full", "data-testid": "textarea-root", children: [
98
+ /* @__PURE__ */ d("div", { className: "relative", "data-testid": "textarea-wrapper", children: [
99
+ /* @__PURE__ */ a(
100
+ "textarea",
101
+ {
102
+ ref: $,
103
+ name: o,
104
+ id: c,
105
+ value: s,
106
+ disabled: P,
107
+ required: p,
108
+ "aria-invalid": b,
109
+ "aria-required": p,
110
+ "aria-describedby": l(b && u, m["aria-describedby"]),
111
+ autoComplete: E(N),
112
+ className: j,
113
+ onFocus: R,
114
+ onBlur: k,
115
+ onChange: z,
116
+ onPaste: A,
117
+ placeholder: g,
118
+ ...m,
119
+ "data-testid": "textarea-textarea",
120
+ "data-state": e,
121
+ autoCorrect: I,
122
+ "aria-multiline": "true",
123
+ spellCheck: "true",
124
+ style: B()
125
+ }
126
+ ),
127
+ T && /* @__PURE__ */ a("div", { className: _, "data-testid": "textarea-loading-icon", children: /* @__PURE__ */ a(F, { size: 24 }) }),
128
+ /* @__PURE__ */ d(
129
+ "div",
130
+ {
131
+ className: V(n, i),
132
+ role: "status",
133
+ "aria-live": "polite",
134
+ "aria-label": `${n} of ${i} characters used`,
135
+ children: [
136
+ n,
137
+ "/",
138
+ i
139
+ ]
140
+ }
141
+ )
142
+ ] }),
143
+ e === "error" && r && /* @__PURE__ */ a(
144
+ "p",
145
+ {
146
+ id: u,
147
+ className: "text-danger mt-1.5 text-sm",
148
+ "data-testid": "textarea-error-message",
149
+ "aria-live": "polite",
150
+ "aria-atomic": "true",
151
+ children: r
152
+ }
153
+ )
154
+ ] });
155
+ }
156
+ );
157
+ q.displayName = "Textarea";
158
+ export {
159
+ q as Textarea
160
+ };
@@ -1,14 +1,15 @@
1
- import { ButtonHTMLAttributes } from '../../../node_modules/react';
2
- export type ToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & {
1
+ import { AsChildProp } from '../../primitives/slot';
2
+ import { ButtonHTMLAttributes } from 'react';
3
+ export type ToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & AsChildProp & {
3
4
  pressed?: boolean;
4
5
  defaultPressed?: boolean;
5
6
  onPressedChange?: (pressed: boolean) => void;
6
7
  disabled?: boolean;
7
8
  };
8
- export declare const ToggleBase: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> & {
9
+ export declare const ToggleBase: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> & AsChildProp & {
9
10
  pressed?: boolean;
10
11
  defaultPressed?: boolean;
11
12
  onPressedChange?: (pressed: boolean) => void;
12
13
  disabled?: boolean;
13
- } & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
14
+ } & import('react').RefAttributes<HTMLButtonElement>>;
14
15
  //# sourceMappingURL=ToggleBase.d.ts.map
@@ -1,52 +1,54 @@
1
1
  "use client";
2
2
  import "../styles/main.css";
3
3
  import { jsx as h } from "react/jsx-runtime";
4
- import { useControllableState as k } from "../utils/shared.js";
5
- import { forwardRef as C, useCallback as f } from "react";
6
- const y = C(function({
7
- pressed: l,
8
- defaultPressed: u = !1,
9
- onPressedChange: d,
4
+ import { Slot as k } from "../primitives/slot.js";
5
+ import { useControllableState as y } from "../utils/shared.js";
6
+ import { forwardRef as P, useCallback as f } from "react";
7
+ const B = P(function({
8
+ pressed: u,
9
+ defaultPressed: d = !1,
10
+ onPressedChange: p,
10
11
  disabled: t,
11
12
  className: i,
12
- onKeyDown: a,
13
- onClick: n,
14
- type: p = "button",
13
+ onKeyDown: n,
14
+ onClick: a,
15
+ type: m = "button",
16
+ asChild: s = !1,
15
17
  ...c
16
18
  }, g) {
17
- const [r, s] = k({
18
- value: l,
19
- defaultValue: u,
20
- onChange: d
21
- }), o = f(() => {
22
- t || s(!r);
23
- }, [t, r, s]), m = f(
19
+ const [o, l] = y({
20
+ value: u,
21
+ defaultValue: d,
22
+ onChange: p
23
+ }), r = f(() => {
24
+ t || l(!o);
25
+ }, [t, o, l]), v = f(
24
26
  (e) => {
25
- a && a(e), !e.defaultPrevented && (e.key === " " || e.key === "Enter") && (e.preventDefault(), o());
27
+ n && n(e), !e.defaultPrevented && (e.key === " " || e.key === "Enter") && (e.preventDefault(), r());
26
28
  },
27
- [o, a]
28
- ), v = f(
29
+ [r, n]
30
+ ), C = f(
29
31
  (e) => {
30
- n && n(e), !e.defaultPrevented && o();
32
+ a && a(e), !e.defaultPrevented && r();
31
33
  },
32
- [o, n]
34
+ [r, a]
33
35
  );
34
36
  return /* @__PURE__ */ h(
35
- "button",
37
+ s ? k : "button",
36
38
  {
37
39
  ...c,
38
40
  ref: g,
39
- type: p,
40
- "aria-pressed": r,
41
- "data-state": r ? "on" : "off",
41
+ type: s ? void 0 : m,
42
+ "aria-pressed": o,
43
+ "data-state": o ? "on" : "off",
42
44
  "data-disabled": t ? "" : void 0,
43
45
  disabled: t,
44
- onKeyDown: m,
45
- onClick: v,
46
+ onKeyDown: v,
47
+ onClick: C,
46
48
  className: i
47
49
  }
48
50
  );
49
51
  });
50
52
  export {
51
- y as ToggleBase
53
+ B as ToggleBase
52
54
  };
package/dist/Toggle.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ToggleBase } from './ToggleBase';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { ComponentProps } from '../../../node_modules/react';
3
+ import { ComponentProps } from 'react';
4
4
  export type ToggleProps = ComponentProps<typeof ToggleBase> & VariantProps<typeof toggleVariants>;
5
5
  export declare const toggleVariants: (props?: ({
6
6
  variant?: "default" | "outline" | null | undefined;
7
7
  size?: "default" | "sm" | "lg" | null | undefined;
8
8
  layout?: "default" | "expanded" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
- export declare const Toggle: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
10
+ export declare const Toggle: import('react').ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
11
11
  //# sourceMappingURL=Toggle.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from '../../../node_modules/react';
1
+ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
2
2
  type Orientation = 'horizontal' | 'vertical';
3
3
  export type CommonGroupProps = {
4
4
  orientation?: Orientation;
@@ -25,6 +25,6 @@ export type ItemRenderProps = {
25
25
  };
26
26
  export declare const ToggleGroupBase: (props: ToggleGroupProps & Record<`data-${string}`, any>) => import("react/jsx-runtime").JSX.Element;
27
27
  export type ToggleGroupItemProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'onPressedChange' | 'pressed' | 'defaultPressed'> & ItemRenderProps;
28
- export declare const ToggleGroupItemBase: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "pressed" | "defaultPressed" | "onPressedChange"> & ItemRenderProps & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
28
+ export declare const ToggleGroupItemBase: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "pressed" | "defaultPressed" | "onPressedChange"> & ItemRenderProps & import('react').RefAttributes<HTMLButtonElement>>;
29
29
  export {};
30
30
  //# sourceMappingURL=ToggleGroupBase.d.ts.map
@@ -1,12 +1,12 @@
1
1
  import { ToggleGroupBase } from './ToggleGroupBase';
2
2
  import { toggleVariants } from '../Toggle/Toggle';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { ComponentProps } from '../../../node_modules/react';
4
+ import { ComponentProps } from 'react';
5
5
  export type ToggleGroupProps = ComponentProps<typeof ToggleGroupBase> & VariantProps<typeof toggleVariants>;
6
6
  export declare const ToggleGroup: ({ className, variant, size, layout, children, ...props }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
7
- export declare const ToggleGroupItem: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<Omit<import('../../../node_modules/react').ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "pressed" | "defaultPressed" | "onPressedChange"> & import('./ToggleGroupBase').ItemRenderProps & import('../../../node_modules/react').RefAttributes<HTMLButtonElement> & VariantProps<(props?: ({
7
+ export declare const ToggleGroupItem: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "pressed" | "defaultPressed" | "onPressedChange"> & import('./ToggleGroupBase').ItemRenderProps & import('react').RefAttributes<HTMLButtonElement> & VariantProps<(props?: ({
8
8
  variant?: "default" | "outline" | null | undefined;
9
9
  size?: "default" | "sm" | "lg" | null | undefined;
10
10
  layout?: "default" | "expanded" | null | undefined;
11
- } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
11
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
12
12
  //# sourceMappingURL=ToggleGroup.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from '../../../node_modules/react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  type Side = 'top' | 'right' | 'bottom' | 'left';
3
3
  type Align = 'start' | 'center' | 'end';
4
4
  export type TooltipProviderProps = {
@@ -7,7 +7,7 @@ export type TooltipProviderProps = {
7
7
  skipDelayDuration?: number;
8
8
  disableHoverableContent?: boolean;
9
9
  };
10
- export declare const TooltipProviderBase: import('../../../node_modules/react').ForwardRefExoticComponent<TooltipProviderProps & import('../../../node_modules/react').RefAttributes<HTMLElement>>;
10
+ export declare const TooltipProviderBase: import('react').ForwardRefExoticComponent<TooltipProviderProps & import('react').RefAttributes<HTMLElement>>;
11
11
  export type TooltipRootProps = {
12
12
  align?: Align;
13
13
  alignOffset?: number;
@@ -24,28 +24,28 @@ export declare const TooltipRootBase: ({ children, open: openProp, defaultOpen,
24
24
  export type TooltipTriggerProps = ComponentPropsWithoutRef<'button'> & {
25
25
  asChild?: boolean;
26
26
  };
27
- export declare const TooltipTriggerBase: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/react').DetailedHTMLProps<import('../../../node_modules/react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
27
+ export declare const TooltipTriggerBase: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
28
28
  asChild?: boolean;
29
- } & import('../../../node_modules/react').RefAttributes<HTMLElement>>;
29
+ } & import('react').RefAttributes<HTMLElement>>;
30
30
  export type TooltipContentProps = ComponentPropsWithoutRef<'div'> & {
31
31
  forceMount?: boolean;
32
32
  container?: Element | DocumentFragment | null | undefined;
33
33
  arrowPadding?: number;
34
34
  variant?: 'default' | 'outline';
35
35
  };
36
- export declare const TooltipContentBase: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/react').DetailedHTMLProps<import('../../../node_modules/react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
36
+ export declare const TooltipContentBase: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
37
37
  forceMount?: boolean;
38
38
  container?: Element | DocumentFragment | null | undefined;
39
39
  arrowPadding?: number;
40
40
  variant?: "default" | "outline";
41
- } & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
41
+ } & import('react').RefAttributes<HTMLDivElement>>;
42
42
  export type TooltipArrowProps = ComponentPropsWithoutRef<'div'> & {
43
43
  width?: number;
44
44
  height?: number;
45
45
  };
46
- export declare const TooltipArrowBase: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<import('../../../node_modules/react').DetailedHTMLProps<import('../../../node_modules/react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
46
+ export declare const TooltipArrowBase: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
47
47
  width?: number;
48
48
  height?: number;
49
- } & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
49
+ } & import('react').RefAttributes<HTMLDivElement>>;
50
50
  export {};
51
51
  //# sourceMappingURL=TooltipBase.d.ts.map
package/dist/Tooltip.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ComponentProps } from '../../../node_modules/react';
1
+ import { ComponentProps } from 'react';
2
2
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
3
  export declare const TooltipProvider: ({ delayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
4
4
  export declare const Tooltip: ({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { c as o } from "./createLucideIcon-CI1yJrZf.js";
2
+ /**
3
+ * @license lucide-react v0.542.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const c = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], t = o("check", c);
9
+ /**
10
+ * @license lucide-react v0.542.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ const e = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], s = o("chevron-down", e);
16
+ export {
17
+ s as C,
18
+ t as a
19
+ };
@@ -1,5 +1,5 @@
1
1
  import { AsChildProp } from '../../primitives/slot';
2
- import { ButtonHTMLAttributes, HTMLAttributes } from '../../../node_modules/react';
2
+ import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
3
  type Dir = 'ltr' | 'rtl';
4
4
  type AccordionType = 'single' | 'multiple';
5
5
  export type AccordionProps = HTMLAttributes<HTMLDivElement> & {
@@ -12,7 +12,7 @@ export type AccordionProps = HTMLAttributes<HTMLDivElement> & {
12
12
  disabled?: boolean;
13
13
  rovingFocus?: boolean;
14
14
  };
15
- export declare const Accordion: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
15
+ export declare const Accordion: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
16
16
  type?: AccordionType;
17
17
  value?: string | string[];
18
18
  defaultValue?: string | string[];
@@ -21,22 +21,22 @@ export declare const Accordion: import('../../../node_modules/react').ForwardRef
21
21
  dir?: Dir;
22
22
  disabled?: boolean;
23
23
  rovingFocus?: boolean;
24
- } & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
24
+ } & import('react').RefAttributes<HTMLDivElement>>;
25
25
  export type AccordionItemProps = HTMLAttributes<HTMLDivElement> & {
26
26
  value: string;
27
27
  disabled?: boolean;
28
28
  };
29
- export declare const AccordionItem: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
29
+ export declare const AccordionItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
30
30
  value: string;
31
31
  disabled?: boolean;
32
- } & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
32
+ } & import('react').RefAttributes<HTMLDivElement>>;
33
33
  export type AccordionTriggerProps = ButtonHTMLAttributes<HTMLButtonElement> & AsChildProp;
34
- export declare const AccordionTrigger: import('../../../node_modules/react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & AsChildProp & import('../../../node_modules/react').RefAttributes<HTMLButtonElement>>;
34
+ export declare const AccordionTrigger: import('react').ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & AsChildProp & import('react').RefAttributes<HTMLButtonElement>>;
35
35
  export type AccordionContentProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
36
36
  forceMount?: boolean;
37
37
  };
38
- export declare const AccordionContent: import('../../../node_modules/react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
38
+ export declare const AccordionContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
39
39
  forceMount?: boolean;
40
- } & import('../../../node_modules/react').RefAttributes<HTMLDivElement>>;
40
+ } & import('react').RefAttributes<HTMLDivElement>>;
41
41
  export {};
42
42
  //# sourceMappingURL=AccordionBase.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AlertProps {
3
+ id: string | undefined;
4
+ description: string | ReactNode | undefined;
5
+ onClose?: () => void;
6
+ icon?: ReactNode;
7
+ title: string | undefined;
8
+ className?: string;
9
+ variant?: 'default' | 'info' | 'success' | 'warning' | 'danger';
10
+ }
11
+ export declare const Alert: ({ id, description, onClose, icon, title, className, variant }: AlertProps) => import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=Alert.d.ts.map