@plesk/ui-library 3.35.1 → 3.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/Action/Action.js +1 -2
- package/cjs/components/Alert/Alert.js +1 -2
- package/cjs/components/AutoClosable/AutoClosable.js +1 -2
- package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +1 -2
- package/cjs/components/Badge/Badge.js +1 -2
- package/cjs/components/Breadcrumbs/Breadcrumbs.js +1 -2
- package/cjs/components/Button/Button.js +2 -4
- package/cjs/components/Button/ButtonContext.js +2 -4
- package/cjs/components/ButtonGroup/ButtonGroup.js +1 -2
- package/cjs/components/Card/Card.js +1 -2
- package/cjs/components/Card/CardButton.js +1 -2
- package/cjs/components/Card/PreviewPanel.js +1 -2
- package/cjs/components/CardList/CardList.js +5 -10
- package/cjs/components/CardList/CardListToolbar.js +1 -2
- package/cjs/components/Carousel/Carousel.js +26 -41
- package/cjs/components/Checkbox/Checkbox.js +1 -2
- package/cjs/components/ClosingConfirmation/locale/en-US.js +2 -3
- package/cjs/components/ClosingConfirmation/useClosingConfirmation.js +1 -2
- package/cjs/components/CodeEditor/CodeEditor.js +1 -2
- package/cjs/components/Columns/Column.js +1 -2
- package/cjs/components/Columns/Columns.js +1 -2
- package/cjs/components/ComboBox/ComboBox.js +1 -2
- package/cjs/components/ComboBox/ComboBoxOption.js +1 -2
- package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +1 -2
- package/cjs/components/ConsoleOutput/ConsoleOutput.js +1 -2
- package/cjs/components/ContentLoader/ContentLoader.js +1 -2
- package/cjs/components/ContentLoader/IconsLoader.js +1 -2
- package/cjs/components/Cuttable/Cuttable.js +1 -2
- package/cjs/components/Dialog/Dialog.js +1 -2
- package/cjs/components/DistractionFreeModeContext/DistractionFreeModeContext.js +1 -2
- package/cjs/components/Drawer/Drawer.js +1 -2
- package/cjs/components/Drawer/DrawerProgress.js +1 -2
- package/cjs/components/Drawer/Header.js +70 -108
- package/cjs/components/Dropdown/Dropdown.js +1 -2
- package/cjs/components/Dropdown/locale/en-US.js +2 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +1 -2
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +1 -2
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +1 -2
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +1 -2
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +1 -2
- package/cjs/components/Figure/Figure.js +1 -2
- package/cjs/components/FocusTrap/FocusTrap.js +1 -2
- package/cjs/components/Form/DisabledContext.js +1 -2
- package/cjs/components/Form/Form.js +6 -9
- package/cjs/components/Form/FormContext.js +1 -2
- package/cjs/components/Form/ScrollableElementFormContext.js +1 -2
- package/cjs/components/FormField/FormField.js +4 -4
- package/cjs/components/FormField/index.js +9 -2
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +9 -69
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +1 -2
- package/cjs/components/FormFieldPassword/PasswordMeter.js +2 -3
- package/cjs/components/FormFieldPassword/estimatePassword.js +3 -5
- package/cjs/components/FormFieldPassword/generatePassword.js +1 -2
- package/cjs/components/FormFieldPassword/locale/en-US.js +2 -3
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +65 -134
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +1 -2
- package/cjs/components/FormFieldText/FormFieldText.js +56 -143
- package/cjs/components/Grid/Grid.js +10 -73
- package/cjs/components/GridCol/GridCol.js +4 -56
- package/cjs/components/Heading/Heading.js +1 -2
- package/cjs/components/Hint/Hint.js +1 -2
- package/cjs/components/Icon/Icon.js +10 -20
- package/cjs/components/Icon/constants.js +2 -4
- package/cjs/components/Icon/images/symbols.svg +39 -1
- package/cjs/components/Icon/oldIconNames.js +1 -2
- package/cjs/components/InPlaceEdit/InPlaceEdit.js +7 -29
- package/cjs/components/InPlaceEdit/locale/en-US.js +2 -3
- package/cjs/components/Input/Input.js +1 -2
- package/cjs/components/InputFile/InputFile.js +1 -2
- package/cjs/components/InputFile/locale/en-US.js +2 -3
- package/cjs/components/InputNumber/InputNumber.js +1 -2
- package/cjs/components/Item/Item.js +1 -2
- package/cjs/components/ItemLink/ItemLink.js +1 -2
- package/cjs/components/ItemList/ItemList.js +1 -2
- package/cjs/components/Label/Label.js +1 -2
- package/cjs/components/Layer/Layer.js +2 -4
- package/cjs/components/Layout/Layout.js +32 -123
- package/cjs/components/Link/Link.js +2 -4
- package/cjs/components/List/List.js +13 -10
- package/cjs/components/List/ListAction.js +1 -2
- package/cjs/components/List/ListActions.js +1 -2
- package/cjs/components/List/ListActionsDivider.js +1 -2
- package/cjs/components/List/ListEmptyView.js +1 -2
- package/cjs/components/List/ListOperation.js +2 -3
- package/cjs/components/List/ListOperationContext.js +1 -2
- package/cjs/components/LocaleProvider/LocaleProvider.js +1 -2
- package/cjs/components/Markdown/Markdown.js +1 -2
- package/cjs/components/Media/Media.js +5 -76
- package/cjs/components/Media/MediaSection.js +4 -26
- package/cjs/components/Menu/Menu.js +6 -58
- package/cjs/components/Menu/MenuBaseItem.js +5 -45
- package/cjs/components/Menu/MenuDivider.js +4 -20
- package/cjs/components/Menu/MenuHeader.js +4 -26
- package/cjs/components/Menu/MenuItem.js +7 -65
- package/cjs/components/Menu/MenuSelectableItem.js +5 -33
- package/cjs/components/OnDarkContext/OnDarkContext.js +1 -2
- package/cjs/components/Overlay/Overlay.js +1 -2
- package/cjs/components/PageHeader/PageHeader.js +1 -2
- package/cjs/components/Pagination/Pagination.js +2 -4
- package/cjs/components/Panel/Panel.js +1 -2
- package/cjs/components/Paragraph/Paragraph.js +1 -2
- package/cjs/components/Plaintext/Plaintext.js +3 -25
- package/cjs/components/Popover/Popover.js +22 -118
- package/cjs/components/Popper/Popper.js +1 -2
- package/cjs/components/Progress/Progress.js +1 -2
- package/cjs/components/ProgressBar/ProgressBar.js +1 -2
- package/cjs/components/ProgressBar/ProgressIndicator.js +1 -2
- package/cjs/components/ProgressDialog/ProgressDialog.js +13 -87
- package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +1 -2
- package/cjs/components/ProgressStep/ProgressStep.js +7 -14
- package/cjs/components/Radio/Radio.js +1 -2
- package/cjs/components/Rating/Rating.js +6 -38
- package/cjs/components/ResponsiveContext/ResponsiveContext.js +1 -2
- package/cjs/components/Section/Section.js +30 -100
- package/cjs/components/Section/SectionItem.js +7 -46
- package/cjs/components/Section/index.js +16 -3
- package/cjs/components/SegmentedControl/SegmentedControl.js +1 -2
- package/cjs/components/Select/MultiValue.js +1 -2
- package/cjs/components/Select/Select.js +1 -2
- package/cjs/components/Select/SelectControl.js +1 -2
- package/cjs/components/Select/SelectOption.js +1 -2
- package/cjs/components/Select/SelectOptionGroup.js +1 -2
- package/cjs/components/Skeleton/Skeleton.js +1 -2
- package/cjs/components/Skeleton/SkeletonTabs.js +1 -2
- package/cjs/components/Skeleton/SkeletonText.js +1 -2
- package/cjs/components/Skeleton/index.js +2 -2
- package/cjs/components/Spinner/Spinner.js +1 -2
- package/cjs/components/SplitButton/SplitButton.js +2 -4
- package/cjs/components/Spot/Spot.js +1 -2
- package/cjs/components/Spot/SpotPopup.js +1 -2
- package/cjs/components/Spot/SpotPulsar.js +1 -2
- package/cjs/components/Squeezer/Squeezer.js +1 -2
- package/cjs/components/Status/Status.js +1 -2
- package/cjs/components/StatusMessage/StatusMessage.js +1 -2
- package/cjs/components/Subnav/Subnav.js +11 -58
- package/cjs/components/Subnav/index.js +6 -12
- package/cjs/components/Switch/Switch.js +1 -2
- package/cjs/components/SwitchesPanel/SwitchesPanel.js +4 -28
- package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +4 -59
- package/cjs/components/Tabs/SearchBar.js +1 -2
- package/cjs/components/Tabs/Tab.js +1 -2
- package/cjs/components/Tabs/Tabs.js +1 -2
- package/cjs/components/Text/Text.js +1 -2
- package/cjs/components/TextArea/TextArea.js +1 -2
- package/cjs/components/Toaster/Toaster.js +3 -3
- package/cjs/components/Toolbar/RegistryContext.js +1 -2
- package/cjs/components/Toolbar/Toolbar.js +6 -21
- package/cjs/components/Toolbar/ToolbarExpander.js +1 -2
- package/cjs/components/Toolbar/ToolbarGroup.js +21 -53
- package/cjs/components/Toolbar/ToolbarMenu.js +2 -3
- package/cjs/components/Tooltip/Tooltip.js +1 -2
- package/cjs/components/Tour/Tour.js +1 -2
- package/cjs/components/Translate/Translate.js +1 -2
- package/cjs/components/VerticalContext/VerticalContext.js +2 -4
- package/cjs/components/index.js +77 -66
- package/cjs/components/intentIconMap.js +2 -3
- package/cjs/index.js +1 -2
- package/cjs/publicPath.js +1 -2
- package/cjs/utils/types/DataAttributes.js +5 -0
- package/dist/images/symbols.svg +39 -1
- 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 +1029 -2455
- 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/Button/Button.js +1 -2
- package/esm/components/Carousel/Carousel.js +25 -37
- package/esm/components/Drawer/Header.js +70 -107
- package/esm/components/Form/Form.js +5 -7
- package/esm/components/FormField/FormField.js +4 -2
- package/esm/components/FormField/index.js +2 -1
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +8 -65
- package/esm/components/FormFieldPassword/PasswordMeter.js +1 -1
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +64 -132
- package/esm/components/FormFieldText/FormFieldText.js +55 -140
- package/esm/components/Grid/Grid.js +9 -69
- package/esm/components/GridCol/GridCol.js +2 -55
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +39 -1
- package/esm/components/InPlaceEdit/InPlaceEdit.js +6 -25
- package/esm/components/Layout/Layout.js +32 -121
- package/esm/components/Link/Link.js +1 -2
- package/esm/components/List/List.js +12 -8
- package/esm/components/List/ListOperation.js +1 -1
- package/esm/components/Media/Media.js +4 -74
- package/esm/components/Media/MediaSection.js +2 -25
- package/esm/components/Menu/Menu.js +5 -54
- package/esm/components/Menu/MenuBaseItem.js +4 -45
- package/esm/components/Menu/MenuDivider.js +2 -19
- package/esm/components/Menu/MenuHeader.js +2 -25
- package/esm/components/Menu/MenuItem.js +5 -62
- package/esm/components/Menu/MenuSelectableItem.js +3 -32
- package/esm/components/Plaintext/Plaintext.js +2 -23
- package/esm/components/Popover/Popover.js +21 -114
- package/esm/components/ProgressDialog/ProgressDialog.js +12 -83
- package/esm/components/Rating/Rating.js +5 -36
- package/esm/components/Section/Section.js +28 -97
- package/esm/components/Section/SectionItem.js +5 -41
- package/esm/components/Section/index.js +2 -1
- package/esm/components/Skeleton/index.js +2 -2
- package/esm/components/SplitButton/SplitButton.js +1 -2
- package/esm/components/Subnav/Subnav.js +10 -54
- package/esm/components/Subnav/index.js +1 -2
- package/esm/components/SwitchesPanel/SwitchesPanel.js +3 -24
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +3 -55
- package/esm/components/Toaster/Toaster.js +3 -1
- package/esm/components/Toolbar/Toolbar.js +7 -21
- package/esm/components/Toolbar/ToolbarGroup.js +17 -50
- package/esm/components/Toolbar/ToolbarMenu.js +1 -1
- package/esm/components/index.js +6 -12
- package/esm/index.js +1 -1
- package/esm/utils/types/DataAttributes.js +1 -0
- package/package.json +24 -25
- package/styleguide/build/bundle.8058bbce.js +2 -0
- package/styleguide/images/symbols.svg +39 -1
- package/styleguide/index.html +2 -2
- package/types/src/components/AutoClosable/AutoClosable.d.ts +23 -2
- package/types/src/components/Button/Button.d.ts +3 -7
- package/types/src/components/Carousel/Carousel.d.ts +58 -0
- package/types/src/components/Carousel/index.d.ts +2 -0
- package/types/src/components/Columns/Column.d.ts +2 -2
- package/types/src/components/Columns/Columns.d.ts +2 -2
- package/types/src/components/Columns/index.d.ts +2 -0
- package/types/src/components/Dialog/Dialog.d.ts +1 -1
- package/types/src/components/Dialog/index.d.ts +1 -1
- package/types/src/components/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +1 -1
- package/types/src/components/DistractionFreeModeContext/index.d.ts +1 -0
- package/types/src/components/Drawer/Header.d.ts +4 -20
- package/types/src/components/Form/Form.d.ts +5 -0
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.d.ts +53 -0
- package/types/src/components/FormFieldCheckbox/index.d.ts +2 -0
- package/types/src/components/FormFieldPassword/PasswordMeter.d.ts +4 -3
- package/types/src/components/FormFieldPassword/generatePassword.d.ts +2 -0
- package/types/src/components/FormFieldRadioButtons/FormFieldRadioButtons.d.ts +72 -0
- package/types/src/components/FormFieldRadioButtons/index.d.ts +2 -0
- package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +1 -1
- package/types/src/components/FormFieldSelect/index.d.ts +1 -0
- package/types/src/components/FormFieldText/FormFieldText.d.ts +82 -0
- package/types/src/components/FormFieldText/index.d.ts +2 -0
- package/types/src/components/Grid/Grid.d.ts +97 -0
- package/types/src/components/Grid/index.d.ts +2 -0
- package/types/src/components/GridCol/GridCol.d.ts +53 -0
- package/types/src/components/GridCol/index.d.ts +2 -0
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/InPlaceEdit/InPlaceEdit.d.ts +50 -0
- package/types/src/components/InPlaceEdit/index.d.ts +2 -0
- package/types/src/components/Input/Input.d.ts +1 -1
- package/types/src/components/Input/index.d.ts +1 -0
- package/types/src/components/InputFile/InputFile.d.ts +3 -2
- package/types/src/components/InputFile/index.d.ts +1 -0
- package/types/src/components/InputNumber/InputNumber.d.ts +2 -2
- package/types/src/components/InputNumber/index.d.ts +1 -0
- package/types/src/components/Layout/Layout.d.ts +161 -0
- package/types/src/components/Layout/index.d.ts +2 -0
- package/types/src/components/Link/Link.d.ts +1 -2
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +1 -1
- package/types/src/components/Media/Media.d.ts +66 -0
- package/types/src/components/Media/MediaSection.d.ts +22 -0
- package/types/src/components/Media/index.d.ts +4 -0
- package/types/src/components/Menu/Menu.d.ts +40 -0
- package/types/src/components/Menu/MenuBaseItem.d.ts +41 -0
- package/types/src/components/Menu/MenuDivider.d.ts +16 -0
- package/types/src/components/Menu/MenuHeader.d.ts +22 -0
- package/types/src/components/Menu/MenuItem.d.ts +49 -0
- package/types/src/components/Menu/MenuSelectableItem.d.ts +28 -0
- package/types/src/components/Menu/index.d.ts +11 -0
- package/types/src/components/Panel/Panel.d.ts +2 -1
- package/types/src/components/Plaintext/Plaintext.d.ts +23 -0
- package/types/src/components/Plaintext/index.d.ts +2 -0
- package/types/src/components/Popover/Popover.d.ts +156 -0
- package/types/src/components/Popover/index.d.ts +2 -0
- package/types/src/components/ProgressDialog/ProgressDialog.d.ts +125 -0
- package/types/src/components/ProgressDialog/index.d.ts +2 -0
- package/types/src/components/Rating/Rating.d.ts +27 -0
- package/types/src/components/Rating/index.d.ts +2 -0
- package/types/src/components/Section/Section.d.ts +145 -0
- package/types/src/components/Section/SectionItem.d.ts +38 -0
- package/types/src/components/Section/index.d.ts +5 -0
- package/types/src/components/Skeleton/Skeleton.d.ts +3 -5
- package/types/src/components/Skeleton/SkeletonTabs.d.ts +4 -4
- package/types/src/components/Skeleton/SkeletonText.d.ts +2 -2
- package/types/src/components/Skeleton/index.d.ts +4 -1
- package/types/src/components/SplitButton/SplitButton.d.ts +1 -2
- package/types/src/components/Spot/Spot.d.ts +3 -2
- package/types/src/components/Spot/SpotPulsar.d.ts +4 -2
- package/types/src/components/Spot/index.d.ts +1 -0
- package/types/src/components/Subnav/Subnav.d.ts +50 -0
- package/types/src/components/Subnav/index.d.ts +2 -0
- package/types/src/components/SwitchesPanel/SwitchesPanel.d.ts +24 -0
- package/types/src/components/SwitchesPanel/index.d.ts +2 -0
- package/types/src/components/SwitchesPanelItem/SwitchesPanelItem.d.ts +78 -0
- package/types/src/components/SwitchesPanelItem/index.d.ts +2 -0
- package/types/src/components/TextArea/TextArea.d.ts +3 -3
- package/types/src/components/TextArea/index.d.ts +1 -0
- package/types/src/components/Toolbar/RegistryContext.d.ts +2 -2
- package/types/src/components/Toolbar/Toolbar.d.ts +47 -0
- package/types/src/components/Toolbar/ToolbarGroup.d.ts +46 -0
- package/types/src/components/Toolbar/ToolbarMenu.d.ts +1 -1
- package/types/src/components/Toolbar/index.d.ts +5 -0
- package/types/src/components/Tour/Tour.d.ts +1 -1
- package/types/src/components/index.d.ts +31 -12
- package/types/src/components/utils.d.ts +1 -1
- package/types/src/utils/types/DataAttributes.d.ts +3 -0
- package/types/src/utils/types/index.d.ts +1 -0
- package/cjs/components/Alert/Alert.stories.js +0 -34
- package/cjs/components/Button/Button.stories.js +0 -109
- package/cjs/components/Cuttable/Cuttable.stories.js +0 -46
- package/cjs/components/Dialog/Dialog.stories.js +0 -49
- package/cjs/components/Drawer/Drawer.stories.js +0 -65
- package/cjs/components/Form/Form.stories.js +0 -35
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +0 -32
- package/cjs/components/Icon/Icon.stories.js +0 -32
- package/cjs/components/ItemLink/ItemLink.stories.js +0 -20
- package/cjs/components/ItemList/ItemList.stories.js +0 -122
- package/cjs/components/List/List.stories.js +0 -152
- package/cjs/components/Markdown/Markdown.stories.js +0 -51
- package/cjs/components/Menu/Menu.stories.js +0 -77
- package/cjs/components/Popover/Popover.stories.js +0 -60
- package/cjs/components/Select/Select.stories.js +0 -57
- package/cjs/components/Skeleton/Skeleton.stories.js +0 -24
- package/cjs/components/Skeleton/SkeletonTabs.stories.js +0 -15
- package/cjs/components/Skeleton/SkeletonText.stories.js +0 -33
- package/cjs/components/Status/Status.stories.js +0 -19
- package/cjs/components/Tabs/Tabs.stories.js +0 -24
- package/cjs/tests/index.js +0 -13
- package/cjs/tests/renderer.js +0 -27
- package/dist/.DS_Store +0 -0
- package/dist/images/default.svg +0 -1
- package/dist/images/filtered.svg +0 -1
- package/esm/components/Alert/Alert.stories.js +0 -27
- package/esm/components/Button/Button.stories.js +0 -99
- package/esm/components/Cuttable/Cuttable.stories.js +0 -39
- package/esm/components/Dialog/Dialog.stories.js +0 -42
- package/esm/components/Drawer/Drawer.stories.js +0 -56
- package/esm/components/Form/Form.stories.js +0 -27
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +0 -23
- package/esm/components/Icon/Icon.stories.js +0 -23
- package/esm/components/ItemLink/ItemLink.stories.js +0 -12
- package/esm/components/ItemList/ItemList.stories.js +0 -109
- package/esm/components/List/List.stories.js +0 -139
- package/esm/components/Markdown/Markdown.stories.js +0 -43
- package/esm/components/Menu/Menu.stories.js +0 -65
- package/esm/components/Popover/Popover.stories.js +0 -52
- package/esm/components/Select/Select.stories.js +0 -48
- package/esm/components/Skeleton/Skeleton.stories.js +0 -15
- package/esm/components/Skeleton/SkeletonTabs.stories.js +0 -7
- package/esm/components/Skeleton/SkeletonText.stories.js +0 -23
- package/esm/components/Status/Status.stories.js +0 -11
- package/esm/components/Tabs/Tabs.stories.js +0 -16
- package/esm/tests/index.js +0 -3
- package/esm/tests/renderer.js +0 -19
- package/styleguide/build/bundle.edc3f2a1.js +0 -2
- package/types/src/components/Alert/Alert.stories.d.ts +0 -11
- package/types/src/components/Button/Button.stories.d.ts +0 -17
- package/types/src/components/Cuttable/Cuttable.stories.d.ts +0 -17
- package/types/src/components/Dialog/Dialog.stories.d.ts +0 -25
- package/types/src/components/Drawer/Drawer.stories.d.ts +0 -43
- package/types/src/components/Form/Form.stories.d.ts +0 -13
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +0 -20
- package/types/src/components/Icon/Icon.stories.d.ts +0 -7
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +0 -12
- package/types/src/components/ItemList/ItemList.stories.d.ts +0 -172
- package/types/src/components/List/List.stories.d.ts +0 -30
- package/types/src/components/Markdown/Markdown.stories.d.ts +0 -10
- package/types/src/components/Menu/Menu.stories.d.ts +0 -20
- package/types/src/components/Popover/Popover.stories.d.ts +0 -25
- package/types/src/components/Select/Select.stories.d.ts +0 -12
- package/types/src/components/Skeleton/Skeleton.stories.d.ts +0 -15
- package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +0 -5
- package/types/src/components/Skeleton/SkeletonText.stories.d.ts +0 -23
- package/types/src/components/Status/Status.stories.d.ts +0 -11
- package/types/src/components/Tabs/Tabs.stories.d.ts +0 -10
- package/types/src/tests/index.d.ts +0 -1
- package/types/src/tests/renderer.d.ts +0 -23
- /package/styleguide/build/{bundle.edc3f2a1.js.LICENSE.txt → bundle.8058bbce.js.LICENSE.txt} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React, { cloneElement, Component } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
import classNames from 'classnames';
|
|
4
|
+
import { cloneElement } from 'react';
|
|
6
5
|
import { CLS_PREFIX } from '../../constants';
|
|
7
|
-
import FormField from '../FormField';
|
|
6
|
+
import FormField, { BASE_FORM_FIELD_CLASS_NAME } from '../FormField';
|
|
8
7
|
import Hint from '../Hint';
|
|
9
8
|
import Radio from '../Radio';
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -13,136 +12,69 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
12
|
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
14
13
|
* @since 0.2.0
|
|
15
14
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
const FormFieldRadioButtons = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
baseClassName = `${CLS_PREFIX}form-field-radio-buttons`,
|
|
18
|
+
className,
|
|
19
|
+
options,
|
|
20
|
+
autoFocus,
|
|
21
|
+
...props
|
|
22
|
+
} = _ref;
|
|
23
|
+
return /*#__PURE__*/_jsx(FormField, {
|
|
24
|
+
className: classNames(baseClassName, className),
|
|
25
|
+
...props,
|
|
26
|
+
children: _ref2 => {
|
|
27
|
+
let {
|
|
28
|
+
getId,
|
|
29
|
+
getName,
|
|
30
|
+
getValue,
|
|
31
|
+
setValue,
|
|
32
|
+
isDisabled
|
|
33
|
+
} = _ref2;
|
|
34
|
+
return options.map((_ref3, index) => {
|
|
30
35
|
let {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} =
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
value,
|
|
37
|
+
label,
|
|
38
|
+
description,
|
|
39
|
+
disabled,
|
|
40
|
+
indentFields = []
|
|
41
|
+
} = _ref3;
|
|
42
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
43
|
+
className: `${baseClassName}__radio`,
|
|
44
|
+
children: [/*#__PURE__*/_jsx(Radio, {
|
|
45
|
+
name: getName(),
|
|
46
|
+
checked: getValue() === value,
|
|
47
|
+
onChange: isChecked => {
|
|
48
|
+
if (isChecked) {
|
|
49
|
+
setValue(value);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
disabled: isDisabled() || disabled,
|
|
53
|
+
inputProps: {
|
|
54
|
+
id: getId() ? `${getId()}-${value}` : undefined,
|
|
48
55
|
name: getName(),
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
disabled: true
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
return field;
|
|
76
|
-
})]
|
|
77
|
-
}) : null]
|
|
78
|
-
}, value);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
FormFieldRadioButtons.propTypes = {
|
|
85
|
-
/**
|
|
86
|
-
* Options definition.
|
|
87
|
-
* @since 0.2.0
|
|
88
|
-
*/
|
|
89
|
-
options: PropTypes.arrayOf(PropTypes.shape({
|
|
90
|
-
/**
|
|
91
|
-
* Option value.
|
|
92
|
-
*/
|
|
93
|
-
value: PropTypes.string.isRequired,
|
|
94
|
-
/**
|
|
95
|
-
* Option label.
|
|
96
|
-
*/
|
|
97
|
-
label: PropTypes.node.isRequired,
|
|
98
|
-
/**
|
|
99
|
-
* Text hint located below option for providing additional information.
|
|
100
|
-
*/
|
|
101
|
-
description: PropTypes.node,
|
|
102
|
-
/**
|
|
103
|
-
* Set true if option is not available to choice.
|
|
104
|
-
*/
|
|
105
|
-
disabled: PropTypes.bool,
|
|
106
|
-
/**
|
|
107
|
-
* Optional array of `FormField` components under this option.
|
|
108
|
-
*/
|
|
109
|
-
indentFields: PropTypes.array
|
|
110
|
-
})).isRequired,
|
|
111
|
-
/**
|
|
112
|
-
* Value of current chosen option.
|
|
113
|
-
* @deprecated Use [Form](#!/Form) values.
|
|
114
|
-
* @since 0.2.0
|
|
115
|
-
*/
|
|
116
|
-
value: PropTypes.string,
|
|
117
|
-
/**
|
|
118
|
-
* Disabled state of field.
|
|
119
|
-
* @since 0.2.0
|
|
120
|
-
*/
|
|
121
|
-
disabled: PropTypes.bool,
|
|
122
|
-
/**
|
|
123
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
124
|
-
* @since 1.9.0
|
|
125
|
-
*/
|
|
126
|
-
autoFocus: PropTypes.bool,
|
|
127
|
-
/**
|
|
128
|
-
* @ignore Field cannot be multiple
|
|
129
|
-
*/
|
|
130
|
-
multi: PropTypes.bool,
|
|
131
|
-
/**
|
|
132
|
-
* @ignore
|
|
133
|
-
*/
|
|
134
|
-
className: PropTypes.string,
|
|
135
|
-
/**
|
|
136
|
-
* @ignore
|
|
137
|
-
*/
|
|
138
|
-
baseClassName: PropTypes.string
|
|
139
|
-
};
|
|
140
|
-
FormFieldRadioButtons.defaultProps = {
|
|
141
|
-
value: undefined,
|
|
142
|
-
disabled: undefined,
|
|
143
|
-
autoFocus: undefined,
|
|
144
|
-
multi: undefined,
|
|
145
|
-
className: undefined,
|
|
146
|
-
baseClassName: `${CLS_PREFIX}form-field-radio-buttons`
|
|
56
|
+
value,
|
|
57
|
+
autoFocus: index === 0 && autoFocus ? true : undefined
|
|
58
|
+
},
|
|
59
|
+
children: label || value
|
|
60
|
+
}), description || indentFields ? /*#__PURE__*/_jsxs("div", {
|
|
61
|
+
className: `${baseClassName}__content`,
|
|
62
|
+
children: [description && /*#__PURE__*/_jsx(Hint, {
|
|
63
|
+
component: "div",
|
|
64
|
+
className: `${BASE_FORM_FIELD_CLASS_NAME}__description`,
|
|
65
|
+
children: description
|
|
66
|
+
}), indentFields.map(field => {
|
|
67
|
+
if (isDisabled() || disabled || getValue() !== value) {
|
|
68
|
+
return /*#__PURE__*/cloneElement(field, {
|
|
69
|
+
disabled: true
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return field;
|
|
73
|
+
})]
|
|
74
|
+
}) : null]
|
|
75
|
+
}, value);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
147
79
|
};
|
|
148
80
|
export default FormFieldRadioButtons;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
|
-
/* eslint-disable react/prefer-stateless-function */
|
|
3
|
-
|
|
4
|
-
import React, { Component } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
2
|
import classNames from 'classnames';
|
|
7
3
|
import { CLS_PREFIX } from '../../constants';
|
|
8
4
|
import FormField from '../FormField';
|
|
@@ -15,141 +11,60 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
11
|
* [FormField](#!/FormField) with [InputNumber](#!/InputNumber) can be used for entering of integer numbers.
|
|
16
12
|
* @since 0.0.58
|
|
17
13
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
FormFieldText.propTypes = {
|
|
77
|
-
/**
|
|
78
|
-
* Size of the input
|
|
79
|
-
* @since 0.0.58
|
|
80
|
-
*/
|
|
81
|
-
size: PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'fill']),
|
|
82
|
-
/**
|
|
83
|
-
* If `true`, a textarea element will be rendered.
|
|
84
|
-
* @since 1.3.0
|
|
85
|
-
*/
|
|
86
|
-
multiline: PropTypes.bool,
|
|
87
|
-
/**
|
|
88
|
-
* Number of rows to display when multiline option is set to true.
|
|
89
|
-
* @since 1.3.0
|
|
90
|
-
*/
|
|
91
|
-
rows: PropTypes.oneOfType([PropTypes.number.isRequired, PropTypes.shape({
|
|
92
|
-
min: PropTypes.number.isRequired,
|
|
93
|
-
max: PropTypes.number.isRequired
|
|
94
|
-
})]),
|
|
95
|
-
/**
|
|
96
|
-
* Placeholder of the input
|
|
97
|
-
* @since 0.0.58
|
|
98
|
-
*/
|
|
99
|
-
placeholder: PropTypes.string,
|
|
100
|
-
/**
|
|
101
|
-
* Disabled state of field.
|
|
102
|
-
* @since 0.2.0
|
|
103
|
-
*/
|
|
104
|
-
disabled: PropTypes.bool,
|
|
105
|
-
/**
|
|
106
|
-
* The browser will automatically focus on the component upon rendering the screen
|
|
107
|
-
* @since 1.9.0
|
|
108
|
-
*/
|
|
109
|
-
autoFocus: PropTypes.bool,
|
|
110
|
-
/**
|
|
111
|
-
* Whether the value of the control can be automatically completed by the browser or not.
|
|
112
|
-
* @since 2.5.1
|
|
113
|
-
*/
|
|
114
|
-
autoComplete: PropTypes.oneOf(['on', 'off']),
|
|
115
|
-
/**
|
|
116
|
-
* If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
|
|
117
|
-
* @since 1.12.0
|
|
118
|
-
*/
|
|
119
|
-
multi: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
|
120
|
-
max: PropTypes.number.isRequired
|
|
121
|
-
})]),
|
|
122
|
-
/**
|
|
123
|
-
* @ignore
|
|
124
|
-
*/
|
|
125
|
-
className: PropTypes.string,
|
|
126
|
-
/**
|
|
127
|
-
* @ignore
|
|
128
|
-
*/
|
|
129
|
-
baseClassName: PropTypes.string,
|
|
130
|
-
/**
|
|
131
|
-
* Adjust height automatically when multiline option is set to true.
|
|
132
|
-
* @since 1.9.0
|
|
133
|
-
*/
|
|
134
|
-
autoheight: PropTypes.bool,
|
|
135
|
-
/**
|
|
136
|
-
* Props of underlying input element.
|
|
137
|
-
* @since 3.28.1
|
|
138
|
-
*/
|
|
139
|
-
inputProps: PropTypes.object
|
|
140
|
-
};
|
|
141
|
-
FormFieldText.defaultProps = {
|
|
142
|
-
size: undefined,
|
|
143
|
-
placeholder: undefined,
|
|
144
|
-
disabled: undefined,
|
|
145
|
-
multiline: false,
|
|
146
|
-
rows: 4,
|
|
147
|
-
autoFocus: undefined,
|
|
148
|
-
autoComplete: undefined,
|
|
149
|
-
multi: undefined,
|
|
150
|
-
className: undefined,
|
|
151
|
-
baseClassName: `${CLS_PREFIX}form-field-text`,
|
|
152
|
-
autoheight: false,
|
|
153
|
-
inputProps: undefined
|
|
14
|
+
const FormFieldText = props => {
|
|
15
|
+
const {
|
|
16
|
+
baseClassName = `${CLS_PREFIX}form-field-text`,
|
|
17
|
+
className,
|
|
18
|
+
size,
|
|
19
|
+
placeholder,
|
|
20
|
+
rows = 4,
|
|
21
|
+
autoFocus,
|
|
22
|
+
multiline = false,
|
|
23
|
+
autoComplete,
|
|
24
|
+
autoheight = false,
|
|
25
|
+
inputProps,
|
|
26
|
+
...otherProps
|
|
27
|
+
} = props;
|
|
28
|
+
return /*#__PURE__*/_jsx(FormField, {
|
|
29
|
+
className: classNames(baseClassName, {
|
|
30
|
+
[`${baseClassName}--multiline`]: multiline
|
|
31
|
+
}, className),
|
|
32
|
+
...otherProps,
|
|
33
|
+
children: _ref => {
|
|
34
|
+
let {
|
|
35
|
+
getId,
|
|
36
|
+
getName,
|
|
37
|
+
getValue,
|
|
38
|
+
setValue,
|
|
39
|
+
isDisabled
|
|
40
|
+
} = _ref;
|
|
41
|
+
return props.multiline ? /*#__PURE__*/_jsx(TextArea, {
|
|
42
|
+
id: getId(),
|
|
43
|
+
name: getName(),
|
|
44
|
+
value: getValue(''),
|
|
45
|
+
onChange: e => setValue(e.currentTarget.value),
|
|
46
|
+
disabled: isDisabled(),
|
|
47
|
+
size: size,
|
|
48
|
+
rows: rows,
|
|
49
|
+
placeholder: placeholder,
|
|
50
|
+
autoFocus: autoFocus,
|
|
51
|
+
autoComplete: autoComplete,
|
|
52
|
+
autoheight: autoheight,
|
|
53
|
+
...(props.inputProps ?? {})
|
|
54
|
+
}) : /*#__PURE__*/_jsx(Input, {
|
|
55
|
+
id: getId(),
|
|
56
|
+
name: getName(),
|
|
57
|
+
className: `${baseClassName}__input`,
|
|
58
|
+
value: getValue(''),
|
|
59
|
+
onChange: e => setValue(e.currentTarget.value),
|
|
60
|
+
disabled: isDisabled(),
|
|
61
|
+
size: size,
|
|
62
|
+
placeholder: placeholder,
|
|
63
|
+
autoFocus: autoFocus,
|
|
64
|
+
autoComplete: autoComplete,
|
|
65
|
+
...(props.inputProps ?? {})
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
154
69
|
};
|
|
155
70
|
export default FormFieldText;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
4
|
+
import { cloneElement, Component } from 'react';
|
|
6
5
|
import classNames from 'classnames';
|
|
7
6
|
import Measure from 'react-measure';
|
|
8
7
|
import { CLS_PREFIX } from '../../constants';
|
|
@@ -19,10 +18,11 @@ class Grid extends Component {
|
|
|
19
18
|
});
|
|
20
19
|
_defineProperty(this, "handleResize", _ref => {
|
|
21
20
|
let {
|
|
22
|
-
bounds
|
|
23
|
-
width
|
|
24
|
-
}
|
|
21
|
+
bounds
|
|
25
22
|
} = _ref;
|
|
23
|
+
const {
|
|
24
|
+
width
|
|
25
|
+
} = bounds;
|
|
26
26
|
let {
|
|
27
27
|
maxColumnsNumber
|
|
28
28
|
} = this.props;
|
|
@@ -87,9 +87,9 @@ class Grid extends Component {
|
|
|
87
87
|
const result = /*#__PURE__*/_jsx("div", {
|
|
88
88
|
className: computedClassName,
|
|
89
89
|
...props,
|
|
90
|
-
children: minColumnWidth
|
|
90
|
+
children: minColumnWidth && !this.state.xs ? null : children
|
|
91
91
|
});
|
|
92
|
-
if (minColumnWidth
|
|
92
|
+
if (minColumnWidth) {
|
|
93
93
|
return /*#__PURE__*/_jsx(Measure, {
|
|
94
94
|
bounds: true,
|
|
95
95
|
onResize: this.handleResize,
|
|
@@ -106,67 +106,7 @@ class Grid extends Component {
|
|
|
106
106
|
return result;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
Grid
|
|
110
|
-
/**
|
|
111
|
-
* Content of the `Grid`.
|
|
112
|
-
* @since 0.0.48
|
|
113
|
-
*/
|
|
114
|
-
children: PropTypes.node,
|
|
115
|
-
/**
|
|
116
|
-
* @ignore
|
|
117
|
-
*/
|
|
118
|
-
className: PropTypes.string,
|
|
119
|
-
/**
|
|
120
|
-
* @ignore
|
|
121
|
-
*/
|
|
122
|
-
baseClassName: PropTypes.string,
|
|
123
|
-
/**
|
|
124
|
-
* Minimal column width
|
|
125
|
-
* @since 0.0.50
|
|
126
|
-
*/
|
|
127
|
-
minColumnWidth: PropTypes.number,
|
|
128
|
-
/**
|
|
129
|
-
* Maximum columns number
|
|
130
|
-
* @since 0.0.53
|
|
131
|
-
*/
|
|
132
|
-
maxColumnsNumber: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
133
|
-
/**
|
|
134
|
-
* Number of columns for `xs` breakpoint
|
|
135
|
-
* @since 0.0.53
|
|
136
|
-
*/
|
|
137
|
-
xs: PropTypes.PropTypes.oneOf([1, 2, 3, 4, 5, 6, 'auto']),
|
|
138
|
-
/**
|
|
139
|
-
* Number of columns for `sm` breakpoint
|
|
140
|
-
* @since 0.0.48
|
|
141
|
-
*/
|
|
142
|
-
sm: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 'auto']),
|
|
143
|
-
/**
|
|
144
|
-
* Number of columns for `md` breakpoint
|
|
145
|
-
* @since 0.0.48
|
|
146
|
-
*/
|
|
147
|
-
md: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 'auto']),
|
|
148
|
-
/**
|
|
149
|
-
* Number of columns for `lg` breakpoint
|
|
150
|
-
* @since 0.0.48
|
|
151
|
-
*/
|
|
152
|
-
lg: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 'auto']),
|
|
153
|
-
/**
|
|
154
|
-
* Number of columns for `xl` breakpoint
|
|
155
|
-
* @since 0.0.48
|
|
156
|
-
*/
|
|
157
|
-
xl: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 'auto']),
|
|
158
|
-
/**
|
|
159
|
-
* Specifying the gutters between grid items
|
|
160
|
-
* @since 0.0.53
|
|
161
|
-
*/
|
|
162
|
-
gap: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
|
|
163
|
-
/**
|
|
164
|
-
* Columns number change notifier
|
|
165
|
-
* @since 0.0.50
|
|
166
|
-
*/
|
|
167
|
-
onColumnsChange: PropTypes.func
|
|
168
|
-
};
|
|
169
|
-
Grid.defaultProps = {
|
|
109
|
+
_defineProperty(Grid, "defaultProps", {
|
|
170
110
|
children: null,
|
|
171
111
|
className: null,
|
|
172
112
|
baseClassName: `${CLS_PREFIX}grid`,
|
|
@@ -179,5 +119,5 @@ Grid.defaultProps = {
|
|
|
179
119
|
xl: null,
|
|
180
120
|
gap: null,
|
|
181
121
|
onColumnsChange: null
|
|
182
|
-
};
|
|
122
|
+
});
|
|
183
123
|
export default Grid;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import { CLS_PREFIX } from '../../constants';
|
|
7
|
-
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
6
|
/**
|
|
9
7
|
* `GridCol` component is a part of [Grid](#!/Grid) component.
|
|
10
8
|
* @since 0.0.48
|
|
11
9
|
*/
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
10
|
const GridCol = _ref => {
|
|
14
11
|
let {
|
|
15
|
-
baseClassName
|
|
12
|
+
baseClassName = `${CLS_PREFIX}grid__col`,
|
|
16
13
|
className,
|
|
17
14
|
children,
|
|
18
15
|
xs,
|
|
@@ -35,54 +32,4 @@ const GridCol = _ref => {
|
|
|
35
32
|
children: children
|
|
36
33
|
});
|
|
37
34
|
};
|
|
38
|
-
GridCol.propTypes = {
|
|
39
|
-
/**
|
|
40
|
-
* Content of the `GridCol`.
|
|
41
|
-
* @since 0.0.48
|
|
42
|
-
*/
|
|
43
|
-
children: PropTypes.node,
|
|
44
|
-
/**
|
|
45
|
-
* @ignore
|
|
46
|
-
*/
|
|
47
|
-
className: PropTypes.string,
|
|
48
|
-
/**
|
|
49
|
-
* @ignore
|
|
50
|
-
*/
|
|
51
|
-
baseClassName: PropTypes.string,
|
|
52
|
-
/**
|
|
53
|
-
* Column size for `xs` breakpoint (from 1 to 12)
|
|
54
|
-
* @since 0.0.53
|
|
55
|
-
*/
|
|
56
|
-
xs: PropTypes.number,
|
|
57
|
-
/**
|
|
58
|
-
* Column size for `sm` breakpoint (from 1 to 12)
|
|
59
|
-
* @since 0.0.53
|
|
60
|
-
*/
|
|
61
|
-
sm: PropTypes.number,
|
|
62
|
-
/**
|
|
63
|
-
* Column size for `sm` breakpoint (from 1 to 12)
|
|
64
|
-
* @since 0.0.53
|
|
65
|
-
*/
|
|
66
|
-
md: PropTypes.number,
|
|
67
|
-
/**
|
|
68
|
-
* Column size for `md` breakpoint (from 1 to 12)
|
|
69
|
-
* @since 0.0.53
|
|
70
|
-
*/
|
|
71
|
-
lg: PropTypes.number,
|
|
72
|
-
/**
|
|
73
|
-
* Column size for `lg` breakpoint (from 1 to 12)
|
|
74
|
-
* @since 0.0.53
|
|
75
|
-
*/
|
|
76
|
-
xl: PropTypes.number
|
|
77
|
-
};
|
|
78
|
-
GridCol.defaultProps = {
|
|
79
|
-
children: null,
|
|
80
|
-
className: null,
|
|
81
|
-
baseClassName: `${CLS_PREFIX}grid__col`,
|
|
82
|
-
xs: null,
|
|
83
|
-
sm: null,
|
|
84
|
-
md: null,
|
|
85
|
-
lg: null,
|
|
86
|
-
xl: null
|
|
87
|
-
};
|
|
88
35
|
export default GridCol;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
// This file is generated by create-svg-sprite. Do not edit.
|
|
3
3
|
|
|
4
|
-
export const NAMES_12 = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
|
|
5
|
-
export const NAMES = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
|
|
4
|
+
export const NAMES_12 = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'dot-big', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
|
|
5
|
+
export const NAMES = ['archive', 'arrow-back', 'arrow-diagonal-out', 'arrow-down', 'arrow-down-circle-filled', 'arrow-down-in', 'arrow-down-out', 'arrow-down-tray', 'arrow-left', 'arrow-left-circle-filled', 'arrow-right', 'arrow-right-circle-filled', 'arrow-right-in', 'arrow-right-out', 'arrow-up', 'arrow-up-circle', 'arrow-up-circle-filled', 'arrow-up-in', 'arrow-up-in-cloud', 'arrow-up-out', 'arrow-up-tray', 'arrows-four-directions', 'arrows-inward', 'arrows-loop', 'arrows-opposite', 'arrows-outward', 'backup', 'backup2', 'bar-chart-vertical', 'bar-chart-vertical-arrow-up', 'bar-chart-vertical-lock', 'bell', 'book-email', 'boundary', 'box-diagonal-bottom-in', 'box-diagonal-top-in', 'brush', 'bug', 'calendar', 'calendar-clock', 'camera', 'card', 'card-ribbon', 'card-row', 'card-tile', 'cd', 'cd-up-in-cloud', 'chain', 'chain-broken', 'chat', 'check-list', 'check-mark', 'check-mark-circle', 'check-mark-circle-filled', 'chevron-double-down', 'chevron-double-up', 'chevron-down', 'chevron-left', 'chevron-right', 'chevron-up', 'circle-diagonal', 'clean', 'clip', 'clock', 'clone', 'cloud', 'cloud-checkmark', 'cloud-crossed', 'cloud-graph', 'code', 'connection', 'console', 'console-filled', 'copy', 'copy-indicator', 'cpu', 'crane', 'credit-cards', 'cross-mark', 'cross-mark-circle', 'cross-mark-circle-filled', 'crown-transfer', 'dashboard', 'database', 'database-box', 'database-filled', 'database-plus', 'deploy', 'docker-filled', 'dollar', 'dollar-filled', 'dot', 'dot-big', 'emoticon-confused', 'emoticon-dead', 'emoticon-excited', 'emoticon-happy', 'emoticon-neutral', 'emoticon-sad', 'emoticon-smile', 'enter', 'exclamation-mark-circle', 'exclamation-mark-circle-filled', 'eye', 'eye-closed', 'facebook', 'facebook-filled', 'feedback', 'filter', 'filter-check-mark', 'fire', 'flag', 'flag-filled', 'flag-globe', 'floppy-disk', 'folder-closed', 'folder-key', 'folder-network', 'folder-open', 'folders-tree', 'forward-circle-filled', 'four-squares', 'gear', 'git', 'github', 'globe', 'hard-drive', 'hard-drive-key', 'hat', 'hexagons', 'home', 'info-circle', 'info-circle-filled', 'ip-addresses', 'joomla', 'kebab', 'key', 'laravel', 'lifebuoy', 'lightbulb', 'limit', 'linux', 'list', 'list-check-mark', 'location', 'lock-closed', 'lock-closed-check', 'lock-closed-filled', 'lock-open', 'lock-open-cross', 'lock-open-filled', 'mail', 'mail-circle-filled', 'mail-settings', 'megaphone', 'menu', 'menu-thin', 'microsoft', 'minimize', 'minus', 'minus-circle', 'minus-circle-filled', 'monitoring', 'monitoring-off', 'my-little-admin', 'net', 'nine-dots', 'node-js', 'package', 'panel', 'panel-check', 'panel-eye', 'panel-key', 'panel-settings', 'panels', 'pause-circle', 'pencil', 'pencil-dialog', 'php', 'phpmyadmin', 'pin', 'pipette', 'plans', 'plugins', 'plus', 'plus-circle', 'plus-circle-filled', 'power', 'projects', 'puzzle', 'python', 'question-mark-circle', 'question-mark-circle-filled', 'ram', 'react-js', 'recycle', 'redirect-circle-filled', 'refresh', 'reload', 'remove', 'reset', 'resource', 'ribbon', 'rocket', 'ruby', 'sand-clock', 'scan', 'screen', 'search', 'security-check', 'send', 'server', 'servers', 'share', 'shield', 'shield-attention-filled', 'shield-chain', 'shield-filled', 'shopping-cart', 'sidebar-right-hide', 'sidebar-right-show', 'signal-light', 'site-page', 'sleep', 'sliders', 'square-with-circles', 'star', 'star-circle-filled', 'star-filled', 'star-half-filled', 'start', 'start-circle', 'start-filled', 'stop', 'stop-circle', 'storage', 'themes', 'three-dots-horizontal', 'three-dots-vertical', 'tools', 'transfer', 'triangle-exclamation-mark', 'triangle-exclamation-mark-filled', 'unarchive', 'user', 'volume', 'web', 'web-plus', 'web-settings', 'windows', 'woocommerce', 'wordpress', 'zero-circle-filled'];
|