@me1a/ui 2.0.1 → 2.0.3
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +826 -42
- package/dist/index.d.ts +826 -42
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
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 * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
7
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
8
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
9
|
+
import * as react_hook_form from 'react-hook-form';
|
|
10
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
11
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
13
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
6
14
|
import * as vaul from 'vaul';
|
|
7
15
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
16
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
17
|
import { ClassValue } from 'clsx';
|
|
9
18
|
|
|
10
19
|
/**
|
|
11
20
|
* Props interface for the Button component.
|
|
12
21
|
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
22
|
+
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
13
23
|
*
|
|
14
24
|
* @interface ButtonProps
|
|
15
25
|
* @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
|
|
@@ -22,17 +32,22 @@ import { ClassValue } from 'clsx';
|
|
|
22
32
|
* @property {React.ReactNode} [startIcon] - Icon to display before the button text.
|
|
23
33
|
* @property {React.ReactNode} [endIcon] - Icon to display after the button text.
|
|
24
34
|
* @property {boolean} [loading] - Whether the button is in a loading state.
|
|
35
|
+
* @property {string} [type] - The type of button (button, submit, reset). Defaults to "button".
|
|
36
|
+
* @property {string} [aria-label] - Accessible label for the button. Falls back to button text if not provided.
|
|
25
37
|
*/
|
|
26
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
38
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
27
39
|
asChild?: boolean;
|
|
28
|
-
startIcon?: React.ReactNode;
|
|
29
|
-
endIcon?: React.ReactNode;
|
|
40
|
+
startIcon?: React$1.ReactNode;
|
|
41
|
+
endIcon?: React$1.ReactNode;
|
|
30
42
|
loading?: boolean;
|
|
43
|
+
type?: "button" | "submit" | "reset";
|
|
44
|
+
"aria-label"?: string;
|
|
31
45
|
}
|
|
32
46
|
|
|
33
47
|
/**
|
|
34
48
|
* Button variant styles using class-variance-authority.
|
|
35
49
|
* Defines the visual styles for different button variants and sizes.
|
|
50
|
+
* Follows WCAG 2.1 Level AA guidelines for accessibility.
|
|
36
51
|
*
|
|
37
52
|
* @example
|
|
38
53
|
* ```tsx
|
|
@@ -46,6 +61,7 @@ declare const buttonVariants: (props?: ({
|
|
|
46
61
|
/**
|
|
47
62
|
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
48
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
64
|
+
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
49
65
|
*
|
|
50
66
|
* @component
|
|
51
67
|
* @example
|
|
@@ -73,7 +89,7 @@ declare const buttonVariants: (props?: ({
|
|
|
73
89
|
* @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
|
|
74
90
|
* @returns {JSX.Element} A button element
|
|
75
91
|
*/
|
|
76
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
92
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
77
93
|
|
|
78
94
|
/**
|
|
79
95
|
* Props interface for the TextField component.
|
|
@@ -93,9 +109,9 @@ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAtt
|
|
|
93
109
|
* @property {string} [label] - Label text for the text field.
|
|
94
110
|
* @property {string} [helperText] - Helper text to display below the text field.
|
|
95
111
|
*/
|
|
96
|
-
interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof textFieldVariants> {
|
|
97
|
-
startIcon?: React.ReactNode;
|
|
98
|
-
endIcon?: React.ReactNode;
|
|
112
|
+
interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof textFieldVariants> {
|
|
113
|
+
startIcon?: React$1.ReactNode;
|
|
114
|
+
endIcon?: React$1.ReactNode;
|
|
99
115
|
loading?: boolean;
|
|
100
116
|
error?: string;
|
|
101
117
|
label?: string;
|
|
@@ -131,9 +147,9 @@ declare const textFieldVariants: (props?: ({
|
|
|
131
147
|
* <TextField error="Invalid input" placeholder="Enter text" />
|
|
132
148
|
* ```
|
|
133
149
|
*/
|
|
134
|
-
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
150
|
+
declare const TextField: React$1.ForwardRefExoticComponent<TextFieldProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
135
151
|
|
|
136
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
152
|
+
interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
137
153
|
/**
|
|
138
154
|
* The maximum width of the container.
|
|
139
155
|
* - "sm": 640px
|
|
@@ -161,7 +177,7 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
161
177
|
*/
|
|
162
178
|
fluid?: boolean;
|
|
163
179
|
}
|
|
164
|
-
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
180
|
+
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
165
181
|
|
|
166
182
|
/**
|
|
167
183
|
* Box is a fundamental layout component that serves as a building block for other components.
|
|
@@ -182,7 +198,7 @@ declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.
|
|
|
182
198
|
*/
|
|
183
199
|
|
|
184
200
|
type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
|
|
185
|
-
interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
201
|
+
interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
186
202
|
/**
|
|
187
203
|
* The HTML element to render the Box as.
|
|
188
204
|
* This allows for semantic HTML while maintaining consistent styling.
|
|
@@ -191,7 +207,7 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
191
207
|
*/
|
|
192
208
|
as?: BoxComponent;
|
|
193
209
|
}
|
|
194
|
-
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
210
|
+
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
195
211
|
|
|
196
212
|
/**
|
|
197
213
|
* Stack is a layout component that arranges its children in a vertical or horizontal stack
|
|
@@ -229,7 +245,7 @@ declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttribute
|
|
|
229
245
|
* ```
|
|
230
246
|
*/
|
|
231
247
|
|
|
232
|
-
interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
248
|
+
interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
233
249
|
/**
|
|
234
250
|
* The direction in which to stack the items.
|
|
235
251
|
* - "vertical": Items are stacked top to bottom
|
|
@@ -288,26 +304,232 @@ interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
288
304
|
*/
|
|
289
305
|
align?: "start" | "end" | "center" | "stretch" | "baseline";
|
|
290
306
|
}
|
|
291
|
-
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
307
|
+
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
292
308
|
|
|
293
|
-
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
294
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
295
|
-
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
296
|
-
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
297
|
-
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
298
|
-
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
309
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
310
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
311
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
312
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
313
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
314
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
299
315
|
declare const DialogHeader: {
|
|
300
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
316
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
301
317
|
displayName: string;
|
|
302
318
|
};
|
|
303
319
|
declare const DialogFooter: {
|
|
304
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
320
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
305
321
|
displayName: string;
|
|
306
322
|
};
|
|
307
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
308
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
323
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
324
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
309
325
|
|
|
310
|
-
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
326
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
327
|
+
|
|
328
|
+
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
329
|
+
|
|
330
|
+
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
331
|
+
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
332
|
+
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
333
|
+
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
334
|
+
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
335
|
+
declare const sheetVariants: (props?: ({
|
|
336
|
+
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
337
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
338
|
+
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
339
|
+
}
|
|
340
|
+
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
341
|
+
declare const SheetHeader: {
|
|
342
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
343
|
+
displayName: string;
|
|
344
|
+
};
|
|
345
|
+
declare const SheetFooter: {
|
|
346
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
347
|
+
displayName: string;
|
|
348
|
+
};
|
|
349
|
+
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
350
|
+
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
351
|
+
|
|
352
|
+
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Avatar component that displays a user's profile picture or fallback.
|
|
356
|
+
* Built on top of Radix UI's Avatar primitive.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* ```tsx
|
|
360
|
+
* <Avatar>
|
|
361
|
+
* <AvatarImage src="/path/to/image.jpg" alt="User avatar" />
|
|
362
|
+
* <AvatarFallback>JD</AvatarFallback>
|
|
363
|
+
* </Avatar>
|
|
364
|
+
* ```
|
|
365
|
+
*/
|
|
366
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
367
|
+
/**
|
|
368
|
+
* AvatarImage component that displays the user's profile picture.
|
|
369
|
+
* Falls back to AvatarFallback if the image fails to load.
|
|
370
|
+
*/
|
|
371
|
+
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
372
|
+
/**
|
|
373
|
+
* AvatarFallback component that displays when the image fails to load.
|
|
374
|
+
* Typically shows the user's initials or a placeholder icon.
|
|
375
|
+
*/
|
|
376
|
+
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
377
|
+
|
|
378
|
+
type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
|
|
379
|
+
type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
|
|
380
|
+
type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
|
|
381
|
+
|
|
382
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
383
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
384
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
385
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
386
|
+
|
|
387
|
+
declare const badgeVariants: (props?: ({
|
|
388
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
389
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
390
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
391
|
+
|
|
392
|
+
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
393
|
+
/**
|
|
394
|
+
* The content to display inside the badge
|
|
395
|
+
*/
|
|
396
|
+
children: React.ReactNode;
|
|
397
|
+
/**
|
|
398
|
+
* Optional icon to display before the badge content
|
|
399
|
+
*/
|
|
400
|
+
icon?: React.ReactNode;
|
|
401
|
+
/**
|
|
402
|
+
* Optional icon to display after the badge content
|
|
403
|
+
*/
|
|
404
|
+
iconAfter?: React.ReactNode;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Badge component for displaying status, counts, or labels.
|
|
409
|
+
* Supports various variants, sizes, and optional icons.
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* ```tsx
|
|
413
|
+
* <Badge variant="success">Active</Badge>
|
|
414
|
+
* <Badge variant="warning" icon={<AlertIcon />}>Warning</Badge>
|
|
415
|
+
* <Badge variant="info" size="lg" iconAfter={<ArrowIcon />}>New</Badge>
|
|
416
|
+
* ```
|
|
417
|
+
*/
|
|
418
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Props interface for the Form component.
|
|
422
|
+
* Extends react-hook-form's FormProvider props.
|
|
423
|
+
*/
|
|
424
|
+
interface FormProps<TFieldValues extends FieldValues = FieldValues> {
|
|
425
|
+
/**
|
|
426
|
+
* The form context value
|
|
427
|
+
*/
|
|
428
|
+
context: React$1.Context<TFieldValues>;
|
|
429
|
+
/**
|
|
430
|
+
* The form children
|
|
431
|
+
*/
|
|
432
|
+
children: React$1.ReactNode;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Props interface for the FormField component.
|
|
436
|
+
* Extends react-hook-form's Controller props.
|
|
437
|
+
*/
|
|
438
|
+
interface FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends ControllerProps<TFieldValues, TName> {
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Props interface for the FormItem component.
|
|
442
|
+
* Extends HTML div attributes.
|
|
443
|
+
*/
|
|
444
|
+
interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Props interface for the FormLabel component.
|
|
448
|
+
* Extends Radix UI Label props.
|
|
449
|
+
*/
|
|
450
|
+
interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Props interface for the FormControl component.
|
|
454
|
+
* Extends Radix UI Slot props.
|
|
455
|
+
*/
|
|
456
|
+
interface FormControlProps extends React$1.ComponentPropsWithoutRef<typeof Slot> {
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Props interface for the FormDescription component.
|
|
460
|
+
* Extends HTML paragraph attributes.
|
|
461
|
+
*/
|
|
462
|
+
interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Props interface for the FormMessage component.
|
|
466
|
+
* Extends HTML paragraph attributes.
|
|
467
|
+
*/
|
|
468
|
+
interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
469
|
+
/**
|
|
470
|
+
* The message content
|
|
471
|
+
*/
|
|
472
|
+
children?: React$1.ReactNode;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Context value type for form field context
|
|
476
|
+
*/
|
|
477
|
+
type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
478
|
+
name: TName;
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* Context value type for form item context
|
|
482
|
+
*/
|
|
483
|
+
type FormItemContextValue = {
|
|
484
|
+
id: string;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Form component that provides form context to all child components.
|
|
489
|
+
* Built on top of react-hook-form's FormProvider.
|
|
490
|
+
*/
|
|
491
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
492
|
+
/**
|
|
493
|
+
* FormField component that wraps react-hook-form's Controller component.
|
|
494
|
+
* Provides form field context to child components.
|
|
495
|
+
*/
|
|
496
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: FormFieldProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
497
|
+
/**
|
|
498
|
+
* Hook to access form field context and state.
|
|
499
|
+
* Must be used within a FormField component.
|
|
500
|
+
*/
|
|
501
|
+
declare const useFormField: () => {
|
|
502
|
+
invalid: boolean;
|
|
503
|
+
isDirty: boolean;
|
|
504
|
+
isTouched: boolean;
|
|
505
|
+
isValidating: boolean;
|
|
506
|
+
error?: react_hook_form.FieldError;
|
|
507
|
+
id: string;
|
|
508
|
+
name: string;
|
|
509
|
+
formItemId: string;
|
|
510
|
+
formDescriptionId: string;
|
|
511
|
+
formMessageId: string;
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* FormItem component that provides spacing and layout for form fields.
|
|
515
|
+
*/
|
|
516
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
517
|
+
/**
|
|
518
|
+
* FormLabel component that provides accessible labels for form fields.
|
|
519
|
+
*/
|
|
520
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
521
|
+
/**
|
|
522
|
+
* FormControl component that provides accessible form controls.
|
|
523
|
+
*/
|
|
524
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<FormControlProps & React$1.RefAttributes<HTMLElement>>;
|
|
525
|
+
/**
|
|
526
|
+
* FormDescription component that provides additional context for form fields.
|
|
527
|
+
*/
|
|
528
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
529
|
+
/**
|
|
530
|
+
* FormMessage component that displays error messages for form fields.
|
|
531
|
+
*/
|
|
532
|
+
declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
311
533
|
|
|
312
534
|
/**
|
|
313
535
|
* Card is a flexible container component that can be used to group related content and actions.
|
|
@@ -345,46 +567,189 @@ declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProp
|
|
|
345
567
|
* The main card container component.
|
|
346
568
|
* Provides the base styling for the card including border, shadow, and rounded corners.
|
|
347
569
|
*/
|
|
348
|
-
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
570
|
+
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
349
571
|
/**
|
|
350
572
|
* Header section of the card.
|
|
351
573
|
* Typically contains the card title and description.
|
|
352
574
|
* Includes padding and spacing for consistent layout.
|
|
353
575
|
*/
|
|
354
|
-
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
576
|
+
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
355
577
|
/**
|
|
356
578
|
* Title component for the card.
|
|
357
579
|
* Should be used within CardHeader.
|
|
358
580
|
* Provides consistent typography styling for card titles.
|
|
359
581
|
*/
|
|
360
|
-
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
582
|
+
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
361
583
|
/**
|
|
362
584
|
* Description component for the card.
|
|
363
585
|
* Should be used within CardHeader.
|
|
364
586
|
* Provides consistent typography styling for card descriptions.
|
|
365
587
|
*/
|
|
366
|
-
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
588
|
+
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
367
589
|
/**
|
|
368
590
|
* Main content section of the card.
|
|
369
591
|
* Includes padding and removes top padding to maintain consistent spacing with the header.
|
|
370
592
|
*/
|
|
371
|
-
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
593
|
+
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
372
594
|
/**
|
|
373
595
|
* Footer section of the card.
|
|
374
596
|
* Typically contains action buttons or additional information.
|
|
375
597
|
* Includes padding and removes top padding to maintain consistent spacing with the content.
|
|
376
598
|
*/
|
|
377
|
-
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
599
|
+
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
600
|
+
|
|
601
|
+
declare const navigationMenuTriggerStyle: (props?: ({
|
|
602
|
+
variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
|
|
603
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
604
|
+
|
|
605
|
+
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
606
|
+
/**
|
|
607
|
+
* The content of the navigation menu
|
|
608
|
+
*/
|
|
609
|
+
children: React.ReactNode;
|
|
610
|
+
/**
|
|
611
|
+
* Optional className for the root element
|
|
612
|
+
*/
|
|
613
|
+
className?: string;
|
|
614
|
+
}
|
|
615
|
+
interface NavigationMenuListProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List> {
|
|
616
|
+
/**
|
|
617
|
+
* Optional className for the list element
|
|
618
|
+
*/
|
|
619
|
+
className?: string;
|
|
620
|
+
}
|
|
621
|
+
interface NavigationMenuItemProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Item> {
|
|
622
|
+
/**
|
|
623
|
+
* Optional className for the item element
|
|
624
|
+
*/
|
|
625
|
+
className?: string;
|
|
626
|
+
}
|
|
627
|
+
interface NavigationMenuTriggerProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>, VariantProps<typeof navigationMenuTriggerStyle> {
|
|
628
|
+
/**
|
|
629
|
+
* Optional className for the trigger element
|
|
630
|
+
*/
|
|
631
|
+
className?: string;
|
|
632
|
+
}
|
|
633
|
+
interface NavigationMenuContentProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content> {
|
|
634
|
+
/**
|
|
635
|
+
* Optional className for the content element
|
|
636
|
+
*/
|
|
637
|
+
className?: string;
|
|
638
|
+
}
|
|
639
|
+
interface NavigationMenuLinkProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Link> {
|
|
640
|
+
/**
|
|
641
|
+
* Optional className for the link element
|
|
642
|
+
*/
|
|
643
|
+
className?: string;
|
|
644
|
+
}
|
|
645
|
+
interface NavigationMenuViewportProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport> {
|
|
646
|
+
/**
|
|
647
|
+
* Optional className for the viewport element
|
|
648
|
+
*/
|
|
649
|
+
className?: string;
|
|
650
|
+
}
|
|
651
|
+
interface NavigationMenuIndicatorProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator> {
|
|
652
|
+
/**
|
|
653
|
+
* Optional className for the indicator element
|
|
654
|
+
*/
|
|
655
|
+
className?: string;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* NavigationMenu component for creating accessible navigation menus with dropdowns.
|
|
660
|
+
* Built on top of Radix UI's NavigationMenu primitive.
|
|
661
|
+
*
|
|
662
|
+
* @example
|
|
663
|
+
* ```tsx
|
|
664
|
+
* <NavigationMenu>
|
|
665
|
+
* <NavigationMenuList>
|
|
666
|
+
* <NavigationMenuItem>
|
|
667
|
+
* <NavigationMenuTrigger>Getting Started</NavigationMenuTrigger>
|
|
668
|
+
* <NavigationMenuContent>
|
|
669
|
+
* <ul className="grid gap-3 p-4 md:w-[400px] lg:w-[500px]">
|
|
670
|
+
* <li className="row-span-3">
|
|
671
|
+
* <NavigationMenuLink asChild>
|
|
672
|
+
* <a className="flex h-full w-full select-none flex-col justify-end rounded-md bg-gradient-to-b from-muted/50 to-muted p-6 no-underline outline-none focus:shadow-md">
|
|
673
|
+
* <div className="mb-2 mt-4 text-lg font-medium">shadcn/ui</div>
|
|
674
|
+
* <p className="text-sm leading-tight text-muted-foreground">
|
|
675
|
+
* Beautifully designed components built with Radix UI and Tailwind CSS.
|
|
676
|
+
* </p>
|
|
677
|
+
* </a>
|
|
678
|
+
* </NavigationMenuLink>
|
|
679
|
+
* </li>
|
|
680
|
+
* </ul>
|
|
681
|
+
* </NavigationMenuContent>
|
|
682
|
+
* </NavigationMenuItem>
|
|
683
|
+
* </NavigationMenuList>
|
|
684
|
+
* </NavigationMenu>
|
|
685
|
+
* ```
|
|
686
|
+
*/
|
|
687
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<NavigationMenuProps & React$1.RefAttributes<HTMLElement>>;
|
|
688
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
689
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
690
|
+
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
691
|
+
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
692
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
693
|
+
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
694
|
+
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
695
|
+
|
|
696
|
+
interface RHFTextFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends Omit<React$1.ComponentProps<typeof Input>, "name"> {
|
|
697
|
+
/** The name of the field in the form */
|
|
698
|
+
name: TName;
|
|
699
|
+
/** Optional label for the field */
|
|
700
|
+
label?: string;
|
|
701
|
+
/** Optional description text below the field */
|
|
702
|
+
description?: string;
|
|
703
|
+
/** Optional warning text to display */
|
|
704
|
+
warningText?: string;
|
|
705
|
+
/** Whether the field is required */
|
|
706
|
+
required?: boolean;
|
|
707
|
+
/** Whether the field is disabled */
|
|
708
|
+
disabled?: boolean;
|
|
709
|
+
/** Whether the field is read-only */
|
|
710
|
+
readOnly?: boolean;
|
|
711
|
+
/** The type of input (text, number, email, etc.) */
|
|
712
|
+
type?: React$1.HTMLInputTypeAttribute;
|
|
713
|
+
/** Optional placeholder text */
|
|
714
|
+
placeholder?: string;
|
|
715
|
+
/** Optional aria-label for accessibility */
|
|
716
|
+
"aria-label"?: string;
|
|
717
|
+
/** Optional aria-describedby for accessibility */
|
|
718
|
+
"aria-describedby"?: string;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* A text field component that integrates with React Hook Form.
|
|
723
|
+
* Provides form validation, error handling, and accessibility features.
|
|
724
|
+
*
|
|
725
|
+
* @example
|
|
726
|
+
* ```tsx
|
|
727
|
+
* <RHFTextField
|
|
728
|
+
* name="email"
|
|
729
|
+
* label="Email"
|
|
730
|
+
* type="email"
|
|
731
|
+
* required
|
|
732
|
+
* rules={{
|
|
733
|
+
* required: "Email is required",
|
|
734
|
+
* pattern: {
|
|
735
|
+
* value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
|
|
736
|
+
* message: "Invalid email address"
|
|
737
|
+
* }
|
|
738
|
+
* }}
|
|
739
|
+
* />
|
|
740
|
+
* ```
|
|
741
|
+
*/
|
|
742
|
+
declare function RHFTextField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, type, warningText, required, disabled, readOnly, placeholder, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, onBlur, ...other }: RHFTextFieldProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
378
743
|
|
|
379
744
|
declare const Drawer: {
|
|
380
|
-
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
745
|
+
({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
381
746
|
displayName: string;
|
|
382
747
|
};
|
|
383
748
|
/**
|
|
384
749
|
* The trigger element that opens the drawer.
|
|
385
750
|
* Should be used with the `asChild` prop to wrap your own trigger element.
|
|
386
751
|
*/
|
|
387
|
-
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
752
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
388
753
|
/**
|
|
389
754
|
* Portal component that renders the drawer content outside the DOM hierarchy.
|
|
390
755
|
* This ensures proper stacking context and accessibility.
|
|
@@ -394,23 +759,23 @@ declare const DrawerPortal: typeof vaul.Portal;
|
|
|
394
759
|
* Close button component for the drawer.
|
|
395
760
|
* Should be used with the `asChild` prop to wrap your own close button.
|
|
396
761
|
*/
|
|
397
|
-
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
762
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
398
763
|
/**
|
|
399
764
|
* Overlay component that appears behind the drawer.
|
|
400
765
|
* Provides a semi-transparent backdrop and handles click-outside behavior.
|
|
401
766
|
*/
|
|
402
|
-
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
767
|
+
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
403
768
|
/**
|
|
404
769
|
* The main content container for the drawer.
|
|
405
770
|
* Includes the handle bar at the top and manages the slide-up animation.
|
|
406
771
|
*/
|
|
407
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
772
|
+
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
408
773
|
/**
|
|
409
774
|
* Header section of the drawer.
|
|
410
775
|
* Typically contains the title and description.
|
|
411
776
|
*/
|
|
412
777
|
declare const DrawerHeader: {
|
|
413
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
778
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
414
779
|
displayName: string;
|
|
415
780
|
};
|
|
416
781
|
/**
|
|
@@ -418,20 +783,439 @@ declare const DrawerHeader: {
|
|
|
418
783
|
* Typically contains action buttons.
|
|
419
784
|
*/
|
|
420
785
|
declare const DrawerFooter: {
|
|
421
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
786
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
422
787
|
displayName: string;
|
|
423
788
|
};
|
|
424
789
|
/**
|
|
425
790
|
* Title component for the drawer.
|
|
426
791
|
* Should be used within DrawerHeader.
|
|
427
792
|
*/
|
|
428
|
-
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
793
|
+
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
429
794
|
/**
|
|
430
795
|
* Description component for the drawer.
|
|
431
796
|
* Should be used within DrawerHeader.
|
|
432
797
|
*/
|
|
433
|
-
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
798
|
+
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
799
|
+
|
|
800
|
+
type SidebarContextProps$1 = {
|
|
801
|
+
state: "expanded" | "collapsed";
|
|
802
|
+
open: boolean;
|
|
803
|
+
setOpen: (open: boolean) => void;
|
|
804
|
+
openMobile: boolean;
|
|
805
|
+
setOpenMobile: (open: boolean) => void;
|
|
806
|
+
isMobile: boolean;
|
|
807
|
+
toggleSidebar: () => void;
|
|
808
|
+
};
|
|
809
|
+
declare function useSidebar(): SidebarContextProps$1;
|
|
810
|
+
declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
811
|
+
defaultOpen?: boolean;
|
|
812
|
+
open?: boolean;
|
|
813
|
+
onOpenChange?: (open: boolean) => void;
|
|
814
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
815
|
+
declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
816
|
+
side?: "left" | "right";
|
|
817
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
818
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
819
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
820
|
+
declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
821
|
+
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
822
|
+
declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
823
|
+
declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
824
|
+
declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
825
|
+
declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
826
|
+
declare const SidebarSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
827
|
+
declare const SidebarContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
828
|
+
declare const SidebarGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
829
|
+
declare const SidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
830
|
+
asChild?: boolean;
|
|
831
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
832
|
+
declare const SidebarGroupAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
833
|
+
asChild?: boolean;
|
|
834
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
835
|
+
declare const SidebarGroupContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
836
|
+
declare const SidebarMenu: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
837
|
+
declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
838
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
839
|
+
variant?: "default" | "outline" | null | undefined;
|
|
840
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
841
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
842
|
+
declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
843
|
+
asChild?: boolean;
|
|
844
|
+
isActive?: boolean;
|
|
845
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
846
|
+
} & VariantProps<(props?: ({
|
|
847
|
+
variant?: "default" | "outline" | null | undefined;
|
|
848
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
849
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
850
|
+
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
851
|
+
asChild?: boolean;
|
|
852
|
+
showOnHover?: boolean;
|
|
853
|
+
}, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
854
|
+
declare const SidebarMenuBadge: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
855
|
+
declare const SidebarMenuSkeleton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
856
|
+
showIcon?: boolean;
|
|
857
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
858
|
+
declare const SidebarMenuSub: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
859
|
+
declare const SidebarMenuSubItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
860
|
+
declare const SidebarMenuSubButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLAnchorElement> & React$1.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
861
|
+
asChild?: boolean;
|
|
862
|
+
size?: "sm" | "md";
|
|
863
|
+
isActive?: boolean;
|
|
864
|
+
}, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
865
|
+
|
|
866
|
+
type SidebarContextProps = {
|
|
867
|
+
state: "expanded" | "collapsed";
|
|
868
|
+
open: boolean;
|
|
869
|
+
setOpen: (open: boolean) => void;
|
|
870
|
+
openMobile: boolean;
|
|
871
|
+
setOpenMobile: (open: boolean) => void;
|
|
872
|
+
isMobile: boolean;
|
|
873
|
+
toggleSidebar: () => void;
|
|
874
|
+
};
|
|
875
|
+
type SidebarProps = React$1.ComponentProps<"div"> & {
|
|
876
|
+
side?: "left" | "right";
|
|
877
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
878
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
879
|
+
};
|
|
880
|
+
type SidebarProviderProps = React$1.ComponentProps<"div"> & {
|
|
881
|
+
defaultOpen?: boolean;
|
|
882
|
+
open?: boolean;
|
|
883
|
+
onOpenChange?: (open: boolean) => void;
|
|
884
|
+
};
|
|
885
|
+
type SidebarMenuButtonProps = React$1.ComponentProps<"button"> & {
|
|
886
|
+
asChild?: boolean;
|
|
887
|
+
isActive?: boolean;
|
|
888
|
+
tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
|
|
889
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>;
|
|
890
|
+
type SidebarMenuActionProps = React$1.ComponentProps<"button"> & {
|
|
891
|
+
asChild?: boolean;
|
|
892
|
+
showOnHover?: boolean;
|
|
893
|
+
};
|
|
894
|
+
type SidebarMenuSubButtonProps = React$1.ComponentProps<"a"> & {
|
|
895
|
+
asChild?: boolean;
|
|
896
|
+
size?: "sm" | "md";
|
|
897
|
+
isActive?: boolean;
|
|
898
|
+
};
|
|
899
|
+
type SidebarMenuSkeletonProps = React$1.ComponentProps<"div"> & {
|
|
900
|
+
showIcon?: boolean;
|
|
901
|
+
};
|
|
902
|
+
type SidebarGroupLabelProps = React$1.ComponentProps<"div"> & {
|
|
903
|
+
asChild?: boolean;
|
|
904
|
+
};
|
|
905
|
+
type SidebarGroupActionProps = React$1.ComponentProps<"button"> & {
|
|
906
|
+
asChild?: boolean;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
910
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
911
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
912
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
913
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
914
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
915
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
916
|
+
inset?: boolean;
|
|
917
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
918
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
919
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
920
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
921
|
+
inset?: boolean;
|
|
922
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
923
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
924
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
925
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
926
|
+
inset?: boolean;
|
|
927
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
928
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
929
|
+
declare const DropdownMenuShortcut: {
|
|
930
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
931
|
+
displayName: string;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
935
|
+
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
936
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
937
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
938
|
+
|
|
939
|
+
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
940
|
+
interface DropdownMenuProps {
|
|
941
|
+
/**
|
|
942
|
+
* The content of the dropdown menu
|
|
943
|
+
*/
|
|
944
|
+
children: React.ReactNode;
|
|
945
|
+
/**
|
|
946
|
+
* The open state of the dropdown menu
|
|
947
|
+
*/
|
|
948
|
+
open?: boolean;
|
|
949
|
+
/**
|
|
950
|
+
* The default open state of the dropdown menu
|
|
951
|
+
*/
|
|
952
|
+
defaultOpen?: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* The controlled open state of the dropdown menu
|
|
955
|
+
*/
|
|
956
|
+
onOpenChange?: (open: boolean) => void;
|
|
957
|
+
/**
|
|
958
|
+
* The modal state of the dropdown menu
|
|
959
|
+
*/
|
|
960
|
+
modal?: boolean;
|
|
961
|
+
}
|
|
962
|
+
interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
|
|
963
|
+
/**
|
|
964
|
+
* The content of the trigger
|
|
965
|
+
*/
|
|
966
|
+
children: React.ReactNode;
|
|
967
|
+
/**
|
|
968
|
+
* The variant of the trigger
|
|
969
|
+
*/
|
|
970
|
+
variant?: DropdownMenuTriggerVariants["variant"];
|
|
971
|
+
/**
|
|
972
|
+
* The size of the trigger
|
|
973
|
+
*/
|
|
974
|
+
size?: DropdownMenuTriggerVariants["size"];
|
|
975
|
+
}
|
|
976
|
+
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
977
|
+
/**
|
|
978
|
+
* The content of the dropdown menu
|
|
979
|
+
*/
|
|
980
|
+
children: React.ReactNode;
|
|
981
|
+
/**
|
|
982
|
+
* The side offset of the dropdown menu
|
|
983
|
+
*/
|
|
984
|
+
sideOffset?: number;
|
|
985
|
+
/**
|
|
986
|
+
* The align offset of the dropdown menu
|
|
987
|
+
*/
|
|
988
|
+
alignOffset?: number;
|
|
989
|
+
/**
|
|
990
|
+
* The side of the dropdown menu
|
|
991
|
+
*/
|
|
992
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
993
|
+
/**
|
|
994
|
+
* The alignment of the dropdown menu
|
|
995
|
+
*/
|
|
996
|
+
align?: "start" | "center" | "end";
|
|
997
|
+
/**
|
|
998
|
+
* The collision padding of the dropdown menu
|
|
999
|
+
*/
|
|
1000
|
+
collisionPadding?: number;
|
|
1001
|
+
/**
|
|
1002
|
+
* The collision boundary of the dropdown menu
|
|
1003
|
+
*/
|
|
1004
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1005
|
+
/**
|
|
1006
|
+
* The arrow padding of the dropdown menu
|
|
1007
|
+
*/
|
|
1008
|
+
arrowPadding?: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* The sticky state of the dropdown menu
|
|
1011
|
+
*/
|
|
1012
|
+
sticky?: "partial" | "always";
|
|
1013
|
+
/**
|
|
1014
|
+
* The hide when detached state of the dropdown menu
|
|
1015
|
+
*/
|
|
1016
|
+
hideWhenDetached?: boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
* The update position strategy of the dropdown menu
|
|
1019
|
+
*/
|
|
1020
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1021
|
+
/**
|
|
1022
|
+
* The force mount state of the dropdown menu
|
|
1023
|
+
*/
|
|
1024
|
+
forceMount?: boolean;
|
|
1025
|
+
/**
|
|
1026
|
+
* The container of the dropdown menu
|
|
1027
|
+
*/
|
|
1028
|
+
container?: HTMLElement;
|
|
1029
|
+
}
|
|
1030
|
+
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1031
|
+
/**
|
|
1032
|
+
* The content of the dropdown menu item
|
|
1033
|
+
*/
|
|
1034
|
+
children: React.ReactNode;
|
|
1035
|
+
/**
|
|
1036
|
+
* The inset state of the dropdown menu item
|
|
1037
|
+
*/
|
|
1038
|
+
inset?: boolean;
|
|
1039
|
+
/**
|
|
1040
|
+
* The disabled state of the dropdown menu item
|
|
1041
|
+
*/
|
|
1042
|
+
disabled?: boolean;
|
|
1043
|
+
/**
|
|
1044
|
+
* The selected state of the dropdown menu item
|
|
1045
|
+
*/
|
|
1046
|
+
selected?: boolean;
|
|
1047
|
+
}
|
|
1048
|
+
interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1049
|
+
/**
|
|
1050
|
+
* The content of the dropdown menu checkbox item
|
|
1051
|
+
*/
|
|
1052
|
+
children: React.ReactNode;
|
|
1053
|
+
/**
|
|
1054
|
+
* The checked state of the dropdown menu checkbox item
|
|
1055
|
+
*/
|
|
1056
|
+
checked?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* The disabled state of the dropdown menu checkbox item
|
|
1059
|
+
*/
|
|
1060
|
+
disabled?: boolean;
|
|
1061
|
+
/**
|
|
1062
|
+
* The on checked change handler of the dropdown menu checkbox item
|
|
1063
|
+
*/
|
|
1064
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1065
|
+
}
|
|
1066
|
+
interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1067
|
+
/**
|
|
1068
|
+
* The content of the dropdown menu radio item
|
|
1069
|
+
*/
|
|
1070
|
+
children: React.ReactNode;
|
|
1071
|
+
/**
|
|
1072
|
+
* The value of the dropdown menu radio item
|
|
1073
|
+
*/
|
|
1074
|
+
value: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* The disabled state of the dropdown menu radio item
|
|
1077
|
+
*/
|
|
1078
|
+
disabled?: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1081
|
+
/**
|
|
1082
|
+
* The content of the dropdown menu label
|
|
1083
|
+
*/
|
|
1084
|
+
children: React.ReactNode;
|
|
1085
|
+
/**
|
|
1086
|
+
* The inset state of the dropdown menu label
|
|
1087
|
+
*/
|
|
1088
|
+
inset?: boolean;
|
|
1089
|
+
}
|
|
1090
|
+
interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1091
|
+
}
|
|
1092
|
+
interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1093
|
+
/**
|
|
1094
|
+
* The content of the dropdown menu shortcut
|
|
1095
|
+
*/
|
|
1096
|
+
children: React.ReactNode;
|
|
1097
|
+
}
|
|
1098
|
+
interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1099
|
+
/**
|
|
1100
|
+
* The content of the dropdown menu group
|
|
1101
|
+
*/
|
|
1102
|
+
children: React.ReactNode;
|
|
1103
|
+
}
|
|
1104
|
+
interface DropdownMenuPortalProps {
|
|
1105
|
+
/**
|
|
1106
|
+
* The content of the dropdown menu portal
|
|
1107
|
+
*/
|
|
1108
|
+
children: React.ReactNode;
|
|
1109
|
+
/**
|
|
1110
|
+
* The container of the dropdown menu portal
|
|
1111
|
+
*/
|
|
1112
|
+
container?: HTMLElement;
|
|
1113
|
+
}
|
|
1114
|
+
interface DropdownMenuSubProps {
|
|
1115
|
+
/**
|
|
1116
|
+
* The content of the dropdown menu sub
|
|
1117
|
+
*/
|
|
1118
|
+
children: React.ReactNode;
|
|
1119
|
+
/**
|
|
1120
|
+
* The open state of the dropdown menu sub
|
|
1121
|
+
*/
|
|
1122
|
+
open?: boolean;
|
|
1123
|
+
/**
|
|
1124
|
+
* The default open state of the dropdown menu sub
|
|
1125
|
+
*/
|
|
1126
|
+
defaultOpen?: boolean;
|
|
1127
|
+
/**
|
|
1128
|
+
* The controlled open state of the dropdown menu sub
|
|
1129
|
+
*/
|
|
1130
|
+
onOpenChange?: (open: boolean) => void;
|
|
1131
|
+
}
|
|
1132
|
+
interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1133
|
+
/**
|
|
1134
|
+
* The content of the dropdown menu sub content
|
|
1135
|
+
*/
|
|
1136
|
+
children: React.ReactNode;
|
|
1137
|
+
/**
|
|
1138
|
+
* The side offset of the dropdown menu sub content
|
|
1139
|
+
*/
|
|
1140
|
+
sideOffset?: number;
|
|
1141
|
+
/**
|
|
1142
|
+
* The align offset of the dropdown menu sub content
|
|
1143
|
+
*/
|
|
1144
|
+
alignOffset?: number;
|
|
1145
|
+
/**
|
|
1146
|
+
* The side of the dropdown menu sub content
|
|
1147
|
+
*/
|
|
1148
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1149
|
+
/**
|
|
1150
|
+
* The alignment of the dropdown menu sub content
|
|
1151
|
+
*/
|
|
1152
|
+
align?: "start" | "center" | "end";
|
|
1153
|
+
/**
|
|
1154
|
+
* The collision padding of the dropdown menu sub content
|
|
1155
|
+
*/
|
|
1156
|
+
collisionPadding?: number;
|
|
1157
|
+
/**
|
|
1158
|
+
* The collision boundary of the dropdown menu sub content
|
|
1159
|
+
*/
|
|
1160
|
+
collisionBoundary?: Element | null | Array<Element | null>;
|
|
1161
|
+
/**
|
|
1162
|
+
* The arrow padding of the dropdown menu sub content
|
|
1163
|
+
*/
|
|
1164
|
+
arrowPadding?: number;
|
|
1165
|
+
/**
|
|
1166
|
+
* The sticky state of the dropdown menu sub content
|
|
1167
|
+
*/
|
|
1168
|
+
sticky?: "partial" | "always";
|
|
1169
|
+
/**
|
|
1170
|
+
* The hide when detached state of the dropdown menu sub content
|
|
1171
|
+
*/
|
|
1172
|
+
hideWhenDetached?: boolean;
|
|
1173
|
+
/**
|
|
1174
|
+
* The update position strategy of the dropdown menu sub content
|
|
1175
|
+
*/
|
|
1176
|
+
updatePositionStrategy?: "optimized" | "always";
|
|
1177
|
+
/**
|
|
1178
|
+
* The force mount state of the dropdown menu sub content
|
|
1179
|
+
*/
|
|
1180
|
+
forceMount?: boolean;
|
|
1181
|
+
/**
|
|
1182
|
+
* The container of the dropdown menu sub content
|
|
1183
|
+
*/
|
|
1184
|
+
container?: HTMLElement;
|
|
1185
|
+
}
|
|
1186
|
+
interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1187
|
+
/**
|
|
1188
|
+
* The content of the dropdown menu sub trigger
|
|
1189
|
+
*/
|
|
1190
|
+
children: React.ReactNode;
|
|
1191
|
+
/**
|
|
1192
|
+
* The inset state of the dropdown menu sub trigger
|
|
1193
|
+
*/
|
|
1194
|
+
inset?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* The disabled state of the dropdown menu sub trigger
|
|
1197
|
+
*/
|
|
1198
|
+
disabled?: boolean;
|
|
1199
|
+
}
|
|
1200
|
+
interface DropdownMenuRadioGroupProps {
|
|
1201
|
+
/**
|
|
1202
|
+
* The content of the dropdown menu radio group
|
|
1203
|
+
*/
|
|
1204
|
+
children: React.ReactNode;
|
|
1205
|
+
/**
|
|
1206
|
+
* The value of the dropdown menu radio group
|
|
1207
|
+
*/
|
|
1208
|
+
value?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* The default value of the dropdown menu radio group
|
|
1211
|
+
*/
|
|
1212
|
+
defaultValue?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* The controlled value of the dropdown menu radio group
|
|
1215
|
+
*/
|
|
1216
|
+
onValueChange?: (value: string) => void;
|
|
1217
|
+
}
|
|
434
1218
|
|
|
435
1219
|
declare function cn(...inputs: ClassValue[]): string;
|
|
436
1220
|
|
|
437
|
-
export { Box, type BoxProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, Stack, type StackProps, TextField, buttonVariants, cn, textFieldVariants };
|
|
1221
|
+
export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, type FormFieldContextValue, type FormFieldProps, FormItem, type FormItemContextValue, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Input, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, RHFTextField, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, type SidebarGroupActionProps, SidebarGroupContent, SidebarGroupLabel, type SidebarGroupLabelProps, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, type SidebarMenuActionProps, SidebarMenuBadge, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, SidebarMenuSkeleton, type SidebarMenuSkeletonProps, SidebarMenuSub, SidebarMenuSubButton, type SidebarMenuSubButtonProps, SidebarMenuSubItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Stack, type StackProps, TextField, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, sidebarMenuButtonVariants, textFieldVariants, useFormField, useSidebar };
|