@fileverse/ui 4.1.1 → 4.1.2-patch-2
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.css +276 -60
- package/dist/index.es.d.ts +193 -85
- package/dist/index.es.js +37818 -15574
- package/package.json +3 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
|
+
import { Command as Command_2 } from 'cmdk';
|
|
4
5
|
import { default as default_2 } from 'react';
|
|
5
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
6
8
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
7
9
|
import { EmojiClickData } from 'emoji-picker-react';
|
|
8
10
|
import { ForwardRefExoticComponent } from 'react';
|
|
9
11
|
import { GridProps as GridProps_2 } from '@radix-ui/themes';
|
|
12
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
10
13
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
14
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
15
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
@@ -18,6 +21,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
18
21
|
import { SetStateAction } from 'react';
|
|
19
22
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
20
23
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
24
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
21
25
|
import { VariantProps } from 'class-variance-authority';
|
|
22
26
|
|
|
23
27
|
export declare const Accordion: React_2.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React_2.RefAttributes<HTMLDivElement>, "ref">) & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -81,7 +85,12 @@ declare const avatarVariants: (props?: ({
|
|
|
81
85
|
content?: "image" | "text" | null | undefined;
|
|
82
86
|
} & ClassProp) | undefined) => string;
|
|
83
87
|
|
|
84
|
-
export declare const BottomDrawer: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, hasCloseIcon, }:
|
|
88
|
+
export declare const BottomDrawer: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, hasCloseIcon, headerClassName, footerClassName, }: BottomDrawerProps) => JSX_2.Element;
|
|
89
|
+
|
|
90
|
+
export declare interface BottomDrawerProps extends DynamicModalProps {
|
|
91
|
+
headerClassName?: string;
|
|
92
|
+
footerClassName?: string;
|
|
93
|
+
}
|
|
85
94
|
|
|
86
95
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
87
96
|
|
|
@@ -148,6 +157,99 @@ export declare interface CheckboxProps {
|
|
|
148
157
|
|
|
149
158
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
150
159
|
|
|
160
|
+
export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
|
|
161
|
+
children?: React_2.ReactNode;
|
|
162
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
163
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
164
|
+
} & {
|
|
165
|
+
asChild?: boolean;
|
|
166
|
+
}, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
167
|
+
label?: string;
|
|
168
|
+
shouldFilter?: boolean;
|
|
169
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
170
|
+
defaultValue?: string;
|
|
171
|
+
value?: string;
|
|
172
|
+
onValueChange?: (value: string) => void;
|
|
173
|
+
loop?: boolean;
|
|
174
|
+
disablePointerSelection?: boolean;
|
|
175
|
+
vimBindings?: boolean;
|
|
176
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
177
|
+
|
|
178
|
+
export declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => JSX_2.Element;
|
|
179
|
+
|
|
180
|
+
declare interface CommandDialogProps extends DialogProps {
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
|
|
184
|
+
children?: React_2.ReactNode;
|
|
185
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
186
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
187
|
+
} & {
|
|
188
|
+
asChild?: boolean;
|
|
189
|
+
}, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
190
|
+
|
|
191
|
+
export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
|
|
192
|
+
children?: React_2.ReactNode;
|
|
193
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
194
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
195
|
+
} & {
|
|
196
|
+
asChild?: boolean;
|
|
197
|
+
}, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
198
|
+
heading?: React_2.ReactNode;
|
|
199
|
+
value?: string;
|
|
200
|
+
forceMount?: boolean;
|
|
201
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
202
|
+
|
|
203
|
+
export declare const CommandInput: React_2.ForwardRefExoticComponent<CommandInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
204
|
+
|
|
205
|
+
export declare interface CommandInputProps extends React_2.ComponentPropsWithoutRef<typeof Command_2.Input> {
|
|
206
|
+
disabledIcon?: boolean;
|
|
207
|
+
inputWrapperClassName?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
211
|
+
children?: React_2.ReactNode;
|
|
212
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
213
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
214
|
+
} & {
|
|
215
|
+
asChild?: boolean;
|
|
216
|
+
}, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
217
|
+
disabled?: boolean;
|
|
218
|
+
onSelect?: (value: string) => void;
|
|
219
|
+
value?: string;
|
|
220
|
+
keywords?: string[];
|
|
221
|
+
forceMount?: boolean;
|
|
222
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
223
|
+
|
|
224
|
+
export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
|
|
225
|
+
children?: React_2.ReactNode;
|
|
226
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
227
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
228
|
+
} & {
|
|
229
|
+
asChild?: boolean;
|
|
230
|
+
}, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
231
|
+
label?: string;
|
|
232
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
233
|
+
|
|
234
|
+
export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
235
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
236
|
+
} & {
|
|
237
|
+
asChild?: boolean;
|
|
238
|
+
}, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
239
|
+
alwaysRender?: boolean;
|
|
240
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
241
|
+
|
|
242
|
+
export declare const CommandShortcut: {
|
|
243
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
244
|
+
displayName: string;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export declare const Counter: default_2.ForwardRefExoticComponent<CounterProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
248
|
+
|
|
249
|
+
export declare interface CounterProps {
|
|
250
|
+
count: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
151
253
|
export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
|
|
152
254
|
|
|
153
255
|
export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -157,6 +259,7 @@ export declare const DialogContent: React_2.ForwardRefExoticComponent<DialogCont
|
|
|
157
259
|
declare interface DialogContentProps extends React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
158
260
|
hasCloseIcon?: boolean;
|
|
159
261
|
dismissable?: boolean;
|
|
262
|
+
overlayClasses?: string;
|
|
160
263
|
}
|
|
161
264
|
|
|
162
265
|
export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -202,6 +305,8 @@ export declare const DrawerContent: React_2.ForwardRefExoticComponent<DrawerCont
|
|
|
202
305
|
|
|
203
306
|
declare interface DrawerContentProps extends React_2.ComponentPropsWithoutRef<typeof Drawer_2.Content> {
|
|
204
307
|
hasCloseIcon?: boolean;
|
|
308
|
+
overlayClasses?: string;
|
|
309
|
+
onClose?: (open: boolean) => void;
|
|
205
310
|
}
|
|
206
311
|
|
|
207
312
|
export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -224,7 +329,7 @@ export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
|
|
|
224
329
|
|
|
225
330
|
export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
226
331
|
|
|
227
|
-
export declare const DynamicAlert: ({ title, description, variant, icon, className, ...props }: DynamicAlertProps) => JSX_2.Element;
|
|
332
|
+
export declare const DynamicAlert: ({ title, description, variant, icon, className, iconClassName, ...props }: DynamicAlertProps) => JSX_2.Element;
|
|
228
333
|
|
|
229
334
|
export declare interface DynamicAlertProps {
|
|
230
335
|
title?: string;
|
|
@@ -232,6 +337,7 @@ export declare interface DynamicAlertProps {
|
|
|
232
337
|
variant: "default" | "danger";
|
|
233
338
|
icon?: LucideIconProps["name"];
|
|
234
339
|
className?: string;
|
|
340
|
+
iconClassName?: string;
|
|
235
341
|
}
|
|
236
342
|
|
|
237
343
|
export declare const DynamicContentController: ForwardRefExoticComponent<DynamicContentControllerProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -244,7 +350,7 @@ export declare interface DynamicContentControllerProps {
|
|
|
244
350
|
size?: "sm" | "lg";
|
|
245
351
|
}
|
|
246
352
|
|
|
247
|
-
export declare const DynamicDrawer: ({ open, onOpenChange, title, titleIcon, content, className, headerClassName, side, noOverlay, rounded, dismissible, }: DynamicDrawerProps) => JSX_2.Element;
|
|
353
|
+
export declare const DynamicDrawer: ({ open, onOpenChange, title, titleIcon, content, className, headerClassName, side, noOverlay, overlayClasses, rounded, dismissible, }: DynamicDrawerProps) => JSX_2.Element;
|
|
248
354
|
|
|
249
355
|
export declare interface DynamicDrawerProps {
|
|
250
356
|
open: boolean;
|
|
@@ -256,6 +362,7 @@ export declare interface DynamicDrawerProps {
|
|
|
256
362
|
className?: string;
|
|
257
363
|
headerClassName?: string;
|
|
258
364
|
noOverlay?: boolean;
|
|
365
|
+
overlayClasses?: string;
|
|
259
366
|
side?: "top" | "right" | "bottom" | "left";
|
|
260
367
|
rounded?: boolean;
|
|
261
368
|
dismissible?: boolean;
|
|
@@ -272,12 +379,12 @@ export declare interface DynamicDropdownProps {
|
|
|
272
379
|
alignOffset?: number;
|
|
273
380
|
}
|
|
274
381
|
|
|
275
|
-
export declare const DynamicModal: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, disableOutsideClick, hasCloseIcon, }: DynamicModalProps) => JSX_2.Element;
|
|
382
|
+
export declare const DynamicModal: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, disableOutsideClick, hasCloseIcon, overlayClasses, noOverlay, }: DynamicModalProps) => JSX_2.Element;
|
|
276
383
|
|
|
277
384
|
export declare interface DynamicModalProps {
|
|
278
385
|
open: boolean;
|
|
279
386
|
onOpenChange: (open: boolean) => void;
|
|
280
|
-
title
|
|
387
|
+
title?: string | default_2.ReactNode;
|
|
281
388
|
description?: string;
|
|
282
389
|
content?: default_2.ReactNode;
|
|
283
390
|
primaryAction?: {
|
|
@@ -298,6 +405,8 @@ export declare interface DynamicModalProps {
|
|
|
298
405
|
contentClassName?: string;
|
|
299
406
|
disableOutsideClick?: boolean;
|
|
300
407
|
hasCloseIcon?: boolean;
|
|
408
|
+
overlayClasses?: string;
|
|
409
|
+
noOverlay?: boolean;
|
|
301
410
|
}
|
|
302
411
|
|
|
303
412
|
export declare const DynamicRadio: ForwardRefExoticComponent<DynamicRadioProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -347,6 +456,12 @@ export declare const GridLayout: (props: GridProps) => JSX_2.Element;
|
|
|
347
456
|
|
|
348
457
|
export declare type GridProps = GridProps_2;
|
|
349
458
|
|
|
459
|
+
export declare const HoverCard: React_2.FC<HoverCardPrimitive.HoverCardProps>;
|
|
460
|
+
|
|
461
|
+
export declare const HoverCardContent: React_2.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
462
|
+
|
|
463
|
+
export declare const HoverCardTrigger: React_2.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
464
|
+
|
|
350
465
|
export declare const Icon: default_2.ForwardRefExoticComponent<Omit<IconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
|
|
351
466
|
|
|
352
467
|
export declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -437,79 +552,6 @@ export declare interface LucideIconProps extends Omit<SvgProps_2, "name">, Varia
|
|
|
437
552
|
strokeWidth?: number;
|
|
438
553
|
}
|
|
439
554
|
|
|
440
|
-
export declare interface MemberProps {
|
|
441
|
-
uuid: string;
|
|
442
|
-
email?: string;
|
|
443
|
-
username?: string;
|
|
444
|
-
walletAddress?: string;
|
|
445
|
-
avatar?: string;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export declare const MultiSelect: React_2.ForwardRefExoticComponent<MultiSelectProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Props for MultiSelect component
|
|
452
|
-
*/
|
|
453
|
-
export declare interface MultiSelectProps extends Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue"> {
|
|
454
|
-
/**
|
|
455
|
-
* An array of option objects to be displayed in the multi-select component.
|
|
456
|
-
* Each option object has a label, value, and an optional icon.
|
|
457
|
-
*/
|
|
458
|
-
options: {
|
|
459
|
-
/** The text to display for the option. */
|
|
460
|
-
uuid: string;
|
|
461
|
-
email: string;
|
|
462
|
-
username: string;
|
|
463
|
-
walletAddress: string;
|
|
464
|
-
avatar: string;
|
|
465
|
-
}[];
|
|
466
|
-
/**
|
|
467
|
-
* Callback function triggered when the selected values change.
|
|
468
|
-
* Receives an array of the new selected values.
|
|
469
|
-
*/
|
|
470
|
-
onValueChange: (value: MemberProps[]) => void;
|
|
471
|
-
/** The default selected values when the component mounts. */
|
|
472
|
-
defaultValue?: MemberProps[] | [];
|
|
473
|
-
/**
|
|
474
|
-
* Placeholder text to be displayed when no values are selected.
|
|
475
|
-
* Optional, defaults to "Select options".
|
|
476
|
-
*/
|
|
477
|
-
placeholder?: string;
|
|
478
|
-
/**
|
|
479
|
-
* Maximum number of items to display. Extra selected items will be summarized.
|
|
480
|
-
* Optional, defaults to 3.
|
|
481
|
-
*/
|
|
482
|
-
maxCount?: number;
|
|
483
|
-
/**
|
|
484
|
-
* The modality of the popover. When set to true, interaction with outside elements
|
|
485
|
-
* will be disabled and only popover content will be visible to screen readers.
|
|
486
|
-
* Optional, defaults to false.
|
|
487
|
-
*/
|
|
488
|
-
modalPopover?: boolean;
|
|
489
|
-
/**
|
|
490
|
-
* If true, renders the multi-select component as a child of another component.
|
|
491
|
-
* Optional, defaults to false.
|
|
492
|
-
*/
|
|
493
|
-
asChild?: boolean;
|
|
494
|
-
/**
|
|
495
|
-
* Additional class names to apply custom styles to the multi-select component.
|
|
496
|
-
* Optional, can be used to add custom styles.
|
|
497
|
-
*/
|
|
498
|
-
className?: string;
|
|
499
|
-
/**
|
|
500
|
-
* An array of roles.
|
|
501
|
-
*/
|
|
502
|
-
roles?: RoleProps[] | [];
|
|
503
|
-
/**
|
|
504
|
-
* Helper text for search functionality.
|
|
505
|
-
*/
|
|
506
|
-
searchHelperText?: string;
|
|
507
|
-
/**
|
|
508
|
-
* The selected type of filter, either email or wallet.
|
|
509
|
-
*/
|
|
510
|
-
selectedType: string;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
555
|
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
514
556
|
|
|
515
557
|
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -518,6 +560,7 @@ export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverCo
|
|
|
518
560
|
|
|
519
561
|
export declare interface PopoverContentProps extends React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
520
562
|
elevation?: number;
|
|
563
|
+
container?: HTMLDivElement | null;
|
|
521
564
|
}
|
|
522
565
|
|
|
523
566
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -540,12 +583,6 @@ export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<Radi
|
|
|
540
583
|
size?: "sm" | "lg";
|
|
541
584
|
} & React_2.RefAttributes<HTMLButtonElement>>;
|
|
542
585
|
|
|
543
|
-
export declare interface RoleProps {
|
|
544
|
-
label: string;
|
|
545
|
-
value: string;
|
|
546
|
-
description?: string;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
586
|
export declare const SegmentedControl: default_2.ForwardRefExoticComponent<SegmentedControlProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
550
587
|
|
|
551
588
|
export declare interface SegmentedControlProps extends default_2.AllHTMLAttributes<HTMLDivElement> {
|
|
@@ -613,6 +650,8 @@ declare const sheetVariants: (props?: ({
|
|
|
613
650
|
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
614
651
|
} & ClassProp) | undefined) => string;
|
|
615
652
|
|
|
653
|
+
export declare const Skeleton: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
|
|
654
|
+
|
|
616
655
|
export declare type SortState = {
|
|
617
656
|
keyName: string | null;
|
|
618
657
|
order: "default" | "asc" | "desc";
|
|
@@ -691,12 +730,26 @@ export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPri
|
|
|
691
730
|
|
|
692
731
|
export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
693
732
|
|
|
733
|
+
export declare const TagInput: ({ tags, selectedTags, onAddTag, isPreviewMode, }: TagInputProps) => JSX_2.Element | null;
|
|
734
|
+
|
|
735
|
+
export declare interface TagInputProps {
|
|
736
|
+
tags: TagType[];
|
|
737
|
+
selectedTags: TagType[];
|
|
738
|
+
onAddTag: (tag: TagType) => void;
|
|
739
|
+
isPreviewMode: boolean;
|
|
740
|
+
}
|
|
741
|
+
|
|
694
742
|
export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
|
|
695
743
|
isRemovable?: boolean;
|
|
696
744
|
onRemove?: (event?: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
697
745
|
icon?: any;
|
|
698
746
|
}
|
|
699
747
|
|
|
748
|
+
export declare interface TagType {
|
|
749
|
+
name: string;
|
|
750
|
+
color: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
700
753
|
declare const tagVariants: (props?: ({
|
|
701
754
|
variant?: "danger" | "transparent" | "gray" | "brand" | "success" | null | undefined;
|
|
702
755
|
} & ClassProp) | undefined) => string;
|
|
@@ -747,6 +800,55 @@ export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTML
|
|
|
747
800
|
onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
748
801
|
}
|
|
749
802
|
|
|
803
|
+
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
804
|
+
variant?: "default" | "danger" | "secondary" | "success" | null | undefined;
|
|
805
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom" | null | undefined;
|
|
806
|
+
} & ClassProp) | undefined) => string> & {
|
|
807
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
808
|
+
duration?: number;
|
|
809
|
+
hasIcon?: boolean;
|
|
810
|
+
} & React_2.RefAttributes<HTMLLIElement>>;
|
|
811
|
+
|
|
812
|
+
export declare function toast({ ...props }: Toast_2): {
|
|
813
|
+
id: string;
|
|
814
|
+
dismiss: () => void;
|
|
815
|
+
update: (props: ToasterToast) => void;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
declare type Toast_2 = Omit<ToasterToast, "id">;
|
|
819
|
+
|
|
820
|
+
export declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
821
|
+
|
|
822
|
+
export declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
823
|
+
|
|
824
|
+
export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
825
|
+
|
|
826
|
+
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
827
|
+
|
|
828
|
+
export declare const Toaster: ({ position, duration, }: ToasterProps) => JSX_2.Element;
|
|
829
|
+
|
|
830
|
+
export declare interface ToasterProps {
|
|
831
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
832
|
+
duration?: number;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
declare type ToasterToast = ToastProps & {
|
|
836
|
+
id: string;
|
|
837
|
+
title?: React_2.ReactNode;
|
|
838
|
+
description?: React_2.ReactNode;
|
|
839
|
+
action?: ToastActionElement;
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
export declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
843
|
+
|
|
844
|
+
export declare const ToastProvider: React_2.FC<ToastPrimitives.ToastProviderProps>;
|
|
845
|
+
|
|
846
|
+
export declare const ToastTitle: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
847
|
+
|
|
848
|
+
export declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & {
|
|
849
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
850
|
+
} & React_2.RefAttributes<HTMLOListElement>>;
|
|
851
|
+
|
|
750
852
|
export declare const Toggle: React_2.ForwardRefExoticComponent<ToggleProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
751
853
|
|
|
752
854
|
export declare interface ToggleProps extends React_2.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, VariantProps<typeof toggleVariants> {
|
|
@@ -771,7 +873,7 @@ declare const tooltipVariants: (props?: ({
|
|
|
771
873
|
defaultVariants?: "variant" | "beakPosition" | null | undefined;
|
|
772
874
|
} & ClassProp) | undefined) => string;
|
|
773
875
|
|
|
774
|
-
declare const UltimateIcons: any;
|
|
876
|
+
export declare const UltimateIcons: any;
|
|
775
877
|
|
|
776
878
|
export declare const useHoverAndLongPress: ({ delay, }: UseHoverAndLongPressProps) => {
|
|
777
879
|
onMouseEnter: () => void;
|
|
@@ -791,4 +893,10 @@ export declare function useSortableData(initialData: TableDataProps[], defaultSo
|
|
|
791
893
|
sortData: (keyName: string) => void;
|
|
792
894
|
};
|
|
793
895
|
|
|
896
|
+
export declare function useToast(): {
|
|
897
|
+
toast: typeof toast;
|
|
898
|
+
dismiss: (toastId?: string) => void;
|
|
899
|
+
toasts: ToasterToast[];
|
|
900
|
+
};
|
|
901
|
+
|
|
794
902
|
export { }
|