@plesk/ui-library 3.40.2 → 3.40.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/README.md +50 -50
  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 +4 -4
  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 +4 -4
  16. package/cjs/components/Checkbox/Checkbox.js +3 -3
  17. package/cjs/components/CodeEditor/CodeEditor.js +3 -3
  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 +3 -3
  26. package/cjs/components/Drawer/Drawer.js +4 -4
  27. package/cjs/components/Dropdown/Dropdown.js +5 -5
  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 +3 -3
  34. package/cjs/components/Form/Form.js +4 -4
  35. package/cjs/components/Form/utils.js +22 -22
  36. package/cjs/components/FormField/FormField.js +24 -24
  37. package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +4 -4
  38. package/cjs/components/FormFieldPassword/FormFieldPassword.js +3 -3
  39. package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +3 -3
  40. package/cjs/components/FormFieldSelect/FormFieldSelect.js +4 -4
  41. package/cjs/components/FormFieldText/FormFieldText.js +5 -5
  42. package/cjs/components/Grid/Grid.js +3 -3
  43. package/cjs/components/GridCol/GridCol.js +3 -3
  44. package/cjs/components/Heading/Heading.js +3 -3
  45. package/cjs/components/Hint/Hint.js +3 -3
  46. package/cjs/components/Icon/Icon.js +6 -6
  47. package/cjs/components/Icon/images/symbols.svg +1875 -1875
  48. package/cjs/components/InPlaceEdit/InPlaceEdit.js +5 -5
  49. package/cjs/components/Input/Input.js +3 -3
  50. package/cjs/components/InputFile/InputFile.js +3 -3
  51. package/cjs/components/InputNumber/InputNumber.js +3 -3
  52. package/cjs/components/Item/Item.js +4 -4
  53. package/cjs/components/ItemLink/ItemLink.js +4 -4
  54. package/cjs/components/ItemList/ItemList.js +6 -6
  55. package/cjs/components/Label/Label.js +3 -3
  56. package/cjs/components/Layer/Layer.js +2 -2
  57. package/cjs/components/Layout/Layout.js +2 -2
  58. package/cjs/components/Link/Link.js +3 -3
  59. package/cjs/components/List/List.js +4 -4
  60. package/cjs/components/List/ListAction.js +4 -4
  61. package/cjs/components/List/ListActions.js +3 -3
  62. package/cjs/components/List/ListActionsDivider.js +4 -4
  63. package/cjs/components/List/ListEmptyView.js +4 -4
  64. package/cjs/components/List/ListOperation.js +4 -4
  65. package/cjs/components/LocaleProvider/LocaleProvider.js +5 -5
  66. package/cjs/components/Markdown/Markdown.js +3 -3
  67. package/cjs/components/Media/Media.js +5 -5
  68. package/cjs/components/Media/MediaSection.js +3 -3
  69. package/cjs/components/Menu/Menu.js +9 -9
  70. package/cjs/components/Menu/MenuBaseItem.js +3 -3
  71. package/cjs/components/Menu/MenuDivider.js +3 -3
  72. package/cjs/components/Menu/MenuHeader.js +3 -3
  73. package/cjs/components/Menu/MenuItem.js +3 -3
  74. package/cjs/components/Menu/MenuSelectableItem.js +3 -3
  75. package/cjs/components/Overlay/Overlay.js +2 -2
  76. package/cjs/components/PageHeader/PageHeader.js +3 -3
  77. package/cjs/components/Pagination/Pagination.js +3 -3
  78. package/cjs/components/Panel/Panel.js +3 -3
  79. package/cjs/components/Paragraph/Paragraph.js +3 -3
  80. package/cjs/components/Plaintext/Plaintext.js +3 -3
  81. package/cjs/components/Popover/Popover.js +4 -4
  82. package/cjs/components/Popper/Popper.js +2 -2
  83. package/cjs/components/Progress/Progress.js +3 -3
  84. package/cjs/components/ProgressDialog/ProgressDialog.js +3 -3
  85. package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
  86. package/cjs/components/ProgressStep/ProgressStep.js +3 -3
  87. package/cjs/components/Radio/Radio.js +3 -3
  88. package/cjs/components/Rating/Rating.js +3 -3
  89. package/cjs/components/Rating/images/rating.svg +6 -6
  90. package/cjs/components/Section/Section.js +4 -4
  91. package/cjs/components/Section/SectionItem.js +3 -3
  92. package/cjs/components/SegmentedControl/SegmentedControl.js +4 -4
  93. package/cjs/components/Select/MultiValue.js +1 -1
  94. package/cjs/components/Select/Select.js +3 -3
  95. package/cjs/components/Select/SelectControl.js +1 -1
  96. package/cjs/components/Select/SelectOption.js +3 -3
  97. package/cjs/components/Select/SelectOptionGroup.js +3 -3
  98. package/cjs/components/Skeleton/Skeleton.js +4 -4
  99. package/cjs/components/Skeleton/SkeletonTabs.js +3 -3
  100. package/cjs/components/Skeleton/SkeletonText.js +3 -3
  101. package/cjs/components/Spinner/Spinner.js +2 -2
  102. package/cjs/components/SplitButton/SplitButton.js +5 -5
  103. package/cjs/components/Spot/Spot.js +3 -3
  104. package/cjs/components/Status/Status.js +3 -3
  105. package/cjs/components/StatusMessage/StatusMessage.js +4 -4
  106. package/cjs/components/Subnav/Subnav.js +5 -5
  107. package/cjs/components/Switch/Switch.js +4 -4
  108. package/cjs/components/SwitchesPanel/SwitchesPanel.js +3 -3
  109. package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +52 -81
  110. package/cjs/components/Tabs/SearchBar.js +3 -3
  111. package/cjs/components/Tabs/Tab.js +7 -7
  112. package/cjs/components/Tabs/Tabs.js +6 -6
  113. package/cjs/components/Text/Text.js +3 -3
  114. package/cjs/components/TextArea/TextArea.js +3 -3
  115. package/cjs/components/Toaster/Toaster.js +34 -34
  116. package/cjs/components/Toolbar/Toolbar.js +6 -6
  117. package/cjs/components/Toolbar/ToolbarExpander.js +5 -5
  118. package/cjs/components/Toolbar/ToolbarGroup.js +4 -4
  119. package/cjs/components/Tooltip/Tooltip.js +4 -4
  120. package/cjs/components/Tour/Tour.js +5 -5
  121. package/cjs/components/Translate/Translate.js +3 -3
  122. package/cjs/index.js +1 -1
  123. package/dist/images/no-image.svg +6 -6
  124. package/dist/images/rating.svg +6 -6
  125. package/dist/images/symbols.svg +1875 -1875
  126. package/dist/plesk-ui-library-rtl.css +1 -1
  127. package/dist/plesk-ui-library-rtl.css.map +1 -1
  128. package/dist/plesk-ui-library.css +1 -1
  129. package/dist/plesk-ui-library.css.map +1 -1
  130. package/dist/plesk-ui-library.js +4543 -4580
  131. package/dist/plesk-ui-library.js.map +1 -1
  132. package/dist/plesk-ui-library.min.js +4 -4
  133. package/dist/plesk-ui-library.min.js.map +1 -1
  134. package/esm/components/Action/Action.js +3 -3
  135. package/esm/components/Alert/Alert.js +5 -5
  136. package/esm/components/AutoClosable/AutoClosable.js +3 -3
  137. package/esm/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
  138. package/esm/components/Badge/Badge.js +3 -3
  139. package/esm/components/Breadcrumbs/Breadcrumbs.js +4 -4
  140. package/esm/components/Button/Button.js +4 -4
  141. package/esm/components/ButtonGroup/ButtonGroup.js +3 -3
  142. package/esm/components/Card/Card.js +52 -52
  143. package/esm/components/Card/CardButton.js +2 -2
  144. package/esm/components/Card/PreviewPanel.js +3 -3
  145. package/esm/components/Card/images/no-image.svg +6 -6
  146. package/esm/components/CardList/CardList.js +55 -55
  147. package/esm/components/Carousel/Carousel.js +4 -4
  148. package/esm/components/Checkbox/Checkbox.js +3 -3
  149. package/esm/components/CodeEditor/CodeEditor.js +3 -3
  150. package/esm/components/Columns/Column.js +3 -3
  151. package/esm/components/Columns/Columns.js +3 -3
  152. package/esm/components/ComboBox/ComboBox.js +4 -4
  153. package/esm/components/ComboBox/ComboBoxOption.js +3 -3
  154. package/esm/components/ConsoleOutput/ConsoleOutput.js +3 -3
  155. package/esm/components/ContentLoader/ContentLoader.js +3 -3
  156. package/esm/components/Cuttable/Cuttable.js +3 -3
  157. package/esm/components/Dialog/Dialog.js +3 -3
  158. package/esm/components/Drawer/Drawer.js +4 -4
  159. package/esm/components/Dropdown/Dropdown.js +5 -5
  160. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
  161. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
  162. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
  163. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
  164. package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
  165. package/esm/components/Figure/Figure.js +3 -3
  166. package/esm/components/Form/Form.js +4 -4
  167. package/esm/components/Form/utils.js +22 -22
  168. package/esm/components/FormField/FormField.js +24 -24
  169. package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +4 -4
  170. package/esm/components/FormFieldPassword/FormFieldPassword.js +3 -3
  171. package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +3 -3
  172. package/esm/components/FormFieldSelect/FormFieldSelect.js +4 -4
  173. package/esm/components/FormFieldText/FormFieldText.js +5 -5
  174. package/esm/components/Grid/Grid.js +3 -3
  175. package/esm/components/GridCol/GridCol.js +3 -3
  176. package/esm/components/Heading/Heading.js +3 -3
  177. package/esm/components/Hint/Hint.js +3 -3
  178. package/esm/components/Icon/Icon.js +6 -6
  179. package/esm/components/Icon/images/symbols.svg +1875 -1875
  180. package/esm/components/InPlaceEdit/InPlaceEdit.js +5 -5
  181. package/esm/components/Input/Input.js +3 -3
  182. package/esm/components/InputFile/InputFile.js +3 -3
  183. package/esm/components/InputNumber/InputNumber.js +3 -3
  184. package/esm/components/Item/Item.js +4 -4
  185. package/esm/components/ItemLink/ItemLink.js +4 -4
  186. package/esm/components/ItemList/ItemList.js +6 -6
  187. package/esm/components/Label/Label.js +3 -3
  188. package/esm/components/Layer/Layer.js +2 -2
  189. package/esm/components/Layout/Layout.js +2 -2
  190. package/esm/components/Link/Link.js +3 -3
  191. package/esm/components/List/List.js +4 -4
  192. package/esm/components/List/ListAction.js +4 -4
  193. package/esm/components/List/ListActions.js +3 -3
  194. package/esm/components/List/ListActionsDivider.js +4 -4
  195. package/esm/components/List/ListEmptyView.js +4 -4
  196. package/esm/components/List/ListOperation.js +4 -4
  197. package/esm/components/LocaleProvider/LocaleProvider.js +4 -4
  198. package/esm/components/Markdown/Markdown.js +3 -3
  199. package/esm/components/Media/Media.js +5 -5
  200. package/esm/components/Media/MediaSection.js +3 -3
  201. package/esm/components/Menu/Menu.js +9 -9
  202. package/esm/components/Menu/MenuBaseItem.js +3 -3
  203. package/esm/components/Menu/MenuDivider.js +3 -3
  204. package/esm/components/Menu/MenuHeader.js +3 -3
  205. package/esm/components/Menu/MenuItem.js +3 -3
  206. package/esm/components/Menu/MenuSelectableItem.js +3 -3
  207. package/esm/components/Overlay/Overlay.js +2 -2
  208. package/esm/components/PageHeader/PageHeader.js +3 -3
  209. package/esm/components/Pagination/Pagination.js +3 -3
  210. package/esm/components/Panel/Panel.js +3 -3
  211. package/esm/components/Paragraph/Paragraph.js +3 -3
  212. package/esm/components/Plaintext/Plaintext.js +3 -3
  213. package/esm/components/Popover/Popover.js +4 -4
  214. package/esm/components/Popper/Popper.js +2 -2
  215. package/esm/components/Progress/Progress.js +3 -3
  216. package/esm/components/ProgressDialog/ProgressDialog.js +3 -3
  217. package/esm/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
  218. package/esm/components/ProgressStep/ProgressStep.js +3 -3
  219. package/esm/components/Radio/Radio.js +3 -3
  220. package/esm/components/Rating/Rating.js +3 -3
  221. package/esm/components/Rating/images/rating.svg +6 -6
  222. package/esm/components/Section/Section.js +4 -4
  223. package/esm/components/Section/SectionItem.js +3 -3
  224. package/esm/components/SegmentedControl/SegmentedControl.js +4 -4
  225. package/esm/components/Select/MultiValue.js +1 -1
  226. package/esm/components/Select/Select.js +3 -3
  227. package/esm/components/Select/SelectControl.js +1 -1
  228. package/esm/components/Select/SelectOption.js +3 -3
  229. package/esm/components/Select/SelectOptionGroup.js +3 -3
  230. package/esm/components/Skeleton/Skeleton.js +4 -4
  231. package/esm/components/Skeleton/SkeletonTabs.js +3 -3
  232. package/esm/components/Skeleton/SkeletonText.js +3 -3
  233. package/esm/components/Spinner/Spinner.js +2 -2
  234. package/esm/components/SplitButton/SplitButton.js +5 -5
  235. package/esm/components/Spot/Spot.js +3 -3
  236. package/esm/components/Status/Status.js +3 -3
  237. package/esm/components/StatusMessage/StatusMessage.js +4 -4
  238. package/esm/components/Subnav/Subnav.js +5 -5
  239. package/esm/components/Switch/Switch.js +4 -4
  240. package/esm/components/SwitchesPanel/SwitchesPanel.js +3 -3
  241. package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +52 -81
  242. package/esm/components/Tabs/SearchBar.js +3 -3
  243. package/esm/components/Tabs/Tab.js +7 -7
  244. package/esm/components/Tabs/Tabs.js +6 -6
  245. package/esm/components/Text/Text.js +3 -3
  246. package/esm/components/TextArea/TextArea.js +3 -3
  247. package/esm/components/Toaster/Toaster.js +34 -34
  248. package/esm/components/Toolbar/Toolbar.js +6 -6
  249. package/esm/components/Toolbar/ToolbarExpander.js +5 -5
  250. package/esm/components/Toolbar/ToolbarGroup.js +4 -4
  251. package/esm/components/Tooltip/Tooltip.js +4 -4
  252. package/esm/components/Tour/Tour.js +5 -5
  253. package/esm/components/Translate/Translate.js +3 -3
  254. package/esm/index.js +1 -1
  255. package/index.js +5 -5
  256. package/package.json +150 -150
  257. package/scripts/postinstall.js +9 -9
  258. package/styleguide/browserconfig.xml +9 -9
  259. package/styleguide/build/bundle.f82c55df.js +2 -0
  260. package/styleguide/images/no-image.svg +6 -6
  261. package/styleguide/images/rating.svg +6 -6
  262. package/styleguide/images/symbols.svg +1875 -1875
  263. package/styleguide/index.html +2 -2
  264. package/styleguide/placeholders/placeholder_400x200.svg +5 -5
  265. package/styleguide/placeholders/placeholder_400x400.svg +5 -5
  266. package/styleguide/placeholders/placeholder_600x400.svg +5 -5
  267. package/styleguide/safari-pinned-tab.svg +28 -28
  268. package/styleguide/site.webmanifest +19 -19
  269. package/types/src/components/LocaleProvider/LocaleProvider.d.ts +5 -0
  270. package/types/src/components/SwitchesPanelItem/SwitchesPanelItem.d.ts +5 -20
  271. package/styleguide/build/bundle.fac8e4e0.js +0 -2
  272. /package/styleguide/build/{bundle.fac8e4e0.js.LICENSE.txt → bundle.f82c55df.js.LICENSE.txt} +0 -0
@@ -215,10 +215,10 @@ class Section extends Component {
215
215
  }
216
216
  }
217
217
 
218
- /**
219
- * `Section` component is used for dividing of complex content into groups for better readability
220
- * and comprehension of the presented information.
221
- * @since 0.0.54
218
+ /**
219
+ * `Section` component is used for dividing of complex content into groups for better readability
220
+ * and comprehension of the presented information.
221
+ * @since 0.0.54
222
222
  */
223
223
  const SectionWrapper = _ref8 => {
224
224
  let {
@@ -7,9 +7,9 @@ import VerticalContext from '../VerticalContext';
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export const SECTION_ITEM_BASE_CLASS_NAME = `${CLS_PREFIX}section-item`;
9
9
 
10
- /**
11
- * `SectionItem` component is used for showing parameters and its values in [Section](#!/Section).
12
- * @since 0.0.54
10
+ /**
11
+ * `SectionItem` component is used for showing parameters and its values in [Section](#!/Section).
12
+ * @since 0.0.54
13
13
  */
14
14
  const SectionItem = _ref => {
15
15
  let {
@@ -14,10 +14,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  const alphaSort = (a, b) => a > b ? 1 : -1;
15
15
  export const SEGMENTED_CONTROL_BASE_CLASS_NAME = `${CLS_PREFIX}segmented-control`;
16
16
 
17
- /**
18
- * `Segmented Control` is a group of several [Buttons](#!/Button)
19
- * each of which functions as a mutually exclusive option.
20
- * @since 0.0.68
17
+ /**
18
+ * `Segmented Control` is a group of several [Buttons](#!/Button)
19
+ * each of which functions as a mutually exclusive option.
20
+ * @since 0.0.68
21
21
  */
22
22
  class SegmentedControl extends Component {
23
23
  constructor() {
@@ -37,7 +37,7 @@ const MultiValue = _ref => {
37
37
  focusable: "false",
38
38
  "aria-hidden": "true",
39
39
  children: /*#__PURE__*/_jsx("path", {
40
- d: "M3.85 8.854a.498.498 0 1 1-.704-.704L5.296 6l-2.15-2.15a.498.498 0 0 1 .704-.704L6 5.296l2.15-2.15a.498.498 0 1 1 .704.704L6.704 6l2.15 2.15a.498.498 0 0 1-.704.704L6 6.704l-2.15 2.15z"
40
+ d: "M3.85 8.854a.498.498 0 1 1-.704-.704L5.296 6l-2.15-2.15a.498.498 0 0 1 .704-.704L6 5.296l2.15-2.15a.498.498 0 1 1\r .704.704L6.704 6l2.15 2.15a.498.498 0 0 1-.704.704L6 6.704l-2.15 2.15z"
41
41
  })
42
42
  })
43
43
  })]
@@ -86,9 +86,9 @@ const getNextValue = (value, prevValue) => {
86
86
  }
87
87
  return value;
88
88
  };
89
- /**
90
- * `Select` component is used for making a choice among a set of related options.
91
- * @since 2.3.0
89
+ /**
90
+ * `Select` component is used for making a choice among a set of related options.
91
+ * @since 2.3.0
92
92
  */
93
93
  const Select = _ref => {
94
94
  let {
@@ -219,7 +219,7 @@ const SelectControl = /*#__PURE__*/forwardRef(function SelectControl(_ref, ref)
219
219
  "aria-hidden": "true",
220
220
  focusable: "false",
221
221
  children: /*#__PURE__*/_jsx("path", {
222
- d: "M.85 7.854a.498.498 0 1 1-.704-.704L3.296 4 .146.85A.498.498 0 0 1 .85.146L4 3.296 7.15.146a.498.498 0 0 1 .704.704L4.704 4l3.15 3.15a.498.498 0 0 1-.704.704L4 4.704.85 7.854z"
222
+ d: "M.85 7.854a.498.498 0 1 1-.704-.704L3.296 4 .146.85A.498.498 0 0 1 .85.146L4 3.296 7.15.146a.498.498 0 0 1\r .704.704L4.704 4l3.15 3.15a.498.498 0 0 1-.704.704L4 4.704.85 7.854z"
223
223
  })
224
224
  })
225
225
  })
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
 
4
- /**
5
- * `SelectOption` is a part of [SelectOptionGroup](#!/SelectOptionGroup) component.
6
- * @since 2.3.0
4
+ /**
5
+ * `SelectOption` is a part of [SelectOptionGroup](#!/SelectOptionGroup) component.
6
+ * @since 2.3.0
7
7
  */
8
8
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
9
  const SelectOption = _props => {
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
 
4
- /**
5
- * `SelectOptionGroup` is a part of [Select](#!/Select) component. It can be used for splitting the list of all options into groups.
6
- * @since 2.3.0
4
+ /**
5
+ * `SelectOptionGroup` is a part of [Select](#!/Select) component. It can be used for splitting the list of all options into groups.
6
+ * @since 2.3.0
7
7
  */
8
8
  const SelectOptionGroup = _props => {
9
9
  // styleguidist doesn't show Props & Methods if component renders nothing
@@ -4,10 +4,10 @@ import classNames from 'classnames';
4
4
  import { normalizeSize } from '../utils';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- /**
8
- * `Skeleton` (or content-placeholder) is placeholder preview of content before the data gets loaded to reduce load-time frustration.
9
- * Skeleton is used for non-text components, images, media-objects, etc.
10
- * @since 3.28.0
7
+ /**
8
+ * `Skeleton` (or content-placeholder) is placeholder preview of content before the data gets loaded to reduce load-time frustration.
9
+ * Skeleton is used for non-text components, images, media-objects, etc.
10
+ * @since 3.28.0
11
11
  */
12
12
  const Skeleton = _ref => {
13
13
  let {
@@ -4,9 +4,9 @@ import classNames from 'classnames';
4
4
  import SkeletonText from './SkeletonText';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- /**
8
- * Skeleton for tabs component
9
- * @since `3.28.0
7
+ /**
8
+ * Skeleton for tabs component
9
+ * @since `3.28.0
10
10
  */
11
11
  const SkeletonTabs = _ref => {
12
12
  let {
@@ -4,9 +4,9 @@ import classNames from 'classnames';
4
4
  import Skeleton from './Skeleton';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- /**
8
- * Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
9
- * @since 3.28.0
7
+ /**
8
+ * Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
9
+ * @since 3.28.0
10
10
  */
11
11
  const SkeletonText = _ref => {
12
12
  let {
@@ -3,8 +3,8 @@
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
- /**
7
- * `Spinner` component.
6
+ /**
7
+ * `Spinner` component.
8
8
  */
9
9
  const Spinner = _ref => {
10
10
  let {
@@ -30,11 +30,11 @@ const focusStrategy = {
30
30
  return container.children[1].querySelector('button');
31
31
  }
32
32
  };
33
- /**
34
- * `Split Button` is a combination of a standard [Button](#!/Button) with a [Dropdown](#!/Dropdown) menu.
35
- * It is used for grouping several related actions when one of the actions should be accessible immediately
36
- * because it is used more often than others.
37
- * @since 0.0.40
33
+ /**
34
+ * `Split Button` is a combination of a standard [Button](#!/Button) with a [Dropdown](#!/Dropdown) menu.
35
+ * It is used for grouping several related actions when one of the actions should be accessible immediately
36
+ * because it is used more often than others.
37
+ * @since 0.0.40
38
38
  */
39
39
  const SplitButton = _ref => {
40
40
  let {
@@ -9,9 +9,9 @@ import SpotPopup from './SpotPopup';
9
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
- /**
13
- * The component can be used to attract the user's attention to a specific element on the page.
14
- * @since 3.0.1
12
+ /**
13
+ * The component can be used to attract the user's attention to a specific element on the page.
14
+ * @since 3.0.1
15
15
  */
16
16
  const Spot = _ref => {
17
17
  let {
@@ -20,9 +20,9 @@ const toIcon = (icon, intent) => {
20
20
  } : undefined);
21
21
  };
22
22
 
23
- /**
24
- * `Status` component is used for indicating state of an object or the system.
25
- * @since 0.0.68
23
+ /**
24
+ * `Status` component is used for indicating state of an object or the system.
25
+ * @since 0.0.68
26
26
  */
27
27
  const Status = _ref => {
28
28
  let {
@@ -6,10 +6,10 @@ import Icon from '../Icon';
6
6
  import { CLS_PREFIX } from '../../constants';
7
7
  import { intentIconMap } from '../intentIconMap';
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- /**
10
- * `StatusMessage` is used for notifying users about events happened (or going to happen) in the system.
11
- * For showing results of performed operations [Toaster](#!/Toaster) should be used.
12
- * @since 1.12.0
9
+ /**
10
+ * `StatusMessage` is used for notifying users about events happened (or going to happen) in the system.
11
+ * For showing results of performed operations [Toaster](#!/Toaster) should be used.
12
+ * @since 1.12.0
13
13
  */
14
14
  const StatusMessage = _ref => {
15
15
  let {
@@ -5,9 +5,9 @@ import { CLS_PREFIX } from '../../constants';
5
5
  import { safeInvoke, createFocusManager } from '../utils';
6
6
  import { cloneElement, Children, isValidElement, useRef, useMemo } from 'react';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
- /**
9
- * `Subnav` component is used when you need a second level navigation under [Tabs](#!/Tabs) on the screen.
10
- * @since 0.0.42
8
+ /**
9
+ * `Subnav` component is used when you need a second level navigation under [Tabs](#!/Tabs) on the screen.
10
+ * @since 0.0.42
11
11
  */
12
12
  const Subnav = _ref => {
13
13
  let {
@@ -85,8 +85,8 @@ const Subnav = _ref => {
85
85
  children: items
86
86
  });
87
87
  };
88
- /**
89
- * SubnavItem component.
88
+ /**
89
+ * SubnavItem component.
90
90
  */
91
91
  const SubnavItem = _ref2 => {
92
92
  let {
@@ -4,10 +4,10 @@ import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Tooltip from '../Tooltip';
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- /**
8
- * `Switch` component is used for changing the state of an object or system preferences.
9
- * It provides immediate results that is why it should not be used in Form.
10
- * @since 0.0.42
7
+ /**
8
+ * `Switch` component is used for changing the state of an object or system preferences.
9
+ * It provides immediate results that is why it should not be used in Form.
10
+ * @since 0.0.42
11
11
  */
12
12
  const Switch = _ref => {
13
13
  let {
@@ -5,9 +5,9 @@ import classNames from 'classnames';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import Section from '../Section';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
- /**
9
- * `SwitchesPanel` component is used for grouping several [SwitchesPanelItems](#!/SwitchesPanelItem) into one set.
10
- * @since 0.3.0
8
+ /**
9
+ * `SwitchesPanel` component is used for grouping several [SwitchesPanelItems](#!/SwitchesPanelItem) into one set.
10
+ * @since 0.3.0
11
11
  */
12
12
  const SwitchesPanel = _ref => {
13
13
  let {
@@ -1,93 +1,64 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
2
 
4
- import { Component } from 'react';
5
3
  import classNames from 'classnames';
6
4
  import { CLS_PREFIX } from '../../constants';
7
5
  import Switch from '../Switch';
8
6
  import Action from '../Action';
9
7
  import Popover from '../Popover';
10
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- /**
12
- * `SwitchesPanelItem` component is used for combining [Switch](#!/Switch) component with text title and description.
13
- * Used in [SwitchesPanel](#!/SwitchesPanel).
14
- * @since 0.3.0
9
+ /**
10
+ * `SwitchesPanelItem` component is used for combining [Switch](#!/Switch) component with text title and description.
11
+ * Used in [SwitchesPanel](#!/SwitchesPanel).
12
+ * @since 0.3.0
15
13
  */
16
- class SwitchesPanelItem extends Component {
17
- constructor() {
18
- super(...arguments);
19
- _defineProperty(this, "state", {
20
- checked: this.props.defaultChecked
21
- });
22
- _defineProperty(this, "handleChange", checked => {
23
- this.setState({
24
- checked
25
- });
26
- this.props.onChange(checked);
27
- });
28
- }
29
- render() {
30
- const {
31
- onChange,
32
- defaultChecked,
33
- intent,
34
- title,
35
- description,
36
- fullDescription,
37
- baseClassName,
38
- className,
39
- switchProps,
40
- children,
41
- ...props
42
- } = this.props;
43
- const {
44
- checked
45
- } = this.state;
46
- return /*#__PURE__*/_jsxs("div", {
47
- className: classNames(baseClassName, {
48
- [`${baseClassName}--${intent}`]: intent && checked
49
- }, className),
50
- ...props,
51
- children: [/*#__PURE__*/_jsx("h5", {
52
- className: `${baseClassName}__title`,
53
- children: title
54
- }), description && /*#__PURE__*/_jsx("p", {
55
- className: `${baseClassName}__description`,
56
- children: description
57
- }), /*#__PURE__*/_jsxs("div", {
58
- className: `${baseClassName}__actions`,
59
- children: [/*#__PURE__*/_jsx(Switch, {
60
- className: `${baseClassName}__switch`,
61
- intent: intent,
62
- onChange: this.handleChange,
63
- defaultChecked: defaultChecked,
64
- ...switchProps
65
- }), (fullDescription || children) && /*#__PURE__*/_jsxs("div", {
66
- className: `${baseClassName}__controls`,
67
- children: [children, fullDescription && /*#__PURE__*/_jsx(Popover, {
68
- intent: "info",
69
- target: /*#__PURE__*/_jsx(Action, {
70
- icon: "question-mark-circle",
71
- outerProps: {
72
- className: `${baseClassName}__full-description-toggle`
73
- }
74
- }),
75
- placement: "bottom",
76
- children: fullDescription
77
- })]
14
+ const SwitchesPanelItem = _ref => {
15
+ let {
16
+ onChange,
17
+ defaultChecked = false,
18
+ intent,
19
+ title,
20
+ description,
21
+ fullDescription,
22
+ className,
23
+ switchProps = {},
24
+ children,
25
+ baseClassName = `${CLS_PREFIX}switches-panel-item`,
26
+ ...props
27
+ } = _ref;
28
+ return /*#__PURE__*/_jsxs("div", {
29
+ className: classNames(baseClassName, {
30
+ [`${baseClassName}--${intent}`]: intent
31
+ }, className),
32
+ ...props,
33
+ children: [/*#__PURE__*/_jsx("h5", {
34
+ className: `${baseClassName}__title`,
35
+ children: title
36
+ }), description && /*#__PURE__*/_jsx("p", {
37
+ className: `${baseClassName}__description`,
38
+ children: description
39
+ }), /*#__PURE__*/_jsxs("div", {
40
+ className: `${baseClassName}__actions`,
41
+ children: [/*#__PURE__*/_jsx(Switch, {
42
+ className: `${baseClassName}__switch`,
43
+ intent: intent,
44
+ onChange: onChange,
45
+ defaultChecked: defaultChecked,
46
+ ...switchProps
47
+ }), (fullDescription || children) && /*#__PURE__*/_jsxs("div", {
48
+ className: `${baseClassName}__controls`,
49
+ children: [children, fullDescription && /*#__PURE__*/_jsx(Popover, {
50
+ intent: "info",
51
+ target: /*#__PURE__*/_jsx(Action, {
52
+ icon: "question-mark-circle",
53
+ outerProps: {
54
+ className: `${baseClassName}__full-description-toggle`
55
+ }
56
+ }),
57
+ placement: "bottom",
58
+ children: fullDescription
78
59
  })]
79
60
  })]
80
- });
81
- }
82
- }
83
- _defineProperty(SwitchesPanelItem, "defaultProps", {
84
- defaultChecked: false,
85
- intent: null,
86
- description: null,
87
- fullDescription: null,
88
- switchProps: {},
89
- children: null,
90
- className: null,
91
- baseClassName: `${CLS_PREFIX}switches-panel-item`
92
- });
61
+ })]
62
+ });
63
+ };
93
64
  export default SwitchesPanelItem;
@@ -14,9 +14,9 @@ import Menu, { MenuItem, MenuSelectableItem } from '../Menu';
14
14
  import ResponsiveContext from '../ResponsiveContext';
15
15
  import { safeInvoke } from '../utils';
16
16
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
17
- /**
18
- * `SearchBar` component is used for providing type-as-you-go search.
19
- * @since 0.0.58
17
+ /**
18
+ * `SearchBar` component is used for providing type-as-you-go search.
19
+ * @since 0.0.58
20
20
  */
21
21
  class SearchBar extends Component {
22
22
  constructor() {
@@ -2,13 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
  /* eslint-disable react/no-unused-prop-types */
4
4
 
5
- /**
6
- * `Tab` is an individual element of the [Tabs](#!/Tabs) component.
7
- *
8
- * Each `Tab` can display an icon near the tab name for easier identification.
9
- * It can also display a [Label](#!/Label) next to the tab name for showing additional information about its content.
10
- * You can make `Tabs` closeable, for example, if you are using them for opening and displaying files.
11
- * @since 0.0.35
5
+ /**
6
+ * `Tab` is an individual element of the [Tabs](#!/Tabs) component.
7
+ *
8
+ * Each `Tab` can display an icon near the tab name for easier identification.
9
+ * It can also display a [Label](#!/Label) next to the tab name for showing additional information about its content.
10
+ * You can make `Tabs` closeable, for example, if you are using them for opening and displaying files.
11
+ * @since 0.0.35
12
12
  */
13
13
  const Tab = _ref => {
14
14
  let {
@@ -16,12 +16,12 @@ import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-run
16
16
  const ADDON_LEFT_PADDING = 5;
17
17
  const MIN_ADDON_WIDTH_DEFAULT = 150;
18
18
  const COLLAPSED_SEARCH_WIDTH = 60;
19
- /**
20
- * `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
21
- * in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
22
- * the content is broken into logical groups and each group is displayed under its own [Tab](#!/Tab) that serves both as a
23
- * group name and a navigation button.
24
- * @since 0.0.35
19
+ /**
20
+ * `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
21
+ * in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
22
+ * the content is broken into logical groups and each group is displayed under its own [Tab](#!/Tab) that serves both as a
23
+ * group name and a navigation button.
24
+ * @since 0.0.35
25
25
  */
26
26
  class Tabs extends Component {
27
27
  constructor() {
@@ -5,9 +5,9 @@ import classNames from 'classnames';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import OnDarkContext from '../OnDarkContext';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
- /**
9
- * `Text` component is used for displaying inline text. For text blocks use [Paragraph](#!/Paragraph).
10
- * @since 1.1.0
8
+ /**
9
+ * `Text` component is used for displaying inline text. For text blocks use [Paragraph](#!/Paragraph).
10
+ * @since 1.1.0
11
11
  */
12
12
  const Text = _ref => {
13
13
  let {
@@ -20,9 +20,9 @@ const getMinMax = rows => {
20
20
  };
21
21
  const AVAILABLE_SIZES = new Set(['sm', 'md', 'lg', 'xl', 'fill']);
22
22
 
23
- /**
24
- * `TextArea` is used for entering long text (like email body, descriptions, comments).
25
- * @since 1.9.0
23
+ /**
24
+ * `TextArea` is used for entering long text (like email body, descriptions, comments).
25
+ * @since 1.9.0
26
26
  */
27
27
  const TextArea = _ref => {
28
28
  let {
@@ -11,9 +11,9 @@ import Toast from '../Toast';
11
11
  import Layer from '../Layer';
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  let toastId = 0;
14
- /**
15
- * `Toaster` is used for notifying about events happened in the system. For example, about results of performed operations.
16
- * @since 0.0.42
14
+ /**
15
+ * `Toaster` is used for notifying about events happened in the system. For example, about results of performed operations.
16
+ * @since 0.0.42
17
17
  */
18
18
  export default class Toaster extends Component {
19
19
  constructor() {
@@ -38,21 +38,21 @@ export default class Toaster extends Component {
38
38
  return Boolean(this.props.toasts);
39
39
  }
40
40
 
41
- /**
42
- * Add a new toast
43
- *
44
- * `intent` - Visual intent color to apply to component. (Type: `oneOf` 'info', 'success', 'warning', 'danger'. *Required*.)<br>
45
- * `accent` - Contrast (light) version of the component. (Type: `boolean`. Default: 'undefined'.)<br>
46
- * `icon` - Name of icon or [Icon](#!/Icon) component. (Type: `oneOfType` 'string', 'object', 'element'. Default: `undefined`.)<br>
47
- * `message` - Message to display in the body of the toast. (Type: `any`. Default: `undefined`.)<br>
48
- * `onClose` - onClose handler. (Type: `func`. Default: `undefined`.)<br>
49
- * `closable` - Show close control (cross mark). (Type: `boolean`. Default: `true`.)<br>
50
- * `autoClosable` - Whether call `onClose` after 6 seconds or not.
51
- * Enabled by default when the position is "top-end" and a toast has "success" intent. (Type: `boolean`. Default: 'undefined'.)<br>
52
- * ---
53
- * @param {Object} props **Toast props**:
54
- * @returns {string} New toast key
55
- * @public
41
+ /**
42
+ * Add a new toast
43
+ *
44
+ * `intent` - Visual intent color to apply to component. (Type: `oneOf` 'info', 'success', 'warning', 'danger'. *Required*.)<br>
45
+ * `accent` - Contrast (light) version of the component. (Type: `boolean`. Default: 'undefined'.)<br>
46
+ * `icon` - Name of icon or [Icon](#!/Icon) component. (Type: `oneOfType` 'string', 'object', 'element'. Default: `undefined`.)<br>
47
+ * `message` - Message to display in the body of the toast. (Type: `any`. Default: `undefined`.)<br>
48
+ * `onClose` - onClose handler. (Type: `func`. Default: `undefined`.)<br>
49
+ * `closable` - Show close control (cross mark). (Type: `boolean`. Default: `true`.)<br>
50
+ * `autoClosable` - Whether call `onClose` after 6 seconds or not.
51
+ * Enabled by default when the position is "top-end" and a toast has "success" intent. (Type: `boolean`. Default: 'undefined'.)<br>
52
+ * ---
53
+ * @param {Object} props **Toast props**:
54
+ * @returns {string} New toast key
55
+ * @public
56
56
  */
57
57
  add(props) {
58
58
  const key = `toast-${toastId++}`;
@@ -70,13 +70,13 @@ export default class Toaster extends Component {
70
70
  return key;
71
71
  }
72
72
 
73
- /**
74
- * Update toast by key
75
- *
76
- * @param {string} key
77
- * @param {Object} props New props
78
- * @returns {string} Updated toast key
79
- * @public
73
+ /**
74
+ * Update toast by key
75
+ *
76
+ * @param {string} key
77
+ * @param {Object} props New props
78
+ * @returns {string} Updated toast key
79
+ * @public
80
80
  */
81
81
  update(key, props) {
82
82
  this.setState(_ref3 => {
@@ -93,11 +93,11 @@ export default class Toaster extends Component {
93
93
  return key;
94
94
  }
95
95
 
96
- /**
97
- * Remove toast by key
98
- *
99
- * @param {string} key
100
- * @public
96
+ /**
97
+ * Remove toast by key
98
+ *
99
+ * @param {string} key
100
+ * @public
101
101
  */
102
102
  remove(key) {
103
103
  this.setState(_ref4 => {
@@ -110,10 +110,10 @@ export default class Toaster extends Component {
110
110
  });
111
111
  }
112
112
 
113
- /**
114
- * Clear all toasts
115
- *
116
- * @public
113
+ /**
114
+ * Clear all toasts
115
+ *
116
+ * @public
117
117
  */
118
118
  clear() {
119
119
  this.setState({
@@ -12,12 +12,12 @@ import Squeezer from '../Squeezer';
12
12
  import { useSqueeze } from '../../hooks';
13
13
  import { useToolbarBetaContext } from './ToolbarBetaProvider';
14
14
 
15
- /**
16
- * `Toolbar` component is a panel containing various instruments used for managing the contents of a large content block.
17
- * Toolbar is located on top of the managed content block.
18
- * It typically consists of three main parts: controls that add new elements, controls that work with existing elements,
19
- * and controls for changing the way the content block looks.
20
- * @since 0.0.57
15
+ /**
16
+ * `Toolbar` component is a panel containing various instruments used for managing the contents of a large content block.
17
+ * Toolbar is located on top of the managed content block.
18
+ * It typically consists of three main parts: controls that add new elements, controls that work with existing elements,
19
+ * and controls for changing the way the content block looks.
20
+ * @since 0.0.57
21
21
  */
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  class ToolbarClassComponent extends Component {