@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.
- package/cjs/components/ContentLoader/IconsLoader.js +1 -2
- package/cjs/components/Drawer/Drawer.js +10 -143
- package/cjs/components/Drawer/Header.js +5 -12
- package/cjs/components/Dropdown/Dropdown.js +0 -2
- package/cjs/components/Dropdown/index.js +15 -2
- package/cjs/components/Figure/Figure.js +1 -33
- package/cjs/components/Figure/index.js +15 -2
- package/cjs/components/Form/Form.js +3 -3
- package/cjs/components/Form/ScrollableElementFormContext.js +1 -1
- package/cjs/components/Form/index.js +19 -3
- package/cjs/components/FormFieldPassword/PasswordMeter.js +4 -4
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +9 -1
- package/cjs/components/Link/Link.js +11 -18
- package/cjs/components/Overlay/Overlay.js +3 -4
- package/cjs/components/Popper/Popper.js +14 -79
- package/cjs/components/Popper/index.js +15 -2
- package/cjs/components/Section/Section.js +1 -2
- package/cjs/components/Skeleton/SkeletonText.js +1 -1
- package/cjs/components/SplitButton/SplitButton.js +10 -49
- package/cjs/components/SplitButton/index.js +15 -2
- package/cjs/components/index.js +2 -30
- package/cjs/components/utils.js +1 -1
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +9 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +213 -461
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +2 -2
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/ContentLoader/IconsLoader.js +1 -2
- package/esm/components/Drawer/Drawer.js +10 -141
- package/esm/components/Drawer/Header.js +5 -10
- package/esm/components/Dropdown/Dropdown.js +0 -2
- package/esm/components/Dropdown/index.js +2 -1
- package/esm/components/Figure/Figure.js +1 -33
- package/esm/components/Figure/index.js +2 -1
- package/esm/components/Form/Form.js +3 -3
- package/esm/components/Form/ScrollableElementFormContext.js +1 -1
- package/esm/components/Form/index.js +1 -0
- package/esm/components/FormFieldPassword/PasswordMeter.js +4 -4
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +9 -1
- package/esm/components/Link/Link.js +11 -18
- package/esm/components/Overlay/Overlay.js +3 -4
- package/esm/components/Popper/Popper.js +14 -79
- package/esm/components/Popper/index.js +2 -1
- package/esm/components/Section/Section.js +1 -2
- package/esm/components/Skeleton/SkeletonText.js +1 -1
- package/esm/components/SplitButton/SplitButton.js +10 -47
- package/esm/components/SplitButton/index.js +2 -1
- package/esm/components/index.js +2 -2
- package/esm/components/utils.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +10 -13
- package/styleguide/build/bundle.2a886a79.js +2 -0
- package/styleguide/images/symbols.svg +9 -1
- package/styleguide/index.html +2 -2
- package/types/src/components/Button/Button.d.ts +4 -1
- package/types/src/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/types/src/components/Dialog/Dialog.d.ts +29 -6
- package/types/src/components/Drawer/Drawer.d.ts +106 -0
- package/types/src/components/Drawer/DrawerProgress.d.ts +1 -1
- package/types/src/components/Drawer/Header.d.ts +28 -0
- package/types/src/components/Drawer/index.d.ts +2 -0
- package/types/src/components/Dropdown/Dropdown.d.ts +3 -4
- package/types/src/components/Dropdown/index.d.ts +2 -0
- package/types/src/components/Figure/Figure.d.ts +28 -0
- package/types/src/components/Figure/index.d.ts +2 -0
- package/types/src/components/Form/Form.d.ts +9 -104
- package/types/src/components/Form/ScrollableElementFormContext.d.ts +2 -0
- package/types/src/components/Form/index.d.ts +1 -0
- package/types/src/components/Form/types.d.ts +5 -3
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/Link/Link.d.ts +14 -12
- package/types/src/components/Link/index.d.ts +1 -0
- package/types/src/components/Overlay/Overlay.d.ts +1 -1
- package/types/src/components/Popper/Popper.d.ts +96 -0
- package/types/src/components/Popper/index.d.ts +2 -0
- package/types/src/components/SplitButton/SplitButton.d.ts +53 -0
- package/types/src/components/SplitButton/index.d.ts +2 -0
- package/types/src/components/index.d.ts +11 -2
- package/types/src/components/utils.d.ts +6 -4
- package/dist/.DS_Store +0 -0
- package/dist/images/default.svg +0 -1
- package/dist/images/filtered.svg +0 -1
- package/styleguide/build/bundle.c6ebacd7.js +0 -2
- /package/styleguide/build/{bundle.c6ebacd7.js.LICENSE.txt → bundle.2a886a79.js.LICENSE.txt} +0 -0
|
@@ -36,7 +36,6 @@ const useIconCursor = (icons, initialCursor, isSync) => {
|
|
|
36
36
|
return [icons[cursor], targetRef];
|
|
37
37
|
};
|
|
38
38
|
const IconsLoader = _ref => {
|
|
39
|
-
var _icons;
|
|
40
39
|
let {
|
|
41
40
|
baseClassName = `${_constants.CLS_PREFIX}icons-loader`,
|
|
42
41
|
className,
|
|
@@ -46,7 +45,7 @@ const IconsLoader = _ref => {
|
|
|
46
45
|
...props
|
|
47
46
|
} = _ref;
|
|
48
47
|
const syncRef = (0, _react.useRef)('icon1');
|
|
49
|
-
if (!
|
|
48
|
+
if (!icons?.length) {
|
|
50
49
|
icons = DEFAULT_ICONS;
|
|
51
50
|
} else if (icons.length === 1) {
|
|
52
51
|
icons = [icons[0], icons[0]];
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _react =
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _react = require("react");
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
10
|
var _constants = require("../../constants");
|
|
12
11
|
var _Overlay = _interopRequireDefault(require("../Overlay"));
|
|
@@ -18,157 +17,26 @@ var _Translate = require("../Translate");
|
|
|
18
17
|
var _ScrollableElementFormContext = _interopRequireDefault(require("../Form/ScrollableElementFormContext"));
|
|
19
18
|
var _DrawerProgress = _interopRequireDefault(require("./DrawerProgress"));
|
|
20
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
20
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
24
21
|
|
|
25
|
-
const propTypes = {
|
|
26
|
-
/**
|
|
27
|
-
* Toggles visibility.
|
|
28
|
-
* @since 0.0.65
|
|
29
|
-
*/
|
|
30
|
-
isOpen: _propTypes.default.bool,
|
|
31
|
-
/**
|
|
32
|
-
* The title of the `Drawer`.
|
|
33
|
-
* @since 0.0.65
|
|
34
|
-
*/
|
|
35
|
-
title: _propTypes.default.node.isRequired,
|
|
36
|
-
/**
|
|
37
|
-
* The subtitle of the `Drawer`.
|
|
38
|
-
* @since 0.0.65
|
|
39
|
-
*/
|
|
40
|
-
subtitle: _propTypes.default.node,
|
|
41
|
-
/**
|
|
42
|
-
* Show the minimize button and the inactive close button.
|
|
43
|
-
* @since 1.4.1
|
|
44
|
-
*/
|
|
45
|
-
hideButton: _propTypes.default.bool,
|
|
46
|
-
/**
|
|
47
|
-
* Show back button in the header. If true the close button is not show.
|
|
48
|
-
* @deprecated Not recommended to use. Use default close button instead.
|
|
49
|
-
* @since 0.0.65
|
|
50
|
-
*/
|
|
51
|
-
backButton: _propTypes.default.bool,
|
|
52
|
-
/**
|
|
53
|
-
* A slot for `Tabs` component.
|
|
54
|
-
* @since 3.26.0
|
|
55
|
-
*/
|
|
56
|
-
tabs: _propTypes.default.node,
|
|
57
|
-
/**
|
|
58
|
-
* Overlay placement.
|
|
59
|
-
* @since 0.0.65
|
|
60
|
-
*/
|
|
61
|
-
placement: _propTypes.default.oneOf(['left', 'right']),
|
|
62
|
-
/**
|
|
63
|
-
* Overlay size.
|
|
64
|
-
* @since 0.0.65
|
|
65
|
-
*/
|
|
66
|
-
size: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg']),
|
|
67
|
-
/**
|
|
68
|
-
* onClose handler.
|
|
69
|
-
* @since 0.0.65
|
|
70
|
-
*/
|
|
71
|
-
onClose: _propTypes.default.func,
|
|
72
|
-
/**
|
|
73
|
-
* Whether show or not a confirmation dialog on close.
|
|
74
|
-
* @since 3.21.0
|
|
75
|
-
*/
|
|
76
|
-
closingConfirmation: _propTypes.default.bool,
|
|
77
|
-
/**
|
|
78
|
-
* Wraps children into [Form](#!/Form) if not empty.<br>
|
|
79
|
-
* **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
|
|
80
|
-
*
|
|
81
|
-
* @since 0.0.66
|
|
82
|
-
*/
|
|
83
|
-
form: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.element]),
|
|
84
|
-
/**
|
|
85
|
-
* Block with an image, placed at the side of the component
|
|
86
|
-
* @since 3.25.0
|
|
87
|
-
*/
|
|
88
|
-
sideBanner: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
89
|
-
/**
|
|
90
|
-
* Additional properties for the sideBanner
|
|
91
|
-
* @since 3.25.0
|
|
92
|
-
*/
|
|
93
|
-
sideBannerContainer: _propTypes.default.shape({
|
|
94
|
-
/**
|
|
95
|
-
* Values for css background property
|
|
96
|
-
*/
|
|
97
|
-
background: _propTypes.default.string,
|
|
98
|
-
/**
|
|
99
|
-
* One of: center, flex-start, flex-end
|
|
100
|
-
*/
|
|
101
|
-
align: _propTypes.default.oneOf(['center', 'flex-start', 'flex-end'])
|
|
102
|
-
}),
|
|
103
|
-
/**
|
|
104
|
-
* Content of the `Drawer`.
|
|
105
|
-
* @since 0.0.65
|
|
106
|
-
*/
|
|
107
|
-
children: _propTypes.default.node,
|
|
108
|
-
/**
|
|
109
|
-
* Adds [Progress](#!/Progress) into footer.
|
|
110
|
-
* @since 1.11.0
|
|
111
|
-
*/
|
|
112
|
-
progress: _propTypes.default.shape({
|
|
113
|
-
/**
|
|
114
|
-
* A title for the progress.
|
|
115
|
-
*/
|
|
116
|
-
title: _propTypes.default.string,
|
|
117
|
-
/**
|
|
118
|
-
* An array of [ProgressStep](#!/ProgressStep) props.
|
|
119
|
-
*/
|
|
120
|
-
steps: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
121
|
-
title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
|
|
122
|
-
status: _propTypes.default.string,
|
|
123
|
-
progress: _propTypes.default.number,
|
|
124
|
-
icon: _propTypes.default.string
|
|
125
|
-
})).isRequired,
|
|
126
|
-
/**
|
|
127
|
-
* An option that controls drawer closing ability.
|
|
128
|
-
*/
|
|
129
|
-
cancelable: _propTypes.default.bool,
|
|
130
|
-
/**
|
|
131
|
-
* On overall status event handler.
|
|
132
|
-
* @since 3.8.0
|
|
133
|
-
*/
|
|
134
|
-
onStatusChange: _propTypes.default.func,
|
|
135
|
-
/**
|
|
136
|
-
* @ignore
|
|
137
|
-
*/
|
|
138
|
-
onClose: _propTypes.default.func,
|
|
139
|
-
/**
|
|
140
|
-
* @ignore
|
|
141
|
-
*/
|
|
142
|
-
onClosableChange: _propTypes.default.func
|
|
143
|
-
}),
|
|
144
|
-
/**
|
|
145
|
-
* @ignore
|
|
146
|
-
*/
|
|
147
|
-
className: _propTypes.default.string,
|
|
148
|
-
/**
|
|
149
|
-
* @ignore
|
|
150
|
-
*/
|
|
151
|
-
baseClassName: _propTypes.default.string
|
|
152
|
-
};
|
|
153
22
|
const defaultProps = {
|
|
154
23
|
isOpen: false,
|
|
155
|
-
subtitle:
|
|
24
|
+
subtitle: undefined,
|
|
156
25
|
backButton: undefined,
|
|
157
26
|
hideButton: undefined,
|
|
158
27
|
tabs: undefined,
|
|
159
28
|
placement: 'left',
|
|
160
29
|
size: 'md',
|
|
161
|
-
onClose:
|
|
30
|
+
onClose: undefined,
|
|
162
31
|
closingConfirmation: undefined,
|
|
163
|
-
form:
|
|
32
|
+
form: undefined,
|
|
164
33
|
sideBanner: undefined,
|
|
165
34
|
sideBannerContainer: undefined,
|
|
166
|
-
progress:
|
|
35
|
+
progress: undefined,
|
|
167
36
|
children: null,
|
|
168
|
-
className:
|
|
37
|
+
className: undefined,
|
|
169
38
|
baseClassName: `${_constants.CLS_PREFIX}drawer`
|
|
170
39
|
};
|
|
171
|
-
|
|
172
40
|
/**
|
|
173
41
|
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
174
42
|
* [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
|
|
@@ -190,7 +58,7 @@ const Drawer = _ref => {
|
|
|
190
58
|
closingConfirmation,
|
|
191
59
|
...props
|
|
192
60
|
} = _ref;
|
|
193
|
-
const scrollableRef = (0, _react.useRef)();
|
|
61
|
+
const scrollableRef = (0, _react.useRef)(null);
|
|
194
62
|
const [isClosable, setIsClosable] = (0, _react.useState)(true);
|
|
195
63
|
const {
|
|
196
64
|
onCloseWithConfirmation,
|
|
@@ -227,7 +95,7 @@ const Drawer = _ref => {
|
|
|
227
95
|
className: (0, _classnames.default)(`${baseClassName}__form`, form.props.className),
|
|
228
96
|
cancelButton: form.props.cancelButton === false ? false : {
|
|
229
97
|
onClick: onCloseWithConfirmation,
|
|
230
|
-
...form.props.cancelButton
|
|
98
|
+
...(typeof form.props.cancelButton === 'object' && form.props.cancelButton)
|
|
231
99
|
},
|
|
232
100
|
render: _ref3 => {
|
|
233
101
|
let {
|
|
@@ -246,7 +114,7 @@ const Drawer = _ref => {
|
|
|
246
114
|
if (form.cancelButton !== false) {
|
|
247
115
|
form.cancelButton = {
|
|
248
116
|
onClick: onCloseWithConfirmation,
|
|
249
|
-
...form.cancelButton
|
|
117
|
+
...(typeof form.cancelButton === 'object' && form.cancelButton)
|
|
250
118
|
};
|
|
251
119
|
}
|
|
252
120
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Form.default, {
|
|
@@ -291,7 +159,7 @@ const Drawer = _ref => {
|
|
|
291
159
|
onClose: onCloseWithConfirmation,
|
|
292
160
|
tabs: tabs,
|
|
293
161
|
children: [(0, _Translate.isLikeText)(title) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Heading.default, {
|
|
294
|
-
level:
|
|
162
|
+
level: 2,
|
|
295
163
|
className: `${baseClassName}__title`,
|
|
296
164
|
children: title
|
|
297
165
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -319,7 +187,6 @@ const Drawer = _ref => {
|
|
|
319
187
|
}), closingConfirmationDialog]
|
|
320
188
|
});
|
|
321
189
|
};
|
|
322
|
-
Drawer.propTypes = propTypes;
|
|
323
190
|
Drawer.defaultProps = defaultProps;
|
|
324
191
|
var _default = Drawer;
|
|
325
192
|
exports.default = _default;
|
|
@@ -7,18 +7,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _utils = require("../../utils");
|
|
10
|
-
var _react =
|
|
11
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _react = require("react");
|
|
12
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
12
|
var _constants = require("../../constants");
|
|
14
13
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
15
14
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
16
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
16
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
20
17
|
|
|
21
18
|
class Header extends _react.Component {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
(0, _defineProperty2.default)(this, "isRtl", false);
|
|
22
|
+
}
|
|
22
23
|
componentDidMount() {
|
|
23
24
|
this.isRtl = (0, _utils.isRtl)();
|
|
24
25
|
}
|
|
@@ -128,14 +129,6 @@ class Header extends _react.Component {
|
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
exports.default = Header;
|
|
131
|
-
(0, _defineProperty2.default)(Header, "propTypes", {
|
|
132
|
-
baseClassName: _propTypes.default.string,
|
|
133
|
-
onClose: _propTypes.default.func,
|
|
134
|
-
children: _propTypes.default.node.isRequired,
|
|
135
|
-
backButton: _propTypes.default.bool,
|
|
136
|
-
hideButton: _propTypes.default.bool,
|
|
137
|
-
tabs: _propTypes.default.node
|
|
138
|
-
});
|
|
139
132
|
(0, _defineProperty2.default)(Header, "defaultProps", {
|
|
140
133
|
onClose: null,
|
|
141
134
|
baseClassName: `${_constants.CLS_PREFIX}drawer-header`,
|
|
@@ -20,8 +20,6 @@ var _enUS = _interopRequireDefault(require("./locale/en-US"));
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
22
22
|
|
|
23
|
-
// TODO: move to Popover
|
|
24
|
-
|
|
25
23
|
const createTarget = (node, _ref) => {
|
|
26
24
|
let {
|
|
27
25
|
onToggle,
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
6
|
+
var _exportNames = {};
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
10
|
return _Dropdown.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var _Dropdown =
|
|
13
|
+
var _Dropdown = _interopRequireWildcard(require("./Dropdown"));
|
|
14
|
+
Object.keys(_Dropdown).forEach(function (key) {
|
|
15
|
+
if (key === "default" || key === "__esModule") return;
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
17
|
+
if (key in exports && exports[key] === _Dropdown[key]) return;
|
|
18
|
+
Object.defineProperty(exports, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Dropdown[key];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
9
|
var _constants = require("../../constants");
|
|
12
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -18,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
16
|
*/
|
|
19
17
|
const Figure = _ref => {
|
|
20
18
|
let {
|
|
21
|
-
baseClassName
|
|
19
|
+
baseClassName = `${_constants.CLS_PREFIX}figure`,
|
|
22
20
|
className,
|
|
23
21
|
href,
|
|
24
22
|
caption,
|
|
@@ -37,35 +35,5 @@ const Figure = _ref => {
|
|
|
37
35
|
})]
|
|
38
36
|
});
|
|
39
37
|
};
|
|
40
|
-
Figure.propTypes = {
|
|
41
|
-
/**
|
|
42
|
-
* @since 0.0.47
|
|
43
|
-
*/
|
|
44
|
-
href: _propTypes.default.string,
|
|
45
|
-
/**
|
|
46
|
-
* @since 0.0.47
|
|
47
|
-
*/
|
|
48
|
-
caption: _propTypes.default.any,
|
|
49
|
-
/**
|
|
50
|
-
* Content of the figure
|
|
51
|
-
* @since 0.0.42
|
|
52
|
-
*/
|
|
53
|
-
children: _propTypes.default.node,
|
|
54
|
-
/**
|
|
55
|
-
* @ignore
|
|
56
|
-
*/
|
|
57
|
-
className: _propTypes.default.string,
|
|
58
|
-
/**
|
|
59
|
-
* @ignore
|
|
60
|
-
*/
|
|
61
|
-
baseClassName: _propTypes.default.string
|
|
62
|
-
};
|
|
63
|
-
Figure.defaultProps = {
|
|
64
|
-
href: null,
|
|
65
|
-
caption: null,
|
|
66
|
-
children: null,
|
|
67
|
-
className: null,
|
|
68
|
-
baseClassName: `${_constants.CLS_PREFIX}figure`
|
|
69
|
-
};
|
|
70
38
|
var _default = Figure;
|
|
71
39
|
exports.default = _default;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
6
|
+
var _exportNames = {};
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function () {
|
|
10
10
|
return _Figure.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var _Figure =
|
|
13
|
+
var _Figure = _interopRequireWildcard(require("./Figure"));
|
|
14
|
+
Object.keys(_Figure).forEach(function (key) {
|
|
15
|
+
if (key === "default" || key === "__esModule") return;
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
17
|
+
if (key in exports && exports[key] === _Figure[key]) return;
|
|
18
|
+
Object.defineProperty(exports, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Figure[key];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -379,7 +379,8 @@ class Form extends _react.Component {
|
|
|
379
379
|
/**
|
|
380
380
|
* `Form` component is used for entering and submitting of user data.
|
|
381
381
|
* [More details about designing of forms.](#!/Good%20Forms)
|
|
382
|
-
*
|
|
382
|
+
*
|
|
383
|
+
* Since: 0.0.54
|
|
383
384
|
*/
|
|
384
385
|
(0, _defineProperty2.default)(Form, "defaultProps", {
|
|
385
386
|
children: undefined,
|
|
@@ -407,8 +408,7 @@ const RefForwardingForm = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
407
408
|
const innerRef = (0, _react.useRef)(null);
|
|
408
409
|
(0, _react.useImperativeHandle)(ref, () => ({
|
|
409
410
|
submit() {
|
|
410
|
-
|
|
411
|
-
(_innerRef$current = innerRef.current) === null || _innerRef$current === void 0 ? void 0 : _innerRef$current.dispatchEvent(new Event('submit', {
|
|
411
|
+
innerRef.current?.dispatchEvent(new Event('submit', {
|
|
412
412
|
cancelable: true,
|
|
413
413
|
bubbles: true
|
|
414
414
|
}));
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
9
9
|
|
|
10
|
-
const ScrollableElementFormContext = /*#__PURE__*/(0, _react.createContext)();
|
|
10
|
+
const ScrollableElementFormContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
11
11
|
ScrollableElementFormContext.displayName = 'ScrollableElementFormContext';
|
|
12
12
|
var _default = ScrollableElementFormContext;
|
|
13
13
|
exports.default = _default;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
getIn: true,
|
|
8
|
+
setIn: true
|
|
9
|
+
};
|
|
7
10
|
Object.defineProperty(exports, "default", {
|
|
8
11
|
enumerable: true,
|
|
9
12
|
get: function () {
|
|
@@ -22,5 +25,18 @@ Object.defineProperty(exports, "setIn", {
|
|
|
22
25
|
return _utils.setIn;
|
|
23
26
|
}
|
|
24
27
|
});
|
|
25
|
-
var _Form =
|
|
26
|
-
|
|
28
|
+
var _Form = _interopRequireWildcard(require("./Form"));
|
|
29
|
+
Object.keys(_Form).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
32
|
+
if (key in exports && exports[key] === _Form[key]) return;
|
|
33
|
+
Object.defineProperty(exports, key, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return _Form[key];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
var _utils = require("./utils");
|
|
41
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
42
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -47,19 +47,19 @@ const PasswordMeter = _ref => {
|
|
|
47
47
|
canCloseOnOutsideClick: false,
|
|
48
48
|
canCloseOnEscapePress: false,
|
|
49
49
|
...props,
|
|
50
|
-
children: [result
|
|
50
|
+
children: [result?.strength ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Translate.default, {
|
|
51
51
|
component: "div",
|
|
52
52
|
content: "FormFieldPassword.passwordStrength",
|
|
53
53
|
fallback: _enUS.default.passwordStrength,
|
|
54
54
|
params: {
|
|
55
55
|
strength: /*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
|
|
56
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Translate.default, {
|
|
57
|
-
content: `FormFieldPassword.strength${result
|
|
58
|
-
fallback: _enUS.default[`strength${result
|
|
57
|
+
content: `FormFieldPassword.strength${result?.strength}`,
|
|
58
|
+
fallback: _enUS.default[`strength${result?.strength}`]
|
|
59
59
|
})
|
|
60
60
|
})
|
|
61
61
|
}
|
|
62
|
-
}) : null, result
|
|
62
|
+
}) : null, result?.suggestions.length ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
63
63
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Translate.default, {
|
|
64
64
|
content: "FormFieldPassword.improvePassword",
|
|
65
65
|
fallback: _enUS.default.improvePassword
|
|
@@ -7,7 +7,7 @@ exports.NAMES_12 = exports.NAMES = void 0;
|
|
|
7
7
|
/* eslint-disable max-len */
|
|
8
8
|
// This file is generated by create-svg-sprite. Do not edit.
|
|
9
9
|
|
|
10
|
-
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'];
|
|
10
|
+
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'];
|
|
11
11
|
exports.NAMES_12 = NAMES_12;
|
|
12
|
-
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'];
|
|
12
|
+
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'];
|
|
13
13
|
exports.NAMES = NAMES;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
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>
|
|
@@ -15,13 +15,10 @@ var _Icon = _interopRequireDefault(require("../Icon"));
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* FIXME: With the following code all @ts-ignore comments can be removed, but react-docgen cannot parse it.
|
|
20
|
-
* const Link = <P extends any>({ ... }: LinkProps<P>) => {
|
|
21
|
-
*/
|
|
22
18
|
/**
|
|
23
19
|
* `Link` is used for navigation purposes.
|
|
24
|
-
*
|
|
20
|
+
*
|
|
21
|
+
* Since: 1.9.0
|
|
25
22
|
*/
|
|
26
23
|
const Link = _ref => {
|
|
27
24
|
let {
|
|
@@ -34,7 +31,7 @@ const Link = _ref => {
|
|
|
34
31
|
children,
|
|
35
32
|
...other
|
|
36
33
|
} = _ref;
|
|
37
|
-
const
|
|
34
|
+
const Tag = component || 'a';
|
|
38
35
|
const onDark = (0, _react.useContext)(_OnDarkContext.default);
|
|
39
36
|
const props = {
|
|
40
37
|
...other,
|
|
@@ -66,18 +63,14 @@ const Link = _ref => {
|
|
|
66
63
|
}
|
|
67
64
|
});
|
|
68
65
|
}
|
|
69
|
-
return (
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
className: `${baseClassName}__external-icon`
|
|
78
|
-
})]
|
|
79
|
-
})
|
|
80
|
-
);
|
|
66
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Tag, {
|
|
67
|
+
...props,
|
|
68
|
+
children: [children, external && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
69
|
+
flipHorizontal: (0, _utils.isRtl)(),
|
|
70
|
+
name: "arrow-diagonal-out",
|
|
71
|
+
className: `${baseClassName}__external-icon`
|
|
72
|
+
})]
|
|
73
|
+
});
|
|
81
74
|
};
|
|
82
75
|
var _default = Link;
|
|
83
76
|
exports.default = _default;
|
|
@@ -108,8 +108,8 @@ const OverlayCore = _ref => {
|
|
|
108
108
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
109
|
className: (0, _classnames.default)(baseClassName, `${baseClassName}--${placement}`, `${baseClassName}--${size}`, sideBanner && `${baseClassName}--side`, isOpen && `${baseClassName}--open`, className),
|
|
110
110
|
style: {
|
|
111
|
-
'--overlay-side-banner-background': sideBannerContainer
|
|
112
|
-
'--overlay-side-banner-align': sideBannerContainer
|
|
111
|
+
'--overlay-side-banner-background': sideBannerContainer?.background,
|
|
112
|
+
'--overlay-side-banner-align': sideBannerContainer?.align,
|
|
113
113
|
...style
|
|
114
114
|
},
|
|
115
115
|
...props,
|
|
@@ -139,11 +139,10 @@ const Overlay = _ref2 => {
|
|
|
139
139
|
const [isExist, setIsExist] = (0, _react.useState)(false);
|
|
140
140
|
const prevFocusElementRef = (0, _react.useRef)(null);
|
|
141
141
|
const handleClose = (0, _react.useCallback)(() => {
|
|
142
|
-
var _prevFocusElementRef$;
|
|
143
142
|
if (!isOpenRef.current) return;
|
|
144
143
|
isOpenRef.current = false;
|
|
145
144
|
if (--overlaysCount === 0) (0, _utils.enableDocumentScroll)();
|
|
146
|
-
|
|
145
|
+
prevFocusElementRef.current?.focus();
|
|
147
146
|
}, []);
|
|
148
147
|
(0, _react.useEffect)(() => {
|
|
149
148
|
if (isOpen) {
|