@fileverse/ui 4.1.7 → 4.1.8
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 +224 -210
- package/dist/index.es.d.ts +61 -10
- package/dist/index.es.js +15603 -13375
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -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
|
-
|
|
168
|
+
size?: number;
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
@@ -485,6 +494,30 @@ export { EmojiPicker }
|
|
|
485
494
|
|
|
486
495
|
export { EmojiStyle }
|
|
487
496
|
|
|
497
|
+
export declare const FeatureReleaseModal: ({ open, onOpenChange, orientation, media, title, subtitle, primaryButton, secondaryButton, hasCloseIcon, disableOutsideClick, className, contentClassName, noOverlay, overlayClasses, features, }: FeatureReleaseModalProps) => JSX_2.Element | null;
|
|
498
|
+
|
|
499
|
+
export declare interface FeatureReleaseModalProps {
|
|
500
|
+
open: boolean;
|
|
501
|
+
onOpenChange: (open: boolean) => void;
|
|
502
|
+
orientation?: "portrait" | "landscape";
|
|
503
|
+
media?: default_2.ReactNode;
|
|
504
|
+
title: string | default_2.ReactNode;
|
|
505
|
+
subtitle?: string | default_2.ReactNode;
|
|
506
|
+
primaryButton?: ButtonConfig;
|
|
507
|
+
secondaryButton?: ButtonConfig;
|
|
508
|
+
hasCloseIcon?: boolean;
|
|
509
|
+
disableOutsideClick?: boolean;
|
|
510
|
+
noOverlay?: boolean;
|
|
511
|
+
overlayClasses?: string;
|
|
512
|
+
className?: string;
|
|
513
|
+
contentClassName?: string;
|
|
514
|
+
features?: {
|
|
515
|
+
title: string | default_2.ReactNode;
|
|
516
|
+
description: string | default_2.ReactNode;
|
|
517
|
+
icon: default_2.ReactNode;
|
|
518
|
+
}[];
|
|
519
|
+
}
|
|
520
|
+
|
|
488
521
|
export declare type FileType = "dDoc" | "dPage" | "whiteboard" | "note" | "link" | "media";
|
|
489
522
|
|
|
490
523
|
export declare const FloatingToolbar: default_2.ForwardRefExoticComponent<FloatingToolbarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -524,7 +557,7 @@ export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTML
|
|
|
524
557
|
|
|
525
558
|
declare type IconComponent = default_2.FC<IconProps>;
|
|
526
559
|
|
|
527
|
-
export declare interface IconProps extends
|
|
560
|
+
export declare interface IconProps extends SvgProps_2, VariantProps<typeof iconVariants_2> {
|
|
528
561
|
name: keyof typeof Icons;
|
|
529
562
|
className?: string;
|
|
530
563
|
}
|
|
@@ -556,7 +589,7 @@ export declare enum LayoutModes {
|
|
|
556
589
|
|
|
557
590
|
export declare const LucideIcon: default_2.ForwardRefExoticComponent<Omit<LucideIconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
|
|
558
591
|
|
|
559
|
-
export declare interface LucideIconProps extends Omit<
|
|
592
|
+
export declare interface LucideIconProps extends Omit<SvgProps, "name">, VariantProps<typeof iconVariants> {
|
|
560
593
|
name: keyof typeof UltimateIcons;
|
|
561
594
|
className?: string;
|
|
562
595
|
strokeWidth?: number;
|
|
@@ -620,7 +653,9 @@ export declare interface SegmentedControlProps extends default_2.AllHTMLAttribut
|
|
|
620
653
|
|
|
621
654
|
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
622
655
|
|
|
623
|
-
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> &
|
|
656
|
+
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
657
|
+
showScrollButtons?: boolean;
|
|
658
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
624
659
|
|
|
625
660
|
export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
626
661
|
|
|
@@ -671,7 +706,7 @@ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<DialogPr
|
|
|
671
706
|
export declare const SheetTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
672
707
|
|
|
673
708
|
declare const sheetVariants: (props?: ({
|
|
674
|
-
side?: "
|
|
709
|
+
side?: "bottom" | "top" | "right" | "left" | null | undefined;
|
|
675
710
|
} & ClassProp) | undefined) => string;
|
|
676
711
|
|
|
677
712
|
export declare const Skeleton: ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => JSX_2.Element;
|
|
@@ -794,6 +829,14 @@ export declare interface TextAreaFieldProps extends React_2.TextareaHTMLAttribut
|
|
|
794
829
|
* Whether the textarea is valid.
|
|
795
830
|
*/
|
|
796
831
|
isValid?: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* The tooltip text for the textarea.
|
|
834
|
+
*/
|
|
835
|
+
infoMessage?: string;
|
|
836
|
+
/**
|
|
837
|
+
* The icon for the tooltip.
|
|
838
|
+
*/
|
|
839
|
+
icon?: LucideIconProps["name"];
|
|
797
840
|
}
|
|
798
841
|
|
|
799
842
|
export declare const TextAreaFieldV2: React_2.ForwardRefExoticComponent<TextAreaFieldV2Props & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -852,6 +895,14 @@ export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTML
|
|
|
852
895
|
* Event handler for the onChange event.
|
|
853
896
|
*/
|
|
854
897
|
onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
898
|
+
/**
|
|
899
|
+
* The tooltip text for the textarea.
|
|
900
|
+
*/
|
|
901
|
+
infoMessage?: string;
|
|
902
|
+
/**
|
|
903
|
+
* The icon for the tooltip.
|
|
904
|
+
*/
|
|
905
|
+
icon?: LucideIconProps["name"];
|
|
855
906
|
}
|
|
856
907
|
|
|
857
908
|
declare type Theme = "light" | "dark";
|
|
@@ -965,7 +1016,7 @@ export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement
|
|
|
965
1016
|
}
|
|
966
1017
|
|
|
967
1018
|
declare const tooltipVariants: (props?: ({
|
|
968
|
-
position?: "
|
|
1019
|
+
position?: "bottom" | "top" | "right" | "left" | null | undefined;
|
|
969
1020
|
beakAlignment?: "end" | "center" | "start" | null | undefined;
|
|
970
1021
|
defaultVariants?: "variant" | "beakPosition" | null | undefined;
|
|
971
1022
|
} & ClassProp) | undefined) => string;
|