@kazee-ds/react 0.5.0 → 0.5.1
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/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/types/Toast.d.ts +8 -2
- package/package.json +1 -1
package/dist/types/Toast.d.ts
CHANGED
|
@@ -10,17 +10,23 @@ export interface ToastProviderProps {
|
|
|
10
10
|
hotkey?: readonly string[];
|
|
11
11
|
dir?: 'ltr' | 'rtl';
|
|
12
12
|
showProgress?: boolean;
|
|
13
|
+
/** Show the dismiss button. Hidden by default; timers and keyboard dismissal still work. */
|
|
14
|
+
showCloseButton?: boolean;
|
|
13
15
|
swipeThreshold?: number;
|
|
14
16
|
/** Customize presentation with the exported Toast component, retaining region behavior. */
|
|
15
17
|
renderToast?: (entry: ToastEntry) => ReactNode;
|
|
16
18
|
}
|
|
17
|
-
export declare function ToastProvider({ children, manager: suppliedManager, placement, label, closeLabel, hotkey, dir, showProgress, swipeThreshold, renderToast, }: ToastProviderProps): import("react").JSX.Element;
|
|
19
|
+
export declare function ToastProvider({ children, manager: suppliedManager, placement, label, closeLabel, hotkey, dir, showProgress, showCloseButton, swipeThreshold, renderToast, }: ToastProviderProps): import("react").JSX.Element;
|
|
18
20
|
export declare function useToast(): ToastManager;
|
|
19
21
|
export interface ToastProps {
|
|
20
22
|
entry: ToastEntry;
|
|
23
|
+
/** Override the provider's close button visibility for this toast. */
|
|
24
|
+
showCloseButton?: boolean;
|
|
25
|
+
/** Override the provider's progress visibility for this toast. */
|
|
26
|
+
showProgress?: boolean;
|
|
21
27
|
indicator?: ReactNode;
|
|
22
28
|
children?: ReactNode;
|
|
23
29
|
/** Additional class appended to the shared toast class. */
|
|
24
30
|
className?: string;
|
|
25
31
|
}
|
|
26
|
-
export declare function Toast({ entry, indicator, children, className }: ToastProps): import("react").JSX.Element;
|
|
32
|
+
export declare function Toast({ entry, indicator, children, className, showCloseButton: closeOverride, showProgress: progressOverride, }: ToastProps): import("react").JSX.Element;
|