@plesk/ui-library 3.31.2 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Action/Action.js +20 -12
- package/cjs/components/Alert/Alert.js +9 -8
- package/cjs/components/Alert/Alert.stories.js +19 -12
- package/cjs/components/AutoClosable/AutoClosable.js +7 -9
- package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +14 -12
- package/cjs/components/Badge/Badge.js +11 -10
- package/cjs/components/Breadcrumbs/Breadcrumbs.js +18 -15
- package/cjs/components/Button/Button.js +34 -25
- package/cjs/components/Button/Button.stories.js +82 -49
- package/cjs/components/Button/ButtonContext.js +27 -0
- package/cjs/components/ButtonGroup/ButtonGroup.js +6 -5
- package/cjs/components/Card/Card.js +132 -109
- package/cjs/components/Card/CardButton.js +5 -4
- package/cjs/components/Card/PreviewPanel.js +24 -21
- package/cjs/components/CardList/CardList.js +57 -50
- package/cjs/components/CardList/CardListToolbar.js +47 -40
- package/cjs/components/Carousel/Carousel.js +42 -35
- package/cjs/components/Checkbox/Checkbox.js +27 -22
- package/cjs/components/ClosingConfirmation/useClosingConfirmation.js +24 -22
- package/cjs/components/CodeEditor/CodeEditor.js +5 -5
- package/cjs/components/Columns/Column.js +7 -7
- package/cjs/components/Columns/Columns.js +18 -14
- package/cjs/components/ComboBox/ComboBox.js +17 -13
- package/cjs/components/ComboBox/ComboBoxOption.js +2 -3
- package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +73 -68
- package/cjs/components/ConsoleOutput/ConsoleOutput.js +9 -9
- package/cjs/components/ContentLoader/ContentLoader.js +24 -16
- package/cjs/components/ContentLoader/IconsLoader.js +19 -17
- package/cjs/components/Cuttable/Cuttable.js +33 -30
- package/cjs/components/Cuttable/Cuttable.stories.js +27 -5
- package/cjs/components/Dialog/Dialog.js +74 -54
- package/cjs/components/Dialog/Dialog.stories.js +18 -14
- package/cjs/components/Drawer/Drawer.js +60 -50
- package/cjs/components/Drawer/Drawer.stories.js +24 -16
- package/cjs/components/Drawer/DrawerProgress.js +40 -31
- package/cjs/components/Drawer/Header.js +34 -26
- package/cjs/components/Dropdown/Dropdown.js +49 -41
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +21 -17
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +6 -5
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +6 -5
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +5 -5
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +6 -5
- package/cjs/components/Figure/Figure.js +12 -9
- package/cjs/components/FocusTrap/FocusTrap.js +13 -14
- package/cjs/components/Form/Form.js +89 -75
- package/cjs/components/Form/Form.stories.js +8 -9
- package/cjs/components/FormField/FormField.js +55 -50
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +36 -29
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +9 -3
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +74 -66
- package/cjs/components/FormFieldPassword/PasswordMeter.js +34 -23
- package/cjs/components/FormFieldPassword/estimatePassword.js +11 -11
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +54 -50
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +26 -24
- package/cjs/components/FormFieldText/FormFieldText.js +39 -35
- package/cjs/components/Grid/Grid.js +16 -13
- package/cjs/components/GridCol/GridCol.js +7 -7
- package/cjs/components/Heading/Heading.js +12 -10
- package/cjs/components/Hint/Hint.js +6 -5
- package/cjs/components/Icon/Icon.js +15 -14
- package/cjs/components/Icon/Icon.stories.js +15 -12
- package/cjs/components/Icon/utils.js +9 -6
- package/cjs/components/InPlaceEdit/InPlaceEdit.js +54 -49
- package/cjs/components/Input/Input.js +18 -14
- package/cjs/components/InputFile/InputFile.js +45 -42
- package/cjs/components/InputNumber/InputNumber.js +8 -10
- package/cjs/components/Item/Item.js +34 -22
- package/cjs/components/ItemLink/ItemLink.js +9 -7
- package/cjs/components/ItemLink/ItemLink.stories.js +4 -2
- package/cjs/components/ItemList/ItemList.js +39 -31
- package/cjs/components/ItemList/ItemList.stories.js +26 -27
- package/cjs/components/Label/Label.js +41 -8
- package/cjs/components/Layer/Layer.js +11 -10
- package/cjs/components/Layout/Layout.js +129 -101
- package/cjs/components/Link/Link.js +10 -10
- package/cjs/components/List/List.js +338 -279
- package/cjs/components/List/List.stories.js +21 -19
- package/cjs/components/List/ListAction.js +10 -8
- package/cjs/components/List/ListActions.js +21 -19
- package/cjs/components/List/ListActionsDivider.js +4 -3
- package/cjs/components/List/ListEmptyView.js +38 -23
- package/cjs/components/List/ListOperation.js +28 -21
- package/cjs/components/LocaleProvider/LocaleProvider.js +6 -6
- package/cjs/components/Markdown/Markdown.js +5 -4
- package/cjs/components/Media/Media.js +30 -22
- package/cjs/components/Media/MediaSection.js +7 -6
- package/cjs/components/Menu/Menu.js +7 -6
- package/cjs/components/Menu/Menu.stories.js +35 -33
- package/cjs/components/Menu/MenuBaseItem.js +18 -14
- package/cjs/components/Menu/MenuDivider.js +6 -6
- package/cjs/components/Menu/MenuHeader.js +7 -6
- package/cjs/components/Menu/MenuItem.js +12 -9
- package/cjs/components/Menu/MenuSelectableItem.js +7 -6
- package/cjs/components/Overlay/Backdrop.js +5 -4
- package/cjs/components/Overlay/Overlay.js +63 -52
- package/cjs/components/PageHeader/PageHeader.js +36 -25
- package/cjs/components/Pagination/Pagination.js +72 -66
- package/cjs/components/Panel/Panel.js +38 -36
- package/cjs/components/Paragraph/Paragraph.js +6 -5
- package/cjs/components/Plaintext/Plaintext.js +5 -3
- package/cjs/components/Popover/Popover.js +43 -34
- package/cjs/components/Popover/Popover.stories.js +33 -15
- package/cjs/components/Popper/Popper.js +19 -17
- package/cjs/components/Progress/Progress.js +6 -4
- package/cjs/components/ProgressBar/ProgressBar.js +10 -10
- package/cjs/components/ProgressBar/ProgressIndicator.js +5 -5
- package/cjs/components/ProgressDialog/ProgressDialog.js +16 -13
- package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +5 -3
- package/cjs/components/ProgressStep/ProgressStep.js +34 -23
- package/cjs/components/Radio/Radio.js +21 -18
- package/cjs/components/Rating/Rating.js +10 -8
- package/cjs/components/Section/Section.js +55 -50
- package/cjs/components/Section/SectionItem.js +12 -8
- package/cjs/components/SegmentedControl/SegmentedControl.js +86 -75
- package/cjs/components/Select/MultiValue.js +26 -21
- package/cjs/components/Select/Select.js +8 -7
- package/cjs/components/Select/Select.stories.js +41 -40
- package/cjs/components/Select/SelectControl.js +87 -77
- package/cjs/components/Select/SelectOption.js +2 -3
- package/cjs/components/Select/SelectOptionGroup.js +2 -3
- package/cjs/components/Skeleton/Skeleton.js +5 -5
- package/cjs/components/Skeleton/Skeleton.stories.js +7 -3
- package/cjs/components/Skeleton/SkeletonTabs.js +11 -10
- package/cjs/components/Skeleton/SkeletonTabs.stories.js +4 -2
- package/cjs/components/Skeleton/SkeletonText.js +13 -13
- package/cjs/components/Skeleton/SkeletonText.stories.js +10 -4
- package/cjs/components/Spinner/Spinner.js +15 -15
- package/cjs/components/SplitButton/SplitButton.js +18 -14
- package/cjs/components/Spot/Spot.js +19 -15
- package/cjs/components/Spot/SpotPopup.js +33 -29
- package/cjs/components/Spot/SpotPulsar.js +12 -13
- package/cjs/components/Squeezer/Squeezer.js +11 -13
- package/cjs/components/Status/Status.js +7 -7
- package/cjs/components/Status/Status.stories.js +4 -2
- package/cjs/components/StatusMessage/StatusMessage.js +9 -8
- package/cjs/components/Subnav/Subnav.js +7 -6
- package/cjs/components/Switch/Switch.js +21 -17
- package/cjs/components/SwitchesPanel/SwitchesPanel.js +11 -8
- package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +34 -26
- package/cjs/components/Tabs/SearchBar.js +57 -51
- package/cjs/components/Tabs/Tab.js +5 -3
- package/cjs/components/Tabs/Tabs.js +157 -129
- package/cjs/components/Tabs/Tabs.stories.js +8 -6
- package/cjs/components/Text/Text.js +7 -7
- package/cjs/components/TextArea/TextArea.js +6 -7
- package/cjs/components/Toast/Toast.js +32 -29
- package/cjs/components/Toaster/Toaster.js +54 -48
- package/cjs/components/Toolbar/Toolbar.js +19 -14
- package/cjs/components/Toolbar/ToolbarExpander.js +7 -7
- package/cjs/components/Toolbar/ToolbarGroup.js +23 -17
- package/cjs/components/Toolbar/ToolbarItem.js +11 -9
- package/cjs/components/Toolbar/ToolbarMenu.js +21 -15
- package/cjs/components/Tooltip/Tooltip.js +26 -21
- package/cjs/components/Tour/Tour.js +3 -4
- package/cjs/components/Translate/Translate.js +4 -1
- package/cjs/components/utils.js +4 -8
- package/cjs/index.js +1 -1
- package/cjs/utils.js +0 -2
- package/dist/.DS_Store +0 -0
- 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 +4755 -2803
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +19 -6
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +21 -12
- package/esm/components/Alert/Alert.js +10 -8
- package/esm/components/Alert/Alert.stories.js +21 -12
- package/esm/components/AutoClosable/AutoClosable.js +7 -7
- package/esm/components/AuxiliaryActions/AuxiliaryActions.js +14 -10
- package/esm/components/Badge/Badge.js +12 -8
- package/esm/components/Breadcrumbs/Breadcrumbs.js +19 -13
- package/esm/components/Button/Button.js +35 -26
- package/esm/components/Button/Button.stories.js +84 -49
- package/esm/components/Button/ButtonContext.js +18 -0
- package/esm/components/ButtonGroup/ButtonGroup.js +6 -5
- package/esm/components/Card/Card.js +133 -109
- package/esm/components/Card/CardButton.js +5 -4
- package/esm/components/Card/PreviewPanel.js +25 -19
- package/esm/components/CardList/CardList.js +58 -50
- package/esm/components/CardList/CardListToolbar.js +47 -40
- package/esm/components/Carousel/Carousel.js +43 -35
- package/esm/components/Checkbox/Checkbox.js +28 -22
- package/esm/components/ClosingConfirmation/useClosingConfirmation.js +24 -20
- package/esm/components/CodeEditor/CodeEditor.js +5 -6
- package/esm/components/Columns/Column.js +7 -5
- package/esm/components/Columns/Columns.js +18 -14
- package/esm/components/ComboBox/ComboBox.js +17 -13
- package/esm/components/ComboBox/ComboBoxOption.js +2 -2
- package/esm/components/ComboBoxDropdown/ComboBoxDropdown.js +75 -68
- package/esm/components/ConsoleOutput/ConsoleOutput.js +10 -7
- package/esm/components/ContentLoader/ContentLoader.js +25 -14
- package/esm/components/ContentLoader/IconsLoader.js +20 -15
- package/esm/components/Cuttable/Cuttable.js +34 -28
- package/esm/components/Cuttable/Cuttable.stories.js +29 -5
- package/esm/components/Dialog/Dialog.js +75 -53
- package/esm/components/Dialog/Dialog.stories.js +20 -12
- package/esm/components/Drawer/Drawer.js +61 -50
- package/esm/components/Drawer/Drawer.stories.js +26 -14
- package/esm/components/Drawer/DrawerProgress.js +41 -31
- package/esm/components/Drawer/Header.js +35 -26
- package/esm/components/Dropdown/Dropdown.js +51 -41
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +22 -17
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +6 -5
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +6 -5
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +5 -5
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +6 -5
- package/esm/components/Figure/Figure.js +13 -9
- package/esm/components/FocusTrap/FocusTrap.js +14 -11
- package/esm/components/Form/Form.js +90 -75
- package/esm/components/Form/Form.stories.js +8 -9
- package/esm/components/FormField/FormField.js +56 -50
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +38 -29
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +9 -3
- package/esm/components/FormFieldPassword/FormFieldPassword.js +75 -64
- package/esm/components/FormFieldPassword/PasswordMeter.js +36 -23
- package/esm/components/FormFieldPassword/estimatePassword.js +11 -11
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +55 -50
- package/esm/components/FormFieldSelect/FormFieldSelect.js +26 -24
- package/esm/components/FormFieldText/FormFieldText.js +39 -35
- package/esm/components/Grid/Grid.js +16 -13
- package/esm/components/GridCol/GridCol.js +6 -5
- package/esm/components/Heading/Heading.js +13 -10
- package/esm/components/Hint/Hint.js +6 -5
- package/esm/components/Icon/Icon.js +15 -12
- package/esm/components/Icon/Icon.stories.js +15 -12
- package/esm/components/Icon/utils.js +9 -6
- package/esm/components/InPlaceEdit/InPlaceEdit.js +55 -49
- package/esm/components/Input/Input.js +19 -14
- package/esm/components/InputFile/InputFile.js +47 -40
- package/esm/components/InputNumber/InputNumber.js +8 -8
- package/esm/components/Item/Item.js +35 -22
- package/esm/components/ItemLink/ItemLink.js +9 -7
- package/esm/components/ItemLink/ItemLink.stories.js +4 -2
- package/esm/components/ItemList/ItemList.js +39 -31
- package/esm/components/ItemList/ItemList.stories.js +26 -25
- package/esm/components/Label/Label.js +42 -8
- package/esm/components/Layer/Layer.js +11 -8
- package/esm/components/Layout/Layout.js +130 -101
- package/esm/components/Link/Link.js +11 -9
- package/esm/components/List/List.js +341 -280
- package/esm/components/List/List.stories.js +22 -17
- package/esm/components/List/ListAction.js +10 -8
- package/esm/components/List/ListActions.js +22 -17
- package/esm/components/List/ListActionsDivider.js +4 -2
- package/esm/components/List/ListEmptyView.js +39 -23
- package/esm/components/List/ListOperation.js +29 -19
- package/esm/components/LocaleProvider/LocaleProvider.js +6 -4
- package/esm/components/Markdown/Markdown.js +5 -4
- package/esm/components/Media/Media.js +31 -22
- package/esm/components/Media/MediaSection.js +6 -4
- package/esm/components/Menu/Menu.js +7 -6
- package/esm/components/Menu/Menu.stories.js +35 -33
- package/esm/components/Menu/MenuBaseItem.js +18 -12
- package/esm/components/Menu/MenuDivider.js +5 -4
- package/esm/components/Menu/MenuHeader.js +6 -4
- package/esm/components/Menu/MenuItem.js +11 -7
- package/esm/components/Menu/MenuSelectableItem.js +6 -4
- package/esm/components/Overlay/Backdrop.js +5 -4
- package/esm/components/Overlay/Overlay.js +65 -53
- package/esm/components/PageHeader/PageHeader.js +37 -23
- package/esm/components/Pagination/Pagination.js +73 -66
- package/esm/components/Panel/Panel.js +39 -34
- package/esm/components/Paragraph/Paragraph.js +6 -5
- package/esm/components/Plaintext/Plaintext.js +5 -3
- package/esm/components/Popover/Popover.js +44 -34
- package/esm/components/Popover/Popover.stories.js +35 -15
- package/esm/components/Popper/Popper.js +19 -15
- package/esm/components/Progress/Progress.js +6 -4
- package/esm/components/ProgressBar/ProgressBar.js +10 -8
- package/esm/components/ProgressBar/ProgressIndicator.js +5 -5
- package/esm/components/ProgressDialog/ProgressDialog.js +17 -13
- package/esm/components/ProgressDialogStep/ProgressDialogStep.js +4 -1
- package/esm/components/ProgressStep/ProgressStep.js +35 -23
- package/esm/components/Radio/Radio.js +22 -18
- package/esm/components/Rating/Rating.js +10 -8
- package/esm/components/Section/Section.js +56 -50
- package/esm/components/Section/SectionItem.js +13 -8
- package/esm/components/SegmentedControl/SegmentedControl.js +87 -75
- package/esm/components/Select/MultiValue.js +27 -21
- package/esm/components/Select/Select.js +8 -7
- package/esm/components/Select/Select.stories.js +41 -40
- package/esm/components/Select/SelectControl.js +88 -75
- package/esm/components/Select/SelectOption.js +2 -2
- package/esm/components/Select/SelectOptionGroup.js +2 -2
- package/esm/components/Skeleton/Skeleton.js +5 -5
- package/esm/components/Skeleton/Skeleton.stories.js +7 -3
- package/esm/components/Skeleton/SkeletonTabs.js +11 -10
- package/esm/components/Skeleton/SkeletonTabs.stories.js +4 -2
- package/esm/components/Skeleton/SkeletonText.js +13 -13
- package/esm/components/Skeleton/SkeletonText.stories.js +10 -4
- package/esm/components/Spinner/Spinner.js +15 -15
- package/esm/components/SplitButton/SplitButton.js +19 -14
- package/esm/components/Spot/Spot.js +19 -13
- package/esm/components/Spot/SpotPopup.js +34 -28
- package/esm/components/Spot/SpotPulsar.js +13 -11
- package/esm/components/Squeezer/Squeezer.js +11 -11
- package/esm/components/Status/Status.js +7 -5
- package/esm/components/Status/Status.stories.js +4 -2
- package/esm/components/StatusMessage/StatusMessage.js +10 -8
- package/esm/components/Subnav/Subnav.js +7 -6
- package/esm/components/Switch/Switch.js +22 -17
- package/esm/components/SwitchesPanel/SwitchesPanel.js +11 -8
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +35 -26
- package/esm/components/Tabs/SearchBar.js +60 -52
- package/esm/components/Tabs/Tab.js +4 -1
- package/esm/components/Tabs/Tabs.js +158 -129
- package/esm/components/Tabs/Tabs.stories.js +8 -6
- package/esm/components/Text/Text.js +7 -5
- package/esm/components/TextArea/TextArea.js +6 -5
- package/esm/components/Toast/Toast.js +33 -27
- package/esm/components/Toaster/Toaster.js +54 -46
- package/esm/components/Toolbar/Toolbar.js +19 -14
- package/esm/components/Toolbar/ToolbarExpander.js +7 -5
- package/esm/components/Toolbar/ToolbarGroup.js +22 -15
- package/esm/components/Toolbar/ToolbarItem.js +11 -7
- package/esm/components/Toolbar/ToolbarMenu.js +21 -15
- package/esm/components/Tooltip/Tooltip.js +27 -21
- package/esm/components/Tour/Tour.js +3 -2
- package/esm/components/Translate/Translate.js +4 -1
- package/esm/components/utils.js +4 -8
- package/esm/index.js +1 -1
- package/esm/utils.js +1 -3
- package/package.json +56 -60
- package/styleguide/build/bundle.57b0e524.js +2 -0
- package/styleguide/build/{bundle.26082873.js.LICENSE.txt → bundle.57b0e524.js.LICENSE.txt} +13 -4
- package/styleguide/index.html +2 -2
- package/types/src/components/Alert/Alert.stories.d.ts +5 -8
- package/types/src/components/AutoClosable/AutoClosable.d.ts +2 -23
- package/types/src/components/Button/Button.stories.d.ts +4 -2
- package/types/src/components/Button/ButtonContext.d.ts +8 -0
- package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +2 -2
- package/types/src/components/Cuttable/Cuttable.d.ts +2 -2
- package/types/src/components/Cuttable/Cuttable.stories.d.ts +6 -23
- package/types/src/components/Dialog/Dialog.stories.d.ts +6 -2
- package/types/src/components/Drawer/Drawer.stories.d.ts +8 -4
- package/types/src/components/Drawer/DrawerProgress.d.ts +1 -1
- package/types/src/components/FocusTrap/FocusTrap.d.ts +2 -2
- package/types/src/components/Form/Form.d.ts +17 -17
- package/types/src/components/Form/Form.stories.d.ts +3 -1
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +6 -2
- package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +0 -1
- package/types/src/components/Icon/Icon.d.ts +0 -1
- package/types/src/components/Icon/Icon.stories.d.ts +3 -1
- package/types/src/components/Input/Input.d.ts +0 -1
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +5 -7
- package/types/src/components/ItemList/ItemList.d.ts +2 -2
- package/types/src/components/ItemList/ItemList.stories.d.ts +46 -175
- package/types/src/components/Label/Label.d.ts +32 -5
- package/types/src/components/Layer/Layer.d.ts +3 -3
- package/types/src/components/List/List.stories.d.ts +9 -7
- package/types/src/components/List/ListActionsDivider.d.ts +4 -4
- package/types/src/components/Menu/Menu.stories.d.ts +5 -3
- package/types/src/components/Panel/Panel.d.ts +2 -2
- package/types/src/components/Popover/Popover.stories.d.ts +7 -3
- package/types/src/components/Select/Select.d.ts +0 -1
- package/types/src/components/Select/Select.stories.d.ts +5 -16
- package/types/src/components/Select/SelectControl.d.ts +2 -2
- package/types/src/components/Skeleton/Skeleton.d.ts +1 -1
- package/types/src/components/Skeleton/Skeleton.stories.d.ts +6 -3
- package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +5 -6
- package/types/src/components/Skeleton/SkeletonText.d.ts +1 -1
- package/types/src/components/Skeleton/SkeletonText.stories.d.ts +7 -22
- package/types/src/components/Spot/SpotPulsar.d.ts +2 -3
- package/types/src/components/Status/Status.stories.d.ts +5 -16
- package/types/src/components/Tabs/Tabs.stories.d.ts +5 -1
- package/types/src/components/TextArea/TextArea.d.ts +4 -4
- package/types/src/components/Toolbar/ToolbarItem.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarMenu.d.ts +2 -2
- package/types/src/components/utils.d.ts +5 -5
- package/types/src/utils.d.ts +0 -1
- package/cjs/components/Drawer/ScrollDirection.js +0 -45
- package/esm/components/Drawer/ScrollDirection.js +0 -37
- package/styleguide/build/bundle.26082873.js +0 -2
- package/styleguide/images/default.svg +0 -1
- package/styleguide/images/empty-list_256.png +0 -0
- package/styleguide/images/filtered.svg +0 -1
- package/styleguide/patterns/controls/control-button-tooltip-1-do.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-1-dont.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-2-do.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-2-dont.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-3-do.png +0 -0
- package/styleguide/patterns/controls/control-button-tooltip-3-dont.png +0 -0
- package/styleguide/patterns/dialogsWindows/autoclose.png +0 -0
- package/styleguide/patterns/dialogsWindows/focus.png +0 -0
- package/styleguide/patterns/dialogsWindows/header.png +0 -0
- package/styleguide/patterns/dialogsWindows/image.png +0 -0
- package/styleguide/patterns/dialogsWindows/list_submit.png +0 -0
- package/styleguide/patterns/dialogsWindows/new_object.png +0 -0
- package/styleguide/patterns/dialogsWindows/popover-confirm.png +0 -0
- package/styleguide/patterns/dialogsWindows/popover.png +0 -0
- package/styleguide/patterns/dialogsWindows/similar_buttons.png +0 -0
- package/styleguide/patterns/dialogsWindows/submit.png +0 -0
- package/styleguide/patterns/dialogsWindows/toast_controls.png +0 -0
- package/styleguide/patterns/dialogsWindows/toaster_intent.png +0 -0
- package/styleguide/patterns/dialogsWindows/tooltip.png +0 -0
- package/styleguide/patterns/dialogsWindows/tour.png +0 -0
- package/styleguide/patterns/dialogsWindows/when_to_show.png +0 -0
- package/styleguide/patterns/dialogsWindows/width.png +0 -0
- package/types/package.d.ts +0 -138
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import Skeleton from './Skeleton';
|
|
5
|
-
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Basic = args => /*#__PURE__*/_jsx(Skeleton, {
|
|
6
|
+
...args
|
|
7
|
+
});
|
|
6
8
|
Basic.args = {};
|
|
7
|
-
export const CustomSize = args => /*#__PURE__*/
|
|
9
|
+
export const CustomSize = args => /*#__PURE__*/_jsx(Basic, {
|
|
10
|
+
...args
|
|
11
|
+
});
|
|
8
12
|
CustomSize.args = {
|
|
9
13
|
width: 200,
|
|
10
14
|
height: 100
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import React from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import SkeletonText from './SkeletonText';
|
|
7
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* Skeleton for tabs component
|
|
10
9
|
* @since `3.28.0
|
|
@@ -16,13 +15,15 @@ const SkeletonTabs = _ref => {
|
|
|
16
15
|
baseClassName = `${CLS_PREFIX}skeleton-tabs`,
|
|
17
16
|
...props
|
|
18
17
|
} = _ref;
|
|
19
|
-
return /*#__PURE__*/
|
|
20
|
-
className: classNames(baseClassName, className)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
return /*#__PURE__*/_jsx("div", {
|
|
19
|
+
className: classNames(baseClassName, className),
|
|
20
|
+
...props,
|
|
21
|
+
children: /*#__PURE__*/_jsx(SkeletonText, {
|
|
22
|
+
lineProps: {
|
|
23
|
+
maxWidth: 100
|
|
24
|
+
},
|
|
25
|
+
lines: count
|
|
26
|
+
})
|
|
27
|
+
});
|
|
27
28
|
};
|
|
28
29
|
export default SkeletonTabs;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import SkeletonTabs from './SkeletonTabs';
|
|
5
|
-
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Basic = args => /*#__PURE__*/_jsx(SkeletonTabs, {
|
|
6
|
+
...args
|
|
7
|
+
});
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import React from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import Skeleton from './Skeleton';
|
|
7
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
|
|
10
9
|
* @since 3.28.0
|
|
@@ -18,16 +17,17 @@ const SkeletonText = _ref => {
|
|
|
18
17
|
lineProps = {},
|
|
19
18
|
...props
|
|
20
19
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
className: classNames(baseClassName, className)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
return /*#__PURE__*/_jsx(Tag, {
|
|
21
|
+
className: classNames(baseClassName, className),
|
|
22
|
+
...props,
|
|
23
|
+
children: Array.from({
|
|
24
|
+
length: lines
|
|
25
|
+
}).map((_, key) => /*#__PURE__*/_jsx(Skeleton
|
|
26
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
27
|
+
, {
|
|
28
|
+
...lineProps,
|
|
29
|
+
className: classNames(`${baseClassName}__line`, lineProps?.className)
|
|
30
|
+
}, key))
|
|
31
|
+
});
|
|
32
32
|
};
|
|
33
33
|
export default SkeletonText;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import SkeletonText from './SkeletonText';
|
|
5
|
-
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Basic = args => /*#__PURE__*/_jsx(SkeletonText, {
|
|
6
|
+
...args
|
|
7
|
+
});
|
|
6
8
|
Basic.args = {};
|
|
7
|
-
export const LinesCount = args => /*#__PURE__*/
|
|
9
|
+
export const LinesCount = args => /*#__PURE__*/_jsx(Basic, {
|
|
10
|
+
...args
|
|
11
|
+
});
|
|
8
12
|
LinesCount.args = {
|
|
9
13
|
lines: 5
|
|
10
14
|
};
|
|
11
|
-
export const Custom = args => /*#__PURE__*/
|
|
15
|
+
export const Custom = args => /*#__PURE__*/_jsx(Basic, {
|
|
16
|
+
...args
|
|
17
|
+
});
|
|
12
18
|
Custom.args = {
|
|
13
19
|
lines: 5,
|
|
14
20
|
lineProps: {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2019. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import React from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
/**
|
|
8
7
|
* `Spinner` component.
|
|
9
8
|
*/
|
|
@@ -13,19 +12,20 @@ const Spinner = _ref => {
|
|
|
13
12
|
className,
|
|
14
13
|
...props
|
|
15
14
|
} = _ref;
|
|
16
|
-
return /*#__PURE__*/
|
|
17
|
-
className: classNames(baseClassName, className)
|
|
18
|
-
|
|
15
|
+
return /*#__PURE__*/_jsx("svg", {
|
|
16
|
+
className: classNames(baseClassName, className),
|
|
17
|
+
...props,
|
|
19
18
|
viewBox: "0 0 48 48",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
+
children: /*#__PURE__*/_jsx("circle", {
|
|
21
|
+
className: `${baseClassName}__path`,
|
|
22
|
+
fill: "none",
|
|
23
|
+
strokeWidth: "6",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
cx: "24",
|
|
26
|
+
cy: "24",
|
|
27
|
+
r: "21"
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
30
|
};
|
|
31
31
|
export default Spinner;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
3
|
import React, { useRef } from 'react';
|
|
@@ -9,6 +8,8 @@ import Button from '../Button';
|
|
|
9
8
|
import ButtonGroup from '../ButtonGroup';
|
|
10
9
|
import Dropdown from '../Dropdown';
|
|
11
10
|
import { wrapFunction, createFocusManager } from '../utils';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const focusStrategy = {
|
|
13
14
|
getNext(container, element) {
|
|
14
15
|
const elements = container.children;
|
|
@@ -67,21 +68,25 @@ const SplitButton = _ref => {
|
|
|
67
68
|
break;
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
|
-
return /*#__PURE__*/
|
|
71
|
+
return /*#__PURE__*/_jsxs(ButtonGroup, {
|
|
71
72
|
className: classNames(baseClassName, className),
|
|
72
73
|
innerRef: rootRef,
|
|
73
|
-
onKeyDown: handleKeyDown
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
74
|
+
onKeyDown: handleKeyDown,
|
|
75
|
+
...props,
|
|
76
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
77
|
+
tabIndex: 0,
|
|
78
|
+
onClick: onClick,
|
|
79
|
+
children: children
|
|
80
|
+
}), /*#__PURE__*/_jsx(Dropdown, {
|
|
81
|
+
className: `${baseClassName}__dropdown-trigger`,
|
|
82
|
+
menu: menu,
|
|
83
|
+
menuPlacement: "bottom-end",
|
|
84
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
85
|
+
caret: true,
|
|
86
|
+
tabIndex: -1
|
|
87
|
+
})
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
85
90
|
};
|
|
86
91
|
SplitButton.propTypes = {
|
|
87
92
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import { useState, useEffect, useRef } from 'react';
|
|
5
4
|
import { scrollIntoView } from '../utils';
|
|
6
5
|
import OnDarkContext from '../OnDarkContext';
|
|
7
6
|
import Layer from '../Layer';
|
|
8
7
|
import SpotPulsar from './SpotPulsar';
|
|
9
8
|
import SpotPopup from './SpotPopup';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
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;
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -67,18 +67,24 @@ const Spot = _ref => {
|
|
|
67
67
|
if (!rect) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
|
-
const pulsar = /*#__PURE__*/
|
|
70
|
+
const pulsar = /*#__PURE__*/_jsx(SpotPulsar, {
|
|
71
71
|
rect: rect,
|
|
72
|
-
placement: placement
|
|
73
|
-
|
|
72
|
+
placement: placement,
|
|
73
|
+
...props,
|
|
74
74
|
ref: pulsarRef
|
|
75
|
-
})
|
|
76
|
-
return /*#__PURE__*/
|
|
77
|
-
value: true
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
});
|
|
76
|
+
return /*#__PURE__*/_jsx(OnDarkContext.Provider, {
|
|
77
|
+
value: true,
|
|
78
|
+
children: /*#__PURE__*/_jsx(Layer, {
|
|
79
|
+
children: popup ? /*#__PURE__*/_jsx(SpotPopup, {
|
|
80
|
+
pulsar: pulsar,
|
|
81
|
+
pulsarRef: pulsarRef,
|
|
82
|
+
meta: meta,
|
|
83
|
+
...popup
|
|
84
|
+
}) : /*#__PURE__*/_jsx("div", {
|
|
85
|
+
children: pulsar
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
});
|
|
83
89
|
};
|
|
84
90
|
export default Spot;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
3
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
4
|
+
import { useEffect, useState, useRef } from 'react';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
6
|
import Popover from '../Popover';
|
|
8
7
|
import Text from '../Text';
|
|
@@ -11,7 +10,8 @@ import Focuser from '../Overlay/Focuser';
|
|
|
11
10
|
import { safeInvoke } from '../utils';
|
|
12
11
|
|
|
13
12
|
// TODO: Use SpotSpotProps['popup'] instead of copypaste
|
|
14
|
-
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
const SpotPopup = _ref => {
|
|
16
16
|
let {
|
|
17
17
|
baseClassName = `${CLS_PREFIX}spot-popup`,
|
|
@@ -42,12 +42,12 @@ const SpotPopup = _ref => {
|
|
|
42
42
|
}
|
|
43
43
|
}, []);
|
|
44
44
|
if (typeof image === 'string') {
|
|
45
|
-
image = /*#__PURE__*/
|
|
45
|
+
image = /*#__PURE__*/_jsx("img", {
|
|
46
46
|
src: image,
|
|
47
47
|
alt: ""
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
return /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/_jsxs(Popover, {
|
|
51
51
|
className: classNames(baseClassName, className, {
|
|
52
52
|
[`${baseClassName}--${size}`]: size
|
|
53
53
|
}),
|
|
@@ -58,28 +58,34 @@ const SpotPopup = _ref => {
|
|
|
58
58
|
visible: true,
|
|
59
59
|
onClose: () => safeInvoke(onClose),
|
|
60
60
|
canCloseOnOutsideClick: false,
|
|
61
|
-
autoFocus: false
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
61
|
+
autoFocus: false,
|
|
62
|
+
...props,
|
|
63
|
+
children: [image && /*#__PURE__*/_jsx("div", {
|
|
64
|
+
className: classNames(`${baseClassName}__media`, {
|
|
65
|
+
[`${baseClassName}__media--compact`]: !title
|
|
66
|
+
}),
|
|
67
|
+
children: image
|
|
68
|
+
}), children, buttons && /*#__PURE__*/_jsxs("div", {
|
|
69
|
+
className: `${baseClassName}__footer`,
|
|
70
|
+
ref: footerRef,
|
|
71
|
+
children: [meta && meta.total > 1 ? /*#__PURE__*/_jsx(Text, {
|
|
72
|
+
intent: "muted",
|
|
73
|
+
fontSize: "sm",
|
|
74
|
+
children: /*#__PURE__*/_jsx(Translate, {
|
|
75
|
+
namespace: "SpotPopup",
|
|
76
|
+
content: "total",
|
|
77
|
+
params: {
|
|
78
|
+
current: meta.current + 1,
|
|
79
|
+
total: meta.total
|
|
80
|
+
},
|
|
81
|
+
translators: locale,
|
|
82
|
+
fallback: "%%current%% of %%total%%"
|
|
83
|
+
})
|
|
84
|
+
}) : /*#__PURE__*/_jsx("span", {}), /*#__PURE__*/_jsx("div", {
|
|
85
|
+
className: `${baseClassName}__actions`,
|
|
86
|
+
children: buttons
|
|
87
|
+
})]
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
84
90
|
};
|
|
85
91
|
export default SpotPopup;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
3
|
import classNames from 'classnames';
|
|
5
|
-
import
|
|
4
|
+
import { forwardRef } from 'react';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
const OFFSET = 23;
|
|
8
9
|
const calculate = (rect, placement) => {
|
|
9
10
|
const placementTop = rect.height / 2;
|
|
@@ -35,18 +36,19 @@ const SpotPulsar = /*#__PURE__*/forwardRef(function SpotPulsar(_ref, ref) {
|
|
|
35
36
|
...props
|
|
36
37
|
} = _ref;
|
|
37
38
|
const position = calculate(rect, placement);
|
|
38
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
39
40
|
className: classNames(baseClassName, className),
|
|
40
41
|
style: {
|
|
41
42
|
transform: `translate(${position.left}px, ${position.top}px)`
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
ref: ref
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
},
|
|
44
|
+
...props,
|
|
45
|
+
ref: ref,
|
|
46
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
47
|
+
className: `${baseClassName}__ring`
|
|
48
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
49
|
+
className: `${baseClassName}__ring`
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
50
52
|
});
|
|
51
53
|
SpotPulsar.displayName = 'SpotPulsar';
|
|
52
54
|
export default SpotPulsar;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import { Component, createRef } from 'react';
|
|
5
5
|
import Measure from 'react-measure';
|
|
6
6
|
import { safeInvoke } from '../utils';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
class Squeezer extends Component {
|
|
8
9
|
constructor() {
|
|
9
10
|
super(...arguments);
|
|
@@ -23,7 +24,6 @@ class Squeezer extends Component {
|
|
|
23
24
|
}
|
|
24
25
|
measure() {
|
|
25
26
|
let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
26
|
-
// eslint-disable-next-line react/prop-types
|
|
27
27
|
const {
|
|
28
28
|
compact,
|
|
29
29
|
uncompact
|
|
@@ -61,13 +61,12 @@ class Squeezer extends Component {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
// eslint-disable-next-line react/prop-types
|
|
65
64
|
const {
|
|
66
65
|
children,
|
|
67
66
|
innerRef,
|
|
68
67
|
innerMeasure
|
|
69
68
|
} = this.props;
|
|
70
|
-
return /*#__PURE__*/
|
|
69
|
+
return /*#__PURE__*/_jsx(Measure, {
|
|
71
70
|
onResize: this.handleResize,
|
|
72
71
|
innerRef: el => {
|
|
73
72
|
if (el) {
|
|
@@ -77,14 +76,15 @@ class Squeezer extends Component {
|
|
|
77
76
|
this.measure(true);
|
|
78
77
|
});
|
|
79
78
|
}
|
|
79
|
+
},
|
|
80
|
+
children: _ref => {
|
|
81
|
+
let {
|
|
82
|
+
measureRef
|
|
83
|
+
} = _ref;
|
|
84
|
+
return children({
|
|
85
|
+
ref: measureRef
|
|
86
|
+
});
|
|
80
87
|
}
|
|
81
|
-
}, _ref => {
|
|
82
|
-
let {
|
|
83
|
-
measureRef
|
|
84
|
-
} = _ref;
|
|
85
|
-
return children({
|
|
86
|
-
ref: measureRef
|
|
87
|
-
});
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import { useContext } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
6
|
import { intentIconMap } from '../intentIconMap';
|
|
8
7
|
import Action from '../Action';
|
|
9
8
|
import Icon from '../Icon';
|
|
10
9
|
import OnDarkContext from '../OnDarkContext';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const toIcon = (icon, intent) => {
|
|
12
12
|
if (icon === false) {
|
|
13
13
|
return undefined;
|
|
@@ -40,7 +40,7 @@ const Status = _ref => {
|
|
|
40
40
|
if (intent === 'muted') {
|
|
41
41
|
intent = 'inactive';
|
|
42
42
|
}
|
|
43
|
-
return /*#__PURE__*/
|
|
43
|
+
return /*#__PURE__*/_jsx(Action, {
|
|
44
44
|
component: "span",
|
|
45
45
|
icon: compact ? undefined : toIcon(icon, intent),
|
|
46
46
|
className: classNames(baseClassName, {
|
|
@@ -54,7 +54,9 @@ const Status = _ref => {
|
|
|
54
54
|
[`${baseClassName}--flip`]: flip
|
|
55
55
|
}, outerProps.className)
|
|
56
56
|
},
|
|
57
|
-
progress: progress
|
|
58
|
-
|
|
57
|
+
progress: progress,
|
|
58
|
+
...props,
|
|
59
|
+
children: children
|
|
60
|
+
});
|
|
59
61
|
};
|
|
60
62
|
export default Status;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import Status from './Status';
|
|
5
|
-
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
export const Basic = args => /*#__PURE__*/_jsx(Status, {
|
|
6
|
+
...args
|
|
7
|
+
});
|
|
6
8
|
Basic.args = {
|
|
7
9
|
intent: 'success',
|
|
8
10
|
children: 'Success'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
3
|
import classNames from 'classnames';
|
|
5
|
-
import React from 'react';
|
|
6
4
|
import Alert from '../Alert';
|
|
7
5
|
import Icon from '../Icon';
|
|
8
6
|
import { CLS_PREFIX } from '../../constants';
|
|
9
7
|
import { intentIconMap } from '../intentIconMap';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
/**
|
|
11
11
|
* `StatusMessage` is used for notifying users about events happened (or going to happen) in the system.
|
|
12
12
|
* For showing results of performed operations [Toaster](#!/Toaster) should be used.
|
|
@@ -20,12 +20,14 @@ const StatusMessage = _ref => {
|
|
|
20
20
|
children,
|
|
21
21
|
...props
|
|
22
22
|
} = _ref;
|
|
23
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/_jsxs(Alert, {
|
|
24
24
|
className: classNames(baseClassName, [`${baseClassName}--${intent}`], className),
|
|
25
|
-
intent: intent
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
intent: intent,
|
|
26
|
+
...props,
|
|
27
|
+
children: [/*#__PURE__*/_jsx(Icon, {
|
|
28
|
+
name: intentIconMap[intent],
|
|
29
|
+
className: `${baseClassName}__icon`
|
|
30
|
+
}), children]
|
|
31
|
+
});
|
|
30
32
|
};
|
|
31
33
|
export default StatusMessage;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
3
|
import React, { cloneElement, Children, isValidElement, useRef, useMemo } from 'react';
|
|
@@ -6,6 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import { CLS_PREFIX } from '../../constants';
|
|
8
7
|
import { safeInvoke, createFocusManager } from '../utils';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
/**
|
|
10
10
|
* `Subnav` component is used when you need a second level navigation under [Tabs](#!/Tabs) on the screen.
|
|
11
11
|
* @since 0.0.42
|
|
@@ -73,12 +73,13 @@ const Subnav = _ref => {
|
|
|
73
73
|
}
|
|
74
74
|
return child;
|
|
75
75
|
});
|
|
76
|
-
return /*#__PURE__*/
|
|
77
|
-
className: classNames(baseClassName, className)
|
|
78
|
-
|
|
76
|
+
return /*#__PURE__*/_jsx("div", {
|
|
77
|
+
className: classNames(baseClassName, className),
|
|
78
|
+
...props,
|
|
79
79
|
onKeyDown: handleKeyDown,
|
|
80
|
-
ref: rootRef
|
|
81
|
-
|
|
80
|
+
ref: rootRef,
|
|
81
|
+
children: items
|
|
82
|
+
});
|
|
82
83
|
};
|
|
83
84
|
Subnav.propTypes = {
|
|
84
85
|
/**
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
4
3
|
|
|
@@ -7,6 +6,8 @@ import PropTypes from 'prop-types';
|
|
|
7
6
|
import classNames from 'classnames';
|
|
8
7
|
import { CLS_PREFIX } from '../../constants';
|
|
9
8
|
import Tooltip from '../Tooltip';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
/**
|
|
11
12
|
* `Switch` component is used for changing the state of an object or system preferences.
|
|
12
13
|
* It provides immediate results that is why it should not be used in Form.
|
|
@@ -39,26 +40,30 @@ class Switch extends Component {
|
|
|
39
40
|
loading,
|
|
40
41
|
...props
|
|
41
42
|
} = this.props;
|
|
42
|
-
let result = /*#__PURE__*/
|
|
43
|
+
let result = /*#__PURE__*/_jsxs("label", {
|
|
43
44
|
className: classNames(baseClassName, {
|
|
44
45
|
[`${baseClassName}--${intent}`]: intent,
|
|
45
46
|
[`${baseClassName}--loading`]: loading
|
|
46
|
-
}, className)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
}, className),
|
|
48
|
+
...props,
|
|
49
|
+
children: [children ? /*#__PURE__*/_jsx("span", {
|
|
50
|
+
className: `${baseClassName}__label`,
|
|
51
|
+
children: children
|
|
52
|
+
}) : null, /*#__PURE__*/_jsx("input", {
|
|
53
|
+
type: "checkbox",
|
|
54
|
+
onChange: this.handleChange,
|
|
55
|
+
checked: checked,
|
|
56
|
+
defaultChecked: checked === null || checked === undefined ? defaultChecked : undefined,
|
|
57
|
+
disabled: disabled || loading
|
|
58
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
59
|
+
className: `${baseClassName}__indicator`
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
58
62
|
if (tooltip) {
|
|
59
|
-
result = /*#__PURE__*/
|
|
60
|
-
title: tooltip
|
|
61
|
-
|
|
63
|
+
result = /*#__PURE__*/_jsx(Tooltip, {
|
|
64
|
+
title: tooltip,
|
|
65
|
+
children: result
|
|
66
|
+
});
|
|
62
67
|
}
|
|
63
68
|
return result;
|
|
64
69
|
}
|