@fileverse/ui 4.1.7 → 4.1.9-patch-100

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.
@@ -13,6 +13,7 @@ import { EmojiStyle } from 'emoji-picker-react';
13
13
  import { ForwardRefExoticComponent } from 'react';
14
14
  import { GridProps as GridProps_2 } from '@radix-ui/themes';
15
15
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
16
+ import { InputHTMLAttributes } from 'react';
16
17
  import { JSX as JSX_2 } from 'react/jsx-runtime';
17
18
  import * as LabelPrimitive from '@radix-ui/react-label';
18
19
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -98,6 +99,16 @@ export declare interface BottomDrawerProps extends DynamicModalProps {
98
99
 
99
100
  export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
100
101
 
102
+ declare interface ButtonConfig {
103
+ show: boolean;
104
+ label: string | default_2.ReactNode;
105
+ onClick?: () => void | Promise<void>;
106
+ href?: string;
107
+ variant?: "default" | "secondary" | "ghost" | "danger";
108
+ icon?: string;
109
+ className?: string;
110
+ }
111
+
101
112
  export declare const ButtonGroup: React_2.FC<ButtonGroupProps>;
102
113
 
103
114
  /**
@@ -148,15 +159,13 @@ export declare type CardSize = "sm" | "md" | "lg";
148
159
 
149
160
  export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
150
161
 
151
- export declare const Checkbox: ({ checked, onCheckedChange, className, disabled, }: CheckboxProps) => JSX_2.Element;
162
+ export declare const Checkbox: ({ checked, onCheckedChange, className, disabled, size, ...props }: CheckboxProps) => JSX_2.Element;
152
163
 
153
- export declare interface CheckboxProps {
154
- checked?: boolean;
164
+ export declare interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange"> {
155
165
  onCheckedChange?: (event: default_2.ChangeEvent<HTMLInputElement>) => void;
156
- className?: string;
157
166
  label?: string;
158
167
  labelPosition?: "left" | "right";
159
- disabled?: boolean;
168
+ size?: number;
160
169
  }
161
170
 
162
171
  export declare function cn(...inputs: ClassValue[]): string;
@@ -435,6 +444,7 @@ export declare interface DynamicModalProps {
435
444
  variant?: "default" | "secondary" | "ghost" | "danger";
436
445
  className?: string;
437
446
  isLoading?: boolean;
447
+ isDisabled?: boolean;
438
448
  };
439
449
  secondaryAction?: {
440
450
  label: string;
@@ -442,6 +452,7 @@ export declare interface DynamicModalProps {
442
452
  variant?: "default" | "secondary" | "ghost" | "danger";
443
453
  className?: string;
444
454
  isLoading?: boolean;
455
+ isDisabled?: boolean;
445
456
  };
446
457
  className?: string;
447
458
  contentClassName?: string;
@@ -485,6 +496,30 @@ export { EmojiPicker }
485
496
 
486
497
  export { EmojiStyle }
487
498
 
499
+ export declare const FeatureReleaseModal: ({ open, onOpenChange, orientation, media, title, subtitle, primaryButton, secondaryButton, hasCloseIcon, disableOutsideClick, className, contentClassName, noOverlay, overlayClasses, features, }: FeatureReleaseModalProps) => JSX_2.Element | null;
500
+
501
+ export declare interface FeatureReleaseModalProps {
502
+ open: boolean;
503
+ onOpenChange: (open: boolean) => void;
504
+ orientation?: "portrait" | "landscape";
505
+ media?: default_2.ReactNode;
506
+ title: string | default_2.ReactNode;
507
+ subtitle?: string | default_2.ReactNode;
508
+ primaryButton?: ButtonConfig;
509
+ secondaryButton?: ButtonConfig;
510
+ hasCloseIcon?: boolean;
511
+ disableOutsideClick?: boolean;
512
+ noOverlay?: boolean;
513
+ overlayClasses?: string;
514
+ className?: string;
515
+ contentClassName?: string;
516
+ features?: {
517
+ title: string | default_2.ReactNode;
518
+ description: string | default_2.ReactNode;
519
+ icon: default_2.ReactNode;
520
+ }[];
521
+ }
522
+
488
523
  export declare type FileType = "dDoc" | "dPage" | "whiteboard" | "note" | "link" | "media";
489
524
 
490
525
  export declare const FloatingToolbar: default_2.ForwardRefExoticComponent<FloatingToolbarProps & default_2.RefAttributes<HTMLDivElement>>;
@@ -524,7 +559,7 @@ export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTML
524
559
 
525
560
  declare type IconComponent = default_2.FC<IconProps>;
526
561
 
527
- export declare interface IconProps extends SvgProps, VariantProps<typeof iconVariants> {
562
+ export declare interface IconProps extends SvgProps_2, VariantProps<typeof iconVariants_2> {
528
563
  name: keyof typeof Icons;
529
564
  className?: string;
530
565
  }
@@ -556,7 +591,7 @@ export declare enum LayoutModes {
556
591
 
557
592
  export declare const LucideIcon: default_2.ForwardRefExoticComponent<Omit<LucideIconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
558
593
 
559
- export declare interface LucideIconProps extends Omit<SvgProps_2, "name">, VariantProps<typeof iconVariants_2> {
594
+ export declare interface LucideIconProps extends Omit<SvgProps, "name">, VariantProps<typeof iconVariants> {
560
595
  name: keyof typeof UltimateIcons;
561
596
  className?: string;
562
597
  strokeWidth?: number;
@@ -620,7 +655,9 @@ export declare interface SegmentedControlProps extends default_2.AllHTMLAttribut
620
655
 
621
656
  export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
622
657
 
623
- export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
658
+ export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
659
+ showScrollButtons?: boolean;
660
+ } & React_2.RefAttributes<HTMLDivElement>>;
624
661
 
625
662
  export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
626
663
 
@@ -671,7 +708,7 @@ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<DialogPr
671
708
  export declare const SheetTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
672
709
 
673
710
  declare const sheetVariants: (props?: ({
674
- side?: "left" | "right" | "bottom" | "top" | null | undefined;
711
+ side?: "bottom" | "top" | "right" | "left" | null | undefined;
675
712
  } & ClassProp) | undefined) => string;
676
713
 
677
714
  export declare const Skeleton: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
@@ -794,6 +831,14 @@ export declare interface TextAreaFieldProps extends React_2.TextareaHTMLAttribut
794
831
  * Whether the textarea is valid.
795
832
  */
796
833
  isValid?: boolean;
834
+ /**
835
+ * The tooltip text for the textarea.
836
+ */
837
+ infoMessage?: string;
838
+ /**
839
+ * The icon for the tooltip.
840
+ */
841
+ icon?: LucideIconProps["name"];
797
842
  }
798
843
 
799
844
  export declare const TextAreaFieldV2: React_2.ForwardRefExoticComponent<TextAreaFieldV2Props & React_2.RefAttributes<HTMLTextAreaElement>>;
@@ -852,6 +897,14 @@ export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTML
852
897
  * Event handler for the onChange event.
853
898
  */
854
899
  onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
900
+ /**
901
+ * The tooltip text for the textarea.
902
+ */
903
+ infoMessage?: string;
904
+ /**
905
+ * The icon for the tooltip.
906
+ */
907
+ icon?: LucideIconProps["name"];
855
908
  }
856
909
 
857
910
  declare type Theme = "light" | "dark";
@@ -962,10 +1015,11 @@ export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & R
962
1015
  export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof tooltipVariants> {
963
1016
  text: string | React_2.ReactNode;
964
1017
  sideOffset?: number;
1018
+ open?: boolean;
965
1019
  }
966
1020
 
967
1021
  declare const tooltipVariants: (props?: ({
968
- position?: "left" | "right" | "bottom" | "top" | null | undefined;
1022
+ position?: "bottom" | "top" | "right" | "left" | null | undefined;
969
1023
  beakAlignment?: "end" | "center" | "start" | null | undefined;
970
1024
  defaultVariants?: "variant" | "beakPosition" | null | undefined;
971
1025
  } & ClassProp) | undefined) => string;