@plesk/ui-library 3.40.4 → 3.40.6
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 +6 -4
- 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 +4 -18
- 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 +3 -3
- 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 +1875 -1875
- 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 +7 -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 -4
- 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 +20 -4
- 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 +3 -3
- 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 +3 -3
- 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 +5 -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 +15 -16
- 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 +34 -34
- 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/Tooltip/Tooltip.js +4 -4
- package/cjs/components/Tour/Tour.js +5 -5
- package/cjs/components/Translate/Translate.js +3 -3
- package/cjs/components/index.js +21 -11
- package/cjs/hooks/useMutationObserver.js +30 -0
- package/cjs/hooks/useSqueeze.js +13 -1
- 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 +1875 -1875
- 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 +5485 -5418
- 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 +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 +6 -4
- 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 +4 -18
- 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 +3 -3
- 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 +1875 -1875
- 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 +7 -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 -4
- 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 +19 -4
- 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 +3 -3
- 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 +3 -3
- 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 +5 -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 +15 -16
- 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 +34 -34
- 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/Tooltip/Tooltip.js +4 -4
- package/esm/components/Tour/Tour.js +5 -5
- package/esm/components/Translate/Translate.js +3 -3
- package/esm/components/index.js +1 -2
- package/esm/hooks/useMutationObserver.js +23 -0
- package/esm/hooks/useSqueeze.js +13 -1
- 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.9eeb2c9d.js +2 -0
- package/styleguide/images/no-image.svg +6 -6
- package/styleguide/images/rating.svg +6 -6
- package/styleguide/images/symbols.svg +1875 -1875
- 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/AutoClosable/AutoClosable.d.ts +2 -2
- package/types/src/components/CodeEditor/CodeEditor.d.ts +6 -4
- package/types/src/components/Drawer/DrawerProgress.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessage.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts +1 -1
- package/types/src/components/ExtendedStatusMessage/index.d.ts +5 -0
- package/types/src/components/FormField/FormField.d.ts +2 -2
- package/types/src/components/FormFieldPassword/index.d.ts +1 -0
- package/types/src/components/Grid/Grid.d.ts +3 -3
- package/types/src/components/Heading/Heading.d.ts +1 -1
- package/types/src/components/Heading/index.d.ts +1 -0
- package/types/src/components/Hint/Hint.d.ts +1 -1
- package/types/src/components/Hint/index.d.ts +1 -0
- package/types/src/components/InputNumber/InputNumber.d.ts +5 -0
- package/types/src/components/ItemLink/ItemLink.d.ts +1 -1
- package/types/src/components/ItemLink/index.d.ts +1 -0
- package/types/src/components/ItemList/ItemList.d.ts +4 -4
- package/types/src/components/ItemList/index.d.ts +1 -0
- package/types/src/components/Label/Label.d.ts +3 -2
- package/types/src/components/Label/index.d.ts +1 -0
- package/types/src/components/Layout/Layout.d.ts +1 -1
- package/types/src/components/List/List.d.ts +27 -27
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +2 -1
- package/types/src/components/Markdown/index.d.ts +1 -0
- package/types/src/components/Menu/index.d.ts +1 -0
- package/types/src/components/PageHeader/PageHeader.d.ts +1 -1
- package/types/src/components/PageHeader/index.d.ts +1 -0
- package/types/src/components/Paragraph/Paragraph.d.ts +1 -1
- package/types/src/components/Paragraph/index.d.ts +1 -0
- package/types/src/components/Popover/Popover.d.ts +6 -4
- package/types/src/components/Popper/Popper.d.ts +3 -2
- package/types/src/components/Progress/Progress.d.ts +1 -1
- package/types/src/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/types/src/components/ProgressBar/index.d.ts +1 -0
- package/types/src/components/ProgressDialog/ProgressDialog.d.ts +2 -2
- package/types/src/components/Section/Section.d.ts +1 -1
- package/types/src/components/SegmentedControl/SegmentedControl.d.ts +2 -1
- package/types/src/components/Select/Select.d.ts +1 -1
- package/types/src/components/Select/SelectOption.d.ts +1 -1
- package/types/src/components/Select/SelectOptionGroup.d.ts +1 -1
- package/types/src/components/Select/index.d.ts +3 -0
- package/types/src/components/Status/Status.d.ts +3 -3
- package/types/src/components/Status/index.d.ts +2 -0
- package/types/src/components/StatusMessage/index.d.ts +1 -0
- package/types/src/components/Tabs/Tabs.d.ts +1 -1
- package/types/src/components/Text/Text.d.ts +1 -1
- package/types/src/components/Text/index.d.ts +1 -0
- package/types/src/components/Toaster/Toaster.d.ts +1 -1
- package/types/src/components/Toaster/index.d.ts +1 -0
- package/types/src/components/Toolbar/ToolbarExpander.d.ts +1 -1
- package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
- package/types/src/components/Toolbar/index.d.ts +1 -0
- package/types/src/components/Tour/index.d.ts +1 -0
- package/types/src/components/Translate/Translate.d.ts +1 -1
- package/types/src/components/index.d.ts +23 -6
- package/types/src/hooks/useMutationObserver.d.ts +8 -0
- package/styleguide/build/bundle.f82c55df.js +0 -2
- /package/styleguide/build/{bundle.f82c55df.js.LICENSE.txt → bundle.9eeb2c9d.js.LICENSE.txt} +0 -0
|
@@ -19,9 +19,9 @@ const width = value => {
|
|
|
19
19
|
}
|
|
20
20
|
return result;
|
|
21
21
|
};
|
|
22
|
-
/**
|
|
23
|
-
* `Rating` component is used for showing and collecting feedback of users' opinion in 0-5 grade scale.
|
|
24
|
-
* @since 0.0.42
|
|
22
|
+
/**
|
|
23
|
+
* `Rating` component is used for showing and collecting feedback of users' opinion in 0-5 grade scale.
|
|
24
|
+
* @since 0.0.42
|
|
25
25
|
*/
|
|
26
26
|
const Rating = _ref => {
|
|
27
27
|
let {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="56" height="248" viewBox="0 0 51 248">
|
|
2
|
-
<defs><symbol id="star"><path stroke-width="3" d="m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z"></path></symbol></defs>
|
|
3
|
-
<use x="0" y="0" fill="none" stroke="#ff9500" href="#star"></use>
|
|
4
|
-
<use x="0" y="100" fill="#ff9500" stroke="#ff9500" href="#star"></use>
|
|
5
|
-
<use x="0" y="200" fill="#848484" stroke="#848484" href="#star"></use>
|
|
6
|
-
</svg>
|
|
1
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="56" height="248" viewBox="0 0 51 248">
|
|
2
|
+
<defs><symbol id="star"><path stroke-width="3" d="m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z"></path></symbol></defs>
|
|
3
|
+
<use x="0" y="0" fill="none" stroke="#ff9500" href="#star"></use>
|
|
4
|
+
<use x="0" y="100" fill="#ff9500" stroke="#ff9500" href="#star"></use>
|
|
5
|
+
<use x="0" y="200" fill="#848484" stroke="#848484" href="#star"></use>
|
|
6
|
+
</svg>
|
|
@@ -224,10 +224,10 @@ class Section extends _react.Component {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
/**
|
|
228
|
-
* `Section` component is used for dividing of complex content into groups for better readability
|
|
229
|
-
* and comprehension of the presented information.
|
|
230
|
-
* @since 0.0.54
|
|
227
|
+
/**
|
|
228
|
+
* `Section` component is used for dividing of complex content into groups for better readability
|
|
229
|
+
* and comprehension of the presented information.
|
|
230
|
+
* @since 0.0.54
|
|
231
231
|
*/
|
|
232
232
|
const SectionWrapper = _ref8 => {
|
|
233
233
|
let {
|
|
@@ -14,9 +14,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
14
14
|
|
|
15
15
|
const SECTION_ITEM_BASE_CLASS_NAME = exports.SECTION_ITEM_BASE_CLASS_NAME = `${_constants.CLS_PREFIX}section-item`;
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* `SectionItem` component is used for showing parameters and its values in [Section](#!/Section).
|
|
19
|
-
* @since 0.0.54
|
|
17
|
+
/**
|
|
18
|
+
* `SectionItem` component is used for showing parameters and its values in [Section](#!/Section).
|
|
19
|
+
* @since 0.0.54
|
|
20
20
|
*/
|
|
21
21
|
const SectionItem = _ref => {
|
|
22
22
|
let {
|
|
@@ -23,10 +23,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
23
23
|
const alphaSort = (a, b) => a > b ? 1 : -1;
|
|
24
24
|
const SEGMENTED_CONTROL_BASE_CLASS_NAME = exports.SEGMENTED_CONTROL_BASE_CLASS_NAME = `${_constants.CLS_PREFIX}segmented-control`;
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* `Segmented Control` is a group of several [Buttons](#!/Button)
|
|
28
|
-
* each of which functions as a mutually exclusive option.
|
|
29
|
-
* @since 0.0.68
|
|
26
|
+
/**
|
|
27
|
+
* `Segmented Control` is a group of several [Buttons](#!/Button)
|
|
28
|
+
* each of which functions as a mutually exclusive option.
|
|
29
|
+
* @since 0.0.68
|
|
30
30
|
*/
|
|
31
31
|
class SegmentedControl extends _react.Component {
|
|
32
32
|
constructor() {
|
|
@@ -44,7 +44,7 @@ const MultiValue = _ref => {
|
|
|
44
44
|
focusable: "false",
|
|
45
45
|
"aria-hidden": "true",
|
|
46
46
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
47
|
-
d: "M3.85 8.854a.498.498 0 1 1-.704-.704L5.296 6l-2.15-2.15a.498.498 0 0 1 .704-.704L6 5.296l2.15-2.15a.498.498 0 1 1
|
|
47
|
+
d: "M3.85 8.854a.498.498 0 1 1-.704-.704L5.296 6l-2.15-2.15a.498.498 0 0 1 .704-.704L6 5.296l2.15-2.15a.498.498 0 1 1 .704.704L6.704 6l2.15 2.15a.498.498 0 0 1-.704.704L6 6.704l-2.15 2.15z"
|
|
48
48
|
})
|
|
49
49
|
})
|
|
50
50
|
})]
|
|
@@ -95,9 +95,9 @@ const getNextValue = (value, prevValue) => {
|
|
|
95
95
|
}
|
|
96
96
|
return value;
|
|
97
97
|
};
|
|
98
|
-
/**
|
|
99
|
-
* `Select` component is used for making a choice among a set of related options.
|
|
100
|
-
* @since 2.3.0
|
|
98
|
+
/**
|
|
99
|
+
* `Select` component is used for making a choice among a set of related options.
|
|
100
|
+
* @since 2.3.0
|
|
101
101
|
*/
|
|
102
102
|
const Select = _ref => {
|
|
103
103
|
let {
|
|
@@ -226,7 +226,7 @@ const SelectControl = /*#__PURE__*/(0, _react.forwardRef)(function SelectControl
|
|
|
226
226
|
"aria-hidden": "true",
|
|
227
227
|
focusable: "false",
|
|
228
228
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
229
|
-
d: "M.85 7.854a.498.498 0 1 1-.704-.704L3.296 4 .146.85A.498.498 0 0 1 .85.146L4 3.296 7.15.146a.498.498 0 0 1
|
|
229
|
+
d: "M.85 7.854a.498.498 0 1 1-.704-.704L3.296 4 .146.85A.498.498 0 0 1 .85.146L4 3.296 7.15.146a.498.498 0 0 1 .704.704L4.704 4l3.15 3.15a.498.498 0 0 1-.704.704L4 4.704.85 7.854z"
|
|
230
230
|
})
|
|
231
231
|
})
|
|
232
232
|
})
|
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* `SelectOption` is a part of [SelectOptionGroup](#!/SelectOptionGroup) component.
|
|
12
|
-
* @since 2.3.0
|
|
10
|
+
/**
|
|
11
|
+
* `SelectOption` is a part of [SelectOptionGroup](#!/SelectOptionGroup) component.
|
|
12
|
+
* @since 2.3.0
|
|
13
13
|
*/
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
15
|
const SelectOption = _props => {
|
|
@@ -7,9 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* `SelectOptionGroup` is a part of [Select](#!/Select) component. It can be used for splitting the list of all options into groups.
|
|
12
|
-
* @since 2.3.0
|
|
10
|
+
/**
|
|
11
|
+
* `SelectOptionGroup` is a part of [Select](#!/Select) component. It can be used for splitting the list of all options into groups.
|
|
12
|
+
* @since 2.3.0
|
|
13
13
|
*/
|
|
14
14
|
const SelectOptionGroup = _props => {
|
|
15
15
|
// styleguidist doesn't show Props & Methods if component renders nothing
|
|
@@ -11,10 +11,10 @@ var _constants = require("../../constants");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* `Skeleton` (or content-placeholder) is placeholder preview of content before the data gets loaded to reduce load-time frustration.
|
|
16
|
-
* Skeleton is used for non-text components, images, media-objects, etc.
|
|
17
|
-
* @since 3.28.0
|
|
14
|
+
/**
|
|
15
|
+
* `Skeleton` (or content-placeholder) is placeholder preview of content before the data gets loaded to reduce load-time frustration.
|
|
16
|
+
* Skeleton is used for non-text components, images, media-objects, etc.
|
|
17
|
+
* @since 3.28.0
|
|
18
18
|
*/
|
|
19
19
|
const Skeleton = _ref => {
|
|
20
20
|
let {
|
|
@@ -11,9 +11,9 @@ var _constants = require("../../constants");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Skeleton for tabs component
|
|
16
|
-
* @since `3.28.0
|
|
14
|
+
/**
|
|
15
|
+
* Skeleton for tabs component
|
|
16
|
+
* @since `3.28.0
|
|
17
17
|
*/
|
|
18
18
|
const SkeletonTabs = _ref => {
|
|
19
19
|
let {
|
|
@@ -11,9 +11,9 @@ var _constants = require("../../constants");
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
|
|
16
|
-
* @since 3.28.0
|
|
14
|
+
/**
|
|
15
|
+
* Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
|
|
16
|
+
* @since 3.28.0
|
|
17
17
|
*/
|
|
18
18
|
const SkeletonText = _ref => {
|
|
19
19
|
let {
|
|
@@ -10,8 +10,8 @@ var _constants = require("../../constants");
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* `Spinner` component.
|
|
13
|
+
/**
|
|
14
|
+
* `Spinner` component.
|
|
15
15
|
*/
|
|
16
16
|
const Spinner = _ref => {
|
|
17
17
|
let {
|
|
@@ -37,11 +37,11 @@ const focusStrategy = {
|
|
|
37
37
|
return container.children[1].querySelector('button');
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
/**
|
|
41
|
-
* `Split Button` is a combination of a standard [Button](#!/Button) with a [Dropdown](#!/Dropdown) menu.
|
|
42
|
-
* It is used for grouping several related actions when one of the actions should be accessible immediately
|
|
43
|
-
* because it is used more often than others.
|
|
44
|
-
* @since 0.0.40
|
|
40
|
+
/**
|
|
41
|
+
* `Split Button` is a combination of a standard [Button](#!/Button) with a [Dropdown](#!/Dropdown) menu.
|
|
42
|
+
* It is used for grouping several related actions when one of the actions should be accessible immediately
|
|
43
|
+
* because it is used more often than others.
|
|
44
|
+
* @since 0.0.40
|
|
45
45
|
*/
|
|
46
46
|
const SplitButton = _ref => {
|
|
47
47
|
let {
|
|
@@ -16,9 +16,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
|
|
17
17
|
const isEqual = (a, b) => a.top === b.top && a.left === b.left && a.right === b.right && a.bottom === b.bottom && a.width === b.width && a.height === b.height;
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* The component can be used to attract the user's attention to a specific element on the page.
|
|
21
|
-
* @since 3.0.1
|
|
19
|
+
/**
|
|
20
|
+
* The component can be used to attract the user's attention to a specific element on the page.
|
|
21
|
+
* @since 3.0.1
|
|
22
22
|
*/
|
|
23
23
|
const Spot = _ref => {
|
|
24
24
|
let {
|
|
@@ -27,9 +27,9 @@ const toIcon = (icon, intent) => {
|
|
|
27
27
|
} : undefined);
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* `Status` component is used for indicating state of an object or the system.
|
|
32
|
-
* @since 0.0.68
|
|
30
|
+
/**
|
|
31
|
+
* `Status` component is used for indicating state of an object or the system.
|
|
32
|
+
* @since 0.0.68
|
|
33
33
|
*/
|
|
34
34
|
const Status = _ref => {
|
|
35
35
|
let {
|
|
@@ -13,10 +13,10 @@ var _intentIconMap = require("../intentIconMap");
|
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* `StatusMessage` is used for notifying users about events happened (or going to happen) in the system.
|
|
18
|
-
* For showing results of performed operations [Toaster](#!/Toaster) should be used.
|
|
19
|
-
* @since 1.12.0
|
|
16
|
+
/**
|
|
17
|
+
* `StatusMessage` is used for notifying users about events happened (or going to happen) in the system.
|
|
18
|
+
* For showing results of performed operations [Toaster](#!/Toaster) should be used.
|
|
19
|
+
* @since 1.12.0
|
|
20
20
|
*/
|
|
21
21
|
const StatusMessage = _ref => {
|
|
22
22
|
let {
|
|
@@ -32,6 +32,7 @@ const StatusMessage = _ref => {
|
|
|
32
32
|
...props,
|
|
33
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
34
34
|
name: _intentIconMap.intentIconMap[intent],
|
|
35
|
+
intent: intent,
|
|
35
36
|
className: `${baseClassName}__icon`
|
|
36
37
|
}), children]
|
|
37
38
|
});
|
|
@@ -12,9 +12,9 @@ var _react = require("react");
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* `Subnav` component is used when you need a second level navigation under [Tabs](#!/Tabs) on the screen.
|
|
17
|
-
* @since 0.0.42
|
|
15
|
+
/**
|
|
16
|
+
* `Subnav` component is used when you need a second level navigation under [Tabs](#!/Tabs) on the screen.
|
|
17
|
+
* @since 0.0.42
|
|
18
18
|
*/
|
|
19
19
|
const Subnav = _ref => {
|
|
20
20
|
let {
|
|
@@ -92,8 +92,8 @@ const Subnav = _ref => {
|
|
|
92
92
|
children: items
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
/**
|
|
96
|
-
* SubnavItem component.
|
|
95
|
+
/**
|
|
96
|
+
* SubnavItem component.
|
|
97
97
|
*/
|
|
98
98
|
const SubnavItem = _ref2 => {
|
|
99
99
|
let {
|
|
@@ -11,10 +11,10 @@ var _Tooltip = _interopRequireDefault(require("../Tooltip"));
|
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* `Switch` component is used for changing the state of an object or system preferences.
|
|
16
|
-
* It provides immediate results that is why it should not be used in Form.
|
|
17
|
-
* @since 0.0.42
|
|
14
|
+
/**
|
|
15
|
+
* `Switch` component is used for changing the state of an object or system preferences.
|
|
16
|
+
* It provides immediate results that is why it should not be used in Form.
|
|
17
|
+
* @since 0.0.42
|
|
18
18
|
*/
|
|
19
19
|
const Switch = _ref => {
|
|
20
20
|
let {
|
|
@@ -12,9 +12,9 @@ var _Section = _interopRequireDefault(require("../Section"));
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* `SwitchesPanel` component is used for grouping several [SwitchesPanelItems](#!/SwitchesPanelItem) into one set.
|
|
17
|
-
* @since 0.3.0
|
|
15
|
+
/**
|
|
16
|
+
* `SwitchesPanel` component is used for grouping several [SwitchesPanelItems](#!/SwitchesPanelItem) into one set.
|
|
17
|
+
* @since 0.3.0
|
|
18
18
|
*/
|
|
19
19
|
const SwitchesPanel = _ref => {
|
|
20
20
|
let {
|
|
@@ -13,10 +13,10 @@ var _Popover = _interopRequireDefault(require("../Popover"));
|
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* `SwitchesPanelItem` component is used for combining [Switch](#!/Switch) component with text title and description.
|
|
18
|
-
* Used in [SwitchesPanel](#!/SwitchesPanel).
|
|
19
|
-
* @since 0.3.0
|
|
16
|
+
/**
|
|
17
|
+
* `SwitchesPanelItem` component is used for combining [Switch](#!/Switch) component with text title and description.
|
|
18
|
+
* Used in [SwitchesPanel](#!/SwitchesPanel).
|
|
19
|
+
* @since 0.3.0
|
|
20
20
|
*/
|
|
21
21
|
const SwitchesPanelItem = _ref => {
|
|
22
22
|
let {
|
|
@@ -12,7 +12,6 @@ var _constants = require("../../constants");
|
|
|
12
12
|
var _utils = require("../../utils");
|
|
13
13
|
var _Badge = _interopRequireDefault(require("../Badge"));
|
|
14
14
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
15
|
-
var _ButtonGroup = _interopRequireDefault(require("../ButtonGroup"));
|
|
16
15
|
var _DistractionFreeModeContext = _interopRequireDefault(require("../DistractionFreeModeContext"));
|
|
17
16
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
18
17
|
var _Menu = _interopRequireWildcard(require("../Menu"));
|
|
@@ -23,9 +22,9 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
23
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
23
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
25
24
|
|
|
26
|
-
/**
|
|
27
|
-
* `SearchBar` component is used for providing type-as-you-go search.
|
|
28
|
-
* @since 0.0.58
|
|
25
|
+
/**
|
|
26
|
+
* `SearchBar` component is used for providing type-as-you-go search.
|
|
27
|
+
* @since 0.0.58
|
|
29
28
|
*/
|
|
30
29
|
class SearchBar extends _react.Component {
|
|
31
30
|
constructor() {
|
|
@@ -348,7 +347,7 @@ class SearchBar extends _react.Component {
|
|
|
348
347
|
} = this.state;
|
|
349
348
|
const isCollapsed = this.isResponsive();
|
|
350
349
|
const distractionFreeModeEnabled = Boolean(distractionFreeMode && distractionFreeMode.enabled);
|
|
351
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
350
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
352
351
|
className: (0, _classnames.default)(baseClassName, {
|
|
353
352
|
[`${baseClassName}--focused`]: focused
|
|
354
353
|
}, className),
|
|
@@ -357,16 +356,16 @@ class SearchBar extends _react.Component {
|
|
|
357
356
|
minWidth
|
|
358
357
|
},
|
|
359
358
|
...props,
|
|
360
|
-
children:
|
|
359
|
+
children: isCollapsed && (collapsable || !distractionFreeModeEnabled) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
|
|
360
|
+
intent: "info",
|
|
361
|
+
hidden: !value,
|
|
362
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
363
|
+
icon: "search",
|
|
364
|
+
onClick: this.handleExpand
|
|
365
|
+
})
|
|
366
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
361
367
|
className: `${baseClassName}__group`,
|
|
362
|
-
children:
|
|
363
|
-
intent: "info",
|
|
364
|
-
hidden: !value,
|
|
365
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
366
|
-
icon: "search",
|
|
367
|
-
onClick: this.handleExpand
|
|
368
|
-
})
|
|
369
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.default, {
|
|
368
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.default, {
|
|
370
369
|
innerRef: ref => this.search = ref,
|
|
371
370
|
className: `${baseClassName}__input`,
|
|
372
371
|
size: "fill",
|
|
@@ -396,8 +395,8 @@ class SearchBar extends _react.Component {
|
|
|
396
395
|
ghost: true
|
|
397
396
|
})]
|
|
398
397
|
})
|
|
399
|
-
})
|
|
400
|
-
})
|
|
398
|
+
}), Array.isArray(results) && this.renderResults(results), results && !Array.isArray(results) && results.type === _Menu.default && this.renderResultsMenu(results)]
|
|
399
|
+
})
|
|
401
400
|
});
|
|
402
401
|
}
|
|
403
402
|
}
|
|
@@ -8,13 +8,13 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
8
8
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
9
9
|
/* eslint-disable react/no-unused-prop-types */
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* `Tab` is an individual element of the [Tabs](#!/Tabs) component.
|
|
13
|
-
*
|
|
14
|
-
* Each `Tab` can display an icon near the tab name for easier identification.
|
|
15
|
-
* It can also display a [Label](#!/Label) next to the tab name for showing additional information about its content.
|
|
16
|
-
* You can make `Tabs` closeable, for example, if you are using them for opening and displaying files.
|
|
17
|
-
* @since 0.0.35
|
|
11
|
+
/**
|
|
12
|
+
* `Tab` is an individual element of the [Tabs](#!/Tabs) component.
|
|
13
|
+
*
|
|
14
|
+
* Each `Tab` can display an icon near the tab name for easier identification.
|
|
15
|
+
* It can also display a [Label](#!/Label) next to the tab name for showing additional information about its content.
|
|
16
|
+
* You can make `Tabs` closeable, for example, if you are using them for opening and displaying files.
|
|
17
|
+
* @since 0.0.35
|
|
18
18
|
*/
|
|
19
19
|
const Tab = _ref => {
|
|
20
20
|
let {
|
|
@@ -25,12 +25,12 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
25
|
const ADDON_LEFT_PADDING = 5;
|
|
26
26
|
const MIN_ADDON_WIDTH_DEFAULT = 150;
|
|
27
27
|
const COLLAPSED_SEARCH_WIDTH = 60;
|
|
28
|
-
/**
|
|
29
|
-
* `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
|
|
30
|
-
* in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
|
|
31
|
-
* the content is broken into logical groups and each group is displayed under its own [Tab](#!/Tab) that serves both as a
|
|
32
|
-
* group name and a navigation button.
|
|
33
|
-
* @since 0.0.35
|
|
28
|
+
/**
|
|
29
|
+
* `Tabs` component is a content area with a group of individual [Tab](#!/Tab) elements, each displaying different content
|
|
30
|
+
* in the same screen area. `Tabs` are used when you have too much content to display in one place at the same time, so
|
|
31
|
+
* the content is broken into logical groups and each group is displayed under its own [Tab](#!/Tab) that serves both as a
|
|
32
|
+
* group name and a navigation button.
|
|
33
|
+
* @since 0.0.35
|
|
34
34
|
*/
|
|
35
35
|
class Tabs extends _react.Component {
|
|
36
36
|
constructor() {
|
|
@@ -12,9 +12,9 @@ var _OnDarkContext = _interopRequireDefault(require("../OnDarkContext"));
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* `Text` component is used for displaying inline text. For text blocks use [Paragraph](#!/Paragraph).
|
|
17
|
-
* @since 1.1.0
|
|
15
|
+
/**
|
|
16
|
+
* `Text` component is used for displaying inline text. For text blocks use [Paragraph](#!/Paragraph).
|
|
17
|
+
* @since 1.1.0
|
|
18
18
|
*/
|
|
19
19
|
const Text = _ref => {
|
|
20
20
|
let {
|
|
@@ -27,9 +27,9 @@ const getMinMax = rows => {
|
|
|
27
27
|
};
|
|
28
28
|
const AVAILABLE_SIZES = new Set(['sm', 'md', 'lg', 'xl', 'fill']);
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* `TextArea` is used for entering long text (like email body, descriptions, comments).
|
|
32
|
-
* @since 1.9.0
|
|
30
|
+
/**
|
|
31
|
+
* `TextArea` is used for entering long text (like email body, descriptions, comments).
|
|
32
|
+
* @since 1.9.0
|
|
33
33
|
*/
|
|
34
34
|
const TextArea = _ref => {
|
|
35
35
|
let {
|
|
@@ -16,9 +16,9 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
var _Toaster; // Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
18
18
|
let toastId = 0;
|
|
19
|
-
/**
|
|
20
|
-
* `Toaster` is used for notifying about events happened in the system. For example, about results of performed operations.
|
|
21
|
-
* @since 0.0.42
|
|
19
|
+
/**
|
|
20
|
+
* `Toaster` is used for notifying about events happened in the system. For example, about results of performed operations.
|
|
21
|
+
* @since 0.0.42
|
|
22
22
|
*/
|
|
23
23
|
class Toaster extends _react.Component {
|
|
24
24
|
constructor() {
|
|
@@ -43,21 +43,21 @@ class Toaster extends _react.Component {
|
|
|
43
43
|
return Boolean(this.props.toasts);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* Add a new toast
|
|
48
|
-
*
|
|
49
|
-
* `intent` - Visual intent color to apply to component. (Type: `oneOf` 'info', 'success', 'warning', 'danger'. *Required*.)<br>
|
|
50
|
-
* `accent` - Contrast (light) version of the component. (Type: `boolean`. Default: 'undefined'.)<br>
|
|
51
|
-
* `icon` - Name of icon or [Icon](#!/Icon) component. (Type: `oneOfType` 'string', 'object', 'element'. Default: `undefined`.)<br>
|
|
52
|
-
* `message` - Message to display in the body of the toast. (Type: `any`. Default: `undefined`.)<br>
|
|
53
|
-
* `onClose` - onClose handler. (Type: `func`. Default: `undefined`.)<br>
|
|
54
|
-
* `closable` - Show close control (cross mark). (Type: `boolean`. Default: `true`.)<br>
|
|
55
|
-
* `autoClosable` - Whether call `onClose` after 6 seconds or not.
|
|
56
|
-
* Enabled by default when the position is "top-end" and a toast has "success" intent. (Type: `boolean`. Default: 'undefined'.)<br>
|
|
57
|
-
* ---
|
|
58
|
-
* @param {Object} props **Toast props**:
|
|
59
|
-
* @returns {string} New toast key
|
|
60
|
-
* @public
|
|
46
|
+
/**
|
|
47
|
+
* Add a new toast
|
|
48
|
+
*
|
|
49
|
+
* `intent` - Visual intent color to apply to component. (Type: `oneOf` 'info', 'success', 'warning', 'danger'. *Required*.)<br>
|
|
50
|
+
* `accent` - Contrast (light) version of the component. (Type: `boolean`. Default: 'undefined'.)<br>
|
|
51
|
+
* `icon` - Name of icon or [Icon](#!/Icon) component. (Type: `oneOfType` 'string', 'object', 'element'. Default: `undefined`.)<br>
|
|
52
|
+
* `message` - Message to display in the body of the toast. (Type: `any`. Default: `undefined`.)<br>
|
|
53
|
+
* `onClose` - onClose handler. (Type: `func`. Default: `undefined`.)<br>
|
|
54
|
+
* `closable` - Show close control (cross mark). (Type: `boolean`. Default: `true`.)<br>
|
|
55
|
+
* `autoClosable` - Whether call `onClose` after 6 seconds or not.
|
|
56
|
+
* Enabled by default when the position is "top-end" and a toast has "success" intent. (Type: `boolean`. Default: 'undefined'.)<br>
|
|
57
|
+
* ---
|
|
58
|
+
* @param {Object} props **Toast props**:
|
|
59
|
+
* @returns {string} New toast key
|
|
60
|
+
* @public
|
|
61
61
|
*/
|
|
62
62
|
add(props) {
|
|
63
63
|
const key = `toast-${toastId++}`;
|
|
@@ -75,13 +75,13 @@ class Toaster extends _react.Component {
|
|
|
75
75
|
return key;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
/**
|
|
79
|
-
* Update toast by key
|
|
80
|
-
*
|
|
81
|
-
* @param {string} key
|
|
82
|
-
* @param {Object} props New props
|
|
83
|
-
* @returns {string} Updated toast key
|
|
84
|
-
* @public
|
|
78
|
+
/**
|
|
79
|
+
* Update toast by key
|
|
80
|
+
*
|
|
81
|
+
* @param {string} key
|
|
82
|
+
* @param {Object} props New props
|
|
83
|
+
* @returns {string} Updated toast key
|
|
84
|
+
* @public
|
|
85
85
|
*/
|
|
86
86
|
update(key, props) {
|
|
87
87
|
this.setState(_ref3 => {
|
|
@@ -98,11 +98,11 @@ class Toaster extends _react.Component {
|
|
|
98
98
|
return key;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
/**
|
|
102
|
-
* Remove toast by key
|
|
103
|
-
*
|
|
104
|
-
* @param {string} key
|
|
105
|
-
* @public
|
|
101
|
+
/**
|
|
102
|
+
* Remove toast by key
|
|
103
|
+
*
|
|
104
|
+
* @param {string} key
|
|
105
|
+
* @public
|
|
106
106
|
*/
|
|
107
107
|
remove(key) {
|
|
108
108
|
this.setState(_ref4 => {
|
|
@@ -115,10 +115,10 @@ class Toaster extends _react.Component {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
/**
|
|
119
|
-
* Clear all toasts
|
|
120
|
-
*
|
|
121
|
-
* @public
|
|
118
|
+
/**
|
|
119
|
+
* Clear all toasts
|
|
120
|
+
*
|
|
121
|
+
* @public
|
|
122
122
|
*/
|
|
123
123
|
clear() {
|
|
124
124
|
this.setState({
|
|
@@ -21,12 +21,12 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* `Toolbar` component is a panel containing various instruments used for managing the contents of a large content block.
|
|
26
|
-
* Toolbar is located on top of the managed content block.
|
|
27
|
-
* It typically consists of three main parts: controls that add new elements, controls that work with existing elements,
|
|
28
|
-
* and controls for changing the way the content block looks.
|
|
29
|
-
* @since 0.0.57
|
|
24
|
+
/**
|
|
25
|
+
* `Toolbar` component is a panel containing various instruments used for managing the contents of a large content block.
|
|
26
|
+
* Toolbar is located on top of the managed content block.
|
|
27
|
+
* It typically consists of three main parts: controls that add new elements, controls that work with existing elements,
|
|
28
|
+
* and controls for changing the way the content block looks.
|
|
29
|
+
* @since 0.0.57
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
class ToolbarClassComponent extends _react.Component {
|
|
@@ -12,11 +12,11 @@ var _DistractionFreeModeContext = _interopRequireDefault(require("../Distraction
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* `ToolbarExpander` is a part of the [Toolbar](#!/Toolbar) component.
|
|
17
|
-
* It is used to split all toolbar controls into two groups:
|
|
18
|
-
* all controls before ToolbarExpander are aligned left, and all controls after ToolbarExpander are aligned right.
|
|
19
|
-
* @since 0.0.57
|
|
15
|
+
/**
|
|
16
|
+
* `ToolbarExpander` is a part of the [Toolbar](#!/Toolbar) component.
|
|
17
|
+
* It is used to split all toolbar controls into two groups:
|
|
18
|
+
* all controls before ToolbarExpander are aligned left, and all controls after ToolbarExpander are aligned right.
|
|
19
|
+
* @since 0.0.57
|
|
20
20
|
*/
|
|
21
21
|
const ToolbarExpander = _ref => {
|
|
22
22
|
let {
|
|
@@ -22,10 +22,10 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* `ToolbarGroup` is a part of [Toolbar](#!/Toolbar) component.
|
|
27
|
-
* It is used for grouping several toolbar controls together.
|
|
28
|
-
* @since 0.0.57
|
|
25
|
+
/**
|
|
26
|
+
* `ToolbarGroup` is a part of [Toolbar](#!/Toolbar) component.
|
|
27
|
+
* It is used for grouping several toolbar controls together.
|
|
28
|
+
* @since 0.0.57
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
class ToolbarGroupClassComponent extends _react.Component {
|