@plesk/ui-library 3.34.2 → 3.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) 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 +9 -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/Section/Section.js +1 -2
  17. package/cjs/components/Skeleton/SkeletonText.js +1 -1
  18. package/cjs/components/SplitButton/SplitButton.js +10 -49
  19. package/cjs/components/SplitButton/index.js +15 -2
  20. package/cjs/components/utils.js +1 -1
  21. package/cjs/index.js +1 -1
  22. package/dist/images/symbols.svg +9 -1
  23. package/dist/plesk-ui-library-rtl.css.map +1 -1
  24. package/dist/plesk-ui-library.css.map +1 -1
  25. package/dist/plesk-ui-library.js +181 -261
  26. package/dist/plesk-ui-library.js.map +1 -1
  27. package/dist/plesk-ui-library.min.js +5 -5
  28. package/dist/plesk-ui-library.min.js.map +1 -1
  29. package/esm/components/ContentLoader/IconsLoader.js +1 -2
  30. package/esm/components/Dropdown/Dropdown.js +0 -2
  31. package/esm/components/Dropdown/index.js +2 -1
  32. package/esm/components/Figure/Figure.js +1 -33
  33. package/esm/components/Figure/index.js +2 -1
  34. package/esm/components/Form/Form.js +3 -3
  35. package/esm/components/Form/ScrollableElementFormContext.js +1 -1
  36. package/esm/components/Form/index.js +1 -0
  37. package/esm/components/FormFieldPassword/PasswordMeter.js +4 -4
  38. package/esm/components/Icon/constants.js +2 -2
  39. package/esm/components/Icon/images/symbols.svg +9 -1
  40. package/esm/components/Link/Link.js +11 -18
  41. package/esm/components/Overlay/Overlay.js +3 -4
  42. package/esm/components/Popper/Popper.js +14 -79
  43. package/esm/components/Popper/index.js +2 -1
  44. package/esm/components/Section/Section.js +1 -2
  45. package/esm/components/Skeleton/SkeletonText.js +1 -1
  46. package/esm/components/SplitButton/SplitButton.js +10 -47
  47. package/esm/components/SplitButton/index.js +2 -1
  48. package/esm/components/utils.js +1 -1
  49. package/esm/index.js +1 -1
  50. package/package.json +10 -13
  51. package/styleguide/build/bundle.2a886a79.js +2 -0
  52. package/styleguide/images/symbols.svg +9 -1
  53. package/styleguide/index.html +2 -2
  54. package/types/src/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  55. package/types/src/components/Dialog/Dialog.d.ts +29 -9
  56. package/types/src/components/Drawer/Drawer.d.ts +10 -12
  57. package/types/src/components/Dropdown/Dropdown.d.ts +3 -4
  58. package/types/src/components/Dropdown/index.d.ts +2 -0
  59. package/types/src/components/Figure/Figure.d.ts +28 -0
  60. package/types/src/components/Figure/index.d.ts +2 -0
  61. package/types/src/components/Form/Form.d.ts +8 -103
  62. package/types/src/components/Form/ScrollableElementFormContext.d.ts +2 -0
  63. package/types/src/components/Form/index.d.ts +1 -0
  64. package/types/src/components/Form/types.d.ts +5 -3
  65. package/types/src/components/Icon/constants.d.ts +1 -1
  66. package/types/src/components/Link/Link.d.ts +14 -12
  67. package/types/src/components/Link/index.d.ts +1 -0
  68. package/types/src/components/Overlay/Overlay.d.ts +1 -1
  69. package/types/src/components/Popper/Popper.d.ts +96 -0
  70. package/types/src/components/Popper/index.d.ts +2 -0
  71. package/types/src/components/SplitButton/SplitButton.d.ts +53 -0
  72. package/types/src/components/SplitButton/index.d.ts +2 -0
  73. package/types/src/components/index.d.ts +6 -0
  74. package/types/src/components/utils.d.ts +6 -4
  75. package/styleguide/build/bundle.70f167a3.js +0 -2
  76. /package/styleguide/build/{bundle.70f167a3.js.LICENSE.txt → bundle.2a886a79.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-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', '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', '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', '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="11760" 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" />
@@ -181,6 +181,14 @@
181
181
  <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
182
  <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
183
  </symbol>
184
+ <symbol viewBox="0 0 12 12" id="bar-chart-vertical-lock:12">
185
+ <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" />
186
+ <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" />
187
+ </symbol>
188
+ <symbol viewBox="0 0 16 16" id="bar-chart-vertical-lock:16">
189
+ <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" />
190
+ <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" />
191
+ </symbol>
184
192
  <symbol viewBox="0 0 12 12" id="bar-chart-vertical:12">
185
193
  <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
194
  </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';
@@ -139,8 +139,7 @@ class Section extends Component {
139
139
  value: title,
140
140
  onChange: onTitleChange,
141
141
  onClick: e => {
142
- var _e$target$closest$que;
143
- (_e$target$closest$que = e.target.closest(`.${baseClassName}__header`).querySelector(`.${baseClassName}__control-button`)) === null || _e$target$closest$que === void 0 ? void 0 : _e$target$closest$que.click();
142
+ e.target.closest(`.${baseClassName}__header`).querySelector(`.${baseClassName}__control-button`)?.click();
144
143
  }
145
144
  });
146
145
  }
@@ -26,7 +26,7 @@ const SkeletonText = _ref => {
26
26
  // eslint-disable-next-line react/no-array-index-key
27
27
  , {
28
28
  ...lineProps,
29
- className: classNames(`${baseClassName}__line`, lineProps === null || lineProps === void 0 ? void 0 : lineProps.className)
29
+ className: classNames(`${baseClassName}__line`, lineProps?.className)
30
30
  }, key))
31
31
  });
32
32
  };
@@ -1,7 +1,6 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React, { useRef } from 'react';
4
- import PropTypes from 'prop-types';
3
+ import { useRef } from 'react';
5
4
  import classNames from 'classnames';
6
5
  import { CLS_PREFIX } from '../../constants';
7
6
  import Button from '../Button';
@@ -32,25 +31,26 @@ const focusStrategy = {
32
31
  return container.children[1].querySelector('button');
33
32
  }
34
33
  };
35
-
36
34
  /**
37
35
  * `Split Button` is a combination of a standard [Button](#!/Button) with a [Dropdown](#!/Dropdown) menu.
38
36
  * It is used for grouping several related actions when one of the actions should be accessible immediately
39
37
  * because it is used more often than others.
40
- * @since 0.0.40
38
+ *
39
+ * Since: 0.0.40
41
40
  */
42
41
  const SplitButton = _ref => {
43
42
  let {
44
- baseClassName,
43
+ baseClassName = `${CLS_PREFIX}split-button`,
45
44
  className,
46
45
  menu,
47
46
  children,
48
- opened,
49
47
  onClick,
50
48
  onKeyDown,
49
+ icon,
50
+ size,
51
51
  ...props
52
52
  } = _ref;
53
- const rootRef = useRef();
53
+ const rootRef = useRef(null);
54
54
  const {
55
55
  focusNext,
56
56
  focusPrev
@@ -74,6 +74,8 @@ const SplitButton = _ref => {
74
74
  onKeyDown: handleKeyDown,
75
75
  ...props,
76
76
  children: [/*#__PURE__*/_jsx(Button, {
77
+ icon: icon,
78
+ size: size,
77
79
  tabIndex: 0,
78
80
  onClick: onClick,
79
81
  children: children
@@ -82,50 +84,11 @@ const SplitButton = _ref => {
82
84
  menu: menu,
83
85
  menuPlacement: "bottom-end",
84
86
  children: /*#__PURE__*/_jsx(Button, {
87
+ size: size,
85
88
  caret: true,
86
89
  tabIndex: -1
87
90
  })
88
91
  })]
89
92
  });
90
93
  };
91
- SplitButton.propTypes = {
92
- /**
93
- * @since 0.0.47
94
- */
95
- menu: PropTypes.any,
96
- /**
97
- * @since 0.0.47
98
- */
99
- opened: PropTypes.bool,
100
- /**
101
- * Content of the button group
102
- * @since 0.0.40
103
- */
104
- children: PropTypes.node,
105
- /**
106
- * @ignore
107
- */
108
- className: PropTypes.string,
109
- /**
110
- * @ignore
111
- */
112
- baseClassName: PropTypes.string,
113
- /**
114
- * @ignore
115
- */
116
- onClick: PropTypes.func,
117
- /**
118
- * @ignore
119
- */
120
- onKeyDown: PropTypes.func
121
- };
122
- SplitButton.defaultProps = {
123
- menu: null,
124
- opened: false,
125
- children: null,
126
- className: null,
127
- baseClassName: `${CLS_PREFIX}split-button`,
128
- onClick: undefined,
129
- onKeyDown: undefined
130
- };
131
94
  export default SplitButton;
@@ -1,3 +1,4 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- export { default } from './SplitButton';
3
+ export { default } from './SplitButton';
4
+ export * from './SplitButton';
@@ -109,7 +109,7 @@ const createStrategy = () => {
109
109
  };
110
110
  };
111
111
  export const createFocusManager = function (containerRef) {
112
- let isFitForFocus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _node => true;
112
+ let isFitForFocus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : () => true;
113
113
  let strategy = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : createStrategy();
114
114
  const tryFocus = node => {
115
115
  if (isFitForFocus(node) && node instanceof HTMLElement) {
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
  import svg4everybody from 'svg4everybody';
3
- const version = "3.34.2";
3
+ const version = "3.35.0";
4
4
  export * from './publicPath';
5
5
  export { version };
6
6
  export * from './utils';