@spear-ai/spectral 1.4.0 → 1.4.2

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 (235) hide show
  1. package/dist/Checkbox/CheckboxBase.d.ts +1 -1
  2. package/dist/Input.d.ts +1 -1
  3. package/dist/InputGroup.d.ts +1 -1
  4. package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +1 -1
  5. package/dist/Select.d.ts +1 -1
  6. package/dist/Slider/SliderBase.d.ts +1 -1
  7. package/dist/Switch/SwitchBase.d.ts +1 -1
  8. package/dist/Textarea.d.ts +1 -1
  9. package/dist/Toggle/ToggleBase.d.ts +1 -1
  10. package/dist/styles/main.css +1 -1
  11. package/package.json +3 -3
  12. package/dist/Tabs/tabsStoryData.d.ts +0 -17
  13. package/dist/Tabs/tabsStoryData.js +0 -159
  14. package/dist/Tray/TrayStoriesData.d.ts +0 -39
  15. package/dist/Tray/TrayStoriesData.js +0 -326
  16. package/dist/components/Accordion/Accordion.d.ts +0 -37
  17. package/dist/components/Accordion/Accordion.d.ts.map +0 -1
  18. package/dist/components/Alert/Alert.d.ts +0 -12
  19. package/dist/components/Alert/Alert.d.ts.map +0 -1
  20. package/dist/components/Alert/AlertBase.d.ts +0 -23
  21. package/dist/components/Alert/AlertBase.d.ts.map +0 -1
  22. package/dist/components/Avatar/Avatar.d.ts +0 -14
  23. package/dist/components/Avatar/Avatar.d.ts.map +0 -1
  24. package/dist/components/Badge/Badge.d.ts +0 -13
  25. package/dist/components/Badge/Badge.d.ts.map +0 -1
  26. package/dist/components/Button/Button.d.ts +0 -23
  27. package/dist/components/Button/Button.d.ts.map +0 -1
  28. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -29
  29. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +0 -1
  30. package/dist/components/ButtonGroup/ButtonGroupButton.d.ts +0 -13
  31. package/dist/components/ButtonGroup/ButtonGroupButton.d.ts.map +0 -1
  32. package/dist/components/ButtonIcon/ButtonIcon.d.ts +0 -14
  33. package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +0 -1
  34. package/dist/components/Card/Card.d.ts +0 -16
  35. package/dist/components/Card/Card.d.ts.map +0 -1
  36. package/dist/components/Checkbox/Checkbox.d.ts +0 -14
  37. package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
  38. package/dist/components/Checkbox/CheckboxBase.d.ts +0 -30
  39. package/dist/components/Checkbox/CheckboxBase.d.ts.map +0 -1
  40. package/dist/components/Dialog/Dialog.d.ts +0 -16
  41. package/dist/components/Dialog/Dialog.d.ts.map +0 -1
  42. package/dist/components/Dialog/DialogBase.d.ts +0 -74
  43. package/dist/components/Dialog/DialogBase.d.ts.map +0 -1
  44. package/dist/components/Drawer/Drawer.d.ts +0 -13
  45. package/dist/components/Drawer/Drawer.d.ts.map +0 -1
  46. package/dist/components/HoverCard/HoverCard.d.ts +0 -30
  47. package/dist/components/HoverCard/HoverCard.d.ts.map +0 -1
  48. package/dist/components/Icons/AnalyzeIcon.d.ts +0 -3
  49. package/dist/components/Icons/AnalyzeIcon.d.ts.map +0 -1
  50. package/dist/components/Icons/AnnotationsIcon.d.ts +0 -3
  51. package/dist/components/Icons/AnnotationsIcon.d.ts.map +0 -1
  52. package/dist/components/Icons/ApprovedIcon.d.ts +0 -3
  53. package/dist/components/Icons/ApprovedIcon.d.ts.map +0 -1
  54. package/dist/components/Icons/CalendarIcon.d.ts +0 -3
  55. package/dist/components/Icons/CalendarIcon.d.ts.map +0 -1
  56. package/dist/components/Icons/CheckCircleIcon.d.ts +0 -3
  57. package/dist/components/Icons/CheckCircleIcon.d.ts.map +0 -1
  58. package/dist/components/Icons/CheckSquareIcon.d.ts +0 -3
  59. package/dist/components/Icons/CheckSquareIcon.d.ts.map +0 -1
  60. package/dist/components/Icons/CheckmarkIcon.d.ts +0 -3
  61. package/dist/components/Icons/CheckmarkIcon.d.ts.map +0 -1
  62. package/dist/components/Icons/ChevronDownIcon.d.ts +0 -3
  63. package/dist/components/Icons/ChevronDownIcon.d.ts.map +0 -1
  64. package/dist/components/Icons/ChevronUpIcon.d.ts +0 -3
  65. package/dist/components/Icons/ChevronUpIcon.d.ts.map +0 -1
  66. package/dist/components/Icons/ClockIcon.d.ts +0 -3
  67. package/dist/components/Icons/ClockIcon.d.ts.map +0 -1
  68. package/dist/components/Icons/CloseCircleIcon.d.ts +0 -3
  69. package/dist/components/Icons/CloseCircleIcon.d.ts.map +0 -1
  70. package/dist/components/Icons/CloseIcon.d.ts +0 -3
  71. package/dist/components/Icons/CloseIcon.d.ts.map +0 -1
  72. package/dist/components/Icons/DashboardIcon.d.ts +0 -3
  73. package/dist/components/Icons/DashboardIcon.d.ts.map +0 -1
  74. package/dist/components/Icons/DatabaseIcon.d.ts +0 -3
  75. package/dist/components/Icons/DatabaseIcon.d.ts.map +0 -1
  76. package/dist/components/Icons/DeleteIcon.d.ts +0 -3
  77. package/dist/components/Icons/DeleteIcon.d.ts.map +0 -1
  78. package/dist/components/Icons/DurationIcon.d.ts +0 -3
  79. package/dist/components/Icons/DurationIcon.d.ts.map +0 -1
  80. package/dist/components/Icons/EmailIcon.d.ts +0 -3
  81. package/dist/components/Icons/EmailIcon.d.ts.map +0 -1
  82. package/dist/components/Icons/EraserIcon.d.ts +0 -3
  83. package/dist/components/Icons/EraserIcon.d.ts.map +0 -1
  84. package/dist/components/Icons/ErrorIcon.d.ts +0 -3
  85. package/dist/components/Icons/ErrorIcon.d.ts.map +0 -1
  86. package/dist/components/Icons/EyeClosedIcon.d.ts +0 -3
  87. package/dist/components/Icons/EyeClosedIcon.d.ts.map +0 -1
  88. package/dist/components/Icons/EyeClosedIcon2.d.ts +0 -3
  89. package/dist/components/Icons/EyeClosedIcon2.d.ts.map +0 -1
  90. package/dist/components/Icons/EyeOpenIcon.d.ts +0 -3
  91. package/dist/components/Icons/EyeOpenIcon.d.ts.map +0 -1
  92. package/dist/components/Icons/GoToFirstIcon.d.ts +0 -3
  93. package/dist/components/Icons/GoToFirstIcon.d.ts.map +0 -1
  94. package/dist/components/Icons/GoToLastIcon.d.ts +0 -3
  95. package/dist/components/Icons/GoToLastIcon.d.ts.map +0 -1
  96. package/dist/components/Icons/HarmonicCursorsIcon.d.ts +0 -3
  97. package/dist/components/Icons/HarmonicCursorsIcon.d.ts.map +0 -1
  98. package/dist/components/Icons/IconBase.d.ts +0 -14
  99. package/dist/components/Icons/IconBase.d.ts.map +0 -1
  100. package/dist/components/Icons/InfoIcon.d.ts +0 -3
  101. package/dist/components/Icons/InfoIcon.d.ts.map +0 -1
  102. package/dist/components/Icons/LabelIcon.d.ts +0 -3
  103. package/dist/components/Icons/LabelIcon.d.ts.map +0 -1
  104. package/dist/components/Icons/LassoIcon.d.ts +0 -3
  105. package/dist/components/Icons/LassoIcon.d.ts.map +0 -1
  106. package/dist/components/Icons/LineToolIcon.d.ts +0 -3
  107. package/dist/components/Icons/LineToolIcon.d.ts.map +0 -1
  108. package/dist/components/Icons/LineToolIcon2.d.ts +0 -3
  109. package/dist/components/Icons/LineToolIcon2.d.ts.map +0 -1
  110. package/dist/components/Icons/LiveViewIcon.d.ts +0 -3
  111. package/dist/components/Icons/LiveViewIcon.d.ts.map +0 -1
  112. package/dist/components/Icons/LoaderIcon.d.ts +0 -3
  113. package/dist/components/Icons/LoaderIcon.d.ts.map +0 -1
  114. package/dist/components/Icons/LocationIcon.d.ts +0 -3
  115. package/dist/components/Icons/LocationIcon.d.ts.map +0 -1
  116. package/dist/components/Icons/LogoutIcon.d.ts +0 -3
  117. package/dist/components/Icons/LogoutIcon.d.ts.map +0 -1
  118. package/dist/components/Icons/MessagesIcon.d.ts +0 -3
  119. package/dist/components/Icons/MessagesIcon.d.ts.map +0 -1
  120. package/dist/components/Icons/MetadataIcon.d.ts +0 -3
  121. package/dist/components/Icons/MetadataIcon.d.ts.map +0 -1
  122. package/dist/components/Icons/MinusIcon.d.ts +0 -3
  123. package/dist/components/Icons/MinusIcon.d.ts.map +0 -1
  124. package/dist/components/Icons/OntologyIcon.d.ts +0 -3
  125. package/dist/components/Icons/OntologyIcon.d.ts.map +0 -1
  126. package/dist/components/Icons/PanelIconClose.d.ts +0 -3
  127. package/dist/components/Icons/PanelIconClose.d.ts.map +0 -1
  128. package/dist/components/Icons/PanelIconOpen.d.ts +0 -3
  129. package/dist/components/Icons/PanelIconOpen.d.ts.map +0 -1
  130. package/dist/components/Icons/PlayIcon.d.ts +0 -3
  131. package/dist/components/Icons/PlayIcon.d.ts.map +0 -1
  132. package/dist/components/Icons/PlusIcon.d.ts +0 -3
  133. package/dist/components/Icons/PlusIcon.d.ts.map +0 -1
  134. package/dist/components/Icons/ResetIcon.d.ts +0 -3
  135. package/dist/components/Icons/ResetIcon.d.ts.map +0 -1
  136. package/dist/components/Icons/ReviewedIcon.d.ts +0 -3
  137. package/dist/components/Icons/ReviewedIcon.d.ts.map +0 -1
  138. package/dist/components/Icons/ScissorsIcon.d.ts +0 -3
  139. package/dist/components/Icons/ScissorsIcon.d.ts.map +0 -1
  140. package/dist/components/Icons/SettingsIcon.d.ts +0 -3
  141. package/dist/components/Icons/SettingsIcon.d.ts.map +0 -1
  142. package/dist/components/Icons/SortAscendingIcon.d.ts +0 -3
  143. package/dist/components/Icons/SortAscendingIcon.d.ts.map +0 -1
  144. package/dist/components/Icons/SortDescendingIcon.d.ts +0 -3
  145. package/dist/components/Icons/SortDescendingIcon.d.ts.map +0 -1
  146. package/dist/components/Icons/StackIcon.d.ts +0 -3
  147. package/dist/components/Icons/StackIcon.d.ts.map +0 -1
  148. package/dist/components/Icons/StarIcon.d.ts +0 -3
  149. package/dist/components/Icons/StarIcon.d.ts.map +0 -1
  150. package/dist/components/Icons/TrashIcon.d.ts +0 -3
  151. package/dist/components/Icons/TrashIcon.d.ts.map +0 -1
  152. package/dist/components/Icons/UndoIcon.d.ts +0 -3
  153. package/dist/components/Icons/UndoIcon.d.ts.map +0 -1
  154. package/dist/components/Icons/UserIcon.d.ts +0 -3
  155. package/dist/components/Icons/UserIcon.d.ts.map +0 -1
  156. package/dist/components/Icons/WarningIcon.d.ts +0 -3
  157. package/dist/components/Icons/WarningIcon.d.ts.map +0 -1
  158. package/dist/components/Icons/ZoomAllIcon.d.ts +0 -3
  159. package/dist/components/Icons/ZoomAllIcon.d.ts.map +0 -1
  160. package/dist/components/Icons/ZoomXIcon.d.ts +0 -3
  161. package/dist/components/Icons/ZoomXIcon.d.ts.map +0 -1
  162. package/dist/components/Icons/ZoomYIcon.d.ts +0 -3
  163. package/dist/components/Icons/ZoomYIcon.d.ts.map +0 -1
  164. package/dist/components/Icons/iconTypes.d.ts +0 -12
  165. package/dist/components/Icons/iconTypes.d.ts.map +0 -1
  166. package/dist/components/Icons/index.d.ts +0 -58
  167. package/dist/components/Icons/index.d.ts.map +0 -1
  168. package/dist/components/Input/Input.d.ts +0 -36
  169. package/dist/components/Input/Input.d.ts.map +0 -1
  170. package/dist/components/Input/InputUtils.d.ts +0 -15
  171. package/dist/components/Input/InputUtils.d.ts.map +0 -1
  172. package/dist/components/InputGroup/InputGroup.d.ts +0 -16
  173. package/dist/components/InputGroup/InputGroup.d.ts.map +0 -1
  174. package/dist/components/InputOTP/InputOTP.d.ts +0 -30
  175. package/dist/components/InputOTP/InputOTP.d.ts.map +0 -1
  176. package/dist/components/Label/Label.d.ts +0 -4
  177. package/dist/components/Label/Label.d.ts.map +0 -1
  178. package/dist/components/MultiSelect/MultiSelectBase.d.ts +0 -34
  179. package/dist/components/MultiSelect/MultiSelectBase.d.ts.map +0 -1
  180. package/dist/components/MultiSelect/MutiSelect.d.ts +0 -15
  181. package/dist/components/MultiSelect/MutiSelect.d.ts.map +0 -1
  182. package/dist/components/Popover/Popover.d.ts +0 -10
  183. package/dist/components/Popover/Popover.d.ts.map +0 -1
  184. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +0 -7
  185. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +0 -1
  186. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts +0 -21
  187. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +0 -1
  188. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -36
  189. package/dist/components/RadioGroup/RadioGroup.d.ts.map +0 -1
  190. package/dist/components/Select/Select.d.ts +0 -28
  191. package/dist/components/Select/Select.d.ts.map +0 -1
  192. package/dist/components/Separator/Separator.d.ts +0 -12
  193. package/dist/components/Separator/Separator.d.ts.map +0 -1
  194. package/dist/components/Skeleton/Skeleton.d.ts +0 -4
  195. package/dist/components/Skeleton/Skeleton.d.ts.map +0 -1
  196. package/dist/components/Slider/Slider.d.ts +0 -18
  197. package/dist/components/Slider/Slider.d.ts.map +0 -1
  198. package/dist/components/Slider/SliderBase.d.ts +0 -54
  199. package/dist/components/Slider/SliderBase.d.ts.map +0 -1
  200. package/dist/components/SpectralProvider/SpectralProvider.d.ts +0 -30
  201. package/dist/components/SpectralProvider/SpectralProvider.d.ts.map +0 -1
  202. package/dist/components/SpectralProvider/index.d.ts +0 -2
  203. package/dist/components/SpectralProvider/index.d.ts.map +0 -1
  204. package/dist/components/Switch/Switch.d.ts +0 -12
  205. package/dist/components/Switch/Switch.d.ts.map +0 -1
  206. package/dist/components/Switch/SwitchBase.d.ts +0 -25
  207. package/dist/components/Switch/SwitchBase.d.ts.map +0 -1
  208. package/dist/components/Tabs/Tabs.d.ts +0 -28
  209. package/dist/components/Tabs/Tabs.d.ts.map +0 -1
  210. package/dist/components/Tabs/TabsBase.d.ts +0 -38
  211. package/dist/components/Tabs/TabsBase.d.ts.map +0 -1
  212. package/dist/components/Tabs/tabsStoryData.d.ts +0 -17
  213. package/dist/components/Tabs/tabsStoryData.d.ts.map +0 -1
  214. package/dist/components/Tabs/tabsUtils.d.ts +0 -57
  215. package/dist/components/Tabs/tabsUtils.d.ts.map +0 -1
  216. package/dist/components/Textarea/Textarea.d.ts +0 -20
  217. package/dist/components/Textarea/Textarea.d.ts.map +0 -1
  218. package/dist/components/Textarea/TextareaUtils.d.ts +0 -19
  219. package/dist/components/Textarea/TextareaUtils.d.ts.map +0 -1
  220. package/dist/components/Toggle/Toggle.d.ts +0 -11
  221. package/dist/components/Toggle/Toggle.d.ts.map +0 -1
  222. package/dist/components/Toggle/ToggleBase.d.ts +0 -17
  223. package/dist/components/Toggle/ToggleBase.d.ts.map +0 -1
  224. package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -12
  225. package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +0 -1
  226. package/dist/components/ToggleGroup/ToggleGroupBase.d.ts +0 -30
  227. package/dist/components/ToggleGroup/ToggleGroupBase.d.ts.map +0 -1
  228. package/dist/components/Tooltip/Tooltip.d.ts +0 -9
  229. package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
  230. package/dist/components/Tooltip/TooltipBase.d.ts +0 -51
  231. package/dist/components/Tooltip/TooltipBase.d.ts.map +0 -1
  232. package/dist/components/Tray/Tray.d.ts +0 -32
  233. package/dist/components/Tray/Tray.d.ts.map +0 -1
  234. package/dist/components/Tray/TrayStoriesData.d.ts +0 -39
  235. package/dist/components/Tray/TrayStoriesData.d.ts.map +0 -1
@@ -1,15 +0,0 @@
1
- import { MultiSelectBaseProps } from './MultiSelectBase';
2
- export interface MultiSelectProps extends Omit<MultiSelectBaseProps, 'onChange' | 'options'> {
3
- onSearchChange?: (search: string) => void;
4
- onValueChange: (value: string[]) => void;
5
- options: Array<{
6
- label: string;
7
- value: string;
8
- group?: string;
9
- }>;
10
- loading?: boolean;
11
- emptyText?: string;
12
- sortAlphabetically?: boolean;
13
- }
14
- export declare const MultiSelect: import('react').ForwardRefExoticComponent<MultiSelectProps & import('react').RefAttributes<HTMLButtonElement>>;
15
- //# sourceMappingURL=MutiSelect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MutiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MutiSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,oBAAoB,EAA0B,MAAM,mBAAmB,CAAA;AAGtG,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,SAAS,CAAC;IAC1F,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACxC,OAAO,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAC,CAAA;IACF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,WAAW,gHAWtB,CAAA"}
@@ -1,10 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import * as PopoverPrimitive from '@radix-ui/react-popover';
3
- export type PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {
4
- width?: number | string;
5
- };
6
- export declare const Popover: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
7
- export declare const PopoverTrigger: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>) => import("react/jsx-runtime").JSX.Element;
8
- export declare const PopoverContent: ({ align, className, side, sideOffset, width, ...props }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element;
9
- export declare const PopoverAnchor: ({ ...props }: ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>) => import("react/jsx-runtime").JSX.Element;
10
- //# sourceMappingURL=Popover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAE3D,OAAO,EAAE,KAAK,wBAAwB,EAAsB,MAAM,OAAO,CAAA;AAEzE,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG;IAC5F,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,OAAO,GAAI,cAAc,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,4CAE3F,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,cAAc,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,4CAErG,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,yDAA6F,mBAAmB,4CAyB9I,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,cAAc,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,4CAEnG,CAAA"}
@@ -1,7 +0,0 @@
1
- import { RadioButtonGroupBase, RadioButtonGroupItemProps as RadioButtonGroupItemPropsBase } from './RadioButtonGroupBase';
2
- import { ComponentProps } from 'react';
3
- export type RadioButtonGroupProps = ComponentProps<typeof RadioButtonGroupBase>;
4
- export type RadioButtonGroupItemProps = RadioButtonGroupItemPropsBase;
5
- export declare const RadioButtonGroup: ({ className, children, ...props }: RadioButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
6
- export declare const RadioButtonGroupItem: ({ value, children, className, disabled, asChild, onSelect }: RadioButtonGroupItemPropsBase) => import("react/jsx-runtime").JSX.Element;
7
- //# sourceMappingURL=RadioButtonGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButtonGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButtonGroup/RadioButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAoD,KAAK,yBAAyB,IAAI,6BAA6B,EAAE,MAAM,wBAAwB,CAAA;AAEhL,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAC/E,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CAAA;AAErE,eAAO,MAAM,gBAAgB,GAAI,mCAAmC,qBAAqB,4CAMxF,CAAA;AACD,eAAO,MAAM,oBAAoB,yIAA2B,CAAA"}
@@ -1,21 +0,0 @@
1
- import { AsChildProp } from '../../primitives/slot';
2
- import { ReactNode } from 'react';
3
- export type RadioButtonGroupProps = {
4
- value?: string;
5
- onValueChange?: (value: string) => void;
6
- children: ReactNode;
7
- className?: string;
8
- isKeptActive?: boolean;
9
- expanded?: boolean;
10
- asChild?: boolean;
11
- };
12
- export type RadioButtonGroupItemProps = AsChildProp & {
13
- value: string;
14
- children: ReactNode;
15
- className?: string;
16
- disabled?: boolean;
17
- onSelect?: (value: string) => void;
18
- };
19
- export declare const RadioButtonGroupBase: ({ value, onValueChange, children, className, isKeptActive, expanded }: RadioButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
20
- export declare const RadioButtonGroupItem: ({ value, children, className, disabled, asChild, onSelect }: RadioButtonGroupItemProps) => import("react/jsx-runtime").JSX.Element;
21
- //# sourceMappingURL=RadioButtonGroupBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButtonGroupBase.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButtonGroup/RadioButtonGroupBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAWjE,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,WAAW,GAAG;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,uEAAuF,qBAAqB,4CAQhJ,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,6DAA6E,yBAAyB,4CA+C1I,CAAA"}
@@ -1,36 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- type RadioGroupVariant = 'default' | 'tiles' | 'unstyled';
4
- export type RadioGroupProps = Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, 'onChange' | 'disabled'> & {
5
- onValueChange: (selected: string) => void;
6
- selected?: string;
7
- name: string;
8
- required?: boolean;
9
- orientation?: 'horizontal' | 'vertical';
10
- variant?: RadioGroupVariant;
11
- className?: string;
12
- disabled?: boolean | string[];
13
- itemClassName?: string;
14
- };
15
- export interface RadioGroupItemProps extends ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
16
- className?: string;
17
- children?: ReactNode;
18
- id?: string;
19
- value: string;
20
- description?: string | ReactNode;
21
- }
22
- declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<Omit<RadioGroupPrimitive.RadioGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "onChange" | "disabled"> & {
23
- onValueChange: (selected: string) => void;
24
- selected?: string;
25
- name: string;
26
- required?: boolean;
27
- orientation?: "horizontal" | "vertical";
28
- variant?: RadioGroupVariant;
29
- className?: string;
30
- disabled?: boolean | string[];
31
- itemClassName?: string;
32
- } & import('react').RefAttributes<HTMLDivElement>>;
33
- declare const RadioGroupItem: import('react').ForwardRefExoticComponent<RadioGroupItemProps & import('react').RefAttributes<HTMLButtonElement>>;
34
- declare const RadioGroupLabel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
35
- export { RadioGroup, RadioGroupItem, RadioGroupLabel };
36
- //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAA;AAElE,OAAO,EAAE,KAAK,wBAAwB,EAAyE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAEjK,KAAK,iBAAiB,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;AAEzD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG;IACvH,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,OAAO,CAAC,EAAE,iBAAiB,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC;IACpG,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC;AAoBD,QAAA,MAAM,UAAU;mBArCC,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI;eAC9B,MAAM;UACX,MAAM;eACD,OAAO;kBACJ,YAAY,GAAG,UAAU;cAC7B,iBAAiB;gBACf,MAAM;eACP,OAAO,GAAG,MAAM,EAAE;oBACb,MAAM;kDAsDtB,CAAA;AAgCF,QAAA,MAAM,cAAc,mHA4ClB,CAAA;AAGF,QAAA,MAAM,eAAe,qRAEnB,CAAA;AAGF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
@@ -1,28 +0,0 @@
1
- import { BaseFormFieldProps, BaseOption } from '../../utils/formFieldUtils';
2
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
3
- type SelectOption = BaseOption;
4
- type Align = 'start' | 'center' | 'end';
5
- type Side = 'top' | 'bottom' | 'left' | 'right';
6
- export interface SelectProps extends Omit<ComponentPropsWithoutRef<'button'>, 'value' | 'onChange'>, BaseFormFieldProps {
7
- defaultValue?: string;
8
- emptyMessage?: ReactNode;
9
- id?: string;
10
- label?: string;
11
- labelClassName?: string;
12
- loadingMessage?: string;
13
- onChange?: (value: string) => void;
14
- options: SelectOption[];
15
- placeholder?: string;
16
- value?: string;
17
- }
18
- export interface SelectExtendedProps extends SelectProps {
19
- align?: Align;
20
- alignOffset?: number;
21
- collisionPadding?: number | Partial<Record<Side, number>>;
22
- position?: 'popper' | 'item-aligned';
23
- side?: Side;
24
- sideOffset?: number;
25
- }
26
- export declare const Select: import('react').ForwardRefExoticComponent<SelectExtendedProps & import('react').RefAttributes<HTMLButtonElement>>;
27
- export {};
28
- //# sourceMappingURL=Select.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,EAaL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAChB,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAc,KAAK,wBAAwB,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAErG,KAAK,YAAY,GAAG,UAAU,CAAA;AAC9B,KAAK,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AACvC,KAAK,IAAI,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;AAE/C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,EAAE,kBAAkB;IACrH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;IACzD,QAAQ,CAAC,EAAE,QAAQ,GAAG,cAAc,CAAA;IACpC,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,MAAM,mHA0IlB,CAAA"}
@@ -1,12 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- export type SeparatorProps = {
3
- orientation?: 'horizontal' | 'vertical';
4
- decorative?: boolean;
5
- className?: string;
6
- } & ComponentPropsWithoutRef<'div'>;
7
- export declare const Separator: import('react').ForwardRefExoticComponent<{
8
- orientation?: "horizontal" | "vertical";
9
- decorative?: boolean;
10
- className?: string;
11
- } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
12
- //# sourceMappingURL=Separator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../../src/components/Separator/Separator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAEjE,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAEnC,eAAO,MAAM,SAAS;kBALN,YAAY,GAAG,UAAU;iBAC1B,OAAO;gBACR,MAAM;mKAgBlB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- declare function Skeleton({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
3
- export { Skeleton };
4
- //# sourceMappingURL=Skeleton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAE/D;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,18 +0,0 @@
1
- import { ComponentProps } from 'react';
2
- import * as SliderBase from '@radix-ui/react-slider';
3
- export type SliderProps = {
4
- className?: string;
5
- defaultValue?: number[];
6
- disabled?: boolean;
7
- max?: number;
8
- min?: number;
9
- minStepsBetweenThumbs?: number;
10
- name?: string;
11
- onValueChange?: (value: number[]) => void;
12
- onValueCommit?: (value: number[]) => void;
13
- orientation?: 'horizontal' | 'vertical';
14
- step?: number;
15
- value?: number[];
16
- };
17
- export declare const Slider: ({ className, defaultValue, disabled, max, min, minStepsBetweenThumbs, name, onValueChange, onValueCommit, orientation, step, value, ...props }: ComponentProps<typeof SliderBase.Root>) => import("react/jsx-runtime").JSX.Element;
18
- //# sourceMappingURL=Slider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA;AAEpD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAEpD,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,MAAM,GAAI,gJAAiL,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,4CAgC7O,CAAA"}
@@ -1,54 +0,0 @@
1
- import { AsChildProp } from '../../primitives/slot';
2
- import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
- type Orientation = 'horizontal' | 'vertical';
4
- type Dir = 'ltr' | 'rtl';
5
- export type SliderBaseProps = HTMLAttributes<HTMLDivElement> & AsChildProp & {
6
- value?: number[];
7
- defaultValue?: number[];
8
- onValueChange?: (values: number[]) => void;
9
- onValueCommit?: (values: number[]) => void;
10
- min?: number;
11
- max?: number;
12
- step?: number;
13
- minStepsBetweenThumbs?: number;
14
- orientation?: Orientation;
15
- dir?: Dir;
16
- disabled?: boolean;
17
- name?: string;
18
- form?: string;
19
- required?: boolean;
20
- };
21
- export declare const SliderBase: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & {
22
- value?: number[];
23
- defaultValue?: number[];
24
- onValueChange?: (values: number[]) => void;
25
- onValueCommit?: (values: number[]) => void;
26
- min?: number;
27
- max?: number;
28
- step?: number;
29
- minStepsBetweenThumbs?: number;
30
- orientation?: Orientation;
31
- dir?: Dir;
32
- disabled?: boolean;
33
- name?: string;
34
- form?: string;
35
- required?: boolean;
36
- } & import('react').RefAttributes<HTMLDivElement>>;
37
- export type SliderTrackProps = HTMLAttributes<HTMLDivElement> & AsChildProp;
38
- export declare const SliderTrack: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('react').RefAttributes<HTMLDivElement>>;
39
- export type SliderRangeProps = HTMLAttributes<HTMLDivElement> & AsChildProp;
40
- export declare const SliderRange: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AsChildProp & import('react').RefAttributes<HTMLDivElement>>;
41
- export type SliderThumbProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> & AsChildProp & {
42
- index?: number;
43
- 'aria-label'?: string;
44
- 'aria-labelledby'?: string;
45
- 'aria-valuetext'?: string;
46
- };
47
- export declare const SliderThumb: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & AsChildProp & {
48
- index?: number;
49
- 'aria-label'?: string;
50
- 'aria-labelledby'?: string;
51
- 'aria-valuetext'?: string;
52
- } & import('react').RefAttributes<HTMLButtonElement>>;
53
- export {};
54
- //# sourceMappingURL=SliderBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SliderBase.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderBase.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAA8F,KAAK,oBAAoB,EAAwC,KAAK,cAAc,EAAmE,MAAM,OAAO,CAAA;AAMzQ,KAAK,WAAW,GAAG,YAAY,GAAG,UAAU,CAAA;AAC5C,KAAK,GAAG,GAAG,KAAK,GAAG,KAAK,CAAA;AAyExB,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,GAC1D,WAAW,GAAG;IACZ,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC1C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,GAAG,CAAC,EAAE,GAAG,CAAA;IACT,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAEH,eAAO,MAAM,UAAU;YAhBX,MAAM,EAAE;mBACD,MAAM,EAAE;oBACP,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI;oBAC1B,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI;UACpC,MAAM;UACN,MAAM;WACL,MAAM;4BACW,MAAM;kBAChB,WAAW;UACnB,GAAG;eACE,OAAO;WACX,MAAM;WACN,MAAM;eACF,OAAO;kDA+ErB,CAAA;AAmBD,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,WAAW,CAAA;AAE3E,eAAO,MAAM,WAAW,yIAwCtB,CAAA;AAKF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,WAAW,CAAA;AAE3E,eAAO,MAAM,WAAW,yIAYtB,CAAA;AAKF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,GACnF,WAAW,GAAG;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAEH,eAAO,MAAM,WAAW;YANZ,MAAM;mBACC,MAAM;wBACD,MAAM;uBACP,MAAM;qDAgI3B,CAAA"}
@@ -1,30 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- export interface SpectralProviderProps {
3
- children: ReactNode;
4
- className?: string;
5
- /**
6
- * Adds a wrapper div with spectral-root class for CSS isolation.
7
- * Set to false if you want to manage CSS specificity yourself.
8
- * @default true
9
- */
10
- isolated?: boolean;
11
- }
12
- /**
13
- * Optional provider component for Spectral components.
14
- * Provides CSS isolation when needed to prevent style conflicts.
15
- *
16
- * @example
17
- * ```tsx
18
- * // With isolation (recommended for apps with conflicting styles)
19
- * <SpectralProvider>
20
- * <Button>Click me</Button>
21
- * </SpectralProvider>
22
- *
23
- * // Without wrapper (when you have full control over styles)
24
- * <SpectralProvider isolated={false}>
25
- * <Button>Click me</Button>
26
- * </SpectralProvider>
27
- * ```
28
- */
29
- export declare const SpectralProvider: FC<SpectralProviderProps>;
30
- //# sourceMappingURL=SpectralProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpectralProvider.d.ts","sourceRoot":"","sources":["../../../src/components/SpectralProvider/SpectralProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE/C,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAMtD,CAAA"}
@@ -1,2 +0,0 @@
1
- export { SpectralProvider, type SpectralProviderProps } from './SpectralProvider';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SpectralProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,12 +0,0 @@
1
- import { SwitchProps as SwitchBaseProps } from './SwitchBase';
2
- export declare const Switch: import('react').ForwardRefExoticComponent<Omit<SwitchBaseProps, "onCheckedChange"> & {
3
- labelPosition?: "left" | "right";
4
- labelText: string;
5
- id: string;
6
- hideLabel?: boolean;
7
- onChange?: (checked: boolean) => void;
8
- required?: boolean;
9
- value?: string;
10
- variant?: "default" | "squared";
11
- } & import('react').RefAttributes<HTMLButtonElement>>;
12
- //# sourceMappingURL=Switch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,cAAc,CAAA;AAgBrG,eAAO,MAAM,MAAM;oBAVD,MAAM,GAAG,OAAO;eACrB,MAAM;QACb,MAAM;gBACE,OAAO;eACR,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;eAC1B,OAAO;YACV,MAAM;cACJ,SAAS,GAAG,SAAS;qDAqD/B,CAAA"}
@@ -1,25 +0,0 @@
1
- import { AsChildProp } from '../../primitives/slot';
2
- import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
3
- type BaseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value'>;
4
- export type SwitchProps = BaseButtonProps & AsChildProp & {
5
- checked?: boolean;
6
- defaultChecked?: boolean;
7
- onCheckedChange?: (checked: boolean) => void;
8
- name?: string;
9
- value?: string;
10
- required?: boolean;
11
- form?: string;
12
- };
13
- export declare const Switch: import('react').ForwardRefExoticComponent<BaseButtonProps & AsChildProp & {
14
- checked?: boolean;
15
- defaultChecked?: boolean;
16
- onCheckedChange?: (checked: boolean) => void;
17
- name?: string;
18
- value?: string;
19
- required?: boolean;
20
- form?: string;
21
- } & import('react').RefAttributes<HTMLButtonElement>>;
22
- export type SwitchThumbProps = HTMLAttributes<HTMLSpanElement> & AsChildProp;
23
- export declare const SwitchThumb: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & AsChildProp & import('react').RefAttributes<HTMLSpanElement>>;
24
- export {};
25
- //# sourceMappingURL=SwitchBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwitchBase.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/SwitchBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAgF,KAAK,oBAAoB,EAAoB,KAAK,cAAc,EAAiD,MAAM,OAAO,CAAA;AASrN,KAAK,eAAe,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,CAAA;AAE1F,MAAM,MAAM,WAAW,GAAG,eAAe,GACvC,WAAW,GAAG;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAEH,eAAO,MAAM,MAAM;cATL,OAAO;qBACA,OAAO;sBACN,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WACrC,MAAM;YACL,MAAM;eACH,OAAO;WACX,MAAM;qDAmHf,CAAA;AAGF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG,WAAW,CAAA;AAE5E,eAAO,MAAM,WAAW,2IAgBtB,CAAA"}
@@ -1,28 +0,0 @@
1
- import { TabsBase, TabsContent, TabsList, TabsTrigger, TabsBaseProps } from './TabsBase';
2
- import { ReactEventHandler, ReactNode } from 'react';
3
- export interface TabValue {
4
- key: string | undefined;
5
- label: ReactNode;
6
- children: ReactNode;
7
- disabled?: boolean | undefined;
8
- 'aria-label'?: string | undefined;
9
- 'aria-describedby'?: string | undefined;
10
- }
11
- export interface TabsProps extends Omit<TabsBaseProps, 'children' | 'defaultValue' | 'onError' | 'disabled'> {
12
- onBeforeChange?: (newValue: string, oldValue: string) => boolean | Promise<boolean> | undefined;
13
- onError?: (error: Error) => void | ReactEventHandler<HTMLDivElement> | undefined;
14
- ariaLabel?: string | undefined;
15
- className?: string | undefined;
16
- openOnLoad?: string | undefined;
17
- tabValues: TabValue[] | undefined;
18
- variant?: 'enclosed' | 'default';
19
- loading?: boolean | undefined;
20
- }
21
- export declare const Tabs: ({ ariaLabel, className, openOnLoad, orientation, tabValues, variant, activationMode, loading, onError, onBeforeChange, onValueChange, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
22
- export { TabsContent, TabsList, TabsBase as TabsRoot, TabsTrigger };
23
- export type { TabsBaseProps, TabsContentProps, TabsListProps, TabsTriggerProps } from './TabsBase';
24
- export type TabKeys<T extends TabValue[]> = T[number]['key'];
25
- export type TabValueWithKey<TKey extends string> = TabValue & {
26
- key: TKey;
27
- };
28
- //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAG7F,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE9D,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,EAAE,SAAS,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACxC;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,cAAc,GAAG,SAAS,GAAG,UAAU,CAAC;IAC1G,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,CAAA;IAC/F,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAA;IAChF,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAChC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAcD,eAAO,MAAM,IAAI,GAAI,kJAAwM,SAAS,4CAwGrO,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAA;AAEnE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElG,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,QAAQ,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAA;AAC5D,MAAM,MAAM,eAAe,CAAC,IAAI,SAAS,MAAM,IAAI,QAAQ,GAAG;IAAE,GAAG,EAAE,IAAI,CAAA;CAAE,CAAA"}
@@ -1,38 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- export interface TabsContextValue {
3
- onValueChange: (value: string) => void;
4
- activationMode: 'automatic' | 'manual';
5
- baseId: string;
6
- dir: 'ltr' | 'rtl';
7
- disabled: boolean;
8
- orientation: 'horizontal' | 'vertical';
9
- value: string;
10
- }
11
- export declare const TabsContext: import('react').Context<TabsContextValue | null>;
12
- export declare const useTabsContext: (componentName?: string) => TabsContextValue;
13
- export interface TabsBaseProps extends Omit<ComponentPropsWithoutRef<'div'>, 'dir' | 'defaultValue'> {
14
- onValueChange?: (value: string) => void;
15
- activationMode?: 'automatic' | 'manual';
16
- defaultValue?: string;
17
- children: ReactNode;
18
- dir?: 'ltr' | 'rtl';
19
- disabled?: boolean;
20
- orientation?: 'horizontal' | 'vertical';
21
- value?: string;
22
- }
23
- export declare const TabsBase: import('react').ForwardRefExoticComponent<TabsBaseProps & import('react').RefAttributes<HTMLElement>>;
24
- export interface TabsListProps extends ComponentPropsWithoutRef<'div'> {
25
- loop?: boolean;
26
- }
27
- export declare const TabsList: import('react').ForwardRefExoticComponent<TabsListProps & import('react').RefAttributes<HTMLElement>>;
28
- export interface TabsTriggerProps extends ComponentPropsWithoutRef<'button'> {
29
- value: string;
30
- disabled?: boolean;
31
- }
32
- export declare const TabsTrigger: import('react').ForwardRefExoticComponent<TabsTriggerProps & import('react').RefAttributes<HTMLElement>>;
33
- export interface TabsContentProps extends ComponentPropsWithoutRef<'div'> {
34
- value: string;
35
- forceMount?: boolean;
36
- }
37
- export declare const TabsContent: import('react').ForwardRefExoticComponent<TabsContentProps & import('react').RefAttributes<HTMLElement>>;
38
- //# sourceMappingURL=TabsBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabsBase.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabsBase.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0F,KAAK,wBAAwB,EAAuC,KAAK,SAAS,EAA4B,MAAM,OAAO,CAAA;AAE5N,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,cAAc,EAAE,WAAW,GAAG,QAAQ,CAAA;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,KAAK,GAAG,KAAK,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,YAAY,GAAG,UAAU,CAAA;IACtC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,WAAW,kDAA+C,CAAA;AAEvE,eAAO,MAAM,cAAc,GAAI,gBAAe,MAAe,KAAG,gBAM/D,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IAClG,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,cAAc,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAA;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,QAAQ,uGAmCnB,CAAA;AAEF,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACpE,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,eAAO,MAAM,QAAQ,uGAkHnB,CAAA;AAEF,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,QAAQ,CAAC;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,0GAmEtB,CAAA;AAEF,MAAM,WAAW,gBAAiB,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,eAAO,MAAM,WAAW,0GAatB,CAAA"}
@@ -1,17 +0,0 @@
1
- export declare const tabsData: {
2
- key: string;
3
- label: string;
4
- children: import("react/jsx-runtime").JSX.Element;
5
- }[];
6
- export declare const tabsDataDisabled: ({
7
- key: string;
8
- label: string;
9
- children: import("react/jsx-runtime").JSX.Element;
10
- disabled?: undefined;
11
- } | {
12
- key: string;
13
- label: string;
14
- disabled: boolean;
15
- children: import("react/jsx-runtime").JSX.Element;
16
- })[];
17
- //# sourceMappingURL=tabsStoryData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabsStoryData.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/tabsStoryData.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;GAsFpB,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;IAwF5B,CAAA"}
@@ -1,57 +0,0 @@
1
- import { RefObject } from 'react';
2
- export interface IndicatorStyle {
3
- left: number;
4
- top: number;
5
- width: number;
6
- height: number;
7
- orientation: 'horizontal' | 'vertical';
8
- isEnclosed: boolean;
9
- }
10
- export interface IndicatorPosition {
11
- left?: string;
12
- top?: string;
13
- width?: string;
14
- height?: string;
15
- }
16
- /**
17
- * Calculates the position and dimensions of the active tab indicator
18
- */
19
- export declare const calculateIndicatorStyle: (tabsListRef: RefObject<HTMLDivElement>) => IndicatorStyle;
20
- /**
21
- * Gets CSS positioning styles for the indicator based on orientation
22
- */
23
- export declare const getIndicatorPosition: (style: IndicatorStyle) => IndicatorPosition;
24
- /**
25
- * Debounce utility for performance optimization with proper cleanup
26
- */
27
- export declare const debounce: <TArgs extends unknown[]>(func: (...args: TArgs) => void, wait: number) => ((...args: TArgs) => void);
28
- /**
29
- * Checks if user prefers reduced motion (SSR safe)
30
- */
31
- export declare const prefersReducedMotion: () => boolean;
32
- /**
33
- * Generates a cryptographically secure unique ID for component instances
34
- */
35
- export declare const generateId: (prefix?: string) => string;
36
- /**
37
- * Validates tab values array for library usage with comprehensive type checking
38
- */
39
- export declare const validateTabValues: (tabValues: {
40
- key: string;
41
- label: unknown;
42
- children: unknown;
43
- [K: string]: unknown;
44
- }[]) => boolean;
45
- /**
46
- * Type-safe key extractor for tab values
47
- */
48
- export declare const getTabKeys: <T extends {
49
- key: string;
50
- }>(tabValues: T[]) => string[];
51
- /**
52
- * Finds a tab by key with proper type narrowing
53
- */
54
- export declare const findTabByKey: <T extends {
55
- key: string;
56
- }>(tabValues: T[], key: string) => T | undefined;
57
- //# sourceMappingURL=tabsUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabsUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/tabsUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,YAAY,GAAG,UAAU,CAAA;IACtC,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,aAAa,SAAS,CAAC,cAAc,CAAC,KAAG,cA6BhF,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,cAAc,KAAG,iBAY5D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,SAAS,OAAO,EAAE,EAAE,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,EAAE,MAAM,MAAM,KAAG,CAAC,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,CAWzH,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAO,OAQvC,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,SAAQ,MAAe,KAAG,MAOpD,CAAA;AA8CD;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAAE,KAAG,OA6BzH,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,WAAW,CAAC,EAAE,KAAG,MAAM,EAAqC,CAAA;AAElH;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,WAAW,CAAC,EAAE,EAAE,KAAK,MAAM,KAAG,CAAC,GAAG,SAAqD,CAAA"}
@@ -1,20 +0,0 @@
1
- import { FormFieldState } from '../../utils/formFieldUtils';
2
- import { ComponentProps, FocusEvent } from 'react';
3
- export type TextareaState = FormFieldState;
4
- export type TextareaProps = Omit<ComponentProps<'textarea'>, 'onChange'> & {
5
- className?: string | undefined;
6
- errorMessage?: string | undefined;
7
- id?: string | undefined;
8
- label: string;
9
- labelClassName?: string;
10
- maxLength?: number | undefined;
11
- name: string;
12
- onBlur?: (e: FocusEvent<HTMLTextAreaElement>) => void;
13
- onChange?: (value: string) => void;
14
- onFocus?: (e: FocusEvent<HTMLTextAreaElement>) => void;
15
- placeholder?: string | undefined;
16
- state?: TextareaState;
17
- value?: string | undefined;
18
- };
19
- export declare const Textarea: import('react').ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & import('react').RefAttributes<HTMLTextAreaElement>>;
20
- //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA0F,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEnJ,OAAO,EAAsB,KAAK,cAAc,EAAsB,KAAK,UAAU,EAAkB,MAAM,OAAO,CAAA;AAEpH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAI1C,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,GAAG;IACzE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACtD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B,CAAA;AAeD,eAAO,MAAM,QAAQ,4HA4EpB,CAAA"}
@@ -1,19 +0,0 @@
1
- import { ChangeEvent, ClipboardEvent, FocusEvent } from 'react';
2
- export type UseTextareaOptions = {
3
- maxLength: number;
4
- value: string;
5
- onChange: (value: string) => 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextareaUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/TextareaUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAe,MAAM,OAAO,CAAA;AAE3F,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACtD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACzD,UAAU,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IACxD,YAAY,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;IAC3D,WAAW,EAAE,CAAC,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAA;CAC9D,CAAA;AAoDD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,iDAAiD,kBAAkB,KAAG,iBAmCjG,CAAA"}
@@ -1,11 +0,0 @@
1
- import { ToggleBase } from './ToggleBase';
2
- import { VariantProps } from 'class-variance-authority';
3
- import { ComponentProps } from 'react';
4
- export type ToggleProps = ComponentProps<typeof ToggleBase> & VariantProps<typeof toggleVariants>;
5
- export declare const toggleVariants: (props?: ({
6
- variant?: "default" | "outline" | null | undefined;
7
- size?: "default" | "sm" | "lg" | null | undefined;
8
- layout?: "default" | "expanded" | null | undefined;
9
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
- export declare const Toggle: import('react').ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
11
- //# sourceMappingURL=Toggle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,KAAK,cAAc,EAAc,MAAM,OAAO,CAAA;AAEvD,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAA;AAEjG,eAAO,MAAM,cAAc;;;;8EA8B1B,CAAA;AAED,eAAO,MAAM,MAAM,wHAEjB,CAAA"}
@@ -1,17 +0,0 @@
1
- import { AsChildProp } from '../../primitives/slot';
2
- import { ButtonHTMLAttributes } from 'react';
3
- export type ToggleProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> & Omit<AsChildProp, 'asChild'> & {
4
- pressed?: boolean;
5
- defaultPressed?: boolean;
6
- onPressedChange?: (pressed: boolean) => void;
7
- disabled?: boolean;
8
- asChild?: boolean;
9
- };
10
- export declare const ToggleBase: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> & Omit<AsChildProp, "asChild"> & {
11
- pressed?: boolean;
12
- defaultPressed?: boolean;
13
- onPressedChange?: (pressed: boolean) => void;
14
- disabled?: boolean;
15
- asChild?: boolean;
16
- } & import('react').RefAttributes<HTMLButtonElement>>;
17
- //# sourceMappingURL=ToggleBase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToggleBase.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/ToggleBase.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAA2B,KAAK,oBAAoB,EAAuC,MAAM,OAAO,CAAA;AAE/G,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,GACjF,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAEH,eAAO,MAAM,UAAU;cAPT,OAAO;qBACA,OAAO;sBACN,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;eACjC,OAAO;cACR,OAAO;qDAuCnB,CAAA"}