@mvn-ui/react 0.1.1 → 0.1.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.css +250 -28
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +71 -79
- package/dist/index.d.ts +71 -79
- package/dist/index.js +641 -394
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +638 -396
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -198,7 +198,20 @@ interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextArea
|
|
|
198
198
|
*/
|
|
199
199
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
interface SelectProps {
|
|
202
|
+
children?: React$1.ReactNode;
|
|
203
|
+
value?: string;
|
|
204
|
+
defaultValue?: string;
|
|
205
|
+
onValueChange?: (value: string) => void;
|
|
206
|
+
open?: boolean;
|
|
207
|
+
defaultOpen?: boolean;
|
|
208
|
+
onOpenChange?: (open: boolean) => void;
|
|
209
|
+
dir?: 'ltr' | 'rtl';
|
|
210
|
+
name?: string;
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
required?: boolean;
|
|
213
|
+
}
|
|
214
|
+
declare const Select: React$1.ForwardRefExoticComponent<SelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
202
215
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
203
216
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
204
217
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
@@ -341,8 +354,8 @@ interface ToggleGroupItemData {
|
|
|
341
354
|
disabled?: boolean;
|
|
342
355
|
ariaLabel?: string;
|
|
343
356
|
}
|
|
344
|
-
interface ToggleGroupSingleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>,
|
|
345
|
-
type:
|
|
357
|
+
interface ToggleGroupSingleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'>, VariantProps<typeof toggleGroupVariants> {
|
|
358
|
+
type: 'single';
|
|
346
359
|
value?: string;
|
|
347
360
|
defaultValue?: string;
|
|
348
361
|
onValueChange?: (value: string) => void;
|
|
@@ -350,8 +363,8 @@ interface ToggleGroupSingleProps extends Omit<React$1.ComponentPropsWithoutRef<t
|
|
|
350
363
|
itemClassName?: string;
|
|
351
364
|
renderItem?: (item: ToggleGroupItemData) => React$1.ReactNode;
|
|
352
365
|
}
|
|
353
|
-
interface ToggleGroupMultipleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>,
|
|
354
|
-
type:
|
|
366
|
+
interface ToggleGroupMultipleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'>, VariantProps<typeof toggleGroupVariants> {
|
|
367
|
+
type: 'multiple';
|
|
355
368
|
value?: string[];
|
|
356
369
|
defaultValue?: string[];
|
|
357
370
|
onValueChange?: (value: string[]) => void;
|
|
@@ -550,7 +563,7 @@ interface FormInstance {
|
|
|
550
563
|
}) => void;
|
|
551
564
|
setFieldValue: (name: NamePath, value: any) => void;
|
|
552
565
|
validateFields: (names?: NamePath[]) => Promise<Record<string, any>>;
|
|
553
|
-
submit: () => void
|
|
566
|
+
submit: () => Promise<void>;
|
|
554
567
|
resetFields: (names?: NamePath[]) => void;
|
|
555
568
|
getFieldError: (name: NamePath) => string[];
|
|
556
569
|
getFieldsError: () => FieldError[];
|
|
@@ -585,7 +598,7 @@ interface FormInstance {
|
|
|
585
598
|
unregisterMount?: (id: string) => void;
|
|
586
599
|
}
|
|
587
600
|
|
|
588
|
-
declare function useForm(): FormInstance;
|
|
601
|
+
declare function useForm(name?: string): FormInstance;
|
|
589
602
|
declare function useWatch(name?: NamePath | NamePath[], formInstance?: FormInstance): any;
|
|
590
603
|
|
|
591
604
|
type FormItemVariant = 'outlined' | 'filled' | 'borderless' | 'underlined';
|
|
@@ -1353,13 +1366,15 @@ declare const PaginationEllipsis: {
|
|
|
1353
1366
|
displayName: string;
|
|
1354
1367
|
};
|
|
1355
1368
|
|
|
1356
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement
|
|
1369
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1370
|
+
destroyInactiveTabs?: boolean;
|
|
1371
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1357
1372
|
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1358
1373
|
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1359
1374
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1360
1375
|
interface TabItem {
|
|
1361
1376
|
value: string;
|
|
1362
|
-
label:
|
|
1377
|
+
label: React$1.ReactNode;
|
|
1363
1378
|
content: React$1.ReactNode;
|
|
1364
1379
|
disabled?: boolean;
|
|
1365
1380
|
}
|
|
@@ -1373,8 +1388,9 @@ interface SimpleTabsProps {
|
|
|
1373
1388
|
tabsTriggerClassName?: string;
|
|
1374
1389
|
tabsContentClassName?: string;
|
|
1375
1390
|
orientation?: 'horizontal' | 'vertical';
|
|
1391
|
+
destroyInactiveTabs?: boolean;
|
|
1376
1392
|
}
|
|
1377
|
-
declare function SimpleTabs({ items, defaultValue, value, onValueChange, className, tabsListClassName, tabsTriggerClassName, tabsContentClassName, orientation, }: SimpleTabsProps): react_jsx_runtime.JSX.Element;
|
|
1393
|
+
declare function SimpleTabs({ items, defaultValue, value, onValueChange, className, tabsListClassName, tabsTriggerClassName, tabsContentClassName, orientation, destroyInactiveTabs, }: SimpleTabsProps): react_jsx_runtime.JSX.Element;
|
|
1378
1394
|
|
|
1379
1395
|
declare const cardVariants: (props?: ({
|
|
1380
1396
|
variant?: "default" | "outline" | "ghost" | "elevated" | null | undefined;
|
|
@@ -1664,89 +1680,65 @@ interface ScrollBarProps extends React$1.ComponentPropsWithoutRef<typeof ScrollA
|
|
|
1664
1680
|
}
|
|
1665
1681
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<ScrollBarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1666
1682
|
|
|
1667
|
-
type
|
|
1668
|
-
state:
|
|
1683
|
+
type SidebarContextProps = {
|
|
1684
|
+
state: 'expanded' | 'collapsed';
|
|
1669
1685
|
open: boolean;
|
|
1670
1686
|
setOpen: (open: boolean) => void;
|
|
1671
|
-
openMobile: boolean;
|
|
1672
|
-
setOpenMobile: (open: boolean) => void;
|
|
1673
|
-
isMobile: boolean;
|
|
1674
1687
|
toggleSidebar: () => void;
|
|
1675
1688
|
};
|
|
1676
|
-
declare
|
|
1677
|
-
declare function
|
|
1678
|
-
interface SidebarProviderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1689
|
+
declare function useSidebar(): SidebarContextProps;
|
|
1690
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1679
1691
|
defaultOpen?: boolean;
|
|
1680
1692
|
open?: boolean;
|
|
1681
1693
|
onOpenChange?: (open: boolean) => void;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
* </SidebarGroup>
|
|
1707
|
-
* </SidebarContent>
|
|
1708
|
-
* </Sidebar>
|
|
1709
|
-
* <SidebarInset>
|
|
1710
|
-
* <main>Your content</main>
|
|
1711
|
-
* </SidebarInset>
|
|
1712
|
-
* </SidebarProvider>
|
|
1713
|
-
* ```
|
|
1714
|
-
*/
|
|
1715
|
-
declare const SidebarProvider: React$1.ForwardRefExoticComponent<SidebarProviderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1716
|
-
interface SidebarProps extends React$1.ComponentProps<"div"> {
|
|
1717
|
-
side?: "left" | "right";
|
|
1718
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
1719
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
1720
|
-
}
|
|
1721
|
-
declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<SidebarProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1722
|
-
declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1723
|
-
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1724
|
-
declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1725
|
-
declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1726
|
-
declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1727
|
-
declare const SidebarContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1728
|
-
declare const SidebarGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1729
|
-
declare const SidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1730
|
-
declare const SidebarGroupContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1731
|
-
declare const SidebarMenu: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1732
|
-
declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1694
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1695
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1696
|
+
side?: 'left' | 'right';
|
|
1697
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
1698
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
1699
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1700
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
1701
|
+
declare function SidebarRail({ className, ...props }: React$1.ComponentProps<'button'>): react_jsx_runtime.JSX.Element;
|
|
1702
|
+
declare function SidebarInset({ className, ...props }: React$1.ComponentProps<'main'>): react_jsx_runtime.JSX.Element;
|
|
1703
|
+
declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
1704
|
+
declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1705
|
+
declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1706
|
+
declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1707
|
+
declare function SidebarContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1708
|
+
declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1709
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React$1.ComponentProps<'div'> & {
|
|
1710
|
+
asChild?: boolean;
|
|
1711
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1712
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React$1.ComponentProps<'button'> & {
|
|
1713
|
+
asChild?: boolean;
|
|
1714
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1715
|
+
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1716
|
+
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1717
|
+
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1733
1718
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1734
1719
|
variant?: "default" | "outline" | null | undefined;
|
|
1735
1720
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1736
|
-
isActive?: boolean | null | undefined;
|
|
1737
1721
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1738
|
-
|
|
1722
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, children, ...props }: React$1.ComponentProps<'button'> & {
|
|
1739
1723
|
asChild?: boolean;
|
|
1740
1724
|
isActive?: boolean;
|
|
1741
1725
|
tooltip?: string;
|
|
1742
|
-
}
|
|
1743
|
-
declare
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
declare
|
|
1726
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
1727
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React$1.ComponentProps<'button'> & {
|
|
1728
|
+
asChild?: boolean;
|
|
1729
|
+
showOnHover?: boolean;
|
|
1730
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1731
|
+
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element | null;
|
|
1732
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
|
|
1733
|
+
showIcon?: boolean;
|
|
1734
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1735
|
+
declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element | null;
|
|
1736
|
+
declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1737
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
1738
|
+
asChild?: boolean;
|
|
1739
|
+
size?: 'sm' | 'md';
|
|
1748
1740
|
isActive?: boolean;
|
|
1749
|
-
}
|
|
1741
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1750
1742
|
|
|
1751
1743
|
declare const tableVariants: (props?: ({
|
|
1752
1744
|
variant?: "default" | "striped" | "bordered" | null | undefined;
|
|
@@ -2516,4 +2508,4 @@ declare const TypographyGroup: {
|
|
|
2516
2508
|
|
|
2517
2509
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2518
2510
|
|
|
2519
|
-
export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, 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, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction,
|
|
2511
|
+
export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, 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, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleAvatar, type SimpleAvatarProps, SimpleCard, type SimpleCardProps, SimpleCarousel, type SimpleCarouselProps, SimpleTable, type SimpleTableProps, SimpleTabs, type SimpleTabsProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, Slider, type SliderProps, Small, Spinner, type SpinnerProps, Switch, type SwitchProps, type TabItem, Table, TableBody, TableCaption, TableCell, type TableColumn, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, type ToastData, type ToastId, type ToastProps, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemData, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyGroup, type TypographyProps, type TypographyType, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, composeRules, emailRule, emptyVariants, fieldVariants, getInitials, inputGroupVariants, inputVariants, itemVariants, labelVariants, maxLengthRule, maxValueRule, minLengthRule, minValueRule, navigationMenuTriggerStyle, numberRule, patternRule, progressVariants, radioGroupVariants, requiredRule, separatorVariants, skeletonVariants, spinnerVariants, tableVariants, textareaVariants, toastVariants, toggleGroupVariants, toggleVariants, urlRule, useCarousel, useForm, useSidebar, useToast, useWatch };
|
package/dist/index.d.ts
CHANGED
|
@@ -198,7 +198,20 @@ interface TextareaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextArea
|
|
|
198
198
|
*/
|
|
199
199
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
interface SelectProps {
|
|
202
|
+
children?: React$1.ReactNode;
|
|
203
|
+
value?: string;
|
|
204
|
+
defaultValue?: string;
|
|
205
|
+
onValueChange?: (value: string) => void;
|
|
206
|
+
open?: boolean;
|
|
207
|
+
defaultOpen?: boolean;
|
|
208
|
+
onOpenChange?: (open: boolean) => void;
|
|
209
|
+
dir?: 'ltr' | 'rtl';
|
|
210
|
+
name?: string;
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
required?: boolean;
|
|
213
|
+
}
|
|
214
|
+
declare const Select: React$1.ForwardRefExoticComponent<SelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
202
215
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
203
216
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
204
217
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
@@ -341,8 +354,8 @@ interface ToggleGroupItemData {
|
|
|
341
354
|
disabled?: boolean;
|
|
342
355
|
ariaLabel?: string;
|
|
343
356
|
}
|
|
344
|
-
interface ToggleGroupSingleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>,
|
|
345
|
-
type:
|
|
357
|
+
interface ToggleGroupSingleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'>, VariantProps<typeof toggleGroupVariants> {
|
|
358
|
+
type: 'single';
|
|
346
359
|
value?: string;
|
|
347
360
|
defaultValue?: string;
|
|
348
361
|
onValueChange?: (value: string) => void;
|
|
@@ -350,8 +363,8 @@ interface ToggleGroupSingleProps extends Omit<React$1.ComponentPropsWithoutRef<t
|
|
|
350
363
|
itemClassName?: string;
|
|
351
364
|
renderItem?: (item: ToggleGroupItemData) => React$1.ReactNode;
|
|
352
365
|
}
|
|
353
|
-
interface ToggleGroupMultipleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>,
|
|
354
|
-
type:
|
|
366
|
+
interface ToggleGroupMultipleProps extends Omit<React$1.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'>, VariantProps<typeof toggleGroupVariants> {
|
|
367
|
+
type: 'multiple';
|
|
355
368
|
value?: string[];
|
|
356
369
|
defaultValue?: string[];
|
|
357
370
|
onValueChange?: (value: string[]) => void;
|
|
@@ -550,7 +563,7 @@ interface FormInstance {
|
|
|
550
563
|
}) => void;
|
|
551
564
|
setFieldValue: (name: NamePath, value: any) => void;
|
|
552
565
|
validateFields: (names?: NamePath[]) => Promise<Record<string, any>>;
|
|
553
|
-
submit: () => void
|
|
566
|
+
submit: () => Promise<void>;
|
|
554
567
|
resetFields: (names?: NamePath[]) => void;
|
|
555
568
|
getFieldError: (name: NamePath) => string[];
|
|
556
569
|
getFieldsError: () => FieldError[];
|
|
@@ -585,7 +598,7 @@ interface FormInstance {
|
|
|
585
598
|
unregisterMount?: (id: string) => void;
|
|
586
599
|
}
|
|
587
600
|
|
|
588
|
-
declare function useForm(): FormInstance;
|
|
601
|
+
declare function useForm(name?: string): FormInstance;
|
|
589
602
|
declare function useWatch(name?: NamePath | NamePath[], formInstance?: FormInstance): any;
|
|
590
603
|
|
|
591
604
|
type FormItemVariant = 'outlined' | 'filled' | 'borderless' | 'underlined';
|
|
@@ -1353,13 +1366,15 @@ declare const PaginationEllipsis: {
|
|
|
1353
1366
|
displayName: string;
|
|
1354
1367
|
};
|
|
1355
1368
|
|
|
1356
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement
|
|
1369
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1370
|
+
destroyInactiveTabs?: boolean;
|
|
1371
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1357
1372
|
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1358
1373
|
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1359
1374
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1360
1375
|
interface TabItem {
|
|
1361
1376
|
value: string;
|
|
1362
|
-
label:
|
|
1377
|
+
label: React$1.ReactNode;
|
|
1363
1378
|
content: React$1.ReactNode;
|
|
1364
1379
|
disabled?: boolean;
|
|
1365
1380
|
}
|
|
@@ -1373,8 +1388,9 @@ interface SimpleTabsProps {
|
|
|
1373
1388
|
tabsTriggerClassName?: string;
|
|
1374
1389
|
tabsContentClassName?: string;
|
|
1375
1390
|
orientation?: 'horizontal' | 'vertical';
|
|
1391
|
+
destroyInactiveTabs?: boolean;
|
|
1376
1392
|
}
|
|
1377
|
-
declare function SimpleTabs({ items, defaultValue, value, onValueChange, className, tabsListClassName, tabsTriggerClassName, tabsContentClassName, orientation, }: SimpleTabsProps): react_jsx_runtime.JSX.Element;
|
|
1393
|
+
declare function SimpleTabs({ items, defaultValue, value, onValueChange, className, tabsListClassName, tabsTriggerClassName, tabsContentClassName, orientation, destroyInactiveTabs, }: SimpleTabsProps): react_jsx_runtime.JSX.Element;
|
|
1378
1394
|
|
|
1379
1395
|
declare const cardVariants: (props?: ({
|
|
1380
1396
|
variant?: "default" | "outline" | "ghost" | "elevated" | null | undefined;
|
|
@@ -1664,89 +1680,65 @@ interface ScrollBarProps extends React$1.ComponentPropsWithoutRef<typeof ScrollA
|
|
|
1664
1680
|
}
|
|
1665
1681
|
declare const ScrollBar: React$1.ForwardRefExoticComponent<ScrollBarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1666
1682
|
|
|
1667
|
-
type
|
|
1668
|
-
state:
|
|
1683
|
+
type SidebarContextProps = {
|
|
1684
|
+
state: 'expanded' | 'collapsed';
|
|
1669
1685
|
open: boolean;
|
|
1670
1686
|
setOpen: (open: boolean) => void;
|
|
1671
|
-
openMobile: boolean;
|
|
1672
|
-
setOpenMobile: (open: boolean) => void;
|
|
1673
|
-
isMobile: boolean;
|
|
1674
1687
|
toggleSidebar: () => void;
|
|
1675
1688
|
};
|
|
1676
|
-
declare
|
|
1677
|
-
declare function
|
|
1678
|
-
interface SidebarProviderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1689
|
+
declare function useSidebar(): SidebarContextProps;
|
|
1690
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1679
1691
|
defaultOpen?: boolean;
|
|
1680
1692
|
open?: boolean;
|
|
1681
1693
|
onOpenChange?: (open: boolean) => void;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
* </SidebarGroup>
|
|
1707
|
-
* </SidebarContent>
|
|
1708
|
-
* </Sidebar>
|
|
1709
|
-
* <SidebarInset>
|
|
1710
|
-
* <main>Your content</main>
|
|
1711
|
-
* </SidebarInset>
|
|
1712
|
-
* </SidebarProvider>
|
|
1713
|
-
* ```
|
|
1714
|
-
*/
|
|
1715
|
-
declare const SidebarProvider: React$1.ForwardRefExoticComponent<SidebarProviderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1716
|
-
interface SidebarProps extends React$1.ComponentProps<"div"> {
|
|
1717
|
-
side?: "left" | "right";
|
|
1718
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
1719
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
1720
|
-
}
|
|
1721
|
-
declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<SidebarProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1722
|
-
declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1723
|
-
declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1724
|
-
declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1725
|
-
declare const SidebarHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1726
|
-
declare const SidebarFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1727
|
-
declare const SidebarContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1728
|
-
declare const SidebarGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1729
|
-
declare const SidebarGroupLabel: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1730
|
-
declare const SidebarGroupContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1731
|
-
declare const SidebarMenu: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1732
|
-
declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1694
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1695
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
1696
|
+
side?: 'left' | 'right';
|
|
1697
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
1698
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
1699
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1700
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
|
|
1701
|
+
declare function SidebarRail({ className, ...props }: React$1.ComponentProps<'button'>): react_jsx_runtime.JSX.Element;
|
|
1702
|
+
declare function SidebarInset({ className, ...props }: React$1.ComponentProps<'main'>): react_jsx_runtime.JSX.Element;
|
|
1703
|
+
declare function SidebarInput({ className, ...props }: React$1.ComponentProps<typeof Input>): react_jsx_runtime.JSX.Element;
|
|
1704
|
+
declare function SidebarHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1705
|
+
declare function SidebarFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1706
|
+
declare function SidebarSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
1707
|
+
declare function SidebarContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1708
|
+
declare function SidebarGroup({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1709
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React$1.ComponentProps<'div'> & {
|
|
1710
|
+
asChild?: boolean;
|
|
1711
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1712
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React$1.ComponentProps<'button'> & {
|
|
1713
|
+
asChild?: boolean;
|
|
1714
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1715
|
+
declare function SidebarGroupContent({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
1716
|
+
declare function SidebarMenu({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
1717
|
+
declare function SidebarMenuItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1733
1718
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1734
1719
|
variant?: "default" | "outline" | null | undefined;
|
|
1735
1720
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1736
|
-
isActive?: boolean | null | undefined;
|
|
1737
1721
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1738
|
-
|
|
1722
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, children, ...props }: React$1.ComponentProps<'button'> & {
|
|
1739
1723
|
asChild?: boolean;
|
|
1740
1724
|
isActive?: boolean;
|
|
1741
1725
|
tooltip?: string;
|
|
1742
|
-
}
|
|
1743
|
-
declare
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
declare
|
|
1726
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime.JSX.Element;
|
|
1727
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React$1.ComponentProps<'button'> & {
|
|
1728
|
+
asChild?: boolean;
|
|
1729
|
+
showOnHover?: boolean;
|
|
1730
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1731
|
+
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element | null;
|
|
1732
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
|
|
1733
|
+
showIcon?: boolean;
|
|
1734
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1735
|
+
declare function SidebarMenuSub({ className, ...props }: React$1.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element | null;
|
|
1736
|
+
declare function SidebarMenuSubItem({ className, ...props }: React$1.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
1737
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React$1.ComponentProps<'a'> & {
|
|
1738
|
+
asChild?: boolean;
|
|
1739
|
+
size?: 'sm' | 'md';
|
|
1748
1740
|
isActive?: boolean;
|
|
1749
|
-
}
|
|
1741
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1750
1742
|
|
|
1751
1743
|
declare const tableVariants: (props?: ({
|
|
1752
1744
|
variant?: "default" | "striped" | "bordered" | null | undefined;
|
|
@@ -2516,4 +2508,4 @@ declare const TypographyGroup: {
|
|
|
2516
2508
|
|
|
2517
2509
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2518
2510
|
|
|
2519
|
-
export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, 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, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction,
|
|
2511
|
+
export { Accordion, type AccordionItemData, type AccordionProps, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AspectRatio, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupData, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, type CarouselItemData, CarouselNext, CarouselPrevious, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleItem, CollapsibleTrigger, type ColumnsProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, type DataTableProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DotsSpinner, type DotsSpinnerProps, 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, Empty, type EmptyProps, Field, type FieldError, type FieldProps, Form, type FormInstance, FormItem, type FormItemProps, type FormItemVariant, FormList, type FormProps, H1, H2, H3, H4, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, InlineCode, Input, InputGroup, type InputGroupProps, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputProps, Item, ItemGroup, ItemList, type ItemProps, ItemSeparator, Label, type LabelProps, Lead, List, ListItem, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Muted, type NamePath, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, P, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductCard, ProfileCard, Progress, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemData, type RadioGroupProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, type Rule, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, type SidebarContextProps, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleAvatar, type SimpleAvatarProps, SimpleCard, type SimpleCardProps, SimpleCarousel, type SimpleCarouselProps, SimpleTable, type SimpleTableProps, SimpleTabs, type SimpleTabsProps, SimpleTooltip, type SimpleTooltipProps, Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonProps, Slider, type SliderProps, Small, Spinner, type SpinnerProps, Switch, type SwitchProps, type TabItem, Table, TableBody, TableCaption, TableCell, type TableColumn, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, type ToastData, type ToastId, type ToastProps, ToastProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemData, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, TypographyGroup, type TypographyProps, type TypographyType, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, checkboxVariants, cn, composeRules, emailRule, emptyVariants, fieldVariants, getInitials, inputGroupVariants, inputVariants, itemVariants, labelVariants, maxLengthRule, maxValueRule, minLengthRule, minValueRule, navigationMenuTriggerStyle, numberRule, patternRule, progressVariants, radioGroupVariants, requiredRule, separatorVariants, skeletonVariants, spinnerVariants, tableVariants, textareaVariants, toastVariants, toggleGroupVariants, toggleVariants, urlRule, useCarousel, useForm, useSidebar, useToast, useWatch };
|