@plesk/ui-library 3.25.7 → 3.26.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/Drawer/Drawer.js +11 -6
- package/cjs/components/Drawer/Header.js +11 -4
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +15 -1
- package/cjs/components/Item/Item.js +12 -3
- package/cjs/components/ItemLink/ItemLink.js +1 -0
- package/cjs/components/ItemList/ItemList.js +39 -8
- package/cjs/components/ItemList/ItemList.stories.js +35 -3
- package/cjs/components/ProgressStep/ProgressStep.js +16 -14
- package/cjs/components/Section/Section.js +14 -1
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +15 -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 +106 -763
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +3 -3
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Drawer/Drawer.js +11 -5
- package/esm/components/Drawer/Header.js +11 -4
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +15 -1
- package/esm/components/Item/Item.js +12 -3
- package/esm/components/ItemLink/ItemLink.js +1 -0
- package/esm/components/ItemList/ItemList.js +39 -8
- package/esm/components/ItemList/ItemList.stories.js +32 -2
- package/esm/components/ProgressStep/ProgressStep.js +17 -15
- package/esm/components/Section/Section.js +14 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/styleguide/build/bundle.0e0e8f42.js +2 -0
- package/styleguide/build/{bundle.91e6a6ac.js.LICENSE.txt → bundle.0e0e8f42.js.LICENSE.txt} +0 -0
- package/styleguide/images/symbols.svg +15 -1
- package/styleguide/index.html +2 -2
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/ItemLink/ItemLink.d.ts +4 -0
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -0
- package/types/src/components/ItemList/ItemList.d.ts +8 -0
- package/types/src/components/ItemList/ItemList.stories.d.ts +104 -0
- package/styleguide/build/bundle.91e6a6ac.js +0 -2
|
@@ -29,8 +29,6 @@ var _Form = _interopRequireDefault(require("../Form"));
|
|
|
29
29
|
|
|
30
30
|
var _Heading = _interopRequireDefault(require("../Heading"));
|
|
31
31
|
|
|
32
|
-
var _Text = _interopRequireDefault(require("../Text"));
|
|
33
|
-
|
|
34
32
|
var _Translate = require("../Translate");
|
|
35
33
|
|
|
36
34
|
var _ScrollableElementFormContext = _interopRequireDefault(require("../Form/ScrollableElementFormContext"));
|
|
@@ -74,6 +72,12 @@ const propTypes = {
|
|
|
74
72
|
*/
|
|
75
73
|
backButton: _propTypes.default.bool,
|
|
76
74
|
|
|
75
|
+
/**
|
|
76
|
+
* A slot for `Tabs` component.
|
|
77
|
+
* @since 3.26.0
|
|
78
|
+
*/
|
|
79
|
+
tabs: _propTypes.default.node,
|
|
80
|
+
|
|
77
81
|
/**
|
|
78
82
|
* Overlay placement.
|
|
79
83
|
* @since 0.0.65
|
|
@@ -189,6 +193,7 @@ const defaultProps = {
|
|
|
189
193
|
subtitle: '',
|
|
190
194
|
backButton: undefined,
|
|
191
195
|
hideButton: undefined,
|
|
196
|
+
tabs: undefined,
|
|
192
197
|
placement: 'left',
|
|
193
198
|
size: 'md',
|
|
194
199
|
onClose: null,
|
|
@@ -215,6 +220,7 @@ const Drawer = ({
|
|
|
215
220
|
subtitle,
|
|
216
221
|
backButton,
|
|
217
222
|
hideButton,
|
|
223
|
+
tabs,
|
|
218
224
|
onClose,
|
|
219
225
|
form,
|
|
220
226
|
progress,
|
|
@@ -307,7 +313,8 @@ const Drawer = ({
|
|
|
307
313
|
}) => /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_Header.default, {
|
|
308
314
|
backButton: backButton,
|
|
309
315
|
hideButton: typeof hideButton === 'boolean' ? hideButton : Boolean(progress && !isClosable),
|
|
310
|
-
onClose: onCloseWithConfirmation
|
|
316
|
+
onClose: onCloseWithConfirmation,
|
|
317
|
+
tabs: tabs
|
|
311
318
|
}, (0, _Translate.isLikeText)(title) ? /*#__PURE__*/_react.default.createElement(_Heading.default, {
|
|
312
319
|
level: "2",
|
|
313
320
|
className: `${baseClassName}__title`
|
|
@@ -315,9 +322,7 @@ const Drawer = ({
|
|
|
315
322
|
className: `${baseClassName}__title`
|
|
316
323
|
}, title), subtitle && /*#__PURE__*/_react.default.createElement("div", {
|
|
317
324
|
className: `${baseClassName}__subtitle`
|
|
318
|
-
},
|
|
319
|
-
intent: "muted"
|
|
320
|
-
}, subtitle) : subtitle)), /*#__PURE__*/_react.default.createElement(_ScrollDirection.default, null, ({
|
|
325
|
+
}, subtitle)), /*#__PURE__*/_react.default.createElement(_ScrollDirection.default, null, ({
|
|
321
326
|
handleScroll
|
|
322
327
|
}) => /*#__PURE__*/_react.default.createElement("div", {
|
|
323
328
|
className: `${baseClassName}__body`,
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
-
// Copyright 1999-
|
|
32
|
+
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
33
33
|
class Header extends _react.Component {
|
|
34
34
|
componentDidMount() {
|
|
35
35
|
this.isRtl = (0, _utils.isRtl)();
|
|
@@ -97,6 +97,7 @@ class Header extends _react.Component {
|
|
|
97
97
|
children,
|
|
98
98
|
backButton,
|
|
99
99
|
hideButton,
|
|
100
|
+
tabs,
|
|
100
101
|
...props
|
|
101
102
|
} = this.props;
|
|
102
103
|
let prefix;
|
|
@@ -130,7 +131,11 @@ class Header extends _react.Component {
|
|
|
130
131
|
className: `${baseClassName}__inner`
|
|
131
132
|
}, prefix, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
133
|
className: `${baseClassName}__content`
|
|
133
|
-
}, children
|
|
134
|
+
}, children, tabs && /*#__PURE__*/_react.default.createElement("div", {
|
|
135
|
+
className: `${baseClassName}__tabs`
|
|
136
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
137
|
+
className: `${baseClassName}__tabs-inner`
|
|
138
|
+
}, tabs))), suffix));
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
}
|
|
@@ -141,11 +146,13 @@ exports.default = Header;
|
|
|
141
146
|
onClose: _propTypes.default.func,
|
|
142
147
|
children: _propTypes.default.node.isRequired,
|
|
143
148
|
backButton: _propTypes.default.bool,
|
|
144
|
-
hideButton: _propTypes.default.bool
|
|
149
|
+
hideButton: _propTypes.default.bool,
|
|
150
|
+
tabs: _propTypes.default.node
|
|
145
151
|
});
|
|
146
152
|
(0, _defineProperty2.default)(Header, "defaultProps", {
|
|
147
153
|
onClose: null,
|
|
148
154
|
baseClassName: `${_constants.CLS_PREFIX}drawer-header`,
|
|
149
155
|
backButton: false,
|
|
150
|
-
hideButton: false
|
|
156
|
+
hideButton: false,
|
|
157
|
+
tabs: undefined
|
|
151
158
|
});
|
|
@@ -7,7 +7,7 @@ exports.NAMES_12 = exports.NAMES = void 0;
|
|
|
7
7
|
|
|
8
8
|
/* eslint-disable max-len */
|
|
9
9
|
// This file is generated by create-svg-sprite. Do not edit.
|
|
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-plus', 'deploy', 'dollar', 'dollar-filled', '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-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'kebab', 'key', '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-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', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'servers', 'share', 'shield', 'shield-chain', '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', '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', 'wordpress'];
|
|
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-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-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'kebab', 'key', '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-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', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'servers', 'share', 'shield', 'shield-chain', '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', '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', 'wordpress'];
|
|
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-plus', 'deploy', 'dollar', 'dollar-filled', '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-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'kebab', 'key', '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-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', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'servers', 'share', 'shield', 'shield-chain', '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', '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', 'wordpress'];
|
|
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-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-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'kebab', 'key', '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-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', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'servers', 'share', 'shield', 'shield-chain', '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', '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', 'wordpress'];
|
|
13
13
|
exports.NAMES = NAMES;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
1
|
+
<svg width="16" height="11040" 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" />
|
|
@@ -592,6 +592,14 @@
|
|
|
592
592
|
<path d="M11.145 2.855a.496.496 0 0 1 0-.702L13.097.202A.5.5 0 0 1 13.498 0h.004a.495.495 0 0 1 .401.202l1.952 1.951a.496.496 0 0 1-.702.702L14 1.702V10h-1V1.702l-1.153 1.153a.496.496 0 0 1-.702 0zM9.5 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" />
|
|
593
593
|
<path d="M2 10c0-1.477.534-2.83 1.419-3.875a.47.47 0 0 1 .692-.014c.195.195.193.51.018.724A5 5 0 1 0 13 10h1.001a6 6 0 0 1-12 0z" />
|
|
594
594
|
</symbol>
|
|
595
|
+
<symbol viewBox="0 0 12 12" id="docker-filled:12">
|
|
596
|
+
<path d="M11.85 5.287c-.3-.224-.6-.3-.9-.3-.225 0-.375 0-.6.076-.075-.526-.375-.9-.75-1.2l-.15-.15-.15.15c-.225.3-.3.824-.225 1.2 0 .3.075.6.3.824-.375.226-.825.3-1.275.3H.75a.75.75 0 0 0-.75.75c.075 1.426.6 4.5 3.9 4.5 4.35 0 5.1-2.475 6.15-5.1h.15c.675 0 1.275-.225 1.65-.825l.15-.15-.15-.075zm-10.875.15h.675c.15 0 .225-.074.225-.225v-.675c0-.15-.075-.225-.225-.225H.975c-.075 0-.225.075-.225.225v.675c0 .15.15.226.225.226zm4.5-1.875h.675c.15 0 .225-.074.225-.225v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.225.225.225z" />
|
|
597
|
+
<path d="M5.475 5.438h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.226.225.226zm1.5 0h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.075.226.225.226zm-1.5-3.75h.675c.15 0 .225-.076.225-.226V.787c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.225.225.225zm-3 3.75h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.075 0-.225.075-.225.225v.675c0 .15.15.226.225.226zm1.5-1.876h.675c.15 0 .225-.074.225-.225v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.225.225.225zm-1.5 0h.675c.15 0 .225-.075.225-.225v-.675c0-.15-.075-.225-.225-.225h-.675c-.075 0-.225.075-.225.225v.675c0 .15.15.225.225.225zm1.5 1.876h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.226.225.226z" />
|
|
598
|
+
</symbol>
|
|
599
|
+
<symbol viewBox="0 0 16 16" id="docker-filled:16">
|
|
600
|
+
<path d="M15.8 6.8c-.4-.3-.8-.4-1.2-.4-.3 0-.5 0-.8.1-.1-.7-.5-1.2-1-1.6l-.2-.2-.2.2c-.3.4-.4 1.1-.3 1.6 0 .4.1.8.4 1.1-.5.3-1.1.4-1.7.4H1a1 1 0 0 0-1 1c.1 1.9.8 6 5.2 6 5.8 0 6.8-3.3 8.2-6.8h.2c.9 0 1.7-.3 2.2-1.1l.2-.2-.2-.1zM1.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.1 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM7.3 4.5h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3z" />
|
|
601
|
+
<path d="M7.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM9.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.1.3.3.3zM7.3 2h.9c.2 0 .3-.1.3-.3V.8c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM3.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.1 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM5.3 4.5h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM3.3 4.5h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.1 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM5.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3z" />
|
|
602
|
+
</symbol>
|
|
595
603
|
<symbol viewBox="0 0 12 12" id="dollar-filled:12">
|
|
596
604
|
<path fill-rule="evenodd" d="M12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0zM6.5 3a.5.5 0 0 0-.5.5v.53A1.5 1.5 0 0 0 6.3 7h.4a.5.5 0 0 1 0 1H5.3a.5.5 0 0 0 0 1H6v.5a.5.5 0 0 0 1 0v-.53A1.5 1.5 0 0 0 6.7 6h-.4a.5.5 0 0 1 0-1h1.4a.5.5 0 0 0 0-1H7v-.5a.5.5 0 0 0-.5-.5z" clip-rule="evenodd" />
|
|
597
605
|
</symbol>
|
|
@@ -606,6 +614,12 @@
|
|
|
606
614
|
<path fill-rule="evenodd" d="M8.5 15c3.5899 0 6.5-2.9101 6.5-6.5S12.0899 2 8.5 2 2 4.9101 2 8.5 4.9101 15 8.5 15zm0 1c4.1421 0 7.5-3.3579 7.5-7.5S12.6421 1 8.5 1 1 4.3579 1 8.5 4.3579 16 8.5 16z" clip-rule="evenodd" />
|
|
607
615
|
<path d="M8 4.5a.5.5 0 0 1 1 0V5h1.5a.5.5 0 0 1 0 1H8c-.5523 0-1 .4477-1 1s.4477 1 1 1h1c1.1046 0 2 .8954 2 2s-.8954 2-2 2v.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H9c.5523 0 1-.4477 1-1s-.4477-1-1-1H8c-1.1046 0-2-.8954-2-2s.8954-2 2-2v-.5z" />
|
|
608
616
|
</symbol>
|
|
617
|
+
<symbol viewBox="0 0 12 12" id="dot:12">
|
|
618
|
+
<path d="M7.5 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" />
|
|
619
|
+
</symbol>
|
|
620
|
+
<symbol viewBox="0 0 16 16" id="dot:16">
|
|
621
|
+
<path d="M6,8a2,2 0 1,0 4,0a2,2 0 1,0 -4,0" />
|
|
622
|
+
</symbol>
|
|
609
623
|
<symbol viewBox="0 0 12 12" id="emoticon-confused:12">
|
|
610
624
|
<path fill-rule="evenodd" d="M6 11A5 5 0 106 1a5 5 0 000 10zm0 1A6 6 0 106 0a6 6 0 000 12z" clip-rule="evenodd" />
|
|
611
625
|
<path d="M8.803 9a.244.244 0 00.2-.383C8.334 7.636 7.259 7 6.048 7c-1.21 0-2.285.636-2.956 1.617a.244.244 0 00.2.383h5.512zM4.75 4.75a1 1 0 11-2 0 1 1 0 012 0zM9.25 4.75a1 1 0 11-2 0 1 1 0 012 0z" />
|
|
@@ -31,7 +31,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
// Copyright 1999-
|
|
34
|
+
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
35
35
|
const VIEW_SIMPLE = 'simple';
|
|
36
36
|
const VIEW_CARD = 'card';
|
|
37
37
|
/**
|
|
@@ -106,6 +106,7 @@ class Item extends _react.Component {
|
|
|
106
106
|
value,
|
|
107
107
|
tooltip,
|
|
108
108
|
disabled,
|
|
109
|
+
hoverable,
|
|
109
110
|
...props
|
|
110
111
|
} = this.props;
|
|
111
112
|
|
|
@@ -126,7 +127,8 @@ class Item extends _react.Component {
|
|
|
126
127
|
const item = /*#__PURE__*/_react.default.createElement(Tag, (0, _extends2.default)({
|
|
127
128
|
className: (0, _classnames.default)(baseClassName, {
|
|
128
129
|
[`${baseClassName}--card`]: view === 'card',
|
|
129
|
-
[`${baseClassName}--disabled`]: disabled
|
|
130
|
+
[`${baseClassName}--disabled`]: disabled,
|
|
131
|
+
[`${baseClassName}--hoverable`]: hoverable
|
|
130
132
|
}, className)
|
|
131
133
|
}, props), /*#__PURE__*/_react.default.createElement(_Media.default, {
|
|
132
134
|
image: this.renderIcon(icon),
|
|
@@ -220,11 +222,18 @@ Item.propTypes = {
|
|
|
220
222
|
* Whether disabled or not.
|
|
221
223
|
* @since 3.15.0
|
|
222
224
|
*/
|
|
223
|
-
disabled: _propTypes.default.bool
|
|
225
|
+
disabled: _propTypes.default.bool,
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Add hover shadow and pointer cursor.
|
|
229
|
+
* @since 3.26.0
|
|
230
|
+
*/
|
|
231
|
+
hoverable: _propTypes.default.bool
|
|
224
232
|
};
|
|
225
233
|
Item.defaultProps = {
|
|
226
234
|
component: 'div',
|
|
227
235
|
view: VIEW_SIMPLE,
|
|
236
|
+
hoverable: undefined,
|
|
228
237
|
title: undefined,
|
|
229
238
|
description: undefined,
|
|
230
239
|
icon: undefined,
|
|
@@ -61,7 +61,8 @@ class ItemList extends _react.Component {
|
|
|
61
61
|
baseClassName,
|
|
62
62
|
selectable,
|
|
63
63
|
onSelect,
|
|
64
|
-
reorderable
|
|
64
|
+
reorderable,
|
|
65
|
+
hoverable
|
|
65
66
|
} = this.props;
|
|
66
67
|
const classNameList = [`${baseClassName}__item`];
|
|
67
68
|
const props = {};
|
|
@@ -86,6 +87,11 @@ class ItemList extends _react.Component {
|
|
|
86
87
|
});
|
|
87
88
|
(0, _utils.safeInvoke)(onSelect, nextValue);
|
|
88
89
|
};
|
|
90
|
+
} // Extends hoverable behavior from the ItemList in case if its child doesn't have its own
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
if (item.props.hoverable === undefined) {
|
|
94
|
+
props.hoverable = hoverable && this.canManageHoverableState();
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
if (reorderable) {
|
|
@@ -177,20 +183,45 @@ class ItemList extends _react.Component {
|
|
|
177
183
|
}));
|
|
178
184
|
}
|
|
179
185
|
|
|
180
|
-
|
|
181
|
-
const {
|
|
182
|
-
children
|
|
183
|
-
} = this.props;
|
|
186
|
+
someChild(predicate) {
|
|
184
187
|
let result = false;
|
|
185
188
|
|
|
186
|
-
_react.Children.forEach(children, child => {
|
|
187
|
-
if (child && child
|
|
189
|
+
_react.Children.forEach(this.props.children, child => {
|
|
190
|
+
if (child && predicate(child)) {
|
|
188
191
|
result = true;
|
|
189
192
|
}
|
|
190
193
|
});
|
|
191
194
|
|
|
192
195
|
return result;
|
|
193
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* There are some states where we can't manage hoverable state
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
canManageHoverableState() {
|
|
203
|
+
const {
|
|
204
|
+
reorderable,
|
|
205
|
+
selectable
|
|
206
|
+
} = this.props;
|
|
207
|
+
return !reorderable && !selectable;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
isHoverable() {
|
|
211
|
+
if (!this.canManageHoverableState()) {
|
|
212
|
+
return false;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return this.props.hoverable || this.hasHoverableCard();
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
hasViewCard() {
|
|
219
|
+
return this.someChild(child => child.props && child.props.view === 'card');
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
hasHoverableCard() {
|
|
223
|
+
return this.someChild(child => child.props && !!child.props.hoverable);
|
|
224
|
+
}
|
|
194
225
|
|
|
195
226
|
renderReorderable({
|
|
196
227
|
baseClassName,
|
|
@@ -249,7 +280,7 @@ class ItemList extends _react.Component {
|
|
|
249
280
|
} = this.props;
|
|
250
281
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
251
282
|
className: (0, _classnames.default)(this.props.baseClassName, {
|
|
252
|
-
[`${this.props.baseClassName}--hoverable`]:
|
|
283
|
+
[`${this.props.baseClassName}--hoverable`]: this.isHoverable(),
|
|
253
284
|
[`${this.props.baseClassName}--stretchable`]: stretchable,
|
|
254
285
|
[`${this.props.baseClassName}--selectable`]: selectable,
|
|
255
286
|
[`${this.props.baseClassName}--cards`]: this.hasViewCard()
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.Selectables = exports.Reorderables = exports.Cards = exports.Basic = void 0;
|
|
8
|
+
exports.Selectables = exports.Reorderables = exports.HoverableItems = exports.HoverableItemList = exports.Cards = exports.Basic = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -58,7 +58,8 @@ Basic.args = {
|
|
|
58
58
|
name: "star-circle-filled",
|
|
59
59
|
intent: "warning"
|
|
60
60
|
}),
|
|
61
|
-
onClick: () => {}
|
|
61
|
+
onClick: () => {},
|
|
62
|
+
hoverable: true
|
|
62
63
|
}, 'Content 3'), /*#__PURE__*/_react.default.createElement(_Item.default, {
|
|
63
64
|
key: "4",
|
|
64
65
|
value: "4",
|
|
@@ -70,7 +71,8 @@ Basic.args = {
|
|
|
70
71
|
intent: "danger"
|
|
71
72
|
}),
|
|
72
73
|
onClick: () => {},
|
|
73
|
-
disabled: true
|
|
74
|
+
disabled: true,
|
|
75
|
+
hoverable: true
|
|
74
76
|
}, 'Content 4')]
|
|
75
77
|
};
|
|
76
78
|
const Cards = Basic.bind(null);
|
|
@@ -93,4 +95,34 @@ exports.Selectables = Selectables;
|
|
|
93
95
|
Selectables.args = { ...Basic.args,
|
|
94
96
|
selectable: true,
|
|
95
97
|
defaultValue: '2'
|
|
98
|
+
};
|
|
99
|
+
const HoverableItemList = Basic.bind(null);
|
|
100
|
+
exports.HoverableItemList = HoverableItemList;
|
|
101
|
+
HoverableItemList.args = { ...Basic.args,
|
|
102
|
+
hoverable: true,
|
|
103
|
+
defaultValue: '2',
|
|
104
|
+
children: Basic.args.children.map((child, index) => {
|
|
105
|
+
if (!child) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return /*#__PURE__*/(0, _react.cloneElement)(child, {
|
|
110
|
+
hoverable: index === 0 ? false : undefined
|
|
111
|
+
});
|
|
112
|
+
})
|
|
113
|
+
};
|
|
114
|
+
const HoverableItems = Basic.bind(null);
|
|
115
|
+
exports.HoverableItems = HoverableItems;
|
|
116
|
+
HoverableItems.args = { ...Basic.args,
|
|
117
|
+
hoverable: false,
|
|
118
|
+
defaultValue: '2',
|
|
119
|
+
children: Basic.args.children.map((child, index) => {
|
|
120
|
+
if (!child) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return /*#__PURE__*/(0, _react.cloneElement)(child, {
|
|
125
|
+
hoverable: index % 2 === 0
|
|
126
|
+
});
|
|
127
|
+
})
|
|
96
128
|
};
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
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; }
|
|
31
31
|
|
|
32
|
-
// Copyright 1999-
|
|
32
|
+
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
33
33
|
const STATUS_NOT_STARTED = 'not_started';
|
|
34
34
|
exports.STATUS_NOT_STARTED = STATUS_NOT_STARTED;
|
|
35
35
|
const STATUS_RUNNING = 'running';
|
|
@@ -64,39 +64,39 @@ const ProgressStep = ({
|
|
|
64
64
|
switch (status) {
|
|
65
65
|
case STATUS_NOT_STARTED:
|
|
66
66
|
intent = 'inactive';
|
|
67
|
-
icon =
|
|
67
|
+
icon = 'dot';
|
|
68
68
|
break;
|
|
69
69
|
|
|
70
70
|
case STATUS_RUNNING:
|
|
71
|
-
intent =
|
|
72
|
-
icon =
|
|
71
|
+
intent = false;
|
|
72
|
+
icon = 'dot';
|
|
73
73
|
break;
|
|
74
74
|
|
|
75
75
|
case STATUS_DONE:
|
|
76
76
|
intent = 'success';
|
|
77
|
-
icon = 'check-mark';
|
|
77
|
+
icon = 'check-mark-circle-filled';
|
|
78
78
|
break;
|
|
79
79
|
|
|
80
80
|
case STATUS_WARNING:
|
|
81
81
|
intent = 'warning';
|
|
82
|
-
icon = 'triangle-exclamation-mark';
|
|
82
|
+
icon = 'triangle-exclamation-mark-filled';
|
|
83
83
|
break;
|
|
84
84
|
|
|
85
85
|
case STATUS_ERROR:
|
|
86
86
|
intent = 'danger';
|
|
87
|
-
icon = 'exclamation-mark-circle';
|
|
87
|
+
icon = 'exclamation-mark-circle-filled';
|
|
88
88
|
break;
|
|
89
89
|
|
|
90
90
|
case STATUS_CANCELED:
|
|
91
91
|
progress = 0;
|
|
92
92
|
intent = 'inactive';
|
|
93
|
-
icon = 'cross-mark';
|
|
93
|
+
icon = 'cross-mark-circle-filled';
|
|
94
94
|
break;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
icon = _Icon.default.create(icon, {
|
|
98
98
|
className: `${baseClassName}__icon`,
|
|
99
|
-
size: _Icon.
|
|
99
|
+
size: _Icon.ICON_SIZE_16,
|
|
100
100
|
intent
|
|
101
101
|
});
|
|
102
102
|
|
|
@@ -114,19 +114,21 @@ const ProgressStep = ({
|
|
|
114
114
|
className: `${baseClassName}__media`
|
|
115
115
|
}, icon), /*#__PURE__*/_react.default.createElement("div", {
|
|
116
116
|
className: `${baseClassName}__body`
|
|
117
|
-
}, (title || statusText) && /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
+
}, (title || statusText || _react.Children.toArray(children).length > 0) && /*#__PURE__*/_react.default.createElement("div", {
|
|
118
118
|
className: `${baseClassName}__labels`
|
|
119
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
120
|
+
className: `${baseClassName}__labels-body`
|
|
119
121
|
}, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
120
122
|
className: `${baseClassName}__title`
|
|
121
|
-
}, title),
|
|
123
|
+
}, title), _react.Children.toArray(children).length ? /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
+
className: `${baseClassName}__content`
|
|
125
|
+
}, children) : null), statusText && /*#__PURE__*/_react.default.createElement("div", {
|
|
122
126
|
className: `${baseClassName}__status`
|
|
123
127
|
}, statusText)), STATUS_RUNNING === status && /*#__PURE__*/_react.default.createElement(_ProgressBar.default, {
|
|
124
128
|
className: `${baseClassName}__progress`,
|
|
125
129
|
intent: "info",
|
|
126
130
|
progress: progress
|
|
127
|
-
})
|
|
128
|
-
className: `${baseClassName}__content`
|
|
129
|
-
}, children) : null));
|
|
131
|
+
})));
|
|
130
132
|
};
|
|
131
133
|
|
|
132
134
|
ProgressStep.propTypes = {
|
|
@@ -88,7 +88,11 @@ class Section extends _react.Component {
|
|
|
88
88
|
collapsed
|
|
89
89
|
}) => ({
|
|
90
90
|
collapsed: !collapsed
|
|
91
|
-
}))
|
|
91
|
+
}), () => {
|
|
92
|
+
if (this.props.onToggle) {
|
|
93
|
+
this.props.onToggle(this.state.collapsed);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
92
96
|
});
|
|
93
97
|
}
|
|
94
98
|
|
|
@@ -199,9 +203,11 @@ class Section extends _react.Component {
|
|
|
199
203
|
collapsed,
|
|
200
204
|
onTitleChange,
|
|
201
205
|
onClose,
|
|
206
|
+
onToggle,
|
|
202
207
|
buttons,
|
|
203
208
|
vertical: verticalProp,
|
|
204
209
|
children,
|
|
210
|
+
form,
|
|
205
211
|
...props
|
|
206
212
|
} = this.props;
|
|
207
213
|
const vertical = verticalProp === undefined ? this.state.vertical : verticalProp;
|
|
@@ -278,6 +284,12 @@ const propTypes = {
|
|
|
278
284
|
*/
|
|
279
285
|
onClose: _propTypes.default.func,
|
|
280
286
|
|
|
287
|
+
/**
|
|
288
|
+
* A callback executed when the section collapsing.
|
|
289
|
+
* @since 3.26.0
|
|
290
|
+
*/
|
|
291
|
+
onToggle: _propTypes.default.func,
|
|
292
|
+
|
|
281
293
|
/**
|
|
282
294
|
* Array of custom section action button at the right.
|
|
283
295
|
* @since 0.0.54
|
|
@@ -319,6 +331,7 @@ const defaultProps = {
|
|
|
319
331
|
collapsed: false,
|
|
320
332
|
onTitleChange: undefined,
|
|
321
333
|
onClose: undefined,
|
|
334
|
+
onToggle: undefined,
|
|
322
335
|
buttons: undefined,
|
|
323
336
|
vertical: undefined,
|
|
324
337
|
children: undefined,
|
package/cjs/index.js
CHANGED
package/dist/images/symbols.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
1
|
+
<svg width="16" height="11040" 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" />
|
|
@@ -592,6 +592,14 @@
|
|
|
592
592
|
<path d="M11.145 2.855a.496.496 0 0 1 0-.702L13.097.202A.5.5 0 0 1 13.498 0h.004a.495.495 0 0 1 .401.202l1.952 1.951a.496.496 0 0 1-.702.702L14 1.702V10h-1V1.702l-1.153 1.153a.496.496 0 0 1-.702 0zM9.5 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" />
|
|
593
593
|
<path d="M2 10c0-1.477.534-2.83 1.419-3.875a.47.47 0 0 1 .692-.014c.195.195.193.51.018.724A5 5 0 1 0 13 10h1.001a6 6 0 0 1-12 0z" />
|
|
594
594
|
</symbol>
|
|
595
|
+
<symbol viewBox="0 0 12 12" id="docker-filled:12">
|
|
596
|
+
<path d="M11.85 5.287c-.3-.224-.6-.3-.9-.3-.225 0-.375 0-.6.076-.075-.526-.375-.9-.75-1.2l-.15-.15-.15.15c-.225.3-.3.824-.225 1.2 0 .3.075.6.3.824-.375.226-.825.3-1.275.3H.75a.75.75 0 0 0-.75.75c.075 1.426.6 4.5 3.9 4.5 4.35 0 5.1-2.475 6.15-5.1h.15c.675 0 1.275-.225 1.65-.825l.15-.15-.15-.075zm-10.875.15h.675c.15 0 .225-.074.225-.225v-.675c0-.15-.075-.225-.225-.225H.975c-.075 0-.225.075-.225.225v.675c0 .15.15.226.225.226zm4.5-1.875h.675c.15 0 .225-.074.225-.225v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.225.225.225z" />
|
|
597
|
+
<path d="M5.475 5.438h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.226.225.226zm1.5 0h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.075.226.225.226zm-1.5-3.75h.675c.15 0 .225-.076.225-.226V.787c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.225.225.225zm-3 3.75h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.075 0-.225.075-.225.225v.675c0 .15.15.226.225.226zm1.5-1.876h.675c.15 0 .225-.074.225-.225v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.225.225.225zm-1.5 0h.675c.15 0 .225-.075.225-.225v-.675c0-.15-.075-.225-.225-.225h-.675c-.075 0-.225.075-.225.225v.675c0 .15.15.225.225.225zm1.5 1.876h.675c.15 0 .225-.075.225-.226v-.675c0-.15-.075-.225-.225-.225h-.675c-.15 0-.225.075-.225.225v.675c0 .15.15.226.225.226z" />
|
|
598
|
+
</symbol>
|
|
599
|
+
<symbol viewBox="0 0 16 16" id="docker-filled:16">
|
|
600
|
+
<path d="M15.8 6.8c-.4-.3-.8-.4-1.2-.4-.3 0-.5 0-.8.1-.1-.7-.5-1.2-1-1.6l-.2-.2-.2.2c-.3.4-.4 1.1-.3 1.6 0 .4.1.8.4 1.1-.5.3-1.1.4-1.7.4H1a1 1 0 0 0-1 1c.1 1.9.8 6 5.2 6 5.8 0 6.8-3.3 8.2-6.8h.2c.9 0 1.7-.3 2.2-1.1l.2-.2-.2-.1zM1.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.1 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM7.3 4.5h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3z" />
|
|
601
|
+
<path d="M7.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM9.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.1.3.3.3zM7.3 2h.9c.2 0 .3-.1.3-.3V.8c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM3.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.1 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM5.3 4.5h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM3.3 4.5h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.1 0-.3.1-.3.3v.9c0 .2.2.3.3.3zM5.3 7h.9c.2 0 .3-.1.3-.3v-.9c0-.2-.1-.3-.3-.3h-.9c-.2 0-.3.1-.3.3v.9c0 .2.2.3.3.3z" />
|
|
602
|
+
</symbol>
|
|
595
603
|
<symbol viewBox="0 0 12 12" id="dollar-filled:12">
|
|
596
604
|
<path fill-rule="evenodd" d="M12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0zM6.5 3a.5.5 0 0 0-.5.5v.53A1.5 1.5 0 0 0 6.3 7h.4a.5.5 0 0 1 0 1H5.3a.5.5 0 0 0 0 1H6v.5a.5.5 0 0 0 1 0v-.53A1.5 1.5 0 0 0 6.7 6h-.4a.5.5 0 0 1 0-1h1.4a.5.5 0 0 0 0-1H7v-.5a.5.5 0 0 0-.5-.5z" clip-rule="evenodd" />
|
|
597
605
|
</symbol>
|
|
@@ -606,6 +614,12 @@
|
|
|
606
614
|
<path fill-rule="evenodd" d="M8.5 15c3.5899 0 6.5-2.9101 6.5-6.5S12.0899 2 8.5 2 2 4.9101 2 8.5 4.9101 15 8.5 15zm0 1c4.1421 0 7.5-3.3579 7.5-7.5S12.6421 1 8.5 1 1 4.3579 1 8.5 4.3579 16 8.5 16z" clip-rule="evenodd" />
|
|
607
615
|
<path d="M8 4.5a.5.5 0 0 1 1 0V5h1.5a.5.5 0 0 1 0 1H8c-.5523 0-1 .4477-1 1s.4477 1 1 1h1c1.1046 0 2 .8954 2 2s-.8954 2-2 2v.5a.5.5 0 0 1-1 0V12H6.5a.5.5 0 0 1 0-1H9c.5523 0 1-.4477 1-1s-.4477-1-1-1H8c-1.1046 0-2-.8954-2-2s.8954-2 2-2v-.5z" />
|
|
608
616
|
</symbol>
|
|
617
|
+
<symbol viewBox="0 0 12 12" id="dot:12">
|
|
618
|
+
<path d="M7.5 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" />
|
|
619
|
+
</symbol>
|
|
620
|
+
<symbol viewBox="0 0 16 16" id="dot:16">
|
|
621
|
+
<path d="M6,8a2,2 0 1,0 4,0a2,2 0 1,0 -4,0" />
|
|
622
|
+
</symbol>
|
|
609
623
|
<symbol viewBox="0 0 12 12" id="emoticon-confused:12">
|
|
610
624
|
<path fill-rule="evenodd" d="M6 11A5 5 0 106 1a5 5 0 000 10zm0 1A6 6 0 106 0a6 6 0 000 12z" clip-rule="evenodd" />
|
|
611
625
|
<path d="M8.803 9a.244.244 0 00.2-.383C8.334 7.636 7.259 7 6.048 7c-1.21 0-2.285.636-2.956 1.617a.244.244 0 00.2.383h5.512zM4.75 4.75a1 1 0 11-2 0 1 1 0 012 0zM9.25 4.75a1 1 0 11-2 0 1 1 0 012 0z" />
|