@beyondcorp/beyond-ui 1.0.4 → 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 +3413 -397
- package/dist/index.d.cts +424 -0
- package/dist/index.d.ts +424 -28
- package/dist/index.js +2117 -4913
- package/package.json +3 -2
- package/dist/hooks/useBreakpoint.d.ts +0 -14
- package/dist/hooks/useDarkMode.d.ts +0 -4
- package/dist/hooks/useDebounce.d.ts +0 -1
- package/dist/hooks/useLocalStorage.d.ts +0 -1
- package/dist/hooks/useToggle.d.ts +0 -1
- package/dist/theme/default.d.ts +0 -69
- package/dist/utils/cn.d.ts +0 -3
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { ClassValue } from 'clsx';
|
|
6
|
+
|
|
7
|
+
declare const buttonVariants: (props?: ({
|
|
8
|
+
variant?: "primary" | "secondary" | "danger" | "success" | "warning" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
10
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
11
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
|
|
16
|
+
declare const inputVariants: (props?: ({
|
|
17
|
+
variant?: "success" | "default" | "error" | null | undefined;
|
|
18
|
+
inputSize?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
20
|
+
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
|
|
21
|
+
}
|
|
22
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
|
|
24
|
+
declare const cardVariants: (props?: ({
|
|
25
|
+
variant?: "default" | "elevated" | "outlined" | null | undefined;
|
|
26
|
+
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
27
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
28
|
+
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
29
|
+
}
|
|
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
|
+
|
|
37
|
+
declare const badgeVariants: (props?: ({
|
|
38
|
+
variant?: "secondary" | "danger" | "success" | "warning" | "outline" | "default" | null | undefined;
|
|
39
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
40
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
41
|
+
}
|
|
42
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare const alertVariants: (props?: ({
|
|
45
|
+
variant?: "danger" | "success" | "warning" | "default" | "info" | null | undefined;
|
|
46
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
47
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
48
|
+
variant?: "danger" | "success" | "warning" | "default" | "info" | null | undefined;
|
|
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
|
+
|
|
53
|
+
declare const avatarVariants: (props?: ({
|
|
54
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
55
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
56
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
57
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
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
|
+
|
|
62
|
+
declare const spinnerVariants: (props?: ({
|
|
63
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
64
|
+
variant?: "primary" | "secondary" | "current" | "white" | null | undefined;
|
|
65
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
66
|
+
interface SpinnerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
|
|
67
|
+
}
|
|
68
|
+
declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
69
|
+
|
|
70
|
+
declare const skeletonVariants: (props?: ({
|
|
71
|
+
variant?: "default" | "darker" | null | undefined;
|
|
72
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
73
|
+
interface SkeletonProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
|
|
74
|
+
}
|
|
75
|
+
declare const Skeleton: React$1.ForwardRefExoticComponent<SkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
|
|
77
|
+
declare const textareaVariants: (props?: ({
|
|
78
|
+
variant?: "success" | "default" | "error" | null | undefined;
|
|
79
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
80
|
+
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
81
|
+
}
|
|
82
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
83
|
+
|
|
84
|
+
declare const switchVariants: (props?: ({
|
|
85
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
86
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
87
|
+
interface SwitchProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof switchVariants> {
|
|
88
|
+
checked?: boolean;
|
|
89
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
90
|
+
}
|
|
91
|
+
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
92
|
+
|
|
93
|
+
declare const checkboxVariants: (props?: ({
|
|
94
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
95
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
96
|
+
interface CheckboxProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof checkboxVariants> {
|
|
97
|
+
}
|
|
98
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
99
|
+
|
|
100
|
+
declare const modalVariants: (props?: ({
|
|
101
|
+
size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
|
|
102
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
103
|
+
interface ModalProps extends VariantProps<typeof modalVariants> {
|
|
104
|
+
open?: boolean;
|
|
105
|
+
onOpenChange?: (open: boolean) => void;
|
|
106
|
+
children: React$1.ReactNode;
|
|
107
|
+
}
|
|
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
|
+
|
|
115
|
+
declare const toastVariants: (props?: ({
|
|
116
|
+
variant?: "success" | "warning" | "default" | "error" | "info" | null | undefined;
|
|
117
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
118
|
+
interface ToastOptions {
|
|
119
|
+
variant?: VariantProps<typeof toastVariants>["variant"];
|
|
120
|
+
duration?: number;
|
|
121
|
+
}
|
|
122
|
+
declare const showToast: {
|
|
123
|
+
success: (message: string, options?: ToastOptions) => string;
|
|
124
|
+
error: (message: string, options?: ToastOptions) => string;
|
|
125
|
+
warning: (message: string, options?: ToastOptions) => string;
|
|
126
|
+
info: (message: string, options?: ToastOptions) => string;
|
|
127
|
+
default: (message: string, options?: ToastOptions) => string;
|
|
128
|
+
};
|
|
129
|
+
declare const Toast: React$1.FC;
|
|
130
|
+
|
|
131
|
+
declare const tabsListVariants: (props?: ({
|
|
132
|
+
variant?: "default" | "pills" | "underline" | null | undefined;
|
|
133
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
134
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
135
|
+
variant?: "default" | "pills" | "underline" | null | undefined;
|
|
136
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
137
|
+
interface TabsProps extends VariantProps<typeof tabsListVariants> {
|
|
138
|
+
value: string;
|
|
139
|
+
onValueChange: (value: string) => void;
|
|
140
|
+
children: React$1.ReactNode;
|
|
141
|
+
className?: string;
|
|
142
|
+
}
|
|
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
|
+
value: string;
|
|
147
|
+
}
|
|
148
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
149
|
+
interface TabsContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
150
|
+
value: string;
|
|
151
|
+
}
|
|
152
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<TabsContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
153
|
+
|
|
154
|
+
declare const statsCardVariants: (props?: ({
|
|
155
|
+
variant?: "default" | "gradient" | null | undefined;
|
|
156
|
+
color?: "primary" | "secondary" | "danger" | "success" | "warning" | null | undefined;
|
|
157
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
158
|
+
type TrendDirection = "up" | "down" | "neutral";
|
|
159
|
+
interface StatsCardProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "color">, VariantProps<typeof statsCardVariants> {
|
|
160
|
+
title: string;
|
|
161
|
+
value: string | number;
|
|
162
|
+
trend?: {
|
|
163
|
+
direction: TrendDirection;
|
|
164
|
+
value: string | number;
|
|
165
|
+
label?: string;
|
|
166
|
+
};
|
|
167
|
+
icon?: React$1.ReactNode;
|
|
168
|
+
}
|
|
169
|
+
declare const StatsCard: React$1.ForwardRefExoticComponent<StatsCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
170
|
+
|
|
171
|
+
declare const navbarVariants: (props?: ({
|
|
172
|
+
variant?: "default" | "transparent" | "dark" | null | undefined;
|
|
173
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
174
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
175
|
+
interface NavbarProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
|
|
176
|
+
logo?: React$1.ReactNode;
|
|
177
|
+
children?: React$1.ReactNode;
|
|
178
|
+
}
|
|
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
|
+
|
|
182
|
+
declare const sidebarVariants: (props?: ({
|
|
183
|
+
collapsed?: boolean | null | undefined;
|
|
184
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
185
|
+
interface MenuItem {
|
|
186
|
+
id: string;
|
|
187
|
+
label: string;
|
|
188
|
+
icon: React$1.ReactNode;
|
|
189
|
+
href?: string;
|
|
190
|
+
badge?: string;
|
|
191
|
+
children?: MenuItem[];
|
|
192
|
+
}
|
|
193
|
+
interface SidebarProps extends VariantProps<typeof sidebarVariants> {
|
|
194
|
+
className?: string;
|
|
195
|
+
onToggle?: () => void;
|
|
196
|
+
menuItems?: MenuItem[];
|
|
197
|
+
activeItem?: string;
|
|
198
|
+
onItemClick?: (itemId: string) => void;
|
|
199
|
+
}
|
|
200
|
+
declare const Sidebar: React$1.ForwardRefExoticComponent<SidebarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
201
|
+
|
|
202
|
+
interface BreadcrumbItem {
|
|
203
|
+
label: string;
|
|
204
|
+
href?: string;
|
|
205
|
+
}
|
|
206
|
+
interface DashboardHeaderProps {
|
|
207
|
+
className?: string;
|
|
208
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
209
|
+
onMenuToggle?: () => void;
|
|
210
|
+
sidebarCollapsed?: boolean;
|
|
211
|
+
showSearch?: boolean;
|
|
212
|
+
searchPlaceholder?: string;
|
|
213
|
+
onSearchChange?: (value: string) => void;
|
|
214
|
+
}
|
|
215
|
+
declare const DashboardHeader: React$1.ForwardRefExoticComponent<DashboardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
216
|
+
|
|
217
|
+
interface DashboardLayoutProps {
|
|
218
|
+
children: React$1.ReactNode;
|
|
219
|
+
className?: string;
|
|
220
|
+
sidebarMenuItems?: MenuItem[];
|
|
221
|
+
activeSidebarItem?: string;
|
|
222
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
223
|
+
onSidebarItemClick?: (itemId: string) => void;
|
|
224
|
+
showSearch?: boolean;
|
|
225
|
+
searchPlaceholder?: string;
|
|
226
|
+
onSearchChange?: (value: string) => void;
|
|
227
|
+
sidebarClassName?: string;
|
|
228
|
+
disableSidebarMargin?: boolean;
|
|
229
|
+
}
|
|
230
|
+
declare const DashboardLayout: React$1.ForwardRefExoticComponent<DashboardLayoutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
231
|
+
|
|
232
|
+
declare const gridVariants: (props?: ({
|
|
233
|
+
columns?: 1 | 2 | 3 | 12 | 4 | 6 | null | undefined;
|
|
234
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
235
|
+
declare const gridItemVariants: (props?: ({
|
|
236
|
+
colSpan?: 1 | 2 | 3 | 12 | 4 | 6 | null | undefined;
|
|
237
|
+
rowSpan?: 1 | 2 | 3 | 4 | null | undefined;
|
|
238
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
239
|
+
interface DashboardGridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
|
|
240
|
+
}
|
|
241
|
+
interface DashboardGridItemProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridItemVariants> {
|
|
242
|
+
}
|
|
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
|
+
};
|
|
321
|
+
|
|
322
|
+
interface ComponentShowcaseProps {
|
|
323
|
+
className?: string;
|
|
324
|
+
}
|
|
325
|
+
declare const ComponentShowcase: React$1.FC<ComponentShowcaseProps>;
|
|
326
|
+
|
|
327
|
+
declare function useDarkMode(): {
|
|
328
|
+
isDarkMode: boolean;
|
|
329
|
+
toggle: () => void;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
declare function useDebounce<T>(value: T, delay: number): T;
|
|
333
|
+
|
|
334
|
+
declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T | ((val: T) => T)) => void, () => void];
|
|
335
|
+
|
|
336
|
+
declare function useToggle(initialValue?: boolean): [boolean, () => void, (value: boolean) => void];
|
|
337
|
+
|
|
338
|
+
declare const breakpoints: {
|
|
339
|
+
readonly sm: 640;
|
|
340
|
+
readonly md: 768;
|
|
341
|
+
readonly lg: 1024;
|
|
342
|
+
readonly xl: 1280;
|
|
343
|
+
readonly '2xl': 1536;
|
|
344
|
+
};
|
|
345
|
+
type Breakpoint = keyof typeof breakpoints;
|
|
346
|
+
declare function useBreakpoint(): {
|
|
347
|
+
currentBreakpoint: "sm" | "md" | "lg" | "xl" | "2xl";
|
|
348
|
+
isAbove: (breakpoint: Breakpoint) => boolean;
|
|
349
|
+
isBelow: (breakpoint: Breakpoint) => boolean;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
353
|
+
|
|
354
|
+
declare const defaultTheme: {
|
|
355
|
+
colors: {
|
|
356
|
+
primary: {
|
|
357
|
+
50: string;
|
|
358
|
+
100: string;
|
|
359
|
+
200: string;
|
|
360
|
+
300: string;
|
|
361
|
+
400: string;
|
|
362
|
+
500: string;
|
|
363
|
+
600: string;
|
|
364
|
+
700: string;
|
|
365
|
+
800: string;
|
|
366
|
+
900: string;
|
|
367
|
+
950: string;
|
|
368
|
+
};
|
|
369
|
+
secondary: {
|
|
370
|
+
50: string;
|
|
371
|
+
100: string;
|
|
372
|
+
200: string;
|
|
373
|
+
300: string;
|
|
374
|
+
400: string;
|
|
375
|
+
500: string;
|
|
376
|
+
600: string;
|
|
377
|
+
700: string;
|
|
378
|
+
800: string;
|
|
379
|
+
900: string;
|
|
380
|
+
950: string;
|
|
381
|
+
};
|
|
382
|
+
danger: {
|
|
383
|
+
50: string;
|
|
384
|
+
100: string;
|
|
385
|
+
200: string;
|
|
386
|
+
300: string;
|
|
387
|
+
400: string;
|
|
388
|
+
500: string;
|
|
389
|
+
600: string;
|
|
390
|
+
700: string;
|
|
391
|
+
800: string;
|
|
392
|
+
900: string;
|
|
393
|
+
950: string;
|
|
394
|
+
};
|
|
395
|
+
success: {
|
|
396
|
+
50: string;
|
|
397
|
+
100: string;
|
|
398
|
+
200: string;
|
|
399
|
+
300: string;
|
|
400
|
+
400: string;
|
|
401
|
+
500: string;
|
|
402
|
+
600: string;
|
|
403
|
+
700: string;
|
|
404
|
+
800: string;
|
|
405
|
+
900: string;
|
|
406
|
+
950: string;
|
|
407
|
+
};
|
|
408
|
+
warning: {
|
|
409
|
+
50: string;
|
|
410
|
+
100: string;
|
|
411
|
+
200: string;
|
|
412
|
+
300: string;
|
|
413
|
+
400: string;
|
|
414
|
+
500: string;
|
|
415
|
+
600: string;
|
|
416
|
+
700: string;
|
|
417
|
+
800: string;
|
|
418
|
+
900: string;
|
|
419
|
+
950: string;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
|
|
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 };
|