@hyphen/hyphen-components 7.3.2 → 7.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/css/utilities.css +1 -1
  2. package/dist/css/variables.css +18 -28
  3. package/dist/hyphen-components.cjs.development.js +5873 -5019
  4. package/dist/hyphen-components.cjs.development.js.map +1 -1
  5. package/dist/hyphen-components.cjs.production.min.js +18 -2
  6. package/dist/hyphen-components.cjs.production.min.js.map +1 -1
  7. package/dist/hyphen-components.esm.js +5731 -4844
  8. package/dist/hyphen-components.esm.js.map +1 -1
  9. package/dist/index.d.ts +2799 -57
  10. package/dist/index.js +0 -1
  11. package/package.json +18 -19
  12. package/src/components/Badge/Badge.module.scss +6 -0
  13. package/src/components/Badge/Badge.stories.tsx +1 -0
  14. package/src/components/Badge/Badge.test.tsx +3 -2
  15. package/src/components/Badge/Badge.tsx +5 -3
  16. package/src/components/Box/Box.tsx +5 -2
  17. package/src/components/Button/Button.module.scss +1 -1
  18. package/src/components/Button/Button.test.tsx +2 -2
  19. package/src/components/Calendar/Calendar.test.tsx +262 -0
  20. package/src/components/Card/Card.tsx +2 -0
  21. package/src/components/CheckboxInput/components/Checkbox.module.scss +1 -1
  22. package/src/components/CheckboxInput/components/Checkbox.tsx +2 -0
  23. package/src/components/Details/Details.module.scss +2 -2
  24. package/src/components/Details/Details.tsx +2 -0
  25. package/src/components/Drawer/Drawer.stories.tsx +1 -1
  26. package/src/components/Drawer/Drawer.test.tsx +494 -56
  27. package/src/components/Drawer/Drawer.tsx +7 -1
  28. package/src/components/DropdownMenu/DropdownMenu.test.tsx +532 -12
  29. package/src/components/FormControl/FormControl.tsx +2 -0
  30. package/src/components/Formik/Formik.stories.tsx +30 -7
  31. package/src/components/Formik/FormikSelectInput/FormikSelectInput.tsx +6 -5
  32. package/src/components/Formik/FormikToggleGroup/FormikToggleGroup.tsx +1 -1
  33. package/src/components/HelpText/HelpText.tsx +2 -0
  34. package/src/components/Icon/Icon.stories.tsx +1 -1
  35. package/src/components/Icon/Icon.tsx +2 -0
  36. package/src/components/Modal/Modal.test.tsx +630 -81
  37. package/src/components/Modal/Modal.tsx +2 -0
  38. package/src/components/Modal/components/ModalFooter/ModalFooter.test.tsx +2 -2
  39. package/src/components/Popover/Popover.tsx +2 -0
  40. package/src/components/RadioGroup/RadioInput/RadioInput.tsx +2 -0
  41. package/src/components/SelectInput/SelectInput.stories.tsx +22 -22
  42. package/src/components/SelectInput/SelectInput.tsx +13 -9
  43. package/src/components/SelectInputInset/SelectInputInset.tsx +2 -0
  44. package/src/components/Sidebar/Sidebar.module.scss +4 -0
  45. package/src/components/Sidebar/Sidebar.stories.tsx +8 -4
  46. package/src/components/Sidebar/Sidebar.test.tsx +7 -4
  47. package/src/components/Sidebar/Sidebar.tsx +7 -4
  48. package/src/components/Table/Table.stories.tsx +102 -52
  49. package/src/components/TextInput/TextInput.tsx +2 -0
  50. package/src/components/TextInputInset/TextInputInset.tsx +2 -0
  51. package/src/components/TextareaInputInset/TextareaInputInset.tsx +2 -0
  52. package/src/components/TimePickerNative/TimePickerNative.stories.tsx +0 -1
  53. package/src/components/Toast/Toast.store.ts +1 -1
  54. package/src/components/Toast/Toast.stories.tsx +3 -2
  55. package/src/components/Toast/Toast.test.tsx +8 -6
  56. package/src/components/Toggle/Toggle.tsx +2 -0
  57. package/src/components/ToggleGroup/ToggleGroup.tsx +2 -0
  58. package/src/docs/Colors.mdx +0 -13
  59. package/src/index.ts +2 -0
  60. package/src/lib/getColumnKeys.ts +3 -3
  61. package/src/lib/mergeRefs.ts +1 -1
  62. package/src/lib/tokens.ts +4 -4
  63. package/dist/components/Alert/Alert.constants.d.ts +0 -8
  64. package/dist/components/Alert/Alert.d.ts +0 -42
  65. package/dist/components/Alert/Alert.stories.d.ts +0 -12
  66. package/dist/components/Alert/Alert.types.d.ts +0 -7
  67. package/dist/components/AspectRatio/AspectRatio.d.ts +0 -3
  68. package/dist/components/AspectRatio/AspectRatio.stories.d.ts +0 -6
  69. package/dist/components/Badge/Badge.d.ts +0 -24
  70. package/dist/components/Badge/Badge.stories.d.ts +0 -8
  71. package/dist/components/Box/Box.d.ts +0 -247
  72. package/dist/components/Box/Box.stories.d.ts +0 -46
  73. package/dist/components/Button/Button.constants.d.ts +0 -3
  74. package/dist/components/Button/Button.d.ts +0 -53
  75. package/dist/components/Button/Button.stories.d.ts +0 -16
  76. package/dist/components/Calendar/Calendar.d.ts +0 -7
  77. package/dist/components/Calendar/Calendar.stories.d.ts +0 -12
  78. package/dist/components/Card/Card.d.ts +0 -17
  79. package/dist/components/Card/Card.stories.d.ts +0 -8
  80. package/dist/components/Card/components/CardFooter/CardFooter.d.ts +0 -13
  81. package/dist/components/Card/components/CardHeader/CardHeader.d.ts +0 -13
  82. package/dist/components/Card/components/CardSection/CardSection.d.ts +0 -46
  83. package/dist/components/Card/components/index.d.ts +0 -3
  84. package/dist/components/CheckboxInput/CheckboxInput.d.ts +0 -72
  85. package/dist/components/CheckboxInput/CheckboxInput.stories.d.ts +0 -18
  86. package/dist/components/CheckboxInput/components/Checkbox.d.ts +0 -71
  87. package/dist/components/CheckboxInput/components/CheckboxIcon.d.ts +0 -27
  88. package/dist/components/Collapsible/Collapsible.d.ts +0 -5
  89. package/dist/components/Collapsible/Collapsible.stories.d.ts +0 -9
  90. package/dist/components/Details/Details.d.ts +0 -15
  91. package/dist/components/Details/Details.stories.d.ts +0 -6
  92. package/dist/components/Details/DetailsSummary.d.ts +0 -7
  93. package/dist/components/Drawer/Drawer.d.ts +0 -105
  94. package/dist/components/Drawer/Drawer.stories.d.ts +0 -62
  95. package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -25
  96. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +0 -9
  97. package/dist/components/FormControl/FormControl.d.ts +0 -38
  98. package/dist/components/FormLabel/FormLabel.d.ts +0 -41
  99. package/dist/components/FormLabel/FormLabel.stories.d.ts +0 -6
  100. package/dist/components/Formik/Formik.stories.d.ts +0 -18
  101. package/dist/components/Formik/FormikCheckboxInput/FormikCheckboxInput.d.ts +0 -12
  102. package/dist/components/Formik/FormikRadioGroup/FormikRadioGroup.d.ts +0 -12
  103. package/dist/components/Formik/FormikSelectInput/FormikSelectInput.d.ts +0 -13
  104. package/dist/components/Formik/FormikSelectInputInset/FormikSelectInputInset.d.ts +0 -12
  105. package/dist/components/Formik/FormikSelectInputNative/FormikSelectInputNative.d.ts +0 -12
  106. package/dist/components/Formik/FormikSwitch/FormikSwitch.d.ts +0 -12
  107. package/dist/components/Formik/FormikTextInput/FormikTextInput.d.ts +0 -12
  108. package/dist/components/Formik/FormikTextInputInset/FormikTextInputInset.d.ts +0 -12
  109. package/dist/components/Formik/FormikTextareaInput/FormikTextareaInput.d.ts +0 -12
  110. package/dist/components/Formik/FormikTextareaInputInset/FormikTextareaInputInset.d.ts +0 -12
  111. package/dist/components/Formik/FormikTimePicker/FormikTimePicker.d.ts +0 -12
  112. package/dist/components/Formik/FormikTimePickerNative/FormikTimePickerNative.d.ts +0 -12
  113. package/dist/components/Formik/FormikToggleGroup/FormikToggleGroup.d.ts +0 -20
  114. package/dist/components/Formik/FormikToggleGroupMulti/FormikToggleGroupMulti.d.ts +0 -18
  115. package/dist/components/Heading/Heading.constants.d.ts +0 -10
  116. package/dist/components/Heading/Heading.d.ts +0 -35
  117. package/dist/components/Heading/Heading.stories.d.ts +0 -9
  118. package/dist/components/HelpText/HelpText.d.ts +0 -12
  119. package/dist/components/Icon/Icon.d.ts +0 -22
  120. package/dist/components/Icon/Icon.stories.d.ts +0 -10
  121. package/dist/components/InputValidationMessage/InputValidationMessage.d.ts +0 -9
  122. package/dist/components/Modal/Modal.d.ts +0 -83
  123. package/dist/components/Modal/Modal.stories.d.ts +0 -13
  124. package/dist/components/Modal/components/ModalBody/ModalBody.d.ts +0 -4
  125. package/dist/components/Modal/components/ModalFooter/ModalFooter.d.ts +0 -4
  126. package/dist/components/Modal/components/ModalHeader/ModalHeader.d.ts +0 -21
  127. package/dist/components/Modal/components/index.d.ts +0 -4
  128. package/dist/components/Pagination/Pagination.d.ts +0 -51
  129. package/dist/components/Pagination/Pagination.stories.d.ts +0 -8
  130. package/dist/components/Pagination/Pagination.utilities.d.ts +0 -10
  131. package/dist/components/Popover/Popover.d.ts +0 -8
  132. package/dist/components/Popover/Popover.stories.d.ts +0 -7
  133. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -75
  134. package/dist/components/RadioGroup/RadioGroup.stories.d.ts +0 -16
  135. package/dist/components/RadioGroup/RadioInput/RadioInput.d.ts +0 -57
  136. package/dist/components/RadioGroup/RadioInput/RadioInputIcon.d.ts +0 -27
  137. package/dist/components/RangeInput/RangeInput.d.ts +0 -29
  138. package/dist/components/RangeInput/RangeInput.stories.d.ts +0 -7
  139. package/dist/components/ResponsiveProvider/ResponsiveProvider.d.ts +0 -17
  140. package/dist/components/ResponsiveProvider/ResponsiveProvider.stories.d.ts +0 -7
  141. package/dist/components/SelectInput/SelectInput.d.ts +0 -148
  142. package/dist/components/SelectInput/SelectInput.stories.d.ts +0 -24
  143. package/dist/components/SelectInputInset/SelectInputInset.d.ts +0 -92
  144. package/dist/components/SelectInputInset/SelectInputInset.stories.d.ts +0 -12
  145. package/dist/components/SelectInputNative/SelectInputNative.d.ts +0 -45
  146. package/dist/components/SelectInputNative/SelectInputNative.stories.d.ts +0 -19
  147. package/dist/components/Sidebar/Sidebar.d.ts +0 -57
  148. package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -9
  149. package/dist/components/Spinner/Spinner.d.ts +0 -12
  150. package/dist/components/Spinner/Spinner.stories.d.ts +0 -8
  151. package/dist/components/Switch/Switch.d.ts +0 -64
  152. package/dist/components/Switch/Switch.stories.d.ts +0 -12
  153. package/dist/components/Table/Table.d.ts +0 -86
  154. package/dist/components/Table/Table.stories.d.ts +0 -31
  155. package/dist/components/Table/TableBody/TableBody.d.ts +0 -52
  156. package/dist/components/Table/TableBody/TableBodyCell/TableBodyCell.d.ts +0 -45
  157. package/dist/components/Table/TableHead/TableHead.d.ts +0 -46
  158. package/dist/components/Table/TableHead/TableHeaderCell/TableHeaderCell.d.ts +0 -65
  159. package/dist/components/Table/common/TableRow/TableRow.d.ts +0 -67
  160. package/dist/components/TextInput/TextInput.d.ts +0 -106
  161. package/dist/components/TextInput/TextInput.stories.d.ts +0 -19
  162. package/dist/components/TextInputInset/TextInputInset.d.ts +0 -102
  163. package/dist/components/TextInputInset/TextInputInset.stories.d.ts +0 -13
  164. package/dist/components/TextareaInput/TextareaInput.d.ts +0 -97
  165. package/dist/components/TextareaInput/TextareaInput.stories.d.ts +0 -23
  166. package/dist/components/TextareaInputInset/TextareaInputInset.d.ts +0 -105
  167. package/dist/components/TextareaInputInset/TextareaInputInset.stories.d.ts +0 -12
  168. package/dist/components/ThemeProvider/ThemeProvider.d.ts +0 -15
  169. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +0 -6
  170. package/dist/components/TimePicker/TimePicker.d.ts +0 -35
  171. package/dist/components/TimePicker/TimePicker.stories.d.ts +0 -12
  172. package/dist/components/TimePickerNative/TimePickerNative.d.ts +0 -39
  173. package/dist/components/TimePickerNative/TimePickerNative.stories.d.ts +0 -11
  174. package/dist/components/Toast/Toast.store.d.ts +0 -36
  175. package/dist/components/Toast/Toast.stories.d.ts +0 -14
  176. package/dist/components/Toast/Toast.types.d.ts +0 -75
  177. package/dist/components/Toast/ToastContainer.d.ts +0 -43
  178. package/dist/components/Toast/ToastNotification.d.ts +0 -28
  179. package/dist/components/Toast/index.d.ts +0 -4
  180. package/dist/components/Toast/toast.d.ts +0 -20
  181. package/dist/components/Toast/useToasts.d.ts +0 -14
  182. package/dist/components/Toggle/Toggle.d.ts +0 -7
  183. package/dist/components/Toggle/Toggle.stories.d.ts +0 -11
  184. package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -19
  185. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -12
  186. package/dist/components/Tooltip/Tooltip.d.ts +0 -8
  187. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -8
  188. package/dist/constants/keyCodes.d.ts +0 -2
  189. package/dist/css/index.css +0 -36
  190. package/dist/hooks/index.d.ts +0 -6
  191. package/dist/hooks/useBreakpoint/useBreakpoint.d.ts +0 -9
  192. package/dist/hooks/useBreakpoint/useBreakpoint.stories.d.ts +0 -6
  193. package/dist/hooks/useIsMobile/useIsMobile.d.ts +0 -1
  194. package/dist/hooks/useIsMobile/useIsMobile.stories.d.ts +0 -6
  195. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +0 -2
  196. package/dist/hooks/useOpenClose/useOpenClose.d.ts +0 -39
  197. package/dist/hooks/useOpenClose/useOpenClose.stories.d.ts +0 -6
  198. package/dist/hooks/useTheme/useTheme.d.ts +0 -5
  199. package/dist/hooks/useTheme/useTheme.stories.d.ts +0 -6
  200. package/dist/hooks/useWindowSize/useWindowSize.d.ts +0 -7
  201. package/dist/hooks/useWindowSize/useWindowSize.stories.d.ts +0 -6
  202. package/dist/lib/cssShorthandToClasses.d.ts +0 -4
  203. package/dist/lib/doesStringIncludeCssUnit.d.ts +0 -1
  204. package/dist/lib/generateResponsiveClasses.d.ts +0 -2
  205. package/dist/lib/getAutoCompleteValue.d.ts +0 -1
  206. package/dist/lib/getColumnKeys.d.ts +0 -3
  207. package/dist/lib/getDimensionCss.d.ts +0 -12
  208. package/dist/lib/getElementType.d.ts +0 -14
  209. package/dist/lib/getFlexCss.d.ts +0 -9
  210. package/dist/lib/index.d.ts +0 -15
  211. package/dist/lib/isFunction.d.ts +0 -3
  212. package/dist/lib/mergeRefs.d.ts +0 -2
  213. package/dist/lib/prefersReducedMotion.d.ts +0 -1
  214. package/dist/lib/react-children-utilities/filter.d.ts +0 -3
  215. package/dist/lib/react-children-utilities/index.d.ts +0 -1
  216. package/dist/lib/reactRouterClickHandler.d.ts +0 -12
  217. package/dist/lib/resolveValue.d.ts +0 -3
  218. package/dist/lib/tokens.d.ts +0 -22
  219. package/dist/modes.d.ts +0 -8
  220. package/dist/types/index.d.ts +0 -103
  221. package/dist/types/lib.types.d.ts +0 -3
package/dist/index.d.ts CHANGED
@@ -1,57 +1,2799 @@
1
- export * from './components/Alert/Alert';
2
- export * from './components/AspectRatio/AspectRatio';
3
- export * from './components/Badge/Badge';
4
- export * from './components/Box/Box';
5
- export * from './components/Button/Button';
6
- export * from './components/Calendar/Calendar';
7
- export * from './components/Card/Card';
8
- export * from './components/CheckboxInput/components/Checkbox';
9
- export * from './components/CheckboxInput/CheckboxInput';
10
- export * from './components/Collapsible/Collapsible';
11
- export * from './components/Details/Details';
12
- export * from './components/Details/DetailsSummary';
13
- export * from './components/Drawer/Drawer';
14
- export * from './components/DropdownMenu/DropdownMenu';
15
- export * from './components/FormControl/FormControl';
16
- export * from './components/Formik/FormikCheckboxInput/FormikCheckboxInput';
17
- export * from './components/Formik/FormikRadioGroup/FormikRadioGroup';
18
- export * from './components/Formik/FormikSelectInput/FormikSelectInput';
19
- export * from './components/Formik/FormikSelectInputInset/FormikSelectInputInset';
20
- export * from './components/Formik/FormikTextareaInputInset/FormikTextareaInputInset';
21
- export * from './components/Formik/FormikTextInputInset/FormikTextInputInset';
22
- export * from './components/Formik/FormikSelectInputNative/FormikSelectInputNative';
23
- export * from './components/Formik/FormikTextInput/FormikTextInput';
24
- export * from './components/Formik/FormikTextareaInput/FormikTextareaInput';
25
- export * from './components/Formik/FormikTimePicker/FormikTimePicker';
26
- export * from './components/Formik/FormikTimePickerNative/FormikTimePickerNative';
27
- export * from './components/Formik/FormikSwitch/FormikSwitch';
28
- export * from './components/Formik/FormikToggleGroup/FormikToggleGroup';
29
- export * from './components/Formik/FormikToggleGroupMulti/FormikToggleGroupMulti';
30
- export * from './components/FormLabel/FormLabel';
31
- export * from './components/Heading/Heading';
32
- export * from './components/Icon/Icon';
33
- export * from './components/Modal/Modal';
34
- export * from './components/Pagination/Pagination';
35
- export * from './components/Popover/Popover';
36
- export * from './components/RadioGroup/RadioGroup';
37
- export * from './components/RangeInput/RangeInput';
38
- export * from './components/ResponsiveProvider/ResponsiveProvider';
39
- export * from './components/SelectInput/SelectInput';
40
- export * from './components/SelectInputInset/SelectInputInset';
41
- export * from './components/SelectInputNative/SelectInputNative';
42
- export * from './components/Sidebar/Sidebar';
43
- export * from './components/Spinner/Spinner';
44
- export * from './components/Switch/Switch';
45
- export * from './components/Table/Table';
46
- export * from './components/TextareaInput/TextareaInput';
47
- export * from './components/TextareaInputInset/TextareaInputInset';
48
- export * from './components/TextInput/TextInput';
49
- export * from './components/TextInputInset/TextInputInset';
50
- export * from './components/ThemeProvider/ThemeProvider';
51
- export * from './components/TimePicker/TimePicker';
52
- export * from './components/TimePickerNative/TimePickerNative';
53
- export * from './components/Toast';
54
- export * from './components/Toggle/Toggle';
55
- export * from './components/ToggleGroup/ToggleGroup';
56
- export * from './components/Tooltip/Tooltip';
57
- export * from './hooks';
1
+ import * as React from 'react';
2
+ import React__default, { ReactNode, Key, MouseEvent, KeyboardEvent, CSSProperties, FC, ButtonHTMLAttributes, RefObject, ChangeEvent, FocusEvent, HTMLProps, ForwardRefExoticComponent, InputHTMLAttributes, useEffect, AnchorHTMLAttributes } from 'react';
3
+ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
4
+ import { BorderRadiusSize as BorderRadiusSize$1, BreakpointSize, SpacingSize, WidthSize, HeightSize, BackgroundColor, BorderColor, BorderSize, FontColor, FontFamily, FontSize, FontWeight, BoxShadowSize, TextTransform, TextWrap, ZIndexSize, IconName, HeadingSize, ColorName, BaseColor, LineHeightSize } from '@hyphen/hyphen-design-tokens/build/types';
5
+ export { BackgroundColor, BaseColor, BorderColor, BorderSize, BoxShadowSize, BreakpointSize, ColorName, FontColor, FontFamily, FontSize, FontWeight, HeadingSize, HeightSize, IconName, LineHeightSize, SpacingSize, TextDecorationLine, TextDecorationStyle, TextTransform, TextWrap, WhiteSpace, WidthSize, WordBreak, ZIndexSize } from '@hyphen/hyphen-design-tokens/build/types';
6
+ import * as CSS from 'csstype';
7
+ import { DayPickerProps } from 'react-day-picker';
8
+ export { Matcher } from 'react-day-picker';
9
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
10
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
11
+ import { FieldAttributes, FormikTouched, FormikValues, FormikErrors } from 'formik';
12
+ import { OnChangeValue, OptionsOrGroups } from 'react-select';
13
+ import { GroupBase } from 'react-select/dist/declarations/src/types';
14
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
15
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
16
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
17
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
18
+
19
+ type BreakpointSizeWithBase = BreakpointSize | 'base';
20
+ type Breakpoint = {
21
+ name: BreakpointSizeWithBase;
22
+ minWidth: number;
23
+ };
24
+ type DimensionSize = WidthSize | HeightSize;
25
+ type UnknownPropertiesObjType = {
26
+ [key: string]: any;
27
+ };
28
+ interface FlexProperty {
29
+ flexGrow?: number | string;
30
+ flexShrink?: number | string;
31
+ flexBasis?: number | string;
32
+ flex?: number | string;
33
+ }
34
+ type StylesAndClasses<T> = {
35
+ styles?: T;
36
+ classes?: string[];
37
+ };
38
+ type CssDimensionAbbreviation = 'h' | 'w' | 'mw' | 'mh' | 'minw' | 'minh';
39
+ type CssDimensionUnit = 'px' | 'rem' | 'em' | '%';
40
+ type CssDimensionValue = `${number}${CssDimensionUnit}`;
41
+ type CssSpacingAbbreviation = 'm' | 'p';
42
+ type CssJustifyContentValue = 'space-around' | 'space-between' | 'center' | 'flex-end' | 'space-evenly' | 'flex-start' | 'stretch';
43
+ type CssAlignContentValue = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around';
44
+ type CssFlexDirectionValue = 'column' | 'column-reverse' | 'row' | 'row-reverse' | undefined;
45
+ type CssAlignItemsValue = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
46
+ type CssFlexValue = 'auto' | 'initial' | 'none' | 'inherit' | 'unset';
47
+ type CssOverflowValue = 'visible' | 'hidden' | 'clip' | 'auto' | 'scroll' | 'inherit' | 'initial' | 'unset';
48
+ type CssDisplayValue = 'none' | 'flex' | 'inline-flex' | 'block' | 'inline-block' | 'inline' | 'inherit' | 'grid' | 'table-cell' | 'contents';
49
+ type CssWhiteSpaceValue = 'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line';
50
+ type CssWordBreakValue = 'normal' | 'all' | 'keep';
51
+ type CssTextAlignValue = 'left' | 'center' | 'right';
52
+ type BaseSpacing = SpacingSize | string | undefined;
53
+ type BorderRadiusSize = BorderRadiusSize$1 | string | undefined;
54
+ declare type ResponsiveProp<T> = {
55
+ [breakpoint in BreakpointSizeWithBase]?: T;
56
+ };
57
+ type Row = UnknownPropertiesObjType;
58
+ type Cell = string | number | {
59
+ [key: string]: unknown;
60
+ } | unknown[];
61
+ declare type Column = {
62
+ /**
63
+ * Text alignment for column cells (including header alignment). Cells will default to left if not defined.
64
+ */
65
+ align?: 'left' | 'right' | 'center';
66
+ /**
67
+ * CSS Class to be applied uniformly to all individual cells in a column.
68
+ */
69
+ cellClassName?: string | ((cell?: Cell, row?: Row, rowIndex?: number) => string);
70
+ /**
71
+ * The key value to be rendered based on the table `rows`.
72
+ */
73
+ dataKey?: string;
74
+ /**
75
+ * Placeholder for empty cells Applies only to the cells of the particular column with this prop.
76
+ */
77
+ emptyCellPlaceholder?: string | number | undefined;
78
+ /**
79
+ * The heading/title of a column.
80
+ */
81
+ heading?: ReactNode;
82
+ /**
83
+ * CSS Class to be applied to the column header cell.
84
+ */
85
+ headerClassName?: string;
86
+ /**
87
+ * A custom key to be used when rendering the column array.
88
+ * Not required as our table auto-generates static, but unique column keys if not passed in.
89
+ */
90
+ key?: Key;
91
+ /**
92
+ * Whether the column data is sortable. Controls whether sorting controls should be displayed.
93
+ */
94
+ isSortable?: boolean;
95
+ /**
96
+ * Render method for column cell data. Provides ability to render any aspect of the cell/row with custom
97
+ * markup.
98
+ */
99
+ render?: (cell?: Cell, row?: Row, rowIndex?: number) => ReactNode;
100
+ /**
101
+ * Whether the column is stuck to the left or right.
102
+ */
103
+ sticky?: 'left' | 'right';
104
+ /**
105
+ * Whether long text should be truncated based on column width. Use in tandem with column width as well as
106
+ * `useFixedWidthColumns` prop in the parent table.
107
+ */
108
+ truncateOverflow?: boolean;
109
+ /**
110
+ * Specific width of the column. Use in tandem with `useFixedWidthColumns` in the parent table.
111
+ */
112
+ width?: number;
113
+ };
114
+ type EventWithColumnKey = (MouseEvent<HTMLTableHeaderCellElement> | KeyboardEvent<HTMLTableHeaderCellElement>) & {
115
+ sortedKey: Key | undefined;
116
+ };
117
+ type ValueFunction<TValue, TArg> = (arg: TArg) => TValue;
118
+ type ValueOrFunction<TValue, TArg> = TValue | ValueFunction<TValue, TArg>;
119
+
120
+ type AlertVariant = 'info' | 'success' | 'warning' | 'danger' | 'default';
121
+
122
+ interface AlertProps {
123
+ /**
124
+ * Custom class to apply to the alert.
125
+ */
126
+ className?: string;
127
+ /**
128
+ * Whether the alert as an icon that corresponds to its variant (Success, warning, etc.).
129
+ */
130
+ hasIcon?: boolean;
131
+ /**
132
+ * Renders a version of the alert with smaller padding.
133
+ */
134
+ isCompact?: boolean;
135
+ /**
136
+ * @deprecated Use children instead. The text message or ReactNode to be rendered in the alert.
137
+ */
138
+ message?: string | ReactNode;
139
+ /**
140
+ * Whether the alert can be closed by the user. If `true` it will render
141
+ * the 'close' icon on the right hand side of the alert.
142
+ */
143
+ onClose?: (event: MouseEvent<HTMLOrSVGElement> | KeyboardEvent<HTMLSpanElement>) => void;
144
+ /**
145
+ * A render function that returns JSX if preferred over a static ReactNode or string.
146
+ */
147
+ render?: () => ReactNode;
148
+ /**
149
+ * The title for the alert.
150
+ */
151
+ title?: string;
152
+ /**
153
+ * The type/color of the alert to show.
154
+ */
155
+ variant?: AlertVariant;
156
+ /**
157
+ * Additional props to be spread to rendered element
158
+ */
159
+ [x: string]: any;
160
+ }
161
+ declare const Alert: React__default.NamedExoticComponent<AlertProps>;
162
+
163
+ declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
164
+
165
+ type KnownKeys<T> = keyof {
166
+ [K in keyof T as string extends K ? never : K]: K;
167
+ };
168
+
169
+ type HoverableBoxProperties = 'color' | 'borderColor' | 'shadow' | 'background';
170
+ interface BoxProps {
171
+ /**
172
+ * The element type to be rendered.
173
+ */
174
+ as?: string;
175
+ /**
176
+ * How to align the contents along the cross axis.
177
+ */
178
+ alignItems?: CssAlignItemsValue | ResponsiveProp<CssAlignItemsValue>;
179
+ /**
180
+ * How to align the contents when there is extra space in the cross axis.
181
+ * This property has no effect when there is only one line of flex items.
182
+ */
183
+ alignContent?: CssAlignContentValue | ResponsiveProp<CssAlignContentValue>;
184
+ /**
185
+ * How to align along the cross axis when contained in a Box.
186
+ * This allows the default alignment (or the one specified by `align`) to be overridden for the individual Box.
187
+ */
188
+ alignSelf?: CssAlignItemsValue | ResponsiveProp<CssAlignItemsValue>;
189
+ /**
190
+ * Any valid background color token, or a `url()` for an image
191
+ */
192
+ background?: BackgroundColor;
193
+ /**
194
+ * Any valid border color token
195
+ */
196
+ borderColor?: BorderColor;
197
+ /**
198
+ * Width of the Box's border
199
+ * Can be a single [border width token](/?path=/docs/foundation-design-tokens--docs#border-width).
200
+ * Can also be a string of [border width tokens](/?path=/docs/foundation-design-tokens--docs#border-width)
201
+ * that models itself after the css shorthand property,
202
+ * where you can set the border width on all four sides of an element.
203
+ * e.g: "0 sm xs 0" --> top: 0, right: sm, bottom: xs, left: 0;
204
+ */
205
+ borderWidth?: BorderSize | string | ResponsiveProp<BorderSize | string>;
206
+ /**
207
+ * Additional class names to add
208
+ */
209
+ className?: string;
210
+ /**
211
+ * The amount of spacing (implemented as margin) between child elements.
212
+ * Can be a single [spacing value](/?path=/docs/foundation-design-tokens--docs#spacing).
213
+ * NOTE: this prop is incompatible with reverse flex direction values (row-reverse, column-reverse).
214
+ * For grid and flex layouts, use 'gap' instead.
215
+ */
216
+ childGap?: SpacingSize | ResponsiveProp<SpacingSize>;
217
+ /**
218
+ * The box's contents
219
+ */
220
+ children?: ReactNode;
221
+ /**
222
+ * A color token identifier to use for the text color.
223
+ */
224
+ color?: FontColor;
225
+ /**
226
+ * Sets the gaps (gutters) between columns.
227
+ */
228
+ columnGap?: BaseSpacing | ResponsiveProp<BaseSpacing>;
229
+ /**
230
+ * Cursor style. Use any standard CSS value.
231
+ */
232
+ cursor?: CSS.Property.Cursor;
233
+ /**
234
+ * Sets how flex items are placed inside the Box, defining the main axis and the direction
235
+ * NOTE: reverse directions are incompatible with the `childGap` prop.
236
+ */
237
+ direction?: CssFlexDirectionValue | ResponsiveProp<CssFlexDirectionValue>;
238
+ /**
239
+ * Display property. Only select values supported.
240
+ */
241
+ display?: CssDisplayValue | ResponsiveProp<CssDisplayValue>;
242
+ /**
243
+ * Can be used as shorthand for the flexbox css properties `flex-grow`, `flex-shrink`, `flex-basis`
244
+ */
245
+ flex?: CssFlexValue | ResponsiveProp<CssFlexValue>;
246
+ /**
247
+ * Pass style modifiers for focus states. The following properties can be modified on focus.
248
+ * `* background`
249
+ * `* borderColor`
250
+ * `* borderWidth`
251
+ * `* color`
252
+ * `* shadow`
253
+ */
254
+ focus?: {
255
+ background?: BoxProps['background'];
256
+ borderColor?: BoxProps['borderColor'];
257
+ borderWidth?: BoxProps['borderWidth'];
258
+ color?: BoxProps['color'];
259
+ shadow?: BoxProps['shadow'];
260
+ };
261
+ /**
262
+ * The [font family token](/?path=/docs/foundation-design-tokens--docs#font-family) identifier for the Box's text
263
+ */
264
+ fontFamily?: FontFamily | ResponsiveProp<FontFamily>;
265
+ /**
266
+ * The [font size token](/?path=/docs/foundation-design-tokens--docs#font-size) identifier for the Box's text
267
+ */
268
+ fontSize?: FontSize | ResponsiveProp<FontSize>;
269
+ /**
270
+ * The [font weight token](/?path=/docs/design-tokens-design-tokens--page#font-weight) identifier for the Box's text
271
+ */
272
+ fontWeight?: FontWeight | ResponsiveProp<FontWeight>;
273
+ /**
274
+ * The height of the element. Can be given a standard css value (px, rem, em, %),
275
+ * or a [height token](/?path=/docs/foundation-design-tokens--docs#height)
276
+ */
277
+ height?: DimensionSize | ResponsiveProp<DimensionSize> | string;
278
+ /**
279
+ * Pass style modifiers for hover states. The following properties can be modified on hover:
280
+ * `* background`
281
+ * `* borderColor`
282
+ * `* borderWidth`
283
+ * `* color`
284
+ * `* fontSize`
285
+ * `* shadow`
286
+ */
287
+ hover?: {
288
+ background?: BoxProps['background'];
289
+ borderColor?: BoxProps['borderColor'];
290
+ borderWidth?: BoxProps['borderWidth'];
291
+ color?: BoxProps['color'];
292
+ fontSize?: BoxProps['fontSize'];
293
+ shadow?: BoxProps['shadow'];
294
+ };
295
+ /**
296
+ * Sets the gaps (gutters) between rows and columns.
297
+ */
298
+ gap?: BaseSpacing | ResponsiveProp<BaseSpacing>;
299
+ /**
300
+ * How space between and around content items is distributed along the main-axis a flex Box
301
+ */
302
+ justifyContent?: CssJustifyContentValue | ResponsiveProp<CssJustifyContentValue>;
303
+ /**
304
+ * Amount of space around the element.
305
+ * Can be a single [spacing value](/?path=/docs/foundation-design-tokens--docs#spacing).
306
+ * Can also be a string of [spacing value](/?path=/docs/foundation-design-tokens--docs#spacing)
307
+ * that models itself after the css shorthand property,
308
+ * where you can set the margin area on all four sides of an element. It is shorthand for top, right, bottom, left.
309
+ */
310
+ margin?: BaseSpacing | ResponsiveProp<BaseSpacing>;
311
+ /**
312
+ * The maximum height of the element. Can be given a standard css value (px, rem, em, %),
313
+ * or a [height token](/?path=/docs/foundation-design-tokens--docs#height)
314
+ */
315
+ maxHeight?: DimensionSize | ResponsiveProp<DimensionSize> | string;
316
+ /**
317
+ * The minimum height of the element. Can be given a standard css value (px, rem, em, %),
318
+ * or a [height token](/?path=/docs/foundation-design-tokens--docs#height)
319
+ */
320
+ minHeight?: DimensionSize | ResponsiveProp<DimensionSize> | string;
321
+ /**
322
+ * The maximum width of the element. Can be given a standard css value (px, rem, em, %),
323
+ * or a [width token](/?path=/docs/foundation-design-tokens--docs#width)
324
+ */
325
+ maxWidth?: DimensionSize | ResponsiveProp<DimensionSize> | string;
326
+ /**
327
+ * The minimum width of the element. Can be given a standard css value (px, rem, em, %),
328
+ * or a [width token](/?path=/docs/foundation-design-tokens--docs#width)
329
+ */
330
+ minWidth?: DimensionSize | ResponsiveProp<DimensionSize> | string;
331
+ /**
332
+ * The css overflow behavior of the Box
333
+ */
334
+ overflow?: CssOverflowValue | ResponsiveProp<CssOverflowValue>;
335
+ /**
336
+ * Amount of space within the element around the Box contents.
337
+ * Can be a single [spacing value](/?path=/docs/foundation-design-tokens--docs#spacing).
338
+ * Can also be a string of [spacing value](/?path=/docs/foundation-design-tokens--docs#spacing)
339
+ * that models itself after the css shorthand property,
340
+ * where you can set the margin area on all four sides of an element. It is shorthand for top, right, bottom, left.
341
+ */
342
+ padding?: BaseSpacing | ResponsiveProp<BaseSpacing>;
343
+ /**
344
+ * CSS position property.
345
+ */
346
+ position?: CSS.Property.Position | ResponsiveProp<CSS.Property.Position>;
347
+ /**
348
+ * Set the radius of all corners
349
+ */
350
+ radius?: BorderRadiusSize | ResponsiveProp<BorderRadiusSize>;
351
+ /**
352
+ * Sets the gaps (gutters) between rows.
353
+ */
354
+ rowGap?: BaseSpacing | ResponsiveProp<BaseSpacing>;
355
+ /**
356
+ * The size of the drop shadow applied to the Box
357
+ */
358
+ shadow?: BoxShadowSize | ResponsiveProp<BoxShadowSize>;
359
+ /**
360
+ * CSS Style object
361
+ */
362
+ style?: CSSProperties;
363
+ /**
364
+ * the alignment of the text
365
+ */
366
+ textAlign?: CssTextAlignValue | ResponsiveProp<CssTextAlignValue>;
367
+ /**
368
+ * Control the text transformation of the Box
369
+ */
370
+ textTransform?: TextTransform | ResponsiveProp<TextTransform>;
371
+ /**
372
+ * Control the text wrapping behavior of the Box
373
+ */
374
+ textWrap?: TextWrap | ResponsiveProp<TextWrap>;
375
+ /**
376
+ * Control the whitespace behavior of the Box
377
+ */
378
+ whiteSpace?: CssWhiteSpaceValue | ResponsiveProp<CssWhiteSpaceValue>;
379
+ /**
380
+ * Control the word break behavior of the Box
381
+ */
382
+ wordBreak?: CssWordBreakValue | ResponsiveProp<CssWordBreakValue>;
383
+ /**
384
+ * By default, a Box's items will all try to fit onto one line.
385
+ * Change that and allow the items to wrap as needed wrap
386
+ */
387
+ wrap?: boolean | ResponsiveProp<boolean>;
388
+ /**
389
+ * The width of the element. Can be given a standard css value (px, rem, em, %),
390
+ * or a [width token](/?path=/docs/foundation-design-tokens--docs#width)
391
+ */
392
+ width?: DimensionSize | ResponsiveProp<DimensionSize> | string;
393
+ /**
394
+ * Control the word break behavior of the Box
395
+ */
396
+ /**
397
+ * ZIndex value for the element. Can be one of the predetermined token values.
398
+ * Can be responsive.
399
+ */
400
+ zIndex?: ZIndexSize | ResponsiveProp<ZIndexSize>;
401
+ /**
402
+ * Additional props to be spread to rendered element
403
+ */
404
+ [x: string]: any;
405
+ }
406
+ /**
407
+ * A `<Box>` is a layout component to build UIs with consistent padding and spacing between
408
+ * elements.
409
+ */
410
+ declare const Box: FC<BoxProps>;
411
+ declare const boxPropsKeys: (keyof Pick<BoxProps, KnownKeys<BoxProps>>)[];
412
+
413
+ type BadgeSize = 'sm' | 'md' | 'lg';
414
+ type BadgeVariant = 'light-grey' | 'dark-grey' | 'inverse' | 'green' | 'yellow' | 'blue' | 'red' | 'purple' | 'orange' | 'hyphen';
415
+ interface BadgeProps extends BoxProps {
416
+ /**
417
+ * @deprecated Use children instead. The text message or ReactNode to be rendered in the badge.
418
+ */
419
+ message?: string | ReactNode;
420
+ /**
421
+ * The size of the badge.
422
+ */
423
+ size?: BadgeSize | ResponsiveProp<BadgeSize>;
424
+ /**
425
+ * The type/color of the badge to show.
426
+ */
427
+ variant?: BadgeVariant;
428
+ }
429
+ declare const Badge: React__default.ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
430
+
431
+ type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'danger' | 'link';
432
+ type ButtonSize = 'sm' | 'md' | 'lg';
433
+ interface BaseButtonProps {
434
+ /**
435
+ * The button element to render as. Useful for when you want to render a Link that looks like a button.
436
+ */
437
+ asChild?: boolean;
438
+ /**
439
+ * Additional ClassNames to add to button.
440
+ */
441
+ className?: string;
442
+ /**
443
+ * Button takes up the full width of its parent container.
444
+ */
445
+ fullWidth?: boolean;
446
+ /**
447
+ * Icon displayed before the button label
448
+ */
449
+ iconPrefix?: IconName;
450
+ /**
451
+ * Icon displayed after the button label
452
+ */
453
+ iconSuffix?: IconName;
454
+ /**
455
+ * Disables the button
456
+ */
457
+ isDisabled?: boolean;
458
+ /**
459
+ * Displays a loading spinner and disables the button
460
+ */
461
+ isLoading?: boolean;
462
+ /**
463
+ * Size of the drop shadow applied to the Box
464
+ */
465
+ shadow?: BoxShadowSize | ResponsiveProp<BoxShadowSize>;
466
+ /**
467
+ * Size of the button.
468
+ */
469
+ size?: ButtonSize | ResponsiveProp<ButtonSize>;
470
+ /**
471
+ * The type of button
472
+ *
473
+ */
474
+ type?: 'button' | 'submit' | 'reset';
475
+ /**
476
+ * Visual variant of the button
477
+ */
478
+ variant?: ButtonVariant;
479
+ }
480
+ type ButtonProps = BaseButtonProps & ButtonHTMLAttributes<HTMLButtonElement>;
481
+ declare const Button: React__default.ForwardRefExoticComponent<BaseButtonProps & React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>>;
482
+
483
+ type CalendarProps = DayPickerProps;
484
+ declare function Calendar({ captionLayout, className, ...props }: CalendarProps): React__default.JSX.Element;
485
+
486
+ interface CardFooterProps extends BoxProps {
487
+ /**
488
+ * Contents of the Footer.
489
+ */
490
+ children?: ReactNode;
491
+ /**
492
+ * Additional props to be spread to rendered element
493
+ */
494
+ [x: string]: any;
495
+ }
496
+ declare const CardFooter: FC<CardFooterProps>;
497
+
498
+ interface CardHeaderProps extends BoxProps {
499
+ /**
500
+ * The title of the card
501
+ */
502
+ title?: ReactNode;
503
+ /**
504
+ * Description of the card, or element below the title
505
+ */
506
+ description?: ReactNode;
507
+ }
508
+ declare const CardHeader: FC<CardHeaderProps>;
509
+
510
+ interface CardSectionProps extends BoxProps {
511
+ /**
512
+ * Any valid background color token, or a `url()` for an image
513
+ */
514
+ background?: BoxProps['background'];
515
+ /**
516
+ * If defined as a prop, this value will take higher precedence than the corresponding component design token value
517
+ * Any valid border color token
518
+ * Or a responsive prop with borderColor for each breakpoint.
519
+ */
520
+ borderColor?: BoxProps['borderColor'];
521
+ /**
522
+ * If defined as a prop, this value will take higher precedence than the corresponding component design token value
523
+ * Width of the section's border
524
+ * Can be a single [border width token](/?path=/docs/foundation-design-tokens--docs#border-width).
525
+ * Can also be a string of [border width tokens](/?path=/docs/foundation-design-tokens--docs#border-width)
526
+ * that models itself after the css shorthand property,
527
+ * where you can set the border width on all four sides of an element.
528
+ * e.g: "0 sm xs 0" --> top: 0, right: sm, bottom: xs, left: 0;
529
+ */
530
+ borderWidth?: BoxProps['borderWidth'];
531
+ /**
532
+ * Contents of the Section.
533
+ */
534
+ children?: ReactNode;
535
+ /**
536
+ * Custom class to be applied to section container.
537
+ */
538
+ className?: string;
539
+ /**
540
+ * Visually subdued the appearance of the section.
541
+ */
542
+ subdued?: boolean;
543
+ /**
544
+ * Title for the section.
545
+ */
546
+ title?: ReactNode;
547
+ /**
548
+ * Additional props to be spread to rendered element
549
+ */
550
+ [x: string]: any;
551
+ }
552
+ declare const CardSection: FC<CardSectionProps>;
553
+
554
+ interface CardProps extends BoxProps {
555
+ /**
556
+ * The Card's contents.
557
+ */
558
+ children?: ReactNode;
559
+ }
560
+ declare const CardBaseComponent: React__default.FC<CardProps>;
561
+ interface CardStatic {
562
+ Header: typeof CardHeader;
563
+ Section: typeof CardSection;
564
+ Footer: typeof CardFooter;
565
+ }
566
+ type CardWithStaticComponents = typeof CardBaseComponent & CardStatic;
567
+ declare const Card: CardWithStaticComponents;
568
+
569
+ type BaseSize$1 = 'sm' | 'md' | 'lg';
570
+ type CheckboxSize = BaseSize$1 | ResponsiveProp<BaseSize$1>;
571
+ interface CheckboxProps extends Omit<BoxProps, 'radius' | 'background' | 'as' | 'height'> {
572
+ /**
573
+ * The id attribute of the input.
574
+ */
575
+ id: string;
576
+ /**
577
+ * The checkbox input "checked" attribute.
578
+ */
579
+ isChecked: boolean;
580
+ /**
581
+ * Custom content to be displayed to right of checkbox.
582
+ */
583
+ label: string;
584
+ /**
585
+ * Callback function when input is changed.
586
+ */
587
+ onChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
588
+ /**
589
+ * Custom class to apply to the checkbox container.
590
+ */
591
+ className?: string;
592
+ /**
593
+ * Mark the input field as invalid and display a validation message.
594
+ * Pass a string or node to render a validation message below the input.
595
+ */
596
+ error?: React__default.ReactNode;
597
+ /**
598
+ * id of the element that labels the Checkbox
599
+ */
600
+ labelledby?: string;
601
+ /**
602
+ * If the input should be disabled and not focusable.
603
+ */
604
+ isDisabled?: boolean;
605
+ /**
606
+ * If the radio input should be hidden to make way for a custom checkbox.
607
+ */
608
+ isHidden?: boolean;
609
+ /**
610
+ * Whether the checkbox is rendered in an indeterminate state.
611
+ * NOTE: this change is only visual and it does not affect the checked or unchecked state of the checkbox.
612
+ */
613
+ isIndeterminate?: boolean;
614
+ /**
615
+ * The required and aria-required attributes on the input
616
+ */
617
+ isRequired?: boolean;
618
+ /**
619
+ * Callback function when input is blurred.
620
+ */
621
+ onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
622
+ /**
623
+ * Callback function when input is focused.
624
+ */
625
+ onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
626
+ /**
627
+ * The size of the checkbox.
628
+ */
629
+ size?: CheckboxSize;
630
+ /**
631
+ * Value of the checkbox input element
632
+ */
633
+ value?: string | number;
634
+ }
635
+ declare const Checkbox: React__default.FC<CheckboxProps>;
636
+
637
+ interface CheckboxInputProps {
638
+ /**
639
+ * The id attribute of the input.
640
+ */
641
+ id: string;
642
+ /**
643
+ * The checkbox input "checked" attribute.
644
+ */
645
+ isChecked: boolean;
646
+ /**
647
+ * Custom content to be displayed to right of checkbox.
648
+ */
649
+ label: string;
650
+ /**
651
+ * Callback function when input is changed.
652
+ */
653
+ onChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
654
+ /**
655
+ * Additional classes to add.
656
+ */
657
+ className?: string;
658
+ /**
659
+ * Mark the input field as invalid and display a validation message.
660
+ * Pass a string or node to render a validation message below the input.
661
+ */
662
+ error?: React__default.ReactNode;
663
+ /**
664
+ * Additional clarifying text to help describe the input
665
+ */
666
+ helpText?: React__default.ReactNode;
667
+ /**
668
+ * Determines if the label is not shown for stylistic reasons.
669
+ * Note the label is still a required prop and will be used as the aria-label for accessibility reasons.
670
+ */
671
+ hideLabel?: boolean;
672
+ /**
673
+ * If the input should be disabled and not focusable.
674
+ */
675
+ isDisabled?: boolean;
676
+ /**
677
+ * Whether the checkbox is rendered in an indeterminate state.
678
+ * NOTE: this change is only visual and it does not affect the checked or unchecked state of the checkbox.
679
+ */
680
+ isIndeterminate?: CheckboxProps['isIndeterminate'];
681
+ /**
682
+ * The required and aria-required attributes on the input
683
+ */
684
+ isRequired?: boolean;
685
+ /**
686
+ * Callback function when input is blurred.
687
+ */
688
+ onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
689
+ /**
690
+ * Callback function when input is focused.
691
+ */
692
+ onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
693
+ /**
694
+ * Visual indicator that the field is required, that gets appended to the label
695
+ */
696
+ requiredIndicator?: React__default.ReactNode;
697
+ /**
698
+ * The size of the checkbox.
699
+ */
700
+ size?: CheckboxSize;
701
+ /**
702
+ * Additional props to be spread to rendered element
703
+ */
704
+ [x: string]: any;
705
+ }
706
+ declare const CheckboxInput: React__default.FC<CheckboxInputProps>;
707
+
708
+ declare const Collapsible: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
709
+ declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
710
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
711
+
712
+ interface DetailsSummaryProps extends BoxProps {
713
+ isDetailsOpen: boolean;
714
+ onToggle?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
715
+ }
716
+ declare const DetailsSummary: React__default.FC<DetailsSummaryProps>;
717
+
718
+ interface DetailsProps extends BoxProps {
719
+ /**
720
+ * Whether the details below the summary are opened. Directly corresponds to `open` property in <details> element.
721
+ */
722
+ isOpen: boolean;
723
+ }
724
+ declare const DetailsBaseComponent: React__default.FC<DetailsProps>;
725
+ interface DetailsStatic {
726
+ Summary: typeof DetailsSummary;
727
+ }
728
+ type DetailsWithStaticComponents = typeof DetailsBaseComponent & DetailsStatic;
729
+ declare const Details: DetailsWithStaticComponents;
730
+
731
+ interface DrawerContextProps {
732
+ open: boolean;
733
+ setOpen: (open: boolean) => void;
734
+ toggleDrawer: () => void;
735
+ }
736
+ declare function useDrawer(): DrawerContextProps;
737
+ interface DrawerProviderProps extends React__default.ComponentProps<'div'> {
738
+ defaultIsOpen?: boolean;
739
+ open?: boolean;
740
+ onOpenChange?: (open: boolean) => void;
741
+ }
742
+ declare const DrawerProvider: React__default.ForwardRefExoticComponent<Omit<DrawerProviderProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
743
+ declare const DrawerTrigger: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
744
+ asChild?: boolean;
745
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
746
+ type DrawerPlacementType = 'left' | 'right' | 'top' | 'bottom';
747
+ interface DrawerProps {
748
+ /**
749
+ * If the drawer is open (controlled mode)
750
+ */
751
+ isOpen?: boolean;
752
+ /**
753
+ * If the drawer starts open (uncontrolled mode)
754
+ */
755
+ defaultIsOpen?: boolean;
756
+ /**
757
+ * Handle zoom/pinch gestures on iOS devices when scroll locking is enabled.
758
+ */
759
+ allowPinchZoom?: boolean;
760
+ /**
761
+ * A drawer needs to be properly labeled to provide context for users with
762
+ * assistive technology such as screen readers. If a drawer is announced to
763
+ * the user without a label, it can be confusing and difficult to navigate.
764
+ */
765
+ ariaLabel?: string;
766
+ /**
767
+ * The id of the element that should be used as the drawer's label by assistive technologies like screen readers.
768
+ */
769
+ ariaLabelledBy?: string;
770
+ /**
771
+ * Contents of the dialog.
772
+ */
773
+ children?: React__default.ReactNode;
774
+ /**
775
+ * Additional class names to add to the drawer content.
776
+ */
777
+ className?: string;
778
+ /**
779
+ * If true, the drawer will close when the overlay is clicked
780
+ */
781
+ closeOnOverlayClick?: boolean;
782
+ /**
783
+ * The ref of the container where the drawer will be inserted into the DOM.
784
+ * By default, drawers are inserted in the document.body, but if need be they can
785
+ * be scoped as necessary.
786
+ */
787
+ containerRef?: React__default.RefObject<Node>;
788
+ /**
789
+ * By default, focus is trapped within the drawer.
790
+ * If true, focus will not be trapped within the contents of the drawer.
791
+ */
792
+ dangerouslyBypassFocusLock?: boolean;
793
+ /**
794
+ * By default, the drawer locks scrolling on the body, but in some cases you may want to allow for scrolling.
795
+ * If true, this will allow the body to scroll while the drawer is open.
796
+ */
797
+ dangerouslyBypassScrollLock?: boolean;
798
+ /**
799
+ * If true, the overlay will not be rendered, scrolling for the entire page will remain enabled,
800
+ * and focus will not be locked to the contents of the drawer
801
+ */
802
+ hideOverlay?: boolean;
803
+ /**
804
+ * By default the first focusable element will receive focus when the dialog
805
+ * opens but you can provide a ref to focus instead.
806
+ *
807
+ * @see Docs https://reach.tech/dialog#dialog-initialfocusref
808
+ */
809
+ initialFocusRef?: RefObject<HTMLDivElement>;
810
+ /**
811
+ * Which edge of the viewport should the drawer appear from
812
+ */
813
+ placement?: DrawerPlacementType;
814
+ /**
815
+ * Function that is called whenever the user either hits
816
+ * the "Escape" key, clicks the close button icon, or clicks the overlay.
817
+ */
818
+ onDismiss?: (event?: React__default.SyntheticEvent) => void;
819
+ /**
820
+ * The width of the Drawer when opened. Can be given a standard css value (px, rem, em, %),
821
+ * or a [width token](/?path=/story/design-tokens-design-tokens--page#width)
822
+ */
823
+ width?: DimensionSize | CssDimensionValue;
824
+ }
825
+ declare const Drawer: React__default.FC<DrawerProps>;
826
+ declare const DrawerHeader: React__default.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
827
+ declare const DrawerTitle: React__default.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
828
+ declare const DrawerCloseButton: React__default.ForwardRefExoticComponent<BaseButtonProps & React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
829
+ onClose?: () => void;
830
+ } & React__default.RefAttributes<HTMLButtonElement>>;
831
+ declare const DrawerContent: React__default.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
832
+
833
+ declare const DropdownMenu: React__default.FC<DropdownMenuPrimitive.DropdownMenuProps>;
834
+ declare const DropdownMenuTrigger: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
835
+ declare const DropdownMenuGroup: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React__default.RefAttributes<HTMLDivElement>>;
836
+ declare const DropdownMenuPortal: React__default.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
837
+ declare const DropdownMenuSub: React__default.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
838
+ declare const DropdownMenuRadioGroup: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
839
+ declare const DropdownMenuItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
840
+ inset?: boolean;
841
+ } & React__default.RefAttributes<HTMLDivElement>>;
842
+ declare const DropdownMenuContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
843
+ declare const DropdownMenuLabel: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
844
+ inset?: boolean;
845
+ } & React__default.RefAttributes<HTMLDivElement>>;
846
+ declare const DropdownMenuSeparator: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
847
+ declare const DropdownMenuShortcut: {
848
+ ({ className, ...props }: React__default.HTMLAttributes<HTMLSpanElement>): React__default.JSX.Element;
849
+ displayName: string;
850
+ };
851
+ declare const DropdownMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
852
+ inset?: boolean;
853
+ } & React__default.RefAttributes<HTMLDivElement>>;
854
+ declare const DropdownMenuSubContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
855
+
856
+ interface FormControlProps extends BoxProps {
857
+ /**
858
+ * The input's id attribute. Used to programmatically tie the input with its label.
859
+ */
860
+ id: string;
861
+ /**
862
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
863
+ */
864
+ label: string;
865
+ /**
866
+ * Mark the input field as invalid and display a validation message.
867
+ * Pass a string or node to render a validation message below the input.
868
+ */
869
+ error?: ReactNode;
870
+ /**
871
+ * Visually hide the label.
872
+ */
873
+ hideLabel?: boolean;
874
+ /**
875
+ * Additional clarifying text to help describe the input
876
+ */
877
+ helpText?: ReactNode;
878
+ /**
879
+ * The input's disabled attribute
880
+ */
881
+ isDisabled?: boolean;
882
+ /**
883
+ * The required and aria-required attributes on the input
884
+ */
885
+ isRequired?: boolean;
886
+ /**
887
+ * Visual indicator that the field is required, that gets appended to the label
888
+ */
889
+ requiredIndicator?: ReactNode;
890
+ }
891
+ declare const FormControl: React__default.ForwardRefExoticComponent<Omit<FormControlProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
892
+
893
+ interface FormikCheckboxInputProps extends Omit<CheckboxInputProps, 'onChange'> {
894
+ field: FieldAttributes<HTMLInputElement>;
895
+ form: {
896
+ touched: FormikTouched<FormikValues>;
897
+ errors: FormikErrors<FormikValues>;
898
+ };
899
+ onChange?: CheckboxInputProps['onChange'];
900
+ }
901
+ declare const FormikCheckboxInput: React__default.FC<FormikCheckboxInputProps>;
902
+
903
+ type BaseSize = 'sm' | 'md' | 'lg';
904
+ type RadioSize = BaseSize | ResponsiveProp<BaseSize>;
905
+ interface RadioInputProps {
906
+ /**
907
+ * Radio input name.
908
+ */
909
+ name: string;
910
+ /**
911
+ * Callback function to call on change event.
912
+ */
913
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
914
+ /**
915
+ * Options for radio group.
916
+ */
917
+ option: {
918
+ id: string;
919
+ value: string;
920
+ label: ReactNode;
921
+ disabled?: boolean | null;
922
+ };
923
+ /**
924
+ * Additional classes to add.
925
+ */
926
+ className?: string;
927
+ /**
928
+ * If the radio group should be disabled and not focusable.
929
+ */
930
+ isDisabled?: boolean;
931
+ /**
932
+ * If the radio input should be hidden to make way for a custom radio.
933
+ */
934
+ isHidden?: boolean;
935
+ /**
936
+ * The required and aria-required attributes
937
+ */
938
+ isRequired?: boolean;
939
+ /**
940
+ * If the radio group should be disabled and not focusable.
941
+ */
942
+ isSelected?: boolean;
943
+ /**
944
+ * Callback function to call on blur event.
945
+ */
946
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
947
+ /**
948
+ * Callback function to call on focus event.
949
+ */
950
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
951
+ /**
952
+ * The size of the radio icon.
953
+ */
954
+ size: RadioSize;
955
+ }
956
+
957
+ interface RadioGroupProps {
958
+ /**
959
+ * Radio group name.
960
+ */
961
+ name: string;
962
+ /**
963
+ * Callback function to call on change event.
964
+ */
965
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
966
+ /**
967
+ * Options for radio group.
968
+ */
969
+ options: {
970
+ id: string;
971
+ value: string;
972
+ label: ReactNode;
973
+ disabled?: boolean | null;
974
+ }[];
975
+ /**
976
+ * Additional classes to add.
977
+ */
978
+ className?: string;
979
+ /**
980
+ * Description to be displayed below the title, and above the RadioGroup.
981
+ */
982
+ description?: ReactNode;
983
+ /**
984
+ * Whether the radios should be aligned in a row or in a column
985
+ */
986
+ direction?: 'row' | 'column';
987
+ /**
988
+ * Mark the radio group as invalid and display a validation message.
989
+ * Pass a string or node to render a validation message below the input.
990
+ */
991
+ error?: ReactNode;
992
+ /**
993
+ * If the radio group should be disabled and not focusable.
994
+ */
995
+ isDisabled?: boolean;
996
+ /**
997
+ * If the radio group is required or not
998
+ */
999
+ isRequired?: boolean;
1000
+ /**
1001
+ * Callback function to call on blur event.
1002
+ */
1003
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1004
+ /**
1005
+ * Callback function to call on focus event.
1006
+ */
1007
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
1008
+ /**
1009
+ * Visual indicator that the field is required, that gets appended to the label
1010
+ */
1011
+ requiredIndicator?: React__default.ReactNode;
1012
+ /**
1013
+ * Size of the radio icons in the group.
1014
+ */
1015
+ size?: RadioInputProps['size'];
1016
+ /**
1017
+ * Title to be displayed above the RadioGroup.
1018
+ */
1019
+ title?: ReactNode;
1020
+ /**
1021
+ * The value of selected radio input.
1022
+ */
1023
+ value?: string;
1024
+ /**
1025
+ * Additional props to be spread to rendered element
1026
+ */
1027
+ [x: string]: any;
1028
+ }
1029
+ declare const RadioGroup: FC<RadioGroupProps>;
1030
+
1031
+ interface FormikRadioGroupProps extends Omit<RadioGroupProps, 'onChange'> {
1032
+ field: FieldAttributes<HTMLInputElement>;
1033
+ form: {
1034
+ touched: FormikTouched<FormikValues>;
1035
+ errors: FormikErrors<FormikValues>;
1036
+ };
1037
+ onChange?: RadioGroupProps['onChange'];
1038
+ }
1039
+ declare const FormikRadioGroup: React__default.FC<FormikRadioGroupProps>;
1040
+
1041
+ type SelectOption = {
1042
+ value: string;
1043
+ label: ReactNode;
1044
+ [key: string]: unknown;
1045
+ };
1046
+ type SelectGroupOptions = GroupBase<SelectOption>;
1047
+ type SelectInputOptions = OptionsOrGroups<SelectOption, SelectGroupOptions>;
1048
+ type SimulatedEventPayloadType = {
1049
+ target: {
1050
+ name: string;
1051
+ value: OnChangeValue<SelectOption, boolean>;
1052
+ };
1053
+ };
1054
+ type TextInputSize = 'sm' | 'md' | 'lg' | ResponsiveProp<'sm' | 'md' | 'lg'>;
1055
+ interface SelectInputProps {
1056
+ /**
1057
+ * The id attribute of the input.
1058
+ */
1059
+ id: string;
1060
+ /**
1061
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
1062
+ */
1063
+ label: string;
1064
+ /**
1065
+ * Callback function to call on change event.
1066
+ */
1067
+ onChange: (event: SimulatedEventPayloadType) => void;
1068
+ /**
1069
+ * The value(s) of select.
1070
+ */
1071
+ value: any | any[];
1072
+ /**
1073
+ * Options for dropdown list.
1074
+ */
1075
+ options: SelectInputOptions | AsyncOptions;
1076
+ /**
1077
+ * Autofocus select input on render.
1078
+ */
1079
+ autoFocus?: boolean;
1080
+ /**
1081
+ * Additional classes to add.
1082
+ */
1083
+ className?: string;
1084
+ /**
1085
+ * Mark the input field as invalid and display a validation message.
1086
+ * Pass a string or node to render a validation message below the input.
1087
+ */
1088
+ error?: ReactNode;
1089
+ /**
1090
+ * Additional clarifying text to help describe the input
1091
+ */
1092
+ helpText?: ReactNode;
1093
+ /**
1094
+ * Visually hide the label.
1095
+ */
1096
+ hideLabel?: boolean;
1097
+ /**
1098
+ * Load the input asynchronously.
1099
+ */
1100
+ isAsync?: boolean;
1101
+ /**
1102
+ * If the input value is clearable programmatically.
1103
+ */
1104
+ isClearable?: boolean;
1105
+ /**
1106
+ * Include custom option in dropdown list.
1107
+ */
1108
+ isCreatable?: boolean;
1109
+ /**
1110
+ * If the input should be disabled and not focusable.
1111
+ */
1112
+ isDisabled?: boolean;
1113
+ /**
1114
+ * Is multi select enabled.
1115
+ */
1116
+ isMulti?: boolean;
1117
+ /**
1118
+ * The required and aria-required attributes on the input
1119
+ */
1120
+ isRequired?: boolean;
1121
+ /**
1122
+ * Select 'name' attribute.
1123
+ */
1124
+ name?: string;
1125
+ /**
1126
+ * A ref to portal the dropdown menu to. This is useful when the dropdown is located in a smaller container
1127
+ * and we want to avoid cutting off the menu.
1128
+ */
1129
+ menuPortalTarget?: HTMLElement;
1130
+ /**
1131
+ * Callback function to call on blur event.
1132
+ */
1133
+ onBlur?: (event: FocusEvent<HTMLElement>) => void;
1134
+ /**
1135
+ * Callback function to call on focus event.
1136
+ */
1137
+ onFocus?: (event: FocusEvent<HTMLElement>) => void;
1138
+ /**
1139
+ * Placeholder for input.
1140
+ */
1141
+ placeholder?: string;
1142
+ /**
1143
+ * Visual indicator that the field is required, that gets appended to the label
1144
+ */
1145
+ requiredIndicator?: ReactNode;
1146
+ /**
1147
+ * The size of the text input.
1148
+ */
1149
+ size?: TextInputSize;
1150
+ /**
1151
+ * Additional props to be spread. These will be applied specifically to
1152
+ * the `react-select` component that powers the select. For full docs on
1153
+ * react-select props, [Click Here](https://react-select.com/props)
1154
+ */
1155
+ [x: string]: any;
1156
+ }
1157
+ type AsyncOptions = (inputValue: string) => Promise<OptionsOrGroups<SelectOption, SelectGroupOptions>>;
1158
+ type AsyncSelectInputProps = SelectInputProps & {
1159
+ /**
1160
+ * Load the input asynchronously.
1161
+ */
1162
+ isAsync: true;
1163
+ /**
1164
+ * Load options asynchronously.
1165
+ */
1166
+ options: AsyncOptions;
1167
+ /**
1168
+ * If cacheOptions is passed, then the loaded data will be cached.
1169
+ */
1170
+ cacheOptions?: boolean;
1171
+ /**
1172
+ * The default set of options to show before the user starts searching.
1173
+ */
1174
+ defaultOptions?: boolean;
1175
+ };
1176
+ type SyncSelectInputProps = SelectInputProps & {
1177
+ /**
1178
+ * Load the input synchronously.
1179
+ */
1180
+ isAsync?: false;
1181
+ /**
1182
+ * Options for dropdown list.
1183
+ */
1184
+ options: SelectInputOptions;
1185
+ };
1186
+ declare function SelectInput(props: AsyncSelectInputProps): JSX.Element;
1187
+ declare function SelectInput(props: SyncSelectInputProps): JSX.Element;
1188
+
1189
+ interface FormikSelectInputProps extends Omit<SelectInputProps, 'onChange'> {
1190
+ field: FieldAttributes<HTMLSelectElement>;
1191
+ form: {
1192
+ touched: FormikTouched<FormikValues>;
1193
+ errors: FormikErrors<FormikValues>;
1194
+ };
1195
+ onChange?: SelectInputProps['onChange'];
1196
+ error?: string | Array<{
1197
+ label?: string;
1198
+ }>;
1199
+ }
1200
+ declare const FormikSelectInput: React__default.FC<FormikSelectInputProps>;
1201
+
1202
+ type SelectInputInsetSize = 'md' | 'lg';
1203
+ interface SelectInputInsetProps {
1204
+ /**
1205
+ * The input's id attribute. Used to programmatically tie the input with its label.
1206
+ */
1207
+ id: string;
1208
+ /**
1209
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
1210
+ */
1211
+ label: string;
1212
+ /**
1213
+ * List of options for the select input.
1214
+ */
1215
+ options: {
1216
+ value: string | number;
1217
+ label: string | number;
1218
+ }[];
1219
+ /**
1220
+ * Callback function to call on change event.
1221
+ */
1222
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
1223
+ /**
1224
+ * Value of selected option. Should match the value key in the option object.
1225
+ */
1226
+ value: string | number | null;
1227
+ /**
1228
+ * Automatically focus the input when the page is loaded.
1229
+ */
1230
+ autoFocus?: boolean;
1231
+ /**
1232
+ * Custom class to be added to standard input classes.
1233
+ */
1234
+ className?: string;
1235
+ /**
1236
+ * Mark the input field as invalid and display a validation message.
1237
+ * Pass a string or node to render a validation message below the input.
1238
+ */
1239
+ error?: ReactNode;
1240
+ /**
1241
+ * Additional clarifying text to help describe the input
1242
+ */
1243
+ helpText?: ReactNode;
1244
+ /**
1245
+ * Props passed directly to the input element of the component
1246
+ */
1247
+ inputProps?: BoxProps & HTMLProps<HTMLInputElement>;
1248
+ /**
1249
+ * The input's disabled attribute
1250
+ */
1251
+ isDisabled?: boolean;
1252
+ /**
1253
+ * The required and aria-required attributes on the input
1254
+ */
1255
+ isRequired?: boolean;
1256
+ /**
1257
+ * The input's 'name' attribute.
1258
+ */
1259
+ name?: string;
1260
+ /**
1261
+ * Callback function to call on blur event.
1262
+ */
1263
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1264
+ /**
1265
+ * Callback function to call when input us cleared. When this is passed,
1266
+ * the input will display an icon on the right side, for triggering this callback.
1267
+ */
1268
+ onClear?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
1269
+ /**
1270
+ * Callback function to call on focus event.
1271
+ */
1272
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
1273
+ /**
1274
+ * The input placeholder attribute.
1275
+ */
1276
+ placeholder?: string;
1277
+ /**
1278
+ * Visual indicator that the field is required, that gets appended to the label
1279
+ */
1280
+ requiredIndicator?: ReactNode;
1281
+ /**
1282
+ * The size of the text input.
1283
+ */
1284
+ size?: SelectInputInsetSize | ResponsiveProp<SelectInputInsetSize>;
1285
+ /**
1286
+ * Additional props to be spread to rendered element
1287
+ */
1288
+ [x: string]: any;
1289
+ }
1290
+ declare const SelectInputInset: ForwardRefExoticComponent<SelectInputInsetProps>;
1291
+
1292
+ interface FormikSelectInputInsetProps extends Omit<SelectInputInsetProps, 'onChange'> {
1293
+ field: FieldAttributes<HTMLSelectElement>;
1294
+ form: {
1295
+ touched: FormikTouched<FormikValues>;
1296
+ errors: FormikErrors<FormikValues>;
1297
+ };
1298
+ onChange?: SelectInputInsetProps['onChange'];
1299
+ }
1300
+ declare const FormikSelectInputInset: React__default.FC<FormikSelectInputInsetProps>;
1301
+
1302
+ type TextareaInputInsetSize = 'md' | 'lg';
1303
+ interface TextareaInputInsetProps {
1304
+ /**
1305
+ * The input's id attribute. Used to programmatically tie the input with its label.
1306
+ */
1307
+ id: string;
1308
+ /**
1309
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
1310
+ */
1311
+ label: string;
1312
+ /**
1313
+ * Callback function to call on change event.
1314
+ */
1315
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
1316
+ /**
1317
+ * The text value of the input. Required since our Input is a controlled component.
1318
+ */
1319
+ value: InputHTMLAttributes<HTMLInputElement>['value'];
1320
+ /**
1321
+ * Automatically focus the input when the page is loaded.
1322
+ */
1323
+ autoFocus?: boolean;
1324
+ /**
1325
+ * Custom class to be added to standard input classes.
1326
+ */
1327
+ className?: string;
1328
+ /**
1329
+ * Mark the input field as invalid and display a validation message.
1330
+ * Pass a string or node to render a validation message below the input.
1331
+ */
1332
+ error?: ReactNode;
1333
+ /**
1334
+ * Additional clarifying text to help describe the input
1335
+ */
1336
+ helpText?: ReactNode;
1337
+ /**
1338
+ * Props passed directly to the input element of the component
1339
+ */
1340
+ inputProps?: BoxProps & HTMLProps<HTMLInputElement>;
1341
+ /**
1342
+ * The input's disabled attribute
1343
+ */
1344
+ isDisabled?: boolean;
1345
+ /**
1346
+ * The required and aria-required attributes on the input
1347
+ */
1348
+ isRequired?: boolean;
1349
+ /**
1350
+ * The input's 'maxlength' attribute.
1351
+ * NOTE: initializing the input with a value longer than the desired maxlength will not trim this value.
1352
+ */
1353
+ maxLength?: number;
1354
+ /**
1355
+ * The input's 'name' attribute.
1356
+ */
1357
+ name?: string;
1358
+ /**
1359
+ * Callback function to call on blur event.
1360
+ */
1361
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1362
+ /**
1363
+ * Callback function to call on focus event.
1364
+ */
1365
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
1366
+ /**
1367
+ * The input placeholder attribute.
1368
+ */
1369
+ placeholder?: string;
1370
+ /**
1371
+ * An input helper rendered before the input field value
1372
+ */
1373
+ prefix?: ReactNode;
1374
+ /**
1375
+ * Visual indicator that the field is required, that gets appended to the label
1376
+ */
1377
+ requiredIndicator?: ReactNode;
1378
+ /**
1379
+ * Textarea resize behavior
1380
+ */
1381
+ resize?: 'vertical' | 'horizontal' | 'none' | 'both';
1382
+ /**
1383
+ * number of visible text lines for the control.
1384
+ */
1385
+ rows?: number;
1386
+ /**
1387
+ * The size of the text input.
1388
+ */
1389
+ size?: TextareaInputInsetSize | ResponsiveProp<TextareaInputInsetSize>;
1390
+ /**
1391
+ * An input helper rendered after the input field value
1392
+ */
1393
+ suffix?: ReactNode;
1394
+ /**
1395
+ * The input 'type' value. Defaults to type 'text'.
1396
+ */
1397
+ type?: InputHTMLAttributes<HTMLInputElement>['type'];
1398
+ /**
1399
+ * Additional props to be spread to rendered element
1400
+ */
1401
+ [x: string]: any;
1402
+ }
1403
+ declare const TextareaInputInset: ForwardRefExoticComponent<TextareaInputInsetProps>;
1404
+
1405
+ interface FormikTextareaInputInsetProps extends Omit<TextareaInputInsetProps, 'onChange'> {
1406
+ field: FieldAttributes<HTMLTextAreaElement>;
1407
+ form: {
1408
+ touched: FormikTouched<FormikValues>;
1409
+ errors: FormikErrors<FormikValues>;
1410
+ };
1411
+ onChange?: TextareaInputInsetProps['onChange'];
1412
+ }
1413
+ declare const FormikTextareaInputInset: FC<FormikTextareaInputInsetProps>;
1414
+
1415
+ type TextInputInsetSize = 'md' | 'lg';
1416
+ interface TextInputInsetProps {
1417
+ /**
1418
+ * The input's id attribute. Used to programmatically tie the input with its label.
1419
+ */
1420
+ id: string;
1421
+ /**
1422
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
1423
+ */
1424
+ label: string;
1425
+ /**
1426
+ * Callback function to call on change event.
1427
+ */
1428
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
1429
+ /**
1430
+ * The text value of the input. Required since our Input is a controlled component.
1431
+ */
1432
+ value: InputHTMLAttributes<HTMLInputElement>['value'];
1433
+ /**
1434
+ * Automatically focus the input when the page is loaded.
1435
+ */
1436
+ autoFocus?: boolean;
1437
+ /**
1438
+ * Custom class to be added to standard input classes.
1439
+ */
1440
+ className?: string;
1441
+ /**
1442
+ * Mark the input field as invalid and display a validation message.
1443
+ * Pass a string or node to render a validation message below the input.
1444
+ */
1445
+ error?: ReactNode;
1446
+ /**
1447
+ * Additional clarifying text to help describe the input
1448
+ */
1449
+ helpText?: ReactNode;
1450
+ /**
1451
+ * Props passed directly to the input element of the component
1452
+ */
1453
+ inputProps?: BoxProps & HTMLProps<HTMLInputElement>;
1454
+ /**
1455
+ * The input's disabled attribute
1456
+ */
1457
+ isDisabled?: boolean;
1458
+ /**
1459
+ * The required and aria-required attributes on the input
1460
+ */
1461
+ isRequired?: boolean;
1462
+ /**
1463
+ * The input's 'maxlength' attribute.
1464
+ * NOTE: initializing the input with a value longer than the desired maxlength will not trim this value.
1465
+ */
1466
+ maxLength?: number;
1467
+ /**
1468
+ * The input's 'name' attribute.
1469
+ */
1470
+ name?: string;
1471
+ /**
1472
+ * Callback function to call on blur event.
1473
+ */
1474
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1475
+ /**
1476
+ * Callback function to call when input us cleared. When this is passed,
1477
+ * the input will display an icon on the right side, for triggering this callback.
1478
+ */
1479
+ onClear?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
1480
+ /**
1481
+ * Callback function to call on focus event.
1482
+ */
1483
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
1484
+ /**
1485
+ * The input placeholder attribute.
1486
+ */
1487
+ placeholder?: string;
1488
+ /**
1489
+ * An input helper rendered before the input field value
1490
+ */
1491
+ prefix?: ReactNode;
1492
+ /**
1493
+ * Visual indicator that the field is required, that gets appended to the label
1494
+ */
1495
+ requiredIndicator?: ReactNode;
1496
+ /**
1497
+ * The size of the text input.
1498
+ */
1499
+ size?: TextInputInsetSize | ResponsiveProp<TextInputInsetSize>;
1500
+ /**
1501
+ * An input helper rendered after the input field value
1502
+ */
1503
+ suffix?: ReactNode;
1504
+ /**
1505
+ * The input 'type' value. Defaults to type 'text'.
1506
+ */
1507
+ type?: InputHTMLAttributes<HTMLInputElement>['type'];
1508
+ /**
1509
+ * Additional props to be spread to rendered element
1510
+ */
1511
+ [x: string]: any;
1512
+ }
1513
+ declare const TextInputInset: ForwardRefExoticComponent<TextInputInsetProps>;
1514
+
1515
+ interface FormikTextInputInsetProps extends Omit<TextInputInsetProps, 'onChange'> {
1516
+ field: FieldAttributes<HTMLInputElement>;
1517
+ form: {
1518
+ touched: FormikTouched<FormikValues>;
1519
+ errors: FormikErrors<FormikValues>;
1520
+ };
1521
+ onChange?: TextInputInsetProps['onChange'];
1522
+ }
1523
+ declare const FormikTextInputInset: React__default.FC<FormikTextInputInsetProps>;
1524
+
1525
+ type SelectInputNativeSize = 'sm' | 'md' | 'lg';
1526
+ interface SelectInputNativeOption {
1527
+ value: string | number;
1528
+ label: string | number;
1529
+ disabled?: boolean;
1530
+ }
1531
+ interface SelectInputNativeProps extends BoxProps, FormControlProps {
1532
+ /**
1533
+ * List of options for the select input.
1534
+ */
1535
+ options: SelectInputNativeOption[];
1536
+ /**
1537
+ * onChange callback from select element.
1538
+ */
1539
+ onChange: (event: React__default.ChangeEvent<HTMLSelectElement>) => void;
1540
+ /**
1541
+ * Value of selected option. Should match the value key in the option object.
1542
+ */
1543
+ value: string | number | null;
1544
+ /**
1545
+ * The input's 'name' attribute.
1546
+ */
1547
+ name?: string;
1548
+ /**
1549
+ * Visual indicator that the field is required, that gets appended to the label
1550
+ */
1551
+ requiredIndicator?: React__default.ReactNode;
1552
+ /**
1553
+ * Size of the input. ('sm' | 'md' | 'lg')
1554
+ */
1555
+ size?: SelectInputNativeSize | ResponsiveProp<SelectInputNativeSize>;
1556
+ /**
1557
+ * Whether the input is autofocused on initial render.
1558
+ */
1559
+ autoFocus?: HTMLSelectElement['autofocus'];
1560
+ /**
1561
+ * Additional props to be spread.
1562
+ */
1563
+ [x: string]: any;
1564
+ }
1565
+ declare const SelectInputNative: React__default.FC<SelectInputNativeProps>;
1566
+
1567
+ interface FormikSelectInputNativeProps extends Omit<SelectInputNativeProps, 'onChange'> {
1568
+ field: FieldAttributes<HTMLSelectElement>;
1569
+ form: {
1570
+ touched: FormikTouched<FormikValues>;
1571
+ errors: FormikErrors<FormikValues>;
1572
+ };
1573
+ onChange?: SelectInputNativeProps['onChange'];
1574
+ }
1575
+ declare const FormikSelectInputNative: React__default.FC<FormikSelectInputNativeProps>;
1576
+
1577
+ type TextInputSizeType = 'sm' | 'md' | 'lg';
1578
+ interface TextInputProps {
1579
+ /**
1580
+ * The input's id attribute. Used to programmatically tie the input with its label.
1581
+ */
1582
+ id: string;
1583
+ /**
1584
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
1585
+ */
1586
+ label: string;
1587
+ /**
1588
+ * Callback function to call on change event.
1589
+ */
1590
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
1591
+ /**
1592
+ * The text value of the input. Required since our Input is a controlled component.
1593
+ */
1594
+ value: InputHTMLAttributes<HTMLInputElement>['value'];
1595
+ /**
1596
+ * Automatically focus the input when the page is loaded.
1597
+ */
1598
+ autoFocus?: boolean;
1599
+ /**
1600
+ * Custom class to be added to standard input classes.
1601
+ */
1602
+ className?: string;
1603
+ /**
1604
+ * Mark the input field as invalid and display a validation message.
1605
+ * Pass a string or node to render a validation message below the input.
1606
+ */
1607
+ error?: ReactNode;
1608
+ /**
1609
+ * Visually hide the label.
1610
+ */
1611
+ hideLabel?: boolean;
1612
+ /**
1613
+ * Additional clarifying text to help describe the input
1614
+ */
1615
+ helpText?: ReactNode;
1616
+ /**
1617
+ * Props passed directly to the input element of the component
1618
+ */
1619
+ inputProps?: BoxProps & HTMLProps<HTMLInputElement>;
1620
+ /**
1621
+ * The input's disabled attribute
1622
+ */
1623
+ isDisabled?: boolean;
1624
+ /**
1625
+ * The required and aria-required attributes on the input
1626
+ */
1627
+ isRequired?: boolean;
1628
+ /**
1629
+ * The input's 'maxlength' attribute.
1630
+ * NOTE: initializing the input with a value longer than the desired maxlength will not trim this value.
1631
+ */
1632
+ maxLength?: number;
1633
+ /**
1634
+ * The input's 'name' attribute.
1635
+ */
1636
+ name?: string;
1637
+ /**
1638
+ * Callback function to call on blur event.
1639
+ */
1640
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
1641
+ /**
1642
+ * Callback function to call when input us cleared. When this is passed,
1643
+ * the input will display an icon on the right side, for triggering this callback.
1644
+ */
1645
+ onClear?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
1646
+ /**
1647
+ * Callback function to call on focus event.
1648
+ */
1649
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
1650
+ /**
1651
+ * The input placeholder attribute.
1652
+ */
1653
+ placeholder?: string;
1654
+ /**
1655
+ * An input helper rendered before the input field value
1656
+ */
1657
+ prefix?: ReactNode;
1658
+ /**
1659
+ * Visual indicator that the field is required, that gets appended to the label
1660
+ */
1661
+ requiredIndicator?: ReactNode;
1662
+ /**
1663
+ * The size of the text input.
1664
+ */
1665
+ size?: TextInputSizeType | ResponsiveProp<TextInputSizeType>;
1666
+ /**
1667
+ * An input helper rendered after the input field value
1668
+ */
1669
+ suffix?: ReactNode;
1670
+ /**
1671
+ * The input 'type' value. Defaults to type 'text'.
1672
+ */
1673
+ type?: InputHTMLAttributes<HTMLInputElement>['type'];
1674
+ /**
1675
+ * Additional props to be spread to rendered element
1676
+ */
1677
+ [x: string]: any;
1678
+ }
1679
+ declare const TextInput: ForwardRefExoticComponent<TextInputProps>;
1680
+
1681
+ interface FormikTextInputProps extends Omit<TextInputProps, 'onChange'> {
1682
+ field: FieldAttributes<HTMLInputElement>;
1683
+ form: {
1684
+ touched: FormikTouched<FormikValues>;
1685
+ errors: FormikErrors<FormikValues>;
1686
+ };
1687
+ onChange?: TextInputProps['onChange'];
1688
+ }
1689
+ declare const FormikTextInput: React__default.FC<FormikTextInputProps>;
1690
+
1691
+ type TextareaInputSize = 'sm' | 'md' | 'lg';
1692
+ interface TextareaInputProps extends Omit<BoxProps, 'as' | 'width'> {
1693
+ /**
1694
+ * The input's id attribute. Used to programmatically tie the input with its label.
1695
+ */
1696
+ id: string;
1697
+ /**
1698
+ * Custom content to be displayed above the input. If the label is hidden, will be used to set aria-label attribute.
1699
+ */
1700
+ label: string;
1701
+ /**
1702
+ * Callback function to call on change event.
1703
+ */
1704
+ onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
1705
+ /**
1706
+ * The text value of the input. Required since our Input is a controlled component.
1707
+ */
1708
+ value: string;
1709
+ /**
1710
+ * The input's 'autocomplete' attribute.
1711
+ */
1712
+ autoComplete?: boolean | string;
1713
+ /**
1714
+ * Automatically focus the input when the page is loaded.
1715
+ */
1716
+ autoFocus?: boolean;
1717
+ /**
1718
+ * Custom class to be added to standard input classes.
1719
+ */
1720
+ className?: string;
1721
+ /**
1722
+ * Mark the input field as invalid and display a validation message.
1723
+ * Pass a string or node to render a validation message below the input.
1724
+ */
1725
+ error?: ReactNode;
1726
+ /**
1727
+ * Additional clarifying text to help describe the input
1728
+ */
1729
+ helpText?: ReactNode;
1730
+ /**
1731
+ * Visually hide the label.
1732
+ */
1733
+ hideLabel?: boolean;
1734
+ /**
1735
+ * The input's disabled attribute
1736
+ */
1737
+ isDisabled?: boolean;
1738
+ /**
1739
+ * The required and aria-required attributes on the input
1740
+ */
1741
+ isRequired?: boolean;
1742
+ /**
1743
+ * The input's 'maxlength' attribute.
1744
+ * NOTE: initializing the input with a value longer than the desired maxlength will not trim this value.
1745
+ */
1746
+ maxLength?: number;
1747
+ /**
1748
+ * The input's 'name' attribute.
1749
+ */
1750
+ name?: string;
1751
+ /**
1752
+ * Callback function to call on blur event.
1753
+ */
1754
+ onBlur?: (event: FocusEvent<HTMLTextAreaElement>) => void;
1755
+ /**
1756
+ * Callback function to call on focus event.
1757
+ */
1758
+ onFocus?: (event: FocusEvent<HTMLTextAreaElement>) => void;
1759
+ /**
1760
+ * The input placeholder attribute.
1761
+ */
1762
+ placeholder?: string;
1763
+ /**
1764
+ * Visual indicator that the field is required, that gets appended to the label
1765
+ */
1766
+ requiredIndicator?: ReactNode;
1767
+ /**
1768
+ * Textarea resize behavior
1769
+ */
1770
+ resize?: 'vertical' | 'horizontal' | 'none' | 'both';
1771
+ /**
1772
+ * number of visible text lines for the control.
1773
+ */
1774
+ rows?: number;
1775
+ /**
1776
+ * The size of the text input.
1777
+ */
1778
+ size?: TextareaInputSize | ResponsiveProp<TextareaInputSize>;
1779
+ /**
1780
+ * Additional props to be spread to rendered element
1781
+ */
1782
+ [x: string]: any;
1783
+ }
1784
+ declare const TextareaInput: FC<TextareaInputProps>;
1785
+
1786
+ interface FormikTextareaInputProps extends Omit<TextareaInputProps, 'onChange'> {
1787
+ field: FieldAttributes<HTMLTextAreaElement>;
1788
+ form: {
1789
+ touched: FormikTouched<FormikValues>;
1790
+ errors: FormikErrors<FormikValues>;
1791
+ };
1792
+ onChange?: TextareaInputProps['onChange'];
1793
+ }
1794
+ declare const FormikTextareaInput: FC<FormikTextareaInputProps>;
1795
+
1796
+ type TimePickerProps = Omit<SelectInputProps, 'options'> & {
1797
+ /**
1798
+ * Options to govern the display of the option labels in the select.
1799
+ * This is a direct passthrough to the second argument of JS `toLocaleTimeString`.
1800
+ * [More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
1801
+ */
1802
+ dateDisplayOptions?: Intl.DateTimeFormatOptions;
1803
+ /**
1804
+ * End hour and minute
1805
+ */
1806
+ endTime?: {
1807
+ hour: number;
1808
+ minute: number;
1809
+ };
1810
+ /**
1811
+ * Interval of displayed times (in seconds). Defaults to 900 seconds (15 minutes).
1812
+ */
1813
+ interval?: number;
1814
+ /**
1815
+ * Locale(s) to be passed down in order to format the label values in the select.
1816
+ * This corresponds to the first argument of JS `toLocaleTimeString`.
1817
+ * [More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
1818
+ */
1819
+ locales?: string | string[];
1820
+ /**
1821
+ * Start hour and minute
1822
+ */
1823
+ startTime?: {
1824
+ hour: number;
1825
+ minute: number;
1826
+ };
1827
+ };
1828
+ declare const TimePicker: FC<TimePickerProps>;
1829
+
1830
+ interface FormikTimePickerProps extends Omit<TimePickerProps, 'onChange'> {
1831
+ field: FieldAttributes<HTMLSelectElement>;
1832
+ form: {
1833
+ touched: FormikTouched<FormikValues>;
1834
+ errors: FormikErrors<FormikValues>;
1835
+ };
1836
+ onChange?: TimePickerProps['onChange'];
1837
+ }
1838
+ declare const FormikTimePicker: FC<FormikTimePickerProps>;
1839
+
1840
+ interface TimePickerNativeProps extends Omit<SelectInputNativeProps, 'options'> {
1841
+ /**
1842
+ * Options to govern the display of the option labels in the select.
1843
+ * This is a direct passthrough to the second argument of JS `toLocaleTimeString`.
1844
+ * [More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
1845
+ */
1846
+ dateDisplayOptions?: Intl.DateTimeFormatOptions;
1847
+ /**
1848
+ * End hour and minute
1849
+ */
1850
+ endTime?: {
1851
+ hour: number;
1852
+ minute: number;
1853
+ };
1854
+ /**
1855
+ * Interval of displayed times (in seconds). Defaults to 900 seconds (15 minutes).
1856
+ */
1857
+ interval?: number;
1858
+ /**
1859
+ * Locale(s) to be passed down in order to format the label values in the select.
1860
+ * This corresponds to the first argument of JS `toLocaleTimeString`.
1861
+ * [More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
1862
+ */
1863
+ locales?: string | string[];
1864
+ /**
1865
+ * Start hour and minute
1866
+ */
1867
+ startTime?: {
1868
+ hour: number;
1869
+ minute: number;
1870
+ };
1871
+ /**
1872
+ * Should be ISO timestamp as returned by `onChange`, and matching value of option object.
1873
+ */
1874
+ value: SelectInputNativeProps['value'];
1875
+ }
1876
+ declare const TimePickerNative: FC<TimePickerNativeProps>;
1877
+
1878
+ interface FormikTimePickerNativeProps extends Omit<TimePickerNativeProps, 'onChange'> {
1879
+ field: FieldAttributes<HTMLTextAreaElement>;
1880
+ form: {
1881
+ touched: FormikTouched<FormikValues>;
1882
+ errors: FormikErrors<FormikValues>;
1883
+ };
1884
+ onChange: TimePickerNativeProps['onChange'];
1885
+ }
1886
+ declare const FormikTimePickerNative: FC<FormikTimePickerNativeProps>;
1887
+
1888
+ interface FormikSwitchProps {
1889
+ field: FieldAttributes<HTMLTextAreaElement>;
1890
+ form: {
1891
+ touched: FormikTouched<FormikValues>;
1892
+ errors: FormikErrors<FormikValues>;
1893
+ };
1894
+ id: string;
1895
+ label: string;
1896
+ }
1897
+ declare const FormikSwitch: React__default.FC<FormikSwitchProps>;
1898
+
1899
+ interface FormikToggleGroupProps {
1900
+ field: FieldAttributes<HTMLInputElement>;
1901
+ form: {
1902
+ touched: FormikTouched<FormikValues>;
1903
+ errors: FormikErrors<FormikValues>;
1904
+ setFieldValue: (field: string, value: unknown, shouldValidate?: boolean) => void;
1905
+ };
1906
+ options: Array<{
1907
+ id: string;
1908
+ value: string;
1909
+ label: React__default.ReactNode;
1910
+ disabled?: boolean;
1911
+ }>;
1912
+ helpText?: string;
1913
+ label?: string;
1914
+ children?: React__default.ReactNode;
1915
+ }
1916
+ declare const FormikToggleGroup: React__default.FC<FormikToggleGroupProps>;
1917
+
1918
+ type ToggleVariant$1 = 'default' | 'outline';
1919
+ type ToggleGroupProps = React__default.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & {
1920
+ variant?: ToggleVariant$1;
1921
+ name?: string;
1922
+ gap?: BaseSpacing | ResponsiveProp<BaseSpacing>;
1923
+ /**
1924
+ * Mark the toggle group as invalid and display a validation message.
1925
+ * Pass a string or node to render a validation message below the input.
1926
+ */
1927
+ error?: ReactNode;
1928
+ };
1929
+ declare const ToggleGroup: React__default.ForwardRefExoticComponent<ToggleGroupProps & React__default.RefAttributes<HTMLDivElement>>;
1930
+ declare const ToggleGroupItem: React__default.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
1931
+ variant?: ToggleVariant$1;
1932
+ } & React__default.RefAttributes<HTMLButtonElement>>;
1933
+
1934
+ interface FormikToggleGroupMultiProps {
1935
+ name: string;
1936
+ options: Array<{
1937
+ id: string;
1938
+ value: string;
1939
+ label: React__default.ReactNode;
1940
+ disabled?: boolean;
1941
+ }>;
1942
+ helpText?: string;
1943
+ label?: string;
1944
+ children?: React__default.ReactNode;
1945
+ variant: ToggleVariant$1;
1946
+ gap?: BaseSpacing | ResponsiveProp<BaseSpacing>;
1947
+ }
1948
+ declare const FormikToggleGroupMulti: ({ name, options, helpText, label, children, variant, gap, ...props }: FormikToggleGroupMultiProps) => React__default.JSX.Element;
1949
+
1950
+ interface FormLabelProps extends BoxProps {
1951
+ /**
1952
+ * Content to be rendered inside the label.
1953
+ */
1954
+ children: ReactNode;
1955
+ /**
1956
+ * The id of the form control that the label is labeling
1957
+ */
1958
+ inputId: string;
1959
+ /**
1960
+ * Custom class to pass to label element.
1961
+ */
1962
+ className?: string;
1963
+ /**
1964
+ * Additional clarifying text to that helps describe the field
1965
+ */
1966
+ helpText?: ReactNode;
1967
+ /**
1968
+ * Mark the label has disabled
1969
+ */
1970
+ isDisabled?: boolean;
1971
+ /**
1972
+ * prop deprecated: no longer in use and will be remove in next major release.
1973
+ */
1974
+ isFieldRequired?: boolean;
1975
+ /**
1976
+ * Apply custom styling to labels for a radio input
1977
+ */
1978
+ isRadioInputLabel?: boolean;
1979
+ /**
1980
+ * Visual indicator that the field is required, that gets appended to the label
1981
+ */
1982
+ requiredIndicator?: ReactNode;
1983
+ /**
1984
+ * Additional props to be spread to rendered element
1985
+ */
1986
+ [x: string]: any;
1987
+ }
1988
+ declare const FormLabel: FC<FormLabelProps>;
1989
+
1990
+ type HEADING_LEVELS_TYPE = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1991
+
1992
+ interface HeadingProps {
1993
+ /**
1994
+ * The DOM tag or react component to use for the element.
1995
+ * Select the appropriate semantic element (h1-h6).
1996
+ */
1997
+ as?: HEADING_LEVELS_TYPE;
1998
+ /**
1999
+ * Content of the heading. Can be a string or any valid DOM node.
2000
+ */
2001
+ children?: ReactNode;
2002
+ /**
2003
+ * Additional class names to add.
2004
+ */
2005
+ className?: string;
2006
+ /**
2007
+ * A variant token identifier to use for the text variant. Available variants found:
2008
+ * [here](https://github.com/hyphen/hyphen-design-tokens/blob/main/properties/color/font.json).
2009
+ */
2010
+ color?: FontColor;
2011
+ /**
2012
+ * By default, size is determined by the chosen tag (e.g. h1 is bigger than h2).
2013
+ * However, size can be set independently so that its size is appropriate for the surrounding content.
2014
+ * Available sizes found:
2015
+ * [here](https://github.com/hyphen/hyphen-design-tokens/blob/main/properties/size/font.json).
2016
+ */
2017
+ size?: HeadingSize | ResponsiveProp<HeadingSize>;
2018
+ /**
2019
+ * Additional props to be spread to rendered element
2020
+ */
2021
+ [x: string]: any;
2022
+ }
2023
+ declare const Heading: FC<HeadingProps>;
2024
+
2025
+ interface IconProps {
2026
+ className?: string;
2027
+ /**
2028
+ * A color token identifier to use for the text color.
2029
+ */
2030
+ color?: FontColor | ResponsiveProp<FontColor>;
2031
+ /**
2032
+ * A [font size token](/?path=/docs/design-tokens-design-tokens--page#font-size) identifier
2033
+ */
2034
+ size?: FontSize | ResponsiveProp<FontSize>;
2035
+ /**
2036
+ * Name of the icon
2037
+ */
2038
+ name: IconName;
2039
+ /**
2040
+ * Additional props to be spread to rendered element
2041
+ */
2042
+ [x: string]: any;
2043
+ }
2044
+ declare const Icon: FC<IconProps>;
2045
+
2046
+ type ModalFooterProps = Omit<BoxProps, 'as' | 'radius'>;
2047
+ declare const ModalFooter: FC<ModalFooterProps>;
2048
+
2049
+ type ModalHeaderProps = Omit<BoxProps, 'as' | 'radius' | 'justifyContent'> & {
2050
+ /**
2051
+ * id of the element containing the title, used by the Modal `aria-labelledby` prop
2052
+ */
2053
+ id: string;
2054
+ /**
2055
+ * Modal's header title
2056
+ */
2057
+ title?: string;
2058
+ /**
2059
+ * Additional content to render in the modal header, displayed alongside the title.
2060
+ */
2061
+ children?: React__default.ReactNode;
2062
+ /**
2063
+ * If defined, will render a 'x' close button on the right side of the ModalHeader
2064
+ */
2065
+ onDismiss?: (event?: React__default.SyntheticEvent) => void;
2066
+ };
2067
+ declare const ModalHeader: FC<ModalHeaderProps>;
2068
+
2069
+ type ModalBodyProps = BoxProps;
2070
+ declare const ModalBody: FC<ModalBodyProps>;
2071
+
2072
+ interface ModalProps {
2073
+ /**
2074
+ * Handle zoom/pinch gestures on iOS devices when scroll locking is enabled.
2075
+ */
2076
+ allowPinchZoom?: boolean;
2077
+ /**
2078
+ * Each modal needs to be properly labeled to provide context for users with
2079
+ * assistive technology such as screen readers. If a modal is announced to
2080
+ * the user without a label, it can be confusing and difficult to navigate.
2081
+ */
2082
+ ariaLabel?: string;
2083
+ /**
2084
+ * The id of the element that should be used as the Modal's label by assistive
2085
+ * technologies like screen readers. Usually the id is set on the `Modal.Header`
2086
+ */
2087
+ ariaLabelledBy?: string;
2088
+ /**
2089
+ * Contents of the dialog.
2090
+ */
2091
+ children?: ReactNode;
2092
+ /**
2093
+ * Additional ClassNames to add to dialog.
2094
+ */
2095
+ className?: string;
2096
+ /**
2097
+ * The ref of the container where the dialog will be inserted into the DOM.
2098
+ * By default, Modals are inserted in the document.body, but if need be they can
2099
+ * be scoped as necessary.
2100
+ */
2101
+ containerRef?: React__default.RefObject<Node>;
2102
+ /**
2103
+ * At mobile viewport widths, the modal will take up the fullscreen
2104
+ */
2105
+ fullScreenMobile?: boolean;
2106
+ /**
2107
+ * Background color for the modal content using design tokens
2108
+ */
2109
+ background?: BackgroundColor;
2110
+ /**
2111
+ * By default the first focusable element will receive focus when the dialog
2112
+ * opens but you can provide a ref to focus instead.
2113
+ *
2114
+ * @see Docs https://reach.tech/dialog#dialog-initialfocusref
2115
+ */
2116
+ initialFocusRef?: RefObject<HTMLDivElement>;
2117
+ /**
2118
+ * Whether the modal is visible or not
2119
+ */
2120
+ isOpen: boolean;
2121
+ /**
2122
+ * Max width for modal content. Uses the same maxWidth prop as the `Box` component,
2123
+ * and as such can be responsive as well.
2124
+ */
2125
+ maxWidth?: BoxProps['maxWidth'];
2126
+ /**
2127
+ * Function that is called whenever the user hits "Escape" key or clicks outside the modal.
2128
+ */
2129
+ onDismiss: (event?: React__default.SyntheticEvent) => void;
2130
+ /**
2131
+ * The css overflow behavior of the Modal
2132
+ */
2133
+ overflow?: CssOverflowValue;
2134
+ /**
2135
+ * Inline styles for the modal container
2136
+ */
2137
+ style?: React__default.CSSProperties;
2138
+ /**
2139
+ * Allows spread props
2140
+ */
2141
+ [x: string]: any;
2142
+ }
2143
+ declare const ModalBaseComponent: React__default.FC<ModalProps>;
2144
+ interface ModalStatic {
2145
+ Body: typeof ModalBody;
2146
+ Header: typeof ModalHeader;
2147
+ Footer: typeof ModalFooter;
2148
+ }
2149
+ type ModalWithStaticComponents = typeof ModalBaseComponent & ModalStatic;
2150
+ declare const Modal: ModalWithStaticComponents;
2151
+
2152
+ interface PaginationProps {
2153
+ /**
2154
+ * The current page number being displayed.
2155
+ */
2156
+ activePage: number;
2157
+ /**
2158
+ * The number of list items contained in a page.
2159
+ */
2160
+ itemsPerPage: number;
2161
+ /**
2162
+ * Callback fired when the user clicks a page or prev/next button.
2163
+ */
2164
+ onChange: (pageNumber: number) => void;
2165
+ /**
2166
+ * The total number of items in the list
2167
+ */
2168
+ totalItemsCount: number;
2169
+ /**
2170
+ * Boolean to determine if individual page buttons (or dropdown are visible). Takes a `ResponsiveProp`
2171
+ * if you want to render it differently at different breakpoints
2172
+ */
2173
+ arePagesVisible?: boolean;
2174
+ /**
2175
+ * Custom class to pass down to the pagination container.
2176
+ */
2177
+ className?: string;
2178
+ /**
2179
+ * Pass true to render a version of Pagination with smaller buttons.
2180
+ */
2181
+ isCompact?: boolean;
2182
+ /**
2183
+ * Boolean to determine if the list totals (and current range) are visible.
2184
+ * NOTE: these are hidden on mobile regardless of this prop value.
2185
+ */
2186
+ isTotalVisible?: boolean;
2187
+ /**
2188
+ * The text (or react node) to pass to the NEXT page button.
2189
+ */
2190
+ nextPageText?: string | ReactNode;
2191
+ /**
2192
+ * Number of pages shown in paginator, not including navigation blocks (prev, next), as well as first, last pages.
2193
+ * In other words the number of pages displayed 'in the middle', that the user can navigate to.
2194
+ */
2195
+ numberOfPagesDisplayed?: number;
2196
+ /**
2197
+ * The text (or react node) to pass to the PREVIOUS page button.
2198
+ */
2199
+ prevPageText?: string | ReactNode;
2200
+ }
2201
+ declare const Pagination: FC<PaginationProps>;
2202
+
2203
+ declare const Popover: React__default.FC<PopoverPrimitive.PopoverProps>;
2204
+ declare const PopoverTrigger: React__default.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
2205
+ declare const PopoverAnchor: React__default.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React__default.RefAttributes<HTMLDivElement>>;
2206
+ declare const PopoverPortal: React__default.FC<PopoverPrimitive.PopoverPortalProps>;
2207
+ declare const PopoverContent: React__default.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2208
+
2209
+ interface InputRangeProps {
2210
+ /**
2211
+ * The input's id attribute.
2212
+ */
2213
+ id: string;
2214
+ /**
2215
+ * The value of the range.
2216
+ */
2217
+ value: number;
2218
+ /**
2219
+ * The maximum value of the range.
2220
+ */
2221
+ max: number;
2222
+ /**
2223
+ * Callback function to call on change event.
2224
+ */
2225
+ onChange: (event: React__default.ChangeEvent<HTMLInputElement>) => void;
2226
+ /**
2227
+ * Custom class to be added to standard input classes.
2228
+ */
2229
+ className?: string;
2230
+ /**
2231
+ * If the input should be disabled and not focusable.
2232
+ */
2233
+ isDisabled?: boolean;
2234
+ }
2235
+ declare const RangeInput: FC<InputRangeProps>;
2236
+
2237
+ interface ResponsiveContextShape {
2238
+ isCreated: boolean;
2239
+ innerWidth?: number;
2240
+ innerHeight?: number;
2241
+ outerWidth?: number;
2242
+ outerHeight?: number;
2243
+ }
2244
+ declare const ResponsiveContext: React__default.Context<ResponsiveContextShape>;
2245
+ interface ResponsiveProviderProps {
2246
+ children?: React__default.ReactNode;
2247
+ /**
2248
+ * Time (in milliseconds) to delay execution of resize handler. Default is 50.
2249
+ */
2250
+ throttle?: number;
2251
+ }
2252
+ declare const ResponsiveProvider: React__default.FC<ResponsiveProviderProps>;
2253
+
2254
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
2255
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
2256
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
2257
+ declare const TooltipPortal: React.FC<TooltipPrimitive.TooltipPortalProps>;
2258
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
2259
+
2260
+ type SidebarSide = 'left' | 'right';
2261
+ type SidebarOpenState = Record<SidebarSide, boolean>;
2262
+ type SidebarOpenValue = boolean | Partial<SidebarOpenState>;
2263
+ type SidebarStorageKey = string | Partial<Record<SidebarSide, string>>;
2264
+ declare function useSidebar(sideOverride?: SidebarSide): {
2265
+ isMobile: boolean;
2266
+ side: SidebarSide;
2267
+ state: "expanded" | "collapsed";
2268
+ open: boolean;
2269
+ setOpen: (open: boolean | ((open: boolean) => boolean)) => void;
2270
+ openMobile: boolean;
2271
+ setOpenMobile: (open: boolean | ((open: boolean) => boolean)) => void;
2272
+ toggleSidebar: () => void;
2273
+ };
2274
+ declare const SidebarProvider: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & {
2275
+ defaultOpen?: SidebarOpenValue;
2276
+ open?: SidebarOpenValue;
2277
+ storageKey?: SidebarStorageKey;
2278
+ onOpenChange?: (open: boolean, side?: SidebarSide) => void;
2279
+ }, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2280
+ declare const Sidebar: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLDivElement> & React__default.HTMLAttributes<HTMLDivElement> & {
2281
+ side?: "left" | "right";
2282
+ collapsible?: "offcanvas" | "icon" | "none";
2283
+ }, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2284
+ declare const SidebarTrigger: React__default.ForwardRefExoticComponent<Omit<BaseButtonProps & React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement> & {
2285
+ side?: SidebarSide;
2286
+ iconName?: IconName;
2287
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
2288
+ declare const SidebarInset: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2289
+ declare const SidebarHeader: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2290
+ declare const SidebarFooter: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2291
+ declare const SidebarContent: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2292
+ declare const SidebarMenu: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
2293
+ declare const SidebarMenuItem: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React__default.RefAttributes<HTMLLIElement>>;
2294
+ declare const SidebarMenuButton: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
2295
+ asChild?: boolean;
2296
+ isActive?: boolean;
2297
+ tooltip?: string | React__default.ComponentProps<typeof TooltipContent>;
2298
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
2299
+ declare const SidebarGroup: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2300
+ declare const SidebarGroupLabel: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2301
+ declare const SidebarMenuSub: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React__default.RefAttributes<HTMLUListElement>>;
2302
+ declare const SidebarMenuSubItem: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React__default.RefAttributes<HTMLLIElement>>;
2303
+ declare const SidebarMenuSubButton: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLAnchorElement> & React__default.AnchorHTMLAttributes<HTMLAnchorElement> & {
2304
+ asChild?: boolean;
2305
+ isActive?: boolean;
2306
+ }, "ref"> & React__default.RefAttributes<HTMLAnchorElement>>;
2307
+ declare const SidebarMenuAction: React__default.ForwardRefExoticComponent<Omit<React__default.ClassAttributes<HTMLButtonElement> & React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
2308
+ asChild?: boolean;
2309
+ }, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
2310
+ declare const SidebarRail: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
2311
+ declare const SidebarMenuBadge: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
2312
+
2313
+ interface SpinnerProps {
2314
+ /**
2315
+ * Custom className to be applied to spinner container div element.
2316
+ */
2317
+ className?: string;
2318
+ /**
2319
+ * Size of the spinner.
2320
+ */
2321
+ size?: 'sm' | 'md' | 'lg' | 'xl';
2322
+ }
2323
+ declare const Spinner: FC<SpinnerProps>;
2324
+
2325
+ type SwitchSize = 'sm' | 'md' | 'lg';
2326
+ interface SwitchProps {
2327
+ /**
2328
+ * The id attribute of the input.
2329
+ */
2330
+ id: string;
2331
+ /**
2332
+ * The switch input "checked" attribute.
2333
+ */
2334
+ isChecked: boolean;
2335
+ /**
2336
+ * Custom content to be displayed to right of switch.
2337
+ */
2338
+ label: string;
2339
+ /**
2340
+ * Callback function when input is changed.
2341
+ */
2342
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
2343
+ /**
2344
+ * Additional classes to add.
2345
+ */
2346
+ className?: string;
2347
+ /**
2348
+ * Mark the input field as invalid and display a validation message.
2349
+ * Pass a string or node to render a validation message below the input.
2350
+ */
2351
+ error?: ReactNode;
2352
+ /**
2353
+ * Additional clarifying text to help describe the input
2354
+ */
2355
+ helpText?: ReactNode;
2356
+ /**
2357
+ * Determines if the label is not shown for stylistic reasons.
2358
+ * Note the label is still a required prop and will be used as the aria-label for accessibility reasons.
2359
+ */
2360
+ hideLabel?: boolean;
2361
+ /**
2362
+ * If the input should be disabled and not focusable.
2363
+ */
2364
+ isDisabled?: boolean;
2365
+ /**
2366
+ * The required and aria-required attributes on the input
2367
+ */
2368
+ isRequired?: boolean;
2369
+ /**
2370
+ * Callback function when input is blurred.
2371
+ */
2372
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
2373
+ /**
2374
+ * Callback function when input is focused.
2375
+ */
2376
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
2377
+ /**
2378
+ * Visual indicator that the field is required, that gets appended to the label
2379
+ */
2380
+ requiredIndicator?: React__default.ReactNode;
2381
+ /**
2382
+ * The size of the switch.
2383
+ */
2384
+ size?: SwitchSize | ResponsiveProp<SwitchSize>;
2385
+ }
2386
+ declare const Switch: FC<SwitchProps>;
2387
+
2388
+ interface TableProps {
2389
+ /**
2390
+ * Columns for the table. See Column definition below for details.
2391
+ */
2392
+ columns: Column[];
2393
+ /**
2394
+ * The data rows to be displayed
2395
+ */
2396
+ rows: Row[];
2397
+ /**
2398
+ * Key that represents a unique value for a row. This is necessary in
2399
+ * order to supply React with a node key on each row.
2400
+ */
2401
+ rowKey: string;
2402
+ /**
2403
+ * Additional classes to add.
2404
+ */
2405
+ className?: string;
2406
+ /**
2407
+ * Text alignment for all table cells. Can be superseded by passing the same prop into the `Column` object
2408
+ * for a specific column.
2409
+ */
2410
+ align?: 'left' | 'right' | 'center';
2411
+ /**
2412
+ * Global placeholder for empty cells. Can be overwritten by setting the same attribute
2413
+ * in the `Column` config.
2414
+ */
2415
+ emptyCellPlaceholder?: string | number | undefined;
2416
+ /**
2417
+ * Enable a hover state on table rows.
2418
+ */
2419
+ hoverableRows?: boolean;
2420
+ /**
2421
+ * Remove borders around table, thead, tbody, td, etc.
2422
+ */
2423
+ isBorderless?: boolean;
2424
+ /**
2425
+ * Make Table more compact by cutting cell padding in half.
2426
+ */
2427
+ isCompact?: boolean;
2428
+ /**
2429
+ * If table scrolls vertically, header will remain stuck to the top of the table, and not scroll away.
2430
+ */
2431
+ hasStickyHeader?: boolean;
2432
+ /**
2433
+ * Set to true if data is loading.
2434
+ */
2435
+ isLoading?: boolean;
2436
+ /**
2437
+ * Set the maximum width and height and enable scrolling within the container when the table grows
2438
+ * past those values. Useful for when we want to render a large table but not force the parent container
2439
+ * to grow and instead make the user scroll. Set values to boolean `true` to enable `overflow: scroll` on the table
2440
+ * without specifying a width/height
2441
+ */
2442
+ isScrollable?: {
2443
+ x?: boolean;
2444
+ y?: boolean;
2445
+ };
2446
+ /**
2447
+ * Adds zebra-striping to any table row within the table body.
2448
+ */
2449
+ isStriped?: boolean;
2450
+ /**
2451
+ * Callback function to fire on sorting one of the table headers.
2452
+ */
2453
+ onSort?: (event: EventWithColumnKey) => void;
2454
+ /**
2455
+ * The key of the sorted column and its sort direction.
2456
+ */
2457
+ sortedColumn?: {
2458
+ dataKey: string | undefined;
2459
+ sortDirection: 'none' | 'ascending' | 'descending' | undefined;
2460
+ };
2461
+ /**
2462
+ * Control the `table-layout` css property for the table.
2463
+ */
2464
+ useFixedTableLayout?: boolean;
2465
+ /**
2466
+ * Truncate overflow inside column based on column width. Can be overwritten on specific columns,
2467
+ * by passing `truncateOverflow` value on a specific Column
2468
+ */
2469
+ truncateOverflow?: boolean;
2470
+ }
2471
+ declare const Table: FC<TableProps>;
2472
+
2473
+ type Theme = 'dark' | 'light' | 'system';
2474
+ type ThemeProviderProps = {
2475
+ children: React__default.ReactNode;
2476
+ defaultTheme?: Theme;
2477
+ storageKey?: string;
2478
+ };
2479
+ type ThemeProviderState = {
2480
+ theme: Theme;
2481
+ setTheme: (theme: Theme) => void;
2482
+ isDarkMode?: boolean;
2483
+ };
2484
+ declare const ThemeProviderContext: React__default.Context<ThemeProviderState>;
2485
+ declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): React__default.JSX.Element;
2486
+
2487
+ type ToastType = 'success' | 'error' | 'loading' | 'blank' | 'custom';
2488
+ type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2489
+ interface Toast {
2490
+ /**
2491
+ * Type of toast to create.
2492
+ */
2493
+ type: ToastType;
2494
+ /**
2495
+ * Unique id for the toast.
2496
+ */
2497
+ id: string;
2498
+ /**
2499
+ * Toast message
2500
+ */
2501
+ message: ValueOrFunction<React__default.ReactNode, Toast>;
2502
+ /**
2503
+ * Determine of toast layout is compact or default.
2504
+ */
2505
+ isCompact?: boolean;
2506
+ /**
2507
+ * Custom duration for toast.
2508
+ */
2509
+ duration?: number;
2510
+ /**
2511
+ * Amount of time the toast timeout has been paused for.
2512
+ * When the toast timeout is paused, its auto-dismissal will be delayed.
2513
+ */
2514
+ pauseDuration: number;
2515
+ /**
2516
+ * Custom toast position, use as needed to override global position from ToastContainer.
2517
+ */
2518
+ position?: ToastPosition;
2519
+ /**
2520
+ * Accessibility options
2521
+ */
2522
+ ariaProps: {
2523
+ role: 'status' | 'alert';
2524
+ 'aria-live': 'assertive' | 'off' | 'polite';
2525
+ };
2526
+ /**
2527
+ * Whether the toast can be dismissed (if true, the toast will include a close button)
2528
+ */
2529
+ canDismiss?: boolean;
2530
+ /**
2531
+ * Custom styles.
2532
+ */
2533
+ style?: React__default.CSSProperties;
2534
+ /**
2535
+ * Custom className
2536
+ */
2537
+ className?: string;
2538
+ /**
2539
+ * Epoch timestamp
2540
+ */
2541
+ createdAt: number;
2542
+ /**
2543
+ * Whether the toast is visible at the current time.
2544
+ * Used in order to display a proper fade-out animation before the element is fully removed from the DOM.
2545
+ */
2546
+ visible: boolean;
2547
+ /**
2548
+ * Height of element (calculated with getBoundingClientRect)
2549
+ */
2550
+ height?: number;
2551
+ }
2552
+ type ToastOptions = Partial<Pick<Toast, 'id' | 'duration' | 'ariaProps' | 'className' | 'style' | 'position' | 'canDismiss' | 'isCompact'>>;
2553
+ /**
2554
+ * Extends toast options so that you can include options for each type of toast in the options.
2555
+ * e.g: { duration: 1000, success: { duration: 2000 } }
2556
+ */
2557
+ type ExtendedToastOptions = ToastOptions & {
2558
+ [key in ToastType]?: ToastOptions;
2559
+ };
2560
+
2561
+ declare const createRectRef: (onRect: (rect: DOMRect) => void) => (el: HTMLElement | null) => void;
2562
+ interface ToastContainerProps {
2563
+ /**
2564
+ * Render function for each individual toast.
2565
+ * This can be used to render custom toasts, although we recommend using the standard version,
2566
+ * unless absolutely necessary.
2567
+ */
2568
+ children?: (t: Toast) => JSX.Element;
2569
+ /**
2570
+ * Style object for the toast container if needed.
2571
+ */
2572
+ containerStyle?: React__default.CSSProperties;
2573
+ /**
2574
+ * Custom classname for toast container if needed.
2575
+ */
2576
+ containerClassName?: string;
2577
+ /**
2578
+ * The vertical gap between each toast notification when multiple toasts are on screen (in pixels).
2579
+ */
2580
+ gutter?: number;
2581
+ /**
2582
+ * Global position for all toasts in container.
2583
+ * NOTE: This can be overwritten by the position property of each individual toast.
2584
+ */
2585
+ position?: ToastPosition;
2586
+ /**
2587
+ * Display toasts in reverse order.
2588
+ * NOTE: Reverse order in this case means that older toasts remain close to the position origin.
2589
+ * and newer toasts appear further away from the origin.
2590
+ */
2591
+ reverseOrder?: boolean;
2592
+ /**
2593
+ * Global options for each toast. Can be overwritten for each individual toast as needed.
2594
+ */
2595
+ toastOptions?: ExtendedToastOptions;
2596
+ /**
2597
+ * Props spread into main container.
2598
+ */
2599
+ [x: string]: unknown;
2600
+ }
2601
+ declare const ToastContainer: React__default.FC<ToastContainerProps>;
2602
+
2603
+ type Message = ValueOrFunction<React__default.ReactNode, Toast>;
2604
+ type ToastHandler = (message: Message, options?: ToastOptions) => string;
2605
+ declare const toast: {
2606
+ (message: Message, opts?: ToastOptions): string;
2607
+ error: ToastHandler;
2608
+ success: ToastHandler;
2609
+ loading: ToastHandler;
2610
+ custom: ToastHandler;
2611
+ dismiss(toastId?: string): void;
2612
+ remove(toastId?: string): void;
2613
+ async<T>(promise: Promise<T>, messages: {
2614
+ loading: React__default.ReactNode;
2615
+ success: ValueOrFunction<React__default.ReactNode, T>;
2616
+ error: ValueOrFunction<React__default.ReactNode, unknown>;
2617
+ }, opts?: ExtendedToastOptions): Promise<T>;
2618
+ };
2619
+
2620
+ declare const useToasts: (toastOptions?: ExtendedToastOptions) => {
2621
+ toasts: Toast[];
2622
+ handlers: {
2623
+ startPause: () => void;
2624
+ endPause: () => void;
2625
+ updateHeight: (toastId: string, height: number) => void;
2626
+ calculateOffset: (currentToast: Toast, opts: {
2627
+ reverseOrder: boolean;
2628
+ gutter: number;
2629
+ defaultPosition?: ToastPosition;
2630
+ }) => number;
2631
+ };
2632
+ };
2633
+
2634
+ type ToggleVariant = 'default' | 'outline';
2635
+ declare const Toggle: React__default.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & {
2636
+ variant?: ToggleVariant;
2637
+ } & React__default.RefAttributes<HTMLButtonElement>>;
2638
+
2639
+ interface BreakpointState {
2640
+ isPhone: boolean;
2641
+ isTablet: boolean;
2642
+ isDesktop: boolean;
2643
+ isHd: boolean;
2644
+ activeBreakpoint: Breakpoint;
2645
+ }
2646
+ declare const useBreakpoint: () => BreakpointState;
2647
+
2648
+ declare function useIsMobile(): boolean;
2649
+
2650
+ declare const useIsomorphicLayoutEffect: typeof useEffect;
2651
+
2652
+ interface UseOpenCloseProps {
2653
+ /**
2654
+ * Initial visibility of the component
2655
+ */
2656
+ defaultIsOpen?: boolean;
2657
+ /**
2658
+ * If defined, visibility of the component is assumed to be controlled
2659
+ */
2660
+ isOpen?: boolean;
2661
+ /**
2662
+ * Callback function when component is closed
2663
+ * @returns void
2664
+ */
2665
+ onClose?: () => void;
2666
+ /**
2667
+ * Callback function when component is opened
2668
+ * @returns void
2669
+ */
2670
+ onOpen?: () => void;
2671
+ }
2672
+ interface UseOpenCloseState {
2673
+ /**
2674
+ * If true, sets the controlled component to its visible state
2675
+ */
2676
+ isOpen: boolean;
2677
+ /**
2678
+ * Callback function to set a falsy value for the `isOpen` parameter.
2679
+ */
2680
+ handleClose: () => void;
2681
+ /**
2682
+ * Callback function to set a truthy value for the `isOpen` parameter.
2683
+ */
2684
+ handleOpen: () => void;
2685
+ /**
2686
+ * Callback function to toggle the value of the `isOpen` parameter.
2687
+ */
2688
+ handleToggle: () => void;
2689
+ }
2690
+ declare const useOpenClose: (props?: UseOpenCloseProps) => UseOpenCloseState;
2691
+
2692
+ declare const useTheme: () => {
2693
+ theme: Theme;
2694
+ setTheme: (theme: Theme) => void;
2695
+ isDarkMode?: boolean;
2696
+ };
2697
+
2698
+ interface HookWindowSize {
2699
+ innerWidth?: number;
2700
+ innerHeight?: number;
2701
+ outerWidth?: number;
2702
+ outerHeight?: number;
2703
+ }
2704
+ declare const useWindowSize: () => HookWindowSize;
2705
+
2706
+ declare function isValidSpacingValue(value?: string | ResponsiveProp<string | undefined>): boolean;
2707
+ declare function generateBaseClasses(attribute: string | undefined, value?: string | ResponsiveProp<string | undefined>): string[];
2708
+ declare function cssShorthandToClasses(attribute: string, value?: string | ResponsiveProp<string | undefined>): string[];
2709
+
2710
+ declare function doesStringIncludeCssUnit(value: string | undefined): boolean;
2711
+
2712
+ declare function generateResponsiveClasses(classRoot: string, value: ResponsiveProp<any> | string | undefined): string[];
2713
+
2714
+ declare function getAutoCompleteValue(value: string | boolean): string;
2715
+
2716
+ declare const getColumnKeys: (columns: Column[]) => Key[];
2717
+
2718
+ declare function getDimensionStyles(dimension: CssDimensionAbbreviation, value?: DimensionSize | ResponsiveProp<DimensionSize> | string): {
2719
+ [key: string]: string;
2720
+ } | undefined;
2721
+ declare function getDimensionClasses(dimension: CssDimensionAbbreviation, value?: DimensionSize | ResponsiveProp<DimensionSize> | string): string[] | undefined;
2722
+ /**
2723
+ * Returns an object of styles and class names that correspond with the given value
2724
+ * @param {CssDimensionAbbreviation} dimension width or height
2725
+ * @param {string} [value] value of the dimension
2726
+ */
2727
+ declare function getDimensionCss(dimension: CssDimensionAbbreviation, value?: DimensionSize | ResponsiveProp<DimensionSize> | string): StylesAndClasses<CSSProperties>;
2728
+
2729
+ /**
2730
+ * Returns a createElement() type based on the props of the Component.
2731
+ * Useful for calculating what type a component should render as.
2732
+ *
2733
+ * @param {function} Component A function or ReactClass.
2734
+ * @param {object} props A ReactElement props object
2735
+ * @param {function} [getDefault] A function that returns a default element type.
2736
+ * @returns {string} A ReactElement type
2737
+ */
2738
+ declare function getElementType(// eslint-disable-line import/prefer-default-export
2739
+ Component: React__default.Component | React__default.FC, props: {
2740
+ [key: string]: unknown;
2741
+ }, getDefault?: () => string): string;
2742
+
2743
+ declare function parsePropertyValue(value: string): string | number;
2744
+ declare function getFlexStyles(value?: string): FlexProperty | undefined;
2745
+ declare function getFlexClasses(value?: string): string[] | undefined;
2746
+ /**
2747
+ * Returns an object of styles and class names that correspond with the given flex value
2748
+ * @param {string} [value] spacing token value
2749
+ */
2750
+ declare function getFlexCss(value?: ResponsiveProp<FlexProperty> | string): StylesAndClasses<FlexProperty>;
2751
+
2752
+ declare const isFunction: <TValue, TArg>(// eslint-disable-line import/prefer-default-export
2753
+ valOrFunction: ValueOrFunction<TValue, TArg>) => valOrFunction is ValueFunction<TValue, TArg>;
2754
+
2755
+ declare function mergeRefs<T = unknown>(refs: Array<React__default.MutableRefObject<T> | React__default.LegacyRef<T> | undefined | null>): React__default.RefCallback<T>;
2756
+
2757
+ declare const prefersReducedMotion: () => boolean;
2758
+
2759
+ declare const isModifiedEvent: (e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => boolean;
2760
+ /**
2761
+ * Due to react-router's handling of custom components used in RR <Link>
2762
+ * we must add this validation that ensures the router will execute the passed `navigate`
2763
+ * prop, thus navigating the user without triggering a refresh.
2764
+ *
2765
+ * SOURCES:
2766
+ * https://github.com/ReactTraining/react-router/issues/7727
2767
+ * https://github.com/ReactTraining/react-router/issues/7761
2768
+ * */
2769
+ declare const handleReactRouterClick: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>, onClick: ((e: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void) | undefined, target: AnchorHTMLAttributes<HTMLAnchorElement>["target"] | undefined, navigate: (() => void) | undefined) => void;
2770
+
2771
+ declare const resolveValue: <TValue, TArg>(// eslint-disable-line import/prefer-default-export
2772
+ valOrFunction: ValueOrFunction<TValue, TArg>, arg: TArg) => TValue;
2773
+
2774
+ type FilterFunction = (child: ReactNode, index?: number, children?: ReactNode[]) => boolean;
2775
+ declare const filter: (children: ReactNode, filterFn: FilterFunction) => ReactNode[];
2776
+
2777
+ declare const ICON_NAMES: IconName[];
2778
+ declare const BORDER_RADIUS_OPTIONS: BorderRadiusSize[];
2779
+ declare const BORDER_SIZE_OPTIONS: BorderSize[];
2780
+ declare const BREAKPOINT_OPTIONS: BreakpointSizeWithBase[];
2781
+ declare const BREAKPOINTS: Breakpoint[];
2782
+ declare const BASE_COLOR_OPTIONS: BaseColor[];
2783
+ declare const BASE_COLOR_NAMES: ColorName[];
2784
+ declare const FONT_COLOR_OPTIONS: FontColor[];
2785
+ declare const BACKGROUND_COLOR_OPTIONS: BackgroundColor[];
2786
+ declare const BORDER_COLOR_OPTIONS: BorderColor[];
2787
+ declare const FONT_SIZE_OPTIONS: FontSize[];
2788
+ declare const FONT_FAMILY_OPTIONS: FontFamily[];
2789
+ declare const FONT_WEIGHT_OPTIONS: FontWeight[];
2790
+ declare const HEADING_SIZE_OPTIONS: HeadingSize[];
2791
+ declare const HEIGHT_OPTIONS: HeightSize[];
2792
+ declare const LINE_HEIGHT_OPTIONS: LineHeightSize[];
2793
+ declare const SPACING_OPTIONS: SpacingSize[];
2794
+ declare const WIDTH_OPTIONS: WidthSize[];
2795
+ declare const Z_INDEX_OPTIONS: ZIndexSize[];
2796
+ declare const Z_INDEX_VALUES: any;
2797
+ declare const BOX_SHADOW_OPTIONS: BoxShadowSize[];
2798
+
2799
+ export { Alert, type AlertProps, AspectRatio, BACKGROUND_COLOR_OPTIONS, BASE_COLOR_NAMES, BASE_COLOR_OPTIONS, BORDER_COLOR_OPTIONS, BORDER_RADIUS_OPTIONS, BORDER_SIZE_OPTIONS, BOX_SHADOW_OPTIONS, BREAKPOINTS, BREAKPOINT_OPTIONS, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, type BaseButtonProps, type BaseSpacing, type BorderRadiusSize, Box, type BoxProps, type Breakpoint, type BreakpointSizeWithBase, type BreakpointState, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarProps, Card, CardBaseComponent, type CardProps, type CardStatic, type CardWithStaticComponents, type Cell, Checkbox, CheckboxInput, type CheckboxInputProps, type CheckboxProps, type CheckboxSize, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, type CssAlignContentValue, type CssAlignItemsValue, type CssDimensionAbbreviation, type CssDimensionUnit, type CssDimensionValue, type CssDisplayValue, type CssFlexDirectionValue, type CssFlexValue, type CssJustifyContentValue, type CssOverflowValue, type CssSpacingAbbreviation, type CssTextAlignValue, type CssWhiteSpaceValue, type CssWordBreakValue, Details, DetailsBaseComponent, type DetailsProps, type DetailsStatic, DetailsSummary, type DetailsSummaryProps, type DetailsWithStaticComponents, type DimensionSize, Drawer, DrawerCloseButton, DrawerContent, DrawerHeader, type DrawerPlacementType, type DrawerProps, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EventWithColumnKey, type ExtendedToastOptions, FONT_COLOR_OPTIONS, FONT_FAMILY_OPTIONS, FONT_SIZE_OPTIONS, FONT_WEIGHT_OPTIONS, type FilterFunction, type FlexProperty, FormControl, type FormControlProps, FormLabel, type FormLabelProps, FormikCheckboxInput, type FormikCheckboxInputProps, FormikRadioGroup, type FormikRadioGroupProps, FormikSelectInput, FormikSelectInputInset, type FormikSelectInputInsetProps, FormikSelectInputNative, type FormikSelectInputNativeProps, type FormikSelectInputProps, FormikSwitch, type FormikSwitchProps, FormikTextInput, FormikTextInputInset, type FormikTextInputInsetProps, type FormikTextInputProps, FormikTextareaInput, FormikTextareaInputInset, type FormikTextareaInputInsetProps, type FormikTextareaInputProps, FormikTimePicker, FormikTimePickerNative, type FormikTimePickerNativeProps, type FormikTimePickerProps, FormikToggleGroup, FormikToggleGroupMulti, type FormikToggleGroupMultiProps, type FormikToggleGroupProps, HEADING_SIZE_OPTIONS, HEIGHT_OPTIONS, Heading, type HeadingProps, type HookWindowSize, type HoverableBoxProperties, ICON_NAMES, Icon, type IconProps, type InputRangeProps, LINE_HEIGHT_OPTIONS, Modal, ModalBaseComponent, type ModalProps, type ModalStatic, type ModalWithStaticComponents, Pagination, type PaginationProps, Popover, PopoverAnchor, PopoverContent, PopoverPortal, PopoverTrigger, RadioGroup, type RadioGroupProps, RangeInput, ResponsiveContext, type ResponsiveContextShape, type ResponsiveProp, ResponsiveProvider, type ResponsiveProviderProps, type Row, SPACING_OPTIONS, SelectInput, SelectInputInset, type SelectInputInsetProps, type SelectInputInsetSize, SelectInputNative, type SelectInputNativeOption, type SelectInputNativeProps, type SelectInputNativeSize, type SelectInputOptions, type SelectInputProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarTrigger, type SimulatedEventPayloadType, Spinner, type SpinnerProps, type StylesAndClasses, Switch, type SwitchProps, type SwitchSize, Table, type TableProps, TextInput, TextInputInset, type TextInputInsetProps, type TextInputInsetSize, type TextInputProps, type TextInputSize, type TextInputSizeType, TextareaInput, TextareaInputInset, type TextareaInputInsetProps, type TextareaInputInsetSize, type TextareaInputProps, type TextareaInputSize, type Theme, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, type TimePickerNativeProps, type TimePickerProps, type Toast, ToastContainer, type ToastContainerProps, type ToastOptions, type ToastPosition, type ToastType, Toggle, ToggleGroup, ToggleGroupItem, type ToggleVariant$1 as ToggleVariant, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, type UnknownPropertiesObjType, type UseOpenCloseProps, type UseOpenCloseState, type ValueFunction, type ValueOrFunction, WIDTH_OPTIONS, Z_INDEX_OPTIONS, Z_INDEX_VALUES, boxPropsKeys, createRectRef, cssShorthandToClasses, doesStringIncludeCssUnit, filter, generateBaseClasses, generateResponsiveClasses, getAutoCompleteValue, getColumnKeys, getDimensionClasses, getDimensionCss, getDimensionStyles, getElementType, getFlexClasses, getFlexCss, getFlexStyles, handleReactRouterClick, isFunction, isModifiedEvent, isValidSpacingValue, mergeRefs, parsePropertyValue, prefersReducedMotion, resolveValue, toast, useBreakpoint, useDrawer, useIsMobile, useIsomorphicLayoutEffect, useOpenClose, useSidebar, useTheme, useToasts, useWindowSize };