@fuf-stack/pixels 0.41.0 → 0.41.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.d.cts CHANGED
@@ -17,15 +17,16 @@ export { P as ProgressCircular, a as ProgressCircularProps, p as progressCircula
17
17
  export { P as Progress, a as ProgressProps, p as progressVariants } from './Progress-7yXUVioO.cjs';
18
18
  export { T as Table, c as TableColumnProps, a as TableProps, b as TableRowProps, V as VariantProps, t as tableVariants } from './Table-D19f5nrd.cjs';
19
19
  export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-xUYwXMX9.cjs';
20
- import * as tailwind_variants from 'tailwind-variants';
21
- import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
22
- import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
23
- import { ReactNode } from 'react';
24
- import * as react_jsx_runtime from 'react/jsx-runtime';
20
+ export { A as AddToastVariantProps, b as ToastProps, T as ToastProvider, c as ToastProviderProps, a as addToast, t as toastVariants } from './ToastProvider-CL1v-bkE.cjs';
25
21
  export { T as Tooltip, b as TooltipPlacement, a as TooltipProps } from './Tooltip-Bu71AKvn.cjs';
26
22
  export { useDebounce, useLocalStorage } from './hooks/index.cjs';
27
23
  export { ButtonGroupProps } from '@heroui/button';
24
+ import 'react/jsx-runtime';
25
+ import 'tailwind-variants';
26
+ import 'tailwind-variants/dist/config.js';
27
+ import '@fuf-stack/pixel-utils';
28
28
  import '@heroui/divider';
29
+ import 'react';
29
30
  import '@heroui/badge';
30
31
  import '@heroui/system';
31
32
  import '@heroui/drawer';
@@ -34,293 +35,3 @@ import '@heroui/dropdown';
34
35
  import '@heroui/modal';
35
36
  import '@heroui/popover';
36
37
  import '@heroui/tooltip';
37
-
38
- declare const toastVariants: tailwind_variants.TVReturnType<{
39
- color: {
40
- default: string;
41
- foreground: {
42
- progressIndicator: string;
43
- };
44
- primary: {
45
- progressIndicator: string;
46
- };
47
- secondary: {
48
- progressIndicator: string;
49
- };
50
- success: {
51
- progressIndicator: string;
52
- };
53
- warning: {
54
- progressIndicator: string;
55
- };
56
- danger: {
57
- progressIndicator: string;
58
- };
59
- info: {};
60
- };
61
- variant: {
62
- flat: string;
63
- solid: string;
64
- bordered: string;
65
- };
66
- }, {
67
- base: string;
68
- title: string;
69
- description: string;
70
- icon: string;
71
- loadingIcon: string;
72
- content: string;
73
- motionDiv: string;
74
- progressTrack: string;
75
- progressIndicator: string;
76
- closeButton: string;
77
- closeIcon: string;
78
- }, undefined, tailwind_variants_dist_config_js.TVConfig<{
79
- color: {
80
- default: string;
81
- foreground: {
82
- progressIndicator: string;
83
- };
84
- primary: {
85
- progressIndicator: string;
86
- };
87
- secondary: {
88
- progressIndicator: string;
89
- };
90
- success: {
91
- progressIndicator: string;
92
- };
93
- warning: {
94
- progressIndicator: string;
95
- };
96
- danger: {
97
- progressIndicator: string;
98
- };
99
- info: {};
100
- };
101
- variant: {
102
- flat: string;
103
- solid: string;
104
- bordered: string;
105
- };
106
- }, {
107
- color: {
108
- default: string;
109
- foreground: {
110
- progressIndicator: string;
111
- };
112
- primary: {
113
- progressIndicator: string;
114
- };
115
- secondary: {
116
- progressIndicator: string;
117
- };
118
- success: {
119
- progressIndicator: string;
120
- };
121
- warning: {
122
- progressIndicator: string;
123
- };
124
- danger: {
125
- progressIndicator: string;
126
- };
127
- info: {};
128
- };
129
- variant: {
130
- flat: string;
131
- solid: string;
132
- bordered: string;
133
- };
134
- }>, {
135
- color: {
136
- default: string;
137
- foreground: {
138
- progressIndicator: string;
139
- };
140
- primary: {
141
- progressIndicator: string;
142
- };
143
- secondary: {
144
- progressIndicator: string;
145
- };
146
- success: {
147
- progressIndicator: string;
148
- };
149
- warning: {
150
- progressIndicator: string;
151
- };
152
- danger: {
153
- progressIndicator: string;
154
- };
155
- info: {};
156
- };
157
- variant: {
158
- flat: string;
159
- solid: string;
160
- bordered: string;
161
- };
162
- }, {
163
- base: string;
164
- title: string;
165
- description: string;
166
- icon: string;
167
- loadingIcon: string;
168
- content: string;
169
- motionDiv: string;
170
- progressTrack: string;
171
- progressIndicator: string;
172
- closeButton: string;
173
- closeIcon: string;
174
- }, tailwind_variants.TVReturnType<{
175
- color: {
176
- default: string;
177
- foreground: {
178
- progressIndicator: string;
179
- };
180
- primary: {
181
- progressIndicator: string;
182
- };
183
- secondary: {
184
- progressIndicator: string;
185
- };
186
- success: {
187
- progressIndicator: string;
188
- };
189
- warning: {
190
- progressIndicator: string;
191
- };
192
- danger: {
193
- progressIndicator: string;
194
- };
195
- info: {};
196
- };
197
- variant: {
198
- flat: string;
199
- solid: string;
200
- bordered: string;
201
- };
202
- }, {
203
- base: string;
204
- title: string;
205
- description: string;
206
- icon: string;
207
- loadingIcon: string;
208
- content: string;
209
- motionDiv: string;
210
- progressTrack: string;
211
- progressIndicator: string;
212
- closeButton: string;
213
- closeIcon: string;
214
- }, undefined, tailwind_variants_dist_config_js.TVConfig<{
215
- color: {
216
- default: string;
217
- foreground: {
218
- progressIndicator: string;
219
- };
220
- primary: {
221
- progressIndicator: string;
222
- };
223
- secondary: {
224
- progressIndicator: string;
225
- };
226
- success: {
227
- progressIndicator: string;
228
- };
229
- warning: {
230
- progressIndicator: string;
231
- };
232
- danger: {
233
- progressIndicator: string;
234
- };
235
- info: {};
236
- };
237
- variant: {
238
- flat: string;
239
- solid: string;
240
- bordered: string;
241
- };
242
- }, {
243
- color: {
244
- default: string;
245
- foreground: {
246
- progressIndicator: string;
247
- };
248
- primary: {
249
- progressIndicator: string;
250
- };
251
- secondary: {
252
- progressIndicator: string;
253
- };
254
- success: {
255
- progressIndicator: string;
256
- };
257
- warning: {
258
- progressIndicator: string;
259
- };
260
- danger: {
261
- progressIndicator: string;
262
- };
263
- info: {};
264
- };
265
- variant: {
266
- flat: string;
267
- solid: string;
268
- bordered: string;
269
- };
270
- }>, unknown, unknown, undefined>>;
271
- type AddToastVariantProps = TVProps<typeof toastVariants>;
272
- type ClassName = TVClassName<typeof toastVariants>;
273
- interface ToastProps extends AddToastVariantProps {
274
- /** CSS class name */
275
- className?: ClassName;
276
- /** Icon displayed at the end of the Alert */
277
- closeIcon?: ReactNode;
278
- /** Color of the alert */
279
- color?: AddToastVariantProps['color'];
280
- /** Content displayed inside the Alert */
281
- description?: ReactNode;
282
- /** Content displayed at the end of the Alert */
283
- endContent?: ReactNode;
284
- /** Icon displayed at the start of the Alert */
285
- icon?: ReactNode;
286
- /** Icon or animation displayed until promise is resolved */
287
- loadingIcon?: ReactNode;
288
- /** Callback function called when the toast is closed */
289
- onClose?: () => void;
290
- /** Promise based on which the notification will be styled */
291
- promise?: Promise<void>;
292
- /** Whether the toast should show a progress bar */
293
- shouldShowTimeoutProgress?: boolean;
294
- /** Whether the toast should show a close button */
295
- showCloseButton?: boolean;
296
- /** Whether the toast should show an icon */
297
- showIcon?: boolean;
298
- /** Time the toast is displayed */
299
- timeout?: number;
300
- /** Content displayed at the top of the toast */
301
- title?: ReactNode;
302
- /** Variant of the toast */
303
- variant?: AddToastVariantProps['variant'];
304
- }
305
- /**
306
- * addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
307
- */
308
- declare const addToast: ({ className, closeIcon, color, description, endContent, icon, loadingIcon, onClose, promise, shouldShowTimeoutProgress, showCloseButton, showIcon, timeout, title, variant, }: ToastProps) => void;
309
-
310
- type ToastProviderToastProps = Omit<ToastProps, 'description' | 'endContent' | 'title'>;
311
- interface ToastProviderProps {
312
- disableAnimation?: boolean;
313
- maxVisibleToasts?: number;
314
- placement?: 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center';
315
- toastProps?: ToastProviderToastProps;
316
- toastOffset?: number;
317
- regionProps?: {
318
- classNames?: Record<'base', string>;
319
- };
320
- }
321
- /**
322
- * ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
323
- */
324
- declare const ToastProvider: ({ disableAnimation, maxVisibleToasts, placement, toastProps, toastOffset, regionProps, }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
325
-
326
- export { type AddToastVariantProps, type ToastProps, ToastProvider, type ToastProviderProps, addToast, toastVariants };
package/dist/index.d.ts CHANGED
@@ -17,15 +17,16 @@ export { P as ProgressCircular, a as ProgressCircularProps, p as progressCircula
17
17
  export { P as Progress, a as ProgressProps, p as progressVariants } from './Progress-7yXUVioO.js';
18
18
  export { T as Table, c as TableColumnProps, a as TableProps, b as TableRowProps, V as VariantProps, t as tableVariants } from './Table-D19f5nrd.js';
19
19
  export { b as TabProps, T as Tabs, a as TabsProps, t as tabsVariants } from './Tabs-xUYwXMX9.js';
20
- import * as tailwind_variants from 'tailwind-variants';
21
- import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config.js';
22
- import { TVProps, TVClassName } from '@fuf-stack/pixel-utils';
23
- import { ReactNode } from 'react';
24
- import * as react_jsx_runtime from 'react/jsx-runtime';
20
+ export { A as AddToastVariantProps, b as ToastProps, T as ToastProvider, c as ToastProviderProps, a as addToast, t as toastVariants } from './ToastProvider-CL1v-bkE.js';
25
21
  export { T as Tooltip, b as TooltipPlacement, a as TooltipProps } from './Tooltip-Bu71AKvn.js';
26
22
  export { useDebounce, useLocalStorage } from './hooks/index.js';
27
23
  export { ButtonGroupProps } from '@heroui/button';
24
+ import 'react/jsx-runtime';
25
+ import 'tailwind-variants';
26
+ import 'tailwind-variants/dist/config.js';
27
+ import '@fuf-stack/pixel-utils';
28
28
  import '@heroui/divider';
29
+ import 'react';
29
30
  import '@heroui/badge';
30
31
  import '@heroui/system';
31
32
  import '@heroui/drawer';
@@ -34,293 +35,3 @@ import '@heroui/dropdown';
34
35
  import '@heroui/modal';
35
36
  import '@heroui/popover';
36
37
  import '@heroui/tooltip';
37
-
38
- declare const toastVariants: tailwind_variants.TVReturnType<{
39
- color: {
40
- default: string;
41
- foreground: {
42
- progressIndicator: string;
43
- };
44
- primary: {
45
- progressIndicator: string;
46
- };
47
- secondary: {
48
- progressIndicator: string;
49
- };
50
- success: {
51
- progressIndicator: string;
52
- };
53
- warning: {
54
- progressIndicator: string;
55
- };
56
- danger: {
57
- progressIndicator: string;
58
- };
59
- info: {};
60
- };
61
- variant: {
62
- flat: string;
63
- solid: string;
64
- bordered: string;
65
- };
66
- }, {
67
- base: string;
68
- title: string;
69
- description: string;
70
- icon: string;
71
- loadingIcon: string;
72
- content: string;
73
- motionDiv: string;
74
- progressTrack: string;
75
- progressIndicator: string;
76
- closeButton: string;
77
- closeIcon: string;
78
- }, undefined, tailwind_variants_dist_config_js.TVConfig<{
79
- color: {
80
- default: string;
81
- foreground: {
82
- progressIndicator: string;
83
- };
84
- primary: {
85
- progressIndicator: string;
86
- };
87
- secondary: {
88
- progressIndicator: string;
89
- };
90
- success: {
91
- progressIndicator: string;
92
- };
93
- warning: {
94
- progressIndicator: string;
95
- };
96
- danger: {
97
- progressIndicator: string;
98
- };
99
- info: {};
100
- };
101
- variant: {
102
- flat: string;
103
- solid: string;
104
- bordered: string;
105
- };
106
- }, {
107
- color: {
108
- default: string;
109
- foreground: {
110
- progressIndicator: string;
111
- };
112
- primary: {
113
- progressIndicator: string;
114
- };
115
- secondary: {
116
- progressIndicator: string;
117
- };
118
- success: {
119
- progressIndicator: string;
120
- };
121
- warning: {
122
- progressIndicator: string;
123
- };
124
- danger: {
125
- progressIndicator: string;
126
- };
127
- info: {};
128
- };
129
- variant: {
130
- flat: string;
131
- solid: string;
132
- bordered: string;
133
- };
134
- }>, {
135
- color: {
136
- default: string;
137
- foreground: {
138
- progressIndicator: string;
139
- };
140
- primary: {
141
- progressIndicator: string;
142
- };
143
- secondary: {
144
- progressIndicator: string;
145
- };
146
- success: {
147
- progressIndicator: string;
148
- };
149
- warning: {
150
- progressIndicator: string;
151
- };
152
- danger: {
153
- progressIndicator: string;
154
- };
155
- info: {};
156
- };
157
- variant: {
158
- flat: string;
159
- solid: string;
160
- bordered: string;
161
- };
162
- }, {
163
- base: string;
164
- title: string;
165
- description: string;
166
- icon: string;
167
- loadingIcon: string;
168
- content: string;
169
- motionDiv: string;
170
- progressTrack: string;
171
- progressIndicator: string;
172
- closeButton: string;
173
- closeIcon: string;
174
- }, tailwind_variants.TVReturnType<{
175
- color: {
176
- default: string;
177
- foreground: {
178
- progressIndicator: string;
179
- };
180
- primary: {
181
- progressIndicator: string;
182
- };
183
- secondary: {
184
- progressIndicator: string;
185
- };
186
- success: {
187
- progressIndicator: string;
188
- };
189
- warning: {
190
- progressIndicator: string;
191
- };
192
- danger: {
193
- progressIndicator: string;
194
- };
195
- info: {};
196
- };
197
- variant: {
198
- flat: string;
199
- solid: string;
200
- bordered: string;
201
- };
202
- }, {
203
- base: string;
204
- title: string;
205
- description: string;
206
- icon: string;
207
- loadingIcon: string;
208
- content: string;
209
- motionDiv: string;
210
- progressTrack: string;
211
- progressIndicator: string;
212
- closeButton: string;
213
- closeIcon: string;
214
- }, undefined, tailwind_variants_dist_config_js.TVConfig<{
215
- color: {
216
- default: string;
217
- foreground: {
218
- progressIndicator: string;
219
- };
220
- primary: {
221
- progressIndicator: string;
222
- };
223
- secondary: {
224
- progressIndicator: string;
225
- };
226
- success: {
227
- progressIndicator: string;
228
- };
229
- warning: {
230
- progressIndicator: string;
231
- };
232
- danger: {
233
- progressIndicator: string;
234
- };
235
- info: {};
236
- };
237
- variant: {
238
- flat: string;
239
- solid: string;
240
- bordered: string;
241
- };
242
- }, {
243
- color: {
244
- default: string;
245
- foreground: {
246
- progressIndicator: string;
247
- };
248
- primary: {
249
- progressIndicator: string;
250
- };
251
- secondary: {
252
- progressIndicator: string;
253
- };
254
- success: {
255
- progressIndicator: string;
256
- };
257
- warning: {
258
- progressIndicator: string;
259
- };
260
- danger: {
261
- progressIndicator: string;
262
- };
263
- info: {};
264
- };
265
- variant: {
266
- flat: string;
267
- solid: string;
268
- bordered: string;
269
- };
270
- }>, unknown, unknown, undefined>>;
271
- type AddToastVariantProps = TVProps<typeof toastVariants>;
272
- type ClassName = TVClassName<typeof toastVariants>;
273
- interface ToastProps extends AddToastVariantProps {
274
- /** CSS class name */
275
- className?: ClassName;
276
- /** Icon displayed at the end of the Alert */
277
- closeIcon?: ReactNode;
278
- /** Color of the alert */
279
- color?: AddToastVariantProps['color'];
280
- /** Content displayed inside the Alert */
281
- description?: ReactNode;
282
- /** Content displayed at the end of the Alert */
283
- endContent?: ReactNode;
284
- /** Icon displayed at the start of the Alert */
285
- icon?: ReactNode;
286
- /** Icon or animation displayed until promise is resolved */
287
- loadingIcon?: ReactNode;
288
- /** Callback function called when the toast is closed */
289
- onClose?: () => void;
290
- /** Promise based on which the notification will be styled */
291
- promise?: Promise<void>;
292
- /** Whether the toast should show a progress bar */
293
- shouldShowTimeoutProgress?: boolean;
294
- /** Whether the toast should show a close button */
295
- showCloseButton?: boolean;
296
- /** Whether the toast should show an icon */
297
- showIcon?: boolean;
298
- /** Time the toast is displayed */
299
- timeout?: number;
300
- /** Content displayed at the top of the toast */
301
- title?: ReactNode;
302
- /** Variant of the toast */
303
- variant?: AddToastVariantProps['variant'];
304
- }
305
- /**
306
- * addToast function based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
307
- */
308
- declare const addToast: ({ className, closeIcon, color, description, endContent, icon, loadingIcon, onClose, promise, shouldShowTimeoutProgress, showCloseButton, showIcon, timeout, title, variant, }: ToastProps) => void;
309
-
310
- type ToastProviderToastProps = Omit<ToastProps, 'description' | 'endContent' | 'title'>;
311
- interface ToastProviderProps {
312
- disableAnimation?: boolean;
313
- maxVisibleToasts?: number;
314
- placement?: 'bottom-right' | 'bottom-left' | 'bottom-center' | 'top-right' | 'top-left' | 'top-center';
315
- toastProps?: ToastProviderToastProps;
316
- toastOffset?: number;
317
- regionProps?: {
318
- classNames?: Record<'base', string>;
319
- };
320
- }
321
- /**
322
- * ToastProvider component based on [HeroUI Toast](https://www.heroui.com//docs/components/toast)
323
- */
324
- declare const ToastProvider: ({ disableAnimation, maxVisibleToasts, placement, toastProps, toastOffset, regionProps, }: ToastProviderProps) => react_jsx_runtime.JSX.Element;
325
-
326
- export { type AddToastVariantProps, type ToastProps, ToastProvider, type ToastProviderProps, addToast, toastVariants };