@plesk/ui-library 3.40.12 → 3.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/ItemList/ItemList.js +2 -1
- package/cjs/components/List/ListEmptyView.js +1 -1
- package/cjs/components/Spinner/Spinner.js +4 -1
- package/cjs/components/Toast/Toast.js +58 -88
- package/cjs/components/Toast/useAutoClose.js +34 -0
- package/cjs/components/Toaster/GroupLabel.js +54 -0
- package/cjs/components/Toaster/PanelView.js +175 -0
- package/cjs/components/Toaster/ToastView.js +66 -0
- package/cjs/components/Toaster/Toaster.js +95 -186
- package/cjs/components/Toaster/getGroups.js +40 -0
- package/cjs/components/index.js +8 -0
- package/cjs/index.js +1 -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 +8508 -12290
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +6 -6
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/ItemList/ItemList.js +2 -1
- package/esm/components/List/ListEmptyView.js +1 -1
- package/esm/components/Spinner/Spinner.js +4 -1
- package/esm/components/Toast/Toast.js +58 -87
- package/esm/components/Toast/useAutoClose.js +27 -0
- package/esm/components/Toaster/GroupLabel.js +47 -0
- package/esm/components/Toaster/PanelView.js +168 -0
- package/esm/components/Toaster/ToastView.js +59 -0
- package/esm/components/Toaster/Toaster.js +94 -186
- package/esm/components/Toaster/getGroups.js +33 -0
- package/esm/components/index.js +1 -0
- package/esm/index.js +1 -1
- package/package.json +19 -19
- package/styleguide/build/bundle.8483c3ef.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/{src/components → components}/Button/Button.d.ts +1 -1
- package/types/{src/components → components}/Button/ButtonContext.d.ts +0 -1
- package/types/{src/components → components}/CodeEditor/CodeEditor.d.ts +11 -11
- package/types/{src/components → components}/ComboBox/ComboBox.d.ts +7 -1
- package/types/{src/components → components}/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +0 -1
- package/types/{src/components → components}/FocusTrap/FocusTrap.d.ts +1 -1
- package/types/{src/components → components}/Form/DisabledContext.d.ts +0 -1
- package/types/{src/components → components}/Form/FormContext.d.ts +0 -1
- package/types/{src/components → components}/Form/ScrollableElementFormContext.d.ts +0 -1
- package/types/{src/components → components}/List/List.d.ts +14 -14
- package/types/{src/components → components}/OnDarkContext/OnDarkContext.d.ts +0 -1
- package/types/{src/components → components}/ResponsiveContext/ResponsiveContext.d.ts +0 -1
- package/types/{src/components → components}/Section/Section.d.ts +1 -1
- package/types/{src/components → components}/Spinner/Spinner.d.ts +7 -2
- package/types/components/Spinner/index.d.ts +2 -0
- package/types/{src/components → components}/Squeezer/Squeezer.d.ts +0 -1
- package/types/{src/components → components}/Toast/Toast.d.ts +11 -11
- package/types/components/Toast/useAutoClose.d.ts +7 -0
- package/types/components/Toaster/GroupLabel.d.ts +7 -0
- package/types/components/Toaster/PanelView.d.ts +14 -0
- package/types/components/Toaster/ToastView.d.ts +10 -0
- package/types/components/Toaster/Toaster.d.ts +84 -0
- package/types/components/Toaster/getGroups.d.ts +31 -0
- package/types/{src/components → components}/Toolbar/RegistryContext.d.ts +0 -1
- package/types/{src/components → components}/Toolbar/ToolbarGroup.d.ts +1 -1
- package/types/{src/components → components}/VerticalContext/VerticalContext.d.ts +0 -1
- package/types/{src/components → components}/index.d.ts +2 -0
- package/types/{src/components → components}/utils.d.ts +1 -1
- package/types/{src/hooks → hooks}/useMutationObserver.d.ts +1 -1
- package/types/{src/hooks → hooks}/useResizeObserver.d.ts +1 -1
- package/types/{src/hooks → hooks}/useSqueeze.d.ts +1 -1
- package/styleguide/build/bundle.0d8a8996.js +0 -2
- package/types/src/components/Spinner/index.d.ts +0 -1
- package/types/src/components/Toaster/Toaster.d.ts +0 -95
- /package/styleguide/build/{bundle.0d8a8996.js.LICENSE.txt → bundle.8483c3ef.js.LICENSE.txt} +0 -0
- /package/types/{src/components → components}/Action/Action.d.ts +0 -0
- /package/types/{src/components → components}/Action/index.d.ts +0 -0
- /package/types/{src/components → components}/Alert/Alert.d.ts +0 -0
- /package/types/{src/components → components}/Alert/index.d.ts +0 -0
- /package/types/{src/components → components}/AutoClosable/AutoClosable.d.ts +0 -0
- /package/types/{src/components → components}/AutoClosable/index.d.ts +0 -0
- /package/types/{src/components → components}/AuxiliaryActions/AuxiliaryActions.d.ts +0 -0
- /package/types/{src/components → components}/AuxiliaryActions/index.d.ts +0 -0
- /package/types/{src/components → components}/Badge/Badge.d.ts +0 -0
- /package/types/{src/components → components}/Badge/index.d.ts +0 -0
- /package/types/{src/components → components}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/types/{src/components → components}/Breadcrumbs/index.d.ts +0 -0
- /package/types/{src/components → components}/Button/index.d.ts +0 -0
- /package/types/{src/components → components}/ButtonGroup/ButtonGroup.d.ts +0 -0
- /package/types/{src/components → components}/ButtonGroup/index.d.ts +0 -0
- /package/types/{src/components → components}/Card/PreviewPanel.d.ts +0 -0
- /package/types/{src/components → components}/Card/helpers.d.ts +0 -0
- /package/types/{src/components → components}/Carousel/Carousel.d.ts +0 -0
- /package/types/{src/components → components}/Carousel/index.d.ts +0 -0
- /package/types/{src/components → components}/Checkbox/Checkbox.d.ts +0 -0
- /package/types/{src/components → components}/Checkbox/index.d.ts +0 -0
- /package/types/{src/components → components}/ClosingConfirmation/index.d.ts +0 -0
- /package/types/{src/components → components}/ClosingConfirmation/useClosingConfirmation.d.ts +0 -0
- /package/types/{src/components → components}/CodeEditor/CodeMirror.d.ts +0 -0
- /package/types/{src/components → components}/CodeEditor/index.d.ts +0 -0
- /package/types/{src/components → components}/Columns/Column.d.ts +0 -0
- /package/types/{src/components → components}/Columns/Columns.d.ts +0 -0
- /package/types/{src/components → components}/Columns/index.d.ts +0 -0
- /package/types/{src/components → components}/ComboBox/ComboBoxOption.d.ts +0 -0
- /package/types/{src/components → components}/ComboBox/index.d.ts +0 -0
- /package/types/{src/components → components}/ComboBoxDropdown/ComboBoxDropdown.d.ts +0 -0
- /package/types/{src/components → components}/ComboBoxDropdown/index.d.ts +0 -0
- /package/types/{src/components → components}/ConsoleOutput/ConsoleOutput.d.ts +0 -0
- /package/types/{src/components → components}/ConsoleOutput/index.d.ts +0 -0
- /package/types/{src/components → components}/ContentLoader/ContentLoader.d.ts +0 -0
- /package/types/{src/components → components}/ContentLoader/IconsLoader.d.ts +0 -0
- /package/types/{src/components → components}/ContentLoader/index.d.ts +0 -0
- /package/types/{src/components → components}/Cuttable/Cuttable.d.ts +0 -0
- /package/types/{src/components → components}/Cuttable/index.d.ts +0 -0
- /package/types/{src/components → components}/Cuttable/useContentOverflow.d.ts +0 -0
- /package/types/{src/components → components}/Dialog/Dialog.d.ts +0 -0
- /package/types/{src/components → components}/Dialog/index.d.ts +0 -0
- /package/types/{src/components → components}/DistractionFreeModeContext/index.d.ts +0 -0
- /package/types/{src/components → components}/Drawer/Drawer.d.ts +0 -0
- /package/types/{src/components → components}/Drawer/DrawerProgress.d.ts +0 -0
- /package/types/{src/components → components}/Drawer/Header.d.ts +0 -0
- /package/types/{src/components → components}/Drawer/index.d.ts +0 -0
- /package/types/{src/components → components}/Dropdown/Dropdown.d.ts +0 -0
- /package/types/{src/components → components}/Dropdown/index.d.ts +0 -0
- /package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessage.d.ts +0 -0
- /package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts +0 -0
- /package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessageDescription.d.ts +0 -0
- /package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessageSeparator.d.ts +0 -0
- /package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts +0 -0
- /package/types/{src/components → components}/ExtendedStatusMessage/index.d.ts +0 -0
- /package/types/{src/components → components}/Figure/Figure.d.ts +0 -0
- /package/types/{src/components → components}/Figure/index.d.ts +0 -0
- /package/types/{src/components → components}/FocusTrap/index.d.ts +0 -0
- /package/types/{src/components → components}/Form/Form.d.ts +0 -0
- /package/types/{src/components → components}/Form/index.d.ts +0 -0
- /package/types/{src/components → components}/Form/types.d.ts +0 -0
- /package/types/{src/components → components}/Form/utils.d.ts +0 -0
- /package/types/{src/components → components}/FormField/FormField.d.ts +0 -0
- /package/types/{src/components → components}/FormField/index.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldCheckbox/FormFieldCheckbox.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldCheckbox/index.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldPassword/FormFieldPassword.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldPassword/PasswordMeter.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldPassword/estimatePassword.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldPassword/generatePassword.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldPassword/index.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldRadioButtons/FormFieldRadioButtons.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldRadioButtons/index.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldSelect/FormFieldSelect.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldSelect/index.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldText/FormFieldText.d.ts +0 -0
- /package/types/{src/components → components}/FormFieldText/index.d.ts +0 -0
- /package/types/{src/components → components}/Grid/Grid.d.ts +0 -0
- /package/types/{src/components → components}/Grid/index.d.ts +0 -0
- /package/types/{src/components → components}/GridCol/GridCol.d.ts +0 -0
- /package/types/{src/components → components}/GridCol/index.d.ts +0 -0
- /package/types/{src/components → components}/Heading/Heading.d.ts +0 -0
- /package/types/{src/components → components}/Heading/index.d.ts +0 -0
- /package/types/{src/components → components}/Hint/Hint.d.ts +0 -0
- /package/types/{src/components → components}/Hint/index.d.ts +0 -0
- /package/types/{src/components → components}/Icon/Icon.d.ts +0 -0
- /package/types/{src/components → components}/Icon/constants.d.ts +0 -0
- /package/types/{src/components → components}/Icon/index.d.ts +0 -0
- /package/types/{src/components → components}/Icon/oldIconNames.d.ts +0 -0
- /package/types/{src/components → components}/InPlaceEdit/Editor.d.ts +0 -0
- /package/types/{src/components → components}/InPlaceEdit/InPlaceEdit.d.ts +0 -0
- /package/types/{src/components → components}/InPlaceEdit/index.d.ts +0 -0
- /package/types/{src/components → components}/InPlaceEdit/locale/en-US.d.ts +0 -0
- /package/types/{src/components → components}/Input/Input.d.ts +0 -0
- /package/types/{src/components → components}/Input/index.d.ts +0 -0
- /package/types/{src/components → components}/InputFile/InputFile.d.ts +0 -0
- /package/types/{src/components → components}/InputFile/index.d.ts +0 -0
- /package/types/{src/components → components}/InputNumber/InputNumber.d.ts +0 -0
- /package/types/{src/components → components}/InputNumber/index.d.ts +0 -0
- /package/types/{src/components → components}/Item/Item.d.ts +0 -0
- /package/types/{src/components → components}/Item/index.d.ts +0 -0
- /package/types/{src/components → components}/ItemLink/ItemLink.d.ts +0 -0
- /package/types/{src/components → components}/ItemLink/index.d.ts +0 -0
- /package/types/{src/components → components}/ItemList/ItemList.d.ts +0 -0
- /package/types/{src/components → components}/ItemList/index.d.ts +0 -0
- /package/types/{src/components → components}/Label/Label.d.ts +0 -0
- /package/types/{src/components → components}/Label/index.d.ts +0 -0
- /package/types/{src/components → components}/Layer/Layer.d.ts +0 -0
- /package/types/{src/components → components}/Layer/index.d.ts +0 -0
- /package/types/{src/components → components}/Layout/Layout.d.ts +0 -0
- /package/types/{src/components → components}/Layout/index.d.ts +0 -0
- /package/types/{src/components → components}/Link/Link.d.ts +0 -0
- /package/types/{src/components → components}/Link/index.d.ts +0 -0
- /package/types/{src/components → components}/List/ListAction.d.ts +0 -0
- /package/types/{src/components → components}/List/ListActions.d.ts +0 -0
- /package/types/{src/components → components}/List/ListActionsDivider.d.ts +0 -0
- /package/types/{src/components → components}/List/ListEmptyView.d.ts +0 -0
- /package/types/{src/components → components}/List/ListOperation.d.ts +0 -0
- /package/types/{src/components → components}/List/ListOperationContext.d.ts +0 -0
- /package/types/{src/components → components}/List/index.d.ts +0 -0
- /package/types/{src/components → components}/LocaleProvider/LocaleProvider.d.ts +0 -0
- /package/types/{src/components → components}/LocaleProvider/index.d.ts +0 -0
- /package/types/{src/components → components}/Markdown/Markdown.d.ts +0 -0
- /package/types/{src/components → components}/Markdown/index.d.ts +0 -0
- /package/types/{src/components → components}/Media/Media.d.ts +0 -0
- /package/types/{src/components → components}/Media/MediaSection.d.ts +0 -0
- /package/types/{src/components → components}/Media/index.d.ts +0 -0
- /package/types/{src/components → components}/Menu/Menu.d.ts +0 -0
- /package/types/{src/components → components}/Menu/MenuBaseItem.d.ts +0 -0
- /package/types/{src/components → components}/Menu/MenuDivider.d.ts +0 -0
- /package/types/{src/components → components}/Menu/MenuHeader.d.ts +0 -0
- /package/types/{src/components → components}/Menu/MenuItem.d.ts +0 -0
- /package/types/{src/components → components}/Menu/MenuSelectableItem.d.ts +0 -0
- /package/types/{src/components → components}/Menu/index.d.ts +0 -0
- /package/types/{src/components → components}/OnDarkContext/index.d.ts +0 -0
- /package/types/{src/components → components}/Overlay/Overlay.d.ts +0 -0
- /package/types/{src/components → components}/Overlay/index.d.ts +0 -0
- /package/types/{src/components → components}/PageHeader/PageHeader.d.ts +0 -0
- /package/types/{src/components → components}/PageHeader/index.d.ts +0 -0
- /package/types/{src/components → components}/Pagination/Pagination.d.ts +0 -0
- /package/types/{src/components → components}/Pagination/index.d.ts +0 -0
- /package/types/{src/components → components}/Panel/Panel.d.ts +0 -0
- /package/types/{src/components → components}/Panel/index.d.ts +0 -0
- /package/types/{src/components → components}/Paragraph/Paragraph.d.ts +0 -0
- /package/types/{src/components → components}/Paragraph/index.d.ts +0 -0
- /package/types/{src/components → components}/Plaintext/Plaintext.d.ts +0 -0
- /package/types/{src/components → components}/Plaintext/index.d.ts +0 -0
- /package/types/{src/components → components}/Popover/Popover.d.ts +0 -0
- /package/types/{src/components → components}/Popover/index.d.ts +0 -0
- /package/types/{src/components → components}/Popper/Popper.d.ts +0 -0
- /package/types/{src/components → components}/Popper/index.d.ts +0 -0
- /package/types/{src/components → components}/Progress/Progress.d.ts +0 -0
- /package/types/{src/components → components}/Progress/index.d.ts +0 -0
- /package/types/{src/components → components}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/types/{src/components → components}/ProgressBar/ProgressIndicator.d.ts +0 -0
- /package/types/{src/components → components}/ProgressBar/index.d.ts +0 -0
- /package/types/{src/components → components}/ProgressDialog/ProgressDialog.d.ts +0 -0
- /package/types/{src/components → components}/ProgressDialog/index.d.ts +0 -0
- /package/types/{src/components → components}/ProgressStep/ProgressStep.d.ts +0 -0
- /package/types/{src/components → components}/ProgressStep/index.d.ts +0 -0
- /package/types/{src/components → components}/Radio/Radio.d.ts +0 -0
- /package/types/{src/components → components}/Radio/index.d.ts +0 -0
- /package/types/{src/components → components}/Rating/Rating.d.ts +0 -0
- /package/types/{src/components → components}/Rating/index.d.ts +0 -0
- /package/types/{src/components → components}/ResponsiveContext/index.d.ts +0 -0
- /package/types/{src/components → components}/Section/SectionItem.d.ts +0 -0
- /package/types/{src/components → components}/Section/index.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/ButtonGroupControl.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/DropdownControl.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/SegmentedControl.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/getSelectedValues.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/index.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/types.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/useResponsive.d.ts +0 -0
- /package/types/{src/components → components}/SegmentedControl/useSelected.d.ts +0 -0
- /package/types/{src/components → components}/Select/MultiValue.d.ts +0 -0
- /package/types/{src/components → components}/Select/Select.d.ts +0 -0
- /package/types/{src/components → components}/Select/SelectControl.d.ts +0 -0
- /package/types/{src/components → components}/Select/SelectOption.d.ts +0 -0
- /package/types/{src/components → components}/Select/SelectOptionGroup.d.ts +0 -0
- /package/types/{src/components → components}/Select/index.d.ts +0 -0
- /package/types/{src/components → components}/Select/structures.d.ts +0 -0
- /package/types/{src/components → components}/Skeleton/Skeleton.d.ts +0 -0
- /package/types/{src/components → components}/Skeleton/SkeletonTabs.d.ts +0 -0
- /package/types/{src/components → components}/Skeleton/SkeletonText.d.ts +0 -0
- /package/types/{src/components → components}/Skeleton/index.d.ts +0 -0
- /package/types/{src/components → components}/SplitButton/SplitButton.d.ts +0 -0
- /package/types/{src/components → components}/SplitButton/index.d.ts +0 -0
- /package/types/{src/components → components}/Spot/Spot.d.ts +0 -0
- /package/types/{src/components → components}/Spot/SpotPopup.d.ts +0 -0
- /package/types/{src/components → components}/Spot/SpotPulsar.d.ts +0 -0
- /package/types/{src/components → components}/Spot/index.d.ts +0 -0
- /package/types/{src/components → components}/Squeezer/index.d.ts +0 -0
- /package/types/{src/components → components}/Status/Status.d.ts +0 -0
- /package/types/{src/components → components}/Status/index.d.ts +0 -0
- /package/types/{src/components → components}/StatusMessage/StatusMessage.d.ts +0 -0
- /package/types/{src/components → components}/StatusMessage/index.d.ts +0 -0
- /package/types/{src/components → components}/Subnav/Subnav.d.ts +0 -0
- /package/types/{src/components → components}/Subnav/index.d.ts +0 -0
- /package/types/{src/components → components}/Switch/Switch.d.ts +0 -0
- /package/types/{src/components → components}/Switch/index.d.ts +0 -0
- /package/types/{src/components → components}/SwitchesPanel/SwitchesPanel.d.ts +0 -0
- /package/types/{src/components → components}/SwitchesPanel/index.d.ts +0 -0
- /package/types/{src/components → components}/SwitchesPanelItem/SwitchesPanelItem.d.ts +0 -0
- /package/types/{src/components → components}/SwitchesPanelItem/index.d.ts +0 -0
- /package/types/{src/components → components}/Tabs/SearchBar.d.ts +0 -0
- /package/types/{src/components → components}/Tabs/Tab.d.ts +0 -0
- /package/types/{src/components → components}/Tabs/Tabs.d.ts +0 -0
- /package/types/{src/components → components}/Tabs/index.d.ts +0 -0
- /package/types/{src/components → components}/Text/Text.d.ts +0 -0
- /package/types/{src/components → components}/Text/index.d.ts +0 -0
- /package/types/{src/components → components}/TextArea/TextArea.d.ts +0 -0
- /package/types/{src/components → components}/TextArea/calculateNodeHeight.d.ts +0 -0
- /package/types/{src/components → components}/TextArea/index.d.ts +0 -0
- /package/types/{src/components → components}/Toast/index.d.ts +0 -0
- /package/types/{src/components → components}/Toaster/index.d.ts +0 -0
- /package/types/{src/components → components}/Toolbar/Toolbar.d.ts +0 -0
- /package/types/{src/components → components}/Toolbar/ToolbarBetaProvider.d.ts +0 -0
- /package/types/{src/components → components}/Toolbar/ToolbarExpander.d.ts +0 -0
- /package/types/{src/components → components}/Toolbar/ToolbarItem.d.ts +0 -0
- /package/types/{src/components → components}/Toolbar/ToolbarMenu.d.ts +0 -0
- /package/types/{src/components → components}/Toolbar/index.d.ts +0 -0
- /package/types/{src/components → components}/Tooltip/Tooltip.d.ts +0 -0
- /package/types/{src/components → components}/Tooltip/index.d.ts +0 -0
- /package/types/{src/components → components}/Tour/Tour.d.ts +0 -0
- /package/types/{src/components → components}/Tour/index.d.ts +0 -0
- /package/types/{src/components → components}/Translate/Translate.d.ts +0 -0
- /package/types/{src/components → components}/Translate/index.d.ts +0 -0
- /package/types/{src/components → components}/Translate/isLikeText.d.ts +0 -0
- /package/types/{src/components → components}/VerticalContext/index.d.ts +0 -0
- /package/types/{src/components → components}/intentIconMap.d.ts +0 -0
- /package/types/{src/hooks → hooks}/index.d.ts +0 -0
- /package/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/types/{src/utils → utils}/types/ComponentProps.d.ts +0 -0
- /package/types/{src/utils → utils}/types/DataAttributes.d.ts +0 -0
- /package/types/{src/utils → utils}/types/PolymorphicComponent.d.ts +0 -0
- /package/types/{src/utils → utils}/types/index.d.ts +0 -0
- /package/types/{src/utils.d.ts → utils.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Spinner';
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { ToastProps } from '../Toast';
|
|
3
|
-
import './Toaster.less';
|
|
4
|
-
type ToastPropsWithKey = ToastProps & {
|
|
5
|
-
key: string;
|
|
6
|
-
};
|
|
7
|
-
export type ToasterProps = {
|
|
8
|
-
/**
|
|
9
|
-
* Toaster position
|
|
10
|
-
* @since 0.0.42
|
|
11
|
-
*/
|
|
12
|
-
position?: 'top-end' | 'bottom-end';
|
|
13
|
-
/**
|
|
14
|
-
* @since 0.0.47
|
|
15
|
-
*/
|
|
16
|
-
toasts?: ToastPropsWithKey[];
|
|
17
|
-
/**
|
|
18
|
-
* Maximum number of toaster messages that can be displayed at the same time on a screen
|
|
19
|
-
* @since 1.4.1
|
|
20
|
-
*/
|
|
21
|
-
maxToastsNumber?: number;
|
|
22
|
-
/**
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
|
-
/**
|
|
27
|
-
* @ignore
|
|
28
|
-
*/
|
|
29
|
-
baseClassName?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Triggered when a toast was closed
|
|
32
|
-
* @since 1.6.0
|
|
33
|
-
*/
|
|
34
|
-
onToastClose?: (key: string) => void;
|
|
35
|
-
};
|
|
36
|
-
type ToasterState = {
|
|
37
|
-
toasts: ToastPropsWithKey[];
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* `Toaster` is used for notifying about events happened in the system. For example, about results of performed operations.
|
|
41
|
-
* @since 0.0.42
|
|
42
|
-
*/
|
|
43
|
-
export default class Toaster extends Component<ToasterProps, ToasterState> {
|
|
44
|
-
static defaultProps: {
|
|
45
|
-
position: string;
|
|
46
|
-
baseClassName: string;
|
|
47
|
-
};
|
|
48
|
-
static getDerivedStateFromProps({ toasts, maxToastsNumber }: Readonly<ToasterProps>): {
|
|
49
|
-
toasts: ToastPropsWithKey[];
|
|
50
|
-
} | null;
|
|
51
|
-
static create: (props?: {}, container?: HTMLElement) => void;
|
|
52
|
-
state: ToasterState;
|
|
53
|
-
isControlled(): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Add a new toast
|
|
56
|
-
*
|
|
57
|
-
* `intent` - Visual intent color to apply to component. (Type: `oneOf` 'info', 'success', 'warning', 'danger'. *Required*.)<br>
|
|
58
|
-
* `accent` - Contrast (light) version of the component. (Type: `boolean`. Default: 'undefined'.)<br>
|
|
59
|
-
* `icon` - Name of icon or [Icon](#!/Icon) component. (Type: `oneOfType` 'string', 'object', 'element'. Default: `undefined`.)<br>
|
|
60
|
-
* `message` - Message to display in the body of the toast. (Type: `any`. Default: `undefined`.)<br>
|
|
61
|
-
* `onClose` - onClose handler. (Type: `func`. Default: `undefined`.)<br>
|
|
62
|
-
* `closable` - Show close control (cross mark). (Type: `boolean`. Default: `true`.)<br>
|
|
63
|
-
* `autoClosable` - Whether call `onClose` after 6 seconds or not.
|
|
64
|
-
* Enabled by default when the position is "top-end" and a toast has "success" intent. (Type: `boolean`. Default: 'undefined'.)<br>
|
|
65
|
-
* ---
|
|
66
|
-
* @param {Object} props **Toast props**:
|
|
67
|
-
* @returns {string} New toast key
|
|
68
|
-
* @public
|
|
69
|
-
*/
|
|
70
|
-
add(props: ToastProps): string;
|
|
71
|
-
/**
|
|
72
|
-
* Update toast by key
|
|
73
|
-
*
|
|
74
|
-
* @param {string} key
|
|
75
|
-
* @param {Object} props New props
|
|
76
|
-
* @returns {string} Updated toast key
|
|
77
|
-
* @public
|
|
78
|
-
*/
|
|
79
|
-
update(key: string, props: ToastProps): string;
|
|
80
|
-
/**
|
|
81
|
-
* Remove toast by key
|
|
82
|
-
*
|
|
83
|
-
* @param {string} key
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
remove(key: string): void;
|
|
87
|
-
/**
|
|
88
|
-
* Clear all toasts
|
|
89
|
-
*
|
|
90
|
-
* @public
|
|
91
|
-
*/
|
|
92
|
-
clear(): void;
|
|
93
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
94
|
-
}
|
|
95
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/types/{src/components → components}/ClosingConfirmation/useClosingConfirmation.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessage.d.ts
RENAMED
|
File without changes
|
/package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessageActions.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/types/{src/components → components}/ExtendedStatusMessage/ExtendedStatusMessageTitle.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/types/{src/components → components}/FormFieldRadioButtons/FormFieldRadioButtons.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|