amis 1.6.0 → 1.6.1-beta.2
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/components/Alert.d.ts +588 -588
- package/lib/components/Alert2.d.ts +125 -20
- package/lib/components/AnchorNav.d.ts +104 -20
- package/lib/components/ArrayInput.d.ts +420 -420
- package/lib/components/AsideNav.d.ts +125 -125
- package/lib/components/AssociatedSelection.d.ts +504 -504
- package/lib/components/Avatar.d.ts +461 -20
- package/lib/components/Button.d.ts +167 -20
- package/lib/components/CalendarMobile.d.ts +420 -84
- package/lib/components/Card.d.ts +671 -20
- package/lib/components/ChainedSelection.d.ts +504 -504
- package/lib/components/Checkbox.d.ts +104 -20
- package/lib/components/Collapse.d.ts +587 -20
- package/lib/components/CollapseGroup.d.ts +230 -20
- package/lib/components/ColorPicker.d.ts +504 -504
- package/lib/components/DatePicker.d.ts +588 -588
- package/lib/components/DateRangePicker.d.ts +1008 -1008
- package/lib/components/Drawer.d.ts +125 -20
- package/lib/components/Editor.d.ts +840 -672
- package/lib/components/GroupedSelection.d.ts +504 -504
- package/lib/components/Html.d.ts +62 -62
- package/lib/components/InputBox.d.ts +83 -83
- package/lib/components/Layout.d.ts +146 -146
- package/lib/components/ListGroup.d.ts +62 -62
- package/lib/components/ListMenu.d.ts +504 -504
- package/lib/components/LocationPicker.d.ts +336 -336
- package/lib/components/Modal.d.ts +420 -420
- package/lib/components/MonthRangePicker.d.ts +924 -924
- package/lib/components/NumberInput.d.ts +104 -20
- package/lib/components/PopUp.d.ts +672 -672
- package/lib/components/Progress.d.ts +440 -20
- package/lib/components/Radios.d.ts +167 -167
- package/lib/components/Rating.d.ts +272 -314
- package/lib/components/ResultBox.d.ts +504 -84
- package/lib/components/ResultList.d.ts +336 -84
- package/lib/components/SearchBox.d.ts +336 -336
- package/lib/components/Select.d.ts +4977 -4977
- package/lib/components/Selection.d.ts +504 -504
- package/lib/components/SparkLine.d.ts +336 -336
- package/lib/components/Spinner.d.ts +146 -146
- package/lib/components/Switch.d.ts +83 -83
- package/lib/components/TableSelection.d.ts +672 -672
- package/lib/components/Tabs.d.ts +83 -20
- package/lib/components/TitleBar.d.ts +146 -125
- package/lib/components/Toast.d.ts +504 -84
- package/lib/components/TooltipWrapper.d.ts +125 -20
- package/lib/components/Transfer.d.ts +252 -84
- package/lib/components/TransferDropDown.d.ts +252 -84
- package/lib/components/Tree.d.ts +2688 -2688
- package/lib/components/TreeSelection.d.ts +588 -588
- package/lib/components/formula/Editor.d.ts +420 -84
- package/lib/index.js +1 -1
- package/lib/renderers/Dialog.d.ts +420 -420
- package/lib/renderers/Form/InputCity.d.ts +672 -672
- package/lib/renderers/Form/InputColor.d.ts +504 -504
- package/lib/renderers/Nav.d.ts +62 -62
- package/package.json +1 -1
- package/sdk/ang-ie11.css +1 -0
- package/sdk/ang.css +1 -0
- package/sdk/antd-ie11.css +1 -0
- package/sdk/antd.css +1 -0
- package/sdk/charts.js +14 -14
- package/sdk/codemirror.js +7 -7
- package/sdk/color-picker.js +65 -65
- package/sdk/cropperjs.js +2 -2
- package/sdk/cxd-ie11.css +1 -0
- package/sdk/cxd.css +1 -0
- package/sdk/dark-ie11.css +1 -0
- package/sdk/dark.css +1 -0
- package/sdk/exceljs.js +1 -1
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +3 -3
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +18 -18
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +1 -0
- package/sdk/sdk.css +1 -0
- package/sdk/sdk.js +1318 -1253
- package/sdk/thirds/hls.js/hls.js +1 -1
- package/sdk/thirds/mpegts.js/mpegts.js +1 -1
- package/sdk/tinymce.js +57 -57
@@ -46,21 +46,41 @@ export declare class ToastComponent extends React.Component<ToastComponentProps,
|
|
46
46
|
render(): JSX.Element[] | null;
|
47
47
|
}
|
48
48
|
declare const _default: {
|
49
|
-
new (props: (Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
49
|
+
new (props: (Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
50
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
51
|
+
timeout?: number | undefined;
|
52
|
+
closeButton?: boolean | undefined;
|
53
|
+
errorTimeout?: number | undefined;
|
54
|
+
} & {} & {
|
50
55
|
locale?: string | undefined;
|
51
56
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
52
|
-
}, keyof ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
57
|
+
}, keyof ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
58
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
59
|
+
timeout?: number | undefined;
|
60
|
+
closeButton?: boolean | undefined;
|
61
|
+
errorTimeout?: number | undefined;
|
62
|
+
} & {} & {
|
53
63
|
locale?: string | undefined;
|
54
64
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
55
65
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>): {
|
56
66
|
render(): JSX.Element;
|
57
67
|
context: any;
|
58
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
68
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
69
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
70
|
+
timeout?: number | undefined;
|
71
|
+
closeButton?: boolean | undefined;
|
72
|
+
errorTimeout?: number | undefined;
|
73
|
+
} & {} & {
|
59
74
|
locale?: string | undefined;
|
60
75
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
61
76
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
62
77
|
forceUpdate(callback?: (() => void) | undefined): void;
|
63
|
-
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
78
|
+
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
79
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
80
|
+
timeout?: number | undefined;
|
81
|
+
closeButton?: boolean | undefined;
|
82
|
+
errorTimeout?: number | undefined;
|
83
|
+
} & {} & {
|
64
84
|
locale?: string | undefined;
|
65
85
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
66
86
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
|
@@ -71,51 +91,101 @@ declare const _default: {
|
|
71
91
|
[key: string]: React.ReactInstance;
|
72
92
|
};
|
73
93
|
componentDidMount?(): void;
|
74
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
94
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
95
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
96
|
+
timeout?: number | undefined;
|
97
|
+
closeButton?: boolean | undefined;
|
98
|
+
errorTimeout?: number | undefined;
|
99
|
+
} & {} & {
|
75
100
|
locale?: string | undefined;
|
76
101
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
77
102
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
78
103
|
componentWillUnmount?(): void;
|
79
104
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
80
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
105
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
106
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
107
|
+
timeout?: number | undefined;
|
108
|
+
closeButton?: boolean | undefined;
|
109
|
+
errorTimeout?: number | undefined;
|
110
|
+
} & {} & {
|
81
111
|
locale?: string | undefined;
|
82
112
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
83
113
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
84
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
114
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
115
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
116
|
+
timeout?: number | undefined;
|
117
|
+
closeButton?: boolean | undefined;
|
118
|
+
errorTimeout?: number | undefined;
|
119
|
+
} & {} & {
|
85
120
|
locale?: string | undefined;
|
86
121
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
87
122
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
88
123
|
componentWillMount?(): void;
|
89
124
|
UNSAFE_componentWillMount?(): void;
|
90
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
125
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
126
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
127
|
+
timeout?: number | undefined;
|
128
|
+
closeButton?: boolean | undefined;
|
129
|
+
errorTimeout?: number | undefined;
|
130
|
+
} & {} & {
|
91
131
|
locale?: string | undefined;
|
92
132
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
93
133
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
94
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
134
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
135
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
136
|
+
timeout?: number | undefined;
|
137
|
+
closeButton?: boolean | undefined;
|
138
|
+
errorTimeout?: number | undefined;
|
139
|
+
} & {} & {
|
95
140
|
locale?: string | undefined;
|
96
141
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
97
142
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
98
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
143
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
144
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
145
|
+
timeout?: number | undefined;
|
146
|
+
closeButton?: boolean | undefined;
|
147
|
+
errorTimeout?: number | undefined;
|
148
|
+
} & {} & {
|
99
149
|
locale?: string | undefined;
|
100
150
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
101
151
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
102
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
152
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
153
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
154
|
+
timeout?: number | undefined;
|
155
|
+
closeButton?: boolean | undefined;
|
156
|
+
errorTimeout?: number | undefined;
|
157
|
+
} & {} & {
|
103
158
|
locale?: string | undefined;
|
104
159
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
105
160
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
106
161
|
};
|
107
|
-
new (props: Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
162
|
+
new (props: Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
163
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
164
|
+
timeout?: number | undefined;
|
165
|
+
closeButton?: boolean | undefined;
|
166
|
+
errorTimeout?: number | undefined;
|
167
|
+
} & {} & {
|
108
168
|
locale?: string | undefined;
|
109
169
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
110
170
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps, context: any): {
|
111
171
|
render(): JSX.Element;
|
112
172
|
context: any;
|
113
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
173
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
174
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
175
|
+
timeout?: number | undefined;
|
176
|
+
closeButton?: boolean | undefined;
|
177
|
+
errorTimeout?: number | undefined;
|
178
|
+
} & {} & {
|
114
179
|
locale?: string | undefined;
|
115
180
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
116
181
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
117
182
|
forceUpdate(callback?: (() => void) | undefined): void;
|
118
|
-
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
183
|
+
readonly props: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
184
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
185
|
+
timeout?: number | undefined;
|
186
|
+
closeButton?: boolean | undefined;
|
187
|
+
errorTimeout?: number | undefined;
|
188
|
+
} & {} & {
|
119
189
|
locale?: string | undefined;
|
120
190
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
121
191
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{
|
@@ -126,35 +196,70 @@ declare const _default: {
|
|
126
196
|
[key: string]: React.ReactInstance;
|
127
197
|
};
|
128
198
|
componentDidMount?(): void;
|
129
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
199
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
200
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
201
|
+
timeout?: number | undefined;
|
202
|
+
closeButton?: boolean | undefined;
|
203
|
+
errorTimeout?: number | undefined;
|
204
|
+
} & {} & {
|
130
205
|
locale?: string | undefined;
|
131
206
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
132
207
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
133
208
|
componentWillUnmount?(): void;
|
134
209
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
135
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
210
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
211
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
212
|
+
timeout?: number | undefined;
|
213
|
+
closeButton?: boolean | undefined;
|
214
|
+
errorTimeout?: number | undefined;
|
215
|
+
} & {} & {
|
136
216
|
locale?: string | undefined;
|
137
217
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
138
218
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
139
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
219
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
220
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
221
|
+
timeout?: number | undefined;
|
222
|
+
closeButton?: boolean | undefined;
|
223
|
+
errorTimeout?: number | undefined;
|
224
|
+
} & {} & {
|
140
225
|
locale?: string | undefined;
|
141
226
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
142
227
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
143
228
|
componentWillMount?(): void;
|
144
229
|
UNSAFE_componentWillMount?(): void;
|
145
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
230
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
231
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
232
|
+
timeout?: number | undefined;
|
233
|
+
closeButton?: boolean | undefined;
|
234
|
+
errorTimeout?: number | undefined;
|
235
|
+
} & {} & {
|
146
236
|
locale?: string | undefined;
|
147
237
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
148
238
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
149
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
239
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
240
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
241
|
+
timeout?: number | undefined;
|
242
|
+
closeButton?: boolean | undefined;
|
243
|
+
errorTimeout?: number | undefined;
|
244
|
+
} & {} & {
|
150
245
|
locale?: string | undefined;
|
151
246
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
152
247
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
153
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
248
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
249
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
250
|
+
timeout?: number | undefined;
|
251
|
+
closeButton?: boolean | undefined;
|
252
|
+
errorTimeout?: number | undefined;
|
253
|
+
} & {} & {
|
154
254
|
locale?: string | undefined;
|
155
255
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
156
256
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
157
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
257
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
258
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
259
|
+
timeout?: number | undefined;
|
260
|
+
closeButton?: boolean | undefined;
|
261
|
+
errorTimeout?: number | undefined;
|
262
|
+
} & {} & {
|
158
263
|
locale?: string | undefined;
|
159
264
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
160
265
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -162,21 +267,41 @@ declare const _default: {
|
|
162
267
|
displayName: string;
|
163
268
|
contextType: React.Context<string>;
|
164
269
|
ComposedComponent: React.ComponentType<{
|
165
|
-
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
270
|
+
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
271
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
272
|
+
timeout?: number | undefined;
|
273
|
+
closeButton?: boolean | undefined;
|
274
|
+
errorTimeout?: number | undefined;
|
275
|
+
} & {} & {
|
166
276
|
locale?: string | undefined;
|
167
277
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
168
|
-
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
278
|
+
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
279
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
280
|
+
timeout?: number | undefined;
|
281
|
+
closeButton?: boolean | undefined;
|
282
|
+
errorTimeout?: number | undefined;
|
283
|
+
} & {} & {
|
169
284
|
locale?: string | undefined;
|
170
285
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
171
286
|
}>): {
|
172
287
|
render(): JSX.Element;
|
173
288
|
context: any;
|
174
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
289
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
290
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
291
|
+
timeout?: number | undefined;
|
292
|
+
closeButton?: boolean | undefined;
|
293
|
+
errorTimeout?: number | undefined;
|
294
|
+
} & {} & {
|
175
295
|
locale?: string | undefined;
|
176
296
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
177
297
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
178
298
|
forceUpdate(callback?: (() => void) | undefined): void;
|
179
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
299
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
300
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
301
|
+
timeout?: number | undefined;
|
302
|
+
closeButton?: boolean | undefined;
|
303
|
+
errorTimeout?: number | undefined;
|
304
|
+
} & {} & {
|
180
305
|
locale?: string | undefined;
|
181
306
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
182
307
|
}> & Readonly<{
|
@@ -187,51 +312,101 @@ declare const _default: {
|
|
187
312
|
[key: string]: React.ReactInstance;
|
188
313
|
};
|
189
314
|
componentDidMount?(): void;
|
190
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
315
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
316
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
317
|
+
timeout?: number | undefined;
|
318
|
+
closeButton?: boolean | undefined;
|
319
|
+
errorTimeout?: number | undefined;
|
320
|
+
} & {} & {
|
191
321
|
locale?: string | undefined;
|
192
322
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
193
323
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
194
324
|
componentWillUnmount?(): void;
|
195
325
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
196
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
326
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
327
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
328
|
+
timeout?: number | undefined;
|
329
|
+
closeButton?: boolean | undefined;
|
330
|
+
errorTimeout?: number | undefined;
|
331
|
+
} & {} & {
|
197
332
|
locale?: string | undefined;
|
198
333
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
199
334
|
}>, prevState: Readonly<{}>): any;
|
200
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
335
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
336
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
337
|
+
timeout?: number | undefined;
|
338
|
+
closeButton?: boolean | undefined;
|
339
|
+
errorTimeout?: number | undefined;
|
340
|
+
} & {} & {
|
201
341
|
locale?: string | undefined;
|
202
342
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
203
343
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
204
344
|
componentWillMount?(): void;
|
205
345
|
UNSAFE_componentWillMount?(): void;
|
206
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
346
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
347
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
348
|
+
timeout?: number | undefined;
|
349
|
+
closeButton?: boolean | undefined;
|
350
|
+
errorTimeout?: number | undefined;
|
351
|
+
} & {} & {
|
207
352
|
locale?: string | undefined;
|
208
353
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
209
354
|
}>, nextContext: any): void;
|
210
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
355
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
356
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
357
|
+
timeout?: number | undefined;
|
358
|
+
closeButton?: boolean | undefined;
|
359
|
+
errorTimeout?: number | undefined;
|
360
|
+
} & {} & {
|
211
361
|
locale?: string | undefined;
|
212
362
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
213
363
|
}>, nextContext: any): void;
|
214
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
364
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
365
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
366
|
+
timeout?: number | undefined;
|
367
|
+
closeButton?: boolean | undefined;
|
368
|
+
errorTimeout?: number | undefined;
|
369
|
+
} & {} & {
|
215
370
|
locale?: string | undefined;
|
216
371
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
217
372
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
218
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
373
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
374
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
375
|
+
timeout?: number | undefined;
|
376
|
+
closeButton?: boolean | undefined;
|
377
|
+
errorTimeout?: number | undefined;
|
378
|
+
} & {} & {
|
219
379
|
locale?: string | undefined;
|
220
380
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
221
381
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
222
382
|
};
|
223
|
-
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
383
|
+
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
384
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
385
|
+
timeout?: number | undefined;
|
386
|
+
closeButton?: boolean | undefined;
|
387
|
+
errorTimeout?: number | undefined;
|
388
|
+
} & {} & {
|
224
389
|
locale?: string | undefined;
|
225
390
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
226
391
|
}, context: any): {
|
227
392
|
render(): JSX.Element;
|
228
393
|
context: any;
|
229
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
394
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
395
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
396
|
+
timeout?: number | undefined;
|
397
|
+
closeButton?: boolean | undefined;
|
398
|
+
errorTimeout?: number | undefined;
|
399
|
+
} & {} & {
|
230
400
|
locale?: string | undefined;
|
231
401
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
232
402
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
233
403
|
forceUpdate(callback?: (() => void) | undefined): void;
|
234
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
404
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
405
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
406
|
+
timeout?: number | undefined;
|
407
|
+
closeButton?: boolean | undefined;
|
408
|
+
errorTimeout?: number | undefined;
|
409
|
+
} & {} & {
|
235
410
|
locale?: string | undefined;
|
236
411
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
237
412
|
}> & Readonly<{
|
@@ -242,35 +417,70 @@ declare const _default: {
|
|
242
417
|
[key: string]: React.ReactInstance;
|
243
418
|
};
|
244
419
|
componentDidMount?(): void;
|
245
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
420
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
421
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
422
|
+
timeout?: number | undefined;
|
423
|
+
closeButton?: boolean | undefined;
|
424
|
+
errorTimeout?: number | undefined;
|
425
|
+
} & {} & {
|
246
426
|
locale?: string | undefined;
|
247
427
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
248
428
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
249
429
|
componentWillUnmount?(): void;
|
250
430
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
251
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
431
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
432
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
433
|
+
timeout?: number | undefined;
|
434
|
+
closeButton?: boolean | undefined;
|
435
|
+
errorTimeout?: number | undefined;
|
436
|
+
} & {} & {
|
252
437
|
locale?: string | undefined;
|
253
438
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
254
439
|
}>, prevState: Readonly<{}>): any;
|
255
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
440
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
441
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
442
|
+
timeout?: number | undefined;
|
443
|
+
closeButton?: boolean | undefined;
|
444
|
+
errorTimeout?: number | undefined;
|
445
|
+
} & {} & {
|
256
446
|
locale?: string | undefined;
|
257
447
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
258
448
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
259
449
|
componentWillMount?(): void;
|
260
450
|
UNSAFE_componentWillMount?(): void;
|
261
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
451
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
452
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
453
|
+
timeout?: number | undefined;
|
454
|
+
closeButton?: boolean | undefined;
|
455
|
+
errorTimeout?: number | undefined;
|
456
|
+
} & {} & {
|
262
457
|
locale?: string | undefined;
|
263
458
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
264
459
|
}>, nextContext: any): void;
|
265
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
460
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
461
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
462
|
+
timeout?: number | undefined;
|
463
|
+
closeButton?: boolean | undefined;
|
464
|
+
errorTimeout?: number | undefined;
|
465
|
+
} & {} & {
|
266
466
|
locale?: string | undefined;
|
267
467
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
268
468
|
}>, nextContext: any): void;
|
269
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
469
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
470
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
471
|
+
timeout?: number | undefined;
|
472
|
+
closeButton?: boolean | undefined;
|
473
|
+
errorTimeout?: number | undefined;
|
474
|
+
} & {} & {
|
270
475
|
locale?: string | undefined;
|
271
476
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
272
477
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
273
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
478
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
479
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
480
|
+
timeout?: number | undefined;
|
481
|
+
closeButton?: boolean | undefined;
|
482
|
+
errorTimeout?: number | undefined;
|
483
|
+
} & {} & {
|
274
484
|
locale?: string | undefined;
|
275
485
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
276
486
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -282,21 +492,41 @@ declare const _default: {
|
|
282
492
|
ComposedComponent: typeof ToastComponent;
|
283
493
|
}>;
|
284
494
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
285
|
-
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
495
|
+
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
496
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
497
|
+
timeout?: number | undefined;
|
498
|
+
closeButton?: boolean | undefined;
|
499
|
+
errorTimeout?: number | undefined;
|
500
|
+
} & {} & {
|
286
501
|
locale?: string | undefined;
|
287
502
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
288
|
-
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
503
|
+
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
504
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
505
|
+
timeout?: number | undefined;
|
506
|
+
closeButton?: boolean | undefined;
|
507
|
+
errorTimeout?: number | undefined;
|
508
|
+
} & {} & {
|
289
509
|
locale?: string | undefined;
|
290
510
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
291
511
|
}>): {
|
292
512
|
render(): JSX.Element;
|
293
513
|
context: any;
|
294
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
514
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
515
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
516
|
+
timeout?: number | undefined;
|
517
|
+
closeButton?: boolean | undefined;
|
518
|
+
errorTimeout?: number | undefined;
|
519
|
+
} & {} & {
|
295
520
|
locale?: string | undefined;
|
296
521
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
297
522
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
298
523
|
forceUpdate(callback?: (() => void) | undefined): void;
|
299
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
524
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
525
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
526
|
+
timeout?: number | undefined;
|
527
|
+
closeButton?: boolean | undefined;
|
528
|
+
errorTimeout?: number | undefined;
|
529
|
+
} & {} & {
|
300
530
|
locale?: string | undefined;
|
301
531
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
302
532
|
}> & Readonly<{
|
@@ -307,51 +537,101 @@ declare const _default: {
|
|
307
537
|
[key: string]: React.ReactInstance;
|
308
538
|
};
|
309
539
|
componentDidMount?(): void;
|
310
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
540
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
541
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
542
|
+
timeout?: number | undefined;
|
543
|
+
closeButton?: boolean | undefined;
|
544
|
+
errorTimeout?: number | undefined;
|
545
|
+
} & {} & {
|
311
546
|
locale?: string | undefined;
|
312
547
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
313
548
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
314
549
|
componentWillUnmount?(): void;
|
315
550
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
316
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
551
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
552
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
553
|
+
timeout?: number | undefined;
|
554
|
+
closeButton?: boolean | undefined;
|
555
|
+
errorTimeout?: number | undefined;
|
556
|
+
} & {} & {
|
317
557
|
locale?: string | undefined;
|
318
558
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
319
559
|
}>, prevState: Readonly<{}>): any;
|
320
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
560
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
561
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
562
|
+
timeout?: number | undefined;
|
563
|
+
closeButton?: boolean | undefined;
|
564
|
+
errorTimeout?: number | undefined;
|
565
|
+
} & {} & {
|
321
566
|
locale?: string | undefined;
|
322
567
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
323
568
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
324
569
|
componentWillMount?(): void;
|
325
570
|
UNSAFE_componentWillMount?(): void;
|
326
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
571
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
572
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
573
|
+
timeout?: number | undefined;
|
574
|
+
closeButton?: boolean | undefined;
|
575
|
+
errorTimeout?: number | undefined;
|
576
|
+
} & {} & {
|
327
577
|
locale?: string | undefined;
|
328
578
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
329
579
|
}>, nextContext: any): void;
|
330
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
580
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
581
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
582
|
+
timeout?: number | undefined;
|
583
|
+
closeButton?: boolean | undefined;
|
584
|
+
errorTimeout?: number | undefined;
|
585
|
+
} & {} & {
|
331
586
|
locale?: string | undefined;
|
332
587
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
333
588
|
}>, nextContext: any): void;
|
334
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
589
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
590
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
591
|
+
timeout?: number | undefined;
|
592
|
+
closeButton?: boolean | undefined;
|
593
|
+
errorTimeout?: number | undefined;
|
594
|
+
} & {} & {
|
335
595
|
locale?: string | undefined;
|
336
596
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
337
597
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
338
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
598
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
599
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
600
|
+
timeout?: number | undefined;
|
601
|
+
closeButton?: boolean | undefined;
|
602
|
+
errorTimeout?: number | undefined;
|
603
|
+
} & {} & {
|
339
604
|
locale?: string | undefined;
|
340
605
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
341
606
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
342
607
|
};
|
343
|
-
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
608
|
+
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
609
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
610
|
+
timeout?: number | undefined;
|
611
|
+
closeButton?: boolean | undefined;
|
612
|
+
errorTimeout?: number | undefined;
|
613
|
+
} & {} & {
|
344
614
|
locale?: string | undefined;
|
345
615
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
346
616
|
}, context: any): {
|
347
617
|
render(): JSX.Element;
|
348
618
|
context: any;
|
349
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
619
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
620
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
621
|
+
timeout?: number | undefined;
|
622
|
+
closeButton?: boolean | undefined;
|
623
|
+
errorTimeout?: number | undefined;
|
624
|
+
} & {} & {
|
350
625
|
locale?: string | undefined;
|
351
626
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
352
627
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
353
628
|
forceUpdate(callback?: (() => void) | undefined): void;
|
354
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
629
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
630
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
631
|
+
timeout?: number | undefined;
|
632
|
+
closeButton?: boolean | undefined;
|
633
|
+
errorTimeout?: number | undefined;
|
634
|
+
} & {} & {
|
355
635
|
locale?: string | undefined;
|
356
636
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
357
637
|
}> & Readonly<{
|
@@ -362,35 +642,70 @@ declare const _default: {
|
|
362
642
|
[key: string]: React.ReactInstance;
|
363
643
|
};
|
364
644
|
componentDidMount?(): void;
|
365
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
645
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
646
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
647
|
+
timeout?: number | undefined;
|
648
|
+
closeButton?: boolean | undefined;
|
649
|
+
errorTimeout?: number | undefined;
|
650
|
+
} & {} & {
|
366
651
|
locale?: string | undefined;
|
367
652
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
368
653
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
369
654
|
componentWillUnmount?(): void;
|
370
655
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
371
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
656
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
657
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
658
|
+
timeout?: number | undefined;
|
659
|
+
closeButton?: boolean | undefined;
|
660
|
+
errorTimeout?: number | undefined;
|
661
|
+
} & {} & {
|
372
662
|
locale?: string | undefined;
|
373
663
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
374
664
|
}>, prevState: Readonly<{}>): any;
|
375
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
665
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
666
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
667
|
+
timeout?: number | undefined;
|
668
|
+
closeButton?: boolean | undefined;
|
669
|
+
errorTimeout?: number | undefined;
|
670
|
+
} & {} & {
|
376
671
|
locale?: string | undefined;
|
377
672
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
378
673
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
379
674
|
componentWillMount?(): void;
|
380
675
|
UNSAFE_componentWillMount?(): void;
|
381
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
676
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
677
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
678
|
+
timeout?: number | undefined;
|
679
|
+
closeButton?: boolean | undefined;
|
680
|
+
errorTimeout?: number | undefined;
|
681
|
+
} & {} & {
|
382
682
|
locale?: string | undefined;
|
383
683
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
384
684
|
}>, nextContext: any): void;
|
385
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
685
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
686
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
687
|
+
timeout?: number | undefined;
|
688
|
+
closeButton?: boolean | undefined;
|
689
|
+
errorTimeout?: number | undefined;
|
690
|
+
} & {} & {
|
386
691
|
locale?: string | undefined;
|
387
692
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
388
693
|
}>, nextContext: any): void;
|
389
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
694
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
695
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
696
|
+
timeout?: number | undefined;
|
697
|
+
closeButton?: boolean | undefined;
|
698
|
+
errorTimeout?: number | undefined;
|
699
|
+
} & {} & {
|
390
700
|
locale?: string | undefined;
|
391
701
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
392
702
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
393
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
703
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
704
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
705
|
+
timeout?: number | undefined;
|
706
|
+
closeButton?: boolean | undefined;
|
707
|
+
errorTimeout?: number | undefined;
|
708
|
+
} & {} & {
|
394
709
|
locale?: string | undefined;
|
395
710
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
396
711
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
@@ -402,21 +717,41 @@ declare const _default: {
|
|
402
717
|
ComposedComponent: typeof ToastComponent;
|
403
718
|
}, {}> & {
|
404
719
|
ComposedComponent: {
|
405
|
-
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
720
|
+
new (props: (Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
721
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
722
|
+
timeout?: number | undefined;
|
723
|
+
closeButton?: boolean | undefined;
|
724
|
+
errorTimeout?: number | undefined;
|
725
|
+
} & {} & {
|
406
726
|
locale?: string | undefined;
|
407
727
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
408
|
-
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
728
|
+
}) | Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
729
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
730
|
+
timeout?: number | undefined;
|
731
|
+
closeButton?: boolean | undefined;
|
732
|
+
errorTimeout?: number | undefined;
|
733
|
+
} & {} & {
|
409
734
|
locale?: string | undefined;
|
410
735
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
411
736
|
}>): {
|
412
737
|
render(): JSX.Element;
|
413
738
|
context: any;
|
414
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
739
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
740
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
741
|
+
timeout?: number | undefined;
|
742
|
+
closeButton?: boolean | undefined;
|
743
|
+
errorTimeout?: number | undefined;
|
744
|
+
} & {} & {
|
415
745
|
locale?: string | undefined;
|
416
746
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
417
747
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
418
748
|
forceUpdate(callback?: (() => void) | undefined): void;
|
419
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
749
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
750
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
751
|
+
timeout?: number | undefined;
|
752
|
+
closeButton?: boolean | undefined;
|
753
|
+
errorTimeout?: number | undefined;
|
754
|
+
} & {} & {
|
420
755
|
locale?: string | undefined;
|
421
756
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
422
757
|
}> & Readonly<{
|
@@ -427,51 +762,101 @@ declare const _default: {
|
|
427
762
|
[key: string]: React.ReactInstance;
|
428
763
|
};
|
429
764
|
componentDidMount?(): void;
|
430
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
765
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
766
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
767
|
+
timeout?: number | undefined;
|
768
|
+
closeButton?: boolean | undefined;
|
769
|
+
errorTimeout?: number | undefined;
|
770
|
+
} & {} & {
|
431
771
|
locale?: string | undefined;
|
432
772
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
433
773
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
434
774
|
componentWillUnmount?(): void;
|
435
775
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
436
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
776
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
777
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
778
|
+
timeout?: number | undefined;
|
779
|
+
closeButton?: boolean | undefined;
|
780
|
+
errorTimeout?: number | undefined;
|
781
|
+
} & {} & {
|
437
782
|
locale?: string | undefined;
|
438
783
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
439
784
|
}>, prevState: Readonly<{}>): any;
|
440
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
785
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
786
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
787
|
+
timeout?: number | undefined;
|
788
|
+
closeButton?: boolean | undefined;
|
789
|
+
errorTimeout?: number | undefined;
|
790
|
+
} & {} & {
|
441
791
|
locale?: string | undefined;
|
442
792
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
443
793
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
444
794
|
componentWillMount?(): void;
|
445
795
|
UNSAFE_componentWillMount?(): void;
|
446
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
796
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
797
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
798
|
+
timeout?: number | undefined;
|
799
|
+
closeButton?: boolean | undefined;
|
800
|
+
errorTimeout?: number | undefined;
|
801
|
+
} & {} & {
|
447
802
|
locale?: string | undefined;
|
448
803
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
449
804
|
}>, nextContext: any): void;
|
450
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
805
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
806
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
807
|
+
timeout?: number | undefined;
|
808
|
+
closeButton?: boolean | undefined;
|
809
|
+
errorTimeout?: number | undefined;
|
810
|
+
} & {} & {
|
451
811
|
locale?: string | undefined;
|
452
812
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
453
813
|
}>, nextContext: any): void;
|
454
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
814
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
815
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
816
|
+
timeout?: number | undefined;
|
817
|
+
closeButton?: boolean | undefined;
|
818
|
+
errorTimeout?: number | undefined;
|
819
|
+
} & {} & {
|
455
820
|
locale?: string | undefined;
|
456
821
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
457
822
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
458
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
823
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
824
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
825
|
+
timeout?: number | undefined;
|
826
|
+
closeButton?: boolean | undefined;
|
827
|
+
errorTimeout?: number | undefined;
|
828
|
+
} & {} & {
|
459
829
|
locale?: string | undefined;
|
460
830
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
461
831
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
462
832
|
};
|
463
|
-
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
833
|
+
new (props: Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
834
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
835
|
+
timeout?: number | undefined;
|
836
|
+
closeButton?: boolean | undefined;
|
837
|
+
errorTimeout?: number | undefined;
|
838
|
+
} & {} & {
|
464
839
|
locale?: string | undefined;
|
465
840
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
466
841
|
}, context: any): {
|
467
842
|
render(): JSX.Element;
|
468
843
|
context: any;
|
469
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
844
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
845
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
846
|
+
timeout?: number | undefined;
|
847
|
+
closeButton?: boolean | undefined;
|
848
|
+
errorTimeout?: number | undefined;
|
849
|
+
} & {} & {
|
470
850
|
locale?: string | undefined;
|
471
851
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
472
852
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
473
853
|
forceUpdate(callback?: (() => void) | undefined): void;
|
474
|
-
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
854
|
+
readonly props: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
855
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
856
|
+
timeout?: number | undefined;
|
857
|
+
closeButton?: boolean | undefined;
|
858
|
+
errorTimeout?: number | undefined;
|
859
|
+
} & {} & {
|
475
860
|
locale?: string | undefined;
|
476
861
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
477
862
|
}> & Readonly<{
|
@@ -482,35 +867,70 @@ declare const _default: {
|
|
482
867
|
[key: string]: React.ReactInstance;
|
483
868
|
};
|
484
869
|
componentDidMount?(): void;
|
485
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
870
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
871
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
872
|
+
timeout?: number | undefined;
|
873
|
+
closeButton?: boolean | undefined;
|
874
|
+
errorTimeout?: number | undefined;
|
875
|
+
} & {} & {
|
486
876
|
locale?: string | undefined;
|
487
877
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
488
878
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
489
879
|
componentWillUnmount?(): void;
|
490
880
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
491
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
881
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
882
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
883
|
+
timeout?: number | undefined;
|
884
|
+
closeButton?: boolean | undefined;
|
885
|
+
errorTimeout?: number | undefined;
|
886
|
+
} & {} & {
|
492
887
|
locale?: string | undefined;
|
493
888
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
494
889
|
}>, prevState: Readonly<{}>): any;
|
495
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
890
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
891
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
892
|
+
timeout?: number | undefined;
|
893
|
+
closeButton?: boolean | undefined;
|
894
|
+
errorTimeout?: number | undefined;
|
895
|
+
} & {} & {
|
496
896
|
locale?: string | undefined;
|
497
897
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
498
898
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
499
899
|
componentWillMount?(): void;
|
500
900
|
UNSAFE_componentWillMount?(): void;
|
501
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
901
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
902
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
903
|
+
timeout?: number | undefined;
|
904
|
+
closeButton?: boolean | undefined;
|
905
|
+
errorTimeout?: number | undefined;
|
906
|
+
} & {} & {
|
502
907
|
locale?: string | undefined;
|
503
908
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
504
909
|
}>, nextContext: any): void;
|
505
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
910
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
911
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
912
|
+
timeout?: number | undefined;
|
913
|
+
closeButton?: boolean | undefined;
|
914
|
+
errorTimeout?: number | undefined;
|
915
|
+
} & {} & {
|
506
916
|
locale?: string | undefined;
|
507
917
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
508
918
|
}>, nextContext: any): void;
|
509
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
919
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
920
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
921
|
+
timeout?: number | undefined;
|
922
|
+
closeButton?: boolean | undefined;
|
923
|
+
errorTimeout?: number | undefined;
|
924
|
+
} & {} & {
|
510
925
|
locale?: string | undefined;
|
511
926
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
512
927
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
513
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> &
|
928
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ToastComponentProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "showIcon"> & {
|
929
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center" | undefined;
|
930
|
+
timeout?: number | undefined;
|
931
|
+
closeButton?: boolean | undefined;
|
932
|
+
errorTimeout?: number | undefined;
|
933
|
+
} & {} & {
|
514
934
|
locale?: string | undefined;
|
515
935
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
516
936
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|