@plesk/ui-library 3.34.1 → 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 (89) hide show
  1. package/cjs/components/ContentLoader/IconsLoader.js +1 -2
  2. package/cjs/components/Drawer/Drawer.js +10 -143
  3. package/cjs/components/Drawer/Header.js +5 -12
  4. package/cjs/components/Dropdown/Dropdown.js +0 -2
  5. package/cjs/components/Dropdown/index.js +15 -2
  6. package/cjs/components/Figure/Figure.js +1 -33
  7. package/cjs/components/Figure/index.js +15 -2
  8. package/cjs/components/Form/Form.js +3 -3
  9. package/cjs/components/Form/ScrollableElementFormContext.js +1 -1
  10. package/cjs/components/Form/index.js +19 -3
  11. package/cjs/components/FormFieldPassword/PasswordMeter.js +4 -4
  12. package/cjs/components/Icon/constants.js +2 -2
  13. package/cjs/components/Icon/images/symbols.svg +9 -1
  14. package/cjs/components/Link/Link.js +11 -18
  15. package/cjs/components/Overlay/Overlay.js +3 -4
  16. package/cjs/components/Popper/Popper.js +14 -79
  17. package/cjs/components/Popper/index.js +15 -2
  18. package/cjs/components/Section/Section.js +1 -2
  19. package/cjs/components/Skeleton/SkeletonText.js +1 -1
  20. package/cjs/components/SplitButton/SplitButton.js +10 -49
  21. package/cjs/components/SplitButton/index.js +15 -2
  22. package/cjs/components/index.js +2 -30
  23. package/cjs/components/utils.js +1 -1
  24. package/cjs/index.js +1 -1
  25. package/dist/images/symbols.svg +9 -1
  26. package/dist/plesk-ui-library-rtl.css.map +1 -1
  27. package/dist/plesk-ui-library.css.map +1 -1
  28. package/dist/plesk-ui-library.js +213 -461
  29. package/dist/plesk-ui-library.js.map +1 -1
  30. package/dist/plesk-ui-library.min.js +2 -2
  31. package/dist/plesk-ui-library.min.js.map +1 -1
  32. package/esm/components/ContentLoader/IconsLoader.js +1 -2
  33. package/esm/components/Drawer/Drawer.js +10 -141
  34. package/esm/components/Drawer/Header.js +5 -10
  35. package/esm/components/Dropdown/Dropdown.js +0 -2
  36. package/esm/components/Dropdown/index.js +2 -1
  37. package/esm/components/Figure/Figure.js +1 -33
  38. package/esm/components/Figure/index.js +2 -1
  39. package/esm/components/Form/Form.js +3 -3
  40. package/esm/components/Form/ScrollableElementFormContext.js +1 -1
  41. package/esm/components/Form/index.js +1 -0
  42. package/esm/components/FormFieldPassword/PasswordMeter.js +4 -4
  43. package/esm/components/Icon/constants.js +2 -2
  44. package/esm/components/Icon/images/symbols.svg +9 -1
  45. package/esm/components/Link/Link.js +11 -18
  46. package/esm/components/Overlay/Overlay.js +3 -4
  47. package/esm/components/Popper/Popper.js +14 -79
  48. package/esm/components/Popper/index.js +2 -1
  49. package/esm/components/Section/Section.js +1 -2
  50. package/esm/components/Skeleton/SkeletonText.js +1 -1
  51. package/esm/components/SplitButton/SplitButton.js +10 -47
  52. package/esm/components/SplitButton/index.js +2 -1
  53. package/esm/components/index.js +2 -2
  54. package/esm/components/utils.js +1 -1
  55. package/esm/index.js +1 -1
  56. package/package.json +10 -13
  57. package/styleguide/build/bundle.2a886a79.js +2 -0
  58. package/styleguide/images/symbols.svg +9 -1
  59. package/styleguide/index.html +2 -2
  60. package/types/src/components/Button/Button.d.ts +4 -1
  61. package/types/src/components/ButtonGroup/ButtonGroup.d.ts +2 -2
  62. package/types/src/components/Dialog/Dialog.d.ts +29 -6
  63. package/types/src/components/Drawer/Drawer.d.ts +106 -0
  64. package/types/src/components/Drawer/DrawerProgress.d.ts +1 -1
  65. package/types/src/components/Drawer/Header.d.ts +28 -0
  66. package/types/src/components/Drawer/index.d.ts +2 -0
  67. package/types/src/components/Dropdown/Dropdown.d.ts +3 -4
  68. package/types/src/components/Dropdown/index.d.ts +2 -0
  69. package/types/src/components/Figure/Figure.d.ts +28 -0
  70. package/types/src/components/Figure/index.d.ts +2 -0
  71. package/types/src/components/Form/Form.d.ts +9 -104
  72. package/types/src/components/Form/ScrollableElementFormContext.d.ts +2 -0
  73. package/types/src/components/Form/index.d.ts +1 -0
  74. package/types/src/components/Form/types.d.ts +5 -3
  75. package/types/src/components/Icon/constants.d.ts +1 -1
  76. package/types/src/components/Link/Link.d.ts +14 -12
  77. package/types/src/components/Link/index.d.ts +1 -0
  78. package/types/src/components/Overlay/Overlay.d.ts +1 -1
  79. package/types/src/components/Popper/Popper.d.ts +96 -0
  80. package/types/src/components/Popper/index.d.ts +2 -0
  81. package/types/src/components/SplitButton/SplitButton.d.ts +53 -0
  82. package/types/src/components/SplitButton/index.d.ts +2 -0
  83. package/types/src/components/index.d.ts +11 -2
  84. package/types/src/components/utils.d.ts +6 -4
  85. package/dist/.DS_Store +0 -0
  86. package/dist/images/default.svg +0 -1
  87. package/dist/images/filtered.svg +0 -1
  88. package/styleguide/build/bundle.c6ebacd7.js +0 -2
  89. /package/styleguide/build/{bundle.c6ebacd7.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]];
@@ -1,7 +1,6 @@
1
1
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
2
2
 
3
- import React, { Fragment, isValidElement, cloneElement, useRef, useState } from 'react';
4
- import PropTypes from 'prop-types';
3
+ import { Fragment, isValidElement, cloneElement, useRef, useState } from 'react';
5
4
  import classNames from 'classnames';
6
5
  import { CLS_PREFIX } from '../../constants';
7
6
  import Overlay from '../Overlay';
@@ -14,153 +13,24 @@ import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
14
13
  import DrawerProgress from './DrawerProgress';
15
14
  import { jsx as _jsx } from "react/jsx-runtime";
16
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
- const propTypes = {
18
- /**
19
- * Toggles visibility.
20
- * @since 0.0.65
21
- */
22
- isOpen: PropTypes.bool,
23
- /**
24
- * The title of the `Drawer`.
25
- * @since 0.0.65
26
- */
27
- title: PropTypes.node.isRequired,
28
- /**
29
- * The subtitle of the `Drawer`.
30
- * @since 0.0.65
31
- */
32
- subtitle: PropTypes.node,
33
- /**
34
- * Show the minimize button and the inactive close button.
35
- * @since 1.4.1
36
- */
37
- hideButton: PropTypes.bool,
38
- /**
39
- * Show back button in the header. If true the close button is not show.
40
- * @deprecated Not recommended to use. Use default close button instead.
41
- * @since 0.0.65
42
- */
43
- backButton: PropTypes.bool,
44
- /**
45
- * A slot for `Tabs` component.
46
- * @since 3.26.0
47
- */
48
- tabs: PropTypes.node,
49
- /**
50
- * Overlay placement.
51
- * @since 0.0.65
52
- */
53
- placement: PropTypes.oneOf(['left', 'right']),
54
- /**
55
- * Overlay size.
56
- * @since 0.0.65
57
- */
58
- size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']),
59
- /**
60
- * onClose handler.
61
- * @since 0.0.65
62
- */
63
- onClose: PropTypes.func,
64
- /**
65
- * Whether show or not a confirmation dialog on close.
66
- * @since 3.21.0
67
- */
68
- closingConfirmation: PropTypes.bool,
69
- /**
70
- * Wraps children into [Form](#!/Form) if not empty.<br>
71
- * **Note:** in case of *element* you should take care of providing additional form props from [Drawer](#!/Drawer) through your custom component. See example below for more details
72
- *
73
- * @since 0.0.66
74
- */
75
- form: PropTypes.oneOfType([PropTypes.object, PropTypes.element]),
76
- /**
77
- * Block with an image, placed at the side of the component
78
- * @since 3.25.0
79
- */
80
- sideBanner: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.element]),
81
- /**
82
- * Additional properties for the sideBanner
83
- * @since 3.25.0
84
- */
85
- sideBannerContainer: PropTypes.shape({
86
- /**
87
- * Values for css background property
88
- */
89
- background: PropTypes.string,
90
- /**
91
- * One of: center, flex-start, flex-end
92
- */
93
- align: PropTypes.oneOf(['center', 'flex-start', 'flex-end'])
94
- }),
95
- /**
96
- * Content of the `Drawer`.
97
- * @since 0.0.65
98
- */
99
- children: PropTypes.node,
100
- /**
101
- * Adds [Progress](#!/Progress) into footer.
102
- * @since 1.11.0
103
- */
104
- progress: PropTypes.shape({
105
- /**
106
- * A title for the progress.
107
- */
108
- title: PropTypes.string,
109
- /**
110
- * An array of [ProgressStep](#!/ProgressStep) props.
111
- */
112
- steps: PropTypes.arrayOf(PropTypes.shape({
113
- title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
114
- status: PropTypes.string,
115
- progress: PropTypes.number,
116
- icon: PropTypes.string
117
- })).isRequired,
118
- /**
119
- * An option that controls drawer closing ability.
120
- */
121
- cancelable: PropTypes.bool,
122
- /**
123
- * On overall status event handler.
124
- * @since 3.8.0
125
- */
126
- onStatusChange: PropTypes.func,
127
- /**
128
- * @ignore
129
- */
130
- onClose: PropTypes.func,
131
- /**
132
- * @ignore
133
- */
134
- onClosableChange: PropTypes.func
135
- }),
136
- /**
137
- * @ignore
138
- */
139
- className: PropTypes.string,
140
- /**
141
- * @ignore
142
- */
143
- baseClassName: PropTypes.string
144
- };
145
16
  const defaultProps = {
146
17
  isOpen: false,
147
- subtitle: '',
18
+ subtitle: undefined,
148
19
  backButton: undefined,
149
20
  hideButton: undefined,
150
21
  tabs: undefined,
151
22
  placement: 'left',
152
23
  size: 'md',
153
- onClose: null,
24
+ onClose: undefined,
154
25
  closingConfirmation: undefined,
155
- form: null,
26
+ form: undefined,
156
27
  sideBanner: undefined,
157
28
  sideBannerContainer: undefined,
158
- progress: null,
29
+ progress: undefined,
159
30
  children: null,
160
- className: null,
31
+ className: undefined,
161
32
  baseClassName: `${CLS_PREFIX}drawer`
162
33
  };
163
-
164
34
  /**
165
35
  * `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
166
36
  * [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
@@ -182,7 +52,7 @@ const Drawer = _ref => {
182
52
  closingConfirmation,
183
53
  ...props
184
54
  } = _ref;
185
- const scrollableRef = useRef();
55
+ const scrollableRef = useRef(null);
186
56
  const [isClosable, setIsClosable] = useState(true);
187
57
  const {
188
58
  onCloseWithConfirmation,
@@ -219,7 +89,7 @@ const Drawer = _ref => {
219
89
  className: classNames(`${baseClassName}__form`, form.props.className),
220
90
  cancelButton: form.props.cancelButton === false ? false : {
221
91
  onClick: onCloseWithConfirmation,
222
- ...form.props.cancelButton
92
+ ...(typeof form.props.cancelButton === 'object' && form.props.cancelButton)
223
93
  },
224
94
  render: _ref3 => {
225
95
  let {
@@ -238,7 +108,7 @@ const Drawer = _ref => {
238
108
  if (form.cancelButton !== false) {
239
109
  form.cancelButton = {
240
110
  onClick: onCloseWithConfirmation,
241
- ...form.cancelButton
111
+ ...(typeof form.cancelButton === 'object' && form.cancelButton)
242
112
  };
243
113
  }
244
114
  return /*#__PURE__*/_jsx(Form, {
@@ -283,7 +153,7 @@ const Drawer = _ref => {
283
153
  onClose: onCloseWithConfirmation,
284
154
  tabs: tabs,
285
155
  children: [isLikeText(title) ? /*#__PURE__*/_jsx(Heading, {
286
- level: "2",
156
+ level: 2,
287
157
  className: `${baseClassName}__title`,
288
158
  children: title
289
159
  }) : /*#__PURE__*/_jsx("div", {
@@ -311,6 +181,5 @@ const Drawer = _ref => {
311
181
  }), closingConfirmationDialog]
312
182
  });
313
183
  };
314
- Drawer.propTypes = propTypes;
315
184
  Drawer.defaultProps = defaultProps;
316
185
  export default Drawer;
@@ -2,8 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
3
3
 
4
4
  import { isRtl } from '../../utils';
5
- import React, { Component } from 'react';
6
- import PropTypes from 'prop-types';
5
+ import { Component } from 'react';
7
6
  import classNames from 'classnames';
8
7
  import { CLS_PREFIX } from '../../constants';
9
8
  import Button from '../Button';
@@ -11,6 +10,10 @@ import Icon from '../Icon';
11
10
  import { jsx as _jsx } from "react/jsx-runtime";
12
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
12
  export default class Header extends Component {
13
+ constructor() {
14
+ super(...arguments);
15
+ _defineProperty(this, "isRtl", false);
16
+ }
14
17
  componentDidMount() {
15
18
  this.isRtl = isRtl();
16
19
  }
@@ -119,14 +122,6 @@ export default class Header extends Component {
119
122
  });
120
123
  }
121
124
  }
122
- _defineProperty(Header, "propTypes", {
123
- baseClassName: PropTypes.string,
124
- onClose: PropTypes.func,
125
- children: PropTypes.node.isRequired,
126
- backButton: PropTypes.bool,
127
- hideButton: PropTypes.bool,
128
- tabs: PropTypes.node
129
- });
130
125
  _defineProperty(Header, "defaultProps", {
131
126
  onClose: null,
132
127
  baseClassName: `${CLS_PREFIX}drawer-header`,
@@ -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) {