@me1a/ui 2.0.2 → 2.0.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 CHANGED
@@ -6,13 +6,18 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
6
6
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
7
7
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
8
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';
9
13
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
10
- import { FieldValues, FieldPath } from 'react-hook-form';
11
14
  import * as vaul from 'vaul';
12
15
  import { Drawer as Drawer$1 } from 'vaul';
13
16
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
14
17
  import { ClassValue } from 'clsx';
15
18
 
19
+ type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
20
+ type ButtonSize = "default" | "sm" | "lg" | "icon";
16
21
  /**
17
22
  * Props interface for the Button component.
18
23
  * Extends the native button HTML attributes and adds support for variants and asChild prop.
@@ -23,8 +28,8 @@ import { ClassValue } from 'clsx';
23
28
  * @extends {VariantProps<typeof buttonVariants>}
24
29
  *
25
30
  * @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
26
- * @property {string} [variant] - The visual style variant of the button.
27
- * @property {string} [size] - The size variant of the button.
31
+ * @property {ButtonVariant} [variant] - The visual style variant of the button.
32
+ * @property {ButtonSize} [size] - The size variant of the button.
28
33
  * @property {string} [className] - Additional CSS classes to apply to the button.
29
34
  * @property {React.ReactNode} [startIcon] - Icon to display before the button text.
30
35
  * @property {React.ReactNode} [endIcon] - Icon to display after the button text.
@@ -34,6 +39,8 @@ import { ClassValue } from 'clsx';
34
39
  */
35
40
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
36
41
  asChild?: boolean;
42
+ variant?: ButtonVariant;
43
+ size?: ButtonSize;
37
44
  startIcon?: React$1.ReactNode;
38
45
  endIcon?: React$1.ReactNode;
39
46
  loading?: boolean;
@@ -191,10 +198,15 @@ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & Reac
191
198
  *
192
199
  * // With custom className
193
200
  * <Box className="bg-primary text-white p-4">Styled content</Box>
201
+ *
202
+ * // With custom dimensions
203
+ * <Box width="100px" height="200px">Fixed size content</Box>
204
+ * <Box width="50%" height="auto">Responsive content</Box>
194
205
  * ```
195
206
  */
196
207
 
197
208
  type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
209
+ type DimensionValue = string | number;
198
210
  interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
199
211
  /**
200
212
  * The HTML element to render the Box as.
@@ -203,6 +215,16 @@ interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
203
215
  * @default "div"
204
216
  */
205
217
  as?: BoxComponent;
218
+ /**
219
+ * The width of the Box component.
220
+ * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
221
+ */
222
+ width?: DimensionValue;
223
+ /**
224
+ * The height of the Box component.
225
+ * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
226
+ */
227
+ height?: DimensionValue;
206
228
  }
207
229
  declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
208
230
 
@@ -239,6 +261,11 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
239
261
  * <div>Center</div>
240
262
  * <div>Right</div>
241
263
  * </Stack>
264
+ *
265
+ * // Stack with custom dimensions
266
+ * <Stack width="100%" height="200px">
267
+ * <div>Full width, fixed height stack</div>
268
+ * </Stack>
242
269
  * ```
243
270
  */
244
271
 
@@ -300,6 +327,20 @@ interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
300
327
  * @default undefined
301
328
  */
302
329
  align?: "start" | "end" | "center" | "stretch" | "baseline";
330
+ /**
331
+ * The width of the stack container.
332
+ * Can be any valid CSS width value (e.g., "100%", "200px", "50vw").
333
+ *
334
+ * @default undefined
335
+ */
336
+ width?: string;
337
+ /**
338
+ * The height of the stack container.
339
+ * Can be any valid CSS height value (e.g., "100%", "200px", "50vh").
340
+ *
341
+ * @default undefined
342
+ */
343
+ height?: string;
303
344
  }
304
345
  declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
305
346
 
@@ -330,7 +371,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
330
371
  declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
331
372
  declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
332
373
  declare const sheetVariants: (props?: ({
333
- side?: "top" | "bottom" | "left" | "right" | null | undefined;
374
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
334
375
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
335
376
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
336
377
  }
@@ -414,6 +455,132 @@ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<
414
455
  */
415
456
  declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
416
457
 
458
+ /**
459
+ * Props interface for the Form component.
460
+ * Extends react-hook-form's FormProvider props.
461
+ */
462
+ interface FormProps<TFieldValues extends FieldValues = FieldValues> {
463
+ /**
464
+ * The form context value
465
+ */
466
+ context: React$1.Context<TFieldValues>;
467
+ /**
468
+ * The form children
469
+ */
470
+ children: React$1.ReactNode;
471
+ }
472
+ /**
473
+ * Props interface for the FormField component.
474
+ * Extends react-hook-form's Controller props.
475
+ */
476
+ interface FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends ControllerProps<TFieldValues, TName> {
477
+ }
478
+ /**
479
+ * Props interface for the FormItem component.
480
+ * Extends HTML div attributes.
481
+ */
482
+ interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
483
+ }
484
+ /**
485
+ * Props interface for the FormLabel component.
486
+ * Extends Radix UI Label props.
487
+ */
488
+ interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
489
+ }
490
+ /**
491
+ * Props interface for the FormControl component.
492
+ * Extends Radix UI Slot props.
493
+ */
494
+ interface FormControlProps extends React$1.ComponentPropsWithoutRef<typeof Slot> {
495
+ }
496
+ /**
497
+ * Props interface for the FormDescription component.
498
+ * Extends HTML paragraph attributes.
499
+ */
500
+ interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
501
+ }
502
+ /**
503
+ * Props interface for the FormMessage component.
504
+ * Extends HTML paragraph attributes.
505
+ */
506
+ interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
507
+ /**
508
+ * The message content
509
+ */
510
+ children?: React$1.ReactNode;
511
+ }
512
+ /**
513
+ * Context value type for form field context
514
+ */
515
+ type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
516
+ name: TName;
517
+ };
518
+ /**
519
+ * Context value type for form item context
520
+ */
521
+ type FormItemContextValue = {
522
+ id: string;
523
+ };
524
+
525
+ /**
526
+ * Form component that provides form context to all child components.
527
+ * Built on top of react-hook-form's FormProvider.
528
+ */
529
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
530
+ /**
531
+ * FormField component that wraps react-hook-form's Controller component.
532
+ * Provides form field context to child components.
533
+ */
534
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: FormFieldProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
535
+ /**
536
+ * Hook to access form field context and state.
537
+ * Must be used within a FormField component.
538
+ */
539
+ declare const useFormField: () => {
540
+ invalid: boolean;
541
+ isDirty: boolean;
542
+ isTouched: boolean;
543
+ isValidating: boolean;
544
+ error?: react_hook_form.FieldError;
545
+ id: string;
546
+ name: string;
547
+ formItemId: string;
548
+ formDescriptionId: string;
549
+ formMessageId: string;
550
+ };
551
+ /**
552
+ * FormItem component that provides spacing and layout for form fields.
553
+ */
554
+ declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
555
+ /**
556
+ * FormLabel component that provides accessible labels for form fields.
557
+ */
558
+ declare const FormLabel: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
559
+ /**
560
+ * FormControl component that provides accessible form controls.
561
+ */
562
+ declare const FormControl: React$1.ForwardRefExoticComponent<FormControlProps & React$1.RefAttributes<HTMLElement>>;
563
+ /**
564
+ * FormDescription component that provides additional context for form fields.
565
+ */
566
+ declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
567
+ /**
568
+ * FormMessage component that displays error messages for form fields.
569
+ */
570
+ declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
571
+
572
+ declare const typographyVariants: (props?: ({
573
+ variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
574
+ align?: "center" | "left" | "right" | "justify" | null | undefined;
575
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
576
+ interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
577
+ as?: React$1.ElementType;
578
+ }
579
+ declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
580
+
581
+ type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
582
+ type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
583
+
417
584
  /**
418
585
  * Card is a flexible container component that can be used to group related content and actions.
419
586
  * It provides a consistent visual style with a subtle border, shadow, and rounded corners.
@@ -1099,6 +1266,8 @@ interface DropdownMenuRadioGroupProps {
1099
1266
  onValueChange?: (value: string) => void;
1100
1267
  }
1101
1268
 
1269
+ declare function useIsMobile(): boolean;
1270
+
1102
1271
  declare function cn(...inputs: ClassValue[]): string;
1103
1272
 
1104
- 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, 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, useSidebar };
1273
+ 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, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants, cn, sidebarMenuButtonVariants, textFieldVariants, typographyVariants, useFormField, useIsMobile, useSidebar };
package/dist/index.d.ts CHANGED
@@ -6,13 +6,18 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
6
6
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
7
7
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
8
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';
9
13
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
10
- import { FieldValues, FieldPath } from 'react-hook-form';
11
14
  import * as vaul from 'vaul';
12
15
  import { Drawer as Drawer$1 } from 'vaul';
13
16
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
14
17
  import { ClassValue } from 'clsx';
15
18
 
19
+ type ButtonVariant = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link";
20
+ type ButtonSize = "default" | "sm" | "lg" | "icon";
16
21
  /**
17
22
  * Props interface for the Button component.
18
23
  * Extends the native button HTML attributes and adds support for variants and asChild prop.
@@ -23,8 +28,8 @@ import { ClassValue } from 'clsx';
23
28
  * @extends {VariantProps<typeof buttonVariants>}
24
29
  *
25
30
  * @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
26
- * @property {string} [variant] - The visual style variant of the button.
27
- * @property {string} [size] - The size variant of the button.
31
+ * @property {ButtonVariant} [variant] - The visual style variant of the button.
32
+ * @property {ButtonSize} [size] - The size variant of the button.
28
33
  * @property {string} [className] - Additional CSS classes to apply to the button.
29
34
  * @property {React.ReactNode} [startIcon] - Icon to display before the button text.
30
35
  * @property {React.ReactNode} [endIcon] - Icon to display after the button text.
@@ -34,6 +39,8 @@ import { ClassValue } from 'clsx';
34
39
  */
35
40
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
36
41
  asChild?: boolean;
42
+ variant?: ButtonVariant;
43
+ size?: ButtonSize;
37
44
  startIcon?: React$1.ReactNode;
38
45
  endIcon?: React$1.ReactNode;
39
46
  loading?: boolean;
@@ -191,10 +198,15 @@ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & Reac
191
198
  *
192
199
  * // With custom className
193
200
  * <Box className="bg-primary text-white p-4">Styled content</Box>
201
+ *
202
+ * // With custom dimensions
203
+ * <Box width="100px" height="200px">Fixed size content</Box>
204
+ * <Box width="50%" height="auto">Responsive content</Box>
194
205
  * ```
195
206
  */
196
207
 
197
208
  type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
209
+ type DimensionValue = string | number;
198
210
  interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
199
211
  /**
200
212
  * The HTML element to render the Box as.
@@ -203,6 +215,16 @@ interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
203
215
  * @default "div"
204
216
  */
205
217
  as?: BoxComponent;
218
+ /**
219
+ * The width of the Box component.
220
+ * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
221
+ */
222
+ width?: DimensionValue;
223
+ /**
224
+ * The height of the Box component.
225
+ * Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
226
+ */
227
+ height?: DimensionValue;
206
228
  }
207
229
  declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
208
230
 
@@ -239,6 +261,11 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
239
261
  * <div>Center</div>
240
262
  * <div>Right</div>
241
263
  * </Stack>
264
+ *
265
+ * // Stack with custom dimensions
266
+ * <Stack width="100%" height="200px">
267
+ * <div>Full width, fixed height stack</div>
268
+ * </Stack>
242
269
  * ```
243
270
  */
244
271
 
@@ -300,6 +327,20 @@ interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
300
327
  * @default undefined
301
328
  */
302
329
  align?: "start" | "end" | "center" | "stretch" | "baseline";
330
+ /**
331
+ * The width of the stack container.
332
+ * Can be any valid CSS width value (e.g., "100%", "200px", "50vw").
333
+ *
334
+ * @default undefined
335
+ */
336
+ width?: string;
337
+ /**
338
+ * The height of the stack container.
339
+ * Can be any valid CSS height value (e.g., "100%", "200px", "50vh").
340
+ *
341
+ * @default undefined
342
+ */
343
+ height?: string;
303
344
  }
304
345
  declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
305
346
 
@@ -330,7 +371,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
330
371
  declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
331
372
  declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
332
373
  declare const sheetVariants: (props?: ({
333
- side?: "top" | "bottom" | "left" | "right" | null | undefined;
374
+ side?: "left" | "right" | "bottom" | "top" | null | undefined;
334
375
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
335
376
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
336
377
  }
@@ -414,6 +455,132 @@ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<
414
455
  */
415
456
  declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLDivElement>>;
416
457
 
458
+ /**
459
+ * Props interface for the Form component.
460
+ * Extends react-hook-form's FormProvider props.
461
+ */
462
+ interface FormProps<TFieldValues extends FieldValues = FieldValues> {
463
+ /**
464
+ * The form context value
465
+ */
466
+ context: React$1.Context<TFieldValues>;
467
+ /**
468
+ * The form children
469
+ */
470
+ children: React$1.ReactNode;
471
+ }
472
+ /**
473
+ * Props interface for the FormField component.
474
+ * Extends react-hook-form's Controller props.
475
+ */
476
+ interface FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> extends ControllerProps<TFieldValues, TName> {
477
+ }
478
+ /**
479
+ * Props interface for the FormItem component.
480
+ * Extends HTML div attributes.
481
+ */
482
+ interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
483
+ }
484
+ /**
485
+ * Props interface for the FormLabel component.
486
+ * Extends Radix UI Label props.
487
+ */
488
+ interface FormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
489
+ }
490
+ /**
491
+ * Props interface for the FormControl component.
492
+ * Extends Radix UI Slot props.
493
+ */
494
+ interface FormControlProps extends React$1.ComponentPropsWithoutRef<typeof Slot> {
495
+ }
496
+ /**
497
+ * Props interface for the FormDescription component.
498
+ * Extends HTML paragraph attributes.
499
+ */
500
+ interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
501
+ }
502
+ /**
503
+ * Props interface for the FormMessage component.
504
+ * Extends HTML paragraph attributes.
505
+ */
506
+ interface FormMessageProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
507
+ /**
508
+ * The message content
509
+ */
510
+ children?: React$1.ReactNode;
511
+ }
512
+ /**
513
+ * Context value type for form field context
514
+ */
515
+ type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
516
+ name: TName;
517
+ };
518
+ /**
519
+ * Context value type for form item context
520
+ */
521
+ type FormItemContextValue = {
522
+ id: string;
523
+ };
524
+
525
+ /**
526
+ * Form component that provides form context to all child components.
527
+ * Built on top of react-hook-form's FormProvider.
528
+ */
529
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
530
+ /**
531
+ * FormField component that wraps react-hook-form's Controller component.
532
+ * Provides form field context to child components.
533
+ */
534
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: FormFieldProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
535
+ /**
536
+ * Hook to access form field context and state.
537
+ * Must be used within a FormField component.
538
+ */
539
+ declare const useFormField: () => {
540
+ invalid: boolean;
541
+ isDirty: boolean;
542
+ isTouched: boolean;
543
+ isValidating: boolean;
544
+ error?: react_hook_form.FieldError;
545
+ id: string;
546
+ name: string;
547
+ formItemId: string;
548
+ formDescriptionId: string;
549
+ formMessageId: string;
550
+ };
551
+ /**
552
+ * FormItem component that provides spacing and layout for form fields.
553
+ */
554
+ declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
555
+ /**
556
+ * FormLabel component that provides accessible labels for form fields.
557
+ */
558
+ declare const FormLabel: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
559
+ /**
560
+ * FormControl component that provides accessible form controls.
561
+ */
562
+ declare const FormControl: React$1.ForwardRefExoticComponent<FormControlProps & React$1.RefAttributes<HTMLElement>>;
563
+ /**
564
+ * FormDescription component that provides additional context for form fields.
565
+ */
566
+ declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
567
+ /**
568
+ * FormMessage component that displays error messages for form fields.
569
+ */
570
+ declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
571
+
572
+ declare const typographyVariants: (props?: ({
573
+ variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
574
+ align?: "center" | "left" | "right" | "justify" | null | undefined;
575
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
576
+ interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
577
+ as?: React$1.ElementType;
578
+ }
579
+ declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
580
+
581
+ type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
582
+ type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
583
+
417
584
  /**
418
585
  * Card is a flexible container component that can be used to group related content and actions.
419
586
  * It provides a consistent visual style with a subtle border, shadow, and rounded corners.
@@ -1099,6 +1266,8 @@ interface DropdownMenuRadioGroupProps {
1099
1266
  onValueChange?: (value: string) => void;
1100
1267
  }
1101
1268
 
1269
+ declare function useIsMobile(): boolean;
1270
+
1102
1271
  declare function cn(...inputs: ClassValue[]): string;
1103
1272
 
1104
- 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, 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, useSidebar };
1273
+ 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, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants, cn, sidebarMenuButtonVariants, textFieldVariants, typographyVariants, useFormField, useIsMobile, useSidebar };