@webstacks/ui 0.4.0 → 0.4.2
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.cjs +589 -436
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +73 -9
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +58 -26
- package/dist/index.d.ts +58 -26
- package/dist/index.js +588 -437
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -189,27 +189,27 @@ declare const boxVariants: (props?: ({
|
|
|
189
189
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
190
190
|
type SpacingValue = "none" | "condensed" | "normal" | "spacious" | "extra-spacious";
|
|
191
191
|
type MarginValue = SpacingValue | "auto";
|
|
192
|
-
interface ResponsiveProp$
|
|
192
|
+
interface ResponsiveProp$4<T> {
|
|
193
193
|
narrow?: T;
|
|
194
194
|
regular?: T;
|
|
195
195
|
wide?: T;
|
|
196
196
|
}
|
|
197
197
|
interface BoxProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, Omit<VariantProps<typeof boxVariants>, "padding" | "paddingX" | "paddingY" | "paddingTop" | "paddingBottom" | "paddingStart" | "paddingEnd" | "margin" | "marginX" | "marginY" | "marginTop" | "marginBottom" | "marginStart" | "marginEnd"> {
|
|
198
198
|
as?: React$1.ElementType;
|
|
199
|
-
padding?: SpacingValue | ResponsiveProp$
|
|
200
|
-
paddingX?: SpacingValue | ResponsiveProp$
|
|
201
|
-
paddingY?: SpacingValue | ResponsiveProp$
|
|
202
|
-
paddingTop?: SpacingValue | ResponsiveProp$
|
|
203
|
-
paddingBottom?: SpacingValue | ResponsiveProp$
|
|
204
|
-
paddingStart?: SpacingValue | ResponsiveProp$
|
|
205
|
-
paddingEnd?: SpacingValue | ResponsiveProp$
|
|
206
|
-
margin?: MarginValue | ResponsiveProp$
|
|
207
|
-
marginX?: MarginValue | ResponsiveProp$
|
|
208
|
-
marginY?: MarginValue | ResponsiveProp$
|
|
209
|
-
marginTop?: MarginValue | ResponsiveProp$
|
|
210
|
-
marginBottom?: MarginValue | ResponsiveProp$
|
|
211
|
-
marginStart?: MarginValue | ResponsiveProp$
|
|
212
|
-
marginEnd?: MarginValue | ResponsiveProp$
|
|
199
|
+
padding?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
200
|
+
paddingX?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
201
|
+
paddingY?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
202
|
+
paddingTop?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
203
|
+
paddingBottom?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
204
|
+
paddingStart?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
205
|
+
paddingEnd?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
206
|
+
margin?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
207
|
+
marginX?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
208
|
+
marginY?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
209
|
+
marginTop?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
210
|
+
marginBottom?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
211
|
+
marginStart?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
212
|
+
marginEnd?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
213
213
|
}
|
|
214
214
|
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLElement>>;
|
|
215
215
|
|
|
@@ -268,15 +268,15 @@ declare const headingVariants: (props?: ({
|
|
|
268
268
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
269
269
|
type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
270
270
|
type HeadingSize = "display" | 1 | 2 | 3 | 4 | 5 | 6 | "subhead-large" | "subhead-medium";
|
|
271
|
-
interface ResponsiveProp$
|
|
271
|
+
interface ResponsiveProp$3<T> {
|
|
272
272
|
narrow?: T;
|
|
273
273
|
regular?: T;
|
|
274
274
|
wide?: T;
|
|
275
275
|
}
|
|
276
276
|
interface HeadingProps extends Omit<React$1.HTMLAttributes<HTMLHeadingElement>, "color">, Omit<VariantProps<typeof headingVariants>, "size" | "weight"> {
|
|
277
277
|
as?: HeadingTag;
|
|
278
|
-
size?: HeadingSize | ResponsiveProp$
|
|
279
|
-
weight?: VariantProps<typeof headingVariants>["weight"] | ResponsiveProp$
|
|
278
|
+
size?: HeadingSize | ResponsiveProp$3<HeadingSize>;
|
|
279
|
+
weight?: VariantProps<typeof headingVariants>["weight"] | ResponsiveProp$3<NonNullable<VariantProps<typeof headingVariants>["weight"]>>;
|
|
280
280
|
}
|
|
281
281
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
282
282
|
|
|
@@ -287,23 +287,55 @@ declare const textVariants: (props?: ({
|
|
|
287
287
|
align?: "center" | "start" | "end" | null | undefined;
|
|
288
288
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
289
289
|
type TextSize = 100 | 200 | 300 | 400 | 500 | 600 | 700;
|
|
290
|
-
interface ResponsiveProp$
|
|
290
|
+
interface ResponsiveProp$2<T> {
|
|
291
291
|
narrow?: T;
|
|
292
292
|
regular?: T;
|
|
293
293
|
wide?: T;
|
|
294
294
|
}
|
|
295
295
|
interface TextProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, Omit<VariantProps<typeof textVariants>, "size" | "weight"> {
|
|
296
296
|
as?: React$1.ElementType;
|
|
297
|
-
size?: TextSize | ResponsiveProp$
|
|
298
|
-
weight?: VariantProps<typeof textVariants>["weight"] | ResponsiveProp$
|
|
297
|
+
size?: TextSize | ResponsiveProp$2<TextSize>;
|
|
298
|
+
weight?: VariantProps<typeof textVariants>["weight"] | ResponsiveProp$2<NonNullable<VariantProps<typeof textVariants>["weight"]>>;
|
|
299
299
|
}
|
|
300
300
|
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLElement>>;
|
|
301
301
|
|
|
302
|
+
type ResponsiveProp$1<T> = T | {
|
|
303
|
+
narrow?: T;
|
|
304
|
+
regular?: T;
|
|
305
|
+
wide?: T;
|
|
306
|
+
};
|
|
307
|
+
declare const sectionVariants: (props?: ({
|
|
308
|
+
rounded?: boolean | null | undefined;
|
|
309
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
310
|
+
interface SectionProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof sectionVariants> {
|
|
311
|
+
as?: "section" | "div";
|
|
312
|
+
paddingBlockStart?: ResponsiveProp$1<"none" | "condensed" | "normal" | "spacious">;
|
|
313
|
+
paddingBlockEnd?: ResponsiveProp$1<"none" | "condensed" | "normal" | "spacious">;
|
|
314
|
+
backgroundColor?: ResponsiveProp$1<"default" | "subtle" | "inset"> | string;
|
|
315
|
+
backgroundImageSrc?: string | string[];
|
|
316
|
+
backgroundImageSize?: string;
|
|
317
|
+
backgroundImagePosition?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Optional section title rendered as an h2 heading inside the container.
|
|
320
|
+
*/
|
|
321
|
+
sectionTitle?: React$1.ReactNode;
|
|
322
|
+
/**
|
|
323
|
+
* Additional class names for the inner container.
|
|
324
|
+
*/
|
|
325
|
+
containerClassName?: string;
|
|
326
|
+
/**
|
|
327
|
+
* When true, the inner container is full-width (no max-width constraint).
|
|
328
|
+
* @default false
|
|
329
|
+
*/
|
|
330
|
+
fullWidth?: boolean;
|
|
331
|
+
}
|
|
332
|
+
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
333
|
+
|
|
302
334
|
declare const stackVariants: (props?: ({
|
|
303
335
|
direction?: "horizontal" | "vertical" | null | undefined;
|
|
304
336
|
gap?: "normal" | "none" | "condensed" | "spacious" | "extra-spacious" | null | undefined;
|
|
305
337
|
align?: "center" | "start" | "end" | "baseline" | "stretch" | null | undefined;
|
|
306
|
-
justify?: "center" | "start" | "end" | "space-
|
|
338
|
+
justify?: "center" | "start" | "end" | "space-around" | "space-between" | "space-evenly" | null | undefined;
|
|
307
339
|
wrap?: boolean | null | undefined;
|
|
308
340
|
padding?: "normal" | "none" | "condensed" | "spacious" | "extra-spacious" | null | undefined;
|
|
309
341
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -610,7 +642,7 @@ declare const HoverCardContent: React$1.ForwardRefExoticComponent<Omit<HoverCard
|
|
|
610
642
|
|
|
611
643
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
612
644
|
|
|
613
|
-
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "
|
|
645
|
+
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
614
646
|
value?: string;
|
|
615
647
|
onChange?: (newValue: string) => unknown;
|
|
616
648
|
maxLength: number;
|
|
@@ -623,7 +655,7 @@ declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.Inp
|
|
|
623
655
|
} & {
|
|
624
656
|
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
|
625
657
|
children?: never;
|
|
626
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "
|
|
658
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
627
659
|
value?: string;
|
|
628
660
|
onChange?: (newValue: string) => unknown;
|
|
629
661
|
maxLength: number;
|
|
@@ -745,7 +777,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
745
777
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
746
778
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
747
779
|
declare const sheetVariants: (props?: ({
|
|
748
|
-
side?: "
|
|
780
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
749
781
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
750
782
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
751
783
|
}
|
|
@@ -873,4 +905,4 @@ declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGrou
|
|
|
873
905
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
874
906
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
875
907
|
|
|
876
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, BaseStyles, type BaseStylesProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Grid, GridColumn, type GridColumnProps, type GridProps, Heading, type HeadingProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Toaster$1 as Sonner, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, boxVariants, buttonVariants, cn, gridColumnVariants, gridVariants, headingVariants, navigationMenuTriggerStyle, stackVariants, textVariants, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
908
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, BaseStyles, type BaseStylesProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Grid, GridColumn, type GridColumnProps, type GridProps, Heading, type HeadingProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Section, type SectionProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Toaster$1 as Sonner, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, boxVariants, buttonVariants, cn, gridColumnVariants, gridVariants, headingVariants, navigationMenuTriggerStyle, sectionVariants, stackVariants, textVariants, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -189,27 +189,27 @@ declare const boxVariants: (props?: ({
|
|
|
189
189
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
190
190
|
type SpacingValue = "none" | "condensed" | "normal" | "spacious" | "extra-spacious";
|
|
191
191
|
type MarginValue = SpacingValue | "auto";
|
|
192
|
-
interface ResponsiveProp$
|
|
192
|
+
interface ResponsiveProp$4<T> {
|
|
193
193
|
narrow?: T;
|
|
194
194
|
regular?: T;
|
|
195
195
|
wide?: T;
|
|
196
196
|
}
|
|
197
197
|
interface BoxProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, Omit<VariantProps<typeof boxVariants>, "padding" | "paddingX" | "paddingY" | "paddingTop" | "paddingBottom" | "paddingStart" | "paddingEnd" | "margin" | "marginX" | "marginY" | "marginTop" | "marginBottom" | "marginStart" | "marginEnd"> {
|
|
198
198
|
as?: React$1.ElementType;
|
|
199
|
-
padding?: SpacingValue | ResponsiveProp$
|
|
200
|
-
paddingX?: SpacingValue | ResponsiveProp$
|
|
201
|
-
paddingY?: SpacingValue | ResponsiveProp$
|
|
202
|
-
paddingTop?: SpacingValue | ResponsiveProp$
|
|
203
|
-
paddingBottom?: SpacingValue | ResponsiveProp$
|
|
204
|
-
paddingStart?: SpacingValue | ResponsiveProp$
|
|
205
|
-
paddingEnd?: SpacingValue | ResponsiveProp$
|
|
206
|
-
margin?: MarginValue | ResponsiveProp$
|
|
207
|
-
marginX?: MarginValue | ResponsiveProp$
|
|
208
|
-
marginY?: MarginValue | ResponsiveProp$
|
|
209
|
-
marginTop?: MarginValue | ResponsiveProp$
|
|
210
|
-
marginBottom?: MarginValue | ResponsiveProp$
|
|
211
|
-
marginStart?: MarginValue | ResponsiveProp$
|
|
212
|
-
marginEnd?: MarginValue | ResponsiveProp$
|
|
199
|
+
padding?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
200
|
+
paddingX?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
201
|
+
paddingY?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
202
|
+
paddingTop?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
203
|
+
paddingBottom?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
204
|
+
paddingStart?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
205
|
+
paddingEnd?: SpacingValue | ResponsiveProp$4<SpacingValue>;
|
|
206
|
+
margin?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
207
|
+
marginX?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
208
|
+
marginY?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
209
|
+
marginTop?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
210
|
+
marginBottom?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
211
|
+
marginStart?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
212
|
+
marginEnd?: MarginValue | ResponsiveProp$4<MarginValue>;
|
|
213
213
|
}
|
|
214
214
|
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLElement>>;
|
|
215
215
|
|
|
@@ -268,15 +268,15 @@ declare const headingVariants: (props?: ({
|
|
|
268
268
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
269
269
|
type HeadingTag = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
270
270
|
type HeadingSize = "display" | 1 | 2 | 3 | 4 | 5 | 6 | "subhead-large" | "subhead-medium";
|
|
271
|
-
interface ResponsiveProp$
|
|
271
|
+
interface ResponsiveProp$3<T> {
|
|
272
272
|
narrow?: T;
|
|
273
273
|
regular?: T;
|
|
274
274
|
wide?: T;
|
|
275
275
|
}
|
|
276
276
|
interface HeadingProps extends Omit<React$1.HTMLAttributes<HTMLHeadingElement>, "color">, Omit<VariantProps<typeof headingVariants>, "size" | "weight"> {
|
|
277
277
|
as?: HeadingTag;
|
|
278
|
-
size?: HeadingSize | ResponsiveProp$
|
|
279
|
-
weight?: VariantProps<typeof headingVariants>["weight"] | ResponsiveProp$
|
|
278
|
+
size?: HeadingSize | ResponsiveProp$3<HeadingSize>;
|
|
279
|
+
weight?: VariantProps<typeof headingVariants>["weight"] | ResponsiveProp$3<NonNullable<VariantProps<typeof headingVariants>["weight"]>>;
|
|
280
280
|
}
|
|
281
281
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
282
282
|
|
|
@@ -287,23 +287,55 @@ declare const textVariants: (props?: ({
|
|
|
287
287
|
align?: "center" | "start" | "end" | null | undefined;
|
|
288
288
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
289
289
|
type TextSize = 100 | 200 | 300 | 400 | 500 | 600 | 700;
|
|
290
|
-
interface ResponsiveProp$
|
|
290
|
+
interface ResponsiveProp$2<T> {
|
|
291
291
|
narrow?: T;
|
|
292
292
|
regular?: T;
|
|
293
293
|
wide?: T;
|
|
294
294
|
}
|
|
295
295
|
interface TextProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, Omit<VariantProps<typeof textVariants>, "size" | "weight"> {
|
|
296
296
|
as?: React$1.ElementType;
|
|
297
|
-
size?: TextSize | ResponsiveProp$
|
|
298
|
-
weight?: VariantProps<typeof textVariants>["weight"] | ResponsiveProp$
|
|
297
|
+
size?: TextSize | ResponsiveProp$2<TextSize>;
|
|
298
|
+
weight?: VariantProps<typeof textVariants>["weight"] | ResponsiveProp$2<NonNullable<VariantProps<typeof textVariants>["weight"]>>;
|
|
299
299
|
}
|
|
300
300
|
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<HTMLElement>>;
|
|
301
301
|
|
|
302
|
+
type ResponsiveProp$1<T> = T | {
|
|
303
|
+
narrow?: T;
|
|
304
|
+
regular?: T;
|
|
305
|
+
wide?: T;
|
|
306
|
+
};
|
|
307
|
+
declare const sectionVariants: (props?: ({
|
|
308
|
+
rounded?: boolean | null | undefined;
|
|
309
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
310
|
+
interface SectionProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "color">, VariantProps<typeof sectionVariants> {
|
|
311
|
+
as?: "section" | "div";
|
|
312
|
+
paddingBlockStart?: ResponsiveProp$1<"none" | "condensed" | "normal" | "spacious">;
|
|
313
|
+
paddingBlockEnd?: ResponsiveProp$1<"none" | "condensed" | "normal" | "spacious">;
|
|
314
|
+
backgroundColor?: ResponsiveProp$1<"default" | "subtle" | "inset"> | string;
|
|
315
|
+
backgroundImageSrc?: string | string[];
|
|
316
|
+
backgroundImageSize?: string;
|
|
317
|
+
backgroundImagePosition?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Optional section title rendered as an h2 heading inside the container.
|
|
320
|
+
*/
|
|
321
|
+
sectionTitle?: React$1.ReactNode;
|
|
322
|
+
/**
|
|
323
|
+
* Additional class names for the inner container.
|
|
324
|
+
*/
|
|
325
|
+
containerClassName?: string;
|
|
326
|
+
/**
|
|
327
|
+
* When true, the inner container is full-width (no max-width constraint).
|
|
328
|
+
* @default false
|
|
329
|
+
*/
|
|
330
|
+
fullWidth?: boolean;
|
|
331
|
+
}
|
|
332
|
+
declare const Section: React$1.ForwardRefExoticComponent<SectionProps & React$1.RefAttributes<HTMLElement>>;
|
|
333
|
+
|
|
302
334
|
declare const stackVariants: (props?: ({
|
|
303
335
|
direction?: "horizontal" | "vertical" | null | undefined;
|
|
304
336
|
gap?: "normal" | "none" | "condensed" | "spacious" | "extra-spacious" | null | undefined;
|
|
305
337
|
align?: "center" | "start" | "end" | "baseline" | "stretch" | null | undefined;
|
|
306
|
-
justify?: "center" | "start" | "end" | "space-
|
|
338
|
+
justify?: "center" | "start" | "end" | "space-around" | "space-between" | "space-evenly" | null | undefined;
|
|
307
339
|
wrap?: boolean | null | undefined;
|
|
308
340
|
padding?: "normal" | "none" | "condensed" | "spacious" | "extra-spacious" | null | undefined;
|
|
309
341
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -610,7 +642,7 @@ declare const HoverCardContent: React$1.ForwardRefExoticComponent<Omit<HoverCard
|
|
|
610
642
|
|
|
611
643
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
612
644
|
|
|
613
|
-
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "
|
|
645
|
+
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
614
646
|
value?: string;
|
|
615
647
|
onChange?: (newValue: string) => unknown;
|
|
616
648
|
maxLength: number;
|
|
@@ -623,7 +655,7 @@ declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.Inp
|
|
|
623
655
|
} & {
|
|
624
656
|
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
|
625
657
|
children?: never;
|
|
626
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "
|
|
658
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "containerClassName" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
627
659
|
value?: string;
|
|
628
660
|
onChange?: (newValue: string) => unknown;
|
|
629
661
|
maxLength: number;
|
|
@@ -745,7 +777,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
745
777
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
746
778
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
747
779
|
declare const sheetVariants: (props?: ({
|
|
748
|
-
side?: "
|
|
780
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
749
781
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
750
782
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
751
783
|
}
|
|
@@ -873,4 +905,4 @@ declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGrou
|
|
|
873
905
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
874
906
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
875
907
|
|
|
876
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, BaseStyles, type BaseStylesProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Grid, GridColumn, type GridColumnProps, type GridProps, Heading, type HeadingProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Toaster$1 as Sonner, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, boxVariants, buttonVariants, cn, gridColumnVariants, gridVariants, headingVariants, navigationMenuTriggerStyle, stackVariants, textVariants, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|
|
908
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, BaseStyles, type BaseStylesProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Grid, GridColumn, type GridColumnProps, type GridProps, Heading, type HeadingProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Section, type SectionProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Toaster$1 as Sonner, Stack, type StackProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, boxVariants, buttonVariants, cn, gridColumnVariants, gridVariants, headingVariants, navigationMenuTriggerStyle, sectionVariants, stackVariants, textVariants, toast, toggleVariants, useFormField, useIsMobile, useSidebar, useToast };
|