@plesk/ui-library 3.38.0 → 3.38.2
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 +1 -1
- package/cjs/components/Card/Card.js +1 -1
- package/cjs/components/CardList/CardList.js +1 -1
- package/cjs/components/CardList/CardListToolbar.js +1 -1
- package/cjs/components/Carousel/Carousel.js +29 -33
- package/cjs/components/CodeEditor/CodeEditor.js +1 -1
- package/cjs/components/Columns/Columns.js +1 -1
- package/cjs/components/ComboBox/ComboBox.js +1 -1
- package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +1 -1
- package/cjs/components/ComboBoxDropdown/index.js +1 -1
- package/cjs/components/Dialog/Dialog.js +1 -1
- package/cjs/components/Drawer/DrawerProgress.js +1 -1
- package/cjs/components/Dropdown/index.js +1 -1
- package/cjs/components/Figure/index.js +1 -1
- package/cjs/components/Form/Form.js +1 -1
- package/cjs/components/Form/index.js +1 -1
- package/cjs/components/FormField/index.js +1 -1
- package/cjs/components/FormFieldPassword/PasswordMeter.js +1 -1
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +1 -1
- package/cjs/components/Heading/Heading.js +1 -1
- package/cjs/components/Icon/index.js +1 -1
- package/cjs/components/Icon/utils.js +1 -1
- package/cjs/components/Item/Item.js +1 -1
- package/cjs/components/ItemList/ItemList.js +1 -1
- package/cjs/components/Layer/index.js +1 -1
- package/cjs/components/List/List.js +1 -1
- package/cjs/components/LocaleProvider/index.js +1 -1
- package/cjs/components/Media/Media.js +1 -1
- package/cjs/components/Menu/MenuBaseItem.js +1 -1
- package/cjs/components/Pagination/index.js +1 -1
- package/cjs/components/Popper/index.js +1 -1
- package/cjs/components/ProgressStep/ProgressStep.js +1 -1
- package/cjs/components/ProgressStep/index.js +1 -1
- package/cjs/components/Section/Section.js +1 -1
- package/cjs/components/Section/index.js +1 -1
- package/cjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/cjs/components/SegmentedControl/index.js +1 -1
- package/cjs/components/Select/Select.js +1 -1
- package/cjs/components/SplitButton/index.js +1 -1
- package/cjs/components/Subnav/index.js +1 -1
- package/cjs/components/Tabs/SearchBar.js +1 -1
- package/cjs/components/Tabs/Tabs.js +1 -1
- package/cjs/components/Toast/index.js +1 -1
- package/cjs/components/Toolbar/Toolbar.js +1 -1
- package/cjs/components/Toolbar/ToolbarGroup.js +1 -1
- package/cjs/components/Toolbar/ToolbarMenu.js +1 -1
- package/cjs/components/VerticalContext/index.js +1 -1
- package/cjs/components/index.js +1 -1
- package/cjs/index.js +1 -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 +113 -117
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +6 -6
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +1 -2
- package/esm/components/Alert/Alert.js +1 -2
- package/esm/components/Badge/Badge.js +1 -2
- package/esm/components/Breadcrumbs/Breadcrumbs.js +1 -2
- package/esm/components/Button/Button.js +1 -2
- package/esm/components/Card/Card.js +1 -2
- package/esm/components/Card/PreviewPanel.js +1 -2
- package/esm/components/CardList/CardList.js +1 -2
- package/esm/components/Carousel/Carousel.js +30 -35
- package/esm/components/Checkbox/Checkbox.js +1 -2
- package/esm/components/ComboBoxDropdown/ComboBoxDropdown.js +2 -4
- package/esm/components/ConsoleOutput/ConsoleOutput.js +1 -2
- package/esm/components/ContentLoader/ContentLoader.js +1 -2
- package/esm/components/ContentLoader/IconsLoader.js +1 -2
- package/esm/components/Cuttable/Cuttable.js +1 -2
- package/esm/components/Dialog/Dialog.js +1 -2
- package/esm/components/Drawer/Drawer.js +1 -2
- package/esm/components/Drawer/DrawerProgress.js +1 -2
- package/esm/components/Drawer/Header.js +1 -2
- package/esm/components/Dropdown/Dropdown.js +1 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +1 -2
- package/esm/components/Figure/Figure.js +1 -2
- package/esm/components/FocusTrap/FocusTrap.js +1 -2
- package/esm/components/Form/Form.js +1 -2
- package/esm/components/FormField/FormField.js +1 -2
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +1 -3
- package/esm/components/FormFieldPassword/FormFieldPassword.js +1 -2
- package/esm/components/FormFieldPassword/PasswordMeter.js +1 -3
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +1 -2
- package/esm/components/Heading/Heading.js +1 -2
- package/esm/components/InPlaceEdit/InPlaceEdit.js +1 -2
- package/esm/components/Input/Input.js +1 -2
- package/esm/components/InputFile/InputFile.js +1 -3
- package/esm/components/Item/Item.js +1 -2
- package/esm/components/Label/Label.js +1 -2
- package/esm/components/Layout/Layout.js +1 -2
- package/esm/components/Link/Link.js +1 -2
- package/esm/components/List/List.js +2 -5
- package/esm/components/List/ListActions.js +1 -2
- package/esm/components/List/ListEmptyView.js +1 -2
- package/esm/components/List/ListOperation.js +1 -2
- package/esm/components/Media/Media.js +1 -2
- package/esm/components/Menu/MenuBaseItem.js +1 -2
- package/esm/components/Overlay/Overlay.js +1 -2
- package/esm/components/PageHeader/PageHeader.js +1 -2
- package/esm/components/Pagination/Pagination.js +1 -2
- package/esm/components/Panel/Panel.js +1 -2
- package/esm/components/Popover/Popover.js +1 -2
- package/esm/components/Popper/Popper.js +1 -2
- package/esm/components/ProgressDialog/ProgressDialog.js +1 -2
- package/esm/components/ProgressStep/ProgressStep.js +1 -2
- package/esm/components/Radio/Radio.js +1 -2
- package/esm/components/Section/Section.js +1 -2
- package/esm/components/Section/SectionItem.js +1 -2
- package/esm/components/SegmentedControl/SegmentedControl.js +1 -2
- package/esm/components/Select/MultiValue.js +1 -2
- package/esm/components/Select/SelectControl.js +1 -2
- package/esm/components/SplitButton/SplitButton.js +1 -2
- package/esm/components/Spot/SpotPopup.js +1 -2
- package/esm/components/Spot/SpotPulsar.js +1 -2
- package/esm/components/StatusMessage/StatusMessage.js +1 -2
- package/esm/components/Switch/Switch.js +1 -2
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +1 -2
- package/esm/components/Tabs/SearchBar.js +1 -3
- package/esm/components/Tabs/Tabs.js +1 -3
- package/esm/components/Toast/Toast.js +1 -2
- package/esm/components/Tooltip/Tooltip.js +1 -3
- package/esm/index.js +1 -1
- package/package.json +15 -15
- package/styleguide/build/bundle.42040fbd.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/src/components/Carousel/Carousel.d.ts +3 -2
- package/types/src/components/List/List.d.ts +0 -2
- package/styleguide/build/bundle.e57858cb.js +0 -2
- /package/styleguide/build/{bundle.e57858cb.js.LICENSE.txt → bundle.42040fbd.js.LICENSE.txt} +0 -0
|
@@ -6,8 +6,7 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
6
6
|
import { wrapFunction } from '../utils';
|
|
7
7
|
import Icon, { ICON_SIZE_16 } from '../Icon';
|
|
8
8
|
import Spinner from '../Spinner';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
/**
|
|
12
11
|
* `Action` component is used mostly for navigation, to go between pages, and not for immediate action or submitting data.
|
|
13
12
|
* @since 0.0.68
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
6
|
/**
|
|
8
7
|
* `Alert` component is used for highlighting important content.
|
|
9
8
|
* For showing messages about state of the system it is recommended to use [StatusMessage](#!/StatusMessage)
|
|
@@ -5,8 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import Label from '../Label';
|
|
7
7
|
import Icon from '../Icon';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
/**
|
|
11
10
|
* `Badge` component is used for showing small numerical value or status attached to an interface element.
|
|
12
11
|
* @since 0.0.58
|
|
@@ -5,8 +5,7 @@ import { Children } from 'react';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
7
|
import Icon from '../Icon';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
/**
|
|
11
10
|
* `Breadcrumbs` component indicates a position of current page in general hierarchy of all pages,
|
|
12
11
|
* and it is used for navigation up to the main page of the product.
|
|
@@ -28,8 +28,7 @@ const oldIconNames = {
|
|
|
28
28
|
import ResponsiveContext from '../ResponsiveContext';
|
|
29
29
|
import OnDarkContext from '../OnDarkContext';
|
|
30
30
|
import ButtonContext from './ButtonContext';
|
|
31
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
32
|
const renderIcon = _ref => {
|
|
34
33
|
let {
|
|
35
34
|
baseClassName,
|
|
@@ -12,8 +12,7 @@ import ContentLoader from '../ContentLoader';
|
|
|
12
12
|
import Translate from '../Translate';
|
|
13
13
|
import CardButton from './CardButton';
|
|
14
14
|
import PreviewPanel from './PreviewPanel';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
const VIEW_TILE = 'tile';
|
|
18
17
|
const VIEW_EXTENDED = 'extended';
|
|
19
18
|
const VIEW_ROW = 'row';
|
|
@@ -6,8 +6,7 @@ import classNames from 'classnames';
|
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
7
|
import { loadImage } from './helpers';
|
|
8
8
|
import noImage from './images/no-image.svg';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const determineSource = _ref => {
|
|
12
11
|
let {
|
|
13
12
|
image,
|
|
@@ -14,8 +14,7 @@ import Button from '../Button';
|
|
|
14
14
|
import Spinner from '../Spinner';
|
|
15
15
|
import Translate from '../Translate';
|
|
16
16
|
import CardListToolbar from './CardListToolbar';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
export const VIEW_TILE = 'tile';
|
|
20
19
|
export const VIEW_RESPONSIVE = 'responsive';
|
|
21
20
|
export const VIEW_EXTENDED = 'extended';
|
|
@@ -7,10 +7,9 @@ import classNames from 'classnames';
|
|
|
7
7
|
import Measure from 'react-measure';
|
|
8
8
|
import { CLS_PREFIX } from '../../constants';
|
|
9
9
|
import Icon from '../Icon';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
const calcWidths = node => {
|
|
13
|
-
const slideWidths = [].map.call(node.childNodes, el => el.
|
|
12
|
+
const slideWidths = [].map.call(node.childNodes, el => el.getBoundingClientRect().width);
|
|
14
13
|
const totalWidth = slideWidths.reduce((prev, curr) => prev + curr, 0);
|
|
15
14
|
return {
|
|
16
15
|
slideWidths,
|
|
@@ -24,7 +23,9 @@ const calcWidths = node => {
|
|
|
24
23
|
*/
|
|
25
24
|
class Carousel extends Component {
|
|
26
25
|
constructor() {
|
|
26
|
+
var _this;
|
|
27
27
|
super(...arguments);
|
|
28
|
+
_this = this;
|
|
28
29
|
_defineProperty(this, "state", {
|
|
29
30
|
showControls: false,
|
|
30
31
|
current: 0,
|
|
@@ -77,9 +78,14 @@ class Carousel extends Component {
|
|
|
77
78
|
showControls: (bounds?.width || 0) < totalWidth
|
|
78
79
|
});
|
|
79
80
|
});
|
|
81
|
+
_defineProperty(this, "getChildrenCount", () => {
|
|
82
|
+
const {
|
|
83
|
+
children
|
|
84
|
+
} = this.props;
|
|
85
|
+
return Array.isArray(children) ? children?.reduce((prev, curr) => Array.isArray(curr) ? prev + curr.length : prev + 1, 0) : 0;
|
|
86
|
+
});
|
|
80
87
|
_defineProperty(this, "renderNavigationDots", () => {
|
|
81
88
|
const {
|
|
82
|
-
children,
|
|
83
89
|
baseClassName,
|
|
84
90
|
dots,
|
|
85
91
|
items
|
|
@@ -90,18 +96,17 @@ class Carousel extends Component {
|
|
|
90
96
|
const {
|
|
91
97
|
current
|
|
92
98
|
} = this.state;
|
|
93
|
-
const childrenCount =
|
|
94
|
-
|
|
95
|
-
if (pages <= 1) {
|
|
99
|
+
const childrenCount = this.getChildrenCount();
|
|
100
|
+
if (childrenCount <= 1) {
|
|
96
101
|
return null;
|
|
97
102
|
}
|
|
98
103
|
return /*#__PURE__*/_jsx("div", {
|
|
99
104
|
className: `${baseClassName}__dots`,
|
|
100
105
|
children: Array.from({
|
|
101
|
-
length:
|
|
106
|
+
length: childrenCount
|
|
102
107
|
}).map((_, idx) => /*#__PURE__*/_jsx("div", {
|
|
103
108
|
role: "button",
|
|
104
|
-
className: classNames(`${baseClassName}
|
|
109
|
+
className: classNames(`${baseClassName}__dot`, current === idx ? `${baseClassName}__dot--current` : null),
|
|
105
110
|
"aria-current": current === idx,
|
|
106
111
|
onClick: () => this.setCurrentSlide(idx)
|
|
107
112
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -148,19 +153,23 @@ class Carousel extends Component {
|
|
|
148
153
|
})]
|
|
149
154
|
});
|
|
150
155
|
});
|
|
151
|
-
_defineProperty(this, "renderSliderItems", ()
|
|
156
|
+
_defineProperty(this, "renderSliderItems", function () {
|
|
157
|
+
let showCurrent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
152
158
|
const {
|
|
153
159
|
children,
|
|
154
160
|
baseClassName,
|
|
155
161
|
items
|
|
156
|
-
} =
|
|
157
|
-
const
|
|
162
|
+
} = _this.props;
|
|
163
|
+
const {
|
|
164
|
+
current
|
|
165
|
+
} = _this.state;
|
|
166
|
+
const childrenCount = _this.getChildrenCount();
|
|
158
167
|
let width = '';
|
|
159
168
|
if (items) {
|
|
160
|
-
width =
|
|
169
|
+
width = `${Math.ceil(100 / Math.min(childrenCount, items))}%`;
|
|
161
170
|
}
|
|
162
|
-
return Children.map(children, item => item && /*#__PURE__*/_jsx("div", {
|
|
163
|
-
className: `${baseClassName}__item`,
|
|
171
|
+
return Children.map(children, (item, idx) => item && /*#__PURE__*/_jsx("div", {
|
|
172
|
+
className: classNames(`${baseClassName}__item`, showCurrent && idx === current ? `${baseClassName}__item--current` : null),
|
|
164
173
|
style: {
|
|
165
174
|
width
|
|
166
175
|
},
|
|
@@ -174,30 +183,16 @@ class Carousel extends Component {
|
|
|
174
183
|
this.play();
|
|
175
184
|
}
|
|
176
185
|
}
|
|
177
|
-
componentDidUpdate() {
|
|
186
|
+
componentDidUpdate(prevProps) {
|
|
178
187
|
if (!this.rootRef.current || !this.genuineRef.current) {
|
|
179
188
|
return;
|
|
180
189
|
}
|
|
190
|
+
if (prevProps.autoplay !== this.props.autoplay) {
|
|
191
|
+
this.props.autoplay ? this.play() : this.stop();
|
|
192
|
+
}
|
|
181
193
|
const {
|
|
182
194
|
width
|
|
183
195
|
} = this.rootRef.current.getBoundingClientRect();
|
|
184
|
-
const {
|
|
185
|
-
items,
|
|
186
|
-
children
|
|
187
|
-
} = this.props;
|
|
188
|
-
if (items) {
|
|
189
|
-
const slideItems = items;
|
|
190
|
-
const childrenCount = children?.length ?? 1;
|
|
191
|
-
const totalWidth = childrenCount * (width / slideItems);
|
|
192
|
-
if (this.state.totalWidth !== totalWidth) {
|
|
193
|
-
this.setState({
|
|
194
|
-
slideWidths: new Array(childrenCount).fill(width),
|
|
195
|
-
totalWidth,
|
|
196
|
-
showControls: childrenCount > slideItems
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
196
|
const {
|
|
202
197
|
slideWidths,
|
|
203
198
|
totalWidth
|
|
@@ -231,7 +226,7 @@ class Carousel extends Component {
|
|
|
231
226
|
if (current >= slideWidths.length) {
|
|
232
227
|
current = 0;
|
|
233
228
|
}
|
|
234
|
-
this.props.onSlide?.(
|
|
229
|
+
this.props.onSlide?.(current);
|
|
235
230
|
this.setState({
|
|
236
231
|
current,
|
|
237
232
|
next,
|
|
@@ -317,7 +312,7 @@ class Carousel extends Component {
|
|
|
317
312
|
children: [showControls && this.renderSliderItems(), /*#__PURE__*/_jsx("div", {
|
|
318
313
|
className: `${baseClassName}__genuine-slides`,
|
|
319
314
|
ref: this.genuineRef,
|
|
320
|
-
children: this.renderSliderItems()
|
|
315
|
+
children: this.renderSliderItems(true)
|
|
321
316
|
}), showControls && this.renderSliderItems()]
|
|
322
317
|
}), this.renderNavigationArrows()]
|
|
323
318
|
}), this.renderNavigationDots()]
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import Tooltip from '../Tooltip';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* `Checkbox` component is used for turning an option on or off and selecting or deselecting an item.
|
|
10
9
|
* @since 0.0.55
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import { useRef, useState, useEffect, useLayoutEffect } from 'react';
|
|
3
|
+
import { useRef, useState, useEffect, useLayoutEffect, createElement as _createElement } from 'react';
|
|
4
4
|
import { Z_INDEX_DROPDOWN, CLS_PREFIX } from '../../constants';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import Popper from '../Popper';
|
|
7
7
|
import Menu, { MenuItem, MenuHeader } from '../Menu';
|
|
8
8
|
import AutoClosable from '../AutoClosable';
|
|
9
9
|
import { safeInvoke, scrollIntoView } from '../utils';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { createElement as _createElement } from "react";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
11
|
export const findNextSafeIndex = (currIndex, diff, options) => {
|
|
14
12
|
const maxIndex = options.length - 1;
|
|
15
13
|
let attempt = 0;
|
|
@@ -4,8 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import { PureComponent, createRef } from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
const scrollToBottom = el => {
|
|
10
9
|
el.scrollTop = el.scrollHeight;
|
|
11
10
|
};
|
|
@@ -5,8 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import Spinner from '../Spinner';
|
|
6
6
|
import IconsLoader from './IconsLoader';
|
|
7
7
|
import { CLS_PREFIX } from '../../constants';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
const getLoader = loader => {
|
|
11
10
|
let loaderType;
|
|
12
11
|
let loaderProps = {};
|
|
@@ -4,8 +4,7 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Icon from '../Icon';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
const DEFAULT_ICONS = ['clock', 'emoticon-smile', 'rocket', 'sand-clock', 'sleep', 'web', 'star'];
|
|
10
9
|
const useIconCursor = (icons, initialCursor, isSync) => {
|
|
11
10
|
const targetRef = useRef(null);
|
|
@@ -7,8 +7,7 @@ import Measure from 'react-measure';
|
|
|
7
7
|
import { CLS_PREFIX } from '../../constants';
|
|
8
8
|
import Translate from '../Translate';
|
|
9
9
|
import Link from '../Link';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
/**
|
|
13
12
|
* `Cuttable` component is used for showing and hiding part of content.
|
|
14
13
|
* @since 0.0.42
|
|
@@ -11,8 +11,7 @@ import Heading from '../Heading';
|
|
|
11
11
|
import Text from '../Text';
|
|
12
12
|
import Translate, { isLikeText } from '../Translate';
|
|
13
13
|
import { safeInvoke } from '../utils';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const isProps = value => value && typeof value === 'object' && ! /*#__PURE__*/isValidElement(value);
|
|
17
16
|
|
|
18
17
|
/**
|
|
@@ -11,8 +11,7 @@ import Heading from '../Heading';
|
|
|
11
11
|
import { isLikeText } from '../Translate';
|
|
12
12
|
import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
|
|
13
13
|
import DrawerProgress from './DrawerProgress';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const defaultProps = {
|
|
17
16
|
isOpen: false,
|
|
18
17
|
subtitle: undefined,
|
|
@@ -9,8 +9,7 @@ import Progress from '../Progress';
|
|
|
9
9
|
import ProgressStep, { STATUS_DONE, STATUS_ERROR, STATUS_NOT_STARTED } from '../ProgressStep';
|
|
10
10
|
import { CLS_PREFIX } from '../../constants';
|
|
11
11
|
import { safeInvoke } from '../utils';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const additionalButtonsConfig = getButtonContextValue({
|
|
15
14
|
defaultProps: {
|
|
16
15
|
size: 'lg'
|
|
@@ -5,8 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import Button from '../Button';
|
|
7
7
|
import Icon from '../Icon';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
const Header = _ref => {
|
|
11
10
|
let {
|
|
12
11
|
baseClassName = `${CLS_PREFIX}drawer-header`,
|
|
@@ -12,9 +12,7 @@ import Layer from '../Layer';
|
|
|
12
12
|
import { MenuItem, MenuDivider } from '../Menu';
|
|
13
13
|
import Translate from '../Translate';
|
|
14
14
|
import localeFallback from './locale/en-US';
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
16
|
const createTarget = (node, _ref) => {
|
|
19
17
|
let {
|
|
20
18
|
onToggle,
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import ContentLoader from '../ContentLoader';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
|
|
10
9
|
* but it is used when the message itself is the primary content on the page.
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
6
|
/**
|
|
8
7
|
* Figure component.
|
|
9
8
|
* @since 0.0.42
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import { useRef, useMemo, forwardRef } from 'react';
|
|
4
4
|
import { createFocusManager, mergeRefs, wrapFunction } from '../utils';
|
|
5
5
|
import { isFocusable } from '../Overlay/Focuser';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
const canSkip = node => node instanceof HTMLElement && node.dataset && node.dataset.skipAutoFocus;
|
|
9
8
|
const createFocusStrategy = checkSkipAutoFocusRef => {
|
|
10
9
|
const elements = [];
|
|
@@ -15,8 +15,7 @@ import FormContext from './FormContext';
|
|
|
15
15
|
import VerticalContext, { VERTICAL_BREAKPOINT } from '../VerticalContext';
|
|
16
16
|
import DisabledContext from './DisabledContext';
|
|
17
17
|
import { safeInvoke } from '../utils';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
const actionButtonsConfig = getButtonContextValue({
|
|
21
20
|
defaultProps: {
|
|
22
21
|
size: 'lg'
|
|
@@ -18,8 +18,7 @@ import FormContext from '../Form/FormContext';
|
|
|
18
18
|
import VerticalContext from '../VerticalContext';
|
|
19
19
|
import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
|
|
20
20
|
import DisabledContext from '../Form/DisabledContext';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
export const BASE_FORM_FIELD_CLASS_NAME = `${CLS_PREFIX}form-field`;
|
|
24
23
|
const defaultValue = undefined;
|
|
25
24
|
const defaultProps = {
|
|
@@ -5,9 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import Checkbox from '../Checkbox';
|
|
7
7
|
import FormField from '../FormField';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
9
|
/**
|
|
12
10
|
* `FormFieldCheckbox` component is used for turning an option on or off
|
|
13
11
|
* and selecting or deselecting an item.
|
|
@@ -11,8 +11,7 @@ import Translate from '../Translate';
|
|
|
11
11
|
import PasswordMeter from './PasswordMeter';
|
|
12
12
|
import generatePassword from './generatePassword';
|
|
13
13
|
import locale from './locale/en-US';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
/**
|
|
17
16
|
* `FormFieldPassword` component provides secure way to enter a password.
|
|
18
17
|
* @since 0.0.58
|
|
@@ -5,9 +5,7 @@ import Popover from '../Popover';
|
|
|
5
5
|
import Translate from '../Translate';
|
|
6
6
|
import estimatePassword, { DEFAULT_RULES } from './estimatePassword';
|
|
7
7
|
import locale from './locale/en-US';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
9
|
const strengthIntents = {
|
|
12
10
|
VeryWeak: 'danger',
|
|
13
11
|
Weak: 'danger',
|
|
@@ -6,8 +6,7 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
6
6
|
import FormField, { BASE_FORM_FIELD_CLASS_NAME } from '../FormField';
|
|
7
7
|
import Hint from '../Hint';
|
|
8
8
|
import Radio from '../Radio';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
/**
|
|
12
11
|
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
13
12
|
* @since 0.2.0
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32 } from '../Icon';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* `Heading` is used as a text title (or a subtitle) to define the hierarchy and the structure of the content.
|
|
10
9
|
* @since 2.3.0
|
|
@@ -9,8 +9,7 @@ import Input from '../Input';
|
|
|
9
9
|
import Tooltip from '../Tooltip';
|
|
10
10
|
import Translate from '../Translate';
|
|
11
11
|
import locale from './locale/en-US';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
/**
|
|
15
14
|
* This component allows users to edit a short text "in place" — in other words, straight in the interface, without
|
|
16
15
|
* opening additional dialog windows. If a text is large enough that it doesn't fit on a single line, you should
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
6
|
/**
|
|
8
7
|
* `Input` component is used for entering short text (like user name or email address).
|
|
9
8
|
* @since 0.0.57
|
|
@@ -8,9 +8,7 @@ import Text from '../Text';
|
|
|
8
8
|
import Button from '../Button';
|
|
9
9
|
import Translate from '../Translate';
|
|
10
10
|
import localeFallback from './locale/en-US';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
12
|
const generateId = () => Math.random().toString(36).slice(2);
|
|
15
13
|
|
|
16
14
|
/**
|
|
@@ -8,8 +8,7 @@ import Media from '../Media';
|
|
|
8
8
|
import Heading from '../Heading';
|
|
9
9
|
import Tooltip from '../Tooltip';
|
|
10
10
|
import { createProxyProps, wrapFunction } from '../utils';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
/**
|
|
14
13
|
* `Item` component is element of [ItemList](#!/ItemList) and it is presented as
|
|
15
14
|
* a combination of icon, text title and content (similar to [Media](#!/Media)).
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import Icon from '../Icon';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
const DEFAULT_TAG = 'span';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -6,8 +6,7 @@ import Measure from 'react-measure';
|
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { CSSTransition } from 'react-transition-group';
|
|
8
8
|
import { CLS_PREFIX } from '../../constants';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const subscribeMatchMedia = (query, handler) => {
|
|
12
11
|
const mq = window.matchMedia(query);
|
|
13
12
|
handler(mq);
|
|
@@ -7,8 +7,7 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
7
7
|
import OnDarkContext from '../OnDarkContext';
|
|
8
8
|
import { wrapFunction } from '../utils';
|
|
9
9
|
import Icon from '../Icon';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
/**
|
|
13
12
|
* `Link` is used for navigation purposes.
|
|
14
13
|
* @since 1.9.0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
3
3
|
|
|
4
|
-
import { Fragment, cloneElement, isValidElement, createRef, Component } from 'react';
|
|
4
|
+
import { Fragment, cloneElement, isValidElement, createRef, Component, createElement as _createElement } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { CSSTransition } from 'react-transition-group';
|
|
@@ -21,10 +21,7 @@ import VerticalContext, { VERTICAL_BREAKPOINT } from '../VerticalContext';
|
|
|
21
21
|
import ListEmptyView from './ListEmptyView';
|
|
22
22
|
import Columns, { Column } from '../Columns';
|
|
23
23
|
import { FocusVisibleManager, useFocusVisible } from 'use-focus-visible';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
import { createElement as _createElement } from "react";
|
|
24
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
25
|
// eslint-disable-next-line func-style
|
|
29
26
|
function getRowKey(row, props) {
|
|
30
27
|
const {
|
|
@@ -8,8 +8,7 @@ import Dropdown from '../Dropdown';
|
|
|
8
8
|
import Menu from '../Menu';
|
|
9
9
|
import ListAction from './ListAction';
|
|
10
10
|
import VerticalContext from '../VerticalContext';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
/**
|
|
14
13
|
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
15
14
|
* @since 3.3.0
|
|
@@ -7,8 +7,7 @@ import empty from './images/default.png';
|
|
|
7
7
|
import filtered from './images/filtered.png';
|
|
8
8
|
import { CLS_PREFIX } from '../../constants';
|
|
9
9
|
import { ButtonContext, getButtonContextValue } from '../Button/ButtonContext';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
const createImage = (baseClassName, image, reason) => {
|
|
13
12
|
if (image === undefined) {
|
|
14
13
|
image = reason === 'filtered' ? filtered : empty;
|
|
@@ -10,8 +10,7 @@ import Media from '../Media';
|
|
|
10
10
|
import Icon from '../Icon';
|
|
11
11
|
import Text from '../Text';
|
|
12
12
|
import Paragraph from '../Paragraph';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const toBold = value => value === undefined ? undefined : /*#__PURE__*/_jsx(Text, {
|
|
16
15
|
bold: true,
|
|
17
16
|
children: value
|
|
@@ -5,8 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import Heading from '../Heading';
|
|
7
7
|
import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32, ICON_SIZE_48, ICON_SIZE_64, ICON_SIZE_96, ICON_SIZE_128, ICON_SIZE_192 } from '../Icon';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
9
|
/**
|
|
11
10
|
* `Media` component is a combination of icon, text title and content.
|
|
12
11
|
* This layout was so widely spread in our products so we have decided to create a special component for it.
|