@plesk/ui-library 3.26.1 → 3.27.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/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 +63 -63
- package/cjs/components/Drawer/Drawer.js +92 -87
- package/cjs/components/Drawer/DrawerProgress.js +17 -14
- 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 +87 -82
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +34 -34
- 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 +47 -47
- 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 +5 -5
- 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 +5 -5
- 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 +6504 -6491
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +3 -3
- 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 +63 -63
- package/esm/components/Drawer/Drawer.js +92 -87
- package/esm/components/Drawer/DrawerProgress.js +16 -15
- 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 +87 -82
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/esm/components/FormFieldPassword/FormFieldPassword.js +34 -34
- 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 +47 -47
- 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 +5 -5
- 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 +146 -146
- package/scripts/postinstall.js +9 -9
- package/styleguide/browserconfig.xml +9 -9
- package/styleguide/build/bundle.ff1f903a.js +2 -0
- package/styleguide/build/{bundle.7b56da57.js.LICENSE.txt → bundle.ff1f903a.js.LICENSE.txt} +0 -0
- package/styleguide/images/no-image.svg +6 -6
- package/styleguide/images/rating.svg +5 -5
- 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 +128 -128
- 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 -40
- 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/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/styleguide/build/bundle.7b56da57.js +0 -2
|
@@ -55,11 +55,11 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
55
55
|
|
|
56
56
|
/* eslint-disable react/no-deprecated */
|
|
57
57
|
const defaultValue = undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Simple helper to handle situations when we expecting only array
|
|
60
|
-
* @param value
|
|
61
|
-
* @param nonEmpty
|
|
62
|
-
* @returns {Array}
|
|
58
|
+
/**
|
|
59
|
+
* Simple helper to handle situations when we expecting only array
|
|
60
|
+
* @param value
|
|
61
|
+
* @param nonEmpty
|
|
62
|
+
* @returns {Array}
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
65
|
const getArrayHelper = (value, nonEmpty = false) => {
|
|
@@ -77,8 +77,12 @@ const getArrayHelper = (value, nonEmpty = false) => {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
const isControlled = props => props.value !== undefined;
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
|
|
81
|
+
const isEmpty = value => {
|
|
82
|
+
return !value && value !== 0 || Array.isArray(value) && value.length === 0 || !Array.isArray(value) && typeof value === 'object' && Object.values(value).filter(t => Boolean(t)).length === 0;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @since 0.0.54
|
|
82
86
|
*/
|
|
83
87
|
|
|
84
88
|
|
|
@@ -194,18 +198,19 @@ class FormField extends _react.Component {
|
|
|
194
198
|
disabled
|
|
195
199
|
} = this.props;
|
|
196
200
|
const value = getArrayHelper(this.fieldApi.getValue());
|
|
201
|
+
const isClearable = multi && value.length === 1 && !isEmpty(value[0]);
|
|
197
202
|
|
|
198
|
-
if (!multi || value.length
|
|
203
|
+
if (!multi || value.length < 1 || value.length === 1 && isEmpty(value[0])) {
|
|
199
204
|
return null;
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
return /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
203
208
|
className: `${this.props.baseClassName}__remove`,
|
|
204
|
-
icon:
|
|
209
|
+
icon: isClearable ? 'clean' : 'cross-mark',
|
|
205
210
|
tooltip: /*#__PURE__*/_react.default.createElement(_Translate.default, {
|
|
206
211
|
namespace: "FormField",
|
|
207
|
-
content:
|
|
208
|
-
fallback:
|
|
212
|
+
content: isClearable ? 'clear' : 'remove',
|
|
213
|
+
fallback: isClearable ? 'Clear' : 'Remove',
|
|
209
214
|
translators: locale
|
|
210
215
|
}),
|
|
211
216
|
onClick: () => this.handleRemove(index),
|
|
@@ -434,10 +439,10 @@ class FormField extends _react.Component {
|
|
|
434
439
|
|
|
435
440
|
clearTimeout(this.focusTimer);
|
|
436
441
|
}
|
|
437
|
-
/**
|
|
438
|
-
* Field API provided to field
|
|
439
|
-
* @param index
|
|
440
|
-
* @returns {Object}
|
|
442
|
+
/**
|
|
443
|
+
* Field API provided to field
|
|
444
|
+
* @param index
|
|
445
|
+
* @returns {Object}
|
|
441
446
|
*/
|
|
442
447
|
|
|
443
448
|
|
|
@@ -461,127 +466,127 @@ class FormField extends _react.Component {
|
|
|
461
466
|
}
|
|
462
467
|
|
|
463
468
|
const propTypes = {
|
|
464
|
-
/**
|
|
465
|
-
* Field ID.
|
|
466
|
-
* @since 0.0.59
|
|
469
|
+
/**
|
|
470
|
+
* Field ID.
|
|
471
|
+
* @since 0.0.59
|
|
467
472
|
*/
|
|
468
473
|
id: _propTypes.default.string,
|
|
469
474
|
|
|
470
|
-
/**
|
|
471
|
-
* Field name.
|
|
472
|
-
* @since 0.0.54
|
|
475
|
+
/**
|
|
476
|
+
* Field name.
|
|
477
|
+
* @since 0.0.54
|
|
473
478
|
*/
|
|
474
479
|
name: _propTypes.default.string,
|
|
475
480
|
|
|
476
|
-
/**
|
|
477
|
-
* Field value.
|
|
478
|
-
* @deprecated Use [Form](#!/Form) values.
|
|
479
|
-
* @since 0.0.57
|
|
481
|
+
/**
|
|
482
|
+
* Field value.
|
|
483
|
+
* @deprecated Use [Form](#!/Form) values.
|
|
484
|
+
* @since 0.0.57
|
|
480
485
|
*/
|
|
481
486
|
value: _propTypes.default.any,
|
|
482
487
|
|
|
483
|
-
/**
|
|
484
|
-
* A callback function, can be executed when the value is changing.
|
|
485
|
-
* @since 0.4.1
|
|
488
|
+
/**
|
|
489
|
+
* A callback function, can be executed when the value is changing.
|
|
490
|
+
* @since 0.4.1
|
|
486
491
|
*/
|
|
487
492
|
onChange: _propTypes.default.func,
|
|
488
493
|
|
|
489
|
-
/**
|
|
490
|
-
* Field label.
|
|
491
|
-
* @since 0.0.54
|
|
494
|
+
/**
|
|
495
|
+
* Field label.
|
|
496
|
+
* @since 0.0.54
|
|
492
497
|
*/
|
|
493
498
|
label: _propTypes.default.any,
|
|
494
499
|
|
|
495
|
-
/**
|
|
496
|
-
* Field description.
|
|
497
|
-
* @since 0.0.57
|
|
500
|
+
/**
|
|
501
|
+
* Field description.
|
|
502
|
+
* @since 0.0.57
|
|
498
503
|
*/
|
|
499
504
|
description: _propTypes.default.any,
|
|
500
505
|
|
|
501
|
-
/**
|
|
502
|
-
* Show long descriptions in popover after clicking on "( i )" icon
|
|
503
|
-
* @since 3.14.0
|
|
506
|
+
/**
|
|
507
|
+
* Show long descriptions in popover after clicking on "( i )" icon
|
|
508
|
+
* @since 3.14.0
|
|
504
509
|
*/
|
|
505
510
|
fullDescription: _propTypes.default.node,
|
|
506
511
|
|
|
507
|
-
/**
|
|
508
|
-
* Field errors.
|
|
509
|
-
* @deprecated Use [Form](#!/Form) errors.
|
|
510
|
-
* @since 0.0.57
|
|
512
|
+
/**
|
|
513
|
+
* Field errors.
|
|
514
|
+
* @deprecated Use [Form](#!/Form) errors.
|
|
515
|
+
* @since 0.0.57
|
|
511
516
|
*/
|
|
512
517
|
errors: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]),
|
|
513
518
|
|
|
514
|
-
/**
|
|
515
|
-
* Indicates whether field is required.
|
|
516
|
-
* @since 0.0.54
|
|
519
|
+
/**
|
|
520
|
+
* Indicates whether field is required.
|
|
521
|
+
* @since 0.0.54
|
|
517
522
|
*/
|
|
518
523
|
required: _propTypes.default.bool,
|
|
519
524
|
|
|
520
|
-
/**
|
|
521
|
-
* Content of the `FormField`.
|
|
522
|
-
* @since 0.0.54
|
|
525
|
+
/**
|
|
526
|
+
* Content of the `FormField`.
|
|
527
|
+
* @since 0.0.54
|
|
523
528
|
*/
|
|
524
529
|
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
525
530
|
|
|
526
|
-
/**
|
|
527
|
-
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
528
|
-
* @since 1.12.0
|
|
531
|
+
/**
|
|
532
|
+
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
533
|
+
* @since 1.12.0
|
|
529
534
|
*/
|
|
530
535
|
multi: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.shape({
|
|
531
536
|
max: _propTypes.default.number.isRequired
|
|
532
537
|
})]),
|
|
533
538
|
|
|
534
|
-
/**
|
|
535
|
-
* @ignore Disabled state of multiple field.
|
|
539
|
+
/**
|
|
540
|
+
* @ignore Disabled state of multiple field.
|
|
536
541
|
*/
|
|
537
542
|
disabled: _propTypes.default.bool,
|
|
538
543
|
|
|
539
|
-
/**
|
|
540
|
-
* Localization messages
|
|
541
|
-
* @since 1.12.0
|
|
544
|
+
/**
|
|
545
|
+
* Localization messages
|
|
546
|
+
* @since 1.12.0
|
|
542
547
|
*/
|
|
543
548
|
locale: _propTypes.default.shape({
|
|
544
549
|
addMore: _propTypes.default.node,
|
|
545
550
|
remove: _propTypes.default.node
|
|
546
551
|
}),
|
|
547
552
|
|
|
548
|
-
/**
|
|
549
|
-
* Callback which called for all values. If it returns 'true' a pseudo-link 'Add more' will be disabled
|
|
550
|
-
* @ignore
|
|
551
|
-
* @deprecated
|
|
553
|
+
/**
|
|
554
|
+
* Callback which called for all values. If it returns 'true' a pseudo-link 'Add more' will be disabled
|
|
555
|
+
* @ignore
|
|
556
|
+
* @deprecated
|
|
552
557
|
*/
|
|
553
558
|
addMoreValidator: _propTypes.default.func,
|
|
554
559
|
|
|
555
|
-
/**
|
|
556
|
-
* A callback function, can be executed when the row is removed.
|
|
557
|
-
* @since 1.12.0
|
|
560
|
+
/**
|
|
561
|
+
* A callback function, can be executed when the row is removed.
|
|
562
|
+
* @since 1.12.0
|
|
558
563
|
*/
|
|
559
564
|
onRemoveRow: _propTypes.default.func,
|
|
560
565
|
|
|
561
|
-
/**
|
|
562
|
-
* @ignore
|
|
566
|
+
/**
|
|
567
|
+
* @ignore
|
|
563
568
|
*/
|
|
564
569
|
className: _propTypes.default.string,
|
|
565
570
|
|
|
566
|
-
/**
|
|
567
|
-
* @ignore
|
|
571
|
+
/**
|
|
572
|
+
* @ignore
|
|
568
573
|
*/
|
|
569
574
|
baseClassName: _propTypes.default.string,
|
|
570
575
|
|
|
571
|
-
/**
|
|
572
|
-
* @ignore
|
|
576
|
+
/**
|
|
577
|
+
* @ignore
|
|
573
578
|
*/
|
|
574
579
|
form: _propTypes.default.object,
|
|
575
580
|
|
|
576
|
-
/**
|
|
577
|
-
* Vertical or horizontal field view.
|
|
578
|
-
* If it is not defined explicitly, the vertical mode will use from Form or Section components.
|
|
579
|
-
* @since 3.13.0
|
|
581
|
+
/**
|
|
582
|
+
* Vertical or horizontal field view.
|
|
583
|
+
* If it is not defined explicitly, the vertical mode will use from Form or Section components.
|
|
584
|
+
* @since 3.13.0
|
|
580
585
|
*/
|
|
581
586
|
vertical: _propTypes.default.bool,
|
|
582
587
|
|
|
583
|
-
/**
|
|
584
|
-
* @ignore
|
|
588
|
+
/**
|
|
589
|
+
* @ignore
|
|
585
590
|
*/
|
|
586
591
|
scrollableElement: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Element), _propTypes.default.instanceOf(Window)])
|
|
587
592
|
};
|
|
@@ -609,14 +614,14 @@ const defaultProps = {
|
|
|
609
614
|
};
|
|
610
615
|
FormField.propTypes = propTypes;
|
|
611
616
|
FormField.defaultProps = defaultProps;
|
|
612
|
-
/**
|
|
613
|
-
* `FormField` component is used for showing of parameter values in Form or
|
|
614
|
-
* for entering of user data with any form elements.
|
|
615
|
-
*
|
|
616
|
-
* For the most cases the following form elements can be used:
|
|
617
|
-
* * [FormFieldText](#!/FormFieldText) for entering text,
|
|
618
|
-
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
619
|
-
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
617
|
+
/**
|
|
618
|
+
* `FormField` component is used for showing of parameter values in Form or
|
|
619
|
+
* for entering of user data with any form elements.
|
|
620
|
+
*
|
|
621
|
+
* For the most cases the following form elements can be used:
|
|
622
|
+
* * [FormFieldText](#!/FormFieldText) for entering text,
|
|
623
|
+
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
624
|
+
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
620
625
|
*/
|
|
621
626
|
|
|
622
627
|
const FormFieldWrapper = props => {
|
|
@@ -27,10 +27,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
27
27
|
|
|
28
28
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* `FormFieldCheckbox` component component is used for turning an option on or off
|
|
32
|
-
* and selecting or deselecting an item.
|
|
33
|
-
* @since 0.0.58
|
|
30
|
+
/**
|
|
31
|
+
* `FormFieldCheckbox` component component is used for turning an option on or off
|
|
32
|
+
* and selecting or deselecting an item.
|
|
33
|
+
* @since 0.0.58
|
|
34
34
|
*/
|
|
35
35
|
const FormFieldCheckbox = ({
|
|
36
36
|
baseClassName,
|
|
@@ -72,52 +72,52 @@ const FormFieldCheckbox = ({
|
|
|
72
72
|
}, label)));
|
|
73
73
|
|
|
74
74
|
FormFieldCheckbox.propTypes = {
|
|
75
|
-
/**
|
|
76
|
-
* Disabled state of field.
|
|
77
|
-
* @since 0.1.0
|
|
75
|
+
/**
|
|
76
|
+
* Disabled state of field.
|
|
77
|
+
* @since 0.1.0
|
|
78
78
|
*/
|
|
79
79
|
disabled: _propTypes.default.bool,
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* Custom checked value. Default is boolean true.
|
|
83
|
-
* @since 0.0.59
|
|
81
|
+
/**
|
|
82
|
+
* Custom checked value. Default is boolean true.
|
|
83
|
+
* @since 0.0.59
|
|
84
84
|
*/
|
|
85
85
|
checkedValue: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* Custom unchecked value. Default is boolean false.
|
|
89
|
-
* @since 0.0.59
|
|
87
|
+
/**
|
|
88
|
+
* Custom unchecked value. Default is boolean false.
|
|
89
|
+
* @since 0.0.59
|
|
90
90
|
*/
|
|
91
91
|
uncheckedValue: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
95
|
-
* @since 1.9.0
|
|
93
|
+
/**
|
|
94
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
95
|
+
* @since 1.9.0
|
|
96
96
|
*/
|
|
97
97
|
autoFocus: _propTypes.default.bool,
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* @ignore Field cannot be multiple
|
|
99
|
+
/**
|
|
100
|
+
* @ignore Field cannot be multiple
|
|
101
101
|
*/
|
|
102
102
|
multi: _propTypes.default.bool,
|
|
103
103
|
|
|
104
|
-
/**
|
|
105
|
-
* @ignore
|
|
104
|
+
/**
|
|
105
|
+
* @ignore
|
|
106
106
|
*/
|
|
107
107
|
label: _propTypes.default.any,
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* @ignore
|
|
109
|
+
/**
|
|
110
|
+
* @ignore
|
|
111
111
|
*/
|
|
112
112
|
required: _propTypes.default.bool,
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* @ignore
|
|
114
|
+
/**
|
|
115
|
+
* @ignore
|
|
116
116
|
*/
|
|
117
117
|
className: _propTypes.default.string,
|
|
118
118
|
|
|
119
|
-
/**
|
|
120
|
-
* @ignore
|
|
119
|
+
/**
|
|
120
|
+
* @ignore
|
|
121
121
|
*/
|
|
122
122
|
baseClassName: _propTypes.default.string,
|
|
123
123
|
fullDescription: _propTypes.default.string
|
|
@@ -49,9 +49,9 @@ const generatePassword = () => {
|
|
|
49
49
|
const password = ['upper', 'lower', 'lower', 'lower', 'number', 'number', 'special', 'number', 'upper', 'upper', 'lower', 'lower', 'lower', 'lower', 'lower', 'lower'];
|
|
50
50
|
return password.sort((a, b) => Math.floor(b.length * Math.random()) - Math.floor(a.length * Math.random())).map(symbolClass => symbolClasses[symbolClass][Math.floor(symbolClasses[symbolClass].length * Math.random())]).join('');
|
|
51
51
|
};
|
|
52
|
-
/**
|
|
53
|
-
* `FormFieldPassword` component provides secure way to enter a password.
|
|
54
|
-
* @since 0.0.58
|
|
52
|
+
/**
|
|
53
|
+
* `FormFieldPassword` component provides secure way to enter a password.
|
|
54
|
+
* @since 0.0.58
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
57
|
|
|
@@ -299,33 +299,33 @@ class FormFieldPassword extends _react.Component {
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
FormFieldPassword.propTypes = {
|
|
302
|
-
/**
|
|
303
|
-
* Is show button hidden?
|
|
304
|
-
* @since 0.0.59
|
|
302
|
+
/**
|
|
303
|
+
* Is show button hidden?
|
|
304
|
+
* @since 0.0.59
|
|
305
305
|
*/
|
|
306
306
|
hideShowButton: _propTypes.default.bool,
|
|
307
307
|
|
|
308
|
-
/**
|
|
309
|
-
* Is generate button hidden?
|
|
310
|
-
* @since 0.0.59
|
|
308
|
+
/**
|
|
309
|
+
* Is generate button hidden?
|
|
310
|
+
* @since 0.0.59
|
|
311
311
|
*/
|
|
312
312
|
hideGenerateButton: _propTypes.default.bool,
|
|
313
313
|
|
|
314
|
-
/**
|
|
315
|
-
* Is password meter hidden?
|
|
316
|
-
* @since 0.0.59
|
|
314
|
+
/**
|
|
315
|
+
* Is password meter hidden?
|
|
316
|
+
* @since 0.0.59
|
|
317
317
|
*/
|
|
318
318
|
hidePasswordMeter: _propTypes.default.bool,
|
|
319
319
|
|
|
320
|
-
/**
|
|
321
|
-
* Additional props for password meter. . See [Popover](#!/Popover) for more information.
|
|
322
|
-
* @since 1.5.6
|
|
320
|
+
/**
|
|
321
|
+
* Additional props for password meter. . See [Popover](#!/Popover) for more information.
|
|
322
|
+
* @since 1.5.6
|
|
323
323
|
*/
|
|
324
324
|
passwordMeterProps: _propTypes.default.object,
|
|
325
325
|
|
|
326
|
-
/**
|
|
327
|
-
* A set of custom password score rules.
|
|
328
|
-
* @since 3.21.0
|
|
326
|
+
/**
|
|
327
|
+
* A set of custom password score rules.
|
|
328
|
+
* @since 3.21.0
|
|
329
329
|
*/
|
|
330
330
|
passwordScoreRules: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
331
331
|
name: _propTypes.default.string,
|
|
@@ -333,37 +333,37 @@ FormFieldPassword.propTypes = {
|
|
|
333
333
|
score: _propTypes.default.func.isRequired
|
|
334
334
|
})),
|
|
335
335
|
|
|
336
|
-
/**
|
|
337
|
-
* Size of the control
|
|
338
|
-
* @since 1.5.6
|
|
336
|
+
/**
|
|
337
|
+
* Size of the control
|
|
338
|
+
* @since 1.5.6
|
|
339
339
|
*/
|
|
340
340
|
size: _propTypes.default.oneOf(['md', 'lg', 'xl', 'fill']),
|
|
341
341
|
|
|
342
|
-
/**
|
|
343
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
344
|
-
* @since 1.9.0
|
|
342
|
+
/**
|
|
343
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
344
|
+
* @since 1.9.0
|
|
345
345
|
*/
|
|
346
346
|
autoFocus: _propTypes.default.bool,
|
|
347
347
|
|
|
348
|
-
/**
|
|
349
|
-
* Prevent password autocompletion.
|
|
350
|
-
* @since 2.5.1
|
|
348
|
+
/**
|
|
349
|
+
* Prevent password autocompletion.
|
|
350
|
+
* @since 2.5.1
|
|
351
351
|
*/
|
|
352
352
|
autoComplete: _propTypes.default.oneOf(['new-password']),
|
|
353
353
|
|
|
354
|
-
/**
|
|
355
|
-
* A render function for customizing the password generation button.
|
|
356
|
-
* @since 3.13.0
|
|
354
|
+
/**
|
|
355
|
+
* A render function for customizing the password generation button.
|
|
356
|
+
* @since 3.13.0
|
|
357
357
|
*/
|
|
358
358
|
generateButton: _propTypes.default.func,
|
|
359
359
|
|
|
360
|
-
/**
|
|
361
|
-
* @ignore
|
|
360
|
+
/**
|
|
361
|
+
* @ignore
|
|
362
362
|
*/
|
|
363
363
|
className: _propTypes.default.string,
|
|
364
364
|
|
|
365
|
-
/**
|
|
366
|
-
* @ignore
|
|
365
|
+
/**
|
|
366
|
+
* @ignore
|
|
367
367
|
*/
|
|
368
368
|
baseClassName: _propTypes.default.string
|
|
369
369
|
};
|
|
@@ -31,9 +31,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
31
31
|
|
|
32
32
|
/* eslint-disable react/prefer-stateless-function */
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
36
|
-
* @since 0.2.0
|
|
34
|
+
/**
|
|
35
|
+
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
36
|
+
* @since 0.2.0
|
|
37
37
|
*/
|
|
38
38
|
class FormFieldRadioButtons extends _react.Component {
|
|
39
39
|
render() {
|
|
@@ -95,68 +95,68 @@ class FormFieldRadioButtons extends _react.Component {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
FormFieldRadioButtons.propTypes = {
|
|
98
|
-
/**
|
|
99
|
-
* Options definition.
|
|
100
|
-
* @since 0.2.0
|
|
98
|
+
/**
|
|
99
|
+
* Options definition.
|
|
100
|
+
* @since 0.2.0
|
|
101
101
|
*/
|
|
102
102
|
options: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
103
|
-
/**
|
|
104
|
-
* Option value.
|
|
103
|
+
/**
|
|
104
|
+
* Option value.
|
|
105
105
|
*/
|
|
106
106
|
value: _propTypes.default.string.isRequired,
|
|
107
107
|
|
|
108
|
-
/**
|
|
109
|
-
* Option label.
|
|
108
|
+
/**
|
|
109
|
+
* Option label.
|
|
110
110
|
*/
|
|
111
111
|
label: _propTypes.default.node.isRequired,
|
|
112
112
|
|
|
113
|
-
/**
|
|
114
|
-
* Text hint located below option for providing additional information.
|
|
113
|
+
/**
|
|
114
|
+
* Text hint located below option for providing additional information.
|
|
115
115
|
*/
|
|
116
116
|
description: _propTypes.default.node,
|
|
117
117
|
|
|
118
|
-
/**
|
|
119
|
-
* Set true if option is not available to choice.
|
|
118
|
+
/**
|
|
119
|
+
* Set true if option is not available to choice.
|
|
120
120
|
*/
|
|
121
121
|
disabled: _propTypes.default.bool,
|
|
122
122
|
|
|
123
|
-
/**
|
|
124
|
-
* Optional array of `FormField` components under this option.
|
|
123
|
+
/**
|
|
124
|
+
* Optional array of `FormField` components under this option.
|
|
125
125
|
*/
|
|
126
126
|
indentFields: _propTypes.default.array
|
|
127
127
|
})).isRequired,
|
|
128
128
|
|
|
129
|
-
/**
|
|
130
|
-
* Value of current chosen option.
|
|
131
|
-
* @deprecated Use [Form](#!/Form) values.
|
|
132
|
-
* @since 0.2.0
|
|
129
|
+
/**
|
|
130
|
+
* Value of current chosen option.
|
|
131
|
+
* @deprecated Use [Form](#!/Form) values.
|
|
132
|
+
* @since 0.2.0
|
|
133
133
|
*/
|
|
134
134
|
value: _propTypes.default.string,
|
|
135
135
|
|
|
136
|
-
/**
|
|
137
|
-
* Disabled state of field.
|
|
138
|
-
* @since 0.2.0
|
|
136
|
+
/**
|
|
137
|
+
* Disabled state of field.
|
|
138
|
+
* @since 0.2.0
|
|
139
139
|
*/
|
|
140
140
|
disabled: _propTypes.default.bool,
|
|
141
141
|
|
|
142
|
-
/**
|
|
143
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
144
|
-
* @since 1.9.0
|
|
142
|
+
/**
|
|
143
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
144
|
+
* @since 1.9.0
|
|
145
145
|
*/
|
|
146
146
|
autoFocus: _propTypes.default.bool,
|
|
147
147
|
|
|
148
|
-
/**
|
|
149
|
-
* @ignore Field cannot be multiple
|
|
148
|
+
/**
|
|
149
|
+
* @ignore Field cannot be multiple
|
|
150
150
|
*/
|
|
151
151
|
multi: _propTypes.default.bool,
|
|
152
152
|
|
|
153
|
-
/**
|
|
154
|
-
* @ignore
|
|
153
|
+
/**
|
|
154
|
+
* @ignore
|
|
155
155
|
*/
|
|
156
156
|
className: _propTypes.default.string,
|
|
157
157
|
|
|
158
|
-
/**
|
|
159
|
-
* @ignore
|
|
158
|
+
/**
|
|
159
|
+
* @ignore
|
|
160
160
|
*/
|
|
161
161
|
baseClassName: _propTypes.default.string
|
|
162
162
|
};
|
|
@@ -21,10 +21,10 @@ var _Select = _interopRequireDefault(require("../Select"));
|
|
|
21
21
|
|
|
22
22
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
26
|
-
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
27
|
-
* @since 1.12.3
|
|
24
|
+
/**
|
|
25
|
+
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
26
|
+
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
27
|
+
* @since 1.12.3
|
|
28
28
|
*/
|
|
29
29
|
const FormFieldSelect = ({
|
|
30
30
|
size,
|