@plesk/ui-library 3.36.1 → 3.37.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/README.md +50 -50
- package/cjs/components/Action/Action.js +3 -3
- package/cjs/components/Alert/Alert.js +5 -5
- package/cjs/components/AutoClosable/AutoClosable.js +3 -3
- package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
- package/cjs/components/Badge/Badge.js +3 -3
- package/cjs/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/cjs/components/Button/Button.js +4 -4
- package/cjs/components/ButtonGroup/ButtonGroup.js +3 -3
- package/cjs/components/Card/Card.js +52 -52
- package/cjs/components/Card/CardButton.js +2 -2
- package/cjs/components/Card/PreviewPanel.js +3 -3
- package/cjs/components/Card/images/no-image.svg +6 -6
- package/cjs/components/CardList/CardList.js +55 -55
- package/cjs/components/Carousel/Carousel.js +186 -81
- package/cjs/components/Checkbox/Checkbox.js +3 -3
- package/cjs/components/CodeEditor/CodeEditor.js +3 -3
- package/cjs/components/Columns/Column.js +3 -3
- package/cjs/components/Columns/Columns.js +3 -3
- package/cjs/components/ComboBox/ComboBox.js +4 -4
- package/cjs/components/ComboBox/ComboBoxOption.js +5 -4
- package/cjs/components/ConsoleOutput/ConsoleOutput.js +3 -3
- package/cjs/components/ContentLoader/ContentLoader.js +3 -3
- package/cjs/components/Cuttable/Cuttable.js +3 -3
- package/cjs/components/Dialog/Dialog.js +3 -3
- package/cjs/components/Drawer/Drawer.js +4 -4
- package/cjs/components/Dropdown/Dropdown.js +5 -5
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
- package/cjs/components/Figure/Figure.js +3 -3
- package/cjs/components/Form/Form.js +4 -4
- package/cjs/components/Form/utils.js +22 -22
- package/cjs/components/FormField/FormField.js +24 -24
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +4 -4
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +3 -3
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +3 -3
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +4 -4
- package/cjs/components/FormFieldText/FormFieldText.js +5 -5
- package/cjs/components/Grid/Grid.js +3 -3
- package/cjs/components/GridCol/GridCol.js +3 -3
- package/cjs/components/Heading/Heading.js +3 -3
- package/cjs/components/Hint/Hint.js +3 -3
- package/cjs/components/Icon/Icon.js +6 -6
- package/cjs/components/Icon/images/symbols.svg +1846 -1846
- package/cjs/components/InPlaceEdit/InPlaceEdit.js +5 -5
- package/cjs/components/Input/Input.js +3 -3
- package/cjs/components/InputFile/InputFile.js +3 -3
- package/cjs/components/InputNumber/InputNumber.js +3 -3
- package/cjs/components/Item/Item.js +4 -4
- package/cjs/components/ItemLink/ItemLink.js +4 -4
- package/cjs/components/ItemList/ItemList.js +6 -6
- package/cjs/components/Label/Label.js +3 -3
- package/cjs/components/Layer/Layer.js +2 -2
- package/cjs/components/Layout/Layout.js +2 -2
- package/cjs/components/Link/Link.js +3 -3
- package/cjs/components/List/List.js +4 -7
- package/cjs/components/List/ListAction.js +4 -4
- package/cjs/components/List/ListActions.js +3 -3
- package/cjs/components/List/ListActionsDivider.js +4 -4
- package/cjs/components/List/ListEmptyView.js +4 -4
- package/cjs/components/List/ListOperation.js +4 -4
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- package/cjs/components/Markdown/Markdown.js +3 -3
- package/cjs/components/Media/Media.js +5 -5
- package/cjs/components/Media/MediaSection.js +3 -3
- package/cjs/components/Menu/Menu.js +9 -9
- package/cjs/components/Menu/MenuBaseItem.js +3 -3
- package/cjs/components/Menu/MenuDivider.js +3 -3
- package/cjs/components/Menu/MenuHeader.js +3 -3
- package/cjs/components/Menu/MenuItem.js +3 -3
- package/cjs/components/Menu/MenuSelectableItem.js +3 -3
- package/cjs/components/Overlay/Overlay.js +2 -2
- package/cjs/components/PageHeader/PageHeader.js +3 -3
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +64 -101
- package/cjs/components/Paragraph/Paragraph.js +3 -3
- package/cjs/components/Plaintext/Plaintext.js +3 -3
- package/cjs/components/Popover/Popover.js +4 -4
- package/cjs/components/Popper/Popper.js +2 -2
- package/cjs/components/Progress/Progress.js +3 -3
- package/cjs/components/ProgressDialog/ProgressDialog.js +3 -3
- package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
- package/cjs/components/ProgressStep/ProgressStep.js +3 -3
- package/cjs/components/Radio/Radio.js +3 -3
- package/cjs/components/Rating/Rating.js +3 -3
- package/cjs/components/Rating/images/rating.svg +6 -6
- package/cjs/components/Section/Section.js +4 -4
- package/cjs/components/Section/SectionItem.js +3 -3
- package/cjs/components/SegmentedControl/SegmentedControl.js +4 -4
- package/cjs/components/Select/MultiValue.js +1 -1
- package/cjs/components/Select/Select.js +3 -3
- package/cjs/components/Select/SelectControl.js +1 -1
- package/cjs/components/Select/SelectOption.js +5 -4
- package/cjs/components/Select/SelectOptionGroup.js +3 -3
- package/cjs/components/Skeleton/Skeleton.js +4 -4
- package/cjs/components/Skeleton/SkeletonTabs.js +3 -3
- package/cjs/components/Skeleton/SkeletonText.js +3 -3
- package/cjs/components/Spinner/Spinner.js +2 -2
- package/cjs/components/SplitButton/SplitButton.js +5 -5
- package/cjs/components/Spot/Spot.js +3 -3
- package/cjs/components/Status/Status.js +3 -3
- package/cjs/components/StatusMessage/StatusMessage.js +4 -4
- package/cjs/components/Subnav/Subnav.js +5 -5
- package/cjs/components/Switch/Switch.js +4 -4
- package/cjs/components/SwitchesPanel/SwitchesPanel.js +3 -3
- package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +4 -4
- package/cjs/components/Tabs/SearchBar.js +3 -3
- package/cjs/components/Tabs/Tab.js +7 -7
- package/cjs/components/Tabs/Tabs.js +6 -6
- package/cjs/components/Text/Text.js +3 -3
- package/cjs/components/TextArea/TextArea.js +3 -3
- package/cjs/components/Toaster/Toaster.js +37 -37
- package/cjs/components/Toolbar/Toolbar.js +6 -6
- package/cjs/components/Toolbar/ToolbarExpander.js +5 -5
- package/cjs/components/Toolbar/ToolbarGroup.js +4 -4
- package/cjs/components/Toolbar/ToolbarMenu.js +0 -1
- package/cjs/components/Tooltip/Tooltip.js +4 -4
- package/cjs/components/Tour/Tour.js +5 -5
- package/cjs/components/Translate/Translate.js +3 -3
- package/cjs/index.js +1 -1
- package/dist/images/no-image.svg +6 -6
- package/dist/images/rating.svg +6 -6
- package/dist/images/symbols.svg +1846 -1846
- 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 +11997 -11914
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +18 -18
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +3 -3
- package/esm/components/Alert/Alert.js +5 -5
- package/esm/components/AutoClosable/AutoClosable.js +3 -3
- package/esm/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
- package/esm/components/Badge/Badge.js +3 -3
- package/esm/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/esm/components/Button/Button.js +4 -4
- package/esm/components/ButtonGroup/ButtonGroup.js +3 -3
- package/esm/components/Card/Card.js +52 -52
- package/esm/components/Card/CardButton.js +2 -2
- package/esm/components/Card/PreviewPanel.js +3 -3
- package/esm/components/Card/images/no-image.svg +6 -6
- package/esm/components/CardList/CardList.js +55 -55
- package/esm/components/Carousel/Carousel.js +187 -82
- package/esm/components/Checkbox/Checkbox.js +3 -3
- package/esm/components/CodeEditor/CodeEditor.js +3 -3
- package/esm/components/Columns/Column.js +3 -3
- package/esm/components/Columns/Columns.js +3 -3
- package/esm/components/ComboBox/ComboBox.js +4 -4
- package/esm/components/ComboBox/ComboBoxOption.js +5 -4
- package/esm/components/ConsoleOutput/ConsoleOutput.js +3 -3
- package/esm/components/ContentLoader/ContentLoader.js +3 -3
- package/esm/components/Cuttable/Cuttable.js +3 -3
- package/esm/components/Dialog/Dialog.js +3 -3
- package/esm/components/Drawer/Drawer.js +4 -4
- package/esm/components/Dropdown/Dropdown.js +5 -5
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
- package/esm/components/Figure/Figure.js +3 -3
- package/esm/components/Form/Form.js +4 -4
- package/esm/components/Form/utils.js +22 -22
- package/esm/components/FormField/FormField.js +24 -24
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +4 -4
- package/esm/components/FormFieldPassword/FormFieldPassword.js +3 -3
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +3 -3
- package/esm/components/FormFieldSelect/FormFieldSelect.js +4 -4
- package/esm/components/FormFieldText/FormFieldText.js +5 -5
- package/esm/components/Grid/Grid.js +3 -3
- package/esm/components/GridCol/GridCol.js +3 -3
- package/esm/components/Heading/Heading.js +3 -3
- package/esm/components/Hint/Hint.js +3 -3
- package/esm/components/Icon/Icon.js +6 -6
- package/esm/components/Icon/images/symbols.svg +1846 -1846
- package/esm/components/InPlaceEdit/InPlaceEdit.js +5 -5
- package/esm/components/Input/Input.js +3 -3
- package/esm/components/InputFile/InputFile.js +3 -3
- package/esm/components/InputNumber/InputNumber.js +3 -3
- package/esm/components/Item/Item.js +4 -4
- package/esm/components/ItemLink/ItemLink.js +4 -4
- package/esm/components/ItemList/ItemList.js +6 -6
- package/esm/components/Label/Label.js +3 -3
- package/esm/components/Layer/Layer.js +2 -2
- package/esm/components/Layout/Layout.js +2 -2
- package/esm/components/Link/Link.js +3 -3
- package/esm/components/List/List.js +4 -7
- package/esm/components/List/ListAction.js +4 -4
- package/esm/components/List/ListActions.js +3 -3
- package/esm/components/List/ListActionsDivider.js +4 -4
- package/esm/components/List/ListEmptyView.js +4 -4
- package/esm/components/List/ListOperation.js +4 -4
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/components/Markdown/Markdown.js +3 -3
- package/esm/components/Media/Media.js +5 -5
- package/esm/components/Media/MediaSection.js +3 -3
- package/esm/components/Menu/Menu.js +9 -9
- package/esm/components/Menu/MenuBaseItem.js +3 -3
- package/esm/components/Menu/MenuDivider.js +3 -3
- package/esm/components/Menu/MenuHeader.js +3 -3
- package/esm/components/Menu/MenuItem.js +3 -3
- package/esm/components/Menu/MenuSelectableItem.js +3 -3
- package/esm/components/Overlay/Overlay.js +2 -2
- package/esm/components/PageHeader/PageHeader.js +3 -3
- package/esm/components/Pagination/Pagination.js +3 -3
- package/esm/components/Panel/Panel.js +65 -102
- package/esm/components/Paragraph/Paragraph.js +3 -3
- package/esm/components/Plaintext/Plaintext.js +3 -3
- package/esm/components/Popover/Popover.js +4 -4
- package/esm/components/Popper/Popper.js +2 -2
- package/esm/components/Progress/Progress.js +3 -3
- package/esm/components/ProgressDialog/ProgressDialog.js +3 -3
- package/esm/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
- package/esm/components/ProgressStep/ProgressStep.js +3 -3
- package/esm/components/Radio/Radio.js +3 -3
- package/esm/components/Rating/Rating.js +3 -3
- package/esm/components/Rating/images/rating.svg +6 -6
- package/esm/components/Section/Section.js +4 -4
- package/esm/components/Section/SectionItem.js +3 -3
- package/esm/components/SegmentedControl/SegmentedControl.js +4 -4
- package/esm/components/Select/MultiValue.js +1 -1
- package/esm/components/Select/Select.js +3 -3
- package/esm/components/Select/SelectControl.js +1 -1
- package/esm/components/Select/SelectOption.js +5 -4
- package/esm/components/Select/SelectOptionGroup.js +3 -3
- package/esm/components/Skeleton/Skeleton.js +4 -4
- package/esm/components/Skeleton/SkeletonTabs.js +3 -3
- package/esm/components/Skeleton/SkeletonText.js +3 -3
- package/esm/components/Spinner/Spinner.js +2 -2
- package/esm/components/SplitButton/SplitButton.js +5 -5
- package/esm/components/Spot/Spot.js +3 -3
- package/esm/components/Status/Status.js +3 -3
- package/esm/components/StatusMessage/StatusMessage.js +4 -4
- package/esm/components/Subnav/Subnav.js +5 -5
- package/esm/components/Switch/Switch.js +4 -4
- package/esm/components/SwitchesPanel/SwitchesPanel.js +3 -3
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +4 -4
- package/esm/components/Tabs/SearchBar.js +3 -3
- package/esm/components/Tabs/Tab.js +7 -7
- package/esm/components/Tabs/Tabs.js +6 -6
- package/esm/components/Text/Text.js +3 -3
- package/esm/components/TextArea/TextArea.js +3 -3
- package/esm/components/Toaster/Toaster.js +37 -37
- package/esm/components/Toolbar/Toolbar.js +6 -6
- package/esm/components/Toolbar/ToolbarExpander.js +5 -5
- package/esm/components/Toolbar/ToolbarGroup.js +4 -4
- package/esm/components/Toolbar/ToolbarMenu.js +0 -1
- package/esm/components/Tooltip/Tooltip.js +4 -4
- package/esm/components/Tour/Tour.js +5 -5
- package/esm/components/Translate/Translate.js +3 -3
- package/esm/index.js +1 -1
- package/index.js +5 -5
- package/package.json +150 -150
- package/scripts/postinstall.js +9 -9
- package/styleguide/browserconfig.xml +9 -9
- package/styleguide/build/bundle.c3d05006.js +2 -0
- package/styleguide/images/no-image.svg +6 -6
- package/styleguide/images/rating.svg +6 -6
- package/styleguide/images/symbols.svg +1846 -1846
- package/styleguide/index.html +2 -2
- package/styleguide/placeholders/placeholder_400x200.svg +5 -5
- package/styleguide/placeholders/placeholder_400x400.svg +5 -5
- package/styleguide/placeholders/placeholder_600x400.svg +5 -5
- package/styleguide/safari-pinned-tab.svg +28 -28
- package/styleguide/site.webmanifest +19 -19
- package/types/src/components/Carousel/Carousel.d.ts +43 -8
- package/types/src/components/List/List.d.ts +0 -1
- package/types/src/components/Panel/Panel.d.ts +4 -21
- package/types/src/components/Panel/index.d.ts +1 -0
- package/types/src/components/Radio/Radio.d.ts +4 -6
- package/types/src/components/Section/Section.d.ts +1 -1
- package/types/src/components/index.d.ts +1 -0
- package/styleguide/build/bundle.ed34a3c0.js +0 -2
- /package/styleguide/build/{bundle.ed34a3c0.js.LICENSE.txt → bundle.c3d05006.js.LICENSE.txt} +0 -0
|
@@ -11,11 +11,11 @@ import Translate from '../Translate';
|
|
|
11
11
|
import locale from './locale/en-US';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
/**
|
|
15
|
-
* This component allows users to edit a short text "in place" — in other words, straight in the interface, without
|
|
16
|
-
* opening additional dialog windows. If a text is large enough that it doesn't fit on a single line, you should
|
|
17
|
-
* give users a different way of editing the text.
|
|
18
|
-
* @since 1.8.3
|
|
14
|
+
/**
|
|
15
|
+
* This component allows users to edit a short text "in place" — in other words, straight in the interface, without
|
|
16
|
+
* opening additional dialog windows. If a text is large enough that it doesn't fit on a single line, you should
|
|
17
|
+
* give users a different way of editing the text.
|
|
18
|
+
* @since 1.8.3
|
|
19
19
|
*/
|
|
20
20
|
class InPlaceEdit extends Component {
|
|
21
21
|
constructor() {
|
|
@@ -4,9 +4,9 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* `Input` component is used for entering short text (like user name or email address).
|
|
9
|
-
* @since 0.0.57
|
|
7
|
+
/**
|
|
8
|
+
* `Input` component is used for entering short text (like user name or email address).
|
|
9
|
+
* @since 0.0.57
|
|
10
10
|
*/
|
|
11
11
|
const Input = _ref => {
|
|
12
12
|
let {
|
|
@@ -13,9 +13,9 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
14
|
const generateId = () => Math.random().toString(36).slice(2);
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* `InputFile` component is used for browsing and choosing a file from the local disk.
|
|
18
|
-
* @since 3.2.0
|
|
16
|
+
/**
|
|
17
|
+
* `InputFile` component is used for browsing and choosing a file from the local disk.
|
|
18
|
+
* @since 3.2.0
|
|
19
19
|
*/
|
|
20
20
|
const InputFile = _ref => {
|
|
21
21
|
let {
|
|
@@ -38,9 +38,9 @@ const toNumber = value => {
|
|
|
38
38
|
const isMinDisabled = (value, min) => min !== undefined && value !== '' && +value <= min;
|
|
39
39
|
const isMaxDisabled = (value, max) => max !== undefined && value !== '' && +value >= max;
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* `InputNumber` component is used for entering integer numbers.
|
|
43
|
-
* @since 2.2.0
|
|
41
|
+
/**
|
|
42
|
+
* `InputNumber` component is used for entering integer numbers.
|
|
43
|
+
* @since 2.2.0
|
|
44
44
|
*/
|
|
45
45
|
const InputNumber = _ref => {
|
|
46
46
|
let {
|
|
@@ -10,10 +10,10 @@ import Tooltip from '../Tooltip';
|
|
|
10
10
|
import { createProxyProps, wrapFunction } from '../utils';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
/**
|
|
14
|
-
* `Item` component is element of [ItemList](#!/ItemList) and it is presented as
|
|
15
|
-
* a combination of icon, text title and content (similar to [Media](#!/Media)).
|
|
16
|
-
* @since 0.0.48
|
|
13
|
+
/**
|
|
14
|
+
* `Item` component is element of [ItemList](#!/ItemList) and it is presented as
|
|
15
|
+
* a combination of icon, text title and content (similar to [Media](#!/Media)).
|
|
16
|
+
* @since 0.0.48
|
|
17
17
|
*/
|
|
18
18
|
const Item = _ref => {
|
|
19
19
|
let {
|
|
@@ -4,10 +4,10 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { wrapFunction } from '../utils';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* `ItemLink` component is a part of [ItemList](#!/ItemList) and
|
|
9
|
-
* is used for specifying a special action on the list (for example, adding new item).
|
|
10
|
-
* @since 2.3.0
|
|
7
|
+
/**
|
|
8
|
+
* `ItemLink` component is a part of [ItemList](#!/ItemList) and
|
|
9
|
+
* is used for specifying a special action on the list (for example, adding new item).
|
|
10
|
+
* @since 2.3.0
|
|
11
11
|
*/
|
|
12
12
|
const ItemLink = _ref => {
|
|
13
13
|
let {
|
|
@@ -23,10 +23,10 @@ const getNextSelectedValue = (value, prevValue, toggleable) => {
|
|
|
23
23
|
}
|
|
24
24
|
return value;
|
|
25
25
|
};
|
|
26
|
-
/**
|
|
27
|
-
* `ItemList` component is used for displaying list of [Items](#!/Item)
|
|
28
|
-
* according to [Grid](#!/Grid) principle.
|
|
29
|
-
* @since 0.0.48
|
|
26
|
+
/**
|
|
27
|
+
* `ItemList` component is used for displaying list of [Items](#!/Item)
|
|
28
|
+
* according to [Grid](#!/Grid) principle.
|
|
29
|
+
* @since 0.0.48
|
|
30
30
|
*/
|
|
31
31
|
class ItemList extends Component {
|
|
32
32
|
constructor(_props) {
|
|
@@ -160,8 +160,8 @@ class ItemList extends Component {
|
|
|
160
160
|
return result;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* There are some states where we can't manage hoverable state
|
|
163
|
+
/**
|
|
164
|
+
* There are some states where we can't manage hoverable state
|
|
165
165
|
*/
|
|
166
166
|
canManageHoverableState() {
|
|
167
167
|
const {
|
|
@@ -7,9 +7,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const DEFAULT_TAG = 'span';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* `Label` component is used for showing multiple characteristics or attributes of an object.
|
|
12
|
-
* @since 0.0.42
|
|
10
|
+
/**
|
|
11
|
+
* `Label` component is used for showing multiple characteristics or attributes of an object.
|
|
12
|
+
* @since 0.0.42
|
|
13
13
|
*/
|
|
14
14
|
const Label = _ref => {
|
|
15
15
|
let {
|
|
@@ -7,8 +7,8 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const LevelContext = /*#__PURE__*/createContext(0);
|
|
9
9
|
export const PortalContext = /*#__PURE__*/createContext(undefined);
|
|
10
|
-
/**
|
|
11
|
-
* `Layer` component.
|
|
10
|
+
/**
|
|
11
|
+
* `Layer` component.
|
|
12
12
|
*/
|
|
13
13
|
const Layer = _ref => {
|
|
14
14
|
let {
|
|
@@ -9,9 +9,9 @@ import { wrapFunction } from '../utils';
|
|
|
9
9
|
import Icon from '../Icon';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
/**
|
|
13
|
-
* `Link` is used for navigation purposes.
|
|
14
|
-
* @since 1.9.0
|
|
12
|
+
/**
|
|
13
|
+
* `Link` is used for navigation purposes.
|
|
14
|
+
* @since 1.9.0
|
|
15
15
|
*/
|
|
16
16
|
const Link = _ref => {
|
|
17
17
|
let {
|
|
@@ -134,10 +134,10 @@ const getHumanTotalRows = _ref2 => {
|
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
/**
|
|
138
|
-
* `List` component is used for displaying a collection of tabular data.
|
|
139
|
-
* [More details about designing of lists.](#!/Sets%20of%20Objects)
|
|
140
|
-
* @since 0.0.42
|
|
137
|
+
/**
|
|
138
|
+
* `List` component is used for displaying a collection of tabular data.
|
|
139
|
+
* [More details about designing of lists.](#!/Sets%20of%20Objects)
|
|
140
|
+
* @since 0.0.42
|
|
141
141
|
*/
|
|
142
142
|
class List extends Component {
|
|
143
143
|
constructor() {
|
|
@@ -452,9 +452,6 @@ class List extends Component {
|
|
|
452
452
|
sortColumn,
|
|
453
453
|
sortDirection
|
|
454
454
|
} = this.state;
|
|
455
|
-
if (!sortColumn || !sortDirection) {
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
455
|
const nextSortDirection = sortColumn === columnKey && sortDirection === 'ASC' ? 'DESC' : 'ASC';
|
|
459
456
|
const nextSortColumn = columnKey;
|
|
460
457
|
if (sortInPlace) {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import Button from '../Button';
|
|
4
4
|
import { MenuItem } from '../Menu';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
/**
|
|
7
|
-
* `ListAction` component is a part of [ListActions](#!/ListActions) component.
|
|
8
|
-
* It accepts the props of [Button](#!/Button) and [MenuItem](#!/MenuItem) components.
|
|
9
|
-
* @since 3.3.0
|
|
6
|
+
/**
|
|
7
|
+
* `ListAction` component is a part of [ListActions](#!/ListActions) component.
|
|
8
|
+
* It accepts the props of [Button](#!/Button) and [MenuItem](#!/MenuItem) components.
|
|
9
|
+
* @since 3.3.0
|
|
10
10
|
*/
|
|
11
11
|
const ListAction = _ref => {
|
|
12
12
|
let {
|
|
@@ -10,9 +10,9 @@ import ListAction from './ListAction';
|
|
|
10
10
|
import VerticalContext from '../VerticalContext';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
/**
|
|
14
|
-
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
15
|
-
* @since 3.3.0
|
|
13
|
+
/**
|
|
14
|
+
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
15
|
+
* @since 3.3.0
|
|
16
16
|
*/
|
|
17
17
|
const ListActions = _ref => {
|
|
18
18
|
let {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { MenuDivider } from '../Menu';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
/**
|
|
6
|
-
* `ListActionsDivider` component is a part of [ListActions](#!/ListActions) component.
|
|
7
|
-
* It accepts the props of [MenuDivider](#!/MenuDivider) component.
|
|
8
|
-
* @since 3.10.0
|
|
5
|
+
/**
|
|
6
|
+
* `ListActionsDivider` component is a part of [ListActions](#!/ListActions) component.
|
|
7
|
+
* It accepts the props of [MenuDivider](#!/MenuDivider) component.
|
|
8
|
+
* @since 3.10.0
|
|
9
9
|
*/
|
|
10
10
|
const ListActionsDivider = props => /*#__PURE__*/_jsx(MenuDivider, {
|
|
11
11
|
...props
|
|
@@ -63,10 +63,10 @@ const buttonConfig = getButtonContextValue({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* `ListEmptyView` component is used for displaying "empty" state of [List](#!/List)
|
|
68
|
-
* when there are no any objects are added to the list.
|
|
69
|
-
* @since 2.5.0
|
|
66
|
+
/**
|
|
67
|
+
* `ListEmptyView` component is used for displaying "empty" state of [List](#!/List)
|
|
68
|
+
* when there are no any objects are added to the list.
|
|
69
|
+
* @since 2.5.0
|
|
70
70
|
*/
|
|
71
71
|
const ListEmptyView = _ref => {
|
|
72
72
|
let {
|
|
@@ -31,10 +31,10 @@ const getDefaultText = key => {
|
|
|
31
31
|
fallback: fallback
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
/**
|
|
35
|
-
* `ListOperation` component is used in [Toolbar](#!/Toolbar) for performing
|
|
36
|
-
* operations on multiple objects in [List](#!/List).
|
|
37
|
-
* @since 2.4.0
|
|
34
|
+
/**
|
|
35
|
+
* `ListOperation` component is used in [Toolbar](#!/Toolbar) for performing
|
|
36
|
+
* operations on multiple objects in [List](#!/List).
|
|
37
|
+
* @since 2.4.0
|
|
38
38
|
*/
|
|
39
39
|
const ListOperation = _ref => {
|
|
40
40
|
let {
|
|
@@ -71,9 +71,9 @@ export const useTranslate = namespace => {
|
|
|
71
71
|
return typeof fallback === 'string' ? applyParams(fallback, params) : `[${key}]`;
|
|
72
72
|
}, [context, namespace]);
|
|
73
73
|
};
|
|
74
|
-
/**
|
|
75
|
-
* LocaleProvider provides a uniform localization support for built-in text of components.
|
|
76
|
-
* @since 0.0.42
|
|
74
|
+
/**
|
|
75
|
+
* LocaleProvider provides a uniform localization support for built-in text of components.
|
|
76
|
+
* @since 0.0.42
|
|
77
77
|
*/
|
|
78
78
|
class LocaleProvider extends PureComponent {
|
|
79
79
|
getChildContext() {
|
|
@@ -6,9 +6,9 @@ import classNames from 'classnames';
|
|
|
6
6
|
import { marked } from 'marked';
|
|
7
7
|
import { CLS_PREFIX } from '../../constants';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
/**
|
|
10
|
-
* `Markdown` component is used for creating content with rich text formatting.
|
|
11
|
-
* @since 0.0.42
|
|
9
|
+
/**
|
|
10
|
+
* `Markdown` component is used for creating content with rich text formatting.
|
|
11
|
+
* @since 0.0.42
|
|
12
12
|
*/
|
|
13
13
|
const Markdown = _ref => {
|
|
14
14
|
let {
|
|
@@ -7,11 +7,11 @@ 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
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
/**
|
|
11
|
-
* `Media` component is a combination of icon, text title and content.
|
|
12
|
-
* This layout was so widely spread in our products so we have decided to create a special component for it.
|
|
13
|
-
* Probably we should have named the component differently (not Media), but we didn't have better idea then ;)
|
|
14
|
-
* @since 0.0.45
|
|
10
|
+
/**
|
|
11
|
+
* `Media` component is a combination of icon, text title and content.
|
|
12
|
+
* This layout was so widely spread in our products so we have decided to create a special component for it.
|
|
13
|
+
* Probably we should have named the component differently (not Media), but we didn't have better idea then ;)
|
|
14
|
+
* @since 0.0.45
|
|
15
15
|
*/
|
|
16
16
|
const Media = _ref => {
|
|
17
17
|
let {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
/**
|
|
7
|
-
* `MediaSection` is a part of [Media](#!/Media) component.
|
|
8
|
-
* @since 0.0.68
|
|
6
|
+
/**
|
|
7
|
+
* `MediaSection` is a part of [Media](#!/Media) component.
|
|
8
|
+
* @since 0.0.68
|
|
9
9
|
*/
|
|
10
10
|
const MediaSection = _ref => {
|
|
11
11
|
let {
|
|
@@ -16,15 +16,15 @@ const hasIconItem = children => {
|
|
|
16
16
|
});
|
|
17
17
|
return result;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* `Menu` component displays grouped controls for navigating the UI, performing actions on objects, or showing
|
|
21
|
-
* options for [Lists](#!/List) (for example, sorting and filtering settings). `Menu` is most typically used in a
|
|
22
|
-
* [Dropdown](#!/Dropdown).
|
|
23
|
-
*
|
|
24
|
-
* `Menu` consists of several [Menu Items](#!/MenuItem) (or [Selectable Menu
|
|
25
|
-
* Items](#!/MenuSelectableItem)) which can be grouped by [Menu Headers](#!/MenuHeader)
|
|
26
|
-
* or separated by [Menu Dividers](#!/MenuDivider).
|
|
27
|
-
* @since 0.0.55
|
|
19
|
+
/**
|
|
20
|
+
* `Menu` component displays grouped controls for navigating the UI, performing actions on objects, or showing
|
|
21
|
+
* options for [Lists](#!/List) (for example, sorting and filtering settings). `Menu` is most typically used in a
|
|
22
|
+
* [Dropdown](#!/Dropdown).
|
|
23
|
+
*
|
|
24
|
+
* `Menu` consists of several [Menu Items](#!/MenuItem) (or [Selectable Menu
|
|
25
|
+
* Items](#!/MenuSelectableItem)) which can be grouped by [Menu Headers](#!/MenuHeader)
|
|
26
|
+
* or separated by [Menu Dividers](#!/MenuDivider).
|
|
27
|
+
* @since 0.0.55
|
|
28
28
|
*/
|
|
29
29
|
const Menu = /*#__PURE__*/forwardRef(function Menu(_ref, ref) {
|
|
30
30
|
let {
|
|
@@ -5,9 +5,9 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
5
5
|
import Icon, { ICON_SIZE_16 } from '../Icon';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
/**
|
|
9
|
-
* `MenuBaseItem` component.
|
|
10
|
-
* @since 0.0.60
|
|
8
|
+
/**
|
|
9
|
+
* `MenuBaseItem` component.
|
|
10
|
+
* @since 0.0.60
|
|
11
11
|
*/
|
|
12
12
|
const MenuBaseItem = _ref => {
|
|
13
13
|
let {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
/**
|
|
7
|
-
* `MenuDivider` is a part of [Menu](#!/Menu) component.
|
|
8
|
-
* @since 0.0.57
|
|
6
|
+
/**
|
|
7
|
+
* `MenuDivider` is a part of [Menu](#!/Menu) component.
|
|
8
|
+
* @since 0.0.57
|
|
9
9
|
*/
|
|
10
10
|
const MenuDivider = _ref => {
|
|
11
11
|
let {
|
|
@@ -4,9 +4,9 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import MenuBaseItem from './MenuBaseItem';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* `MenuHeader` is a part of [Menu](#!/Menu) component.
|
|
9
|
-
* @since 0.0.57
|
|
7
|
+
/**
|
|
8
|
+
* `MenuHeader` is a part of [Menu](#!/Menu) component.
|
|
9
|
+
* @since 0.0.57
|
|
10
10
|
*/
|
|
11
11
|
const MenuHeader = _ref => {
|
|
12
12
|
let {
|
|
@@ -7,9 +7,9 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
7
7
|
import { createProxyProps } from '../utils';
|
|
8
8
|
import MenuBaseItem from './MenuBaseItem';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
/**
|
|
11
|
-
* `MenuItem` is a part of [Menu](#!/Menu) component.
|
|
12
|
-
* @since 0.0.55
|
|
10
|
+
/**
|
|
11
|
+
* `MenuItem` is a part of [Menu](#!/Menu) component.
|
|
12
|
+
* @since 0.0.55
|
|
13
13
|
*/
|
|
14
14
|
const MenuItem = _ref => {
|
|
15
15
|
let {
|
|
@@ -4,9 +4,9 @@ import classNames from 'classnames';
|
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import MenuItem from './MenuItem';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* `MenuSelectableItem` is a part of [Menu](#!/Menu) component.
|
|
9
|
-
* @since 0.0.57
|
|
7
|
+
/**
|
|
8
|
+
* `MenuSelectableItem` is a part of [Menu](#!/Menu) component.
|
|
9
|
+
* @since 0.0.57
|
|
10
10
|
*/
|
|
11
11
|
const MenuSelectableItem = _ref => {
|
|
12
12
|
let {
|
|
@@ -10,8 +10,8 @@ import Layer from '../Layer';
|
|
|
10
10
|
import FocusTrap from '../FocusTrap';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
/**
|
|
14
|
-
* `Overlay` component.
|
|
13
|
+
/**
|
|
14
|
+
* `Overlay` component.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
let overlaysCount = 0;
|
|
@@ -7,9 +7,9 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
7
7
|
import Heading from '../Heading';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
/**
|
|
11
|
-
* `PageHeader` component is used for identification of the current page.
|
|
12
|
-
* @since 0.0.35
|
|
10
|
+
/**
|
|
11
|
+
* `PageHeader` component is used for identification of the current page.
|
|
12
|
+
* @since 0.0.35
|
|
13
13
|
*/
|
|
14
14
|
const PageHeader = _ref => {
|
|
15
15
|
let {
|
|
@@ -15,9 +15,9 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
export const ITEMS_PER_PAGE_OPTIONS = [25, 100, 'all'];
|
|
16
16
|
const VIEW_DEFAULT = 'default';
|
|
17
17
|
const VIEW_POPOVER = 'popover';
|
|
18
|
-
/**
|
|
19
|
-
* `Pagination` component is used for navigating objects in [List](#!/List) which content is displayed on multiple pages.
|
|
20
|
-
* @since 0.0.54
|
|
18
|
+
/**
|
|
19
|
+
* `Pagination` component is used for navigating objects in [List](#!/List) which content is displayed on multiple pages.
|
|
20
|
+
* @since 0.0.54
|
|
21
21
|
*/
|
|
22
22
|
const Pagination = _ref => {
|
|
23
23
|
let {
|