@fileverse/ui 1.6.0

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.
@@ -0,0 +1,185 @@
1
+ import { ClassProp } from 'class-variance-authority/types';
2
+ import { default as default_2 } from 'react';
3
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
4
+ import * as LabelPrimitive from '@radix-ui/react-label';
5
+ import * as React_2 from 'react';
6
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
7
+ import { VariantProps } from 'class-variance-authority';
8
+
9
+ export declare const Avatar: default_2.ForwardRefExoticComponent<AvatarProps & default_2.RefAttributes<HTMLImageElement>>;
10
+
11
+ export declare interface AvatarProps extends default_2.ImgHTMLAttributes<HTMLImageElement>, VariantProps<typeof avatarVariants> {
12
+ }
13
+
14
+ declare const avatarVariants: (props?: ({
15
+ variant?: "rounded" | "square" | null | undefined;
16
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
17
+ bordered?: "border" | "none" | null | undefined;
18
+ } & ClassProp) | undefined) => string;
19
+
20
+ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
21
+
22
+ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
23
+ toggleLeftIcon?: boolean;
24
+ toggleRightIcon?: boolean;
25
+ onClick?: (event: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
26
+ leftIcon?: keyof typeof Icons | string | undefined;
27
+ rightIcon?: keyof typeof Icons | string | undefined;
28
+ }
29
+
30
+ declare const buttonVariants: (props?: ({
31
+ variant?: "link" | "default" | "danger" | "outline" | "secondary" | "ghost" | null | undefined;
32
+ size?: "sm" | "md" | "lg" | "icon" | null | undefined;
33
+ } & ClassProp) | undefined) => string;
34
+
35
+ export declare const Icon: {
36
+ ({ name, size, fill, stroke, className, ...props }: IconProps): JSX_2.Element | null;
37
+ displayName: string;
38
+ };
39
+
40
+ export declare interface IconProps extends SvgProps, VariantProps<typeof iconVariants> {
41
+ name: keyof typeof Icons;
42
+ className?: string;
43
+ }
44
+
45
+ declare const Icons: {
46
+ Camera: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
47
+ Check: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
48
+ CheckboxEmpty: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
49
+ Comment: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
50
+ ExternalLink: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
51
+ FilePlus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
52
+ FileText: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
53
+ Download: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
54
+ Grid: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
55
+ Heart: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
56
+ HeartBeat: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
57
+ ImagePlus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
58
+ InfoCircle: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
59
+ Dashboard: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
60
+ Link: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
61
+ List: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
62
+ Notification: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
63
+ PanelLeft: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
64
+ Paperclip: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
65
+ PenLine: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
66
+ Pencil: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
67
+ Placeholder: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
68
+ Play: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
69
+ Plus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
70
+ Question: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
71
+ Search: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
72
+ Section: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
73
+ Settings: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
74
+ Share2: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
75
+ Share: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
76
+ Facebook: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
77
+ Instagram: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
78
+ Linkedin: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
79
+ X: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
80
+ Trash: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
81
+ Type: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
82
+ Upload: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
83
+ Users: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
84
+ Close: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
85
+ };
86
+
87
+ declare const iconVariants: (props?: ({
88
+ size?: "sm" | "md" | "lg" | null | undefined;
89
+ } & ClassProp) | undefined) => string;
90
+
91
+ export declare const Label: React_2.ForwardRefExoticComponent<LabelProps & React_2.RefAttributes<HTMLLabelElement>>;
92
+
93
+ export declare interface LabelProps extends React_2.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
94
+ required?: boolean;
95
+ }
96
+
97
+ declare const labelVariants: (props?: ClassProp | undefined) => string;
98
+
99
+ declare interface SvgProps extends default_2.SVGProps<SVGSVGElement> {
100
+ fill?: string;
101
+ stroke?: string;
102
+ }
103
+
104
+ export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.RefAttributes<HTMLDivElement>>;
105
+
106
+ export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
107
+ isRemovable?: boolean;
108
+ onRemove?: () => void;
109
+ icon?: keyof typeof Icons | string | undefined;
110
+ }
111
+
112
+ declare const tagVariants: (props?: ({
113
+ variant?: "gray" | "brand" | null | undefined;
114
+ } & ClassProp) | undefined) => string;
115
+
116
+ export declare const TextAreaField: React_2.ForwardRefExoticComponent<TextAreaFieldProps & React_2.RefAttributes<HTMLTextAreaElement>>;
117
+
118
+ export declare interface TextAreaFieldProps extends React_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
119
+ /**
120
+ * The label for the textarea.
121
+ */
122
+ label?: string;
123
+ /**
124
+ * The helper text for the textarea.
125
+ */
126
+ message?: string;
127
+ /**
128
+ * Whether the textarea is valid.
129
+ */
130
+ isValid?: boolean;
131
+ }
132
+
133
+ export declare const TextField: React_2.ForwardRefExoticComponent<TextFieldProps & React_2.RefAttributes<HTMLInputElement>>;
134
+
135
+ export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
136
+ /**
137
+ * The label for the text field.
138
+ */
139
+ label?: string;
140
+ /**
141
+ * The left icon for the text field.
142
+ */
143
+ leftIcon?: React_2.ReactNode;
144
+ /**
145
+ * The right icon for the text field.
146
+ */
147
+ rightIcon?: React_2.ReactNode;
148
+ /**
149
+ * Whether the text field is valid.
150
+ */
151
+ isValid?: boolean;
152
+ /**
153
+ * The helper text for the text field.
154
+ */
155
+ message?: string;
156
+ /**
157
+ * Event handler for the onChange event.
158
+ */
159
+ onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
160
+ }
161
+
162
+ export declare const Toggle: React_2.ForwardRefExoticComponent<ToggleProps & React_2.RefAttributes<HTMLButtonElement>>;
163
+
164
+ export declare interface ToggleProps extends React_2.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, VariantProps<typeof toggleVariants> {
165
+ label?: string;
166
+ labelPosition?: "left" | "right";
167
+ }
168
+
169
+ declare const toggleVariants: (props?: ({
170
+ variant?: "default" | "hover" | "focus" | null | undefined;
171
+ } & ClassProp) | undefined) => string;
172
+
173
+ export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<HTMLElement>>;
174
+
175
+ export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof tooltipVariants> {
176
+ text: string;
177
+ }
178
+
179
+ declare const tooltipVariants: (props?: ({
180
+ position?: "left" | "right" | "bottom" | "top" | null | undefined;
181
+ beakAlignment?: "end" | "center" | "start" | null | undefined;
182
+ defaultVariants?: "variant" | "beakPosition" | null | undefined;
183
+ } & ClassProp) | undefined) => string;
184
+
185
+ export { }