@plesk/ui-library 3.27.1 → 3.27.4
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 -252
- 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/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +1661 -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 +134 -134
- 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 +1661 -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 +6277 -6300
- 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 -245
- 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/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +1661 -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 +134 -134
- 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 -146
- package/scripts/postinstall.js +9 -9
- package/styleguide/browserconfig.xml +9 -9
- package/styleguide/build/bundle.5df0ee96.js +2 -0
- package/styleguide/build/{bundle.aabb094f.js.LICENSE.txt → bundle.5df0ee96.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 +1661 -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 -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 -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.aabb094f.js +0 -2
package/README.md
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# UI Library
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
yarn add @plesk/ui-library
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
Here is an example of how to use the UI Library with `create-react-app`.
|
|
12
|
-
|
|
13
|
-
```shell
|
|
14
|
-
yarn create react-app example
|
|
15
|
-
cd example
|
|
16
|
-
yarn add @plesk/ui-library
|
|
17
|
-
yarn start
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Replace the contents of the `src/App.js` file with the following code:
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
import { Layout, Button } from '@plesk/ui-library';
|
|
24
|
-
import '@plesk/ui-library/dist/plesk-ui-library.css';
|
|
25
|
-
|
|
26
|
-
function App() {
|
|
27
|
-
return (
|
|
28
|
-
<Layout>
|
|
29
|
-
<Button>{'Hello World!'}</Button>
|
|
30
|
-
</Layout>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export default App;
|
|
35
|
-
```
|
|
1
|
+
# UI Library
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
yarn add @plesk/ui-library
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Here is an example of how to use the UI Library with `create-react-app`.
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
yarn create react-app example
|
|
15
|
+
cd example
|
|
16
|
+
yarn add @plesk/ui-library
|
|
17
|
+
yarn start
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Replace the contents of the `src/App.js` file with the following code:
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { Layout, Button } from '@plesk/ui-library';
|
|
24
|
+
import '@plesk/ui-library/dist/plesk-ui-library.css';
|
|
25
|
+
|
|
26
|
+
function App() {
|
|
27
|
+
return (
|
|
28
|
+
<Layout>
|
|
29
|
+
<Button>{'Hello World!'}</Button>
|
|
30
|
+
</Layout>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default App;
|
|
35
|
+
```
|
|
@@ -27,9 +27,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
27
27
|
|
|
28
28
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* `Action` component is used mostly for navigation, to go between pages, and not for immediate action or submitting data.
|
|
32
|
-
* @since 0.0.68
|
|
30
|
+
/**
|
|
31
|
+
* `Action` component is used mostly for navigation, to go between pages, and not for immediate action or submitting data.
|
|
32
|
+
* @since 0.0.68
|
|
33
33
|
*/
|
|
34
34
|
const Action = ({
|
|
35
35
|
baseClassName = `${_constants.CLS_PREFIX}action`,
|
|
@@ -17,11 +17,11 @@ var _constants = require("../../constants");
|
|
|
17
17
|
|
|
18
18
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* `Alert` component is used for highlighting important content.
|
|
22
|
-
* For showing messages about state of the system it is recommended to use [StatusMessage](#!/StatusMessage)
|
|
23
|
-
* or [ExtendedStatusMessage](#!/ExtendedStatusMessage).
|
|
24
|
-
* @since 0.0.35
|
|
20
|
+
/**
|
|
21
|
+
* `Alert` component is used for highlighting important content.
|
|
22
|
+
* For showing messages about state of the system it is recommended to use [StatusMessage](#!/StatusMessage)
|
|
23
|
+
* or [ExtendedStatusMessage](#!/ExtendedStatusMessage).
|
|
24
|
+
* @since 0.0.35
|
|
25
25
|
*/
|
|
26
26
|
const Alert = ({
|
|
27
27
|
baseClassName = `${_constants.CLS_PREFIX}alert`,
|
|
@@ -20,9 +20,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
20
20
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
21
21
|
const AutoClosableContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* This is helper component for handling outside clicks.
|
|
25
|
-
* @since 0.0.42
|
|
23
|
+
/**
|
|
24
|
+
* This is helper component for handling outside clicks.
|
|
25
|
+
* @since 0.0.42
|
|
26
26
|
*/
|
|
27
27
|
class AutoClosable extends _react.Component {
|
|
28
28
|
constructor(...args) {
|
|
@@ -21,9 +21,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
21
21
|
|
|
22
22
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* Auxiliary Actions component is used for executing additional (not primary) actions.
|
|
26
|
-
* @since 0.4.1
|
|
24
|
+
/**
|
|
25
|
+
* Auxiliary Actions component is used for executing additional (not primary) actions.
|
|
26
|
+
* @since 0.4.1
|
|
27
27
|
*/
|
|
28
28
|
const AuxiliaryActions = ({
|
|
29
29
|
baseClassName = `${_constants.CLS_PREFIX}auxiliary-actions`,
|
|
@@ -25,9 +25,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
25
25
|
|
|
26
26
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
* `Badge` component is used for showing small numerical value or status attached to an interface element.
|
|
30
|
-
* @since 0.0.58
|
|
28
|
+
/**
|
|
29
|
+
* `Badge` component is used for showing small numerical value or status attached to an interface element.
|
|
30
|
+
* @since 0.0.58
|
|
31
31
|
*/
|
|
32
32
|
const Badge = ({
|
|
33
33
|
baseClassName = `${_constants.CLS_PREFIX}badge`,
|
|
@@ -25,10 +25,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
25
25
|
|
|
26
26
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
* `Breadcrumbs` component indicates a position of current page in general hierarchy of all pages,
|
|
30
|
-
* and it is used for navigation up to the main page of the product.
|
|
31
|
-
* @since 2.3.0
|
|
28
|
+
/**
|
|
29
|
+
* `Breadcrumbs` component indicates a position of current page in general hierarchy of all pages,
|
|
30
|
+
* and it is used for navigation up to the main page of the product.
|
|
31
|
+
* @since 2.3.0
|
|
32
32
|
*/
|
|
33
33
|
const Breadcrumbs = ({
|
|
34
34
|
baseClassName = `${_constants.CLS_PREFIX}breadcrumbs`,
|
|
@@ -88,10 +88,10 @@ const renderCaret = ({
|
|
|
88
88
|
|
|
89
89
|
return caretElement;
|
|
90
90
|
};
|
|
91
|
-
/**
|
|
92
|
-
* `Button` component is used for executing actions, changing the application state, opening forms or dialog windows, and submitting data.
|
|
93
|
-
* As a rule, you should not use buttons for navigation between individual pages (use `Link` instead).
|
|
94
|
-
* @since 0.0.37
|
|
91
|
+
/**
|
|
92
|
+
* `Button` component is used for executing actions, changing the application state, opening forms or dialog windows, and submitting data.
|
|
93
|
+
* As a rule, you should not use buttons for navigation between individual pages (use `Link` instead).
|
|
94
|
+
* @since 0.0.37
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
97
|
|
|
@@ -211,97 +211,97 @@ const Button = ({
|
|
|
211
211
|
};
|
|
212
212
|
|
|
213
213
|
Button.propTypes = {
|
|
214
|
-
/**
|
|
215
|
-
* Button size.
|
|
216
|
-
* @since 2.5.0
|
|
214
|
+
/**
|
|
215
|
+
* Button size.
|
|
216
|
+
* @since 2.5.0
|
|
217
217
|
*/
|
|
218
218
|
size: _propTypes.default.oneOf(['md', 'lg']),
|
|
219
219
|
|
|
220
|
-
/**
|
|
221
|
-
* Visual intent color to apply to component.
|
|
222
|
-
* @since 0.0.42
|
|
220
|
+
/**
|
|
221
|
+
* Visual intent color to apply to component.
|
|
222
|
+
* @since 0.0.42
|
|
223
223
|
*/
|
|
224
224
|
intent: _propTypes.default.oneOf(['primary', 'secondary', 'success', 'warning', 'danger', 'info']),
|
|
225
225
|
|
|
226
|
-
/**
|
|
227
|
-
* Display button with transparent background.
|
|
228
|
-
* @since 2.1.0
|
|
226
|
+
/**
|
|
227
|
+
* Display button with transparent background.
|
|
228
|
+
* @since 2.1.0
|
|
229
229
|
*/
|
|
230
230
|
ghost: _propTypes.default.bool,
|
|
231
231
|
|
|
232
|
-
/**
|
|
233
|
-
* Arrow button.
|
|
234
|
-
* @since 2.6.0
|
|
232
|
+
/**
|
|
233
|
+
* Arrow button.
|
|
234
|
+
* @since 2.6.0
|
|
235
235
|
*/
|
|
236
236
|
arrow: _propTypes.default.oneOf(['forward', 'backward']),
|
|
237
237
|
|
|
238
|
-
/**
|
|
239
|
-
* Selected state of toggle button. Used in controlled component mode.
|
|
240
|
-
* @since 0.0.68
|
|
238
|
+
/**
|
|
239
|
+
* Selected state of toggle button. Used in controlled component mode.
|
|
240
|
+
* @since 0.0.68
|
|
241
241
|
*/
|
|
242
242
|
selected: _propTypes.default.bool,
|
|
243
243
|
|
|
244
|
-
/**
|
|
245
|
-
* Toggle button callback. Used in uncontrolled component mode.
|
|
246
|
-
* @since 0.0.68
|
|
244
|
+
/**
|
|
245
|
+
* Toggle button callback. Used in uncontrolled component mode.
|
|
246
|
+
* @since 0.0.68
|
|
247
247
|
*/
|
|
248
248
|
onToggle: _propTypes.default.func,
|
|
249
249
|
|
|
250
|
-
/**
|
|
251
|
-
* State of the button
|
|
252
|
-
* @since 0.0.42
|
|
250
|
+
/**
|
|
251
|
+
* State of the button
|
|
252
|
+
* @since 0.0.42
|
|
253
253
|
*/
|
|
254
254
|
state: _propTypes.default.oneOf(['active', 'loading', 'hovered', 'focused']),
|
|
255
255
|
|
|
256
|
-
/**
|
|
257
|
-
* Is button disabled?
|
|
258
|
-
* @since 0.0.42
|
|
256
|
+
/**
|
|
257
|
+
* Is button disabled?
|
|
258
|
+
* @since 0.0.42
|
|
259
259
|
*/
|
|
260
260
|
disabled: _propTypes.default.bool,
|
|
261
261
|
|
|
262
|
-
/**
|
|
263
|
-
* Tooltip for component
|
|
264
|
-
* @since 0.0.42
|
|
262
|
+
/**
|
|
263
|
+
* Tooltip for component
|
|
264
|
+
* @since 0.0.42
|
|
265
265
|
*/
|
|
266
266
|
tooltip: _propTypes.default.node,
|
|
267
267
|
|
|
268
|
-
/**
|
|
269
|
-
* Name of icon or [Icon](#!/Icon) component
|
|
270
|
-
* @since 0.0.42
|
|
268
|
+
/**
|
|
269
|
+
* Name of icon or [Icon](#!/Icon) component
|
|
270
|
+
* @since 0.0.42
|
|
271
271
|
*/
|
|
272
272
|
icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
273
273
|
|
|
274
|
-
/**
|
|
275
|
-
* Show caret
|
|
276
|
-
* @since 0.0.42
|
|
274
|
+
/**
|
|
275
|
+
* Show caret
|
|
276
|
+
* @since 0.0.42
|
|
277
277
|
*/
|
|
278
278
|
caret: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.element]),
|
|
279
279
|
|
|
280
|
-
/**
|
|
281
|
-
* Dynamically expand the button to fill out the whole available width of its parent container.
|
|
282
|
-
* @since 1.8.0
|
|
280
|
+
/**
|
|
281
|
+
* Dynamically expand the button to fill out the whole available width of its parent container.
|
|
282
|
+
* @since 1.8.0
|
|
283
283
|
*/
|
|
284
284
|
fill: _propTypes.default.bool,
|
|
285
285
|
|
|
286
|
-
/**
|
|
287
|
-
* Content of the button
|
|
288
|
-
* @since 0.0.37
|
|
286
|
+
/**
|
|
287
|
+
* Content of the button
|
|
288
|
+
* @since 0.0.37
|
|
289
289
|
*/
|
|
290
290
|
children: _propTypes.default.node,
|
|
291
291
|
|
|
292
|
-
/**
|
|
293
|
-
* Component to render as the root element. Useful when rendering a `Button` as `<a>` or `<Link>`.
|
|
294
|
-
* @since 0.0.42
|
|
292
|
+
/**
|
|
293
|
+
* Component to render as the root element. Useful when rendering a `Button` as `<a>` or `<Link>`.
|
|
294
|
+
* @since 0.0.42
|
|
295
295
|
*/
|
|
296
296
|
component: _propTypes.default.elementType,
|
|
297
297
|
|
|
298
|
-
/**
|
|
299
|
-
* @ignore
|
|
298
|
+
/**
|
|
299
|
+
* @ignore
|
|
300
300
|
*/
|
|
301
301
|
className: _propTypes.default.string,
|
|
302
302
|
|
|
303
|
-
/**
|
|
304
|
-
* @ignore
|
|
303
|
+
/**
|
|
304
|
+
* @ignore
|
|
305
305
|
*/
|
|
306
306
|
baseClassName: _propTypes.default.string
|
|
307
307
|
};
|
|
@@ -17,9 +17,9 @@ var _constants = require("../../constants");
|
|
|
17
17
|
|
|
18
18
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* `ButtonGroup` component is used for visual grouping of several [Buttons](#!/Button) together.
|
|
22
|
-
* @since 0.0.37
|
|
20
|
+
/**
|
|
21
|
+
* `ButtonGroup` component is used for visual grouping of several [Buttons](#!/Button) together.
|
|
22
|
+
* @since 0.0.37
|
|
23
23
|
*/
|
|
24
24
|
const ButtonGroup = ({
|
|
25
25
|
baseClassName = `${_constants.CLS_PREFIX}button-group`,
|
|
@@ -43,9 +43,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
43
43
|
const VIEW_TILE = 'tile';
|
|
44
44
|
const VIEW_EXTENDED = 'extended';
|
|
45
45
|
const VIEW_ROW = 'row';
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated `Card` component is a part of [CardList](#!/CardList).
|
|
48
|
-
* @since 0.0.54
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated `Card` component is a part of [CardList](#!/CardList).
|
|
48
|
+
* @since 0.0.54
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
class Card extends _react.Component {
|
|
@@ -404,57 +404,57 @@ class Card extends _react.Component {
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
Card.propTypes = {
|
|
407
|
-
/**
|
|
408
|
-
* Content of the `Card`.
|
|
409
|
-
* @since 0.0.54
|
|
407
|
+
/**
|
|
408
|
+
* Content of the `Card`.
|
|
409
|
+
* @since 0.0.54
|
|
410
410
|
*/
|
|
411
411
|
children: _propTypes.default.node,
|
|
412
412
|
|
|
413
|
-
/**
|
|
414
|
-
* View mode.
|
|
415
|
-
* @since 0.0.54
|
|
413
|
+
/**
|
|
414
|
+
* View mode.
|
|
415
|
+
* @since 0.0.54
|
|
416
416
|
*/
|
|
417
417
|
view: _propTypes.default.oneOf([VIEW_EXTENDED, VIEW_TILE, VIEW_ROW]),
|
|
418
418
|
|
|
419
|
-
/**
|
|
420
|
-
* Visual intent color to apply to component.
|
|
421
|
-
* @since 0.0.54
|
|
419
|
+
/**
|
|
420
|
+
* Visual intent color to apply to component.
|
|
421
|
+
* @since 0.0.54
|
|
422
422
|
*/
|
|
423
423
|
intent: _propTypes.default.oneOf(['warning', 'danger', 'inactive']),
|
|
424
424
|
|
|
425
|
-
/**
|
|
426
|
-
* Text of title.
|
|
427
|
-
* @since 0.0.54
|
|
425
|
+
/**
|
|
426
|
+
* Text of title.
|
|
427
|
+
* @since 0.0.54
|
|
428
428
|
*/
|
|
429
429
|
title: _propTypes.default.node.isRequired,
|
|
430
430
|
|
|
431
|
-
/**
|
|
432
|
-
* Link for title.
|
|
433
|
-
* @since 0.0.54
|
|
431
|
+
/**
|
|
432
|
+
* Link for title.
|
|
433
|
+
* @since 0.0.54
|
|
434
434
|
*/
|
|
435
435
|
titleLink: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
436
436
|
|
|
437
|
-
/**
|
|
438
|
-
* List of labels in header, which should appear right after the title. See [Label](#!/Label) component for details.
|
|
439
|
-
* @since 1.6.0
|
|
437
|
+
/**
|
|
438
|
+
* List of labels in header, which should appear right after the title. See [Label](#!/Label) component for details.
|
|
439
|
+
* @since 1.6.0
|
|
440
440
|
*/
|
|
441
441
|
titleLabels: _propTypes.default.arrayOf(_propTypes.default.element),
|
|
442
442
|
|
|
443
|
-
/**
|
|
444
|
-
* Text of subtitle.
|
|
445
|
-
* @since 0.0.54
|
|
443
|
+
/**
|
|
444
|
+
* Text of subtitle.
|
|
445
|
+
* @since 0.0.54
|
|
446
446
|
*/
|
|
447
447
|
subtitle: _propTypes.default.node,
|
|
448
448
|
|
|
449
|
-
/**
|
|
450
|
-
* List of labels in header, which should appear at the end of header. See [Label](#!/Label) component for details.
|
|
451
|
-
* @since 0.0.54
|
|
449
|
+
/**
|
|
450
|
+
* List of labels in header, which should appear at the end of header. See [Label](#!/Label) component for details.
|
|
451
|
+
* @since 0.0.54
|
|
452
452
|
*/
|
|
453
453
|
labels: _propTypes.default.arrayOf(_propTypes.default.element),
|
|
454
454
|
|
|
455
|
-
/**
|
|
456
|
-
* List of additional buttons in header.
|
|
457
|
-
* @since 0.0.54
|
|
455
|
+
/**
|
|
456
|
+
* List of additional buttons in header.
|
|
457
|
+
* @since 0.0.54
|
|
458
458
|
*/
|
|
459
459
|
buttons: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
460
460
|
icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]).isRequired,
|
|
@@ -462,52 +462,52 @@ Card.propTypes = {
|
|
|
462
462
|
tooltip: _propTypes.default.node
|
|
463
463
|
})),
|
|
464
464
|
|
|
465
|
-
/**
|
|
466
|
-
* See [Menu](#!/Menu).
|
|
467
|
-
* @since 0.3.0
|
|
465
|
+
/**
|
|
466
|
+
* See [Menu](#!/Menu).
|
|
467
|
+
* @since 0.3.0
|
|
468
468
|
*/
|
|
469
469
|
menu: _propTypes.default.element,
|
|
470
470
|
|
|
471
|
-
/**
|
|
472
|
-
* Selection control.
|
|
473
|
-
* @since 0.0.54
|
|
471
|
+
/**
|
|
472
|
+
* Selection control.
|
|
473
|
+
* @since 0.0.54
|
|
474
474
|
*/
|
|
475
475
|
selection: _propTypes.default.shape({
|
|
476
476
|
isSelected: _propTypes.default.bool.isRequired,
|
|
477
477
|
onSelectionChange: _propTypes.default.func.isRequired
|
|
478
478
|
}),
|
|
479
479
|
|
|
480
|
-
/**
|
|
481
|
-
* Side header section. Recommended to use [PreviewPanel](#!/PreviewPanel) component.
|
|
482
|
-
* @since 0.0.54
|
|
480
|
+
/**
|
|
481
|
+
* Side header section. Recommended to use [PreviewPanel](#!/PreviewPanel) component.
|
|
482
|
+
* @since 0.0.54
|
|
483
483
|
*/
|
|
484
484
|
sideHeader: _propTypes.default.element,
|
|
485
485
|
|
|
486
|
-
/**
|
|
487
|
-
* Side content section.
|
|
488
|
-
* @since 0.0.54
|
|
486
|
+
/**
|
|
487
|
+
* Side content section.
|
|
488
|
+
* @since 0.0.54
|
|
489
489
|
*/
|
|
490
490
|
sideContent: _propTypes.default.element,
|
|
491
491
|
|
|
492
|
-
/**
|
|
493
|
-
* Content for row view.
|
|
494
|
-
* @since 0.0.54
|
|
492
|
+
/**
|
|
493
|
+
* Content for row view.
|
|
494
|
+
* @since 0.0.54
|
|
495
495
|
*/
|
|
496
496
|
rowContent: _propTypes.default.any,
|
|
497
497
|
|
|
498
|
-
/**
|
|
499
|
-
* Indicate the progress state of the card.
|
|
500
|
-
* @since 0.4.1
|
|
498
|
+
/**
|
|
499
|
+
* Indicate the progress state of the card.
|
|
500
|
+
* @since 0.4.1
|
|
501
501
|
*/
|
|
502
502
|
progress: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.node]),
|
|
503
503
|
|
|
504
|
-
/**
|
|
505
|
-
* @ignore
|
|
504
|
+
/**
|
|
505
|
+
* @ignore
|
|
506
506
|
*/
|
|
507
507
|
className: _propTypes.default.string,
|
|
508
508
|
|
|
509
|
-
/**
|
|
510
|
-
* @ignore
|
|
509
|
+
/**
|
|
510
|
+
* @ignore
|
|
511
511
|
*/
|
|
512
512
|
baseClassName: _propTypes.default.string
|
|
513
513
|
};
|
|
@@ -28,8 +28,8 @@ const CardButton = ({
|
|
|
28
28
|
}, props));
|
|
29
29
|
|
|
30
30
|
CardButton.propTypes = {
|
|
31
|
-
/**
|
|
32
|
-
* @ignore
|
|
31
|
+
/**
|
|
32
|
+
* @ignore
|
|
33
33
|
*/
|
|
34
34
|
baseClassName: _propTypes.default.string,
|
|
35
35
|
icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]).isRequired
|
|
@@ -49,9 +49,9 @@ const determineSource = ({
|
|
|
49
49
|
type: 'noImage'
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
/**
|
|
53
|
-
* `PreviewPanel` component is used for displaying website preview.
|
|
54
|
-
* @since 0.3.0
|
|
52
|
+
/**
|
|
53
|
+
* `PreviewPanel` component is used for displaying website preview.
|
|
54
|
+
* @since 0.3.0
|
|
55
55
|
*/
|
|
56
56
|
|
|
57
57
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="#ccc" width="280" height="210" viewBox="-90 -55 280 210">
|
|
2
|
-
<path d="M73.5 43a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"/>
|
|
3
|
-
<path fill-rule="evenodd" d="M13.2 16.2A49.9 49.9 0 01100 50c0 14.6-6.2 27.7-16.2 36.8L13.2 16.2zM96 50c0 12-4.6 23-12.2 31.2L78.6 76a4 4 0 003.4-4V36a4 4 0 00-4-4H67.5l-6.3-10.1a4 4 0 00-3.4-1.9H42.2a4 4 0 00-3.4 1.9l-5.5 8.8-14.5-14.5A45.8 45.8 0 0196 50zM78 72h-3.3L63.4 60.7a16 16 0 00-22.1-22.1l-5-5 6-9.6h15.5L64 34.1a4 4 0 003.4 1.9H78v36zM62 52a12 12 0 01-1.5 5.8L44.2 41.5A12 12 0 0162 52z" clip-rule="evenodd"/>
|
|
4
|
-
<path d="M80.8 89.4l-2.9-2.8A46 46 0 0113.4 22l-2.8-2.9a50 50 0 0070.2 70.2z"/>
|
|
5
|
-
<path d="M23.3 32H22a4 4 0 00-4 4v36a4 4 0 004 4h45.3l-4-4H22V36h5.3l-4-4z"/>
|
|
6
|
-
<path d="M35.9 44.5a16 16 0 0021.6 21.6l-3-3A12 12 0 0138 52c0-1.6.3-3.1.9-4.5l-3-3z"/>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="#ccc" width="280" height="210" viewBox="-90 -55 280 210">
|
|
2
|
+
<path d="M73.5 43a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"/>
|
|
3
|
+
<path fill-rule="evenodd" d="M13.2 16.2A49.9 49.9 0 01100 50c0 14.6-6.2 27.7-16.2 36.8L13.2 16.2zM96 50c0 12-4.6 23-12.2 31.2L78.6 76a4 4 0 003.4-4V36a4 4 0 00-4-4H67.5l-6.3-10.1a4 4 0 00-3.4-1.9H42.2a4 4 0 00-3.4 1.9l-5.5 8.8-14.5-14.5A45.8 45.8 0 0196 50zM78 72h-3.3L63.4 60.7a16 16 0 00-22.1-22.1l-5-5 6-9.6h15.5L64 34.1a4 4 0 003.4 1.9H78v36zM62 52a12 12 0 01-1.5 5.8L44.2 41.5A12 12 0 0162 52z" clip-rule="evenodd"/>
|
|
4
|
+
<path d="M80.8 89.4l-2.9-2.8A46 46 0 0113.4 22l-2.8-2.9a50 50 0 0070.2 70.2z"/>
|
|
5
|
+
<path d="M23.3 32H22a4 4 0 00-4 4v36a4 4 0 004 4h45.3l-4-4H22V36h5.3l-4-4z"/>
|
|
6
|
+
<path d="M35.9 44.5a16 16 0 0021.6 21.6l-3-3A12 12 0 0138 52c0-1.6.3-3.1.9-4.5l-3-3z"/>
|
|
7
7
|
</svg>
|