@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,6 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
// Copyright 1999-2017. Plesk International GmbH. All rights reserved.
|
|
3
|
-
/* eslint-disable react/prop-types */
|
|
4
2
|
|
|
5
3
|
import React, { isValidElement } from 'react';
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
@@ -14,6 +12,7 @@ import Menu from '../Menu';
|
|
|
14
12
|
import Checkbox from '../Checkbox';
|
|
15
13
|
import Badge from '../Badge';
|
|
16
14
|
import { VIEW_RESPONSIVE, VIEW_ROW, VIEW_TILE, VIEW_EXTENDED } from './CardList';
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
16
|
const renderSelection = (_ref, baseClassName) => {
|
|
18
17
|
let {
|
|
19
18
|
onSelectAll,
|
|
@@ -32,73 +31,82 @@ const renderSelection = (_ref, baseClassName) => {
|
|
|
32
31
|
} else {
|
|
33
32
|
buttonProps.component = 'label';
|
|
34
33
|
}
|
|
35
|
-
let button = /*#__PURE__*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
34
|
+
let button = /*#__PURE__*/_jsx(Button, {
|
|
35
|
+
...buttonProps,
|
|
36
|
+
className: `${baseClassName}--select-all-btn`,
|
|
37
|
+
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
38
|
+
checked: checked,
|
|
39
|
+
onChange: isChecked => {
|
|
40
|
+
if (isChecked) {
|
|
41
|
+
onSelectAll();
|
|
42
|
+
} else {
|
|
43
|
+
onSelectNone();
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
...checkboxProps
|
|
47
|
+
})
|
|
48
|
+
});
|
|
47
49
|
if (badge) {
|
|
48
50
|
if (typeof badge === 'string') {
|
|
49
51
|
badge = {
|
|
50
52
|
label: badge
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
|
-
button = /*#__PURE__*/
|
|
55
|
+
button = /*#__PURE__*/_jsx(Badge, {
|
|
56
|
+
...badge,
|
|
57
|
+
children: button
|
|
58
|
+
});
|
|
54
59
|
}
|
|
55
60
|
if (hasDropdown) {
|
|
56
|
-
button = /*#__PURE__*/
|
|
57
|
-
menu: /*#__PURE__*/
|
|
58
|
-
|
|
61
|
+
button = /*#__PURE__*/_jsx(Dropdown, {
|
|
62
|
+
menu: /*#__PURE__*/_jsx(Menu, {
|
|
63
|
+
children: menuItems
|
|
64
|
+
}),
|
|
65
|
+
children: button
|
|
66
|
+
});
|
|
59
67
|
}
|
|
60
|
-
return /*#__PURE__*/
|
|
61
|
-
|
|
62
|
-
title: /*#__PURE__*/React.createElement(Translate, {
|
|
68
|
+
return /*#__PURE__*/_jsx(ToolbarGroup, {
|
|
69
|
+
title: /*#__PURE__*/_jsx(Translate, {
|
|
63
70
|
content: "CardList.toolbarSelect",
|
|
64
71
|
fallback: "Select"
|
|
65
|
-
})
|
|
66
|
-
|
|
72
|
+
}),
|
|
73
|
+
children: button
|
|
74
|
+
}, "selection");
|
|
67
75
|
};
|
|
68
76
|
const renderView = (onViewChange, currentView) => {
|
|
69
77
|
const viewButtons = [{
|
|
70
78
|
value: VIEW_EXTENDED,
|
|
71
|
-
title: /*#__PURE__*/
|
|
79
|
+
title: /*#__PURE__*/_jsx(Translate, {
|
|
72
80
|
content: "CardList.viewCards",
|
|
73
81
|
fallback: "Cards"
|
|
74
82
|
}),
|
|
75
83
|
icon: 'site-page'
|
|
76
84
|
}, {
|
|
77
85
|
value: VIEW_TILE,
|
|
78
|
-
title: /*#__PURE__*/
|
|
86
|
+
title: /*#__PURE__*/_jsx(Translate, {
|
|
79
87
|
content: "CardList.viewTiles",
|
|
80
88
|
fallback: "Tiles"
|
|
81
89
|
}),
|
|
82
90
|
icon: 'four-squares'
|
|
83
91
|
}, {
|
|
84
92
|
value: VIEW_ROW,
|
|
85
|
-
title: /*#__PURE__*/
|
|
93
|
+
title: /*#__PURE__*/_jsx(Translate, {
|
|
86
94
|
content: "CardList.viewList",
|
|
87
95
|
fallback: "List"
|
|
88
96
|
}),
|
|
89
97
|
icon: 'list'
|
|
90
98
|
}];
|
|
91
|
-
return /*#__PURE__*/
|
|
92
|
-
|
|
93
|
-
title: /*#__PURE__*/React.createElement(Translate, {
|
|
99
|
+
return /*#__PURE__*/_jsx(ToolbarGroup, {
|
|
100
|
+
title: /*#__PURE__*/_jsx(Translate, {
|
|
94
101
|
content: "CardList.toolbarView",
|
|
95
102
|
fallback: "View"
|
|
103
|
+
}),
|
|
104
|
+
children: /*#__PURE__*/_jsx(SegmentedControl, {
|
|
105
|
+
buttons: viewButtons,
|
|
106
|
+
selected: currentView,
|
|
107
|
+
onChange: view => onViewChange(view)
|
|
96
108
|
})
|
|
97
|
-
},
|
|
98
|
-
buttons: viewButtons,
|
|
99
|
-
selected: currentView,
|
|
100
|
-
onChange: view => onViewChange(view)
|
|
101
|
-
}));
|
|
109
|
+
}, "view");
|
|
102
110
|
};
|
|
103
111
|
const isToolbarExpander = element => /*#__PURE__*/isValidElement(element) && element.type === ToolbarExpander;
|
|
104
112
|
const CardListToolbar = _ref2 => {
|
|
@@ -117,18 +125,17 @@ const CardListToolbar = _ref2 => {
|
|
|
117
125
|
if (onViewChange && currentView !== VIEW_RESPONSIVE) {
|
|
118
126
|
const hasExpander = groups.filter(isToolbarExpander).length > 0;
|
|
119
127
|
if (!hasExpander) {
|
|
120
|
-
toolbar.push( /*#__PURE__*/
|
|
121
|
-
key: "expander"
|
|
122
|
-
}));
|
|
128
|
+
toolbar.push( /*#__PURE__*/_jsx(ToolbarExpander, {}, "expander"));
|
|
123
129
|
}
|
|
124
130
|
toolbar.push(renderView(onViewChange, currentView));
|
|
125
131
|
}
|
|
126
132
|
if (toolbar.length === 0) {
|
|
127
133
|
return null;
|
|
128
134
|
}
|
|
129
|
-
return /*#__PURE__*/
|
|
130
|
-
className: baseClassName
|
|
131
|
-
|
|
135
|
+
return /*#__PURE__*/_jsx(Toolbar, {
|
|
136
|
+
className: baseClassName,
|
|
137
|
+
children: toolbar
|
|
138
|
+
});
|
|
132
139
|
};
|
|
133
140
|
CardListToolbar.propTypes = {
|
|
134
141
|
selection: PropTypes.object,
|
|
@@ -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
|
|
|
@@ -9,6 +8,8 @@ import classNames from 'classnames';
|
|
|
9
8
|
import Measure from 'react-measure';
|
|
10
9
|
import { CLS_PREFIX } from '../../constants';
|
|
11
10
|
import Icon from '../Icon';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const calcWidths = node => {
|
|
13
14
|
const slideWidths = [].map.call(node.childNodes, el => el.clientWidth);
|
|
14
15
|
const totalWidth = slideWidths.reduce((prev, curr) => prev + curr, 0);
|
|
@@ -59,7 +60,6 @@ class Carousel extends Component {
|
|
|
59
60
|
totalWidth
|
|
60
61
|
} = calcWidths(this.genuineRef.current);
|
|
61
62
|
if (this.state.totalWidth !== totalWidth) {
|
|
62
|
-
// eslint-disable-next-line react/no-did-update-set-state
|
|
63
63
|
this.setState({
|
|
64
64
|
slideWidths,
|
|
65
65
|
totalWidth,
|
|
@@ -174,44 +174,52 @@ class Carousel extends Component {
|
|
|
174
174
|
children,
|
|
175
175
|
...props
|
|
176
176
|
} = this.props;
|
|
177
|
-
return /*#__PURE__*/
|
|
177
|
+
return /*#__PURE__*/_jsx(Measure, {
|
|
178
178
|
onResize: this.handleResize,
|
|
179
179
|
bounds: true,
|
|
180
180
|
innerRef: node => {
|
|
181
181
|
this.rootRef.current = node;
|
|
182
|
+
},
|
|
183
|
+
children: _ref2 => {
|
|
184
|
+
let {
|
|
185
|
+
measureRef
|
|
186
|
+
} = _ref2;
|
|
187
|
+
return /*#__PURE__*/_jsxs("section", {
|
|
188
|
+
ref: measureRef,
|
|
189
|
+
className: classNames(baseClassName, className),
|
|
190
|
+
...props,
|
|
191
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
192
|
+
className: `${baseClassName}__slides`,
|
|
193
|
+
style: showControls ? this.listStyle() : null,
|
|
194
|
+
children: [showControls && children, /*#__PURE__*/_jsx("div", {
|
|
195
|
+
className: `${baseClassName}__genuine-slides`,
|
|
196
|
+
ref: this.genuineRef,
|
|
197
|
+
children: children
|
|
198
|
+
}), showControls && children]
|
|
199
|
+
}), showControls && /*#__PURE__*/_jsxs("div", {
|
|
200
|
+
className: `${baseClassName}__controls`,
|
|
201
|
+
children: [/*#__PURE__*/_jsx("button", {
|
|
202
|
+
type: "button",
|
|
203
|
+
className: classNames(`${baseClassName}__control`, `${baseClassName}__control--previous`),
|
|
204
|
+
onClick: this.handlePrevClick,
|
|
205
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
206
|
+
name: "chevron-left",
|
|
207
|
+
flipHorizontal: this.isRtl,
|
|
208
|
+
className: `${baseClassName}__control-icon`
|
|
209
|
+
})
|
|
210
|
+
}), /*#__PURE__*/_jsx("button", {
|
|
211
|
+
type: "button",
|
|
212
|
+
className: classNames(`${baseClassName}__control`, `${baseClassName}__control--next`),
|
|
213
|
+
onClick: this.handleNextClick,
|
|
214
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
215
|
+
name: "chevron-right",
|
|
216
|
+
flipHorizontal: this.isRtl,
|
|
217
|
+
className: `${baseClassName}__control-icon`
|
|
218
|
+
})
|
|
219
|
+
})]
|
|
220
|
+
})]
|
|
221
|
+
});
|
|
182
222
|
}
|
|
183
|
-
}, _ref2 => {
|
|
184
|
-
let {
|
|
185
|
-
measureRef
|
|
186
|
-
} = _ref2;
|
|
187
|
-
return /*#__PURE__*/React.createElement("section", _extends({
|
|
188
|
-
ref: measureRef,
|
|
189
|
-
className: classNames(baseClassName, className)
|
|
190
|
-
}, props), /*#__PURE__*/React.createElement("div", {
|
|
191
|
-
className: `${baseClassName}__slides`,
|
|
192
|
-
style: showControls ? this.listStyle() : null
|
|
193
|
-
}, showControls && children, /*#__PURE__*/React.createElement("div", {
|
|
194
|
-
className: `${baseClassName}__genuine-slides`,
|
|
195
|
-
ref: this.genuineRef
|
|
196
|
-
}, children), showControls && children), showControls && /*#__PURE__*/React.createElement("div", {
|
|
197
|
-
className: `${baseClassName}__controls`
|
|
198
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
199
|
-
type: "button",
|
|
200
|
-
className: classNames(`${baseClassName}__control`, `${baseClassName}__control--previous`),
|
|
201
|
-
onClick: this.handlePrevClick
|
|
202
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
203
|
-
name: "chevron-left",
|
|
204
|
-
flipHorizontal: this.isRtl,
|
|
205
|
-
className: `${baseClassName}__control-icon`
|
|
206
|
-
})), /*#__PURE__*/React.createElement("button", {
|
|
207
|
-
type: "button",
|
|
208
|
-
className: classNames(`${baseClassName}__control`, `${baseClassName}__control--next`),
|
|
209
|
-
onClick: this.handleNextClick
|
|
210
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
211
|
-
name: "chevron-right",
|
|
212
|
-
flipHorizontal: this.isRtl,
|
|
213
|
-
className: `${baseClassName}__control-icon`
|
|
214
|
-
}))));
|
|
215
223
|
});
|
|
216
224
|
}
|
|
217
225
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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';
|
|
7
5
|
import Tooltip from '../Tooltip';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
/**
|
|
9
9
|
* `Checkbox` component is used for turning an option on or off and selecting or deselecting an item.
|
|
10
10
|
* @since 0.0.55
|
|
@@ -30,30 +30,36 @@ const Checkbox = _ref => {
|
|
|
30
30
|
onChange(event.target.checked);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
let result = /*#__PURE__*/
|
|
33
|
+
let result = /*#__PURE__*/_jsxs("div", {
|
|
34
34
|
className: classNames(baseClassName, {
|
|
35
35
|
[`${baseClassName}--disabled`]: disabled,
|
|
36
36
|
[`${baseClassName}--indeterminate`]: indeterminate
|
|
37
|
-
}, className)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
}, className),
|
|
38
|
+
...props,
|
|
39
|
+
children: [/*#__PURE__*/_jsxs("label", {
|
|
40
|
+
className: `${baseClassName}__label`,
|
|
41
|
+
children: [/*#__PURE__*/_jsx("input", {
|
|
42
|
+
className: `${baseClassName}__input`,
|
|
43
|
+
type: "checkbox",
|
|
44
|
+
onChange: handleChange,
|
|
45
|
+
checked: !indeterminate && checked,
|
|
46
|
+
defaultChecked: defaultChecked,
|
|
47
|
+
disabled: disabled,
|
|
48
|
+
name: name,
|
|
49
|
+
...inputProps
|
|
50
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
51
|
+
className: `${baseClassName}__indicator`
|
|
52
|
+
}), children ? /*#__PURE__*/_jsx("span", {
|
|
53
|
+
className: `${baseClassName}__text`,
|
|
54
|
+
children: children
|
|
55
|
+
}) : null]
|
|
56
|
+
}), rightAddon ? rightAddon : null]
|
|
57
|
+
});
|
|
53
58
|
if (tooltip) {
|
|
54
|
-
result = /*#__PURE__*/
|
|
55
|
-
title: tooltip
|
|
56
|
-
|
|
59
|
+
result = /*#__PURE__*/_jsx(Tooltip, {
|
|
60
|
+
title: tooltip,
|
|
61
|
+
children: result
|
|
62
|
+
});
|
|
57
63
|
}
|
|
58
64
|
return result;
|
|
59
65
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { useState } from 'react';
|
|
4
4
|
import Button from '../Button';
|
|
5
5
|
import Dialog from '../Dialog';
|
|
6
6
|
import Paragraph from '../Paragraph';
|
|
7
7
|
import Translate from '../Translate';
|
|
8
8
|
import { safeInvoke } from '../utils';
|
|
9
9
|
import locale from './locale/en-US';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
const useClosingConfirmation = _ref => {
|
|
11
12
|
let {
|
|
12
13
|
onClose,
|
|
@@ -34,29 +35,32 @@ const useClosingConfirmation = _ref => {
|
|
|
34
35
|
}
|
|
35
36
|
let closingConfirmationDialog = null;
|
|
36
37
|
if (isReady) {
|
|
37
|
-
closingConfirmationDialog = /*#__PURE__*/
|
|
38
|
+
closingConfirmationDialog = /*#__PURE__*/_jsx(Dialog, {
|
|
38
39
|
isOpen: isDialogVisible,
|
|
39
40
|
size: "sm",
|
|
40
41
|
onClose: handleCancel,
|
|
41
|
-
buttons: [/*#__PURE__*/
|
|
42
|
-
key: "cancel",
|
|
42
|
+
buttons: [/*#__PURE__*/_jsx(Button, {
|
|
43
43
|
intent: "primary",
|
|
44
|
-
onClick: handleCancel
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
onClick: handleConfirm
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
44
|
+
onClick: handleCancel,
|
|
45
|
+
children: /*#__PURE__*/_jsx(Translate, {
|
|
46
|
+
content: "ClosingConfirmation.cancel",
|
|
47
|
+
fallback: locale.cancel
|
|
48
|
+
})
|
|
49
|
+
}, "cancel"), /*#__PURE__*/_jsx(Button, {
|
|
50
|
+
onClick: handleConfirm,
|
|
51
|
+
children: /*#__PURE__*/_jsx(Translate, {
|
|
52
|
+
content: "ClosingConfirmation.confirm",
|
|
53
|
+
fallback: locale.confirm
|
|
54
|
+
})
|
|
55
|
+
}, "confirm")],
|
|
56
|
+
cancelButton: false,
|
|
57
|
+
children: /*#__PURE__*/_jsx(Paragraph, {
|
|
58
|
+
children: /*#__PURE__*/_jsx(Translate, {
|
|
59
|
+
content: "ClosingConfirmation.content",
|
|
60
|
+
fallback: locale.content
|
|
61
|
+
})
|
|
62
|
+
})
|
|
63
|
+
});
|
|
60
64
|
}
|
|
61
65
|
return {
|
|
62
66
|
onCloseWithConfirmation,
|
|
@@ -1,15 +1,13 @@
|
|
|
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
|
-
/* eslint-disable react/no-deprecated */
|
|
6
|
-
|
|
7
4
|
import React, { Component } from 'react';
|
|
8
5
|
import { safeInvoke } from '../utils';
|
|
9
6
|
import { isRtl } from '../../utils';
|
|
10
7
|
import PropTypes from 'prop-types';
|
|
11
8
|
import classNames from 'classnames';
|
|
12
9
|
import { CLS_PREFIX } from '../../constants';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
11
|
/**
|
|
14
12
|
* `CodeEditor` component is used for editing text as code with proper color highlighting according to selected programming language.
|
|
15
13
|
* @since 0.0.61
|
|
@@ -188,14 +186,15 @@ class CodeEditor extends Component {
|
|
|
188
186
|
const {
|
|
189
187
|
content
|
|
190
188
|
} = this.state;
|
|
191
|
-
return /*#__PURE__*/
|
|
189
|
+
return /*#__PURE__*/_jsx("textarea", {
|
|
192
190
|
style: {
|
|
193
191
|
display: 'none'
|
|
194
192
|
},
|
|
195
193
|
ref: ref => this.textareaNode = ref,
|
|
196
194
|
className: classNames(baseClassName, className),
|
|
197
|
-
defaultValue: content
|
|
198
|
-
|
|
195
|
+
defaultValue: content,
|
|
196
|
+
...props
|
|
197
|
+
});
|
|
199
198
|
}
|
|
200
199
|
}
|
|
201
200
|
CodeEditor.propTypes = {
|
|
@@ -1,10 +1,10 @@
|
|
|
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 VerticalContext from '../VerticalContext';
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const normalize = value => String(Number(value)) === String(value) ? `${value}px` : value;
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -25,7 +25,7 @@ const Column = _ref => {
|
|
|
25
25
|
...props
|
|
26
26
|
} = _ref;
|
|
27
27
|
const vertical = useContext(VerticalContext);
|
|
28
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/_jsx("div", {
|
|
29
29
|
className: classNames(baseClassName, {
|
|
30
30
|
[`${baseClassName}--fill`]: fill && !vertical,
|
|
31
31
|
[`${baseClassName}--ratio-${ratio}`]: ratio && !vertical,
|
|
@@ -36,7 +36,9 @@ const Column = _ref => {
|
|
|
36
36
|
flexBasis: normalize(minWidth),
|
|
37
37
|
maxWidth: normalize(maxWidth),
|
|
38
38
|
...style
|
|
39
|
-
}
|
|
40
|
-
|
|
39
|
+
},
|
|
40
|
+
...props,
|
|
41
|
+
children: children
|
|
42
|
+
});
|
|
41
43
|
};
|
|
42
44
|
export default Column;
|
|
@@ -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 { useState, useContext } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import Measure from 'react-measure';
|
|
7
6
|
import { CLS_PREFIX } from '../../constants';
|
|
8
7
|
import VerticalContext, { VERTICAL_BREAKPOINT } from '../VerticalContext';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
/**
|
|
10
10
|
* `Columns` component is used for creating of multi-column layouts.
|
|
11
11
|
* @since 2.6.0
|
|
@@ -34,24 +34,28 @@ const Columns = _ref => {
|
|
|
34
34
|
} = _ref2;
|
|
35
35
|
setVertical(bounds.width < verticalProp);
|
|
36
36
|
};
|
|
37
|
-
const createRoot = measureRef => /*#__PURE__*/
|
|
37
|
+
const createRoot = measureRef => /*#__PURE__*/_jsx("div", {
|
|
38
38
|
ref: measureRef,
|
|
39
39
|
className: classNames(baseClassName, {
|
|
40
40
|
[`${baseClassName}--vertical`]: vertical,
|
|
41
41
|
[`${baseClassName}--gap-${gap}`]: gap
|
|
42
|
-
}, className)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
}, className),
|
|
43
|
+
...props,
|
|
44
|
+
children: /*#__PURE__*/_jsx(VerticalContext.Provider, {
|
|
45
|
+
value: vertical,
|
|
46
|
+
children: children
|
|
47
|
+
})
|
|
48
|
+
});
|
|
46
49
|
if (typeof verticalProp === 'number') {
|
|
47
|
-
return /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/_jsx(Measure, {
|
|
48
51
|
bounds: true,
|
|
49
|
-
onResize: handleResize
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
onResize: handleResize,
|
|
53
|
+
children: _ref3 => {
|
|
54
|
+
let {
|
|
55
|
+
measureRef
|
|
56
|
+
} = _ref3;
|
|
57
|
+
return createRoot(measureRef);
|
|
58
|
+
}
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
return createRoot();
|
|
@@ -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 { useState, useRef, Children, isValidElement } from 'react';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
6
|
import { safeInvoke, EventEmitter } from '../utils';
|
|
@@ -9,6 +8,7 @@ import Input from '../Input';
|
|
|
9
8
|
import Icon from '../Icon';
|
|
10
9
|
import ComboBoxDropdown, { findNextSafeIndex } from '../ComboBoxDropdown';
|
|
11
10
|
import ComboBoxOption from './ComboBoxOption';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
const collect = function (children) {
|
|
13
13
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
14
14
|
Children.forEach(children, child => {
|
|
@@ -134,17 +134,18 @@ const ComboBox = _ref => {
|
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
const button = /*#__PURE__*/
|
|
137
|
+
const button = /*#__PURE__*/_jsx("button", {
|
|
138
138
|
className: `${baseClassName}__dropdown-button`,
|
|
139
139
|
onClick: handleToggle,
|
|
140
140
|
onMouseDown: e => e.preventDefault(),
|
|
141
141
|
disabled: disabled,
|
|
142
142
|
type: "button",
|
|
143
|
-
tabIndex: -1
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
tabIndex: -1,
|
|
144
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
145
|
+
name: "chevron-down"
|
|
146
|
+
})
|
|
147
|
+
});
|
|
148
|
+
const control = /*#__PURE__*/_jsx(Input, {
|
|
148
149
|
className: classNames(`${baseClassName}__input`, {
|
|
149
150
|
[`${baseClassName}__input--disabled`]: disabled
|
|
150
151
|
}),
|
|
@@ -163,7 +164,7 @@ const ComboBox = _ref => {
|
|
|
163
164
|
ref: controlRef
|
|
164
165
|
}
|
|
165
166
|
});
|
|
166
|
-
return /*#__PURE__*/
|
|
167
|
+
return /*#__PURE__*/_jsx(ComboBoxDropdown, {
|
|
167
168
|
className: classNames(baseClassName, className, {
|
|
168
169
|
[`${baseClassName}--size-${size}`]: size
|
|
169
170
|
}),
|
|
@@ -180,12 +181,12 @@ const ComboBox = _ref => {
|
|
|
180
181
|
onHighlightedIndexChange: handleHighlightedIndexChange,
|
|
181
182
|
onClose: handleClose,
|
|
182
183
|
value: value,
|
|
183
|
-
emitter: emitterRef.current
|
|
184
|
-
|
|
184
|
+
emitter: emitterRef.current,
|
|
185
|
+
...props
|
|
186
|
+
});
|
|
185
187
|
};
|
|
186
188
|
const withDefaultValue = Component => {
|
|
187
189
|
const Wrapper = props => {
|
|
188
|
-
// eslint-disable-next-line react/prop-types
|
|
189
190
|
const {
|
|
190
191
|
defaultValue,
|
|
191
192
|
onChange
|
|
@@ -201,7 +202,10 @@ const withDefaultValue = Component => {
|
|
|
201
202
|
}
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
|
-
return /*#__PURE__*/
|
|
205
|
+
return /*#__PURE__*/_jsx(Component, {
|
|
206
|
+
...props,
|
|
207
|
+
...propOverrides
|
|
208
|
+
});
|
|
205
209
|
};
|
|
206
210
|
Wrapper.displayName = `withDefaultValue(${Component.name})`;
|
|
207
211
|
return Wrapper;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
2
3
|
|
|
3
|
-
import React from 'react';
|
|
4
4
|
/**
|
|
5
5
|
* `ComboBoxOption` is a part of [ComboBox](#!/ComboBox) component.
|
|
6
6
|
* @since 2.6.0
|
|
@@ -9,7 +9,7 @@ const ComboBoxOption = _props => {
|
|
|
9
9
|
// styleguidist doesn't show Props & Methods if component renders nothing
|
|
10
10
|
// eslint-disable-next-line no-constant-condition
|
|
11
11
|
if (false) {
|
|
12
|
-
return /*#__PURE__*/
|
|
12
|
+
return /*#__PURE__*/_jsx("option", {});
|
|
13
13
|
}
|
|
14
14
|
return null;
|
|
15
15
|
};
|