@atom-learning/components 2.29.0-beta.2 → 2.29.0-beta.4

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 (293) hide show
  1. package/dist/components/accordion/Accordion.d.ts +266 -1
  2. package/dist/components/accordion/AccordionContent.d.ts +266 -1
  3. package/dist/components/accordion/AccordionContent.js +1 -1
  4. package/dist/components/accordion/AccordionItem.d.ts +266 -1
  5. package/dist/components/accordion/AccordionItem.js +1 -1
  6. package/dist/components/accordion/AccordionTrigger.d.ts +268 -1
  7. package/dist/components/action-icon/ActionIcon.d.ts +281 -1
  8. package/dist/components/alert-dialog/AlertDialog.d.ts +266 -1
  9. package/dist/components/alert-dialog/AlertDialogContent.d.ts +268 -1
  10. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  11. package/dist/components/alert-dialog/alert-context/AlertDialog.d.ts +1 -1
  12. package/dist/components/avatar/Avatar.d.ts +536 -2
  13. package/dist/components/avatar/Avatar.js +1 -1
  14. package/dist/components/badge/Badge.d.ts +534 -1
  15. package/dist/components/box/Box.d.ts +266 -1
  16. package/dist/components/button/Button.d.ts +283 -2
  17. package/dist/components/button/Button.js +1 -1
  18. package/dist/components/calendar/Calendar.d.ts +1 -1
  19. package/dist/components/calendar/Calendar.js +1 -1
  20. package/dist/components/calendar/Day.d.ts +270 -1
  21. package/dist/components/carousel/Carousel.d.ts +1 -1
  22. package/dist/components/carousel/CarouselArrows.d.ts +1 -1
  23. package/dist/components/carousel/CarouselArrows.js +1 -1
  24. package/dist/components/carousel/CarouselPagination.d.ts +267 -1
  25. package/dist/components/carousel/CarouselSlide.d.ts +266 -1
  26. package/dist/components/carousel/CarouselSlide.js +1 -1
  27. package/dist/components/carousel/CarouselSlider.d.ts +269 -1
  28. package/dist/components/checkbox/Checkbox.d.ts +269 -1
  29. package/dist/components/checkbox-field/CheckboxField.d.ts +2 -2
  30. package/dist/components/checkbox-field/CheckboxField.js +1 -1
  31. package/dist/components/chip/Chip.d.ts +1879 -5
  32. package/dist/components/chip/Chip.js +1 -1
  33. package/dist/components/chip/ChipGroup.d.ts +1 -1
  34. package/dist/components/chip/ChipGroup.js +1 -1
  35. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +547 -2
  36. package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.d.ts +5 -1
  37. package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
  38. package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +546 -1
  39. package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +562 -1
  40. package/dist/components/combobox/Combobox.d.ts +266 -1
  41. package/dist/components/combobox/ComboboxInput.d.ts +268 -1
  42. package/dist/components/combobox/ComboboxList.d.ts +266 -1
  43. package/dist/components/combobox/ComboboxOption.d.ts +266 -1
  44. package/dist/components/combobox/ComboboxPopover.d.ts +266 -1
  45. package/dist/components/data-table/DataTable.js +1 -1
  46. package/dist/components/data-table/DataTableBody.js +1 -1
  47. package/dist/components/data-table/DataTableDataCell.js +1 -1
  48. package/dist/components/data-table/DataTableLoading.d.ts +270 -1
  49. package/dist/components/data-table/DataTableRow.js +1 -1
  50. package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -1
  51. package/dist/components/data-table/drag-and-drop/Handle.d.ts +559 -1
  52. package/dist/components/data-table/drag-and-drop/Handle.js +1 -1
  53. package/dist/components/data-table/pagination/Pagination.d.ts +266 -1
  54. package/dist/components/data-table/pagination/PaginationButtons.d.ts +1 -1
  55. package/dist/components/date-field/DateField.d.ts +2 -2
  56. package/dist/components/dialog/Dialog.d.ts +266 -1
  57. package/dist/components/dialog/DialogBackground.d.ts +531 -1
  58. package/dist/components/dialog/DialogClose.d.ts +267 -1
  59. package/dist/components/dialog/DialogContent.d.ts +268 -1
  60. package/dist/components/dialog/DialogContent.js +1 -1
  61. package/dist/components/dismissible/DismissibleRoot.js +1 -1
  62. package/dist/components/dismissible/DismissibleTrigger.js +1 -1
  63. package/dist/components/dismissible-group/DismissibleGroupItem.d.ts +1 -1
  64. package/dist/components/dismissible-group/index.d.ts +1 -1
  65. package/dist/components/divider/Divider.d.ts +268 -1
  66. package/dist/components/dropdown-menu/DropdownMenu.d.ts +266 -1
  67. package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +267 -1
  68. package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +267 -1
  69. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  70. package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +267 -1
  71. package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +267 -1
  72. package/dist/components/empty-state/EmptyState.d.ts +533 -1
  73. package/dist/components/empty-state/EmptyStateBody.d.ts +543 -1
  74. package/dist/components/empty-state/EmptyStateImage.d.ts +542 -2
  75. package/dist/components/empty-state/EmptyStateTitle.d.ts +268 -1
  76. package/dist/components/field-wrapper/FieldDescription.d.ts +1 -1
  77. package/dist/components/field-wrapper/FieldDescription.js +1 -1
  78. package/dist/components/field-wrapper/FieldWrapper.d.ts +2 -2
  79. package/dist/components/field-wrapper/InlineFieldWrapper.d.ts +1 -1
  80. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  81. package/dist/components/file-input/FileInput.js +1 -1
  82. package/dist/components/flex/Flex.d.ts +266 -1
  83. package/dist/components/form/Form.d.ts +266 -1
  84. package/dist/components/grid/Grid.d.ts +268 -1
  85. package/dist/components/grid/Grid.js +1 -1
  86. package/dist/components/heading/Heading.d.ts +270 -2
  87. package/dist/components/icon/Icon.d.ts +269 -2
  88. package/dist/components/icon/Icon.js +1 -1
  89. package/dist/components/image/Image.d.ts +269 -2
  90. package/dist/components/inline-message/InlineMessage.config.d.ts +1 -1
  91. package/dist/components/inline-message/InlineMessage.d.ts +534 -1
  92. package/dist/components/inline-message/InlineMessage.js +1 -1
  93. package/dist/components/input/Input.d.ts +270 -2
  94. package/dist/components/input-field/InputField.d.ts +2 -2
  95. package/dist/components/label/Label.d.ts +272 -2
  96. package/dist/components/label/Label.js +1 -1
  97. package/dist/components/link/Link.d.ts +271 -3
  98. package/dist/components/link/Link.js +1 -1
  99. package/dist/components/list/List.d.ts +537 -2
  100. package/dist/components/list/List.js +1 -1
  101. package/dist/components/loader/Loader.d.ts +1 -1
  102. package/dist/components/markdown-content/MarkdownContent.d.ts +1 -1
  103. package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +266 -1
  104. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  105. package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
  106. package/dist/components/markdown-content/components/MarkdownImage.d.ts +1 -1
  107. package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
  108. package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
  109. package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
  110. package/dist/components/markdown-content/components/MarkdownList.d.ts +1 -1
  111. package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
  112. package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
  113. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  114. package/dist/components/markdown-content/components/MarkdownThematicBreak.d.ts +1 -1
  115. package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
  116. package/dist/components/navigation/NavigationMenu.d.ts +1 -1
  117. package/dist/components/navigation/NavigationMenuDropdown.d.ts +1 -1
  118. package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
  119. package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +543 -4
  120. package/dist/components/navigation/NavigationMenuLink.d.ts +1 -1
  121. package/dist/components/navigation/NavigationMenuLink.js +1 -1
  122. package/dist/components/notification-badge/NotificationBadge.d.ts +531 -1
  123. package/dist/components/notification-badge/NotificationBadge.js +1 -1
  124. package/dist/components/number-input/NumberInput.d.ts +1 -1
  125. package/dist/components/number-input/NumberInput.js +1 -1
  126. package/dist/components/number-input/NumberInputStepper.js +1 -1
  127. package/dist/components/number-input-field/NumberInputField.d.ts +2 -2
  128. package/dist/components/number-input-field/NumberInputField.js +1 -1
  129. package/dist/components/password-field/PasswordField.d.ts +2 -2
  130. package/dist/components/password-input/PasswordInput.d.ts +1 -1
  131. package/dist/components/popover/Popover.d.ts +266 -1
  132. package/dist/components/popover/PopoverContent.d.ts +268 -1
  133. package/dist/components/popover/PopoverContent.js +1 -1
  134. package/dist/components/progress-bar/ProgressBar.d.ts +269 -1
  135. package/dist/components/radio-button/RadioButton.d.ts +268 -2
  136. package/dist/components/radio-button/RadioButton.js +1 -1
  137. package/dist/components/radio-button/RadioButtonGroup.d.ts +270 -1
  138. package/dist/components/radio-button-field/RadioButtonField.d.ts +2 -2
  139. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  140. package/dist/components/radio-button-field/RadioField.d.ts +3 -3
  141. package/dist/components/radio-button-field/RadioField.js +1 -1
  142. package/dist/components/radio-card/RadioCard.d.ts +271 -1
  143. package/dist/components/radio-card/RadioCardGroup.d.ts +3 -3
  144. package/dist/components/radio-card/RadioCardGroup.js +1 -1
  145. package/dist/components/search-field/SearchField.d.ts +2 -2
  146. package/dist/components/search-input/SearchInput.d.ts +2 -2
  147. package/dist/components/search-input/SearchInput.js +1 -1
  148. package/dist/components/select/Select.d.ts +270 -2
  149. package/dist/components/select-field/SelectField.d.ts +2 -2
  150. package/dist/components/select-field/SelectField.js +1 -1
  151. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +266 -1
  152. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
  153. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +267 -1
  154. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +267 -1
  155. package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +268 -1
  156. package/dist/components/sidedrawer/SidedrawerContent.d.ts +266 -1
  157. package/dist/components/sidedrawer/SidedrawerContent.js +1 -1
  158. package/dist/components/sidedrawer/SidedrawerFooter.d.ts +266 -1
  159. package/dist/components/sidedrawer/SidedrawerHeader.d.ts +266 -1
  160. package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +267 -1
  161. package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +267 -1
  162. package/dist/components/slider/Slider.d.ts +268 -1
  163. package/dist/components/slider-field/SliderField.d.ts +3 -3
  164. package/dist/components/slider-field/SliderField.js +1 -1
  165. package/dist/components/stack/Stack.d.ts +273 -2
  166. package/dist/components/stack-content/StackContent.d.ts +267 -2
  167. package/dist/components/stack-content/StackContent.js +1 -1
  168. package/dist/components/stepper/StepperStepBack.js +1 -1
  169. package/dist/components/stepper/StepperStepBullet.d.ts +533 -1
  170. package/dist/components/stepper/StepperStepContainer.d.ts +536 -1
  171. package/dist/components/stepper/StepperStepLabel.d.ts +544 -1
  172. package/dist/components/stepper/types.d.ts +1 -1
  173. package/dist/components/switch/Switch.d.ts +267 -1
  174. package/dist/components/table/Table.d.ts +269 -1
  175. package/dist/components/table/TableBody.d.ts +268 -1
  176. package/dist/components/table/TableCell.d.ts +266 -1
  177. package/dist/components/table/TableFooter.d.ts +266 -1
  178. package/dist/components/table/TableFooterCell.d.ts +266 -1
  179. package/dist/components/table/TableHeader.d.ts +268 -1
  180. package/dist/components/table/TableHeader.js +1 -1
  181. package/dist/components/table/TableHeaderCell.d.ts +266 -1
  182. package/dist/components/table/TableRow.d.ts +536 -2
  183. package/dist/components/table/TableRow.js +1 -1
  184. package/dist/components/tabs/TabTrigger.d.ts +268 -1
  185. package/dist/components/tabs/Tabs.d.ts +536 -2
  186. package/dist/components/tabs/Tabs.js +1 -1
  187. package/dist/components/tabs/TabsTriggerList.d.ts +269 -1
  188. package/dist/components/tabs/utils.js +1 -1
  189. package/dist/components/text/Text.d.ts +271 -3
  190. package/dist/components/textarea/Textarea.d.ts +268 -1
  191. package/dist/components/textarea-field/TextareaField.d.ts +2 -2
  192. package/dist/components/toast/Toast.d.ts +268 -1
  193. package/dist/components/toast/Toast.js +1 -1
  194. package/dist/components/toast/ToastProvider.js +1 -1
  195. package/dist/components/toggle-group/ToggleGroupButton.d.ts +534 -1
  196. package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
  197. package/dist/components/toggle-group/ToggleGroupItem.d.ts +534 -2
  198. package/dist/components/toggle-group/ToggleGroupRoot.d.ts +271 -1
  199. package/dist/components/toggle-group/index.d.ts +1352 -3
  200. package/dist/components/tooltip/TooltipContent.d.ts +268 -1
  201. package/dist/components/tooltip/TooltipContent.js +1 -1
  202. package/dist/components/top-bar/TopBar.d.ts +270 -2
  203. package/dist/components/top-bar/TopBarBrand.d.ts +808 -4
  204. package/dist/components/video/Video.d.ts +535 -4
  205. package/dist/components/video/Video.js +1 -1
  206. package/dist/docgen.json +1 -0
  207. package/dist/docs/Accordion.mdx +45 -0
  208. package/dist/docs/ActionIcon.mdx +87 -0
  209. package/dist/docs/AlertDialog.mdx +40 -0
  210. package/dist/docs/Avatar.mdx +129 -0
  211. package/dist/docs/Badge.mdx +55 -0
  212. package/dist/docs/Box.mdx +52 -0
  213. package/dist/docs/Button.mdx +76 -0
  214. package/dist/docs/CONTRIBUTING.md +224 -0
  215. package/dist/docs/CSSWrapper.mdx +10 -0
  216. package/dist/docs/Carousel.mdx +88 -0
  217. package/dist/docs/Checkbox.mdx +19 -0
  218. package/dist/docs/CheckboxField.mdx +14 -0
  219. package/dist/docs/Chip.mdx +118 -0
  220. package/dist/docs/ChipDismissibleGroup.mdx +33 -0
  221. package/dist/docs/ChipToggleGroup.mdx +27 -0
  222. package/dist/docs/Combobox.mdx +44 -0
  223. package/dist/docs/DataTable.mdx +279 -0
  224. package/dist/docs/DateField.mdx +20 -0
  225. package/dist/docs/DateInput.mdx +87 -0
  226. package/dist/docs/Dialog.mdx +68 -0
  227. package/dist/docs/Dismissible.mdx +48 -0
  228. package/dist/docs/DismissibleGroup.mdx +29 -0
  229. package/dist/docs/Divider.mdx +16 -0
  230. package/dist/docs/DropdownMenu.mdx +30 -0
  231. package/dist/docs/EmptyState.mdx +23 -0
  232. package/dist/docs/FieldWrapper.mdx +30 -0
  233. package/dist/docs/FileInput.mdx +45 -0
  234. package/dist/docs/Flex.mdx +16 -0
  235. package/dist/docs/Form.mdx +411 -0
  236. package/dist/docs/Grid.mdx +28 -0
  237. package/dist/docs/Heading.mdx +30 -0
  238. package/dist/docs/Icon.mdx +30 -0
  239. package/dist/docs/Image.mdx +14 -0
  240. package/dist/docs/InlineMessage.mdx +52 -0
  241. package/dist/docs/Input.mdx +24 -0
  242. package/dist/docs/InputField.mdx +26 -0
  243. package/dist/docs/Label.mdx +32 -0
  244. package/dist/docs/Link.mdx +53 -0
  245. package/dist/docs/List.mdx +38 -0
  246. package/dist/docs/Loader.mdx +16 -0
  247. package/dist/docs/MarkdownContent.mdx +77 -0
  248. package/dist/docs/NavigationMenu.mdx +144 -0
  249. package/dist/docs/NotificationBadge.mdx +35 -0
  250. package/dist/docs/NumberInput.mdx +37 -0
  251. package/dist/docs/NumberInputField.mdx +26 -0
  252. package/dist/docs/PasswordField.mdx +23 -0
  253. package/dist/docs/PasswordInput.mdx +15 -0
  254. package/dist/docs/Popover.mdx +29 -0
  255. package/dist/docs/ProgressBar.mdx +56 -0
  256. package/dist/docs/RadioButton.mdx +10 -0
  257. package/dist/docs/RadioButtonField.mdx +25 -0
  258. package/dist/docs/RadioCard.mdx +62 -0
  259. package/dist/docs/SearchField.mdx +26 -0
  260. package/dist/docs/SearchInput.mdx +13 -0
  261. package/dist/docs/Select.mdx +56 -0
  262. package/dist/docs/SelectField.mdx +17 -0
  263. package/dist/docs/Sidedrawer.mdx +155 -0
  264. package/dist/docs/Slider.mdx +117 -0
  265. package/dist/docs/SliderField.mdx +35 -0
  266. package/dist/docs/Stack.mdx +24 -0
  267. package/dist/docs/StackContent.mdx +32 -0
  268. package/dist/docs/Stepper.mdx +154 -0
  269. package/dist/docs/Styling.mdx +85 -0
  270. package/dist/docs/Switch.mdx +28 -0
  271. package/dist/docs/Table.mdx +146 -0
  272. package/dist/docs/Tabs.mdx +102 -0
  273. package/dist/docs/Text.mdx +24 -0
  274. package/dist/docs/Textarea.mdx +12 -0
  275. package/dist/docs/TextareaField.mdx +21 -0
  276. package/dist/docs/Toast.mdx +20 -0
  277. package/dist/docs/ToggleGroup.mdx +88 -0
  278. package/dist/docs/Tooltip.mdx +25 -0
  279. package/dist/docs/TopBar.mdx +95 -0
  280. package/dist/docs/Video.mdx +12 -0
  281. package/dist/docs/accessibility.mdx +67 -0
  282. package/dist/docs/coreconcepts.mdx +77 -0
  283. package/dist/docs/introduction.mdx +33 -0
  284. package/dist/docs/versioning.mdx +40 -0
  285. package/dist/index.cjs.js +1 -1
  286. package/dist/index.d.ts +1 -1
  287. package/dist/stitches.d.ts +1949 -2
  288. package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +109 -1
  289. package/dist/utilities/css-wrapper/CSSWrapper.d.ts +1 -1
  290. package/dist/utilities/hooks/useCallbackRef.js +1 -1
  291. package/dist/utilities/style/capsize.d.ts +1 -1
  292. package/dist/utilities/style/keyframe-animations.d.ts +32 -8
  293. package/package.json +3 -3
@@ -1 +1,270 @@
1
- export declare const RadioButtonGroup: any;
1
+ /// <reference types="react" />
2
+ import * as RadioGroup from '@radix-ui/react-radio-group';
3
+ export declare const RadioButtonGroup: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<RadioGroup.RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>, {
4
+ direction?: "row" | "column" | undefined;
5
+ }, {
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
10
+ reducedMotion: string;
11
+ allowMotion: string;
12
+ hover: string;
13
+ }, import("@stitches/react/types/css-util").CSS<{
14
+ sm: string;
15
+ md: string;
16
+ lg: string;
17
+ xl: string;
18
+ reducedMotion: string;
19
+ allowMotion: string;
20
+ hover: string;
21
+ }, {
22
+ colors: {
23
+ textForeground: any;
24
+ textSubtle: any;
25
+ textPlaceholder: any;
26
+ background: any;
27
+ backgroundAccent: any;
28
+ tonal50: any;
29
+ tonal100: any;
30
+ tonal200: any;
31
+ tonal300: any;
32
+ tonal400: any;
33
+ tonal500: any;
34
+ tonal600: any;
35
+ alpha100: any;
36
+ alpha150: any;
37
+ alpha200: any;
38
+ alpha250: any;
39
+ alpha600: any;
40
+ primaryLight: any;
41
+ primary: any;
42
+ primaryMid: any;
43
+ primaryDark: any;
44
+ secondary: any;
45
+ brandRed: any;
46
+ brandRedAccent: any;
47
+ brandGreen: any;
48
+ brandGreenAccent: any;
49
+ brandPurple: any;
50
+ brandPurpleAccent: any;
51
+ brandYellow: any;
52
+ brandYellowAccent: any;
53
+ successLight: any;
54
+ success: any;
55
+ successMid: any;
56
+ successDark: any;
57
+ dangerLight: any;
58
+ danger: any;
59
+ dangerMid: any;
60
+ dangerDark: any;
61
+ warningLight: any;
62
+ warning: any;
63
+ warningMid: any;
64
+ warningDark: any;
65
+ warningText: any;
66
+ subjectEnglish: any;
67
+ subjectMaths: any;
68
+ subjectScience: any;
69
+ subjectVerbalReasoning: any;
70
+ subjectNonVerbalReasoning: any;
71
+ subjectCreativeWriting: any;
72
+ subjectExamSkills: any;
73
+ };
74
+ space: {
75
+ "0": any;
76
+ "1": any;
77
+ "2": any;
78
+ "3": any;
79
+ "4": any;
80
+ "5": any;
81
+ "6": any;
82
+ "7": any;
83
+ "8": any;
84
+ "9": any;
85
+ };
86
+ fontSizes: {
87
+ xs: any;
88
+ sm: any;
89
+ md: any;
90
+ lg: any;
91
+ xl: any;
92
+ "2xl": any;
93
+ "3xl": any;
94
+ "4xl": any;
95
+ };
96
+ fonts: {
97
+ sans: any;
98
+ mono: any;
99
+ display: any;
100
+ body: any;
101
+ };
102
+ sizes: {
103
+ "0": any;
104
+ "1": any;
105
+ "2": any;
106
+ "3": any;
107
+ "4": any;
108
+ "5": any;
109
+ "6": any;
110
+ "7": any;
111
+ "8": any;
112
+ };
113
+ radii: {
114
+ "0": any;
115
+ "1": any;
116
+ "2": any;
117
+ "3": any;
118
+ round: any;
119
+ };
120
+ shadows: {
121
+ "0": any;
122
+ "1": any;
123
+ "2": any;
124
+ "3": any;
125
+ };
126
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
127
+ bg: (value: {
128
+ readonly [$$PropertyValue]: "background";
129
+ }) => {
130
+ background: {
131
+ readonly [$$PropertyValue]: "background";
132
+ };
133
+ };
134
+ inset: (value: string | number | {
135
+ readonly [$$ScaleValue]: "space";
136
+ }) => {
137
+ top: string | number | {
138
+ readonly [$$ScaleValue]: "space";
139
+ };
140
+ right: string | number | {
141
+ readonly [$$ScaleValue]: "space";
142
+ };
143
+ bottom: string | number | {
144
+ readonly [$$ScaleValue]: "space";
145
+ };
146
+ left: string | number | {
147
+ readonly [$$ScaleValue]: "space";
148
+ };
149
+ };
150
+ size: (value: string | number | {
151
+ readonly [$$ScaleValue]: "size";
152
+ }) => {
153
+ height: string | number | {
154
+ readonly [$$ScaleValue]: "size";
155
+ };
156
+ width: string | number | {
157
+ readonly [$$ScaleValue]: "size";
158
+ };
159
+ };
160
+ p: (value: string | number | {
161
+ readonly [$$ScaleValue]: "space";
162
+ }) => {
163
+ padding: string | number | {
164
+ readonly [$$ScaleValue]: "space";
165
+ };
166
+ };
167
+ pt: (value: string | number | {
168
+ readonly [$$ScaleValue]: "space";
169
+ }) => {
170
+ paddingTop: string | number | {
171
+ readonly [$$ScaleValue]: "space";
172
+ };
173
+ };
174
+ pr: (value: string | number | {
175
+ readonly [$$ScaleValue]: "space";
176
+ }) => {
177
+ paddingRight: string | number | {
178
+ readonly [$$ScaleValue]: "space";
179
+ };
180
+ };
181
+ pb: (value: string | number | {
182
+ readonly [$$ScaleValue]: "space";
183
+ }) => {
184
+ paddingBottom: string | number | {
185
+ readonly [$$ScaleValue]: "space";
186
+ };
187
+ };
188
+ pl: (value: string | number | {
189
+ readonly [$$ScaleValue]: "space";
190
+ }) => {
191
+ paddingLeft: string | number | {
192
+ readonly [$$ScaleValue]: "space";
193
+ };
194
+ };
195
+ px: (value: string | number | {
196
+ readonly [$$ScaleValue]: "space";
197
+ }) => {
198
+ paddingLeft: string | number | {
199
+ readonly [$$ScaleValue]: "space";
200
+ };
201
+ paddingRight: string | number | {
202
+ readonly [$$ScaleValue]: "space";
203
+ };
204
+ };
205
+ py: (value: string | number | {
206
+ readonly [$$ScaleValue]: "space";
207
+ }) => {
208
+ paddingTop: string | number | {
209
+ readonly [$$ScaleValue]: "space";
210
+ };
211
+ paddingBottom: string | number | {
212
+ readonly [$$ScaleValue]: "space";
213
+ };
214
+ };
215
+ m: (value: string | number | {
216
+ readonly [$$ScaleValue]: "space";
217
+ }) => {
218
+ margin: string | number | {
219
+ readonly [$$ScaleValue]: "space";
220
+ };
221
+ };
222
+ mt: (value: string | number | {
223
+ readonly [$$ScaleValue]: "space";
224
+ }) => {
225
+ marginTop: string | number | {
226
+ readonly [$$ScaleValue]: "space";
227
+ };
228
+ };
229
+ mr: (value: string | number | {
230
+ readonly [$$ScaleValue]: "space";
231
+ }) => {
232
+ marginRight: string | number | {
233
+ readonly [$$ScaleValue]: "space";
234
+ };
235
+ };
236
+ mb: (value: string | number | {
237
+ readonly [$$ScaleValue]: "space";
238
+ }) => {
239
+ marginBottom: string | number | {
240
+ readonly [$$ScaleValue]: "space";
241
+ };
242
+ };
243
+ ml: (value: string | number | {
244
+ readonly [$$ScaleValue]: "space";
245
+ }) => {
246
+ marginLeft: string | number | {
247
+ readonly [$$ScaleValue]: "space";
248
+ };
249
+ };
250
+ mx: (value: string | number | {
251
+ readonly [$$ScaleValue]: "space";
252
+ }) => {
253
+ marginLeft: string | number | {
254
+ readonly [$$ScaleValue]: "space";
255
+ };
256
+ marginRight: string | number | {
257
+ readonly [$$ScaleValue]: "space";
258
+ };
259
+ };
260
+ my: (value: string | number | {
261
+ readonly [$$ScaleValue]: "space";
262
+ }) => {
263
+ marginTop: string | number | {
264
+ readonly [$$ScaleValue]: "space";
265
+ };
266
+ marginBottom: string | number | {
267
+ readonly [$$ScaleValue]: "space";
268
+ };
269
+ };
270
+ }>>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { FieldElementWrapperProps } from '~/components/field-wrapper';
3
- import { RadioButtonGroup } from '~/components/radio-button';
2
+ import { FieldElementWrapperProps } from '../../components/field-wrapper';
3
+ import { RadioButtonGroup } from '../../components/radio-button';
4
4
  import { RadioField } from './RadioField';
5
5
  declare type RadioButtonFieldProps = React.ComponentProps<typeof RadioButtonGroup> & FieldElementWrapperProps;
6
6
  export declare const RadioButtonField: React.FC<RadioButtonFieldProps> & {
@@ -1 +1 @@
1
- import*as e from"react";import{useFormContext as F,Controller as g}from"react-hook-form";import{Description as C}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as V}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as h}from"../radio-button/RadioButtonGroup.js";import{InlineMessage as v}from"../inline-message/InlineMessage.js";import{styled as B}from"../../stitches.js";import{RadioField as R}from"./RadioField.js";const q=B("fieldset",{all:"unset"}),t=({children:s,css:d,direction:u="column",defaultValue:r,description:l,label:c,name:n,validation:o,onValueChange:a})=>{const{control:p}=F(),{error:m}=V(n);return e.createElement(q,{css:d},e.createElement(b,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(o==null?void 0:o.required)},c),l&&e.createElement(C,{css:{mb:"$3"}},l),e.createElement(g,{control:p,name:n,rules:o,defaultValue:r,render:({onChange:f,value:E})=>e.createElement(h,{direction:u,defaultValue:r,onValueChange:i=>{f(i),a==null||a(i)},value:E},s)}),m&&e.createElement(v,{css:{mt:"$2"}},m))};t.Item=R,t.displayName="RadioButtonField";export{t as RadioButtonField};
1
+ import*as e from"react";import{useFormContext as F,Controller as g}from"react-hook-form";import{Description as C}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as V}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as h}from"../radio-button/RadioButtonGroup.js";import{InlineMessage as v}from"../inline-message/InlineMessage.js";import{styled as B}from"../../stitches.js";import{RadioField as R}from"./RadioField.js";const $=B("fieldset",{all:"unset"}),r=({children:s,css:d,direction:u="column",defaultValue:t,description:l,label:c,name:n,validation:o,onValueChange:a})=>{const{control:p}=F(),{error:m}=V(n);return e.createElement($,{css:d},e.createElement(b,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(o==null?void 0:o.required)},c),l&&e.createElement(C,{css:{mb:"$3"}},l),e.createElement(g,{control:p,name:n,rules:o,defaultValue:t,render:({onChange:f,value:E})=>e.createElement(h,{direction:u,defaultValue:t,onValueChange:i=>{f(i),a==null||a(i)},value:E},s)}),m&&e.createElement(v,{css:{mt:"$2"}},m))};r.Item=R,r.displayName="RadioButtonField";export{r as RadioButtonField};
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { ValidationOptions } from '~/components/form';
3
- import { RadioButton } from '~/components/radio-button';
4
- import { CSS } from '~/stitches';
2
+ import { ValidationOptions } from '../../components/form';
3
+ import { RadioButton } from '../../components/radio-button';
4
+ import { CSS } from '../../stitches';
5
5
  declare type RadioFieldProps = {
6
6
  css?: CSS;
7
7
  defaultChecked?: boolean;
@@ -1 +1 @@
1
- import*as e from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as r}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as m}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const o=({css:t,label:a,value:i,...l})=>e.createElement(r,{css:t,label:a},e.createElement(m,{value:i,...l}));o.displayName="RadioField";export{o as RadioField};
1
+ import*as e from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as t}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as m}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const o=({css:a,label:i,value:l,...r})=>e.createElement(t,{css:a,label:i},e.createElement(m,{value:l,...r}));o.displayName="RadioField";export{o as RadioField};
@@ -1,5 +1,275 @@
1
+ import * as RadioGroup from '@radix-ui/react-radio-group';
1
2
  import * as React from 'react';
2
- export declare const StyledRadioCard: any;
3
+ export declare const StyledRadioCard: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<RadioGroup.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>, {
4
+ align?: "left" | "right" | undefined;
5
+ size?: "md" | "lg" | undefined;
6
+ isFullWidth?: boolean | "true" | "false" | undefined;
7
+ }, {
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ xl: string;
12
+ reducedMotion: string;
13
+ allowMotion: string;
14
+ hover: string;
15
+ }, import("@stitches/react/types/css-util").CSS<{
16
+ sm: string;
17
+ md: string;
18
+ lg: string;
19
+ xl: string;
20
+ reducedMotion: string;
21
+ allowMotion: string;
22
+ hover: string;
23
+ }, {
24
+ colors: {
25
+ textForeground: any;
26
+ textSubtle: any;
27
+ textPlaceholder: any;
28
+ background: any;
29
+ backgroundAccent: any;
30
+ tonal50: any;
31
+ tonal100: any;
32
+ tonal200: any;
33
+ tonal300: any;
34
+ tonal400: any;
35
+ tonal500: any;
36
+ tonal600: any;
37
+ alpha100: any;
38
+ alpha150: any;
39
+ alpha200: any;
40
+ alpha250: any;
41
+ alpha600: any;
42
+ primaryLight: any;
43
+ primary: any;
44
+ primaryMid: any;
45
+ primaryDark: any;
46
+ secondary: any;
47
+ brandRed: any;
48
+ brandRedAccent: any;
49
+ brandGreen: any;
50
+ brandGreenAccent: any;
51
+ brandPurple: any;
52
+ brandPurpleAccent: any;
53
+ brandYellow: any;
54
+ brandYellowAccent: any;
55
+ successLight: any;
56
+ success: any;
57
+ successMid: any;
58
+ successDark: any;
59
+ dangerLight: any;
60
+ danger: any;
61
+ dangerMid: any;
62
+ dangerDark: any;
63
+ warningLight: any;
64
+ warning: any;
65
+ warningMid: any;
66
+ warningDark: any;
67
+ warningText: any;
68
+ subjectEnglish: any;
69
+ subjectMaths: any;
70
+ subjectScience: any;
71
+ subjectVerbalReasoning: any;
72
+ subjectNonVerbalReasoning: any;
73
+ subjectCreativeWriting: any;
74
+ subjectExamSkills: any;
75
+ };
76
+ space: {
77
+ "0": any;
78
+ "1": any;
79
+ "2": any;
80
+ "3": any;
81
+ "4": any;
82
+ "5": any;
83
+ "6": any;
84
+ "7": any;
85
+ "8": any;
86
+ "9": any;
87
+ };
88
+ fontSizes: {
89
+ xs: any;
90
+ sm: any;
91
+ md: any;
92
+ lg: any;
93
+ xl: any;
94
+ "2xl": any;
95
+ "3xl": any;
96
+ "4xl": any;
97
+ };
98
+ fonts: {
99
+ sans: any;
100
+ mono: any;
101
+ display: any;
102
+ body: any;
103
+ };
104
+ sizes: {
105
+ "0": any;
106
+ "1": any;
107
+ "2": any;
108
+ "3": any;
109
+ "4": any;
110
+ "5": any;
111
+ "6": any;
112
+ "7": any;
113
+ "8": any;
114
+ };
115
+ radii: {
116
+ "0": any;
117
+ "1": any;
118
+ "2": any;
119
+ "3": any;
120
+ round: any;
121
+ };
122
+ shadows: {
123
+ "0": any;
124
+ "1": any;
125
+ "2": any;
126
+ "3": any;
127
+ };
128
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
129
+ bg: (value: {
130
+ readonly [$$PropertyValue]: "background";
131
+ }) => {
132
+ background: {
133
+ readonly [$$PropertyValue]: "background";
134
+ };
135
+ };
136
+ inset: (value: string | number | {
137
+ readonly [$$ScaleValue]: "space";
138
+ }) => {
139
+ top: string | number | {
140
+ readonly [$$ScaleValue]: "space";
141
+ };
142
+ right: string | number | {
143
+ readonly [$$ScaleValue]: "space";
144
+ };
145
+ bottom: string | number | {
146
+ readonly [$$ScaleValue]: "space";
147
+ };
148
+ left: string | number | {
149
+ readonly [$$ScaleValue]: "space";
150
+ };
151
+ };
152
+ size: (value: string | number | {
153
+ readonly [$$ScaleValue]: "size";
154
+ }) => {
155
+ height: string | number | {
156
+ readonly [$$ScaleValue]: "size";
157
+ };
158
+ width: string | number | {
159
+ readonly [$$ScaleValue]: "size";
160
+ };
161
+ };
162
+ p: (value: string | number | {
163
+ readonly [$$ScaleValue]: "space";
164
+ }) => {
165
+ padding: string | number | {
166
+ readonly [$$ScaleValue]: "space";
167
+ };
168
+ };
169
+ pt: (value: string | number | {
170
+ readonly [$$ScaleValue]: "space";
171
+ }) => {
172
+ paddingTop: string | number | {
173
+ readonly [$$ScaleValue]: "space";
174
+ };
175
+ };
176
+ pr: (value: string | number | {
177
+ readonly [$$ScaleValue]: "space";
178
+ }) => {
179
+ paddingRight: string | number | {
180
+ readonly [$$ScaleValue]: "space";
181
+ };
182
+ };
183
+ pb: (value: string | number | {
184
+ readonly [$$ScaleValue]: "space";
185
+ }) => {
186
+ paddingBottom: string | number | {
187
+ readonly [$$ScaleValue]: "space";
188
+ };
189
+ };
190
+ pl: (value: string | number | {
191
+ readonly [$$ScaleValue]: "space";
192
+ }) => {
193
+ paddingLeft: string | number | {
194
+ readonly [$$ScaleValue]: "space";
195
+ };
196
+ };
197
+ px: (value: string | number | {
198
+ readonly [$$ScaleValue]: "space";
199
+ }) => {
200
+ paddingLeft: string | number | {
201
+ readonly [$$ScaleValue]: "space";
202
+ };
203
+ paddingRight: string | number | {
204
+ readonly [$$ScaleValue]: "space";
205
+ };
206
+ };
207
+ py: (value: string | number | {
208
+ readonly [$$ScaleValue]: "space";
209
+ }) => {
210
+ paddingTop: string | number | {
211
+ readonly [$$ScaleValue]: "space";
212
+ };
213
+ paddingBottom: string | number | {
214
+ readonly [$$ScaleValue]: "space";
215
+ };
216
+ };
217
+ m: (value: string | number | {
218
+ readonly [$$ScaleValue]: "space";
219
+ }) => {
220
+ margin: string | number | {
221
+ readonly [$$ScaleValue]: "space";
222
+ };
223
+ };
224
+ mt: (value: string | number | {
225
+ readonly [$$ScaleValue]: "space";
226
+ }) => {
227
+ marginTop: string | number | {
228
+ readonly [$$ScaleValue]: "space";
229
+ };
230
+ };
231
+ mr: (value: string | number | {
232
+ readonly [$$ScaleValue]: "space";
233
+ }) => {
234
+ marginRight: string | number | {
235
+ readonly [$$ScaleValue]: "space";
236
+ };
237
+ };
238
+ mb: (value: string | number | {
239
+ readonly [$$ScaleValue]: "space";
240
+ }) => {
241
+ marginBottom: string | number | {
242
+ readonly [$$ScaleValue]: "space";
243
+ };
244
+ };
245
+ ml: (value: string | number | {
246
+ readonly [$$ScaleValue]: "space";
247
+ }) => {
248
+ marginLeft: string | number | {
249
+ readonly [$$ScaleValue]: "space";
250
+ };
251
+ };
252
+ mx: (value: string | number | {
253
+ readonly [$$ScaleValue]: "space";
254
+ }) => {
255
+ marginLeft: string | number | {
256
+ readonly [$$ScaleValue]: "space";
257
+ };
258
+ marginRight: string | number | {
259
+ readonly [$$ScaleValue]: "space";
260
+ };
261
+ };
262
+ my: (value: string | number | {
263
+ readonly [$$ScaleValue]: "space";
264
+ }) => {
265
+ marginTop: string | number | {
266
+ readonly [$$ScaleValue]: "space";
267
+ };
268
+ marginBottom: string | number | {
269
+ readonly [$$ScaleValue]: "space";
270
+ };
271
+ };
272
+ }>>;
3
273
  declare type RadioCardProps = React.ComponentProps<typeof StyledRadioCard>;
4
274
  export declare const RadioCard: React.FC<RadioCardProps>;
5
275
  export {};
@@ -1,9 +1,9 @@
1
1
  import * as RadioGroup from '@radix-ui/react-radio-group';
2
- import type * as Stitches from '@stitches/react';
2
+ import type { VariantProps } from '@stitches/react';
3
3
  import * as React from 'react';
4
- import type { Override } from '~/utilities';
4
+ import type { Override } from '../../utilities';
5
5
  import { Stack } from '../stack/Stack';
6
6
  import { StyledRadioCard } from './RadioCard';
7
- declare type RadioCardGroupProps = Override<Pick<React.ComponentProps<typeof Stack>, 'justify' | 'gap' | 'css'> & Stitches.VariantProps<typeof StyledRadioCard>, React.ComponentProps<typeof RadioGroup.Root>>;
7
+ declare type RadioCardGroupProps = Override<Pick<React.ComponentProps<typeof Stack>, 'justify' | 'gap' | 'css'> & VariantProps<typeof StyledRadioCard>, React.ComponentProps<typeof RadioGroup.Root>>;
8
8
  export declare const RadioCardGroup: React.FC<RadioCardGroupProps>;
9
9
  export {};
@@ -1 +1 @@
1
- import*as d from"@radix-ui/react-radio-group";import*as t from"react";import{Stack as p}from"../stack/Stack.js";import{RadioCard as c}from"./RadioCard.js";const f=({css:e,children:r,size:l,isFullWidth:o,align:a,gap:s="3",justify:m,...n})=>t.createElement(d.Root,{...n},t.createElement(p,{direction:"row",justify:m,gap:s,css:e},t.Children.map(r,i=>t.isValidElement(i)&&(i==null?void 0:i.type)===c?t.cloneElement(i,{size:l,isFullWidth:o,align:a}):i)));export{f as RadioCardGroup};
1
+ import*as d from"@radix-ui/react-radio-group";import*as e from"react";import{Stack as p}from"../stack/Stack.js";import{RadioCard as c}from"./RadioCard.js";const f=({css:t,children:r,size:o,isFullWidth:l,align:a,gap:s="3",justify:m,...n})=>e.createElement(d.Root,{...n},e.createElement(p,{direction:"row",justify:m,gap:s,css:t},e.Children.map(r,i=>e.isValidElement(i)&&(i==null?void 0:i.type)===c?e.cloneElement(i,{size:o,isFullWidth:l,align:a}):i)));export{f as RadioCardGroup};
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { FieldElementWrapperProps } from '~/components/field-wrapper';
3
- import { SearchInputProps } from '~/components/search-input';
2
+ import { FieldElementWrapperProps } from '../../components/field-wrapper';
3
+ import { SearchInputProps } from '../../components/search-input';
4
4
  declare type SearchFieldProps = SearchInputProps & FieldElementWrapperProps;
5
5
  export declare const SearchField: React.FC<SearchFieldProps>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { Input } from '~/components/input/';
3
- import { CSS } from '~/stitches';
2
+ import { Input } from '../../components/input';
3
+ import { CSS } from '../../stitches';
4
4
  export declare type SearchInputProps = React.ComponentProps<typeof Input> & {
5
5
  size?: 'sm' | 'md';
6
6
  css?: CSS;
@@ -1 +1 @@
1
- import{Search as $,Close as z}from"@atom-learning/icons";import*as t from"react";import{ActionIcon as y}from"../action-icon/ActionIcon.js";import{Box as H}from"../box/Box.js";import{Icon as l}from"../icon/Icon.js";import{Input as I}from"../input/Input.js";import{styled as p}from"../../stitches.js";import{useCallbackRef as k}from"../../utilities/hooks/useCallbackRef.js";var L=(e=>(e.SEARCH="SEARCH",e.CLEAR="CLEAR",e))(L||{});const x=p(l,{color:"$tonal300",position:"absolute",pointerEvents:"none",variants:{size:{sm:{top:"$2",right:"$2",size:"$1"},md:{top:10,right:10,size:20}}}}),O=p(I,{'&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}),u=t.forwardRef(({size:e="md",css:m,value:n,clearText:E="Clear",onChange:a,...h},b)=>{const[i,f]=k(),[v,C]=t.useState(n||""),[d,R]=t.useState(n?"CLEAR":"SEARCH");t.useImperativeHandle(b,()=>i.current);const A=()=>{var r,c;const o=i.current;if(!o)return;const s=(r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:r.set;(c=s==null?void 0:s.call)==null||c.call(s,o,"");const w=new Event("input",{bubbles:!0});o.dispatchEvent(w),o.focus()},S=r=>{C(r.target.value),R(r.target.value?"CLEAR":"SEARCH"),a==null||a(r)},g=()=>d==="SEARCH"?t.createElement(x,{is:$,size:e,css:{size:e=="sm"?"$1":20}}):t.createElement(y,{label:E,theme:"neutral",size:e,css:{position:"absolute",top:"0",right:"$1"},onClick:A},t.createElement(l,{is:z}));return t.createElement(H,{css:{position:"relative",...m}},t.createElement(O,{ref:f,size:e,type:"search",...h,value:v,onChange:S,css:{pr:e==="sm"?"$5":"$6"}}),g())});u.displayName="SearchInput";export{u as SearchInput};
1
+ import{Search as z,Close as y}from"@atom-learning/icons";import*as t from"react";import{ActionIcon as H}from"../action-icon/ActionIcon.js";import{Box as I}from"../box/Box.js";import{Icon as l}from"../icon/Icon.js";import{Input as k}from"../input/Input.js";import{styled as p}from"../../stitches.js";import{useCallbackRef as L}from"../../utilities/hooks/useCallbackRef.js";var $=(e=>(e.SEARCH="SEARCH",e.CLEAR="CLEAR",e))($||{});const x=p(l,{color:"$tonal300",position:"absolute",pointerEvents:"none",variants:{size:{sm:{top:"$2",right:"$2",size:"$1"},md:{top:10,right:10,size:20}}}}),O=p(k,{'&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}),u=t.forwardRef(({size:e="md",css:m,value:n,clearText:E="Clear",onChange:a,...h},b)=>{const[i,f]=L(),[v,C]=t.useState(n||""),[d,R]=t.useState(n?"CLEAR":"SEARCH");t.useImperativeHandle(b,()=>i.current);const A=()=>{var r,c;const o=i.current;if(!o)return;const s=(r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:r.set;(c=s==null?void 0:s.call)==null||c.call(s,o,"");const w=new Event("input",{bubbles:!0});o.dispatchEvent(w),o.focus()},S=r=>{C(r.target.value),R(r.target.value?"CLEAR":"SEARCH"),a==null||a(r)},g=()=>d==="SEARCH"?t.createElement(x,{is:z,size:e,css:{size:e=="sm"?"$1":20}}):t.createElement(H,{label:E,theme:"neutral",size:e,css:{position:"absolute",top:"0",right:"$1"},onClick:A},t.createElement(l,{is:y}));return t.createElement(I,{css:{position:"relative",...m}},t.createElement(O,{ref:f,size:e,type:"search",...h,value:v,onChange:S,css:{pr:e==="sm"?"$5":"$6"}}),g())});u.displayName="SearchInput";export{u as SearchInput};