@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
@@ -117,11 +117,11 @@ const useEnhancedMenu = (menu, _ref2) => {
117
117
  };
118
118
  };
119
119
 
120
- /**
121
- * `Dropdown` component is a [Button](#!/Button) that opens a drop-down (nested) [Menu](#!/Menu).
122
- * Use dropdown for grouping actions that are not used often or are less important than others -- in other words,
123
- * for stuff that you don't want to show users all the time, especially if you have limited screen space.
124
- * @since 0.0.57
120
+ /**
121
+ * `Dropdown` component is a [Button](#!/Button) that opens a drop-down (nested) [Menu](#!/Menu).
122
+ * Use dropdown for grouping actions that are not used often or are less important than others -- in other words,
123
+ * for stuff that you don't want to show users all the time, especially if you have limited screen space.
124
+ * @since 0.0.57
125
125
  */
126
126
  const Dropdown = _ref3 => {
127
127
  let {
@@ -4,10 +4,10 @@ import classNames from 'classnames';
4
4
  import ContentLoader from '../ContentLoader';
5
5
  import { CLS_PREFIX } from '../../constants';
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- /**
8
- * `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
9
- * but it is used when the message itself is the primary content on the page.
10
- * @since 0.0.35
7
+ /**
8
+ * `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
9
+ * but it is used when the message itself is the primary content on the page.
10
+ * @since 0.0.35
11
11
  */
12
12
  const ExtendedStatusMessage = _ref => {
13
13
  let {
@@ -3,9 +3,9 @@
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
- * `ExtendedStatusMessageActions` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
8
- * @since 0.0.35
6
+ /**
7
+ * `ExtendedStatusMessageActions` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
8
+ * @since 0.0.35
9
9
  */
10
10
 
11
11
  const ExtendedStatusMessageActions = _ref => {
@@ -3,9 +3,9 @@
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
- * `ExtendedStatusMessageDescription` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
8
- * @since 0.0.35
6
+ /**
7
+ * `ExtendedStatusMessageDescription` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
8
+ * @since 0.0.35
9
9
  */
10
10
 
11
11
  const ExtendedStatusMessageDescription = _ref => {
@@ -2,9 +2,9 @@
2
2
 
3
3
  import classNames from 'classnames';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
- /**
6
- * `ExtendedStatusMessageSeparator` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
7
- * @since 0.0.35
5
+ /**
6
+ * `ExtendedStatusMessageSeparator` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
7
+ * @since 0.0.35
8
8
  */
9
9
 
10
10
  const ExtendedStatusMessageSeparator = _ref => {
@@ -4,9 +4,9 @@ import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Heading from '../Heading';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- /**
8
- * `ExtendedStatusMessageTitle` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
9
- * @since 0.0.35
7
+ /**
8
+ * `ExtendedStatusMessageTitle` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
9
+ * @since 0.0.35
10
10
  */
11
11
 
12
12
  const ExtendedStatusMessageTitle = _ref => {
@@ -3,9 +3,9 @@
3
3
  import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- /**
7
- * Figure component.
8
- * @since 0.0.42
6
+ /**
7
+ * Figure component.
8
+ * @since 0.0.42
9
9
  */
10
10
  const Figure = _ref => {
11
11
  let {
@@ -404,9 +404,9 @@ const RefForwardingForm = /*#__PURE__*/forwardRef((props, ref) => {
404
404
  });
405
405
  });
406
406
  RefForwardingForm.displayName = 'Form';
407
- /**
408
- * `Form` component is used for entering and submitting of user data.
409
- * [More details about designing of forms.](#!/Good%20Forms)
410
- * @since 0.0.54
407
+ /**
408
+ * `Form` component is used for entering and submitting of user data.
409
+ * [More details about designing of forms.](#!/Good%20Forms)
410
+ * @since 0.0.54
411
411
  */
412
412
  export default RefForwardingForm;
@@ -17,17 +17,17 @@ const fixObj = (obj, key) => {
17
17
  return [...obj];
18
18
  };
19
19
 
20
- /**
21
- * Deeply get a value from an object via its path.
22
- *
23
- * @param {object} obj The object to query.
24
- * @param {string} name The path of the property to get.
25
- * @param {*} def The value returned for `undefined` resolved values.
26
- * @returns {*} Returns the resolved value.
27
- *
28
- * @example
29
- * const name = getIn(state, 'user[name]', 'Anonymous');
30
- *
20
+ /**
21
+ * Deeply get a value from an object via its path.
22
+ *
23
+ * @param {object} obj The object to query.
24
+ * @param {string} name The path of the property to get.
25
+ * @param {*} def The value returned for `undefined` resolved values.
26
+ * @returns {*} Returns the resolved value.
27
+ *
28
+ * @example
29
+ * const name = getIn(state, 'user[name]', 'Anonymous');
30
+ *
31
31
  */
32
32
  const getIn = (obj, name, def) => {
33
33
  const path = nameToPath(name);
@@ -38,17 +38,17 @@ const getIn = (obj, name, def) => {
38
38
  return val === undefined ? def : val;
39
39
  };
40
40
 
41
- /**
42
- * Deeply set a value from in object via it's path.
43
- * Does not mutate an original object.
44
- *
45
- * @param {object} obj The object to query.
46
- * @param {string} name The path of the property to set.
47
- * @param {*} val The value to set.
48
- * @returns {object} Returns a new object.
49
- *
50
- * @example
51
- * const nextState = setIn(state, 'user[name]', 'John');
41
+ /**
42
+ * Deeply set a value from in object via it's path.
43
+ * Does not mutate an original object.
44
+ *
45
+ * @param {object} obj The object to query.
46
+ * @param {string} name The path of the property to set.
47
+ * @param {*} val The value to set.
48
+ * @returns {object} Returns a new object.
49
+ *
50
+ * @example
51
+ * const nextState = setIn(state, 'user[name]', 'John');
52
52
  */
53
53
  const setIn = (obj, name, val) => {
54
54
  const path = nameToPath(name);
@@ -22,8 +22,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  export const BASE_FORM_FIELD_CLASS_NAME = `${CLS_PREFIX}form-field`;
23
23
  const defaultValue = undefined;
24
24
 
25
- /**
26
- * Simple helper to handle situations when we're expecting only array
25
+ /**
26
+ * Simple helper to handle situations when we're expecting only array
27
27
  */
28
28
  const getArrayHelper = function (value) {
29
29
  let nonEmpty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
@@ -37,8 +37,8 @@ const getArrayHelper = function (value) {
37
37
  return result;
38
38
  };
39
39
  const isEmpty = value => !value && value !== 0 || Array.isArray(value) && value.length === 0 || !Array.isArray(value) && typeof value === 'object' && Object.values(value).filter(t => Boolean(t)).length === 0;
40
- /**
41
- * @since 0.0.54
40
+ /**
41
+ * @since 0.0.54
42
42
  */
43
43
  class FormField extends Component {
44
44
  constructor(_props) {
@@ -48,8 +48,8 @@ class FormField extends Component {
48
48
  _defineProperty(this, "fieldApi", void 0);
49
49
  _defineProperty(this, "targetRefs", void 0);
50
50
  _defineProperty(this, "focusTimer", null);
51
- /**
52
- * Field API provided to field
51
+ /**
52
+ * Field API provided to field
53
53
  */
54
54
  _defineProperty(this, "getFieldApi", index => {
55
55
  if (!this.props.multi) {
@@ -121,15 +121,15 @@ class FormField extends Component {
121
121
  }, 500);
122
122
  }
123
123
  });
124
- /**
125
- * Handler for clicks on 'Add more'
124
+ /**
125
+ * Handler for clicks on 'Add more'
126
126
  */
127
127
  _defineProperty(this, "handleAddMore", () => {
128
128
  const values = getArrayHelper(this.fieldApi.getValue(), true);
129
129
  this.fieldApi.setValue([...values, defaultValue]);
130
130
  });
131
- /**
132
- * Handler for clicks on 'Remove'
131
+ /**
132
+ * Handler for clicks on 'Remove'
133
133
  */
134
134
  _defineProperty(this, "handleRemove", index => {
135
135
  const values = getArrayHelper(this.fieldApi.getValue());
@@ -151,8 +151,8 @@ class FormField extends Component {
151
151
  _defineProperty(this, "setTargetRef", index => node => {
152
152
  this.targetRefs[index] = node;
153
153
  });
154
- /**
155
- * Renders 'Remove' button for each row.
154
+ /**
155
+ * Renders 'Remove' button for each row.
156
156
  */
157
157
  _defineProperty(this, "renderRemoveButton", index => {
158
158
  const {
@@ -179,8 +179,8 @@ class FormField extends Component {
179
179
  ghost: true
180
180
  });
181
181
  });
182
- /**
183
- * Renders description for last row.
182
+ /**
183
+ * Renders description for last row.
184
184
  */
185
185
  _defineProperty(this, "renderDescription", index => {
186
186
  const {
@@ -197,8 +197,8 @@ class FormField extends Component {
197
197
  children: description
198
198
  });
199
199
  });
200
- /**
201
- * Renders one field.
200
+ /**
201
+ * Renders one field.
202
202
  */
203
203
  _defineProperty(this, "renderField", function () {
204
204
  let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
@@ -417,14 +417,14 @@ class FormField extends Component {
417
417
  }
418
418
  }
419
419
 
420
- /**
421
- * `FormField` component is used for showing of parameter values in Form or
422
- * for entering of user data with any form elements.
423
- *
424
- * For the most cases the following form elements can be used:
425
- * * [FormFieldText](#!/FormFieldText) for entering text,
426
- * * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
427
- * [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
420
+ /**
421
+ * `FormField` component is used for showing of parameter values in Form or
422
+ * for entering of user data with any form elements.
423
+ *
424
+ * For the most cases the following form elements can be used:
425
+ * * [FormFieldText](#!/FormFieldText) for entering text,
426
+ * * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
427
+ * [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
428
428
  */
429
429
  const FormFieldWrapper = _ref => {
430
430
  let {
@@ -6,10 +6,10 @@ import { CLS_PREFIX } from '../../constants';
6
6
  import Checkbox from '../Checkbox';
7
7
  import FormField from '../FormField';
8
8
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
9
- /**
10
- * `FormFieldCheckbox` component is used for turning an option on or off
11
- * and selecting or deselecting an item.
12
- * @since 0.0.58
9
+ /**
10
+ * `FormFieldCheckbox` component is used for turning an option on or off
11
+ * and selecting or deselecting an item.
12
+ * @since 0.0.58
13
13
  */
14
14
  const FormFieldCheckbox = _ref => {
15
15
  let {
@@ -12,9 +12,9 @@ import PasswordMeter from './PasswordMeter';
12
12
  import generatePassword from './generatePassword';
13
13
  import locale from './locale/en-US';
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- /**
16
- * `FormFieldPassword` component provides secure way to enter a password.
17
- * @since 0.0.58
15
+ /**
16
+ * `FormFieldPassword` component provides secure way to enter a password.
17
+ * @since 0.0.58
18
18
  */
19
19
  class FormFieldPassword extends Component {
20
20
  constructor() {
@@ -7,9 +7,9 @@ import FormField, { BASE_FORM_FIELD_CLASS_NAME } from '../FormField';
7
7
  import Hint from '../Hint';
8
8
  import Radio from '../Radio';
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- /**
11
- * `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
12
- * @since 0.2.0
10
+ /**
11
+ * `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
12
+ * @since 0.2.0
13
13
  */
14
14
  const FormFieldRadioButtons = _ref => {
15
15
  let {
@@ -5,10 +5,10 @@ import { CLS_PREFIX } from '../../constants';
5
5
  import FormField from '../FormField';
6
6
  import Select from '../Select';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
- /**
9
- * `FormFieldSelect` componentis is used for making a choice among a set of related options.
10
- * See description of `Select` for [the full list of properties](#!/Select) of this component.
11
- * @since 1.12.3
8
+ /**
9
+ * `FormFieldSelect` componentis is used for making a choice among a set of related options.
10
+ * See description of `Select` for [the full list of properties](#!/Select) of this component.
11
+ * @since 1.12.3
12
12
  */
13
13
  const FormFieldSelect = _ref => {
14
14
  let {
@@ -5,11 +5,11 @@ import FormField from '../FormField';
5
5
  import Input from '../Input';
6
6
  import TextArea from '../TextArea';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
- /**
9
- * `FormFieldText` component is used for entering of user data in text format.
10
- *
11
- * [FormField](#!/FormField) with [InputNumber](#!/InputNumber) can be used for entering of integer numbers.
12
- * @since 0.0.58
8
+ /**
9
+ * `FormFieldText` component is used for entering of user data in text format.
10
+ *
11
+ * [FormField](#!/FormField) with [InputNumber](#!/InputNumber) can be used for entering of integer numbers.
12
+ * @since 0.0.58
13
13
  */
14
14
  const FormFieldText = props => {
15
15
  const {
@@ -6,9 +6,9 @@ import classNames from 'classnames';
6
6
  import Measure from 'react-measure';
7
7
  import { CLS_PREFIX } from '../../constants';
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
- /**
10
- * `Grid` component is used to layout and align content based on 12-column system.
11
- * @since 0.0.48
9
+ /**
10
+ * `Grid` component is used to layout and align content based on 12-column system.
11
+ * @since 0.0.48
12
12
  */
13
13
  class Grid extends Component {
14
14
  constructor() {
@@ -3,9 +3,9 @@
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
- * `GridCol` component is a part of [Grid](#!/Grid) component.
8
- * @since 0.0.48
6
+ /**
7
+ * `GridCol` component is a part of [Grid](#!/Grid) component.
8
+ * @since 0.0.48
9
9
  */
10
10
  const GridCol = _ref => {
11
11
  let {
@@ -4,9 +4,9 @@ import classNames from 'classnames';
4
4
  import { CLS_PREFIX } from '../../constants';
5
5
  import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32 } from '../Icon';
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- /**
8
- * `Heading` is used as a text title (or a subtitle) to define the hierarchy and the structure of the content.
9
- * @since 2.3.0
7
+ /**
8
+ * `Heading` is used as a text title (or a subtitle) to define the hierarchy and the structure of the content.
9
+ * @since 2.3.0
10
10
  */
11
11
  const Heading = _ref => {
12
12
  let {
@@ -3,9 +3,9 @@
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
- * `Hint` component is used for auxiliary text like advice, suggestion or other useful practical information.
8
- * @since 0.0.35
6
+ /**
7
+ * `Hint` component is used for auxiliary text like advice, suggestion or other useful practical information.
8
+ * @since 0.0.35
9
9
  */
10
10
  const Hint = _ref => {
11
11
  let {
@@ -33,12 +33,12 @@ const getHref = (name, size) => {
33
33
  }
34
34
  return `${symbols}#${name}:${iconSize}`;
35
35
  };
36
- /**
37
- * `Icons` are small symbolic images used for two things: to help quickly find the right control on the screen and to
38
- * bring user attention to something that requires consideration. In the former case, `Icon` typically acts as a part
39
- * of a [Button](#!/Button) and helps differentiate this particular [Button](#!/Button) from others. `Icons` come in several
40
- * standard sizes.
41
- * @since 0.0.35
36
+ /**
37
+ * `Icons` are small symbolic images used for two things: to help quickly find the right control on the screen and to
38
+ * bring user attention to something that requires consideration. In the former case, `Icon` typically acts as a part
39
+ * of a [Button](#!/Button) and helps differentiate this particular [Button](#!/Button) from others. `Icons` come in several
40
+ * standard sizes.
41
+ * @since 0.0.35
42
42
  */
43
43
 
44
44
  const Icon = _ref => {