boottent-design 0.1.8 → 0.1.10
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/boottent-design.main.cjs.js +1 -1
- package/dist/boottent-design.main.es.js +3 -3
- package/dist/boottent-design.provider.cjs.js +1 -1
- package/dist/boottent-design.provider.es.js +1 -1
- package/dist/boottent-design.ui.cjs.js +1 -1
- package/dist/boottent-design.ui.es.js +2 -2
- package/dist/{index-CW0d1ZBT.js → index-89TXADx-.js} +1 -1
- package/dist/{index-DOi5WXd1.cjs → index-DO0O07gb.cjs} +1 -1
- package/dist/{portal-provider-DJjQI95d.js → portal-provider-6gjB0dL-.js} +1 -1
- package/dist/{portal-provider-BfanQezQ.cjs → portal-provider-B68Sk66m.cjs} +1 -1
- package/dist/{tooltip-Da-8zZlA.cjs → tooltip-cD9HxuCh.cjs} +3 -3
- package/dist/{tooltip-CQQ6mZXI.js → tooltip-mEUHJjzF.js} +346 -358
- package/dist/types/hooks.d.ts +11 -4
- package/dist/types/main.d.ts +11 -4
- package/dist/types/types.d.ts +11 -4
- package/dist/types/utils.d.ts +11 -4
- package/package.json +1 -1
package/dist/types/hooks.d.ts
CHANGED
|
@@ -38,22 +38,29 @@ declare interface ModalProps {
|
|
|
38
38
|
|
|
39
39
|
declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
40
40
|
variant?: "white" | "black" | null | undefined;
|
|
41
|
-
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
42
41
|
size?: "sm" | "md" | "lg" | "xl" | "full" | "fit" | null | undefined;
|
|
43
42
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
44
43
|
|
|
45
|
-
declare
|
|
44
|
+
declare type ToasterProps = ToastProps & ToastViewportProps & {
|
|
46
45
|
id?: string;
|
|
47
|
-
title?:
|
|
46
|
+
title?: React.ReactNode;
|
|
48
47
|
description?: React.ReactNode;
|
|
49
48
|
action?: () => void;
|
|
50
49
|
actionText?: string | React.ReactNode;
|
|
51
50
|
closeButton?: boolean;
|
|
52
51
|
onClose?: () => void;
|
|
53
|
-
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
declare type ToastPositionsType = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
54
55
|
|
|
55
56
|
declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
56
57
|
|
|
58
|
+
declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & {
|
|
59
|
+
position?: ToastPositionsType;
|
|
60
|
+
} & React_2.RefAttributes<HTMLOListElement>>;
|
|
61
|
+
|
|
62
|
+
declare type ToastViewportProps = React_2.ComponentPropsWithoutRef<typeof ToastViewport>;
|
|
63
|
+
|
|
57
64
|
export declare const usePortal: () => {
|
|
58
65
|
modal: (props: ModalProps) => string | null;
|
|
59
66
|
toast: (props: ToasterProps) => string | null;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -366,7 +366,6 @@ export declare const Symbols: {
|
|
|
366
366
|
|
|
367
367
|
declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
368
368
|
variant?: "white" | "black" | null | undefined;
|
|
369
|
-
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
370
369
|
size?: "sm" | "md" | "lg" | "xl" | "full" | "fit" | null | undefined;
|
|
371
370
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
372
371
|
|
|
@@ -386,15 +385,15 @@ export declare function toaster(): {
|
|
|
386
385
|
toasts: ToasterProps[];
|
|
387
386
|
};
|
|
388
387
|
|
|
389
|
-
export declare
|
|
388
|
+
export declare type ToasterProps = ToastProps & ToastViewportProps & {
|
|
390
389
|
id?: string;
|
|
391
|
-
title?:
|
|
390
|
+
title?: React.ReactNode;
|
|
392
391
|
description?: React.ReactNode;
|
|
393
392
|
action?: () => void;
|
|
394
393
|
actionText?: string | React.ReactNode;
|
|
395
394
|
closeButton?: boolean;
|
|
396
395
|
onClose?: () => void;
|
|
397
|
-
}
|
|
396
|
+
};
|
|
398
397
|
|
|
399
398
|
export declare interface ToastPortalOptions {
|
|
400
399
|
id: string;
|
|
@@ -402,8 +401,16 @@ export declare interface ToastPortalOptions {
|
|
|
402
401
|
props: ToastProps;
|
|
403
402
|
}
|
|
404
403
|
|
|
404
|
+
declare type ToastPositionsType = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
405
|
+
|
|
405
406
|
declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
406
407
|
|
|
408
|
+
declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & {
|
|
409
|
+
position?: ToastPositionsType;
|
|
410
|
+
} & React_2.RefAttributes<HTMLOListElement>>;
|
|
411
|
+
|
|
412
|
+
declare type ToastViewportProps = React_2.ComponentPropsWithoutRef<typeof ToastViewport>;
|
|
413
|
+
|
|
407
414
|
export declare const TooltipButton: React_2.FC<TooltipButtonProps>;
|
|
408
415
|
|
|
409
416
|
declare interface TooltipButtonProps extends TooltipContentProps {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -72,19 +72,18 @@ export declare type SvgIconType = {
|
|
|
72
72
|
|
|
73
73
|
declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
74
74
|
variant?: "white" | "black" | null | undefined;
|
|
75
|
-
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
76
75
|
size?: "sm" | "md" | "lg" | "xl" | "full" | "fit" | null | undefined;
|
|
77
76
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
78
77
|
|
|
79
|
-
export declare
|
|
78
|
+
export declare type ToasterProps = ToastProps & ToastViewportProps & {
|
|
80
79
|
id?: string;
|
|
81
|
-
title?:
|
|
80
|
+
title?: React.ReactNode;
|
|
82
81
|
description?: React.ReactNode;
|
|
83
82
|
action?: () => void;
|
|
84
83
|
actionText?: string | React.ReactNode;
|
|
85
84
|
closeButton?: boolean;
|
|
86
85
|
onClose?: () => void;
|
|
87
|
-
}
|
|
86
|
+
};
|
|
88
87
|
|
|
89
88
|
export declare interface ToastPortalOptions {
|
|
90
89
|
id: string;
|
|
@@ -92,8 +91,16 @@ export declare interface ToastPortalOptions {
|
|
|
92
91
|
props: ToastProps;
|
|
93
92
|
}
|
|
94
93
|
|
|
94
|
+
declare type ToastPositionsType = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
95
|
+
|
|
95
96
|
declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
96
97
|
|
|
98
|
+
declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & {
|
|
99
|
+
position?: ToastPositionsType;
|
|
100
|
+
} & React_2.RefAttributes<HTMLOListElement>>;
|
|
101
|
+
|
|
102
|
+
declare type ToastViewportProps = React_2.ComponentPropsWithoutRef<typeof ToastViewport>;
|
|
103
|
+
|
|
97
104
|
export { }
|
|
98
105
|
|
|
99
106
|
declare namespace _default {
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -111,7 +111,6 @@ declare interface State {
|
|
|
111
111
|
|
|
112
112
|
declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
113
113
|
variant?: "white" | "black" | null | undefined;
|
|
114
|
-
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
115
114
|
size?: "sm" | "md" | "lg" | "xl" | "full" | "fit" | null | undefined;
|
|
116
115
|
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
117
116
|
|
|
@@ -129,15 +128,15 @@ export declare function toaster(): {
|
|
|
129
128
|
toasts: ToasterProps[];
|
|
130
129
|
};
|
|
131
130
|
|
|
132
|
-
declare
|
|
131
|
+
declare type ToasterProps = ToastProps & ToastViewportProps & {
|
|
133
132
|
id?: string;
|
|
134
|
-
title?:
|
|
133
|
+
title?: React.ReactNode;
|
|
135
134
|
description?: React.ReactNode;
|
|
136
135
|
action?: () => void;
|
|
137
136
|
actionText?: string | React.ReactNode;
|
|
138
137
|
closeButton?: boolean;
|
|
139
138
|
onClose?: () => void;
|
|
140
|
-
}
|
|
139
|
+
};
|
|
141
140
|
|
|
142
141
|
declare interface ToastPortalOptions {
|
|
143
142
|
id: string;
|
|
@@ -145,8 +144,16 @@ declare interface ToastPortalOptions {
|
|
|
145
144
|
props: ToastProps;
|
|
146
145
|
}
|
|
147
146
|
|
|
147
|
+
declare type ToastPositionsType = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
148
|
+
|
|
148
149
|
declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
149
150
|
|
|
151
|
+
declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & {
|
|
152
|
+
position?: ToastPositionsType;
|
|
153
|
+
} & React_2.RefAttributes<HTMLOListElement>>;
|
|
154
|
+
|
|
155
|
+
declare type ToastViewportProps = React_2.ComponentPropsWithoutRef<typeof ToastViewport>;
|
|
156
|
+
|
|
150
157
|
export { }
|
|
151
158
|
|
|
152
159
|
declare namespace _default {
|