@fileverse/ui 4.0.3 → 4.0.5
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/README.md +1 -1
- package/dist/index.cjs.js +52 -41
- package/dist/index.css +381 -7
- package/dist/index.es.d.ts +139 -3
- package/dist/index.es.js +15795 -12914
- package/package.json +6 -3
package/dist/index.es.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ClassValue } from 'clsx';
|
|
|
4
4
|
import { default as default_2 } from 'react';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
7
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
7
8
|
import { GridProps as GridProps_2 } from '@radix-ui/themes';
|
|
8
9
|
import { icons } from 'lucide-react';
|
|
9
10
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -12,6 +13,8 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
12
13
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
13
14
|
import * as React_2 from 'react';
|
|
14
15
|
import { ReactNode } from 'react';
|
|
16
|
+
import { RefAttributes } from 'react';
|
|
17
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
15
18
|
import { SetStateAction } from 'react';
|
|
16
19
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
17
20
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -191,6 +194,16 @@ export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
|
|
|
191
194
|
|
|
192
195
|
export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
193
196
|
|
|
197
|
+
export declare const DynamicContentController: ({ label, description, checked, onChange, size, }: DynamicContentControllerProps) => JSX_2.Element;
|
|
198
|
+
|
|
199
|
+
export declare interface DynamicContentControllerProps {
|
|
200
|
+
label: string;
|
|
201
|
+
description: string;
|
|
202
|
+
checked: boolean;
|
|
203
|
+
onChange: (checked: boolean) => void;
|
|
204
|
+
size?: "sm" | "lg";
|
|
205
|
+
}
|
|
206
|
+
|
|
194
207
|
export declare const DynamicDrawer: ({ open, onOpenChange, title, titleIcon, content, className, headerClassName, side, noOverlay, rounded, dismissible, }: DynamicDrawerProps) => JSX_2.Element;
|
|
195
208
|
|
|
196
209
|
export declare interface DynamicDrawerProps {
|
|
@@ -243,6 +256,15 @@ export declare interface DynamicModalProps {
|
|
|
243
256
|
hasCloseIcon?: boolean;
|
|
244
257
|
}
|
|
245
258
|
|
|
259
|
+
export declare const DynamicRadio: ForwardRefExoticComponent<DynamicRadioProps & RefAttributes<HTMLDivElement>>;
|
|
260
|
+
|
|
261
|
+
export declare interface DynamicRadioProps {
|
|
262
|
+
items: RadioCardProps[];
|
|
263
|
+
className?: string;
|
|
264
|
+
size?: "sm" | "lg";
|
|
265
|
+
content?: (selectedValue: string) => React.ReactNode;
|
|
266
|
+
}
|
|
267
|
+
|
|
246
268
|
export declare type FileType = "dDoc" | "dPage" | "whiteboard" | "note" | "link" | "media";
|
|
247
269
|
|
|
248
270
|
export declare const FloatingToolbar: default_2.ForwardRefExoticComponent<FloatingToolbarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -254,13 +276,15 @@ export declare interface FloatingToolbarProps extends default_2.AllHTMLAttribute
|
|
|
254
276
|
|
|
255
277
|
export declare const formatCounter: (number: number) => string;
|
|
256
278
|
|
|
279
|
+
export declare const getTrimmedName: (name: string, length: number, limit: number) => string;
|
|
280
|
+
|
|
257
281
|
export declare const GridLayout: (props: GridProps) => JSX_2.Element;
|
|
258
282
|
|
|
259
283
|
export declare type GridProps = GridProps_2;
|
|
260
284
|
|
|
261
285
|
export declare const Icon: default_2.ForwardRefExoticComponent<Omit<IconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
|
|
262
286
|
|
|
263
|
-
export declare const IconButton:
|
|
287
|
+
export declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
264
288
|
|
|
265
289
|
export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Pick<ButtonProps, "variant"> {
|
|
266
290
|
icon: keyof typeof UltimateIcons | string;
|
|
@@ -347,6 +371,79 @@ export declare interface LucideIconProps extends SvgProps, VariantProps<typeof i
|
|
|
347
371
|
strokeWidth?: number;
|
|
348
372
|
}
|
|
349
373
|
|
|
374
|
+
export declare interface MemberProps {
|
|
375
|
+
uuid: string;
|
|
376
|
+
email?: string;
|
|
377
|
+
username?: string;
|
|
378
|
+
walletAddress?: string;
|
|
379
|
+
avatar?: string;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export declare const MultiSelect: React_2.ForwardRefExoticComponent<MultiSelectProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Props for MultiSelect component
|
|
386
|
+
*/
|
|
387
|
+
export declare interface MultiSelectProps extends Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue"> {
|
|
388
|
+
/**
|
|
389
|
+
* An array of option objects to be displayed in the multi-select component.
|
|
390
|
+
* Each option object has a label, value, and an optional icon.
|
|
391
|
+
*/
|
|
392
|
+
options: {
|
|
393
|
+
/** The text to display for the option. */
|
|
394
|
+
uuid: string;
|
|
395
|
+
email: string;
|
|
396
|
+
username: string;
|
|
397
|
+
walletAddress: string;
|
|
398
|
+
avatar: string;
|
|
399
|
+
}[];
|
|
400
|
+
/**
|
|
401
|
+
* Callback function triggered when the selected values change.
|
|
402
|
+
* Receives an array of the new selected values.
|
|
403
|
+
*/
|
|
404
|
+
onValueChange: (value: MemberProps[]) => void;
|
|
405
|
+
/** The default selected values when the component mounts. */
|
|
406
|
+
defaultValue?: MemberProps[] | [];
|
|
407
|
+
/**
|
|
408
|
+
* Placeholder text to be displayed when no values are selected.
|
|
409
|
+
* Optional, defaults to "Select options".
|
|
410
|
+
*/
|
|
411
|
+
placeholder?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Maximum number of items to display. Extra selected items will be summarized.
|
|
414
|
+
* Optional, defaults to 3.
|
|
415
|
+
*/
|
|
416
|
+
maxCount?: number;
|
|
417
|
+
/**
|
|
418
|
+
* The modality of the popover. When set to true, interaction with outside elements
|
|
419
|
+
* will be disabled and only popover content will be visible to screen readers.
|
|
420
|
+
* Optional, defaults to false.
|
|
421
|
+
*/
|
|
422
|
+
modalPopover?: boolean;
|
|
423
|
+
/**
|
|
424
|
+
* If true, renders the multi-select component as a child of another component.
|
|
425
|
+
* Optional, defaults to false.
|
|
426
|
+
*/
|
|
427
|
+
asChild?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* Additional class names to apply custom styles to the multi-select component.
|
|
430
|
+
* Optional, can be used to add custom styles.
|
|
431
|
+
*/
|
|
432
|
+
className?: string;
|
|
433
|
+
/**
|
|
434
|
+
* An array of roles.
|
|
435
|
+
*/
|
|
436
|
+
roles?: RoleProps[] | [];
|
|
437
|
+
/**
|
|
438
|
+
* Helper text for search functionality.
|
|
439
|
+
*/
|
|
440
|
+
searchHelperText?: string;
|
|
441
|
+
/**
|
|
442
|
+
* The selected type of filter, either email or wallet.
|
|
443
|
+
*/
|
|
444
|
+
selectedType: string;
|
|
445
|
+
}
|
|
446
|
+
|
|
350
447
|
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
351
448
|
|
|
352
449
|
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -359,12 +456,30 @@ export declare interface PopoverContentProps extends React_2.ComponentPropsWitho
|
|
|
359
456
|
|
|
360
457
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
361
458
|
|
|
459
|
+
export declare const RadioCard: ({ id, label, description, selectedValue, value, content, size, }: RadioCardProps) => JSX_2.Element;
|
|
460
|
+
|
|
461
|
+
export declare interface RadioCardProps {
|
|
462
|
+
id: number;
|
|
463
|
+
label: string;
|
|
464
|
+
description: string;
|
|
465
|
+
selectedValue: string;
|
|
466
|
+
value: string;
|
|
467
|
+
size?: "sm" | "lg";
|
|
468
|
+
content?: React.ReactNode;
|
|
469
|
+
}
|
|
470
|
+
|
|
362
471
|
export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
363
472
|
|
|
364
473
|
export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
365
474
|
size?: "sm" | "lg";
|
|
366
475
|
} & React_2.RefAttributes<HTMLButtonElement>>;
|
|
367
476
|
|
|
477
|
+
export declare interface RoleProps {
|
|
478
|
+
label: string;
|
|
479
|
+
value: string;
|
|
480
|
+
description?: string;
|
|
481
|
+
}
|
|
482
|
+
|
|
368
483
|
export declare const SegmentedControl: default_2.ForwardRefExoticComponent<SegmentedControlProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
369
484
|
|
|
370
485
|
export declare interface SegmentedControlProps extends default_2.AllHTMLAttributes<HTMLDivElement> {
|
|
@@ -377,6 +492,26 @@ export declare interface SegmentedControlProps extends default_2.AllHTMLAttribut
|
|
|
377
492
|
contentType?: "icon" | "text";
|
|
378
493
|
}
|
|
379
494
|
|
|
495
|
+
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
496
|
+
|
|
497
|
+
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
498
|
+
|
|
499
|
+
export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
500
|
+
|
|
501
|
+
export declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
502
|
+
|
|
503
|
+
export declare const SelectLabel: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
504
|
+
|
|
505
|
+
export declare const SelectScrollDownButton: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
506
|
+
|
|
507
|
+
export declare const SelectScrollUpButton: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
508
|
+
|
|
509
|
+
export declare const SelectSeparator: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
510
|
+
|
|
511
|
+
export declare const SelectTrigger: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
512
|
+
|
|
513
|
+
export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
514
|
+
|
|
380
515
|
export declare const Sheet: React_2.FC<DialogPrimitive.DialogProps>;
|
|
381
516
|
|
|
382
517
|
export declare const SheetClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -492,7 +627,7 @@ export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.R
|
|
|
492
627
|
|
|
493
628
|
export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
|
|
494
629
|
isRemovable?: boolean;
|
|
495
|
-
onRemove?: () => void;
|
|
630
|
+
onRemove?: (event?: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
496
631
|
icon?: keyof typeof icons | string | undefined;
|
|
497
632
|
}
|
|
498
633
|
|
|
@@ -557,10 +692,11 @@ declare const toggleVariants: (props?: ({
|
|
|
557
692
|
variant?: "default" | "hover" | "focus" | null | undefined;
|
|
558
693
|
} & ClassProp) | undefined) => string;
|
|
559
694
|
|
|
560
|
-
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<
|
|
695
|
+
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
561
696
|
|
|
562
697
|
export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof tooltipVariants> {
|
|
563
698
|
text: string;
|
|
699
|
+
sideOffset?: number;
|
|
564
700
|
}
|
|
565
701
|
|
|
566
702
|
declare const tooltipVariants: (props?: ({
|