@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
|
@@ -22,11 +22,11 @@ import VerticalContext from '../VerticalContext';
|
|
|
22
22
|
import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
|
|
23
23
|
import DisabledContext from '../Form/DisabledContext';
|
|
24
24
|
const defaultValue = undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Simple helper to handle situations when we expecting only array
|
|
27
|
-
* @param value
|
|
28
|
-
* @param nonEmpty
|
|
29
|
-
* @returns {Array}
|
|
25
|
+
/**
|
|
26
|
+
* Simple helper to handle situations when we expecting only array
|
|
27
|
+
* @param value
|
|
28
|
+
* @param nonEmpty
|
|
29
|
+
* @returns {Array}
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
32
|
const getArrayHelper = (value, nonEmpty = false) => {
|
|
@@ -44,8 +44,12 @@ const getArrayHelper = (value, nonEmpty = false) => {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
const isControlled = props => props.value !== undefined;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
|
|
48
|
+
const isEmpty = value => {
|
|
49
|
+
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;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @since 0.0.54
|
|
49
53
|
*/
|
|
50
54
|
|
|
51
55
|
|
|
@@ -167,18 +171,19 @@ class FormField extends Component {
|
|
|
167
171
|
disabled
|
|
168
172
|
} = this.props;
|
|
169
173
|
const value = getArrayHelper(this.fieldApi.getValue());
|
|
174
|
+
const isClearable = multi && value.length === 1 && !isEmpty(value[0]);
|
|
170
175
|
|
|
171
|
-
if (!multi || value.length
|
|
176
|
+
if (!multi || value.length < 1 || value.length === 1 && isEmpty(value[0])) {
|
|
172
177
|
return null;
|
|
173
178
|
}
|
|
174
179
|
|
|
175
180
|
return /*#__PURE__*/React.createElement(Button, {
|
|
176
181
|
className: `${this.props.baseClassName}__remove`,
|
|
177
|
-
icon:
|
|
182
|
+
icon: isClearable ? 'clean' : 'cross-mark',
|
|
178
183
|
tooltip: /*#__PURE__*/React.createElement(Translate, {
|
|
179
184
|
namespace: "FormField",
|
|
180
|
-
content:
|
|
181
|
-
fallback:
|
|
185
|
+
content: isClearable ? 'clear' : 'remove',
|
|
186
|
+
fallback: isClearable ? 'Clear' : 'Remove',
|
|
182
187
|
translators: locale
|
|
183
188
|
}),
|
|
184
189
|
onClick: () => this.handleRemove(index),
|
|
@@ -410,10 +415,10 @@ class FormField extends Component {
|
|
|
410
415
|
|
|
411
416
|
clearTimeout(this.focusTimer);
|
|
412
417
|
}
|
|
413
|
-
/**
|
|
414
|
-
* Field API provided to field
|
|
415
|
-
* @param index
|
|
416
|
-
* @returns {Object}
|
|
418
|
+
/**
|
|
419
|
+
* Field API provided to field
|
|
420
|
+
* @param index
|
|
421
|
+
* @returns {Object}
|
|
417
422
|
*/
|
|
418
423
|
|
|
419
424
|
|
|
@@ -437,127 +442,127 @@ class FormField extends Component {
|
|
|
437
442
|
}
|
|
438
443
|
|
|
439
444
|
const propTypes = {
|
|
440
|
-
/**
|
|
441
|
-
* Field ID.
|
|
442
|
-
* @since 0.0.59
|
|
445
|
+
/**
|
|
446
|
+
* Field ID.
|
|
447
|
+
* @since 0.0.59
|
|
443
448
|
*/
|
|
444
449
|
id: PropTypes.string,
|
|
445
450
|
|
|
446
|
-
/**
|
|
447
|
-
* Field name.
|
|
448
|
-
* @since 0.0.54
|
|
451
|
+
/**
|
|
452
|
+
* Field name.
|
|
453
|
+
* @since 0.0.54
|
|
449
454
|
*/
|
|
450
455
|
name: PropTypes.string,
|
|
451
456
|
|
|
452
|
-
/**
|
|
453
|
-
* Field value.
|
|
454
|
-
* @deprecated Use [Form](#!/Form) values.
|
|
455
|
-
* @since 0.0.57
|
|
457
|
+
/**
|
|
458
|
+
* Field value.
|
|
459
|
+
* @deprecated Use [Form](#!/Form) values.
|
|
460
|
+
* @since 0.0.57
|
|
456
461
|
*/
|
|
457
462
|
value: PropTypes.any,
|
|
458
463
|
|
|
459
|
-
/**
|
|
460
|
-
* A callback function, can be executed when the value is changing.
|
|
461
|
-
* @since 0.4.1
|
|
464
|
+
/**
|
|
465
|
+
* A callback function, can be executed when the value is changing.
|
|
466
|
+
* @since 0.4.1
|
|
462
467
|
*/
|
|
463
468
|
onChange: PropTypes.func,
|
|
464
469
|
|
|
465
|
-
/**
|
|
466
|
-
* Field label.
|
|
467
|
-
* @since 0.0.54
|
|
470
|
+
/**
|
|
471
|
+
* Field label.
|
|
472
|
+
* @since 0.0.54
|
|
468
473
|
*/
|
|
469
474
|
label: PropTypes.any,
|
|
470
475
|
|
|
471
|
-
/**
|
|
472
|
-
* Field description.
|
|
473
|
-
* @since 0.0.57
|
|
476
|
+
/**
|
|
477
|
+
* Field description.
|
|
478
|
+
* @since 0.0.57
|
|
474
479
|
*/
|
|
475
480
|
description: PropTypes.any,
|
|
476
481
|
|
|
477
|
-
/**
|
|
478
|
-
* Show long descriptions in popover after clicking on "( i )" icon
|
|
479
|
-
* @since 3.14.0
|
|
482
|
+
/**
|
|
483
|
+
* Show long descriptions in popover after clicking on "( i )" icon
|
|
484
|
+
* @since 3.14.0
|
|
480
485
|
*/
|
|
481
486
|
fullDescription: PropTypes.node,
|
|
482
487
|
|
|
483
|
-
/**
|
|
484
|
-
* Field errors.
|
|
485
|
-
* @deprecated Use [Form](#!/Form) errors.
|
|
486
|
-
* @since 0.0.57
|
|
488
|
+
/**
|
|
489
|
+
* Field errors.
|
|
490
|
+
* @deprecated Use [Form](#!/Form) errors.
|
|
491
|
+
* @since 0.0.57
|
|
487
492
|
*/
|
|
488
493
|
errors: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
489
494
|
|
|
490
|
-
/**
|
|
491
|
-
* Indicates whether field is required.
|
|
492
|
-
* @since 0.0.54
|
|
495
|
+
/**
|
|
496
|
+
* Indicates whether field is required.
|
|
497
|
+
* @since 0.0.54
|
|
493
498
|
*/
|
|
494
499
|
required: PropTypes.bool,
|
|
495
500
|
|
|
496
|
-
/**
|
|
497
|
-
* Content of the `FormField`.
|
|
498
|
-
* @since 0.0.54
|
|
501
|
+
/**
|
|
502
|
+
* Content of the `FormField`.
|
|
503
|
+
* @since 0.0.54
|
|
499
504
|
*/
|
|
500
505
|
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
501
506
|
|
|
502
|
-
/**
|
|
503
|
-
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
504
|
-
* @since 1.12.0
|
|
507
|
+
/**
|
|
508
|
+
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
509
|
+
* @since 1.12.0
|
|
505
510
|
*/
|
|
506
511
|
multi: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
|
507
512
|
max: PropTypes.number.isRequired
|
|
508
513
|
})]),
|
|
509
514
|
|
|
510
|
-
/**
|
|
511
|
-
* @ignore Disabled state of multiple field.
|
|
515
|
+
/**
|
|
516
|
+
* @ignore Disabled state of multiple field.
|
|
512
517
|
*/
|
|
513
518
|
disabled: PropTypes.bool,
|
|
514
519
|
|
|
515
|
-
/**
|
|
516
|
-
* Localization messages
|
|
517
|
-
* @since 1.12.0
|
|
520
|
+
/**
|
|
521
|
+
* Localization messages
|
|
522
|
+
* @since 1.12.0
|
|
518
523
|
*/
|
|
519
524
|
locale: PropTypes.shape({
|
|
520
525
|
addMore: PropTypes.node,
|
|
521
526
|
remove: PropTypes.node
|
|
522
527
|
}),
|
|
523
528
|
|
|
524
|
-
/**
|
|
525
|
-
* Callback which called for all values. If it returns 'true' a pseudo-link 'Add more' will be disabled
|
|
526
|
-
* @ignore
|
|
527
|
-
* @deprecated
|
|
529
|
+
/**
|
|
530
|
+
* Callback which called for all values. If it returns 'true' a pseudo-link 'Add more' will be disabled
|
|
531
|
+
* @ignore
|
|
532
|
+
* @deprecated
|
|
528
533
|
*/
|
|
529
534
|
addMoreValidator: PropTypes.func,
|
|
530
535
|
|
|
531
|
-
/**
|
|
532
|
-
* A callback function, can be executed when the row is removed.
|
|
533
|
-
* @since 1.12.0
|
|
536
|
+
/**
|
|
537
|
+
* A callback function, can be executed when the row is removed.
|
|
538
|
+
* @since 1.12.0
|
|
534
539
|
*/
|
|
535
540
|
onRemoveRow: PropTypes.func,
|
|
536
541
|
|
|
537
|
-
/**
|
|
538
|
-
* @ignore
|
|
542
|
+
/**
|
|
543
|
+
* @ignore
|
|
539
544
|
*/
|
|
540
545
|
className: PropTypes.string,
|
|
541
546
|
|
|
542
|
-
/**
|
|
543
|
-
* @ignore
|
|
547
|
+
/**
|
|
548
|
+
* @ignore
|
|
544
549
|
*/
|
|
545
550
|
baseClassName: PropTypes.string,
|
|
546
551
|
|
|
547
|
-
/**
|
|
548
|
-
* @ignore
|
|
552
|
+
/**
|
|
553
|
+
* @ignore
|
|
549
554
|
*/
|
|
550
555
|
form: PropTypes.object,
|
|
551
556
|
|
|
552
|
-
/**
|
|
553
|
-
* Vertical or horizontal field view.
|
|
554
|
-
* If it is not defined explicitly, the vertical mode will use from Form or Section components.
|
|
555
|
-
* @since 3.13.0
|
|
557
|
+
/**
|
|
558
|
+
* Vertical or horizontal field view.
|
|
559
|
+
* If it is not defined explicitly, the vertical mode will use from Form or Section components.
|
|
560
|
+
* @since 3.13.0
|
|
556
561
|
*/
|
|
557
562
|
vertical: PropTypes.bool,
|
|
558
563
|
|
|
559
|
-
/**
|
|
560
|
-
* @ignore
|
|
564
|
+
/**
|
|
565
|
+
* @ignore
|
|
561
566
|
*/
|
|
562
567
|
scrollableElement: PropTypes.oneOfType([PropTypes.instanceOf(Element), PropTypes.instanceOf(Window)])
|
|
563
568
|
};
|
|
@@ -585,14 +590,14 @@ const defaultProps = {
|
|
|
585
590
|
};
|
|
586
591
|
FormField.propTypes = propTypes;
|
|
587
592
|
FormField.defaultProps = defaultProps;
|
|
588
|
-
/**
|
|
589
|
-
* `FormField` component is used for showing of parameter values in Form or
|
|
590
|
-
* for entering of user data with any form elements.
|
|
591
|
-
*
|
|
592
|
-
* For the most cases the following form elements can be used:
|
|
593
|
-
* * [FormFieldText](#!/FormFieldText) for entering text,
|
|
594
|
-
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
595
|
-
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
593
|
+
/**
|
|
594
|
+
* `FormField` component is used for showing of parameter values in Form or
|
|
595
|
+
* for entering of user data with any form elements.
|
|
596
|
+
*
|
|
597
|
+
* For the most cases the following form elements can be used:
|
|
598
|
+
* * [FormFieldText](#!/FormFieldText) for entering text,
|
|
599
|
+
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
600
|
+
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
596
601
|
*/
|
|
597
602
|
|
|
598
603
|
const FormFieldWrapper = props => {
|
|
@@ -7,10 +7,10 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
7
7
|
import Checkbox from '../Checkbox';
|
|
8
8
|
import FormField from '../FormField';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* `FormFieldCheckbox` component component is used for turning an option on or off
|
|
12
|
-
* and selecting or deselecting an item.
|
|
13
|
-
* @since 0.0.58
|
|
10
|
+
/**
|
|
11
|
+
* `FormFieldCheckbox` component component is used for turning an option on or off
|
|
12
|
+
* and selecting or deselecting an item.
|
|
13
|
+
* @since 0.0.58
|
|
14
14
|
*/
|
|
15
15
|
const FormFieldCheckbox = ({
|
|
16
16
|
baseClassName,
|
|
@@ -52,52 +52,52 @@ const FormFieldCheckbox = ({
|
|
|
52
52
|
}, label)));
|
|
53
53
|
|
|
54
54
|
FormFieldCheckbox.propTypes = {
|
|
55
|
-
/**
|
|
56
|
-
* Disabled state of field.
|
|
57
|
-
* @since 0.1.0
|
|
55
|
+
/**
|
|
56
|
+
* Disabled state of field.
|
|
57
|
+
* @since 0.1.0
|
|
58
58
|
*/
|
|
59
59
|
disabled: PropTypes.bool,
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
* Custom checked value. Default is boolean true.
|
|
63
|
-
* @since 0.0.59
|
|
61
|
+
/**
|
|
62
|
+
* Custom checked value. Default is boolean true.
|
|
63
|
+
* @since 0.0.59
|
|
64
64
|
*/
|
|
65
65
|
checkedValue: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* Custom unchecked value. Default is boolean false.
|
|
69
|
-
* @since 0.0.59
|
|
67
|
+
/**
|
|
68
|
+
* Custom unchecked value. Default is boolean false.
|
|
69
|
+
* @since 0.0.59
|
|
70
70
|
*/
|
|
71
71
|
uncheckedValue: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
72
72
|
|
|
73
|
-
/**
|
|
74
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
75
|
-
* @since 1.9.0
|
|
73
|
+
/**
|
|
74
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
75
|
+
* @since 1.9.0
|
|
76
76
|
*/
|
|
77
77
|
autoFocus: PropTypes.bool,
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* @ignore Field cannot be multiple
|
|
79
|
+
/**
|
|
80
|
+
* @ignore Field cannot be multiple
|
|
81
81
|
*/
|
|
82
82
|
multi: PropTypes.bool,
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* @ignore
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
86
|
*/
|
|
87
87
|
label: PropTypes.any,
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* @ignore
|
|
89
|
+
/**
|
|
90
|
+
* @ignore
|
|
91
91
|
*/
|
|
92
92
|
required: PropTypes.bool,
|
|
93
93
|
|
|
94
|
-
/**
|
|
95
|
-
* @ignore
|
|
94
|
+
/**
|
|
95
|
+
* @ignore
|
|
96
96
|
*/
|
|
97
97
|
className: PropTypes.string,
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* @ignore
|
|
99
|
+
/**
|
|
100
|
+
* @ignore
|
|
101
101
|
*/
|
|
102
102
|
baseClassName: PropTypes.string,
|
|
103
103
|
fullDescription: PropTypes.string
|
|
@@ -22,9 +22,9 @@ export const generatePassword = () => {
|
|
|
22
22
|
const password = ['upper', 'lower', 'lower', 'lower', 'number', 'number', 'special', 'number', 'upper', 'upper', 'lower', 'lower', 'lower', 'lower', 'lower', 'lower'];
|
|
23
23
|
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('');
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* `FormFieldPassword` component provides secure way to enter a password.
|
|
27
|
-
* @since 0.0.58
|
|
25
|
+
/**
|
|
26
|
+
* `FormFieldPassword` component provides secure way to enter a password.
|
|
27
|
+
* @since 0.0.58
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
class FormFieldPassword extends Component {
|
|
@@ -272,33 +272,33 @@ class FormFieldPassword extends Component {
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
FormFieldPassword.propTypes = {
|
|
275
|
-
/**
|
|
276
|
-
* Is show button hidden?
|
|
277
|
-
* @since 0.0.59
|
|
275
|
+
/**
|
|
276
|
+
* Is show button hidden?
|
|
277
|
+
* @since 0.0.59
|
|
278
278
|
*/
|
|
279
279
|
hideShowButton: PropTypes.bool,
|
|
280
280
|
|
|
281
|
-
/**
|
|
282
|
-
* Is generate button hidden?
|
|
283
|
-
* @since 0.0.59
|
|
281
|
+
/**
|
|
282
|
+
* Is generate button hidden?
|
|
283
|
+
* @since 0.0.59
|
|
284
284
|
*/
|
|
285
285
|
hideGenerateButton: PropTypes.bool,
|
|
286
286
|
|
|
287
|
-
/**
|
|
288
|
-
* Is password meter hidden?
|
|
289
|
-
* @since 0.0.59
|
|
287
|
+
/**
|
|
288
|
+
* Is password meter hidden?
|
|
289
|
+
* @since 0.0.59
|
|
290
290
|
*/
|
|
291
291
|
hidePasswordMeter: PropTypes.bool,
|
|
292
292
|
|
|
293
|
-
/**
|
|
294
|
-
* Additional props for password meter. . See [Popover](#!/Popover) for more information.
|
|
295
|
-
* @since 1.5.6
|
|
293
|
+
/**
|
|
294
|
+
* Additional props for password meter. . See [Popover](#!/Popover) for more information.
|
|
295
|
+
* @since 1.5.6
|
|
296
296
|
*/
|
|
297
297
|
passwordMeterProps: PropTypes.object,
|
|
298
298
|
|
|
299
|
-
/**
|
|
300
|
-
* A set of custom password score rules.
|
|
301
|
-
* @since 3.21.0
|
|
299
|
+
/**
|
|
300
|
+
* A set of custom password score rules.
|
|
301
|
+
* @since 3.21.0
|
|
302
302
|
*/
|
|
303
303
|
passwordScoreRules: PropTypes.arrayOf(PropTypes.shape({
|
|
304
304
|
name: PropTypes.string,
|
|
@@ -306,37 +306,37 @@ FormFieldPassword.propTypes = {
|
|
|
306
306
|
score: PropTypes.func.isRequired
|
|
307
307
|
})),
|
|
308
308
|
|
|
309
|
-
/**
|
|
310
|
-
* Size of the control
|
|
311
|
-
* @since 1.5.6
|
|
309
|
+
/**
|
|
310
|
+
* Size of the control
|
|
311
|
+
* @since 1.5.6
|
|
312
312
|
*/
|
|
313
313
|
size: PropTypes.oneOf(['md', 'lg', 'xl', 'fill']),
|
|
314
314
|
|
|
315
|
-
/**
|
|
316
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
317
|
-
* @since 1.9.0
|
|
315
|
+
/**
|
|
316
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
317
|
+
* @since 1.9.0
|
|
318
318
|
*/
|
|
319
319
|
autoFocus: PropTypes.bool,
|
|
320
320
|
|
|
321
|
-
/**
|
|
322
|
-
* Prevent password autocompletion.
|
|
323
|
-
* @since 2.5.1
|
|
321
|
+
/**
|
|
322
|
+
* Prevent password autocompletion.
|
|
323
|
+
* @since 2.5.1
|
|
324
324
|
*/
|
|
325
325
|
autoComplete: PropTypes.oneOf(['new-password']),
|
|
326
326
|
|
|
327
|
-
/**
|
|
328
|
-
* A render function for customizing the password generation button.
|
|
329
|
-
* @since 3.13.0
|
|
327
|
+
/**
|
|
328
|
+
* A render function for customizing the password generation button.
|
|
329
|
+
* @since 3.13.0
|
|
330
330
|
*/
|
|
331
331
|
generateButton: PropTypes.func,
|
|
332
332
|
|
|
333
|
-
/**
|
|
334
|
-
* @ignore
|
|
333
|
+
/**
|
|
334
|
+
* @ignore
|
|
335
335
|
*/
|
|
336
336
|
className: PropTypes.string,
|
|
337
337
|
|
|
338
|
-
/**
|
|
339
|
-
* @ignore
|
|
338
|
+
/**
|
|
339
|
+
* @ignore
|
|
340
340
|
*/
|
|
341
341
|
baseClassName: PropTypes.string
|
|
342
342
|
};
|
|
@@ -10,9 +10,9 @@ import FormField from '../FormField';
|
|
|
10
10
|
import Hint from '../Hint';
|
|
11
11
|
import Radio from '../Radio';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
15
|
-
* @since 0.2.0
|
|
13
|
+
/**
|
|
14
|
+
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
15
|
+
* @since 0.2.0
|
|
16
16
|
*/
|
|
17
17
|
class FormFieldRadioButtons extends Component {
|
|
18
18
|
render() {
|
|
@@ -74,68 +74,68 @@ class FormFieldRadioButtons extends Component {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
FormFieldRadioButtons.propTypes = {
|
|
77
|
-
/**
|
|
78
|
-
* Options definition.
|
|
79
|
-
* @since 0.2.0
|
|
77
|
+
/**
|
|
78
|
+
* Options definition.
|
|
79
|
+
* @since 0.2.0
|
|
80
80
|
*/
|
|
81
81
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
82
|
-
/**
|
|
83
|
-
* Option value.
|
|
82
|
+
/**
|
|
83
|
+
* Option value.
|
|
84
84
|
*/
|
|
85
85
|
value: PropTypes.string.isRequired,
|
|
86
86
|
|
|
87
|
-
/**
|
|
88
|
-
* Option label.
|
|
87
|
+
/**
|
|
88
|
+
* Option label.
|
|
89
89
|
*/
|
|
90
90
|
label: PropTypes.node.isRequired,
|
|
91
91
|
|
|
92
|
-
/**
|
|
93
|
-
* Text hint located below option for providing additional information.
|
|
92
|
+
/**
|
|
93
|
+
* Text hint located below option for providing additional information.
|
|
94
94
|
*/
|
|
95
95
|
description: PropTypes.node,
|
|
96
96
|
|
|
97
|
-
/**
|
|
98
|
-
* Set true if option is not available to choice.
|
|
97
|
+
/**
|
|
98
|
+
* Set true if option is not available to choice.
|
|
99
99
|
*/
|
|
100
100
|
disabled: PropTypes.bool,
|
|
101
101
|
|
|
102
|
-
/**
|
|
103
|
-
* Optional array of `FormField` components under this option.
|
|
102
|
+
/**
|
|
103
|
+
* Optional array of `FormField` components under this option.
|
|
104
104
|
*/
|
|
105
105
|
indentFields: PropTypes.array
|
|
106
106
|
})).isRequired,
|
|
107
107
|
|
|
108
|
-
/**
|
|
109
|
-
* Value of current chosen option.
|
|
110
|
-
* @deprecated Use [Form](#!/Form) values.
|
|
111
|
-
* @since 0.2.0
|
|
108
|
+
/**
|
|
109
|
+
* Value of current chosen option.
|
|
110
|
+
* @deprecated Use [Form](#!/Form) values.
|
|
111
|
+
* @since 0.2.0
|
|
112
112
|
*/
|
|
113
113
|
value: PropTypes.string,
|
|
114
114
|
|
|
115
|
-
/**
|
|
116
|
-
* Disabled state of field.
|
|
117
|
-
* @since 0.2.0
|
|
115
|
+
/**
|
|
116
|
+
* Disabled state of field.
|
|
117
|
+
* @since 0.2.0
|
|
118
118
|
*/
|
|
119
119
|
disabled: PropTypes.bool,
|
|
120
120
|
|
|
121
|
-
/**
|
|
122
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
123
|
-
* @since 1.9.0
|
|
121
|
+
/**
|
|
122
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
123
|
+
* @since 1.9.0
|
|
124
124
|
*/
|
|
125
125
|
autoFocus: PropTypes.bool,
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* @ignore Field cannot be multiple
|
|
127
|
+
/**
|
|
128
|
+
* @ignore Field cannot be multiple
|
|
129
129
|
*/
|
|
130
130
|
multi: PropTypes.bool,
|
|
131
131
|
|
|
132
|
-
/**
|
|
133
|
-
* @ignore
|
|
132
|
+
/**
|
|
133
|
+
* @ignore
|
|
134
134
|
*/
|
|
135
135
|
className: PropTypes.string,
|
|
136
136
|
|
|
137
|
-
/**
|
|
138
|
-
* @ignore
|
|
137
|
+
/**
|
|
138
|
+
* @ignore
|
|
139
139
|
*/
|
|
140
140
|
baseClassName: PropTypes.string
|
|
141
141
|
};
|
|
@@ -6,10 +6,10 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
6
6
|
import FormField from '../FormField';
|
|
7
7
|
import Select from '../Select';
|
|
8
8
|
|
|
9
|
-
/**
|
|
10
|
-
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
11
|
-
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
12
|
-
* @since 1.12.3
|
|
9
|
+
/**
|
|
10
|
+
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
11
|
+
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
12
|
+
* @since 1.12.3
|
|
13
13
|
*/
|
|
14
14
|
const FormFieldSelect = ({
|
|
15
15
|
size,
|