@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
package/dist/Icons.js CHANGED
@@ -1,66 +1,88 @@
1
1
  import { AnnotationsIcon as e } from "./Icons/AnnotationsIcon.js";
2
2
  import { CalendarIcon as t } from "./Icons/CalendarIcon.js";
3
- import { ClockIcon as m } from "./Icons/ClockIcon.js";
4
- import { DashboardIcon as I } from "./Icons/DashboardIcon.js";
5
- import { DeleteIcon as x } from "./Icons/DeleteIcon.js";
6
- import { DurationIcon as s } from "./Icons/DurationIcon.js";
7
- import { EraserIcon as l } from "./Icons/EraserIcon.js";
8
- import { GoToFirstIcon as d } from "./Icons/GoToFirstIcon.js";
9
- import { GoToLastIcon as u } from "./Icons/GoToLastIcon.js";
10
- import { HarmonicCursorsIcon as C } from "./Icons/HarmonicCursorsIcon.js";
11
- import { InfoIcon as P } from "./Icons/InfoIcon.js";
12
- import { LabelIcon as b } from "./Icons/LabelIcon.js";
13
- import { LassoIcon as y } from "./Icons/LassoIcon.js";
14
- import { LineToolIcon as G } from "./Icons/LineToolIcon.js";
15
- import { LiveViewIcon as U } from "./Icons/LiveViewIcon.js";
16
- import { LocationIcon as v } from "./Icons/LocationIcon.js";
17
- import { LogoutIcon as E } from "./Icons/LogoutIcon.js";
18
- import { MetadataIcon as H } from "./Icons/MetadataIcon.js";
19
- import { OntologyIcon as O } from "./Icons/OntologyIcon.js";
20
- import { PanelIcon as V } from "./Icons/PanelIcon.js";
21
- import { PlayIcon as X } from "./Icons/PlayIcon.js";
22
- import { PlusIcon as j } from "./Icons/PlusIcon.js";
23
- import { ResetIcon as z } from "./Icons/ResetIcon.js";
24
- import { ScissorsIcon as J } from "./Icons/ScissorsIcon.js";
25
- import { SettingsIcon as N } from "./Icons/SettingsIcon.js";
26
- import { TrashIcon as _ } from "./Icons/TrashIcon.js";
27
- import { UndoIcon as oo } from "./Icons/UndoIcon.js";
28
- import { UserIcon as eo } from "./Icons/UserIcon.js";
29
- import { WarningIcon as to } from "./Icons/WarningIcon.js";
30
- import { ZoomAllIcon as mo } from "./Icons/ZoomAllIcon.js";
31
- import { ZoomXIcon as Io } from "./Icons/ZoomXIcon.js";
32
- import { ZoomYIcon as xo } from "./Icons/ZoomYIcon.js";
3
+ import { CheckCircleIcon as m } from "./Icons/CheckCircleIcon.js";
4
+ import { CheckSquareIcon as f } from "./Icons/CheckSquareIcon.js";
5
+ import { ChevronDownIcon as x } from "./Icons/ChevronDownIcon.js";
6
+ import { ChevronUpIcon as s } from "./Icons/ChevronUpIcon.js";
7
+ import { ClockIcon as i } from "./Icons/ClockIcon.js";
8
+ import { CloseCircleIcon as L } from "./Icons/CloseCircleIcon.js";
9
+ import { CloseIcon as h } from "./Icons/CloseIcon.js";
10
+ import { DashboardIcon as y } from "./Icons/DashboardIcon.js";
11
+ import { DeleteIcon as g } from "./Icons/DeleteIcon.js";
12
+ import { DurationIcon as T } from "./Icons/DurationIcon.js";
13
+ import { EraserIcon as v } from "./Icons/EraserIcon.js";
14
+ import { ErrorIcon as S } from "./Icons/ErrorIcon.js";
15
+ import { EyeClosedIcon as Z } from "./Icons/EyeClosedIcon.js";
16
+ import { EyeClosedIcon2 as w } from "./Icons/EyeClosedIcon2.js";
17
+ import { EyeOpenIcon as G } from "./Icons/EyeOpenIcon.js";
18
+ import { GoToFirstIcon as q } from "./Icons/GoToFirstIcon.js";
19
+ import { GoToLastIcon as H } from "./Icons/GoToLastIcon.js";
20
+ import { HarmonicCursorsIcon as R } from "./Icons/HarmonicCursorsIcon.js";
21
+ import { InfoIcon as W } from "./Icons/InfoIcon.js";
22
+ import { LabelIcon as Y } from "./Icons/LabelIcon.js";
23
+ import { LassoIcon as z } from "./Icons/LassoIcon.js";
24
+ import { LineToolIcon as J } from "./Icons/LineToolIcon.js";
25
+ import { LiveViewIcon as N } from "./Icons/LiveViewIcon.js";
26
+ import { LoaderIcon as _ } from "./Icons/LoaderIcon.js";
27
+ import { LocationIcon as oo } from "./Icons/LocationIcon.js";
28
+ import { LogoutIcon as eo } from "./Icons/LogoutIcon.js";
29
+ import { MetadataIcon as to } from "./Icons/MetadataIcon.js";
30
+ import { OntologyIcon as mo } from "./Icons/OntologyIcon.js";
31
+ import { PanelIcon as fo } from "./Icons/PanelIcon.js";
32
+ import { PlayIcon as xo } from "./Icons/PlayIcon.js";
33
+ import { PlusIcon as so } from "./Icons/PlusIcon.js";
34
+ import { ResetIcon as io } from "./Icons/ResetIcon.js";
35
+ import { ScissorsIcon as Lo } from "./Icons/ScissorsIcon.js";
36
+ import { SettingsIcon as uo } from "./Icons/SettingsIcon.js";
37
+ import { TrashIcon as Eo } from "./Icons/TrashIcon.js";
38
+ import { UndoIcon as Do } from "./Icons/UndoIcon.js";
39
+ import { UserIcon as ko } from "./Icons/UserIcon.js";
40
+ import { WarningIcon as Po } from "./Icons/WarningIcon.js";
41
+ import { ZoomAllIcon as Uo } from "./Icons/ZoomAllIcon.js";
42
+ import { ZoomXIcon as bo } from "./Icons/ZoomXIcon.js";
43
+ import { ZoomYIcon as Ao } from "./Icons/ZoomYIcon.js";
33
44
  export {
34
45
  e as AnnotationsIcon,
35
46
  t as CalendarIcon,
36
- m as ClockIcon,
37
- I as DashboardIcon,
38
- x as DeleteIcon,
39
- s as DurationIcon,
40
- l as EraserIcon,
41
- d as GoToFirstIcon,
42
- u as GoToLastIcon,
43
- C as HarmonicCursorsIcon,
44
- P as InfoIcon,
45
- b as LabelIcon,
46
- y as LassoIcon,
47
- G as LineToolIcon,
48
- U as LiveViewIcon,
49
- v as LocationIcon,
50
- E as LogoutIcon,
51
- H as MetadataIcon,
52
- O as OntologyIcon,
53
- V as PanelIcon,
54
- X as PlayIcon,
55
- j as PlusIcon,
56
- z as ResetIcon,
57
- J as ScissorsIcon,
58
- N as SettingsIcon,
59
- _ as TrashIcon,
60
- oo as UndoIcon,
61
- eo as UserIcon,
62
- to as WarningIcon,
63
- mo as ZoomAllIcon,
64
- Io as ZoomXIcon,
65
- xo as ZoomYIcon
47
+ m as CheckCircleIcon,
48
+ f as CheckSquareIcon,
49
+ x as ChevronDownIcon,
50
+ s as ChevronUpIcon,
51
+ i as ClockIcon,
52
+ L as CloseCircleIcon,
53
+ h as CloseIcon,
54
+ y as DashboardIcon,
55
+ g as DeleteIcon,
56
+ T as DurationIcon,
57
+ v as EraserIcon,
58
+ S as ErrorIcon,
59
+ Z as EyeClosedIcon,
60
+ w as EyeClosedIcon2,
61
+ G as EyeOpenIcon,
62
+ q as GoToFirstIcon,
63
+ H as GoToLastIcon,
64
+ R as HarmonicCursorsIcon,
65
+ W as InfoIcon,
66
+ Y as LabelIcon,
67
+ z as LassoIcon,
68
+ J as LineToolIcon,
69
+ N as LiveViewIcon,
70
+ _ as LoaderIcon,
71
+ oo as LocationIcon,
72
+ eo as LogoutIcon,
73
+ to as MetadataIcon,
74
+ mo as OntologyIcon,
75
+ fo as PanelIcon,
76
+ xo as PlayIcon,
77
+ so as PlusIcon,
78
+ io as ResetIcon,
79
+ Lo as ScissorsIcon,
80
+ uo as SettingsIcon,
81
+ Eo as TrashIcon,
82
+ Do as UndoIcon,
83
+ ko as UserIcon,
84
+ Po as WarningIcon,
85
+ Uo as ZoomAllIcon,
86
+ bo as ZoomXIcon,
87
+ Ao as ZoomYIcon
66
88
  };
@@ -0,0 +1,15 @@
1
+ import { RefObject } from 'react';
2
+ export declare const usePrefixWidth: (prefix?: string) => {
3
+ prefixWidth: number;
4
+ prefixRef: RefObject<HTMLSpanElement | null>;
5
+ };
6
+ export declare const usePasswordVisibility: () => {
7
+ isVisible: boolean;
8
+ toggleVisibility: () => void;
9
+ inputType: "text" | "password";
10
+ };
11
+ export declare const useClearOnFocus: (clearOnFocus: boolean, onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void) => {
12
+ hasBeenFocused: boolean;
13
+ handleFocus: (e: React.FocusEvent<HTMLInputElement>, originalOnFocus?: (e: React.FocusEvent<HTMLInputElement>) => void) => void;
14
+ };
15
+ //# sourceMappingURL=InputUtils.d.ts.map
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { useState as u, useCallback as f, useRef as l, useLayoutEffect as d } from "react";
3
+ const h = (t) => {
4
+ const [r, s] = u(0), e = l(null);
5
+ return d(() => {
6
+ if (t && e.current) {
7
+ const n = () => {
8
+ e.current && s(e.current.offsetWidth + 2);
9
+ };
10
+ n();
11
+ const i = new ResizeObserver(n);
12
+ return i.observe(e.current), () => {
13
+ i.disconnect();
14
+ };
15
+ } else
16
+ s(0);
17
+ }, [t]), { prefixWidth: r, prefixRef: e };
18
+ }, p = () => {
19
+ const [t, r] = u(!1), s = f(() => {
20
+ r((e) => !e);
21
+ }, []);
22
+ return {
23
+ isVisible: t,
24
+ toggleVisibility: s,
25
+ inputType: t ? "text" : "password"
26
+ };
27
+ }, v = (t, r) => {
28
+ const [s, e] = u(!1), n = f(
29
+ (i, o) => {
30
+ if (t && !s) {
31
+ const c = i.target;
32
+ if (c.value = "", e(!0), r) {
33
+ const a = {
34
+ ...i,
35
+ target: c,
36
+ currentTarget: c
37
+ };
38
+ r(a);
39
+ }
40
+ }
41
+ o && o(i);
42
+ },
43
+ [t, s, r]
44
+ );
45
+ return {
46
+ hasBeenFocused: s,
47
+ handleFocus: n
48
+ };
49
+ };
50
+ export {
51
+ v as useClearOnFocus,
52
+ p as usePasswordVisibility,
53
+ h as usePrefixWidth
54
+ };
@@ -0,0 +1,24 @@
1
+ import { BaseFormFieldProps } from '../../utils/formFieldUtils';
2
+ import { FocusEvent, InputHTMLAttributes } from 'react';
3
+ export type InputType = 'text' | 'email' | 'url' | 'tel' | 'password' | 'number' | 'date' | 'datetime-local';
4
+ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id'> & BaseFormFieldProps & {
5
+ className?: string;
6
+ clearOnFocus?: boolean;
7
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
8
+ onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
9
+ prefix?: string;
10
+ showClearButton?: boolean;
11
+ type?: InputType;
12
+ value?: string;
13
+ };
14
+ export declare const Input: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "id"> & BaseFormFieldProps & {
15
+ className?: string;
16
+ clearOnFocus?: boolean;
17
+ onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
18
+ onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
19
+ prefix?: string;
20
+ showClearButton?: boolean;
21
+ type?: InputType;
22
+ value?: string;
23
+ } & import('react').RefAttributes<HTMLInputElement>>;
24
+ //# sourceMappingURL=Input.d.ts.map
package/dist/Input.js ADDED
@@ -0,0 +1,170 @@
1
+ "use client";
2
+ import "./styles/main.css";
3
+ import { jsx as t, jsxs as I } from "react/jsx-runtime";
4
+ import { usePasswordVisibility as Q, usePrefixWidth as U, useClearOnFocus as X } from "./Input/InputUtils.js";
5
+ import "./Icons/AnnotationsIcon.js";
6
+ import "./Icons/CalendarIcon.js";
7
+ import { CheckCircleIcon as Y } from "./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 { CloseCircleIcon as Z } from "./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 { ErrorIcon as _ } from "./Icons/ErrorIcon.js";
19
+ import { EyeClosedIcon as q } from "./Icons/EyeClosedIcon.js";
20
+ import "./Icons/EyeClosedIcon2.js";
21
+ import { EyeOpenIcon as tt } from "./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 et } 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 { useFormFieldId as rt, getAriaProps as ot, getInputClasses as it, useFormFieldState as st, getFormFieldCSSProperties as at, ErrorMessage as nt } from "./utils/formFieldUtils.js";
49
+ import { c as N } from "./twUtils-CRiPKpXj.js";
50
+ import { forwardRef as pt, useRef as lt, useCallback as m } from "react";
51
+ const ct = (p) => ({
52
+ email: "email",
53
+ password: "current-password",
54
+ tel: "tel",
55
+ url: "url",
56
+ text: "off",
57
+ number: "off",
58
+ date: "off",
59
+ "datetime-local": "off"
60
+ })[p] || "off", mt = pt(
61
+ ({
62
+ className: p,
63
+ clearOnFocus: d = !1,
64
+ disabled: F,
65
+ errorMessage: u,
66
+ id: E,
67
+ label: i,
68
+ name: f,
69
+ onBlur: h,
70
+ onChange: b,
71
+ onFocus: C,
72
+ prefix: a,
73
+ showClearButton: z = !1,
74
+ state: e = "default",
75
+ type: n = "text",
76
+ value: g = "",
77
+ required: x,
78
+ "aria-label": P,
79
+ "aria-describedby": R,
80
+ ...$
81
+ }, k) => {
82
+ const l = rt(E, f), w = `${l}-error`, { isDisabled: S, isLoading: V, isInvalid: M } = st(F, e), O = ot(e, x, w, R), j = lt(null), r = k || j, { isVisible: c, toggleVisibility: A, inputType: B } = Q(), { prefixWidth: H, prefixRef: L } = U(a), { handleFocus: y } = X(d, b), W = m(
83
+ (o) => {
84
+ h?.(o);
85
+ },
86
+ [h]
87
+ ), D = m(
88
+ (o) => {
89
+ y(o, C);
90
+ },
91
+ [y, C]
92
+ ), T = m(() => {
93
+ r.current && (r.current.value = "", r.current.dispatchEvent(new Event("input", { bubbles: !0 })), r.current.focus());
94
+ }, [r]), v = z && g.length > 0, G = () => {
95
+ const o = "absolute right-4 top-1/2 -translate-y-1/2 text-input-icon hover:text-input-icon--hover focus:outline-none cursor-pointer", s = {
96
+ password: () => /* @__PURE__ */ t(
97
+ "button",
98
+ {
99
+ className: o,
100
+ type: "button",
101
+ onClick: A,
102
+ "aria-label": c ? `Hide ${i}` : `Show ${i}`,
103
+ "aria-pressed": c,
104
+ "aria-controls": l,
105
+ "data-testid": "input-password-toggle",
106
+ children: c ? /* @__PURE__ */ t(q, { size: 22 }) : /* @__PURE__ */ t(tt, { size: 22 })
107
+ }
108
+ ),
109
+ clear: () => /* @__PURE__ */ t(
110
+ "button",
111
+ {
112
+ className: o,
113
+ type: "button",
114
+ onClick: T,
115
+ "aria-label": `Clear ${i}`,
116
+ "data-testid": "input-clear-button",
117
+ children: /* @__PURE__ */ t(Z, { size: 24 })
118
+ }
119
+ ),
120
+ loading: () => /* @__PURE__ */ t("div", { className: "absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-loading-icon", children: /* @__PURE__ */ t(et, { size: 24 }) }),
121
+ error: () => /* @__PURE__ */ t("div", { className: "text-danger-400 absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-error-icon", children: /* @__PURE__ */ t(_, { size: 24 }) }),
122
+ success: () => /* @__PURE__ */ t("div", { className: "text-success-400 absolute top-1/2 right-4 -translate-y-1/2", "data-testid": "input-success-icon", children: /* @__PURE__ */ t(Y, { size: 24 }) })
123
+ };
124
+ return n === "password" ? s.password() : v ? s.clear() : V ? s.loading() : e === "success" ? s.success() : e === "error" ? s.error() : null;
125
+ }, J = N(
126
+ it(e, p),
127
+ "[text-indent:var(--prefix-width)]",
128
+ v && "pr-10"
129
+ ), K = N(
130
+ "pointer-events-none absolute inset-y-0 left-4 flex items-center text-base text-input-text-prefix opacity-100 peer-disabled:opacity-50"
131
+ );
132
+ return /* @__PURE__ */ t("div", { className: "w-full space-y-1.5", "data-testid": "input-root", children: /* @__PURE__ */ I("div", { className: "relative", "data-testid": "input-wrapper", children: [
133
+ /* @__PURE__ */ I("div", { className: "relative", children: [
134
+ a && /* @__PURE__ */ t("span", { ref: L, className: K, children: a }),
135
+ /* @__PURE__ */ t(
136
+ "input",
137
+ {
138
+ id: l,
139
+ name: f,
140
+ ref: r,
141
+ type: n === "password" ? B : n,
142
+ value: g,
143
+ disabled: S,
144
+ required: x,
145
+ autoComplete: ct(n),
146
+ className: J,
147
+ onChange: b,
148
+ onFocus: D,
149
+ onBlur: W,
150
+ placeholder: i,
151
+ ...O,
152
+ ...$,
153
+ "data-testid": "input-input",
154
+ "data-state": e,
155
+ style: at({
156
+ "--prefix-width": a ? `${H}px` : "0px"
157
+ }),
158
+ "aria-label": P || i
159
+ }
160
+ ),
161
+ G()
162
+ ] }),
163
+ M && u && /* @__PURE__ */ t(nt, { id: w, message: u })
164
+ ] }) });
165
+ }
166
+ );
167
+ mt.displayName = "Input";
168
+ export {
169
+ mt as Input
170
+ };
package/dist/Label.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { LabelHTMLAttributes, Ref } from '../../../node_modules/react';
1
+ import { LabelHTMLAttributes, Ref } from 'react';
2
2
  export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
3
3
  htmlFor: string;
4
4
  className?: string;
5
5
  ref?: Ref<HTMLLabelElement>;
6
6
  };
7
- export declare const Label: import('../../../node_modules/react').ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import('../../../node_modules/react').RefAttributes<HTMLLabelElement>>;
7
+ export declare const Label: import('react').ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
8
8
  //# sourceMappingURL=Label.d.ts.map
@@ -0,0 +1,34 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export type MultiSelectState = 'default' | 'error' | 'disabled' | 'loading';
3
+ export interface MultiSelectOption {
4
+ label: string;
5
+ value: string;
6
+ group?: string;
7
+ disabled?: boolean;
8
+ }
9
+ export interface MultiSelectBaseProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> {
10
+ value: string[];
11
+ onChange: (value: string[]) => void;
12
+ options: MultiSelectOption[];
13
+ placeholder?: string;
14
+ maxCount?: number;
15
+ state?: MultiSelectState;
16
+ errorMessage?: string;
17
+ emptyMessage?: string;
18
+ loadingMessage?: string;
19
+ searchPlaceholder?: string;
20
+ selectAllLabel?: string;
21
+ clearAllLabel?: string;
22
+ sortAlphabetically?: boolean;
23
+ showSelectAll?: boolean;
24
+ showClearAll?: boolean;
25
+ showSearch?: boolean;
26
+ closeOnSelect?: boolean;
27
+ name?: string;
28
+ id?: string;
29
+ label?: string;
30
+ 'aria-label'?: string;
31
+ 'aria-describedby'?: string;
32
+ }
33
+ export declare const MultiSelectBase: import('react').ForwardRefExoticComponent<MultiSelectBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
34
+ //# sourceMappingURL=MultiSelectBase.d.ts.map