@pantheon-systems/pds-toolkit-react 1.0.0-dev.228 → 1.0.0-dev.229
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.
|
@@ -36,7 +36,7 @@ export interface CheckboxProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
36
36
|
/**
|
|
37
37
|
* Input label.
|
|
38
38
|
*/
|
|
39
|
-
label: string;
|
|
39
|
+
label: string | ReactNode;
|
|
40
40
|
/**
|
|
41
41
|
* Input message. Used to provide supplemental text. Will be displayed below the input field.
|
|
42
42
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
import { cssTransition, toast as toastApi, ToastOptions } from 'react-toastify';
|
|
2
3
|
export declare enum ToastType {
|
|
3
4
|
Critical = "critical",
|
|
@@ -7,7 +8,7 @@ export declare enum ToastType {
|
|
|
7
8
|
Info = "info"
|
|
8
9
|
}
|
|
9
10
|
export declare const useToast: () => [
|
|
10
|
-
(type: ToastType, message: string, options?: ToastOptions) => string | number,
|
|
11
|
+
(type: ToastType, message: string | ReactElement, options?: ToastOptions) => string | number,
|
|
11
12
|
typeof toastApi,
|
|
12
13
|
ReturnType<typeof cssTransition>
|
|
13
14
|
];
|