shadcn-ui-react 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +82 -3
- package/dist/index.cjs +17365 -59
- package/dist/index.d.cts +96 -2
- package/dist/index.d.ts +96 -2
- package/dist/index.js +17380 -51
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { Dispatch, SetStateAction } from 'react';
|
|
3
4
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
@@ -40,6 +41,7 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
40
41
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
41
42
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
42
43
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
44
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
43
45
|
import { ClassValue } from 'clsx';
|
|
44
46
|
|
|
45
47
|
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -649,6 +651,15 @@ declare function useToast(): {
|
|
|
649
651
|
toasts: ToasterToast[];
|
|
650
652
|
};
|
|
651
653
|
|
|
654
|
+
type SearchInputProps = {
|
|
655
|
+
value?: string;
|
|
656
|
+
placeholder?: string;
|
|
657
|
+
className?: string;
|
|
658
|
+
debounceTime?: number;
|
|
659
|
+
onSearch: (searchTerm: string) => void;
|
|
660
|
+
};
|
|
661
|
+
declare function SearchInput({ value, placeholder, className, debounceTime, onSearch, }: SearchInputProps): react_jsx_runtime.JSX.Element;
|
|
662
|
+
|
|
652
663
|
type TAlertModalProps = {
|
|
653
664
|
isOpen: boolean;
|
|
654
665
|
onClose: () => void;
|
|
@@ -685,6 +696,19 @@ interface NavItem {
|
|
|
685
696
|
label?: string;
|
|
686
697
|
description?: string;
|
|
687
698
|
}
|
|
699
|
+
type HeaderProps = {
|
|
700
|
+
items: NavItem[];
|
|
701
|
+
className?: string;
|
|
702
|
+
classNameContent?: string;
|
|
703
|
+
};
|
|
704
|
+
declare function Header({ items, className, classNameContent }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
705
|
+
|
|
706
|
+
interface DashboardNavProps {
|
|
707
|
+
items: NavItem[];
|
|
708
|
+
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
709
|
+
isMobileNav?: boolean;
|
|
710
|
+
}
|
|
711
|
+
declare function DashboardNav({ items, setOpen, isMobileNav, }: DashboardNavProps): react_jsx_runtime.JSX.Element;
|
|
688
712
|
|
|
689
713
|
type DataTableSkeletonProps = {
|
|
690
714
|
columnCount: number;
|
|
@@ -693,10 +717,80 @@ type DataTableSkeletonProps = {
|
|
|
693
717
|
filterableColumnCount?: number;
|
|
694
718
|
showViewOptions?: boolean;
|
|
695
719
|
};
|
|
696
|
-
declare function DataTableSkeleton({ columnCount, rowCount, searchableColumnCount, filterableColumnCount, showViewOptions }: DataTableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
720
|
+
declare function DataTableSkeleton({ columnCount, rowCount, searchableColumnCount, filterableColumnCount, showViewOptions, }: DataTableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
721
|
+
|
|
722
|
+
interface DataTableProps<TData, TValue> {
|
|
723
|
+
className?: string;
|
|
724
|
+
tableClassName?: string;
|
|
725
|
+
headerClassName?: string;
|
|
726
|
+
bodyClassName?: string;
|
|
727
|
+
rowClassName?: string;
|
|
728
|
+
cellClassName?: string;
|
|
729
|
+
page?: number;
|
|
730
|
+
perPage?: number;
|
|
731
|
+
onPageChange: (page: number) => void;
|
|
732
|
+
onClick: (row: TData) => void;
|
|
733
|
+
columns: ColumnDef<TData, TValue>[];
|
|
734
|
+
data: TData[];
|
|
735
|
+
pageSizeOptions?: number[];
|
|
736
|
+
pageCount: number;
|
|
737
|
+
rowPerPageLabel?: string;
|
|
738
|
+
pageLabel?: string;
|
|
739
|
+
ofLabel?: string;
|
|
740
|
+
emptyData?: React__default.ReactNode;
|
|
741
|
+
}
|
|
742
|
+
declare function DataTable<TData, TValue>({ columns, data, pageCount, page, perPage, pageSizeOptions, rowPerPageLabel, ofLabel, pageLabel, className, emptyData, bodyClassName, cellClassName, headerClassName, rowClassName, tableClassName, onPageChange, onClick, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
743
|
+
|
|
744
|
+
type TFileUploadProps = {
|
|
745
|
+
label?: string;
|
|
746
|
+
onChange: (value: File[]) => void;
|
|
747
|
+
value: File[];
|
|
748
|
+
className?: string;
|
|
749
|
+
classNameContent?: string;
|
|
750
|
+
};
|
|
751
|
+
declare function FileUpload({ onChange, value, label, className, classNameContent, }: TFileUploadProps): react_jsx_runtime.JSX.Element;
|
|
752
|
+
declare function ImagePreview({ file }: {
|
|
753
|
+
file: File;
|
|
754
|
+
}): react_jsx_runtime.JSX.Element;
|
|
755
|
+
|
|
756
|
+
type THeadingProps = {
|
|
757
|
+
title: string;
|
|
758
|
+
description?: string;
|
|
759
|
+
className?: string;
|
|
760
|
+
};
|
|
761
|
+
declare function Heading({ title, description, className }: THeadingProps): react_jsx_runtime.JSX.Element;
|
|
762
|
+
|
|
763
|
+
type TMobileSidebarProps = {
|
|
764
|
+
items: NavItem[];
|
|
765
|
+
header?: React.ReactNode;
|
|
766
|
+
className?: string;
|
|
767
|
+
setSidebarOpen: Dispatch<SetStateAction<boolean>>;
|
|
768
|
+
sidebarOpen: boolean;
|
|
769
|
+
};
|
|
770
|
+
declare function MobileSidebar({ items, setSidebarOpen, sidebarOpen, header, }: TMobileSidebarProps): react_jsx_runtime.JSX.Element;
|
|
771
|
+
|
|
772
|
+
declare function PageHead({ title }: {
|
|
773
|
+
title?: string;
|
|
774
|
+
}): react_jsx_runtime.JSX.Element;
|
|
775
|
+
|
|
776
|
+
type TPaginationSectionProps = {
|
|
777
|
+
totalPosts: number;
|
|
778
|
+
postsPerPage: number;
|
|
779
|
+
currentPage: number;
|
|
780
|
+
setCurrentPage: (page: number) => void;
|
|
781
|
+
};
|
|
782
|
+
declare function PaginationSection({ totalPosts, postsPerPage, currentPage, setCurrentPage, }: TPaginationSectionProps): react_jsx_runtime.JSX.Element;
|
|
783
|
+
|
|
784
|
+
type SidebarProps = {
|
|
785
|
+
items: NavItem[];
|
|
786
|
+
className?: string;
|
|
787
|
+
};
|
|
788
|
+
declare function Sidebar({ items, className }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
697
789
|
|
|
698
790
|
declare function ModeToggle(): react_jsx_runtime.JSX.Element;
|
|
699
791
|
|
|
792
|
+
declare function UserNav(): react_jsx_runtime.JSX.Element;
|
|
793
|
+
|
|
700
794
|
declare function cn(...inputs: ClassValue[]): string;
|
|
701
795
|
|
|
702
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, 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, DataTableSkeleton, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModeToggle, type NavItem, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextLast, PaginationPrevious, PaginationPreviousLast, 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, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, reducer, toast, toggleVariants, useFormField, useToast };
|
|
796
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, 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, DashboardNav, DataTable, DataTableSkeleton, 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, FileUpload, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icons, ImagePreview, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileSidebar, Modal, ModeToggle, type NavItem, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHead, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextLast, PaginationPrevious, PaginationPreviousLast, PaginationSection, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserNav, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, reducer, toast, toggleVariants, useFormField, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { Dispatch, SetStateAction } from 'react';
|
|
3
4
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
4
5
|
import { VariantProps } from 'class-variance-authority';
|
|
5
6
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
@@ -40,6 +41,7 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
|
40
41
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
41
42
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
42
43
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
44
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
43
45
|
import { ClassValue } from 'clsx';
|
|
44
46
|
|
|
45
47
|
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -649,6 +651,15 @@ declare function useToast(): {
|
|
|
649
651
|
toasts: ToasterToast[];
|
|
650
652
|
};
|
|
651
653
|
|
|
654
|
+
type SearchInputProps = {
|
|
655
|
+
value?: string;
|
|
656
|
+
placeholder?: string;
|
|
657
|
+
className?: string;
|
|
658
|
+
debounceTime?: number;
|
|
659
|
+
onSearch: (searchTerm: string) => void;
|
|
660
|
+
};
|
|
661
|
+
declare function SearchInput({ value, placeholder, className, debounceTime, onSearch, }: SearchInputProps): react_jsx_runtime.JSX.Element;
|
|
662
|
+
|
|
652
663
|
type TAlertModalProps = {
|
|
653
664
|
isOpen: boolean;
|
|
654
665
|
onClose: () => void;
|
|
@@ -685,6 +696,19 @@ interface NavItem {
|
|
|
685
696
|
label?: string;
|
|
686
697
|
description?: string;
|
|
687
698
|
}
|
|
699
|
+
type HeaderProps = {
|
|
700
|
+
items: NavItem[];
|
|
701
|
+
className?: string;
|
|
702
|
+
classNameContent?: string;
|
|
703
|
+
};
|
|
704
|
+
declare function Header({ items, className, classNameContent }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
705
|
+
|
|
706
|
+
interface DashboardNavProps {
|
|
707
|
+
items: NavItem[];
|
|
708
|
+
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
709
|
+
isMobileNav?: boolean;
|
|
710
|
+
}
|
|
711
|
+
declare function DashboardNav({ items, setOpen, isMobileNav, }: DashboardNavProps): react_jsx_runtime.JSX.Element;
|
|
688
712
|
|
|
689
713
|
type DataTableSkeletonProps = {
|
|
690
714
|
columnCount: number;
|
|
@@ -693,10 +717,80 @@ type DataTableSkeletonProps = {
|
|
|
693
717
|
filterableColumnCount?: number;
|
|
694
718
|
showViewOptions?: boolean;
|
|
695
719
|
};
|
|
696
|
-
declare function DataTableSkeleton({ columnCount, rowCount, searchableColumnCount, filterableColumnCount, showViewOptions }: DataTableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
720
|
+
declare function DataTableSkeleton({ columnCount, rowCount, searchableColumnCount, filterableColumnCount, showViewOptions, }: DataTableSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
721
|
+
|
|
722
|
+
interface DataTableProps<TData, TValue> {
|
|
723
|
+
className?: string;
|
|
724
|
+
tableClassName?: string;
|
|
725
|
+
headerClassName?: string;
|
|
726
|
+
bodyClassName?: string;
|
|
727
|
+
rowClassName?: string;
|
|
728
|
+
cellClassName?: string;
|
|
729
|
+
page?: number;
|
|
730
|
+
perPage?: number;
|
|
731
|
+
onPageChange: (page: number) => void;
|
|
732
|
+
onClick: (row: TData) => void;
|
|
733
|
+
columns: ColumnDef<TData, TValue>[];
|
|
734
|
+
data: TData[];
|
|
735
|
+
pageSizeOptions?: number[];
|
|
736
|
+
pageCount: number;
|
|
737
|
+
rowPerPageLabel?: string;
|
|
738
|
+
pageLabel?: string;
|
|
739
|
+
ofLabel?: string;
|
|
740
|
+
emptyData?: React__default.ReactNode;
|
|
741
|
+
}
|
|
742
|
+
declare function DataTable<TData, TValue>({ columns, data, pageCount, page, perPage, pageSizeOptions, rowPerPageLabel, ofLabel, pageLabel, className, emptyData, bodyClassName, cellClassName, headerClassName, rowClassName, tableClassName, onPageChange, onClick, }: DataTableProps<TData, TValue>): react_jsx_runtime.JSX.Element;
|
|
743
|
+
|
|
744
|
+
type TFileUploadProps = {
|
|
745
|
+
label?: string;
|
|
746
|
+
onChange: (value: File[]) => void;
|
|
747
|
+
value: File[];
|
|
748
|
+
className?: string;
|
|
749
|
+
classNameContent?: string;
|
|
750
|
+
};
|
|
751
|
+
declare function FileUpload({ onChange, value, label, className, classNameContent, }: TFileUploadProps): react_jsx_runtime.JSX.Element;
|
|
752
|
+
declare function ImagePreview({ file }: {
|
|
753
|
+
file: File;
|
|
754
|
+
}): react_jsx_runtime.JSX.Element;
|
|
755
|
+
|
|
756
|
+
type THeadingProps = {
|
|
757
|
+
title: string;
|
|
758
|
+
description?: string;
|
|
759
|
+
className?: string;
|
|
760
|
+
};
|
|
761
|
+
declare function Heading({ title, description, className }: THeadingProps): react_jsx_runtime.JSX.Element;
|
|
762
|
+
|
|
763
|
+
type TMobileSidebarProps = {
|
|
764
|
+
items: NavItem[];
|
|
765
|
+
header?: React.ReactNode;
|
|
766
|
+
className?: string;
|
|
767
|
+
setSidebarOpen: Dispatch<SetStateAction<boolean>>;
|
|
768
|
+
sidebarOpen: boolean;
|
|
769
|
+
};
|
|
770
|
+
declare function MobileSidebar({ items, setSidebarOpen, sidebarOpen, header, }: TMobileSidebarProps): react_jsx_runtime.JSX.Element;
|
|
771
|
+
|
|
772
|
+
declare function PageHead({ title }: {
|
|
773
|
+
title?: string;
|
|
774
|
+
}): react_jsx_runtime.JSX.Element;
|
|
775
|
+
|
|
776
|
+
type TPaginationSectionProps = {
|
|
777
|
+
totalPosts: number;
|
|
778
|
+
postsPerPage: number;
|
|
779
|
+
currentPage: number;
|
|
780
|
+
setCurrentPage: (page: number) => void;
|
|
781
|
+
};
|
|
782
|
+
declare function PaginationSection({ totalPosts, postsPerPage, currentPage, setCurrentPage, }: TPaginationSectionProps): react_jsx_runtime.JSX.Element;
|
|
783
|
+
|
|
784
|
+
type SidebarProps = {
|
|
785
|
+
items: NavItem[];
|
|
786
|
+
className?: string;
|
|
787
|
+
};
|
|
788
|
+
declare function Sidebar({ items, className }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
697
789
|
|
|
698
790
|
declare function ModeToggle(): react_jsx_runtime.JSX.Element;
|
|
699
791
|
|
|
792
|
+
declare function UserNav(): react_jsx_runtime.JSX.Element;
|
|
793
|
+
|
|
700
794
|
declare function cn(...inputs: ClassValue[]): string;
|
|
701
795
|
|
|
702
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, 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, DataTableSkeleton, 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, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModeToggle, type NavItem, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextLast, PaginationPrevious, PaginationPreviousLast, 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, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, reducer, toast, toggleVariants, useFormField, useToast };
|
|
796
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertModal, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, 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, DashboardNav, DataTable, DataTableSkeleton, 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, FileUpload, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icons, ImagePreview, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileSidebar, Modal, ModeToggle, type NavItem, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PageHead, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationNextLast, PaginationPrevious, PaginationPreviousLast, PaginationSection, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, Skeleton, Slider, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserNav, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, reducer, toast, toggleVariants, useFormField, useToast };
|