@plesk/ui-library 3.27.2 → 3.27.3
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/README.md +35 -35
- package/cjs/components/Action/Action.js +3 -3
- package/cjs/components/Alert/Alert.js +5 -5
- package/cjs/components/AutoClosable/AutoClosable.js +3 -3
- package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
- package/cjs/components/Badge/Badge.js +3 -3
- package/cjs/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/cjs/components/Button/Button.js +50 -50
- package/cjs/components/ButtonGroup/ButtonGroup.js +3 -3
- package/cjs/components/Card/Card.js +52 -52
- package/cjs/components/Card/CardButton.js +2 -2
- package/cjs/components/Card/PreviewPanel.js +3 -3
- package/cjs/components/Card/images/no-image.svg +6 -6
- package/cjs/components/CardList/CardList.js +55 -55
- package/cjs/components/Carousel/Carousel.js +11 -11
- package/cjs/components/Checkbox/Checkbox.js +3 -3
- package/cjs/components/CodeEditor/CodeEditor.js +40 -40
- package/cjs/components/Columns/Column.js +3 -3
- package/cjs/components/Columns/Columns.js +3 -3
- package/cjs/components/ComboBox/ComboBox.js +4 -4
- package/cjs/components/ComboBox/ComboBoxOption.js +3 -3
- package/cjs/components/ConsoleOutput/ConsoleOutput.js +3 -3
- package/cjs/components/ContentLoader/ContentLoader.js +3 -3
- package/cjs/components/Cuttable/Cuttable.js +3 -3
- package/cjs/components/Dialog/Dialog.js +74 -65
- package/cjs/components/Drawer/Drawer.js +71 -71
- package/cjs/components/Dropdown/Dropdown.js +24 -24
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
- package/cjs/components/Figure/Figure.js +14 -14
- package/cjs/components/Form/Form.js +4 -4
- package/cjs/components/Form/utils.js +22 -22
- package/cjs/components/FormField/FormField.js +78 -78
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +28 -242
- package/cjs/components/FormFieldPassword/PasswordMeter.js +81 -0
- package/cjs/components/FormFieldPassword/estimatePassword.js +203 -0
- package/cjs/components/FormFieldPassword/generatePassword.js +21 -0
- package/cjs/components/FormFieldPassword/index.js +5 -5
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +4 -4
- package/cjs/components/FormFieldText/FormFieldText.js +36 -36
- package/cjs/components/Grid/Grid.js +37 -37
- package/cjs/components/GridCol/GridCol.js +25 -25
- package/cjs/components/Heading/Heading.js +3 -3
- package/cjs/components/Hint/Hint.js +3 -3
- package/cjs/components/Icon/Icon.js +6 -6
- package/cjs/components/Icon/images/symbols.svg +1653 -1653
- package/cjs/components/InPlaceEdit/InPlaceEdit.js +15 -15
- package/cjs/components/Input/Input.js +3 -3
- package/cjs/components/InputFile/InputFile.js +3 -3
- package/cjs/components/InputNumber/InputNumber.js +3 -3
- package/cjs/components/Item/Item.js +41 -41
- package/cjs/components/ItemLink/ItemLink.js +4 -4
- package/cjs/components/ItemList/ItemList.js +6 -6
- package/cjs/components/Label/Label.js +3 -3
- package/cjs/components/Layer/Layer.js +2 -2
- package/cjs/components/Layout/Layout.js +55 -55
- package/cjs/components/Link/Link.js +6 -6
- package/cjs/components/List/List.js +133 -133
- package/cjs/components/List/ListAction.js +4 -4
- package/cjs/components/List/ListActions.js +3 -3
- package/cjs/components/List/ListActionsDivider.js +4 -4
- package/cjs/components/List/ListEmptyView.js +4 -4
- package/cjs/components/List/ListOperation.js +4 -4
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- package/cjs/components/Markdown/Markdown.js +13 -13
- package/cjs/components/Media/Media.js +37 -37
- package/cjs/components/Media/MediaSection.js +10 -10
- package/cjs/components/Menu/Menu.js +28 -28
- package/cjs/components/Menu/MenuBaseItem.js +19 -19
- package/cjs/components/Menu/MenuDivider.js +7 -7
- package/cjs/components/Menu/MenuHeader.js +10 -10
- package/cjs/components/Menu/MenuItem.js +27 -27
- package/cjs/components/Menu/MenuSelectableItem.js +13 -13
- package/cjs/components/Overlay/Backdrop.js +6 -6
- package/cjs/components/Overlay/Overlay.js +34 -34
- package/cjs/components/PageHeader/PageHeader.js +3 -3
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +3 -3
- package/cjs/components/Paragraph/Paragraph.js +3 -3
- package/cjs/components/Plaintext/Plaintext.js +10 -10
- package/cjs/components/Popover/Popover.js +59 -59
- package/cjs/components/Popper/Popper.js +30 -30
- package/cjs/components/Progress/Progress.js +13 -13
- package/cjs/components/ProgressDialog/ProgressDialog.js +49 -48
- package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
- package/cjs/components/ProgressStep/ProgressStep.js +25 -25
- package/cjs/components/Radio/Radio.js +3 -3
- package/cjs/components/Rating/Rating.js +13 -13
- package/cjs/components/Rating/images/rating.svg +6 -6
- package/cjs/components/Section/Section.js +41 -41
- package/cjs/components/Section/SectionItem.js +18 -18
- package/cjs/components/SegmentedControl/SegmentedControl.js +37 -37
- package/cjs/components/Select/MultiValue.js +1 -1
- package/cjs/components/Select/Select.js +3 -3
- package/cjs/components/Select/SelectControl.js +1 -1
- package/cjs/components/Select/SelectOption.js +3 -3
- package/cjs/components/Select/SelectOptionGroup.js +3 -3
- package/cjs/components/Spinner/Spinner.js +2 -2
- package/cjs/components/SplitButton/SplitButton.js +20 -20
- package/cjs/components/Spot/Spot.js +3 -3
- package/cjs/components/Status/Status.js +3 -3
- package/cjs/components/StatusMessage/StatusMessage.js +4 -4
- package/cjs/components/Subnav/Subnav.js +22 -22
- package/cjs/components/Switch/Switch.js +31 -31
- package/cjs/components/SwitchesPanel/SwitchesPanel.js +10 -10
- package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +33 -33
- package/cjs/components/Tabs/SearchBar.js +57 -57
- package/cjs/components/Tabs/Tab.js +28 -28
- package/cjs/components/Tabs/Tabs.js +33 -33
- package/cjs/components/Text/Text.js +3 -3
- package/cjs/components/TextArea/TextArea.js +3 -3
- package/cjs/components/Toaster/Toaster.js +32 -32
- package/cjs/components/Toolbar/Toolbar.js +13 -13
- package/cjs/components/Toolbar/ToolbarExpander.js +5 -5
- package/cjs/components/Toolbar/ToolbarGroup.js +17 -17
- package/cjs/components/Tooltip/Tooltip.js +19 -19
- package/cjs/components/Tour/Tour.js +5 -5
- package/cjs/components/Translate/Translate.js +25 -25
- package/cjs/index.js +1 -1
- package/dist/images/no-image.svg +6 -6
- package/dist/images/rating.svg +6 -6
- package/dist/images/symbols.svg +1653 -1653
- 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 +6625 -6638
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +5 -5
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +3 -3
- package/esm/components/Alert/Alert.js +5 -5
- package/esm/components/AutoClosable/AutoClosable.js +3 -3
- package/esm/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
- package/esm/components/Badge/Badge.js +3 -3
- package/esm/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/esm/components/Button/Button.js +50 -50
- package/esm/components/ButtonGroup/ButtonGroup.js +3 -3
- package/esm/components/Card/Card.js +52 -52
- package/esm/components/Card/CardButton.js +2 -2
- package/esm/components/Card/PreviewPanel.js +3 -3
- package/esm/components/Card/images/no-image.svg +6 -6
- package/esm/components/CardList/CardList.js +55 -55
- package/esm/components/Carousel/Carousel.js +11 -11
- package/esm/components/Checkbox/Checkbox.js +3 -3
- package/esm/components/CodeEditor/CodeEditor.js +40 -40
- package/esm/components/Columns/Column.js +3 -3
- package/esm/components/Columns/Columns.js +3 -3
- package/esm/components/ComboBox/ComboBox.js +4 -4
- package/esm/components/ComboBox/ComboBoxOption.js +3 -3
- package/esm/components/ConsoleOutput/ConsoleOutput.js +3 -3
- package/esm/components/ContentLoader/ContentLoader.js +3 -3
- package/esm/components/Cuttable/Cuttable.js +3 -3
- package/esm/components/Dialog/Dialog.js +74 -65
- package/esm/components/Drawer/Drawer.js +71 -71
- package/esm/components/Dropdown/Dropdown.js +24 -24
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
- package/esm/components/Figure/Figure.js +14 -14
- package/esm/components/Form/Form.js +4 -4
- package/esm/components/Form/utils.js +22 -22
- package/esm/components/FormField/FormField.js +78 -78
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/esm/components/FormFieldPassword/FormFieldPassword.js +26 -235
- package/esm/components/FormFieldPassword/PasswordMeter.js +61 -0
- package/esm/components/FormFieldPassword/estimatePassword.js +187 -0
- package/esm/components/FormFieldPassword/generatePassword.js +14 -0
- package/esm/components/FormFieldPassword/index.js +3 -2
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
- package/esm/components/FormFieldSelect/FormFieldSelect.js +4 -4
- package/esm/components/FormFieldText/FormFieldText.js +36 -36
- package/esm/components/Grid/Grid.js +37 -37
- package/esm/components/GridCol/GridCol.js +25 -25
- package/esm/components/Heading/Heading.js +3 -3
- package/esm/components/Hint/Hint.js +3 -3
- package/esm/components/Icon/Icon.js +6 -6
- package/esm/components/Icon/images/symbols.svg +1653 -1653
- package/esm/components/InPlaceEdit/InPlaceEdit.js +15 -15
- package/esm/components/Input/Input.js +3 -3
- package/esm/components/InputFile/InputFile.js +3 -3
- package/esm/components/InputNumber/InputNumber.js +3 -3
- package/esm/components/Item/Item.js +41 -41
- package/esm/components/ItemLink/ItemLink.js +4 -4
- package/esm/components/ItemList/ItemList.js +6 -6
- package/esm/components/Label/Label.js +3 -3
- package/esm/components/Layer/Layer.js +2 -2
- package/esm/components/Layout/Layout.js +55 -55
- package/esm/components/Link/Link.js +6 -6
- package/esm/components/List/List.js +133 -133
- package/esm/components/List/ListAction.js +4 -4
- package/esm/components/List/ListActions.js +3 -3
- package/esm/components/List/ListActionsDivider.js +4 -4
- package/esm/components/List/ListEmptyView.js +4 -4
- package/esm/components/List/ListOperation.js +4 -4
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/components/Markdown/Markdown.js +13 -13
- package/esm/components/Media/Media.js +37 -37
- package/esm/components/Media/MediaSection.js +10 -10
- package/esm/components/Menu/Menu.js +28 -28
- package/esm/components/Menu/MenuBaseItem.js +19 -19
- package/esm/components/Menu/MenuDivider.js +7 -7
- package/esm/components/Menu/MenuHeader.js +10 -10
- package/esm/components/Menu/MenuItem.js +27 -27
- package/esm/components/Menu/MenuSelectableItem.js +13 -13
- package/esm/components/Overlay/Backdrop.js +6 -6
- package/esm/components/Overlay/Overlay.js +34 -34
- package/esm/components/PageHeader/PageHeader.js +3 -3
- package/esm/components/Pagination/Pagination.js +3 -3
- package/esm/components/Panel/Panel.js +3 -3
- package/esm/components/Paragraph/Paragraph.js +3 -3
- package/esm/components/Plaintext/Plaintext.js +10 -10
- package/esm/components/Popover/Popover.js +59 -59
- package/esm/components/Popper/Popper.js +30 -30
- package/esm/components/Progress/Progress.js +13 -13
- package/esm/components/ProgressDialog/ProgressDialog.js +49 -48
- package/esm/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
- package/esm/components/ProgressStep/ProgressStep.js +25 -25
- package/esm/components/Radio/Radio.js +3 -3
- package/esm/components/Rating/Rating.js +13 -13
- package/esm/components/Rating/images/rating.svg +6 -6
- package/esm/components/Section/Section.js +41 -41
- package/esm/components/Section/SectionItem.js +18 -18
- package/esm/components/SegmentedControl/SegmentedControl.js +37 -37
- package/esm/components/Select/MultiValue.js +1 -1
- package/esm/components/Select/Select.js +3 -3
- package/esm/components/Select/SelectControl.js +1 -1
- package/esm/components/Select/SelectOption.js +3 -3
- package/esm/components/Select/SelectOptionGroup.js +3 -3
- package/esm/components/Spinner/Spinner.js +2 -2
- package/esm/components/SplitButton/SplitButton.js +20 -20
- package/esm/components/Spot/Spot.js +3 -3
- package/esm/components/Status/Status.js +3 -3
- package/esm/components/StatusMessage/StatusMessage.js +4 -4
- package/esm/components/Subnav/Subnav.js +22 -22
- package/esm/components/Switch/Switch.js +31 -31
- package/esm/components/SwitchesPanel/SwitchesPanel.js +10 -10
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +33 -33
- package/esm/components/Tabs/SearchBar.js +57 -57
- package/esm/components/Tabs/Tab.js +28 -28
- package/esm/components/Tabs/Tabs.js +33 -33
- package/esm/components/Text/Text.js +3 -3
- package/esm/components/TextArea/TextArea.js +3 -3
- package/esm/components/Toaster/Toaster.js +32 -32
- package/esm/components/Toolbar/Toolbar.js +13 -13
- package/esm/components/Toolbar/ToolbarExpander.js +5 -5
- package/esm/components/Toolbar/ToolbarGroup.js +17 -17
- package/esm/components/Tooltip/Tooltip.js +19 -19
- package/esm/components/Tour/Tour.js +5 -5
- package/esm/components/Translate/Translate.js +25 -25
- package/esm/index.js +1 -1
- package/index.js +5 -5
- package/package.json +151 -151
- package/scripts/postinstall.js +9 -9
- package/styleguide/browserconfig.xml +9 -9
- package/styleguide/build/bundle.f38c467d.js +2 -0
- package/styleguide/build/{bundle.1c9c8500.js.LICENSE.txt → bundle.f38c467d.js.LICENSE.txt} +0 -0
- package/styleguide/images/no-image.svg +6 -6
- package/styleguide/images/rating.svg +6 -6
- package/styleguide/images/symbols.svg +1653 -1653
- package/styleguide/index.html +2 -2
- package/styleguide/placeholders/placeholder_400x200.svg +5 -5
- package/styleguide/placeholders/placeholder_400x400.svg +5 -5
- package/styleguide/placeholders/placeholder_600x400.svg +5 -5
- package/styleguide/safari-pinned-tab.svg +28 -28
- package/styleguide/site.webmanifest +19 -19
- package/types/package.d.ts +133 -133
- package/types/src/components/Action/Action.d.ts +61 -61
- package/types/src/components/Action/index.d.ts +1 -1
- package/types/src/components/Alert/Alert.d.ts +36 -36
- package/types/src/components/Alert/Alert.stories.d.ts +14 -14
- package/types/src/components/Alert/index.d.ts +1 -1
- package/types/src/components/AutoClosable/AutoClosable.d.ts +59 -59
- package/types/src/components/AutoClosable/index.d.ts +1 -1
- package/types/src/components/AuxiliaryActions/AuxiliaryActions.d.ts +28 -28
- package/types/src/components/AuxiliaryActions/index.d.ts +1 -1
- package/types/src/components/Badge/Badge.d.ts +39 -39
- package/types/src/components/Badge/index.d.ts +1 -1
- package/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +25 -25
- package/types/src/components/Breadcrumbs/index.d.ts +1 -1
- package/types/src/components/Button/Button.stories.d.ts +16 -16
- package/types/src/components/ButtonGroup/ButtonGroup.d.ts +27 -27
- package/types/src/components/ButtonGroup/index.d.ts +1 -1
- package/types/src/components/Card/PreviewPanel.d.ts +53 -53
- package/types/src/components/Card/helpers.d.ts +5 -5
- package/types/src/components/Checkbox/Checkbox.d.ts +67 -67
- package/types/src/components/Checkbox/index.d.ts +1 -1
- package/types/src/components/ClosingConfirmation/index.d.ts +1 -1
- package/types/src/components/ClosingConfirmation/useClosingConfirmation.d.ts +10 -10
- package/types/src/components/Columns/Column.d.ts +52 -52
- package/types/src/components/Columns/Columns.d.ts +34 -34
- package/types/src/components/Columns/index.d.ts +2 -2
- package/types/src/components/ComboBox/ComboBox.d.ts +58 -58
- package/types/src/components/ComboBox/ComboBoxOption.d.ts +19 -19
- package/types/src/components/ComboBox/index.d.ts +2 -2
- package/types/src/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +40 -40
- package/types/src/components/ComboBoxDropdown/index.d.ts +1 -1
- package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +52 -52
- package/types/src/components/ConsoleOutput/index.d.ts +1 -1
- package/types/src/components/ContentLoader/ContentLoader.d.ts +60 -60
- package/types/src/components/ContentLoader/IconsLoader.d.ts +10 -10
- package/types/src/components/ContentLoader/index.d.ts +1 -1
- package/types/src/components/Cuttable/Cuttable.d.ts +63 -63
- package/types/src/components/Cuttable/Cuttable.stories.d.ts +34 -34
- package/types/src/components/Cuttable/index.d.ts +1 -1
- package/types/src/components/Dialog/Dialog.stories.d.ts +22 -22
- package/types/src/components/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +7 -7
- package/types/src/components/DistractionFreeModeContext/index.d.ts +1 -1
- package/types/src/components/Drawer/Drawer.stories.d.ts +40 -40
- package/types/src/components/Drawer/DrawerProgress.d.ts +45 -45
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessage.d.ts +38 -38
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts +22 -22
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.d.ts +22 -22
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.d.ts +13 -13
- package/types/src/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts +22 -22
- package/types/src/components/ExtendedStatusMessage/index.d.ts +5 -5
- package/types/src/components/FocusTrap/FocusTrap.d.ts +7 -7
- package/types/src/components/FocusTrap/index.d.ts +1 -1
- package/types/src/components/Form/DisabledContext.d.ts +3 -3
- package/types/src/components/Form/Form.d.ts +163 -163
- package/types/src/components/Form/Form.stories.d.ts +12 -12
- package/types/src/components/Form/FormContext.d.ts +16 -16
- package/types/src/components/Form/index.d.ts +2 -2
- package/types/src/components/Form/utils.d.ts +32 -32
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +17 -17
- package/types/src/components/FormFieldPassword/FormFieldPassword.d.ts +91 -0
- package/types/src/components/FormFieldPassword/PasswordMeter.d.ts +9 -0
- package/types/src/components/FormFieldPassword/estimatePassword.d.ts +13 -0
- package/types/src/components/FormFieldPassword/index.d.ts +2 -0
- package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +13 -13
- package/types/src/components/FormFieldSelect/index.d.ts +1 -1
- package/types/src/components/Heading/Heading.d.ts +39 -39
- package/types/src/components/Heading/index.d.ts +1 -1
- package/types/src/components/Hint/Hint.d.ts +24 -24
- package/types/src/components/Hint/index.d.ts +1 -1
- package/types/src/components/Icon/Icon.d.ts +88 -88
- package/types/src/components/Icon/Icon.stories.d.ts +6 -6
- package/types/src/components/Icon/constants.d.ts +3 -3
- package/types/src/components/Icon/index.d.ts +2 -2
- package/types/src/components/Icon/oldIconNames.d.ts +5 -5
- package/types/src/components/Input/Input.d.ts +57 -57
- package/types/src/components/Input/index.d.ts +1 -1
- package/types/src/components/InputFile/InputFile.d.ts +49 -49
- package/types/src/components/InputFile/index.d.ts +1 -1
- package/types/src/components/InputNumber/InputNumber.d.ts +64 -64
- package/types/src/components/InputNumber/index.d.ts +1 -1
- package/types/src/components/ItemLink/ItemLink.d.ts +28 -28
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +14 -14
- package/types/src/components/ItemLink/index.d.ts +1 -1
- package/types/src/components/ItemList/ItemList.d.ts +113 -113
- package/types/src/components/ItemList/ItemList.stories.d.ts +289 -289
- package/types/src/components/Label/Label.d.ts +28 -28
- package/types/src/components/Label/index.d.ts +1 -1
- package/types/src/components/Layer/Layer.d.ts +29 -29
- package/types/src/components/Layer/index.d.ts +2 -2
- package/types/src/components/Link/Link.d.ts +47 -47
- package/types/src/components/Link/index.d.ts +1 -1
- package/types/src/components/List/List.stories.d.ts +29 -29
- package/types/src/components/List/ListAction.d.ts +39 -39
- package/types/src/components/List/ListActions.d.ts +30 -30
- package/types/src/components/List/ListActionsDivider.d.ts +10 -10
- package/types/src/components/List/ListEmptyView.d.ts +44 -44
- package/types/src/components/List/ListOperation.d.ts +42 -42
- package/types/src/components/List/ListOperationContext.d.ts +7 -7
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +37 -37
- package/types/src/components/LocaleProvider/index.d.ts +2 -2
- package/types/src/components/Menu/Menu.stories.d.ts +19 -19
- package/types/src/components/OnDarkContext/OnDarkContext.d.ts +3 -3
- package/types/src/components/OnDarkContext/index.d.ts +1 -1
- package/types/src/components/PageHeader/PageHeader.d.ts +53 -53
- package/types/src/components/PageHeader/index.d.ts +1 -1
- package/types/src/components/Pagination/Pagination.d.ts +77 -77
- package/types/src/components/Panel/Panel.d.ts +65 -65
- package/types/src/components/Paragraph/Paragraph.d.ts +29 -29
- package/types/src/components/Paragraph/index.d.ts +1 -1
- package/types/src/components/Popover/Popover.stories.d.ts +22 -22
- package/types/src/components/ProgressBar/ProgressBar.d.ts +23 -23
- package/types/src/components/ProgressBar/ProgressIndicator.d.ts +21 -21
- package/types/src/components/ProgressBar/index.d.ts +1 -1
- package/types/src/components/Radio/Radio.d.ts +52 -52
- package/types/src/components/Radio/index.d.ts +1 -1
- package/types/src/components/ResponsiveContext/ResponsiveContext.d.ts +3 -3
- package/types/src/components/ResponsiveContext/index.d.ts +1 -1
- package/types/src/components/Select/MultiValue.d.ts +9 -9
- package/types/src/components/Select/Select.d.ts +74 -74
- package/types/src/components/Select/Select.stories.d.ts +23 -23
- package/types/src/components/Select/SelectControl.d.ts +26 -26
- package/types/src/components/Select/SelectOption.d.ts +29 -29
- package/types/src/components/Select/SelectOptionGroup.d.ts +20 -20
- package/types/src/components/Select/index.d.ts +3 -3
- package/types/src/components/Select/structures.d.ts +19 -19
- package/types/src/components/Spinner/Spinner.d.ts +18 -18
- package/types/src/components/Spinner/index.d.ts +1 -1
- package/types/src/components/Spot/Spot.d.ts +70 -70
- package/types/src/components/Spot/SpotPopup.d.ts +25 -25
- package/types/src/components/Spot/SpotPulsar.d.ts +10 -10
- package/types/src/components/Spot/index.d.ts +1 -1
- package/types/src/components/Squeezer/Squeezer.d.ts +22 -22
- package/types/src/components/Squeezer/index.d.ts +1 -1
- package/types/src/components/Status/Status.d.ts +69 -69
- package/types/src/components/Status/Status.stories.d.ts +22 -22
- package/types/src/components/Status/index.d.ts +1 -1
- package/types/src/components/StatusMessage/StatusMessage.d.ts +29 -29
- package/types/src/components/StatusMessage/index.d.ts +1 -1
- package/types/src/components/Tabs/Tabs.stories.d.ts +7 -7
- package/types/src/components/Text/Text.d.ts +64 -64
- package/types/src/components/Text/index.d.ts +1 -1
- package/types/src/components/TextArea/TextArea.d.ts +69 -69
- package/types/src/components/TextArea/calculateNodeHeight.d.ts +6 -6
- package/types/src/components/Toast/Toast.d.ts +40 -40
- package/types/src/components/Toast/index.d.ts +2 -2
- package/types/src/components/Toaster/Toaster.d.ts +93 -93
- package/types/src/components/Toaster/index.d.ts +1 -1
- package/types/src/components/Toolbar/RegistryContext.d.ts +16 -16
- package/types/src/components/Toolbar/ToolbarExpander.d.ts +24 -24
- package/types/src/components/Toolbar/ToolbarItem.d.ts +2 -2
- package/types/src/components/Toolbar/ToolbarMenu.d.ts +7 -7
- package/types/src/components/Tour/Tour.d.ts +27 -27
- package/types/src/components/Tour/index.d.ts +1 -1
- package/types/src/components/VerticalContext/VerticalContext.d.ts +4 -4
- package/types/src/components/VerticalContext/index.d.ts +1 -1
- package/types/src/components/index.d.ts +98 -98
- package/types/src/components/intentIconMap.d.ts +4 -4
- package/types/src/components/utils.d.ts +28 -28
- package/types/src/index.d.ts +5 -5
- package/types/src/utils.d.ts +5 -5
- package/cjs/components/FormFieldPassword/passwordScore.js +0 -132
- package/esm/components/FormFieldPassword/passwordScore.js +0 -123
- package/styleguide/build/bundle.1c9c8500.js +0 -2
|
@@ -41,9 +41,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
41
41
|
|
|
42
42
|
/* eslint-disable react/no-deprecated */
|
|
43
43
|
const isProps = value => value && typeof value === 'object' && ! /*#__PURE__*/(0, _react.isValidElement)(value);
|
|
44
|
-
/**
|
|
45
|
-
* `Dialog` is a modal window that asks users to make a decision or enter additional information.
|
|
46
|
-
* @since 0.0.68
|
|
44
|
+
/**
|
|
45
|
+
* `Dialog` is a modal window that asks users to make a decision or enter additional information.
|
|
46
|
+
* @since 0.0.68
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
|
|
@@ -65,6 +65,7 @@ const Dialog = ({
|
|
|
65
65
|
closable,
|
|
66
66
|
onClose,
|
|
67
67
|
closingConfirmation,
|
|
68
|
+
canClose,
|
|
68
69
|
...props
|
|
69
70
|
}) => {
|
|
70
71
|
const [isVisible, setIsVisible] = (0, _react.useState)(isOpen);
|
|
@@ -175,8 +176,8 @@ const Dialog = ({
|
|
|
175
176
|
className: (0, _classnames.default)(baseClassName, className),
|
|
176
177
|
isOpen: isVisible,
|
|
177
178
|
onClose: onCloseWithConfirmation,
|
|
178
|
-
canCloseOnBackdropClick: closable,
|
|
179
|
-
canCloseOnEscapePress: closable,
|
|
179
|
+
canCloseOnBackdropClick: canClose && closable,
|
|
180
|
+
canCloseOnEscapePress: canClose && closable,
|
|
180
181
|
size: size
|
|
181
182
|
}, props), (title || subtitle || actions) && /*#__PURE__*/_react.default.createElement("header", {
|
|
182
183
|
className: `${baseClassName}__header`
|
|
@@ -199,6 +200,7 @@ const Dialog = ({
|
|
|
199
200
|
className: `${baseClassName}__header-actions`
|
|
200
201
|
}, actions, closable && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
201
202
|
className: `${baseClassName}__header-close`,
|
|
203
|
+
disabled: !canClose,
|
|
202
204
|
ghost: true,
|
|
203
205
|
size: "lg",
|
|
204
206
|
icon: "cross-mark",
|
|
@@ -209,126 +211,132 @@ const Dialog = ({
|
|
|
209
211
|
};
|
|
210
212
|
|
|
211
213
|
Dialog.propTypes = {
|
|
212
|
-
/**
|
|
213
|
-
* Toggles visibility.
|
|
214
|
-
* @since 0.0.68
|
|
214
|
+
/**
|
|
215
|
+
* Toggles visibility.
|
|
216
|
+
* @since 0.0.68
|
|
215
217
|
*/
|
|
216
218
|
isOpen: _propTypes.default.bool,
|
|
217
219
|
|
|
218
|
-
/**
|
|
219
|
-
* Banner. Renders in front of content as wide as dialog.
|
|
220
|
-
* @since 0.0.68
|
|
220
|
+
/**
|
|
221
|
+
* Banner. Renders in front of content as wide as dialog.
|
|
222
|
+
* @since 0.0.68
|
|
221
223
|
*/
|
|
222
224
|
banner: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
223
225
|
|
|
224
|
-
/**
|
|
225
|
-
* Block with an image, placed at the side of the component
|
|
226
|
-
* @since 3.25.0
|
|
226
|
+
/**
|
|
227
|
+
* Block with an image, placed at the side of the component
|
|
228
|
+
* @since 3.25.0
|
|
227
229
|
*/
|
|
228
230
|
sideBanner: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
229
231
|
|
|
230
|
-
/**
|
|
231
|
-
* Additional properties for the sideBanner
|
|
232
|
-
* @since 3.25.0
|
|
232
|
+
/**
|
|
233
|
+
* Additional properties for the sideBanner
|
|
234
|
+
* @since 3.25.0
|
|
233
235
|
*/
|
|
234
236
|
sideBannerContainer: _propTypes.default.shape({
|
|
235
|
-
/**
|
|
236
|
-
* Values for css background property
|
|
237
|
+
/**
|
|
238
|
+
* Values for css background property
|
|
237
239
|
*/
|
|
238
240
|
background: _propTypes.default.string,
|
|
239
241
|
|
|
240
|
-
/**
|
|
241
|
-
* One of: center, flex-start, flex-end
|
|
242
|
+
/**
|
|
243
|
+
* One of: center, flex-start, flex-end
|
|
242
244
|
*/
|
|
243
245
|
align: _propTypes.default.oneOf(['center', 'flex-start', 'flex-end'])
|
|
244
246
|
}),
|
|
245
247
|
|
|
246
|
-
/**
|
|
247
|
-
* Image. Renders into content.
|
|
248
|
-
* @since 0.0.68
|
|
248
|
+
/**
|
|
249
|
+
* Image. Renders into content.
|
|
250
|
+
* @since 0.0.68
|
|
249
251
|
*/
|
|
250
252
|
image: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
251
253
|
|
|
252
|
-
/**
|
|
253
|
-
* Title
|
|
254
|
-
* @since 0.0.68
|
|
254
|
+
/**
|
|
255
|
+
* Title
|
|
256
|
+
* @since 0.0.68
|
|
255
257
|
*/
|
|
256
258
|
title: _propTypes.default.node,
|
|
257
259
|
|
|
258
|
-
/**
|
|
259
|
-
* The subtitle of the `Dialog`.
|
|
260
|
-
* @since 4.0.0
|
|
260
|
+
/**
|
|
261
|
+
* The subtitle of the `Dialog`.
|
|
262
|
+
* @since 4.0.0
|
|
261
263
|
*/
|
|
262
264
|
subtitle: _propTypes.default.node,
|
|
263
265
|
|
|
264
|
-
/**
|
|
265
|
-
* Title of "cancel" button
|
|
266
|
-
* @since 0.0.68
|
|
267
|
-
* @deprecated Use `cancelButton` instead.
|
|
266
|
+
/**
|
|
267
|
+
* Title of "cancel" button
|
|
268
|
+
* @since 0.0.68
|
|
269
|
+
* @deprecated Use `cancelButton` instead.
|
|
268
270
|
*/
|
|
269
271
|
cancelTitle: _propTypes.default.node,
|
|
270
272
|
|
|
271
|
-
/**
|
|
272
|
-
* Cancel button visibility or custom configuration. It accepts all props of the `Button` component.
|
|
273
|
-
* @since 3.13.0
|
|
273
|
+
/**
|
|
274
|
+
* Cancel button visibility or custom configuration. It accepts all props of the `Button` component.
|
|
275
|
+
* @since 3.13.0
|
|
274
276
|
*/
|
|
275
277
|
cancelButton: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.object]),
|
|
276
278
|
|
|
277
|
-
/**
|
|
278
|
-
* Buttons except "cancel" button
|
|
279
|
-
* @since 0.0.68
|
|
279
|
+
/**
|
|
280
|
+
* Buttons except "cancel" button
|
|
281
|
+
* @since 0.0.68
|
|
280
282
|
*/
|
|
281
283
|
buttons: _propTypes.default.node,
|
|
282
284
|
|
|
283
|
-
/**
|
|
284
|
-
* Actions which will be shown in Dialog header
|
|
285
|
-
* @since 1.2.0
|
|
285
|
+
/**
|
|
286
|
+
* Actions which will be shown in Dialog header
|
|
287
|
+
* @since 1.2.0
|
|
286
288
|
*/
|
|
287
289
|
actions: _propTypes.default.node,
|
|
288
290
|
|
|
289
|
-
/**
|
|
290
|
-
* Wraps children into [Form](#!/Form) if not empty.
|
|
291
|
-
* @since 0.0.68
|
|
291
|
+
/**
|
|
292
|
+
* Wraps children into [Form](#!/Form) if not empty.
|
|
293
|
+
* @since 0.0.68
|
|
292
294
|
*/
|
|
293
295
|
form: _propTypes.default.object,
|
|
294
296
|
|
|
295
|
-
/**
|
|
296
|
-
* Dialog width
|
|
297
|
-
* @since 0.0.68
|
|
297
|
+
/**
|
|
298
|
+
* Dialog width
|
|
299
|
+
* @since 0.0.68
|
|
298
300
|
*/
|
|
299
301
|
size: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg']),
|
|
300
302
|
|
|
301
|
-
/**
|
|
302
|
-
* If the value is false, the dialog cannot be closed and the Close button is hidden.
|
|
303
|
-
* @since 1.2.0
|
|
303
|
+
/**
|
|
304
|
+
* If the value is false, the dialog cannot be closed and the Close button is hidden.
|
|
305
|
+
* @since 1.2.0
|
|
304
306
|
*/
|
|
305
307
|
closable: _propTypes.default.bool,
|
|
306
308
|
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* @since 0.0
|
|
309
|
+
/**
|
|
310
|
+
* Disable close dialog button
|
|
311
|
+
* @since 4.0.0
|
|
312
|
+
*/
|
|
313
|
+
canClose: _propTypes.default.bool,
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* On close event handler. Called immediately after dialog closed by "cancel" button or "Esc" key.
|
|
317
|
+
* @since 0.0.68
|
|
310
318
|
*/
|
|
311
319
|
onClose: _propTypes.default.func,
|
|
312
320
|
|
|
313
|
-
/**
|
|
314
|
-
* Whether show or not a confirmation dialog on close.
|
|
315
|
-
* @since 3.21.0
|
|
321
|
+
/**
|
|
322
|
+
* Whether show or not a confirmation dialog on close.
|
|
323
|
+
* @since 3.21.0
|
|
316
324
|
*/
|
|
317
325
|
closingConfirmation: _propTypes.default.bool,
|
|
318
326
|
|
|
319
|
-
/**
|
|
320
|
-
* Content of the `DialogWindow`.
|
|
321
|
-
* @since 0.0.68
|
|
327
|
+
/**
|
|
328
|
+
* Content of the `DialogWindow`.
|
|
329
|
+
* @since 0.0.68
|
|
322
330
|
*/
|
|
323
331
|
children: _propTypes.default.node,
|
|
324
332
|
|
|
325
|
-
/**
|
|
326
|
-
* @ignore
|
|
333
|
+
/**
|
|
334
|
+
* @ignore
|
|
327
335
|
*/
|
|
328
336
|
className: _propTypes.default.string,
|
|
329
337
|
|
|
330
|
-
/**
|
|
331
|
-
* @ignore
|
|
338
|
+
/**
|
|
339
|
+
* @ignore
|
|
332
340
|
*/
|
|
333
341
|
baseClassName: _propTypes.default.string
|
|
334
342
|
};
|
|
@@ -347,6 +355,7 @@ Dialog.defaultProps = {
|
|
|
347
355
|
form: undefined,
|
|
348
356
|
size: 'md',
|
|
349
357
|
closable: true,
|
|
358
|
+
canClose: true,
|
|
350
359
|
onClose: undefined,
|
|
351
360
|
closingConfirmation: undefined,
|
|
352
361
|
children: undefined,
|
|
@@ -41,113 +41,113 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
41
41
|
|
|
42
42
|
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
43
43
|
const propTypes = {
|
|
44
|
-
/**
|
|
45
|
-
* Toggles visibility.
|
|
46
|
-
* @since 0.0.65
|
|
44
|
+
/**
|
|
45
|
+
* Toggles visibility.
|
|
46
|
+
* @since 0.0.65
|
|
47
47
|
*/
|
|
48
48
|
isOpen: _propTypes.default.bool,
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* The title of the `Drawer`.
|
|
52
|
-
* @since 0.0.65
|
|
50
|
+
/**
|
|
51
|
+
* The title of the `Drawer`.
|
|
52
|
+
* @since 0.0.65
|
|
53
53
|
*/
|
|
54
54
|
title: _propTypes.default.node.isRequired,
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* The subtitle of the `Drawer`.
|
|
58
|
-
* @since 0.0.65
|
|
56
|
+
/**
|
|
57
|
+
* The subtitle of the `Drawer`.
|
|
58
|
+
* @since 0.0.65
|
|
59
59
|
*/
|
|
60
60
|
subtitle: _propTypes.default.node,
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* Show the minimize button and the inactive close button.
|
|
64
|
-
* @since 1.4.1
|
|
62
|
+
/**
|
|
63
|
+
* Show the minimize button and the inactive close button.
|
|
64
|
+
* @since 1.4.1
|
|
65
65
|
*/
|
|
66
66
|
hideButton: _propTypes.default.bool,
|
|
67
67
|
|
|
68
|
-
/**
|
|
69
|
-
* Show back button in the header. If true the close button is not show.
|
|
70
|
-
* @deprecated Not recommended to use. Use default close button instead.
|
|
71
|
-
* @since 0.0.65
|
|
68
|
+
/**
|
|
69
|
+
* Show back button in the header. If true the close button is not show.
|
|
70
|
+
* @deprecated Not recommended to use. Use default close button instead.
|
|
71
|
+
* @since 0.0.65
|
|
72
72
|
*/
|
|
73
73
|
backButton: _propTypes.default.bool,
|
|
74
74
|
|
|
75
|
-
/**
|
|
76
|
-
* A slot for `Tabs` component.
|
|
77
|
-
* @since 3.26.0
|
|
75
|
+
/**
|
|
76
|
+
* A slot for `Tabs` component.
|
|
77
|
+
* @since 3.26.0
|
|
78
78
|
*/
|
|
79
79
|
tabs: _propTypes.default.node,
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* Overlay placement.
|
|
83
|
-
* @since 0.0.65
|
|
81
|
+
/**
|
|
82
|
+
* Overlay placement.
|
|
83
|
+
* @since 0.0.65
|
|
84
84
|
*/
|
|
85
85
|
placement: _propTypes.default.oneOf(['left', 'right']),
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* Overlay size.
|
|
89
|
-
* @since 0.0.65
|
|
87
|
+
/**
|
|
88
|
+
* Overlay size.
|
|
89
|
+
* @since 0.0.65
|
|
90
90
|
*/
|
|
91
91
|
size: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg']),
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* onClose handler.
|
|
95
|
-
* @since 0.0.65
|
|
93
|
+
/**
|
|
94
|
+
* onClose handler.
|
|
95
|
+
* @since 0.0.65
|
|
96
96
|
*/
|
|
97
97
|
onClose: _propTypes.default.func,
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* Whether show or not a confirmation dialog on close.
|
|
101
|
-
* @since 3.21.0
|
|
99
|
+
/**
|
|
100
|
+
* Whether show or not a confirmation dialog on close.
|
|
101
|
+
* @since 3.21.0
|
|
102
102
|
*/
|
|
103
103
|
closingConfirmation: _propTypes.default.bool,
|
|
104
104
|
|
|
105
|
-
/**
|
|
106
|
-
* Wraps children into [Form](#!/Form) if not empty.
|
|
107
|
-
* @since 0.0.66
|
|
105
|
+
/**
|
|
106
|
+
* Wraps children into [Form](#!/Form) if not empty.
|
|
107
|
+
* @since 0.0.66
|
|
108
108
|
*/
|
|
109
109
|
form: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.element]),
|
|
110
110
|
|
|
111
|
-
/**
|
|
112
|
-
* Block with an image, placed at the side of the component
|
|
113
|
-
* @since 3.25.0
|
|
111
|
+
/**
|
|
112
|
+
* Block with an image, placed at the side of the component
|
|
113
|
+
* @since 3.25.0
|
|
114
114
|
*/
|
|
115
115
|
sideBanner: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
116
116
|
|
|
117
|
-
/**
|
|
118
|
-
* Additional properties for the sideBanner
|
|
119
|
-
* @since 3.25.0
|
|
117
|
+
/**
|
|
118
|
+
* Additional properties for the sideBanner
|
|
119
|
+
* @since 3.25.0
|
|
120
120
|
*/
|
|
121
121
|
sideBannerContainer: _propTypes.default.shape({
|
|
122
|
-
/**
|
|
123
|
-
* Values for css background property
|
|
122
|
+
/**
|
|
123
|
+
* Values for css background property
|
|
124
124
|
*/
|
|
125
125
|
background: _propTypes.default.string,
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* One of: center, flex-start, flex-end
|
|
127
|
+
/**
|
|
128
|
+
* One of: center, flex-start, flex-end
|
|
129
129
|
*/
|
|
130
130
|
align: _propTypes.default.oneOf(['center', 'flex-start', 'flex-end'])
|
|
131
131
|
}),
|
|
132
132
|
|
|
133
|
-
/**
|
|
134
|
-
* Content of the `Drawer`.
|
|
135
|
-
* @since 0.0.65
|
|
133
|
+
/**
|
|
134
|
+
* Content of the `Drawer`.
|
|
135
|
+
* @since 0.0.65
|
|
136
136
|
*/
|
|
137
137
|
children: _propTypes.default.node,
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* Adds [Progress](#!/Progress) into footer.
|
|
141
|
-
* @since 1.11.0
|
|
139
|
+
/**
|
|
140
|
+
* Adds [Progress](#!/Progress) into footer.
|
|
141
|
+
* @since 1.11.0
|
|
142
142
|
*/
|
|
143
143
|
progress: _propTypes.default.shape({
|
|
144
|
-
/**
|
|
145
|
-
* A title for the progress.
|
|
144
|
+
/**
|
|
145
|
+
* A title for the progress.
|
|
146
146
|
*/
|
|
147
147
|
title: _propTypes.default.string,
|
|
148
148
|
|
|
149
|
-
/**
|
|
150
|
-
* An array of [ProgressStep](#!/ProgressStep) props.
|
|
149
|
+
/**
|
|
150
|
+
* An array of [ProgressStep](#!/ProgressStep) props.
|
|
151
151
|
*/
|
|
152
152
|
steps: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
153
153
|
title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]),
|
|
@@ -156,35 +156,35 @@ const propTypes = {
|
|
|
156
156
|
icon: _propTypes.default.string
|
|
157
157
|
})).isRequired,
|
|
158
158
|
|
|
159
|
-
/**
|
|
160
|
-
* An option that controls drawer closing ability.
|
|
159
|
+
/**
|
|
160
|
+
* An option that controls drawer closing ability.
|
|
161
161
|
*/
|
|
162
162
|
cancelable: _propTypes.default.bool,
|
|
163
163
|
|
|
164
|
-
/**
|
|
165
|
-
* On overall status event handler.
|
|
166
|
-
* @since 3.8.0
|
|
164
|
+
/**
|
|
165
|
+
* On overall status event handler.
|
|
166
|
+
* @since 3.8.0
|
|
167
167
|
*/
|
|
168
168
|
onStatusChange: _propTypes.default.func,
|
|
169
169
|
|
|
170
|
-
/**
|
|
171
|
-
* @ignore
|
|
170
|
+
/**
|
|
171
|
+
* @ignore
|
|
172
172
|
*/
|
|
173
173
|
onClose: _propTypes.default.func,
|
|
174
174
|
|
|
175
|
-
/**
|
|
176
|
-
* @ignore
|
|
175
|
+
/**
|
|
176
|
+
* @ignore
|
|
177
177
|
*/
|
|
178
178
|
onClosableChange: _propTypes.default.func
|
|
179
179
|
}),
|
|
180
180
|
|
|
181
|
-
/**
|
|
182
|
-
* @ignore
|
|
181
|
+
/**
|
|
182
|
+
* @ignore
|
|
183
183
|
*/
|
|
184
184
|
className: _propTypes.default.string,
|
|
185
185
|
|
|
186
|
-
/**
|
|
187
|
-
* @ignore
|
|
186
|
+
/**
|
|
187
|
+
* @ignore
|
|
188
188
|
*/
|
|
189
189
|
baseClassName: _propTypes.default.string
|
|
190
190
|
};
|
|
@@ -206,10 +206,10 @@ const defaultProps = {
|
|
|
206
206
|
className: null,
|
|
207
207
|
baseClassName: `${_constants.CLS_PREFIX}drawer`
|
|
208
208
|
};
|
|
209
|
-
/**
|
|
210
|
-
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
211
|
-
* The component is similar to `Dialog` but it is intended to work with more complex forms or lists.
|
|
212
|
-
* @since 0.0.65
|
|
209
|
+
/**
|
|
210
|
+
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
211
|
+
* The component is similar to `Dialog` but it is intended to work with more complex forms or lists.
|
|
212
|
+
* @since 0.0.65
|
|
213
213
|
*/
|
|
214
214
|
|
|
215
215
|
const Drawer = ({
|
|
@@ -155,11 +155,11 @@ const useEnhancedMenu = (menu, {
|
|
|
155
155
|
menuRef
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
/**
|
|
159
|
-
* `Dropdown` component is a [Button](#!/Button) that opens a drop-down (nested) [Menu](#!/Menu).
|
|
160
|
-
* Use dropdown for grouping actions that are not used often or are less important than others -- in other words,
|
|
161
|
-
* for stuff that you don't want to show users all the time, especially if you have limited screen space.
|
|
162
|
-
* @since 0.0.57
|
|
158
|
+
/**
|
|
159
|
+
* `Dropdown` component is a [Button](#!/Button) that opens a drop-down (nested) [Menu](#!/Menu).
|
|
160
|
+
* Use dropdown for grouping actions that are not used often or are less important than others -- in other words,
|
|
161
|
+
* for stuff that you don't want to show users all the time, especially if you have limited screen space.
|
|
162
|
+
* @since 0.0.57
|
|
163
163
|
*/
|
|
164
164
|
|
|
165
165
|
|
|
@@ -235,45 +235,45 @@ const Dropdown = ({
|
|
|
235
235
|
};
|
|
236
236
|
|
|
237
237
|
Dropdown.propTypes = {
|
|
238
|
-
/**
|
|
239
|
-
* Dropdown [menu](#!/Menu).
|
|
240
|
-
* @since 0.0.57
|
|
238
|
+
/**
|
|
239
|
+
* Dropdown [menu](#!/Menu).
|
|
240
|
+
* @since 0.0.57
|
|
241
241
|
*/
|
|
242
242
|
menu: _propTypes.default.element.isRequired,
|
|
243
243
|
|
|
244
|
-
/**
|
|
245
|
-
* Menu placement.
|
|
246
|
-
* @since 0.0.60
|
|
244
|
+
/**
|
|
245
|
+
* Menu placement.
|
|
246
|
+
* @since 0.0.60
|
|
247
247
|
*/
|
|
248
248
|
menuPlacement: _propTypes.default.string,
|
|
249
249
|
|
|
250
|
-
/**
|
|
251
|
-
* Content of the `Dropdown`.
|
|
252
|
-
* @since 0.0.57
|
|
250
|
+
/**
|
|
251
|
+
* Content of the `Dropdown`.
|
|
252
|
+
* @since 0.0.57
|
|
253
253
|
*/
|
|
254
254
|
children: _propTypes.default.node,
|
|
255
255
|
|
|
256
|
-
/**
|
|
257
|
-
* Custom localization messages.
|
|
258
|
-
* @since 3.6.0
|
|
256
|
+
/**
|
|
257
|
+
* Custom localization messages.
|
|
258
|
+
* @since 3.6.0
|
|
259
259
|
*/
|
|
260
260
|
locale: _propTypes.default.shape({
|
|
261
261
|
close: _propTypes.default.node
|
|
262
262
|
}),
|
|
263
263
|
|
|
264
|
-
/**
|
|
265
|
-
* Display menu as overlay.
|
|
266
|
-
* @ignore
|
|
264
|
+
/**
|
|
265
|
+
* Display menu as overlay.
|
|
266
|
+
* @ignore
|
|
267
267
|
*/
|
|
268
268
|
overlay: _propTypes.default.bool,
|
|
269
269
|
|
|
270
|
-
/**
|
|
271
|
-
* @ignore
|
|
270
|
+
/**
|
|
271
|
+
* @ignore
|
|
272
272
|
*/
|
|
273
273
|
className: _propTypes.default.string,
|
|
274
274
|
|
|
275
|
-
/**
|
|
276
|
-
* @ignore
|
|
275
|
+
/**
|
|
276
|
+
* @ignore
|
|
277
277
|
*/
|
|
278
278
|
baseClassName: _propTypes.default.string
|
|
279
279
|
};
|
|
@@ -19,10 +19,10 @@ var _constants = require("../../constants");
|
|
|
19
19
|
|
|
20
20
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
|
|
24
|
-
* but it is used when the message itself is the primary content on the page.
|
|
25
|
-
* @since 0.0.35
|
|
22
|
+
/**
|
|
23
|
+
* `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
|
|
24
|
+
* but it is used when the message itself is the primary content on the page.
|
|
25
|
+
* @since 0.0.35
|
|
26
26
|
*/
|
|
27
27
|
const ExtendedStatusMessage = ({
|
|
28
28
|
baseClassName = `${_constants.CLS_PREFIX}extended-status-message`,
|
|
@@ -17,9 +17,9 @@ var _constants = require("../../constants");
|
|
|
17
17
|
|
|
18
18
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* `ExtendedStatusMessageActions` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
22
|
-
* @since 0.0.35
|
|
20
|
+
/**
|
|
21
|
+
* `ExtendedStatusMessageActions` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
22
|
+
* @since 0.0.35
|
|
23
23
|
*/
|
|
24
24
|
const ExtendedStatusMessageActions = ({
|
|
25
25
|
baseClassName = `${_constants.CLS_PREFIX}extended-status-message`,
|
|
@@ -17,9 +17,9 @@ var _constants = require("../../constants");
|
|
|
17
17
|
|
|
18
18
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* `ExtendedStatusMessageDescription` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
22
|
-
* @since 0.0.35
|
|
20
|
+
/**
|
|
21
|
+
* `ExtendedStatusMessageDescription` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
22
|
+
* @since 0.0.35
|
|
23
23
|
*/
|
|
24
24
|
const ExtendedStatusMessageDescription = ({
|
|
25
25
|
baseClassName = `${_constants.CLS_PREFIX}extended-status-message`,
|
|
@@ -15,9 +15,9 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* `ExtendedStatusMessageSeparator` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
20
|
-
* @since 0.0.35
|
|
18
|
+
/**
|
|
19
|
+
* `ExtendedStatusMessageSeparator` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
20
|
+
* @since 0.0.35
|
|
21
21
|
*/
|
|
22
22
|
const ExtendedStatusMessageSeparator = ({
|
|
23
23
|
className,
|
|
@@ -19,9 +19,9 @@ var _Heading = _interopRequireDefault(require("../Heading"));
|
|
|
19
19
|
|
|
20
20
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* `ExtendedStatusMessageTitle` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
24
|
-
* @since 0.0.35
|
|
22
|
+
/**
|
|
23
|
+
* `ExtendedStatusMessageTitle` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
24
|
+
* @since 0.0.35
|
|
25
25
|
*/
|
|
26
26
|
const ExtendedStatusMessageTitle = ({
|
|
27
27
|
baseClassName = `${_constants.CLS_PREFIX}extended-status-message`,
|
|
@@ -19,9 +19,9 @@ var _constants = require("../../constants");
|
|
|
19
19
|
|
|
20
20
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Figure component.
|
|
24
|
-
* @since 0.0.42
|
|
22
|
+
/**
|
|
23
|
+
* Figure component.
|
|
24
|
+
* @since 0.0.42
|
|
25
25
|
*/
|
|
26
26
|
const Figure = ({
|
|
27
27
|
baseClassName,
|
|
@@ -40,29 +40,29 @@ const Figure = ({
|
|
|
40
40
|
}, caption));
|
|
41
41
|
|
|
42
42
|
Figure.propTypes = {
|
|
43
|
-
/**
|
|
44
|
-
* @since 0.0.47
|
|
43
|
+
/**
|
|
44
|
+
* @since 0.0.47
|
|
45
45
|
*/
|
|
46
46
|
href: _propTypes.default.string,
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* @since 0.0.47
|
|
48
|
+
/**
|
|
49
|
+
* @since 0.0.47
|
|
50
50
|
*/
|
|
51
51
|
caption: _propTypes.default.any,
|
|
52
52
|
|
|
53
|
-
/**
|
|
54
|
-
* Content of the figure
|
|
55
|
-
* @since 0.0.42
|
|
53
|
+
/**
|
|
54
|
+
* Content of the figure
|
|
55
|
+
* @since 0.0.42
|
|
56
56
|
*/
|
|
57
57
|
children: _propTypes.default.node,
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* @ignore
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
61
|
*/
|
|
62
62
|
className: _propTypes.default.string,
|
|
63
63
|
|
|
64
|
-
/**
|
|
65
|
-
* @ignore
|
|
64
|
+
/**
|
|
65
|
+
* @ignore
|
|
66
66
|
*/
|
|
67
67
|
baseClassName: _propTypes.default.string
|
|
68
68
|
};
|