@fileverse/ui 1.6.0 → 2.0.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.
- package/dist/index.cjs.js +7276 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +515 -8
- package/dist/index.es.d.ts +124 -2
- package/dist/index.es.js +26269 -3457
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +19 -12
package/dist/index.es.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
1
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
4
|
+
import { GridProps as GridProps_2 } from '@radix-ui/themes';
|
|
5
|
+
import { icons } from 'lucide-react';
|
|
3
6
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
7
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
8
|
import * as React_2 from 'react';
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
import { SetStateAction } from 'react';
|
|
6
11
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
12
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
7
13
|
import { VariantProps } from 'class-variance-authority';
|
|
8
14
|
|
|
9
15
|
export declare const Avatar: default_2.ForwardRefExoticComponent<AvatarProps & default_2.RefAttributes<HTMLImageElement>>;
|
|
@@ -19,24 +25,104 @@ declare const avatarVariants: (props?: ({
|
|
|
19
25
|
|
|
20
26
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
21
27
|
|
|
28
|
+
export declare const ButtonGroup: React_2.FC<ButtonGroupProps>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* TODO: WIP
|
|
32
|
+
*/
|
|
33
|
+
export declare interface ButtonGroupProps {
|
|
34
|
+
children?: React_2.ReactNode[];
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
22
38
|
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
23
39
|
toggleLeftIcon?: boolean;
|
|
24
40
|
toggleRightIcon?: boolean;
|
|
25
41
|
onClick?: (event: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
26
42
|
leftIcon?: keyof typeof Icons | string | undefined;
|
|
27
43
|
rightIcon?: keyof typeof Icons | string | undefined;
|
|
44
|
+
isLoading?: boolean;
|
|
45
|
+
elevation?: number;
|
|
28
46
|
}
|
|
29
47
|
|
|
30
48
|
declare const buttonVariants: (props?: ({
|
|
31
49
|
variant?: "link" | "default" | "danger" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
32
|
-
size?: "sm" | "md" | "lg" |
|
|
50
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
33
51
|
} & ClassProp) | undefined) => string;
|
|
34
52
|
|
|
53
|
+
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
|
|
55
|
+
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
|
|
57
|
+
export declare const CardControlWrapper: ({ defaultSize, deleteFunction, children, }: {
|
|
58
|
+
deleteFunction: () => void;
|
|
59
|
+
defaultSize: CardSize;
|
|
60
|
+
children: (size: CardSize) => ReactNode;
|
|
61
|
+
}) => JSX_2.Element;
|
|
62
|
+
|
|
63
|
+
export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLParagraphElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
64
|
+
|
|
65
|
+
export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
66
|
+
|
|
67
|
+
export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
|
|
69
|
+
export declare interface CardProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
70
|
+
title?: string;
|
|
71
|
+
size?: CardSize;
|
|
72
|
+
type?: FileType;
|
|
73
|
+
url?: string;
|
|
74
|
+
likeCount?: number;
|
|
75
|
+
text?: string;
|
|
76
|
+
classNames?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare type CardSize = "sm" | "md" | "lg";
|
|
80
|
+
|
|
81
|
+
export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLHeadingElement> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
82
|
+
|
|
83
|
+
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
84
|
+
|
|
85
|
+
export declare interface CheckboxProps extends React_2.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
|
|
86
|
+
label?: string;
|
|
87
|
+
labelPosition?: "left" | "right";
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare const checkboxVariants: (props?: ({
|
|
91
|
+
variant?: "default" | "hover" | "focus" | null | undefined;
|
|
92
|
+
} & ClassProp) | undefined) => string;
|
|
93
|
+
|
|
94
|
+
export declare const Divider: {
|
|
95
|
+
({ direction, size, className, ...props }: DividerProps): JSX_2.Element;
|
|
96
|
+
displayName: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export declare interface DividerProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
100
|
+
direction?: "horizontal" | "vertical";
|
|
101
|
+
size?: "sm" | "md" | "lg" | "xlg";
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare type FileType = "dDoc" | "dPage" | "whiteboard" | "note" | "link" | "media";
|
|
105
|
+
|
|
106
|
+
export declare const GridLayout: (props: GridProps) => JSX_2.Element;
|
|
107
|
+
|
|
108
|
+
export declare type GridProps = GridProps_2;
|
|
109
|
+
|
|
35
110
|
export declare const Icon: {
|
|
36
111
|
({ name, size, fill, stroke, className, ...props }: IconProps): JSX_2.Element | null;
|
|
37
112
|
displayName: string;
|
|
38
113
|
};
|
|
39
114
|
|
|
115
|
+
export declare const IconButton: ({ icon, variant, size, className, elevation, rounded, ...props }: IconButtonProps) => JSX_2.Element;
|
|
116
|
+
|
|
117
|
+
export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Pick<ButtonProps, "variant"> {
|
|
118
|
+
icon: keyof typeof Icons | string;
|
|
119
|
+
size?: "sm" | "md" | "lg";
|
|
120
|
+
isLoading?: boolean;
|
|
121
|
+
className?: string;
|
|
122
|
+
elevation?: number;
|
|
123
|
+
rounded?: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
40
126
|
export declare interface IconProps extends SvgProps, VariantProps<typeof iconVariants> {
|
|
41
127
|
name: keyof typeof Icons;
|
|
42
128
|
className?: string;
|
|
@@ -53,7 +139,7 @@ declare const Icons: {
|
|
|
53
139
|
Download: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
54
140
|
Grid: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
55
141
|
Heart: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
56
|
-
HeartBeat: ({
|
|
142
|
+
HeartBeat: ({ width, height, ...props }: IconProps) => JSX_2.Element;
|
|
57
143
|
ImagePlus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
58
144
|
InfoCircle: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
59
145
|
Dashboard: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
@@ -88,6 +174,12 @@ declare const iconVariants: (props?: ({
|
|
|
88
174
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
89
175
|
} & ClassProp) | undefined) => string;
|
|
90
176
|
|
|
177
|
+
declare const iconVariants_2: (props?: ({
|
|
178
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
179
|
+
} & ClassProp) | undefined) => string;
|
|
180
|
+
|
|
181
|
+
export declare const ImageCard: ({ type, size, url, likeCount, classNames, }: CardProps) => JSX_2.Element;
|
|
182
|
+
|
|
91
183
|
export declare const Label: React_2.ForwardRefExoticComponent<LabelProps & React_2.RefAttributes<HTMLLabelElement>>;
|
|
92
184
|
|
|
93
185
|
export declare interface LabelProps extends React_2.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
@@ -96,11 +188,39 @@ export declare interface LabelProps extends React_2.ComponentPropsWithoutRef<typ
|
|
|
96
188
|
|
|
97
189
|
declare const labelVariants: (props?: ClassProp | undefined) => string;
|
|
98
190
|
|
|
191
|
+
export declare const LucideIcon: default_2.MemoExoticComponent<({ name, className, size, strokeWidth, fill, ...props }: LucideIconProps) => JSX_2.Element | null>;
|
|
192
|
+
|
|
193
|
+
export declare interface LucideIconProps extends VariantProps<typeof iconVariants_2> {
|
|
194
|
+
name: keyof typeof icons;
|
|
195
|
+
className?: string;
|
|
196
|
+
strokeWidth?: number;
|
|
197
|
+
fill?: string;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export declare const PortalCard: ({ title, size, type, url, likeCount, classNames, }: CardProps) => JSX_2.Element;
|
|
201
|
+
|
|
202
|
+
export declare const SegmentedControl: default_2.ForwardRefExoticComponent<SegmentedControlProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
203
|
+
|
|
204
|
+
export declare interface SegmentedControlProps extends default_2.AllHTMLAttributes<HTMLDivElement> {
|
|
205
|
+
options: ReactNode[];
|
|
206
|
+
container: boolean;
|
|
207
|
+
currentState?: number;
|
|
208
|
+
setCurrentState: default_2.Dispatch<SetStateAction<number>>;
|
|
209
|
+
}
|
|
210
|
+
|
|
99
211
|
declare interface SvgProps extends default_2.SVGProps<SVGSVGElement> {
|
|
100
212
|
fill?: string;
|
|
101
213
|
stroke?: string;
|
|
102
214
|
}
|
|
103
215
|
|
|
216
|
+
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
217
|
+
|
|
218
|
+
export declare const TabsContent: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
219
|
+
|
|
220
|
+
export declare const TabsList: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
221
|
+
|
|
222
|
+
export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
223
|
+
|
|
104
224
|
export declare const Tag: React_2.ForwardRefExoticComponent<TagProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
105
225
|
|
|
106
226
|
export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof tagVariants> {
|
|
@@ -130,6 +250,8 @@ export declare interface TextAreaFieldProps extends React_2.TextareaHTMLAttribut
|
|
|
130
250
|
isValid?: boolean;
|
|
131
251
|
}
|
|
132
252
|
|
|
253
|
+
export declare const TextBlockCard: ({ type, size, text, classNames }: CardProps) => JSX_2.Element;
|
|
254
|
+
|
|
133
255
|
export declare const TextField: React_2.ForwardRefExoticComponent<TextFieldProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
134
256
|
|
|
135
257
|
export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|