@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,7 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2021. 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';
|
|
7
5
|
import InputNumber from '../InputNumber';
|
|
@@ -12,6 +10,8 @@ import Popover from '../Popover';
|
|
|
12
10
|
import SegmentedControl from '../SegmentedControl';
|
|
13
11
|
import ContentLoader from '../ContentLoader';
|
|
14
12
|
import { safeInvoke } from '../utils';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
export const ITEMS_PER_PAGE_OPTIONS = [25, 100, 'all'];
|
|
16
16
|
const VIEW_DEFAULT = 'default';
|
|
17
17
|
const VIEW_POPOVER = 'popover';
|
|
@@ -38,74 +38,81 @@ const Pagination = _ref => {
|
|
|
38
38
|
} = _ref;
|
|
39
39
|
const handleSelect = page => safeInvoke(onSelect, page);
|
|
40
40
|
const handleItemsPerPageChange = option => safeInvoke(onItemsPerPageChange, option);
|
|
41
|
-
const pagination = /*#__PURE__*/
|
|
42
|
-
className: classNames(baseClassName, className)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
41
|
+
const pagination = /*#__PURE__*/_jsxs("div", {
|
|
42
|
+
className: classNames(baseClassName, className),
|
|
43
|
+
...props,
|
|
44
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
45
|
+
className: `${baseClassName}__pages`,
|
|
46
|
+
children: [/*#__PURE__*/_jsx(ContentLoader, {
|
|
47
|
+
loading: loading,
|
|
48
|
+
overlay: true,
|
|
49
|
+
spinner: {
|
|
50
|
+
size: 'sm'
|
|
51
|
+
},
|
|
52
|
+
className: `${baseClassName}__loader`,
|
|
53
|
+
children: /*#__PURE__*/_jsx(InputNumber, {
|
|
54
|
+
value: loading ? undefined : current,
|
|
55
|
+
onChange: handleSelect,
|
|
56
|
+
min: 1,
|
|
57
|
+
max: total,
|
|
58
|
+
decrementIcon: "arrow-left",
|
|
59
|
+
incrementIcon: "arrow-right",
|
|
60
|
+
className: `${baseClassName}__input`
|
|
61
|
+
})
|
|
62
|
+
}), /*#__PURE__*/_jsx(Translate, {
|
|
63
|
+
content: "Pagination.totalShort",
|
|
64
|
+
fallback: "of %%total%%",
|
|
65
|
+
params: {
|
|
66
|
+
total
|
|
67
|
+
},
|
|
68
|
+
className: `${baseClassName}__text`
|
|
69
|
+
})]
|
|
70
|
+
}), onItemsPerPageChange ? /*#__PURE__*/_jsxs("div", {
|
|
71
|
+
className: `${baseClassName}__options`,
|
|
72
|
+
children: [/*#__PURE__*/_jsx(Translate, {
|
|
73
|
+
content: "Pagination.itemsPerPage",
|
|
74
|
+
fallback: "Items per page",
|
|
75
|
+
className: `${baseClassName}__text`
|
|
76
|
+
}), /*#__PURE__*/_jsx(SegmentedControl, {
|
|
77
|
+
ghost: true,
|
|
78
|
+
buttons: itemsPerPageOptions.map(value => {
|
|
79
|
+
let title = value;
|
|
80
|
+
if (value === 'all') {
|
|
81
|
+
title = /*#__PURE__*/_jsx(Translate, {
|
|
82
|
+
content: "Pagination.all",
|
|
83
|
+
fallback: "All"
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
value,
|
|
88
|
+
title
|
|
89
|
+
};
|
|
90
|
+
}),
|
|
91
|
+
selected: itemsPerPage,
|
|
92
|
+
onChange: handleItemsPerPageChange,
|
|
93
|
+
className: `${baseClassName}__control`
|
|
94
|
+
})]
|
|
95
|
+
}) : null]
|
|
96
|
+
});
|
|
92
97
|
if (view === VIEW_POPOVER) {
|
|
93
|
-
return /*#__PURE__*/
|
|
94
|
-
target: /*#__PURE__*/
|
|
98
|
+
return /*#__PURE__*/_jsx(Popover, {
|
|
99
|
+
target: /*#__PURE__*/_jsx(Text, {
|
|
95
100
|
fontSize: "sm",
|
|
96
101
|
component: Link,
|
|
97
|
-
nowrap: true
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
nowrap: true,
|
|
103
|
+
children: /*#__PURE__*/_jsx(Translate, {
|
|
104
|
+
content: "Pagination.total",
|
|
105
|
+
fallback: "Page %%current%% of %%total%%",
|
|
106
|
+
params: {
|
|
107
|
+
current,
|
|
108
|
+
total
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
}),
|
|
106
112
|
placement: "top",
|
|
107
|
-
className: `${baseClassName}__popover
|
|
108
|
-
|
|
113
|
+
className: `${baseClassName}__popover`,
|
|
114
|
+
children: pagination
|
|
115
|
+
});
|
|
109
116
|
}
|
|
110
117
|
return pagination;
|
|
111
118
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import React, { Component, createRef } from 'react';
|
|
4
|
+
import { Component, createRef } from 'react';
|
|
8
5
|
import classNames from 'classnames';
|
|
9
6
|
import { CLS_PREFIX } from '../../constants';
|
|
10
7
|
import { CSSTransition } from 'react-transition-group';
|
|
@@ -12,6 +9,8 @@ import { isLikeText } from '../Translate';
|
|
|
12
9
|
import Heading from '../Heading';
|
|
13
10
|
import Button from '../Button';
|
|
14
11
|
import { isClickable } from '../utils';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
/**
|
|
16
15
|
* `Panel` component is used for visually grouping some content.
|
|
17
16
|
* @since 0.0.35
|
|
@@ -69,39 +68,45 @@ class Panel extends Component {
|
|
|
69
68
|
} = this.state;
|
|
70
69
|
const handleToggle = collapsible ? this.handleToggle : undefined;
|
|
71
70
|
const rootRef = /*#__PURE__*/createRef();
|
|
72
|
-
return /*#__PURE__*/
|
|
71
|
+
return /*#__PURE__*/_jsx(CSSTransition, {
|
|
73
72
|
classNames: `${baseClassName}-`,
|
|
74
73
|
in: !collapsed,
|
|
75
74
|
timeout: 300,
|
|
76
|
-
nodeRef: rootRef
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
75
|
+
nodeRef: rootRef,
|
|
76
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
77
|
+
className: classNames(baseClassName, {
|
|
78
|
+
[`${baseClassName}--collapsible`]: collapsible,
|
|
79
|
+
[`${baseClassName}--collapsed`]: collapsed,
|
|
80
|
+
[`${baseClassName}--expanded`]: !collapsed
|
|
81
|
+
}, className),
|
|
82
|
+
...props,
|
|
83
|
+
ref: rootRef,
|
|
84
|
+
children: [title && /*#__PURE__*/_jsxs("div", {
|
|
85
|
+
className: `${baseClassName}__header`,
|
|
86
|
+
onClick: handleToggle,
|
|
87
|
+
children: [isLikeText(title) ? /*#__PURE__*/_jsx(Heading, {
|
|
88
|
+
component: "div",
|
|
89
|
+
level: 4,
|
|
90
|
+
className: `${baseClassName}__title`,
|
|
91
|
+
children: title
|
|
92
|
+
}) : title, (extra || collapsible) && /*#__PURE__*/_jsxs("div", {
|
|
93
|
+
className: `${baseClassName}__extra`,
|
|
94
|
+
children: [extra, collapsible && /*#__PURE__*/_jsx(Button, {
|
|
95
|
+
ghost: true,
|
|
96
|
+
className: `${baseClassName}__control-button`,
|
|
97
|
+
icon: {
|
|
98
|
+
name: 'chevron-up',
|
|
99
|
+
flipVertical: collapsed
|
|
100
|
+
},
|
|
101
|
+
onClick: handleToggle
|
|
102
|
+
})]
|
|
103
|
+
})]
|
|
104
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
105
|
+
className: `${baseClassName}__content`,
|
|
106
|
+
children: children
|
|
107
|
+
})]
|
|
108
|
+
})
|
|
109
|
+
});
|
|
105
110
|
}
|
|
106
111
|
}
|
|
107
112
|
_defineProperty(Panel, "defaultProps", {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. 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
|
* `Paragraph` is a block containing a single paragraph of [Text](#!/Text).
|
|
9
8
|
* @since 1.1.0
|
|
@@ -16,8 +15,10 @@ const Paragraph = _ref => {
|
|
|
16
15
|
component: Tag = 'p',
|
|
17
16
|
...props
|
|
18
17
|
} = _ref;
|
|
19
|
-
return /*#__PURE__*/
|
|
20
|
-
className: classNames(baseClassName, className)
|
|
21
|
-
|
|
18
|
+
return /*#__PURE__*/_jsx(Tag, {
|
|
19
|
+
className: classNames(baseClassName, className),
|
|
20
|
+
...props,
|
|
21
|
+
children: children
|
|
22
|
+
});
|
|
22
23
|
};
|
|
23
24
|
export default Paragraph;
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
8
|
/**
|
|
8
9
|
* `Plaintext` component is used to show regular text, without any formatting options and ignoring html tags.
|
|
9
10
|
* @since 0.0.42
|
|
@@ -14,9 +15,10 @@ const Plaintext = _ref => {
|
|
|
14
15
|
className,
|
|
15
16
|
children
|
|
16
17
|
} = _ref;
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
-
className: classNames(baseClassName, className)
|
|
19
|
-
|
|
18
|
+
return /*#__PURE__*/_jsx("pre", {
|
|
19
|
+
className: classNames(baseClassName, className),
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
20
22
|
};
|
|
21
23
|
Plaintext.propTypes = {
|
|
22
24
|
/**
|
|
@@ -1,9 +1,6 @@
|
|
|
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
|
|
|
5
|
-
/* eslint-disable react/no-deprecated */
|
|
6
|
-
|
|
7
4
|
import React, { cloneElement, Component, createRef } from 'react';
|
|
8
5
|
import { findDOMNode } from 'react-dom';
|
|
9
6
|
import PropTypes from 'prop-types';
|
|
@@ -18,6 +15,8 @@ import { isLikeText } from '../Translate';
|
|
|
18
15
|
import { wrapFunction } from '../utils';
|
|
19
16
|
import OnDarkContext from '../OnDarkContext';
|
|
20
17
|
import FocusTrap from '../FocusTrap';
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const PLACEMENT_MAP = {
|
|
22
21
|
'top-left': 'top-end',
|
|
23
22
|
'top-right': 'top-start',
|
|
@@ -210,7 +209,7 @@ class Popover extends Component {
|
|
|
210
209
|
behavior = ['left', 'right', 'top', 'bottom'];
|
|
211
210
|
}
|
|
212
211
|
}
|
|
213
|
-
const close = /*#__PURE__*/
|
|
212
|
+
const close = /*#__PURE__*/_jsx(Button, {
|
|
214
213
|
className: classNames(`${baseClassName}__close`, title && `${baseClassName}__close--heading`),
|
|
215
214
|
onClick: this.handleClose,
|
|
216
215
|
ghost: true,
|
|
@@ -219,22 +218,26 @@ class Popover extends Component {
|
|
|
219
218
|
size: title ? 16 : 12
|
|
220
219
|
}
|
|
221
220
|
});
|
|
222
|
-
const heading = title && /*#__PURE__*/
|
|
221
|
+
const heading = title && /*#__PURE__*/_jsx(Measure, {
|
|
223
222
|
onResize: this.handleHeaderResize,
|
|
224
|
-
bounds: true
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
223
|
+
bounds: true,
|
|
224
|
+
children: _ref => {
|
|
225
|
+
let {
|
|
226
|
+
measureRef
|
|
227
|
+
} = _ref;
|
|
228
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
229
|
+
ref: measureRef,
|
|
230
|
+
className: `${baseClassName}__heading`,
|
|
231
|
+
children: [isLikeText(title) ? /*#__PURE__*/_jsx(Heading, {
|
|
232
|
+
level: "5",
|
|
233
|
+
className: `${baseClassName}__title`,
|
|
234
|
+
children: title
|
|
235
|
+
}) : title, /*#__PURE__*/_jsxs("div", {
|
|
236
|
+
className: `${baseClassName}__extra`,
|
|
237
|
+
children: [extra, close]
|
|
238
|
+
})]
|
|
239
|
+
});
|
|
240
|
+
}
|
|
238
241
|
});
|
|
239
242
|
const trigger = isControlled(this.props) ? target : /*#__PURE__*/cloneElement(target, {
|
|
240
243
|
className: classNames(target.props.className, `${baseClassName}__target`),
|
|
@@ -247,20 +250,23 @@ class Popover extends Component {
|
|
|
247
250
|
height: normalize(height)
|
|
248
251
|
};
|
|
249
252
|
}
|
|
250
|
-
const content = /*#__PURE__*/
|
|
253
|
+
const content = /*#__PURE__*/_jsxs(FocusTrap, {
|
|
251
254
|
ref: this.contentRef,
|
|
252
255
|
onKeyUp: canCloseOnEscapePress && show ? this.hotkeyHandler : null,
|
|
253
256
|
className: `${baseClassName}__inner`,
|
|
254
|
-
style: wrapperStyle
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
257
|
+
style: wrapperStyle,
|
|
258
|
+
children: [height ? heading : heading || close, /*#__PURE__*/_jsx("div", {
|
|
259
|
+
className: `${baseClassName}__content`,
|
|
260
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
261
|
+
className: `${baseClassName}__content-inner`,
|
|
262
|
+
children: children
|
|
263
|
+
})
|
|
264
|
+
})]
|
|
265
|
+
});
|
|
266
|
+
return /*#__PURE__*/_jsx(Popper, {
|
|
261
267
|
target: trigger,
|
|
262
268
|
targetRef: targetRef ? targetRef : this.targetRef,
|
|
263
|
-
arrow: /*#__PURE__*/
|
|
269
|
+
arrow: /*#__PURE__*/_jsx("span", {
|
|
264
270
|
className: classNames(`${baseClassName}__arrow`, arrowInHeader && `${baseClassName}__arrow--heading`)
|
|
265
271
|
}),
|
|
266
272
|
placement: popperPlacement,
|
|
@@ -275,14 +281,18 @@ class Popover extends Component {
|
|
|
275
281
|
baseClassName: baseClassName,
|
|
276
282
|
behavior: behavior,
|
|
277
283
|
zIndex: Z_INDEX_POPOVER,
|
|
278
|
-
show: show
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
+
show: show,
|
|
285
|
+
...props,
|
|
286
|
+
children: canCloseOnOutsideClick ? /*#__PURE__*/_jsx(AutoClosable, {
|
|
287
|
+
onClose: this.handleClose,
|
|
288
|
+
ignoreNodes: this.getIgnoreNodes,
|
|
289
|
+
nodeRef: this.contentRef,
|
|
290
|
+
children: content
|
|
291
|
+
}) : content
|
|
292
|
+
});
|
|
284
293
|
}
|
|
285
294
|
}
|
|
295
|
+
// eslint-disable-next-line react/sort-comp
|
|
286
296
|
_defineProperty(Popover, "contextType", OnDarkContext);
|
|
287
297
|
Popover.propTypes = {
|
|
288
298
|
/**
|
|
@@ -1,32 +1,52 @@
|
|
|
1
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import Link from '../Link';
|
|
5
4
|
import Button from '../Button';
|
|
6
5
|
import Paragraph from '../Paragraph';
|
|
7
6
|
import Popover from './Popover';
|
|
8
|
-
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export const Basic = args => /*#__PURE__*/_jsx(Popover, {
|
|
11
|
+
...args
|
|
12
|
+
});
|
|
9
13
|
Basic.args = {
|
|
10
|
-
target: /*#__PURE__*/
|
|
11
|
-
"data-id": "trigger"
|
|
12
|
-
|
|
14
|
+
target: /*#__PURE__*/_jsx(Link, {
|
|
15
|
+
"data-id": "trigger",
|
|
16
|
+
children: 'Trigger'
|
|
17
|
+
}),
|
|
13
18
|
children: 'Content'
|
|
14
19
|
};
|
|
15
|
-
export const ThreeButtons = args => /*#__PURE__*/
|
|
20
|
+
export const ThreeButtons = args => /*#__PURE__*/_jsx(Basic, {
|
|
21
|
+
...args
|
|
22
|
+
});
|
|
16
23
|
ThreeButtons.args = {
|
|
17
24
|
...Basic.args,
|
|
18
|
-
children: /*#__PURE__*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
children: /*#__PURE__*/_jsxs(_Fragment, {
|
|
26
|
+
children: [/*#__PURE__*/_jsx(Paragraph, {
|
|
27
|
+
children: 'Enim ea occaecat dolor veniam.'
|
|
28
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
29
|
+
"data-id": "button-1",
|
|
30
|
+
children: 'Button 1'
|
|
31
|
+
}), /*#__PURE__*/_jsx(Paragraph, {
|
|
32
|
+
children: 'Incididunt ipsum nulla officia adipisicing voluptate enim reprehenderit.'
|
|
33
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
34
|
+
"data-id": "button-2",
|
|
35
|
+
children: 'Button 2'
|
|
36
|
+
}), ` `, /*#__PURE__*/_jsx(Button, {
|
|
37
|
+
"data-id": "button-3",
|
|
38
|
+
children: 'Button 3'
|
|
39
|
+
}), /*#__PURE__*/_jsx(Paragraph, {
|
|
40
|
+
children: 'Cillum sunt nisi aute amet elit ut sit dolor in aliqua minim.'
|
|
41
|
+
})]
|
|
42
|
+
})
|
|
25
43
|
};
|
|
26
|
-
export const Autofocus = args => /*#__PURE__*/
|
|
44
|
+
export const Autofocus = args => /*#__PURE__*/_jsx(Basic, {
|
|
45
|
+
...args
|
|
46
|
+
});
|
|
27
47
|
Autofocus.args = {
|
|
28
48
|
...Basic.args,
|
|
29
|
-
children: /*#__PURE__*/
|
|
49
|
+
children: /*#__PURE__*/_jsx("input", {
|
|
30
50
|
autoFocus: true
|
|
31
51
|
})
|
|
32
52
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
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
|
|
|
5
|
-
/* eslint-disable react/no-deprecated */
|
|
6
|
-
|
|
7
4
|
import React, { cloneElement, Component, Fragment, createRef } from 'react';
|
|
8
5
|
import { findDOMNode } from 'react-dom';
|
|
9
6
|
import PropTypes from 'prop-types';
|
|
@@ -15,6 +12,8 @@ import Layer from '../Layer';
|
|
|
15
12
|
/**
|
|
16
13
|
* `Popper` component.
|
|
17
14
|
*/
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
17
|
class Popper extends Component {
|
|
19
18
|
constructor() {
|
|
20
19
|
super(...arguments);
|
|
@@ -160,19 +159,24 @@ class Popper extends Component {
|
|
|
160
159
|
ref: ref => this.arrowRef = ref,
|
|
161
160
|
style: arrowStyle
|
|
162
161
|
});
|
|
163
|
-
return /*#__PURE__*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
return /*#__PURE__*/_jsxs(Fragment, {
|
|
163
|
+
children: [target, show ? /*#__PURE__*/_jsx(Layer, {
|
|
164
|
+
level: zIndex,
|
|
165
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
166
|
+
ref: this.contentRef,
|
|
167
|
+
className: classNames(baseClassName, className, `${baseClassName}--placement-${actualPlacement}`),
|
|
168
|
+
style: {
|
|
169
|
+
...style,
|
|
170
|
+
...(popperStyle ? popperStyle : {
|
|
171
|
+
position: 'fixed',
|
|
172
|
+
opacity: 0
|
|
173
|
+
})
|
|
174
|
+
},
|
|
175
|
+
...props,
|
|
176
|
+
children: [children, arrowElement]
|
|
173
177
|
})
|
|
174
|
-
}
|
|
175
|
-
}
|
|
178
|
+
}) : null]
|
|
179
|
+
});
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
182
|
Popper.propTypes = {
|
|
@@ -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
|
|
|
@@ -8,6 +7,7 @@ import classNames from 'classnames';
|
|
|
8
7
|
import { CLS_PREFIX } from '../../constants';
|
|
9
8
|
import { safeInvoke } from '../utils';
|
|
10
9
|
import { STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR } from '../ProgressStep';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
/**
|
|
12
12
|
* `Progress` is used for showing progress of performing long operations.
|
|
13
13
|
* @since 1.10.0
|
|
@@ -82,9 +82,11 @@ class Progress extends Component {
|
|
|
82
82
|
onStatusChange,
|
|
83
83
|
...props
|
|
84
84
|
} = this.props;
|
|
85
|
-
return /*#__PURE__*/
|
|
86
|
-
className: classNames(baseClassName, className)
|
|
87
|
-
|
|
85
|
+
return /*#__PURE__*/_jsx("div", {
|
|
86
|
+
className: classNames(baseClassName, className),
|
|
87
|
+
...props,
|
|
88
|
+
children: children
|
|
89
|
+
});
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
Progress.propTypes = {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 ProgressIndicator from './ProgressIndicator';
|
|
8
7
|
import OnDarkContext from '../OnDarkContext';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const ProgressBar = _ref => {
|
|
10
10
|
let {
|
|
11
11
|
baseClassName = `${CLS_PREFIX}progress-bar`,
|
|
@@ -14,17 +14,19 @@ const ProgressBar = _ref => {
|
|
|
14
14
|
progress = -1,
|
|
15
15
|
...props
|
|
16
16
|
} = _ref;
|
|
17
|
-
return /*#__PURE__*/
|
|
17
|
+
return /*#__PURE__*/_jsx("div", {
|
|
18
18
|
className: classNames(baseClassName, {
|
|
19
19
|
[`${baseClassName}--on-dark`]: useContext(OnDarkContext)
|
|
20
20
|
}, className),
|
|
21
21
|
"aria-valuemin": 0,
|
|
22
22
|
"aria-valuemax": 100,
|
|
23
23
|
"aria-valuenow": progress >= 0 && progress <= 100 ? progress : undefined,
|
|
24
|
-
role: "progressbar"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
role: "progressbar",
|
|
25
|
+
...props,
|
|
26
|
+
children: /*#__PURE__*/_jsx(ProgressIndicator, {
|
|
27
|
+
intent: intent,
|
|
28
|
+
progress: progress
|
|
29
|
+
})
|
|
30
|
+
});
|
|
29
31
|
};
|
|
30
32
|
export default ProgressBar;
|