@fileverse/ui 4.1.0 → 4.1.1-patch-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.css CHANGED
@@ -1243,18 +1243,12 @@ video {
1243
1243
  .h-9 {
1244
1244
  height: 2.25rem;
1245
1245
  }
1246
- .h-\[16px\] {
1247
- height: 16px;
1248
- }
1249
1246
  .h-\[18px\] {
1250
1247
  height: 18px;
1251
1248
  }
1252
1249
  .h-\[208px\] {
1253
1250
  height: 208px;
1254
1251
  }
1255
- .h-\[20px\] {
1256
- height: 20px;
1257
- }
1258
1252
  .h-\[30px\] {
1259
1253
  height: 30px;
1260
1254
  }
@@ -1373,6 +1367,12 @@ video {
1373
1367
  .w-9 {
1374
1368
  width: 2.25rem;
1375
1369
  }
1370
+ .w-\[100\%\] {
1371
+ width: 100%;
1372
+ }
1373
+ .w-\[12px\] {
1374
+ width: 12px;
1375
+ }
1376
1376
  .w-\[16px\] {
1377
1377
  width: 16px;
1378
1378
  }
@@ -1409,6 +1409,9 @@ video {
1409
1409
  .w-\[68px\] {
1410
1410
  width: 68px;
1411
1411
  }
1412
+ .w-\[70\%\] {
1413
+ width: 70%;
1414
+ }
1412
1415
  .w-\[70vw\] {
1413
1416
  width: 70vw;
1414
1417
  }
@@ -1427,6 +1430,9 @@ video {
1427
1430
  .w-\[85\%\] {
1428
1431
  width: 85%;
1429
1432
  }
1433
+ .w-\[8px\] {
1434
+ width: 8px;
1435
+ }
1430
1436
  .w-fit {
1431
1437
  width: -moz-fit-content;
1432
1438
  width: fit-content;
@@ -1449,6 +1455,9 @@ video {
1449
1455
  .min-w-\[108px\] {
1450
1456
  min-width: 108px;
1451
1457
  }
1458
+ .min-w-\[110px\] {
1459
+ min-width: 110px;
1460
+ }
1452
1461
  .min-w-\[129px\] {
1453
1462
  min-width: 129px;
1454
1463
  }
@@ -1616,6 +1625,9 @@ video {
1616
1625
  .grid-flow-col {
1617
1626
  grid-auto-flow: column;
1618
1627
  }
1628
+ .grid-cols-1 {
1629
+ grid-template-columns: repeat(1, minmax(0, 1fr));
1630
+ }
1619
1631
  .grid-cols-2 {
1620
1632
  grid-template-columns: repeat(2, minmax(0, 1fr));
1621
1633
  }
@@ -1658,6 +1670,9 @@ video {
1658
1670
  .gap-1 {
1659
1671
  gap: 0.25rem;
1660
1672
  }
1673
+ .gap-10 {
1674
+ gap: 2.5rem;
1675
+ }
1661
1676
  .gap-16 {
1662
1677
  gap: 4rem;
1663
1678
  }
@@ -2297,16 +2312,6 @@ textarea:is(:-webkit-autofill, :autofill) {
2297
2312
  color: hsl(var(--color-text-disabled));
2298
2313
  }
2299
2314
 
2300
- .after\:color-bg-default-inverse::after {
2301
- content: var(--tw-content);
2302
- background-color: hsl(var(--color-bg-default-inverse));
2303
- }
2304
-
2305
- .after\:color-icon-disabled::after {
2306
- content: var(--tw-content);
2307
- background-color: hsl(var(--color-icon-disabled));
2308
- }
2309
-
2310
2315
  .checked\:color-text-inverse:checked {
2311
2316
  color: hsl(var(--color-text-inverse));
2312
2317
  }
@@ -2496,41 +2501,6 @@ textarea:is(:-webkit-autofill, :autofill) {
2496
2501
  background-color: transparent;
2497
2502
  }
2498
2503
 
2499
- .after\:block::after {
2500
- content: var(--tw-content);
2501
- display: block;
2502
- }
2503
-
2504
- .after\:h-\[10px\]::after {
2505
- content: var(--tw-content);
2506
- height: 10px;
2507
- }
2508
-
2509
- .after\:h-\[6px\]::after {
2510
- content: var(--tw-content);
2511
- height: 6px;
2512
- }
2513
-
2514
- .after\:w-\[10px\]::after {
2515
- content: var(--tw-content);
2516
- width: 10px;
2517
- }
2518
-
2519
- .after\:w-\[6px\]::after {
2520
- content: var(--tw-content);
2521
- width: 6px;
2522
- }
2523
-
2524
- .after\:rounded-\[50\%\]::after {
2525
- content: var(--tw-content);
2526
- border-radius: 50%;
2527
- }
2528
-
2529
- .after\:content-\[\'\'\]::after {
2530
- --tw-content: '';
2531
- content: var(--tw-content);
2532
- }
2533
-
2534
2504
  .checked\:border-0:checked {
2535
2505
  border-width: 0px;
2536
2506
  }
@@ -2606,6 +2576,12 @@ textarea:is(:-webkit-autofill, :autofill) {
2606
2576
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2607
2577
  }
2608
2578
 
2579
+ .focus-visible\:ring-2:focus-visible {
2580
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2581
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2582
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2583
+ }
2584
+
2609
2585
  .focus-visible\:ring-focused:focus-visible {
2610
2586
  --tw-ring-color: hsl(var(--focused));
2611
2587
  }
@@ -2857,6 +2833,10 @@ textarea:is(:-webkit-autofill, :autofill) {
2857
2833
  max-width: 24rem;
2858
2834
  }
2859
2835
 
2836
+ .sm\:grid-cols-1 {
2837
+ grid-template-columns: repeat(1, minmax(0, 1fr));
2838
+ }
2839
+
2860
2840
  .sm\:flex-row {
2861
2841
  flex-direction: row;
2862
2842
  }
@@ -2894,6 +2874,10 @@ textarea:is(:-webkit-autofill, :autofill) {
2894
2874
  width: auto;
2895
2875
  }
2896
2876
 
2877
+ .md\:grid-cols-2 {
2878
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2879
+ }
2880
+
2897
2881
  .md\:flex-row {
2898
2882
  flex-direction: row;
2899
2883
  }
@@ -2971,6 +2955,10 @@ textarea:is(:-webkit-autofill, :autofill) {
2971
2955
  max-width: fit-content !important;
2972
2956
  }
2973
2957
 
2958
+ .lg\:grid-cols-3 {
2959
+ grid-template-columns: repeat(3, minmax(0, 1fr));
2960
+ }
2961
+
2974
2962
  .lg\:text-wrap {
2975
2963
  text-wrap: wrap;
2976
2964
  }
@@ -1,13 +1,14 @@
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';
10
- import { icons } from 'lucide-react';
11
12
  import { JSX as JSX_2 } from 'react/jsx-runtime';
12
13
  import * as LabelPrimitive from '@radix-ui/react-label';
13
14
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -82,6 +83,8 @@ declare const avatarVariants: (props?: ({
82
83
  content?: "image" | "text" | null | undefined;
83
84
  } & ClassProp) | undefined) => string;
84
85
 
86
+ export declare const BottomDrawer: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, hasCloseIcon, }: DynamicModalProps) => JSX_2.Element;
87
+
85
88
  export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
86
89
 
87
90
  export declare const ButtonGroup: React_2.FC<ButtonGroupProps>;
@@ -147,6 +150,93 @@ export declare interface CheckboxProps {
147
150
 
148
151
  export declare function cn(...inputs: ClassValue[]): string;
149
152
 
153
+ export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
154
+ children?: React_2.ReactNode;
155
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
156
+ ref?: React_2.Ref<HTMLDivElement>;
157
+ } & {
158
+ asChild?: boolean;
159
+ }, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
160
+ label?: string;
161
+ shouldFilter?: boolean;
162
+ filter?: (value: string, search: string, keywords?: string[]) => number;
163
+ defaultValue?: string;
164
+ value?: string;
165
+ onValueChange?: (value: string) => void;
166
+ loop?: boolean;
167
+ disablePointerSelection?: boolean;
168
+ vimBindings?: boolean;
169
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
170
+
171
+ export declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => JSX_2.Element;
172
+
173
+ declare interface CommandDialogProps extends DialogProps {
174
+ }
175
+
176
+ export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
177
+ children?: React_2.ReactNode;
178
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
179
+ ref?: React_2.Ref<HTMLDivElement>;
180
+ } & {
181
+ asChild?: boolean;
182
+ }, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
183
+
184
+ export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
185
+ children?: React_2.ReactNode;
186
+ } & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
187
+ ref?: React_2.Ref<HTMLDivElement>;
188
+ } & {
189
+ asChild?: boolean;
190
+ }, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
191
+ heading?: React_2.ReactNode;
192
+ value?: string;
193
+ forceMount?: boolean;
194
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
195
+
196
+ export declare const CommandInput: React_2.ForwardRefExoticComponent<CommandInputProps & React_2.RefAttributes<HTMLInputElement>>;
197
+
198
+ export declare interface CommandInputProps extends React_2.ComponentPropsWithoutRef<typeof Command_2.Input> {
199
+ disabledIcon?: boolean;
200
+ inputWrapperClassName?: string;
201
+ }
202
+
203
+ export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
204
+ children?: React_2.ReactNode;
205
+ } & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
206
+ ref?: React_2.Ref<HTMLDivElement>;
207
+ } & {
208
+ asChild?: boolean;
209
+ }, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
210
+ disabled?: boolean;
211
+ onSelect?: (value: string) => void;
212
+ value?: string;
213
+ keywords?: string[];
214
+ forceMount?: boolean;
215
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
216
+
217
+ export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
218
+ children?: React_2.ReactNode;
219
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
220
+ ref?: React_2.Ref<HTMLDivElement>;
221
+ } & {
222
+ asChild?: boolean;
223
+ }, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
224
+ label?: string;
225
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
226
+
227
+ export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
228
+ ref?: React_2.Ref<HTMLDivElement>;
229
+ } & {
230
+ asChild?: boolean;
231
+ }, "key" | "asChild" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
232
+ alwaysRender?: boolean;
233
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
234
+
235
+ export declare const CommandShortcut: {
236
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
237
+ displayName: string;
238
+ };
239
+
150
240
  export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
151
241
 
152
242
  export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
@@ -360,7 +450,7 @@ export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTML
360
450
  fill?: string;
361
451
  }
362
452
 
363
- export declare interface IconProps extends SvgProps_2, VariantProps<typeof iconVariants_2> {
453
+ export declare interface IconProps extends SvgProps, VariantProps<typeof iconVariants> {
364
454
  name: keyof typeof Icons;
365
455
  className?: string;
366
456
  }
@@ -430,85 +520,12 @@ export declare enum LayoutModes {
430
520
 
431
521
  export declare const LucideIcon: default_2.ForwardRefExoticComponent<Omit<LucideIconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
432
522
 
433
- export declare interface LucideIconProps extends SvgProps, VariantProps<typeof iconVariants> {
523
+ export declare interface LucideIconProps extends Omit<SvgProps_2, "name">, VariantProps<typeof iconVariants_2> {
434
524
  name: keyof typeof UltimateIcons;
435
525
  className?: string;
436
526
  strokeWidth?: number;
437
527
  }
438
528
 
439
- export declare interface MemberProps {
440
- uuid: string;
441
- email?: string;
442
- username?: string;
443
- walletAddress?: string;
444
- avatar?: string;
445
- }
446
-
447
- export declare const MultiSelect: React_2.ForwardRefExoticComponent<MultiSelectProps & React_2.RefAttributes<HTMLButtonElement>>;
448
-
449
- /**
450
- * Props for MultiSelect component
451
- */
452
- export declare interface MultiSelectProps extends Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "defaultValue"> {
453
- /**
454
- * An array of option objects to be displayed in the multi-select component.
455
- * Each option object has a label, value, and an optional icon.
456
- */
457
- options: {
458
- /** The text to display for the option. */
459
- uuid: string;
460
- email: string;
461
- username: string;
462
- walletAddress: string;
463
- avatar: string;
464
- }[];
465
- /**
466
- * Callback function triggered when the selected values change.
467
- * Receives an array of the new selected values.
468
- */
469
- onValueChange: (value: MemberProps[]) => void;
470
- /** The default selected values when the component mounts. */
471
- defaultValue?: MemberProps[] | [];
472
- /**
473
- * Placeholder text to be displayed when no values are selected.
474
- * Optional, defaults to "Select options".
475
- */
476
- placeholder?: string;
477
- /**
478
- * Maximum number of items to display. Extra selected items will be summarized.
479
- * Optional, defaults to 3.
480
- */
481
- maxCount?: number;
482
- /**
483
- * The modality of the popover. When set to true, interaction with outside elements
484
- * will be disabled and only popover content will be visible to screen readers.
485
- * Optional, defaults to false.
486
- */
487
- modalPopover?: boolean;
488
- /**
489
- * If true, renders the multi-select component as a child of another component.
490
- * Optional, defaults to false.
491
- */
492
- asChild?: boolean;
493
- /**
494
- * Additional class names to apply custom styles to the multi-select component.
495
- * Optional, can be used to add custom styles.
496
- */
497
- className?: string;
498
- /**
499
- * An array of roles.
500
- */
501
- roles?: RoleProps[] | [];
502
- /**
503
- * Helper text for search functionality.
504
- */
505
- searchHelperText?: string;
506
- /**
507
- * The selected type of filter, either email or wallet.
508
- */
509
- selectedType: string;
510
- }
511
-
512
529
  export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
513
530
 
514
531
  export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -539,12 +556,6 @@ export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<Radi
539
556
  size?: "sm" | "lg";
540
557
  } & React_2.RefAttributes<HTMLButtonElement>>;
541
558
 
542
- export declare interface RoleProps {
543
- label: string;
544
- value: string;
545
- description?: string;
546
- }
547
-
548
559
  export declare const SegmentedControl: default_2.ForwardRefExoticComponent<SegmentedControlProps & default_2.RefAttributes<HTMLDivElement>>;
549
560
 
550
561
  export declare interface SegmentedControlProps extends default_2.AllHTMLAttributes<HTMLDivElement> {
@@ -693,11 +704,11 @@ export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.R
693
704
  export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
694
705
  isRemovable?: boolean;
695
706
  onRemove?: (event?: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
696
- icon?: keyof typeof icons | string | undefined;
707
+ icon?: any;
697
708
  }
698
709
 
699
710
  declare const tagVariants: (props?: ({
700
- variant?: "transparent" | "danger" | "gray" | "brand" | "success" | null | undefined;
711
+ variant?: "danger" | "transparent" | "gray" | "brand" | "success" | null | undefined;
701
712
  } & ClassProp) | undefined) => string;
702
713
 
703
714
  export declare const TextAreaField: React_2.ForwardRefExoticComponent<TextAreaFieldProps & React_2.RefAttributes<HTMLTextAreaElement>>;
@@ -770,20 +781,7 @@ declare const tooltipVariants: (props?: ({
770
781
  defaultVariants?: "variant" | "beakPosition" | null | undefined;
771
782
  } & ClassProp) | undefined) => string;
772
783
 
773
- declare const UltimateIcons: typeof icons & {
774
- File3d: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
775
- FileWord: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
776
- FilePdf: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
777
- FilePpt: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
778
- FileExcel: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
779
- Section: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
780
- XSocial: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
781
- Farcaster: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
782
- Warpcast: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
783
- Orb: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
784
- Lens: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
785
- Hey: ({ width, height, ...props }: LucideIconProps) => JSX_2.Element;
786
- };
784
+ declare const UltimateIcons: any;
787
785
 
788
786
  export declare const useHoverAndLongPress: ({ delay, }: UseHoverAndLongPressProps) => {
789
787
  onMouseEnter: () => void;