@fuf-stack/pixels 0.38.0 → 0.39.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/Alert/index.cjs +2 -2
- package/dist/Alert/index.d.cts +2 -2
- package/dist/Alert/index.d.ts +2 -2
- package/dist/Alert/index.js +1 -1
- package/dist/{Alert-Bz_lJ_YE.d.cts → Alert-DELD9ZWe.d.cts} +80 -1
- package/dist/{Alert-Bz_lJ_YE.d.ts → Alert-DELD9ZWe.d.ts} +80 -1
- package/dist/Menu/index.cjs +2 -2
- package/dist/Menu/index.d.cts +3 -2
- package/dist/Menu/index.d.ts +3 -2
- package/dist/Menu/index.js +1 -1
- package/dist/{Menu-C7lpY7pY.d.cts → Menu-DYi8oagz.d.cts} +3 -2
- package/dist/{Menu-C7lpY7pY.d.ts → Menu-DYi8oagz.d.ts} +3 -2
- package/dist/Popover/index.cjs +2 -2
- package/dist/Popover/index.d.cts +2 -2
- package/dist/Popover/index.d.ts +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-B2-09nsy.d.ts → Popover-BHPrdRy6.d.ts} +1 -1
- package/dist/{Popover-DAYvOjOY.d.cts → Popover-BXyk9y8I.d.cts} +1 -1
- package/dist/Table/index.cjs +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{chunk-MOIIBJ6O.js → chunk-5TOE75VE.js} +3 -3
- package/dist/chunk-5TOE75VE.js.map +1 -0
- package/dist/{chunk-QMYSCJEJ.js → chunk-AFGRLKHU.js} +2 -2
- package/dist/{chunk-QMYSCJEJ.js.map → chunk-AFGRLKHU.js.map} +1 -1
- package/dist/{chunk-A4MJ5V64.cjs → chunk-AJCAIA6H.cjs} +2 -2
- package/dist/chunk-AJCAIA6H.cjs.map +1 -0
- package/dist/{chunk-EAJGISR6.cjs → chunk-EAX5J2I2.cjs} +3 -3
- package/dist/chunk-EAX5J2I2.cjs.map +1 -0
- package/dist/{chunk-V2WKZH63.js → chunk-MG3PTEMK.js} +16 -3
- package/dist/chunk-MG3PTEMK.js.map +1 -0
- package/dist/{chunk-LRJVQPVR.js → chunk-OP5W7BXY.js} +2 -2
- package/dist/chunk-OP5W7BXY.js.map +1 -0
- package/dist/{chunk-KBYU4ZF2.cjs → chunk-XHOAZB2Z.cjs} +2 -2
- package/dist/chunk-XHOAZB2Z.cjs.map +1 -0
- package/dist/{chunk-33S6NRVI.cjs → chunk-YVPRFCWI.cjs} +16 -3
- package/dist/chunk-YVPRFCWI.cjs.map +1 -0
- package/dist/index.cjs +171 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +284 -8
- package/dist/index.d.ts +284 -8
- package/dist/index.js +170 -5
- package/dist/index.js.map +1 -1
- package/package.json +24 -23
- package/dist/chunk-33S6NRVI.cjs.map +0 -1
- package/dist/chunk-A4MJ5V64.cjs.map +0 -1
- package/dist/chunk-EAJGISR6.cjs.map +0 -1
- package/dist/chunk-KBYU4ZF2.cjs.map +0 -1
- package/dist/chunk-LRJVQPVR.js.map +0 -1
- package/dist/chunk-MOIIBJ6O.js.map +0 -1
- package/dist/chunk-V2WKZH63.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as Accordion, c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from './Accordion-rA715N0Z.cjs';
|
|
2
|
-
export { A as Alert, b as AlertProps, a as alertVariants } from './Alert-
|
|
2
|
+
export { A as Alert, b as AlertProps, a as alertVariants } from './Alert-DELD9ZWe.cjs';
|
|
3
3
|
export { A as Avatar, a as AvatarProps } from './Avatar-ylNJ_-dY.cjs';
|
|
4
4
|
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-CUyQwK3t.cjs';
|
|
5
5
|
export { A as Badge, B as BadgeProps } from './Badge-CvXzljaJ.cjs';
|
|
@@ -10,24 +10,300 @@ export { C as Card, a as CardProps, c as cardVariants } from './Card-BdciRqJz.cj
|
|
|
10
10
|
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-BnV9qxPA.cjs';
|
|
11
11
|
export { J as Json, a as JsonProps } from './Json-ngM0f9n2.cjs';
|
|
12
12
|
export { L as Label, a as LabelProps } from './Label-BH0taC2T.cjs';
|
|
13
|
-
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-
|
|
13
|
+
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-DYi8oagz.cjs';
|
|
14
14
|
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-DI5ZdS_3.cjs';
|
|
15
|
-
export { _ as Popover, P as PopoverProps } from './Popover-
|
|
15
|
+
export { _ as Popover, P as PopoverProps } from './Popover-BXyk9y8I.cjs';
|
|
16
16
|
export { T as Table, c as TableColumnProps, a as TableProps, b as TableRowProps, V as VariantProps, t as tableVariants } from './Table-D19f5nrd.cjs';
|
|
17
17
|
export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-xUYwXMX9.cjs';
|
|
18
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
19
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
20
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
21
|
+
import { ReactNode } from 'react';
|
|
22
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
18
23
|
export { T as Tooltip, b as TooltipPlacement, a as TooltipProps } from './Tooltip-Bu71AKvn.cjs';
|
|
19
24
|
export { useDebounce, useLocalStorage } from './hooks/index.cjs';
|
|
20
25
|
export { ButtonGroupProps } from '@heroui/button';
|
|
21
|
-
import 'react/jsx-runtime';
|
|
22
|
-
import 'tailwind-variants';
|
|
23
|
-
import 'tailwind-variants/dist/config.js';
|
|
24
|
-
import '@fuf-stack/pixel-utils';
|
|
25
26
|
import '@heroui/divider';
|
|
26
|
-
import 'react';
|
|
27
27
|
import '@heroui/badge';
|
|
28
28
|
import '@heroui/system';
|
|
29
29
|
import '@heroui/drawer';
|
|
30
30
|
import '@heroui/chip';
|
|
31
|
+
import '@heroui/dropdown';
|
|
31
32
|
import '@heroui/modal';
|
|
32
33
|
import '@heroui/popover';
|
|
33
34
|
import '@heroui/tooltip';
|
|
35
|
+
|
|
36
|
+
declare const toastVariants: tailwind_variants.TVReturnType<{
|
|
37
|
+
color: {
|
|
38
|
+
default: string;
|
|
39
|
+
foreground: {
|
|
40
|
+
progressIndicator: string;
|
|
41
|
+
};
|
|
42
|
+
primary: {
|
|
43
|
+
progressIndicator: string;
|
|
44
|
+
};
|
|
45
|
+
secondary: {
|
|
46
|
+
progressIndicator: string;
|
|
47
|
+
};
|
|
48
|
+
success: {
|
|
49
|
+
progressIndicator: string;
|
|
50
|
+
};
|
|
51
|
+
warning: {
|
|
52
|
+
progressIndicator: string;
|
|
53
|
+
};
|
|
54
|
+
danger: {
|
|
55
|
+
progressIndicator: string;
|
|
56
|
+
};
|
|
57
|
+
info: {};
|
|
58
|
+
};
|
|
59
|
+
variant: {
|
|
60
|
+
flat: string;
|
|
61
|
+
solid: string;
|
|
62
|
+
bordered: string;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
base: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
loadingIcon: string;
|
|
70
|
+
content: string;
|
|
71
|
+
motionDiv: string;
|
|
72
|
+
progressTrack: string;
|
|
73
|
+
progressIndicator: string;
|
|
74
|
+
closeButton: string;
|
|
75
|
+
closeIcon: string;
|
|
76
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
77
|
+
color: {
|
|
78
|
+
default: string;
|
|
79
|
+
foreground: {
|
|
80
|
+
progressIndicator: string;
|
|
81
|
+
};
|
|
82
|
+
primary: {
|
|
83
|
+
progressIndicator: string;
|
|
84
|
+
};
|
|
85
|
+
secondary: {
|
|
86
|
+
progressIndicator: string;
|
|
87
|
+
};
|
|
88
|
+
success: {
|
|
89
|
+
progressIndicator: string;
|
|
90
|
+
};
|
|
91
|
+
warning: {
|
|
92
|
+
progressIndicator: string;
|
|
93
|
+
};
|
|
94
|
+
danger: {
|
|
95
|
+
progressIndicator: string;
|
|
96
|
+
};
|
|
97
|
+
info: {};
|
|
98
|
+
};
|
|
99
|
+
variant: {
|
|
100
|
+
flat: string;
|
|
101
|
+
solid: string;
|
|
102
|
+
bordered: string;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
color: {
|
|
106
|
+
default: string;
|
|
107
|
+
foreground: {
|
|
108
|
+
progressIndicator: string;
|
|
109
|
+
};
|
|
110
|
+
primary: {
|
|
111
|
+
progressIndicator: string;
|
|
112
|
+
};
|
|
113
|
+
secondary: {
|
|
114
|
+
progressIndicator: string;
|
|
115
|
+
};
|
|
116
|
+
success: {
|
|
117
|
+
progressIndicator: string;
|
|
118
|
+
};
|
|
119
|
+
warning: {
|
|
120
|
+
progressIndicator: string;
|
|
121
|
+
};
|
|
122
|
+
danger: {
|
|
123
|
+
progressIndicator: string;
|
|
124
|
+
};
|
|
125
|
+
info: {};
|
|
126
|
+
};
|
|
127
|
+
variant: {
|
|
128
|
+
flat: string;
|
|
129
|
+
solid: string;
|
|
130
|
+
bordered: string;
|
|
131
|
+
};
|
|
132
|
+
}>, {
|
|
133
|
+
color: {
|
|
134
|
+
default: string;
|
|
135
|
+
foreground: {
|
|
136
|
+
progressIndicator: string;
|
|
137
|
+
};
|
|
138
|
+
primary: {
|
|
139
|
+
progressIndicator: string;
|
|
140
|
+
};
|
|
141
|
+
secondary: {
|
|
142
|
+
progressIndicator: string;
|
|
143
|
+
};
|
|
144
|
+
success: {
|
|
145
|
+
progressIndicator: string;
|
|
146
|
+
};
|
|
147
|
+
warning: {
|
|
148
|
+
progressIndicator: string;
|
|
149
|
+
};
|
|
150
|
+
danger: {
|
|
151
|
+
progressIndicator: string;
|
|
152
|
+
};
|
|
153
|
+
info: {};
|
|
154
|
+
};
|
|
155
|
+
variant: {
|
|
156
|
+
flat: string;
|
|
157
|
+
solid: string;
|
|
158
|
+
bordered: string;
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
base: string;
|
|
162
|
+
title: string;
|
|
163
|
+
description: string;
|
|
164
|
+
icon: string;
|
|
165
|
+
loadingIcon: string;
|
|
166
|
+
content: string;
|
|
167
|
+
motionDiv: string;
|
|
168
|
+
progressTrack: string;
|
|
169
|
+
progressIndicator: string;
|
|
170
|
+
closeButton: string;
|
|
171
|
+
closeIcon: string;
|
|
172
|
+
}, tailwind_variants.TVReturnType<{
|
|
173
|
+
color: {
|
|
174
|
+
default: string;
|
|
175
|
+
foreground: {
|
|
176
|
+
progressIndicator: string;
|
|
177
|
+
};
|
|
178
|
+
primary: {
|
|
179
|
+
progressIndicator: string;
|
|
180
|
+
};
|
|
181
|
+
secondary: {
|
|
182
|
+
progressIndicator: string;
|
|
183
|
+
};
|
|
184
|
+
success: {
|
|
185
|
+
progressIndicator: string;
|
|
186
|
+
};
|
|
187
|
+
warning: {
|
|
188
|
+
progressIndicator: string;
|
|
189
|
+
};
|
|
190
|
+
danger: {
|
|
191
|
+
progressIndicator: string;
|
|
192
|
+
};
|
|
193
|
+
info: {};
|
|
194
|
+
};
|
|
195
|
+
variant: {
|
|
196
|
+
flat: string;
|
|
197
|
+
solid: string;
|
|
198
|
+
bordered: string;
|
|
199
|
+
};
|
|
200
|
+
}, {
|
|
201
|
+
base: string;
|
|
202
|
+
title: string;
|
|
203
|
+
description: string;
|
|
204
|
+
icon: string;
|
|
205
|
+
loadingIcon: string;
|
|
206
|
+
content: string;
|
|
207
|
+
motionDiv: string;
|
|
208
|
+
progressTrack: string;
|
|
209
|
+
progressIndicator: string;
|
|
210
|
+
closeButton: string;
|
|
211
|
+
closeIcon: string;
|
|
212
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
213
|
+
color: {
|
|
214
|
+
default: string;
|
|
215
|
+
foreground: {
|
|
216
|
+
progressIndicator: string;
|
|
217
|
+
};
|
|
218
|
+
primary: {
|
|
219
|
+
progressIndicator: string;
|
|
220
|
+
};
|
|
221
|
+
secondary: {
|
|
222
|
+
progressIndicator: string;
|
|
223
|
+
};
|
|
224
|
+
success: {
|
|
225
|
+
progressIndicator: string;
|
|
226
|
+
};
|
|
227
|
+
warning: {
|
|
228
|
+
progressIndicator: string;
|
|
229
|
+
};
|
|
230
|
+
danger: {
|
|
231
|
+
progressIndicator: string;
|
|
232
|
+
};
|
|
233
|
+
info: {};
|
|
234
|
+
};
|
|
235
|
+
variant: {
|
|
236
|
+
flat: string;
|
|
237
|
+
solid: string;
|
|
238
|
+
bordered: string;
|
|
239
|
+
};
|
|
240
|
+
}, {
|
|
241
|
+
color: {
|
|
242
|
+
default: string;
|
|
243
|
+
foreground: {
|
|
244
|
+
progressIndicator: string;
|
|
245
|
+
};
|
|
246
|
+
primary: {
|
|
247
|
+
progressIndicator: string;
|
|
248
|
+
};
|
|
249
|
+
secondary: {
|
|
250
|
+
progressIndicator: string;
|
|
251
|
+
};
|
|
252
|
+
success: {
|
|
253
|
+
progressIndicator: string;
|
|
254
|
+
};
|
|
255
|
+
warning: {
|
|
256
|
+
progressIndicator: string;
|
|
257
|
+
};
|
|
258
|
+
danger: {
|
|
259
|
+
progressIndicator: string;
|
|
260
|
+
};
|
|
261
|
+
info: {};
|
|
262
|
+
};
|
|
263
|
+
variant: {
|
|
264
|
+
flat: string;
|
|
265
|
+
solid: string;
|
|
266
|
+
bordered: string;
|
|
267
|
+
};
|
|
268
|
+
}>, unknown, unknown, undefined>>;
|
|
269
|
+
type AddToastVariantProps = TVProps<typeof toastVariants>;
|
|
270
|
+
type ClassName = TVClassName<typeof toastVariants>;
|
|
271
|
+
interface ToastProps extends AddToastVariantProps {
|
|
272
|
+
children?: ReactNode;
|
|
273
|
+
className?: ClassName;
|
|
274
|
+
closeIcon?: ReactNode;
|
|
275
|
+
color?: AddToastVariantProps['color'];
|
|
276
|
+
description?: ReactNode;
|
|
277
|
+
endContent?: ReactNode;
|
|
278
|
+
icon?: ReactNode;
|
|
279
|
+
loadingIcon?: ReactNode;
|
|
280
|
+
onClose?: () => void;
|
|
281
|
+
shouldShowTimeoutProgress?: boolean;
|
|
282
|
+
showCloseButton?: boolean;
|
|
283
|
+
showIcon?: boolean;
|
|
284
|
+
timeout?: number;
|
|
285
|
+
title?: ReactNode;
|
|
286
|
+
variant?: AddToastVariantProps['variant'];
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
|
|
290
|
+
*/
|
|
291
|
+
declare const addToast: ({ children, className, closeIcon, color, description, endContent, icon, loadingIcon, onClose, shouldShowTimeoutProgress, showCloseButton, showIcon, timeout, title, variant, }: ToastProps) => void;
|
|
292
|
+
|
|
293
|
+
type ToastProviderToastProps = Omit<ToastProps, 'description' | 'endContent' | 'title'>;
|
|
294
|
+
interface ToastProviderProps {
|
|
295
|
+
disableAnimation?: boolean;
|
|
296
|
+
maxVisibleToasts?: number;
|
|
297
|
+
placement?: 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center';
|
|
298
|
+
toastProps?: ToastProviderToastProps;
|
|
299
|
+
toastOffset?: number;
|
|
300
|
+
regionProps?: {
|
|
301
|
+
classNames?: Record<'base', string>;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
|
|
306
|
+
*/
|
|
307
|
+
declare const ToastProvider: ({ disableAnimation, maxVisibleToasts, placement, toastProps, toastOffset, regionProps, }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
export { type AddToastVariantProps, type ToastProps, ToastProvider, type ToastProviderProps, addToast, toastVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as Accordion, c as AccordionItemProps, b as AccordionProps, a as accordionVariants } from './Accordion-rA715N0Z.js';
|
|
2
|
-
export { A as Alert, b as AlertProps, a as alertVariants } from './Alert-
|
|
2
|
+
export { A as Alert, b as AlertProps, a as alertVariants } from './Alert-DELD9ZWe.js';
|
|
3
3
|
export { A as Avatar, a as AvatarProps } from './Avatar-ylNJ_-dY.js';
|
|
4
4
|
export { A as AvatarGroup, a as AvatarGroupProps } from './AvatarGroup-BfOtqfJy.js';
|
|
5
5
|
export { A as Badge, B as BadgeProps } from './Badge-CvXzljaJ.js';
|
|
@@ -10,24 +10,300 @@ export { C as Card, a as CardProps, c as cardVariants } from './Card-BdciRqJz.js
|
|
|
10
10
|
export { D as Drawer, f as DrawerProps, d as drawerBackdrops, a as drawerPlacements, b as drawerRadii, c as drawerSizes, e as drawerVariants } from './Drawer-BnV9qxPA.js';
|
|
11
11
|
export { J as Json, a as JsonProps } from './Json-ngM0f9n2.js';
|
|
12
12
|
export { L as Label, a as LabelProps } from './Label-BH0taC2T.js';
|
|
13
|
-
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-
|
|
13
|
+
export { M as Menu, b as MenuItem, a as MenuProps, c as MenuSection } from './Menu-DYi8oagz.js';
|
|
14
14
|
export { M as Modal, a as ModalProps, m as modalVariants } from './Modal-DI5ZdS_3.js';
|
|
15
|
-
export { _ as Popover, P as PopoverProps } from './Popover-
|
|
15
|
+
export { _ as Popover, P as PopoverProps } from './Popover-BHPrdRy6.js';
|
|
16
16
|
export { T as Table, c as TableColumnProps, a as TableProps, b as TableRowProps, V as VariantProps, t as tableVariants } from './Table-D19f5nrd.js';
|
|
17
17
|
export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-xUYwXMX9.js';
|
|
18
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
19
|
+
import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
|
|
20
|
+
import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
|
|
21
|
+
import { ReactNode } from 'react';
|
|
22
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
18
23
|
export { T as Tooltip, b as TooltipPlacement, a as TooltipProps } from './Tooltip-Bu71AKvn.js';
|
|
19
24
|
export { useDebounce, useLocalStorage } from './hooks/index.js';
|
|
20
25
|
export { ButtonGroupProps } from '@heroui/button';
|
|
21
|
-
import 'react/jsx-runtime';
|
|
22
|
-
import 'tailwind-variants';
|
|
23
|
-
import 'tailwind-variants/dist/config.js';
|
|
24
|
-
import '@fuf-stack/pixel-utils';
|
|
25
26
|
import '@heroui/divider';
|
|
26
|
-
import 'react';
|
|
27
27
|
import '@heroui/badge';
|
|
28
28
|
import '@heroui/system';
|
|
29
29
|
import '@heroui/drawer';
|
|
30
30
|
import '@heroui/chip';
|
|
31
|
+
import '@heroui/dropdown';
|
|
31
32
|
import '@heroui/modal';
|
|
32
33
|
import '@heroui/popover';
|
|
33
34
|
import '@heroui/tooltip';
|
|
35
|
+
|
|
36
|
+
declare const toastVariants: tailwind_variants.TVReturnType<{
|
|
37
|
+
color: {
|
|
38
|
+
default: string;
|
|
39
|
+
foreground: {
|
|
40
|
+
progressIndicator: string;
|
|
41
|
+
};
|
|
42
|
+
primary: {
|
|
43
|
+
progressIndicator: string;
|
|
44
|
+
};
|
|
45
|
+
secondary: {
|
|
46
|
+
progressIndicator: string;
|
|
47
|
+
};
|
|
48
|
+
success: {
|
|
49
|
+
progressIndicator: string;
|
|
50
|
+
};
|
|
51
|
+
warning: {
|
|
52
|
+
progressIndicator: string;
|
|
53
|
+
};
|
|
54
|
+
danger: {
|
|
55
|
+
progressIndicator: string;
|
|
56
|
+
};
|
|
57
|
+
info: {};
|
|
58
|
+
};
|
|
59
|
+
variant: {
|
|
60
|
+
flat: string;
|
|
61
|
+
solid: string;
|
|
62
|
+
bordered: string;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
base: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
loadingIcon: string;
|
|
70
|
+
content: string;
|
|
71
|
+
motionDiv: string;
|
|
72
|
+
progressTrack: string;
|
|
73
|
+
progressIndicator: string;
|
|
74
|
+
closeButton: string;
|
|
75
|
+
closeIcon: string;
|
|
76
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
77
|
+
color: {
|
|
78
|
+
default: string;
|
|
79
|
+
foreground: {
|
|
80
|
+
progressIndicator: string;
|
|
81
|
+
};
|
|
82
|
+
primary: {
|
|
83
|
+
progressIndicator: string;
|
|
84
|
+
};
|
|
85
|
+
secondary: {
|
|
86
|
+
progressIndicator: string;
|
|
87
|
+
};
|
|
88
|
+
success: {
|
|
89
|
+
progressIndicator: string;
|
|
90
|
+
};
|
|
91
|
+
warning: {
|
|
92
|
+
progressIndicator: string;
|
|
93
|
+
};
|
|
94
|
+
danger: {
|
|
95
|
+
progressIndicator: string;
|
|
96
|
+
};
|
|
97
|
+
info: {};
|
|
98
|
+
};
|
|
99
|
+
variant: {
|
|
100
|
+
flat: string;
|
|
101
|
+
solid: string;
|
|
102
|
+
bordered: string;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
color: {
|
|
106
|
+
default: string;
|
|
107
|
+
foreground: {
|
|
108
|
+
progressIndicator: string;
|
|
109
|
+
};
|
|
110
|
+
primary: {
|
|
111
|
+
progressIndicator: string;
|
|
112
|
+
};
|
|
113
|
+
secondary: {
|
|
114
|
+
progressIndicator: string;
|
|
115
|
+
};
|
|
116
|
+
success: {
|
|
117
|
+
progressIndicator: string;
|
|
118
|
+
};
|
|
119
|
+
warning: {
|
|
120
|
+
progressIndicator: string;
|
|
121
|
+
};
|
|
122
|
+
danger: {
|
|
123
|
+
progressIndicator: string;
|
|
124
|
+
};
|
|
125
|
+
info: {};
|
|
126
|
+
};
|
|
127
|
+
variant: {
|
|
128
|
+
flat: string;
|
|
129
|
+
solid: string;
|
|
130
|
+
bordered: string;
|
|
131
|
+
};
|
|
132
|
+
}>, {
|
|
133
|
+
color: {
|
|
134
|
+
default: string;
|
|
135
|
+
foreground: {
|
|
136
|
+
progressIndicator: string;
|
|
137
|
+
};
|
|
138
|
+
primary: {
|
|
139
|
+
progressIndicator: string;
|
|
140
|
+
};
|
|
141
|
+
secondary: {
|
|
142
|
+
progressIndicator: string;
|
|
143
|
+
};
|
|
144
|
+
success: {
|
|
145
|
+
progressIndicator: string;
|
|
146
|
+
};
|
|
147
|
+
warning: {
|
|
148
|
+
progressIndicator: string;
|
|
149
|
+
};
|
|
150
|
+
danger: {
|
|
151
|
+
progressIndicator: string;
|
|
152
|
+
};
|
|
153
|
+
info: {};
|
|
154
|
+
};
|
|
155
|
+
variant: {
|
|
156
|
+
flat: string;
|
|
157
|
+
solid: string;
|
|
158
|
+
bordered: string;
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
base: string;
|
|
162
|
+
title: string;
|
|
163
|
+
description: string;
|
|
164
|
+
icon: string;
|
|
165
|
+
loadingIcon: string;
|
|
166
|
+
content: string;
|
|
167
|
+
motionDiv: string;
|
|
168
|
+
progressTrack: string;
|
|
169
|
+
progressIndicator: string;
|
|
170
|
+
closeButton: string;
|
|
171
|
+
closeIcon: string;
|
|
172
|
+
}, tailwind_variants.TVReturnType<{
|
|
173
|
+
color: {
|
|
174
|
+
default: string;
|
|
175
|
+
foreground: {
|
|
176
|
+
progressIndicator: string;
|
|
177
|
+
};
|
|
178
|
+
primary: {
|
|
179
|
+
progressIndicator: string;
|
|
180
|
+
};
|
|
181
|
+
secondary: {
|
|
182
|
+
progressIndicator: string;
|
|
183
|
+
};
|
|
184
|
+
success: {
|
|
185
|
+
progressIndicator: string;
|
|
186
|
+
};
|
|
187
|
+
warning: {
|
|
188
|
+
progressIndicator: string;
|
|
189
|
+
};
|
|
190
|
+
danger: {
|
|
191
|
+
progressIndicator: string;
|
|
192
|
+
};
|
|
193
|
+
info: {};
|
|
194
|
+
};
|
|
195
|
+
variant: {
|
|
196
|
+
flat: string;
|
|
197
|
+
solid: string;
|
|
198
|
+
bordered: string;
|
|
199
|
+
};
|
|
200
|
+
}, {
|
|
201
|
+
base: string;
|
|
202
|
+
title: string;
|
|
203
|
+
description: string;
|
|
204
|
+
icon: string;
|
|
205
|
+
loadingIcon: string;
|
|
206
|
+
content: string;
|
|
207
|
+
motionDiv: string;
|
|
208
|
+
progressTrack: string;
|
|
209
|
+
progressIndicator: string;
|
|
210
|
+
closeButton: string;
|
|
211
|
+
closeIcon: string;
|
|
212
|
+
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
213
|
+
color: {
|
|
214
|
+
default: string;
|
|
215
|
+
foreground: {
|
|
216
|
+
progressIndicator: string;
|
|
217
|
+
};
|
|
218
|
+
primary: {
|
|
219
|
+
progressIndicator: string;
|
|
220
|
+
};
|
|
221
|
+
secondary: {
|
|
222
|
+
progressIndicator: string;
|
|
223
|
+
};
|
|
224
|
+
success: {
|
|
225
|
+
progressIndicator: string;
|
|
226
|
+
};
|
|
227
|
+
warning: {
|
|
228
|
+
progressIndicator: string;
|
|
229
|
+
};
|
|
230
|
+
danger: {
|
|
231
|
+
progressIndicator: string;
|
|
232
|
+
};
|
|
233
|
+
info: {};
|
|
234
|
+
};
|
|
235
|
+
variant: {
|
|
236
|
+
flat: string;
|
|
237
|
+
solid: string;
|
|
238
|
+
bordered: string;
|
|
239
|
+
};
|
|
240
|
+
}, {
|
|
241
|
+
color: {
|
|
242
|
+
default: string;
|
|
243
|
+
foreground: {
|
|
244
|
+
progressIndicator: string;
|
|
245
|
+
};
|
|
246
|
+
primary: {
|
|
247
|
+
progressIndicator: string;
|
|
248
|
+
};
|
|
249
|
+
secondary: {
|
|
250
|
+
progressIndicator: string;
|
|
251
|
+
};
|
|
252
|
+
success: {
|
|
253
|
+
progressIndicator: string;
|
|
254
|
+
};
|
|
255
|
+
warning: {
|
|
256
|
+
progressIndicator: string;
|
|
257
|
+
};
|
|
258
|
+
danger: {
|
|
259
|
+
progressIndicator: string;
|
|
260
|
+
};
|
|
261
|
+
info: {};
|
|
262
|
+
};
|
|
263
|
+
variant: {
|
|
264
|
+
flat: string;
|
|
265
|
+
solid: string;
|
|
266
|
+
bordered: string;
|
|
267
|
+
};
|
|
268
|
+
}>, unknown, unknown, undefined>>;
|
|
269
|
+
type AddToastVariantProps = TVProps<typeof toastVariants>;
|
|
270
|
+
type ClassName = TVClassName<typeof toastVariants>;
|
|
271
|
+
interface ToastProps extends AddToastVariantProps {
|
|
272
|
+
children?: ReactNode;
|
|
273
|
+
className?: ClassName;
|
|
274
|
+
closeIcon?: ReactNode;
|
|
275
|
+
color?: AddToastVariantProps['color'];
|
|
276
|
+
description?: ReactNode;
|
|
277
|
+
endContent?: ReactNode;
|
|
278
|
+
icon?: ReactNode;
|
|
279
|
+
loadingIcon?: ReactNode;
|
|
280
|
+
onClose?: () => void;
|
|
281
|
+
shouldShowTimeoutProgress?: boolean;
|
|
282
|
+
showCloseButton?: boolean;
|
|
283
|
+
showIcon?: boolean;
|
|
284
|
+
timeout?: number;
|
|
285
|
+
title?: ReactNode;
|
|
286
|
+
variant?: AddToastVariantProps['variant'];
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
|
|
290
|
+
*/
|
|
291
|
+
declare const addToast: ({ children, className, closeIcon, color, description, endContent, icon, loadingIcon, onClose, shouldShowTimeoutProgress, showCloseButton, showIcon, timeout, title, variant, }: ToastProps) => void;
|
|
292
|
+
|
|
293
|
+
type ToastProviderToastProps = Omit<ToastProps, 'description' | 'endContent' | 'title'>;
|
|
294
|
+
interface ToastProviderProps {
|
|
295
|
+
disableAnimation?: boolean;
|
|
296
|
+
maxVisibleToasts?: number;
|
|
297
|
+
placement?: 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center';
|
|
298
|
+
toastProps?: ToastProviderToastProps;
|
|
299
|
+
toastOffset?: number;
|
|
300
|
+
regionProps?: {
|
|
301
|
+
classNames?: Record<'base', string>;
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
|
|
306
|
+
*/
|
|
307
|
+
declare const ToastProvider: ({ disableAnimation, maxVisibleToasts, placement, toastProps, toastOffset, regionProps, }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
|
|
308
|
+
|
|
309
|
+
export { type AddToastVariantProps, type ToastProps, ToastProvider, type ToastProviderProps, addToast, toastVariants };
|