@avalabs/k2-alpine 0.0.0-main-c5f3a1f → 0.0.0-main-efd8fea
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/components/ThemeProvider/ThemeProvider.d.ts +1 -2
- package/dist/components/Toast/Toast.d.ts +3 -7
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1052 -1044
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { CoreTheme } from '../../theme';
|
|
3
|
-
import { DefaultToastOptions } from '../Toast/Toast';
|
|
4
3
|
type ThemeProviderProps = {
|
|
5
4
|
theme: CoreTheme;
|
|
6
|
-
|
|
5
|
+
toastVariant?: 'web' | 'extension';
|
|
7
6
|
};
|
|
8
7
|
export declare const ThemeProvider: import('react').NamedExoticComponent<PropsWithChildren<ThemeProviderProps>>;
|
|
9
8
|
export {};
|
|
@@ -12,11 +12,7 @@ export type ToastOptions = {
|
|
|
12
12
|
description?: string;
|
|
13
13
|
action?: React.ReactNode;
|
|
14
14
|
icon?: React.ReactNode;
|
|
15
|
-
extension?: boolean;
|
|
16
|
-
top?: number;
|
|
17
15
|
};
|
|
18
|
-
export type DefaultToastOptions = Partial<Omit<ToastOptions, 'id' | 'type'>>;
|
|
19
|
-
export declare const useToastDefaults: () => Partial<Omit<ToastOptions, "id" | "type">>;
|
|
20
16
|
export declare const toast: {
|
|
21
17
|
info: (title: string, options?: ToastOptions) => string | number;
|
|
22
18
|
success: (title: string, options?: ToastOptions) => string | number;
|
|
@@ -30,8 +26,8 @@ export declare const toast: {
|
|
|
30
26
|
dismiss: (id: string) => void;
|
|
31
27
|
dismissAll: () => void;
|
|
32
28
|
};
|
|
33
|
-
type
|
|
34
|
-
|
|
29
|
+
type ToasterGlobalProps = {
|
|
30
|
+
variant?: 'web' | 'extension';
|
|
35
31
|
};
|
|
36
|
-
export declare const Toaster: ({
|
|
32
|
+
export declare const Toaster: ({ variant }: ToasterGlobalProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
33
|
export {};
|