@plesk/ui-library 3.38.2 → 3.40.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/Button/Button.js +4 -22
- package/cjs/components/Card/CardButton.js +2 -3
- package/cjs/components/CardList/CardListToolbar.js +3 -8
- package/cjs/components/Dialog/Dialog.js +5 -27
- package/cjs/components/Drawer/Drawer.js +7 -20
- package/cjs/components/Dropdown/Dropdown.js +3 -11
- package/cjs/components/FormField/FormField.js +13 -26
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +9 -1
- package/cjs/components/List/List.js +1 -14
- package/cjs/components/Progress/Progress.js +6 -5
- package/cjs/components/ProgressStep/ProgressStep.js +5 -14
- package/cjs/components/ProgressStep/index.js +6 -0
- package/cjs/components/Section/Section.js +11 -19
- package/cjs/components/SplitButton/SplitButton.js +2 -3
- package/cjs/components/TextArea/TextArea.js +49 -97
- package/cjs/components/TextArea/calculateNodeHeight.js +8 -8
- package/cjs/components/Toolbar/RegistryContextBeta.js +112 -0
- package/cjs/components/Toolbar/Toolbar.js +46 -2
- package/cjs/components/Toolbar/ToolbarBetaProvider.js +23 -0
- package/cjs/components/Toolbar/ToolbarGroup.js +66 -4
- package/cjs/components/Toolbar/ToolbarItem.js +27 -12
- package/cjs/components/Toolbar/ToolbarMenu.js +2 -1
- package/cjs/components/Toolbar/index.js +8 -1
- package/cjs/components/index.js +15 -1
- package/cjs/hooks/index.js +12 -0
- package/cjs/hooks/useResizeObserver.js +29 -0
- package/cjs/hooks/useSqueeze.js +48 -0
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +9 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +591 -309
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +5 -5
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Button/Button.js +3 -21
- package/esm/components/Card/CardButton.js +2 -3
- package/esm/components/CardList/CardListToolbar.js +3 -8
- package/esm/components/Dialog/Dialog.js +5 -27
- package/esm/components/Drawer/Drawer.js +7 -20
- package/esm/components/Dropdown/Dropdown.js +3 -11
- package/esm/components/FormField/FormField.js +13 -26
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +9 -1
- package/esm/components/List/List.js +1 -14
- package/esm/components/Progress/Progress.js +7 -6
- package/esm/components/ProgressStep/ProgressStep.js +4 -13
- package/esm/components/ProgressStep/index.js +1 -1
- package/esm/components/Section/Section.js +11 -19
- package/esm/components/SplitButton/SplitButton.js +2 -3
- package/esm/components/TextArea/TextArea.js +50 -98
- package/esm/components/TextArea/calculateNodeHeight.js +8 -8
- package/esm/components/Toolbar/RegistryContextBeta.js +103 -0
- package/esm/components/Toolbar/Toolbar.js +47 -3
- package/esm/components/Toolbar/ToolbarBetaProvider.js +16 -0
- package/esm/components/Toolbar/ToolbarGroup.js +67 -5
- package/esm/components/Toolbar/ToolbarItem.js +27 -12
- package/esm/components/Toolbar/ToolbarMenu.js +2 -1
- package/esm/components/Toolbar/index.js +2 -1
- package/esm/components/index.js +2 -2
- package/esm/hooks/index.js +3 -0
- package/esm/hooks/useResizeObserver.js +22 -0
- package/esm/hooks/useSqueeze.js +41 -0
- package/esm/index.js +1 -1
- package/package.json +13 -13
- package/styleguide/build/bundle.8f00c54c.js +2 -0
- package/styleguide/images/symbols.svg +9 -1
- package/styleguide/index.html +2 -2
- package/types/src/components/Button/Button.d.ts +1 -0
- package/types/src/components/Dialog/Dialog.d.ts +1 -25
- package/types/src/components/Drawer/Drawer.d.ts +1 -4
- package/types/src/components/FormField/FormField.d.ts +1 -23
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/ProgressStep/ProgressStep.d.ts +2 -13
- package/types/src/components/ProgressStep/index.d.ts +1 -1
- package/types/src/components/Section/Section.d.ts +2 -32
- package/types/src/components/TextArea/TextArea.d.ts +5 -32
- package/types/src/components/TextArea/calculateNodeHeight.d.ts +2 -6
- package/types/src/components/Toolbar/RegistryContextBeta.d.ts +25 -0
- package/types/src/components/Toolbar/Toolbar.d.ts +2 -22
- package/types/src/components/Toolbar/ToolbarBetaProvider.d.ts +5 -0
- package/types/src/components/Toolbar/ToolbarGroup.d.ts +2 -5
- package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/src/components/Toolbar/index.d.ts +1 -0
- package/types/src/components/index.d.ts +2 -2
- package/types/src/hooks/index.d.ts +1 -0
- package/types/src/hooks/useResizeObserver.d.ts +7 -0
- package/types/src/hooks/useSqueeze.d.ts +10 -0
- package/styleguide/build/bundle.42040fbd.js +0 -2
- /package/styleguide/build/{bundle.42040fbd.js.LICENSE.txt → bundle.8f00c54c.js.LICENSE.txt} +0 -0
|
@@ -63,6 +63,9 @@ const renderCaret = _ref2 => {
|
|
|
63
63
|
}
|
|
64
64
|
return caretElement;
|
|
65
65
|
};
|
|
66
|
+
|
|
67
|
+
// For ToolbarMenu backward compatibility purposes
|
|
68
|
+
export const BUTTON_PROP_NAMES = ['size', 'intent', 'ghost', 'selected', 'onToggle', 'state', 'disabled', 'tooltip', 'icon', 'caret', 'fill', 'children', 'component', 'className', 'baseClassName', 'arrow', 'onClick'];
|
|
66
69
|
const Button = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
67
70
|
let {
|
|
68
71
|
baseClassName = `${CLS_PREFIX}button`,
|
|
@@ -176,27 +179,6 @@ const Button = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
176
179
|
});
|
|
177
180
|
Button.displayName = 'Button';
|
|
178
181
|
|
|
179
|
-
// For ToolbarMenu backward compatibility purposes
|
|
180
|
-
Button.defaultProps = {
|
|
181
|
-
size: undefined,
|
|
182
|
-
intent: undefined,
|
|
183
|
-
ghost: false,
|
|
184
|
-
selected: undefined,
|
|
185
|
-
onToggle: undefined,
|
|
186
|
-
state: undefined,
|
|
187
|
-
disabled: false,
|
|
188
|
-
tooltip: undefined,
|
|
189
|
-
icon: undefined,
|
|
190
|
-
caret: undefined,
|
|
191
|
-
fill: false,
|
|
192
|
-
children: undefined,
|
|
193
|
-
component: 'button',
|
|
194
|
-
className: undefined,
|
|
195
|
-
baseClassName: `${CLS_PREFIX}button`,
|
|
196
|
-
arrow: undefined,
|
|
197
|
-
onClick: undefined
|
|
198
|
-
};
|
|
199
|
-
|
|
200
182
|
/**
|
|
201
183
|
* `Button` component is used for executing actions, changing the application state, opening forms or dialog windows, and submitting data.
|
|
202
184
|
* As a rule, you should not use buttons for navigation between individual pages (use `Link` instead).
|
|
@@ -9,10 +9,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
const CardButton = _ref => {
|
|
10
10
|
let {
|
|
11
11
|
icon,
|
|
12
|
+
baseClassName = `${CLS_PREFIX}card-button`,
|
|
12
13
|
...props
|
|
13
14
|
} = _ref;
|
|
14
15
|
return /*#__PURE__*/_jsx(Button, {
|
|
15
16
|
icon: Icon.create(icon),
|
|
17
|
+
baseClassName: baseClassName,
|
|
16
18
|
...props
|
|
17
19
|
});
|
|
18
20
|
};
|
|
@@ -23,7 +25,4 @@ CardButton.propTypes = {
|
|
|
23
25
|
baseClassName: PropTypes.string,
|
|
24
26
|
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.element]).isRequired
|
|
25
27
|
};
|
|
26
|
-
CardButton.defaultProps = {
|
|
27
|
-
baseClassName: `${CLS_PREFIX}card-button`
|
|
28
|
-
};
|
|
29
28
|
export default CardButton;
|
|
@@ -111,9 +111,9 @@ const renderView = (onViewChange, currentView) => {
|
|
|
111
111
|
const isToolbarExpander = element => /*#__PURE__*/isValidElement(element) && element.type === ToolbarExpander;
|
|
112
112
|
const CardListToolbar = _ref2 => {
|
|
113
113
|
let {
|
|
114
|
-
baseClassName
|
|
115
|
-
selection,
|
|
116
|
-
onViewChange,
|
|
114
|
+
baseClassName = `${CLS_PREFIX}card-list__toolbar`,
|
|
115
|
+
selection = null,
|
|
116
|
+
onViewChange = null,
|
|
117
117
|
currentView,
|
|
118
118
|
groups
|
|
119
119
|
} = _ref2;
|
|
@@ -144,9 +144,4 @@ CardListToolbar.propTypes = {
|
|
|
144
144
|
currentView: PropTypes.string.isRequired,
|
|
145
145
|
baseClassName: PropTypes.string
|
|
146
146
|
};
|
|
147
|
-
CardListToolbar.defaultProps = {
|
|
148
|
-
selection: null,
|
|
149
|
-
onViewChange: null,
|
|
150
|
-
baseClassName: `${CLS_PREFIX}card-list__toolbar`
|
|
151
|
-
};
|
|
152
147
|
export default CardListToolbar;
|
|
@@ -20,11 +20,14 @@ const isProps = value => value && typeof value === 'object' && ! /*#__PURE__*/is
|
|
|
20
20
|
*/
|
|
21
21
|
const Dialog = _ref => {
|
|
22
22
|
let {
|
|
23
|
-
baseClassName
|
|
23
|
+
baseClassName = `${CLS_PREFIX}dialog`,
|
|
24
|
+
isOpen = false,
|
|
25
|
+
size = 'md',
|
|
26
|
+
closable = true,
|
|
27
|
+
canClose = true,
|
|
24
28
|
className,
|
|
25
29
|
children,
|
|
26
30
|
actions,
|
|
27
|
-
isOpen,
|
|
28
31
|
banner,
|
|
29
32
|
image,
|
|
30
33
|
title,
|
|
@@ -33,11 +36,8 @@ const Dialog = _ref => {
|
|
|
33
36
|
cancelButton,
|
|
34
37
|
buttons,
|
|
35
38
|
form,
|
|
36
|
-
size,
|
|
37
|
-
closable,
|
|
38
39
|
onClose,
|
|
39
40
|
closingConfirmation,
|
|
40
|
-
canClose,
|
|
41
41
|
...props
|
|
42
42
|
} = _ref;
|
|
43
43
|
const [isVisible, setIsVisible] = useState(isOpen);
|
|
@@ -197,26 +197,4 @@ const Dialog = _ref => {
|
|
|
197
197
|
}), closingConfirmationDialog]
|
|
198
198
|
});
|
|
199
199
|
};
|
|
200
|
-
Dialog.defaultProps = {
|
|
201
|
-
isOpen: false,
|
|
202
|
-
banner: undefined,
|
|
203
|
-
sideBanner: undefined,
|
|
204
|
-
sideBannerContainer: undefined,
|
|
205
|
-
image: undefined,
|
|
206
|
-
title: undefined,
|
|
207
|
-
subtitle: undefined,
|
|
208
|
-
cancelTitle: undefined,
|
|
209
|
-
cancelButton: undefined,
|
|
210
|
-
buttons: undefined,
|
|
211
|
-
actions: undefined,
|
|
212
|
-
form: undefined,
|
|
213
|
-
size: 'md',
|
|
214
|
-
closable: true,
|
|
215
|
-
canClose: true,
|
|
216
|
-
onClose: undefined,
|
|
217
|
-
closingConfirmation: undefined,
|
|
218
|
-
children: undefined,
|
|
219
|
-
className: undefined,
|
|
220
|
-
baseClassName: `${CLS_PREFIX}dialog`
|
|
221
|
-
};
|
|
222
200
|
export default Dialog;
|
|
@@ -12,24 +12,6 @@ import { isLikeText } from '../Translate';
|
|
|
12
12
|
import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
|
|
13
13
|
import DrawerProgress from './DrawerProgress';
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
const defaultProps = {
|
|
16
|
-
isOpen: false,
|
|
17
|
-
subtitle: undefined,
|
|
18
|
-
backButton: undefined,
|
|
19
|
-
hideButton: undefined,
|
|
20
|
-
tabs: undefined,
|
|
21
|
-
placement: 'left',
|
|
22
|
-
size: 'md',
|
|
23
|
-
onClose: undefined,
|
|
24
|
-
closingConfirmation: undefined,
|
|
25
|
-
form: undefined,
|
|
26
|
-
sideBanner: undefined,
|
|
27
|
-
sideBannerContainer: undefined,
|
|
28
|
-
progress: undefined,
|
|
29
|
-
children: null,
|
|
30
|
-
className: undefined,
|
|
31
|
-
baseClassName: `${CLS_PREFIX}drawer`
|
|
32
|
-
};
|
|
33
15
|
/**
|
|
34
16
|
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
35
17
|
* [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
|
|
@@ -37,7 +19,10 @@ const defaultProps = {
|
|
|
37
19
|
*/
|
|
38
20
|
const Drawer = _ref => {
|
|
39
21
|
let {
|
|
40
|
-
baseClassName
|
|
22
|
+
baseClassName = `${CLS_PREFIX}drawer`,
|
|
23
|
+
isOpen = false,
|
|
24
|
+
placement = 'left',
|
|
25
|
+
size = 'md',
|
|
41
26
|
className,
|
|
42
27
|
children,
|
|
43
28
|
title,
|
|
@@ -139,6 +124,9 @@ const Drawer = _ref => {
|
|
|
139
124
|
}, className),
|
|
140
125
|
onClose: onCloseWithConfirmation,
|
|
141
126
|
canCloseOnBackdropClick: true,
|
|
127
|
+
isOpen: isOpen,
|
|
128
|
+
placement: placement,
|
|
129
|
+
size: size,
|
|
142
130
|
...props,
|
|
143
131
|
children: [takeApart(_ref5 => {
|
|
144
132
|
let {
|
|
@@ -180,5 +168,4 @@ const Drawer = _ref => {
|
|
|
180
168
|
}), closingConfirmationDialog]
|
|
181
169
|
});
|
|
182
170
|
};
|
|
183
|
-
Drawer.defaultProps = defaultProps;
|
|
184
171
|
export default Drawer;
|
|
@@ -125,12 +125,12 @@ const useEnhancedMenu = (menu, _ref2) => {
|
|
|
125
125
|
*/
|
|
126
126
|
const Dropdown = _ref3 => {
|
|
127
127
|
let {
|
|
128
|
-
baseClassName
|
|
128
|
+
baseClassName = `${CLS_PREFIX}dropdown`,
|
|
129
129
|
className,
|
|
130
130
|
children,
|
|
131
131
|
menu,
|
|
132
|
-
menuPlacement,
|
|
133
|
-
overlay,
|
|
132
|
+
menuPlacement = 'bottom-start',
|
|
133
|
+
overlay = false,
|
|
134
134
|
locale,
|
|
135
135
|
...props
|
|
136
136
|
} = _ref3;
|
|
@@ -199,12 +199,4 @@ const Dropdown = _ref3 => {
|
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
};
|
|
202
|
-
Dropdown.defaultProps = {
|
|
203
|
-
menuPlacement: 'bottom-start',
|
|
204
|
-
children: undefined,
|
|
205
|
-
overlay: false,
|
|
206
|
-
className: undefined,
|
|
207
|
-
baseClassName: `${CLS_PREFIX}dropdown`,
|
|
208
|
-
locale: undefined
|
|
209
|
-
};
|
|
210
202
|
export default Dropdown;
|
|
@@ -21,28 +21,6 @@ import DisabledContext from '../Form/DisabledContext';
|
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
22
|
export const BASE_FORM_FIELD_CLASS_NAME = `${CLS_PREFIX}form-field`;
|
|
23
23
|
const defaultValue = undefined;
|
|
24
|
-
const defaultProps = {
|
|
25
|
-
id: undefined,
|
|
26
|
-
name: undefined,
|
|
27
|
-
value: defaultValue,
|
|
28
|
-
onChange: null,
|
|
29
|
-
label: undefined,
|
|
30
|
-
description: undefined,
|
|
31
|
-
errors: {},
|
|
32
|
-
required: false,
|
|
33
|
-
children: undefined,
|
|
34
|
-
multi: undefined,
|
|
35
|
-
disabled: undefined,
|
|
36
|
-
locale: undefined,
|
|
37
|
-
addMoreValidator: undefined,
|
|
38
|
-
onRemoveRow: null,
|
|
39
|
-
fullDescription: undefined,
|
|
40
|
-
className: undefined,
|
|
41
|
-
baseClassName: BASE_FORM_FIELD_CLASS_NAME,
|
|
42
|
-
form: undefined,
|
|
43
|
-
vertical: undefined,
|
|
44
|
-
scrollableElement: undefined
|
|
45
|
-
};
|
|
46
24
|
|
|
47
25
|
/**
|
|
48
26
|
* Simple helper to handle situations when we're expecting only array
|
|
@@ -448,8 +426,14 @@ class FormField extends Component {
|
|
|
448
426
|
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
449
427
|
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
450
428
|
*/
|
|
451
|
-
|
|
452
|
-
|
|
429
|
+
const FormFieldWrapper = _ref => {
|
|
430
|
+
let {
|
|
431
|
+
value = defaultValue,
|
|
432
|
+
errors = {},
|
|
433
|
+
required = false,
|
|
434
|
+
baseClassName = BASE_FORM_FIELD_CLASS_NAME,
|
|
435
|
+
...props
|
|
436
|
+
} = _ref;
|
|
453
437
|
const form = useContext(FormContext);
|
|
454
438
|
const verticalContext = useContext(VerticalContext);
|
|
455
439
|
const vertical = props.vertical === undefined ? verticalContext : props.vertical;
|
|
@@ -460,9 +444,12 @@ const FormFieldWrapper = props => {
|
|
|
460
444
|
form: form,
|
|
461
445
|
vertical: vertical,
|
|
462
446
|
scrollableElement: scrollableElement,
|
|
463
|
-
disabled: props.disabled || disabled
|
|
447
|
+
disabled: props.disabled || disabled,
|
|
448
|
+
value: value,
|
|
449
|
+
errors: errors,
|
|
450
|
+
required: required,
|
|
451
|
+
baseClassName: baseClassName
|
|
464
452
|
});
|
|
465
453
|
};
|
|
466
454
|
FormFieldWrapper.displayName = 'FormField';
|
|
467
|
-
FormFieldWrapper.defaultProps = defaultProps;
|
|
468
455
|
export default FormFieldWrapper;
|
|
@@ -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 = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', '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', 'dot-big', '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', 'file', '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', 'label', 'label-plus', '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', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', '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', 'wordpress-minus', 'zero-circle-filled'];
|
|
5
|
-
export const NAMES = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', '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', 'dot-big', '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', 'file', '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', 'label', 'label-plus', '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', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', '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', 'wordpress-minus', 'zero-circle-filled'];
|
|
4
|
+
export const NAMES_12 = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', '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', 'boost', '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', 'dot-big', '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', 'file', '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', 'label', 'label-plus', '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', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', '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', 'wordpress-minus', 'zero-circle-filled'];
|
|
5
|
+
export const NAMES = ['advisor', 'archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', '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', 'boost', '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', 'dot-big', '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', 'file', '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', 'label', 'label-plus', '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', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'ssl-it', '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', 'wordpress-minus', 'zero-circle-filled'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
1
|
+
<svg width="16" height="12480" 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="advisor:12">
|
|
4
4
|
<path d="M4.5 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM8 7a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z" />
|
|
@@ -244,6 +244,14 @@
|
|
|
244
244
|
<path fill-rule="evenodd" d="M2 1a1 1 0 0 1 1-1h9a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a1 1 0 0 1-1-1V1zm1 12V1h9a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3zm10 .733V14a1 1 0 0 1-1 1H3v-1h9c.364 0 .706-.097 1-.267z" clip-rule="evenodd" />
|
|
245
245
|
<path fill-rule="evenodd" d="M8 10a3 3 0 0 0 .878-.13c.264-.081.564.015.688.262.123.247.024.55-.236.642A4 4 0 1 1 12 7a1.5 1.5 0 0 1-2.4 1.2A2 2 0 1 1 10 7a.5.5 0 0 0 1 0 3 3 0 1 0-3 3zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" clip-rule="evenodd" />
|
|
246
246
|
</symbol>
|
|
247
|
+
<symbol viewBox="0 0 12 12" id="boost:12">
|
|
248
|
+
<path d="M10.5 2.1c-.1 0-.1 0-.1.1l-.6 7c-.5.2-.8.7-.8 1.3 0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5c0-.6-.3-1.1-.8-1.3l-.6-7c0-.1 0-.1-.1-.1zm0 8.9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z" />
|
|
249
|
+
<path d="M11.5 1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5h-.1C8.1.2 5.1 1.7 3 4 1.3 6 .2 8.5 0 11.3v.2c0 .3.2.5.5.5s.5-.2.5-.5v-.2c.2-2.5 1.2-4.9 2.8-6.7C5.7 2.5 8.4 1.2 11.5 1z" />
|
|
250
|
+
</symbol>
|
|
251
|
+
<symbol viewBox="0 0 16 16" id="boost:16">
|
|
252
|
+
<path d="M15.5 1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5C11.4.1 7.6 1.8 4.9 4.5 2 7.3.1 11.2 0 15.5c0 .3.2.5.5.5s.5-.2.5-.5c.1-4 1.9-7.7 4.6-10.3 2.6-2.5 6.1-4.1 9.9-4.2z" />
|
|
253
|
+
<path d="M14 2.8c-.1 0-.1 0-.2.1l-.8 9.3a2 2 0 0 0 .9 3.8 2 2 0 0 0 .9-3.8L14.2 3c-.1-.1-.1-.2-.2-.2zM14 15c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z" />
|
|
254
|
+
</symbol>
|
|
247
255
|
<symbol viewBox="0 0 12 12" id="boundary:12">
|
|
248
256
|
<path fill-rule="evenodd" d="M3 9V2.997a1 1 0 01.342-.753L5.835.062a.25.25 0 01.33 0l2.494 2.182A1.003 1.003 0 019 2.997V9h.666a1 1 0 01.6.2l1.332 1c.769.577.361 1.8-.6 1.8H1.002c-.961 0-1.369-1.223-.6-1.8l1.333-1a1 1 0 01.6-.2H3zm5-1.565V9H6.435L8 7.435zM5 9l3-3V3.435l-4 4V9h1zm2.469-6.469L6 1.247l-2 1.75V6L7.469 2.53zM1.002 11l1.333-1h7.33l1.333 1H1.002z" clip-rule="evenodd" />
|
|
249
257
|
</symbol>
|
|
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
3
3
|
|
|
4
4
|
import { Fragment, cloneElement, isValidElement, createRef, Component, createElement as _createElement } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import { CSSTransition } from 'react-transition-group';
|
|
8
7
|
import memoize from 'memoize-one';
|
|
@@ -34,7 +33,7 @@ function getRowKey(row, props) {
|
|
|
34
33
|
}
|
|
35
34
|
const Tbody = _ref => {
|
|
36
35
|
let {
|
|
37
|
-
baseClassName
|
|
36
|
+
baseClassName = `${CLS_PREFIX}list__wrapper`,
|
|
38
37
|
className,
|
|
39
38
|
...props
|
|
40
39
|
} = _ref;
|
|
@@ -52,18 +51,6 @@ const Tbody = _ref => {
|
|
|
52
51
|
})
|
|
53
52
|
});
|
|
54
53
|
};
|
|
55
|
-
Tbody.propTypes = {
|
|
56
|
-
onFocus: PropTypes.func,
|
|
57
|
-
onBlur: PropTypes.func,
|
|
58
|
-
className: PropTypes.string,
|
|
59
|
-
baseClassName: PropTypes.string
|
|
60
|
-
};
|
|
61
|
-
Tbody.defaultProps = {
|
|
62
|
-
onFocus: undefined,
|
|
63
|
-
onBlur: undefined,
|
|
64
|
-
className: undefined,
|
|
65
|
-
baseClassName: `${CLS_PREFIX}list__wrapper`
|
|
66
|
-
};
|
|
67
54
|
const getHumanTotalRows = _ref2 => {
|
|
68
55
|
let {
|
|
69
56
|
selectedRows,
|
|
@@ -5,7 +5,7 @@ import { Component, Children, isValidElement } from 'react';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
7
|
import { safeInvoke } from '../utils';
|
|
8
|
-
import { STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR, STATUS_WARNING } from '../ProgressStep';
|
|
8
|
+
import { STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR, STATUS_WARNING, PROGRESS_STEP_DEFAULT_STATUS } from '../ProgressStep';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
/**
|
|
11
11
|
* `Progress` is used for showing progress of performing long operations.
|
|
@@ -28,11 +28,12 @@ class Progress extends Component {
|
|
|
28
28
|
let isFailed = false;
|
|
29
29
|
if (children) {
|
|
30
30
|
Children.forEach(children, child => {
|
|
31
|
-
if ( /*#__PURE__*/isValidElement(child)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
if ( /*#__PURE__*/isValidElement(child)) {
|
|
32
|
+
const status = child.props.status ?? PROGRESS_STEP_DEFAULT_STATUS;
|
|
33
|
+
isNotStarted = isNotStarted && status === STATUS_NOT_STARTED;
|
|
34
|
+
isFinished = isFinished && status === STATUS_DONE;
|
|
35
|
+
isFinishedWithWarnings = isFinishedWithWarnings && [STATUS_DONE, STATUS_WARNING].includes(status);
|
|
36
|
+
isFailed = isFailed || status === STATUS_ERROR;
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
39
|
}
|
|
@@ -14,6 +14,7 @@ export const STATUS_DONE = 'done';
|
|
|
14
14
|
export const STATUS_WARNING = 'warning';
|
|
15
15
|
export const STATUS_ERROR = 'error';
|
|
16
16
|
export const STATUS_CANCELED = 'canceled';
|
|
17
|
+
export const PROGRESS_STEP_DEFAULT_STATUS = STATUS_NOT_STARTED;
|
|
17
18
|
/**
|
|
18
19
|
* `ProgressStep` is a part of the [Progress](#!/Progress) component.
|
|
19
20
|
* @since 1.10.0
|
|
@@ -25,9 +26,9 @@ const ProgressStep = _ref => {
|
|
|
25
26
|
icon,
|
|
26
27
|
title,
|
|
27
28
|
statusText,
|
|
28
|
-
progress,
|
|
29
|
-
status,
|
|
30
|
-
baseClassName
|
|
29
|
+
progress = -1,
|
|
30
|
+
status = PROGRESS_STEP_DEFAULT_STATUS,
|
|
31
|
+
baseClassName = `${CLS_PREFIX}progress-step`,
|
|
31
32
|
...props
|
|
32
33
|
} = _ref;
|
|
33
34
|
let intent = null;
|
|
@@ -103,14 +104,4 @@ const ProgressStep = _ref => {
|
|
|
103
104
|
})]
|
|
104
105
|
});
|
|
105
106
|
};
|
|
106
|
-
ProgressStep.defaultProps = {
|
|
107
|
-
icon: null,
|
|
108
|
-
title: null,
|
|
109
|
-
status: STATUS_NOT_STARTED,
|
|
110
|
-
statusText: null,
|
|
111
|
-
progress: -1,
|
|
112
|
-
children: null,
|
|
113
|
-
className: null,
|
|
114
|
-
baseClassName: `${CLS_PREFIX}progress-step`
|
|
115
|
-
};
|
|
116
107
|
export default ProgressStep;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
export { default, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR, STATUS_WARNING, STATUS_CANCELED, STATUS_NOT_STARTED } from './ProgressStep';
|
|
3
|
+
export { default, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR, STATUS_WARNING, STATUS_CANCELED, STATUS_NOT_STARTED, PROGRESS_STEP_DEFAULT_STATUS } from './ProgressStep';
|
|
@@ -33,21 +33,6 @@ const getErrorsForChildren = (form, children) => {
|
|
|
33
33
|
return errors;
|
|
34
34
|
};
|
|
35
35
|
export const SECTION_BASE_CLASS_NAME = `${CLS_PREFIX}section`;
|
|
36
|
-
const DEFAULT_PROPS = {
|
|
37
|
-
title: undefined,
|
|
38
|
-
intent: undefined,
|
|
39
|
-
collapsible: false,
|
|
40
|
-
collapsed: false,
|
|
41
|
-
onTitleChange: undefined,
|
|
42
|
-
onClose: undefined,
|
|
43
|
-
onToggle: undefined,
|
|
44
|
-
buttons: undefined,
|
|
45
|
-
vertical: undefined,
|
|
46
|
-
children: undefined,
|
|
47
|
-
className: undefined,
|
|
48
|
-
baseClassName: SECTION_BASE_CLASS_NAME,
|
|
49
|
-
form: undefined
|
|
50
|
-
};
|
|
51
36
|
class Section extends Component {
|
|
52
37
|
constructor() {
|
|
53
38
|
super(...arguments);
|
|
@@ -235,18 +220,25 @@ class Section extends Component {
|
|
|
235
220
|
* and comprehension of the presented information.
|
|
236
221
|
* @since 0.0.54
|
|
237
222
|
*/
|
|
238
|
-
|
|
239
|
-
|
|
223
|
+
const SectionWrapper = _ref8 => {
|
|
224
|
+
let {
|
|
225
|
+
collapsible = false,
|
|
226
|
+
collapsed = false,
|
|
227
|
+
baseClassName = SECTION_BASE_CLASS_NAME,
|
|
228
|
+
...props
|
|
229
|
+
} = _ref8;
|
|
240
230
|
const form = useContext(FormContext);
|
|
241
231
|
const verticalContext = useContext(VerticalContext);
|
|
242
232
|
const vertical = props.vertical === undefined ? verticalContext : props.vertical;
|
|
243
233
|
return /*#__PURE__*/_jsx(Section, {
|
|
244
234
|
...props,
|
|
245
235
|
form: form,
|
|
246
|
-
vertical: vertical
|
|
236
|
+
vertical: vertical,
|
|
237
|
+
collapsible: collapsible,
|
|
238
|
+
collapsed: collapsed,
|
|
239
|
+
baseClassName: baseClassName
|
|
247
240
|
});
|
|
248
241
|
};
|
|
249
242
|
SectionWrapper.displayName = 'Section';
|
|
250
|
-
SectionWrapper.defaultProps = DEFAULT_PROPS;
|
|
251
243
|
SectionWrapper.WrappedComponent = Section;
|
|
252
244
|
export default SectionWrapper;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 1999-
|
|
1
|
+
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -83,8 +83,7 @@ const SplitButton = _ref => {
|
|
|
83
83
|
menuPlacement: "bottom-end",
|
|
84
84
|
children: /*#__PURE__*/_jsx(Button, {
|
|
85
85
|
size: size,
|
|
86
|
-
caret: true
|
|
87
|
-
tabIndex: -1
|
|
86
|
+
caret: true
|
|
88
87
|
})
|
|
89
88
|
})]
|
|
90
89
|
});
|