@plesk/ui-library 3.34.2 → 3.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/cjs/components/ContentLoader/IconsLoader.js +1 -2
  2. package/cjs/components/Dropdown/Dropdown.js +0 -2
  3. package/cjs/components/Dropdown/index.js +15 -2
  4. package/cjs/components/Figure/Figure.js +1 -33
  5. package/cjs/components/Figure/index.js +15 -2
  6. package/cjs/components/Form/Form.js +3 -3
  7. package/cjs/components/Form/ScrollableElementFormContext.js +1 -1
  8. package/cjs/components/Form/index.js +19 -3
  9. package/cjs/components/FormFieldPassword/PasswordMeter.js +4 -4
  10. package/cjs/components/Icon/constants.js +2 -2
  11. package/cjs/components/Icon/images/symbols.svg +23 -1
  12. package/cjs/components/Link/Link.js +11 -18
  13. package/cjs/components/Overlay/Overlay.js +3 -4
  14. package/cjs/components/Popper/Popper.js +14 -79
  15. package/cjs/components/Popper/index.js +15 -2
  16. package/cjs/components/Progress/Progress.js +8 -28
  17. package/cjs/components/ProgressStep/ProgressStep.js +4 -46
  18. package/cjs/components/ProgressStep/index.js +36 -12
  19. package/cjs/components/Section/Section.js +1 -2
  20. package/cjs/components/Skeleton/SkeletonText.js +1 -1
  21. package/cjs/components/SplitButton/SplitButton.js +10 -49
  22. package/cjs/components/SplitButton/index.js +15 -2
  23. package/cjs/components/Switch/Switch.js +43 -118
  24. package/cjs/components/Tooltip/Tooltip.js +35 -64
  25. package/cjs/components/Translate/Translate.js +10 -78
  26. package/cjs/components/Translate/index.js +4 -4
  27. package/cjs/components/Translate/isLikeText.js +27 -0
  28. package/cjs/components/utils.js +1 -1
  29. package/cjs/index.js +1 -1
  30. package/cjs/tests/index.js +13 -0
  31. package/cjs/tests/renderer.js +27 -0
  32. package/dist/.DS_Store +0 -0
  33. package/dist/images/default.svg +1 -0
  34. package/dist/images/filtered.svg +1 -0
  35. package/dist/images/symbols.svg +23 -1
  36. package/dist/plesk-ui-library-rtl.css +1 -1
  37. package/dist/plesk-ui-library-rtl.css.map +1 -1
  38. package/dist/plesk-ui-library.css +1 -1
  39. package/dist/plesk-ui-library.css.map +1 -1
  40. package/dist/plesk-ui-library.js +472 -725
  41. package/dist/plesk-ui-library.js.map +1 -1
  42. package/dist/plesk-ui-library.min.js +5 -5
  43. package/dist/plesk-ui-library.min.js.map +1 -1
  44. package/esm/components/ContentLoader/IconsLoader.js +1 -2
  45. package/esm/components/Dropdown/Dropdown.js +0 -2
  46. package/esm/components/Dropdown/index.js +2 -1
  47. package/esm/components/Figure/Figure.js +1 -33
  48. package/esm/components/Figure/index.js +2 -1
  49. package/esm/components/Form/Form.js +3 -3
  50. package/esm/components/Form/ScrollableElementFormContext.js +1 -1
  51. package/esm/components/Form/index.js +1 -0
  52. package/esm/components/FormFieldPassword/PasswordMeter.js +4 -4
  53. package/esm/components/Icon/constants.js +2 -2
  54. package/esm/components/Icon/images/symbols.svg +23 -1
  55. package/esm/components/Link/Link.js +11 -18
  56. package/esm/components/Overlay/Overlay.js +3 -4
  57. package/esm/components/Popper/Popper.js +14 -79
  58. package/esm/components/Popper/index.js +2 -1
  59. package/esm/components/Progress/Progress.js +8 -26
  60. package/esm/components/ProgressStep/ProgressStep.js +6 -48
  61. package/esm/components/ProgressStep/index.js +1 -2
  62. package/esm/components/Section/Section.js +1 -2
  63. package/esm/components/Skeleton/SkeletonText.js +1 -1
  64. package/esm/components/SplitButton/SplitButton.js +10 -47
  65. package/esm/components/SplitButton/index.js +2 -1
  66. package/esm/components/Switch/Switch.js +43 -116
  67. package/esm/components/Tooltip/Tooltip.js +36 -62
  68. package/esm/components/Translate/Translate.js +9 -73
  69. package/esm/components/Translate/index.js +2 -1
  70. package/esm/components/Translate/isLikeText.js +19 -0
  71. package/esm/components/utils.js +1 -1
  72. package/esm/index.js +1 -1
  73. package/esm/tests/index.js +3 -0
  74. package/esm/tests/renderer.js +19 -0
  75. package/package.json +19 -18
  76. package/styleguide/build/bundle.edc3f2a1.js +2 -0
  77. package/styleguide/images/symbols.svg +23 -1
  78. package/styleguide/index.html +2 -2
  79. package/types/src/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  80. package/types/src/components/Dialog/Dialog.d.ts +29 -9
  81. package/types/src/components/Drawer/Drawer.d.ts +10 -12
  82. package/types/src/components/Drawer/DrawerProgress.d.ts +3 -3
  83. package/types/src/components/Dropdown/Dropdown.d.ts +3 -4
  84. package/types/src/components/Dropdown/index.d.ts +2 -0
  85. package/types/src/components/Figure/Figure.d.ts +28 -0
  86. package/types/src/components/Figure/index.d.ts +2 -0
  87. package/types/src/components/Form/Form.d.ts +8 -103
  88. package/types/src/components/Form/ScrollableElementFormContext.d.ts +2 -0
  89. package/types/src/components/Form/index.d.ts +1 -0
  90. package/types/src/components/Form/types.d.ts +5 -3
  91. package/types/src/components/Icon/constants.d.ts +1 -1
  92. package/types/src/components/ItemList/index.d.ts +1 -0
  93. package/types/src/components/Link/Link.d.ts +14 -12
  94. package/types/src/components/Link/index.d.ts +1 -0
  95. package/types/src/components/Overlay/Overlay.d.ts +1 -1
  96. package/types/src/components/Pagination/index.d.ts +1 -0
  97. package/types/src/components/Panel/index.d.ts +1 -0
  98. package/types/src/components/Popper/Popper.d.ts +96 -0
  99. package/types/src/components/Popper/index.d.ts +2 -0
  100. package/types/src/components/Progress/Progress.d.ts +49 -0
  101. package/types/src/components/Progress/index.d.ts +2 -0
  102. package/types/src/components/ProgressStep/ProgressStep.d.ts +69 -0
  103. package/types/src/components/ProgressStep/index.d.ts +2 -0
  104. package/types/src/components/SplitButton/SplitButton.d.ts +53 -0
  105. package/types/src/components/SplitButton/index.d.ts +2 -0
  106. package/types/src/components/Switch/Switch.d.ts +58 -0
  107. package/types/src/components/Switch/index.d.ts +2 -0
  108. package/types/src/components/TextArea/index.d.ts +1 -0
  109. package/types/src/components/Tooltip/Tooltip.d.ts +61 -0
  110. package/types/src/components/Tooltip/index.d.ts +2 -0
  111. package/types/src/components/Translate/Translate.d.ts +56 -0
  112. package/types/src/components/Translate/index.d.ts +3 -0
  113. package/types/src/components/Translate/isLikeText.d.ts +2 -0
  114. package/types/src/components/index.d.ts +11 -0
  115. package/types/src/components/utils.d.ts +6 -4
  116. package/types/src/tests/index.d.ts +1 -0
  117. package/types/src/tests/renderer.d.ts +23 -0
  118. package/styleguide/build/bundle.70f167a3.js +0 -2
  119. /package/styleguide/build/{bundle.70f167a3.js.LICENSE.txt → bundle.edc3f2a1.js.LICENSE.txt} +0 -0
@@ -30,7 +30,6 @@ const useIconCursor = (icons, initialCursor, isSync) => {
30
30
  return [icons[cursor], targetRef];
31
31
  };
32
32
  const IconsLoader = _ref => {
33
- var _icons;
34
33
  let {
35
34
  baseClassName = `${CLS_PREFIX}icons-loader`,
36
35
  className,
@@ -40,7 +39,7 @@ const IconsLoader = _ref => {
40
39
  ...props
41
40
  } = _ref;
42
41
  const syncRef = useRef('icon1');
43
- if (!((_icons = icons) !== null && _icons !== void 0 && _icons.length)) {
42
+ if (!icons?.length) {
44
43
  icons = DEFAULT_ICONS;
45
44
  } else if (icons.length === 1) {
46
45
  icons = [icons[0], icons[0]];
@@ -12,8 +12,6 @@ import Layer from '../Layer';
12
12
  import { MenuItem, MenuDivider } from '../Menu';
13
13
  import Translate from '../Translate';
14
14
  import localeFallback from './locale/en-US';
15
-
16
- // TODO: move to Popover
17
15
  import { jsx as _jsx } from "react/jsx-runtime";
18
16
  import { Fragment as _Fragment } from "react/jsx-runtime";
19
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,3 +1,4 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- export { default } from './Dropdown';
3
+ export { default } from './Dropdown';
4
+ export * from './Dropdown';
@@ -1,7 +1,5 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React from 'react';
4
- import PropTypes from 'prop-types';
5
3
  import classNames from 'classnames';
6
4
  import { CLS_PREFIX } from '../../constants';
7
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,7 +10,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
12
10
  */
13
11
  const Figure = _ref => {
14
12
  let {
15
- baseClassName,
13
+ baseClassName = `${CLS_PREFIX}figure`,
16
14
  className,
17
15
  href,
18
16
  caption,
@@ -31,34 +29,4 @@ const Figure = _ref => {
31
29
  })]
32
30
  });
33
31
  };
34
- Figure.propTypes = {
35
- /**
36
- * @since 0.0.47
37
- */
38
- href: PropTypes.string,
39
- /**
40
- * @since 0.0.47
41
- */
42
- caption: PropTypes.any,
43
- /**
44
- * Content of the figure
45
- * @since 0.0.42
46
- */
47
- children: PropTypes.node,
48
- /**
49
- * @ignore
50
- */
51
- className: PropTypes.string,
52
- /**
53
- * @ignore
54
- */
55
- baseClassName: PropTypes.string
56
- };
57
- Figure.defaultProps = {
58
- href: null,
59
- caption: null,
60
- children: null,
61
- className: null,
62
- baseClassName: `${CLS_PREFIX}figure`
63
- };
64
32
  export default Figure;
@@ -1,3 +1,4 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- export { default } from './Figure';
3
+ export { default } from './Figure';
4
+ export * from './Figure';
@@ -371,7 +371,8 @@ class Form extends Component {
371
371
  /**
372
372
  * `Form` component is used for entering and submitting of user data.
373
373
  * [More details about designing of forms.](#!/Good%20Forms)
374
- * @since 0.0.54
374
+ *
375
+ * Since: 0.0.54
375
376
  */
376
377
  _defineProperty(Form, "defaultProps", {
377
378
  children: undefined,
@@ -399,8 +400,7 @@ const RefForwardingForm = /*#__PURE__*/forwardRef((props, ref) => {
399
400
  const innerRef = useRef(null);
400
401
  useImperativeHandle(ref, () => ({
401
402
  submit() {
402
- var _innerRef$current;
403
- (_innerRef$current = innerRef.current) === null || _innerRef$current === void 0 ? void 0 : _innerRef$current.dispatchEvent(new Event('submit', {
403
+ innerRef.current?.dispatchEvent(new Event('submit', {
404
404
  cancelable: true,
405
405
  bubbles: true
406
406
  }));
@@ -1,6 +1,6 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
3
  import { createContext } from 'react';
4
- const ScrollableElementFormContext = /*#__PURE__*/createContext();
4
+ const ScrollableElementFormContext = /*#__PURE__*/createContext(null);
5
5
  ScrollableElementFormContext.displayName = 'ScrollableElementFormContext';
6
6
  export default ScrollableElementFormContext;
@@ -1,4 +1,5 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
3
  export { default } from './Form';
4
+ export * from './Form';
4
5
  export { getIn, setIn } from './utils';
@@ -40,19 +40,19 @@ const PasswordMeter = _ref => {
40
40
  canCloseOnOutsideClick: false,
41
41
  canCloseOnEscapePress: false,
42
42
  ...props,
43
- children: [result !== null && result !== void 0 && result.strength ? /*#__PURE__*/_jsx(Translate, {
43
+ children: [result?.strength ? /*#__PURE__*/_jsx(Translate, {
44
44
  component: "div",
45
45
  content: "FormFieldPassword.passwordStrength",
46
46
  fallback: locale.passwordStrength,
47
47
  params: {
48
48
  strength: /*#__PURE__*/_jsx("b", {
49
49
  children: /*#__PURE__*/_jsx(Translate, {
50
- content: `FormFieldPassword.strength${result === null || result === void 0 ? void 0 : result.strength}`,
51
- fallback: locale[`strength${result === null || result === void 0 ? void 0 : result.strength}`]
50
+ content: `FormFieldPassword.strength${result?.strength}`,
51
+ fallback: locale[`strength${result?.strength}`]
52
52
  })
53
53
  })
54
54
  }
55
- }) : null, result !== null && result !== void 0 && result.suggestions.length ? /*#__PURE__*/_jsxs(_Fragment, {
55
+ }) : null, result?.suggestions.length ? /*#__PURE__*/_jsxs(_Fragment, {
56
56
  children: [/*#__PURE__*/_jsx(Translate, {
57
57
  content: "FormFieldPassword.improvePassword",
58
58
  fallback: locale.improvePassword
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable max-len */
2
2
  // This file is generated by create-svg-sprite. Do not edit.
3
3
 
4
- export const NAMES_12 = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'power', 'projects', 'puzzle', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
5
- export const NAMES = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'power', 'projects', 'puzzle', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
4
+ export const NAMES_12 = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
5
+ export const NAMES = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
@@ -1,4 +1,4 @@
1
- <svg width="16" height="11712" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1
+ <svg width="16" height="11856" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
2
  <defs>
3
3
  <symbol viewBox="0 0 12 12" id="archive:12">
4
4
  <path d="M2 1h7v.5a.5.5 0 0 0 1 0V1a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1v-.5a.5.5 0 0 0-1 0v.5H2V1z" />
@@ -58,6 +58,12 @@
58
58
  <symbol viewBox="0 0 16 16" id="arrow-left:16">
59
59
  <path d="M.2018 8.0966A.4945.4945 0 0 0 0 8.498V8.5a.4945.4945 0 0 0 .2018.4034l3.4513 3.4513a.4961.4961 0 0 0 .7016-.7016L1.7016 9H15.5a.5.5 0 0 0 0-1H1.7016l2.6531-2.6531a.496.496 0 0 0-.7016-.7016L.2018 8.0966z" />
60
60
  </symbol>
61
+ <symbol viewBox="0 0 12 12" id="arrow-right-circle-filled:12">
62
+ <path fill-rule="evenodd" d="M1 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 0 0-11 0ZM2.5 6a.5.5 0 0 0 0 1h5.8L6.65 8.65a.5.5 0 0 0 .7.7L9.8 6.9a.5.5 0 0 0 .2-.4.5.5 0 0 0-.2-.4L7.35 3.65a.5.5 0 0 0-.7.7L8.3 6H2.5Z" clip-rule="evenodd" />
63
+ </symbol>
64
+ <symbol viewBox="0 0 16 16" id="arrow-right-circle-filled:16">
65
+ <path fill-rule="evenodd" d="M8.5 16a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Zm.15-3.65a.5.5 0 0 1 0-.7L11.3 9H3.5a.5.5 0 0 1 0-1h7.8L8.65 5.35a.5.5 0 0 1 .7-.7L12.8 8.1a.5.5 0 0 1 .2.4.5.5 0 0 1-.2.4l-3.45 3.45c-.2.2-.51.2-.7 0Z" clip-rule="evenodd" />
66
+ </symbol>
61
67
  <symbol viewBox="0 0 12 12" id="arrow-right-in:12">
62
68
  <path d="M2 2h9v9H2v-1a.5.5 0 00-1 0v1a1 1 0 001 1h9a1 1 0 001-1V2a1 1 0 00-1-1H2a1 1 0 00-1 1v1a.5.5 0 001 0V2z" />
63
69
  <path d="M5.645 4.347a.496.496 0 01.702-.702l2.451 2.452A.499.499 0 019 6.498v.004a.495.495 0 01-.202.401L6.347 9.355a.496.496 0 01-.702-.702L7.298 7H.5a.5.5 0 010-1h6.798L5.645 4.347z" />
@@ -181,6 +187,14 @@
181
187
  <path d="M4.145 11.855a.496.496 0 0 1 0-.702L13.298 2H9.5a.5.5 0 0 1 0-1h5.002a.495.495 0 0 1 .498.5v5a.5.5 0 0 1-1 0V2.702l-9.153 9.153a.496.496 0 0 1-.702 0z" />
182
188
  <path d="M1.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0V14h12.5a.5.5 0 0 1 0 1h-13z" />
183
189
  </symbol>
190
+ <symbol viewBox="0 0 12 12" id="bar-chart-vertical-lock:12">
191
+ <path d="M4 .5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9zM1.5 5a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-.5-.5zM.5 11a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zM7.5 3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-.5-.5zM10 1.5a.5.5 0 0 1 1 0v3a.5.5 0 0 1-1 0v-3z" />
192
+ <path d="M7 9a1 1 0 0 1 1-1V7a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V9zm3-1V7H9v1h1z" />
193
+ </symbol>
194
+ <symbol viewBox="0 0 16 16" id="bar-chart-vertical-lock:16">
195
+ <path d="M13 .5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zM4.5 2a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 1 0v-11a.5.5 0 0 0-.5-.5zM1 9.5a.5.5 0 0 1 1 0v4a.5.5 0 0 1-1 0v-4zm-1 6a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 0 1h-8a.5.5 0 0 1-.5-.5zm7-9a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zM10.5 4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5z" />
196
+ <path d="M10 12a1 1 0 0 1 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-3zm3-1v-1h-1v1h1z" />
197
+ </symbol>
184
198
  <symbol viewBox="0 0 12 12" id="bar-chart-vertical:12">
185
199
  <path d="M0 11.5a.5.5 0 01.5-.5h11a.5.5 0 010 1H.5a.5.5 0 01-.5-.5zM1 5.5a.5.5 0 011 0v4a.5.5 0 01-1 0v-4zM4 .5a.5.5 0 011 0v9a.5.5 0 01-1 0v-9zM7 4.5a.5.5 0 011 0v5a.5.5 0 01-1 0v-5zM10 2.5a.5.5 0 011 0v7a.5.5 0 01-1 0v-7z" />
186
200
  </symbol>
@@ -1310,6 +1324,14 @@
1310
1324
  <symbol viewBox="0 0 16 16" id="puzzle:16">
1311
1325
  <path fill-rule="evenodd" d="M7 0a2 2 0 0 0-2 2v1H1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h1a1 1 0 0 1 0 2H1a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1a1 1 0 1 1 2 0v1a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-4h1a2 2 0 1 0 0-4h-1V4a1 1 0 0 0-1-1H9V2a2 2 0 0 0-2-2zM2 11H1v4h4v-1a2 2 0 1 1 4 0v1h3v-4a1 1 0 0 1 1-1h1a1 1 0 1 0 0-2h-1a1 1 0 0 1-1-1V4H9a1 1 0 0 1-1-1V2a1 1 0 0 0-2 0v1a1 1 0 0 1-1 1H1v3h1a2 2 0 1 1 0 4z" clip-rule="evenodd" />
1312
1326
  </symbol>
1327
+ <symbol viewBox="0 0 12 12" id="python:12">
1328
+ <path d="M6 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm.5 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z" />
1329
+ <path fill-rule="evenodd" d="M8.5 8.5v2.78a4.68 4.68 0 0 1-5 0V8.5H.69a8.08 8.08 0 0 1-.41-.98C.14 7.12 0 6.56 0 6s.14-1.11.28-1.52c.1-.34.25-.66.4-.98H3.5V.72A4.67 4.67 0 0 1 6 0c.9 0 1.74.25 2.5.72V3.5h2.81c.16.32.3.64.41.98A5 5 0 0 1 12 6c0 .56-.14 1.11-.27 1.52-.12.34-.26.66-.41.98H8.5zm-4-5V1.3a3.83 3.83 0 0 1 3 0v3.2c0 .87-.4 1-.5 1H5c-.9 0-1.5.87-1.5 2H1.33a6.06 6.06 0 0 1-.1-.3C1.1 6.84 1 6.4 1 6c0-.4.1-.84.23-1.2a6.06 6.06 0 0 1 .1-.3H6v-1H4.5zm4 1c0 1.13-.6 2-1.5 2H5c-.1 0-.5.13-.5 1v3.2a3.83 3.83 0 0 0 3 0V8.5H6v-1h4.67l.1-.3c.12-.36.23-.8.23-1.2 0-.4-.1-.84-.23-1.2a6.1 6.1 0 0 0-.1-.3H8.5z" clip-rule="evenodd" />
1330
+ </symbol>
1331
+ <symbol viewBox="0 0 16 16" id="python:16">
1332
+ <path d="M8 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM8.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z" />
1333
+ <path fill-rule="evenodd" d="M5 11H.66a10.9 10.9 0 0 1-.4-1.17C.15 9.33 0 8.66 0 8a7.45 7.45 0 0 1 .45-2.44L.65 5H5V.66c.39-.15.77-.29 1.17-.4C6.67.15 7.34 0 8 0c.66 0 1.33.14 1.83.27.4.1.78.24 1.17.39V5h4.34c.26.66.04-.18.4 1.17.12.5.26 1.17.26 1.83 0 .66-.14 1.33-.27 1.83-.1.4-.24.78-.39 1.17H11v4.34c-.39.15-.77.29-1.17.4A7.4 7.4 0 0 1 8 16a7.4 7.4 0 0 1-1.83-.27 9.96 9.96 0 0 1-.6-.18l-.57-.2V11zm1-6V1.36l.43-.13A6.46 6.46 0 0 1 8 1a6.46 6.46 0 0 1 2 .36V6.5c0 .38-.13.65-.26.8a.62.62 0 0 1-.24.2h-3c-.37 0-.75.24-1 .56-.3.33-.5.82-.5 1.44v.5H1.36a9.1 9.1 0 0 1-.13-.43A6.5 6.5 0 0 1 1 8c0-.54.11-1.12.23-1.57A9.09 9.09 0 0 1 1.36 6H8V5H6zm4 6H8v-1h6.64a9.11 9.11 0 0 0 .13-.43c.12-.45.23-1.03.23-1.57s-.11-1.12-.23-1.57a9.1 9.1 0 0 0-.13-.43H11v.5c0 .62-.2 1.1-.49 1.45-.26.3-.64.55-1.01.55h-3c.01 0 0 0 0 0a.62.62 0 0 0-.24.2c-.13.16-.26.42-.26.8v5.14l.43.13c.45.12 1.03.23 1.57.23a6.5 6.5 0 0 0 2-.36V11z" clip-rule="evenodd" />
1334
+ </symbol>
1313
1335
  <symbol viewBox="0 0 12 12" id="question-mark-circle-filled:12">
1314
1336
  <path fill-rule="evenodd" d="M12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0zM6.5 6a1 1 0 1 0-1-1 .5.5 0 0 1-1 .005V5A2 2 0 1 1 7 6.937V7a.5.5 0 0 1-1 0v-.5a.5.5 0 0 1 .5-.5zm.625 3a.625.625 0 1 1-1.25 0 .625.625 0 0 1 1.25 0z" clip-rule="evenodd" />
1315
1337
  </symbol>
@@ -9,13 +9,10 @@ import { wrapFunction } from '../utils';
9
9
  import Icon from '../Icon';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
12
- /**
13
- * FIXME: With the following code all @ts-ignore comments can be removed, but react-docgen cannot parse it.
14
- * const Link = <P extends any>({ ... }: LinkProps<P>) => {
15
- */
16
12
  /**
17
13
  * `Link` is used for navigation purposes.
18
- * @since 1.9.0
14
+ *
15
+ * Since: 1.9.0
19
16
  */
20
17
  const Link = _ref => {
21
18
  let {
@@ -28,7 +25,7 @@ const Link = _ref => {
28
25
  children,
29
26
  ...other
30
27
  } = _ref;
31
- const Component = component ? component : 'a';
28
+ const Tag = component || 'a';
32
29
  const onDark = useContext(OnDarkContext);
33
30
  const props = {
34
31
  ...other,
@@ -60,17 +57,13 @@ const Link = _ref => {
60
57
  }
61
58
  });
62
59
  }
63
- return (
64
- /*#__PURE__*/
65
- // @ts-ignore
66
- _jsxs(Component, {
67
- ...props,
68
- children: [children, external && /*#__PURE__*/_jsx(Icon, {
69
- flipHorizontal: isRtl(),
70
- name: "arrow-diagonal-out",
71
- className: `${baseClassName}__external-icon`
72
- })]
73
- })
74
- );
60
+ return /*#__PURE__*/_jsxs(Tag, {
61
+ ...props,
62
+ children: [children, external && /*#__PURE__*/_jsx(Icon, {
63
+ flipHorizontal: isRtl(),
64
+ name: "arrow-diagonal-out",
65
+ className: `${baseClassName}__external-icon`
66
+ })]
67
+ });
75
68
  };
76
69
  export default Link;
@@ -102,8 +102,8 @@ const OverlayCore = _ref => {
102
102
  children: /*#__PURE__*/_jsxs("div", {
103
103
  className: classNames(baseClassName, `${baseClassName}--${placement}`, `${baseClassName}--${size}`, sideBanner && `${baseClassName}--side`, isOpen && `${baseClassName}--open`, className),
104
104
  style: {
105
- '--overlay-side-banner-background': sideBannerContainer === null || sideBannerContainer === void 0 ? void 0 : sideBannerContainer.background,
106
- '--overlay-side-banner-align': sideBannerContainer === null || sideBannerContainer === void 0 ? void 0 : sideBannerContainer.align,
105
+ '--overlay-side-banner-background': sideBannerContainer?.background,
106
+ '--overlay-side-banner-align': sideBannerContainer?.align,
107
107
  ...style
108
108
  },
109
109
  ...props,
@@ -133,11 +133,10 @@ const Overlay = _ref2 => {
133
133
  const [isExist, setIsExist] = useState(false);
134
134
  const prevFocusElementRef = useRef(null);
135
135
  const handleClose = useCallback(() => {
136
- var _prevFocusElementRef$;
137
136
  if (!isOpenRef.current) return;
138
137
  isOpenRef.current = false;
139
138
  if (--overlaysCount === 0) enableDocumentScroll();
140
- (_prevFocusElementRef$ = prevFocusElementRef.current) === null || _prevFocusElementRef$ === void 0 ? void 0 : _prevFocusElementRef$.focus();
139
+ prevFocusElementRef.current?.focus();
141
140
  }, []);
142
141
  useEffect(() => {
143
142
  if (isOpen) {
@@ -1,19 +1,17 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
 
4
- import React, { cloneElement, Component, Fragment, createRef } from 'react';
5
- import { findDOMNode } from 'react-dom';
6
- import PropTypes from 'prop-types';
7
4
  import classNames from 'classnames';
8
- import { CLS_PREFIX } from '../../constants';
9
5
  import PopperJs from 'popper.js';
6
+ import { cloneElement, Component, createRef, Fragment } from 'react';
7
+ import { findDOMNode } from 'react-dom';
8
+ import { CLS_PREFIX } from '../../constants';
10
9
  import Layer from '../Layer';
11
-
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
13
13
  * `Popper` component.
14
14
  */
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
- import { jsx as _jsx } from "react/jsx-runtime";
17
15
  class Popper extends Component {
18
16
  constructor() {
19
17
  super(...arguments);
@@ -24,29 +22,26 @@ class Popper extends Component {
24
22
  });
25
23
  _defineProperty(this, "popper", null);
26
24
  _defineProperty(this, "contentRef", /*#__PURE__*/createRef());
25
+ _defineProperty(this, "arrowRef", null);
26
+ // @ts-ignore
27
27
  _defineProperty(this, "extractStyles", state => {
28
- if (!state) {
29
- return;
30
- }
31
28
  const {
32
29
  onUpdate
33
30
  } = this.props;
34
31
  const data = {
35
32
  popperStyle: {
36
- position: state.offsets.popper.position,
37
33
  ...(state.hide ? {
38
34
  visibility: 'hidden',
39
35
  pointerEvents: 'none'
40
36
  } : undefined),
41
- ...state.styles
37
+ ...state.styles,
38
+ position: state.offsets.popper.position
42
39
  },
43
40
  actualPlacement: state.placement,
44
41
  arrowStyle: state.arrowStyles
45
42
  };
46
43
  this.setState(data);
47
- if (onUpdate) {
48
- onUpdate(data);
49
- }
44
+ onUpdate?.(data);
50
45
  });
51
46
  }
52
47
  componentDidMount() {
@@ -116,10 +111,10 @@ class Popper extends Component {
116
111
  padding: 0,
117
112
  behavior
118
113
  },
119
- arrow: arrow && {
114
+ arrow: arrow && this.arrowRef ? {
120
115
  enabled: true,
121
116
  element: this.arrowRef
122
- }
117
+ } : undefined
123
118
  }
124
119
  };
125
120
  let reference;
@@ -179,67 +174,7 @@ class Popper extends Component {
179
174
  });
180
175
  }
181
176
  }
182
- Popper.propTypes = {
183
- /**
184
- * Whether show popper content.
185
- */
186
- show: PropTypes.bool,
187
- /**
188
- * Content of the `Popper`.
189
- */
190
- children: PropTypes.node,
191
- /**
192
- * Target for popper.
193
- */
194
- target: PropTypes.any.isRequired,
195
- /**
196
- * A React reference to the DOM element that needs for calculating the position of the popup.
197
- */
198
- targetRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
199
- current: PropTypes.instanceOf(HTMLElement)
200
- })]),
201
- /**
202
- * Arrow element of popper
203
- */
204
- arrow: PropTypes.element,
205
- /**
206
- * Placement for popper.
207
- */
208
- placement: PropTypes.oneOf(['auto', 'auto-start', 'auto-end', 'auto-top', 'auto-right', 'auto-bottom', 'auto-left', 'top', 'top-start', 'top-end', 'right', 'right-start', 'right-end', 'bottom', 'bottom-start', 'bottom-end', 'left', 'left-start', 'left-end']),
209
- /**
210
- * The behavior used to change the popper's placement.
211
- */
212
- behavior: PropTypes.oneOfType([PropTypes.oneOf(['flip', 'clockwise', 'counterclockwise']), PropTypes.arrayOf(PropTypes.string)]),
213
- /**
214
- * Shift your popper on both axis.
215
- */
216
- offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
217
- /**
218
- * Update callback function
219
- */
220
- onUpdate: PropTypes.func,
221
- /**
222
- * @ignore
223
- */
224
- className: PropTypes.string,
225
- /**
226
- * @ignore
227
- */
228
- baseClassName: PropTypes.string,
229
- /**
230
- * zIndex value.
231
- */
232
- zIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
233
- /**
234
- * Boundaries element for preventOverflow property.
235
- */
236
- boundariesElement: PropTypes.oneOfType([PropTypes.oneOf(['scrollParent', 'window', 'viewport']), PropTypes.instanceOf(HTMLElement)]),
237
- /**
238
- * @ignore
239
- */
240
- style: PropTypes.object
241
- };
242
- Popper.defaultProps = {
177
+ _defineProperty(Popper, "defaultProps", {
243
178
  show: true,
244
179
  children: null,
245
180
  arrow: null,
@@ -253,5 +188,5 @@ Popper.defaultProps = {
253
188
  boundariesElement: 'window',
254
189
  style: undefined,
255
190
  targetRef: undefined
256
- };
191
+ });
257
192
  export default Popper;
@@ -1,3 +1,4 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- export { default } from './Popper';
3
+ export { default } from './Popper';
4
+ export * from './Popper';
@@ -1,8 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
 
4
- import React, { Component, Children, isValidElement } from 'react';
5
- import PropTypes from 'prop-types';
4
+ import { Component, Children, isValidElement } from 'react';
6
5
  import classNames from 'classnames';
7
6
  import { CLS_PREFIX } from '../../constants';
8
7
  import { safeInvoke } from '../utils';
@@ -61,16 +60,19 @@ class Progress extends Component {
61
60
  const {
62
61
  onStatusChange
63
62
  } = this.props;
63
+ if (!status) {
64
+ return;
65
+ }
64
66
  safeInvoke(onStatusChange, status);
65
67
  }
66
- componentDidUpdate(prevProps, prevState) {
68
+ componentDidUpdate(_, prevState) {
67
69
  const {
68
70
  status
69
71
  } = this.state;
70
72
  const {
71
73
  onStatusChange
72
74
  } = this.props;
73
- if (prevState.status !== status) {
75
+ if (prevState.status !== status && status) {
74
76
  safeInvoke(onStatusChange, status);
75
77
  }
76
78
  }
@@ -89,30 +91,10 @@ class Progress extends Component {
89
91
  });
90
92
  }
91
93
  }
92
- Progress.propTypes = {
93
- /**
94
- * On overall status event handler.
95
- * @since 1.10.0
96
- */
97
- onStatusChange: PropTypes.func,
98
- /**
99
- * Content of the `Progress`.
100
- * @since 1.10.0
101
- */
102
- children: PropTypes.node,
103
- /**
104
- * @ignore
105
- */
106
- className: PropTypes.string,
107
- /**
108
- * @ignore
109
- */
110
- baseClassName: PropTypes.string
111
- };
112
- Progress.defaultProps = {
94
+ _defineProperty(Progress, "defaultProps", {
113
95
  onStatusChange: null,
114
96
  children: null,
115
97
  className: null,
116
98
  baseClassName: `${CLS_PREFIX}progress`
117
- };
99
+ });
118
100
  export default Progress;
@@ -1,10 +1,9 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React, { isValidElement, Children, useContext } from 'react';
4
- import PropTypes from 'prop-types';
3
+ import { isValidElement, Children, useContext } from 'react';
5
4
  import classNames from 'classnames';
6
5
  import Icon, { ICON_SIZE_16 } from '../Icon';
7
- import Status from '../Status';
6
+ import StatusComponent from '../Status';
8
7
  import { CLS_PREFIX } from '../../constants';
9
8
  import ProgressBar from '../ProgressBar';
10
9
  import OnDarkContext from '../OnDarkContext';
@@ -16,21 +15,20 @@ export const STATUS_DONE = 'done';
16
15
  export const STATUS_WARNING = 'warning';
17
16
  export const STATUS_ERROR = 'error';
18
17
  export const STATUS_CANCELED = 'canceled';
19
-
20
18
  /**
21
19
  * `ProgressStep` is a part of the [Progress](#!/Progress) component.
22
20
  * @since 1.10.0
23
21
  */
24
22
  const ProgressStep = _ref => {
25
23
  let {
26
- baseClassName,
27
24
  className,
28
25
  children,
29
26
  icon,
30
27
  title,
28
+ statusText,
31
29
  progress,
32
30
  status,
33
- statusText,
31
+ baseClassName,
34
32
  ...props
35
33
  } = _ref;
36
34
  let intent = null;
@@ -66,8 +64,8 @@ const ProgressStep = _ref => {
66
64
  size: ICON_SIZE_16,
67
65
  intent
68
66
  });
69
- if (statusText && (! /*#__PURE__*/isValidElement(statusText) || statusText.type !== Status)) {
70
- statusText = /*#__PURE__*/_jsx(Status, {
67
+ if (statusText && (! /*#__PURE__*/isValidElement(statusText) || statusText.type !== StatusComponent)) {
68
+ statusText = /*#__PURE__*/_jsx(StatusComponent, {
71
69
  children: statusText
72
70
  });
73
71
  }
@@ -106,46 +104,6 @@ const ProgressStep = _ref => {
106
104
  })]
107
105
  });
108
106
  };
109
- ProgressStep.propTypes = {
110
- /**
111
- * Title of the step
112
- * @since 1.10.0
113
- */
114
- title: PropTypes.node,
115
- /**
116
- * Status for the step
117
- * @since 1.10.0
118
- */
119
- status: PropTypes.oneOf([STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_DONE, STATUS_WARNING, STATUS_ERROR, STATUS_CANCELED]),
120
- /**
121
- * Text description for the status of the step
122
- * @since 1.10.0
123
- */
124
- statusText: PropTypes.node,
125
- /**
126
- * Progress indication in numbers
127
- * @since 1.10.0
128
- */
129
- progress: PropTypes.number,
130
- /**
131
- * Content of the `ProgressStep`.
132
- * @since 1.10.0
133
- */
134
- children: PropTypes.node,
135
- /**
136
- * Name of icon or [Icon](#!/Icon) component
137
- * @ignore
138
- */
139
- icon: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.element]),
140
- /**
141
- * @ignore
142
- */
143
- className: PropTypes.string,
144
- /**
145
- * @ignore
146
- */
147
- baseClassName: PropTypes.string
148
- };
149
107
  ProgressStep.defaultProps = {
150
108
  icon: null,
151
109
  title: null,