@plesk/ui-library 3.29.2 → 3.31.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/Action/Action.js +13 -6
- package/cjs/components/FormField/FormField.js +1 -0
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +1 -0
- package/cjs/components/Hint/Hint.js +7 -4
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +31 -1
- package/cjs/components/Link/Link.js +3 -7
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +31 -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 +40 -32
- 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/Action/Action.js +13 -6
- package/esm/components/FormField/FormField.js +1 -0
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +1 -0
- package/esm/components/Hint/Hint.js +7 -4
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +31 -1
- package/esm/components/Link/Link.js +4 -8
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/index.js +1 -1
- package/package.json +17 -17
- package/styleguide/build/bundle.59e52792.js +2 -0
- package/styleguide/build/{bundle.50b6043f.js.LICENSE.txt → bundle.59e52792.js.LICENSE.txt} +0 -0
- package/styleguide/images/symbols.svg +31 -1
- package/styleguide/index.html +2 -2
- package/types/src/components/Hint/Hint.d.ts +6 -1
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/Link/Link.d.ts +1 -1
- package/styleguide/build/bundle.50b6043f.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
// Copyright 1999-
|
|
2
|
+
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
3
3
|
import React, { isValidElement, Children } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
@@ -15,6 +15,7 @@ const Action = ({
|
|
|
15
15
|
baseClassName = `${CLS_PREFIX}action`,
|
|
16
16
|
component: Tag = 'a',
|
|
17
17
|
icon,
|
|
18
|
+
onClick,
|
|
18
19
|
rightAddon,
|
|
19
20
|
bottomAddon,
|
|
20
21
|
children,
|
|
@@ -40,18 +41,24 @@ const Action = ({
|
|
|
40
41
|
} = icon.props);
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
const tagProps = { ...props,
|
|
45
|
+
onClick,
|
|
46
|
+
className: classNames(props.className, `${baseClassName}__content`) || undefined
|
|
47
|
+
};
|
|
48
|
+
|
|
43
49
|
if (progress) {
|
|
44
50
|
icon = /*#__PURE__*/React.createElement(Icon, {
|
|
45
51
|
size: size,
|
|
46
52
|
className: `${baseClassName}__icon`
|
|
47
53
|
}, /*#__PURE__*/React.createElement(Spinner, null));
|
|
48
|
-
}
|
|
49
54
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
tagProps.onClick = e => e.preventDefault();
|
|
56
|
+
|
|
57
|
+
tagProps.tabIndex = -1;
|
|
58
|
+
} // accessibility
|
|
59
|
+
|
|
53
60
|
|
|
54
|
-
if (
|
|
61
|
+
if (onClick) {
|
|
55
62
|
tagProps.tabIndex = tagProps.tabIndex || 0;
|
|
56
63
|
tagProps.onKeyDown = wrapFunction(tagProps.onKeyDown, e => {
|
|
57
64
|
if (e.key === 'Enter') {
|
|
@@ -59,6 +59,7 @@ class FormFieldRadioButtons extends Component {
|
|
|
59
59
|
}, label || value), description || indentFields ? /*#__PURE__*/React.createElement("div", {
|
|
60
60
|
className: `${baseClassName}__content`
|
|
61
61
|
}, description && /*#__PURE__*/React.createElement(Hint, {
|
|
62
|
+
component: "div",
|
|
62
63
|
className: `${FormField.defaultProps.baseClassName}__description`
|
|
63
64
|
}, description), indentFields.map(field => {
|
|
64
65
|
if (isDisabled() || disabled || getValue() !== value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
// Copyright 1999-
|
|
2
|
+
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
@@ -12,9 +12,12 @@ const Hint = ({
|
|
|
12
12
|
baseClassName = `${CLS_PREFIX}hint`,
|
|
13
13
|
className,
|
|
14
14
|
children,
|
|
15
|
+
component: Tag = 'span',
|
|
15
16
|
...props
|
|
16
|
-
}) =>
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
}) => {
|
|
18
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
19
|
+
className: classNames(baseClassName, className)
|
|
20
|
+
}, props), children);
|
|
21
|
+
};
|
|
19
22
|
|
|
20
23
|
export default Hint;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
// This file is generated by create-svg-sprite. Do not edit.
|
|
3
|
-
export const NAMES_12 = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-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', 'server', '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'];
|
|
4
|
-
export const NAMES = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-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', 'server', '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'];
|
|
3
|
+
export const NAMES_12 = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-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', 'forward-circle-filled', '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-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-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', 'zero-circle-filled'];
|
|
4
|
+
export const NAMES = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-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', 'forward-circle-filled', '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-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-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', 'zero-circle-filled'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
1
|
+
<svg width="16" height="11280" 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" />
|
|
@@ -799,6 +799,12 @@
|
|
|
799
799
|
<symbol viewBox="0 0 16 16" id="folders-tree:16">
|
|
800
800
|
<path fill-rule="evenodd" d="M2 1a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h2v3.543l-.25-.25A1 1 0 0 0 3.043 10H2a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H5V9h7v1.543l-.25-.25a1 1 0 0 0-.707-.293H10a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2V9a1 1 0 0 0-1-1H5V7h2a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H4.457l-.707-.707A1 1 0 0 0 3.043 1H2zm0 5V2h1.043l.707.707A1 1 0 0 0 4.457 3H7v3H2zm0 5v4h5v-3H4.457a1 1 0 0 1-.707-.293L3.043 11H2zm8 4v-4h1.043l.707.707a1 1 0 0 0 .707.293H15v3h-5z" clip-rule="evenodd" />
|
|
801
801
|
</symbol>
|
|
802
|
+
<symbol viewBox="0 0 12 12" id="forward-circle-filled:12">
|
|
803
|
+
<path fill-rule="evenodd" d="M0 5.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 0 0-11 0Zm2.65-2.85c.2-.2.5-.2.7 0L6.21 5.5 3.35 8.35a.5.5 0 1 1-.7-.7L4.79 5.5 2.65 3.35a.5.5 0 0 1 0-.7Zm3 0c.2-.2.5-.2.7 0L9.21 5.5 6.35 8.35a.5.5 0 1 1-.7-.7L7.79 5.5 5.65 3.35a.5.5 0 0 1 0-.7Z" clip-rule="evenodd" />
|
|
804
|
+
</symbol>
|
|
805
|
+
<symbol viewBox="0 0 16 16" id="forward-circle-filled:16">
|
|
806
|
+
<path fill-rule="evenodd" d="M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15ZM4.65 3.65c.2-.2.5-.2.7 0L9.21 7.5l-3.86 3.85a.5.5 0 0 1-.7-.7L7.79 7.5 4.65 4.35a.5.5 0 0 1 0-.7Zm3 0c.2-.2.5-.2.7 0l3.86 3.85-3.86 3.85a.5.5 0 0 1-.7-.7l3.14-3.15-3.14-3.15a.5.5 0 0 1 0-.7Z" clip-rule="evenodd" />
|
|
807
|
+
</symbol>
|
|
802
808
|
<symbol viewBox="0 0 12 12" id="four-squares:12">
|
|
803
809
|
<path fill-rule="evenodd" d="M5 2H2v3h3V2zM2 1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zM11 2H8v3h3V2zM8 1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H8zM5 8H2v3h3V8zM2 7a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H2zM11 8H8v3h3V8zM8 7a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8z" clip-rule="evenodd" />
|
|
804
810
|
</symbol>
|
|
@@ -997,6 +1003,16 @@
|
|
|
997
1003
|
<symbol viewBox="0 0 16 16" id="lock-open:16">
|
|
998
1004
|
<path fill-rule="evenodd" d="M10.9927 7.00023l.8786-.87865c1.1716-1.17158 1.1716-3.07108 0-4.24265-1.1715-1.17158-3.07103-1.17158-4.24261 0l-.08396.08396c-.19527.19526-.51185.19526-.70711 0s-.19526-.51184 0-.70711l.08396-.08396c1.5621-1.5621 4.09472-1.5621 5.65682 0s1.5621 4.09476 0 5.65686l-.1715.17155H13c.5523 0 1 .44771 1 1v6.99997c0 .5523-.4477 1-1 1H3c-.55228 0-1-.4477-1-1V8.00023c0-.55229.44772-1 1-1h7.9927zm-7.9927 1h10v6.99997H3V8.00023z" clip-rule="evenodd" />
|
|
999
1005
|
</symbol>
|
|
1006
|
+
<symbol viewBox="0 0 12 12" id="mail-circle-filled:12">
|
|
1007
|
+
<path d="M3 7V4.14l1.56 1.25a1.5 1.5 0 0 0 1.88 0L8 4.14V7a.5.5 0 0 1-.5.5h-4A.5.5 0 0 1 3 7Z" />
|
|
1008
|
+
<path d="M5.19 4.61 3.8 3.5h3.4L5.81 4.61a.5.5 0 0 1-.62 0Z" />
|
|
1009
|
+
<path fill-rule="evenodd" d="M0 5.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 0 0-11 0ZM2 4c0-.83.67-1.5 1.5-1.5h4C8.33 2.5 9 3.17 9 4v3c0 .83-.67 1.5-1.5 1.5h-4A1.5 1.5 0 0 1 2 7V4Z" clip-rule="evenodd" />
|
|
1010
|
+
</symbol>
|
|
1011
|
+
<symbol viewBox="0 0 16 16" id="mail-circle-filled:16">
|
|
1012
|
+
<path d="M3 5.5c0-.1.02-.18.07-.25.03.06.07.1.13.15l3.4 2.55c.53.4 1.27.4 1.8 0l3.4-2.55a.5.5 0 0 0 .13-.15.5.5 0 0 1 .07.25v4a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-4Z" />
|
|
1013
|
+
<path d="M7.2 7.15 4.33 5h6.34L7.8 7.15a.5.5 0 0 1-.6 0Z" />
|
|
1014
|
+
<path fill-rule="evenodd" d="M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15ZM2 5.5C2 4.67 2.67 4 3.5 4h8c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-8A1.5 1.5 0 0 1 2 9.5v-4Z" clip-rule="evenodd" />
|
|
1015
|
+
</symbol>
|
|
1000
1016
|
<symbol viewBox="0 0 12 12" id="mail-settings:12">
|
|
1001
1017
|
<path fill-rule="evenodd" d="M0 1.75A.75.75 0 01.75 1h10.5a.75.75 0 01.75.75V6a.5.5 0 01-1 0V3.152L6.496 5.725a1 1 0 01-.992 0L1 3.152V9h4.5a.5.5 0 010 1H.75A.75.75 0 010 9.25v-7.5zM11 2H1l5 2.857L11 2z" clip-rule="evenodd" />
|
|
1002
1018
|
<path fill-rule="evenodd" d="M10.534 11.79a.25.25 0 01-.342-.091l-.418-.724a1.51 1.51 0 01-.548 0l-.418.724a.25.25 0 01-.342.091l-.433-.25a.25.25 0 01-.091-.341l.418-.724A1.497 1.497 0 018.085 10H7.25A.25.25 0 017 9.75v-.5A.25.25 0 017.25 9h.835c.062-.175.156-.336.275-.475l-.418-.723a.25.25 0 01.091-.342l.433-.25a.25.25 0 01.342.092l.418.723a1.508 1.508 0 01.548 0l.418-.723a.25.25 0 01.341-.092l.434.25a.25.25 0 01.091.342l-.418.723c.119.139.213.3.275.475h.835a.25.25 0 01.25.25v.5a.25.25 0 01-.25.25h-.835a1.499 1.499 0 01-.275.475l.418.724a.25.25 0 01-.091.341l-.434.25zM9.5 10a.5.5 0 100-1 .5.5 0 000 1z" clip-rule="evenodd" />
|
|
@@ -1294,6 +1310,12 @@
|
|
|
1294
1310
|
<path d="M10 5.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zM5.5 5a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 1 0v-7a.5.5 0 0 0-.5-.5zM7.5 5.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7z" />
|
|
1295
1311
|
<path fill-rule="evenodd" d="M5 2V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h3.5a.5.5 0 0 1 0 1H14v10a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V3h-.5a.5.5 0 0 1 0-1H5zm1-1h4v1H6V1zM3 3v10a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V3H3z" clip-rule="evenodd" />
|
|
1296
1312
|
</symbol>
|
|
1313
|
+
<symbol viewBox="0 0 12 12" id="redirect-circle-filled:12">
|
|
1314
|
+
<path fill-rule="evenodd" d="M0 5.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 0 0-11 0Zm3 1c0-.28.22-.5.5-.5h3.8L5.65 7.65a.5.5 0 0 0 .7.7L8.8 5.9a.5.5 0 0 0 .2-.4.5.5 0 0 0-.2-.4L6.35 2.65a.5.5 0 0 0-.7.7L7.3 5H3.5C2.67 5 2 5.67 2 6.5V8a.5.5 0 0 0 1 0V6.5Z" clip-rule="evenodd" />
|
|
1315
|
+
</symbol>
|
|
1316
|
+
<symbol viewBox="0 0 16 16" id="redirect-circle-filled:16">
|
|
1317
|
+
<path fill-rule="evenodd" d="M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Zm.15-4.35a.5.5 0 0 0 .7.7L11.8 7.9a.5.5 0 0 0 .2-.4.5.5 0 0 0-.2-.4L8.35 3.65a.5.5 0 0 0-.7.7L10.3 7H4.5C3.67 7 3 7.67 3 8.5v3a.5.5 0 0 0 1 0v-3c0-.28.22-.5.5-.5h5.8l-2.65 2.65Z" clip-rule="evenodd" />
|
|
1318
|
+
</symbol>
|
|
1297
1319
|
<symbol viewBox="0 0 12 12" id="refresh:12">
|
|
1298
1320
|
<path d="M4.4 1.487c.14.139.345.186.536.14A4.5 4.5 0 0 1 10 8.064V7.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 0-1h-.89A5.5 5.5 0 0 0 4.587.683c-.36.096-.449.54-.185.804zM1.39 3H.5a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-.564a4.5 4.5 0 0 0 5.064 6.437.565.565 0 0 1 .535.14c.264.264.175.708-.185.804A5.5 5.5 0 0 1 1.39 3z" />
|
|
1299
1321
|
</symbol>
|
|
@@ -1658,5 +1680,13 @@
|
|
|
1658
1680
|
<symbol viewBox="0 0 16 16" id="wordpress:16">
|
|
1659
1681
|
<path fill-rule="evenodd" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zM1.635 5.162c-.387.871-.6 1.83-.6 2.838a6.95 6.95 0 0 0 3.923 6.268L1.635 5.162zm4.398 9.522c.62.184 1.28.281 1.967.281.814 0 1.589-.135 2.315-.387a.303.303 0 0 1-.048-.097L8.126 8.61l-2.093 6.073zm3.72-10.016s-.377.038-.794.067l2.519 7.498.697-2.325.078-.249c.262-.84.455-1.46.455-2.008 0-.862-.31-1.453-.571-1.918l-.08-.129c-.326-.525-.608-.98-.608-1.508 0-.64.484-1.24 1.172-1.24.014 0 .029.002.043.005.015.002.03.005.044.005a6.967 6.967 0 0 0-10.53 1.307c.164.01.32.01.445.01.737 0 1.86-.087 1.86-.087.378-.03.417.523.049.572 0 0-.378.038-.804.067l2.548 7.547 1.52-4.573-1.094-2.974c-.368-.02-.727-.067-.727-.067-.377-.02-.33-.601.04-.572 0 0 1.142.087 1.83.087.727 0 1.86-.087 1.86-.087.378-.03.426.523.048.572zM14.965 8c0-1.21-.31-2.354-.852-3.342.029.223.048.455.048.717 0 .707-.135 1.501-.533 2.5l-2.13 6.15A6.977 6.977 0 0 0 14.964 8z" clip-rule="evenodd" />
|
|
1660
1682
|
</symbol>
|
|
1683
|
+
<symbol viewBox="0 0 12 12" id="zero-circle-filled:12">
|
|
1684
|
+
<path d="M5.5 8a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z" />
|
|
1685
|
+
<path fill-rule="evenodd" d="M0 5.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 0 0-11 0ZM5.5 9a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z" clip-rule="evenodd" />
|
|
1686
|
+
</symbol>
|
|
1687
|
+
<symbol viewBox="0 0 16 16" id="zero-circle-filled:16">
|
|
1688
|
+
<path d="M7.5 11a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z" />
|
|
1689
|
+
<path fill-rule="evenodd" d="M0 7.5a7.5 7.5 0 1 0 15 0 7.5 7.5 0 0 0-15 0Zm3 0a4.5 4.5 0 1 0 9 0 4.5 4.5 0 0 0-9 0Z" clip-rule="evenodd" />
|
|
1690
|
+
</symbol>
|
|
1661
1691
|
</defs>
|
|
1662
1692
|
</svg>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright 1999-
|
|
1
|
+
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import { isRtl } from '../../utils';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import OnDarkContext from '../OnDarkContext';
|
|
7
|
-
import {
|
|
7
|
+
import { wrapFunction } from '../utils';
|
|
8
8
|
import Icon from '../Icon';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -24,7 +24,6 @@ const Link = ({
|
|
|
24
24
|
pseudo = false,
|
|
25
25
|
component,
|
|
26
26
|
children,
|
|
27
|
-
onKeyDown,
|
|
28
27
|
...other
|
|
29
28
|
}) => {
|
|
30
29
|
const Component = component ? component : 'a';
|
|
@@ -55,15 +54,12 @@ const Link = ({
|
|
|
55
54
|
|
|
56
55
|
if (onClick) {
|
|
57
56
|
props.tabIndex = props.tabIndex || 0;
|
|
58
|
-
|
|
59
|
-
props.onKeyDown = e => {
|
|
57
|
+
props.onKeyDown = wrapFunction(props.onKeyDown, e => {
|
|
60
58
|
if (e.key === 'Enter') {
|
|
61
59
|
e.preventDefault();
|
|
62
60
|
e.currentTarget.click();
|
|
63
61
|
}
|
|
64
|
-
|
|
65
|
-
safeInvoke(onKeyDown, e);
|
|
66
|
-
};
|
|
62
|
+
});
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
return (
|
|
@@ -49,10 +49,10 @@ const getMessage = (fullKey, messages) => {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
return messages[fullKey];
|
|
52
|
-
};
|
|
53
|
-
|
|
52
|
+
};
|
|
54
53
|
|
|
55
|
-
const createTranslate = messages =>
|
|
54
|
+
const createTranslate = messages => // eslint-disable-next-line default-param-last
|
|
55
|
+
(key, params = {}, fallback) => {
|
|
56
56
|
if (typeof key !== 'string') {
|
|
57
57
|
return '';
|
|
58
58
|
}
|
package/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plesk/ui-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.0",
|
|
4
4
|
"description": "Plesk UI Library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
"@types/webpack-dev-server": "^3.10.1",
|
|
82
82
|
"@typescript-eslint/eslint-plugin": "^2.7.0",
|
|
83
83
|
"@typescript-eslint/parser": "^2.7.0",
|
|
84
|
-
"autoprefixer": "^10.
|
|
84
|
+
"autoprefixer": "^10.4.13",
|
|
85
85
|
"babel-loader": "^8.2.3",
|
|
86
86
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
87
87
|
"babel-plugin-transform-require-ignore": "^0.1.1",
|
|
88
88
|
"clean-webpack-plugin": "^4.0.0",
|
|
89
89
|
"cross-env": "^5.2.0",
|
|
90
|
-
"css-loader": "^6.
|
|
91
|
-
"css-minimizer-webpack-plugin": "^
|
|
90
|
+
"css-loader": "^6.7.1",
|
|
91
|
+
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
92
92
|
"enzyme": "^3.11.0",
|
|
93
93
|
"enzyme-adapter-react-16": "^1.15.6",
|
|
94
94
|
"enzyme-to-json": "^3.6.2",
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
"jest": "^24.9.0",
|
|
103
103
|
"jest-dev-server": "^4.4.0",
|
|
104
104
|
"jest-image-snapshot": "^4.0.2",
|
|
105
|
-
"less": "^4.1.
|
|
106
|
-
"less-loader": "^
|
|
107
|
-
"mini-css-extract-plugin": "^2.
|
|
108
|
-
"postcss": "^8.4.
|
|
105
|
+
"less": "^4.1.3",
|
|
106
|
+
"less-loader": "^11.1.0",
|
|
107
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
108
|
+
"postcss": "^8.4.18",
|
|
109
109
|
"postcss-less": "^6.0.0",
|
|
110
|
-
"postcss-loader": "^
|
|
110
|
+
"postcss-loader": "^7.0.1",
|
|
111
111
|
"postcss-logical": "^5.0.3",
|
|
112
|
-
"prettier": "^2.
|
|
112
|
+
"prettier": "^2.7.1",
|
|
113
113
|
"puppeteer-core": "13.1.3",
|
|
114
114
|
"react": "^16.8.6",
|
|
115
115
|
"react-dom": "^16.8.6",
|
|
@@ -118,17 +118,17 @@
|
|
|
118
118
|
"rimraf": "^3.0.1",
|
|
119
119
|
"rtlcss": "^3.4.0",
|
|
120
120
|
"style-loader": "^3.3.1",
|
|
121
|
-
"stylelint": "^14.
|
|
121
|
+
"stylelint": "^14.14.1",
|
|
122
122
|
"stylelint-config-prettier": "^9.0.3",
|
|
123
|
-
"stylelint-declaration-block-no-ignored-properties": "^2.
|
|
124
|
-
"stylelint-no-unsupported-browser-features": "^
|
|
123
|
+
"stylelint-declaration-block-no-ignored-properties": "^2.6.0",
|
|
124
|
+
"stylelint-no-unsupported-browser-features": "^6.0.1",
|
|
125
125
|
"stylelint-prettier": "^2.0.0",
|
|
126
|
-
"stylelint-use-logical-spec": "^
|
|
126
|
+
"stylelint-use-logical-spec": "^4.1.0",
|
|
127
127
|
"svg-mixer": "^2.3.14",
|
|
128
128
|
"terser-webpack-plugin": "^5.2.4",
|
|
129
129
|
"typescript": "^3.7.2",
|
|
130
|
-
"webpack": "^5.
|
|
131
|
-
"webpack-cli": "^4.
|
|
130
|
+
"webpack": "^5.74.0",
|
|
131
|
+
"webpack-cli": "^4.10.0"
|
|
132
132
|
},
|
|
133
133
|
"peerDependencies": {
|
|
134
134
|
"react": "^16.8.6",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"resolutions": {
|
|
138
138
|
"@babel/types": "^7.15.6",
|
|
139
139
|
"@types/node": "^12.12.8",
|
|
140
|
-
"**/caniuse-lite": "1.0.
|
|
140
|
+
"**/caniuse-lite": "1.0.30001430"
|
|
141
141
|
},
|
|
142
142
|
"browserslist": [
|
|
143
143
|
"last 2 versions",
|