@beyondcorp/beyond-ui 1.0.5 → 1.0.6
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/README.md +87 -0
- package/dist/index.cjs +978 -3
- package/dist/index.d.cts +141 -65
- package/dist/index.d.ts +141 -65
- package/dist/index.js +980 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
-
import * as React from 'react';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
@@ -8,94 +8,94 @@ declare const buttonVariants: (props?: ({
|
|
|
8
8
|
variant?: "primary" | "secondary" | "danger" | "success" | "warning" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
9
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
10
10
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
11
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
11
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
12
12
|
asChild?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
|
|
16
16
|
declare const inputVariants: (props?: ({
|
|
17
17
|
variant?: "success" | "default" | "error" | null | undefined;
|
|
18
18
|
inputSize?: "sm" | "md" | "lg" | null | undefined;
|
|
19
19
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
20
|
-
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
20
|
+
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
21
21
|
}
|
|
22
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
23
23
|
|
|
24
24
|
declare const cardVariants: (props?: ({
|
|
25
25
|
variant?: "default" | "elevated" | "outlined" | null | undefined;
|
|
26
26
|
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
27
27
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
28
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
28
|
+
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
29
29
|
}
|
|
30
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
33
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
34
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
33
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
34
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
36
36
|
|
|
37
37
|
declare const badgeVariants: (props?: ({
|
|
38
38
|
variant?: "secondary" | "danger" | "success" | "warning" | "outline" | "default" | null | undefined;
|
|
39
39
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
40
|
-
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
40
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
41
41
|
}
|
|
42
42
|
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
43
43
|
|
|
44
44
|
declare const alertVariants: (props?: ({
|
|
45
45
|
variant?: "danger" | "success" | "warning" | "default" | "info" | null | undefined;
|
|
46
46
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
47
|
-
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
47
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
48
48
|
variant?: "danger" | "success" | "warning" | "default" | "info" | null | undefined;
|
|
49
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
-
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
51
|
-
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
49
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
51
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
52
52
|
|
|
53
53
|
declare const avatarVariants: (props?: ({
|
|
54
54
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
55
55
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
56
|
-
declare const Avatar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
56
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
57
57
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
58
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
declare const AvatarImage: React.ForwardRefExoticComponent<React.ImgHTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLImageElement>>;
|
|
60
|
-
declare const AvatarFallback: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare const AvatarImage: React$1.ForwardRefExoticComponent<React$1.ImgHTMLAttributes<HTMLImageElement> & React$1.RefAttributes<HTMLImageElement>>;
|
|
60
|
+
declare const AvatarFallback: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
61
61
|
|
|
62
62
|
declare const spinnerVariants: (props?: ({
|
|
63
63
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
64
64
|
variant?: "primary" | "secondary" | "current" | "white" | null | undefined;
|
|
65
65
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
66
|
-
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
66
|
+
interface SpinnerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
67
67
|
}
|
|
68
|
-
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
69
69
|
|
|
70
70
|
declare const skeletonVariants: (props?: ({
|
|
71
71
|
variant?: "default" | "darker" | null | undefined;
|
|
72
72
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
73
|
-
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
73
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
74
74
|
}
|
|
75
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
76
|
|
|
77
77
|
declare const textareaVariants: (props?: ({
|
|
78
78
|
variant?: "success" | "default" | "error" | null | undefined;
|
|
79
79
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
80
|
-
interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
80
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
81
81
|
}
|
|
82
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
82
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
83
83
|
|
|
84
84
|
declare const switchVariants: (props?: ({
|
|
85
85
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
86
86
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
87
|
-
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof switchVariants> {
|
|
87
|
+
interface SwitchProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof switchVariants> {
|
|
88
88
|
checked?: boolean;
|
|
89
89
|
onCheckedChange?: (checked: boolean) => void;
|
|
90
90
|
}
|
|
91
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
91
|
+
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
92
92
|
|
|
93
93
|
declare const checkboxVariants: (props?: ({
|
|
94
94
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
95
95
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
96
|
-
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof checkboxVariants> {
|
|
96
|
+
interface CheckboxProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof checkboxVariants> {
|
|
97
97
|
}
|
|
98
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
98
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
99
99
|
|
|
100
100
|
declare const modalVariants: (props?: ({
|
|
101
101
|
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
@@ -103,14 +103,14 @@ declare const modalVariants: (props?: ({
|
|
|
103
103
|
interface ModalProps extends VariantProps<typeof modalVariants> {
|
|
104
104
|
open?: boolean;
|
|
105
105
|
onOpenChange?: (open: boolean) => void;
|
|
106
|
-
children: React.ReactNode;
|
|
106
|
+
children: React$1.ReactNode;
|
|
107
107
|
}
|
|
108
|
-
declare const Modal: React.FC<ModalProps>;
|
|
109
|
-
declare const ModalHeader: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
110
|
-
declare const ModalTitle: React.FC<React.HTMLAttributes<HTMLHeadingElement>>;
|
|
111
|
-
declare const ModalDescription: React.FC<React.HTMLAttributes<HTMLParagraphElement>>;
|
|
112
|
-
declare const ModalContent: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
113
|
-
declare const ModalFooter: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
108
|
+
declare const Modal: React$1.FC<ModalProps>;
|
|
109
|
+
declare const ModalHeader: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
110
|
+
declare const ModalTitle: React$1.FC<React$1.HTMLAttributes<HTMLHeadingElement>>;
|
|
111
|
+
declare const ModalDescription: React$1.FC<React$1.HTMLAttributes<HTMLParagraphElement>>;
|
|
112
|
+
declare const ModalContent: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
113
|
+
declare const ModalFooter: React$1.FC<React$1.HTMLAttributes<HTMLDivElement>>;
|
|
114
114
|
|
|
115
115
|
declare const toastVariants: (props?: ({
|
|
116
116
|
variant?: "success" | "warning" | "default" | "error" | "info" | null | undefined;
|
|
@@ -126,7 +126,7 @@ declare const showToast: {
|
|
|
126
126
|
info: (message: string, options?: ToastOptions) => string;
|
|
127
127
|
default: (message: string, options?: ToastOptions) => string;
|
|
128
128
|
};
|
|
129
|
-
declare const Toast: React.FC;
|
|
129
|
+
declare const Toast: React$1.FC;
|
|
130
130
|
|
|
131
131
|
declare const tabsListVariants: (props?: ({
|
|
132
132
|
variant?: "default" | "pills" | "underline" | null | undefined;
|
|
@@ -137,26 +137,26 @@ declare const tabsTriggerVariants: (props?: ({
|
|
|
137
137
|
interface TabsProps extends VariantProps<typeof tabsListVariants> {
|
|
138
138
|
value: string;
|
|
139
139
|
onValueChange: (value: string) => void;
|
|
140
|
-
children: React.ReactNode;
|
|
140
|
+
children: React$1.ReactNode;
|
|
141
141
|
className?: string;
|
|
142
142
|
}
|
|
143
|
-
declare const Tabs: React.FC<TabsProps>;
|
|
144
|
-
declare const TabsList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
145
|
-
interface TabsTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
143
|
+
declare const Tabs: React$1.FC<TabsProps>;
|
|
144
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
145
|
+
interface TabsTriggerProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
146
146
|
value: string;
|
|
147
147
|
}
|
|
148
|
-
declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
149
|
-
interface TabsContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
148
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
149
|
+
interface TabsContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
150
150
|
value: string;
|
|
151
151
|
}
|
|
152
|
-
declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<TabsContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
153
153
|
|
|
154
154
|
declare const statsCardVariants: (props?: ({
|
|
155
155
|
variant?: "default" | "gradient" | null | undefined;
|
|
156
156
|
color?: "primary" | "secondary" | "danger" | "success" | "warning" | null | undefined;
|
|
157
157
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
158
158
|
type TrendDirection = "up" | "down" | "neutral";
|
|
159
|
-
interface StatsCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "color">, VariantProps<typeof statsCardVariants> {
|
|
159
|
+
interface StatsCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "color">, VariantProps<typeof statsCardVariants> {
|
|
160
160
|
title: string;
|
|
161
161
|
value: string | number;
|
|
162
162
|
trend?: {
|
|
@@ -164,20 +164,20 @@ interface StatsCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "col
|
|
|
164
164
|
value: string | number;
|
|
165
165
|
label?: string;
|
|
166
166
|
};
|
|
167
|
-
icon?: React.ReactNode;
|
|
167
|
+
icon?: React$1.ReactNode;
|
|
168
168
|
}
|
|
169
|
-
declare const StatsCard: React.ForwardRefExoticComponent<StatsCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
169
|
+
declare const StatsCard: React$1.ForwardRefExoticComponent<StatsCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
170
170
|
|
|
171
171
|
declare const navbarVariants: (props?: ({
|
|
172
172
|
variant?: "default" | "transparent" | "dark" | null | undefined;
|
|
173
173
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
174
174
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
175
|
-
interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
|
|
176
|
-
logo?: React.ReactNode;
|
|
177
|
-
children?: React.ReactNode;
|
|
175
|
+
interface NavbarProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
|
|
176
|
+
logo?: React$1.ReactNode;
|
|
177
|
+
children?: React$1.ReactNode;
|
|
178
178
|
}
|
|
179
|
-
declare const Navbar: React.ForwardRefExoticComponent<NavbarProps & React.RefAttributes<HTMLElement>>;
|
|
180
|
-
declare const NavItem: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement>>;
|
|
179
|
+
declare const Navbar: React$1.ForwardRefExoticComponent<NavbarProps & React$1.RefAttributes<HTMLElement>>;
|
|
180
|
+
declare const NavItem: React$1.ForwardRefExoticComponent<React$1.AnchorHTMLAttributes<HTMLAnchorElement> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
181
181
|
|
|
182
182
|
declare const sidebarVariants: (props?: ({
|
|
183
183
|
collapsed?: boolean | null | undefined;
|
|
@@ -185,7 +185,7 @@ declare const sidebarVariants: (props?: ({
|
|
|
185
185
|
interface MenuItem {
|
|
186
186
|
id: string;
|
|
187
187
|
label: string;
|
|
188
|
-
icon: React.ReactNode;
|
|
188
|
+
icon: React$1.ReactNode;
|
|
189
189
|
href?: string;
|
|
190
190
|
badge?: string;
|
|
191
191
|
children?: MenuItem[];
|
|
@@ -197,7 +197,7 @@ interface SidebarProps extends VariantProps<typeof sidebarVariants> {
|
|
|
197
197
|
activeItem?: string;
|
|
198
198
|
onItemClick?: (itemId: string) => void;
|
|
199
199
|
}
|
|
200
|
-
declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
200
|
+
declare const Sidebar: React$1.ForwardRefExoticComponent<SidebarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
201
201
|
|
|
202
202
|
interface BreadcrumbItem {
|
|
203
203
|
label: string;
|
|
@@ -212,10 +212,10 @@ interface DashboardHeaderProps {
|
|
|
212
212
|
searchPlaceholder?: string;
|
|
213
213
|
onSearchChange?: (value: string) => void;
|
|
214
214
|
}
|
|
215
|
-
declare const DashboardHeader: React.ForwardRefExoticComponent<DashboardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
215
|
+
declare const DashboardHeader: React$1.ForwardRefExoticComponent<DashboardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
216
216
|
|
|
217
217
|
interface DashboardLayoutProps {
|
|
218
|
-
children: React.ReactNode;
|
|
218
|
+
children: React$1.ReactNode;
|
|
219
219
|
className?: string;
|
|
220
220
|
sidebarMenuItems?: MenuItem[];
|
|
221
221
|
activeSidebarItem?: string;
|
|
@@ -227,7 +227,7 @@ interface DashboardLayoutProps {
|
|
|
227
227
|
sidebarClassName?: string;
|
|
228
228
|
disableSidebarMargin?: boolean;
|
|
229
229
|
}
|
|
230
|
-
declare const DashboardLayout: React.ForwardRefExoticComponent<DashboardLayoutProps & React.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
declare const DashboardLayout: React$1.ForwardRefExoticComponent<DashboardLayoutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
231
231
|
|
|
232
232
|
declare const gridVariants: (props?: ({
|
|
233
233
|
columns?: 1 | 2 | 3 | 12 | 4 | 6 | null | undefined;
|
|
@@ -236,17 +236,93 @@ declare const gridItemVariants: (props?: ({
|
|
|
236
236
|
colSpan?: 1 | 2 | 3 | 12 | 4 | 6 | null | undefined;
|
|
237
237
|
rowSpan?: 1 | 2 | 3 | 4 | null | undefined;
|
|
238
238
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
239
|
-
interface DashboardGridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
239
|
+
interface DashboardGridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
240
240
|
}
|
|
241
|
-
interface DashboardGridItemProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridItemVariants> {
|
|
241
|
+
interface DashboardGridItemProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridItemVariants> {
|
|
242
242
|
}
|
|
243
|
-
declare const DashboardGrid: React.ForwardRefExoticComponent<DashboardGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
244
|
-
declare const DashboardGridItem: React.ForwardRefExoticComponent<DashboardGridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
243
|
+
declare const DashboardGrid: React$1.ForwardRefExoticComponent<DashboardGridProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
244
|
+
declare const DashboardGridItem: React$1.ForwardRefExoticComponent<DashboardGridItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
245
|
+
|
|
246
|
+
interface Column<T = any> {
|
|
247
|
+
key: string;
|
|
248
|
+
title: string;
|
|
249
|
+
dataIndex: keyof T;
|
|
250
|
+
width?: number | string;
|
|
251
|
+
sortable?: boolean;
|
|
252
|
+
filterable?: boolean;
|
|
253
|
+
filterType?: 'text' | 'select' | 'date' | 'number';
|
|
254
|
+
filterOptions?: Array<{
|
|
255
|
+
label: string;
|
|
256
|
+
value: any;
|
|
257
|
+
}>;
|
|
258
|
+
render?: (value: any, record: T, index: number) => React.ReactNode;
|
|
259
|
+
align?: 'left' | 'center' | 'right';
|
|
260
|
+
}
|
|
261
|
+
interface FilterValue {
|
|
262
|
+
[key: string]: any;
|
|
263
|
+
}
|
|
264
|
+
interface SortConfig {
|
|
265
|
+
key: string;
|
|
266
|
+
direction: 'asc' | 'desc' | null;
|
|
267
|
+
}
|
|
268
|
+
interface PaginationConfig {
|
|
269
|
+
current: number;
|
|
270
|
+
pageSize: number;
|
|
271
|
+
total: number;
|
|
272
|
+
showSizeChanger?: boolean;
|
|
273
|
+
pageSizeOptions?: number[];
|
|
274
|
+
showQuickJumper?: boolean;
|
|
275
|
+
}
|
|
276
|
+
interface RowSelection<T = any> {
|
|
277
|
+
type?: 'checkbox' | 'radio';
|
|
278
|
+
selectedRowKeys?: React.Key[];
|
|
279
|
+
onChange?: (selectedRowKeys: React.Key[], selectedRows: T[]) => void;
|
|
280
|
+
getCheckboxProps?: (record: T) => {
|
|
281
|
+
disabled?: boolean;
|
|
282
|
+
};
|
|
283
|
+
onSelect?: (record: T, selected: boolean, selectedRows: T[], nativeEvent: Event) => void;
|
|
284
|
+
onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => void;
|
|
285
|
+
}
|
|
286
|
+
interface DataTableProps<T = any> {
|
|
287
|
+
columns: Column<T>[];
|
|
288
|
+
dataSource: T[];
|
|
289
|
+
loading?: boolean;
|
|
290
|
+
rowKey?: string | ((record: T) => React.Key);
|
|
291
|
+
pagination?: PaginationConfig | false;
|
|
292
|
+
rowSelection?: RowSelection<T>;
|
|
293
|
+
scroll?: {
|
|
294
|
+
x?: number | string;
|
|
295
|
+
y?: number | string;
|
|
296
|
+
};
|
|
297
|
+
size?: 'small' | 'middle' | 'large';
|
|
298
|
+
bordered?: boolean;
|
|
299
|
+
showHeader?: boolean;
|
|
300
|
+
title?: () => React.ReactNode;
|
|
301
|
+
footer?: () => React.ReactNode;
|
|
302
|
+
expandable?: {
|
|
303
|
+
expandedRowRender?: (record: T, index: number) => React.ReactNode;
|
|
304
|
+
rowExpandable?: (record: T) => boolean;
|
|
305
|
+
};
|
|
306
|
+
onRow?: (record: T, index?: number) => React.HTMLAttributes<HTMLTableRowElement>;
|
|
307
|
+
className?: string;
|
|
308
|
+
onSort?: (sortConfig: SortConfig) => void;
|
|
309
|
+
onFilter?: (filters: FilterValue) => void;
|
|
310
|
+
onChange?: (pagination: PaginationConfig, filters: FilterValue, sorter: SortConfig) => void;
|
|
311
|
+
}
|
|
312
|
+
interface TableContextValue {
|
|
313
|
+
prefixCls: string;
|
|
314
|
+
size: 'small' | 'middle' | 'large';
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
declare const DataTable: {
|
|
318
|
+
<T extends Record<string, any>>({ columns, dataSource, loading, rowKey, pagination, rowSelection, size, bordered, showHeader, title, footer, className, onSort, onFilter, onChange, ...props }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
319
|
+
displayName: string;
|
|
320
|
+
};
|
|
245
321
|
|
|
246
322
|
interface ComponentShowcaseProps {
|
|
247
323
|
className?: string;
|
|
248
324
|
}
|
|
249
|
-
declare const ComponentShowcase: React.FC<ComponentShowcaseProps>;
|
|
325
|
+
declare const ComponentShowcase: React$1.FC<ComponentShowcaseProps>;
|
|
250
326
|
|
|
251
327
|
declare function useDarkMode(): {
|
|
252
328
|
isDarkMode: boolean;
|
|
@@ -345,4 +421,4 @@ declare const defaultTheme: {
|
|
|
345
421
|
};
|
|
346
422
|
};
|
|
347
423
|
|
|
348
|
-
export { Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, type BreadcrumbItem, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, ComponentShowcase, DashboardGrid, DashboardGridItem, DashboardHeader, DashboardLayout, Input, type InputProps, type MenuItem, Modal, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, NavItem, Navbar, type NavbarProps, Sidebar, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, defaultTheme, gridItemVariants, gridVariants, inputVariants, modalVariants, navbarVariants, showToast, sidebarVariants, skeletonVariants, spinnerVariants, statsCardVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toastVariants, useBreakpoint, useDarkMode, useDebounce, useLocalStorage, useToggle };
|
|
424
|
+
export { Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, type BreadcrumbItem, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type Column, ComponentShowcase, DashboardGrid, DashboardGridItem, DashboardHeader, DashboardLayout, DataTable, type DataTableProps, type FilterValue, Input, type InputProps, type MenuItem, Modal, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, NavItem, Navbar, type NavbarProps, type PaginationConfig, type RowSelection, Sidebar, Skeleton, type SkeletonProps, type SortConfig, Spinner, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, type TableContextValue, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, defaultTheme, gridItemVariants, gridVariants, inputVariants, modalVariants, navbarVariants, showToast, sidebarVariants, skeletonVariants, spinnerVariants, statsCardVariants, switchVariants, tabsListVariants, tabsTriggerVariants, textareaVariants, toastVariants, useBreakpoint, useDarkMode, useDebounce, useLocalStorage, useToggle };
|