@codapet/design-system 0.3.1 → 0.3.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/dist/index.d.mts CHANGED
@@ -173,8 +173,9 @@ 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
180
  declare function DialogHeader({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
180
181
  declare function DialogFooter({ className, ...props }: React$1.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
@@ -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>): react_jsx_runtime.JSX.Element;
228
- declare function DrawerHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
229
- declare function DrawerFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
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
@@ -1277,9 +1277,9 @@ import { Command as CommandPrimitive } from "cmdk";
1277
1277
  import { SearchIcon } from "lucide-react";
1278
1278
 
1279
1279
  // src/components/ui/dialog.tsx
1280
- import "react";
1281
1280
  import * as DialogPrimitive from "@radix-ui/react-dialog";
1282
1281
  import { XIcon } from "lucide-react";
1282
+ import "react";
1283
1283
  import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
1284
1284
  function Dialog({
1285
1285
  ...props
@@ -1320,11 +1320,12 @@ function DialogOverlay({
1320
1320
  function DialogContent({
1321
1321
  className,
1322
1322
  children,
1323
+ overlayClassName,
1323
1324
  showCloseButton = true,
1324
1325
  ...props
1325
1326
  }) {
1326
1327
  return /* @__PURE__ */ jsxs6(DialogPortal, { "data-slot": "dialog-portal", children: [
1327
- /* @__PURE__ */ jsx15(DialogOverlay, {}),
1328
+ /* @__PURE__ */ jsx15(DialogOverlay, { className: overlayClassName }),
1328
1329
  /* @__PURE__ */ jsxs6(
1329
1330
  DialogPrimitive.Content,
1330
1331
  {
@@ -1810,6 +1811,7 @@ function DrawerOverlay({
1810
1811
  function DrawerContent({
1811
1812
  className,
1812
1813
  children,
1814
+ withCloseButton = true,
1813
1815
  ...props
1814
1816
  }) {
1815
1817
  return /* @__PURE__ */ jsxs9(DrawerPortal, { "data-slot": "drawer-portal", children: [
@@ -1828,7 +1830,7 @@ function DrawerContent({
1828
1830
  ),
1829
1831
  ...props,
1830
1832
  children: [
1831
- /* @__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" }),
1832
1834
  children
1833
1835
  ]
1834
1836
  }
@@ -2312,8 +2314,8 @@ var inputVariants = cva5(
2312
2314
  {
2313
2315
  variants: {
2314
2316
  size: {
2315
- sm: "h-9 px-3 py-1 text-sm",
2316
- md: "h-10 px-3 py-2 text-sm",
2317
+ sm: "h-9 px-3 py-1 text-base",
2318
+ md: "h-10 px-3 py-2 text-base",
2317
2319
  lg: "h-12 px-4 py-3 text-base"
2318
2320
  }
2319
2321
  },
@@ -4256,13 +4258,114 @@ function Slider({
4256
4258
  );
4257
4259
  }
4258
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
+
4259
4362
  // src/components/ui/sonner.tsx
4260
4363
  import { useTheme } from "next-themes";
4261
4364
  import { Toaster as Sonner } from "sonner";
4262
- import { jsx as jsx40 } from "react/jsx-runtime";
4365
+ import { jsx as jsx41 } from "react/jsx-runtime";
4263
4366
  var Toaster = ({ ...props }) => {
4264
4367
  const { theme = "system" } = useTheme();
4265
- return /* @__PURE__ */ jsx40(
4368
+ return /* @__PURE__ */ jsx41(
4266
4369
  Sonner,
4267
4370
  {
4268
4371
  theme,
@@ -4280,12 +4383,12 @@ var Toaster = ({ ...props }) => {
4280
4383
  // src/components/ui/switch.tsx
4281
4384
  import * as SwitchPrimitive from "@radix-ui/react-switch";
4282
4385
  import "react";
4283
- import { jsx as jsx41 } from "react/jsx-runtime";
4386
+ import { jsx as jsx42 } from "react/jsx-runtime";
4284
4387
  function Switch({
4285
4388
  className,
4286
4389
  ...props
4287
4390
  }) {
4288
- return /* @__PURE__ */ jsx41(
4391
+ return /* @__PURE__ */ jsx42(
4289
4392
  SwitchPrimitive.Root,
4290
4393
  {
4291
4394
  "data-slot": "switch",
@@ -4294,7 +4397,7 @@ function Switch({
4294
4397
  className
4295
4398
  ),
4296
4399
  ...props,
4297
- children: /* @__PURE__ */ jsx41(
4400
+ children: /* @__PURE__ */ jsx42(
4298
4401
  SwitchPrimitive.Thumb,
4299
4402
  {
4300
4403
  "data-slot": "switch-thumb",
@@ -4309,14 +4412,14 @@ function Switch({
4309
4412
 
4310
4413
  // src/components/ui/table.tsx
4311
4414
  import "react";
4312
- import { jsx as jsx42 } from "react/jsx-runtime";
4415
+ import { jsx as jsx43 } from "react/jsx-runtime";
4313
4416
  function Table({ className, ...props }) {
4314
- return /* @__PURE__ */ jsx42(
4417
+ return /* @__PURE__ */ jsx43(
4315
4418
  "div",
4316
4419
  {
4317
4420
  "data-slot": "table-container",
4318
4421
  className: "relative w-full overflow-x-auto",
4319
- children: /* @__PURE__ */ jsx42(
4422
+ children: /* @__PURE__ */ jsx43(
4320
4423
  "table",
4321
4424
  {
4322
4425
  "data-slot": "table",
@@ -4328,7 +4431,7 @@ function Table({ className, ...props }) {
4328
4431
  );
4329
4432
  }
4330
4433
  function TableHeader({ className, ...props }) {
4331
- return /* @__PURE__ */ jsx42(
4434
+ return /* @__PURE__ */ jsx43(
4332
4435
  "thead",
4333
4436
  {
4334
4437
  "data-slot": "table-header",
@@ -4338,7 +4441,7 @@ function TableHeader({ className, ...props }) {
4338
4441
  );
4339
4442
  }
4340
4443
  function TableBody({ className, ...props }) {
4341
- return /* @__PURE__ */ jsx42(
4444
+ return /* @__PURE__ */ jsx43(
4342
4445
  "tbody",
4343
4446
  {
4344
4447
  "data-slot": "table-body",
@@ -4348,7 +4451,7 @@ function TableBody({ className, ...props }) {
4348
4451
  );
4349
4452
  }
4350
4453
  function TableFooter({ className, ...props }) {
4351
- return /* @__PURE__ */ jsx42(
4454
+ return /* @__PURE__ */ jsx43(
4352
4455
  "tfoot",
4353
4456
  {
4354
4457
  "data-slot": "table-footer",
@@ -4361,7 +4464,7 @@ function TableFooter({ className, ...props }) {
4361
4464
  );
4362
4465
  }
4363
4466
  function TableRow({ className, ...props }) {
4364
- return /* @__PURE__ */ jsx42(
4467
+ return /* @__PURE__ */ jsx43(
4365
4468
  "tr",
4366
4469
  {
4367
4470
  "data-slot": "table-row",
@@ -4374,7 +4477,7 @@ function TableRow({ className, ...props }) {
4374
4477
  );
4375
4478
  }
4376
4479
  function TableHead({ className, ...props }) {
4377
- return /* @__PURE__ */ jsx42(
4480
+ return /* @__PURE__ */ jsx43(
4378
4481
  "th",
4379
4482
  {
4380
4483
  "data-slot": "table-head",
@@ -4387,7 +4490,7 @@ function TableHead({ className, ...props }) {
4387
4490
  );
4388
4491
  }
4389
4492
  function TableCell({ className, ...props }) {
4390
- return /* @__PURE__ */ jsx42(
4493
+ return /* @__PURE__ */ jsx43(
4391
4494
  "td",
4392
4495
  {
4393
4496
  "data-slot": "table-cell",
@@ -4403,7 +4506,7 @@ function TableCaption({
4403
4506
  className,
4404
4507
  ...props
4405
4508
  }) {
4406
- return /* @__PURE__ */ jsx42(
4509
+ return /* @__PURE__ */ jsx43(
4407
4510
  "caption",
4408
4511
  {
4409
4512
  "data-slot": "table-caption",
@@ -4416,12 +4519,12 @@ function TableCaption({
4416
4519
  // src/components/ui/tabs.tsx
4417
4520
  import "react";
4418
4521
  import * as TabsPrimitive from "@radix-ui/react-tabs";
4419
- import { jsx as jsx43 } from "react/jsx-runtime";
4522
+ import { jsx as jsx44 } from "react/jsx-runtime";
4420
4523
  function Tabs({
4421
4524
  className,
4422
4525
  ...props
4423
4526
  }) {
4424
- return /* @__PURE__ */ jsx43(
4527
+ return /* @__PURE__ */ jsx44(
4425
4528
  TabsPrimitive.Root,
4426
4529
  {
4427
4530
  "data-slot": "tabs",
@@ -4434,7 +4537,7 @@ function TabsList({
4434
4537
  className,
4435
4538
  ...props
4436
4539
  }) {
4437
- return /* @__PURE__ */ jsx43(
4540
+ return /* @__PURE__ */ jsx44(
4438
4541
  TabsPrimitive.List,
4439
4542
  {
4440
4543
  "data-slot": "tabs-list",
@@ -4450,7 +4553,7 @@ function TabsTrigger({
4450
4553
  className,
4451
4554
  ...props
4452
4555
  }) {
4453
- return /* @__PURE__ */ jsx43(
4556
+ return /* @__PURE__ */ jsx44(
4454
4557
  TabsPrimitive.Trigger,
4455
4558
  {
4456
4559
  "data-slot": "tabs-trigger",
@@ -4466,7 +4569,7 @@ function TabsContent({
4466
4569
  className,
4467
4570
  ...props
4468
4571
  }) {
4469
- return /* @__PURE__ */ jsx43(
4572
+ return /* @__PURE__ */ jsx44(
4470
4573
  TabsPrimitive.Content,
4471
4574
  {
4472
4575
  "data-slot": "tabs-content",
@@ -4478,7 +4581,7 @@ function TabsContent({
4478
4581
 
4479
4582
  // src/components/ui/textarea.tsx
4480
4583
  import * as React41 from "react";
4481
- import { jsx as jsx44 } from "react/jsx-runtime";
4584
+ import { jsx as jsx45 } from "react/jsx-runtime";
4482
4585
  var textareaBaseStyles = [
4483
4586
  // Base styles aligned with Input
4484
4587
  "placeholder:text-gray-subtle selection:bg-primary selection:text-primary-foreground",
@@ -4504,7 +4607,7 @@ var errorStyles = [
4504
4607
  ].join(" ");
4505
4608
  var Textarea = React41.forwardRef(
4506
4609
  ({ className, error, ...props }, ref) => {
4507
- return /* @__PURE__ */ jsx44(
4610
+ return /* @__PURE__ */ jsx45(
4508
4611
  "textarea",
4509
4612
  {
4510
4613
  "data-slot": "textarea",
@@ -4522,7 +4625,7 @@ Textarea.displayName = "Textarea";
4522
4625
  import "react";
4523
4626
  import * as TogglePrimitive from "@radix-ui/react-toggle";
4524
4627
  import { cva as cva8 } from "class-variance-authority";
4525
- import { jsx as jsx45 } from "react/jsx-runtime";
4628
+ import { jsx as jsx46 } from "react/jsx-runtime";
4526
4629
  var toggleVariants = cva8(
4527
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",
4528
4631
  {
@@ -4549,7 +4652,7 @@ function Toggle({
4549
4652
  size,
4550
4653
  ...props
4551
4654
  }) {
4552
- return /* @__PURE__ */ jsx45(
4655
+ return /* @__PURE__ */ jsx46(
4553
4656
  TogglePrimitive.Root,
4554
4657
  {
4555
4658
  "data-slot": "toggle",
@@ -4563,7 +4666,7 @@ function Toggle({
4563
4666
  import * as React43 from "react";
4564
4667
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
4565
4668
  import "class-variance-authority";
4566
- import { jsx as jsx46 } from "react/jsx-runtime";
4669
+ import { jsx as jsx47 } from "react/jsx-runtime";
4567
4670
  var ToggleGroupContext = React43.createContext({
4568
4671
  size: "default",
4569
4672
  variant: "default"
@@ -4575,7 +4678,7 @@ function ToggleGroup({
4575
4678
  children,
4576
4679
  ...props
4577
4680
  }) {
4578
- return /* @__PURE__ */ jsx46(
4681
+ return /* @__PURE__ */ jsx47(
4579
4682
  ToggleGroupPrimitive.Root,
4580
4683
  {
4581
4684
  "data-slot": "toggle-group",
@@ -4586,7 +4689,7 @@ function ToggleGroup({
4586
4689
  className
4587
4690
  ),
4588
4691
  ...props,
4589
- children: /* @__PURE__ */ jsx46(ToggleGroupContext.Provider, { value: { variant, size }, children })
4692
+ children: /* @__PURE__ */ jsx47(ToggleGroupContext.Provider, { value: { variant, size }, children })
4590
4693
  }
4591
4694
  );
4592
4695
  }
@@ -4598,7 +4701,7 @@ function ToggleGroupItem({
4598
4701
  ...props
4599
4702
  }) {
4600
4703
  const context = React43.useContext(ToggleGroupContext);
4601
- return /* @__PURE__ */ jsx46(
4704
+ return /* @__PURE__ */ jsx47(
4602
4705
  ToggleGroupPrimitive.Item,
4603
4706
  {
4604
4707
  "data-slot": "toggle-group-item",
@@ -4622,7 +4725,7 @@ function ToggleGroupItem({
4622
4725
  import { Slot as Slot7 } from "@radix-ui/react-slot";
4623
4726
  import { cva as cva9 } from "class-variance-authority";
4624
4727
  import "react";
4625
- import { jsx as jsx47 } from "react/jsx-runtime";
4728
+ import { jsx as jsx48 } from "react/jsx-runtime";
4626
4729
  var displayTextVariants = cva9(
4627
4730
  "tracking-normal font-normal leading-none text-brand-dark font-serif italic",
4628
4731
  {
@@ -4645,7 +4748,7 @@ function DisplayHeading({
4645
4748
  ...props
4646
4749
  }) {
4647
4750
  const Comp = asChild ? Slot7 : "h1";
4648
- return /* @__PURE__ */ jsx47(
4751
+ return /* @__PURE__ */ jsx48(
4649
4752
  Comp,
4650
4753
  {
4651
4754
  "data-slot": "h1",
@@ -4674,7 +4777,7 @@ function Body({
4674
4777
  ...props
4675
4778
  }) {
4676
4779
  const Comp = asChild ? Slot7 : "p";
4677
- return /* @__PURE__ */ jsx47(
4780
+ return /* @__PURE__ */ jsx48(
4678
4781
  Comp,
4679
4782
  {
4680
4783
  "data-slot": "h1",
@@ -4689,7 +4792,7 @@ function HeadingXL({
4689
4792
  ...props
4690
4793
  }) {
4691
4794
  const Comp = asChild ? Slot7 : "h1";
4692
- return /* @__PURE__ */ jsx47(
4795
+ return /* @__PURE__ */ jsx48(
4693
4796
  Comp,
4694
4797
  {
4695
4798
  "data-slot": "h1",
@@ -4707,7 +4810,7 @@ function HeadingL({
4707
4810
  ...props
4708
4811
  }) {
4709
4812
  const Comp = asChild ? Slot7 : "h2";
4710
- return /* @__PURE__ */ jsx47(
4813
+ return /* @__PURE__ */ jsx48(
4711
4814
  Comp,
4712
4815
  {
4713
4816
  "data-slot": "h2",
@@ -4725,7 +4828,7 @@ function HeadingM({
4725
4828
  ...props
4726
4829
  }) {
4727
4830
  const Comp = asChild ? Slot7 : "h3";
4728
- return /* @__PURE__ */ jsx47(
4831
+ return /* @__PURE__ */ jsx48(
4729
4832
  Comp,
4730
4833
  {
4731
4834
  "data-slot": "h3",
@@ -4743,7 +4846,7 @@ function HeadingS({
4743
4846
  ...props
4744
4847
  }) {
4745
4848
  const Comp = asChild ? Slot7 : "h4";
4746
- return /* @__PURE__ */ jsx47(
4849
+ return /* @__PURE__ */ jsx48(
4747
4850
  Comp,
4748
4851
  {
4749
4852
  "data-slot": "h4",
@@ -4761,7 +4864,7 @@ function HeadingXS({
4761
4864
  ...props
4762
4865
  }) {
4763
4866
  const Comp = asChild ? Slot7 : "h5";
4764
- return /* @__PURE__ */ jsx47(
4867
+ return /* @__PURE__ */ jsx48(
4765
4868
  Comp,
4766
4869
  {
4767
4870
  "data-slot": "h5",
@@ -4779,7 +4882,7 @@ function HeadingXXS({
4779
4882
  ...props
4780
4883
  }) {
4781
4884
  const Comp = asChild ? Slot7 : "h6";
4782
- return /* @__PURE__ */ jsx47(
4885
+ return /* @__PURE__ */ jsx48(
4783
4886
  Comp,
4784
4887
  {
4785
4888
  "data-slot": "h5",
@@ -5017,6 +5120,14 @@ export {
5017
5120
  SidebarTrigger,
5018
5121
  Skeleton,
5019
5122
  Slider,
5123
+ SmartDialog,
5124
+ SmartDialogClose,
5125
+ SmartDialogContent,
5126
+ SmartDialogDescription,
5127
+ SmartDialogFooter,
5128
+ SmartDialogHeader,
5129
+ SmartDialogTitle,
5130
+ SmartDialogTrigger,
5020
5131
  Switch,
5021
5132
  Table,
5022
5133
  TableBody,