@strapi/design-system 1.18.0 → 1.19.0-typescript.0

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 (338) hide show
  1. package/dist/Accordion/Accordion.d.ts +56 -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 +97 -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/__tests__/DateTimePicker.spec.d.ts +1 -0
  71. package/dist/DateTimePicker/index.d.ts +1 -0
  72. package/dist/DesignSystemProvider.d.ts +10 -0
  73. package/dist/Dialog/Dialog.d.ts +7 -0
  74. package/dist/Dialog/DialogBody.d.ts +6 -0
  75. package/dist/Dialog/DialogFooter.d.ts +6 -0
  76. package/dist/Dialog/__tests__/Dialog.spec.d.ts +1 -0
  77. package/dist/Dialog/index.d.ts +3 -0
  78. package/dist/DismissibleLayer/index.d.ts +3 -0
  79. package/dist/Divider/Divider.d.ts +9 -0
  80. package/dist/Divider/index.d.ts +1 -0
  81. package/dist/EmptyStateLayout/EmptyStateLayout.d.ts +7 -0
  82. package/dist/EmptyStateLayout/index.d.ts +1 -0
  83. package/dist/EmptyStateLayout/story-assets/Illo.d.ts +1 -0
  84. package/dist/Field/Field.d.ts +14 -0
  85. package/dist/Field/FieldAction.d.ts +7 -0
  86. package/dist/Field/FieldContext.d.ts +10 -0
  87. package/dist/Field/FieldError.d.ts +1 -0
  88. package/dist/Field/FieldHint.d.ts +1 -0
  89. package/dist/Field/FieldInput.d.ts +61 -0
  90. package/dist/Field/FieldLabel.d.ts +11 -0
  91. package/dist/Field/__tests__/Field.spec.d.ts +1 -0
  92. package/dist/Field/index.d.ts +7 -0
  93. package/dist/Flex/Flex.d.ts +15 -0
  94. package/dist/Flex/index.d.ts +1 -0
  95. package/dist/FocusTrap/FocusTrap.d.ts +13 -0
  96. package/dist/FocusTrap/index.d.ts +1 -0
  97. package/dist/Grid/Grid.d.ts +7 -0
  98. package/dist/Grid/GridItem.d.ts +47 -0
  99. package/dist/Grid/index.d.ts +2 -0
  100. package/dist/Icon/Icon.d.ts +7 -0
  101. package/dist/Icon/index.d.ts +1 -0
  102. package/dist/IconButton/IconButton.d.ts +41 -0
  103. package/dist/IconButton/index.d.ts +1 -0
  104. package/dist/JSONInput/JSONInput.d.ts +15 -0
  105. package/dist/JSONInput/__tests__/JSONInput.spec.d.ts +1 -0
  106. package/dist/JSONInput/index.d.ts +1 -0
  107. package/dist/JSONInput/utils/decorationExtension.d.ts +7 -0
  108. package/dist/KeyboardNavigable/KeyboardNavigable.d.ts +6 -0
  109. package/dist/KeyboardNavigable/index.d.ts +1 -0
  110. package/dist/Layout/ActionLayout.d.ts +6 -0
  111. package/dist/Layout/ContentLayout.d.ts +5 -0
  112. package/dist/Layout/GridLayout.d.ts +1 -0
  113. package/dist/Layout/HeaderLayout.d.ts +18 -0
  114. package/dist/Layout/Layout.d.ts +6 -0
  115. package/dist/Layout/TwoColsLayout.d.ts +6 -0
  116. package/dist/Layout/index.d.ts +6 -0
  117. package/dist/Link/Link.d.ts +19 -0
  118. package/dist/Link/index.d.ts +1 -0
  119. package/dist/LinkButton/LinkButton.d.ts +23 -0
  120. package/dist/LinkButton/index.d.ts +1 -0
  121. package/dist/LiveRegions/LiveRegions.d.ts +1 -0
  122. package/dist/LiveRegions/__tests__/LiveRegions.spec.d.ts +1 -0
  123. package/dist/LiveRegions/constants.d.ts +5 -0
  124. package/dist/LiveRegions/index.d.ts +2 -0
  125. package/dist/LiveRegions/useNotifyAT.d.ts +5 -0
  126. package/dist/Loader/Loader.d.ts +6 -0
  127. package/dist/Loader/index.d.ts +1 -0
  128. package/dist/Main/Main.d.ts +5 -0
  129. package/dist/Main/SkipToContent.d.ts +4 -0
  130. package/dist/Main/index.d.ts +2 -0
  131. package/dist/MainNav/MainNav.d.ts +5 -0
  132. package/dist/MainNav/MainNavContext.d.ts +2 -0
  133. package/dist/MainNav/NavBrand.d.ts +8 -0
  134. package/dist/MainNav/NavCondense.d.ts +5 -0
  135. package/dist/MainNav/NavFooter.d.ts +5 -0
  136. package/dist/MainNav/NavLink.d.ts +9 -0
  137. package/dist/MainNav/NavSection.d.ts +11 -0
  138. package/dist/MainNav/NavSections.d.ts +10 -0
  139. package/dist/MainNav/NavUser.d.ts +7 -0
  140. package/dist/MainNav/index.d.ts +8 -0
  141. package/dist/ModalLayout/ModalBody.d.ts +2 -0
  142. package/dist/ModalLayout/ModalContext.d.ts +2 -0
  143. package/dist/ModalLayout/ModalFooter.d.ts +5 -0
  144. package/dist/ModalLayout/ModalHeader.d.ts +6 -0
  145. package/dist/ModalLayout/ModalLayout.d.ts +6 -0
  146. package/dist/ModalLayout/__tests__/ModalLayout.spec.d.ts +1 -0
  147. package/dist/ModalLayout/index.d.ts +4 -0
  148. package/dist/NumberInput/NumberInput.d.ts +11 -0
  149. package/dist/NumberInput/index.d.ts +1 -0
  150. package/dist/Pagination/Pagination.d.ts +8 -0
  151. package/dist/Pagination/PaginationContext.d.ts +6 -0
  152. package/dist/Pagination/components.d.ts +26 -0
  153. package/dist/Pagination/index.d.ts +2 -0
  154. package/dist/Popover/Popover.d.ts +21 -0
  155. package/dist/Popover/__tests__/Popover.spec.d.ts +1 -0
  156. package/dist/Popover/index.d.ts +3 -0
  157. package/dist/Popover/primitives.d.ts +3 -0
  158. package/dist/Portal/Portal.d.ts +6 -0
  159. package/dist/Portal/index.d.ts +1 -0
  160. package/dist/ProgressBar/ProgressBar.d.ts +11 -0
  161. package/dist/ProgressBar/index.d.ts +1 -0
  162. package/dist/Radio/Radio.d.ts +5 -0
  163. package/dist/Radio/__tests__/Radio.spec.d.ts +1 -0
  164. package/dist/Radio/index.d.ts +2 -0
  165. package/dist/RawTable/RawCell.d.ts +14 -0
  166. package/dist/RawTable/RawTable.d.ts +16 -0
  167. package/dist/RawTable/RawTableContext.d.ts +10 -0
  168. package/dist/RawTable/RawTbody.d.ts +5 -0
  169. package/dist/RawTable/RawThead.d.ts +5 -0
  170. package/dist/RawTable/RawTr.d.ts +5 -0
  171. package/dist/RawTable/focusFocusable.d.ts +1 -0
  172. package/dist/RawTable/index.d.ts +5 -0
  173. package/dist/Searchbar/SearchForm.d.ts +3 -0
  174. package/dist/Searchbar/Searchbar.d.ts +9 -0
  175. package/dist/Searchbar/index.d.ts +2 -0
  176. package/dist/Select/MultiSelect.d.ts +40 -0
  177. package/dist/Select/MultiSelectNested.d.ts +13 -0
  178. package/dist/Select/OptGroup.d.ts +9 -0
  179. package/dist/Select/Option.d.ts +13 -0
  180. package/dist/Select/Select.d.ts +18 -0
  181. package/dist/Select/SelectList.d.ts +25 -0
  182. package/dist/Select/SelectParts.d.ts +67 -0
  183. package/dist/Select/SingleSelect.d.ts +41 -0
  184. package/dist/Select/__tests__/MultiSelect.spec.d.ts +1 -0
  185. package/dist/Select/__tests__/MultiSelectNested.spec.d.ts +1 -0
  186. package/dist/Select/__tests__/Select.spec.d.ts +1 -0
  187. package/dist/Select/__tests__/SingleSelect.spec.d.ts +1 -0
  188. package/dist/Select/index.d.ts +17 -0
  189. package/dist/SimpleMenu/SimpleMenu.d.ts +33 -0
  190. package/dist/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +1 -0
  191. package/dist/SimpleMenu/index.d.ts +1 -0
  192. package/dist/SimpleMenu/utils.d.ts +3 -0
  193. package/dist/Stack/Stack.d.ts +20 -0
  194. package/dist/Stack/index.d.ts +1 -0
  195. package/dist/Status/Status.d.ts +15 -0
  196. package/dist/Status/__tests__/Status.spec.d.ts +1 -0
  197. package/dist/Status/index.d.ts +1 -0
  198. package/dist/SubNav/SubNav.d.ts +6 -0
  199. package/dist/SubNav/SubNavHeader.d.ts +13 -0
  200. package/dist/SubNav/SubNavLink.d.ts +8 -0
  201. package/dist/SubNav/SubNavLinkSection.d.ts +7 -0
  202. package/dist/SubNav/SubNavSection.d.ts +9 -0
  203. package/dist/SubNav/SubNavSectionLabel.d.ts +8 -0
  204. package/dist/SubNav/SubNavSections.d.ts +10 -0
  205. package/dist/SubNav/index.d.ts +6 -0
  206. package/dist/Switch/Switch.d.ts +13 -0
  207. package/dist/Switch/index.d.ts +1 -0
  208. package/dist/Table/Cell.d.ts +8 -0
  209. package/dist/Table/TFooter.d.ts +7 -0
  210. package/dist/Table/Table.d.ts +7 -0
  211. package/dist/Table/Tbody.d.ts +2 -0
  212. package/dist/Table/Thead.d.ts +2 -0
  213. package/dist/Table/Tr.d.ts +2 -0
  214. package/dist/Table/index.d.ts +6 -0
  215. package/dist/Tabs/TabGroup.d.ts +14 -0
  216. package/dist/Tabs/TabPanels.d.ts +9 -0
  217. package/dist/Tabs/Tabs.d.ts +17 -0
  218. package/dist/Tabs/TabsContext.d.ts +10 -0
  219. package/dist/Tabs/components.d.ts +94 -0
  220. package/dist/Tabs/index.d.ts +3 -0
  221. package/dist/Tag/Tag.d.ts +5 -0
  222. package/dist/Tag/__tests__/Tag.spec.d.ts +1 -0
  223. package/dist/Tag/index.d.ts +1 -0
  224. package/dist/TextButton/TextButton.d.ts +8 -0
  225. package/dist/TextButton/index.d.ts +1 -0
  226. package/dist/TextInput/TextInput.d.ts +10 -0
  227. package/dist/TextInput/__tests__/TextInput.spec.d.ts +1 -0
  228. package/dist/TextInput/index.d.ts +1 -0
  229. package/dist/Textarea/Textarea.d.ts +17 -0
  230. package/dist/Textarea/index.d.ts +1 -0
  231. package/dist/ThemeProvider/ThemeProvider.d.ts +10 -0
  232. package/dist/ThemeProvider/hooks.d.ts +1 -0
  233. package/dist/ThemeProvider/index.d.ts +2 -0
  234. package/dist/TimePicker/TimePicker.d.ts +26 -0
  235. package/dist/TimePicker/__tests__/TimePicker.spec.d.ts +1 -0
  236. package/dist/TimePicker/index.d.ts +1 -0
  237. package/dist/ToggleCheckbox/ToggleCheckbox.d.ts +10 -0
  238. package/dist/ToggleCheckbox/index.d.ts +1 -0
  239. package/dist/ToggleInput/ToggleInput.d.ts +24 -0
  240. package/dist/ToggleInput/__tests__/ToggleInput.spec.d.ts +1 -0
  241. package/dist/ToggleInput/index.d.ts +1 -0
  242. package/dist/Tooltip/Tooltip.d.ts +11 -0
  243. package/dist/Tooltip/__tests__/Tooltip.spec.d.ts +1 -0
  244. package/dist/Tooltip/hooks/useTooltipHandlers.d.ts +7 -0
  245. package/dist/Tooltip/hooks/useTooltipLayout.d.ts +5 -0
  246. package/dist/Tooltip/index.d.ts +1 -0
  247. package/dist/Tooltip/utils/__tests__/positionTooltip.spec.d.ts +1 -0
  248. package/dist/Tooltip/utils/positionTooltip.d.ts +5 -0
  249. package/dist/Typography/Typography.d.ts +19 -0
  250. package/dist/Typography/__tests__/Typography.spec.d.ts +1 -0
  251. package/dist/Typography/constants.d.ts +8 -0
  252. package/dist/Typography/index.d.ts +1 -0
  253. package/dist/Typography/utils.d.ts +9 -0
  254. package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -0
  255. package/dist/VisuallyHidden/index.d.ts +1 -0
  256. package/dist/helpers/__tests__/deprecations.spec.d.ts +1 -0
  257. package/dist/helpers/context.d.ts +7 -0
  258. package/dist/helpers/deprecations.d.ts +2 -0
  259. package/dist/helpers/getDefaultLocale.d.ts +5 -0
  260. package/dist/helpers/getFocusableNodes.d.ts +10 -0
  261. package/dist/helpers/handleResponsiveValues.d.ts +17 -0
  262. package/dist/helpers/keyboardKeys.d.ts +17 -0
  263. package/dist/helpers/objects.d.ts +8 -0
  264. package/dist/helpers/setOpacity.d.ts +1 -0
  265. package/dist/helpers/setTabIndexOnFirstItem.d.ts +1 -0
  266. package/dist/helpers/strings.d.ts +1 -0
  267. package/dist/helpers/theme.d.ts +2 -0
  268. package/dist/helpers/useElementOnScreen.d.ts +6 -0
  269. package/dist/helpers/useId.d.ts +6 -0
  270. package/dist/helpers/useIntersection.d.ts +6 -0
  271. package/dist/helpers/useLockScroll.d.ts +7 -0
  272. package/dist/helpers/usePrevious.d.ts +6 -0
  273. package/dist/helpers/useResizeObserver.d.ts +6 -0
  274. package/dist/hooks/__tests__/useId.spec.d.ts +1 -0
  275. package/dist/hooks/useComposeRefs.d.ts +29 -0
  276. package/dist/hooks/useControllableState.d.ts +19 -0
  277. package/dist/hooks/useDateFormatter.d.ts +28 -0
  278. package/dist/hooks/useElementOnScreen.d.ts +1 -0
  279. package/dist/hooks/useId.d.ts +1 -0
  280. package/dist/hooks/useIntersection.d.ts +7 -0
  281. package/dist/hooks/useLockScroll.d.ts +2 -0
  282. package/dist/hooks/usePrevious.d.ts +1 -0
  283. package/dist/hooks/useResizeObserver.d.ts +2 -0
  284. package/dist/index.d.ts +69 -0
  285. package/dist/themes/__tests__/extendTheme.spec.d.ts +1 -0
  286. package/dist/themes/colors.d.ts +54 -0
  287. package/dist/themes/common-theme.d.ts +19 -0
  288. package/dist/themes/darkTheme/dark-colors.d.ts +4 -0
  289. package/dist/themes/darkTheme/dark-shadows.d.ts +4 -0
  290. package/dist/themes/darkTheme/index.d.ts +2 -0
  291. package/dist/themes/extendTheme.d.ts +2 -0
  292. package/dist/themes/index.d.ts +10 -0
  293. package/dist/themes/lightTheme/index.d.ts +2 -0
  294. package/dist/themes/lightTheme/light-colors.d.ts +4 -0
  295. package/dist/themes/lightTheme/light-shadows.d.ts +4 -0
  296. package/dist/themes/sizes.d.ts +21 -0
  297. package/dist/themes/utils.d.ts +12 -0
  298. package/dist/types.d.ts +3 -0
  299. package/dist/v2/Breadcrumbs/Breadcrumbs.d.ts +8 -0
  300. package/dist/v2/Breadcrumbs/Crumb.d.ts +8 -0
  301. package/dist/v2/Breadcrumbs/CrumbLink.d.ts +5 -0
  302. package/dist/v2/Breadcrumbs/CrumbSimpleMenu.d.ts +11 -0
  303. package/dist/v2/Breadcrumbs/Divider.d.ts +4 -0
  304. package/dist/v2/Breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +1 -0
  305. package/dist/v2/Breadcrumbs/index.d.ts +4 -0
  306. package/dist/v2/Link/Link.d.ts +11 -0
  307. package/dist/v2/Link/index.d.ts +1 -0
  308. package/dist/v2/LinkButton/LinkButton.d.ts +61 -0
  309. package/dist/v2/LinkButton/index.d.ts +1 -0
  310. package/dist/v2/MainNav/MainNav.d.ts +5 -0
  311. package/dist/v2/MainNav/MainNavContext.d.ts +2 -0
  312. package/dist/v2/MainNav/NavBrand.d.ts +9 -0
  313. package/dist/v2/MainNav/NavCondense.d.ts +5 -0
  314. package/dist/v2/MainNav/NavFooter.d.ts +5 -0
  315. package/dist/v2/MainNav/NavLink.d.ts +9 -0
  316. package/dist/v2/MainNav/NavSection.d.ts +9 -0
  317. package/dist/v2/MainNav/NavSections.d.ts +8 -0
  318. package/dist/v2/MainNav/NavUser.d.ts +8 -0
  319. package/dist/v2/MainNav/index.d.ts +8 -0
  320. package/dist/v2/Pagination/Pagination.d.ts +8 -0
  321. package/dist/v2/Pagination/PaginationContext.d.ts +6 -0
  322. package/dist/v2/Pagination/components.d.ts +16 -0
  323. package/dist/v2/Pagination/index.d.ts +2 -0
  324. package/dist/v2/SimpleMenu/Menu.d.ts +56 -0
  325. package/dist/v2/SimpleMenu/SimpleMenu.d.ts +62 -0
  326. package/dist/v2/SimpleMenu/__tests__/Menu.spec.d.ts +1 -0
  327. package/dist/v2/SimpleMenu/__tests__/SimpleMenu.spec.d.ts +1 -0
  328. package/dist/v2/SimpleMenu/index.d.ts +1 -0
  329. package/dist/v2/SubNav/SubNav.d.ts +6 -0
  330. package/dist/v2/SubNav/SubNavHeader.d.ts +13 -0
  331. package/dist/v2/SubNav/SubNavLink.d.ts +9 -0
  332. package/dist/v2/SubNav/SubNavLinkSection.d.ts +7 -0
  333. package/dist/v2/SubNav/SubNavSection.d.ts +9 -0
  334. package/dist/v2/SubNav/SubNavSectionLabel.d.ts +9 -0
  335. package/dist/v2/SubNav/SubNavSections.d.ts +8 -0
  336. package/dist/v2/SubNav/index.d.ts +6 -0
  337. package/dist/v2/index.d.ts +7 -0
  338. package/package.json +4 -4
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface TabPanelsProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const TabPanels: ({ children, ...props }: TabPanelsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement> {
7
+ id?: string;
8
+ }
9
+ export declare const TabPanel: ({ id, ...props }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../Flex';
3
+ export interface TabsProps extends FlexProps {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const Tabs: ({ children, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export interface TabProps extends React.HTMLAttributes<HTMLButtonElement> {
8
+ children: React.ReactNode;
9
+ disabled?: boolean;
10
+ hasError?: boolean;
11
+ id?: string;
12
+ index?: number;
13
+ onTabClick?: () => void;
14
+ selectedTabIndex?: number;
15
+ variant?: 'simple';
16
+ }
17
+ export declare const Tab: ({ disabled, id, children, variant, hasError, index, selectedTabIndex, onTabClick, ...props }: TabProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export interface TabsContextState {
2
+ id: string;
3
+ selectedTabIndex: number;
4
+ label: string;
5
+ variant?: 'simple';
6
+ onTabChange?: (index: number) => void;
7
+ selectTabIndex: (index: number) => void;
8
+ }
9
+ export declare const TabsContext: import("react").Context<TabsContextState>;
10
+ export declare const useTabs: () => TabsContextState;
@@ -0,0 +1,94 @@
1
+ /** Simple variant */
2
+ export declare const SimpleTabBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & Pick<import("styled-components").CSSProperties, "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "position" | "textAlign" | "textTransform" | "zIndex" | "animation" | "transition"> & {
3
+ _hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
4
+ background?: import("../types").DefaultThemeOrCSSProp<"colors", "background">;
5
+ basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
6
+ borderColor?: keyof import("../themes/colors").Colors | undefined;
7
+ color?: keyof import("../themes/colors").Colors | undefined;
8
+ flex?: import("csstype").Property.Flex<string | number> | undefined;
9
+ fontSize?: import("../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
10
+ grow?: import("csstype").Property.FlexGrow | undefined;
11
+ hasRadius?: boolean | undefined;
12
+ hiddenS?: boolean | undefined;
13
+ hiddenXS?: boolean | undefined;
14
+ padding?: import("../helpers/handleResponsiveValues").ResponsiveValue<"padding">;
15
+ paddingBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
16
+ paddingLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
17
+ paddingRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
18
+ paddingTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
19
+ marginLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
20
+ marginBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
21
+ marginRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
22
+ marginTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
23
+ shadow?: keyof import("../themes/colors").Shadows | undefined;
24
+ shrink?: import("csstype").Property.FlexShrink | undefined;
25
+ lineHeight?: import("../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
26
+ width?: import("../types").DefaultThemeOrCSSProp<"spaces", "width">;
27
+ minWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
28
+ maxWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
29
+ height?: import("../types").DefaultThemeOrCSSProp<"spaces", "height">;
30
+ minHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
31
+ maxHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
32
+ top?: import("../types").DefaultThemeOrCSSProp<"spaces", "top">;
33
+ left?: import("../types").DefaultThemeOrCSSProp<"spaces", "left">;
34
+ bottom?: import("../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
35
+ right?: import("../types").DefaultThemeOrCSSProp<"spaces", "right">;
36
+ borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
37
+ borderStyle?: import("csstype").Property.BorderStyle | undefined;
38
+ borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
39
+ children?: import("react").ReactNode;
40
+ as?: string | import("react").ComponentType<any> | undefined;
41
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
42
+ } & {
43
+ selected?: boolean | undefined;
44
+ hasError?: boolean | undefined;
45
+ }, never>;
46
+ /** Default variant */
47
+ export declare const DefaultTabBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & Pick<import("styled-components").CSSProperties, "cursor" | "display" | "overflow" | "pointerEvents" | "transform" | "position" | "textAlign" | "textTransform" | "zIndex" | "animation" | "transition"> & {
48
+ _hover?: ((theme: import("styled-components").DefaultTheme) => string) | undefined;
49
+ background?: import("../types").DefaultThemeOrCSSProp<"colors", "background">;
50
+ basis?: import("csstype").Property.FlexBasis<string | number> | undefined;
51
+ borderColor?: keyof import("../themes/colors").Colors | undefined;
52
+ color?: keyof import("../themes/colors").Colors | undefined;
53
+ flex?: import("csstype").Property.Flex<string | number> | undefined;
54
+ fontSize?: import("../types").DefaultThemeOrCSSProp<"fontSizes", "fontSize">;
55
+ grow?: import("csstype").Property.FlexGrow | undefined;
56
+ hasRadius?: boolean | undefined;
57
+ hiddenS?: boolean | undefined;
58
+ hiddenXS?: boolean | undefined;
59
+ padding?: import("../helpers/handleResponsiveValues").ResponsiveValue<"padding">;
60
+ paddingBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingBottom">;
61
+ paddingLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingLeft">;
62
+ paddingRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingRight">;
63
+ paddingTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"paddingTop">;
64
+ marginLeft?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginLeft">;
65
+ marginBottom?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginBottom">;
66
+ marginRight?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginRight">;
67
+ marginTop?: import("../helpers/handleResponsiveValues").ResponsiveValue<"marginTop">;
68
+ shadow?: keyof import("../themes/colors").Shadows | undefined;
69
+ shrink?: import("csstype").Property.FlexShrink | undefined;
70
+ lineHeight?: import("../types").DefaultThemeOrCSSProp<"lineHeights", "lineHeight">;
71
+ width?: import("../types").DefaultThemeOrCSSProp<"spaces", "width">;
72
+ minWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "minWidth">;
73
+ maxWidth?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxWidth">;
74
+ height?: import("../types").DefaultThemeOrCSSProp<"spaces", "height">;
75
+ minHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "minHeight">;
76
+ maxHeight?: import("../types").DefaultThemeOrCSSProp<"spaces", "maxHeight">;
77
+ top?: import("../types").DefaultThemeOrCSSProp<"spaces", "top">;
78
+ left?: import("../types").DefaultThemeOrCSSProp<"spaces", "left">;
79
+ bottom?: import("../types").DefaultThemeOrCSSProp<"spaces", "bottom">;
80
+ right?: import("../types").DefaultThemeOrCSSProp<"spaces", "right">;
81
+ borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
82
+ borderStyle?: import("csstype").Property.BorderStyle | undefined;
83
+ borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
84
+ children?: import("react").ReactNode;
85
+ as?: string | import("react").ComponentType<any> | undefined;
86
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
87
+ } & {
88
+ selected?: boolean | undefined;
89
+ }, never>;
90
+ export declare const DefaultTabButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
91
+ selected?: boolean | undefined;
92
+ showRightBorder?: boolean | undefined;
93
+ }, never>;
94
+ export declare const DefaultTabsRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Flex").FlexProps<"div">, never>;
@@ -0,0 +1,3 @@
1
+ export * from './Tabs';
2
+ export * from './TabPanels';
3
+ export * from './TabGroup';
@@ -0,0 +1,5 @@
1
+ import { FlexProps } from '../Flex';
2
+ export interface TagProps extends FlexProps<'button'> {
3
+ icon: React.ReactNode;
4
+ }
5
+ export declare const Tag: ({ children, icon, disabled, onClick, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Tag';
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { FlexProps } from '../Flex';
3
+ export interface TextButtonProps extends FlexProps<'button'> {
4
+ endIcon?: React.ReactNode;
5
+ loading?: boolean;
6
+ startIcon?: React.ReactNode;
7
+ }
8
+ export declare const TextButton: React.ForwardRefExoticComponent<TextButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from './TextButton';
@@ -0,0 +1,10 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { FieldInputProps, FieldProps, FieldLabelProps } from '../Field';
3
+ export interface TextInputProps extends Omit<FieldInputProps, 'id' | 'name'>, Pick<FieldProps, 'hint' | 'error' | 'id' | 'name'> {
4
+ label: string;
5
+ labelAction?: FieldLabelProps['action'];
6
+ }
7
+ export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<{
8
+ inputWrapperRef: MutableRefObject<HTMLDivElement>;
9
+ input: MutableRefObject<HTMLInputElement>;
10
+ }>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './TextInput';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { BoxProps } from '../Box';
3
+ import { FieldProps, FieldLabelProps } from '../Field';
4
+ export interface TextareaProps extends TextareaInputBoxProps, Pick<FieldProps, 'hint' | 'error'> {
5
+ /**
6
+ * @preserve
7
+ * @deprecated use `value` instead
8
+ */
9
+ children?: string;
10
+ label?: string;
11
+ labelAction?: FieldLabelProps['action'];
12
+ value?: string;
13
+ }
14
+ interface TextareaInputBoxProps extends BoxProps<'textarea'> {
15
+ }
16
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
17
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Textarea';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * TODO: remove this in v2 in favour of DesignSystemProvider, but this is rather convienient for now.
3
+ */
4
+ import * as React from 'react';
5
+ import { DefaultTheme } from 'styled-components';
6
+ export interface ThemeProviderProps {
7
+ children: React.ReactNode;
8
+ theme?: DefaultTheme;
9
+ }
10
+ export declare const ThemeProvider: ({ children, theme }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const useTheme: () => import("styled-components").DefaultTheme;
@@ -0,0 +1,2 @@
1
+ export * from './ThemeProvider';
2
+ export * from './hooks';
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { ComboboxInputProps } from '../Combobox/Combobox';
3
+ import { FieldLabelProps, FieldProps } from '../Field';
4
+ export interface TimePickerInputProps extends Omit<ComboboxInputProps, 'children' | 'autocomplete' | 'startIcon' | 'placeholder' | 'allowCustomValue' | 'onFilterValueChange' | 'filterValue' | 'value' | 'defaultValue' | 'defaultTextValue' | 'textValue' | 'onTextValueChange'> {
5
+ /**
6
+ * @default 15
7
+ */
8
+ step?: number;
9
+ /**
10
+ * @deprecated This is no longer used.
11
+ */
12
+ ariaLabel?: string;
13
+ /**
14
+ * @preserve
15
+ * @deprecated This is no longer used.
16
+ */
17
+ selectButtonTitle?: string;
18
+ value?: string;
19
+ defaultValue?: string;
20
+ }
21
+ export declare const TimePickerInput: React.ForwardRefExoticComponent<TimePickerInputProps & React.RefAttributes<HTMLInputElement>>;
22
+ export interface TimePickerProps extends TimePickerInputProps, Pick<FieldProps, 'hint'> {
23
+ label: string;
24
+ labelAction?: FieldLabelProps['action'];
25
+ }
26
+ export declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './TimePicker';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { InputSizes } from '../themes/sizes';
3
+ export interface ToggleCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'children'> {
4
+ children: string;
5
+ offLabel: string;
6
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
+ onLabel: string;
8
+ size?: InputSizes;
9
+ }
10
+ export declare const ToggleCheckbox: React.ForwardRefExoticComponent<ToggleCheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export * from './ToggleCheckbox';
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import { type FieldProps, FieldLabelProps } from '../Field';
3
+ import type { InputSizes } from '../themes/sizes';
4
+ interface ToggleInputInputProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'name' | 'children' | 'required' | 'id' | 'size' | 'checked'> {
5
+ onLabel: string;
6
+ offLabel: string;
7
+ checked?: boolean | null;
8
+ size?: InputSizes;
9
+ }
10
+ interface ToggleInputPropsWithoutLabel extends Pick<FieldProps, 'error' | 'hint' | 'name' | 'required' | 'id'>, ToggleInputInputProps {
11
+ clearLabel?: string;
12
+ labelAction?: FieldLabelProps['action'];
13
+ onClear?: () => void;
14
+ }
15
+ type ToggleInputProps = (ToggleInputPropsWithoutLabel & {
16
+ label: string;
17
+ 'aria-label'?: never;
18
+ }) | (ToggleInputPropsWithoutLabel & {
19
+ label?: never;
20
+ 'aria-label': string;
21
+ });
22
+ declare const ToggleInput: React.ForwardRefExoticComponent<ToggleInputProps & React.RefAttributes<HTMLInputElement>>;
23
+ export { ToggleInput };
24
+ export type { ToggleInputProps };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ToggleInput';
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { TooltipPosition } from './utils/positionTooltip';
3
+ import { BoxProps } from '../Box';
4
+ export interface TooltipProps extends Omit<BoxProps<'div'>, 'position'> {
5
+ description?: string;
6
+ delay?: number;
7
+ id?: string;
8
+ label?: React.ReactNode;
9
+ position?: TooltipPosition;
10
+ }
11
+ export declare const Tooltip: ({ children, label, description, delay, position, id, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const useTooltipHandlers: (delay: number) => {
2
+ visible: boolean;
3
+ onFocus: () => void;
4
+ onBlur: () => void;
5
+ onMouseEnter: () => void;
6
+ onMouseLeave: () => void;
7
+ };
@@ -0,0 +1,5 @@
1
+ import { TooltipPosition } from '../utils/positionTooltip';
2
+ export declare const useTooltipLayout: (visible: boolean, position: TooltipPosition) => {
3
+ tooltipWrapperRef: import("react").MutableRefObject<HTMLDivElement | null>;
4
+ toggleSourceRef: import("react").MutableRefObject<HTMLSpanElement | null>;
5
+ };
@@ -0,0 +1 @@
1
+ export * from './Tooltip';
@@ -0,0 +1,5 @@
1
+ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
2
+ export declare const positionTooltip: (tooltipNode: HTMLDivElement, toggleSourceNode: HTMLSpanElement, position?: TooltipPosition) => {
3
+ left: number;
4
+ top: number;
5
+ };
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { CSSProperties, DefaultTheme } from 'styled-components';
3
+ import { TEXT_VARIANTS } from './constants';
4
+ import { DefaultThemeOrCSSProp } from '../types';
5
+ export type TypographyProps<TElement extends keyof JSX.IntrinsicElements = 'span'> = React.ComponentPropsWithoutRef<TElement> & {
6
+ as?: string | React.ComponentType<any>;
7
+ forwardedAs?: string | React.ComponentType<any>;
8
+ children?: React.ReactNode;
9
+ ellipsis?: boolean;
10
+ fontSize?: keyof DefaultTheme['fontSizes'];
11
+ fontWeight?: keyof DefaultTheme['fontWeights'];
12
+ lineHeight?: DefaultThemeOrCSSProp<'lineHeights', 'lineHeight'>;
13
+ textAlign?: CSSProperties['textAlign'];
14
+ textColor?: keyof DefaultTheme['colors'];
15
+ textDecoration?: CSSProperties['textDecoration'];
16
+ textTransform?: CSSProperties['textTransform'];
17
+ variant?: (typeof TEXT_VARIANTS)[number];
18
+ };
19
+ export declare const Typography: import("styled-components").StyledComponent<"span", DefaultTheme, TypographyProps<"span">, never>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const ALPHA = "alpha";
2
+ export declare const BETA = "beta";
3
+ export declare const DELTA = "delta";
4
+ export declare const EPSILON = "epsilon";
5
+ export declare const OMEGA = "omega";
6
+ export declare const PI = "pi";
7
+ export declare const SIGMA = "sigma";
8
+ export declare const TEXT_VARIANTS: readonly ["alpha", "beta", "delta", "epsilon", "omega", "pi", "sigma"];
@@ -0,0 +1 @@
1
+ export * from './Typography';
@@ -0,0 +1,9 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { TEXT_VARIANTS } from './constants';
3
+ export declare const ellipsisStyle: ({ ellipsis }: {
4
+ ellipsis?: boolean;
5
+ }) => false | "\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n ";
6
+ export declare const variantStyle: ({ variant, theme, }: {
7
+ variant?: (typeof TEXT_VARIANTS)[number];
8
+ theme: DefaultTheme;
9
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const VisuallyHidden: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from './VisuallyHidden';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export declare const createContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType) => readonly [{
3
+ (props: ContextValueType & {
4
+ children: React.ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ }, (consumerName: string) => ContextValueType];
@@ -0,0 +1,2 @@
1
+ export declare const PREFIX = "[@strapi/design-system]:";
2
+ export declare const once: <TFunc extends (...args: any) => any>(fn: TFunc) => (...args: any) => void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @preserve
3
+ * @deprecated This will be removed in v2.0.0, you can access the locale from `useDesignSystem` instead.
4
+ */
5
+ export declare const getDefaultLocale: () => string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Sometimes, we want to retrieve the elements with tabindex=-1, and sometime we don't
3
+ * The includeNegativeTabIndex aims to provide this capability
4
+ *
5
+ */
6
+ export declare const getFocusableNodes: (node: HTMLElement, includeNegativeTabIndex?: boolean) => HTMLElement[];
7
+ /**
8
+ * This function filters an array of HTMLElements and returns any of them that have internal keyboard navigation such as input type="text"
9
+ */
10
+ export declare const getFocusableNodesWithKeyboardNav: (nodes: HTMLElement[]) => HTMLElement[];
@@ -0,0 +1,17 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { DefaultTheme } from 'styled-components';
3
+ import { DefaultThemeOrCSSProp } from '../types';
4
+ interface ResponsiveValueObject {
5
+ desktop?: keyof DefaultTheme['spaces'];
6
+ tablet?: keyof DefaultTheme['spaces'];
7
+ mobile?: keyof DefaultTheme['spaces'];
8
+ }
9
+ type ResponsiveValueTuple = [
10
+ desktop?: keyof DefaultTheme['spaces'],
11
+ tablet?: keyof DefaultTheme['spaces'],
12
+ mobile?: keyof DefaultTheme['spaces']
13
+ ];
14
+ type ResponsiveCSSProperties = Pick<CSSProperties, 'margin' | 'marginLeft' | 'marginRight' | 'marginTop' | 'marginBottom' | 'padding' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'paddingBottom'>;
15
+ export type ResponsiveValue<TCSSProp extends keyof ResponsiveCSSProperties = any> = ResponsiveValueObject | DefaultThemeOrCSSProp<'spaces', TCSSProp> | ResponsiveValueTuple;
16
+ declare const handleResponsiveValues: <TCSSProp extends "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "margin" | "padding">(property: string, value: ResponsiveValue<TCSSProp> | undefined, theme: DefaultTheme) => string | undefined;
17
+ export default handleResponsiveValues;
@@ -0,0 +1,17 @@
1
+ export declare const KeyboardKeys: {
2
+ DOWN: string;
3
+ UP: string;
4
+ RIGHT: string;
5
+ LEFT: string;
6
+ ESCAPE: string;
7
+ ENTER: string;
8
+ SPACE: string;
9
+ TAB: string;
10
+ END: string;
11
+ HOME: string;
12
+ DELETE: string;
13
+ PAGE_UP: string;
14
+ PAGE_DOWN: string;
15
+ BACKSPACE: string;
16
+ CLEAR: string;
17
+ };
@@ -0,0 +1,8 @@
1
+ export declare function isKeyOf(o: object | [] | string, s: string | number | symbol): s is keyof typeof o;
2
+ /**
3
+ * @description Simple object check.
4
+ * @export
5
+ * @param item
6
+ * @returns {boolean}
7
+ */
8
+ export declare function isObject(item: any): boolean;
@@ -0,0 +1 @@
1
+ export declare const setOpacity: (hex: string, alpha: number) => string;
@@ -0,0 +1 @@
1
+ export declare const setTabIndexOnFirstItem: (node: HTMLElement, selector: string) => void;
@@ -0,0 +1 @@
1
+ export declare const stripReactIdOfColon: (str: string) => string;
@@ -0,0 +1,2 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ export declare function extractStyleFromTheme<TKey extends keyof DefaultTheme, TSection extends DefaultTheme[TKey]>(themeSection: TSection, key: string | number | symbol | undefined, defaultValue: any): string | number;
@@ -0,0 +1,6 @@
1
+ import { useElementOnScreen as actualUseElementOnScreen } from '../hooks/useElementOnScreen';
2
+ /**
3
+ * @preserve
4
+ * @deprecated useElementOnScreen has moved. Please import it from "@strapi/design-system/hooks/useElementOnScreen"
5
+ */
6
+ export declare const useElementOnScreen: typeof actualUseElementOnScreen;
@@ -0,0 +1,6 @@
1
+ import { useId as actualUseId } from '../hooks/useId';
2
+ /**
3
+ * @preserve
4
+ * @deprecated useId has moved. Please import it from "@strapi/design-system/hooks/useId"
5
+ */
6
+ export declare const useId: typeof actualUseId;
@@ -0,0 +1,6 @@
1
+ import { useIntersection as actualUseIntersection } from '../hooks/useIntersection';
2
+ /**
3
+ * @preserve
4
+ * @deprecated useId has moved. Please import it from "@strapi/design-system/hooks/useId"
5
+ */
6
+ export declare const useIntersection: typeof actualUseIntersection;
@@ -0,0 +1,7 @@
1
+ import actualUseLockScroll from '../hooks/useLockScroll';
2
+ /**
3
+ * @preserve
4
+ * @deprecated useLockScroll has moved. Please import it from "@strapi/design-system/hooks/useLockScroll"
5
+ */
6
+ declare const useLockScroll: typeof actualUseLockScroll;
7
+ export default useLockScroll;
@@ -0,0 +1,6 @@
1
+ import { usePrevious as actualUsePrevious } from '../hooks/usePrevious';
2
+ /**
3
+ * @preserve
4
+ * @deprecated usePrevious has moved. Please import it from "@strapi/design-system/hooks/usePrevious"
5
+ */
6
+ export declare const usePrevious: typeof actualUsePrevious;
@@ -0,0 +1,6 @@
1
+ import { useResizeObserver as actualUseResizeObserver } from '../hooks/useResizeObserver';
2
+ /**
3
+ * @preserve
4
+ * @deprecated useResizeObserver has moved. Please import it from "@strapi/design-system/hooks/useResizeObserver"
5
+ */
6
+ export declare const useResizeObserver: typeof actualUseResizeObserver;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ type PossibleRef<T> = React.Ref<T> | undefined;
3
+ /**
4
+ * A utility to compose multiple refs together
5
+ * Accepts callback refs and RefObject(s)
6
+ */
7
+ declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;
8
+ /**
9
+ * Takes multiple React like refs either React.Ref or a callback:
10
+ * (node: T) => void and returns a single function that can be
11
+ * passed to a React component as a ref.
12
+ *
13
+ * Example:
14
+ * ```tsx
15
+ * import { useComposedRefs } from '../hooks/useComposedRefs';
16
+ *
17
+ * const Component = React.forwardRef<HTMLInputElement, ComponentProps>((props, forwardedRef) => {
18
+ * const ref = useComposedRefs(internalRef, forwardedRef);
19
+ *
20
+ * React.useEffect(() => {
21
+ * ref.current.focus();
22
+ * }, [ref]);
23
+ *
24
+ * return <input ref={ref} />
25
+ * }
26
+ * ```
27
+ */
28
+ declare function useComposedRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;
29
+ export { composeRefs, useComposedRefs };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * this is basically stolen from RadixUI but tweaked to allow the following:
3
+ * * prop can be a function
4
+ * * setUncontrolledProp is always called with the nextValue.
5
+ */
6
+ /**
7
+ * @type {<T>(params: UseControllableStateParams<T>) => [T, (nextState: T | SetStateFn<T>) => void]}
8
+ */
9
+ export interface UseControllableStateParams<TProp> {
10
+ prop?: TProp | undefined | ((state?: TProp | undefined) => TProp | undefined);
11
+ defaultProp?: TProp | undefined;
12
+ onChange?: (state?: TProp) => void;
13
+ }
14
+ type SetStateFn<TState> = (prevState: TState) => TState;
15
+ declare function useControllableState<TProp>({ prop, defaultProp, onChange, }: UseControllableStateParams<TProp>): [
16
+ TProp | undefined,
17
+ (nextState: TProp | undefined | SetStateFn<TProp | undefined>) => void
18
+ ];
19
+ export { useControllableState };