@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
|
@@ -137,10 +137,10 @@ const getHumanTotalRows = ({
|
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
/**
|
|
141
|
-
* `List` component is used for displaying a collection of tabular data.
|
|
142
|
-
* [More details about designing of lists.](#!/Sets%20of%20Objects)
|
|
143
|
-
* @since 0.0.42
|
|
140
|
+
/**
|
|
141
|
+
* `List` component is used for displaying a collection of tabular data.
|
|
142
|
+
* [More details about designing of lists.](#!/Sets%20of%20Objects)
|
|
143
|
+
* @since 0.0.42
|
|
144
144
|
*/
|
|
145
145
|
|
|
146
146
|
|
|
@@ -1335,214 +1335,214 @@ class List extends Component {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
1337
|
List.propTypes = {
|
|
1338
|
-
/**
|
|
1339
|
-
* Columns definition.
|
|
1340
|
-
*
|
|
1341
|
-
* In addition to the properties described below, you can use any native properties
|
|
1342
|
-
* supported by the `TH` element like `className`, `style`, etc.
|
|
1343
|
-
* @since 0.0.42
|
|
1338
|
+
/**
|
|
1339
|
+
* Columns definition.
|
|
1340
|
+
*
|
|
1341
|
+
* In addition to the properties described below, you can use any native properties
|
|
1342
|
+
* supported by the `TH` element like `className`, `style`, etc.
|
|
1343
|
+
* @since 0.0.42
|
|
1344
1344
|
*/
|
|
1345
1345
|
columns: PropTypes.arrayOf(PropTypes.shape({
|
|
1346
|
-
/**
|
|
1347
|
-
* Unique column key.
|
|
1346
|
+
/**
|
|
1347
|
+
* Unique column key.
|
|
1348
1348
|
*/
|
|
1349
1349
|
key: PropTypes.string.isRequired,
|
|
1350
1350
|
|
|
1351
|
-
/**
|
|
1352
|
-
* Column title.
|
|
1351
|
+
/**
|
|
1352
|
+
* Column title.
|
|
1353
1353
|
*/
|
|
1354
1354
|
title: PropTypes.node,
|
|
1355
1355
|
|
|
1356
|
-
/**
|
|
1357
|
-
* Optional cell renderer function: `row => Component`. By default render value of cell.
|
|
1358
|
-
* The renderer function can also returns a configuration object like: `{children: 'cell content', colSpan: 3}`
|
|
1356
|
+
/**
|
|
1357
|
+
* Optional cell renderer function: `row => Component`. By default render value of cell.
|
|
1358
|
+
* The renderer function can also returns a configuration object like: `{children: 'cell content', colSpan: 3}`
|
|
1359
1359
|
*/
|
|
1360
1360
|
render: PropTypes.func,
|
|
1361
1361
|
|
|
1362
|
-
/**
|
|
1363
|
-
* Is column sortable.
|
|
1364
|
-
* Default is `false`
|
|
1362
|
+
/**
|
|
1363
|
+
* Is column sortable.
|
|
1364
|
+
* Default is `false`
|
|
1365
1365
|
*/
|
|
1366
1366
|
sortable: PropTypes.bool,
|
|
1367
1367
|
|
|
1368
|
-
/**
|
|
1369
|
-
* Optional function for row comparison: `(row1, row2) => -1 | 0 | 1`
|
|
1368
|
+
/**
|
|
1369
|
+
* Optional function for row comparison: `(row1, row2) => -1 | 0 | 1`
|
|
1370
1370
|
*/
|
|
1371
1371
|
sort: PropTypes.func,
|
|
1372
1372
|
|
|
1373
|
-
/**
|
|
1374
|
-
* Column alignment.
|
|
1373
|
+
/**
|
|
1374
|
+
* Column alignment.
|
|
1375
1375
|
*/
|
|
1376
1376
|
align: PropTypes.oneOf(['left', 'center', 'right']),
|
|
1377
1377
|
|
|
1378
|
-
/**
|
|
1379
|
-
* Truncate the text in cell with an ellipsis.
|
|
1378
|
+
/**
|
|
1379
|
+
* Truncate the text in cell with an ellipsis.
|
|
1380
1380
|
*/
|
|
1381
1381
|
truncate: PropTypes.bool,
|
|
1382
1382
|
|
|
1383
|
-
/**
|
|
1384
|
-
* Determine type of column content.
|
|
1385
|
-
*
|
|
1386
|
-
* * title - There should a title of the row.
|
|
1387
|
-
* * controls - There should be some control: a button or a dropdown.
|
|
1388
|
-
* * actions - There should be the ListAction component.
|
|
1383
|
+
/**
|
|
1384
|
+
* Determine type of column content.
|
|
1385
|
+
*
|
|
1386
|
+
* * title - There should a title of the row.
|
|
1387
|
+
* * controls - There should be some control: a button or a dropdown.
|
|
1388
|
+
* * actions - There should be the ListAction component.
|
|
1389
1389
|
*/
|
|
1390
1390
|
type: PropTypes.oneOf(['title', 'controls', 'actions'])
|
|
1391
1391
|
})).isRequired,
|
|
1392
1392
|
|
|
1393
|
-
/**
|
|
1394
|
-
* Array of row objects.
|
|
1395
|
-
*
|
|
1396
|
-
* Each row must contains `key` property, all columns keys, and can contain `disabled` property.
|
|
1397
|
-
* @since 0.0.42
|
|
1393
|
+
/**
|
|
1394
|
+
* Array of row objects.
|
|
1395
|
+
*
|
|
1396
|
+
* Each row must contains `key` property, all columns keys, and can contain `disabled` property.
|
|
1397
|
+
* @since 0.0.42
|
|
1398
1398
|
*/
|
|
1399
1399
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
1400
|
-
/**
|
|
1401
|
-
* Unique column key. This property can by renamed using `rowKey` property of List.
|
|
1400
|
+
/**
|
|
1401
|
+
* Unique column key. This property can by renamed using `rowKey` property of List.
|
|
1402
1402
|
*/
|
|
1403
1403
|
key: PropTypes.string,
|
|
1404
1404
|
|
|
1405
|
-
/**
|
|
1406
|
-
* Optional property for disabling ability to select this row.
|
|
1405
|
+
/**
|
|
1406
|
+
* Optional property for disabling ability to select this row.
|
|
1407
1407
|
*/
|
|
1408
1408
|
disabled: PropTypes.bool,
|
|
1409
1409
|
|
|
1410
|
-
/**
|
|
1411
|
-
* Optional array of children rows.
|
|
1410
|
+
/**
|
|
1411
|
+
* Optional array of children rows.
|
|
1412
1412
|
*/
|
|
1413
1413
|
data: PropTypes.array
|
|
1414
1414
|
})),
|
|
1415
1415
|
|
|
1416
|
-
/**
|
|
1417
|
-
* Current sort column key
|
|
1418
|
-
* @since 0.0.42
|
|
1416
|
+
/**
|
|
1417
|
+
* Current sort column key
|
|
1418
|
+
* @since 0.0.42
|
|
1419
1419
|
*/
|
|
1420
1420
|
sortColumn: PropTypes.string,
|
|
1421
1421
|
|
|
1422
|
-
/**
|
|
1423
|
-
* Sort direction of the column being sorted.
|
|
1424
|
-
* @since 0.0.42
|
|
1422
|
+
/**
|
|
1423
|
+
* Sort direction of the column being sorted.
|
|
1424
|
+
* @since 0.0.42
|
|
1425
1425
|
*/
|
|
1426
1426
|
sortDirection: PropTypes.oneOf(['ASC', 'DESC']),
|
|
1427
1427
|
|
|
1428
|
-
/**
|
|
1429
|
-
* Sort change handler
|
|
1430
|
-
* @since 0.0.42
|
|
1428
|
+
/**
|
|
1429
|
+
* Sort change handler
|
|
1430
|
+
* @since 0.0.42
|
|
1431
1431
|
*/
|
|
1432
1432
|
onSortChange: PropTypes.func,
|
|
1433
1433
|
|
|
1434
|
-
/**
|
|
1435
|
-
* Array of keys of selected rows
|
|
1436
|
-
* @since 0.0.42
|
|
1434
|
+
/**
|
|
1435
|
+
* Array of keys of selected rows
|
|
1436
|
+
* @since 0.0.42
|
|
1437
1437
|
*/
|
|
1438
1438
|
selection: PropTypes.array,
|
|
1439
1439
|
|
|
1440
|
-
/**
|
|
1441
|
-
* Selection change handler for list. Checkboxes will only be rendered if this prop is defined.
|
|
1442
|
-
* @since 0.0.42
|
|
1440
|
+
/**
|
|
1441
|
+
* Selection change handler for list. Checkboxes will only be rendered if this prop is defined.
|
|
1442
|
+
* @since 0.0.42
|
|
1443
1443
|
*/
|
|
1444
1444
|
onSelectionChange: PropTypes.func,
|
|
1445
1445
|
|
|
1446
|
-
/**
|
|
1447
|
-
* Renderer for a selection checkbox. Allow to replace checkboxes in the List by a custom implementation.
|
|
1448
|
-
* @since 3.19.0
|
|
1446
|
+
/**
|
|
1447
|
+
* Renderer for a selection checkbox. Allow to replace checkboxes in the List by a custom implementation.
|
|
1448
|
+
* @since 3.19.0
|
|
1449
1449
|
*/
|
|
1450
1450
|
renderSelectionCheckbox: PropTypes.func,
|
|
1451
1451
|
|
|
1452
|
-
/**
|
|
1453
|
-
* Row's key getter. Could be a string or function like: `row => <unique_string>`
|
|
1454
|
-
* @since 0.0.45
|
|
1452
|
+
/**
|
|
1453
|
+
* Row's key getter. Could be a string or function like: `row => <unique_string>`
|
|
1454
|
+
* @since 0.0.45
|
|
1455
1455
|
*/
|
|
1456
1456
|
rowKey: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
1457
1457
|
|
|
1458
|
-
/**
|
|
1459
|
-
* Renderer for a row body. Should return ReactNode.
|
|
1460
|
-
* @since 1.12.0
|
|
1458
|
+
/**
|
|
1459
|
+
* Renderer for a row body. Should return ReactNode.
|
|
1460
|
+
* @since 1.12.0
|
|
1461
1461
|
*/
|
|
1462
1462
|
renderRowBody: PropTypes.func,
|
|
1463
1463
|
|
|
1464
|
-
/**
|
|
1465
|
-
* Array of keys of expanded rows
|
|
1466
|
-
* @since 1.12.0
|
|
1464
|
+
/**
|
|
1465
|
+
* Array of keys of expanded rows
|
|
1466
|
+
* @since 1.12.0
|
|
1467
1467
|
*/
|
|
1468
1468
|
expandedRows: PropTypes.array,
|
|
1469
1469
|
|
|
1470
|
-
/**
|
|
1471
|
-
* Array of keys of rows which not have expand indicator
|
|
1472
|
-
* @since 1.12.0
|
|
1470
|
+
/**
|
|
1471
|
+
* Array of keys of rows which not have expand indicator
|
|
1472
|
+
* @since 1.12.0
|
|
1473
1473
|
*/
|
|
1474
1474
|
notExpandableRows: PropTypes.array,
|
|
1475
1475
|
|
|
1476
|
-
/**
|
|
1477
|
-
* Rows expanding change handler.
|
|
1478
|
-
* @since 1.12.0
|
|
1476
|
+
/**
|
|
1477
|
+
* Rows expanding change handler.
|
|
1478
|
+
* @since 1.12.0
|
|
1479
1479
|
*/
|
|
1480
1480
|
onExpandedRowsChange: PropTypes.func,
|
|
1481
1481
|
|
|
1482
|
-
/**
|
|
1483
|
-
* Array of keys of loading rows. They are displayed instead of checkboxes.
|
|
1484
|
-
* @since 2.5.0
|
|
1482
|
+
/**
|
|
1483
|
+
* Array of keys of loading rows. They are displayed instead of checkboxes.
|
|
1484
|
+
* @since 2.5.0
|
|
1485
1485
|
*/
|
|
1486
1486
|
loadingRows: PropTypes.array,
|
|
1487
1487
|
|
|
1488
|
-
/**
|
|
1489
|
-
* A `Pagination` element. It displays at the top and the bottom of the list. When pagination is defined, the built-in sort is disabled.
|
|
1490
|
-
* @since 2.4.0
|
|
1488
|
+
/**
|
|
1489
|
+
* A `Pagination` element. It displays at the top and the bottom of the list. When pagination is defined, the built-in sort is disabled.
|
|
1490
|
+
* @since 2.4.0
|
|
1491
1491
|
*/
|
|
1492
1492
|
pagination: PropTypes.node,
|
|
1493
1493
|
|
|
1494
|
-
/**
|
|
1495
|
-
* Total rows count, including nested rows. Usually, it uses together with pagination.
|
|
1496
|
-
* @since 2.4.0
|
|
1494
|
+
/**
|
|
1495
|
+
* Total rows count, including nested rows. Usually, it uses together with pagination.
|
|
1496
|
+
* @since 2.4.0
|
|
1497
1497
|
*/
|
|
1498
1498
|
totalRows: PropTypes.number,
|
|
1499
1499
|
|
|
1500
|
-
/**
|
|
1501
|
-
* A `Toolbar` element.
|
|
1502
|
-
* @since 2.4.0
|
|
1500
|
+
/**
|
|
1501
|
+
* A `Toolbar` element.
|
|
1502
|
+
* @since 2.4.0
|
|
1503
1503
|
*/
|
|
1504
1504
|
toolbar: PropTypes.node,
|
|
1505
1505
|
|
|
1506
|
-
/**
|
|
1507
|
-
* A flag that all rows are selected.
|
|
1508
|
-
* @since 2.4.0
|
|
1506
|
+
/**
|
|
1507
|
+
* A flag that all rows are selected.
|
|
1508
|
+
* @since 2.4.0
|
|
1509
1509
|
*/
|
|
1510
1510
|
allRowsSelected: PropTypes.bool,
|
|
1511
1511
|
|
|
1512
|
-
/**
|
|
1513
|
-
* A callback executed when the allRowsSelected prop is changed.
|
|
1514
|
-
* @since 2.4.0
|
|
1512
|
+
/**
|
|
1513
|
+
* A callback executed when the allRowsSelected prop is changed.
|
|
1514
|
+
* @since 2.4.0
|
|
1515
1515
|
*/
|
|
1516
1516
|
onAllRowsSelectedChange: PropTypes.func,
|
|
1517
1517
|
|
|
1518
|
-
/**
|
|
1519
|
-
* Filtered list. Manages toolbar visibility when data is absent and defines the defaults for empty view.
|
|
1520
|
-
* @since 3.0.1
|
|
1518
|
+
/**
|
|
1519
|
+
* Filtered list. Manages toolbar visibility when data is absent and defines the defaults for empty view.
|
|
1520
|
+
* @since 3.0.1
|
|
1521
1521
|
*/
|
|
1522
1522
|
filtered: PropTypes.bool,
|
|
1523
1523
|
|
|
1524
|
-
/**
|
|
1525
|
-
* A custom view for the case when data is absent.
|
|
1526
|
-
* @since 2.5.0
|
|
1524
|
+
/**
|
|
1525
|
+
* A custom view for the case when data is absent.
|
|
1526
|
+
* @since 2.5.0
|
|
1527
1527
|
*/
|
|
1528
1528
|
emptyView: PropTypes.node,
|
|
1529
1529
|
|
|
1530
|
-
/**
|
|
1531
|
-
* Which part of the List component should be replaced by the empty view.
|
|
1532
|
-
* @since 2.6.0
|
|
1533
|
-
* @deprecated Use `filtered` instead.
|
|
1530
|
+
/**
|
|
1531
|
+
* Which part of the List component should be replaced by the empty view.
|
|
1532
|
+
* @since 2.6.0
|
|
1533
|
+
* @deprecated Use `filtered` instead.
|
|
1534
1534
|
*/
|
|
1535
1535
|
emptyViewMode: PropTypes.oneOf(['all', 'items']),
|
|
1536
1536
|
|
|
1537
|
-
/**
|
|
1538
|
-
* A slot on the right of the items.
|
|
1539
|
-
* @since 2.6.0
|
|
1537
|
+
/**
|
|
1538
|
+
* A slot on the right of the items.
|
|
1539
|
+
* @since 2.6.0
|
|
1540
1540
|
*/
|
|
1541
1541
|
sidebar: PropTypes.node,
|
|
1542
1542
|
|
|
1543
|
-
/**
|
|
1544
|
-
* Custom localization messages.
|
|
1545
|
-
* @since 2.6.0
|
|
1543
|
+
/**
|
|
1544
|
+
* Custom localization messages.
|
|
1545
|
+
* @since 2.6.0
|
|
1546
1546
|
*/
|
|
1547
1547
|
locale: PropTypes.shape({
|
|
1548
1548
|
selectAll: PropTypes.node,
|
|
@@ -1552,49 +1552,49 @@ List.propTypes = {
|
|
|
1552
1552
|
selectedRows: PropTypes.oneOfType([PropTypes.func, PropTypes.node])
|
|
1553
1553
|
}),
|
|
1554
1554
|
|
|
1555
|
-
/**
|
|
1556
|
-
* Render List row's content vertically.
|
|
1557
|
-
* When some number is specified, it turns into vertical mode automatically if the List's width is less than the provided number.
|
|
1558
|
-
* @since 3.3.0
|
|
1555
|
+
/**
|
|
1556
|
+
* Render List row's content vertically.
|
|
1557
|
+
* When some number is specified, it turns into vertical mode automatically if the List's width is less than the provided number.
|
|
1558
|
+
* @since 3.3.0
|
|
1559
1559
|
*/
|
|
1560
1560
|
vertical: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
|
|
1561
1561
|
|
|
1562
|
-
/**
|
|
1563
|
-
* Indicate the loading state of the list.
|
|
1564
|
-
* @since 3.3.1
|
|
1562
|
+
/**
|
|
1563
|
+
* Indicate the loading state of the list.
|
|
1564
|
+
* @since 3.3.1
|
|
1565
1565
|
*/
|
|
1566
1566
|
loading: PropTypes.bool,
|
|
1567
1567
|
|
|
1568
|
-
/**
|
|
1569
|
-
* Apply some props to each row.
|
|
1570
|
-
*
|
|
1571
|
-
* `virtual` - Virtual row does not have any controls.
|
|
1572
|
-
*
|
|
1573
|
-
* @since 3.11.0
|
|
1568
|
+
/**
|
|
1569
|
+
* Apply some props to each row.
|
|
1570
|
+
*
|
|
1571
|
+
* `virtual` - Virtual row does not have any controls.
|
|
1572
|
+
*
|
|
1573
|
+
* @since 3.11.0
|
|
1574
1574
|
*/
|
|
1575
1575
|
rowProps: PropTypes.oneOfType([PropTypes.shape({
|
|
1576
1576
|
virtual: PropTypes.bool
|
|
1577
1577
|
}), PropTypes.func]),
|
|
1578
1578
|
|
|
1579
|
-
/**
|
|
1580
|
-
* Enable reorderable view.
|
|
1581
|
-
* @since 3.18.0
|
|
1579
|
+
/**
|
|
1580
|
+
* Enable reorderable view.
|
|
1581
|
+
* @since 3.18.0
|
|
1582
1582
|
*/
|
|
1583
1583
|
reorderable: PropTypes.bool,
|
|
1584
1584
|
|
|
1585
|
-
/**
|
|
1586
|
-
* Reorder end handler.
|
|
1587
|
-
* @since 3.18.0
|
|
1585
|
+
/**
|
|
1586
|
+
* Reorder end handler.
|
|
1587
|
+
* @since 3.18.0
|
|
1588
1588
|
*/
|
|
1589
1589
|
onReorderEnd: PropTypes.func,
|
|
1590
1590
|
|
|
1591
|
-
/**
|
|
1592
|
-
* @ignore
|
|
1591
|
+
/**
|
|
1592
|
+
* @ignore
|
|
1593
1593
|
*/
|
|
1594
1594
|
className: PropTypes.string,
|
|
1595
1595
|
|
|
1596
|
-
/**
|
|
1597
|
-
* @ignore
|
|
1596
|
+
/**
|
|
1597
|
+
* @ignore
|
|
1598
1598
|
*/
|
|
1599
1599
|
baseClassName: PropTypes.string
|
|
1600
1600
|
};
|
|
@@ -4,10 +4,10 @@ import React from 'react';
|
|
|
4
4
|
import Button from '../Button';
|
|
5
5
|
import { MenuItem } from '../Menu';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* `ListAction` component is a part of [ListActions](#!/ListActions) component.
|
|
9
|
-
* It accepts the props of [Button](#!/Button) and [MenuItem](#!/MenuItem) components.
|
|
10
|
-
* @since 3.3.0
|
|
7
|
+
/**
|
|
8
|
+
* `ListAction` component is a part of [ListActions](#!/ListActions) component.
|
|
9
|
+
* It accepts the props of [Button](#!/Button) and [MenuItem](#!/MenuItem) components.
|
|
10
|
+
* @since 3.3.0
|
|
11
11
|
*/
|
|
12
12
|
const ListAction = ({
|
|
13
13
|
primary,
|
|
@@ -9,9 +9,9 @@ import Menu from '../Menu';
|
|
|
9
9
|
import ListAction from './ListAction';
|
|
10
10
|
import VerticalContext from '../VerticalContext';
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
14
|
-
* @since 3.3.0
|
|
12
|
+
/**
|
|
13
|
+
* `ListActions` component is used for performing operations on individual objects in [List](#!/List).
|
|
14
|
+
* @since 3.3.0
|
|
15
15
|
*/
|
|
16
16
|
const ListActions = ({
|
|
17
17
|
baseClassName = `${CLS_PREFIX}list-actions`,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { MenuDivider } from '../Menu';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* `ListActionsDivider` component is a part of [ListActions](#!/ListActions) component.
|
|
7
|
-
* It accepts the props of [MenuDivider](#!/MenuDivider) component.
|
|
8
|
-
* @since 3.10.0
|
|
5
|
+
/**
|
|
6
|
+
* `ListActionsDivider` component is a part of [ListActions](#!/ListActions) component.
|
|
7
|
+
* It accepts the props of [MenuDivider](#!/MenuDivider) component.
|
|
8
|
+
* @since 3.10.0
|
|
9
9
|
*/
|
|
10
10
|
const ListActionsDivider = props => /*#__PURE__*/React.createElement(MenuDivider, props);
|
|
11
11
|
|
|
@@ -61,10 +61,10 @@ const createDescription = (baseClassName, description, reason) => {
|
|
|
61
61
|
className: `${baseClassName}__description`
|
|
62
62
|
}, description);
|
|
63
63
|
};
|
|
64
|
-
/**
|
|
65
|
-
* `ListEmptyView` component is used for displaying "empty" state of [List](#!/List)
|
|
66
|
-
* when there are no any objects are added to the list.
|
|
67
|
-
* @since 2.5.0
|
|
64
|
+
/**
|
|
65
|
+
* `ListEmptyView` component is used for displaying "empty" state of [List](#!/List)
|
|
66
|
+
* when there are no any objects are added to the list.
|
|
67
|
+
* @since 2.5.0
|
|
68
68
|
*/
|
|
69
69
|
|
|
70
70
|
|
|
@@ -32,10 +32,10 @@ const getDefaultText = key => {
|
|
|
32
32
|
fallback: fallback
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
/**
|
|
36
|
-
* `ListOperation` component is used in [Toolbar](#!/Toolbar) for performing
|
|
37
|
-
* operations on multiple objects in [List](#!/List).
|
|
38
|
-
* @since 2.4.0
|
|
35
|
+
/**
|
|
36
|
+
* `ListOperation` component is used in [Toolbar](#!/Toolbar) for performing
|
|
37
|
+
* operations on multiple objects in [List](#!/List).
|
|
38
|
+
* @since 2.4.0
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
|
|
@@ -83,9 +83,9 @@ export const useTranslate = namespace => {
|
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
/**
|
|
87
|
-
* LocaleProvider provides a uniform localization support for built-in text of components.
|
|
88
|
-
* @since 0.0.42
|
|
86
|
+
/**
|
|
87
|
+
* LocaleProvider provides a uniform localization support for built-in text of components.
|
|
88
|
+
* @since 0.0.42
|
|
89
89
|
*/
|
|
90
90
|
class LocaleProvider extends PureComponent {
|
|
91
91
|
getChildContext() {
|
|
@@ -8,9 +8,9 @@ import classNames from 'classnames';
|
|
|
8
8
|
import marked from 'marked';
|
|
9
9
|
import { CLS_PREFIX } from '../../constants';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* `Markdown` component is used for creating content with rich text formatting.
|
|
13
|
-
* @since 0.0.42
|
|
11
|
+
/**
|
|
12
|
+
* `Markdown` component is used for creating content with rich text formatting.
|
|
13
|
+
* @since 0.0.42
|
|
14
14
|
*/
|
|
15
15
|
const Markdown = ({
|
|
16
16
|
baseClassName,
|
|
@@ -30,25 +30,25 @@ const Markdown = ({
|
|
|
30
30
|
}, props));
|
|
31
31
|
|
|
32
32
|
Markdown.propTypes = {
|
|
33
|
-
/**
|
|
34
|
-
* Content of the Markdown
|
|
35
|
-
* @since 0.0.42
|
|
33
|
+
/**
|
|
34
|
+
* Content of the Markdown
|
|
35
|
+
* @since 0.0.42
|
|
36
36
|
*/
|
|
37
37
|
children: PropTypes.string.isRequired,
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* Compact mode
|
|
41
|
-
* @since 0.0.42
|
|
39
|
+
/**
|
|
40
|
+
* Compact mode
|
|
41
|
+
* @since 0.0.42
|
|
42
42
|
*/
|
|
43
43
|
compact: PropTypes.bool,
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* @ignore
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
47
|
*/
|
|
48
48
|
className: PropTypes.string,
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* @ignore
|
|
50
|
+
/**
|
|
51
|
+
* @ignore
|
|
52
52
|
*/
|
|
53
53
|
baseClassName: PropTypes.string
|
|
54
54
|
};
|
|
@@ -7,11 +7,11 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
7
7
|
import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32, ICON_SIZE_48, ICON_SIZE_64, ICON_SIZE_96, ICON_SIZE_128, ICON_SIZE_192 } from '../Icon';
|
|
8
8
|
import Heading from '../Heading';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* `Media` component is a combination of icon, text title and content.
|
|
12
|
-
* This layout was so widely spread in our products so we have decided to create a special component for it.
|
|
13
|
-
* Probably we should have named the component differently (not Media), but we didn't have better idea then ;)
|
|
14
|
-
* @since 0.0.45
|
|
10
|
+
/**
|
|
11
|
+
* `Media` component is a combination of icon, text title and content.
|
|
12
|
+
* This layout was so widely spread in our products so we have decided to create a special component for it.
|
|
13
|
+
* Probably we should have named the component differently (not Media), but we didn't have better idea then ;)
|
|
14
|
+
* @since 0.0.45
|
|
15
15
|
*/
|
|
16
16
|
const Media = ({
|
|
17
17
|
baseClassName,
|
|
@@ -87,68 +87,68 @@ const Media = ({
|
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
Media.propTypes = {
|
|
90
|
-
/**
|
|
91
|
-
* Title
|
|
92
|
-
* @since 0.0.45
|
|
90
|
+
/**
|
|
91
|
+
* Title
|
|
92
|
+
* @since 0.0.45
|
|
93
93
|
*/
|
|
94
94
|
title: PropTypes.node,
|
|
95
95
|
|
|
96
|
-
/**
|
|
97
|
-
* Title addon
|
|
98
|
-
* @since 0.0.68
|
|
96
|
+
/**
|
|
97
|
+
* Title addon
|
|
98
|
+
* @since 0.0.68
|
|
99
99
|
*/
|
|
100
100
|
titleAddon: PropTypes.node,
|
|
101
101
|
|
|
102
|
-
/**
|
|
103
|
-
* Title size
|
|
104
|
-
* @deprecated Pass a component as a title prop
|
|
105
|
-
* @since 0.0.68
|
|
102
|
+
/**
|
|
103
|
+
* Title size
|
|
104
|
+
* @deprecated Pass a component as a title prop
|
|
105
|
+
* @since 0.0.68
|
|
106
106
|
*/
|
|
107
107
|
titleSize: PropTypes.oneOf(['md', 'lg', 'xl']),
|
|
108
108
|
|
|
109
|
-
/**
|
|
110
|
-
* Image
|
|
111
|
-
* @since 0.0.45
|
|
109
|
+
/**
|
|
110
|
+
* Image
|
|
111
|
+
* @since 0.0.45
|
|
112
112
|
*/
|
|
113
113
|
image: PropTypes.any,
|
|
114
114
|
|
|
115
|
-
/**
|
|
116
|
-
* Spacings between image and content
|
|
117
|
-
* @since 0.3.0
|
|
115
|
+
/**
|
|
116
|
+
* Spacings between image and content
|
|
117
|
+
* @since 0.3.0
|
|
118
118
|
*/
|
|
119
119
|
imageSpacing: PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),
|
|
120
120
|
|
|
121
|
-
/**
|
|
122
|
-
* Media object and content alignment
|
|
123
|
-
* @since 3.19.0
|
|
121
|
+
/**
|
|
122
|
+
* Media object and content alignment
|
|
123
|
+
* @since 3.19.0
|
|
124
124
|
*/
|
|
125
125
|
align: PropTypes.oneOf(['start', 'center', 'end']),
|
|
126
126
|
|
|
127
|
-
/**
|
|
128
|
-
* Media object (image) alignment
|
|
129
|
-
* @since 3.19.0
|
|
127
|
+
/**
|
|
128
|
+
* Media object (image) alignment
|
|
129
|
+
* @since 3.19.0
|
|
130
130
|
*/
|
|
131
131
|
imageAlign: PropTypes.oneOf(['start', 'center', 'end']),
|
|
132
132
|
|
|
133
|
-
/**
|
|
134
|
-
* Media vertical direction
|
|
135
|
-
* @since 3.19.0
|
|
133
|
+
/**
|
|
134
|
+
* Media vertical direction
|
|
135
|
+
* @since 3.19.0
|
|
136
136
|
*/
|
|
137
137
|
vertical: PropTypes.bool,
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* Content of the `Media`.
|
|
141
|
-
* @since 0.0.45
|
|
139
|
+
/**
|
|
140
|
+
* Content of the `Media`.
|
|
141
|
+
* @since 0.0.45
|
|
142
142
|
*/
|
|
143
143
|
children: PropTypes.node,
|
|
144
144
|
|
|
145
|
-
/**
|
|
146
|
-
* @ignore
|
|
145
|
+
/**
|
|
146
|
+
* @ignore
|
|
147
147
|
*/
|
|
148
148
|
className: PropTypes.string,
|
|
149
149
|
|
|
150
|
-
/**
|
|
151
|
-
* @ignore
|
|
150
|
+
/**
|
|
151
|
+
* @ignore
|
|
152
152
|
*/
|
|
153
153
|
baseClassName: PropTypes.string
|
|
154
154
|
};
|