@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,11 +1,14 @@
|
|
|
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 } from 'react';
|
|
5
4
|
import List from './List';
|
|
6
5
|
import ListActions from './ListActions';
|
|
7
6
|
import ListAction from './ListAction';
|
|
8
|
-
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export const Basic = args => /*#__PURE__*/_jsx(List, {
|
|
10
|
+
...args
|
|
11
|
+
});
|
|
9
12
|
Basic.args = {
|
|
10
13
|
columns: [{
|
|
11
14
|
key: 'col1',
|
|
@@ -102,11 +105,12 @@ export const Reorderable = args => {
|
|
|
102
105
|
nextData.splice(newIndex, 0, nextData.splice(oldIndex, 1)[0]);
|
|
103
106
|
setData(nextData);
|
|
104
107
|
};
|
|
105
|
-
return /*#__PURE__*/
|
|
108
|
+
return /*#__PURE__*/_jsx(Basic, {
|
|
106
109
|
data: data,
|
|
107
110
|
reorderable: true,
|
|
108
|
-
onReorderEnd: handleReorderEnd
|
|
109
|
-
|
|
111
|
+
onReorderEnd: handleReorderEnd,
|
|
112
|
+
...props
|
|
113
|
+
});
|
|
110
114
|
};
|
|
111
115
|
Reorderable.args = {
|
|
112
116
|
...Basic.args
|
|
@@ -117,17 +121,18 @@ ReorderableFullFeatured.args = {
|
|
|
117
121
|
columns: [...Reorderable.args.columns, {
|
|
118
122
|
key: 'actions',
|
|
119
123
|
type: 'actions',
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
124
|
+
render: () => /*#__PURE__*/_jsxs(ListActions, {
|
|
125
|
+
children: [/*#__PURE__*/_jsx(ListAction, {
|
|
126
|
+
icon: "clip",
|
|
127
|
+
primary: true
|
|
128
|
+
}), /*#__PURE__*/_jsx(ListAction, {
|
|
129
|
+
icon: "clock",
|
|
130
|
+
primary: true
|
|
131
|
+
}), /*#__PURE__*/_jsx(ListAction, {
|
|
132
|
+
icon: "clone",
|
|
133
|
+
primary: true
|
|
134
|
+
})]
|
|
135
|
+
})
|
|
131
136
|
}],
|
|
132
137
|
onSelectionChange: () => {},
|
|
133
138
|
renderRowBody: () => null
|
|
@@ -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 Button from '../Button';
|
|
6
4
|
import { MenuItem } from '../Menu';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
/**
|
|
8
7
|
* `ListAction` component is a part of [ListActions](#!/ListActions) component.
|
|
9
8
|
* It accepts the props of [Button](#!/Button) and [MenuItem](#!/MenuItem) components.
|
|
@@ -19,14 +18,17 @@ const ListAction = _ref => {
|
|
|
19
18
|
} = _ref;
|
|
20
19
|
const render = children => {
|
|
21
20
|
if (primary) {
|
|
22
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
23
22
|
ghost: true,
|
|
24
|
-
tooltip: children
|
|
25
|
-
|
|
23
|
+
tooltip: children,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
26
|
}
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
-
tooltip: tooltip
|
|
29
|
-
|
|
27
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
|
28
|
+
tooltip: tooltip,
|
|
29
|
+
...props,
|
|
30
|
+
children: children
|
|
31
|
+
});
|
|
30
32
|
};
|
|
31
33
|
const unwrap = cb => cb({
|
|
32
34
|
wrap: children => render(children)
|
|
@@ -1,7 +1,6 @@
|
|
|
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 { Children, isValidElement, useState, useEffect, useContext, cloneElement } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
6
|
import Button from '../Button';
|
|
@@ -9,6 +8,8 @@ import Dropdown from '../Dropdown';
|
|
|
9
8
|
import Menu from '../Menu';
|
|
10
9
|
import ListAction from './ListAction';
|
|
11
10
|
import VerticalContext from '../VerticalContext';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
/**
|
|
13
14
|
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
14
15
|
* @since 3.3.0
|
|
@@ -48,10 +49,9 @@ const ListActions = _ref => {
|
|
|
48
49
|
} = node.props;
|
|
49
50
|
const key = index.toString();
|
|
50
51
|
if (primary && !vertical) {
|
|
51
|
-
primaryItems.push(hidden ? /*#__PURE__*/
|
|
52
|
-
className: `${baseClassName}__hidden-action
|
|
53
|
-
|
|
54
|
-
}) : node);
|
|
52
|
+
primaryItems.push(hidden ? /*#__PURE__*/_jsx("div", {
|
|
53
|
+
className: `${baseClassName}__hidden-action`
|
|
54
|
+
}, key) : node);
|
|
55
55
|
} else {
|
|
56
56
|
secondaryCount++;
|
|
57
57
|
if (!hidden) {
|
|
@@ -67,23 +67,28 @@ const ListActions = _ref => {
|
|
|
67
67
|
});
|
|
68
68
|
let secondaryDropdown;
|
|
69
69
|
if (secondaryItems.length > 0) {
|
|
70
|
-
secondaryDropdown = /*#__PURE__*/
|
|
70
|
+
secondaryDropdown = /*#__PURE__*/_jsx(Dropdown, {
|
|
71
71
|
className: `${baseClassName}__menu`,
|
|
72
|
-
menu: /*#__PURE__*/
|
|
72
|
+
menu: /*#__PURE__*/_jsx(Menu, {
|
|
73
|
+
children: secondaryItems
|
|
74
|
+
}),
|
|
73
75
|
menuPlacement: "bottom-end",
|
|
74
76
|
overlay: overlay,
|
|
75
|
-
locale: locale
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
locale: locale,
|
|
78
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
79
|
+
ghost: true,
|
|
80
|
+
icon: "kebab"
|
|
81
|
+
})
|
|
82
|
+
});
|
|
80
83
|
} else if (secondaryCount) {
|
|
81
|
-
secondaryDropdown = /*#__PURE__*/
|
|
84
|
+
secondaryDropdown = /*#__PURE__*/_jsx("div", {
|
|
82
85
|
className: `${baseClassName}__menu ${baseClassName}__hidden-action`
|
|
83
86
|
});
|
|
84
87
|
}
|
|
85
|
-
return /*#__PURE__*/
|
|
86
|
-
className: classNames(baseClassName, className)
|
|
87
|
-
|
|
88
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
89
|
+
className: classNames(baseClassName, className),
|
|
90
|
+
...props,
|
|
91
|
+
children: [primaryItems, secondaryDropdown]
|
|
92
|
+
});
|
|
88
93
|
};
|
|
89
94
|
export default ListActions;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { MenuDivider } from '../Menu';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
/**
|
|
6
6
|
* `ListActionsDivider` component is a part of [ListActions](#!/ListActions) component.
|
|
7
7
|
* It accepts the props of [MenuDivider](#!/MenuDivider) component.
|
|
8
8
|
* @since 3.10.0
|
|
9
9
|
*/
|
|
10
|
-
const ListActionsDivider = props => /*#__PURE__*/
|
|
10
|
+
const ListActionsDivider = props => /*#__PURE__*/_jsx(MenuDivider, {
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
11
13
|
export default ListActionsDivider;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
3
2
|
|
|
4
|
-
import React from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import Heading from '../Heading';
|
|
7
5
|
import Translate from '../Translate';
|
|
@@ -9,50 +7,55 @@ import empty from './images/default.png';
|
|
|
9
7
|
import filtered from './images/filtered.png';
|
|
10
8
|
import { CLS_PREFIX } from '../../constants';
|
|
11
9
|
import { ButtonContext, getButtonContextValue } from '../Button/ButtonContext';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const createImage = (baseClassName, image, reason) => {
|
|
13
13
|
if (image === undefined) {
|
|
14
14
|
image = reason === 'filtered' ? filtered : empty;
|
|
15
15
|
}
|
|
16
16
|
let node = image;
|
|
17
17
|
if (typeof image === 'string') {
|
|
18
|
-
node = /*#__PURE__*/
|
|
18
|
+
node = /*#__PURE__*/_jsx("img", {
|
|
19
19
|
src: image,
|
|
20
20
|
height: "192",
|
|
21
21
|
alt: ""
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
return node ? /*#__PURE__*/
|
|
25
|
-
className: `${baseClassName}__image
|
|
26
|
-
|
|
24
|
+
return node ? /*#__PURE__*/_jsx("div", {
|
|
25
|
+
className: `${baseClassName}__image`,
|
|
26
|
+
children: node
|
|
27
|
+
}) : null;
|
|
27
28
|
};
|
|
28
29
|
const createTitle = (baseClassName, title, reason) => {
|
|
29
30
|
if (title === undefined) {
|
|
30
|
-
title = reason === 'filtered' ? /*#__PURE__*/
|
|
31
|
+
title = reason === 'filtered' ? /*#__PURE__*/_jsx(Translate, {
|
|
31
32
|
content: "ListEmptyView.filteredTitle",
|
|
32
33
|
fallback: "Could not find any items matching the filter"
|
|
33
|
-
}) : /*#__PURE__*/
|
|
34
|
+
}) : /*#__PURE__*/_jsx(Translate, {
|
|
34
35
|
content: "ListEmptyView.emptyTitle",
|
|
35
36
|
fallback: "Looks like there's nothing here"
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/_jsx(Heading, {
|
|
39
40
|
level: 3,
|
|
40
|
-
className: `${baseClassName}__title
|
|
41
|
-
|
|
41
|
+
className: `${baseClassName}__title`,
|
|
42
|
+
children: title
|
|
43
|
+
});
|
|
42
44
|
};
|
|
43
45
|
const createDescription = (baseClassName, description, reason) => {
|
|
44
46
|
if (description === undefined && !reason) {
|
|
45
47
|
return null;
|
|
46
48
|
}
|
|
47
49
|
if (description === undefined && reason === 'filtered') {
|
|
48
|
-
description = /*#__PURE__*/
|
|
50
|
+
description = /*#__PURE__*/_jsx(Translate, {
|
|
49
51
|
content: "ListEmptyView.filteredDescription",
|
|
50
52
|
fallback: "Refine your query or remove some of the criteria from the filter and try again."
|
|
51
53
|
});
|
|
52
54
|
}
|
|
53
|
-
return /*#__PURE__*/
|
|
54
|
-
className: `${baseClassName}__description
|
|
55
|
-
|
|
55
|
+
return /*#__PURE__*/_jsx("div", {
|
|
56
|
+
className: `${baseClassName}__description`,
|
|
57
|
+
children: description
|
|
58
|
+
});
|
|
56
59
|
};
|
|
57
60
|
const buttonConfig = getButtonContextValue({
|
|
58
61
|
defaultProps: {
|
|
@@ -76,14 +79,19 @@ const ListEmptyView = _ref => {
|
|
|
76
79
|
reason,
|
|
77
80
|
...props
|
|
78
81
|
} = _ref;
|
|
79
|
-
return /*#__PURE__*/
|
|
80
|
-
className: classNames(baseClassName, className)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
83
|
+
className: classNames(baseClassName, className),
|
|
84
|
+
...props,
|
|
85
|
+
children: [createImage(baseClassName, image, reason), /*#__PURE__*/_jsxs("div", {
|
|
86
|
+
className: `${baseClassName}__body`,
|
|
87
|
+
children: [createTitle(baseClassName, title, reason), createDescription(baseClassName, description, reason), actions && /*#__PURE__*/_jsx("div", {
|
|
88
|
+
className: `${baseClassName}__actions`,
|
|
89
|
+
children: /*#__PURE__*/_jsx(ButtonContext.Provider, {
|
|
90
|
+
value: buttonConfig,
|
|
91
|
+
children: actions
|
|
92
|
+
})
|
|
93
|
+
})]
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
88
96
|
};
|
|
89
97
|
export default ListEmptyView;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { useContext, useState, useRef, cloneElement, isValidElement } from 'react';
|
|
4
4
|
import { safeInvoke } from '../utils';
|
|
5
5
|
import ListOperationContext from './ListOperationContext';
|
|
6
6
|
import Popover from '../Popover';
|
|
@@ -10,9 +10,12 @@ import Media from '../Media';
|
|
|
10
10
|
import Icon from '../Icon';
|
|
11
11
|
import Text from '../Text';
|
|
12
12
|
import Paragraph from '../Paragraph';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const toBold = value => value === undefined ? undefined : /*#__PURE__*/_jsx(Text, {
|
|
16
|
+
bold: true,
|
|
17
|
+
children: value
|
|
18
|
+
});
|
|
16
19
|
const getDefaultText = key => {
|
|
17
20
|
let fallback;
|
|
18
21
|
switch (key) {
|
|
@@ -23,12 +26,11 @@ const getDefaultText = key => {
|
|
|
23
26
|
throw new Error('Unknown key');
|
|
24
27
|
}
|
|
25
28
|
const content = `ListOperation.${key}`;
|
|
26
|
-
return /*#__PURE__*/
|
|
29
|
+
return /*#__PURE__*/_jsx(Translate, {
|
|
27
30
|
content: content,
|
|
28
31
|
fallback: fallback
|
|
29
32
|
});
|
|
30
33
|
};
|
|
31
|
-
|
|
32
34
|
/**
|
|
33
35
|
* `ListOperation` component is used in [Toolbar](#!/Toolbar) for performing
|
|
34
36
|
* operations on multiple objects in [List](#!/List).
|
|
@@ -48,7 +50,7 @@ const ListOperation = _ref => {
|
|
|
48
50
|
selectedRows,
|
|
49
51
|
selectedRowTitle
|
|
50
52
|
} = useContext(ListOperationContext);
|
|
51
|
-
const [settings, setSettings] = useState();
|
|
53
|
+
const [settings, setSettings] = useState(null);
|
|
52
54
|
const targetRef = useRef();
|
|
53
55
|
if (! /*#__PURE__*/isValidElement(children)) {
|
|
54
56
|
throw new Error('The "children" property must be an element.');
|
|
@@ -84,7 +86,7 @@ const ListOperation = _ref => {
|
|
|
84
86
|
case !selectedRows && critical:
|
|
85
87
|
setSettings({
|
|
86
88
|
message: toText(noSelectionText),
|
|
87
|
-
icon: /*#__PURE__*/
|
|
89
|
+
icon: /*#__PURE__*/_jsx(Icon, {
|
|
88
90
|
intent: "info",
|
|
89
91
|
name: "info-circle-filled"
|
|
90
92
|
})
|
|
@@ -106,20 +108,28 @@ const ListOperation = _ref => {
|
|
|
106
108
|
...props,
|
|
107
109
|
onClick: handleClick
|
|
108
110
|
});
|
|
109
|
-
return /*#__PURE__*/
|
|
111
|
+
return /*#__PURE__*/_jsx(Popover, {
|
|
110
112
|
visible: !!settings,
|
|
111
113
|
target: target,
|
|
112
114
|
targetRef: targetRef,
|
|
113
115
|
placement: "top",
|
|
114
|
-
onClose: handleCancel
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
116
|
+
onClose: handleCancel,
|
|
117
|
+
children: settings && /*#__PURE__*/_jsxs(Media, {
|
|
118
|
+
image: settings.icon,
|
|
119
|
+
children: [/*#__PURE__*/_jsx(Paragraph, {
|
|
120
|
+
children: settings.message
|
|
121
|
+
}), settings.actionButtonText && /*#__PURE__*/_jsxs("div", {
|
|
122
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
123
|
+
onClick: handleAction,
|
|
124
|
+
intent: settings.actionButtonIntent,
|
|
125
|
+
children: settings.actionButtonText
|
|
126
|
+
}), ` `, /*#__PURE__*/_jsx(Button, {
|
|
127
|
+
ghost: true,
|
|
128
|
+
onClick: handleCancel,
|
|
129
|
+
children: settings.cancelButtonText
|
|
130
|
+
})]
|
|
131
|
+
})]
|
|
132
|
+
})
|
|
133
|
+
});
|
|
124
134
|
};
|
|
125
135
|
export default ListOperation;
|
|
@@ -1,8 +1,9 @@
|
|
|
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 { PureComponent, isValidElement, cloneElement, createContext, useContext, useCallback } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const applyParams = function (message) {
|
|
7
8
|
let params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8
9
|
const result = [];
|
|
@@ -89,9 +90,10 @@ class LocaleProvider extends PureComponent {
|
|
|
89
90
|
const {
|
|
90
91
|
children
|
|
91
92
|
} = this.props;
|
|
92
|
-
return /*#__PURE__*/
|
|
93
|
-
value: this.getChildContext()
|
|
94
|
-
|
|
93
|
+
return /*#__PURE__*/_jsx(LocaleContext.Provider, {
|
|
94
|
+
value: this.getChildContext(),
|
|
95
|
+
children: children
|
|
96
|
+
});
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
_defineProperty(LocaleProvider, "childContextTypes", {
|
|
@@ -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
|
/* eslint-disable react/no-danger */
|
|
@@ -8,6 +7,7 @@ import PropTypes from 'prop-types';
|
|
|
8
7
|
import classNames from 'classnames';
|
|
9
8
|
import { marked } from 'marked';
|
|
10
9
|
import { CLS_PREFIX } from '../../constants';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
/**
|
|
12
12
|
* `Markdown` component is used for creating content with rich text formatting.
|
|
13
13
|
* @since 0.0.42
|
|
@@ -20,14 +20,15 @@ const Markdown = _ref => {
|
|
|
20
20
|
children,
|
|
21
21
|
...props
|
|
22
22
|
} = _ref;
|
|
23
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/_jsx("div", {
|
|
24
24
|
className: classNames(baseClassName, {
|
|
25
25
|
[`${baseClassName}--compact`]: compact
|
|
26
26
|
}, className),
|
|
27
27
|
dangerouslySetInnerHTML: {
|
|
28
28
|
__html: marked(children)
|
|
29
|
-
}
|
|
30
|
-
|
|
29
|
+
},
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
31
32
|
};
|
|
32
33
|
Markdown.propTypes = {
|
|
33
34
|
/**
|
|
@@ -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, { isValidElement, cloneElement, Children } from 'react';
|
|
@@ -7,6 +6,8 @@ import classNames from 'classnames';
|
|
|
7
6
|
import { CLS_PREFIX } from '../../constants';
|
|
8
7
|
import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32, ICON_SIZE_48, ICON_SIZE_64, ICON_SIZE_96, ICON_SIZE_128, ICON_SIZE_192 } from '../Icon';
|
|
9
8
|
import Heading from '../Heading';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
/**
|
|
11
12
|
* `Media` component is a combination of icon, text title and content.
|
|
12
13
|
* This layout was so widely spread in our products so we have decided to create a special component for it.
|
|
@@ -47,10 +48,11 @@ const Media = _ref => {
|
|
|
47
48
|
return null;
|
|
48
49
|
}
|
|
49
50
|
if (typeof title === 'string') {
|
|
50
|
-
return /*#__PURE__*/
|
|
51
|
+
return /*#__PURE__*/_jsx(Heading, {
|
|
51
52
|
level: 5,
|
|
52
|
-
className: `${baseClassName}__title
|
|
53
|
-
|
|
53
|
+
className: `${baseClassName}__title`,
|
|
54
|
+
children: title
|
|
55
|
+
});
|
|
54
56
|
}
|
|
55
57
|
if ( /*#__PURE__*/isValidElement(title)) {
|
|
56
58
|
return /*#__PURE__*/cloneElement(title, {
|
|
@@ -59,27 +61,34 @@ const Media = _ref => {
|
|
|
59
61
|
}
|
|
60
62
|
return null;
|
|
61
63
|
};
|
|
62
|
-
return /*#__PURE__*/
|
|
64
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
63
65
|
className: classNames(baseClassName, {
|
|
64
66
|
[`${baseClassName}--${align}`]: align,
|
|
65
67
|
[`${baseClassName}--vertical`]: vertical
|
|
66
|
-
}, className)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
[
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
}, className),
|
|
69
|
+
...props,
|
|
70
|
+
children: [image && /*#__PURE__*/_jsx("figure", {
|
|
71
|
+
className: classNames(`${baseClassName}__figure`, {
|
|
72
|
+
[`${baseClassName}__figure--${imageSpacing}`]: imageSpacing,
|
|
73
|
+
[`${baseClassName}__figure--${imageAlign}`]: imageAlign
|
|
74
|
+
}),
|
|
75
|
+
children: image
|
|
76
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
77
|
+
className: `${baseClassName}__body`,
|
|
78
|
+
children: [title || titleAddon ? /*#__PURE__*/_jsxs("div", {
|
|
79
|
+
className: classNames(`${baseClassName}__header`, {
|
|
80
|
+
[`${baseClassName}__header--${titleSize}`]: titleSize
|
|
81
|
+
}),
|
|
82
|
+
children: [renderTitle(title), titleAddon && /*#__PURE__*/_jsx("div", {
|
|
83
|
+
className: `${baseClassName}__title-addon`,
|
|
84
|
+
children: titleAddon
|
|
85
|
+
})]
|
|
86
|
+
}) : null, Children.toArray(children).length ? /*#__PURE__*/_jsx("div", {
|
|
87
|
+
className: `${baseClassName}__content`,
|
|
88
|
+
children: children
|
|
89
|
+
}) : null]
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
83
92
|
};
|
|
84
93
|
Media.propTypes = {
|
|
85
94
|
/**
|
|
@@ -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 from 'react';
|
|
@@ -10,6 +9,7 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
10
9
|
* `MediaSection` is a part of [Media](#!/Media) component.
|
|
11
10
|
* @since 0.0.68
|
|
12
11
|
*/
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const MediaSection = _ref => {
|
|
14
14
|
let {
|
|
15
15
|
baseClassName,
|
|
@@ -17,9 +17,11 @@ const MediaSection = _ref => {
|
|
|
17
17
|
children,
|
|
18
18
|
...props
|
|
19
19
|
} = _ref;
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
-
className: classNames(baseClassName, className)
|
|
22
|
-
|
|
20
|
+
return /*#__PURE__*/_jsx("div", {
|
|
21
|
+
className: classNames(baseClassName, className),
|
|
22
|
+
...props,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
23
25
|
};
|
|
24
26
|
MediaSection.propTypes = {
|
|
25
27
|
/**
|
|
@@ -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, { Children, cloneElement, isValidElement, forwardRef, useRef, useMemo } from 'react';
|
|
@@ -8,6 +7,7 @@ import classNames from 'classnames';
|
|
|
8
7
|
import { CLS_PREFIX } from '../../constants';
|
|
9
8
|
import MenuItem from './MenuItem';
|
|
10
9
|
import MenuSelectableItem from './MenuSelectableItem';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const hasIconItem = children => {
|
|
12
12
|
let result = false;
|
|
13
13
|
Children.forEach(children, child => {
|
|
@@ -95,13 +95,13 @@ const Menu = /*#__PURE__*/forwardRef(function Menu(_ref, ref) {
|
|
|
95
95
|
}
|
|
96
96
|
return /*#__PURE__*/cloneElement(child, props);
|
|
97
97
|
});
|
|
98
|
-
return /*#__PURE__*/
|
|
98
|
+
return /*#__PURE__*/_jsx("div", {
|
|
99
99
|
className: classNames(baseClassName, className, {
|
|
100
100
|
[`${baseClassName}--icons`]: hasIconItem(children),
|
|
101
101
|
[`${baseClassName}--overlay`]: overlay
|
|
102
102
|
}),
|
|
103
|
-
role: "menu"
|
|
104
|
-
|
|
103
|
+
role: "menu",
|
|
104
|
+
...props,
|
|
105
105
|
ref: el => {
|
|
106
106
|
rootRef.current = el;
|
|
107
107
|
if (ref) {
|
|
@@ -110,8 +110,9 @@ const Menu = /*#__PURE__*/forwardRef(function Menu(_ref, ref) {
|
|
|
110
110
|
},
|
|
111
111
|
onKeyDown: handleKeyDown,
|
|
112
112
|
onFocus: handleFocus,
|
|
113
|
-
tabIndex: -1
|
|
114
|
-
|
|
113
|
+
tabIndex: -1,
|
|
114
|
+
children: items
|
|
115
|
+
});
|
|
115
116
|
});
|
|
116
117
|
Menu.displayName = 'Menu';
|
|
117
118
|
Menu.propTypes = {
|