ruler-components 0.1.2 → 0.1.4
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.d.mts +411 -4
- package/dist/index.d.ts +411 -4
- package/dist/index.js +3141 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3025 -56
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +2 -0
- package/package.json +7 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,324 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { LucideIcon } from 'lucide-react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
5
|
import { VariantProps } from 'class-variance-authority';
|
|
4
6
|
|
|
7
|
+
declare function Accordion({ children, defaultValue, className }: {
|
|
8
|
+
children: React__default.ReactNode;
|
|
9
|
+
defaultValue?: string | null;
|
|
10
|
+
className?: string;
|
|
11
|
+
}): React__default.JSX.Element;
|
|
12
|
+
declare function AccordionItem({ value, title, children, variant }: {
|
|
13
|
+
value: string;
|
|
14
|
+
title: string;
|
|
15
|
+
children: React__default.ReactNode;
|
|
16
|
+
variant?: "plus" | "chevron";
|
|
17
|
+
}): React__default.JSX.Element;
|
|
18
|
+
declare function AccordionNested({ title, children, level }: {
|
|
19
|
+
title: string;
|
|
20
|
+
children?: React__default.ReactNode;
|
|
21
|
+
level?: number;
|
|
22
|
+
}): React__default.JSX.Element;
|
|
23
|
+
declare function AccordionLink({ title, level }: {
|
|
24
|
+
title: string;
|
|
25
|
+
level?: number;
|
|
26
|
+
}): React__default.JSX.Element;
|
|
27
|
+
|
|
28
|
+
interface AlertProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
29
|
+
variant?: "info" | "success" | "warning" | "error";
|
|
30
|
+
title?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
dismissible?: boolean;
|
|
33
|
+
onDismiss?: () => void;
|
|
34
|
+
action?: React__default.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
declare const Alert: React__default.ForwardRefExoticComponent<AlertProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
|
|
38
|
+
declare const InputStandard: ({ className, ...props }: React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
39
|
+
declare const InputFilled: ({ className, ...props }: React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
40
|
+
declare const InputUnderline: ({ className, ...props }: React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
41
|
+
declare const InputFloating: ({ label, className, ...props }: {
|
|
42
|
+
label: string;
|
|
43
|
+
} & React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
44
|
+
declare const InputSearch: ({ className, ...props }: React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
45
|
+
declare const InputPassword: ({ className, ...props }: React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
46
|
+
declare const InputAddon: ({ prefix, suffix, className, ...props }: {
|
|
47
|
+
prefix?: string;
|
|
48
|
+
suffix?: string;
|
|
49
|
+
} & React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
50
|
+
declare const InputIcon: ({ icon: Icon, position, className, ...props }: {
|
|
51
|
+
icon: LucideIcon;
|
|
52
|
+
position?: "left" | "right";
|
|
53
|
+
} & React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
54
|
+
declare const InputOTP: () => React__default.JSX.Element;
|
|
55
|
+
declare const InputAutocomplete: ({ suggestions, className, ...props }: {
|
|
56
|
+
suggestions: string[];
|
|
57
|
+
} & React__default.InputHTMLAttributes<HTMLInputElement>) => React__default.JSX.Element;
|
|
58
|
+
|
|
59
|
+
declare const avatarVariants: (props?: ({
|
|
60
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
61
|
+
variant?: "default" | "outline" | null | undefined;
|
|
62
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
|
+
declare function getInitials(name: string): string;
|
|
64
|
+
declare function getGradientFromName(name: string): string;
|
|
65
|
+
interface AvatarProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof avatarVariants> {
|
|
66
|
+
src?: string;
|
|
67
|
+
alt?: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
status?: "online" | "offline" | "busy" | null;
|
|
70
|
+
}
|
|
71
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
72
|
+
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
max?: number;
|
|
74
|
+
size?: VariantProps<typeof avatarVariants>["size"];
|
|
75
|
+
}
|
|
76
|
+
declare function AvatarGroup({ className, max, size, children, ...props }: AvatarGroupProps): React.JSX.Element;
|
|
77
|
+
|
|
78
|
+
declare const badgeVariants: (props?: ({
|
|
79
|
+
variant?: "info" | "success" | "warning" | "error" | "default" | "outline" | null | undefined;
|
|
80
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
81
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
82
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
83
|
+
}
|
|
84
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
85
|
+
|
|
86
|
+
declare const buttonVariants: (props?: ({
|
|
87
|
+
variant?: "outline" | "primary" | "white" | "ghost" | null | undefined;
|
|
88
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
89
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
90
|
+
interface ButtonProps extends React.ComponentPropsWithoutRef<"button">, VariantProps<typeof buttonVariants> {
|
|
91
|
+
}
|
|
92
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
93
|
+
|
|
94
|
+
declare const cardVariants: (props?: ({
|
|
95
|
+
variant?: "default" | "outline" | "elevated" | "interactive" | null | undefined;
|
|
96
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
97
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
|
|
98
|
+
}
|
|
99
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
100
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
102
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
103
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
104
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
105
|
+
|
|
106
|
+
declare const checkboxControlVariants: (props?: ({
|
|
107
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
108
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
109
|
+
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size">, VariantProps<typeof checkboxControlVariants> {
|
|
110
|
+
label?: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
variant?: "inline" | "card";
|
|
113
|
+
}
|
|
114
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
115
|
+
|
|
116
|
+
declare function CodeBlock({ code, filename, className, }: {
|
|
117
|
+
code: string;
|
|
118
|
+
filename?: string;
|
|
119
|
+
className?: string;
|
|
120
|
+
}): React.JSX.Element;
|
|
121
|
+
|
|
122
|
+
interface DataTableColumn<T> {
|
|
123
|
+
key: string;
|
|
124
|
+
header: string;
|
|
125
|
+
sortable?: boolean;
|
|
126
|
+
align?: "left" | "center" | "right";
|
|
127
|
+
filterOptions?: string[];
|
|
128
|
+
accessor?: (row: T) => string | number;
|
|
129
|
+
render?: (row: T) => React__default.ReactNode;
|
|
130
|
+
className?: string;
|
|
131
|
+
}
|
|
132
|
+
interface DataTableProps<T> {
|
|
133
|
+
data: T[];
|
|
134
|
+
columns: DataTableColumn<T>[];
|
|
135
|
+
searchPlaceholder?: string;
|
|
136
|
+
pageSize?: number;
|
|
137
|
+
className?: string;
|
|
138
|
+
}
|
|
139
|
+
declare function DataTable<T extends object>({ data, columns, searchPlaceholder, pageSize, className, }: DataTableProps<T>): React__default.JSX.Element;
|
|
140
|
+
|
|
141
|
+
declare function Dialog({ children, open, onOpenChange }: {
|
|
142
|
+
children: React__default.ReactNode;
|
|
143
|
+
open?: boolean;
|
|
144
|
+
onOpenChange?: (open: boolean) => void;
|
|
145
|
+
}): React__default.JSX.Element;
|
|
146
|
+
declare function DialogTrigger({ children }: {
|
|
147
|
+
children: React__default.ReactElement<any>;
|
|
148
|
+
}): React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
|
149
|
+
declare function DialogContent({ children, className }: {
|
|
150
|
+
children: React__default.ReactNode;
|
|
151
|
+
className?: string;
|
|
152
|
+
}): React__default.ReactPortal | null;
|
|
153
|
+
declare function DialogHeader({ title, description }: {
|
|
154
|
+
title?: string;
|
|
155
|
+
description?: string;
|
|
156
|
+
}): React__default.JSX.Element;
|
|
157
|
+
declare function DialogFooter({ children }: {
|
|
158
|
+
children: React__default.ReactNode;
|
|
159
|
+
}): React__default.JSX.Element;
|
|
160
|
+
declare function DialogAction({ label, onClick, variant }: {
|
|
161
|
+
label: string;
|
|
162
|
+
onClick?: () => void;
|
|
163
|
+
variant?: "primary" | "destructive";
|
|
164
|
+
}): React__default.JSX.Element;
|
|
165
|
+
declare function DialogItem({ label, icon, onClick, variant, }: {
|
|
166
|
+
label: string;
|
|
167
|
+
icon?: React__default.ReactNode;
|
|
168
|
+
onClick?: () => void;
|
|
169
|
+
variant?: "account" | "action";
|
|
170
|
+
}): React__default.JSX.Element;
|
|
171
|
+
|
|
172
|
+
declare function Dropdown({ children }: {
|
|
173
|
+
children: React__default.ReactNode;
|
|
174
|
+
}): React__default.JSX.Element;
|
|
175
|
+
declare function DropdownTrigger({ children, isOpen, setIsOpen }: any): React__default.DetailedReactHTMLElement<{
|
|
176
|
+
onClick: () => any;
|
|
177
|
+
"aria-haspopup": "menu";
|
|
178
|
+
"aria-expanded": any;
|
|
179
|
+
className: string;
|
|
180
|
+
}, HTMLElement>;
|
|
181
|
+
declare function DropdownContent({ children, isOpen, className, align }: any): React__default.JSX.Element | null;
|
|
182
|
+
declare function DropdownItem({ label, icon: Icon, selected, onClick, className, variant }: any): React__default.JSX.Element;
|
|
183
|
+
declare function DropdownLabel({ children }: {
|
|
184
|
+
children: React__default.ReactNode;
|
|
185
|
+
}): React__default.JSX.Element;
|
|
186
|
+
declare function DropdownDivider(): React__default.JSX.Element;
|
|
187
|
+
|
|
188
|
+
declare function FeatureCard({ icon: Icon, title, description, variant, }: {
|
|
189
|
+
icon: LucideIcon;
|
|
190
|
+
title: string;
|
|
191
|
+
description: string;
|
|
192
|
+
variant?: "plain" | "bordered";
|
|
193
|
+
}): React.JSX.Element;
|
|
194
|
+
|
|
195
|
+
declare const inputVariants: (props?: ({
|
|
196
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
197
|
+
state?: "error" | "default" | null | undefined;
|
|
198
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
199
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof inputVariants> {
|
|
200
|
+
}
|
|
201
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
202
|
+
|
|
203
|
+
declare const labelVariants: (props?: ({
|
|
204
|
+
variant?: "default" | "muted" | null | undefined;
|
|
205
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
206
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
207
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>, VariantProps<typeof labelVariants> {
|
|
208
|
+
required?: boolean;
|
|
209
|
+
optional?: boolean;
|
|
210
|
+
hint?: string;
|
|
211
|
+
error?: string;
|
|
212
|
+
}
|
|
213
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
214
|
+
interface FieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
215
|
+
label: string;
|
|
216
|
+
htmlFor: string;
|
|
217
|
+
required?: boolean;
|
|
218
|
+
optional?: boolean;
|
|
219
|
+
hint?: string;
|
|
220
|
+
error?: string;
|
|
221
|
+
labelSize?: "sm" | "md" | "lg";
|
|
222
|
+
children: React.ReactNode;
|
|
223
|
+
}
|
|
224
|
+
declare function Field({ className, label, htmlFor, required, optional, hint, error, labelSize, children, ...props }: FieldProps): React.JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare const SkeletonShimmer: ({ className }: {
|
|
227
|
+
className?: string;
|
|
228
|
+
}) => React__default.JSX.Element;
|
|
229
|
+
declare const ProgressRing: () => React__default.JSX.Element;
|
|
230
|
+
declare const SpinnerGradient: () => React__default.JSX.Element;
|
|
231
|
+
declare const SpinnerDots: () => React__default.JSX.Element;
|
|
232
|
+
declare const HalfCircles: () => React__default.JSX.Element;
|
|
233
|
+
declare const SquaresLoader: () => React__default.JSX.Element;
|
|
234
|
+
declare const LoadBar: () => React__default.JSX.Element;
|
|
235
|
+
declare const PulseLoader: () => React__default.JSX.Element;
|
|
236
|
+
declare const DotWave: () => React__default.JSX.Element;
|
|
237
|
+
declare const ThreeDots: () => React__default.JSX.Element;
|
|
238
|
+
declare const TypingIndicator: () => React__default.JSX.Element;
|
|
239
|
+
declare const ProgressBar: () => React__default.JSX.Element;
|
|
240
|
+
declare const MorphingLoader: () => React__default.JSX.Element;
|
|
241
|
+
declare const OrbitLoader: () => React__default.JSX.Element;
|
|
242
|
+
declare const BlurReveal: ({ children }: {
|
|
243
|
+
children: React__default.ReactNode;
|
|
244
|
+
}) => React__default.JSX.Element;
|
|
245
|
+
declare const AILoader: ({ text }: {
|
|
246
|
+
text?: string;
|
|
247
|
+
}) => React__default.JSX.Element;
|
|
248
|
+
|
|
249
|
+
declare const menuVariants: (props?: ({
|
|
250
|
+
variant?: "default" | "ghost" | null | undefined;
|
|
251
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
252
|
+
interface MenuProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof menuVariants> {
|
|
253
|
+
}
|
|
254
|
+
declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
255
|
+
declare const menuItemVariants: (props?: ({
|
|
256
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
257
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
258
|
+
interface MenuItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children">, VariantProps<typeof menuItemVariants> {
|
|
259
|
+
label: string;
|
|
260
|
+
icon?: React.ElementType;
|
|
261
|
+
shortcut?: string;
|
|
262
|
+
selected?: boolean;
|
|
263
|
+
}
|
|
264
|
+
declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
265
|
+
declare const MenuLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
266
|
+
declare const MenuDivider: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
267
|
+
|
|
268
|
+
declare const modalContentVariants: (props?: ({
|
|
269
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
270
|
+
visible?: boolean | null | undefined;
|
|
271
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
272
|
+
declare const overlayVariants: (props?: ({
|
|
273
|
+
visible?: boolean | null | undefined;
|
|
274
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
275
|
+
interface ModalProps {
|
|
276
|
+
open?: boolean;
|
|
277
|
+
onOpenChange?: (open: boolean) => void;
|
|
278
|
+
defaultOpen?: boolean;
|
|
279
|
+
children: React.ReactNode;
|
|
280
|
+
}
|
|
281
|
+
declare function Modal({ open: controlledOpen, onOpenChange, defaultOpen, children, }: ModalProps): React.JSX.Element;
|
|
282
|
+
interface ModalTriggerProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
283
|
+
asChild?: boolean;
|
|
284
|
+
}
|
|
285
|
+
declare function ModalTrigger({ asChild, children, onClick, ...props }: ModalTriggerProps): React.JSX.Element;
|
|
286
|
+
interface ModalContentProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof modalContentVariants> {
|
|
287
|
+
showCloseButton?: boolean;
|
|
288
|
+
onClose?: () => void;
|
|
289
|
+
}
|
|
290
|
+
declare function ModalContent({ className, size, showCloseButton, onClose, children, ...props }: ModalContentProps): React.ReactPortal | null;
|
|
291
|
+
declare function ModalHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
292
|
+
declare function ModalTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>): React.JSX.Element;
|
|
293
|
+
declare function ModalDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
|
|
294
|
+
declare function ModalBody({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
295
|
+
declare function ModalFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
296
|
+
declare function ModalOption({ className, icon, title, description, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
297
|
+
icon?: React.ReactNode;
|
|
298
|
+
title: string;
|
|
299
|
+
description?: string;
|
|
300
|
+
}): React.JSX.Element;
|
|
301
|
+
interface ModalCloseProps extends React.ComponentPropsWithoutRef<"button"> {
|
|
302
|
+
asChild?: boolean;
|
|
303
|
+
}
|
|
304
|
+
declare function ModalClose({ asChild, children, onClick, ...props }: ModalCloseProps): React.JSX.Element;
|
|
305
|
+
|
|
306
|
+
interface PaginationProps {
|
|
307
|
+
page: number;
|
|
308
|
+
totalPages: number;
|
|
309
|
+
onPageChange: (page: number) => void;
|
|
310
|
+
siblingCount?: number;
|
|
311
|
+
variant?: "default" | "simple";
|
|
312
|
+
size?: "small" | "half" | "full";
|
|
313
|
+
className?: string;
|
|
314
|
+
}
|
|
315
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, variant, size, className, }: PaginationProps): React.JSX.Element;
|
|
316
|
+
|
|
5
317
|
declare const progressTrackVariants: (props?: ({
|
|
6
318
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
319
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
320
|
declare const progressIndicatorVariants: (props?: ({
|
|
9
|
-
variant?: "
|
|
321
|
+
variant?: "success" | "warning" | "error" | "default" | null | undefined;
|
|
10
322
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
323
|
interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof progressTrackVariants>, VariantProps<typeof progressIndicatorVariants> {
|
|
12
324
|
value?: number;
|
|
@@ -18,6 +330,65 @@ interface ProgressProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "chil
|
|
|
18
330
|
}
|
|
19
331
|
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
332
|
|
|
333
|
+
declare const radioControlVariants: (props?: ({
|
|
334
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
335
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
336
|
+
interface RadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
337
|
+
name: string;
|
|
338
|
+
value?: string;
|
|
339
|
+
defaultValue?: string;
|
|
340
|
+
onValueChange?: (value: string) => void;
|
|
341
|
+
size?: "sm" | "md" | "lg";
|
|
342
|
+
variant?: "inline" | "card";
|
|
343
|
+
appearance?: "default" | "segmented";
|
|
344
|
+
disabled?: boolean;
|
|
345
|
+
orientation?: "vertical" | "horizontal";
|
|
346
|
+
}
|
|
347
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
348
|
+
interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size">, VariantProps<typeof radioControlVariants> {
|
|
349
|
+
value: string;
|
|
350
|
+
label?: string;
|
|
351
|
+
description?: string;
|
|
352
|
+
variant?: "inline" | "card";
|
|
353
|
+
}
|
|
354
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
355
|
+
|
|
356
|
+
declare function AccordionSkeletonPlus({ count }: {
|
|
357
|
+
count?: number;
|
|
358
|
+
}): React__default.JSX.Element;
|
|
359
|
+
declare function AccordionSkeletonChevron({ count }: {
|
|
360
|
+
count?: number;
|
|
361
|
+
}): React__default.JSX.Element;
|
|
362
|
+
declare function CardSkeletonGrid({ count }: {
|
|
363
|
+
count?: number;
|
|
364
|
+
}): React__default.JSX.Element;
|
|
365
|
+
declare function ListSkeleton({ count }: {
|
|
366
|
+
count?: number;
|
|
367
|
+
}): React__default.JSX.Element;
|
|
368
|
+
declare function TableSkeleton({ count }: {
|
|
369
|
+
count?: number;
|
|
370
|
+
}): React__default.JSX.Element;
|
|
371
|
+
|
|
372
|
+
interface Step {
|
|
373
|
+
title: string;
|
|
374
|
+
description?: string;
|
|
375
|
+
icon?: React__default.ElementType;
|
|
376
|
+
}
|
|
377
|
+
interface StepperProps {
|
|
378
|
+
steps: Step[];
|
|
379
|
+
currentStep: number;
|
|
380
|
+
onStepClick?: (step: number) => void;
|
|
381
|
+
className?: string;
|
|
382
|
+
}
|
|
383
|
+
declare function HorizontalStepper({ steps, currentStep, className }: StepperProps): React__default.JSX.Element;
|
|
384
|
+
declare function VerticalStepper({ steps, currentStep, className }: StepperProps): React__default.JSX.Element;
|
|
385
|
+
declare function ProgressStepper({ steps, currentStep }: StepperProps): React__default.JSX.Element;
|
|
386
|
+
declare function DotStepper({ steps, currentStep }: StepperProps): React__default.JSX.Element;
|
|
387
|
+
declare function SegmentedStepper({ steps, currentStep }: StepperProps): React__default.JSX.Element;
|
|
388
|
+
declare function BreadcrumbStepper({ steps, currentStep }: StepperProps): React__default.JSX.Element;
|
|
389
|
+
declare function TimelineStepper({ steps, currentStep }: StepperProps): React__default.JSX.Element;
|
|
390
|
+
declare function InteractiveStepper({ steps, currentStep, onStepClick }: StepperProps): React__default.JSX.Element;
|
|
391
|
+
|
|
21
392
|
declare const switchTrackVariants: (props?: ({
|
|
22
393
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
23
394
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -30,9 +401,45 @@ interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
30
401
|
}
|
|
31
402
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
32
403
|
|
|
404
|
+
declare function Table({ children, className, ...props }: React__default.HTMLAttributes<HTMLTableElement>): React__default.JSX.Element;
|
|
405
|
+
declare function TableHeader({ children, className, ...props }: React__default.HTMLAttributes<HTMLTableSectionElement>): React__default.JSX.Element;
|
|
406
|
+
declare function TableBody({ children, className, ...props }: React__default.HTMLAttributes<HTMLTableSectionElement>): React__default.JSX.Element;
|
|
407
|
+
declare function TableRow({ children, className, ...props }: React__default.HTMLAttributes<HTMLTableRowElement>): React__default.JSX.Element;
|
|
408
|
+
declare function TableHead({ children, className, ...props }: React__default.ThHTMLAttributes<HTMLTableHeaderCellElement>): React__default.JSX.Element;
|
|
409
|
+
declare function TableCell({ children, className, ...props }: React__default.TdHTMLAttributes<HTMLTableCellElement>): React__default.JSX.Element;
|
|
410
|
+
declare function ExpandableRow({ title, details, children, colSpan }: {
|
|
411
|
+
title: React__default.ReactNode;
|
|
412
|
+
details: React__default.ReactNode;
|
|
413
|
+
children?: React__default.ReactNode;
|
|
414
|
+
colSpan?: number;
|
|
415
|
+
}): React__default.JSX.Element;
|
|
416
|
+
|
|
417
|
+
declare function Tabs({ children, defaultValue, variant, className }: {
|
|
418
|
+
children: React__default.ReactNode;
|
|
419
|
+
defaultValue: string;
|
|
420
|
+
variant?: "underline" | "pill" | "segmented" | "bordered" | "filled" | "icon" | "vertical" | "floating" | "scrollable" | "card";
|
|
421
|
+
className?: string;
|
|
422
|
+
}): React__default.JSX.Element;
|
|
423
|
+
declare function TabsList({ children, className }: {
|
|
424
|
+
children: React__default.ReactNode;
|
|
425
|
+
className?: string;
|
|
426
|
+
}): React__default.JSX.Element;
|
|
427
|
+
declare function TabsTrigger({ value, label, icon: Icon, badge, className }: {
|
|
428
|
+
value: string;
|
|
429
|
+
label: string;
|
|
430
|
+
icon?: any;
|
|
431
|
+
badge?: string | number;
|
|
432
|
+
className?: string;
|
|
433
|
+
}): React__default.JSX.Element;
|
|
434
|
+
declare function TabsContent({ value, children, className }: {
|
|
435
|
+
value: string;
|
|
436
|
+
children: React__default.ReactNode;
|
|
437
|
+
className?: string;
|
|
438
|
+
}): React__default.JSX.Element | null;
|
|
439
|
+
|
|
33
440
|
declare const tooltipVariants: (props?: ({
|
|
34
441
|
visible?: boolean | null | undefined;
|
|
35
|
-
side?: "
|
|
442
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
36
443
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
37
444
|
type TooltipSide = "top" | "bottom" | "left" | "right";
|
|
38
445
|
type TooltipAlign = "start" | "center" | "end";
|
|
@@ -48,4 +455,4 @@ interface TooltipProps extends VariantProps<typeof tooltipVariants> {
|
|
|
48
455
|
}
|
|
49
456
|
declare function Tooltip({ content, children, side, align, sideOffset, delayDuration, disabled, className, }: TooltipProps): React.JSX.Element;
|
|
50
457
|
|
|
51
|
-
export { Progress, type ProgressProps, Switch, type SwitchProps, Tooltip, type TooltipProps };
|
|
458
|
+
export { AILoader, Accordion, AccordionItem, AccordionLink, AccordionNested, AccordionSkeletonChevron, AccordionSkeletonPlus, Alert, type AlertProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, BlurReveal, BreadcrumbStepper, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardSkeletonGrid, CardTitle, Checkbox, type CheckboxProps, CodeBlock, DataTable, type DataTableColumn, type DataTableProps, Dialog, DialogAction, DialogContent, DialogFooter, DialogHeader, DialogItem, DialogTrigger, DotStepper, DotWave, Dropdown, DropdownContent, DropdownDivider, DropdownItem, DropdownLabel, DropdownTrigger, ExpandableRow, FeatureCard, Field, type FieldProps, HalfCircles, HorizontalStepper, Input, InputAddon, InputAutocomplete, InputFilled, InputFloating, InputIcon, InputOTP, InputPassword, type InputProps, InputSearch, InputStandard, InputUnderline, InteractiveStepper, Label, type LabelProps, ListSkeleton, LoadBar, Menu, MenuDivider, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, Modal, ModalBody, ModalClose, type ModalCloseProps, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, ModalHeader, ModalOption, type ModalProps, ModalTitle, ModalTrigger, type ModalTriggerProps, MorphingLoader, OrbitLoader, Pagination, type PaginationProps, Progress, ProgressBar, type ProgressProps, ProgressRing, ProgressStepper, PulseLoader, Radio, RadioGroup, type RadioGroupProps, type RadioProps, SegmentedStepper, SkeletonShimmer, SpinnerDots, SpinnerGradient, SquaresLoader, type Step, Switch, type SwitchProps, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, ThreeDots, TimelineStepper, Tooltip, type TooltipProps, TypingIndicator, VerticalStepper, avatarVariants, badgeVariants, buttonVariants, checkboxControlVariants, getGradientFromName, getInitials, inputVariants, labelVariants, menuItemVariants, menuVariants, modalContentVariants, overlayVariants, radioControlVariants };
|