@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
|
@@ -14,113 +14,113 @@ import { isLikeText } from '../Translate';
|
|
|
14
14
|
import ScrollableElementFormContext from '../Form/ScrollableElementFormContext';
|
|
15
15
|
import DrawerProgress from './DrawerProgress';
|
|
16
16
|
const propTypes = {
|
|
17
|
-
/**
|
|
18
|
-
* Toggles visibility.
|
|
19
|
-
* @since 0.0.65
|
|
17
|
+
/**
|
|
18
|
+
* Toggles visibility.
|
|
19
|
+
* @since 0.0.65
|
|
20
20
|
*/
|
|
21
21
|
isOpen: PropTypes.bool,
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* The title of the `Drawer`.
|
|
25
|
-
* @since 0.0.65
|
|
23
|
+
/**
|
|
24
|
+
* The title of the `Drawer`.
|
|
25
|
+
* @since 0.0.65
|
|
26
26
|
*/
|
|
27
27
|
title: PropTypes.node.isRequired,
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
* The subtitle of the `Drawer`.
|
|
31
|
-
* @since 0.0.65
|
|
29
|
+
/**
|
|
30
|
+
* The subtitle of the `Drawer`.
|
|
31
|
+
* @since 0.0.65
|
|
32
32
|
*/
|
|
33
33
|
subtitle: PropTypes.node,
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* Show the minimize button and the inactive close button.
|
|
37
|
-
* @since 1.4.1
|
|
35
|
+
/**
|
|
36
|
+
* Show the minimize button and the inactive close button.
|
|
37
|
+
* @since 1.4.1
|
|
38
38
|
*/
|
|
39
39
|
hideButton: PropTypes.bool,
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Show back button in the header. If true the close button is not show.
|
|
43
|
-
* @deprecated Not recommended to use. Use default close button instead.
|
|
44
|
-
* @since 0.0.65
|
|
41
|
+
/**
|
|
42
|
+
* Show back button in the header. If true the close button is not show.
|
|
43
|
+
* @deprecated Not recommended to use. Use default close button instead.
|
|
44
|
+
* @since 0.0.65
|
|
45
45
|
*/
|
|
46
46
|
backButton: PropTypes.bool,
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* A slot for `Tabs` component.
|
|
50
|
-
* @since 3.26.0
|
|
48
|
+
/**
|
|
49
|
+
* A slot for `Tabs` component.
|
|
50
|
+
* @since 3.26.0
|
|
51
51
|
*/
|
|
52
52
|
tabs: PropTypes.node,
|
|
53
53
|
|
|
54
|
-
/**
|
|
55
|
-
* Overlay placement.
|
|
56
|
-
* @since 0.0.65
|
|
54
|
+
/**
|
|
55
|
+
* Overlay placement.
|
|
56
|
+
* @since 0.0.65
|
|
57
57
|
*/
|
|
58
58
|
placement: PropTypes.oneOf(['left', 'right']),
|
|
59
59
|
|
|
60
|
-
/**
|
|
61
|
-
* Overlay size.
|
|
62
|
-
* @since 0.0.65
|
|
60
|
+
/**
|
|
61
|
+
* Overlay size.
|
|
62
|
+
* @since 0.0.65
|
|
63
63
|
*/
|
|
64
64
|
size: PropTypes.oneOf(['xs', 'sm', 'md', 'lg']),
|
|
65
65
|
|
|
66
|
-
/**
|
|
67
|
-
* onClose handler.
|
|
68
|
-
* @since 0.0.65
|
|
66
|
+
/**
|
|
67
|
+
* onClose handler.
|
|
68
|
+
* @since 0.0.65
|
|
69
69
|
*/
|
|
70
70
|
onClose: PropTypes.func,
|
|
71
71
|
|
|
72
|
-
/**
|
|
73
|
-
* Whether show or not a confirmation dialog on close.
|
|
74
|
-
* @since 3.21.0
|
|
72
|
+
/**
|
|
73
|
+
* Whether show or not a confirmation dialog on close.
|
|
74
|
+
* @since 3.21.0
|
|
75
75
|
*/
|
|
76
76
|
closingConfirmation: PropTypes.bool,
|
|
77
77
|
|
|
78
|
-
/**
|
|
79
|
-
* Wraps children into [Form](#!/Form) if not empty.
|
|
80
|
-
* @since 0.0.66
|
|
78
|
+
/**
|
|
79
|
+
* Wraps children into [Form](#!/Form) if not empty.
|
|
80
|
+
* @since 0.0.66
|
|
81
81
|
*/
|
|
82
82
|
form: PropTypes.oneOfType([PropTypes.object, PropTypes.element]),
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* Block with an image, placed at the side of the component
|
|
86
|
-
* @since 3.25.0
|
|
84
|
+
/**
|
|
85
|
+
* Block with an image, placed at the side of the component
|
|
86
|
+
* @since 3.25.0
|
|
87
87
|
*/
|
|
88
88
|
sideBanner: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.element]),
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* Additional properties for the sideBanner
|
|
92
|
-
* @since 3.25.0
|
|
90
|
+
/**
|
|
91
|
+
* Additional properties for the sideBanner
|
|
92
|
+
* @since 3.25.0
|
|
93
93
|
*/
|
|
94
94
|
sideBannerContainer: PropTypes.shape({
|
|
95
|
-
/**
|
|
96
|
-
* Values for css background property
|
|
95
|
+
/**
|
|
96
|
+
* Values for css background property
|
|
97
97
|
*/
|
|
98
98
|
background: PropTypes.string,
|
|
99
99
|
|
|
100
|
-
/**
|
|
101
|
-
* One of: center, flex-start, flex-end
|
|
100
|
+
/**
|
|
101
|
+
* One of: center, flex-start, flex-end
|
|
102
102
|
*/
|
|
103
103
|
align: PropTypes.oneOf(['center', 'flex-start', 'flex-end'])
|
|
104
104
|
}),
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
* Content of the `Drawer`.
|
|
108
|
-
* @since 0.0.65
|
|
106
|
+
/**
|
|
107
|
+
* Content of the `Drawer`.
|
|
108
|
+
* @since 0.0.65
|
|
109
109
|
*/
|
|
110
110
|
children: PropTypes.node,
|
|
111
111
|
|
|
112
|
-
/**
|
|
113
|
-
* Adds [Progress](#!/Progress) into footer.
|
|
114
|
-
* @since 1.11.0
|
|
112
|
+
/**
|
|
113
|
+
* Adds [Progress](#!/Progress) into footer.
|
|
114
|
+
* @since 1.11.0
|
|
115
115
|
*/
|
|
116
116
|
progress: PropTypes.shape({
|
|
117
|
-
/**
|
|
118
|
-
* A title for the progress.
|
|
117
|
+
/**
|
|
118
|
+
* A title for the progress.
|
|
119
119
|
*/
|
|
120
120
|
title: PropTypes.string,
|
|
121
121
|
|
|
122
|
-
/**
|
|
123
|
-
* An array of [ProgressStep](#!/ProgressStep) props.
|
|
122
|
+
/**
|
|
123
|
+
* An array of [ProgressStep](#!/ProgressStep) props.
|
|
124
124
|
*/
|
|
125
125
|
steps: PropTypes.arrayOf(PropTypes.shape({
|
|
126
126
|
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
@@ -129,35 +129,35 @@ const propTypes = {
|
|
|
129
129
|
icon: PropTypes.string
|
|
130
130
|
})).isRequired,
|
|
131
131
|
|
|
132
|
-
/**
|
|
133
|
-
* An option that controls drawer closing ability.
|
|
132
|
+
/**
|
|
133
|
+
* An option that controls drawer closing ability.
|
|
134
134
|
*/
|
|
135
135
|
cancelable: PropTypes.bool,
|
|
136
136
|
|
|
137
|
-
/**
|
|
138
|
-
* On overall status event handler.
|
|
139
|
-
* @since 3.8.0
|
|
137
|
+
/**
|
|
138
|
+
* On overall status event handler.
|
|
139
|
+
* @since 3.8.0
|
|
140
140
|
*/
|
|
141
141
|
onStatusChange: PropTypes.func,
|
|
142
142
|
|
|
143
|
-
/**
|
|
144
|
-
* @ignore
|
|
143
|
+
/**
|
|
144
|
+
* @ignore
|
|
145
145
|
*/
|
|
146
146
|
onClose: PropTypes.func,
|
|
147
147
|
|
|
148
|
-
/**
|
|
149
|
-
* @ignore
|
|
148
|
+
/**
|
|
149
|
+
* @ignore
|
|
150
150
|
*/
|
|
151
151
|
onClosableChange: PropTypes.func
|
|
152
152
|
}),
|
|
153
153
|
|
|
154
|
-
/**
|
|
155
|
-
* @ignore
|
|
154
|
+
/**
|
|
155
|
+
* @ignore
|
|
156
156
|
*/
|
|
157
157
|
className: PropTypes.string,
|
|
158
158
|
|
|
159
|
-
/**
|
|
160
|
-
* @ignore
|
|
159
|
+
/**
|
|
160
|
+
* @ignore
|
|
161
161
|
*/
|
|
162
162
|
baseClassName: PropTypes.string
|
|
163
163
|
};
|
|
@@ -179,10 +179,10 @@ const defaultProps = {
|
|
|
179
179
|
className: null,
|
|
180
180
|
baseClassName: `${CLS_PREFIX}drawer`
|
|
181
181
|
};
|
|
182
|
-
/**
|
|
183
|
-
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
184
|
-
* The component is similar to `Dialog` but it is intended to work with more complex forms or lists.
|
|
185
|
-
* @since 0.0.65
|
|
182
|
+
/**
|
|
183
|
+
* `Drawer` component is used for working with properties of an object (or system) without leaving the context of the object.
|
|
184
|
+
* The component is similar to `Dialog` but it is intended to work with more complex forms or lists.
|
|
185
|
+
* @since 0.0.65
|
|
186
186
|
*/
|
|
187
187
|
|
|
188
188
|
const Drawer = ({
|
|
@@ -214,9 +214,23 @@ const Drawer = ({
|
|
|
214
214
|
if (progress) {
|
|
215
215
|
progress.onClose = onCloseWithConfirmation;
|
|
216
216
|
progress.onClosableChange = setIsClosable;
|
|
217
|
-
}
|
|
218
217
|
|
|
219
|
-
|
|
218
|
+
const drawerProgressRender = ({
|
|
219
|
+
content,
|
|
220
|
+
footer
|
|
221
|
+
}) => {
|
|
222
|
+
return render({
|
|
223
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
224
|
+
className: `${baseClassName}__form`
|
|
225
|
+
}, content),
|
|
226
|
+
footer
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
return /*#__PURE__*/React.createElement(DrawerProgress, _extends({
|
|
231
|
+
render: drawerProgressRender
|
|
232
|
+
}, progress));
|
|
233
|
+
}
|
|
220
234
|
|
|
221
235
|
if (form) {
|
|
222
236
|
if ( /*#__PURE__*/isValidElement(form)) {
|
|
@@ -231,7 +245,7 @@ const Drawer = ({
|
|
|
231
245
|
renderActionButtons
|
|
232
246
|
}) => render({
|
|
233
247
|
content: renderForm(),
|
|
234
|
-
footer:
|
|
248
|
+
footer: renderActionButtons()
|
|
235
249
|
})
|
|
236
250
|
});
|
|
237
251
|
}
|
|
@@ -252,25 +266,16 @@ const Drawer = ({
|
|
|
252
266
|
renderActionButtons
|
|
253
267
|
}) => render({
|
|
254
268
|
content: renderForm(),
|
|
255
|
-
footer:
|
|
269
|
+
footer: renderActionButtons()
|
|
256
270
|
})
|
|
257
271
|
}), children);
|
|
258
272
|
}
|
|
259
273
|
}
|
|
260
274
|
|
|
261
|
-
children = /*#__PURE__*/React.createElement("div", {
|
|
262
|
-
className: `${baseClassName}__inner-body`
|
|
263
|
-
}, children);
|
|
264
|
-
|
|
265
|
-
if (progress) {
|
|
266
|
-
return render({
|
|
267
|
-
content: children,
|
|
268
|
-
footer: createProgress()
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
275
|
return render({
|
|
273
|
-
content:
|
|
276
|
+
content: /*#__PURE__*/React.createElement("div", {
|
|
277
|
+
className: `${baseClassName}__inner-body`
|
|
278
|
+
}, children)
|
|
274
279
|
});
|
|
275
280
|
};
|
|
276
281
|
|
|
@@ -85,7 +85,7 @@ class DrawerProgress extends Component {
|
|
|
85
85
|
if (prevState.status !== STATUS_DONE && status === STATUS_DONE) {
|
|
86
86
|
window.clearTimeout(this.closeTimeout);
|
|
87
87
|
|
|
88
|
-
if (autoCloseTimeout) {
|
|
88
|
+
if (autoCloseTimeout !== undefined) {
|
|
89
89
|
this.closeTimeout = window.setTimeout(this.handleClose, autoCloseTimeout);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -105,7 +105,8 @@ class DrawerProgress extends Component {
|
|
|
105
105
|
title,
|
|
106
106
|
steps,
|
|
107
107
|
buttons,
|
|
108
|
-
cancelable
|
|
108
|
+
cancelable,
|
|
109
|
+
render
|
|
109
110
|
} = this.props;
|
|
110
111
|
const {
|
|
111
112
|
status
|
|
@@ -113,35 +114,35 @@ class DrawerProgress extends Component {
|
|
|
113
114
|
const isFinished = status === STATUS_DONE;
|
|
114
115
|
const isFailed = status === STATUS_ERROR;
|
|
115
116
|
const canCancel = cancelable && !(isFinished || isFailed);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return /*#__PURE__*/React.createElement(Fragment, null, title && /*#__PURE__*/React.createElement("div", {
|
|
117
|
+
const hasFooter = !!(buttons || canCancel);
|
|
118
|
+
const content = /*#__PURE__*/React.createElement(Fragment, null, title && /*#__PURE__*/React.createElement("div", {
|
|
119
119
|
className: `${baseClassName}__title`
|
|
120
120
|
}, title), /*#__PURE__*/React.createElement(Progress, {
|
|
121
121
|
onStatusChange: this.handleStatusChange,
|
|
122
122
|
className: `${baseClassName}__progress`
|
|
123
123
|
}, steps.map((step, index) => /*#__PURE__*/React.createElement(ProgressStep, _extends({
|
|
124
124
|
key: index.toString()
|
|
125
|
-
}, step))))
|
|
125
|
+
}, step)))));
|
|
126
|
+
const footer = hasFooter ? /*#__PURE__*/React.createElement("div", {
|
|
126
127
|
className: `${baseClassName}__footer`
|
|
127
|
-
}, buttons,
|
|
128
|
-
onClick: this.
|
|
129
|
-
|
|
130
|
-
content: "DrawerProgress.closeButton",
|
|
131
|
-
fallback: "Close"
|
|
132
|
-
})), canCancel && /*#__PURE__*/React.createElement(Button, {
|
|
133
|
-
onClick: this.handleCancel
|
|
128
|
+
}, buttons, canCancel && /*#__PURE__*/React.createElement(Button, {
|
|
129
|
+
onClick: this.handleCancel,
|
|
130
|
+
size: "lg"
|
|
134
131
|
}, /*#__PURE__*/React.createElement(Translate, {
|
|
135
132
|
content: "DrawerProgress.cancelButton",
|
|
136
133
|
fallback: "Cancel"
|
|
137
|
-
})))
|
|
134
|
+
}))) : null;
|
|
135
|
+
return typeof render === 'function' ? render({
|
|
136
|
+
content,
|
|
137
|
+
footer
|
|
138
|
+
}) : /*#__PURE__*/React.createElement(Fragment, null, content, footer);
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
_defineProperty(DrawerProgress, "defaultProps", {
|
|
143
144
|
baseClassName: `${CLS_PREFIX}drawer-progress`,
|
|
144
|
-
autoCloseTimeout:
|
|
145
|
+
autoCloseTimeout: 0,
|
|
145
146
|
cancelable: false,
|
|
146
147
|
steps: []
|
|
147
148
|
});
|
|
@@ -129,11 +129,11 @@ const useEnhancedMenu = (menu, {
|
|
|
129
129
|
menuRef
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
/**
|
|
133
|
-
* `Dropdown` component is a [Button](#!/Button) that opens a drop-down (nested) [Menu](#!/Menu).
|
|
134
|
-
* Use dropdown for grouping actions that are not used often or are less important than others -- in other words,
|
|
135
|
-
* for stuff that you don't want to show users all the time, especially if you have limited screen space.
|
|
136
|
-
* @since 0.0.57
|
|
132
|
+
/**
|
|
133
|
+
* `Dropdown` component is a [Button](#!/Button) that opens a drop-down (nested) [Menu](#!/Menu).
|
|
134
|
+
* Use dropdown for grouping actions that are not used often or are less important than others -- in other words,
|
|
135
|
+
* for stuff that you don't want to show users all the time, especially if you have limited screen space.
|
|
136
|
+
* @since 0.0.57
|
|
137
137
|
*/
|
|
138
138
|
|
|
139
139
|
|
|
@@ -209,45 +209,45 @@ const Dropdown = ({
|
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
Dropdown.propTypes = {
|
|
212
|
-
/**
|
|
213
|
-
* Dropdown [menu](#!/Menu).
|
|
214
|
-
* @since 0.0.57
|
|
212
|
+
/**
|
|
213
|
+
* Dropdown [menu](#!/Menu).
|
|
214
|
+
* @since 0.0.57
|
|
215
215
|
*/
|
|
216
216
|
menu: PropTypes.element.isRequired,
|
|
217
217
|
|
|
218
|
-
/**
|
|
219
|
-
* Menu placement.
|
|
220
|
-
* @since 0.0.60
|
|
218
|
+
/**
|
|
219
|
+
* Menu placement.
|
|
220
|
+
* @since 0.0.60
|
|
221
221
|
*/
|
|
222
222
|
menuPlacement: PropTypes.string,
|
|
223
223
|
|
|
224
|
-
/**
|
|
225
|
-
* Content of the `Dropdown`.
|
|
226
|
-
* @since 0.0.57
|
|
224
|
+
/**
|
|
225
|
+
* Content of the `Dropdown`.
|
|
226
|
+
* @since 0.0.57
|
|
227
227
|
*/
|
|
228
228
|
children: PropTypes.node,
|
|
229
229
|
|
|
230
|
-
/**
|
|
231
|
-
* Custom localization messages.
|
|
232
|
-
* @since 3.6.0
|
|
230
|
+
/**
|
|
231
|
+
* Custom localization messages.
|
|
232
|
+
* @since 3.6.0
|
|
233
233
|
*/
|
|
234
234
|
locale: PropTypes.shape({
|
|
235
235
|
close: PropTypes.node
|
|
236
236
|
}),
|
|
237
237
|
|
|
238
|
-
/**
|
|
239
|
-
* Display menu as overlay.
|
|
240
|
-
* @ignore
|
|
238
|
+
/**
|
|
239
|
+
* Display menu as overlay.
|
|
240
|
+
* @ignore
|
|
241
241
|
*/
|
|
242
242
|
overlay: PropTypes.bool,
|
|
243
243
|
|
|
244
|
-
/**
|
|
245
|
-
* @ignore
|
|
244
|
+
/**
|
|
245
|
+
* @ignore
|
|
246
246
|
*/
|
|
247
247
|
className: PropTypes.string,
|
|
248
248
|
|
|
249
|
-
/**
|
|
250
|
-
* @ignore
|
|
249
|
+
/**
|
|
250
|
+
* @ignore
|
|
251
251
|
*/
|
|
252
252
|
baseClassName: PropTypes.string
|
|
253
253
|
};
|
|
@@ -5,10 +5,10 @@ import classNames from 'classnames';
|
|
|
5
5
|
import ContentLoader from '../ContentLoader';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
|
|
10
|
-
* but it is used when the message itself is the primary content on the page.
|
|
11
|
-
* @since 0.0.35
|
|
8
|
+
/**
|
|
9
|
+
* `ExtendedStatusMessage` component is similar to regular [StatusMessage](#!/StatusMessage)
|
|
10
|
+
* but it is used when the message itself is the primary content on the page.
|
|
11
|
+
* @since 0.0.35
|
|
12
12
|
*/
|
|
13
13
|
const ExtendedStatusMessage = ({
|
|
14
14
|
baseClassName = `${CLS_PREFIX}extended-status-message`,
|
|
@@ -4,9 +4,9 @@ import React from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* `ExtendedStatusMessageActions` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
9
|
-
* @since 0.0.35
|
|
7
|
+
/**
|
|
8
|
+
* `ExtendedStatusMessageActions` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
9
|
+
* @since 0.0.35
|
|
10
10
|
*/
|
|
11
11
|
const ExtendedStatusMessageActions = ({
|
|
12
12
|
baseClassName = `${CLS_PREFIX}extended-status-message`,
|
|
@@ -4,9 +4,9 @@ import React from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* `ExtendedStatusMessageDescription` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
9
|
-
* @since 0.0.35
|
|
7
|
+
/**
|
|
8
|
+
* `ExtendedStatusMessageDescription` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
9
|
+
* @since 0.0.35
|
|
10
10
|
*/
|
|
11
11
|
const ExtendedStatusMessageDescription = ({
|
|
12
12
|
baseClassName = `${CLS_PREFIX}extended-status-message`,
|
|
@@ -3,9 +3,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* `ExtendedStatusMessageSeparator` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
8
|
-
* @since 0.0.35
|
|
6
|
+
/**
|
|
7
|
+
* `ExtendedStatusMessageSeparator` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
8
|
+
* @since 0.0.35
|
|
9
9
|
*/
|
|
10
10
|
const ExtendedStatusMessageSeparator = ({
|
|
11
11
|
className,
|
|
@@ -5,9 +5,9 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { CLS_PREFIX } from '../../constants';
|
|
6
6
|
import Heading from '../Heading';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* `ExtendedStatusMessageTitle` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
10
|
-
* @since 0.0.35
|
|
8
|
+
/**
|
|
9
|
+
* `ExtendedStatusMessageTitle` is a part of [ExtendedStatusMessage](#!/ExtendedStatusMessage) component.
|
|
10
|
+
* @since 0.0.35
|
|
11
11
|
*/
|
|
12
12
|
const ExtendedStatusMessageTitle = ({
|
|
13
13
|
baseClassName = `${CLS_PREFIX}extended-status-message`,
|
|
@@ -5,9 +5,9 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CLS_PREFIX } from '../../constants';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Figure component.
|
|
10
|
-
* @since 0.0.42
|
|
8
|
+
/**
|
|
9
|
+
* Figure component.
|
|
10
|
+
* @since 0.0.42
|
|
11
11
|
*/
|
|
12
12
|
const Figure = ({
|
|
13
13
|
baseClassName,
|
|
@@ -26,29 +26,29 @@ const Figure = ({
|
|
|
26
26
|
}, caption));
|
|
27
27
|
|
|
28
28
|
Figure.propTypes = {
|
|
29
|
-
/**
|
|
30
|
-
* @since 0.0.47
|
|
29
|
+
/**
|
|
30
|
+
* @since 0.0.47
|
|
31
31
|
*/
|
|
32
32
|
href: PropTypes.string,
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* @since 0.0.47
|
|
34
|
+
/**
|
|
35
|
+
* @since 0.0.47
|
|
36
36
|
*/
|
|
37
37
|
caption: PropTypes.any,
|
|
38
38
|
|
|
39
|
-
/**
|
|
40
|
-
* Content of the figure
|
|
41
|
-
* @since 0.0.42
|
|
39
|
+
/**
|
|
40
|
+
* Content of the figure
|
|
41
|
+
* @since 0.0.42
|
|
42
42
|
*/
|
|
43
43
|
children: PropTypes.node,
|
|
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
|
};
|
|
@@ -377,10 +377,10 @@ class Form extends Component {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
}
|
|
380
|
-
/**
|
|
381
|
-
* `Form` component is used for entering and submitting of user data.
|
|
382
|
-
* [More details about designing of forms.](#!/Good%20Forms)
|
|
383
|
-
* @since 0.0.54
|
|
380
|
+
/**
|
|
381
|
+
* `Form` component is used for entering and submitting of user data.
|
|
382
|
+
* [More details about designing of forms.](#!/Good%20Forms)
|
|
383
|
+
* @since 0.0.54
|
|
384
384
|
*/
|
|
385
385
|
|
|
386
386
|
|
|
@@ -18,17 +18,17 @@ const fixObj = (obj, key) => {
|
|
|
18
18
|
|
|
19
19
|
return [...obj];
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Deeply get a value from an object via its path.
|
|
23
|
-
*
|
|
24
|
-
* @param {object} obj The object to query.
|
|
25
|
-
* @param {string} name The path of the property to get.
|
|
26
|
-
* @param {*} def The value returned for `undefined` resolved values.
|
|
27
|
-
* @returns {*} Returns the resolved value.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* const name = getIn(state, 'user[name]', 'Anonymous');
|
|
31
|
-
*
|
|
21
|
+
/**
|
|
22
|
+
* Deeply get a value from an object via its path.
|
|
23
|
+
*
|
|
24
|
+
* @param {object} obj The object to query.
|
|
25
|
+
* @param {string} name The path of the property to get.
|
|
26
|
+
* @param {*} def The value returned for `undefined` resolved values.
|
|
27
|
+
* @returns {*} Returns the resolved value.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const name = getIn(state, 'user[name]', 'Anonymous');
|
|
31
|
+
*
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
|
|
@@ -42,17 +42,17 @@ const getIn = (obj, name, def) => {
|
|
|
42
42
|
|
|
43
43
|
return val === undefined ? def : val;
|
|
44
44
|
};
|
|
45
|
-
/**
|
|
46
|
-
* Deeply set a value from in object via it's path.
|
|
47
|
-
* Does not mutate an original object.
|
|
48
|
-
*
|
|
49
|
-
* @param {object} obj The object to query.
|
|
50
|
-
* @param {string} name The path of the property to set.
|
|
51
|
-
* @param {*} val The value to set.
|
|
52
|
-
* @returns {object} Returns a new object.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* const nextState = setIn(state, 'user[name]', 'John');
|
|
45
|
+
/**
|
|
46
|
+
* Deeply set a value from in object via it's path.
|
|
47
|
+
* Does not mutate an original object.
|
|
48
|
+
*
|
|
49
|
+
* @param {object} obj The object to query.
|
|
50
|
+
* @param {string} name The path of the property to set.
|
|
51
|
+
* @param {*} val The value to set.
|
|
52
|
+
* @returns {object} Returns a new object.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* const nextState = setIn(state, 'user[name]', 'John');
|
|
56
56
|
*/
|
|
57
57
|
|
|
58
58
|
|