@react-ui-org/react-ui 0.64.1 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/README.md +3 -6
  2. package/dist/react-ui.css +16 -16
  3. package/dist/react-ui.d.ts +1936 -0
  4. package/dist/react-ui.development.css +3591 -3003
  5. package/dist/react-ui.development.js +2028 -1060
  6. package/dist/react-ui.js +1 -1
  7. package/package.json +74 -70
  8. package/src/components/Alert/{Alert.jsx → Alert.tsx} +8 -43
  9. package/src/components/Alert/Alert.types.ts +34 -0
  10. package/src/components/Alert/README.md +1 -1
  11. package/src/components/Alert/index.ts +2 -0
  12. package/src/components/Badge/Badge.tsx +30 -0
  13. package/src/components/Badge/Badge.types.ts +24 -0
  14. package/src/components/Badge/README.md +1 -1
  15. package/src/components/Badge/index.ts +5 -0
  16. package/src/components/Button/Button.tsx +110 -0
  17. package/src/components/Button/Button.types.ts +93 -0
  18. package/src/components/Button/README.md +1 -1
  19. package/src/components/Button/helpers/{getRootLabelVisibilityClassName.js → getRootLabelVisibilityClassName.ts} +5 -2
  20. package/src/components/Button/index.ts +6 -0
  21. package/src/components/ButtonGroup/{ButtonGroup.jsx → ButtonGroup.tsx} +9 -40
  22. package/src/components/ButtonGroup/ButtonGroup.types.ts +45 -0
  23. package/src/components/ButtonGroup/ButtonGroupContext.ts +4 -0
  24. package/src/components/ButtonGroup/README.md +1 -1
  25. package/src/components/ButtonGroup/{index.js → index.ts} +4 -0
  26. package/src/components/Card/Card.tsx +33 -0
  27. package/src/components/Card/Card.types.ts +46 -0
  28. package/src/components/Card/{CardBody.jsx → CardBody.tsx} +4 -11
  29. package/src/components/Card/{CardFooter.jsx → CardFooter.tsx} +4 -15
  30. package/src/components/Card/README.md +6 -7
  31. package/src/components/Card/{index.js → index.ts} +5 -0
  32. package/src/components/CheckboxField/CheckboxField.module.scss +7 -3
  33. package/src/components/CheckboxField/CheckboxField.tsx +81 -0
  34. package/src/components/CheckboxField/CheckboxField.types.ts +64 -0
  35. package/src/components/CheckboxField/README.md +92 -45
  36. package/src/components/CheckboxField/index.ts +5 -0
  37. package/src/components/FileInputField/FileInputField.module.scss +7 -3
  38. package/src/components/FileInputField/{FileInputField.jsx → FileInputField.tsx} +43 -129
  39. package/src/components/FileInputField/FileInputField.types.ts +101 -0
  40. package/src/components/FileInputField/README.md +21 -4
  41. package/src/components/FileInputField/index.ts +6 -0
  42. package/src/components/FormLayout/FormLayout.module.scss +5 -7
  43. package/src/components/FormLayout/{FormLayout.jsx → FormLayout.tsx} +15 -50
  44. package/src/components/FormLayout/FormLayout.types.ts +55 -0
  45. package/src/components/FormLayout/FormLayoutContext.ts +4 -0
  46. package/src/components/FormLayout/FormLayoutCustomField.module.scss +7 -3
  47. package/src/components/FormLayout/{FormLayoutCustomField.jsx → FormLayoutCustomField.tsx} +12 -67
  48. package/src/components/FormLayout/FormLayoutCustomField.types.ts +60 -0
  49. package/src/components/FormLayout/FormLayoutCustomFieldContext.ts +4 -0
  50. package/src/components/FormLayout/README.md +6 -15
  51. package/src/components/FormLayout/index.ts +14 -0
  52. package/src/components/Grid/Grid.module.scss +1 -1
  53. package/src/components/Grid/Grid.tsx +50 -0
  54. package/src/components/Grid/Grid.types.ts +108 -0
  55. package/src/components/Grid/GridSpan.tsx +36 -0
  56. package/src/components/Grid/README.md +2 -2
  57. package/src/components/Grid/_helpers/generateResponsiveCustomProperties.ts +33 -0
  58. package/src/components/Grid/index.ts +9 -0
  59. package/src/components/InputGroup/InputGroup.module.scss +7 -3
  60. package/src/components/InputGroup/{InputGroup.jsx → InputGroup.tsx} +25 -95
  61. package/src/components/InputGroup/InputGroup.types.ts +80 -0
  62. package/src/components/InputGroup/InputGroupContext.ts +4 -0
  63. package/src/components/InputGroup/README.md +40 -8
  64. package/src/components/InputGroup/{index.js → index.ts} +4 -0
  65. package/src/components/Modal/Modal.tsx +172 -0
  66. package/src/components/Modal/Modal.types.ts +181 -0
  67. package/src/components/Modal/ModalBody.tsx +34 -0
  68. package/src/components/Modal/{ModalCloseButton.jsx → ModalCloseButton.tsx} +6 -19
  69. package/src/components/Modal/{ModalContent.jsx → ModalContent.tsx} +4 -15
  70. package/src/components/Modal/ModalFooter.tsx +27 -0
  71. package/src/components/Modal/ModalHeader.tsx +27 -0
  72. package/src/components/Modal/ModalTitle.tsx +29 -0
  73. package/src/components/Modal/README.md +9 -9
  74. package/src/components/Modal/_helpers/{dialogOnCancelHandler.js → dialogOnCancelHandler.ts} +11 -1
  75. package/src/components/Modal/_helpers/{dialogOnClickHandler.js → dialogOnClickHandler.ts} +13 -7
  76. package/src/components/Modal/_helpers/{dialogOnCloseHandler.js → dialogOnCloseHandler.ts} +11 -1
  77. package/src/components/Modal/_helpers/{dialogOnKeyDownHandler.js → dialogOnKeyDownHandler.ts} +19 -6
  78. package/src/components/Modal/_helpers/{getJustifyClassName.js → getJustifyClassName.ts} +4 -1
  79. package/src/components/Modal/_helpers/getPositionClassName.ts +10 -0
  80. package/src/components/Modal/_helpers/getScrollingClassName.ts +14 -0
  81. package/src/components/Modal/_helpers/{getSizeClassName.js → getSizeClassName.ts} +4 -1
  82. package/src/components/Modal/_hooks/{useModalFocus.js → useModalFocus.ts} +9 -5
  83. package/src/components/Modal/_hooks/{useModalScrollPrevention.js → useModalScrollPrevention.ts} +4 -1
  84. package/src/components/Modal/{index.js → index.ts} +14 -0
  85. package/src/components/Paper/{Paper.jsx → Paper.tsx} +6 -26
  86. package/src/components/Paper/Paper.types.ts +19 -0
  87. package/src/components/Paper/README.md +3 -4
  88. package/src/components/Paper/index.ts +2 -0
  89. package/src/components/Popover/Popover.module.scss +1 -1
  90. package/src/components/Popover/Popover.tsx +61 -0
  91. package/src/components/Popover/Popover.types.ts +75 -0
  92. package/src/components/Popover/PopoverWrapper.tsx +27 -0
  93. package/src/components/Popover/README.md +34 -22
  94. package/src/components/Popover/_helpers/{cleanPlacementStyle.js → cleanPlacementStyle.ts} +4 -1
  95. package/src/components/Popover/_helpers/{getRootAlignmentClassName.js → getRootAlignmentClassName.ts} +4 -1
  96. package/src/components/Popover/_helpers/{getRootSideClassName.js → getRootSideClassName.ts} +4 -1
  97. package/src/components/Popover/index.ts +8 -0
  98. package/src/components/Radio/README.md +125 -48
  99. package/src/components/Radio/Radio.module.scss +7 -3
  100. package/src/components/Radio/Radio.tsx +116 -0
  101. package/src/components/Radio/Radio.types.ts +91 -0
  102. package/src/components/Radio/index.ts +5 -0
  103. package/src/components/ScrollView/README.md +1 -1
  104. package/src/components/ScrollView/ScrollView.module.scss +5 -0
  105. package/src/components/ScrollView/{ScrollView.jsx → ScrollView.tsx} +55 -166
  106. package/src/components/ScrollView/ScrollView.types.ts +121 -0
  107. package/src/components/ScrollView/_helpers/getElementsPositionDifference.ts +17 -0
  108. package/src/components/ScrollView/_hooks/{useLoadResizeHook.js → useLoadResizeHook.ts} +14 -3
  109. package/src/components/ScrollView/_hooks/{useScrollPositionHook.js → useScrollPositionHook.ts} +11 -4
  110. package/src/components/ScrollView/index.ts +6 -0
  111. package/src/components/SelectField/README.md +137 -51
  112. package/src/components/SelectField/SelectField.module.scss +7 -3
  113. package/src/components/SelectField/SelectField.tsx +139 -0
  114. package/src/components/SelectField/SelectField.types.ts +121 -0
  115. package/src/components/SelectField/_components/Option/Option.tsx +19 -0
  116. package/src/components/SelectField/_components/Option/Option.types.ts +21 -0
  117. package/src/components/SelectField/_components/Option/index.ts +2 -0
  118. package/src/components/SelectField/index.ts +7 -0
  119. package/src/components/Table/README.md +1 -1
  120. package/src/components/Table/{Table.jsx → Table.tsx} +4 -43
  121. package/src/components/Table/Table.types.ts +51 -0
  122. package/src/components/Table/_components/TableBodyCell/TableBodyCell.tsx +20 -0
  123. package/src/components/Table/_components/TableBodyCell/TableBodyCell.types.ts +20 -0
  124. package/src/components/Table/_components/TableBodyCell/index.ts +2 -0
  125. package/src/components/Table/_components/TableHeaderCell/{TableHeaderCell.jsx → TableHeaderCell.tsx} +3 -34
  126. package/src/components/Table/_components/TableHeaderCell/TableHeaderCell.types.ts +20 -0
  127. package/src/components/Table/_components/TableHeaderCell/index.ts +2 -0
  128. package/src/components/Table/index.ts +8 -0
  129. package/src/components/Tabs/README.md +2 -2
  130. package/src/components/Tabs/{Tabs.jsx → Tabs.tsx} +4 -20
  131. package/src/components/Tabs/Tabs.types.ts +19 -0
  132. package/src/components/Tabs/TabsItem.tsx +49 -0
  133. package/src/components/Tabs/TabsItem.types.ts +42 -0
  134. package/src/components/Tabs/index.ts +4 -0
  135. package/src/components/Text/README.md +1 -1
  136. package/src/components/Text/Text.module.scss +5 -7
  137. package/src/components/Text/Text.tsx +46 -0
  138. package/src/components/Text/Text.types.ts +31 -0
  139. package/src/components/Text/_helpers/getRootClampClassName.ts +13 -0
  140. package/src/components/Text/_helpers/getRootHyphensClassName.ts +14 -0
  141. package/src/components/Text/_helpers/getRootWordWrappingClassName.ts +14 -0
  142. package/src/components/Text/index.ts +6 -0
  143. package/src/components/TextArea/README.md +35 -14
  144. package/src/components/TextArea/TextArea.module.scss +7 -3
  145. package/src/components/TextArea/TextArea.tsx +95 -0
  146. package/src/components/TextArea/TextArea.types.ts +76 -0
  147. package/src/components/TextArea/index.ts +5 -0
  148. package/src/components/TextField/README.md +35 -13
  149. package/src/components/TextField/TextField.module.scss +7 -3
  150. package/src/components/TextField/TextField.tsx +112 -0
  151. package/src/components/TextField/TextField.types.ts +95 -0
  152. package/src/components/TextField/index.ts +6 -0
  153. package/src/components/TextLink/README.md +2 -2
  154. package/src/components/TextLink/{TextLink.jsx → TextLink.tsx} +4 -15
  155. package/src/components/TextLink/TextLink.types.ts +12 -0
  156. package/src/components/TextLink/index.ts +2 -0
  157. package/src/components/Toggle/README.md +92 -45
  158. package/src/components/Toggle/Toggle.module.scss +7 -3
  159. package/src/components/Toggle/Toggle.tsx +82 -0
  160. package/src/components/Toggle/Toggle.types.ts +59 -0
  161. package/src/components/Toggle/index.ts +5 -0
  162. package/src/components/Toolbar/README.md +3 -3
  163. package/src/components/Toolbar/Toolbar.tsx +41 -0
  164. package/src/components/Toolbar/Toolbar.types.ts +74 -0
  165. package/src/components/Toolbar/ToolbarGroup.tsx +38 -0
  166. package/src/components/Toolbar/{ToolbarItem.jsx → ToolbarItem.tsx} +5 -21
  167. package/src/components/Toolbar/_helpers/{getAlignClassName.js → getAlignClassName.ts} +8 -1
  168. package/src/components/Toolbar/_helpers/{getJustifyClassName.js → getJustifyClassName.ts} +4 -1
  169. package/src/components/Toolbar/{index.js → index.ts} +7 -0
  170. package/src/components/_helpers/{getRootColorClassName.js → getRootColorClassName.ts} +7 -2
  171. package/src/components/_helpers/{getRootPriorityClassName.js → getRootPriorityClassName.ts} +7 -2
  172. package/src/components/_helpers/{getRootSizeClassName.js → getRootSizeClassName.ts} +7 -2
  173. package/src/components/_helpers/getRootStateClassName.ts +24 -0
  174. package/src/components/_helpers/resolveContextOrProp.ts +13 -0
  175. package/src/helpers/classNames/{classNames.js → classNames.ts} +2 -2
  176. package/src/helpers/isChildrenEmpty/isChildrenEmpty.ts +5 -0
  177. package/src/helpers/transferProps/transferProps.ts +50 -0
  178. package/src/helpers/transferProps/transferProps.types.ts +11 -0
  179. package/src/index.ts +211 -0
  180. package/src/providers/globalProps/GlobalProps.types.ts +30 -0
  181. package/src/providers/globalProps/GlobalPropsContext.ts +6 -0
  182. package/src/providers/globalProps/{GlobalPropsProvider.jsx → GlobalPropsProvider.tsx} +8 -15
  183. package/src/providers/globalProps/{index.js → index.ts} +4 -0
  184. package/src/providers/globalProps/withGlobalProps.tsx +36 -0
  185. package/src/providers/translations/Translations.types.ts +26 -0
  186. package/src/providers/translations/TranslationsContext.ts +7 -0
  187. package/src/providers/translations/{TranslationsProvider.jsx → TranslationsProvider.tsx} +8 -15
  188. package/src/providers/translations/{index.js → index.ts} +5 -0
  189. package/src/styles/settings/_form-fields.scss +2 -1
  190. package/src/styles/theme/_form-fields.scss +16 -11
  191. package/src/styles/theme-constants/_colors.scss +21 -0
  192. package/src/styles/tools/_accessibility.scss +2 -2
  193. package/src/styles/tools/form-fields/_box-field-layout.scss +5 -8
  194. package/src/styles/tools/form-fields/_inline-field-elements.scss +0 -7
  195. package/src/styles/tools/form-fields/_inline-field-layout.scss +0 -8
  196. package/src/styles/tools/form-fields/_variants.scss +7 -7
  197. package/src/theme.scss +37 -12
  198. package/src/translations/{en.js → en.ts} +3 -1
  199. package/src/types/breakpoints.ts +1 -0
  200. package/src/types/colors.ts +7 -0
  201. package/src/types/index.ts +13 -0
  202. package/src/types/labelPositions.ts +1 -0
  203. package/src/types/layouts.ts +1 -0
  204. package/src/types/modules.d.ts +16 -0
  205. package/src/types/priorities.ts +1 -0
  206. package/src/types/sizes.ts +1 -0
  207. package/src/types/states.ts +1 -0
  208. package/src/types/styles.ts +4 -0
  209. package/src/utils/mergeDeep.ts +34 -0
  210. package/src/utils/mergeDeep.types.ts +4 -0
  211. package/.claude/agents/code-reviewer.md +0 -122
  212. package/.claude/rules/code.md +0 -22
  213. package/.claude/rules/docs.md +0 -35
  214. package/.claude/rules/frontend.md +0 -72
  215. package/.claude/rules/git.md +0 -13
  216. package/.claude/rules/safety-guards.md +0 -9
  217. package/.claude/rules/styling.md +0 -32
  218. package/.claude/rules/testing.md +0 -59
  219. package/.claude/settings.json +0 -32
  220. package/.claude/skills/commit/SKILL.md +0 -54
  221. package/.devcontainer/devcontainer.json +0 -23
  222. package/.eslintrc-ts +0 -40
  223. package/.mcp.json +0 -8
  224. package/.nvmrc +0 -1
  225. package/CLAUDE.md +0 -82
  226. package/docker-compose.base.yml +0 -93
  227. package/docker-compose.yml.dist +0 -41
  228. package/jest.config-ts.js +0 -34
  229. package/opencode.json +0 -10
  230. package/playwright-ct.config.ts +0 -68
  231. package/scripts/auto-start-mkdocs.sh +0 -5
  232. package/scripts/auto-start-node.sh +0 -33
  233. package/scripts/mcps/chrome-host/README.md +0 -118
  234. package/scripts/mcps/chrome-host/cdp_proxy.py +0 -90
  235. package/scripts/mcps/chrome-host/mcp-entry.sh +0 -33
  236. package/scripts/mcps/chrome-host/mcp-launch.sh +0 -36
  237. package/scripts/mcps/chrome-host/mcp-setup.sh +0 -70
  238. package/scripts/mcps/chrome-host/start-host-chrome.sh +0 -267
  239. package/setup.sh +0 -107
  240. package/src/CNAME +0 -1
  241. package/src/components/Alert/index.js +0 -1
  242. package/src/components/Badge/Badge.jsx +0 -51
  243. package/src/components/Badge/index.js +0 -1
  244. package/src/components/Button/Button.jsx +0 -203
  245. package/src/components/Button/helpers/getRootPriorityClassName.js +0 -15
  246. package/src/components/Button/index.js +0 -1
  247. package/src/components/ButtonGroup/ButtonGroupContext.js +0 -3
  248. package/src/components/Card/Card.jsx +0 -67
  249. package/src/components/CheckboxField/CheckboxField.jsx +0 -144
  250. package/src/components/CheckboxField/index.js +0 -1
  251. package/src/components/FileInputField/index.js +0 -1
  252. package/src/components/FormLayout/FormLayoutContext.js +0 -3
  253. package/src/components/FormLayout/FormLayoutCustomFieldContext.js +0 -3
  254. package/src/components/FormLayout/index.js +0 -4
  255. package/src/components/Grid/Grid.jsx +0 -225
  256. package/src/components/Grid/GridSpan.jsx +0 -88
  257. package/src/components/Grid/_helpers/generateResponsiveCustomProperties.js +0 -22
  258. package/src/components/Grid/index.js +0 -2
  259. package/src/components/InputGroup/InputGroupContext.js +0 -3
  260. package/src/components/Modal/Modal.jsx +0 -262
  261. package/src/components/Modal/ModalBody.jsx +0 -60
  262. package/src/components/Modal/ModalFooter.jsx +0 -42
  263. package/src/components/Modal/ModalHeader.jsx +0 -42
  264. package/src/components/Modal/ModalTitle.jsx +0 -42
  265. package/src/components/Modal/_helpers/getPositionClassName.js +0 -7
  266. package/src/components/Modal/_helpers/getScrollingClassName.js +0 -11
  267. package/src/components/Paper/index.js +0 -1
  268. package/src/components/Popover/Popover.jsx +0 -124
  269. package/src/components/Popover/PopoverWrapper.jsx +0 -38
  270. package/src/components/Popover/index.js +0 -2
  271. package/src/components/Radio/Radio.jsx +0 -212
  272. package/src/components/Radio/index.js +0 -1
  273. package/src/components/ScrollView/_helpers/getElementsPositionDifference.js +0 -11
  274. package/src/components/ScrollView/index.js +0 -1
  275. package/src/components/SelectField/SelectField.jsx +0 -272
  276. package/src/components/SelectField/_components/Option/Option.jsx +0 -46
  277. package/src/components/SelectField/_components/Option/index.js +0 -1
  278. package/src/components/SelectField/index.js +0 -1
  279. package/src/components/Table/_components/TableBodyCell/TableBodyCell.jsx +0 -46
  280. package/src/components/Table/_components/TableBodyCell/index.js +0 -1
  281. package/src/components/Table/_components/TableHeaderCell/index.js +0 -1
  282. package/src/components/Table/index.js +0 -1
  283. package/src/components/Tabs/TabsItem.jsx +0 -91
  284. package/src/components/Tabs/index.js +0 -2
  285. package/src/components/Text/Text.jsx +0 -76
  286. package/src/components/Text/_helpers/getRootClampClassName.js +0 -11
  287. package/src/components/Text/_helpers/getRootHyphensClassName.js +0 -11
  288. package/src/components/Text/_helpers/getRootWordWrappingClassName.js +0 -11
  289. package/src/components/Text/index.js +0 -1
  290. package/src/components/TextArea/TextArea.jsx +0 -174
  291. package/src/components/TextArea/index.js +0 -1
  292. package/src/components/TextField/TextField.jsx +0 -208
  293. package/src/components/TextField/index.js +0 -1
  294. package/src/components/TextLink/index.js +0 -1
  295. package/src/components/Toggle/Toggle.jsx +0 -144
  296. package/src/components/Toggle/index.js +0 -1
  297. package/src/components/Toolbar/Toolbar.jsx +0 -76
  298. package/src/components/Toolbar/ToolbarGroup.jsx +0 -64
  299. package/src/components/_helpers/getRootValidationStateClassName.js +0 -15
  300. package/src/components/_helpers/resolveContextOrProp.js +0 -10
  301. package/src/helpers/isChildrenEmpty/isChildrenEmpty.js +0 -3
  302. package/src/helpers/transferProps/transferProps.js +0 -38
  303. package/src/index.js +0 -67
  304. package/src/providers/globalProps/GlobalPropsContext.jsx +0 -5
  305. package/src/providers/globalProps/withGlobalProps.jsx +0 -38
  306. package/src/providers/translations/TranslationsContext.jsx +0 -6
  307. package/src/utils/mergeDeep.js +0 -28
  308. package/tsconfig.json +0 -27
  309. /package/src/helpers/classNames/{index.js → index.ts} +0 -0
  310. /package/src/helpers/isChildrenEmpty/{index.js → index.ts} +0 -0
  311. /package/src/helpers/transferProps/{index.js → index.ts} +0 -0
@@ -0,0 +1,1936 @@
1
+ // Generated by dts-bundle-generator v9.5.1
2
+
3
+ import React$1 from 'react';
4
+ import { AnchorHTMLAttributes, ButtonHTMLAttributes, ChangeEvent, DialogHTMLAttributes, DragEvent as DragEvent$1, FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, JSX, MouseEventHandler, ReactNode, Ref, RefObject, SelectHTMLAttributes, TableHTMLAttributes, TextareaHTMLAttributes } from 'react';
5
+
6
+ export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "x2l" | "x3l";
7
+ export type ActionColor = "primary" | "secondary" | "selected";
8
+ export type FeedbackColor = "success" | "warning" | "danger" | "help" | "info" | "note";
9
+ export type NeutralColor = "light" | "dark";
10
+ export type Color = ActionColor | FeedbackColor | NeutralColor;
11
+ export type LabelPosition = "before" | "after";
12
+ export type Layout = "horizontal" | "vertical";
13
+ export type Priority = "filled" | "outline" | "flat";
14
+ export type Size = "small" | "medium" | "large";
15
+ export type State = "changed" | "invalid" | "valid" | "warning";
16
+ /**
17
+ * Class names exported by a CSS Module.
18
+ */
19
+ export type CssModuleClasses = Readonly<Record<string, string>>;
20
+ export type AlertProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "color"> & {
21
+ /**
22
+ * Alert body.
23
+ */
24
+ children: React$1.ReactNode;
25
+ /**
26
+ * Color variant to clarify importance and meaning of the alert. Implements
27
+ * [Feedback color collection](/docs/foundation/collections#colors).
28
+ */
29
+ color?: FeedbackColor;
30
+ /**
31
+ * Optional element to be displayed next to the alert body.
32
+ */
33
+ icon?: React$1.ReactNode;
34
+ /**
35
+ * ID of the root HTML element.
36
+ *
37
+ * Also serves as base for ids of nested elements:
38
+ * * `<ID>__close`
39
+ * * `<ID>__content`
40
+ */
41
+ id?: string;
42
+ /**
43
+ * Function to call when the close button is clicked. If not provided, close buttons will be
44
+ * hidden.
45
+ */
46
+ onClose?: () => void;
47
+ };
48
+ declare const AlertWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "color"> & {
49
+ children: React$1.ReactNode;
50
+ color?: FeedbackColor;
51
+ icon?: React$1.ReactNode;
52
+ id?: string;
53
+ onClose?: () => void;
54
+ } & React$1.RefAttributes<never>>;
55
+ export type BadgePriority = Exclude<Priority, "flat">;
56
+ export type BadgeProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "color"> & {
57
+ /**
58
+ * Color to clarify importance and meaning of the badge. Implements
59
+ * [Feedback and Neutral color collections](/docs/foundation/collections#colors).
60
+ */
61
+ color?: FeedbackColor | NeutralColor;
62
+ /**
63
+ * Text to be displayed.
64
+ */
65
+ label: string;
66
+ /**
67
+ * Visual priority to highlight or suppress the badge.
68
+ */
69
+ priority?: BadgePriority;
70
+ };
71
+ declare const BadgeWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "color"> & {
72
+ color?: FeedbackColor | NeutralColor;
73
+ label: string;
74
+ priority?: BadgePriority;
75
+ } & React$1.RefAttributes<never>>;
76
+ export type ButtonLabelVisibility = Breakpoint | "none";
77
+ export type ButtonType = "button" | "submit";
78
+ /**
79
+ * Props of the `Button` component.
80
+ */
81
+ export type ButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "type"> & {
82
+ /**
83
+ * Element to be displayed after label, eg. an icon.
84
+ */
85
+ afterLabel?: React$1.ReactNode;
86
+ /**
87
+ * Element to be displayed before label, eg. an icon.
88
+ */
89
+ beforeLabel?: React$1.ReactNode;
90
+ /**
91
+ * If `true`, the button will span the full width of its parent.
92
+ *
93
+ * Ignored if the component is rendered within `ButtonGroup` component
94
+ * as the value is inherited in such case.
95
+ */
96
+ block?: boolean;
97
+ /**
98
+ * Color variant to clarify importance and meaning of the alert. Implements
99
+ * [Action, Feedback and Neutral color collections](/docs/foundation/collections#colors).
100
+ */
101
+ color?: Color;
102
+ /**
103
+ * If `true`, the button will be disabled.
104
+ *
105
+ * Ignored if the component is rendered within `ButtonGroup` component
106
+ * as the value is inherited in such case.
107
+ */
108
+ disabled?: boolean;
109
+ /**
110
+ * Element to be displayed in the top right corner.
111
+ */
112
+ endCorner?: React$1.ReactNode;
113
+ /**
114
+ * Element to be displayed as a feedback icon on top of button label. When defined, it implies the
115
+ * button is in feedback state.
116
+ */
117
+ feedbackIcon?: React$1.ReactNode;
118
+ /**
119
+ * ID of the root HTML element.
120
+ *
121
+ * Also serves as base for ids of nested elements:
122
+ * * `<ID>__labelText`
123
+ */
124
+ id?: string;
125
+ /**
126
+ * Button label.
127
+ */
128
+ label: string;
129
+ /**
130
+ * Defines minimum breakpoint from which the button label will be visible.
131
+ */
132
+ labelVisibility?: ButtonLabelVisibility;
133
+ /**
134
+ * Visual priority to highlight or suppress the button.
135
+ *
136
+ * Ignored if the component is rendered within `ButtonGroup` component
137
+ * as the value is inherited in such case.
138
+ */
139
+ priority?: Priority;
140
+ /**
141
+ * Size of the button.
142
+ *
143
+ * Ignored if the component is rendered within `ButtonGroup` or `InputGroup` component as the value is inherited in
144
+ * such case.
145
+ */
146
+ size?: Size;
147
+ /**
148
+ * Element to be displayed in the top left corner.
149
+ */
150
+ startCorner?: React$1.ReactNode;
151
+ /**
152
+ * Set the HTML `type` attribute of the `button` element.
153
+ */
154
+ type?: ButtonType;
155
+ };
156
+ declare const ButtonWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "color" | "type"> & {
157
+ afterLabel?: React$1.ReactNode;
158
+ beforeLabel?: React$1.ReactNode;
159
+ block?: boolean;
160
+ color?: Color;
161
+ disabled?: boolean;
162
+ endCorner?: React$1.ReactNode;
163
+ feedbackIcon?: React$1.ReactNode;
164
+ id?: string;
165
+ label: string;
166
+ labelVisibility?: ButtonLabelVisibility;
167
+ priority?: Priority;
168
+ size?: Size;
169
+ startCorner?: React$1.ReactNode;
170
+ type?: ButtonType;
171
+ } & React$1.RefAttributes<HTMLButtonElement>>;
172
+ /**
173
+ * Props of the `ButtonGroup` component.
174
+ */
175
+ export type ButtonGroupProps = Omit<React$1.FieldsetHTMLAttributes<HTMLFieldSetElement>, "disabled"> & {
176
+ /**
177
+ * If `true`, the button group will span the full width of its parent.
178
+ */
179
+ block?: boolean;
180
+ /**
181
+ * Buttons to be grouped. If none are provided nothing is rendered.
182
+ */
183
+ children?: React$1.ReactNode;
184
+ /**
185
+ * If `true`, all buttons inside the group will be disabled.
186
+ */
187
+ disabled?: boolean;
188
+ /**
189
+ * Visual priority to highlight or suppress the buttons.
190
+ */
191
+ priority?: Priority;
192
+ /**
193
+ * Size of the buttons.
194
+ */
195
+ size?: Size;
196
+ };
197
+ /**
198
+ * Values `ButtonGroup` provides to the buttons rendered inside it.
199
+ */
200
+ export type ButtonGroupContextValue = {
201
+ block: boolean;
202
+ disabled: boolean;
203
+ priority: Priority;
204
+ size: Size;
205
+ };
206
+ declare const ButtonGroupWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.FieldsetHTMLAttributes<HTMLFieldSetElement>, "disabled"> & {
207
+ block?: boolean;
208
+ children?: React$1.ReactNode;
209
+ disabled?: boolean;
210
+ priority?: Priority;
211
+ size?: Size;
212
+ } & React$1.RefAttributes<never>>;
213
+ export type CardProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "color"> & {
214
+ /**
215
+ * Slot for individual card elements that build up the inner layout:
216
+ * * `CardBody`
217
+ * * `CardFooter`
218
+ * * `ScrollView`
219
+ */
220
+ children: React$1.ReactNode;
221
+ /**
222
+ * Color to clarify importance and meaning of the card. Implements
223
+ * [Feedback color collection](/docs/foundation/collections#colors).
224
+ */
225
+ color?: FeedbackColor;
226
+ /**
227
+ * Make the card more compact.
228
+ */
229
+ dense?: boolean;
230
+ /**
231
+ * If `true`, the card will be disabled.
232
+ */
233
+ disabled?: boolean;
234
+ /**
235
+ * Add shadow to pull the card above surface.
236
+ */
237
+ raised?: boolean;
238
+ };
239
+ export type CardBodyProps = React$1.HTMLAttributes<HTMLDivElement> & {
240
+ /**
241
+ * Content of the card.
242
+ */
243
+ children: React$1.ReactNode;
244
+ };
245
+ export type CardFooterProps = React$1.HTMLAttributes<HTMLDivElement> & {
246
+ /**
247
+ * Card actions, usually buttons.
248
+ */
249
+ children?: React$1.ReactNode;
250
+ };
251
+ declare const CardWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "color"> & {
252
+ children: React$1.ReactNode;
253
+ color?: FeedbackColor;
254
+ dense?: boolean;
255
+ disabled?: boolean;
256
+ raised?: boolean;
257
+ } & React$1.RefAttributes<never>>;
258
+ declare const CardBodyWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
259
+ children: React$1.ReactNode;
260
+ } & React$1.RefAttributes<never>>;
261
+ declare const CardFooterWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
262
+ children?: React$1.ReactNode;
263
+ } & React$1.RefAttributes<never>>;
264
+ export type CheckboxFieldLabelPosition = LabelPosition;
265
+ /**
266
+ * Props of the `CheckboxField` component.
267
+ */
268
+ export type CheckboxFieldProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
269
+ /**
270
+ * If `true`, the input will be disabled.
271
+ */
272
+ disabled?: boolean;
273
+ /**
274
+ * Optional help text.
275
+ */
276
+ helpText?: React$1.ReactNode;
277
+ /**
278
+ * ID of the `<input>` HTML element.
279
+ *
280
+ * Also serves as base for ids of nested elements:
281
+ * * `<ID>__label`
282
+ * * `<ID>__labelText`
283
+ * * `<ID>__helpText`
284
+ * * `<ID>__validationText`
285
+ */
286
+ id?: string;
287
+ /**
288
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
289
+ * technologies).
290
+ */
291
+ isLabelVisible?: boolean;
292
+ /**
293
+ * Checkbox field label.
294
+ */
295
+ label: React$1.ReactNode;
296
+ /**
297
+ * Placement of the label relative to the input.
298
+ */
299
+ labelPosition?: CheckboxFieldLabelPosition;
300
+ /**
301
+ * If `true`, the input will be rendered as if it was required.
302
+ */
303
+ renderAsRequired?: boolean;
304
+ /**
305
+ * If `true`, the input will be made and rendered as required, regardless of the `renderAsRequired` prop.
306
+ */
307
+ required?: boolean;
308
+ /**
309
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
310
+ * against the saved value.
311
+ */
312
+ state?: State;
313
+ /**
314
+ * Validation message to be displayed.
315
+ */
316
+ validationText?: React$1.ReactNode;
317
+ };
318
+ declare const CheckboxFieldWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
319
+ disabled?: boolean;
320
+ helpText?: React$1.ReactNode;
321
+ id?: string;
322
+ isLabelVisible?: boolean;
323
+ label: React$1.ReactNode;
324
+ labelPosition?: CheckboxFieldLabelPosition;
325
+ renderAsRequired?: boolean;
326
+ required?: boolean;
327
+ state?: State;
328
+ validationText?: React$1.ReactNode;
329
+ } & React$1.RefAttributes<HTMLInputElement>>;
330
+ export type FileInputFieldFilesChangedEvent = React$1.ChangeEvent<HTMLInputElement> | React$1.DragEvent<HTMLDivElement> | Event | null;
331
+ /**
332
+ * Element exposed through `ref`: the `<input>` element extended with `resetState()`.
333
+ */
334
+ export type FileInputFieldRef = HTMLInputElement & {
335
+ resetState: () => void;
336
+ };
337
+ /**
338
+ * Props of the `FileInputField` component.
339
+ */
340
+ export type FileInputFieldProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "id" | "size" | "type"> & {
341
+ /**
342
+ * If `true`, the input will be disabled.
343
+ */
344
+ disabled?: boolean;
345
+ /**
346
+ * If `true`, the field will span the full width of its parent.
347
+ */
348
+ fullWidth?: boolean;
349
+ /**
350
+ * Optional help text.
351
+ *
352
+ * Help text is never rendered when the component is placed into `InputGroup`.
353
+ * If a help text is needed, it must be defined on the `InputGroup` component instead.
354
+ */
355
+ helpText?: React$1.ReactNode;
356
+ /**
357
+ * ID of the `<input>` HTML element.
358
+ *
359
+ * Also serves as base for ids of nested elements:
360
+ * * `<ID>__label`
361
+ * * `<ID>__labelText`
362
+ * * `<ID>__helpText`
363
+ * * `<ID>__validationText`
364
+ */
365
+ id: string;
366
+ /**
367
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
368
+ * technologies).
369
+ *
370
+ * Automatically set to `false` when the component is rendered within `FormLayoutCustomField`
371
+ * component.
372
+ */
373
+ isLabelVisible?: boolean;
374
+ /**
375
+ * File input field label.
376
+ */
377
+ label: React$1.ReactNode;
378
+ /**
379
+ * Layout of the field.
380
+ *
381
+ * Ignored if the component is rendered within `FormLayout` component
382
+ * as the value is inherited in such case.
383
+ *
384
+ */
385
+ layout?: Layout;
386
+ /**
387
+ * If `true`, the input will accept multiple files.
388
+ */
389
+ multiple?: boolean;
390
+ /**
391
+ * Callback fired when the value of the input changes.
392
+ */
393
+ onFilesChanged: (files: FileList | File[], event: FileInputFieldFilesChangedEvent) => void;
394
+ /**
395
+ * If `true`, the input will be required.
396
+ */
397
+ required?: boolean;
398
+ /**
399
+ * Size of the field.
400
+ *
401
+ * Ignored if the component is rendered within `InputGroup` component as the value is inherited in such case.
402
+ */
403
+ size?: Size;
404
+ /**
405
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
406
+ * against the saved value.
407
+ */
408
+ state?: State;
409
+ /**
410
+ * Validation message to be displayed.
411
+ *
412
+ * Validation text is never rendered when the component is placed into `InputGroup`.
413
+ * If a validation text is needed, it must be defined on the `InputGroup` component instead.
414
+ */
415
+ validationText?: React$1.ReactNode;
416
+ };
417
+ declare const FileInputFieldWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "id" | "size" | "type"> & {
418
+ disabled?: boolean;
419
+ fullWidth?: boolean;
420
+ helpText?: React$1.ReactNode;
421
+ id: string;
422
+ isLabelVisible?: boolean;
423
+ label: React$1.ReactNode;
424
+ layout?: Layout;
425
+ multiple?: boolean;
426
+ onFilesChanged: (files: FileList | File[], event: FileInputFieldFilesChangedEvent) => void;
427
+ required?: boolean;
428
+ size?: Size;
429
+ state?: State;
430
+ validationText?: React$1.ReactNode;
431
+ } & React$1.RefAttributes<FileInputFieldRef>>;
432
+ export type FormLayoutPredefinedLabelWidth = "auto" | "default" | "limited";
433
+ /**
434
+ * Either one of the predefined values or any valid CSS width.
435
+ *
436
+ * @docoffOverrideType FormLayoutPredefinedLabelWidth | string
437
+ */
438
+ export type FormLayoutLabelWidth = FormLayoutPredefinedLabelWidth | (string & NonNullable<unknown>);
439
+ /**
440
+ * Props of the `FormLayout` component.
441
+ */
442
+ export type FormLayoutProps = React$1.HTMLAttributes<HTMLDivElement> & {
443
+ /**
444
+ * If `true`, FormLayout will take up only as much horizontal space as necessary.
445
+ */
446
+ autoWidth?: boolean;
447
+ /**
448
+ * Supported form field components:
449
+ * * `CheckboxField`
450
+ * * `FileInputField`
451
+ * * `FormLayoutCustomField`
452
+ * * `Radio`
453
+ * * `SelectField`
454
+ * * `TextArea`
455
+ * * `TextField`
456
+ * * `Toggle`
457
+ *
458
+ * If none are provided nothing is rendered.
459
+ */
460
+ children?: React$1.ReactNode;
461
+ /**
462
+ * Layout that is forced on children form fields.
463
+ */
464
+ fieldLayout?: Layout;
465
+ /**
466
+ * Width of the column with form field labels. Only available if the `fieldLayout` is set to
467
+ * `horizontal`.
468
+ */
469
+ labelWidth?: FormLayoutLabelWidth;
470
+ };
471
+ /**
472
+ * Values `FormLayout` provides to the fields rendered inside it.
473
+ */
474
+ export type FormLayoutContextValue = {
475
+ layout: Layout;
476
+ };
477
+ declare const FormLayoutWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
478
+ autoWidth?: boolean;
479
+ children?: React$1.ReactNode;
480
+ fieldLayout?: Layout;
481
+ labelWidth?: FormLayoutLabelWidth;
482
+ } & React$1.RefAttributes<never>>;
483
+ /**
484
+ * Props of the `FormLayoutCustomField` component.
485
+ */
486
+ export type FormLayoutCustomFieldProps = React$1.HTMLAttributes<HTMLDivElement> & {
487
+ /**
488
+ * Custom HTML or React component(s). If none are provided nothing is rendered.
489
+ */
490
+ children?: React$1.ReactNode;
491
+ /**
492
+ * If `true`, label will be shown as disabled.
493
+ */
494
+ disabled?: boolean;
495
+ /**
496
+ * If `true`, the field will span the full width of its parent.
497
+ */
498
+ fullWidth?: boolean;
499
+ /**
500
+ * ID of the root HTML element.
501
+ *
502
+ * Also serves as base for ids of nested elements:
503
+ * * `<ID>__field`
504
+ * * `<ID>__label`
505
+ */
506
+ id?: string;
507
+ /**
508
+ * Size of contained form field used to properly align label.
509
+ */
510
+ innerFieldSize?: Size;
511
+ /**
512
+ * Optional label of the field.
513
+ */
514
+ label?: string;
515
+ /**
516
+ * Optional ID of labeled field to keep accessibility features. Only available if `label` is set.
517
+ */
518
+ labelForId?: string;
519
+ /**
520
+ * If `true`, label will be styled as required.
521
+ */
522
+ required?: boolean;
523
+ /**
524
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
525
+ * against the saved value.
526
+ */
527
+ state?: State;
528
+ };
529
+ /**
530
+ * `true` when rendered inside `FormLayoutCustomField`.
531
+ */
532
+ export type FormLayoutCustomFieldContextValue = boolean;
533
+ declare const FormLayoutCustomFieldWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
534
+ children?: React$1.ReactNode;
535
+ disabled?: boolean;
536
+ fullWidth?: boolean;
537
+ id?: string;
538
+ innerFieldSize?: Size;
539
+ label?: string;
540
+ labelForId?: string;
541
+ required?: boolean;
542
+ state?: State;
543
+ } & React$1.RefAttributes<never>>;
544
+ /**
545
+ * A value that is either the same for all breakpoints or defined per breakpoint.
546
+ */
547
+ export type GridResponsiveValue<Value> = Value | Partial<Record<Breakpoint, Value>>;
548
+ export type GridSpacingValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
549
+ /**
550
+ * Any valid HTML tag.
551
+ *
552
+ * @docoffOverrideType string
553
+ */
554
+ export type GridTag = keyof React$1.JSX.IntrinsicElements & keyof HTMLElementTagNameMap;
555
+ /**
556
+ * Props of the `Grid` component.
557
+ */
558
+ export type GridProps = React$1.HTMLAttributes<HTMLElement> & {
559
+ /**
560
+ * Content alignment. Accepts any valid value of `align-content` CSS property.
561
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-content) for more.
562
+ */
563
+ alignContent?: GridResponsiveValue<string>;
564
+ /**
565
+ * Items alignment. Accepts any valid value of `align-items` CSS property.
566
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items) for more.
567
+ */
568
+ alignItems?: GridResponsiveValue<string>;
569
+ /**
570
+ * Grid auto-flow algorithm to be used. Accepts any valid value of `grid-auto-flow` CSS property.
571
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-flow) for more.
572
+ */
573
+ autoFlow?: GridResponsiveValue<string>;
574
+ /**
575
+ * Items to be aligned in the grid. If none are provided nothing is rendered.
576
+ */
577
+ children?: React$1.ReactNode;
578
+ /**
579
+ * Gap between columns. Accepts any of [spacing values](/docs/foundation/spacing-values) as number.
580
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap) for more about `column-gap`.
581
+ */
582
+ columnGap?: GridResponsiveValue<GridSpacingValue>;
583
+ /**
584
+ * Grid columns. Accepts any valid value of `grid-template-columns` CSS property.
585
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns) for more.
586
+ */
587
+ columns?: GridResponsiveValue<string>;
588
+ /**
589
+ * Content justification. Accepts any valid value of `justify-content` CSS property.
590
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) for more.
591
+ */
592
+ justifyContent?: GridResponsiveValue<string>;
593
+ /**
594
+ * Items justification. Accepts any valid value of `justify-items` CSS property.
595
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items) for more.
596
+ */
597
+ justifyItems?: GridResponsiveValue<string>;
598
+ /**
599
+ * Gap between rows. Accepts any of [spacing values](/docs/foundation/spacing-values) as number.
600
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/row-gap) for more about `row-gap`.
601
+ */
602
+ rowGap?: GridResponsiveValue<GridSpacingValue>;
603
+ /**
604
+ * Grid rows. Accepts any valid value of `grid-template-rows` CSS property.
605
+ * See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows) for more.
606
+ */
607
+ rows?: GridResponsiveValue<string>;
608
+ /**
609
+ * HTML tag to render. Can be any valid HTML tag of your choice, usually a
610
+ * [block-level element](https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements).
611
+ */
612
+ tag?: GridTag;
613
+ };
614
+ /**
615
+ * Props of the `GridSpan` component.
616
+ */
617
+ export type GridSpanProps = React$1.HTMLAttributes<HTMLElement> & {
618
+ /**
619
+ * Items to be aligned in the grid. If none are provided nothing is rendered.
620
+ */
621
+ children?: React$1.ReactNode;
622
+ /**
623
+ * Number of columns to span.
624
+ */
625
+ columns?: GridResponsiveValue<number>;
626
+ /**
627
+ * Number of rows to span.
628
+ */
629
+ rows?: GridResponsiveValue<number>;
630
+ /**
631
+ * HTML tag to render. Can be any valid HTML tag of your choice, usually a
632
+ * [block-level element](https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements).
633
+ */
634
+ tag?: GridTag;
635
+ };
636
+ declare const GridWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
637
+ alignContent?: GridResponsiveValue<string>;
638
+ alignItems?: GridResponsiveValue<string>;
639
+ autoFlow?: GridResponsiveValue<string>;
640
+ children?: React$1.ReactNode;
641
+ columnGap?: GridResponsiveValue<GridSpacingValue>;
642
+ columns?: GridResponsiveValue<string>;
643
+ justifyContent?: GridResponsiveValue<string>;
644
+ justifyItems?: GridResponsiveValue<string>;
645
+ rowGap?: GridResponsiveValue<GridSpacingValue>;
646
+ rows?: GridResponsiveValue<string>;
647
+ tag?: GridTag;
648
+ } & React$1.RefAttributes<HTMLElement>>;
649
+ declare const GridSpanWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
650
+ children?: React$1.ReactNode;
651
+ columns?: GridResponsiveValue<number>;
652
+ rows?: GridResponsiveValue<number>;
653
+ tag?: GridTag;
654
+ } & React$1.RefAttributes<HTMLElement>>;
655
+ /**
656
+ * Props of the `InputGroup` component.
657
+ */
658
+ export type InputGroupProps = Omit<React$1.FieldsetHTMLAttributes<HTMLFieldSetElement>, "disabled"> & {
659
+ /**
660
+ * Supported elements to be grouped:
661
+ * * `Button`
662
+ * * `SelectField`
663
+ * * `TextField`
664
+ *
665
+ * If none are provided nothing is rendered.
666
+ */
667
+ children?: React$1.ReactNode;
668
+ /**
669
+ * If `true`, the whole input group with all nested inputs and buttons will be disabled.
670
+ */
671
+ disabled?: boolean;
672
+ /**
673
+ * An array of help texts to be displayed.
674
+ */
675
+ helpTexts?: React$1.ReactNode[];
676
+ /**
677
+ * ID of the root HTML element.
678
+ *
679
+ * Also serves as base for ids of nested elements:
680
+ * * `<ID>__label`
681
+ * * `<ID>__displayLabel`
682
+ * * `<ID>__group`
683
+ * * `<ID>__validationTexts`
684
+ */
685
+ id?: string;
686
+ /**
687
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
688
+ * technologies).
689
+ */
690
+ isLabelVisible?: boolean;
691
+ /**
692
+ * Input group label.
693
+ */
694
+ label: React$1.ReactNode;
695
+ /**
696
+ * Layout of the group.
697
+ *
698
+ * Ignored if the component is rendered within `FormLayout` component
699
+ * as the value is inherited in such case.
700
+ */
701
+ layout?: Layout;
702
+ /**
703
+ * If `true`, the `InputGroup`'s label appears as required. Underlying `<fieldset>`
704
+ * element does not take `required` attribute so there is no functional effect.
705
+ */
706
+ required?: boolean;
707
+ /**
708
+ * Size of the `children` elements.
709
+ */
710
+ size?: Size;
711
+ /**
712
+ * An array of validation messages to be displayed.
713
+ */
714
+ validationTexts?: React$1.ReactNode[];
715
+ };
716
+ /**
717
+ * Values `InputGroup` provides to the fields and buttons rendered inside it.
718
+ */
719
+ export type InputGroupContextValue = {
720
+ disabled: boolean;
721
+ layout: Layout;
722
+ size: Size;
723
+ };
724
+ declare const InputGroupWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.FieldsetHTMLAttributes<HTMLFieldSetElement>, "disabled"> & {
725
+ children?: React$1.ReactNode;
726
+ disabled?: boolean;
727
+ helpTexts?: React$1.ReactNode[];
728
+ id?: string;
729
+ isLabelVisible?: boolean;
730
+ label: React$1.ReactNode;
731
+ layout?: Layout;
732
+ required?: boolean;
733
+ size?: Size;
734
+ validationTexts?: React$1.ReactNode[];
735
+ } & React$1.RefAttributes<never>>;
736
+ export type ModalJustify = "start" | "center" | "end" | "space-between" | "stretch";
737
+ export type ModalPosition = "top" | "center";
738
+ export type ModalScrolling = "auto" | "custom" | "none";
739
+ export type ModalScrollPrevention = "off" | HTMLElement | {
740
+ reset: () => void;
741
+ start: () => void;
742
+ };
743
+ export type ModalSize = Size | "fullscreen" | "auto";
744
+ /**
745
+ * Props of the `Modal` component.
746
+ */
747
+ export type ModalProps = Omit<React$1.DialogHTMLAttributes<HTMLDialogElement>, "color"> & {
748
+ /**
749
+ * If `true`, the `Modal` can be closed by clicking on the backdrop.
750
+ */
751
+ allowCloseOnBackdropClick?: boolean;
752
+ /**
753
+ * If `true`, the `Modal` can be closed by pressing the Escape key.
754
+ */
755
+ allowCloseOnEscapeKey?: boolean;
756
+ /**
757
+ * If `true`, the `Modal` can be submitted by pressing the Enter key.
758
+ */
759
+ allowPrimaryActionOnEnterKey?: boolean;
760
+ /**
761
+ * If `true`, focus the first input element in the `Modal`, or primary button (referenced by the `primaryButtonRef`
762
+ * prop), or other focusable element when the `Modal` is opened. If there are none or `autoFocus` is set to `false`,
763
+ * focus the Modal itself.
764
+ */
765
+ autoFocus?: boolean;
766
+ /**
767
+ * Nested elements. Supported types are:
768
+ *
769
+ * * `ModalHeader`
770
+ * * `ModalBody`
771
+ * * `ModalFooter`
772
+ *
773
+ * At least `ModalBody` is required.
774
+ */
775
+ children?: React$1.ReactNode;
776
+ /**
777
+ * Reference to close button element. It is used to close modal when Escape key is pressed
778
+ * or the backdrop is clicked.
779
+ */
780
+ closeButtonRef?: React$1.RefObject<HTMLButtonElement | null>;
781
+ /**
782
+ * Color to clarify importance and meaning of the modal. Implements
783
+ * [Feedback color collection](/docs/foundation/collections#colors).
784
+ */
785
+ color?: FeedbackColor;
786
+ /**
787
+ * Reference to dialog element
788
+ */
789
+ dialogRef?: React$1.Ref<HTMLDialogElement>;
790
+ /**
791
+ * If set, modal is rendered in the React Portal with that ID.
792
+ */
793
+ portalId?: string;
794
+ /**
795
+ * Vertical position of the modal inside browser window.
796
+ */
797
+ position?: ModalPosition;
798
+ /**
799
+ * Mode in which Modal prevents scroll of elements bellow:
800
+ * * `off` - Modal does not prevent any scroll
801
+ * * [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) - Modal prevents scroll on this HTML element
802
+ * * object
803
+ * * `reset` - method called on Modal's unmount to reset scroll prevention
804
+ * * `start` - method called on Modal's mount to custom scroll prevention
805
+ */
806
+ preventScrollUnderneath?: ModalScrollPrevention;
807
+ /**
808
+ * Reference to primary button element. It is used to submit modal when Enter key is pressed and as fallback
809
+ * when `autoFocus` functionality does not find any input element to be focused.
810
+ */
811
+ primaryButtonRef?: React$1.RefObject<HTMLButtonElement | null>;
812
+ /**
813
+ * Size of the modal.
814
+ */
815
+ size?: ModalSize;
816
+ };
817
+ export type ModalBodyProps = React$1.HTMLAttributes<HTMLDivElement> & {
818
+ /**
819
+ * Nested elements. Supported types are:
820
+ *
821
+ * * `ModalContent`
822
+ * * `ScrollView` (`scrolling: 'custom'` must be set)
823
+ *
824
+ * You can also provide a custom component responsible for scrolling and displaying content correctly.
825
+ * At most one nested element is allowed. If none are provided nothing is rendered.
826
+ */
827
+ children?: React$1.ReactNode;
828
+ /**
829
+ * Scrolling mode:
830
+ *
831
+ * - `auto`: scrolling is enabled on ModalBody.
832
+ * - `custom`: use if providing a custom scrolling component, e.g. an instance of `ScrollView`.
833
+ * - `none`: scrolling is disabled on ModalBody and the entire Modal is scrollable instead.
834
+ */
835
+ scrolling?: ModalScrolling;
836
+ };
837
+ export type ModalCloseButtonProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "title"> & {
838
+ /**
839
+ * If `true`, close button will be disabled.
840
+ */
841
+ disabled?: boolean;
842
+ };
843
+ export type ModalContentProps = React$1.HTMLAttributes<HTMLDivElement> & {
844
+ /**
845
+ * Content of the modal.
846
+ */
847
+ children?: React$1.ReactNode;
848
+ };
849
+ export type ModalFooterProps = React$1.HTMLAttributes<HTMLDivElement> & {
850
+ /**
851
+ * Content of the footer (preferably nested `Button` elements).
852
+ */
853
+ children: React$1.ReactNode;
854
+ /**
855
+ * Horizontal alignment (distribution) of individual buttons.
856
+ */
857
+ justify?: ModalJustify;
858
+ };
859
+ export type ModalHeaderProps = React$1.HTMLAttributes<HTMLDivElement> & {
860
+ /**
861
+ * Content of the header (preferably ModalTitle and ModalCloseButton).
862
+ */
863
+ children: React$1.ReactNode;
864
+ /**
865
+ * Horizontal alignment (distribution) of individual buttons.
866
+ */
867
+ justify?: ModalJustify;
868
+ };
869
+ export type ModalTitleProps = React$1.HTMLAttributes<HTMLHeadingElement> & {
870
+ /**
871
+ * Content of the header (preferably ModalTitle and ModalCloseButton).
872
+ */
873
+ children: React$1.ReactNode;
874
+ /**
875
+ * Optional heading level. Preferably `1` or `2` should be used, see
876
+ * [W3C recommendation](https://github.com/w3c/aria-practices/issues/551#issuecomment-365134527).
877
+ */
878
+ level?: number;
879
+ };
880
+ declare const ModalWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.DialogHTMLAttributes<HTMLDialogElement>, "color"> & {
881
+ allowCloseOnBackdropClick?: boolean;
882
+ allowCloseOnEscapeKey?: boolean;
883
+ allowPrimaryActionOnEnterKey?: boolean;
884
+ autoFocus?: boolean;
885
+ children?: React$1.ReactNode;
886
+ closeButtonRef?: React$1.RefObject<HTMLButtonElement | null>;
887
+ color?: FeedbackColor;
888
+ dialogRef?: React$1.Ref<HTMLDialogElement>;
889
+ portalId?: string;
890
+ position?: ModalPosition;
891
+ preventScrollUnderneath?: ModalScrollPrevention;
892
+ primaryButtonRef?: React$1.RefObject<HTMLButtonElement | null>;
893
+ size?: ModalSize;
894
+ } & React$1.RefAttributes<never>>;
895
+ declare const ModalBodyWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
896
+ children?: React$1.ReactNode;
897
+ scrolling?: ModalScrolling;
898
+ } & React$1.RefAttributes<never>>;
899
+ declare const ModalCloseButtonWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "title"> & {
900
+ disabled?: boolean;
901
+ } & React$1.RefAttributes<HTMLButtonElement>>;
902
+ declare const ModalContentWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
903
+ children?: React$1.ReactNode;
904
+ } & React$1.RefAttributes<never>>;
905
+ declare const ModalHeaderWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
906
+ children: React$1.ReactNode;
907
+ justify?: ModalJustify;
908
+ } & React$1.RefAttributes<never>>;
909
+ declare const ModalFooterWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
910
+ children: React$1.ReactNode;
911
+ justify?: ModalJustify;
912
+ } & React$1.RefAttributes<never>>;
913
+ declare const ModalTitleWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & {
914
+ children: React$1.ReactNode;
915
+ level?: number;
916
+ } & React$1.RefAttributes<never>>;
917
+ export type PaperProps = React$1.HTMLAttributes<HTMLDivElement> & {
918
+ /**
919
+ * Content to be placed onto Paper.
920
+ */
921
+ children: React$1.ReactNode;
922
+ /**
923
+ * Visually suppress Paper.
924
+ */
925
+ muted?: boolean;
926
+ /**
927
+ * Add shadow to pull the Paper above surface.
928
+ */
929
+ raised?: boolean;
930
+ };
931
+ declare const PaperWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
932
+ children: React$1.ReactNode;
933
+ muted?: boolean;
934
+ raised?: boolean;
935
+ } & React$1.RefAttributes<never>>;
936
+ export type PopoverPlacement = "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
937
+ export type PopoverPlacementStyle = {
938
+ bottom?: string;
939
+ inset?: string;
940
+ "inset-block-end"?: string;
941
+ "inset-block-start"?: string;
942
+ "inset-inline-end"?: string;
943
+ "inset-inline-start"?: string;
944
+ left?: string;
945
+ position?: string;
946
+ right?: string;
947
+ top?: string;
948
+ "transform-origin"?: string;
949
+ translate?: string;
950
+ visibility?: string;
951
+ };
952
+ /**
953
+ * Props of the `Popover` component.
954
+ */
955
+ export type PopoverProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "style"> & {
956
+ /**
957
+ * Popover content.
958
+ */
959
+ children: React$1.ReactNode;
960
+ /**
961
+ * Popover placement affects position of the arrow.
962
+ * Compatible with [Floating UI API](https://floating-ui.com/docs/computePosition#placement).
963
+ */
964
+ placement?: PopoverPlacement;
965
+ /**
966
+ * Used for positioning the popover with a library like Floating UI. It is filtered,
967
+ * then passed to the popover as the `style` prop.
968
+ */
969
+ placementStyle?: PopoverPlacementStyle;
970
+ /**
971
+ * If set, the popover will become controlled, meaning it will be hidden by default and will need a trigger to open.
972
+ * This sets the ID of the internal helper element for the popover.
973
+ * Assign the same ID to `popovertarget` of a trigger to make it open and close.
974
+ */
975
+ popoverTargetId?: string;
976
+ /**
977
+ * If set, popover is rendered in the React Portal with that ID.
978
+ */
979
+ portalId?: string;
980
+ };
981
+ export type PopoverWrapperProps = React$1.HTMLAttributes<HTMLElement> & {
982
+ /**
983
+ * Popover reference and the Popover itself.
984
+ */
985
+ children: React$1.ReactNode;
986
+ /**
987
+ * HTML tag to render. Can be any valid HTML tag of your choice, usually a
988
+ * [block-level element](https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements).
989
+ */
990
+ tag?: string;
991
+ };
992
+ declare const PopoverWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "style"> & {
993
+ children: React$1.ReactNode;
994
+ placement?: PopoverPlacement;
995
+ placementStyle?: PopoverPlacementStyle;
996
+ popoverTargetId?: string;
997
+ portalId?: string;
998
+ } & React$1.RefAttributes<HTMLDivElement>>;
999
+ declare const PopoverWrapperWithContext: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
1000
+ children: React$1.ReactNode;
1001
+ tag?: string;
1002
+ } & React$1.RefAttributes<HTMLElement>>;
1003
+ export type RadioOption = {
1004
+ disabled?: boolean;
1005
+ key?: string;
1006
+ label: string;
1007
+ value: string | number;
1008
+ };
1009
+ /**
1010
+ * Props of the `Radio` component.
1011
+ */
1012
+ export type RadioProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> & {
1013
+ /**
1014
+ * If `true`, the input will be disabled.
1015
+ */
1016
+ disabled?: boolean;
1017
+ /**
1018
+ * Optional help text.
1019
+ */
1020
+ helpText?: React$1.ReactNode;
1021
+ /**
1022
+ * ID of the root HTML element.
1023
+ *
1024
+ * Also serves as base for ids of nested elements:
1025
+ * * `<ID>__label`
1026
+ * * `<ID>__displayLabel`
1027
+ * * `<ID>__helpText`
1028
+ * * `<ID>__validationText`
1029
+ *
1030
+ * and of individual options (`<input>`):
1031
+ * * `<ID>__item__<VALUE>`
1032
+ * * `<ID>__item__<VALUE>__label`
1033
+ * * `<ID>__item__<VALUE>__labelText`
1034
+ *
1035
+ * If `key` in the option definition object is set,
1036
+ * then `option.key` is used instead of `option.value` in place of `<VALUE>`.
1037
+ */
1038
+ id?: string;
1039
+ /**
1040
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
1041
+ * technologies).
1042
+ */
1043
+ isLabelVisible?: boolean;
1044
+ /**
1045
+ * Label of the group of options.
1046
+ */
1047
+ label: React$1.ReactNode;
1048
+ /**
1049
+ * Layout of the field.
1050
+ *
1051
+ * Ignored if the component is rendered within `FormLayout` component
1052
+ * as the value is inherited in such case.
1053
+ */
1054
+ layout?: Layout;
1055
+ /**
1056
+ * Set of options to be chosen from.
1057
+ *
1058
+ * For generating unique IDs the `option.value` is normally used. For cases when this is not practical or
1059
+ * the `option.value` values are not unique the `option.key` attribute can be set manually.
1060
+ */
1061
+ options: RadioOption[];
1062
+ /**
1063
+ * If `true`, the input will be rendered as if it was required.
1064
+ */
1065
+ renderAsRequired?: boolean;
1066
+ /**
1067
+ * If `true`, the input will be made and rendered as required, regardless of the `renderAsRequired` prop.
1068
+ */
1069
+ required?: boolean;
1070
+ /**
1071
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
1072
+ * against the saved value.
1073
+ */
1074
+ state?: State;
1075
+ /**
1076
+ * Validation message to be displayed.
1077
+ */
1078
+ validationText?: React$1.ReactNode;
1079
+ /**
1080
+ * Value of the input.
1081
+ */
1082
+ value?: string | number;
1083
+ };
1084
+ declare const RadioWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> & {
1085
+ disabled?: boolean;
1086
+ helpText?: React$1.ReactNode;
1087
+ id?: string;
1088
+ isLabelVisible?: boolean;
1089
+ label: React$1.ReactNode;
1090
+ layout?: Layout;
1091
+ options: RadioOption[];
1092
+ renderAsRequired?: boolean;
1093
+ required?: boolean;
1094
+ state?: State;
1095
+ validationText?: React$1.ReactNode;
1096
+ value?: string | number;
1097
+ } & React$1.RefAttributes<never>>;
1098
+ export type ScrollViewAutoScroll = "always" | "detectEnd" | "off";
1099
+ export type ScrollViewDirection = Layout;
1100
+ /**
1101
+ * Props of the `ScrollView` component.
1102
+ */
1103
+ export type ScrollViewProps = React$1.HTMLAttributes<HTMLDivElement> & {
1104
+ /**
1105
+ * If `true`, display the arrow controls.
1106
+ */
1107
+ arrows?: boolean;
1108
+ /**
1109
+ * Portion to scroll by when the arrows are clicked, in px.
1110
+ */
1111
+ arrowsScrollStep?: number;
1112
+ /**
1113
+ * The auto-scroll mechanism requires having the `key` prop set for every child present in `children`
1114
+ * because it detects changes of those keys. Without the keys, the auto-scroll will not work.
1115
+ *
1116
+ * Option `always` means the auto-scroll scrolls to the end every time the content changes.
1117
+ * Option `detectEnd` means the auto-scroll scrolls to the end only when the content is changed
1118
+ * and the user has scrolled at the end of the viewport at the moment of the change.
1119
+ *
1120
+ * See https://reactjs.org/docs/lists-and-keys.html#keys
1121
+ */
1122
+ autoScroll?: ScrollViewAutoScroll;
1123
+ /**
1124
+ * Content to be scrollable.
1125
+ */
1126
+ children?: React$1.ReactNode;
1127
+ /**
1128
+ * Delay in ms before the display of arrows and scrolling shadows is evaluated during interaction.
1129
+ */
1130
+ debounce?: number;
1131
+ /**
1132
+ * Direction of scrolling.
1133
+ */
1134
+ direction?: ScrollViewDirection;
1135
+ /**
1136
+ * Custom background of the end scrolling shadow. Can be a CSS gradient or an image `url()`.
1137
+ */
1138
+ endShadowBackground?: string;
1139
+ /**
1140
+ * Initial offset of the end scrolling shadow (transitioned). If set, the end scrolling shadow slides in
1141
+ * by this distance.
1142
+ */
1143
+ endShadowInitialOffset?: string;
1144
+ /**
1145
+ * Size of the end scrolling shadow. Accepts any valid CSS length value.
1146
+ */
1147
+ endShadowSize?: string;
1148
+ /**
1149
+ * ID of the root HTML element. It also serves as base for nested elements:
1150
+ * * `<ID>__content`
1151
+ * * `<ID>__arrowPrevButton`
1152
+ * * `<ID>__arrowNextButton`
1153
+ */
1154
+ id?: string;
1155
+ /**
1156
+ * Text color of the end arrow control. Accepts any valid CSS color value.
1157
+ */
1158
+ nextArrowColor?: string;
1159
+ /**
1160
+ * Custom HTML or React Component to replace the default next-arrow control.
1161
+ */
1162
+ nextArrowElement?: React$1.ReactNode;
1163
+ /**
1164
+ * Initial offset of the end arrow control (transitioned). If set, the next arrow slides in by this distance.
1165
+ */
1166
+ nextArrowInitialOffset?: string;
1167
+ /**
1168
+ * Text color of the start arrow control. Accepts any valid CSS color value.
1169
+ */
1170
+ prevArrowColor?: string;
1171
+ /**
1172
+ * Custom HTML or React Component to replace the default prev-arrow control.
1173
+ */
1174
+ prevArrowElement?: React$1.ReactNode;
1175
+ /**
1176
+ * Initial offset of the start arrow control (transitioned). If set, the prev arrow slides in by this distance.
1177
+ */
1178
+ prevArrowInitialOffset?: string;
1179
+ /**
1180
+ * If `false`, the system scrollbar will be hidden.
1181
+ */
1182
+ scrollbar?: boolean;
1183
+ /**
1184
+ * If `true`, display scrolling shadows.
1185
+ */
1186
+ shadows?: boolean;
1187
+ /**
1188
+ * Custom background of the start scrolling shadow. Can be a CSS gradient or an image `url()`.
1189
+ */
1190
+ startShadowBackground?: string;
1191
+ /**
1192
+ * Initial offset of the start scrolling shadow (transitioned). If set, the start scrolling shadow slides in
1193
+ * by this distance.
1194
+ */
1195
+ startShadowInitialOffset?: string;
1196
+ /**
1197
+ * Size of the start scrolling shadow. Accepts any valid CSS length value.
1198
+ */
1199
+ startShadowSize?: string;
1200
+ };
1201
+ declare const ScrollViewWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
1202
+ arrows?: boolean;
1203
+ arrowsScrollStep?: number;
1204
+ autoScroll?: ScrollViewAutoScroll;
1205
+ children?: React$1.ReactNode;
1206
+ debounce?: number;
1207
+ direction?: ScrollViewDirection;
1208
+ endShadowBackground?: string;
1209
+ endShadowInitialOffset?: string;
1210
+ endShadowSize?: string;
1211
+ id?: string;
1212
+ nextArrowColor?: string;
1213
+ nextArrowElement?: React$1.ReactNode;
1214
+ nextArrowInitialOffset?: string;
1215
+ prevArrowColor?: string;
1216
+ prevArrowElement?: React$1.ReactNode;
1217
+ prevArrowInitialOffset?: string;
1218
+ scrollbar?: boolean;
1219
+ shadows?: boolean;
1220
+ startShadowBackground?: string;
1221
+ startShadowInitialOffset?: string;
1222
+ startShadowSize?: string;
1223
+ } & React$1.RefAttributes<HTMLDivElement>>;
1224
+ export type SelectFieldOption = {
1225
+ disabled?: boolean;
1226
+ key?: string;
1227
+ label: string;
1228
+ value: string | number;
1229
+ };
1230
+ export type SelectFieldOptionGroup = {
1231
+ key?: string;
1232
+ label: string;
1233
+ options: SelectFieldOption[];
1234
+ };
1235
+ export type SelectFieldVariant = "filled" | "outline";
1236
+ /**
1237
+ * Props of the `SelectField` component.
1238
+ */
1239
+ export type SelectFieldProps = Omit<React$1.SelectHTMLAttributes<HTMLSelectElement>, "size"> & {
1240
+ /**
1241
+ * If `true`, the input will be disabled.
1242
+ */
1243
+ disabled?: boolean;
1244
+ /**
1245
+ * If `true`, the field will span the full width of its parent.
1246
+ */
1247
+ fullWidth?: boolean;
1248
+ /**
1249
+ * Optional help text.
1250
+ *
1251
+ * Help text is never rendered when the component is placed into `InputGroup`.
1252
+ * If a help text is needed, it must be defined on the `InputGroup` component instead.
1253
+ */
1254
+ helpText?: React$1.ReactNode;
1255
+ /**
1256
+ * ID of the input HTML element.
1257
+ *
1258
+ * Also serves as a prefix for important inner elements:
1259
+ * * `<ID>__label`
1260
+ * * `<ID>__labelText`,
1261
+ * * `<ID>__helpText`
1262
+ * * `<ID>__validationText`
1263
+ *
1264
+ * and of individual options:
1265
+ * * `<ID>__item__<VALUE>`
1266
+ *
1267
+ * If `key` in the option definition object is set,
1268
+ * then `option.key` is used instead of `option.value` in place of `<VALUE>`.
1269
+ */
1270
+ id?: string;
1271
+ /**
1272
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
1273
+ * technologies).
1274
+ *
1275
+ * Automatically set to `false` when the component is rendered within `InputGroup` or
1276
+ * `FormLayoutCustomField` component.
1277
+ */
1278
+ isLabelVisible?: boolean;
1279
+ /**
1280
+ * Select field label.
1281
+ */
1282
+ label: React$1.ReactNode;
1283
+ /**
1284
+ * Layout of the field.
1285
+ *
1286
+ * Ignored if the component is rendered within `FormLayout` component
1287
+ * as the value is inherited in such case.
1288
+ */
1289
+ layout?: Layout;
1290
+ /**
1291
+ * Set of options to be chosen from.
1292
+ *
1293
+ * Either set of individual or grouped options is acceptable.
1294
+ *
1295
+ * For generating unique IDs the `option.value` is normally used. For cases when this is not practical or
1296
+ * the `option.value` values are not unique the `option.key` attribute can be set manually.
1297
+ * The same applies for the `label` value of grouped options which is supposed to be unique.
1298
+ * To ensure uniqueness `key` attribute can be set manually.
1299
+ */
1300
+ options: SelectFieldOption[] | SelectFieldOptionGroup[];
1301
+ /**
1302
+ * If `true`, the input will be rendered as if it was required.
1303
+ */
1304
+ renderAsRequired?: boolean;
1305
+ /**
1306
+ * If `true`, the input will be made and rendered as required, regardless of the `renderAsRequired` prop.
1307
+ */
1308
+ required?: boolean;
1309
+ /**
1310
+ * Size of the field.
1311
+ *
1312
+ * Ignored if the component is rendered within `InputGroup` component as the value is inherited in such case.
1313
+ */
1314
+ size?: Size;
1315
+ /**
1316
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
1317
+ * against the saved value.
1318
+ */
1319
+ state?: State;
1320
+ /**
1321
+ * Validation message to be displayed.
1322
+ *
1323
+ * Validation text is never rendered when the component is placed into `InputGroup`.
1324
+ * If a validation text is needed, it must be defined on the `InputGroup` component instead.
1325
+ */
1326
+ validationText?: React$1.ReactNode;
1327
+ /**
1328
+ * Design variant of the field, further customizable with CSS custom properties.
1329
+ */
1330
+ variant?: SelectFieldVariant;
1331
+ };
1332
+ declare const SelectFieldWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.SelectHTMLAttributes<HTMLSelectElement>, "size"> & {
1333
+ disabled?: boolean;
1334
+ fullWidth?: boolean;
1335
+ helpText?: React$1.ReactNode;
1336
+ id?: string;
1337
+ isLabelVisible?: boolean;
1338
+ label: React$1.ReactNode;
1339
+ layout?: Layout;
1340
+ options: SelectFieldOption[] | SelectFieldOptionGroup[];
1341
+ renderAsRequired?: boolean;
1342
+ required?: boolean;
1343
+ size?: Size;
1344
+ state?: State;
1345
+ validationText?: React$1.ReactNode;
1346
+ variant?: SelectFieldVariant;
1347
+ } & React$1.RefAttributes<HTMLSelectElement>>;
1348
+ /**
1349
+ * Props of the `Tabs` component.
1350
+ */
1351
+ export type TabsProps = React$1.HTMLAttributes<HTMLElement> & {
1352
+ /**
1353
+ * Nested `TabsItem` elements.
1354
+ */
1355
+ children: React$1.ReactNode;
1356
+ /**
1357
+ * ID of the root HTML element. It also serves as base for nested element:
1358
+ * * `<ID>__list`
1359
+ */
1360
+ id?: string;
1361
+ };
1362
+ declare const TabsWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
1363
+ children: React$1.ReactNode;
1364
+ id?: string;
1365
+ } & React$1.RefAttributes<HTMLElement>>;
1366
+ /**
1367
+ * Props of the `TabsItem` component.
1368
+ */
1369
+ export type TabsItemProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
1370
+ /**
1371
+ * Optional element shown after item's label, e.g. an icon.
1372
+ */
1373
+ afterLabel?: React$1.ReactNode;
1374
+ /**
1375
+ * Optional element shown before item's label, e.g. an icon.
1376
+ */
1377
+ beforeLabel?: React$1.ReactNode;
1378
+ /**
1379
+ * Item's link URL. Optionally add custom routing function to the `onClick` option to bypass
1380
+ * browser's default navigation.
1381
+ */
1382
+ href: string;
1383
+ /**
1384
+ * ID of the root HTML element. It also serves as base for nested elements:
1385
+ * * `<ID>__link`
1386
+ * * `<ID>__label`
1387
+ */
1388
+ id?: string;
1389
+ /**
1390
+ * If `true`, item is marked as active.
1391
+ */
1392
+ isActive?: boolean;
1393
+ /**
1394
+ * Item's label.
1395
+ */
1396
+ label: string;
1397
+ /**
1398
+ * Function to call on item click, e.g. custom routing function.
1399
+ */
1400
+ onClick?: React$1.MouseEventHandler<HTMLAnchorElement>;
1401
+ };
1402
+ declare const TabsItemWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
1403
+ afterLabel?: React$1.ReactNode;
1404
+ beforeLabel?: React$1.ReactNode;
1405
+ href: string;
1406
+ id?: string;
1407
+ isActive?: boolean;
1408
+ label: string;
1409
+ onClick?: React$1.MouseEventHandler<HTMLAnchorElement>;
1410
+ } & React$1.RefAttributes<never>>;
1411
+ export type TableColumn = {
1412
+ format?: (value: unknown) => React$1.ReactNode;
1413
+ isSortable?: boolean;
1414
+ label?: string;
1415
+ name: string;
1416
+ };
1417
+ export type TableRow = Record<string, unknown> & {
1418
+ id: string | number;
1419
+ };
1420
+ export type TableSortDirection = "asc" | "desc";
1421
+ export type TableSort = {
1422
+ ascendingIcon: React$1.ReactNode;
1423
+ column: string;
1424
+ descendingIcon: React$1.ReactNode;
1425
+ direction: TableSortDirection;
1426
+ onClick: (column: string, direction: TableSortDirection) => void;
1427
+ };
1428
+ /**
1429
+ * Props of the `Table` component.
1430
+ */
1431
+ export type TableProps = React$1.TableHTMLAttributes<HTMLTableElement> & {
1432
+ /**
1433
+ * Table data columns, optionally sortable. The `format` function can be used to process the
1434
+ * column data before displaying them.
1435
+ */
1436
+ columns: TableColumn[];
1437
+ /**
1438
+ * ID of the root HTML element. It also serves as base for nested elements:
1439
+ * * `<ID>__headerCell__<COLUMN_NAME>`
1440
+ * * `<ID>__headerCell__<COLUMN_NAME>__sortButton`
1441
+ * * `<ID>__bodyCell__<COLUMN_NAME>__<ROW_ID>`
1442
+ */
1443
+ id?: string;
1444
+ /**
1445
+ * Table data rows, each object key must match a column `name`
1446
+ */
1447
+ rows: TableRow[];
1448
+ /**
1449
+ * Sorting configuration required to make columns sortable.
1450
+ */
1451
+ sort?: TableSort;
1452
+ };
1453
+ declare const TableWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.TableHTMLAttributes<HTMLTableElement> & {
1454
+ columns: TableColumn[];
1455
+ id?: string;
1456
+ rows: TableRow[];
1457
+ sort?: TableSort;
1458
+ } & React$1.RefAttributes<never>>;
1459
+ export type TextHyphens = "none" | "auto" | "manual";
1460
+ export type TextWordWrapping = "normal" | "long-words" | "anywhere";
1461
+ export type TextProps = React$1.HTMLAttributes<HTMLElement> & {
1462
+ /**
1463
+ * If true, the root HTML element renders as `<div>` instead of `<span>`.
1464
+ */
1465
+ blockLevel?: boolean;
1466
+ /**
1467
+ * Text content to be sanitized. Can contain HTML.
1468
+ */
1469
+ children?: React$1.ReactNode;
1470
+ /**
1471
+ * Turn on hyphenation. Head to [Hyphens](#hyphens) to learn more.
1472
+ */
1473
+ hyphens?: TextHyphens;
1474
+ /**
1475
+ * Optional number of lines. If exceeded, the content is truncated and appended by an ellipsis (`…`).
1476
+ */
1477
+ lines?: number;
1478
+ /**
1479
+ * How to deal with long words. Head to [Word Wrapping](#word-wrapping) for detailed explanation.
1480
+ */
1481
+ wordWrapping?: TextWordWrapping;
1482
+ };
1483
+ declare const TextWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & {
1484
+ blockLevel?: boolean;
1485
+ children?: React$1.ReactNode;
1486
+ hyphens?: TextHyphens;
1487
+ lines?: number;
1488
+ wordWrapping?: TextWordWrapping;
1489
+ } & React$1.RefAttributes<HTMLElement>>;
1490
+ export type TextAreaVariant = "filled" | "outline";
1491
+ /**
1492
+ * Props of the `TextArea` component.
1493
+ */
1494
+ export type TextAreaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
1495
+ /**
1496
+ * If `true`, the input will be disabled.
1497
+ */
1498
+ disabled?: boolean;
1499
+ /**
1500
+ * If `true`, the field will span the full width of its parent.
1501
+ */
1502
+ fullWidth?: boolean;
1503
+ /**
1504
+ * Optional help text.
1505
+ */
1506
+ helpText?: React$1.ReactNode;
1507
+ /** ID of the input HTML element. It also serves as a prefix for nested elements:
1508
+ * * `<ID>__label`
1509
+ * * `<ID>__labelText`
1510
+ * * `<ID>__helpText`
1511
+ * * `<ID>__validationText`
1512
+ */
1513
+ id?: string;
1514
+ /**
1515
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
1516
+ * technologies).
1517
+ *
1518
+ * Automatically set to `false` when the component is rendered within `FormLayoutCustomField`
1519
+ * component.
1520
+ */
1521
+ isLabelVisible?: boolean;
1522
+ /**
1523
+ * Text field label.
1524
+ */
1525
+ label: React$1.ReactNode;
1526
+ /**
1527
+ * Layout of the field.
1528
+ *
1529
+ * Ignored if the component is rendered within `FormLayout` component
1530
+ * as the value is inherited in such case.
1531
+ */
1532
+ layout?: Layout;
1533
+ /**
1534
+ * If `true`, the input will be required.
1535
+ */
1536
+ required?: boolean;
1537
+ /**
1538
+ * Size of the field.
1539
+ */
1540
+ size?: Size;
1541
+ /**
1542
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
1543
+ * against the saved value.
1544
+ */
1545
+ state?: State;
1546
+ /**
1547
+ * Validation message to be displayed.
1548
+ */
1549
+ validationText?: React$1.ReactNode;
1550
+ /**
1551
+ * Design variant of the field, further customizable with CSS custom properties.
1552
+ */
1553
+ variant?: TextAreaVariant;
1554
+ };
1555
+ declare const TextAreaWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
1556
+ disabled?: boolean;
1557
+ fullWidth?: boolean;
1558
+ helpText?: React$1.ReactNode;
1559
+ id?: string;
1560
+ isLabelVisible?: boolean;
1561
+ label: React$1.ReactNode;
1562
+ layout?: Layout;
1563
+ required?: boolean;
1564
+ size?: Size;
1565
+ state?: State;
1566
+ validationText?: React$1.ReactNode;
1567
+ variant?: TextAreaVariant;
1568
+ } & React$1.RefAttributes<HTMLTextAreaElement>>;
1569
+ export type TextFieldType = "email" | "number" | "password" | "tel" | "text";
1570
+ export type TextFieldVariant = "filled" | "outline";
1571
+ /**
1572
+ * Props of the `TextField` component.
1573
+ */
1574
+ export type TextFieldProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
1575
+ /**
1576
+ * If `true`, the input will be disabled.
1577
+ */
1578
+ disabled?: boolean;
1579
+ /**
1580
+ * If `true`, the field will span the full width of its parent.
1581
+ */
1582
+ fullWidth?: boolean;
1583
+ /**
1584
+ * Optional help text.
1585
+ *
1586
+ * Help text is never rendered when the component is placed into `InputGroup`.
1587
+ * If a help text is needed, it must be defined on the `InputGroup` component instead.
1588
+ */
1589
+ helpText?: React$1.ReactNode;
1590
+ /**
1591
+ * ID of the input HTML element. It also serves as a prefix for nested elements:
1592
+ * * `<ID>__label`
1593
+ * * `<ID>__labelText`
1594
+ * * `<ID>__helpText`
1595
+ * * `<ID>__validationText`
1596
+ */
1597
+ id?: string;
1598
+ /**
1599
+ * Width of the input field. Translated as `size` attribute for input types other than `number`.
1600
+ */
1601
+ inputSize?: number;
1602
+ /**
1603
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
1604
+ * technologies).
1605
+ *
1606
+ * Automatically set to `false` when the component is rendered within `InputGroup` or
1607
+ * `FormLayoutCustomField` component.
1608
+ */
1609
+ isLabelVisible?: boolean;
1610
+ /**
1611
+ * Text field label.
1612
+ */
1613
+ label: React$1.ReactNode;
1614
+ /**
1615
+ * Layout of the field.
1616
+ *
1617
+ * Ignored if the component is rendered within `FormLayout` component
1618
+ * as the value is inherited in such case.
1619
+ */
1620
+ layout?: Layout;
1621
+ /**
1622
+ * If `true`, the input will be required.
1623
+ */
1624
+ required?: boolean;
1625
+ /**
1626
+ * Size of the field.
1627
+ *
1628
+ * Ignored if the component is rendered within `InputGroup` component as the value is inherited in such case.
1629
+ */
1630
+ size?: Size;
1631
+ /**
1632
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
1633
+ * against the saved value.
1634
+ */
1635
+ state?: State;
1636
+ /**
1637
+ * HTML input type, translated as `type` attribute of the input.
1638
+ */
1639
+ type?: TextFieldType;
1640
+ /**
1641
+ * Validation message to be displayed.
1642
+ *
1643
+ * Validation text is never rendered when the component is placed into `InputGroup`.
1644
+ * If a validation text is needed, it must be defined on the `InputGroup` component instead.
1645
+ */
1646
+ validationText?: React$1.ReactNode;
1647
+ /**
1648
+ * Design variant of the field, further customizable with CSS custom properties.
1649
+ */
1650
+ variant?: TextFieldVariant;
1651
+ };
1652
+ declare const TextFieldWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size" | "type"> & {
1653
+ disabled?: boolean;
1654
+ fullWidth?: boolean;
1655
+ helpText?: React$1.ReactNode;
1656
+ id?: string;
1657
+ inputSize?: number;
1658
+ isLabelVisible?: boolean;
1659
+ label: React$1.ReactNode;
1660
+ layout?: Layout;
1661
+ required?: boolean;
1662
+ size?: Size;
1663
+ state?: State;
1664
+ type?: TextFieldType;
1665
+ validationText?: React$1.ReactNode;
1666
+ variant?: TextFieldVariant;
1667
+ } & React$1.RefAttributes<HTMLInputElement>>;
1668
+ export type TextLinkProps = React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
1669
+ /**
1670
+ * Link's `href` attribute.
1671
+ */
1672
+ href: string;
1673
+ /**
1674
+ * Link label.
1675
+ */
1676
+ label: string;
1677
+ };
1678
+ declare const LinkWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
1679
+ href: string;
1680
+ label: string;
1681
+ } & React$1.RefAttributes<never>>;
1682
+ export type ToggleLabelPosition = LabelPosition;
1683
+ export type ToggleProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
1684
+ /**
1685
+ * If `true`, the input will be disabled.
1686
+ */
1687
+ disabled?: boolean;
1688
+ /**
1689
+ * Optional help text.
1690
+ */
1691
+ helpText?: React$1.ReactNode;
1692
+ /**
1693
+ * ID of the input HTML element. It also serves as a prefix for nested elements:
1694
+ * * `<ID>__label`
1695
+ * * `<ID>__labelText`
1696
+ * * `<ID>__helpText`
1697
+ * * `<ID>__validationText`
1698
+ */
1699
+ id?: string;
1700
+ /**
1701
+ * If `false`, the label will be visually hidden (but remains accessible by assistive
1702
+ * technologies).
1703
+ */
1704
+ isLabelVisible?: boolean;
1705
+ /**
1706
+ * Toggle label.
1707
+ */
1708
+ label: React$1.ReactNode;
1709
+ /**
1710
+ * Placement of the label relative to the input.
1711
+ */
1712
+ labelPosition?: ToggleLabelPosition;
1713
+ /**
1714
+ * If `true`, the input will be rendered as if it was required.
1715
+ */
1716
+ renderAsRequired?: boolean;
1717
+ /**
1718
+ * If `true`, the input will be made and rendered as required, regardless of the `renderAsRequired` prop.
1719
+ */
1720
+ required?: boolean;
1721
+ /**
1722
+ * Alter the field to reflect the state of its data, e.g. a validation result or a change
1723
+ * against the saved value.
1724
+ */
1725
+ state?: State;
1726
+ /**
1727
+ * Validation message to be displayed.
1728
+ */
1729
+ validationText?: React$1.ReactNode;
1730
+ };
1731
+ declare const ToggleWithGlobalProps: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
1732
+ disabled?: boolean;
1733
+ helpText?: React$1.ReactNode;
1734
+ id?: string;
1735
+ isLabelVisible?: boolean;
1736
+ label: React$1.ReactNode;
1737
+ labelPosition?: ToggleLabelPosition;
1738
+ renderAsRequired?: boolean;
1739
+ required?: boolean;
1740
+ state?: State;
1741
+ validationText?: React$1.ReactNode;
1742
+ } & React$1.RefAttributes<HTMLInputElement>>;
1743
+ export type ToolbarAlign = "top" | "middle" | "bottom" | "baseline";
1744
+ export type ToolbarJustify = "start" | "center" | "end" | "space-between";
1745
+ /**
1746
+ * Props of the `Toolbar` component.
1747
+ */
1748
+ export type ToolbarProps = React$1.HTMLAttributes<HTMLDivElement> & {
1749
+ /**
1750
+ * Vertical alignment of toolbar items and groups.
1751
+ */
1752
+ align?: ToolbarAlign;
1753
+ /**
1754
+ * Nested elements. Supported types are:
1755
+ * * `ToolbarItems`
1756
+ * * `ToolbarGroups`
1757
+ *
1758
+ * If none are provided nothing is rendered.
1759
+ */
1760
+ children?: React$1.ReactNode;
1761
+ /**
1762
+ * If `true`, spacing of all toolbar items in the toolbar will be reduced.
1763
+ */
1764
+ dense?: boolean;
1765
+ /**
1766
+ * Horizontal alignment (distribution) of toolbar items and groups.
1767
+ */
1768
+ justify?: ToolbarJustify;
1769
+ /**
1770
+ * If set, the toolbar will not wrap.
1771
+ */
1772
+ nowrap?: boolean;
1773
+ };
1774
+ /**
1775
+ * Props of the `ToolbarGroup` component.
1776
+ */
1777
+ export type ToolbarGroupProps = React$1.HTMLAttributes<HTMLDivElement> & {
1778
+ /**
1779
+ * Vertical alignment of toolbar items in the group.
1780
+ */
1781
+ align?: ToolbarAlign;
1782
+ /**
1783
+ * Grouped ToolbarItems. If none are provided nothing is rendered.
1784
+ */
1785
+ children?: React$1.ReactNode;
1786
+ /**
1787
+ * If `true`, spacing of toolbar items in the group will be reduced.
1788
+ */
1789
+ dense?: boolean;
1790
+ /**
1791
+ * If set, the toolbar group will not wrap.
1792
+ */
1793
+ nowrap?: boolean;
1794
+ };
1795
+ /**
1796
+ * Props of the `ToolbarItem` component.
1797
+ */
1798
+ export type ToolbarItemProps = React$1.HTMLAttributes<HTMLDivElement> & {
1799
+ /**
1800
+ * Content of the toolbar item. If none are provided nothing is rendered.
1801
+ */
1802
+ children?: React$1.ReactNode;
1803
+ /**
1804
+ * Allow item to grow and shrink if needed.
1805
+ */
1806
+ flexible?: boolean;
1807
+ };
1808
+ declare const ToolbarWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
1809
+ align?: ToolbarAlign;
1810
+ children?: React$1.ReactNode;
1811
+ dense?: boolean;
1812
+ justify?: ToolbarJustify;
1813
+ nowrap?: boolean;
1814
+ } & React$1.RefAttributes<never>>;
1815
+ declare const ToolbarGroupWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
1816
+ align?: ToolbarAlign;
1817
+ children?: React$1.ReactNode;
1818
+ dense?: boolean;
1819
+ nowrap?: boolean;
1820
+ } & React$1.RefAttributes<never>>;
1821
+ declare const ToolbarItemWithGlobalProps: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
1822
+ children?: React$1.ReactNode;
1823
+ flexible?: boolean;
1824
+ } & React$1.RefAttributes<never>>;
1825
+ /**
1826
+ * Global props keyed by component name, e.g. `{ Button: { size: 'small' } }`.
1827
+ */
1828
+ export type GlobalProps = Record<string, Record<string, unknown>>;
1829
+ /**
1830
+ * Props of the `GlobalPropsProvider` component.
1831
+ */
1832
+ export type GlobalPropsProviderProps = {
1833
+ /**
1834
+ * Children wrapped by the provider.
1835
+ */
1836
+ children?: React$1.ReactNode;
1837
+ /**
1838
+ * Global props to be merged with the ones from the parent providers.
1839
+ */
1840
+ globalProps?: GlobalProps;
1841
+ };
1842
+ export declare const GlobalPropsProvider: React$1.FunctionComponent<GlobalPropsProviderProps>;
1843
+ declare const en: {
1844
+ Alert: {
1845
+ close: string;
1846
+ };
1847
+ FileInputField: {
1848
+ browse: string;
1849
+ drop: string;
1850
+ dropFileHere: string;
1851
+ filesSelected: string;
1852
+ };
1853
+ ModalCloseButton: {
1854
+ close: string;
1855
+ };
1856
+ ScrollView: {
1857
+ next: string;
1858
+ previous: string;
1859
+ };
1860
+ };
1861
+ export type Translations = typeof en;
1862
+ /**
1863
+ * Translations with any subset of components and keys, merged into the defaults by `TranslationsProvider`.
1864
+ * Components not present in the default translations (e.g. of a consuming library) are allowed too.
1865
+ */
1866
+ export type PartialTranslations = {
1867
+ [Component in keyof Translations]?: Partial<Translations[Component]>;
1868
+ } & Record<string, Record<string, string | undefined> | undefined>;
1869
+ /**
1870
+ * Props of the `TranslationsProvider` component.
1871
+ */
1872
+ export type TranslationsProviderProps = {
1873
+ /**
1874
+ * Children wrapped by the provider.
1875
+ */
1876
+ children?: React$1.ReactNode;
1877
+ /**
1878
+ * Translations to be merged with the ones from the parent providers.
1879
+ */
1880
+ translations?: PartialTranslations;
1881
+ };
1882
+ export declare const TranslationsProvider: React$1.FunctionComponent<TranslationsProviderProps>;
1883
+ export declare const classNames: (...classes: unknown[]) => string | undefined;
1884
+ /**
1885
+ * Props that are never transferred to the HTML element by `transferProps`.
1886
+ */
1887
+ export type TransferPropsInvalidProp = "children" | "className" | "contentEditable" | "dangerouslySetInnerHTML" | "ref" | "staticContext" | "style" | "suppressContentEditableWarning";
1888
+ /**
1889
+ * @param props The props that were passed to the React component and were not used by it
1890
+ * @returns The props to be passed to the HTML element
1891
+ */
1892
+ export declare const transferProps: <Props extends object>(props: Props) => Omit<Props, TransferPropsInvalidProp>;
1893
+ export declare const isChildrenEmpty: (children: React$1.ReactNode) => boolean;
1894
+
1895
+ export {
1896
+ AlertWithGlobalProps as Alert,
1897
+ BadgeWithGlobalProps as Badge,
1898
+ ButtonGroupWithGlobalProps as ButtonGroup,
1899
+ ButtonWithGlobalProps as Button,
1900
+ CardBodyWithGlobalProps as CardBody,
1901
+ CardFooterWithGlobalProps as CardFooter,
1902
+ CardWithGlobalProps as Card,
1903
+ CheckboxFieldWithGlobalProps as CheckboxField,
1904
+ FileInputFieldWithGlobalProps as FileInputField,
1905
+ FormLayoutCustomFieldWithGlobalProps as FormLayoutCustomField,
1906
+ FormLayoutWithGlobalProps as FormLayout,
1907
+ GridSpanWithGlobalProps as GridSpan,
1908
+ GridWithGlobalProps as Grid,
1909
+ InputGroupWithGlobalProps as InputGroup,
1910
+ LinkWithGlobalProps as TextLink,
1911
+ ModalBodyWithGlobalProps as ModalBody,
1912
+ ModalCloseButtonWithGlobalProps as ModalCloseButton,
1913
+ ModalContentWithGlobalProps as ModalContent,
1914
+ ModalFooterWithGlobalProps as ModalFooter,
1915
+ ModalHeaderWithGlobalProps as ModalHeader,
1916
+ ModalTitleWithGlobalProps as ModalTitle,
1917
+ ModalWithGlobalProps as Modal,
1918
+ PaperWithGlobalProps as Paper,
1919
+ PopoverWithGlobalProps as Popover,
1920
+ PopoverWrapperWithContext as PopoverWrapper,
1921
+ RadioWithGlobalProps as Radio,
1922
+ ScrollViewWithGlobalProps as ScrollView,
1923
+ SelectFieldWithGlobalProps as SelectField,
1924
+ TableWithGlobalProps as Table,
1925
+ TabsItemWithGlobalProps as TabsItem,
1926
+ TabsWithGlobalProps as Tabs,
1927
+ TextAreaWithGlobalProps as TextArea,
1928
+ TextFieldWithGlobalProps as TextField,
1929
+ TextWithGlobalProps as Text,
1930
+ ToggleWithGlobalProps as Toggle,
1931
+ ToolbarGroupWithGlobalProps as ToolbarGroup,
1932
+ ToolbarItemWithGlobalProps as ToolbarItem,
1933
+ ToolbarWithGlobalProps as Toolbar,
1934
+ };
1935
+
1936
+ export {};