amis 1.4.2-beta.6 → 1.5.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/lib/Schema.d.ts +11 -3
- package/lib/Schema.js.map +1 -1
- package/lib/components/Alert2.d.ts +26 -21
- package/lib/components/Alert2.js +11 -4
- package/lib/components/Alert2.js.map +2 -2
- package/lib/components/AnchorNav.d.ts +22 -21
- package/lib/components/AnchorNav.js +7 -3
- package/lib/components/AnchorNav.js.map +2 -2
- package/lib/components/ArrayInput.d.ts +84 -84
- package/lib/components/AssociatedSelection.d.ts +930 -0
- package/lib/components/AssociatedSelection.js +89 -0
- package/lib/components/AssociatedSelection.js.map +13 -0
- package/lib/components/Badge.js +2 -2
- package/lib/components/Badge.js.map +2 -2
- package/lib/components/Button.js +1 -1
- package/lib/components/Button.js.map +2 -2
- package/lib/components/{ChainedCheckboxes.d.ts → ChainedSelection.d.ts} +267 -98
- package/lib/components/{ChainedCheckboxes.js → ChainedSelection.js} +30 -24
- package/lib/components/ChainedSelection.js.map +13 -0
- package/lib/components/Checkbox.d.ts +20 -20
- package/lib/components/Collapse.d.ts +51 -23
- package/lib/components/Collapse.js +70 -11
- package/lib/components/Collapse.js.map +2 -2
- package/lib/components/CollapseGroup.d.ts +88 -0
- package/lib/components/CollapseGroup.js +81 -0
- package/lib/components/CollapseGroup.js.map +13 -0
- package/lib/components/ColorPicker.d.ts +89 -85
- package/lib/components/ColorPicker.js +17 -4
- package/lib/components/ColorPicker.js.map +2 -2
- package/lib/components/DatePicker.d.ts +84 -84
- package/lib/components/DateRangePicker.d.ts +84 -84
- package/lib/components/Drawer.js +2 -2
- package/lib/components/Drawer.js.map +2 -2
- package/lib/components/Editor.d.ts +84 -84
- package/lib/components/GridNav.d.ts +52 -0
- package/lib/components/GridNav.js +123 -0
- package/lib/components/GridNav.js.map +13 -0
- package/lib/components/GroupedSelection.d.ts +907 -0
- package/lib/components/GroupedSelection.js +48 -0
- package/lib/components/GroupedSelection.js.map +13 -0
- package/lib/components/InputBox.d.ts +22 -21
- package/lib/components/InputBox.js +10 -2
- package/lib/components/InputBox.js.map +2 -2
- package/lib/components/Link.d.ts +29 -36
- package/lib/components/Link.js +14 -15
- package/lib/components/Link.js.map +2 -2
- package/lib/components/ListGroup.d.ts +21 -21
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/ModalManager.js.map +2 -2
- package/lib/components/MonthRangePicker.d.ts +84 -84
- package/lib/components/NumberInput.d.ts +20 -20
- package/lib/components/Overlay.js +5 -0
- package/lib/components/Overlay.js.map +2 -2
- package/lib/components/PickerColumn.d.ts +514 -0
- package/lib/components/PickerColumn.js +279 -0
- package/lib/components/PickerColumn.js.map +13 -0
- package/lib/components/PickerContainer.d.ts +513 -0
- package/lib/components/PickerContainer.js +96 -0
- package/lib/components/PickerContainer.js.map +13 -0
- package/lib/components/PopOver.d.ts +1 -0
- package/lib/components/PopOver.js +12 -1
- package/lib/components/PopOver.js.map +2 -2
- package/lib/components/Progress.d.ts +85 -0
- package/lib/components/Progress.js +81 -0
- package/lib/components/Progress.js.map +13 -0
- package/lib/components/Radios.d.ts +22 -21
- package/lib/components/Radios.js +1 -0
- package/lib/components/Radios.js.map +2 -2
- package/lib/components/Rating.d.ts +21 -21
- package/lib/components/ResultBox.d.ts +84 -84
- package/lib/components/ResultBox.js +10 -2
- package/lib/components/ResultBox.js.map +2 -2
- package/lib/components/SearchBox.d.ts +84 -84
- package/lib/components/Select.d.ts +245 -237
- package/lib/components/Select.js +25 -4
- package/lib/components/Select.js.map +2 -2
- package/lib/components/{Checkboxes.d.ts → Selection.d.ts} +273 -98
- package/lib/components/Selection.js +134 -0
- package/lib/components/Selection.js.map +13 -0
- package/lib/components/{TableCheckboxes.d.ts → TableSelection.d.ts} +266 -96
- package/lib/components/{TableCheckboxes.js → TableSelection.js} +30 -30
- package/lib/components/TableSelection.js.map +13 -0
- package/lib/components/Tabs.d.ts +20 -20
- package/lib/components/TabsTransfer.d.ts +84 -84
- package/lib/components/TabsTransfer.js +9 -9
- package/lib/components/TabsTransfer.js.map +2 -2
- package/lib/components/TabsTransferPicker.d.ts +489 -0
- package/lib/components/TabsTransferPicker.js +60 -0
- package/lib/components/TabsTransferPicker.js.map +13 -0
- package/lib/components/Toast.d.ts +90 -87
- package/lib/components/Toast.js +15 -5
- package/lib/components/Toast.js.map +2 -2
- package/lib/components/Transfer.d.ts +908 -274
- package/lib/components/Transfer.js +31 -24
- package/lib/components/Transfer.js.map +2 -2
- package/lib/components/TransferDropDown.d.ts +488 -0
- package/lib/components/TransferDropDown.js +59 -0
- package/lib/components/TransferDropDown.js.map +13 -0
- package/lib/components/TransferPicker.d.ts +493 -0
- package/lib/components/TransferPicker.js +60 -0
- package/lib/components/TransferPicker.js.map +13 -0
- package/lib/components/Tree.d.ts +115 -84
- package/lib/components/Tree.js +183 -30
- package/lib/components/Tree.js.map +2 -2
- package/lib/components/{TreeCheckboxes.d.ts → TreeSelection.d.ts} +269 -99
- package/lib/components/{TreeCheckboxes.js → TreeSelection.js} +36 -32
- package/lib/components/TreeSelection.js.map +13 -0
- package/lib/components/condition-builder/Field.js +4 -2
- package/lib/components/condition-builder/Field.js.map +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Func.js.map +2 -2
- package/lib/components/condition-builder/InputSwitch.js +2 -2
- package/lib/components/condition-builder/InputSwitch.js.map +2 -2
- package/lib/components/condition-builder/Item.js +3 -3
- package/lib/components/condition-builder/Item.js.map +2 -2
- package/lib/components/icons.js +10 -0
- package/lib/components/icons.js.map +2 -2
- package/lib/components/index.d.ts +8 -8
- package/lib/components/index.js +16 -16
- package/lib/components/index.js.map +2 -2
- package/lib/envOverwrite.d.ts +1 -1
- package/lib/envOverwrite.js +24 -9
- package/lib/envOverwrite.js.map +2 -2
- package/lib/factory.d.ts +15 -1
- package/lib/factory.js +35 -6
- package/lib/factory.js.map +2 -2
- package/lib/helper.css.map +1 -1
- package/lib/hooks/index.d.ts +5 -0
- package/lib/hooks/index.js +14 -0
- package/lib/hooks/index.js.map +13 -0
- package/lib/hooks/use-set-state.d.ts +2 -0
- package/lib/hooks/use-set-state.js +15 -0
- package/lib/hooks/use-set-state.js.map +13 -0
- package/lib/hooks/use-touch.d.ts +16 -0
- package/lib/hooks/use-touch.js +73 -0
- package/lib/hooks/use-touch.js.map +13 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-update-effect.js +17 -0
- package/lib/hooks/use-update-effect.js.map +13 -0
- package/lib/icons/alert-danger.js +7 -0
- package/lib/icons/alert-info.js +7 -0
- package/lib/icons/alert-success.js +7 -0
- package/lib/icons/alert-warning.js +7 -0
- package/lib/icons/download.js +7 -0
- package/lib/icons/drag-bar.js +10 -3
- package/lib/index.d.ts +5 -0
- package/lib/index.js +6 -1
- package/lib/index.js.map +2 -2
- package/lib/locale/de-DE.js +2 -0
- package/lib/locale/de-DE.js.map +2 -2
- package/lib/locale/en-US.js +3 -0
- package/lib/locale/en-US.js.map +2 -2
- package/lib/locale/zh-CN.js +5 -2
- package/lib/locale/zh-CN.js.map +2 -2
- package/lib/renderers/Action.d.ts +10 -5
- package/lib/renderers/Action.js +23 -5
- package/lib/renderers/Action.js.map +2 -2
- package/lib/renderers/Alert.d.ts +21 -1
- package/lib/renderers/Alert.js.map +2 -2
- package/lib/renderers/AnchorNav.d.ts +1 -0
- package/lib/renderers/AnchorNav.js +2 -2
- package/lib/renderers/AnchorNav.js.map +2 -2
- package/lib/renderers/Avatar.js +3 -3
- package/lib/renderers/Avatar.js.map +2 -2
- package/lib/renderers/Breadcrumb.js +1 -1
- package/lib/renderers/Breadcrumb.js.map +2 -2
- package/lib/renderers/CRUD.d.ts +5 -0
- package/lib/renderers/CRUD.js +25 -4
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Card.d.ts +5 -0
- package/lib/renderers/Card.js +34 -23
- package/lib/renderers/Card.js.map +2 -2
- package/lib/renderers/Collapse.d.ts +25 -20
- package/lib/renderers/Collapse.js +10 -72
- package/lib/renderers/Collapse.js.map +2 -2
- package/lib/renderers/CollapseGroup.d.ts +42 -0
- package/lib/renderers/CollapseGroup.js +33 -0
- package/lib/renderers/CollapseGroup.js.map +13 -0
- package/lib/renderers/Form/ConditionBuilder.js +2 -2
- package/lib/renderers/Form/ConditionBuilder.js.map +2 -2
- package/lib/renderers/Form/DiffEditor.d.ts +4 -3
- package/lib/renderers/Form/Editor.d.ts +3 -2
- package/lib/renderers/Form/InputCity.d.ts +84 -84
- package/lib/renderers/Form/InputCity.js +7 -6
- package/lib/renderers/Form/InputCity.js.map +2 -2
- package/lib/renderers/Form/InputColor.d.ts +86 -85
- package/lib/renderers/Form/InputColor.js +1 -1
- package/lib/renderers/Form/InputColor.js.map +2 -2
- package/lib/renderers/Form/InputFile.d.ts +6 -0
- package/lib/renderers/Form/InputFile.js +28 -8
- package/lib/renderers/Form/InputFile.js.map +2 -2
- package/lib/renderers/Form/InputImage.js +11 -4
- package/lib/renderers/Form/InputImage.js.map +2 -2
- package/lib/renderers/Form/Item.d.ts +1 -1
- package/lib/renderers/Form/Item.js +2 -1
- package/lib/renderers/Form/Item.js.map +2 -2
- package/lib/renderers/Form/Options.js +25 -4
- package/lib/renderers/Form/Options.js.map +2 -2
- package/lib/renderers/Form/Select.d.ts +42 -4
- package/lib/renderers/Form/Select.js +37 -3
- package/lib/renderers/Form/Select.js.map +2 -2
- package/lib/renderers/Form/TabsTransferPicker.d.ts +48 -0
- package/lib/renderers/Form/TabsTransferPicker.js +29 -0
- package/lib/renderers/Form/TabsTransferPicker.js.map +13 -0
- package/lib/renderers/Form/Transfer.js +18 -3
- package/lib/renderers/Form/Transfer.js.map +2 -2
- package/lib/renderers/Form/TransferPicker.d.ts +52 -0
- package/lib/renderers/Form/TransferPicker.js +43 -0
- package/lib/renderers/Form/TransferPicker.js.map +13 -0
- package/lib/renderers/Form/TreeSelect.js +2 -2
- package/lib/renderers/Form/TreeSelect.js.map +2 -2
- package/lib/renderers/Form/index.d.ts +5 -0
- package/lib/renderers/Form/index.js +5 -3
- package/lib/renderers/Form/index.js.map +2 -2
- package/lib/renderers/Form/wrapControl.js +13 -1
- package/lib/renderers/Form/wrapControl.js.map +2 -2
- package/lib/renderers/GridNav.d.ts +99 -0
- package/lib/renderers/GridNav.js +82 -0
- package/lib/renderers/GridNav.js.map +13 -0
- package/lib/renderers/IFrame.js +1 -3
- package/lib/renderers/IFrame.js.map +2 -2
- package/lib/renderers/Image.js +7 -5
- package/lib/renderers/Image.js.map +2 -2
- package/lib/renderers/Json.d.ts +4 -0
- package/lib/renderers/Json.js +4 -13
- package/lib/renderers/Json.js.map +2 -2
- package/lib/renderers/Link.d.ts +4 -2
- package/lib/renderers/Link.js +15 -8
- package/lib/renderers/Link.js.map +2 -2
- package/lib/renderers/List.js +1 -1
- package/lib/renderers/List.js.map +2 -2
- package/lib/renderers/Nav.d.ts +21 -21
- package/lib/renderers/Nav.js +37 -19
- package/lib/renderers/Nav.js.map +2 -2
- package/lib/renderers/Page.d.ts +18 -0
- package/lib/renderers/Page.js +53 -9
- package/lib/renderers/Page.js.map +2 -2
- package/lib/renderers/Portlet.d.ts +125 -0
- package/lib/renderers/Portlet.js +156 -0
- package/lib/renderers/Portlet.js.map +13 -0
- package/lib/renderers/Progress.d.ts +23 -3
- package/lib/renderers/Progress.js +15 -19
- package/lib/renderers/Progress.js.map +2 -2
- package/lib/renderers/Property.js +1 -1
- package/lib/renderers/Property.js.map +2 -2
- package/lib/renderers/Table/ColumnToggler.js +1 -1
- package/lib/renderers/Table/ColumnToggler.js.map +2 -2
- package/lib/renderers/Table/TableContent.d.ts +4 -1
- package/lib/renderers/Table/TableContent.js +21 -1
- package/lib/renderers/Table/TableContent.js.map +2 -2
- package/lib/renderers/Table/index.d.ts +5 -1
- package/lib/renderers/Table/index.js +65 -30
- package/lib/renderers/Table/index.js.map +2 -2
- package/lib/renderers/Tabs.js +9 -1
- package/lib/renderers/Tabs.js.map +2 -2
- package/lib/renderers/WebComponent.js +1 -1
- package/lib/renderers/WebComponent.js.map +2 -2
- package/lib/store/combo.d.ts +2 -2
- package/lib/store/form.d.ts +1 -1
- package/lib/store/form.js +3 -5
- package/lib/store/form.js.map +2 -2
- package/lib/store/formItem.js +44 -4
- package/lib/store/formItem.js.map +2 -2
- package/lib/store/table.d.ts +3 -2
- package/lib/store/table.js +35 -12
- package/lib/store/table.js.map +2 -2
- package/lib/themes/ang-ie11.css +934 -222
- package/lib/themes/ang.css +934 -222
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +934 -222
- package/lib/themes/antd.css +934 -222
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +970 -260
- package/lib/themes/cxd.css +970 -260
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +934 -222
- package/lib/themes/dark.css +934 -222
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default.css +970 -260
- package/lib/themes/default.css.map +1 -1
- package/lib/types.d.ts +38 -1
- package/lib/types.js +0 -5
- package/lib/types.js.map +2 -2
- package/lib/utils/api.d.ts +3 -2
- package/lib/utils/api.js +90 -17
- package/lib/utils/api.js.map +2 -2
- package/lib/utils/dom.d.ts +4 -0
- package/lib/utils/dom.js +11 -1
- package/lib/utils/dom.js.map +2 -2
- package/lib/utils/helper.d.ts +12 -23
- package/lib/utils/helper.js +62 -166
- package/lib/utils/helper.js.map +2 -2
- package/lib/utils/tpl-builtin.d.ts +2 -20
- package/lib/utils/tpl-builtin.js +25 -743
- package/lib/utils/tpl-builtin.js.map +2 -2
- package/lib/utils/tpl.js +24 -0
- package/lib/utils/tpl.js.map +2 -2
- package/package.json +5 -2
- package/schema.json +3966 -1263
- package/scss/_mixins.scss +1 -3
- package/scss/_properties.scss +42 -13
- package/scss/base/_common.scss +3 -0
- package/scss/base/_normalize.scss +2 -0
- package/scss/components/_alert.scss +28 -5
- package/scss/components/_anchor-nav.scss +89 -29
- package/scss/components/_button.scss +12 -0
- package/scss/components/_card.scss +9 -15
- package/scss/components/_collapse-group.scss +15 -0
- package/scss/components/_collapse.scss +48 -23
- package/scss/components/_grid-nav.scss +128 -0
- package/scss/components/_images.scss +1 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_nav.scss +2 -7
- package/scss/components/_page.scss +35 -2
- package/scss/components/_picker-columns.scss +124 -0
- package/scss/components/_popover.scss +13 -0
- package/scss/components/_portlet.scss +51 -0
- package/scss/components/_progress.scss +141 -33
- package/scss/components/_result-box.scss +1 -0
- package/scss/components/_spinner.scss +5 -4
- package/scss/components/_status.scss +1 -1
- package/scss/components/_table.scss +32 -0
- package/scss/components/_toast.scss +41 -11
- package/scss/components/form/_checks.scss +0 -351
- package/scss/components/form/_color.scss +32 -3
- package/scss/components/form/_combo.scss +4 -0
- package/scss/components/form/_fieldset.scss +6 -1
- package/scss/components/form/_file.scss +11 -0
- package/scss/components/form/_form.scss +48 -0
- package/scss/components/form/_selection.scss +354 -0
- package/scss/components/form/_transfer.scss +76 -18
- package/scss/components/form/_tree.scss +42 -0
- package/scss/themes/_common.scss +6 -0
- package/scss/themes/_cxd-variables.scss +13 -6
- package/scss/themes/cxd.scss +19 -20
- package/sdk/ang-ie11.css +1065 -246
- package/sdk/ang.css +1069 -230
- package/sdk/antd-ie11.css +1068 -249
- package/sdk/antd.css +1069 -230
- package/sdk/charts.js +17 -17
- package/sdk/color-picker.js +65 -69
- package/sdk/cropperjs.js +3 -3
- package/sdk/cxd-ie11.css +1081 -268
- package/sdk/cxd.css +1116 -279
- package/sdk/dark-ie11.css +1069 -250
- package/sdk/dark.css +1069 -230
- package/sdk/exceljs.js +1 -1
- package/sdk/helper.css.map +1 -1
- package/sdk/iconfont.svg +2513 -0
- package/sdk/iconfont.ttf +0 -0
- package/sdk/iconfont.woff +0 -0
- package/sdk/locale/de-DE.js +2 -0
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +20 -28
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +1081 -268
- package/sdk/sdk.css +1116 -279
- package/sdk/sdk.js +1371 -1189
- package/sdk/thirds/hls.js/hls.js +18 -18
- package/sdk/thirds/mpegts.js/mpegts.js +2 -2
- package/sdk/tinymce.js +57 -57
- package/src/Schema.ts +19 -1
- package/src/components/Alert2.tsx +32 -4
- package/src/components/AnchorNav.tsx +15 -4
- package/src/components/{AssociatedCheckboxes.tsx → AssociatedSelection.tsx} +43 -37
- package/src/components/Badge.tsx +3 -3
- package/src/components/Button.tsx +1 -0
- package/src/components/{ChainedCheckboxes.tsx → ChainedSelection.tsx} +57 -40
- package/src/components/Collapse.tsx +139 -20
- package/src/components/CollapseGroup.tsx +130 -0
- package/src/components/ColorPicker.tsx +32 -10
- package/src/components/Drawer.tsx +8 -6
- package/src/components/GridNav.tsx +233 -0
- package/src/components/{ListCheckboxes.tsx → GroupedSelection.tsx} +26 -21
- package/src/components/InputBox.tsx +10 -9
- package/src/components/Link.tsx +28 -37
- package/src/components/ModalManager.ts +1 -1
- package/src/components/Overlay.tsx +6 -0
- package/src/components/PickerColumn.tsx +429 -0
- package/src/components/PickerContainer.tsx +128 -0
- package/src/components/PopOver.tsx +15 -1
- package/src/components/Progress.tsx +140 -0
- package/src/components/Radios.tsx +3 -8
- package/src/components/ResultBox.tsx +9 -9
- package/src/components/Select.tsx +57 -5
- package/src/components/{Checkboxes.tsx → Selection.tsx} +75 -21
- package/src/components/{TableCheckboxes.tsx → TableSelection.tsx} +46 -25
- package/src/components/TabsTransfer.tsx +13 -7
- package/src/components/TabsTransferPicker.tsx +85 -0
- package/src/components/Toast.tsx +48 -21
- package/src/components/Transfer.tsx +71 -50
- package/src/components/TransferDropDown.tsx +120 -0
- package/src/components/TransferPicker.tsx +91 -0
- package/src/components/Tree.tsx +194 -8
- package/src/components/{TreeCheckboxes.tsx → TreeSelection.tsx} +33 -26
- package/src/components/condition-builder/Field.tsx +7 -5
- package/src/components/condition-builder/Func.tsx +3 -3
- package/src/components/condition-builder/InputSwitch.tsx +3 -3
- package/src/components/condition-builder/Item.tsx +5 -12
- package/src/components/icons.tsx +10 -0
- package/src/components/index.tsx +13 -13
- package/src/envOverwrite.ts +20 -8
- package/src/factory.tsx +70 -9
- package/src/hooks/index.ts +5 -0
- package/src/hooks/use-set-state.ts +19 -0
- package/src/hooks/use-touch.ts +100 -0
- package/src/hooks/use-update-effect.ts +16 -0
- package/src/icons/alert-danger.svg +1 -0
- package/src/icons/alert-info.svg +1 -0
- package/src/icons/alert-success.svg +1 -0
- package/src/icons/alert-warning.svg +1 -0
- package/src/icons/download.svg +4 -0
- package/src/icons/drag-bar.svg +12 -6
- package/src/index.tsx +5 -0
- package/src/locale/de-DE.ts +2 -0
- package/src/locale/en-US.ts +3 -0
- package/src/locale/zh-CN.ts +5 -2
- package/src/renderers/Action.tsx +58 -3
- package/src/renderers/Alert.tsx +31 -1
- package/src/renderers/AnchorNav.tsx +4 -0
- package/src/renderers/Avatar.tsx +8 -4
- package/src/renderers/Breadcrumb.tsx +5 -1
- package/src/renderers/CRUD.tsx +29 -3
- package/src/renderers/Card.tsx +76 -36
- package/src/renderers/Collapse.tsx +70 -115
- package/src/renderers/CollapseGroup.tsx +80 -0
- package/src/renderers/Form/ConditionBuilder.tsx +2 -2
- package/src/renderers/Form/InputCity.tsx +4 -8
- package/src/renderers/Form/InputColor.tsx +4 -2
- package/src/renderers/Form/InputFile.tsx +65 -24
- package/src/renderers/Form/InputImage.tsx +11 -3
- package/src/renderers/Form/Item.tsx +3 -2
- package/src/renderers/Form/Options.tsx +29 -3
- package/src/renderers/Form/Select.tsx +162 -21
- package/src/renderers/Form/TabsTransferPicker.tsx +123 -0
- package/src/renderers/Form/Transfer.tsx +19 -4
- package/src/renderers/Form/TransferPicker.tsx +145 -0
- package/src/renderers/Form/TreeSelect.tsx +25 -0
- package/src/renderers/Form/index.tsx +15 -2
- package/src/renderers/Form/wrapControl.tsx +26 -1
- package/src/renderers/GridNav.tsx +204 -0
- package/src/renderers/IFrame.tsx +2 -4
- package/src/renderers/Image.tsx +19 -15
- package/src/renderers/Json.tsx +9 -9
- package/src/renderers/Link.tsx +29 -16
- package/src/renderers/List.tsx +1 -1
- package/src/renderers/Nav.tsx +105 -56
- package/src/renderers/Page.tsx +62 -1
- package/src/renderers/Portlet.tsx +423 -0
- package/src/renderers/Progress.tsx +56 -38
- package/src/renderers/Property.tsx +6 -4
- package/src/renderers/Table/ColumnToggler.tsx +1 -1
- package/src/renderers/Table/TableContent.tsx +40 -2
- package/src/renderers/Table/index.tsx +88 -43
- package/src/renderers/Tabs.tsx +9 -1
- package/src/renderers/WebComponent.tsx +2 -2
- package/src/store/form.ts +3 -9
- package/src/store/formItem.ts +94 -2
- package/src/store/table.ts +55 -14
- package/src/types.ts +58 -1
- package/src/utils/api.ts +120 -26
- package/src/utils/dom.tsx +12 -0
- package/src/utils/helper.ts +55 -185
- package/src/utils/tpl-builtin.ts +40 -866
- package/src/utils/tpl.ts +33 -0
- package/tsconfig-for-declaration.json +1 -1
- package/dump.rdb +0 -0
- package/lib/components/AssociatedCheckboxes.d.ts +0 -762
- package/lib/components/AssociatedCheckboxes.js +0 -90
- package/lib/components/AssociatedCheckboxes.js.map +0 -13
- package/lib/components/ChainedCheckboxes.js.map +0 -13
- package/lib/components/Checkboxes.js +0 -101
- package/lib/components/Checkboxes.js.map +0 -13
- package/lib/components/ListCheckboxes.d.ts +0 -739
- package/lib/components/ListCheckboxes.js +0 -48
- package/lib/components/ListCheckboxes.js.map +0 -13
- package/lib/components/ListRadios.d.ts +0 -763
- package/lib/components/ListRadios.js +0 -86
- package/lib/components/ListRadios.js.map +0 -13
- package/lib/components/TableCheckboxes.js.map +0 -13
- package/lib/components/TreeCheckboxes.js.map +0 -13
- package/lib/components/TreeRadios.d.ts +0 -838
- package/lib/components/TreeRadios.js +0 -116
- package/lib/components/TreeRadios.js.map +0 -13
- package/src/components/ListRadios.tsx +0 -159
- package/src/components/TreeRadios.tsx +0 -202
@@ -16,10 +16,12 @@ interface ToastComponentProps extends ThemeProps, LocaleProps {
|
|
16
16
|
closeButton: boolean;
|
17
17
|
showIcon?: boolean;
|
18
18
|
timeout: number;
|
19
|
+
errorTimeout: number;
|
19
20
|
className?: string;
|
20
21
|
}
|
21
22
|
interface Item extends Config {
|
22
|
-
|
23
|
+
title?: string | React.ReactNode;
|
24
|
+
body: string | React.ReactNode;
|
23
25
|
level: 'info' | 'success' | 'error' | 'warning';
|
24
26
|
id: string;
|
25
27
|
onDissmiss?: () => void;
|
@@ -29,7 +31,7 @@ interface ToastComponentState {
|
|
29
31
|
items: Array<Item>;
|
30
32
|
}
|
31
33
|
export declare class ToastComponent extends React.Component<ToastComponentProps, ToastComponentState> {
|
32
|
-
static defaultProps: Pick<ToastComponentProps, 'position' | 'closeButton' | 'timeout'>;
|
34
|
+
static defaultProps: Pick<ToastComponentProps, 'position' | 'closeButton' | 'timeout' | 'errorTimeout'>;
|
33
35
|
static themeKey: string;
|
34
36
|
hasRendered: boolean;
|
35
37
|
state: ToastComponentState;
|
@@ -44,21 +46,21 @@ export declare class ToastComponent extends React.Component<ToastComponentProps,
|
|
44
46
|
render(): JSX.Element[] | null;
|
45
47
|
}
|
46
48
|
declare const _default: {
|
47
|
-
new (props: (Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
49
|
+
new (props: (Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
48
50
|
locale?: string | undefined;
|
49
51
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
50
|
-
}, keyof ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
52
|
+
}, keyof ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
51
53
|
locale?: string | undefined;
|
52
54
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
53
55
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>): {
|
54
56
|
render(): JSX.Element;
|
55
57
|
context: any;
|
56
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
58
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
57
59
|
locale?: string | undefined;
|
58
60
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
59
61
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
60
62
|
forceUpdate(callback?: (() => void) | undefined): void;
|
61
|
-
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
63
|
+
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
62
64
|
locale?: string | undefined;
|
63
65
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
64
66
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
|
@@ -69,51 +71,51 @@ declare const _default: {
|
|
69
71
|
[key: string]: React.ReactInstance;
|
70
72
|
};
|
71
73
|
componentDidMount?(): void;
|
72
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
74
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
73
75
|
locale?: string | undefined;
|
74
76
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
75
77
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
76
78
|
componentWillUnmount?(): void;
|
77
79
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
78
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
80
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
79
81
|
locale?: string | undefined;
|
80
82
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
81
83
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
82
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
84
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
83
85
|
locale?: string | undefined;
|
84
86
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
85
87
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
86
88
|
componentWillMount?(): void;
|
87
89
|
UNSAFE_componentWillMount?(): void;
|
88
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
90
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
89
91
|
locale?: string | undefined;
|
90
92
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
91
93
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
92
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
94
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
93
95
|
locale?: string | undefined;
|
94
96
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
95
97
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
96
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
98
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
97
99
|
locale?: string | undefined;
|
98
100
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
99
101
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
100
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
102
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
101
103
|
locale?: string | undefined;
|
102
104
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
103
105
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
104
106
|
};
|
105
|
-
new (props: Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
107
|
+
new (props: Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
106
108
|
locale?: string | undefined;
|
107
109
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
108
110
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps, context: any): {
|
109
111
|
render(): JSX.Element;
|
110
112
|
context: any;
|
111
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
113
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
112
114
|
locale?: string | undefined;
|
113
115
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
114
116
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
115
117
|
forceUpdate(callback?: (() => void) | undefined): void;
|
116
|
-
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
118
|
+
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
117
119
|
locale?: string | undefined;
|
118
120
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
119
121
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
|
@@ -124,35 +126,35 @@ declare const _default: {
|
|
124
126
|
[key: string]: React.ReactInstance;
|
125
127
|
};
|
126
128
|
componentDidMount?(): void;
|
127
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
129
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
128
130
|
locale?: string | undefined;
|
129
131
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
130
132
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
131
133
|
componentWillUnmount?(): void;
|
132
134
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
133
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
135
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
134
136
|
locale?: string | undefined;
|
135
137
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
136
138
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
137
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
139
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
138
140
|
locale?: string | undefined;
|
139
141
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
140
142
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
141
143
|
componentWillMount?(): void;
|
142
144
|
UNSAFE_componentWillMount?(): void;
|
143
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
145
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
144
146
|
locale?: string | undefined;
|
145
147
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
146
148
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
147
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
149
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
148
150
|
locale?: string | undefined;
|
149
151
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
150
152
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
151
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
153
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
152
154
|
locale?: string | undefined;
|
153
155
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
154
156
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
155
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
157
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
156
158
|
locale?: string | undefined;
|
157
159
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
158
160
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -160,21 +162,21 @@ declare const _default: {
|
|
160
162
|
displayName: string;
|
161
163
|
contextType: React.Context<string>;
|
162
164
|
ComposedComponent: React.ComponentType<{
|
163
|
-
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
165
|
+
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
164
166
|
locale?: string | undefined;
|
165
167
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
166
|
-
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
168
|
+
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
167
169
|
locale?: string | undefined;
|
168
170
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
169
171
|
}>): {
|
170
172
|
render(): JSX.Element;
|
171
173
|
context: any;
|
172
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
174
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
173
175
|
locale?: string | undefined;
|
174
176
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
175
177
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
176
178
|
forceUpdate(callback?: (() => void) | undefined): void;
|
177
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
179
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
178
180
|
locale?: string | undefined;
|
179
181
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
180
182
|
}> & Readonly<{
|
@@ -185,51 +187,51 @@ declare const _default: {
|
|
185
187
|
[key: string]: React.ReactInstance;
|
186
188
|
};
|
187
189
|
componentDidMount?(): void;
|
188
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
190
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
189
191
|
locale?: string | undefined;
|
190
192
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
191
193
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
192
194
|
componentWillUnmount?(): void;
|
193
195
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
194
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
196
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
195
197
|
locale?: string | undefined;
|
196
198
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
197
199
|
}>, prevState: Readonly<{}>): any;
|
198
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
200
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
199
201
|
locale?: string | undefined;
|
200
202
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
201
203
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
202
204
|
componentWillMount?(): void;
|
203
205
|
UNSAFE_componentWillMount?(): void;
|
204
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
206
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
205
207
|
locale?: string | undefined;
|
206
208
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
207
209
|
}>, nextContext: any): void;
|
208
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
210
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
209
211
|
locale?: string | undefined;
|
210
212
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
211
213
|
}>, nextContext: any): void;
|
212
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
214
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
213
215
|
locale?: string | undefined;
|
214
216
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
215
217
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
216
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
218
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
217
219
|
locale?: string | undefined;
|
218
220
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
219
221
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
220
222
|
};
|
221
|
-
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
223
|
+
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
222
224
|
locale?: string | undefined;
|
223
225
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
224
226
|
}, context: any): {
|
225
227
|
render(): JSX.Element;
|
226
228
|
context: any;
|
227
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
229
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
228
230
|
locale?: string | undefined;
|
229
231
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
230
232
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
231
233
|
forceUpdate(callback?: (() => void) | undefined): void;
|
232
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
234
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
233
235
|
locale?: string | undefined;
|
234
236
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
235
237
|
}> & Readonly<{
|
@@ -240,35 +242,35 @@ declare const _default: {
|
|
240
242
|
[key: string]: React.ReactInstance;
|
241
243
|
};
|
242
244
|
componentDidMount?(): void;
|
243
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
245
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
244
246
|
locale?: string | undefined;
|
245
247
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
246
248
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
247
249
|
componentWillUnmount?(): void;
|
248
250
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
249
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
251
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
250
252
|
locale?: string | undefined;
|
251
253
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
252
254
|
}>, prevState: Readonly<{}>): any;
|
253
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
255
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
254
256
|
locale?: string | undefined;
|
255
257
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
256
258
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
257
259
|
componentWillMount?(): void;
|
258
260
|
UNSAFE_componentWillMount?(): void;
|
259
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
261
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
260
262
|
locale?: string | undefined;
|
261
263
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
262
264
|
}>, nextContext: any): void;
|
263
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
265
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
264
266
|
locale?: string | undefined;
|
265
267
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
266
268
|
}>, nextContext: any): void;
|
267
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
269
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
268
270
|
locale?: string | undefined;
|
269
271
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
270
272
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
271
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
273
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
272
274
|
locale?: string | undefined;
|
273
275
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
274
276
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -280,21 +282,21 @@ declare const _default: {
|
|
280
282
|
ComposedComponent: typeof ToastComponent;
|
281
283
|
}>;
|
282
284
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
283
|
-
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
285
|
+
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
284
286
|
locale?: string | undefined;
|
285
287
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
286
|
-
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
288
|
+
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
287
289
|
locale?: string | undefined;
|
288
290
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
289
291
|
}>): {
|
290
292
|
render(): JSX.Element;
|
291
293
|
context: any;
|
292
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
294
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
293
295
|
locale?: string | undefined;
|
294
296
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
295
297
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
296
298
|
forceUpdate(callback?: (() => void) | undefined): void;
|
297
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
299
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
298
300
|
locale?: string | undefined;
|
299
301
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
300
302
|
}> & Readonly<{
|
@@ -305,51 +307,51 @@ declare const _default: {
|
|
305
307
|
[key: string]: React.ReactInstance;
|
306
308
|
};
|
307
309
|
componentDidMount?(): void;
|
308
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
310
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
309
311
|
locale?: string | undefined;
|
310
312
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
311
313
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
312
314
|
componentWillUnmount?(): void;
|
313
315
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
314
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
316
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
315
317
|
locale?: string | undefined;
|
316
318
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
317
319
|
}>, prevState: Readonly<{}>): any;
|
318
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
320
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
319
321
|
locale?: string | undefined;
|
320
322
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
321
323
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
322
324
|
componentWillMount?(): void;
|
323
325
|
UNSAFE_componentWillMount?(): void;
|
324
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
326
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
325
327
|
locale?: string | undefined;
|
326
328
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
327
329
|
}>, nextContext: any): void;
|
328
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
330
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
329
331
|
locale?: string | undefined;
|
330
332
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
331
333
|
}>, nextContext: any): void;
|
332
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
334
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
333
335
|
locale?: string | undefined;
|
334
336
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
335
337
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
336
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
338
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
337
339
|
locale?: string | undefined;
|
338
340
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
339
341
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
340
342
|
};
|
341
|
-
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
343
|
+
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
342
344
|
locale?: string | undefined;
|
343
345
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
344
346
|
}, context: any): {
|
345
347
|
render(): JSX.Element;
|
346
348
|
context: any;
|
347
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
349
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
348
350
|
locale?: string | undefined;
|
349
351
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
350
352
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
351
353
|
forceUpdate(callback?: (() => void) | undefined): void;
|
352
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
354
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
353
355
|
locale?: string | undefined;
|
354
356
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
355
357
|
}> & Readonly<{
|
@@ -360,35 +362,35 @@ declare const _default: {
|
|
360
362
|
[key: string]: React.ReactInstance;
|
361
363
|
};
|
362
364
|
componentDidMount?(): void;
|
363
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
365
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
364
366
|
locale?: string | undefined;
|
365
367
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
366
368
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
367
369
|
componentWillUnmount?(): void;
|
368
370
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
369
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
371
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
370
372
|
locale?: string | undefined;
|
371
373
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
372
374
|
}>, prevState: Readonly<{}>): any;
|
373
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
375
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
374
376
|
locale?: string | undefined;
|
375
377
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
376
378
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
377
379
|
componentWillMount?(): void;
|
378
380
|
UNSAFE_componentWillMount?(): void;
|
379
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
381
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
380
382
|
locale?: string | undefined;
|
381
383
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
382
384
|
}>, nextContext: any): void;
|
383
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
385
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
384
386
|
locale?: string | undefined;
|
385
387
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
386
388
|
}>, nextContext: any): void;
|
387
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
389
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
388
390
|
locale?: string | undefined;
|
389
391
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
390
392
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
391
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
393
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
392
394
|
locale?: string | undefined;
|
393
395
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
394
396
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -400,21 +402,21 @@ declare const _default: {
|
|
400
402
|
ComposedComponent: typeof ToastComponent;
|
401
403
|
}, {}> & {
|
402
404
|
ComposedComponent: {
|
403
|
-
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
405
|
+
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
404
406
|
locale?: string | undefined;
|
405
407
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
406
|
-
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
408
|
+
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
407
409
|
locale?: string | undefined;
|
408
410
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
409
411
|
}>): {
|
410
412
|
render(): JSX.Element;
|
411
413
|
context: any;
|
412
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
414
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
413
415
|
locale?: string | undefined;
|
414
416
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
415
417
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
416
418
|
forceUpdate(callback?: (() => void) | undefined): void;
|
417
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
419
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
418
420
|
locale?: string | undefined;
|
419
421
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
420
422
|
}> & Readonly<{
|
@@ -425,51 +427,51 @@ declare const _default: {
|
|
425
427
|
[key: string]: React.ReactInstance;
|
426
428
|
};
|
427
429
|
componentDidMount?(): void;
|
428
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
430
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
429
431
|
locale?: string | undefined;
|
430
432
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
431
433
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
432
434
|
componentWillUnmount?(): void;
|
433
435
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
434
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
436
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
435
437
|
locale?: string | undefined;
|
436
438
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
437
439
|
}>, prevState: Readonly<{}>): any;
|
438
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
440
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
439
441
|
locale?: string | undefined;
|
440
442
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
441
443
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
442
444
|
componentWillMount?(): void;
|
443
445
|
UNSAFE_componentWillMount?(): void;
|
444
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
446
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
445
447
|
locale?: string | undefined;
|
446
448
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
447
449
|
}>, nextContext: any): void;
|
448
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
450
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
449
451
|
locale?: string | undefined;
|
450
452
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
451
453
|
}>, nextContext: any): void;
|
452
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
454
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
453
455
|
locale?: string | undefined;
|
454
456
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
455
457
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
456
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
458
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
457
459
|
locale?: string | undefined;
|
458
460
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
459
461
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
460
462
|
};
|
461
|
-
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
463
|
+
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
462
464
|
locale?: string | undefined;
|
463
465
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
464
466
|
}, context: any): {
|
465
467
|
render(): JSX.Element;
|
466
468
|
context: any;
|
467
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
469
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
468
470
|
locale?: string | undefined;
|
469
471
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
470
472
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
471
473
|
forceUpdate(callback?: (() => void) | undefined): void;
|
472
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
474
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
473
475
|
locale?: string | undefined;
|
474
476
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
475
477
|
}> & Readonly<{
|
@@ -480,35 +482,35 @@ declare const _default: {
|
|
480
482
|
[key: string]: React.ReactInstance;
|
481
483
|
};
|
482
484
|
componentDidMount?(): void;
|
483
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
485
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
484
486
|
locale?: string | undefined;
|
485
487
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
486
488
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
487
489
|
componentWillUnmount?(): void;
|
488
490
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
489
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
491
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
490
492
|
locale?: string | undefined;
|
491
493
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
492
494
|
}>, prevState: Readonly<{}>): any;
|
493
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
495
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
494
496
|
locale?: string | undefined;
|
495
497
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
496
498
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
497
499
|
componentWillMount?(): void;
|
498
500
|
UNSAFE_componentWillMount?(): void;
|
499
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
501
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
500
502
|
locale?: string | undefined;
|
501
503
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
502
504
|
}>, nextContext: any): void;
|
503
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
505
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
504
506
|
locale?: string | undefined;
|
505
507
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
506
508
|
}>, nextContext: any): void;
|
507
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
509
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
508
510
|
locale?: string | undefined;
|
509
511
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
510
512
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
511
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
|
513
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & Partial<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "position" | "timeout" | "closeButton" | "errorTimeout">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton" | "errorTimeout">, never>> & {
|
512
514
|
locale?: string | undefined;
|
513
515
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
514
516
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -522,7 +524,8 @@ declare const _default: {
|
|
522
524
|
};
|
523
525
|
export default _default;
|
524
526
|
interface ToastMessageProps {
|
525
|
-
|
527
|
+
title?: string | React.ReactNode;
|
528
|
+
body: string | React.ReactNode;
|
526
529
|
level: 'info' | 'success' | 'error' | 'warning';
|
527
530
|
timeout: number;
|
528
531
|
closeButton?: boolean;
|