@plesk/ui-library 3.27.3 → 3.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. package/README.md +35 -35
  2. package/cjs/components/Action/Action.js +3 -3
  3. package/cjs/components/Alert/Alert.js +5 -5
  4. package/cjs/components/AutoClosable/AutoClosable.js +3 -3
  5. package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
  6. package/cjs/components/Badge/Badge.js +3 -3
  7. package/cjs/components/Breadcrumbs/Breadcrumbs.js +4 -4
  8. package/cjs/components/Button/Button.js +50 -50
  9. package/cjs/components/ButtonGroup/ButtonGroup.js +3 -3
  10. package/cjs/components/Card/Card.js +52 -52
  11. package/cjs/components/Card/CardButton.js +2 -2
  12. package/cjs/components/Card/PreviewPanel.js +3 -3
  13. package/cjs/components/Card/images/no-image.svg +6 -6
  14. package/cjs/components/CardList/CardList.js +55 -55
  15. package/cjs/components/Carousel/Carousel.js +11 -11
  16. package/cjs/components/Checkbox/Checkbox.js +3 -3
  17. package/cjs/components/CodeEditor/CodeEditor.js +40 -40
  18. package/cjs/components/Columns/Column.js +3 -3
  19. package/cjs/components/Columns/Columns.js +3 -3
  20. package/cjs/components/ComboBox/ComboBox.js +4 -4
  21. package/cjs/components/ComboBox/ComboBoxOption.js +3 -3
  22. package/cjs/components/ConsoleOutput/ConsoleOutput.js +3 -3
  23. package/cjs/components/ContentLoader/ContentLoader.js +3 -3
  24. package/cjs/components/Cuttable/Cuttable.js +3 -3
  25. package/cjs/components/Dialog/Dialog.js +66 -66
  26. package/cjs/components/Drawer/Drawer.js +71 -71
  27. package/cjs/components/Dropdown/Dropdown.js +24 -24
  28. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
  29. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
  30. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
  31. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
  32. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
  33. package/cjs/components/Figure/Figure.js +14 -14
  34. package/cjs/components/Form/Form.js +11 -6
  35. package/cjs/components/Form/utils.js +22 -22
  36. package/cjs/components/FormField/FormField.js +85 -78
  37. package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
  38. package/cjs/components/FormFieldPassword/FormFieldPassword.js +3 -3
  39. package/cjs/components/FormFieldPassword/estimatePassword.js +19 -10
  40. package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
  41. package/cjs/components/FormFieldSelect/FormFieldSelect.js +4 -4
  42. package/cjs/components/FormFieldText/FormFieldText.js +49 -41
  43. package/cjs/components/Grid/Grid.js +37 -37
  44. package/cjs/components/GridCol/GridCol.js +25 -25
  45. package/cjs/components/Heading/Heading.js +3 -3
  46. package/cjs/components/Hint/Hint.js +3 -3
  47. package/cjs/components/Icon/Icon.js +6 -6
  48. package/cjs/components/Icon/constants.js +2 -2
  49. package/cjs/components/Icon/images/symbols.svg +1661 -1653
  50. package/cjs/components/InPlaceEdit/InPlaceEdit.js +15 -15
  51. package/cjs/components/Input/Input.js +3 -3
  52. package/cjs/components/InputFile/InputFile.js +7 -5
  53. package/cjs/components/InputNumber/InputNumber.js +3 -3
  54. package/cjs/components/Item/Item.js +41 -41
  55. package/cjs/components/ItemLink/ItemLink.js +4 -4
  56. package/cjs/components/ItemList/ItemList.js +6 -6
  57. package/cjs/components/Label/Label.js +3 -3
  58. package/cjs/components/Layer/Layer.js +2 -2
  59. package/cjs/components/Layout/Layout.js +55 -55
  60. package/cjs/components/Link/Link.js +6 -6
  61. package/cjs/components/List/List.js +133 -133
  62. package/cjs/components/List/ListAction.js +4 -4
  63. package/cjs/components/List/ListActions.js +3 -3
  64. package/cjs/components/List/ListActionsDivider.js +4 -4
  65. package/cjs/components/List/ListEmptyView.js +4 -4
  66. package/cjs/components/List/ListOperation.js +4 -4
  67. package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
  68. package/cjs/components/Markdown/Markdown.js +13 -13
  69. package/cjs/components/Media/Media.js +37 -37
  70. package/cjs/components/Media/MediaSection.js +10 -10
  71. package/cjs/components/Menu/Menu.js +28 -28
  72. package/cjs/components/Menu/MenuBaseItem.js +19 -19
  73. package/cjs/components/Menu/MenuDivider.js +7 -7
  74. package/cjs/components/Menu/MenuHeader.js +10 -10
  75. package/cjs/components/Menu/MenuItem.js +27 -27
  76. package/cjs/components/Menu/MenuSelectableItem.js +13 -13
  77. package/cjs/components/Overlay/Backdrop.js +6 -6
  78. package/cjs/components/Overlay/Overlay.js +34 -34
  79. package/cjs/components/PageHeader/PageHeader.js +3 -3
  80. package/cjs/components/Pagination/Pagination.js +3 -3
  81. package/cjs/components/Panel/Panel.js +3 -3
  82. package/cjs/components/Paragraph/Paragraph.js +3 -3
  83. package/cjs/components/Plaintext/Plaintext.js +10 -10
  84. package/cjs/components/Popover/Popover.js +59 -59
  85. package/cjs/components/Popper/Popper.js +30 -30
  86. package/cjs/components/Progress/Progress.js +13 -13
  87. package/cjs/components/ProgressDialog/ProgressDialog.js +47 -47
  88. package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
  89. package/cjs/components/ProgressStep/ProgressStep.js +25 -25
  90. package/cjs/components/Radio/Radio.js +3 -3
  91. package/cjs/components/Rating/Rating.js +13 -13
  92. package/cjs/components/Rating/images/rating.svg +6 -6
  93. package/cjs/components/Section/Section.js +41 -41
  94. package/cjs/components/Section/SectionItem.js +18 -18
  95. package/cjs/components/SegmentedControl/SegmentedControl.js +37 -37
  96. package/cjs/components/Select/MultiValue.js +1 -1
  97. package/cjs/components/Select/Select.js +3 -3
  98. package/cjs/components/Select/SelectControl.js +1 -1
  99. package/cjs/components/Select/SelectOption.js +3 -3
  100. package/cjs/components/Select/SelectOptionGroup.js +3 -3
  101. package/cjs/components/Skeleton/Skeleton.js +49 -0
  102. package/cjs/components/Skeleton/Skeleton.stories.js +26 -0
  103. package/cjs/components/Skeleton/SkeletonTabs.js +41 -0
  104. package/cjs/components/Skeleton/SkeletonTabs.stories.js +17 -0
  105. package/cjs/components/Skeleton/SkeletonText.js +45 -0
  106. package/cjs/components/Skeleton/SkeletonText.stories.js +35 -0
  107. package/cjs/components/Skeleton/index.js +31 -0
  108. package/cjs/components/Spinner/Spinner.js +2 -2
  109. package/cjs/components/SplitButton/SplitButton.js +20 -20
  110. package/cjs/components/Spot/Spot.js +3 -3
  111. package/cjs/components/Status/Status.js +3 -3
  112. package/cjs/components/StatusMessage/StatusMessage.js +4 -4
  113. package/cjs/components/Subnav/Subnav.js +22 -22
  114. package/cjs/components/Switch/Switch.js +31 -31
  115. package/cjs/components/SwitchesPanel/SwitchesPanel.js +10 -10
  116. package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +33 -33
  117. package/cjs/components/Tabs/SearchBar.js +57 -57
  118. package/cjs/components/Tabs/Tab.js +28 -28
  119. package/cjs/components/Tabs/Tabs.js +33 -33
  120. package/cjs/components/Text/Text.js +3 -3
  121. package/cjs/components/TextArea/TextArea.js +3 -3
  122. package/cjs/components/Toaster/Toaster.js +32 -32
  123. package/cjs/components/Toolbar/Toolbar.js +13 -13
  124. package/cjs/components/Toolbar/ToolbarExpander.js +5 -5
  125. package/cjs/components/Toolbar/ToolbarGroup.js +17 -17
  126. package/cjs/components/Tooltip/Tooltip.js +19 -19
  127. package/cjs/components/Tour/Tour.js +5 -5
  128. package/cjs/components/Translate/Translate.js +25 -25
  129. package/cjs/components/index.js +22 -1
  130. package/cjs/components/utils.js +6 -2
  131. package/cjs/index.js +1 -1
  132. package/dist/images/no-image.svg +6 -6
  133. package/dist/images/rating.svg +6 -6
  134. package/dist/images/symbols.svg +1661 -1653
  135. package/dist/plesk-ui-library-rtl.css +1 -1
  136. package/dist/plesk-ui-library-rtl.css.map +1 -1
  137. package/dist/plesk-ui-library.css +1 -1
  138. package/dist/plesk-ui-library.css.map +1 -1
  139. package/dist/plesk-ui-library.js +6684 -6383
  140. package/dist/plesk-ui-library.js.map +1 -1
  141. package/dist/plesk-ui-library.min.js +3 -3
  142. package/dist/plesk-ui-library.min.js.map +1 -1
  143. package/esm/components/Action/Action.js +3 -3
  144. package/esm/components/Alert/Alert.js +5 -5
  145. package/esm/components/AutoClosable/AutoClosable.js +3 -3
  146. package/esm/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
  147. package/esm/components/Badge/Badge.js +3 -3
  148. package/esm/components/Breadcrumbs/Breadcrumbs.js +4 -4
  149. package/esm/components/Button/Button.js +50 -50
  150. package/esm/components/ButtonGroup/ButtonGroup.js +3 -3
  151. package/esm/components/Card/Card.js +52 -52
  152. package/esm/components/Card/CardButton.js +2 -2
  153. package/esm/components/Card/PreviewPanel.js +3 -3
  154. package/esm/components/Card/images/no-image.svg +6 -6
  155. package/esm/components/CardList/CardList.js +55 -55
  156. package/esm/components/Carousel/Carousel.js +11 -11
  157. package/esm/components/Checkbox/Checkbox.js +3 -3
  158. package/esm/components/CodeEditor/CodeEditor.js +40 -40
  159. package/esm/components/Columns/Column.js +3 -3
  160. package/esm/components/Columns/Columns.js +3 -3
  161. package/esm/components/ComboBox/ComboBox.js +4 -4
  162. package/esm/components/ComboBox/ComboBoxOption.js +3 -3
  163. package/esm/components/ConsoleOutput/ConsoleOutput.js +3 -3
  164. package/esm/components/ContentLoader/ContentLoader.js +3 -3
  165. package/esm/components/Cuttable/Cuttable.js +3 -3
  166. package/esm/components/Dialog/Dialog.js +66 -66
  167. package/esm/components/Drawer/Drawer.js +71 -71
  168. package/esm/components/Dropdown/Dropdown.js +24 -24
  169. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
  170. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
  171. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
  172. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
  173. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
  174. package/esm/components/Figure/Figure.js +14 -14
  175. package/esm/components/Form/Form.js +11 -6
  176. package/esm/components/Form/utils.js +22 -22
  177. package/esm/components/FormField/FormField.js +85 -78
  178. package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
  179. package/esm/components/FormFieldPassword/FormFieldPassword.js +3 -3
  180. package/esm/components/FormFieldPassword/estimatePassword.js +19 -10
  181. package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
  182. package/esm/components/FormFieldSelect/FormFieldSelect.js +4 -4
  183. package/esm/components/FormFieldText/FormFieldText.js +49 -41
  184. package/esm/components/Grid/Grid.js +37 -37
  185. package/esm/components/GridCol/GridCol.js +25 -25
  186. package/esm/components/Heading/Heading.js +3 -3
  187. package/esm/components/Hint/Hint.js +3 -3
  188. package/esm/components/Icon/Icon.js +6 -6
  189. package/esm/components/Icon/constants.js +2 -2
  190. package/esm/components/Icon/images/symbols.svg +1661 -1653
  191. package/esm/components/InPlaceEdit/InPlaceEdit.js +15 -15
  192. package/esm/components/Input/Input.js +3 -3
  193. package/esm/components/InputFile/InputFile.js +7 -5
  194. package/esm/components/InputNumber/InputNumber.js +3 -3
  195. package/esm/components/Item/Item.js +41 -41
  196. package/esm/components/ItemLink/ItemLink.js +4 -4
  197. package/esm/components/ItemList/ItemList.js +6 -6
  198. package/esm/components/Label/Label.js +3 -3
  199. package/esm/components/Layer/Layer.js +2 -2
  200. package/esm/components/Layout/Layout.js +55 -55
  201. package/esm/components/Link/Link.js +6 -6
  202. package/esm/components/List/List.js +133 -133
  203. package/esm/components/List/ListAction.js +4 -4
  204. package/esm/components/List/ListActions.js +3 -3
  205. package/esm/components/List/ListActionsDivider.js +4 -4
  206. package/esm/components/List/ListEmptyView.js +4 -4
  207. package/esm/components/List/ListOperation.js +4 -4
  208. package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
  209. package/esm/components/Markdown/Markdown.js +13 -13
  210. package/esm/components/Media/Media.js +37 -37
  211. package/esm/components/Media/MediaSection.js +10 -10
  212. package/esm/components/Menu/Menu.js +28 -28
  213. package/esm/components/Menu/MenuBaseItem.js +19 -19
  214. package/esm/components/Menu/MenuDivider.js +7 -7
  215. package/esm/components/Menu/MenuHeader.js +10 -10
  216. package/esm/components/Menu/MenuItem.js +27 -27
  217. package/esm/components/Menu/MenuSelectableItem.js +13 -13
  218. package/esm/components/Overlay/Backdrop.js +6 -6
  219. package/esm/components/Overlay/Overlay.js +34 -34
  220. package/esm/components/PageHeader/PageHeader.js +3 -3
  221. package/esm/components/Pagination/Pagination.js +3 -3
  222. package/esm/components/Panel/Panel.js +3 -3
  223. package/esm/components/Paragraph/Paragraph.js +3 -3
  224. package/esm/components/Plaintext/Plaintext.js +10 -10
  225. package/esm/components/Popover/Popover.js +59 -59
  226. package/esm/components/Popper/Popper.js +30 -30
  227. package/esm/components/Progress/Progress.js +13 -13
  228. package/esm/components/ProgressDialog/ProgressDialog.js +47 -47
  229. package/esm/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
  230. package/esm/components/ProgressStep/ProgressStep.js +25 -25
  231. package/esm/components/Radio/Radio.js +3 -3
  232. package/esm/components/Rating/Rating.js +13 -13
  233. package/esm/components/Rating/images/rating.svg +6 -6
  234. package/esm/components/Section/Section.js +41 -41
  235. package/esm/components/Section/SectionItem.js +18 -18
  236. package/esm/components/SegmentedControl/SegmentedControl.js +37 -37
  237. package/esm/components/Select/MultiValue.js +1 -1
  238. package/esm/components/Select/Select.js +3 -3
  239. package/esm/components/Select/SelectControl.js +1 -1
  240. package/esm/components/Select/SelectOption.js +3 -3
  241. package/esm/components/Select/SelectOptionGroup.js +3 -3
  242. package/esm/components/Skeleton/Skeleton.js +34 -0
  243. package/esm/components/Skeleton/Skeleton.stories.js +10 -0
  244. package/esm/components/Skeleton/SkeletonTabs.js +26 -0
  245. package/esm/components/Skeleton/SkeletonTabs.stories.js +4 -0
  246. package/esm/components/Skeleton/SkeletonText.js +30 -0
  247. package/esm/components/Skeleton/SkeletonText.stories.js +16 -0
  248. package/esm/components/Skeleton/index.js +4 -0
  249. package/esm/components/Spinner/Spinner.js +2 -2
  250. package/esm/components/SplitButton/SplitButton.js +20 -20
  251. package/esm/components/Spot/Spot.js +3 -3
  252. package/esm/components/Status/Status.js +3 -3
  253. package/esm/components/StatusMessage/StatusMessage.js +4 -4
  254. package/esm/components/Subnav/Subnav.js +22 -22
  255. package/esm/components/Switch/Switch.js +31 -31
  256. package/esm/components/SwitchesPanel/SwitchesPanel.js +10 -10
  257. package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +33 -33
  258. package/esm/components/Tabs/SearchBar.js +57 -57
  259. package/esm/components/Tabs/Tab.js +28 -28
  260. package/esm/components/Tabs/Tabs.js +33 -33
  261. package/esm/components/Text/Text.js +3 -3
  262. package/esm/components/TextArea/TextArea.js +3 -3
  263. package/esm/components/Toaster/Toaster.js +32 -32
  264. package/esm/components/Toolbar/Toolbar.js +13 -13
  265. package/esm/components/Toolbar/ToolbarExpander.js +5 -5
  266. package/esm/components/Toolbar/ToolbarGroup.js +17 -17
  267. package/esm/components/Tooltip/Tooltip.js +19 -19
  268. package/esm/components/Tour/Tour.js +5 -5
  269. package/esm/components/Translate/Translate.js +25 -25
  270. package/esm/components/index.js +3 -1
  271. package/esm/components/utils.js +2 -1
  272. package/esm/index.js +1 -1
  273. package/index.js +5 -5
  274. package/package.json +151 -151
  275. package/scripts/postinstall.js +9 -9
  276. package/styleguide/browserconfig.xml +9 -9
  277. package/styleguide/build/bundle.fa6ff17e.js +2 -0
  278. package/styleguide/build/{bundle.f38c467d.js.LICENSE.txt → bundle.fa6ff17e.js.LICENSE.txt} +0 -0
  279. package/styleguide/images/no-image.svg +6 -6
  280. package/styleguide/images/rating.svg +6 -6
  281. package/styleguide/images/symbols.svg +1661 -1653
  282. package/styleguide/index.html +2 -2
  283. package/styleguide/placeholders/placeholder_400x200.svg +5 -5
  284. package/styleguide/placeholders/placeholder_400x400.svg +5 -5
  285. package/styleguide/placeholders/placeholder_600x400.svg +5 -5
  286. package/styleguide/safari-pinned-tab.svg +28 -28
  287. package/styleguide/site.webmanifest +19 -19
  288. package/types/package.d.ts +133 -133
  289. package/types/src/components/Action/Action.d.ts +61 -61
  290. package/types/src/components/Action/index.d.ts +1 -1
  291. package/types/src/components/Alert/Alert.d.ts +36 -36
  292. package/types/src/components/Alert/Alert.stories.d.ts +14 -14
  293. package/types/src/components/Alert/index.d.ts +1 -1
  294. package/types/src/components/AutoClosable/AutoClosable.d.ts +59 -59
  295. package/types/src/components/AutoClosable/index.d.ts +1 -1
  296. package/types/src/components/AuxiliaryActions/AuxiliaryActions.d.ts +28 -28
  297. package/types/src/components/AuxiliaryActions/index.d.ts +1 -1
  298. package/types/src/components/Badge/Badge.d.ts +39 -39
  299. package/types/src/components/Badge/index.d.ts +1 -1
  300. package/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +25 -25
  301. package/types/src/components/Breadcrumbs/index.d.ts +1 -1
  302. package/types/src/components/Button/Button.stories.d.ts +16 -16
  303. package/types/src/components/ButtonGroup/ButtonGroup.d.ts +27 -27
  304. package/types/src/components/ButtonGroup/index.d.ts +1 -1
  305. package/types/src/components/Card/PreviewPanel.d.ts +53 -53
  306. package/types/src/components/Card/helpers.d.ts +5 -5
  307. package/types/src/components/Checkbox/Checkbox.d.ts +67 -67
  308. package/types/src/components/Checkbox/index.d.ts +1 -1
  309. package/types/src/components/ClosingConfirmation/index.d.ts +1 -1
  310. package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +10 -10
  311. package/types/src/components/Columns/Column.d.ts +52 -52
  312. package/types/src/components/Columns/Columns.d.ts +34 -34
  313. package/types/src/components/Columns/index.d.ts +2 -2
  314. package/types/src/components/ComboBox/ComboBox.d.ts +58 -58
  315. package/types/src/components/ComboBox/ComboBoxOption.d.ts +19 -19
  316. package/types/src/components/ComboBox/index.d.ts +2 -2
  317. package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +40 -40
  318. package/types/src/components/ComboBoxDropdown/index.d.ts +1 -1
  319. package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +52 -52
  320. package/types/src/components/ConsoleOutput/index.d.ts +1 -1
  321. package/types/src/components/ContentLoader/ContentLoader.d.ts +60 -60
  322. package/types/src/components/ContentLoader/IconsLoader.d.ts +10 -10
  323. package/types/src/components/ContentLoader/index.d.ts +1 -1
  324. package/types/src/components/Cuttable/Cuttable.d.ts +63 -63
  325. package/types/src/components/Cuttable/Cuttable.stories.d.ts +34 -34
  326. package/types/src/components/Cuttable/index.d.ts +1 -1
  327. package/types/src/components/Dialog/Dialog.stories.d.ts +22 -22
  328. package/types/src/components/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +7 -7
  329. package/types/src/components/DistractionFreeModeContext/index.d.ts +1 -1
  330. package/types/src/components/Drawer/Drawer.stories.d.ts +40 -40
  331. package/types/src/components/Drawer/DrawerProgress.d.ts +45 -45
  332. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessage.d.ts +38 -38
  333. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts +22 -22
  334. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.d.ts +22 -22
  335. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.d.ts +13 -13
  336. package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts +22 -22
  337. package/types/src/components/ExtendedStatusMessage/index.d.ts +5 -5
  338. package/types/src/components/FocusTrap/FocusTrap.d.ts +7 -7
  339. package/types/src/components/FocusTrap/index.d.ts +1 -1
  340. package/types/src/components/Form/DisabledContext.d.ts +3 -3
  341. package/types/src/components/Form/Form.d.ts +85 -163
  342. package/types/src/components/Form/Form.stories.d.ts +12 -12
  343. package/types/src/components/Form/FormContext.d.ts +4 -16
  344. package/types/src/components/Form/index.d.ts +2 -2
  345. package/types/src/components/Form/types.d.ts +125 -0
  346. package/types/src/components/Form/utils.d.ts +32 -32
  347. package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +17 -17
  348. package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +91 -91
  349. package/types/src/components/FormFieldPassword/PasswordMeter.d.ts +9 -9
  350. package/types/src/components/FormFieldPassword/estimatePassword.d.ts +13 -13
  351. package/types/src/components/FormFieldPassword/index.d.ts +2 -2
  352. package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +13 -13
  353. package/types/src/components/FormFieldSelect/index.d.ts +1 -1
  354. package/types/src/components/Heading/Heading.d.ts +39 -39
  355. package/types/src/components/Heading/index.d.ts +1 -1
  356. package/types/src/components/Hint/Hint.d.ts +24 -24
  357. package/types/src/components/Hint/index.d.ts +1 -1
  358. package/types/src/components/Icon/Icon.d.ts +88 -88
  359. package/types/src/components/Icon/Icon.stories.d.ts +6 -6
  360. package/types/src/components/Icon/constants.d.ts +3 -3
  361. package/types/src/components/Icon/index.d.ts +2 -2
  362. package/types/src/components/Icon/oldIconNames.d.ts +5 -5
  363. package/types/src/components/Input/Input.d.ts +57 -57
  364. package/types/src/components/Input/index.d.ts +1 -1
  365. package/types/src/components/InputFile/InputFile.d.ts +54 -49
  366. package/types/src/components/InputFile/index.d.ts +1 -1
  367. package/types/src/components/InputNumber/InputNumber.d.ts +64 -64
  368. package/types/src/components/InputNumber/index.d.ts +1 -1
  369. package/types/src/components/ItemLink/ItemLink.d.ts +28 -28
  370. package/types/src/components/ItemLink/ItemLink.stories.d.ts +14 -14
  371. package/types/src/components/ItemLink/index.d.ts +1 -1
  372. package/types/src/components/ItemList/ItemList.d.ts +113 -113
  373. package/types/src/components/ItemList/ItemList.stories.d.ts +289 -289
  374. package/types/src/components/Label/Label.d.ts +28 -28
  375. package/types/src/components/Label/index.d.ts +1 -1
  376. package/types/src/components/Layer/Layer.d.ts +29 -29
  377. package/types/src/components/Layer/index.d.ts +2 -2
  378. package/types/src/components/Link/Link.d.ts +47 -47
  379. package/types/src/components/Link/index.d.ts +1 -1
  380. package/types/src/components/List/List.stories.d.ts +29 -29
  381. package/types/src/components/List/ListAction.d.ts +39 -39
  382. package/types/src/components/List/ListActions.d.ts +30 -30
  383. package/types/src/components/List/ListActionsDivider.d.ts +10 -10
  384. package/types/src/components/List/ListEmptyView.d.ts +44 -44
  385. package/types/src/components/List/ListOperation.d.ts +42 -42
  386. package/types/src/components/List/ListOperationContext.d.ts +7 -7
  387. package/types/src/components/LocaleProvider/LocaleProvider.d.ts +37 -37
  388. package/types/src/components/LocaleProvider/index.d.ts +2 -2
  389. package/types/src/components/Menu/Menu.stories.d.ts +19 -19
  390. package/types/src/components/OnDarkContext/OnDarkContext.d.ts +3 -3
  391. package/types/src/components/OnDarkContext/index.d.ts +1 -1
  392. package/types/src/components/PageHeader/PageHeader.d.ts +53 -53
  393. package/types/src/components/PageHeader/index.d.ts +1 -1
  394. package/types/src/components/Pagination/Pagination.d.ts +77 -77
  395. package/types/src/components/Panel/Panel.d.ts +65 -65
  396. package/types/src/components/Paragraph/Paragraph.d.ts +29 -29
  397. package/types/src/components/Paragraph/index.d.ts +1 -1
  398. package/types/src/components/Popover/Popover.stories.d.ts +22 -22
  399. package/types/src/components/ProgressBar/ProgressBar.d.ts +23 -23
  400. package/types/src/components/ProgressBar/ProgressIndicator.d.ts +21 -21
  401. package/types/src/components/ProgressBar/index.d.ts +1 -1
  402. package/types/src/components/Radio/Radio.d.ts +52 -52
  403. package/types/src/components/Radio/index.d.ts +1 -1
  404. package/types/src/components/ResponsiveContext/ResponsiveContext.d.ts +3 -3
  405. package/types/src/components/ResponsiveContext/index.d.ts +1 -1
  406. package/types/src/components/Select/MultiValue.d.ts +9 -9
  407. package/types/src/components/Select/Select.d.ts +74 -74
  408. package/types/src/components/Select/Select.stories.d.ts +23 -23
  409. package/types/src/components/Select/SelectControl.d.ts +26 -26
  410. package/types/src/components/Select/SelectOption.d.ts +29 -29
  411. package/types/src/components/Select/SelectOptionGroup.d.ts +20 -20
  412. package/types/src/components/Select/index.d.ts +3 -3
  413. package/types/src/components/Select/structures.d.ts +19 -19
  414. package/types/src/components/Skeleton/Skeleton.d.ts +49 -0
  415. package/types/src/components/Skeleton/Skeleton.stories.d.ts +12 -0
  416. package/types/src/components/Skeleton/SkeletonTabs.d.ts +23 -0
  417. package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +6 -0
  418. package/types/src/components/Skeleton/SkeletonText.d.ts +34 -0
  419. package/types/src/components/Skeleton/SkeletonText.stories.d.ts +38 -0
  420. package/types/src/components/Skeleton/index.d.ts +3 -0
  421. package/types/src/components/Spinner/Spinner.d.ts +18 -18
  422. package/types/src/components/Spinner/index.d.ts +1 -1
  423. package/types/src/components/Spot/Spot.d.ts +70 -70
  424. package/types/src/components/Spot/SpotPopup.d.ts +25 -25
  425. package/types/src/components/Spot/SpotPulsar.d.ts +10 -10
  426. package/types/src/components/Spot/index.d.ts +1 -1
  427. package/types/src/components/Squeezer/Squeezer.d.ts +22 -22
  428. package/types/src/components/Squeezer/index.d.ts +1 -1
  429. package/types/src/components/Status/Status.d.ts +69 -69
  430. package/types/src/components/Status/Status.stories.d.ts +22 -22
  431. package/types/src/components/Status/index.d.ts +1 -1
  432. package/types/src/components/StatusMessage/StatusMessage.d.ts +29 -29
  433. package/types/src/components/StatusMessage/index.d.ts +1 -1
  434. package/types/src/components/Tabs/Tabs.stories.d.ts +7 -7
  435. package/types/src/components/Text/Text.d.ts +64 -64
  436. package/types/src/components/Text/index.d.ts +1 -1
  437. package/types/src/components/TextArea/TextArea.d.ts +69 -69
  438. package/types/src/components/TextArea/calculateNodeHeight.d.ts +6 -6
  439. package/types/src/components/Toast/Toast.d.ts +40 -40
  440. package/types/src/components/Toast/index.d.ts +2 -2
  441. package/types/src/components/Toaster/Toaster.d.ts +93 -93
  442. package/types/src/components/Toaster/index.d.ts +1 -1
  443. package/types/src/components/Toolbar/RegistryContext.d.ts +16 -16
  444. package/types/src/components/Toolbar/ToolbarExpander.d.ts +24 -24
  445. package/types/src/components/Toolbar/ToolbarItem.d.ts +2 -2
  446. package/types/src/components/Toolbar/ToolbarMenu.d.ts +7 -7
  447. package/types/src/components/Tour/Tour.d.ts +27 -27
  448. package/types/src/components/Tour/index.d.ts +1 -1
  449. package/types/src/components/VerticalContext/VerticalContext.d.ts +4 -4
  450. package/types/src/components/VerticalContext/index.d.ts +1 -1
  451. package/types/src/components/index.d.ts +100 -98
  452. package/types/src/components/intentIconMap.d.ts +4 -4
  453. package/types/src/components/utils.d.ts +29 -28
  454. package/types/src/index.d.ts +5 -5
  455. package/types/src/utils.d.ts +5 -5
  456. package/styleguide/build/bundle.f38c467d.js +0 -2
@@ -1,163 +1,85 @@
1
- import React from 'react';
2
- import './Form.less';
3
- declare type FormInstanceHandles = {
4
- submit: () => void;
5
- };
6
- declare type FormValues = {
7
- [key: string]: any;
8
- };
9
- declare type FormErrors = {
10
- [key: string]: any;
11
- };
12
- /**
13
- * `Form` component is used for entering and submitting of user data.
14
- * [More details about designing of forms.](#!/Good%20Forms)
15
- * @since 0.0.54
16
- */
17
- declare const RefForwardingForm: React.ForwardRefExoticComponent<{
18
- /**
19
- * Required mark.
20
- * @since 0.0.54
21
- */
22
- requiredMark?: React.ReactNode;
23
- /**
24
- * Hide required legend.
25
- * @ignore
26
- * @deprecated
27
- */
28
- hideRequiredLegend?: boolean | undefined;
29
- /**
30
- * Form values.
31
- * @since 0.0.57
32
- */
33
- values?: FormValues | undefined;
34
- /**
35
- * Form errors.
36
- * @since 0.0.57
37
- */
38
- errors?: FormErrors | undefined;
39
- /**
40
- * Current active state
41
- * @since 0.0.59
42
- */
43
- state?: "cancel" | "submit" | "apply" | undefined;
44
- /**
45
- * Content of the `Form`.
46
- * @since 0.0.54
47
- */
48
- children?: React.ReactNode;
49
- /**
50
- * Submit button visibility or custom configuration
51
- * @since 0.0.58
52
- */
53
- submitButton?: boolean | React.PropsWithChildren<{
54
- size?: "md" | "lg" | undefined;
55
- intent?: "success" | "info" | "warning" | "danger" | "primary" | "secondary" | undefined;
56
- ghost?: boolean | undefined;
57
- arrow?: "forward" | "backward" | undefined;
58
- selected?: boolean | undefined;
59
- onToggle?: (() => void) | undefined;
60
- state?: "active" | "loading" | "hovered" | "focused" | undefined;
61
- disabled?: boolean | undefined;
62
- tooltip?: React.ReactNode;
63
- icon?: any;
64
- caret?: React.ReactNode;
65
- fill?: boolean | undefined;
66
- children?: React.ReactNode;
67
- component?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
68
- className?: string | undefined;
69
- baseClassName?: string | undefined;
70
- } & Pick<React.HTMLProps<HTMLButtonElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "wrap" | "multiple" | "key" | "ref" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">> | undefined;
71
- /**
72
- * Apply button visibility or custom configuration
73
- * @since 0.0.58
74
- */
75
- applyButton?: boolean | React.PropsWithChildren<{
76
- size?: "md" | "lg" | undefined;
77
- intent?: "success" | "info" | "warning" | "danger" | "primary" | "secondary" | undefined;
78
- ghost?: boolean | undefined;
79
- arrow?: "forward" | "backward" | undefined;
80
- selected?: boolean | undefined;
81
- onToggle?: (() => void) | undefined;
82
- state?: "active" | "loading" | "hovered" | "focused" | undefined;
83
- disabled?: boolean | undefined;
84
- tooltip?: React.ReactNode;
85
- icon?: any;
86
- caret?: React.ReactNode;
87
- fill?: boolean | undefined;
88
- children?: React.ReactNode;
89
- component?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
90
- className?: string | undefined;
91
- baseClassName?: string | undefined;
92
- } & Pick<React.HTMLProps<HTMLButtonElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "wrap" | "multiple" | "key" | "ref" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">> | undefined;
93
- /**
94
- * Cancel button visibility or custom configuration
95
- * @since 0.0.58
96
- */
97
- cancelButton?: boolean | React.PropsWithChildren<{
98
- size?: "md" | "lg" | undefined;
99
- intent?: "success" | "info" | "warning" | "danger" | "primary" | "secondary" | undefined;
100
- ghost?: boolean | undefined;
101
- arrow?: "forward" | "backward" | undefined;
102
- selected?: boolean | undefined;
103
- onToggle?: (() => void) | undefined;
104
- state?: "active" | "loading" | "hovered" | "focused" | undefined;
105
- disabled?: boolean | undefined;
106
- tooltip?: React.ReactNode;
107
- icon?: any;
108
- caret?: React.ReactNode;
109
- fill?: boolean | undefined;
110
- children?: React.ReactNode;
111
- component?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
112
- className?: string | undefined;
113
- baseClassName?: string | undefined;
114
- } & Pick<React.HTMLProps<HTMLButtonElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "wrap" | "multiple" | "key" | "ref" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">> | undefined;
115
- /**
116
- * Additional buttons
117
- * @since 0.0.58
118
- */
119
- additionalButtons?: React.ReactNode[] | undefined;
120
- /**
121
- * A callback function, can be executed when some field value is changing.
122
- * @since 3.1.0
123
- */
124
- onFieldChange?: ((name: string, value: any) => void) | undefined;
125
- /**
126
- * Submit handler
127
- * @since 0.0.54
128
- */
129
- onSubmit?: ((values: FormValues, isApply?: boolean | undefined) => void) | undefined;
130
- /**
131
- * Additional class name for the buttons container.
132
- * @since 0.0.66
133
- */
134
- footerClassName?: string | undefined;
135
- /**
136
- * Form responsive view will be switched automatically.
137
- * Specify this parameter explicitly if you want disable this behaviour and choice vertical or horizontal form view.
138
- * @since 0.4.1
139
- */
140
- vertical?: boolean | undefined;
141
- /**
142
- * @ignore
143
- */
144
- className?: string | undefined;
145
- /**
146
- * @ignore
147
- */
148
- baseClassName?: string | undefined;
149
- /**
150
- * @ignore
151
- */
152
- render?: ((params: {
153
- renderForm: (params: {
154
- actionButtons?: React.ReactNode;
155
- }) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
156
- renderActionButtons: () => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
157
- }) => React.ReactNode) | undefined;
158
- /**
159
- * @ignore
160
- */
161
- innerRef?: React.MutableRefObject<HTMLFormElement | null> | undefined;
162
- } & Pick<React.HTMLProps<HTMLFormElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<FormInstanceHandles>>;
163
- export default RefForwardingForm;
1
+ import React from 'react';
2
+ import { FormInstanceHandles } from './types';
3
+ import './Form.less';
4
+ /**
5
+ * `Form` component is used for entering and submitting of user data.
6
+ * [More details about designing of forms.](#!/Good%20Forms)
7
+ * @since 0.0.54
8
+ */
9
+ declare const RefForwardingForm: React.ForwardRefExoticComponent<{
10
+ requiredMark?: React.ReactNode;
11
+ hideRequiredLegend?: boolean | undefined;
12
+ values?: Record<string, any> | undefined;
13
+ errors?: Record<string, any> | undefined;
14
+ state?: "cancel" | "submit" | "apply" | undefined;
15
+ children?: React.ReactNode;
16
+ submitButton?: boolean | React.PropsWithChildren<{
17
+ size?: "md" | "lg" | undefined;
18
+ intent?: "success" | "info" | "warning" | "danger" | "primary" | "secondary" | undefined;
19
+ ghost?: boolean | undefined;
20
+ arrow?: "forward" | "backward" | undefined;
21
+ selected?: boolean | undefined;
22
+ onToggle?: (() => void) | undefined;
23
+ state?: "active" | "loading" | "hovered" | "focused" | undefined;
24
+ disabled?: boolean | undefined;
25
+ tooltip?: React.ReactNode;
26
+ icon?: any;
27
+ caret?: React.ReactNode;
28
+ fill?: boolean | undefined;
29
+ children?: React.ReactNode;
30
+ component?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
31
+ className?: string | undefined;
32
+ baseClassName?: string | undefined;
33
+ } & Pick<React.HTMLProps<HTMLButtonElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "wrap" | "multiple" | "key" | "ref" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">> | undefined;
34
+ applyButton?: boolean | React.PropsWithChildren<{
35
+ size?: "md" | "lg" | undefined;
36
+ intent?: "success" | "info" | "warning" | "danger" | "primary" | "secondary" | undefined;
37
+ ghost?: boolean | undefined;
38
+ arrow?: "forward" | "backward" | undefined;
39
+ selected?: boolean | undefined;
40
+ onToggle?: (() => void) | undefined;
41
+ state?: "active" | "loading" | "hovered" | "focused" | undefined;
42
+ disabled?: boolean | undefined;
43
+ tooltip?: React.ReactNode;
44
+ icon?: any;
45
+ caret?: React.ReactNode;
46
+ fill?: boolean | undefined;
47
+ children?: React.ReactNode;
48
+ component?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
49
+ className?: string | undefined;
50
+ baseClassName?: string | undefined;
51
+ } & Pick<React.HTMLProps<HTMLButtonElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "wrap" | "multiple" | "key" | "ref" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">> | undefined;
52
+ cancelButton?: boolean | React.PropsWithChildren<{
53
+ size?: "md" | "lg" | undefined;
54
+ intent?: "success" | "info" | "warning" | "danger" | "primary" | "secondary" | undefined;
55
+ ghost?: boolean | undefined;
56
+ arrow?: "forward" | "backward" | undefined;
57
+ selected?: boolean | undefined;
58
+ onToggle?: (() => void) | undefined;
59
+ state?: "active" | "loading" | "hovered" | "focused" | undefined;
60
+ disabled?: boolean | undefined;
61
+ tooltip?: React.ReactNode;
62
+ icon?: any;
63
+ caret?: React.ReactNode;
64
+ fill?: boolean | undefined;
65
+ children?: React.ReactNode;
66
+ component?: string | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
67
+ className?: string | undefined;
68
+ baseClassName?: string | undefined;
69
+ } & Pick<React.HTMLProps<HTMLButtonElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "wrap" | "multiple" | "key" | "ref" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">> | undefined;
70
+ additionalButtons?: React.ReactNode[] | undefined;
71
+ onFieldChange?: ((name: string, value: any) => void) | undefined;
72
+ onSubmit?: ((values: Record<string, any>, isApply?: boolean | undefined) => void) | undefined;
73
+ footerClassName?: string | undefined;
74
+ vertical?: boolean | undefined;
75
+ className?: string | undefined;
76
+ baseClassName?: string | undefined;
77
+ render?: ((params: {
78
+ renderForm: (params: {
79
+ actionButtons?: React.ReactNode;
80
+ }) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
81
+ renderActionButtons: () => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
82
+ }) => React.ReactNode) | undefined;
83
+ innerRef?: React.MutableRefObject<HTMLFormElement | null> | undefined;
84
+ } & Pick<React.HTMLProps<HTMLFormElement>, "max" | "required" | "low" | "high" | "disabled" | "default" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "target" | "role" | "resource" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "name" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "type" | "useMap" | "value" | "width" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<FormInstanceHandles>>;
85
+ export default RefForwardingForm;
@@ -1,12 +1,12 @@
1
- /// <reference types="react" />
2
- export declare const Basic: {
3
- (args: any): JSX.Element;
4
- args: {
5
- values: {
6
- field1: string;
7
- field2: string;
8
- field3: boolean;
9
- };
10
- children: JSX.Element[];
11
- };
12
- };
1
+ /// <reference types="react" />
2
+ export declare const Basic: {
3
+ (args: any): JSX.Element;
4
+ args: {
5
+ values: {
6
+ field1: string;
7
+ field2: string;
8
+ field3: boolean;
9
+ };
10
+ children: JSX.Element[];
11
+ };
12
+ };
@@ -1,16 +1,4 @@
1
- import { ReactNode } from 'react';
2
- export declare type FormContextProps = {
3
- getValue: (name: string, def?: any) => any;
4
- setValue: (name: string, value: any) => void;
5
- getErrors: (name: string) => {
6
- [key: string]: any;
7
- };
8
- setRequiredField: (name: string, required: boolean) => void;
9
- registerField: (name: string, field: {
10
- focus: () => void;
11
- }) => void;
12
- unregisterField: (name: string) => void;
13
- getRequiredMark: () => ReactNode;
14
- };
15
- declare const FormContext: import("react").Context<FormContextProps | undefined>;
16
- export default FormContext;
1
+ /// <reference types="react" />
2
+ import { FormContextProps } from './types';
3
+ declare const FormContext: import("react").Context<FormContextProps | undefined>;
4
+ export default FormContext;
@@ -1,2 +1,2 @@
1
- export { default } from './Form';
2
- export { getIn, setIn } from './utils';
1
+ export { default } from './Form';
2
+ export { getIn, setIn } from './utils';
@@ -0,0 +1,125 @@
1
+ import { ComponentProps, HTMLProps, MutableRefObject, ReactElement, ReactNode } from 'react';
2
+ import Button from '../Button';
3
+ export declare type FormInstanceHandles = {
4
+ submit: () => void;
5
+ };
6
+ export declare type FormValues = Record<string, any>;
7
+ export declare type FormErrors = Record<string, any>;
8
+ export declare type FormProps<FV extends FormValues> = {
9
+ /**
10
+ * Required mark.
11
+ * @since 0.0.54
12
+ */
13
+ requiredMark?: ReactNode;
14
+ /**
15
+ * Hide required legend.
16
+ * @ignore
17
+ * @deprecated
18
+ */
19
+ hideRequiredLegend?: boolean;
20
+ /**
21
+ * Form values.
22
+ * @since 0.0.57
23
+ */
24
+ values?: FV;
25
+ /**
26
+ * Form errors.
27
+ * @since 0.0.57
28
+ */
29
+ errors?: FormErrors;
30
+ /**
31
+ * Current active state
32
+ * @since 0.0.59
33
+ */
34
+ state?: 'submit' | 'apply' | 'cancel';
35
+ /**
36
+ * Content of the `Form`.
37
+ * @since 0.0.54
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Submit button visibility or custom configuration
42
+ * @since 0.0.58
43
+ */
44
+ submitButton?: boolean | ComponentProps<typeof Button>;
45
+ /**
46
+ * Apply button visibility or custom configuration
47
+ * @since 0.0.58
48
+ */
49
+ applyButton?: boolean | ComponentProps<typeof Button>;
50
+ /**
51
+ * Cancel button visibility or custom configuration
52
+ * @since 0.0.58
53
+ */
54
+ cancelButton?: boolean | ComponentProps<typeof Button>;
55
+ /**
56
+ * Additional buttons
57
+ * @since 0.0.58
58
+ */
59
+ additionalButtons?: ReactNode[];
60
+ /**
61
+ * A callback function, can be executed when some field value is changing.
62
+ * @since 3.1.0
63
+ */
64
+ onFieldChange?: (name: string, value: any) => void;
65
+ /**
66
+ * Submit handler
67
+ * @since 0.0.54
68
+ */
69
+ onSubmit?: (values: FV, isApply?: boolean) => void;
70
+ /**
71
+ * Additional class name for the buttons container.
72
+ * @since 0.0.66
73
+ */
74
+ footerClassName?: string;
75
+ /**
76
+ * Form responsive view will be switched automatically.
77
+ * Specify this parameter explicitly if you want disable this behaviour and choice vertical or horizontal form view.
78
+ * @since 0.4.1
79
+ */
80
+ vertical?: boolean;
81
+ /**
82
+ * @ignore
83
+ */
84
+ className?: string;
85
+ /**
86
+ * @ignore
87
+ */
88
+ baseClassName?: string;
89
+ /**
90
+ * @ignore
91
+ */
92
+ render?: (params: {
93
+ renderForm: (params: {
94
+ actionButtons?: ReactNode;
95
+ }) => ReactElement;
96
+ renderActionButtons: () => ReactElement;
97
+ }) => ReactNode;
98
+ /**
99
+ * @ignore
100
+ */
101
+ innerRef?: MutableRefObject<null | HTMLFormElement>;
102
+ } & Omit<HTMLProps<HTMLFormElement>, 'onSubmit' | 'ref'>;
103
+ export declare type FormState<FV> = {
104
+ values?: FV;
105
+ vertical: boolean;
106
+ requiredFields: string[];
107
+ formContext: FormContextProps;
108
+ prevValues?: FV;
109
+ prevErrors?: FormErrors;
110
+ prevRequiredMark?: ReactNode;
111
+ };
112
+ export declare type FormContextProps = {
113
+ getValues: () => Readonly<FormValues> | undefined;
114
+ getValue: (name: string, def?: any) => any;
115
+ setValue: (name: string, value: any) => void;
116
+ getErrors: (name: string) => {
117
+ [key: string]: any;
118
+ };
119
+ setRequiredField: (name: string, required: boolean) => void;
120
+ registerField: (name: string, field: {
121
+ focus: () => void;
122
+ }) => void;
123
+ unregisterField: (name: string) => void;
124
+ getRequiredMark: () => ReactNode;
125
+ };