@plesk/ui-library 3.31.2 → 3.32.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 (402) hide show
  1. package/cjs/components/Action/Action.js +20 -12
  2. package/cjs/components/Alert/Alert.js +9 -8
  3. package/cjs/components/Alert/Alert.stories.js +19 -12
  4. package/cjs/components/AutoClosable/AutoClosable.js +7 -9
  5. package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +14 -12
  6. package/cjs/components/Badge/Badge.js +11 -10
  7. package/cjs/components/Breadcrumbs/Breadcrumbs.js +18 -15
  8. package/cjs/components/Button/Button.js +34 -25
  9. package/cjs/components/Button/Button.stories.js +82 -49
  10. package/cjs/components/Button/ButtonContext.js +27 -0
  11. package/cjs/components/ButtonGroup/ButtonGroup.js +6 -5
  12. package/cjs/components/Card/Card.js +132 -109
  13. package/cjs/components/Card/CardButton.js +5 -4
  14. package/cjs/components/Card/PreviewPanel.js +24 -21
  15. package/cjs/components/CardList/CardList.js +57 -50
  16. package/cjs/components/CardList/CardListToolbar.js +47 -40
  17. package/cjs/components/Carousel/Carousel.js +42 -35
  18. package/cjs/components/Checkbox/Checkbox.js +27 -22
  19. package/cjs/components/ClosingConfirmation/useClosingConfirmation.js +24 -22
  20. package/cjs/components/CodeEditor/CodeEditor.js +5 -5
  21. package/cjs/components/Columns/Column.js +7 -7
  22. package/cjs/components/Columns/Columns.js +18 -14
  23. package/cjs/components/ComboBox/ComboBox.js +17 -13
  24. package/cjs/components/ComboBox/ComboBoxOption.js +2 -3
  25. package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +73 -68
  26. package/cjs/components/ConsoleOutput/ConsoleOutput.js +9 -9
  27. package/cjs/components/ContentLoader/ContentLoader.js +24 -16
  28. package/cjs/components/ContentLoader/IconsLoader.js +19 -17
  29. package/cjs/components/Cuttable/Cuttable.js +33 -30
  30. package/cjs/components/Cuttable/Cuttable.stories.js +27 -5
  31. package/cjs/components/Dialog/Dialog.js +74 -54
  32. package/cjs/components/Dialog/Dialog.stories.js +18 -14
  33. package/cjs/components/Drawer/Drawer.js +60 -50
  34. package/cjs/components/Drawer/Drawer.stories.js +24 -16
  35. package/cjs/components/Drawer/DrawerProgress.js +40 -31
  36. package/cjs/components/Drawer/Header.js +34 -26
  37. package/cjs/components/Dropdown/Dropdown.js +49 -41
  38. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +21 -17
  39. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +6 -5
  40. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +6 -5
  41. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +5 -5
  42. package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +6 -5
  43. package/cjs/components/Figure/Figure.js +12 -9
  44. package/cjs/components/FocusTrap/FocusTrap.js +13 -14
  45. package/cjs/components/Form/Form.js +89 -75
  46. package/cjs/components/Form/Form.stories.js +8 -9
  47. package/cjs/components/FormField/FormField.js +55 -50
  48. package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +36 -29
  49. package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +9 -3
  50. package/cjs/components/FormFieldPassword/FormFieldPassword.js +74 -66
  51. package/cjs/components/FormFieldPassword/PasswordMeter.js +34 -23
  52. package/cjs/components/FormFieldPassword/estimatePassword.js +11 -11
  53. package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +54 -50
  54. package/cjs/components/FormFieldSelect/FormFieldSelect.js +26 -24
  55. package/cjs/components/FormFieldText/FormFieldText.js +39 -35
  56. package/cjs/components/Grid/Grid.js +16 -13
  57. package/cjs/components/GridCol/GridCol.js +7 -7
  58. package/cjs/components/Heading/Heading.js +12 -10
  59. package/cjs/components/Hint/Hint.js +6 -5
  60. package/cjs/components/Icon/Icon.js +15 -14
  61. package/cjs/components/Icon/Icon.stories.js +15 -12
  62. package/cjs/components/Icon/utils.js +9 -6
  63. package/cjs/components/InPlaceEdit/InPlaceEdit.js +54 -49
  64. package/cjs/components/Input/Input.js +18 -14
  65. package/cjs/components/InputFile/InputFile.js +45 -42
  66. package/cjs/components/InputNumber/InputNumber.js +8 -10
  67. package/cjs/components/Item/Item.js +34 -22
  68. package/cjs/components/ItemLink/ItemLink.js +9 -7
  69. package/cjs/components/ItemLink/ItemLink.stories.js +4 -2
  70. package/cjs/components/ItemList/ItemList.js +39 -31
  71. package/cjs/components/ItemList/ItemList.stories.js +26 -27
  72. package/cjs/components/Label/Label.js +41 -8
  73. package/cjs/components/Layer/Layer.js +11 -10
  74. package/cjs/components/Layout/Layout.js +129 -101
  75. package/cjs/components/Link/Link.js +10 -10
  76. package/cjs/components/List/List.js +338 -279
  77. package/cjs/components/List/List.stories.js +21 -19
  78. package/cjs/components/List/ListAction.js +10 -8
  79. package/cjs/components/List/ListActions.js +21 -19
  80. package/cjs/components/List/ListActionsDivider.js +4 -3
  81. package/cjs/components/List/ListEmptyView.js +38 -23
  82. package/cjs/components/List/ListOperation.js +28 -21
  83. package/cjs/components/LocaleProvider/LocaleProvider.js +6 -6
  84. package/cjs/components/Markdown/Markdown.js +5 -4
  85. package/cjs/components/Media/Media.js +30 -22
  86. package/cjs/components/Media/MediaSection.js +7 -6
  87. package/cjs/components/Menu/Menu.js +7 -6
  88. package/cjs/components/Menu/Menu.stories.js +35 -33
  89. package/cjs/components/Menu/MenuBaseItem.js +18 -14
  90. package/cjs/components/Menu/MenuDivider.js +6 -6
  91. package/cjs/components/Menu/MenuHeader.js +7 -6
  92. package/cjs/components/Menu/MenuItem.js +12 -9
  93. package/cjs/components/Menu/MenuSelectableItem.js +7 -6
  94. package/cjs/components/Overlay/Backdrop.js +5 -4
  95. package/cjs/components/Overlay/Overlay.js +63 -52
  96. package/cjs/components/PageHeader/PageHeader.js +36 -25
  97. package/cjs/components/Pagination/Pagination.js +72 -66
  98. package/cjs/components/Panel/Panel.js +38 -36
  99. package/cjs/components/Paragraph/Paragraph.js +6 -5
  100. package/cjs/components/Plaintext/Plaintext.js +5 -3
  101. package/cjs/components/Popover/Popover.js +43 -34
  102. package/cjs/components/Popover/Popover.stories.js +33 -15
  103. package/cjs/components/Popper/Popper.js +19 -17
  104. package/cjs/components/Progress/Progress.js +6 -4
  105. package/cjs/components/ProgressBar/ProgressBar.js +10 -10
  106. package/cjs/components/ProgressBar/ProgressIndicator.js +5 -5
  107. package/cjs/components/ProgressDialog/ProgressDialog.js +16 -13
  108. package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +5 -3
  109. package/cjs/components/ProgressStep/ProgressStep.js +34 -23
  110. package/cjs/components/Radio/Radio.js +21 -18
  111. package/cjs/components/Rating/Rating.js +10 -8
  112. package/cjs/components/Section/Section.js +55 -50
  113. package/cjs/components/Section/SectionItem.js +12 -8
  114. package/cjs/components/SegmentedControl/SegmentedControl.js +86 -75
  115. package/cjs/components/Select/MultiValue.js +26 -21
  116. package/cjs/components/Select/Select.js +8 -7
  117. package/cjs/components/Select/Select.stories.js +41 -40
  118. package/cjs/components/Select/SelectControl.js +87 -77
  119. package/cjs/components/Select/SelectOption.js +2 -3
  120. package/cjs/components/Select/SelectOptionGroup.js +2 -3
  121. package/cjs/components/Skeleton/Skeleton.js +5 -5
  122. package/cjs/components/Skeleton/Skeleton.stories.js +7 -3
  123. package/cjs/components/Skeleton/SkeletonTabs.js +11 -10
  124. package/cjs/components/Skeleton/SkeletonTabs.stories.js +4 -2
  125. package/cjs/components/Skeleton/SkeletonText.js +13 -13
  126. package/cjs/components/Skeleton/SkeletonText.stories.js +10 -4
  127. package/cjs/components/Spinner/Spinner.js +15 -15
  128. package/cjs/components/SplitButton/SplitButton.js +18 -14
  129. package/cjs/components/Spot/Spot.js +19 -15
  130. package/cjs/components/Spot/SpotPopup.js +33 -29
  131. package/cjs/components/Spot/SpotPulsar.js +12 -13
  132. package/cjs/components/Squeezer/Squeezer.js +11 -13
  133. package/cjs/components/Status/Status.js +7 -7
  134. package/cjs/components/Status/Status.stories.js +4 -2
  135. package/cjs/components/StatusMessage/StatusMessage.js +9 -8
  136. package/cjs/components/Subnav/Subnav.js +7 -6
  137. package/cjs/components/Switch/Switch.js +21 -17
  138. package/cjs/components/SwitchesPanel/SwitchesPanel.js +11 -8
  139. package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +34 -26
  140. package/cjs/components/Tabs/SearchBar.js +57 -51
  141. package/cjs/components/Tabs/Tab.js +5 -3
  142. package/cjs/components/Tabs/Tabs.js +157 -129
  143. package/cjs/components/Tabs/Tabs.stories.js +8 -6
  144. package/cjs/components/Text/Text.js +7 -7
  145. package/cjs/components/TextArea/TextArea.js +6 -7
  146. package/cjs/components/Toast/Toast.js +32 -29
  147. package/cjs/components/Toaster/Toaster.js +54 -48
  148. package/cjs/components/Toolbar/Toolbar.js +19 -14
  149. package/cjs/components/Toolbar/ToolbarExpander.js +7 -7
  150. package/cjs/components/Toolbar/ToolbarGroup.js +23 -17
  151. package/cjs/components/Toolbar/ToolbarItem.js +11 -9
  152. package/cjs/components/Toolbar/ToolbarMenu.js +21 -15
  153. package/cjs/components/Tooltip/Tooltip.js +26 -21
  154. package/cjs/components/Tour/Tour.js +3 -4
  155. package/cjs/components/Translate/Translate.js +4 -1
  156. package/cjs/components/utils.js +4 -8
  157. package/cjs/index.js +1 -1
  158. package/cjs/utils.js +0 -2
  159. package/dist/.DS_Store +0 -0
  160. package/dist/plesk-ui-library-rtl.css +1 -1
  161. package/dist/plesk-ui-library-rtl.css.map +1 -1
  162. package/dist/plesk-ui-library.css +1 -1
  163. package/dist/plesk-ui-library.css.map +1 -1
  164. package/dist/plesk-ui-library.js +4755 -2803
  165. package/dist/plesk-ui-library.js.map +1 -1
  166. package/dist/plesk-ui-library.min.js +19 -6
  167. package/dist/plesk-ui-library.min.js.map +1 -1
  168. package/esm/components/Action/Action.js +21 -12
  169. package/esm/components/Alert/Alert.js +10 -8
  170. package/esm/components/Alert/Alert.stories.js +21 -12
  171. package/esm/components/AutoClosable/AutoClosable.js +7 -7
  172. package/esm/components/AuxiliaryActions/AuxiliaryActions.js +14 -10
  173. package/esm/components/Badge/Badge.js +12 -8
  174. package/esm/components/Breadcrumbs/Breadcrumbs.js +19 -13
  175. package/esm/components/Button/Button.js +35 -26
  176. package/esm/components/Button/Button.stories.js +84 -49
  177. package/esm/components/Button/ButtonContext.js +18 -0
  178. package/esm/components/ButtonGroup/ButtonGroup.js +6 -5
  179. package/esm/components/Card/Card.js +133 -109
  180. package/esm/components/Card/CardButton.js +5 -4
  181. package/esm/components/Card/PreviewPanel.js +25 -19
  182. package/esm/components/CardList/CardList.js +58 -50
  183. package/esm/components/CardList/CardListToolbar.js +47 -40
  184. package/esm/components/Carousel/Carousel.js +43 -35
  185. package/esm/components/Checkbox/Checkbox.js +28 -22
  186. package/esm/components/ClosingConfirmation/useClosingConfirmation.js +24 -20
  187. package/esm/components/CodeEditor/CodeEditor.js +5 -6
  188. package/esm/components/Columns/Column.js +7 -5
  189. package/esm/components/Columns/Columns.js +18 -14
  190. package/esm/components/ComboBox/ComboBox.js +17 -13
  191. package/esm/components/ComboBox/ComboBoxOption.js +2 -2
  192. package/esm/components/ComboBoxDropdown/ComboBoxDropdown.js +75 -68
  193. package/esm/components/ConsoleOutput/ConsoleOutput.js +10 -7
  194. package/esm/components/ContentLoader/ContentLoader.js +25 -14
  195. package/esm/components/ContentLoader/IconsLoader.js +20 -15
  196. package/esm/components/Cuttable/Cuttable.js +34 -28
  197. package/esm/components/Cuttable/Cuttable.stories.js +29 -5
  198. package/esm/components/Dialog/Dialog.js +75 -53
  199. package/esm/components/Dialog/Dialog.stories.js +20 -12
  200. package/esm/components/Drawer/Drawer.js +61 -50
  201. package/esm/components/Drawer/Drawer.stories.js +26 -14
  202. package/esm/components/Drawer/DrawerProgress.js +41 -31
  203. package/esm/components/Drawer/Header.js +35 -26
  204. package/esm/components/Dropdown/Dropdown.js +51 -41
  205. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +22 -17
  206. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +6 -5
  207. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +6 -5
  208. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +5 -5
  209. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +6 -5
  210. package/esm/components/Figure/Figure.js +13 -9
  211. package/esm/components/FocusTrap/FocusTrap.js +14 -11
  212. package/esm/components/Form/Form.js +90 -75
  213. package/esm/components/Form/Form.stories.js +8 -9
  214. package/esm/components/FormField/FormField.js +56 -50
  215. package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +38 -29
  216. package/esm/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +9 -3
  217. package/esm/components/FormFieldPassword/FormFieldPassword.js +75 -64
  218. package/esm/components/FormFieldPassword/PasswordMeter.js +36 -23
  219. package/esm/components/FormFieldPassword/estimatePassword.js +11 -11
  220. package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +55 -50
  221. package/esm/components/FormFieldSelect/FormFieldSelect.js +26 -24
  222. package/esm/components/FormFieldText/FormFieldText.js +39 -35
  223. package/esm/components/Grid/Grid.js +16 -13
  224. package/esm/components/GridCol/GridCol.js +6 -5
  225. package/esm/components/Heading/Heading.js +13 -10
  226. package/esm/components/Hint/Hint.js +6 -5
  227. package/esm/components/Icon/Icon.js +15 -12
  228. package/esm/components/Icon/Icon.stories.js +15 -12
  229. package/esm/components/Icon/utils.js +9 -6
  230. package/esm/components/InPlaceEdit/InPlaceEdit.js +55 -49
  231. package/esm/components/Input/Input.js +19 -14
  232. package/esm/components/InputFile/InputFile.js +47 -40
  233. package/esm/components/InputNumber/InputNumber.js +8 -8
  234. package/esm/components/Item/Item.js +35 -22
  235. package/esm/components/ItemLink/ItemLink.js +9 -7
  236. package/esm/components/ItemLink/ItemLink.stories.js +4 -2
  237. package/esm/components/ItemList/ItemList.js +39 -31
  238. package/esm/components/ItemList/ItemList.stories.js +26 -25
  239. package/esm/components/Label/Label.js +42 -8
  240. package/esm/components/Layer/Layer.js +11 -8
  241. package/esm/components/Layout/Layout.js +130 -101
  242. package/esm/components/Link/Link.js +11 -9
  243. package/esm/components/List/List.js +341 -280
  244. package/esm/components/List/List.stories.js +22 -17
  245. package/esm/components/List/ListAction.js +10 -8
  246. package/esm/components/List/ListActions.js +22 -17
  247. package/esm/components/List/ListActionsDivider.js +4 -2
  248. package/esm/components/List/ListEmptyView.js +39 -23
  249. package/esm/components/List/ListOperation.js +29 -19
  250. package/esm/components/LocaleProvider/LocaleProvider.js +6 -4
  251. package/esm/components/Markdown/Markdown.js +5 -4
  252. package/esm/components/Media/Media.js +31 -22
  253. package/esm/components/Media/MediaSection.js +6 -4
  254. package/esm/components/Menu/Menu.js +7 -6
  255. package/esm/components/Menu/Menu.stories.js +35 -33
  256. package/esm/components/Menu/MenuBaseItem.js +18 -12
  257. package/esm/components/Menu/MenuDivider.js +5 -4
  258. package/esm/components/Menu/MenuHeader.js +6 -4
  259. package/esm/components/Menu/MenuItem.js +11 -7
  260. package/esm/components/Menu/MenuSelectableItem.js +6 -4
  261. package/esm/components/Overlay/Backdrop.js +5 -4
  262. package/esm/components/Overlay/Overlay.js +65 -53
  263. package/esm/components/PageHeader/PageHeader.js +37 -23
  264. package/esm/components/Pagination/Pagination.js +73 -66
  265. package/esm/components/Panel/Panel.js +39 -34
  266. package/esm/components/Paragraph/Paragraph.js +6 -5
  267. package/esm/components/Plaintext/Plaintext.js +5 -3
  268. package/esm/components/Popover/Popover.js +44 -34
  269. package/esm/components/Popover/Popover.stories.js +35 -15
  270. package/esm/components/Popper/Popper.js +19 -15
  271. package/esm/components/Progress/Progress.js +6 -4
  272. package/esm/components/ProgressBar/ProgressBar.js +10 -8
  273. package/esm/components/ProgressBar/ProgressIndicator.js +5 -5
  274. package/esm/components/ProgressDialog/ProgressDialog.js +17 -13
  275. package/esm/components/ProgressDialogStep/ProgressDialogStep.js +4 -1
  276. package/esm/components/ProgressStep/ProgressStep.js +35 -23
  277. package/esm/components/Radio/Radio.js +22 -18
  278. package/esm/components/Rating/Rating.js +10 -8
  279. package/esm/components/Section/Section.js +56 -50
  280. package/esm/components/Section/SectionItem.js +13 -8
  281. package/esm/components/SegmentedControl/SegmentedControl.js +87 -75
  282. package/esm/components/Select/MultiValue.js +27 -21
  283. package/esm/components/Select/Select.js +8 -7
  284. package/esm/components/Select/Select.stories.js +41 -40
  285. package/esm/components/Select/SelectControl.js +88 -75
  286. package/esm/components/Select/SelectOption.js +2 -2
  287. package/esm/components/Select/SelectOptionGroup.js +2 -2
  288. package/esm/components/Skeleton/Skeleton.js +5 -5
  289. package/esm/components/Skeleton/Skeleton.stories.js +7 -3
  290. package/esm/components/Skeleton/SkeletonTabs.js +11 -10
  291. package/esm/components/Skeleton/SkeletonTabs.stories.js +4 -2
  292. package/esm/components/Skeleton/SkeletonText.js +13 -13
  293. package/esm/components/Skeleton/SkeletonText.stories.js +10 -4
  294. package/esm/components/Spinner/Spinner.js +15 -15
  295. package/esm/components/SplitButton/SplitButton.js +19 -14
  296. package/esm/components/Spot/Spot.js +19 -13
  297. package/esm/components/Spot/SpotPopup.js +34 -28
  298. package/esm/components/Spot/SpotPulsar.js +13 -11
  299. package/esm/components/Squeezer/Squeezer.js +11 -11
  300. package/esm/components/Status/Status.js +7 -5
  301. package/esm/components/Status/Status.stories.js +4 -2
  302. package/esm/components/StatusMessage/StatusMessage.js +10 -8
  303. package/esm/components/Subnav/Subnav.js +7 -6
  304. package/esm/components/Switch/Switch.js +22 -17
  305. package/esm/components/SwitchesPanel/SwitchesPanel.js +11 -8
  306. package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +35 -26
  307. package/esm/components/Tabs/SearchBar.js +60 -52
  308. package/esm/components/Tabs/Tab.js +4 -1
  309. package/esm/components/Tabs/Tabs.js +158 -129
  310. package/esm/components/Tabs/Tabs.stories.js +8 -6
  311. package/esm/components/Text/Text.js +7 -5
  312. package/esm/components/TextArea/TextArea.js +6 -5
  313. package/esm/components/Toast/Toast.js +33 -27
  314. package/esm/components/Toaster/Toaster.js +54 -46
  315. package/esm/components/Toolbar/Toolbar.js +19 -14
  316. package/esm/components/Toolbar/ToolbarExpander.js +7 -5
  317. package/esm/components/Toolbar/ToolbarGroup.js +22 -15
  318. package/esm/components/Toolbar/ToolbarItem.js +11 -7
  319. package/esm/components/Toolbar/ToolbarMenu.js +21 -15
  320. package/esm/components/Tooltip/Tooltip.js +27 -21
  321. package/esm/components/Tour/Tour.js +3 -2
  322. package/esm/components/Translate/Translate.js +4 -1
  323. package/esm/components/utils.js +4 -8
  324. package/esm/index.js +1 -1
  325. package/esm/utils.js +1 -3
  326. package/package.json +56 -60
  327. package/styleguide/build/bundle.57b0e524.js +2 -0
  328. package/styleguide/build/{bundle.26082873.js.LICENSE.txt → bundle.57b0e524.js.LICENSE.txt} +13 -4
  329. package/styleguide/index.html +2 -2
  330. package/types/src/components/Alert/Alert.stories.d.ts +5 -8
  331. package/types/src/components/AutoClosable/AutoClosable.d.ts +2 -23
  332. package/types/src/components/Button/Button.stories.d.ts +4 -2
  333. package/types/src/components/Button/ButtonContext.d.ts +8 -0
  334. package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +2 -2
  335. package/types/src/components/Cuttable/Cuttable.d.ts +2 -2
  336. package/types/src/components/Cuttable/Cuttable.stories.d.ts +6 -23
  337. package/types/src/components/Dialog/Dialog.stories.d.ts +6 -2
  338. package/types/src/components/Drawer/Drawer.stories.d.ts +8 -4
  339. package/types/src/components/Drawer/DrawerProgress.d.ts +1 -1
  340. package/types/src/components/FocusTrap/FocusTrap.d.ts +2 -2
  341. package/types/src/components/Form/Form.d.ts +17 -17
  342. package/types/src/components/Form/Form.stories.d.ts +3 -1
  343. package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +6 -2
  344. package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +0 -1
  345. package/types/src/components/Icon/Icon.d.ts +0 -1
  346. package/types/src/components/Icon/Icon.stories.d.ts +3 -1
  347. package/types/src/components/Input/Input.d.ts +0 -1
  348. package/types/src/components/ItemLink/ItemLink.stories.d.ts +5 -7
  349. package/types/src/components/ItemList/ItemList.d.ts +2 -2
  350. package/types/src/components/ItemList/ItemList.stories.d.ts +46 -175
  351. package/types/src/components/Label/Label.d.ts +32 -5
  352. package/types/src/components/Layer/Layer.d.ts +3 -3
  353. package/types/src/components/List/List.stories.d.ts +9 -7
  354. package/types/src/components/List/ListActionsDivider.d.ts +4 -4
  355. package/types/src/components/Menu/Menu.stories.d.ts +5 -3
  356. package/types/src/components/Panel/Panel.d.ts +2 -2
  357. package/types/src/components/Popover/Popover.stories.d.ts +7 -3
  358. package/types/src/components/Select/Select.d.ts +0 -1
  359. package/types/src/components/Select/Select.stories.d.ts +5 -16
  360. package/types/src/components/Select/SelectControl.d.ts +2 -2
  361. package/types/src/components/Skeleton/Skeleton.d.ts +1 -1
  362. package/types/src/components/Skeleton/Skeleton.stories.d.ts +6 -3
  363. package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +5 -6
  364. package/types/src/components/Skeleton/SkeletonText.d.ts +1 -1
  365. package/types/src/components/Skeleton/SkeletonText.stories.d.ts +7 -22
  366. package/types/src/components/Spot/SpotPulsar.d.ts +2 -3
  367. package/types/src/components/Status/Status.stories.d.ts +5 -16
  368. package/types/src/components/Tabs/Tabs.stories.d.ts +5 -1
  369. package/types/src/components/TextArea/TextArea.d.ts +4 -4
  370. package/types/src/components/Toolbar/ToolbarItem.d.ts +2 -2
  371. package/types/src/components/Toolbar/ToolbarMenu.d.ts +2 -2
  372. package/types/src/components/utils.d.ts +5 -5
  373. package/types/src/utils.d.ts +0 -1
  374. package/cjs/components/Drawer/ScrollDirection.js +0 -45
  375. package/esm/components/Drawer/ScrollDirection.js +0 -37
  376. package/styleguide/build/bundle.26082873.js +0 -2
  377. package/styleguide/images/default.svg +0 -1
  378. package/styleguide/images/empty-list_256.png +0 -0
  379. package/styleguide/images/filtered.svg +0 -1
  380. package/styleguide/patterns/controls/control-button-tooltip-1-do.png +0 -0
  381. package/styleguide/patterns/controls/control-button-tooltip-1-dont.png +0 -0
  382. package/styleguide/patterns/controls/control-button-tooltip-2-do.png +0 -0
  383. package/styleguide/patterns/controls/control-button-tooltip-2-dont.png +0 -0
  384. package/styleguide/patterns/controls/control-button-tooltip-3-do.png +0 -0
  385. package/styleguide/patterns/controls/control-button-tooltip-3-dont.png +0 -0
  386. package/styleguide/patterns/dialogsWindows/autoclose.png +0 -0
  387. package/styleguide/patterns/dialogsWindows/focus.png +0 -0
  388. package/styleguide/patterns/dialogsWindows/header.png +0 -0
  389. package/styleguide/patterns/dialogsWindows/image.png +0 -0
  390. package/styleguide/patterns/dialogsWindows/list_submit.png +0 -0
  391. package/styleguide/patterns/dialogsWindows/new_object.png +0 -0
  392. package/styleguide/patterns/dialogsWindows/popover-confirm.png +0 -0
  393. package/styleguide/patterns/dialogsWindows/popover.png +0 -0
  394. package/styleguide/patterns/dialogsWindows/similar_buttons.png +0 -0
  395. package/styleguide/patterns/dialogsWindows/submit.png +0 -0
  396. package/styleguide/patterns/dialogsWindows/toast_controls.png +0 -0
  397. package/styleguide/patterns/dialogsWindows/toaster_intent.png +0 -0
  398. package/styleguide/patterns/dialogsWindows/tooltip.png +0 -0
  399. package/styleguide/patterns/dialogsWindows/tour.png +0 -0
  400. package/styleguide/patterns/dialogsWindows/when_to_show.png +0 -0
  401. package/styleguide/patterns/dialogsWindows/width.png +0 -0
  402. package/types/package.d.ts +0 -138
@@ -1,10 +1,14 @@
1
1
  // Copyright 1999-2022. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React from 'react';
4
3
  import Skeleton from './Skeleton';
5
- export const Basic = args => /*#__PURE__*/React.createElement(Skeleton, args);
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Basic = args => /*#__PURE__*/_jsx(Skeleton, {
6
+ ...args
7
+ });
6
8
  Basic.args = {};
7
- export const CustomSize = args => /*#__PURE__*/React.createElement(Basic, args);
9
+ export const CustomSize = args => /*#__PURE__*/_jsx(Basic, {
10
+ ...args
11
+ });
8
12
  CustomSize.args = {
9
13
  width: 200,
10
14
  height: 100
@@ -1,10 +1,9 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2022. Plesk International GmbH. All rights reserved.
3
2
 
4
- import React from 'react';
5
3
  import classNames from 'classnames';
6
4
  import SkeletonText from './SkeletonText';
7
5
  import { CLS_PREFIX } from '../../constants';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
8
7
  /**
9
8
  * Skeleton for tabs component
10
9
  * @since `3.28.0
@@ -16,13 +15,15 @@ const SkeletonTabs = _ref => {
16
15
  baseClassName = `${CLS_PREFIX}skeleton-tabs`,
17
16
  ...props
18
17
  } = _ref;
19
- return /*#__PURE__*/React.createElement("div", _extends({
20
- className: classNames(baseClassName, className)
21
- }, props), /*#__PURE__*/React.createElement(SkeletonText, {
22
- lineProps: {
23
- maxWidth: 100
24
- },
25
- lines: count
26
- }));
18
+ return /*#__PURE__*/_jsx("div", {
19
+ className: classNames(baseClassName, className),
20
+ ...props,
21
+ children: /*#__PURE__*/_jsx(SkeletonText, {
22
+ lineProps: {
23
+ maxWidth: 100
24
+ },
25
+ lines: count
26
+ })
27
+ });
27
28
  };
28
29
  export default SkeletonTabs;
@@ -1,5 +1,7 @@
1
1
  // Copyright 1999-2022. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React from 'react';
4
3
  import SkeletonTabs from './SkeletonTabs';
5
- export const Basic = args => /*#__PURE__*/React.createElement(SkeletonTabs, args);
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Basic = args => /*#__PURE__*/_jsx(SkeletonTabs, {
6
+ ...args
7
+ });
@@ -1,10 +1,9 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2022. Plesk International GmbH. All rights reserved.
3
2
 
4
- import React from 'react';
5
3
  import classNames from 'classnames';
6
4
  import Skeleton from './Skeleton';
7
5
  import { CLS_PREFIX } from '../../constants';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
8
7
  /**
9
8
  * Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
10
9
  * @since 3.28.0
@@ -18,16 +17,17 @@ const SkeletonText = _ref => {
18
17
  lineProps = {},
19
18
  ...props
20
19
  } = _ref;
21
- return /*#__PURE__*/React.createElement(Tag, _extends({
22
- className: classNames(baseClassName, className)
23
- }, props), Array.from({
24
- length: lines
25
- }).map((_, key) => /*#__PURE__*/React.createElement(Skeleton
26
- // eslint-disable-next-line react/no-array-index-key
27
- , _extends({
28
- key: key
29
- }, lineProps, {
30
- className: classNames(`${baseClassName}__line`, lineProps?.className)
31
- }))));
20
+ return /*#__PURE__*/_jsx(Tag, {
21
+ className: classNames(baseClassName, className),
22
+ ...props,
23
+ children: Array.from({
24
+ length: lines
25
+ }).map((_, key) => /*#__PURE__*/_jsx(Skeleton
26
+ // eslint-disable-next-line react/no-array-index-key
27
+ , {
28
+ ...lineProps,
29
+ className: classNames(`${baseClassName}__line`, lineProps?.className)
30
+ }, key))
31
+ });
32
32
  };
33
33
  export default SkeletonText;
@@ -1,14 +1,20 @@
1
1
  // Copyright 1999-2022. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React from 'react';
4
3
  import SkeletonText from './SkeletonText';
5
- export const Basic = args => /*#__PURE__*/React.createElement(SkeletonText, args);
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Basic = args => /*#__PURE__*/_jsx(SkeletonText, {
6
+ ...args
7
+ });
6
8
  Basic.args = {};
7
- export const LinesCount = args => /*#__PURE__*/React.createElement(Basic, args);
9
+ export const LinesCount = args => /*#__PURE__*/_jsx(Basic, {
10
+ ...args
11
+ });
8
12
  LinesCount.args = {
9
13
  lines: 5
10
14
  };
11
- export const Custom = args => /*#__PURE__*/React.createElement(Basic, args);
15
+ export const Custom = args => /*#__PURE__*/_jsx(Basic, {
16
+ ...args
17
+ });
12
18
  Custom.args = {
13
19
  lines: 5,
14
20
  lineProps: {
@@ -1,9 +1,8 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2019. Plesk International GmbH. All rights reserved.
3
2
 
4
- import React from 'react';
5
3
  import classNames from 'classnames';
6
4
  import { CLS_PREFIX } from '../../constants';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
7
6
  /**
8
7
  * `Spinner` component.
9
8
  */
@@ -13,19 +12,20 @@ const Spinner = _ref => {
13
12
  className,
14
13
  ...props
15
14
  } = _ref;
16
- return /*#__PURE__*/React.createElement("svg", _extends({
17
- className: classNames(baseClassName, className)
18
- }, props, {
15
+ return /*#__PURE__*/_jsx("svg", {
16
+ className: classNames(baseClassName, className),
17
+ ...props,
19
18
  viewBox: "0 0 48 48",
20
- xmlns: "http://www.w3.org/2000/svg"
21
- }), /*#__PURE__*/React.createElement("circle", {
22
- className: `${baseClassName}__path`,
23
- fill: "none",
24
- strokeWidth: "6",
25
- strokeLinecap: "round",
26
- cx: "24",
27
- cy: "24",
28
- r: "21"
29
- }));
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ children: /*#__PURE__*/_jsx("circle", {
21
+ className: `${baseClassName}__path`,
22
+ fill: "none",
23
+ strokeWidth: "6",
24
+ strokeLinecap: "round",
25
+ cx: "24",
26
+ cy: "24",
27
+ r: "21"
28
+ })
29
+ });
30
30
  };
31
31
  export default Spinner;
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
3
  import React, { useRef } from 'react';
@@ -9,6 +8,8 @@ import Button from '../Button';
9
8
  import ButtonGroup from '../ButtonGroup';
10
9
  import Dropdown from '../Dropdown';
11
10
  import { wrapFunction, createFocusManager } from '../utils';
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsxs as _jsxs } from "react/jsx-runtime";
12
13
  const focusStrategy = {
13
14
  getNext(container, element) {
14
15
  const elements = container.children;
@@ -67,21 +68,25 @@ const SplitButton = _ref => {
67
68
  break;
68
69
  }
69
70
  });
70
- return /*#__PURE__*/React.createElement(ButtonGroup, _extends({
71
+ return /*#__PURE__*/_jsxs(ButtonGroup, {
71
72
  className: classNames(baseClassName, className),
72
73
  innerRef: rootRef,
73
- onKeyDown: handleKeyDown
74
- }, props), /*#__PURE__*/React.createElement(Button, {
75
- tabIndex: 0,
76
- onClick: onClick
77
- }, children), /*#__PURE__*/React.createElement(Dropdown, {
78
- className: `${baseClassName}__dropdown-trigger`,
79
- menu: menu,
80
- menuPlacement: "bottom-end"
81
- }, /*#__PURE__*/React.createElement(Button, {
82
- caret: true,
83
- tabIndex: -1
84
- })));
74
+ onKeyDown: handleKeyDown,
75
+ ...props,
76
+ children: [/*#__PURE__*/_jsx(Button, {
77
+ tabIndex: 0,
78
+ onClick: onClick,
79
+ children: children
80
+ }), /*#__PURE__*/_jsx(Dropdown, {
81
+ className: `${baseClassName}__dropdown-trigger`,
82
+ menu: menu,
83
+ menuPlacement: "bottom-end",
84
+ children: /*#__PURE__*/_jsx(Button, {
85
+ caret: true,
86
+ tabIndex: -1
87
+ })
88
+ })]
89
+ });
85
90
  };
86
91
  SplitButton.propTypes = {
87
92
  /**
@@ -1,12 +1,12 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
- import React, { useState, useEffect, useRef } from 'react';
3
+ import { useState, useEffect, useRef } from 'react';
5
4
  import { scrollIntoView } from '../utils';
6
5
  import OnDarkContext from '../OnDarkContext';
7
6
  import Layer from '../Layer';
8
7
  import SpotPulsar from './SpotPulsar';
9
8
  import SpotPopup from './SpotPopup';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
10
  const isEqual = (a, b) => a.top === b.top && a.left === b.left && a.right === b.right && a.bottom === b.bottom && a.width === b.width && a.height === b.height;
11
11
 
12
12
  /**
@@ -67,18 +67,24 @@ const Spot = _ref => {
67
67
  if (!rect) {
68
68
  return null;
69
69
  }
70
- const pulsar = /*#__PURE__*/React.createElement(SpotPulsar, _extends({
70
+ const pulsar = /*#__PURE__*/_jsx(SpotPulsar, {
71
71
  rect: rect,
72
- placement: placement
73
- }, props, {
72
+ placement: placement,
73
+ ...props,
74
74
  ref: pulsarRef
75
- }));
76
- return /*#__PURE__*/React.createElement(OnDarkContext.Provider, {
77
- value: true
78
- }, /*#__PURE__*/React.createElement(Layer, null, popup ? /*#__PURE__*/React.createElement(SpotPopup, _extends({
79
- pulsar: pulsar,
80
- pulsarRef: pulsarRef,
81
- meta: meta
82
- }, popup)) : /*#__PURE__*/React.createElement("div", null, pulsar)));
75
+ });
76
+ return /*#__PURE__*/_jsx(OnDarkContext.Provider, {
77
+ value: true,
78
+ children: /*#__PURE__*/_jsx(Layer, {
79
+ children: popup ? /*#__PURE__*/_jsx(SpotPopup, {
80
+ pulsar: pulsar,
81
+ pulsarRef: pulsarRef,
82
+ meta: meta,
83
+ ...popup
84
+ }) : /*#__PURE__*/_jsx("div", {
85
+ children: pulsar
86
+ })
87
+ })
88
+ });
83
89
  };
84
90
  export default Spot;
@@ -1,8 +1,7 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
3
  import classNames from 'classnames';
5
- import React, { useEffect, useState, useRef } from 'react';
4
+ import { useEffect, useState, useRef } from 'react';
6
5
  import { CLS_PREFIX } from '../../constants';
7
6
  import Popover from '../Popover';
8
7
  import Text from '../Text';
@@ -11,7 +10,8 @@ import Focuser from '../Overlay/Focuser';
11
10
  import { safeInvoke } from '../utils';
12
11
 
13
12
  // TODO: Use SpotSpotProps['popup'] instead of copypaste
14
-
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import { jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const SpotPopup = _ref => {
16
16
  let {
17
17
  baseClassName = `${CLS_PREFIX}spot-popup`,
@@ -42,12 +42,12 @@ const SpotPopup = _ref => {
42
42
  }
43
43
  }, []);
44
44
  if (typeof image === 'string') {
45
- image = /*#__PURE__*/React.createElement("img", {
45
+ image = /*#__PURE__*/_jsx("img", {
46
46
  src: image,
47
47
  alt: ""
48
48
  });
49
49
  }
50
- return /*#__PURE__*/React.createElement(Popover, _extends({
50
+ return /*#__PURE__*/_jsxs(Popover, {
51
51
  className: classNames(baseClassName, className, {
52
52
  [`${baseClassName}--${size}`]: size
53
53
  }),
@@ -58,28 +58,34 @@ const SpotPopup = _ref => {
58
58
  visible: true,
59
59
  onClose: () => safeInvoke(onClose),
60
60
  canCloseOnOutsideClick: false,
61
- autoFocus: false
62
- }, props), image && /*#__PURE__*/React.createElement("div", {
63
- className: classNames(`${baseClassName}__media`, {
64
- [`${baseClassName}__media--compact`]: !title
65
- })
66
- }, image), children, buttons && /*#__PURE__*/React.createElement("div", {
67
- className: `${baseClassName}__footer`,
68
- ref: footerRef
69
- }, meta && meta.total > 1 ? /*#__PURE__*/React.createElement(Text, {
70
- intent: "muted",
71
- fontSize: "sm"
72
- }, /*#__PURE__*/React.createElement(Translate, {
73
- namespace: "SpotPopup",
74
- content: "total",
75
- params: {
76
- current: meta.current + 1,
77
- total: meta.total
78
- },
79
- translators: locale,
80
- fallback: "%%current%% of %%total%%"
81
- })) : /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("div", {
82
- className: `${baseClassName}__actions`
83
- }, buttons)));
61
+ autoFocus: false,
62
+ ...props,
63
+ children: [image && /*#__PURE__*/_jsx("div", {
64
+ className: classNames(`${baseClassName}__media`, {
65
+ [`${baseClassName}__media--compact`]: !title
66
+ }),
67
+ children: image
68
+ }), children, buttons && /*#__PURE__*/_jsxs("div", {
69
+ className: `${baseClassName}__footer`,
70
+ ref: footerRef,
71
+ children: [meta && meta.total > 1 ? /*#__PURE__*/_jsx(Text, {
72
+ intent: "muted",
73
+ fontSize: "sm",
74
+ children: /*#__PURE__*/_jsx(Translate, {
75
+ namespace: "SpotPopup",
76
+ content: "total",
77
+ params: {
78
+ current: meta.current + 1,
79
+ total: meta.total
80
+ },
81
+ translators: locale,
82
+ fallback: "%%current%% of %%total%%"
83
+ })
84
+ }) : /*#__PURE__*/_jsx("span", {}), /*#__PURE__*/_jsx("div", {
85
+ className: `${baseClassName}__actions`,
86
+ children: buttons
87
+ })]
88
+ })]
89
+ });
84
90
  };
85
91
  export default SpotPopup;
@@ -1,9 +1,10 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
3
  import classNames from 'classnames';
5
- import React, { forwardRef } from 'react';
4
+ import { forwardRef } from 'react';
6
5
  import { CLS_PREFIX } from '../../constants';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
8
  const OFFSET = 23;
8
9
  const calculate = (rect, placement) => {
9
10
  const placementTop = rect.height / 2;
@@ -35,18 +36,19 @@ const SpotPulsar = /*#__PURE__*/forwardRef(function SpotPulsar(_ref, ref) {
35
36
  ...props
36
37
  } = _ref;
37
38
  const position = calculate(rect, placement);
38
- return /*#__PURE__*/React.createElement("div", _extends({
39
+ return /*#__PURE__*/_jsxs("div", {
39
40
  className: classNames(baseClassName, className),
40
41
  style: {
41
42
  transform: `translate(${position.left}px, ${position.top}px)`
42
- }
43
- }, props, {
44
- ref: ref
45
- }), /*#__PURE__*/React.createElement("div", {
46
- className: `${baseClassName}__ring`
47
- }), /*#__PURE__*/React.createElement("div", {
48
- className: `${baseClassName}__ring`
49
- }));
43
+ },
44
+ ...props,
45
+ ref: ref,
46
+ children: [/*#__PURE__*/_jsx("div", {
47
+ className: `${baseClassName}__ring`
48
+ }), /*#__PURE__*/_jsx("div", {
49
+ className: `${baseClassName}__ring`
50
+ })]
51
+ });
50
52
  });
51
53
  SpotPulsar.displayName = 'SpotPulsar';
52
54
  export default SpotPulsar;
@@ -1,9 +1,10 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
3
 
4
- import React, { Component, createRef } from 'react';
4
+ import { Component, createRef } from 'react';
5
5
  import Measure from 'react-measure';
6
6
  import { safeInvoke } from '../utils';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
7
8
  class Squeezer extends Component {
8
9
  constructor() {
9
10
  super(...arguments);
@@ -23,7 +24,6 @@ class Squeezer extends Component {
23
24
  }
24
25
  measure() {
25
26
  let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
26
- // eslint-disable-next-line react/prop-types
27
27
  const {
28
28
  compact,
29
29
  uncompact
@@ -61,13 +61,12 @@ class Squeezer extends Component {
61
61
  }
62
62
  }
63
63
  render() {
64
- // eslint-disable-next-line react/prop-types
65
64
  const {
66
65
  children,
67
66
  innerRef,
68
67
  innerMeasure
69
68
  } = this.props;
70
- return /*#__PURE__*/React.createElement(Measure, {
69
+ return /*#__PURE__*/_jsx(Measure, {
71
70
  onResize: this.handleResize,
72
71
  innerRef: el => {
73
72
  if (el) {
@@ -77,14 +76,15 @@ class Squeezer extends Component {
77
76
  this.measure(true);
78
77
  });
79
78
  }
79
+ },
80
+ children: _ref => {
81
+ let {
82
+ measureRef
83
+ } = _ref;
84
+ return children({
85
+ ref: measureRef
86
+ });
80
87
  }
81
- }, _ref => {
82
- let {
83
- measureRef
84
- } = _ref;
85
- return children({
86
- ref: measureRef
87
- });
88
88
  });
89
89
  }
90
90
  }
@@ -1,13 +1,13 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
- import React, { useContext } from 'react';
3
+ import { useContext } from 'react';
5
4
  import classNames from 'classnames';
6
5
  import { CLS_PREFIX } from '../../constants';
7
6
  import { intentIconMap } from '../intentIconMap';
8
7
  import Action from '../Action';
9
8
  import Icon from '../Icon';
10
9
  import OnDarkContext from '../OnDarkContext';
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
11
  const toIcon = (icon, intent) => {
12
12
  if (icon === false) {
13
13
  return undefined;
@@ -40,7 +40,7 @@ const Status = _ref => {
40
40
  if (intent === 'muted') {
41
41
  intent = 'inactive';
42
42
  }
43
- return /*#__PURE__*/React.createElement(Action, _extends({
43
+ return /*#__PURE__*/_jsx(Action, {
44
44
  component: "span",
45
45
  icon: compact ? undefined : toIcon(icon, intent),
46
46
  className: classNames(baseClassName, {
@@ -54,7 +54,9 @@ const Status = _ref => {
54
54
  [`${baseClassName}--flip`]: flip
55
55
  }, outerProps.className)
56
56
  },
57
- progress: progress
58
- }, props), children);
57
+ progress: progress,
58
+ ...props,
59
+ children: children
60
+ });
59
61
  };
60
62
  export default Status;
@@ -1,8 +1,10 @@
1
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React from 'react';
4
3
  import Status from './Status';
5
- export const Basic = args => /*#__PURE__*/React.createElement(Status, args);
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export const Basic = args => /*#__PURE__*/_jsx(Status, {
6
+ ...args
7
+ });
6
8
  Basic.args = {
7
9
  intent: 'success',
8
10
  children: 'Success'
@@ -1,12 +1,12 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
3
  import classNames from 'classnames';
5
- import React from 'react';
6
4
  import Alert from '../Alert';
7
5
  import Icon from '../Icon';
8
6
  import { CLS_PREFIX } from '../../constants';
9
7
  import { intentIconMap } from '../intentIconMap';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ import { jsxs as _jsxs } from "react/jsx-runtime";
10
10
  /**
11
11
  * `StatusMessage` is used for notifying users about events happened (or going to happen) in the system.
12
12
  * For showing results of performed operations [Toaster](#!/Toaster) should be used.
@@ -20,12 +20,14 @@ const StatusMessage = _ref => {
20
20
  children,
21
21
  ...props
22
22
  } = _ref;
23
- return /*#__PURE__*/React.createElement(Alert, _extends({
23
+ return /*#__PURE__*/_jsxs(Alert, {
24
24
  className: classNames(baseClassName, [`${baseClassName}--${intent}`], className),
25
- intent: intent
26
- }, props), /*#__PURE__*/React.createElement(Icon, {
27
- name: intentIconMap[intent],
28
- className: `${baseClassName}__icon`
29
- }), children);
25
+ intent: intent,
26
+ ...props,
27
+ children: [/*#__PURE__*/_jsx(Icon, {
28
+ name: intentIconMap[intent],
29
+ className: `${baseClassName}__icon`
30
+ }), children]
31
+ });
30
32
  };
31
33
  export default StatusMessage;
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
3
2
 
4
3
  import React, { cloneElement, Children, isValidElement, useRef, useMemo } from 'react';
@@ -6,6 +5,7 @@ import PropTypes from 'prop-types';
6
5
  import classNames from 'classnames';
7
6
  import { CLS_PREFIX } from '../../constants';
8
7
  import { safeInvoke, createFocusManager } from '../utils';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  /**
10
10
  * `Subnav` component is used when you need a second level navigation under [Tabs](#!/Tabs) on the screen.
11
11
  * @since 0.0.42
@@ -73,12 +73,13 @@ const Subnav = _ref => {
73
73
  }
74
74
  return child;
75
75
  });
76
- return /*#__PURE__*/React.createElement("div", _extends({
77
- className: classNames(baseClassName, className)
78
- }, props, {
76
+ return /*#__PURE__*/_jsx("div", {
77
+ className: classNames(baseClassName, className),
78
+ ...props,
79
79
  onKeyDown: handleKeyDown,
80
- ref: rootRef
81
- }), items);
80
+ ref: rootRef,
81
+ children: items
82
+ });
82
83
  };
83
84
  Subnav.propTypes = {
84
85
  /**
@@ -1,4 +1,3 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  // Copyright 1999-2020. Plesk International GmbH. All rights reserved.
4
3
 
@@ -7,6 +6,8 @@ import PropTypes from 'prop-types';
7
6
  import classNames from 'classnames';
8
7
  import { CLS_PREFIX } from '../../constants';
9
8
  import Tooltip from '../Tooltip';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
10
11
  /**
11
12
  * `Switch` component is used for changing the state of an object or system preferences.
12
13
  * It provides immediate results that is why it should not be used in Form.
@@ -39,26 +40,30 @@ class Switch extends Component {
39
40
  loading,
40
41
  ...props
41
42
  } = this.props;
42
- let result = /*#__PURE__*/React.createElement("label", _extends({
43
+ let result = /*#__PURE__*/_jsxs("label", {
43
44
  className: classNames(baseClassName, {
44
45
  [`${baseClassName}--${intent}`]: intent,
45
46
  [`${baseClassName}--loading`]: loading
46
- }, className)
47
- }, props), children ? /*#__PURE__*/React.createElement("span", {
48
- className: `${baseClassName}__label`
49
- }, children) : null, /*#__PURE__*/React.createElement("input", {
50
- type: "checkbox",
51
- onChange: this.handleChange,
52
- checked: checked,
53
- defaultChecked: checked === null || checked === undefined ? defaultChecked : undefined,
54
- disabled: disabled || loading
55
- }), /*#__PURE__*/React.createElement("span", {
56
- className: `${baseClassName}__indicator`
57
- }));
47
+ }, className),
48
+ ...props,
49
+ children: [children ? /*#__PURE__*/_jsx("span", {
50
+ className: `${baseClassName}__label`,
51
+ children: children
52
+ }) : null, /*#__PURE__*/_jsx("input", {
53
+ type: "checkbox",
54
+ onChange: this.handleChange,
55
+ checked: checked,
56
+ defaultChecked: checked === null || checked === undefined ? defaultChecked : undefined,
57
+ disabled: disabled || loading
58
+ }), /*#__PURE__*/_jsx("span", {
59
+ className: `${baseClassName}__indicator`
60
+ })]
61
+ });
58
62
  if (tooltip) {
59
- result = /*#__PURE__*/React.createElement(Tooltip, {
60
- title: tooltip
61
- }, result);
63
+ result = /*#__PURE__*/_jsx(Tooltip, {
64
+ title: tooltip,
65
+ children: result
66
+ });
62
67
  }
63
68
  return result;
64
69
  }