@codapet/design-system 0.3.0 → 0.3.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.d.mts +22 -7
- package/dist/index.mjs +166 -54
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -173,11 +173,12 @@ declare function DialogTrigger({ ...props }: React$1.ComponentProps<typeof Dialo
|
|
|
173
173
|
declare function DialogPortal({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
174
174
|
declare function DialogClose({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
175
175
|
declare function DialogOverlay({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
176
|
-
declare function DialogContent({ className, children, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
176
|
+
declare function DialogContent({ className, children, overlayClassName, showCloseButton, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
177
177
|
showCloseButton?: boolean;
|
|
178
|
+
overlayClassName?: string;
|
|
178
179
|
}): react_jsx_runtime.JSX.Element;
|
|
179
|
-
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<
|
|
180
|
-
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<
|
|
180
|
+
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
181
|
+
declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
181
182
|
declare function DialogTitle({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
182
183
|
declare function DialogDescription({ className, ...props }: React$1.ComponentProps<typeof DialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
183
184
|
|
|
@@ -224,9 +225,11 @@ declare function DrawerTrigger({ ...props }: React$1.ComponentProps<typeof Drawe
|
|
|
224
225
|
declare function DrawerPortal({ ...props }: React$1.ComponentProps<typeof Drawer$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
225
226
|
declare function DrawerClose({ ...props }: React$1.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
226
227
|
declare function DrawerOverlay({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Overlay>): react_jsx_runtime.JSX.Element;
|
|
227
|
-
declare function DrawerContent({ className, children, ...props }: React$1.ComponentProps<typeof Drawer$1.Content>
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
declare function DrawerContent({ className, children, withCloseButton, ...props }: React$1.ComponentProps<typeof Drawer$1.Content> & {
|
|
229
|
+
withCloseButton?: boolean;
|
|
230
|
+
}): react_jsx_runtime.JSX.Element;
|
|
231
|
+
declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
232
|
+
declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
230
233
|
declare function DrawerTitle({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element;
|
|
231
234
|
declare function DrawerDescription({ className, ...props }: React$1.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element;
|
|
232
235
|
|
|
@@ -471,6 +474,18 @@ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">):
|
|
|
471
474
|
|
|
472
475
|
declare function Slider({ className, defaultValue, value, min, max, ...props }: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
473
476
|
|
|
477
|
+
declare const SmartDialog: ({ children, ...props }: React.ComponentProps<typeof Dialog>) => react_jsx_runtime.JSX.Element;
|
|
478
|
+
declare const SmartDialogContent: ({ children, overlayClassName, withCloseButton, ...props }: React.ComponentProps<typeof DrawerContent> & {
|
|
479
|
+
overlayClassName?: string;
|
|
480
|
+
withCloseButton?: boolean;
|
|
481
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
482
|
+
declare const SmartDialogDescription: ({ children, ...props }: React.ComponentProps<typeof DrawerDescription>) => react_jsx_runtime.JSX.Element;
|
|
483
|
+
declare const SmartDialogHeader: ({ children, ...props }: React.ComponentProps<typeof DrawerHeader>) => react_jsx_runtime.JSX.Element;
|
|
484
|
+
declare const SmartDialogTitle: ({ children, ...props }: React.ComponentProps<typeof DrawerTitle>) => react_jsx_runtime.JSX.Element;
|
|
485
|
+
declare const SmartDialogTrigger: ({ children, ...props }: React.ComponentProps<typeof DrawerTrigger>) => react_jsx_runtime.JSX.Element;
|
|
486
|
+
declare const SmartDialogFooter: ({ children, ...props }: React.ComponentProps<typeof DrawerFooter>) => react_jsx_runtime.JSX.Element;
|
|
487
|
+
declare const SmartDialogClose: ({ children, ...props }: React.ComponentProps<typeof DrawerClose>) => react_jsx_runtime.JSX.Element;
|
|
488
|
+
|
|
474
489
|
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
475
490
|
|
|
476
491
|
declare function Switch({ className, ...props }: React$1.ComponentProps<typeof SwitchPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -538,4 +553,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
538
553
|
|
|
539
554
|
declare function useIsMobile(): boolean;
|
|
540
555
|
|
|
541
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Body, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, 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, DisplayHeading, 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, HeadingL, HeadingM, HeadingS, HeadingXL, HeadingXS, HeadingXXS, 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, 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, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, bodyTextVariants, buttonVariants, cn, displayTextVariants, inputVariants, labelTextVariants, navigationMenuTriggerStyle, toggleVariants, useFormField, useIsMobile, useSidebar };
|
|
556
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Body, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardAction, 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, DisplayHeading, 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, HeadingL, HeadingM, HeadingS, HeadingXL, HeadingXS, HeadingXXS, 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, 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, SmartDialog, SmartDialogClose, SmartDialogContent, SmartDialogDescription, SmartDialogFooter, SmartDialogHeader, SmartDialogTitle, SmartDialogTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, bodyTextVariants, buttonVariants, cn, displayTextVariants, inputVariants, labelTextVariants, navigationMenuTriggerStyle, toggleVariants, useFormField, useIsMobile, useSidebar };
|
package/dist/index.mjs
CHANGED
|
@@ -48,7 +48,7 @@ function AccordionTrigger({
|
|
|
48
48
|
...props,
|
|
49
49
|
children: [
|
|
50
50
|
children,
|
|
51
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-
|
|
51
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-400" })
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
) });
|
|
@@ -142,7 +142,7 @@ import { cva as cva2 } from "class-variance-authority";
|
|
|
142
142
|
import "react";
|
|
143
143
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
144
144
|
var buttonVariants = cva2(
|
|
145
|
-
"cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-semibold transition-
|
|
145
|
+
"cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-semibold transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none relative select-none will-change-auto focus-visible:before:absolute focus-visible:before:-inset-[3px] focus-visible:before:rounded-lg focus-visible:before:ring-2 focus-visible:before:ring-blue-500/80 focus-visible:before:pointer-events-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive duration-400",
|
|
146
146
|
{
|
|
147
147
|
variants: {
|
|
148
148
|
variant: {
|
|
@@ -1223,7 +1223,7 @@ function Checkbox({
|
|
|
1223
1223
|
{
|
|
1224
1224
|
"data-slot": "checkbox",
|
|
1225
1225
|
className: cn(
|
|
1226
|
-
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border
|
|
1226
|
+
"group peer border-input dark:bg-input/30 transition-colors duration-400 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:before:absolute focus-visible:before:-inset-[3px] focus:ring-offset-1 focus:ring-offset-brand-text-vibrant",
|
|
1227
1227
|
className
|
|
1228
1228
|
),
|
|
1229
1229
|
...props,
|
|
@@ -1231,7 +1231,8 @@ function Checkbox({
|
|
|
1231
1231
|
CheckboxPrimitive.Indicator,
|
|
1232
1232
|
{
|
|
1233
1233
|
"data-slot": "checkbox-indicator",
|
|
1234
|
-
|
|
1234
|
+
forceMount: true,
|
|
1235
|
+
className: "flex items-center justify-center text-current transition-opacity duration-400 opacity-0 group-data-[state=checked]:opacity-100",
|
|
1235
1236
|
children: /* @__PURE__ */ jsx13(Check, { className: "size-3.5" })
|
|
1236
1237
|
}
|
|
1237
1238
|
)
|
|
@@ -1276,9 +1277,9 @@ import { Command as CommandPrimitive } from "cmdk";
|
|
|
1276
1277
|
import { SearchIcon } from "lucide-react";
|
|
1277
1278
|
|
|
1278
1279
|
// src/components/ui/dialog.tsx
|
|
1279
|
-
import "react";
|
|
1280
1280
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1281
1281
|
import { XIcon } from "lucide-react";
|
|
1282
|
+
import "react";
|
|
1282
1283
|
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1283
1284
|
function Dialog({
|
|
1284
1285
|
...props
|
|
@@ -1319,17 +1320,18 @@ function DialogOverlay({
|
|
|
1319
1320
|
function DialogContent({
|
|
1320
1321
|
className,
|
|
1321
1322
|
children,
|
|
1323
|
+
overlayClassName,
|
|
1322
1324
|
showCloseButton = true,
|
|
1323
1325
|
...props
|
|
1324
1326
|
}) {
|
|
1325
1327
|
return /* @__PURE__ */ jsxs6(DialogPortal, { "data-slot": "dialog-portal", children: [
|
|
1326
|
-
/* @__PURE__ */ jsx15(DialogOverlay, {}),
|
|
1328
|
+
/* @__PURE__ */ jsx15(DialogOverlay, { className: overlayClassName }),
|
|
1327
1329
|
/* @__PURE__ */ jsxs6(
|
|
1328
1330
|
DialogPrimitive.Content,
|
|
1329
1331
|
{
|
|
1330
1332
|
"data-slot": "dialog-content",
|
|
1331
1333
|
className: cn(
|
|
1332
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-
|
|
1334
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-400 sm:max-w-lg",
|
|
1333
1335
|
className
|
|
1334
1336
|
),
|
|
1335
1337
|
...props,
|
|
@@ -1809,6 +1811,7 @@ function DrawerOverlay({
|
|
|
1809
1811
|
function DrawerContent({
|
|
1810
1812
|
className,
|
|
1811
1813
|
children,
|
|
1814
|
+
withCloseButton = true,
|
|
1812
1815
|
...props
|
|
1813
1816
|
}) {
|
|
1814
1817
|
return /* @__PURE__ */ jsxs9(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
@@ -1827,7 +1830,7 @@ function DrawerContent({
|
|
|
1827
1830
|
),
|
|
1828
1831
|
...props,
|
|
1829
1832
|
children: [
|
|
1830
|
-
/* @__PURE__ */ jsx18("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
1833
|
+
withCloseButton && /* @__PURE__ */ jsx18("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
|
|
1831
1834
|
children
|
|
1832
1835
|
]
|
|
1833
1836
|
}
|
|
@@ -2292,7 +2295,7 @@ var inputVariants = cva5(
|
|
|
2292
2295
|
[
|
|
2293
2296
|
// Base styles
|
|
2294
2297
|
"file:text-zinc-800 placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
2295
|
-
"flex w-full min-w-0 rounded-md border bg-transparent text-base transition-all duration-
|
|
2298
|
+
"flex w-full min-w-0 rounded-md border bg-transparent text-base transition-all duration-400",
|
|
2296
2299
|
"outline-none font-sans",
|
|
2297
2300
|
// File input styles
|
|
2298
2301
|
"file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
@@ -2790,7 +2793,7 @@ function NavigationMenuTrigger({
|
|
|
2790
2793
|
/* @__PURE__ */ jsx26(
|
|
2791
2794
|
ChevronDownIcon3,
|
|
2792
2795
|
{
|
|
2793
|
-
className: "relative top-[1px] ml-1 size-3 transition duration-
|
|
2796
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-400 group-data-[state=open]:rotate-180",
|
|
2794
2797
|
"aria-hidden": "true"
|
|
2795
2798
|
}
|
|
2796
2799
|
)
|
|
@@ -2808,7 +2811,7 @@ function NavigationMenuContent({
|
|
|
2808
2811
|
"data-slot": "navigation-menu-content",
|
|
2809
2812
|
className: cn(
|
|
2810
2813
|
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
2811
|
-
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-
|
|
2814
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-400 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
2812
2815
|
className
|
|
2813
2816
|
),
|
|
2814
2817
|
...props
|
|
@@ -3084,7 +3087,7 @@ function RadioGroupItem({
|
|
|
3084
3087
|
{
|
|
3085
3088
|
"data-slot": "radio-group-item",
|
|
3086
3089
|
className: cn(
|
|
3087
|
-
"border-input text-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-
|
|
3090
|
+
"border-input text-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border transition-all duration-400 outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary",
|
|
3088
3091
|
className
|
|
3089
3092
|
),
|
|
3090
3093
|
...props,
|
|
@@ -3092,8 +3095,8 @@ function RadioGroupItem({
|
|
|
3092
3095
|
RadioGroupPrimitive.Indicator,
|
|
3093
3096
|
{
|
|
3094
3097
|
"data-slot": "radio-group-indicator",
|
|
3095
|
-
className: "relative flex items-center justify-center
|
|
3096
|
-
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-white absolute top-1/2 left-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2
|
|
3098
|
+
className: "relative flex items-center justify-center",
|
|
3099
|
+
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-white absolute top-1/2 left-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2" })
|
|
3097
3100
|
}
|
|
3098
3101
|
)
|
|
3099
3102
|
}
|
|
@@ -4255,13 +4258,114 @@ function Slider({
|
|
|
4255
4258
|
);
|
|
4256
4259
|
}
|
|
4257
4260
|
|
|
4261
|
+
// src/components/ui/useMediaQuery.ts
|
|
4262
|
+
import { useEffect as useEffect5, useState as useState4 } from "react";
|
|
4263
|
+
function useMediaQuery(query) {
|
|
4264
|
+
const getMatches = (query2) => {
|
|
4265
|
+
if (typeof window !== "undefined") {
|
|
4266
|
+
return window.matchMedia(query2).matches;
|
|
4267
|
+
}
|
|
4268
|
+
return false;
|
|
4269
|
+
};
|
|
4270
|
+
const [matches, setMatches] = useState4(getMatches(query));
|
|
4271
|
+
function handleChange() {
|
|
4272
|
+
setMatches(getMatches(query));
|
|
4273
|
+
}
|
|
4274
|
+
useEffect5(() => {
|
|
4275
|
+
const matchMedia = window.matchMedia(query);
|
|
4276
|
+
handleChange();
|
|
4277
|
+
if (matchMedia.addListener) {
|
|
4278
|
+
matchMedia.addListener(handleChange);
|
|
4279
|
+
} else {
|
|
4280
|
+
matchMedia.addEventListener("change", handleChange);
|
|
4281
|
+
}
|
|
4282
|
+
return () => {
|
|
4283
|
+
if (matchMedia.removeListener) {
|
|
4284
|
+
matchMedia.removeListener(handleChange);
|
|
4285
|
+
} else {
|
|
4286
|
+
matchMedia.removeEventListener("change", handleChange);
|
|
4287
|
+
}
|
|
4288
|
+
};
|
|
4289
|
+
}, [query]);
|
|
4290
|
+
return matches;
|
|
4291
|
+
}
|
|
4292
|
+
|
|
4293
|
+
// src/components/ui/smart-dialog-drawer.tsx
|
|
4294
|
+
import { Fragment as Fragment2, jsx as jsx40 } from "react/jsx-runtime";
|
|
4295
|
+
var SmartDialog = ({
|
|
4296
|
+
children,
|
|
4297
|
+
...props
|
|
4298
|
+
}) => {
|
|
4299
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4300
|
+
return isMobile ? /* @__PURE__ */ jsx40(Drawer, { ...props, children }) : /* @__PURE__ */ jsx40(Dialog, { ...props, children });
|
|
4301
|
+
};
|
|
4302
|
+
var SmartDialogContent = ({
|
|
4303
|
+
children,
|
|
4304
|
+
overlayClassName = "",
|
|
4305
|
+
withCloseButton = true,
|
|
4306
|
+
...props
|
|
4307
|
+
}) => {
|
|
4308
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4309
|
+
return isMobile ? /* @__PURE__ */ jsx40(DrawerContent, { ...props, withCloseButton, children }) : /* @__PURE__ */ jsx40(
|
|
4310
|
+
DialogContent,
|
|
4311
|
+
{
|
|
4312
|
+
...props,
|
|
4313
|
+
showCloseButton: withCloseButton,
|
|
4314
|
+
overlayClassName,
|
|
4315
|
+
children
|
|
4316
|
+
}
|
|
4317
|
+
);
|
|
4318
|
+
};
|
|
4319
|
+
var SmartDialogDescription = ({
|
|
4320
|
+
children,
|
|
4321
|
+
...props
|
|
4322
|
+
}) => {
|
|
4323
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4324
|
+
return isMobile ? /* @__PURE__ */ jsx40(DrawerDescription, { ...props, children }) : /* @__PURE__ */ jsx40(DialogDescription, { ...props, children });
|
|
4325
|
+
};
|
|
4326
|
+
var SmartDialogHeader = ({
|
|
4327
|
+
children,
|
|
4328
|
+
...props
|
|
4329
|
+
}) => {
|
|
4330
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4331
|
+
return isMobile ? /* @__PURE__ */ jsx40(DrawerHeader, { ...props, children }) : /* @__PURE__ */ jsx40(DialogHeader, { ...props, children });
|
|
4332
|
+
};
|
|
4333
|
+
var SmartDialogTitle = ({
|
|
4334
|
+
children,
|
|
4335
|
+
...props
|
|
4336
|
+
}) => {
|
|
4337
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4338
|
+
return isMobile ? /* @__PURE__ */ jsx40(DrawerTitle, { ...props, children }) : /* @__PURE__ */ jsx40(DialogTitle, { ...props, children });
|
|
4339
|
+
};
|
|
4340
|
+
var SmartDialogTrigger = ({
|
|
4341
|
+
children,
|
|
4342
|
+
...props
|
|
4343
|
+
}) => {
|
|
4344
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4345
|
+
return isMobile ? /* @__PURE__ */ jsx40(DrawerTrigger, { ...props, children }) : /* @__PURE__ */ jsx40(DialogTrigger, { ...props, children });
|
|
4346
|
+
};
|
|
4347
|
+
var SmartDialogFooter = ({
|
|
4348
|
+
children,
|
|
4349
|
+
...props
|
|
4350
|
+
}) => {
|
|
4351
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4352
|
+
return isMobile ? /* @__PURE__ */ jsx40(DrawerFooter, { ...props, children }) : /* @__PURE__ */ jsx40(DialogFooter, { ...props, children });
|
|
4353
|
+
};
|
|
4354
|
+
var SmartDialogClose = ({
|
|
4355
|
+
children,
|
|
4356
|
+
...props
|
|
4357
|
+
}) => {
|
|
4358
|
+
const isMobile = useMediaQuery("(max-width: 600px)");
|
|
4359
|
+
return isMobile ? /* @__PURE__ */ jsx40(Fragment2, { children: /* @__PURE__ */ jsx40(DrawerClose, { ...props, children }) }) : /* @__PURE__ */ jsx40(DialogClose, { ...props, children });
|
|
4360
|
+
};
|
|
4361
|
+
|
|
4258
4362
|
// src/components/ui/sonner.tsx
|
|
4259
4363
|
import { useTheme } from "next-themes";
|
|
4260
4364
|
import { Toaster as Sonner } from "sonner";
|
|
4261
|
-
import { jsx as
|
|
4365
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
4262
4366
|
var Toaster = ({ ...props }) => {
|
|
4263
4367
|
const { theme = "system" } = useTheme();
|
|
4264
|
-
return /* @__PURE__ */
|
|
4368
|
+
return /* @__PURE__ */ jsx41(
|
|
4265
4369
|
Sonner,
|
|
4266
4370
|
{
|
|
4267
4371
|
theme,
|
|
@@ -4279,26 +4383,26 @@ var Toaster = ({ ...props }) => {
|
|
|
4279
4383
|
// src/components/ui/switch.tsx
|
|
4280
4384
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4281
4385
|
import "react";
|
|
4282
|
-
import { jsx as
|
|
4386
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4283
4387
|
function Switch({
|
|
4284
4388
|
className,
|
|
4285
4389
|
...props
|
|
4286
4390
|
}) {
|
|
4287
|
-
return /* @__PURE__ */
|
|
4391
|
+
return /* @__PURE__ */ jsx42(
|
|
4288
4392
|
SwitchPrimitive.Root,
|
|
4289
4393
|
{
|
|
4290
4394
|
"data-slot": "switch",
|
|
4291
4395
|
className: cn(
|
|
4292
|
-
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-brand-text-vibrant dark:data-[state=unchecked]:bg-input/80 inline-flex h-[
|
|
4396
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-brand-text-vibrant dark:data-[state=unchecked]:bg-input/80 inline-flex h-[24px] w-[40px] shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-offset-1 ",
|
|
4293
4397
|
className
|
|
4294
4398
|
),
|
|
4295
4399
|
...props,
|
|
4296
|
-
children: /* @__PURE__ */
|
|
4400
|
+
children: /* @__PURE__ */ jsx42(
|
|
4297
4401
|
SwitchPrimitive.Thumb,
|
|
4298
4402
|
{
|
|
4299
4403
|
"data-slot": "switch-thumb",
|
|
4300
4404
|
className: cn(
|
|
4301
|
-
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-
|
|
4405
|
+
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-5 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-3px)] data-[state=unchecked]:translate-x-[1px]"
|
|
4302
4406
|
)
|
|
4303
4407
|
}
|
|
4304
4408
|
)
|
|
@@ -4308,14 +4412,14 @@ function Switch({
|
|
|
4308
4412
|
|
|
4309
4413
|
// src/components/ui/table.tsx
|
|
4310
4414
|
import "react";
|
|
4311
|
-
import { jsx as
|
|
4415
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4312
4416
|
function Table({ className, ...props }) {
|
|
4313
|
-
return /* @__PURE__ */
|
|
4417
|
+
return /* @__PURE__ */ jsx43(
|
|
4314
4418
|
"div",
|
|
4315
4419
|
{
|
|
4316
4420
|
"data-slot": "table-container",
|
|
4317
4421
|
className: "relative w-full overflow-x-auto",
|
|
4318
|
-
children: /* @__PURE__ */
|
|
4422
|
+
children: /* @__PURE__ */ jsx43(
|
|
4319
4423
|
"table",
|
|
4320
4424
|
{
|
|
4321
4425
|
"data-slot": "table",
|
|
@@ -4327,7 +4431,7 @@ function Table({ className, ...props }) {
|
|
|
4327
4431
|
);
|
|
4328
4432
|
}
|
|
4329
4433
|
function TableHeader({ className, ...props }) {
|
|
4330
|
-
return /* @__PURE__ */
|
|
4434
|
+
return /* @__PURE__ */ jsx43(
|
|
4331
4435
|
"thead",
|
|
4332
4436
|
{
|
|
4333
4437
|
"data-slot": "table-header",
|
|
@@ -4337,7 +4441,7 @@ function TableHeader({ className, ...props }) {
|
|
|
4337
4441
|
);
|
|
4338
4442
|
}
|
|
4339
4443
|
function TableBody({ className, ...props }) {
|
|
4340
|
-
return /* @__PURE__ */
|
|
4444
|
+
return /* @__PURE__ */ jsx43(
|
|
4341
4445
|
"tbody",
|
|
4342
4446
|
{
|
|
4343
4447
|
"data-slot": "table-body",
|
|
@@ -4347,7 +4451,7 @@ function TableBody({ className, ...props }) {
|
|
|
4347
4451
|
);
|
|
4348
4452
|
}
|
|
4349
4453
|
function TableFooter({ className, ...props }) {
|
|
4350
|
-
return /* @__PURE__ */
|
|
4454
|
+
return /* @__PURE__ */ jsx43(
|
|
4351
4455
|
"tfoot",
|
|
4352
4456
|
{
|
|
4353
4457
|
"data-slot": "table-footer",
|
|
@@ -4360,7 +4464,7 @@ function TableFooter({ className, ...props }) {
|
|
|
4360
4464
|
);
|
|
4361
4465
|
}
|
|
4362
4466
|
function TableRow({ className, ...props }) {
|
|
4363
|
-
return /* @__PURE__ */
|
|
4467
|
+
return /* @__PURE__ */ jsx43(
|
|
4364
4468
|
"tr",
|
|
4365
4469
|
{
|
|
4366
4470
|
"data-slot": "table-row",
|
|
@@ -4373,7 +4477,7 @@ function TableRow({ className, ...props }) {
|
|
|
4373
4477
|
);
|
|
4374
4478
|
}
|
|
4375
4479
|
function TableHead({ className, ...props }) {
|
|
4376
|
-
return /* @__PURE__ */
|
|
4480
|
+
return /* @__PURE__ */ jsx43(
|
|
4377
4481
|
"th",
|
|
4378
4482
|
{
|
|
4379
4483
|
"data-slot": "table-head",
|
|
@@ -4386,7 +4490,7 @@ function TableHead({ className, ...props }) {
|
|
|
4386
4490
|
);
|
|
4387
4491
|
}
|
|
4388
4492
|
function TableCell({ className, ...props }) {
|
|
4389
|
-
return /* @__PURE__ */
|
|
4493
|
+
return /* @__PURE__ */ jsx43(
|
|
4390
4494
|
"td",
|
|
4391
4495
|
{
|
|
4392
4496
|
"data-slot": "table-cell",
|
|
@@ -4402,7 +4506,7 @@ function TableCaption({
|
|
|
4402
4506
|
className,
|
|
4403
4507
|
...props
|
|
4404
4508
|
}) {
|
|
4405
|
-
return /* @__PURE__ */
|
|
4509
|
+
return /* @__PURE__ */ jsx43(
|
|
4406
4510
|
"caption",
|
|
4407
4511
|
{
|
|
4408
4512
|
"data-slot": "table-caption",
|
|
@@ -4415,12 +4519,12 @@ function TableCaption({
|
|
|
4415
4519
|
// src/components/ui/tabs.tsx
|
|
4416
4520
|
import "react";
|
|
4417
4521
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4418
|
-
import { jsx as
|
|
4522
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4419
4523
|
function Tabs({
|
|
4420
4524
|
className,
|
|
4421
4525
|
...props
|
|
4422
4526
|
}) {
|
|
4423
|
-
return /* @__PURE__ */
|
|
4527
|
+
return /* @__PURE__ */ jsx44(
|
|
4424
4528
|
TabsPrimitive.Root,
|
|
4425
4529
|
{
|
|
4426
4530
|
"data-slot": "tabs",
|
|
@@ -4433,7 +4537,7 @@ function TabsList({
|
|
|
4433
4537
|
className,
|
|
4434
4538
|
...props
|
|
4435
4539
|
}) {
|
|
4436
|
-
return /* @__PURE__ */
|
|
4540
|
+
return /* @__PURE__ */ jsx44(
|
|
4437
4541
|
TabsPrimitive.List,
|
|
4438
4542
|
{
|
|
4439
4543
|
"data-slot": "tabs-list",
|
|
@@ -4449,7 +4553,7 @@ function TabsTrigger({
|
|
|
4449
4553
|
className,
|
|
4450
4554
|
...props
|
|
4451
4555
|
}) {
|
|
4452
|
-
return /* @__PURE__ */
|
|
4556
|
+
return /* @__PURE__ */ jsx44(
|
|
4453
4557
|
TabsPrimitive.Trigger,
|
|
4454
4558
|
{
|
|
4455
4559
|
"data-slot": "tabs-trigger",
|
|
@@ -4465,7 +4569,7 @@ function TabsContent({
|
|
|
4465
4569
|
className,
|
|
4466
4570
|
...props
|
|
4467
4571
|
}) {
|
|
4468
|
-
return /* @__PURE__ */
|
|
4572
|
+
return /* @__PURE__ */ jsx44(
|
|
4469
4573
|
TabsPrimitive.Content,
|
|
4470
4574
|
{
|
|
4471
4575
|
"data-slot": "tabs-content",
|
|
@@ -4477,11 +4581,11 @@ function TabsContent({
|
|
|
4477
4581
|
|
|
4478
4582
|
// src/components/ui/textarea.tsx
|
|
4479
4583
|
import * as React41 from "react";
|
|
4480
|
-
import { jsx as
|
|
4584
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4481
4585
|
var textareaBaseStyles = [
|
|
4482
4586
|
// Base styles aligned with Input
|
|
4483
4587
|
"placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
|
|
4484
|
-
"flex w-full min-w-0 rounded-md border bg-transparent text-base shadow-xs transition-all duration-
|
|
4588
|
+
"flex w-full min-w-0 rounded-md border bg-transparent text-base shadow-xs transition-all duration-400",
|
|
4485
4589
|
"outline-none font-sans",
|
|
4486
4590
|
// Disabled
|
|
4487
4591
|
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -4503,7 +4607,7 @@ var errorStyles = [
|
|
|
4503
4607
|
].join(" ");
|
|
4504
4608
|
var Textarea = React41.forwardRef(
|
|
4505
4609
|
({ className, error, ...props }, ref) => {
|
|
4506
|
-
return /* @__PURE__ */
|
|
4610
|
+
return /* @__PURE__ */ jsx45(
|
|
4507
4611
|
"textarea",
|
|
4508
4612
|
{
|
|
4509
4613
|
"data-slot": "textarea",
|
|
@@ -4521,7 +4625,7 @@ Textarea.displayName = "Textarea";
|
|
|
4521
4625
|
import "react";
|
|
4522
4626
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4523
4627
|
import { cva as cva8 } from "class-variance-authority";
|
|
4524
|
-
import { jsx as
|
|
4628
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4525
4629
|
var toggleVariants = cva8(
|
|
4526
4630
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
4527
4631
|
{
|
|
@@ -4548,7 +4652,7 @@ function Toggle({
|
|
|
4548
4652
|
size,
|
|
4549
4653
|
...props
|
|
4550
4654
|
}) {
|
|
4551
|
-
return /* @__PURE__ */
|
|
4655
|
+
return /* @__PURE__ */ jsx46(
|
|
4552
4656
|
TogglePrimitive.Root,
|
|
4553
4657
|
{
|
|
4554
4658
|
"data-slot": "toggle",
|
|
@@ -4562,7 +4666,7 @@ function Toggle({
|
|
|
4562
4666
|
import * as React43 from "react";
|
|
4563
4667
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4564
4668
|
import "class-variance-authority";
|
|
4565
|
-
import { jsx as
|
|
4669
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4566
4670
|
var ToggleGroupContext = React43.createContext({
|
|
4567
4671
|
size: "default",
|
|
4568
4672
|
variant: "default"
|
|
@@ -4574,7 +4678,7 @@ function ToggleGroup({
|
|
|
4574
4678
|
children,
|
|
4575
4679
|
...props
|
|
4576
4680
|
}) {
|
|
4577
|
-
return /* @__PURE__ */
|
|
4681
|
+
return /* @__PURE__ */ jsx47(
|
|
4578
4682
|
ToggleGroupPrimitive.Root,
|
|
4579
4683
|
{
|
|
4580
4684
|
"data-slot": "toggle-group",
|
|
@@ -4585,7 +4689,7 @@ function ToggleGroup({
|
|
|
4585
4689
|
className
|
|
4586
4690
|
),
|
|
4587
4691
|
...props,
|
|
4588
|
-
children: /* @__PURE__ */
|
|
4692
|
+
children: /* @__PURE__ */ jsx47(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
4589
4693
|
}
|
|
4590
4694
|
);
|
|
4591
4695
|
}
|
|
@@ -4597,7 +4701,7 @@ function ToggleGroupItem({
|
|
|
4597
4701
|
...props
|
|
4598
4702
|
}) {
|
|
4599
4703
|
const context = React43.useContext(ToggleGroupContext);
|
|
4600
|
-
return /* @__PURE__ */
|
|
4704
|
+
return /* @__PURE__ */ jsx47(
|
|
4601
4705
|
ToggleGroupPrimitive.Item,
|
|
4602
4706
|
{
|
|
4603
4707
|
"data-slot": "toggle-group-item",
|
|
@@ -4621,7 +4725,7 @@ function ToggleGroupItem({
|
|
|
4621
4725
|
import { Slot as Slot7 } from "@radix-ui/react-slot";
|
|
4622
4726
|
import { cva as cva9 } from "class-variance-authority";
|
|
4623
4727
|
import "react";
|
|
4624
|
-
import { jsx as
|
|
4728
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
4625
4729
|
var displayTextVariants = cva9(
|
|
4626
4730
|
"tracking-normal font-normal leading-none text-brand-dark font-serif italic",
|
|
4627
4731
|
{
|
|
@@ -4644,7 +4748,7 @@ function DisplayHeading({
|
|
|
4644
4748
|
...props
|
|
4645
4749
|
}) {
|
|
4646
4750
|
const Comp = asChild ? Slot7 : "h1";
|
|
4647
|
-
return /* @__PURE__ */
|
|
4751
|
+
return /* @__PURE__ */ jsx48(
|
|
4648
4752
|
Comp,
|
|
4649
4753
|
{
|
|
4650
4754
|
"data-slot": "h1",
|
|
@@ -4673,7 +4777,7 @@ function Body({
|
|
|
4673
4777
|
...props
|
|
4674
4778
|
}) {
|
|
4675
4779
|
const Comp = asChild ? Slot7 : "p";
|
|
4676
|
-
return /* @__PURE__ */
|
|
4780
|
+
return /* @__PURE__ */ jsx48(
|
|
4677
4781
|
Comp,
|
|
4678
4782
|
{
|
|
4679
4783
|
"data-slot": "h1",
|
|
@@ -4688,7 +4792,7 @@ function HeadingXL({
|
|
|
4688
4792
|
...props
|
|
4689
4793
|
}) {
|
|
4690
4794
|
const Comp = asChild ? Slot7 : "h1";
|
|
4691
|
-
return /* @__PURE__ */
|
|
4795
|
+
return /* @__PURE__ */ jsx48(
|
|
4692
4796
|
Comp,
|
|
4693
4797
|
{
|
|
4694
4798
|
"data-slot": "h1",
|
|
@@ -4706,7 +4810,7 @@ function HeadingL({
|
|
|
4706
4810
|
...props
|
|
4707
4811
|
}) {
|
|
4708
4812
|
const Comp = asChild ? Slot7 : "h2";
|
|
4709
|
-
return /* @__PURE__ */
|
|
4813
|
+
return /* @__PURE__ */ jsx48(
|
|
4710
4814
|
Comp,
|
|
4711
4815
|
{
|
|
4712
4816
|
"data-slot": "h2",
|
|
@@ -4724,7 +4828,7 @@ function HeadingM({
|
|
|
4724
4828
|
...props
|
|
4725
4829
|
}) {
|
|
4726
4830
|
const Comp = asChild ? Slot7 : "h3";
|
|
4727
|
-
return /* @__PURE__ */
|
|
4831
|
+
return /* @__PURE__ */ jsx48(
|
|
4728
4832
|
Comp,
|
|
4729
4833
|
{
|
|
4730
4834
|
"data-slot": "h3",
|
|
@@ -4742,7 +4846,7 @@ function HeadingS({
|
|
|
4742
4846
|
...props
|
|
4743
4847
|
}) {
|
|
4744
4848
|
const Comp = asChild ? Slot7 : "h4";
|
|
4745
|
-
return /* @__PURE__ */
|
|
4849
|
+
return /* @__PURE__ */ jsx48(
|
|
4746
4850
|
Comp,
|
|
4747
4851
|
{
|
|
4748
4852
|
"data-slot": "h4",
|
|
@@ -4760,7 +4864,7 @@ function HeadingXS({
|
|
|
4760
4864
|
...props
|
|
4761
4865
|
}) {
|
|
4762
4866
|
const Comp = asChild ? Slot7 : "h5";
|
|
4763
|
-
return /* @__PURE__ */
|
|
4867
|
+
return /* @__PURE__ */ jsx48(
|
|
4764
4868
|
Comp,
|
|
4765
4869
|
{
|
|
4766
4870
|
"data-slot": "h5",
|
|
@@ -4778,7 +4882,7 @@ function HeadingXXS({
|
|
|
4778
4882
|
...props
|
|
4779
4883
|
}) {
|
|
4780
4884
|
const Comp = asChild ? Slot7 : "h6";
|
|
4781
|
-
return /* @__PURE__ */
|
|
4885
|
+
return /* @__PURE__ */ jsx48(
|
|
4782
4886
|
Comp,
|
|
4783
4887
|
{
|
|
4784
4888
|
"data-slot": "h5",
|
|
@@ -5016,6 +5120,14 @@ export {
|
|
|
5016
5120
|
SidebarTrigger,
|
|
5017
5121
|
Skeleton,
|
|
5018
5122
|
Slider,
|
|
5123
|
+
SmartDialog,
|
|
5124
|
+
SmartDialogClose,
|
|
5125
|
+
SmartDialogContent,
|
|
5126
|
+
SmartDialogDescription,
|
|
5127
|
+
SmartDialogFooter,
|
|
5128
|
+
SmartDialogHeader,
|
|
5129
|
+
SmartDialogTitle,
|
|
5130
|
+
SmartDialogTrigger,
|
|
5019
5131
|
Switch,
|
|
5020
5132
|
Table,
|
|
5021
5133
|
TableBody,
|