@me1a/ui 2.0.3 → 2.0.5
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 +61 -13
- package/dist/index.d.ts +61 -13
- 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 +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
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';
|
|
@@ -26,8 +26,8 @@ import { ClassValue } from 'clsx';
|
|
|
26
26
|
* @extends {VariantProps<typeof buttonVariants>}
|
|
27
27
|
*
|
|
28
28
|
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
29
|
-
* @property {
|
|
30
|
-
* @property {
|
|
29
|
+
* @property {ButtonVariant} [variant] - The visual style variant of the button.
|
|
30
|
+
* @property {ButtonSize} [size] - The size variant of the button.
|
|
31
31
|
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
32
32
|
* @property {React.ReactNode} [startIcon] - Icon to display before the button text.
|
|
33
33
|
* @property {React.ReactNode} [endIcon] - Icon to display after the button text.
|
|
@@ -57,7 +57,7 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
|
|
|
57
57
|
declare const buttonVariants: (props?: ({
|
|
58
58
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
59
59
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
60
|
-
} &
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
61
|
/**
|
|
62
62
|
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
63
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
@@ -125,7 +125,7 @@ interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEleme
|
|
|
125
125
|
declare const textFieldVariants: (props?: ({
|
|
126
126
|
variant?: "default" | "error" | null | undefined;
|
|
127
127
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
128
|
-
} &
|
|
128
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
129
129
|
/**
|
|
130
130
|
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
131
131
|
* Built on top of shadcn/ui's Input component.
|
|
@@ -194,10 +194,15 @@ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & Reac
|
|
|
194
194
|
*
|
|
195
195
|
* // With custom className
|
|
196
196
|
* <Box className="bg-primary text-white p-4">Styled content</Box>
|
|
197
|
+
*
|
|
198
|
+
* // With custom dimensions
|
|
199
|
+
* <Box width="100px" height="200px">Fixed size content</Box>
|
|
200
|
+
* <Box width="50%" height="auto">Responsive content</Box>
|
|
197
201
|
* ```
|
|
198
202
|
*/
|
|
199
203
|
|
|
200
204
|
type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
|
|
205
|
+
type DimensionValue = string | number;
|
|
201
206
|
interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
202
207
|
/**
|
|
203
208
|
* The HTML element to render the Box as.
|
|
@@ -206,6 +211,16 @@ interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
206
211
|
* @default "div"
|
|
207
212
|
*/
|
|
208
213
|
as?: BoxComponent;
|
|
214
|
+
/**
|
|
215
|
+
* The width of the Box component.
|
|
216
|
+
* Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
|
|
217
|
+
*/
|
|
218
|
+
width?: DimensionValue;
|
|
219
|
+
/**
|
|
220
|
+
* The height of the Box component.
|
|
221
|
+
* Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
|
|
222
|
+
*/
|
|
223
|
+
height?: DimensionValue;
|
|
209
224
|
}
|
|
210
225
|
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
226
|
|
|
@@ -242,6 +257,11 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
|
|
|
242
257
|
* <div>Center</div>
|
|
243
258
|
* <div>Right</div>
|
|
244
259
|
* </Stack>
|
|
260
|
+
*
|
|
261
|
+
* // Stack with custom dimensions
|
|
262
|
+
* <Stack width="100%" height="200px">
|
|
263
|
+
* <div>Full width, fixed height stack</div>
|
|
264
|
+
* </Stack>
|
|
245
265
|
* ```
|
|
246
266
|
*/
|
|
247
267
|
|
|
@@ -303,6 +323,20 @@ interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
303
323
|
* @default undefined
|
|
304
324
|
*/
|
|
305
325
|
align?: "start" | "end" | "center" | "stretch" | "baseline";
|
|
326
|
+
/**
|
|
327
|
+
* The width of the stack container.
|
|
328
|
+
* Can be any valid CSS width value (e.g., "100%", "200px", "50vw").
|
|
329
|
+
*
|
|
330
|
+
* @default undefined
|
|
331
|
+
*/
|
|
332
|
+
width?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The height of the stack container.
|
|
335
|
+
* Can be any valid CSS height value (e.g., "100%", "200px", "50vh").
|
|
336
|
+
*
|
|
337
|
+
* @default undefined
|
|
338
|
+
*/
|
|
339
|
+
height?: string;
|
|
306
340
|
}
|
|
307
341
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
308
342
|
|
|
@@ -333,8 +367,8 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
333
367
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
334
368
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
335
369
|
declare const sheetVariants: (props?: ({
|
|
336
|
-
side?: "
|
|
337
|
-
} &
|
|
370
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
371
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
338
372
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
339
373
|
}
|
|
340
374
|
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -387,7 +421,7 @@ declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrim
|
|
|
387
421
|
declare const badgeVariants: (props?: ({
|
|
388
422
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
389
423
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
390
|
-
} &
|
|
424
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
391
425
|
|
|
392
426
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
393
427
|
/**
|
|
@@ -531,6 +565,18 @@ declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescription
|
|
|
531
565
|
*/
|
|
532
566
|
declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
533
567
|
|
|
568
|
+
declare const typographyVariants: (props?: ({
|
|
569
|
+
variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
|
|
570
|
+
align?: "center" | "left" | "right" | "justify" | null | undefined;
|
|
571
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
572
|
+
interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
573
|
+
as?: React$1.ElementType;
|
|
574
|
+
}
|
|
575
|
+
declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
|
|
576
|
+
|
|
577
|
+
type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
|
|
578
|
+
type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
|
|
579
|
+
|
|
534
580
|
/**
|
|
535
581
|
* Card is a flexible container component that can be used to group related content and actions.
|
|
536
582
|
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
@@ -600,7 +646,7 @@ declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttribut
|
|
|
600
646
|
|
|
601
647
|
declare const navigationMenuTriggerStyle: (props?: ({
|
|
602
648
|
variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
|
|
603
|
-
} &
|
|
649
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
604
650
|
|
|
605
651
|
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
606
652
|
/**
|
|
@@ -838,7 +884,7 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.De
|
|
|
838
884
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
839
885
|
variant?: "default" | "outline" | null | undefined;
|
|
840
886
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
841
|
-
} &
|
|
887
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
842
888
|
declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
843
889
|
asChild?: boolean;
|
|
844
890
|
isActive?: boolean;
|
|
@@ -846,7 +892,7 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
846
892
|
} & VariantProps<(props?: ({
|
|
847
893
|
variant?: "default" | "outline" | null | undefined;
|
|
848
894
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
849
|
-
} &
|
|
895
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
850
896
|
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
851
897
|
asChild?: boolean;
|
|
852
898
|
showOnHover?: boolean;
|
|
@@ -934,7 +980,7 @@ declare const DropdownMenuShortcut: {
|
|
|
934
980
|
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
935
981
|
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
936
982
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
937
|
-
} &
|
|
983
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
938
984
|
|
|
939
985
|
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
940
986
|
interface DropdownMenuProps {
|
|
@@ -1216,6 +1262,8 @@ interface DropdownMenuRadioGroupProps {
|
|
|
1216
1262
|
onValueChange?: (value: string) => void;
|
|
1217
1263
|
}
|
|
1218
1264
|
|
|
1265
|
+
declare function useIsMobile(): boolean;
|
|
1266
|
+
|
|
1219
1267
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1220
1268
|
|
|
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 };
|
|
1269
|
+
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
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';
|
|
@@ -26,8 +26,8 @@ import { ClassValue } from 'clsx';
|
|
|
26
26
|
* @extends {VariantProps<typeof buttonVariants>}
|
|
27
27
|
*
|
|
28
28
|
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
29
|
-
* @property {
|
|
30
|
-
* @property {
|
|
29
|
+
* @property {ButtonVariant} [variant] - The visual style variant of the button.
|
|
30
|
+
* @property {ButtonSize} [size] - The size variant of the button.
|
|
31
31
|
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
32
32
|
* @property {React.ReactNode} [startIcon] - Icon to display before the button text.
|
|
33
33
|
* @property {React.ReactNode} [endIcon] - Icon to display after the button text.
|
|
@@ -57,7 +57,7 @@ interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, V
|
|
|
57
57
|
declare const buttonVariants: (props?: ({
|
|
58
58
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
59
59
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
60
|
-
} &
|
|
60
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
61
61
|
/**
|
|
62
62
|
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
63
63
|
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
@@ -125,7 +125,7 @@ interface TextFieldProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEleme
|
|
|
125
125
|
declare const textFieldVariants: (props?: ({
|
|
126
126
|
variant?: "default" | "error" | null | undefined;
|
|
127
127
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
128
|
-
} &
|
|
128
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
129
129
|
/**
|
|
130
130
|
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
131
131
|
* Built on top of shadcn/ui's Input component.
|
|
@@ -194,10 +194,15 @@ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & Reac
|
|
|
194
194
|
*
|
|
195
195
|
* // With custom className
|
|
196
196
|
* <Box className="bg-primary text-white p-4">Styled content</Box>
|
|
197
|
+
*
|
|
198
|
+
* // With custom dimensions
|
|
199
|
+
* <Box width="100px" height="200px">Fixed size content</Box>
|
|
200
|
+
* <Box width="50%" height="auto">Responsive content</Box>
|
|
197
201
|
* ```
|
|
198
202
|
*/
|
|
199
203
|
|
|
200
204
|
type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
|
|
205
|
+
type DimensionValue = string | number;
|
|
201
206
|
interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
202
207
|
/**
|
|
203
208
|
* The HTML element to render the Box as.
|
|
@@ -206,6 +211,16 @@ interface BoxProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
206
211
|
* @default "div"
|
|
207
212
|
*/
|
|
208
213
|
as?: BoxComponent;
|
|
214
|
+
/**
|
|
215
|
+
* The width of the Box component.
|
|
216
|
+
* Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
|
|
217
|
+
*/
|
|
218
|
+
width?: DimensionValue;
|
|
219
|
+
/**
|
|
220
|
+
* The height of the Box component.
|
|
221
|
+
* Can be a number (interpreted as pixels) or a string (e.g., "100%", "50px", "10rem").
|
|
222
|
+
*/
|
|
223
|
+
height?: DimensionValue;
|
|
209
224
|
}
|
|
210
225
|
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
226
|
|
|
@@ -242,6 +257,11 @@ declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttri
|
|
|
242
257
|
* <div>Center</div>
|
|
243
258
|
* <div>Right</div>
|
|
244
259
|
* </Stack>
|
|
260
|
+
*
|
|
261
|
+
* // Stack with custom dimensions
|
|
262
|
+
* <Stack width="100%" height="200px">
|
|
263
|
+
* <div>Full width, fixed height stack</div>
|
|
264
|
+
* </Stack>
|
|
245
265
|
* ```
|
|
246
266
|
*/
|
|
247
267
|
|
|
@@ -303,6 +323,20 @@ interface StackProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
303
323
|
* @default undefined
|
|
304
324
|
*/
|
|
305
325
|
align?: "start" | "end" | "center" | "stretch" | "baseline";
|
|
326
|
+
/**
|
|
327
|
+
* The width of the stack container.
|
|
328
|
+
* Can be any valid CSS width value (e.g., "100%", "200px", "50vw").
|
|
329
|
+
*
|
|
330
|
+
* @default undefined
|
|
331
|
+
*/
|
|
332
|
+
width?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The height of the stack container.
|
|
335
|
+
* Can be any valid CSS height value (e.g., "100%", "200px", "50vh").
|
|
336
|
+
*
|
|
337
|
+
* @default undefined
|
|
338
|
+
*/
|
|
339
|
+
height?: string;
|
|
306
340
|
}
|
|
307
341
|
declare const Stack: React$1.ForwardRefExoticComponent<StackProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
308
342
|
|
|
@@ -333,8 +367,8 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
333
367
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
334
368
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
335
369
|
declare const sheetVariants: (props?: ({
|
|
336
|
-
side?: "
|
|
337
|
-
} &
|
|
370
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
371
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
338
372
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
339
373
|
}
|
|
340
374
|
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -387,7 +421,7 @@ declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrim
|
|
|
387
421
|
declare const badgeVariants: (props?: ({
|
|
388
422
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
389
423
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
390
|
-
} &
|
|
424
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
391
425
|
|
|
392
426
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
393
427
|
/**
|
|
@@ -531,6 +565,18 @@ declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescription
|
|
|
531
565
|
*/
|
|
532
566
|
declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
533
567
|
|
|
568
|
+
declare const typographyVariants: (props?: ({
|
|
569
|
+
variant?: "list" | "small" | "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | null | undefined;
|
|
570
|
+
align?: "center" | "left" | "right" | "justify" | null | undefined;
|
|
571
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
572
|
+
interface TypographyProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
|
|
573
|
+
as?: React$1.ElementType;
|
|
574
|
+
}
|
|
575
|
+
declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & React$1.RefAttributes<HTMLElement>>;
|
|
576
|
+
|
|
577
|
+
type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
|
|
578
|
+
type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
|
|
579
|
+
|
|
534
580
|
/**
|
|
535
581
|
* Card is a flexible container component that can be used to group related content and actions.
|
|
536
582
|
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
@@ -600,7 +646,7 @@ declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttribut
|
|
|
600
646
|
|
|
601
647
|
declare const navigationMenuTriggerStyle: (props?: ({
|
|
602
648
|
variant?: "default" | "ghost" | "link" | "mobile" | null | undefined;
|
|
603
|
-
} &
|
|
649
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
604
650
|
|
|
605
651
|
interface NavigationMenuProps extends React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root> {
|
|
606
652
|
/**
|
|
@@ -838,7 +884,7 @@ declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.De
|
|
|
838
884
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
839
885
|
variant?: "default" | "outline" | null | undefined;
|
|
840
886
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
841
|
-
} &
|
|
887
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
842
888
|
declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
843
889
|
asChild?: boolean;
|
|
844
890
|
isActive?: boolean;
|
|
@@ -846,7 +892,7 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
|
|
|
846
892
|
} & VariantProps<(props?: ({
|
|
847
893
|
variant?: "default" | "outline" | null | undefined;
|
|
848
894
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
849
|
-
} &
|
|
895
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
850
896
|
declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
851
897
|
asChild?: boolean;
|
|
852
898
|
showOnHover?: boolean;
|
|
@@ -934,7 +980,7 @@ declare const DropdownMenuShortcut: {
|
|
|
934
980
|
declare const dropdownMenuTriggerStyle: (props?: ({
|
|
935
981
|
variant?: "default" | "outline" | "ghost" | "link" | null | undefined;
|
|
936
982
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
937
|
-
} &
|
|
983
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
938
984
|
|
|
939
985
|
type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
|
|
940
986
|
interface DropdownMenuProps {
|
|
@@ -1216,6 +1262,8 @@ interface DropdownMenuRadioGroupProps {
|
|
|
1216
1262
|
onValueChange?: (value: string) => void;
|
|
1217
1263
|
}
|
|
1218
1264
|
|
|
1265
|
+
declare function useIsMobile(): boolean;
|
|
1266
|
+
|
|
1219
1267
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1220
1268
|
|
|
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 };
|
|
1269
|
+
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 };
|