@plesk/ui-library 3.31.3 → 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 +30 -24
- package/cjs/components/Button/Button.stories.js +82 -49
- package/cjs/components/Button/ButtonContext.js +2 -3
- 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 -43
- package/cjs/components/Drawer/Drawer.stories.js +24 -16
- package/cjs/components/Drawer/DrawerProgress.js +34 -22
- 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 +80 -68
- 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 +31 -24
- 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/images/default.svg +1 -0
- package/dist/images/filtered.svg +1 -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 +4457 -2604
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +18 -5
- 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 +31 -25
- package/esm/components/Button/Button.stories.js +84 -49
- package/esm/components/Button/ButtonContext.js +2 -2
- 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 -43
- package/esm/components/Drawer/Drawer.stories.js +26 -14
- package/esm/components/Drawer/DrawerProgress.js +35 -22
- 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 +81 -68
- 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 +32 -24
- 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 +21 -20
- package/styleguide/build/bundle.57b0e524.js +2 -0
- package/styleguide/build/{bundle.bab12e1d.js.LICENSE.txt → bundle.57b0e524.js.LICENSE.txt} +12 -3
- package/styleguide/index.html +2 -2
- package/types/src/components/Alert/Alert.stories.d.ts +6 -9
- package/types/src/components/AutoClosable/AutoClosable.d.ts +3 -24
- package/types/src/components/Button/Button.stories.d.ts +7 -6
- package/types/src/components/Button/ButtonContext.d.ts +1 -2
- package/types/src/components/Card/PreviewPanel.d.ts +2 -2
- package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +2 -2
- package/types/src/components/ComboBox/ComboBox.d.ts +2 -2
- package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +2 -2
- package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +2 -2
- package/types/src/components/ContentLoader/IconsLoader.d.ts +2 -2
- package/types/src/components/Cuttable/Cuttable.d.ts +3 -3
- package/types/src/components/Cuttable/Cuttable.stories.d.ts +8 -25
- package/types/src/components/Dialog/Dialog.stories.d.ts +7 -4
- package/types/src/components/Drawer/Drawer.stories.d.ts +9 -6
- 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 +11 -11
- package/types/src/components/Form/Form.stories.d.ts +4 -3
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +6 -3
- package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +3 -3
- 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 +4 -3
- package/types/src/components/Input/Input.d.ts +0 -1
- package/types/src/components/InputFile/InputFile.d.ts +2 -2
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +5 -7
- package/types/src/components/ItemList/ItemList.d.ts +5 -5
- 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/Link/Link.d.ts +2 -2
- package/types/src/components/List/List.stories.d.ts +9 -8
- package/types/src/components/List/ListAction.d.ts +2 -2
- package/types/src/components/List/ListActions.d.ts +2 -2
- package/types/src/components/List/ListActionsDivider.d.ts +4 -4
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +2 -2
- package/types/src/components/Menu/Menu.stories.d.ts +8 -7
- package/types/src/components/Panel/Panel.d.ts +3 -3
- package/types/src/components/Popover/Popover.stories.d.ts +12 -9
- package/types/src/components/Select/Select.d.ts +0 -1
- package/types/src/components/Select/Select.stories.d.ts +7 -18
- 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/Spot.d.ts +2 -2
- package/types/src/components/Spot/SpotPopup.d.ts +2 -2
- package/types/src/components/Spot/SpotPulsar.d.ts +2 -3
- package/types/src/components/Squeezer/Squeezer.d.ts +2 -2
- package/types/src/components/Status/Status.stories.d.ts +5 -16
- package/types/src/components/Tabs/Tabs.stories.d.ts +6 -3
- package/types/src/components/TextArea/TextArea.d.ts +5 -5
- package/types/src/components/Toast/Toast.d.ts +2 -2
- package/types/src/components/Toaster/Toaster.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarExpander.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarItem.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarMenu.d.ts +2 -2
- package/types/src/components/Tour/Tour.d.ts +2 -2
- package/types/src/components/utils.d.ts +5 -5
- package/types/src/utils.d.ts +0 -1
- package/styleguide/build/bundle.bab12e1d.js +0 -2
- package/types/package.d.ts +0 -135
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2022. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import { isValidElement, Children } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
6
|
import { wrapFunction } from '../utils';
|
|
8
7
|
import Icon, { ICON_SIZE_16 } from '../Icon';
|
|
9
8
|
import Spinner from '../Spinner';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
/**
|
|
11
12
|
* `Action` component is used mostly for navigation, to go between pages, and not for immediate action or submitting data.
|
|
12
13
|
* @since 0.0.68
|
|
@@ -46,10 +47,11 @@ const Action = _ref => {
|
|
|
46
47
|
className: classNames(props.className, `${baseClassName}__content`) || undefined
|
|
47
48
|
};
|
|
48
49
|
if (progress) {
|
|
49
|
-
icon = /*#__PURE__*/
|
|
50
|
+
icon = /*#__PURE__*/_jsx(Icon, {
|
|
50
51
|
size: size,
|
|
51
|
-
className: `${baseClassName}__icon
|
|
52
|
-
|
|
52
|
+
className: `${baseClassName}__icon`,
|
|
53
|
+
children: /*#__PURE__*/_jsx(Spinner, {})
|
|
54
|
+
});
|
|
53
55
|
tagProps.onClick = e => e.preventDefault();
|
|
54
56
|
tagProps.tabIndex = -1;
|
|
55
57
|
}
|
|
@@ -64,17 +66,24 @@ const Action = _ref => {
|
|
|
64
66
|
}
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
|
-
return /*#__PURE__*/
|
|
69
|
+
return /*#__PURE__*/_jsxs(RootTag, {
|
|
68
70
|
className: classNames(baseClassName, {
|
|
69
71
|
[`${baseClassName}--size-${size}`]: icon || progress,
|
|
70
72
|
[`${baseClassName}--progress`]: progress,
|
|
71
73
|
[`${baseClassName}--nowrap`]: nowrap,
|
|
72
74
|
[`${baseClassName}--icon`]: !Children.toArray(children).length && !rightAddon && !bottomAddon
|
|
73
|
-
}, className)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
}, className),
|
|
76
|
+
...restOuterProps,
|
|
77
|
+
children: [/*#__PURE__*/_jsxs(Tag, {
|
|
78
|
+
...tagProps,
|
|
79
|
+
children: [icon, children]
|
|
80
|
+
}), rightAddon ? /*#__PURE__*/_jsx("span", {
|
|
81
|
+
className: `${baseClassName}__right-addon`,
|
|
82
|
+
children: rightAddon
|
|
83
|
+
}) : null, bottomAddon ? /*#__PURE__*/_jsx("span", {
|
|
84
|
+
className: `${baseClassName}__bottom-addon`,
|
|
85
|
+
children: bottomAddon
|
|
86
|
+
}) : null]
|
|
87
|
+
});
|
|
79
88
|
};
|
|
80
89
|
export default Action;
|
|
@@ -1,9 +1,9 @@
|
|
|
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";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
8
8
|
* `Alert` component is used for highlighting important content.
|
|
9
9
|
* For showing messages about state of the system it is recommended to use [StatusMessage](#!/StatusMessage)
|
|
@@ -19,13 +19,15 @@ const Alert = _ref => {
|
|
|
19
19
|
onClose,
|
|
20
20
|
...props
|
|
21
21
|
} = _ref;
|
|
22
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
23
23
|
className: classNames(baseClassName, {
|
|
24
24
|
[`${baseClassName}--${intent}`]: intent
|
|
25
|
-
}, className)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
}, className),
|
|
26
|
+
...props,
|
|
27
|
+
children: [onClose && /*#__PURE__*/_jsx("span", {
|
|
28
|
+
className: "close",
|
|
29
|
+
onClick: onClose
|
|
30
|
+
}), children]
|
|
31
|
+
});
|
|
30
32
|
};
|
|
31
33
|
export default Alert;
|
|
@@ -1,18 +1,27 @@
|
|
|
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 Alert from './Alert';
|
|
6
|
-
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const Basic = args => /*#__PURE__*/_jsx(Alert, {
|
|
8
|
+
...args
|
|
9
|
+
});
|
|
7
10
|
Basic.args = {
|
|
8
11
|
children: 'Content'
|
|
9
12
|
};
|
|
10
|
-
export const Intents = () => /*#__PURE__*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
export const Intents = () => /*#__PURE__*/_jsxs(_Fragment, {
|
|
14
|
+
children: [/*#__PURE__*/_jsx(Basic, {
|
|
15
|
+
intent: "info",
|
|
16
|
+
...Basic.args
|
|
17
|
+
}), /*#__PURE__*/_jsx(Basic, {
|
|
18
|
+
intent: "success",
|
|
19
|
+
...Basic.args
|
|
20
|
+
}), /*#__PURE__*/_jsx(Basic, {
|
|
21
|
+
intent: "warning",
|
|
22
|
+
...Basic.args
|
|
23
|
+
}), /*#__PURE__*/_jsx(Basic, {
|
|
24
|
+
intent: "danger",
|
|
25
|
+
...Basic.args
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
@@ -2,7 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
3
|
|
|
4
4
|
import { findDOMNode } from 'react-dom';
|
|
5
|
-
import
|
|
5
|
+
import { Component, Children, createContext } from 'react';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const AutoClosableContext = /*#__PURE__*/createContext(null);
|
|
7
8
|
/**
|
|
8
9
|
* This is helper component for handling outside clicks.
|
|
@@ -43,9 +44,7 @@ class AutoClosable extends Component {
|
|
|
43
44
|
return node.current;
|
|
44
45
|
}
|
|
45
46
|
return null;
|
|
46
|
-
}).some(node =>
|
|
47
|
-
return Boolean(node && el instanceof Node && node.contains(el));
|
|
48
|
-
});
|
|
47
|
+
}).some(node => Boolean(node && el instanceof Node && node.contains(el)));
|
|
49
48
|
if (isClickOnIgnoredNode) {
|
|
50
49
|
return;
|
|
51
50
|
}
|
|
@@ -71,9 +70,10 @@ class AutoClosable extends Component {
|
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
render() {
|
|
74
|
-
return /*#__PURE__*/
|
|
75
|
-
value: this
|
|
76
|
-
|
|
73
|
+
return /*#__PURE__*/_jsx(AutoClosableContext.Provider, {
|
|
74
|
+
value: this,
|
|
75
|
+
children: Children.only(this.props.children)
|
|
76
|
+
});
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
AutoClosable.contextType = AutoClosableContext;
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { cloneElement, isValidElement, Children } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
8
8
|
* Auxiliary Actions component is used for executing additional (not primary) actions.
|
|
9
9
|
* @since 0.4.1
|
|
@@ -12,16 +12,20 @@ const AuxiliaryActions = _ref => {
|
|
|
12
12
|
let {
|
|
13
13
|
baseClassName = `${CLS_PREFIX}auxiliary-actions`,
|
|
14
14
|
className,
|
|
15
|
-
separator = /*#__PURE__*/
|
|
16
|
-
className: `${baseClassName}__separator
|
|
17
|
-
|
|
15
|
+
separator = /*#__PURE__*/_jsx("span", {
|
|
16
|
+
className: `${baseClassName}__separator`,
|
|
17
|
+
children: ' | '
|
|
18
|
+
}),
|
|
18
19
|
children,
|
|
19
20
|
...props
|
|
20
21
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
className: classNames(baseClassName, className)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
return /*#__PURE__*/_jsx("span", {
|
|
23
|
+
className: classNames(baseClassName, className),
|
|
24
|
+
...props,
|
|
25
|
+
children: Children.toArray(children).reduce((accu, elem, index) => accu.length === 0 ? [elem] : [...accu, /*#__PURE__*/isValidElement(separator) ? /*#__PURE__*/cloneElement(separator, {
|
|
26
|
+
key: index
|
|
27
|
+
}) // eslint-disable-line react/no-array-index-key
|
|
28
|
+
: separator, elem], [])
|
|
29
|
+
});
|
|
26
30
|
};
|
|
27
31
|
export default AuxiliaryActions;
|
|
@@ -1,11 +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 { isValidElement, cloneElement, Children } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
6
|
import Label from '../Label';
|
|
8
7
|
import Icon from '../Icon';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
/**
|
|
10
11
|
* `Badge` component is used for showing small numerical value or status attached to an interface element.
|
|
11
12
|
* @since 0.0.58
|
|
@@ -23,9 +24,10 @@ const Badge = _ref => {
|
|
|
23
24
|
const isAmpty = !label;
|
|
24
25
|
if (Children.toArray(children).length && !hidden) {
|
|
25
26
|
if (! /*#__PURE__*/isValidElement(label)) {
|
|
26
|
-
label = /*#__PURE__*/
|
|
27
|
-
intent: "danger"
|
|
28
|
-
|
|
27
|
+
label = /*#__PURE__*/_jsx(Label, {
|
|
28
|
+
intent: "danger",
|
|
29
|
+
children: label
|
|
30
|
+
});
|
|
29
31
|
}
|
|
30
32
|
if ( /*#__PURE__*/isValidElement(label)) {
|
|
31
33
|
const cloneProps = {
|
|
@@ -41,8 +43,10 @@ const Badge = _ref => {
|
|
|
41
43
|
} else {
|
|
42
44
|
label = null;
|
|
43
45
|
}
|
|
44
|
-
return /*#__PURE__*/
|
|
45
|
-
className: classNames(baseClassName, className)
|
|
46
|
-
|
|
46
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
47
|
+
className: classNames(baseClassName, className),
|
|
48
|
+
...props,
|
|
49
|
+
children: [children, label]
|
|
50
|
+
});
|
|
47
51
|
};
|
|
48
52
|
export default Badge;
|
|
@@ -1,11 +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 { isRtl } from '../../utils';
|
|
5
|
-
import
|
|
4
|
+
import { Children } from 'react';
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import { CLS_PREFIX } from '../../constants';
|
|
8
7
|
import Icon from '../Icon';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
/**
|
|
10
11
|
* `Breadcrumbs` component indicates a position of current page in general hierarchy of all pages,
|
|
11
12
|
* and it is used for navigation up to the main page of the product.
|
|
@@ -18,18 +19,23 @@ const Breadcrumbs = _ref => {
|
|
|
18
19
|
children,
|
|
19
20
|
...props
|
|
20
21
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/_jsx("nav", {
|
|
22
23
|
role: "navigation",
|
|
23
24
|
"aria-label": "Breadcrumbs",
|
|
24
|
-
className: classNames(baseClassName, className)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
className: classNames(baseClassName, className),
|
|
26
|
+
...props,
|
|
27
|
+
children: /*#__PURE__*/_jsx("ul", {
|
|
28
|
+
className: `${baseClassName}__list`,
|
|
29
|
+
children: Children.map(children, child => /*#__PURE__*/_jsxs("li", {
|
|
30
|
+
className: `${baseClassName}__item`,
|
|
31
|
+
children: [child, /*#__PURE__*/_jsx("span", {
|
|
32
|
+
className: `${baseClassName}__separator`,
|
|
33
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
34
|
+
name: isRtl() ? 'chevron-left' : 'chevron-right'
|
|
35
|
+
})
|
|
36
|
+
})]
|
|
37
|
+
}))
|
|
38
|
+
})
|
|
39
|
+
});
|
|
34
40
|
};
|
|
35
41
|
export default Breadcrumbs;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
/* eslint-disable react/no-deprecated */
|
|
5
|
-
|
|
6
3
|
import React, { cloneElement, forwardRef, isValidElement, useContext, useState } from 'react';
|
|
7
4
|
import PropTypes from 'prop-types';
|
|
8
5
|
import classNames from 'classnames';
|
|
@@ -32,6 +29,8 @@ const oldIconNames = {
|
|
|
32
29
|
import ResponsiveContext from '../ResponsiveContext';
|
|
33
30
|
import OnDarkContext from '../OnDarkContext';
|
|
34
31
|
import ButtonContext from './ButtonContext';
|
|
32
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
33
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
34
|
const renderIcon = _ref => {
|
|
36
35
|
let {
|
|
37
36
|
baseClassName,
|
|
@@ -52,7 +51,7 @@ const renderCaret = _ref2 => {
|
|
|
52
51
|
} = _ref2;
|
|
53
52
|
let caretElement;
|
|
54
53
|
if (typeof caret === 'boolean' && caret) {
|
|
55
|
-
caretElement = /*#__PURE__*/
|
|
54
|
+
caretElement = /*#__PURE__*/_jsx(Icon, {
|
|
56
55
|
name: "chevron-down",
|
|
57
56
|
size: size === 'lg' ? '16' : '12'
|
|
58
57
|
});
|
|
@@ -135,7 +134,7 @@ const Button = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
135
134
|
}
|
|
136
135
|
const isArrowButton = arrow === 'forward' || arrow === 'backward';
|
|
137
136
|
const hasAriaDisabled = Tag === 'button' && disabled && tooltip;
|
|
138
|
-
let button = /*#__PURE__*/
|
|
137
|
+
let button = /*#__PURE__*/_jsxs(Tag, {
|
|
139
138
|
ref: ref,
|
|
140
139
|
className: classNames(baseClassName, {
|
|
141
140
|
[`${baseClassName}--${size}`]: size,
|
|
@@ -151,27 +150,34 @@ const Button = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
151
150
|
[`${baseClassName}--on-dark`]: useContext(OnDarkContext)
|
|
152
151
|
}, className),
|
|
153
152
|
disabled: hasAriaDisabled ? undefined : disabled,
|
|
154
|
-
"aria-disabled": hasAriaDisabled ? 'true' : undefined
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
153
|
+
"aria-disabled": hasAriaDisabled ? 'true' : undefined,
|
|
154
|
+
...componentProps,
|
|
155
|
+
...props,
|
|
156
|
+
children: [/*#__PURE__*/_jsxs("span", {
|
|
157
|
+
className: `${baseClassName}__inner`,
|
|
158
|
+
children: [state === 'loading' ? /*#__PURE__*/_jsx(Spinner, {
|
|
159
|
+
className: `${baseClassName}__spinner`
|
|
160
|
+
}) : renderIcon({
|
|
161
|
+
baseClassName,
|
|
162
|
+
icon,
|
|
163
|
+
size,
|
|
164
|
+
empty: !childrenElement
|
|
165
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
166
|
+
children: childrenElement
|
|
167
|
+
}), renderCaret({
|
|
168
|
+
baseClassName,
|
|
169
|
+
size,
|
|
170
|
+
caret
|
|
171
|
+
})]
|
|
172
|
+
}), isArrowButton && !ghost && /*#__PURE__*/_jsx("span", {
|
|
173
|
+
className: `${baseClassName}__arrow`
|
|
174
|
+
})]
|
|
175
|
+
});
|
|
171
176
|
if (tooltipElement) {
|
|
172
|
-
button = /*#__PURE__*/
|
|
173
|
-
title: tooltipElement
|
|
174
|
-
|
|
177
|
+
button = /*#__PURE__*/_jsx(Tooltip, {
|
|
178
|
+
title: tooltipElement,
|
|
179
|
+
children: button
|
|
180
|
+
});
|
|
175
181
|
}
|
|
176
182
|
return button;
|
|
177
183
|
});
|
|
@@ -1,64 +1,99 @@
|
|
|
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 Button from './Button';
|
|
6
|
-
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
export const Basic = args => /*#__PURE__*/_jsx(Button, {
|
|
8
|
+
...args
|
|
9
|
+
});
|
|
7
10
|
Basic.args = {
|
|
8
11
|
children: 'Click me'
|
|
9
12
|
};
|
|
10
|
-
export const Ghost = args => /*#__PURE__*/
|
|
11
|
-
ghost: true
|
|
12
|
-
|
|
13
|
+
export const Ghost = args => /*#__PURE__*/_jsx(Button, {
|
|
14
|
+
ghost: true,
|
|
15
|
+
...args
|
|
16
|
+
});
|
|
13
17
|
Ghost.args = {
|
|
14
18
|
icon: 'gear'
|
|
15
19
|
};
|
|
16
|
-
export const Intents = () => /*#__PURE__*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
20
|
+
export const Intents = () => /*#__PURE__*/_jsxs(_Fragment, {
|
|
21
|
+
children: [/*#__PURE__*/_jsx(Basic, {
|
|
22
|
+
intent: "info",
|
|
23
|
+
...Basic.args
|
|
24
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
25
|
+
intent: "success",
|
|
26
|
+
...Basic.args
|
|
27
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
28
|
+
intent: "warning",
|
|
29
|
+
...Basic.args
|
|
30
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
31
|
+
intent: "danger",
|
|
32
|
+
...Basic.args
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
export const Arrows = () => /*#__PURE__*/_jsxs(_Fragment, {
|
|
36
|
+
children: [/*#__PURE__*/_jsxs("p", {
|
|
37
|
+
children: [/*#__PURE__*/_jsx(Basic, {
|
|
38
|
+
arrow: "forward",
|
|
39
|
+
...Basic.args
|
|
40
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
41
|
+
arrow: "forward",
|
|
42
|
+
size: "lg",
|
|
43
|
+
...Basic.args
|
|
44
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
45
|
+
arrow: "forward",
|
|
46
|
+
icon: "cpu",
|
|
47
|
+
...Basic.args
|
|
48
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
49
|
+
arrow: "forward",
|
|
50
|
+
intent: "danger",
|
|
51
|
+
...Basic.args
|
|
52
|
+
})]
|
|
53
|
+
}), /*#__PURE__*/_jsxs("p", {
|
|
54
|
+
children: [/*#__PURE__*/_jsx(Basic, {
|
|
55
|
+
arrow: "backward",
|
|
56
|
+
...Basic.args
|
|
57
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
58
|
+
arrow: "backward",
|
|
59
|
+
size: "lg",
|
|
60
|
+
...Basic.args
|
|
61
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
62
|
+
arrow: "backward",
|
|
63
|
+
icon: "cpu",
|
|
64
|
+
...Basic.args
|
|
65
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
66
|
+
arrow: "backward",
|
|
67
|
+
intent: "danger",
|
|
68
|
+
...Basic.args
|
|
69
|
+
})]
|
|
70
|
+
})]
|
|
71
|
+
});
|
|
48
72
|
export const States = () => [{
|
|
49
73
|
intent: 'primary'
|
|
50
74
|
}, {
|
|
51
75
|
disabled: true
|
|
52
76
|
}, {
|
|
53
77
|
ghost: true
|
|
54
|
-
}].map((props, index) =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
78
|
+
}].map((props, index) =>
|
|
79
|
+
/*#__PURE__*/
|
|
80
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
81
|
+
_jsxs("p", {
|
|
82
|
+
children: [/*#__PURE__*/_jsx(Basic, {
|
|
83
|
+
state: "hovered",
|
|
84
|
+
...Basic.args,
|
|
85
|
+
...props
|
|
86
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
87
|
+
state: "active",
|
|
88
|
+
...Basic.args,
|
|
89
|
+
...props
|
|
90
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
91
|
+
state: "loading",
|
|
92
|
+
...Basic.args,
|
|
93
|
+
...props
|
|
94
|
+
}), ` `, /*#__PURE__*/_jsx(Basic, {
|
|
95
|
+
state: "focused",
|
|
96
|
+
...Basic.args,
|
|
97
|
+
...props
|
|
98
|
+
})]
|
|
99
|
+
}, index.toString()));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { createContext } from 'react';
|
|
4
4
|
const defaultValue = {
|
|
5
5
|
defaultProps: {
|
|
6
6
|
size: undefined
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
export const ButtonContext = /*#__PURE__*/
|
|
9
|
+
export const ButtonContext = /*#__PURE__*/createContext(defaultValue);
|
|
10
10
|
export const getButtonContextValue = value => ({
|
|
11
11
|
...defaultValue,
|
|
12
12
|
...value,
|
|
@@ -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
|
* `ButtonGroup` component is used for visual grouping of several [Buttons](#!/Button) together.
|
|
9
8
|
* @since 0.0.37
|
|
@@ -16,9 +15,11 @@ const ButtonGroup = _ref => {
|
|
|
16
15
|
innerRef,
|
|
17
16
|
...props
|
|
18
17
|
} = _ref;
|
|
19
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/_jsx("div", {
|
|
20
19
|
className: classNames(baseClassName, className),
|
|
21
|
-
ref: innerRef
|
|
22
|
-
|
|
20
|
+
ref: innerRef,
|
|
21
|
+
...props,
|
|
22
|
+
children: children
|
|
23
|
+
});
|
|
23
24
|
};
|
|
24
25
|
export default ButtonGroup;
|