@strapi/design-system 1.11.0 → 1.12.0-typescript.1

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 (343) hide show
  1. package/dist/Accordion/Accordion.d.ts +54 -0
  2. package/dist/Accordion/AccordionContent.d.ts +3 -0
  3. package/dist/Accordion/AccordionContext.d.ts +12 -0
  4. package/dist/Accordion/AccordionGroup.d.ts +10 -0
  5. package/dist/Accordion/AccordionToggle.d.ts +22 -0
  6. package/dist/Accordion/index.d.ts +4 -0
  7. package/dist/Accordion/utils.d.ts +7 -0
  8. package/dist/Alert/Alert.d.ts +34 -0
  9. package/dist/Alert/index.d.ts +1 -0
  10. package/dist/Alert/utils.d.ts +10 -0
  11. package/dist/Avatar/Avatar.d.ts +22 -0
  12. package/dist/Avatar/AvatarGroup.d.ts +1 -0
  13. package/dist/Avatar/__tests__/Avatar.spec.d.ts +1 -0
  14. package/dist/Avatar/constants.d.ts +2 -0
  15. package/dist/Avatar/index.d.ts +2 -0
  16. package/dist/Badge/Badge.d.ts +13 -0
  17. package/dist/Badge/index.d.ts +1 -0
  18. package/dist/BaseButton/BaseButton.d.ts +52 -0
  19. package/dist/BaseButton/index.d.ts +1 -0
  20. package/dist/BaseCheckbox/BaseCheckbox.d.ts +27 -0
  21. package/dist/BaseCheckbox/index.d.ts +1 -0
  22. package/dist/BaseCheckbox/utils.d.ts +7 -0
  23. package/dist/BaseLink/BaseLink.d.ts +50 -0
  24. package/dist/BaseLink/__tests__/BaseLink.spec.d.ts +1 -0
  25. package/dist/BaseLink/index.d.ts +1 -0
  26. package/dist/BaseRadio/BaseRadio.d.ts +6 -0
  27. package/dist/BaseRadio/RadioGroup.d.ts +12 -0
  28. package/dist/BaseRadio/context.d.ts +9 -0
  29. package/dist/BaseRadio/index.d.ts +2 -0
  30. package/dist/BaseRadio/utils.d.ts +4 -0
  31. package/dist/Box/Box.d.ts +98 -0
  32. package/dist/Box/__tests__/Box.spec.d.ts +1 -0
  33. package/dist/Box/index.d.ts +1 -0
  34. package/dist/Breadcrumbs/Breadcrumbs.d.ts +17 -0
  35. package/dist/Breadcrumbs/index.d.ts +1 -0
  36. package/dist/Button/Button.d.ts +61 -0
  37. package/dist/Button/__tests__/utils.spec.d.ts +1 -0
  38. package/dist/Button/constants.d.ts +13 -0
  39. package/dist/Button/index.d.ts +1 -0
  40. package/dist/Button/utils.d.ts +18 -0
  41. package/dist/Card/Card.d.ts +5 -0
  42. package/dist/Card/CardAction.d.ts +8 -0
  43. package/dist/Card/CardAsset.d.ts +7 -0
  44. package/dist/Card/CardBadge.d.ts +3 -0
  45. package/dist/Card/CardBody.d.ts +3 -0
  46. package/dist/Card/CardCheckbox.d.ts +3 -0
  47. package/dist/Card/CardContent.d.ts +6 -0
  48. package/dist/Card/CardContext.d.ts +6 -0
  49. package/dist/Card/CardHeader.d.ts +3 -0
  50. package/dist/Card/CardTimer.d.ts +6 -0
  51. package/dist/Card/CardTitle.d.ts +5 -0
  52. package/dist/Card/index.d.ts +10 -0
  53. package/dist/CarouselInput/Carousel.d.ts +15 -0
  54. package/dist/CarouselInput/CarouselActions.d.ts +10 -0
  55. package/dist/CarouselInput/CarouselImage.d.ts +6 -0
  56. package/dist/CarouselInput/CarouselInput.d.ts +8 -0
  57. package/dist/CarouselInput/CarouselSlide.d.ts +7 -0
  58. package/dist/CarouselInput/index.d.ts +5 -0
  59. package/dist/Checkbox/Checkbox.d.ts +9 -0
  60. package/dist/Checkbox/index.d.ts +1 -0
  61. package/dist/Combobox/Combobox.d.ts +60 -0
  62. package/dist/Combobox/ComboboxList.d.ts +10 -0
  63. package/dist/Combobox/ComboboxOption.d.ts +3 -0
  64. package/dist/Combobox/__tests__/Combobox.spec.d.ts +1 -0
  65. package/dist/Combobox/index.d.ts +3 -0
  66. package/dist/DatePicker/DatePicker.d.ts +78 -0
  67. package/dist/DatePicker/__tests__/DatePicker.spec.d.ts +1 -0
  68. package/dist/DatePicker/index.d.ts +2 -0
  69. package/dist/DateTimePicker/DateTimePicker.d.ts +32 -0
  70. package/dist/DateTimePicker/DateTimePicker.js +1 -1
  71. package/dist/DateTimePicker/DateTimePicker.mjs +1 -1
  72. package/dist/DateTimePicker/__tests__/DateTimePicker.spec.d.ts +1 -0
  73. package/dist/DateTimePicker/index.d.ts +1 -0
  74. package/dist/DesignSystemProvider.d.ts +10 -0
  75. package/dist/Dialog/Dialog.d.ts +7 -0
  76. package/dist/Dialog/DialogBody.d.ts +6 -0
  77. package/dist/Dialog/DialogFooter.d.ts +6 -0
  78. package/dist/Dialog/__tests__/Dialog.spec.d.ts +1 -0
  79. package/dist/Dialog/index.d.ts +3 -0
  80. package/dist/DismissibleLayer/index.d.ts +3 -0
  81. package/dist/Divider/Divider.d.ts +9 -0
  82. package/dist/Divider/index.d.ts +1 -0
  83. package/dist/EmptyStateLayout/EmptyStateLayout.d.ts +7 -0
  84. package/dist/EmptyStateLayout/index.d.ts +1 -0
  85. package/dist/EmptyStateLayout/story-assets/Illo.d.ts +1 -0
  86. package/dist/Field/Field.d.ts +14 -0
  87. package/dist/Field/FieldAction.d.ts +7 -0
  88. package/dist/Field/FieldContext.d.ts +10 -0
  89. package/dist/Field/FieldError.d.ts +1 -0
  90. package/dist/Field/FieldHint.d.ts +1 -0
  91. package/dist/Field/FieldInput.d.ts +61 -0
  92. package/dist/Field/FieldLabel.d.ts +11 -0
  93. package/dist/Field/__tests__/Field.spec.d.ts +1 -0
  94. package/dist/Field/index.d.ts +7 -0
  95. package/dist/Flex/Flex.d.ts +15 -0
  96. package/dist/Flex/index.d.ts +1 -0
  97. package/dist/FocusTrap/FocusTrap.d.ts +12 -0
  98. package/dist/FocusTrap/index.d.ts +1 -0
  99. package/dist/Grid/Grid.d.ts +7 -0
  100. package/dist/Grid/GridItem.d.ts +47 -0
  101. package/dist/Grid/index.d.ts +2 -0
  102. package/dist/Icon/Icon.d.ts +7 -0
  103. package/dist/Icon/index.d.ts +1 -0
  104. package/dist/IconButton/IconButton.d.ts +41 -0
  105. package/dist/IconButton/index.d.ts +1 -0
  106. package/dist/JSONInput/JSONInput.d.ts +15 -0
  107. package/dist/JSONInput/__tests__/JSONInput.spec.d.ts +1 -0
  108. package/dist/JSONInput/index.d.ts +1 -0
  109. package/dist/JSONInput/utils/decorationExtension.d.ts +7 -0
  110. package/dist/KeyboardNavigable/KeyboardNavigable.d.ts +6 -0
  111. package/dist/KeyboardNavigable/index.d.ts +1 -0
  112. package/dist/Layout/ActionLayout.d.ts +6 -0
  113. package/dist/Layout/ContentLayout.d.ts +5 -0
  114. package/dist/Layout/GridLayout.d.ts +1 -0
  115. package/dist/Layout/HeaderLayout.d.ts +18 -0
  116. package/dist/Layout/Layout.d.ts +6 -0
  117. package/dist/Layout/TwoColsLayout.d.ts +6 -0
  118. package/dist/Layout/index.d.ts +6 -0
  119. package/dist/Link/Link.d.ts +18 -0
  120. package/dist/Link/index.d.ts +1 -0
  121. package/dist/LinkButton/LinkButton.d.ts +22 -0
  122. package/dist/LinkButton/index.d.ts +1 -0
  123. package/dist/LiveRegions/LiveRegions.d.ts +1 -0
  124. package/dist/LiveRegions/__tests__/LiveRegions.spec.d.ts +1 -0
  125. package/dist/LiveRegions/constants.d.ts +5 -0
  126. package/dist/LiveRegions/index.d.ts +2 -0
  127. package/dist/LiveRegions/useNotifyAT.d.ts +5 -0
  128. package/dist/Loader/Loader.d.ts +6 -0
  129. package/dist/Loader/index.d.ts +1 -0
  130. package/dist/Main/Main.d.ts +5 -0
  131. package/dist/Main/SkipToContent.d.ts +4 -0
  132. package/dist/Main/index.d.ts +2 -0
  133. package/dist/MainNav/MainNav.d.ts +5 -0
  134. package/dist/MainNav/MainNavContext.d.ts +2 -0
  135. package/dist/MainNav/NavBrand.d.ts +8 -0
  136. package/dist/MainNav/NavCondense.d.ts +5 -0
  137. package/dist/MainNav/NavFooter.d.ts +5 -0
  138. package/dist/MainNav/NavLink.d.ts +9 -0
  139. package/dist/MainNav/NavSection.d.ts +11 -0
  140. package/dist/MainNav/NavSections.d.ts +10 -0
  141. package/dist/MainNav/NavUser.d.ts +7 -0
  142. package/dist/MainNav/index.d.ts +8 -0
  143. package/dist/ModalLayout/ModalBody.d.ts +2 -0
  144. package/dist/ModalLayout/ModalContext.d.ts +2 -0
  145. package/dist/ModalLayout/ModalFooter.d.ts +5 -0
  146. package/dist/ModalLayout/ModalHeader.d.ts +6 -0
  147. package/dist/ModalLayout/ModalLayout.d.ts +6 -0
  148. package/dist/ModalLayout/__tests__/ModalLayout.spec.d.ts +1 -0
  149. package/dist/ModalLayout/index.d.ts +4 -0
  150. package/dist/NumberInput/NumberInput.d.ts +11 -0
  151. package/dist/NumberInput/index.d.ts +1 -0
  152. package/dist/Pagination/Pagination.d.ts +8 -0
  153. package/dist/Pagination/PaginationContext.d.ts +6 -0
  154. package/dist/Pagination/components.d.ts +26 -0
  155. package/dist/Pagination/index.d.ts +2 -0
  156. package/dist/Popover/Popover.d.ts +21 -0
  157. package/dist/Popover/__tests__/Popover.spec.d.ts +1 -0
  158. package/dist/Popover/index.d.ts +3 -0
  159. package/dist/Popover/primitives.d.ts +3 -0
  160. package/dist/Portal/Portal.d.ts +6 -0
  161. package/dist/Portal/index.d.ts +1 -0
  162. package/dist/ProgressBar/ProgressBar.d.ts +11 -0
  163. package/dist/ProgressBar/index.d.ts +1 -0
  164. package/dist/Radio/Radio.d.ts +5 -0
  165. package/dist/Radio/__tests__/Radio.spec.d.ts +1 -0
  166. package/dist/Radio/index.d.ts +2 -0
  167. package/dist/RawTable/RawCell.d.ts +14 -0
  168. package/dist/RawTable/RawTable.d.ts +16 -0
  169. package/dist/RawTable/RawTableContext.d.ts +10 -0
  170. package/dist/RawTable/RawTbody.d.ts +5 -0
  171. package/dist/RawTable/RawThead.d.ts +5 -0
  172. package/dist/RawTable/RawTr.d.ts +5 -0
  173. package/dist/RawTable/focusFocusable.d.ts +1 -0
  174. package/dist/RawTable/index.d.ts +5 -0
  175. package/dist/Searchbar/SearchForm.d.ts +3 -0
  176. package/dist/Searchbar/Searchbar.d.ts +9 -0
  177. package/dist/Searchbar/index.d.ts +2 -0
  178. package/dist/Select/MultiSelect.d.ts +40 -0
  179. package/dist/Select/MultiSelect.js +2 -2
  180. package/dist/Select/MultiSelect.mjs +2 -2
  181. package/dist/Select/MultiSelectNested.d.ts +13 -0
  182. package/dist/Select/OptGroup.d.ts +9 -0
  183. package/dist/Select/Option.d.ts +13 -0
  184. package/dist/Select/Select.d.ts +18 -0
  185. package/dist/Select/SelectList.d.ts +25 -0
  186. package/dist/Select/SelectParts.d.ts +67 -0
  187. package/dist/Select/SingleSelect.d.ts +41 -0
  188. package/dist/Select/SingleSelect.js +2 -2
  189. package/dist/Select/SingleSelect.mjs +2 -2
  190. package/dist/Select/__tests__/MultiSelect.spec.d.ts +1 -0
  191. package/dist/Select/__tests__/MultiSelectNested.spec.d.ts +1 -0
  192. package/dist/Select/__tests__/Select.spec.d.ts +1 -0
  193. package/dist/Select/__tests__/SingleSelect.spec.d.ts +1 -0
  194. package/dist/Select/index.d.ts +17 -0
  195. package/dist/SimpleMenu/SimpleMenu.d.ts +33 -0
  196. package/dist/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +1 -0
  197. package/dist/SimpleMenu/index.d.ts +1 -0
  198. package/dist/SimpleMenu/utils.d.ts +3 -0
  199. package/dist/Stack/Stack.d.ts +20 -0
  200. package/dist/Stack/index.d.ts +1 -0
  201. package/dist/Status/Status.d.ts +15 -0
  202. package/dist/Status/__tests__/Status.spec.d.ts +1 -0
  203. package/dist/Status/index.d.ts +1 -0
  204. package/dist/SubNav/SubNav.d.ts +6 -0
  205. package/dist/SubNav/SubNavHeader.d.ts +13 -0
  206. package/dist/SubNav/SubNavLink.d.ts +8 -0
  207. package/dist/SubNav/SubNavLinkSection.d.ts +7 -0
  208. package/dist/SubNav/SubNavSection.d.ts +9 -0
  209. package/dist/SubNav/SubNavSectionLabel.d.ts +8 -0
  210. package/dist/SubNav/SubNavSections.d.ts +10 -0
  211. package/dist/SubNav/index.d.ts +6 -0
  212. package/dist/Switch/Switch.d.ts +13 -0
  213. package/dist/Switch/index.d.ts +1 -0
  214. package/dist/Table/Cell.d.ts +8 -0
  215. package/dist/Table/TFooter.d.ts +7 -0
  216. package/dist/Table/Table.d.ts +7 -0
  217. package/dist/Table/Tbody.d.ts +2 -0
  218. package/dist/Table/Thead.d.ts +2 -0
  219. package/dist/Table/Tr.d.ts +2 -0
  220. package/dist/Table/index.d.ts +6 -0
  221. package/dist/Tabs/TabGroup.d.ts +13 -0
  222. package/dist/Tabs/TabPanels.d.ts +9 -0
  223. package/dist/Tabs/Tabs.d.ts +17 -0
  224. package/dist/Tabs/TabsContext.d.ts +10 -0
  225. package/dist/Tabs/components.d.ts +94 -0
  226. package/dist/Tabs/index.d.ts +3 -0
  227. package/dist/Tag/Tag.d.ts +5 -0
  228. package/dist/Tag/__tests__/Tag.spec.d.ts +1 -0
  229. package/dist/Tag/index.d.ts +1 -0
  230. package/dist/TextButton/TextButton.d.ts +8 -0
  231. package/dist/TextButton/index.d.ts +1 -0
  232. package/dist/TextInput/TextInput.d.ts +10 -0
  233. package/dist/TextInput/__tests__/TextInput.spec.d.ts +1 -0
  234. package/dist/TextInput/index.d.ts +1 -0
  235. package/dist/Textarea/Textarea.d.ts +17 -0
  236. package/dist/Textarea/index.d.ts +1 -0
  237. package/dist/ThemeProvider/ThemeProvider.d.ts +10 -0
  238. package/dist/ThemeProvider/hooks.d.ts +1 -0
  239. package/dist/ThemeProvider/index.d.ts +2 -0
  240. package/dist/TimePicker/TimePicker.d.ts +26 -0
  241. package/dist/TimePicker/__tests__/TimePicker.spec.d.ts +1 -0
  242. package/dist/TimePicker/index.d.ts +1 -0
  243. package/dist/ToggleCheckbox/ToggleCheckbox.d.ts +10 -0
  244. package/dist/ToggleCheckbox/index.d.ts +1 -0
  245. package/dist/ToggleInput/ToggleInput.d.ts +24 -0
  246. package/dist/ToggleInput/__tests__/ToggleInput.spec.d.ts +1 -0
  247. package/dist/ToggleInput/index.d.ts +1 -0
  248. package/dist/Tooltip/Tooltip.d.ts +11 -0
  249. package/dist/Tooltip/__tests__/Tooltip.spec.d.ts +1 -0
  250. package/dist/Tooltip/hooks/useTooltipHandlers.d.ts +7 -0
  251. package/dist/Tooltip/hooks/useTooltipLayout.d.ts +5 -0
  252. package/dist/Tooltip/index.d.ts +1 -0
  253. package/dist/Tooltip/utils/__tests__/positionTooltip.spec.d.ts +1 -0
  254. package/dist/Tooltip/utils/positionTooltip.d.ts +5 -0
  255. package/dist/Typography/Typography.d.ts +20 -0
  256. package/dist/Typography/__tests__/Typography.spec.d.ts +1 -0
  257. package/dist/Typography/constants.d.ts +8 -0
  258. package/dist/Typography/index.d.ts +1 -0
  259. package/dist/Typography/utils.d.ts +9 -0
  260. package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -0
  261. package/dist/VisuallyHidden/index.d.ts +1 -0
  262. package/dist/helpers/__tests__/deprecations.spec.d.ts +1 -0
  263. package/dist/helpers/context.d.ts +7 -0
  264. package/dist/helpers/deprecations.d.ts +2 -0
  265. package/dist/helpers/getDefaultLocale.d.ts +5 -0
  266. package/dist/helpers/getFocusableNodes.d.ts +10 -0
  267. package/dist/helpers/handleResponsiveValues.d.ts +14 -0
  268. package/dist/helpers/keyboardKeys.d.ts +17 -0
  269. package/dist/helpers/objects.d.ts +8 -0
  270. package/dist/helpers/setOpacity.d.ts +1 -0
  271. package/dist/helpers/setTabIndexOnFirstItem.d.ts +1 -0
  272. package/dist/helpers/strings.d.ts +1 -0
  273. package/dist/helpers/theme.d.ts +2 -0
  274. package/dist/helpers/useElementOnScreen.d.ts +6 -0
  275. package/dist/helpers/useId.d.ts +6 -0
  276. package/dist/helpers/useIntersection.d.ts +6 -0
  277. package/dist/helpers/useLockScroll.d.ts +7 -0
  278. package/dist/helpers/usePrevious.d.ts +6 -0
  279. package/dist/helpers/useResizeObserver.d.ts +6 -0
  280. package/dist/hooks/__tests__/useId.spec.d.ts +1 -0
  281. package/dist/hooks/useComposeRefs.d.ts +29 -0
  282. package/dist/hooks/useControllableState.d.ts +19 -0
  283. package/dist/hooks/useDateFormatter.d.ts +28 -0
  284. package/dist/hooks/useElementOnScreen.d.ts +1 -0
  285. package/dist/hooks/useId.d.ts +1 -0
  286. package/dist/hooks/useIntersection.d.ts +7 -0
  287. package/dist/hooks/useLockScroll.d.ts +2 -0
  288. package/dist/hooks/usePrevious.d.ts +1 -0
  289. package/dist/hooks/useResizeObserver.d.ts +2 -0
  290. package/dist/index.d.ts +66 -0
  291. package/dist/themes/__tests__/extendTheme.spec.d.ts +1 -0
  292. package/dist/themes/colors.d.ts +54 -0
  293. package/dist/themes/common-theme.d.ts +19 -0
  294. package/dist/themes/darkTheme/dark-colors.d.ts +4 -0
  295. package/dist/themes/darkTheme/dark-shadows.d.ts +4 -0
  296. package/dist/themes/darkTheme/index.d.ts +2 -0
  297. package/dist/themes/extendTheme.d.ts +2 -0
  298. package/dist/themes/index.d.ts +10 -0
  299. package/dist/themes/lightTheme/index.d.ts +2 -0
  300. package/dist/themes/lightTheme/light-colors.d.ts +4 -0
  301. package/dist/themes/lightTheme/light-shadows.d.ts +4 -0
  302. package/dist/themes/sizes.d.ts +21 -0
  303. package/dist/themes/utils.d.ts +12 -0
  304. package/dist/v2/Breadcrumbs/Breadcrumbs.d.ts +8 -0
  305. package/dist/v2/Breadcrumbs/Crumb.d.ts +8 -0
  306. package/dist/v2/Breadcrumbs/CrumbLink.d.ts +5 -0
  307. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.d.ts +11 -0
  308. package/dist/v2/Breadcrumbs/Divider.d.ts +4 -0
  309. package/dist/v2/Breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +1 -0
  310. package/dist/v2/Breadcrumbs/index.d.ts +4 -0
  311. package/dist/v2/Link/Link.d.ts +11 -0
  312. package/dist/v2/Link/index.d.ts +1 -0
  313. package/dist/v2/LinkButton/LinkButton.d.ts +61 -0
  314. package/dist/v2/LinkButton/index.d.ts +1 -0
  315. package/dist/v2/MainNav/MainNav.d.ts +5 -0
  316. package/dist/v2/MainNav/MainNavContext.d.ts +2 -0
  317. package/dist/v2/MainNav/NavBrand.d.ts +9 -0
  318. package/dist/v2/MainNav/NavCondense.d.ts +5 -0
  319. package/dist/v2/MainNav/NavFooter.d.ts +5 -0
  320. package/dist/v2/MainNav/NavLink.d.ts +9 -0
  321. package/dist/v2/MainNav/NavSection.d.ts +9 -0
  322. package/dist/v2/MainNav/NavSections.d.ts +8 -0
  323. package/dist/v2/MainNav/NavUser.d.ts +8 -0
  324. package/dist/v2/MainNav/index.d.ts +8 -0
  325. package/dist/v2/Pagination/Pagination.d.ts +8 -0
  326. package/dist/v2/Pagination/PaginationContext.d.ts +6 -0
  327. package/dist/v2/Pagination/components.d.ts +16 -0
  328. package/dist/v2/Pagination/index.d.ts +2 -0
  329. package/dist/v2/SimpleMenu/Menu.d.ts +56 -0
  330. package/dist/v2/SimpleMenu/SimpleMenu.d.ts +59 -0
  331. package/dist/v2/SimpleMenu/__tests__/Menu.spec.d.ts +1 -0
  332. package/dist/v2/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +1 -0
  333. package/dist/v2/SimpleMenu/index.d.ts +1 -0
  334. package/dist/v2/SubNav/SubNav.d.ts +6 -0
  335. package/dist/v2/SubNav/SubNavHeader.d.ts +13 -0
  336. package/dist/v2/SubNav/SubNavLink.d.ts +9 -0
  337. package/dist/v2/SubNav/SubNavLinkSection.d.ts +7 -0
  338. package/dist/v2/SubNav/SubNavSection.d.ts +9 -0
  339. package/dist/v2/SubNav/SubNavSectionLabel.d.ts +9 -0
  340. package/dist/v2/SubNav/SubNavSections.d.ts +8 -0
  341. package/dist/v2/SubNav/index.d.ts +6 -0
  342. package/dist/v2/index.d.ts +7 -0
  343. package/package.json +10 -10
@@ -0,0 +1,11 @@
1
+ import { BoxProps } from '../Box';
2
+ type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
3
+ type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
4
+ export interface ProgressBarProps extends Omit<BoxProps, 'background' | 'hasRadius' | 'height' | 'position' | 'width'> {
5
+ max?: IntRange<0, 101>;
6
+ min?: IntRange<0, 101>;
7
+ size?: 'S' | 'M';
8
+ value?: IntRange<0, 101>;
9
+ }
10
+ export declare const ProgressBar: ({ min, max, value, children, size, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ProgressBar';
@@ -0,0 +1,5 @@
1
+ import { BaseRadioProps } from '../BaseRadio/BaseRadio';
2
+ export interface RadioProps extends BaseRadioProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const Radio: ({ children, ...props }: RadioProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './Radio';
2
+ export { RadioGroup } from '../BaseRadio/RadioGroup';
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import { BoxProps } from '../Box';
3
+ export interface RawTdProps extends BoxProps<'td'> {
4
+ 'aria-colindex'?: number;
5
+ as?: 'td' | 'th';
6
+ children?: ReactNode;
7
+ coords?: {
8
+ col: number;
9
+ row: number;
10
+ };
11
+ }
12
+ export type RawThProps = Omit<RawTdProps, 'as'>;
13
+ export declare const RawTh: (props: RawThProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const RawTd: ({ coords, as, ...props }: RawTdProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { TableHTMLAttributes } from 'react';
2
+ export interface RawTableProps extends TableHTMLAttributes<HTMLTableElement> {
3
+ colCount: number;
4
+ initialCol?: number;
5
+ initialRow?: number;
6
+ jumpStep?: number;
7
+ rowCount: number;
8
+ }
9
+ export declare const RawTable: ({ colCount, rowCount, jumpStep, initialCol, initialRow, ...props }: {
10
+ [x: string]: any;
11
+ colCount: any;
12
+ rowCount: any;
13
+ jumpStep?: number | undefined;
14
+ initialCol?: number | undefined;
15
+ initialRow?: number | undefined;
16
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export interface RawTableContextValue {
2
+ rowIndex: number;
3
+ colIndex: number;
4
+ setTableValues: ({ rowIndex, colIndex }: {
5
+ rowIndex: number;
6
+ colIndex: number;
7
+ }) => void;
8
+ }
9
+ export declare const RawTableContext: import("react").Context<RawTableContextValue>;
10
+ export declare const useTable: () => RawTableContextValue;
@@ -0,0 +1,5 @@
1
+ import { TableHTMLAttributes, ReactNode } from 'react';
2
+ export interface RawTbodyProps extends TableHTMLAttributes<HTMLTableSectionElement> {
3
+ children: ReactNode;
4
+ }
5
+ export declare const RawTbody: ({ children, ...props }: RawTbodyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { TableHTMLAttributes, ReactNode } from 'react';
2
+ export interface RawTheadProps extends TableHTMLAttributes<HTMLTableSectionElement> {
3
+ children: ReactNode;
4
+ }
5
+ export declare const RawThead: ({ children, ...props }: RawTheadProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { BoxProps } from '../Box';
2
+ export interface RawTrProps extends BoxProps<'tr'> {
3
+ 'aria-rowindex'?: number;
4
+ }
5
+ export declare const RawTr: ({ children, ...props }: RawTrProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const focusFocusable: (node: any) => void;
@@ -0,0 +1,5 @@
1
+ export * from './RawTable';
2
+ export * from './RawCell';
3
+ export * from './RawThead';
4
+ export * from './RawTbody';
5
+ export * from './RawTr';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type SearchFormProps = Omit<React.FormHTMLAttributes<HTMLFormElement>, 'role'>;
3
+ export declare const SearchForm: (props: SearchFormProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React, { MouseEventHandler } from 'react';
2
+ import { FieldInputProps, FieldProps } from '../Field';
3
+ export interface SearchbarProps extends Omit<FieldInputProps, 'id' | 'name'>, Pick<FieldProps, 'id' | 'name'> {
4
+ name: string;
5
+ value?: string;
6
+ onClear: MouseEventHandler<any>;
7
+ clearLabel: string;
8
+ }
9
+ export declare const Searchbar: React.ForwardRefExoticComponent<SearchbarProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,2 @@
1
+ export * from './Searchbar';
2
+ export * from './SearchForm';
@@ -0,0 +1,40 @@
1
+ import * as React from 'react';
2
+ import * as SelectParts from './SelectParts';
3
+ import { FieldLabelProps, FieldProps } from '../Field';
4
+ type MultiSelectPropsWithoutLabel = Omit<SelectParts.MultiSelectProps, 'value' | 'multi'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'size' | 'startIcon' | 'placeholder'> & Pick<FieldProps, 'hint' | 'id' | 'error'> & {
5
+ /**
6
+ * @default (value) => value.join(',')
7
+ */
8
+ customizeContent?(value?: string[]): string;
9
+ labelAction?: FieldLabelProps['action'];
10
+ onChange?: (value: string[]) => void;
11
+ onReachEnd?: (entry: IntersectionObserverEntry) => void;
12
+ /**
13
+ * @preserve
14
+ * @deprecated This prop is no longer required and will be removed in v2 of the DS.
15
+ * It has no effect on the component.
16
+ */
17
+ selectButtonTitle?: string;
18
+ value?: string[] | null;
19
+ withTags?: boolean;
20
+ };
21
+ export type MultiSelectProps = (MultiSelectPropsWithoutLabel & {
22
+ label: string;
23
+ 'aria-label'?: never;
24
+ }) | (MultiSelectPropsWithoutLabel & {
25
+ 'aria-label': string;
26
+ label?: never;
27
+ });
28
+ export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
29
+ export interface MultiSelectOptionProps extends Omit<SelectParts.ItemProps, 'value'> {
30
+ startIcon?: React.ReactNode;
31
+ value: string | number;
32
+ }
33
+ export declare const MultiSelectOption: React.ForwardRefExoticComponent<MultiSelectOptionProps & React.RefAttributes<HTMLDivElement>>;
34
+ export interface MultiSelectGroupProps extends Pick<MultiSelectOptionProps, 'startIcon'> {
35
+ children: React.ReactNode;
36
+ label: string;
37
+ values?: string[];
38
+ }
39
+ export declare const MultiSelectGroup: React.ForwardRefExoticComponent<MultiSelectGroupProps & React.RefAttributes<HTMLDivElement>>;
40
+ export {};
@@ -44,7 +44,7 @@ function _interopNamespace(e) {
44
44
  const React__namespace = /*#__PURE__*/_interopNamespace(React);
45
45
  const styled__default = /*#__PURE__*/_interopDefault(styled);
46
46
 
47
- const MultiSelect = React__namespace.forwardRef(({ 'aria-label': ariaLabel, children, clearLabel = 'Clear', customizeContent, disabled, error, hint, id, label, labelAction, onChange, onClear, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, withTags, ...restProps }, forwardedRef) => {
47
+ const MultiSelect = React__namespace.forwardRef(({ 'aria-label': ariaLabel, children, clearLabel = 'Clear', customizeContent, disabled, error, hint, id, label, labelAction, onChange, onClear, onCloseAutoFocus, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, withTags, ...restProps }, forwardedRef) => {
48
48
  /**
49
49
  * Used for the intersection observer
50
50
  */
@@ -121,7 +121,7 @@ const MultiSelect = React__namespace.forwardRef(({ 'aria-label': ariaLabel, chil
121
121
  : customizeContent
122
122
  ? customizeContent(value)
123
123
  : undefined
124
- : undefined }) }), jsxRuntime.jsx(SelectParts.Portal, { children: jsxRuntime.jsx(SelectParts.Content, { position: "popper", sideOffset: 4, children: jsxRuntime.jsxs(SelectParts.Viewport, { ref: viewportRef, children: [children, jsxRuntime.jsx(Box.Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }), jsxRuntime.jsx(FieldHint.FieldHint, {}), jsxRuntime.jsx(FieldError.FieldError, {})] }) }));
124
+ : undefined }) }), jsxRuntime.jsx(SelectParts.Portal, { children: jsxRuntime.jsx(SelectParts.Content, { position: "popper", sideOffset: 4, onCloseAutoFocus: onCloseAutoFocus, children: jsxRuntime.jsxs(SelectParts.Viewport, { ref: viewportRef, children: [children, jsxRuntime.jsx(Box.Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }), jsxRuntime.jsx(FieldHint.FieldHint, {}), jsxRuntime.jsx(FieldError.FieldError, {})] }) }));
125
125
  });
126
126
  const MultiSelectOption = React__namespace.forwardRef(({ value, children, startIcon, ...restProps }, ref) => {
127
127
  return (jsxRuntime.jsxs(SelectParts.Item, { ref: ref, value: value.toString(), ...restProps, children: [startIcon && (jsxRuntime.jsx(Box.Box, { as: "span", "aria-hidden": true, children: startIcon })), jsxRuntime.jsx(SelectParts.ItemIndicator, { children: ({ isSelected, isIntermediate }) => (jsxRuntime.jsx(CheckMark, { hasRadius: true, overflow: "hidden", position: "relative", "$indeterminate": isIntermediate, "$selected": isSelected, zIndex: 1, height: "18px", width: "18px" })) }), jsxRuntime.jsx(Typography.Typography, { textColor: "neutral800", children: jsxRuntime.jsx(SelectParts.ItemText, { children: children }) })] }));
@@ -17,7 +17,7 @@ import { FieldHint } from '../Field/FieldHint.mjs';
17
17
  import { FieldError } from '../Field/FieldError.mjs';
18
18
  import { Typography } from '../Typography/Typography.mjs';
19
19
 
20
- const MultiSelect = React.forwardRef(({ 'aria-label': ariaLabel, children, clearLabel = 'Clear', customizeContent, disabled, error, hint, id, label, labelAction, onChange, onClear, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, withTags, ...restProps }, forwardedRef) => {
20
+ const MultiSelect = React.forwardRef(({ 'aria-label': ariaLabel, children, clearLabel = 'Clear', customizeContent, disabled, error, hint, id, label, labelAction, onChange, onClear, onCloseAutoFocus, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, withTags, ...restProps }, forwardedRef) => {
21
21
  /**
22
22
  * Used for the intersection observer
23
23
  */
@@ -94,7 +94,7 @@ const MultiSelect = React.forwardRef(({ 'aria-label': ariaLabel, children, clear
94
94
  : customizeContent
95
95
  ? customizeContent(value)
96
96
  : undefined
97
- : undefined }) }), jsx(Portal, { children: jsx(Content, { position: "popper", sideOffset: 4, children: jsxs(Viewport, { ref: viewportRef, children: [children, jsx(Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }), jsx(FieldHint, {}), jsx(FieldError, {})] }) }));
97
+ : undefined }) }), jsx(Portal, { children: jsx(Content, { position: "popper", sideOffset: 4, onCloseAutoFocus: onCloseAutoFocus, children: jsxs(Viewport, { ref: viewportRef, children: [children, jsx(Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }), jsx(FieldHint, {}), jsx(FieldError, {})] }) }));
98
98
  });
99
99
  const MultiSelectOption = React.forwardRef(({ value, children, startIcon, ...restProps }, ref) => {
100
100
  return (jsxs(Item, { ref: ref, value: value.toString(), ...restProps, children: [startIcon && (jsx(Box, { as: "span", "aria-hidden": true, children: startIcon })), jsx(ItemIndicator, { children: ({ isSelected, isIntermediate }) => (jsx(CheckMark, { hasRadius: true, overflow: "hidden", position: "relative", "$indeterminate": isIntermediate, "$selected": isSelected, zIndex: 1, height: "18px", width: "18px" })) }), jsx(Typography, { textColor: "neutral800", children: jsx(ItemText, { children: children }) })] }));
@@ -0,0 +1,13 @@
1
+ import { MultiSelectGroupProps, MultiSelectOptionProps, MultiSelectProps } from './MultiSelect';
2
+ interface MulitSelectNestedOption extends Omit<MultiSelectOptionProps, 'children' | 'value'> {
3
+ value: string | number;
4
+ label: string;
5
+ }
6
+ interface MulitSelectNestedGroup extends Omit<MultiSelectGroupProps, 'children'> {
7
+ children: Array<MulitSelectNestedOption>;
8
+ }
9
+ export type MultiSelectNestedProps = MultiSelectProps & {
10
+ options: Array<MulitSelectNestedOption | MulitSelectNestedGroup>;
11
+ };
12
+ export declare const MultiSelectNested: ({ options, ...props }: MultiSelectNestedProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,9 @@
1
+ import { MultiSelectGroupProps } from './MultiSelect';
2
+ /**
3
+ * @preserve
4
+ * @deprecated This component is only fit for the MultiSelect component.
5
+ * Therefore, you should import the MultiSelectGroup component instead.
6
+ */
7
+ declare const OptGroup: import("react").ForwardRefExoticComponent<MultiSelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ export { OptGroup };
9
+ export type { MultiSelectGroupProps as OptGroupProps };
@@ -0,0 +1,13 @@
1
+ import { MultiSelectOptionProps } from './MultiSelect';
2
+ import { SingleSelectOptionProps } from './SingleSelect';
3
+ export type OptionProps = (SingleSelectOptionProps & {
4
+ multi?: never;
5
+ }) | (MultiSelectOptionProps & {
6
+ multi: true;
7
+ });
8
+ /**
9
+ * @preserve
10
+ * @deprecated You should import the specific type of option you want to render,
11
+ * e.g. `import { MultiSelectOption } from '@strapi/design-system';`
12
+ */
13
+ export declare const Option: ({ multi, ...restProps }: OptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { MultiSelectProps } from './MultiSelect';
2
+ import { SingleSelectProps } from './SingleSelect';
3
+ export type SelectProps = (SingleSelectProps & {
4
+ multi?: never;
5
+ withTags?: never;
6
+ }) | (MultiSelectProps & {
7
+ multi: true;
8
+ });
9
+ export declare const useSelectContext: () => {
10
+ multi: boolean;
11
+ };
12
+ /**
13
+ * @preserve
14
+ * @deprecated You should import the specific type of select you want to render
15
+ *
16
+ * e.g. `import { MultiSelect } from '@strapi/design-system';`
17
+ */
18
+ export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ declare const DownState: {
3
+ readonly Keyboard: "down:keyboard";
4
+ readonly Mouse: "down:mouse";
5
+ };
6
+ declare const UpState: {
7
+ readonly Keyboard: "up:keyboard";
8
+ readonly Mouse: "up:mouse";
9
+ };
10
+ type AllStates = (typeof DownState)[keyof typeof DownState] | (typeof UpState)[keyof typeof UpState];
11
+ export interface SelectListProps {
12
+ labelledBy?: string;
13
+ multi?: boolean;
14
+ expanded: AllStates;
15
+ onEscape: () => void;
16
+ onSelectItem: (value: string | string[], group?: string) => void;
17
+ children: React.ReactNode;
18
+ }
19
+ /**
20
+ * @preserve
21
+ * @deprecated This component will be removed in the next major release.
22
+ * If you need a custom listbox I would recommend opening a new issue.
23
+ */
24
+ export declare const SelectList: ({ labelledBy, onSelectItem, children, multi, onEscape, expanded, }: SelectListProps) => import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -0,0 +1,67 @@
1
+ import * as React from 'react';
2
+ import { Select } from '@strapi/ui-primitives';
3
+ import { BoxProps } from '../Box';
4
+ import { TypographyProps } from '../Typography';
5
+ interface TriggerProps extends BoxProps<'div'> {
6
+ /**
7
+ * @default "Clear"
8
+ */
9
+ clearLabel?: string;
10
+ disabled?: boolean;
11
+ hasError?: boolean;
12
+ onClear?: (e: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;
13
+ startIcon?: React.ReactElement;
14
+ /**
15
+ * @default "M"
16
+ */
17
+ size?: 'S' | 'M';
18
+ }
19
+ interface ValueProps extends Omit<TypographyProps, 'children' | 'placeholder'>, Pick<Select.SelectValueProps, 'placeholder' | 'children'> {
20
+ asChild?: boolean;
21
+ }
22
+ interface ItemProps extends Select.SelectItemProps {
23
+ }
24
+ declare const Root: {
25
+ (props: Select.SelectProps & {
26
+ __scopeSelect?: import("@radix-ui/react-context").Scope;
27
+ }): import("react/jsx-runtime").JSX.Element;
28
+ displayName: string;
29
+ };
30
+ declare const Trigger: React.ForwardRefExoticComponent<TriggerProps & React.RefAttributes<HTMLDivElement>>;
31
+ declare const Value: React.ForwardRefExoticComponent<ValueProps & React.RefAttributes<HTMLSpanElement>>;
32
+ declare const Portal: {
33
+ (props: Select.SelectPortalProps & {
34
+ __scopeSelect?: import("@radix-ui/react-context").Scope;
35
+ }): import("react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ };
38
+ declare const Content: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Select.SelectContentImplProps & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
39
+ declare const Viewport: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
40
+ ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
41
+ } & {
42
+ asChild?: boolean | undefined;
43
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
44
+ declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLDivElement>>;
45
+ declare const ItemIndicator: React.ForwardRefExoticComponent<Select.SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
46
+ declare const ItemText: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
47
+ ref?: React.RefObject<HTMLSpanElement> | ((instance: HTMLSpanElement | null) => void) | null | undefined;
48
+ } & {
49
+ asChild?: boolean | undefined;
50
+ }, "key" | keyof React.HTMLAttributes<HTMLSpanElement> | "asChild"> & React.RefAttributes<HTMLSpanElement>>;
51
+ declare const Group: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
52
+ ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
53
+ } & {
54
+ asChild?: boolean | undefined;
55
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>>;
56
+ type SelectProps = Select.SelectProps;
57
+ type SingleSelectProps = Select.SingleSelectProps;
58
+ type MultiSelectProps = Select.MultiSelectProps;
59
+ type PortalProps = Select.SelectPortalProps;
60
+ type ContentProps = Select.SelectContentProps;
61
+ type ViewportProps = Select.SelectViewportProps;
62
+ type ItemIndicatorProps = Select.SelectItemIndicatorProps;
63
+ type ItemTextProps = Select.SelectItemTextProps;
64
+ type GroupProps = Select.SelectGroupProps;
65
+ type ValueRenderFn = Select.SelectValueRenderFn;
66
+ export { Root, Trigger, Value, Portal, Content, Viewport, Item, ItemIndicator, ItemText, Group };
67
+ export type { SingleSelectProps, MultiSelectProps, SelectProps, TriggerProps, ValueProps, ValueRenderFn, PortalProps, ContentProps, ViewportProps, ItemProps, ItemIndicatorProps, ItemTextProps, GroupProps, };
@@ -0,0 +1,41 @@
1
+ import * as React from 'react';
2
+ import * as SelectParts from './SelectParts';
3
+ import { FieldLabelProps, FieldProps } from '../Field';
4
+ type SingleSelectPropsWithoutLabel = Omit<SelectParts.SingleSelectProps, 'value'> & Pick<SelectParts.ContentProps, 'onCloseAutoFocus'> & Pick<SelectParts.TriggerProps, 'clearLabel' | 'onClear' | 'size' | 'startIcon' | 'placeholder'> & Pick<FieldProps, 'error' | 'hint' | 'id'> & {
5
+ /**
6
+ * @default (value) => value.toString()
7
+ */
8
+ customizeContent?(value?: string | number): string;
9
+ labelAction?: FieldLabelProps['action'];
10
+ onChange?: (value: string | number) => void;
11
+ onReachEnd?: (entry: IntersectionObserverEntry) => void;
12
+ /**
13
+ * @preserve
14
+ * @deprecated This prop is no longer required and will be removed in v2 of the DS.
15
+ * It has no effect on the component.
16
+ */
17
+ selectButtonTitle?: string;
18
+ value?: string | number | null;
19
+ };
20
+ export type SingleSelectProps = (SingleSelectPropsWithoutLabel & {
21
+ label: string;
22
+ 'aria-label'?: never;
23
+ }) | (SingleSelectPropsWithoutLabel & {
24
+ 'aria-label': string;
25
+ label?: never;
26
+ });
27
+ export type SingleSelectElement = SingleSelectInputElement;
28
+ export declare const SingleSelect: React.ForwardRefExoticComponent<SingleSelectProps & React.RefAttributes<HTMLDivElement>>;
29
+ export interface SingleSelectInputProps extends Omit<SingleSelectPropsWithoutLabel, 'labelAction' | 'hint' | 'id'> {
30
+ 'aria-label'?: string;
31
+ id?: string;
32
+ label?: string;
33
+ }
34
+ export type SingleSelectInputElement = HTMLDivElement;
35
+ export declare const SingleSelectInput: React.ForwardRefExoticComponent<SingleSelectInputProps & React.RefAttributes<HTMLDivElement>>;
36
+ export interface SingleSelectOptionProps extends Omit<SelectParts.ItemProps, 'value'> {
37
+ startIcon?: React.ReactNode;
38
+ value: string | number;
39
+ }
40
+ export declare const SingleSelectOption: React.ForwardRefExoticComponent<SingleSelectOptionProps & React.RefAttributes<HTMLDivElement>>;
41
+ export {};
@@ -50,7 +50,7 @@ const SingleSelect = React__namespace.forwardRef(({ error, hint, id, label, labe
50
50
  const composedTriggerRefs = useComposeRefs.useComposedRefs(forwardedRef, triggerRef);
51
51
  return (jsxRuntime.jsx(Field.Field, { hint: hint, error: error, id: generatedId, required: required, children: jsxRuntime.jsxs(Flex.Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [label ? (jsxRuntime.jsx(FieldLabel.FieldLabel, { onClick: handleFieldLabelClick, action: labelAction, children: label })) : null, jsxRuntime.jsx(SingleSelectInput, { label: label, id: generatedId, ref: composedTriggerRefs, required: required, ...restProps }), jsxRuntime.jsx(FieldHint.FieldHint, {}), jsxRuntime.jsx(FieldError.FieldError, {})] }) }));
52
52
  });
53
- const SingleSelectInput = React__namespace.forwardRef(({ 'aria-label': ariaLabel, id, children, clearLabel = 'Clear', customizeContent, disabled, error, label, onChange, onClear, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, ...restProps }, forwardedRef) => {
53
+ const SingleSelectInput = React__namespace.forwardRef(({ 'aria-label': ariaLabel, id, children, clearLabel = 'Clear', customizeContent, disabled, error, label, onChange, onClear, onCloseAutoFocus, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, ...restProps }, forwardedRef) => {
54
54
  /**
55
55
  * These values are drawn out from the internals of the Radix component
56
56
  * We can then use them to react to visual changes for the component
@@ -100,7 +100,7 @@ const SingleSelectInput = React__namespace.forwardRef(({ 'aria-label': ariaLabel
100
100
  skipWhen: !internalIsOpen,
101
101
  });
102
102
  const value = (typeof passedValue !== 'undefined' && passedValue !== null ? passedValue.toString() : internalValue) ?? '';
103
- return (jsxRuntime.jsxs(SelectParts.Root, { onOpenChange: handleOpenChange, disabled: disabled, required: required, onValueChange: handleValueChange, value: value, ...restProps, children: [jsxRuntime.jsx(SelectParts.Trigger, { ref: forwardedRef, "aria-label": label ?? ariaLabel, "aria-describedby": id ? `${hintId} ${errorId}` : undefined, id: id, startIcon: startIcon, size: size, hasError: Boolean(error), disabled: disabled, clearLabel: clearLabel, onClear: value && onClear ? handleOnClear : undefined, children: jsxRuntime.jsx(SelectParts.Value, { placeholder: placeholder, textColor: value ? 'neutral800' : 'neutral600', children: value && customizeContent ? customizeContent(value) : undefined }) }), jsxRuntime.jsx(SelectParts.Portal, { children: jsxRuntime.jsx(SelectParts.Content, { position: "popper", sideOffset: 4, children: jsxRuntime.jsxs(SelectParts.Viewport, { ref: viewportRef, children: [children, jsxRuntime.jsx(Box.Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }));
103
+ return (jsxRuntime.jsxs(SelectParts.Root, { onOpenChange: handleOpenChange, disabled: disabled, required: required, onValueChange: handleValueChange, value: value, ...restProps, children: [jsxRuntime.jsx(SelectParts.Trigger, { ref: forwardedRef, "aria-label": label ?? ariaLabel, "aria-describedby": id ? `${hintId} ${errorId}` : undefined, id: id, startIcon: startIcon, size: size, hasError: Boolean(error), disabled: disabled, clearLabel: clearLabel, onClear: value && onClear ? handleOnClear : undefined, children: jsxRuntime.jsx(SelectParts.Value, { placeholder: placeholder, textColor: value ? 'neutral800' : 'neutral600', children: value && customizeContent ? customizeContent(value) : undefined }) }), jsxRuntime.jsx(SelectParts.Portal, { children: jsxRuntime.jsx(SelectParts.Content, { position: "popper", sideOffset: 4, onCloseAutoFocus: onCloseAutoFocus, children: jsxRuntime.jsxs(SelectParts.Viewport, { ref: viewportRef, children: [children, jsxRuntime.jsx(Box.Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }));
104
104
  });
105
105
  const SingleSelectOption = React__namespace.forwardRef(({ value, startIcon, children, ...restProps }, ref) => {
106
106
  return (jsxRuntime.jsxs(SelectParts.Item, { ref: ref, value: value.toString(), ...restProps, children: [startIcon && (jsxRuntime.jsx(Box.Box, { as: "span", "aria-hidden": true, children: startIcon })), jsxRuntime.jsx(Typography.Typography, { textColor: "neutral800", children: jsxRuntime.jsx(SelectParts.ItemText, { children: children }) })] }));
@@ -26,7 +26,7 @@ const SingleSelect = React.forwardRef(({ error, hint, id, label, labelAction, re
26
26
  const composedTriggerRefs = useComposedRefs(forwardedRef, triggerRef);
27
27
  return (jsx(Field, { hint: hint, error: error, id: generatedId, required: required, children: jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 1, children: [label ? (jsx(FieldLabel, { onClick: handleFieldLabelClick, action: labelAction, children: label })) : null, jsx(SingleSelectInput, { label: label, id: generatedId, ref: composedTriggerRefs, required: required, ...restProps }), jsx(FieldHint, {}), jsx(FieldError, {})] }) }));
28
28
  });
29
- const SingleSelectInput = React.forwardRef(({ 'aria-label': ariaLabel, id, children, clearLabel = 'Clear', customizeContent, disabled, error, label, onChange, onClear, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, ...restProps }, forwardedRef) => {
29
+ const SingleSelectInput = React.forwardRef(({ 'aria-label': ariaLabel, id, children, clearLabel = 'Clear', customizeContent, disabled, error, label, onChange, onClear, onCloseAutoFocus, onReachEnd, placeholder, required, selectButtonTitle: _deprecatedSelectButtonTitle, startIcon, size = 'M', value: passedValue, ...restProps }, forwardedRef) => {
30
30
  /**
31
31
  * These values are drawn out from the internals of the Radix component
32
32
  * We can then use them to react to visual changes for the component
@@ -76,7 +76,7 @@ const SingleSelectInput = React.forwardRef(({ 'aria-label': ariaLabel, id, child
76
76
  skipWhen: !internalIsOpen,
77
77
  });
78
78
  const value = (typeof passedValue !== 'undefined' && passedValue !== null ? passedValue.toString() : internalValue) ?? '';
79
- return (jsxs(Root, { onOpenChange: handleOpenChange, disabled: disabled, required: required, onValueChange: handleValueChange, value: value, ...restProps, children: [jsx(Trigger, { ref: forwardedRef, "aria-label": label ?? ariaLabel, "aria-describedby": id ? `${hintId} ${errorId}` : undefined, id: id, startIcon: startIcon, size: size, hasError: Boolean(error), disabled: disabled, clearLabel: clearLabel, onClear: value && onClear ? handleOnClear : undefined, children: jsx(Value, { placeholder: placeholder, textColor: value ? 'neutral800' : 'neutral600', children: value && customizeContent ? customizeContent(value) : undefined }) }), jsx(Portal, { children: jsx(Content, { position: "popper", sideOffset: 4, children: jsxs(Viewport, { ref: viewportRef, children: [children, jsx(Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }));
79
+ return (jsxs(Root, { onOpenChange: handleOpenChange, disabled: disabled, required: required, onValueChange: handleValueChange, value: value, ...restProps, children: [jsx(Trigger, { ref: forwardedRef, "aria-label": label ?? ariaLabel, "aria-describedby": id ? `${hintId} ${errorId}` : undefined, id: id, startIcon: startIcon, size: size, hasError: Boolean(error), disabled: disabled, clearLabel: clearLabel, onClear: value && onClear ? handleOnClear : undefined, children: jsx(Value, { placeholder: placeholder, textColor: value ? 'neutral800' : 'neutral600', children: value && customizeContent ? customizeContent(value) : undefined }) }), jsx(Portal, { children: jsx(Content, { position: "popper", sideOffset: 4, onCloseAutoFocus: onCloseAutoFocus, children: jsxs(Viewport, { ref: viewportRef, children: [children, jsx(Box, { id: intersectionId, width: "100%", height: "1px" })] }) }) })] }));
80
80
  });
81
81
  const SingleSelectOption = React.forwardRef(({ value, startIcon, children, ...restProps }, ref) => {
82
82
  return (jsxs(Item, { ref: ref, value: value.toString(), ...restProps, children: [startIcon && (jsx(Box, { as: "span", "aria-hidden": true, children: startIcon })), jsx(Typography, { textColor: "neutral800", children: jsx(ItemText, { children: children }) })] }));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ export { MultiSelectNested } from './MultiSelectNested';
2
+ export type { MultiSelectNestedProps } from './MultiSelectNested';
3
+ export { MultiSelect, MultiSelectGroup, MultiSelectOption } from './MultiSelect';
4
+ export type { MultiSelectProps, MultiSelectGroupProps, MultiSelectOptionProps } from './MultiSelect';
5
+ export { SingleSelect, SingleSelectOption } from './SingleSelect';
6
+ export type { SingleSelectProps, SingleSelectOptionProps } from './SingleSelect';
7
+ /**
8
+ * These are deprecated
9
+ */
10
+ export { Select } from './Select';
11
+ export type { SelectProps } from './Select';
12
+ export { Option } from './Option';
13
+ export type { OptionProps } from './Option';
14
+ export { OptGroup } from './OptGroup';
15
+ export type { OptGroupProps } from './OptGroup';
16
+ export { SelectList } from './SelectList';
17
+ export type { SelectListProps } from './SelectList';
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { Placement } from '@floating-ui/react-dom';
3
+ import { NavLinkProps } from 'react-router-dom';
4
+ export interface MenuItemProps extends Omit<NavLinkProps, 'to'> {
5
+ as?: React.ElementType;
6
+ children: React.ReactNode;
7
+ href?: string;
8
+ isFocused?: boolean;
9
+ onClick?: () => void;
10
+ to?: string;
11
+ isExternal?: boolean;
12
+ }
13
+ export declare const MenuItem: ({ children, onClick, to, isFocused, href, ...props }: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ export type SimpleMenuProps<As extends React.ElementType = React.ElementType> = Omit<React.ComponentPropsWithoutRef<As>, 'as' | 'children' | 'id' | 'label' | 'onClose' | 'onOpen' | 'onReachEnd' | 'popoverPlacement' | 'size'> & {
15
+ as?: As;
16
+ children: React.ReactNode;
17
+ id?: string;
18
+ label: React.ReactElement | string | number;
19
+ onClose?: () => void;
20
+ onOpen?: () => void;
21
+ /**
22
+ * Callback function to be called when the popover reaches the end of the scrollable content
23
+ */
24
+ onReachEnd?: () => void;
25
+ popoverPlacement?: Placement;
26
+ /**
27
+ * Size of the trigger button.
28
+ * Note: in case a custom component is passed through the "as"
29
+ * prop, the size prop is passed along too, but needs to be handled there
30
+ */
31
+ size?: 'S' | 'M';
32
+ };
33
+ export declare const SimpleMenu: <As extends React.ElementType<any> = React.ForwardRefExoticComponent<import("../Button").ButtonProps & React.RefAttributes<HTMLButtonElement>>>({ label, children, id, as: asComp, onOpen, onClose, size, popoverPlacement, onReachEnd, ...props }: SimpleMenuProps<As>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './SimpleMenu';
@@ -0,0 +1,3 @@
1
+ export declare const getOptionStyle: ({ theme }: {
2
+ theme: any;
3
+ }) => string;
@@ -0,0 +1,20 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { FlexProps } from '../Flex';
3
+ export interface StackProps extends FlexProps {
4
+ /**
5
+ * If `true`, align the `Stack` item horizontally.
6
+ */
7
+ horizontal?: boolean;
8
+ /**
9
+ * @preserve
10
+ * @deprecated use `spacing` instead
11
+ * The space between stack item.
12
+ */
13
+ size?: keyof DefaultTheme['spaces'];
14
+ /**
15
+ * The space between stack item.
16
+ * See [theme.spaces](https://design-system-git-main-strapijs.vercel.app/?path=/story/design-system-components-theme--spaces)
17
+ */
18
+ spacing?: keyof DefaultTheme['spaces'];
19
+ }
20
+ export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './Stack';
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box';
3
+ export type StatusVariant = 'alternative' | 'danger' | 'neutral' | 'primary' | 'secondary' | 'success' | 'warning';
4
+ export type StatusSize = 'S' | 'M';
5
+ export interface StatusProps extends BoxProps {
6
+ variant?: StatusVariant;
7
+ /**
8
+ * If `false`, the preceeding bullet of the status won't be displayed.
9
+ * This prop and the bullet will be removed in the next major version.
10
+ */
11
+ showBullet?: boolean;
12
+ size?: StatusSize;
13
+ children: React.ReactNode;
14
+ }
15
+ export declare const Status: ({ variant, showBullet, size, children, ...props }: StatusProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Status';
@@ -0,0 +1,6 @@
1
+ import { GridProps } from '../Grid';
2
+ export interface SubNavProps extends GridProps {
3
+ ariaLabel: string;
4
+ }
5
+ export declare const subNavWidth = "14.5rem";
6
+ export declare const SubNav: ({ ariaLabel, ...props }: SubNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React, { ChangeEventHandler } from 'react';
2
+ export interface SubNavHeaderProps {
3
+ as?: string | React.ComponentType<any>;
4
+ id: string;
5
+ label: string;
6
+ onChange?: ChangeEventHandler<HTMLInputElement>;
7
+ onClear?: (event: Event) => void;
8
+ onSubmit?: React.FormEventHandler;
9
+ searchable: boolean;
10
+ searchLabel?: string;
11
+ value?: string;
12
+ }
13
+ export declare const SubNavHeader: ({ as, label, searchLabel, searchable, onChange, value, onClear, onSubmit, id, }: SubNavHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box';
3
+ export interface SubNavLinkProps extends BoxProps {
4
+ icon: React.ReactNode;
5
+ isSubSectionChild?: boolean;
6
+ withBullet?: boolean;
7
+ }
8
+ export declare const SubNavLink: ({ children, icon, withBullet, isSubSectionChild, ...props }: SubNavLinkProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface SubNavLinkSectionProps {
3
+ children: React.ReactNode;
4
+ id: string;
5
+ label: string;
6
+ }
7
+ export declare const SubNavLinkSection: ({ label, children, id }: SubNavLinkSectionProps) => import("react/jsx-runtime").JSX.Element;