@sonamu-kit/react-components 0.4.3 → 0.4.5
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/.storybook/main.d.ts +3 -0
- package/dist/.storybook/preview.d.ts +3 -0
- package/dist/_virtual/~icons/lucide/arrow-left.js +21 -0
- package/dist/_virtual/~icons/lucide/arrow-left.js.map +1 -0
- package/dist/_virtual/~icons/lucide/arrow-right.js +21 -0
- package/dist/_virtual/~icons/lucide/arrow-right.js.map +1 -0
- package/dist/_virtual/~icons/lucide/calendar.js +31 -0
- package/dist/_virtual/~icons/lucide/calendar.js.map +1 -0
- package/dist/_virtual/~icons/lucide/check.js +21 -0
- package/dist/_virtual/~icons/lucide/check.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevron-down.js +21 -0
- package/dist/_virtual/~icons/lucide/chevron-down.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevron-left.js +21 -0
- package/dist/_virtual/~icons/lucide/chevron-left.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevron-right.js +21 -0
- package/dist/_virtual/~icons/lucide/chevron-right.js.map +1 -0
- package/dist/_virtual/~icons/lucide/chevrons-up-down.js +21 -0
- package/dist/_virtual/~icons/lucide/chevrons-up-down.js.map +1 -0
- package/dist/_virtual/~icons/lucide/circle.js +23 -0
- package/dist/_virtual/~icons/lucide/circle.js.map +1 -0
- package/dist/_virtual/~icons/lucide/dot.js +23 -0
- package/dist/_virtual/~icons/lucide/dot.js.map +1 -0
- package/dist/_virtual/~icons/lucide/grip-vertical.js +52 -0
- package/dist/_virtual/~icons/lucide/grip-vertical.js.map +1 -0
- package/dist/_virtual/~icons/lucide/image.js +36 -0
- package/dist/_virtual/~icons/lucide/image.js.map +1 -0
- package/dist/_virtual/~icons/lucide/loader-2.js +21 -0
- package/dist/_virtual/~icons/lucide/loader-2.js.map +1 -0
- package/dist/_virtual/~icons/lucide/loader2.js +21 -0
- package/dist/_virtual/~icons/lucide/loader2.js.map +1 -0
- package/dist/_virtual/~icons/lucide/more-horizontal.js +37 -0
- package/dist/_virtual/~icons/lucide/more-horizontal.js.map +1 -0
- package/dist/_virtual/~icons/lucide/panel-left.js +27 -0
- package/dist/_virtual/~icons/lucide/panel-left.js.map +1 -0
- package/dist/_virtual/~icons/lucide/plus.js +21 -0
- package/dist/_virtual/~icons/lucide/plus.js.map +1 -0
- package/dist/_virtual/~icons/lucide/search.js +25 -0
- package/dist/_virtual/~icons/lucide/search.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.js +21 -0
- package/dist/_virtual/~icons/lucide/trash-2.js.map +1 -0
- package/dist/_virtual/~icons/lucide/upload.js +21 -0
- package/dist/_virtual/~icons/lucide/upload.js.map +1 -0
- package/dist/_virtual/~icons/lucide/x-circle.js +25 -0
- package/dist/_virtual/~icons/lucide/x-circle.js.map +1 -0
- package/dist/_virtual/~icons/lucide/x.js +21 -0
- package/dist/_virtual/~icons/lucide/x.js.map +1 -0
- package/dist/components/index.js +61 -0
- package/dist/components/ui/accordion.js +37 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.js +56 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.js +33 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.js +7 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.js +27 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.js +24 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.js +63 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.js +59 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.js +49 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.js +56 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.js +119 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/checkbox.js +56 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.js +7 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.js +68 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.js +76 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/common-modal.js +64 -0
- package/dist/components/ui/common-modal.js.map +1 -0
- package/dist/components/ui/context-menu.js +75 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/date-input.js +15 -0
- package/dist/components/ui/date-input.js.map +1 -0
- package/dist/components/ui/date-picker.js +105 -0
- package/dist/components/ui/date-picker.js.map +1 -0
- package/dist/components/ui/dialog.js +52 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/drawer.js +50 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.js +77 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/file-input.js +268 -0
- package/dist/components/ui/file-input.js.map +1 -0
- package/dist/components/ui/form.js +81 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/hover-card.js +17 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-otp.js +43 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.js +22 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.js +16 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.js +108 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/month-picker-multiple.js +236 -0
- package/dist/components/ui/month-picker-multiple.js.map +1 -0
- package/dist/components/ui/navigation-menu.js +60 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.js +55 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.js +36 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.js +26 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/range-number-input.js +41 -0
- package/dist/components/ui/range-number-input.js.map +1 -0
- package/dist/components/ui/resizable.js +21 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.js +32 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select/enum-select.js +43 -0
- package/dist/components/ui/select/enum-select.js.map +1 -0
- package/dist/components/ui/select/id-async-select.js +160 -0
- package/dist/components/ui/select/id-async-select.js.map +1 -0
- package/dist/components/ui/select/select.js +337 -0
- package/dist/components/ui/select/select.js.map +1 -0
- package/dist/components/ui/separator.js +17 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.js +60 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.js +347 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.js +13 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.js +37 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonamu-filter/constants.js +31 -0
- package/dist/components/ui/sonamu-filter/constants.js.map +1 -0
- package/dist/components/ui/sonamu-filter/rule-row-input.js +76 -0
- package/dist/components/ui/sonamu-filter/rule-row-input.js.map +1 -0
- package/dist/components/ui/sonamu-filter/sonamu-filter-modal.js +112 -0
- package/dist/components/ui/sonamu-filter/sonamu-filter-modal.js.map +1 -0
- package/dist/components/ui/sonamu-filter/sonamu-filter-popover.js +60 -0
- package/dist/components/ui/sonamu-filter/sonamu-filter-popover.js.map +1 -0
- package/dist/components/ui/sonamu-filter/utils.js +40 -0
- package/dist/components/ui/sonamu-filter/utils.js.map +1 -0
- package/dist/components/ui/sonamu-filter/value-input.js +101 -0
- package/dist/components/ui/sonamu-filter/value-input.js.map +1 -0
- package/dist/components/ui/switch.js +33 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.js +70 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.js +27 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/tag-input.js +57 -0
- package/dist/components/ui/tag-input.js.map +1 -0
- package/dist/components/ui/textarea.js +20 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.js +55 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toaster.js +22 -0
- package/dist/components/ui/toaster.js.map +1 -0
- package/dist/components/ui/toggle-group.js +39 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.js +42 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.js +16 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/index.js +2 -0
- package/dist/contexts/sonamu-context.js +28 -0
- package/dist/contexts/sonamu-context.js.map +1 -0
- package/dist/contexts/types.d.ts +2 -1
- package/dist/demo/App.d.ts +2 -0
- package/dist/demo/Layout.d.ts +2 -0
- package/dist/demo/components/FormDebugPanel.d.ts +11 -0
- package/dist/demo/main.d.ts +0 -0
- package/dist/demo/routeTree.gen.d.ts +102 -0
- package/dist/demo/routes/__root.d.ts +1 -0
- package/dist/demo/routes/data-display.d.ts +1 -0
- package/dist/demo/routes/dialogs-alerts.d.ts +1 -0
- package/dist/demo/routes/form.d.ts +1 -0
- package/dist/demo/routes/index.d.ts +1 -0
- package/dist/demo/routes/layout.d.ts +1 -0
- package/dist/demo/routes/navigation.d.ts +1 -0
- package/dist/demo/schemas/data-display-demo.schema.d.ts +20 -0
- package/dist/demo/schemas/dialogs-alerts-demo.schema.d.ts +32 -0
- package/dist/demo/schemas/form-demo.schema.d.ts +33 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/use-toast.js +112 -0
- package/dist/hooks/use-toast.js.map +1 -0
- package/dist/i18n/rc-keys.js +75 -0
- package/dist/i18n/rc-keys.js.map +1 -0
- package/dist/index.js +70 -0
- package/dist/lib/base-helpers.js +43 -0
- package/dist/lib/base-helpers.js.map +1 -0
- package/dist/lib/caster.js +27 -0
- package/dist/lib/caster.js.map +1 -0
- package/dist/lib/form-helpers.js +74 -0
- package/dist/lib/form-helpers.js.map +1 -0
- package/dist/lib/index.js +9 -0
- package/dist/lib/list-helpers.js +70 -0
- package/dist/lib/list-helpers.js.map +1 -0
- package/dist/lib/modal-helpers.js +30 -0
- package/dist/lib/modal-helpers.js.map +1 -0
- package/dist/lib/types.js +86 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/use-mobile.js +16 -0
- package/dist/lib/use-mobile.js.map +1 -0
- package/dist/lib/utils.js +23 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/router/index.d.ts +1 -0
- package/dist/router/index.js +1 -0
- package/dist/styles/globals.css +1 -1
- package/package.json +16 -12
- package/dist/react-components.es.js +0 -4488
- package/dist/react-components.es.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { toast as ee, useToast as te } from "../hooks/use-toast.js";
|
|
2
|
+
import { Accordion as ne, AccordionContent as e, AccordionItem as t, AccordionTrigger as n } from "./ui/accordion.js";
|
|
3
|
+
import { Alert as r, AlertDescription as i, AlertTitle as a } from "./ui/alert.js";
|
|
4
|
+
import { Button as o, buttonVariants as s } from "./ui/button.js";
|
|
5
|
+
import { AlertDialog as c, AlertDialogAction as l, AlertDialogCancel as u, AlertDialogContent as d, AlertDialogDescription as f, AlertDialogFooter as p, AlertDialogHeader as m, AlertDialogOverlay as h, AlertDialogPortal as g, AlertDialogTitle as _, AlertDialogTrigger as v } from "./ui/alert-dialog.js";
|
|
6
|
+
import { AspectRatio as y } from "./ui/aspect-ratio.js";
|
|
7
|
+
import { Avatar as b, AvatarFallback as x, AvatarImage as S } from "./ui/avatar.js";
|
|
8
|
+
import { Badge as C, badgeVariants as w } from "./ui/badge.js";
|
|
9
|
+
import { Breadcrumb as T, BreadcrumbEllipsis as E, BreadcrumbItem as D, BreadcrumbLink as O, BreadcrumbList as k, BreadcrumbPage as A, BreadcrumbSeparator as j } from "./ui/breadcrumb.js";
|
|
10
|
+
import { Calendar as M } from "./ui/calendar.js";
|
|
11
|
+
import { Card as N, CardAction as P, CardContent as F, CardDescription as I, CardFooter as L, CardHeader as R, CardTitle as z } from "./ui/card.js";
|
|
12
|
+
import { Carousel as B, CarouselContent as V, CarouselItem as H, CarouselNext as U, CarouselPrevious as W } from "./ui/carousel.js";
|
|
13
|
+
import { Checkbox as G } from "./ui/checkbox.js";
|
|
14
|
+
import { Collapsible as K, CollapsibleContent as q, CollapsibleTrigger as J } from "./ui/collapsible.js";
|
|
15
|
+
import { Dialog as Y, DialogClose as X, DialogContent as Z, DialogDescription as re, DialogFooter as ie, DialogHeader as ae, DialogOverlay as oe, DialogPortal as se, DialogTitle as ce, DialogTrigger as le } from "./ui/dialog.js";
|
|
16
|
+
import { Command as ue, CommandDialog as de, CommandEmpty as fe, CommandGroup as pe, CommandInput as me, CommandItem as he, CommandList as ge, CommandSeparator as _e, CommandShortcut as ve } from "./ui/command.js";
|
|
17
|
+
import { Popover as ye, PopoverAnchor as be, PopoverContent as xe, PopoverTrigger as Se } from "./ui/popover.js";
|
|
18
|
+
import { Combobox as Ce } from "./ui/combobox.js";
|
|
19
|
+
import { CommonModal as we, commonModalAtom as Te, useCommonModal as Ee } from "./ui/common-modal.js";
|
|
20
|
+
import { ContextMenu as De, ContextMenuCheckboxItem as Oe, ContextMenuContent as ke, ContextMenuGroup as Ae, ContextMenuItem as je, ContextMenuLabel as Me, ContextMenuPortal as Ne, ContextMenuRadioGroup as Pe, ContextMenuRadioItem as Fe, ContextMenuSeparator as Ie, ContextMenuShortcut as Le, ContextMenuSub as Re, ContextMenuSubContent as ze, ContextMenuSubTrigger as Be, ContextMenuTrigger as Ve } from "./ui/context-menu.js";
|
|
21
|
+
import { Input as He } from "./ui/input.js";
|
|
22
|
+
import { DateInput as Ue } from "./ui/date-input.js";
|
|
23
|
+
import { DatePicker as We, DatePickerWithDropdown as Ge, DatePickerWithRange as Ke } from "./ui/date-picker.js";
|
|
24
|
+
import { Drawer as qe, DrawerClose as Je, DrawerContent as Ye, DrawerDescription as Xe, DrawerFooter as Ze, DrawerHeader as Qe, DrawerOverlay as $e, DrawerPortal as et, DrawerTitle as tt, DrawerTrigger as nt } from "./ui/drawer.js";
|
|
25
|
+
import { DropdownMenu as rt, DropdownMenuCheckboxItem as it, DropdownMenuContent as at, DropdownMenuGroup as ot, DropdownMenuItem as st, DropdownMenuLabel as ct, DropdownMenuPortal as lt, DropdownMenuRadioGroup as ut, DropdownMenuRadioItem as dt, DropdownMenuSeparator as ft, DropdownMenuShortcut as pt, DropdownMenuSub as mt, DropdownMenuSubContent as ht, DropdownMenuSubTrigger as gt, DropdownMenuTrigger as _t } from "./ui/dropdown-menu.js";
|
|
26
|
+
import { FileInput as vt } from "./ui/file-input.js";
|
|
27
|
+
import { Label as yt } from "./ui/label.js";
|
|
28
|
+
import { Form as bt, FormControl as xt, FormDescription as St, FormField as Ct, FormItem as wt, FormLabel as Tt, FormMessage as Et, useFormField as Dt } from "./ui/form.js";
|
|
29
|
+
import { HoverCard as Ot, HoverCardContent as kt, HoverCardTrigger as Q } from "./ui/hover-card.js";
|
|
30
|
+
import { InputOTP as At, InputOTPGroup as jt, InputOTPSeparator as Mt, InputOTPSlot as Nt } from "./ui/input-otp.js";
|
|
31
|
+
import { Menubar as Pt, MenubarCheckboxItem as Ft, MenubarContent as It, MenubarGroup as Lt, MenubarItem as Rt, MenubarLabel as zt, MenubarMenu as Bt, MenubarPortal as Vt, MenubarRadioGroup as Ht, MenubarRadioItem as Ut, MenubarSeparator as Wt, MenubarShortcut as Gt, MenubarSub as Kt, MenubarSubContent as qt, MenubarSubTrigger as Jt, MenubarTrigger as Yt } from "./ui/menubar.js";
|
|
32
|
+
import { Separator as Xt } from "./ui/separator.js";
|
|
33
|
+
import { Select as Zt } from "./ui/select/select.js";
|
|
34
|
+
import { MonthPickerMultiple as Qt } from "./ui/month-picker-multiple.js";
|
|
35
|
+
import { NavigationMenu as $t, NavigationMenuContent as en, NavigationMenuIndicator as tn, NavigationMenuItem as nn, NavigationMenuLink as rn, NavigationMenuList as an, NavigationMenuTrigger as on, NavigationMenuViewport as sn, navigationMenuTriggerStyle as cn } from "./ui/navigation-menu.js";
|
|
36
|
+
import { Pagination as ln } from "./ui/pagination.js";
|
|
37
|
+
import { Progress as un } from "./ui/progress.js";
|
|
38
|
+
import { RadioGroup as dn, RadioGroupItem as fn } from "./ui/radio-group.js";
|
|
39
|
+
import { RangeNumberInput as pn } from "./ui/range-number-input.js";
|
|
40
|
+
import { ResizableHandle as mn, ResizablePanel as hn, ResizablePanelGroup as gn } from "./ui/resizable.js";
|
|
41
|
+
import { ScrollArea as _n, ScrollBar as vn } from "./ui/scroll-area.js";
|
|
42
|
+
import { EnumSelect as yn } from "./ui/select/enum-select.js";
|
|
43
|
+
import { IdAsyncSelect as bn } from "./ui/select/id-async-select.js";
|
|
44
|
+
import { Sheet as xn, SheetClose as Sn, SheetContent as Cn, SheetDescription as wn, SheetFooter as Tn, SheetHeader as En, SheetOverlay as Dn, SheetPortal as On, SheetTitle as kn, SheetTrigger as An } from "./ui/sheet.js";
|
|
45
|
+
import { Skeleton as jn } from "./ui/skeleton.js";
|
|
46
|
+
import { Tooltip as Mn, TooltipContent as Nn, TooltipProvider as Pn, TooltipTrigger as Fn } from "./ui/tooltip.js";
|
|
47
|
+
import { Sidebar as In, SidebarContent as Ln, SidebarFooter as Rn, SidebarGroup as zn, SidebarGroupAction as Bn, SidebarGroupContent as Vn, SidebarGroupLabel as Hn, SidebarHeader as Un, SidebarInput as Wn, SidebarInset as Gn, SidebarMenu as Kn, SidebarMenuAction as qn, SidebarMenuBadge as Jn, SidebarMenuButton as Yn, SidebarMenuItem as Xn, SidebarMenuSkeleton as Zn, SidebarMenuSub as Qn, SidebarMenuSubButton as $n, SidebarMenuSubItem as er, SidebarProvider as tr, SidebarRail as nr, SidebarSeparator as rr, SidebarTrigger as ir, useSidebar as ar } from "./ui/sidebar.js";
|
|
48
|
+
import { Slider as or } from "./ui/slider.js";
|
|
49
|
+
import { TagInput as sr } from "./ui/tag-input.js";
|
|
50
|
+
import { extractFieldMetaFromSchema as cr } from "./ui/sonamu-filter/utils.js";
|
|
51
|
+
import { SonamuFilterModal as lr } from "./ui/sonamu-filter/sonamu-filter-modal.js";
|
|
52
|
+
import { SonamuFilterPopover as $ } from "./ui/sonamu-filter/sonamu-filter-popover.js";
|
|
53
|
+
import { Switch as ur } from "./ui/switch.js";
|
|
54
|
+
import { Table as dr, TableBody as fr, TableCaption as pr, TableCell as mr, TableFooter as hr, TableHead as gr, TableHeader as _r, TableRow as vr } from "./ui/table.js";
|
|
55
|
+
import { Tabs as yr, TabsContent as br, TabsList as xr, TabsTrigger as Sr } from "./ui/tabs.js";
|
|
56
|
+
import { Textarea as Cr } from "./ui/textarea.js";
|
|
57
|
+
import { Toast as wr, ToastAction as Tr, ToastClose as Er, ToastDescription as Dr, ToastProvider as Or, ToastTitle as kr, ToastViewport as Ar } from "./ui/toast.js";
|
|
58
|
+
import { Toaster as jr } from "./ui/toaster.js";
|
|
59
|
+
import { Toggle as Mr, toggleVariants as Nr } from "./ui/toggle.js";
|
|
60
|
+
import { ToggleGroup as Pr, ToggleGroupItem as Fr } from "./ui/toggle-group.js";
|
|
61
|
+
export { ne as Accordion, e as AccordionContent, t as AccordionItem, n as AccordionTrigger, r as Alert, i as AlertDescription, c as AlertDialog, l as AlertDialogAction, u as AlertDialogCancel, d as AlertDialogContent, f as AlertDialogDescription, p as AlertDialogFooter, m as AlertDialogHeader, h as AlertDialogOverlay, g as AlertDialogPortal, _ as AlertDialogTitle, v as AlertDialogTrigger, a as AlertTitle, y as AspectRatio, b as Avatar, x as AvatarFallback, S as AvatarImage, C as Badge, T as Breadcrumb, E as BreadcrumbEllipsis, D as BreadcrumbItem, O as BreadcrumbLink, k as BreadcrumbList, A as BreadcrumbPage, j as BreadcrumbSeparator, o as Button, M as Calendar, N as Card, P as CardAction, F as CardContent, I as CardDescription, L as CardFooter, R as CardHeader, z as CardTitle, B as Carousel, V as CarouselContent, H as CarouselItem, U as CarouselNext, W as CarouselPrevious, G as Checkbox, K as Collapsible, q as CollapsibleContent, J as CollapsibleTrigger, Ce as Combobox, ue as Command, de as CommandDialog, fe as CommandEmpty, pe as CommandGroup, me as CommandInput, he as CommandItem, ge as CommandList, _e as CommandSeparator, ve as CommandShortcut, we as CommonModal, De as ContextMenu, Oe as ContextMenuCheckboxItem, ke as ContextMenuContent, Ae as ContextMenuGroup, je as ContextMenuItem, Me as ContextMenuLabel, Ne as ContextMenuPortal, Pe as ContextMenuRadioGroup, Fe as ContextMenuRadioItem, Ie as ContextMenuSeparator, Le as ContextMenuShortcut, Re as ContextMenuSub, ze as ContextMenuSubContent, Be as ContextMenuSubTrigger, Ve as ContextMenuTrigger, Ue as DateInput, We as DatePicker, Ge as DatePickerWithDropdown, Ke as DatePickerWithRange, Y as Dialog, X as DialogClose, Z as DialogContent, re as DialogDescription, ie as DialogFooter, ae as DialogHeader, oe as DialogOverlay, se as DialogPortal, ce as DialogTitle, le as DialogTrigger, qe as Drawer, Je as DrawerClose, Ye as DrawerContent, Xe as DrawerDescription, Ze as DrawerFooter, Qe as DrawerHeader, $e as DrawerOverlay, et as DrawerPortal, tt as DrawerTitle, nt as DrawerTrigger, rt as DropdownMenu, it as DropdownMenuCheckboxItem, at as DropdownMenuContent, ot as DropdownMenuGroup, st as DropdownMenuItem, ct as DropdownMenuLabel, lt as DropdownMenuPortal, ut as DropdownMenuRadioGroup, dt as DropdownMenuRadioItem, ft as DropdownMenuSeparator, pt as DropdownMenuShortcut, mt as DropdownMenuSub, ht as DropdownMenuSubContent, gt as DropdownMenuSubTrigger, _t as DropdownMenuTrigger, yn as EnumSelect, vt as FileInput, bt as Form, xt as FormControl, St as FormDescription, Ct as FormField, wt as FormItem, Tt as FormLabel, Et as FormMessage, Ot as HoverCard, kt as HoverCardContent, Q as HoverCardTrigger, bn as IdAsyncSelect, He as Input, At as InputOTP, jt as InputOTPGroup, Mt as InputOTPSeparator, Nt as InputOTPSlot, yt as Label, Pt as Menubar, Ft as MenubarCheckboxItem, It as MenubarContent, Lt as MenubarGroup, Rt as MenubarItem, zt as MenubarLabel, Bt as MenubarMenu, Vt as MenubarPortal, Ht as MenubarRadioGroup, Ut as MenubarRadioItem, Wt as MenubarSeparator, Gt as MenubarShortcut, Kt as MenubarSub, qt as MenubarSubContent, Jt as MenubarSubTrigger, Yt as MenubarTrigger, Qt as MonthPickerMultiple, $t as NavigationMenu, en as NavigationMenuContent, tn as NavigationMenuIndicator, nn as NavigationMenuItem, rn as NavigationMenuLink, an as NavigationMenuList, on as NavigationMenuTrigger, sn as NavigationMenuViewport, ln as Pagination, ye as Popover, be as PopoverAnchor, xe as PopoverContent, Se as PopoverTrigger, un as Progress, dn as RadioGroup, fn as RadioGroupItem, pn as RangeNumberInput, mn as ResizableHandle, hn as ResizablePanel, gn as ResizablePanelGroup, _n as ScrollArea, vn as ScrollBar, Zt as Select, Xt as Separator, xn as Sheet, Sn as SheetClose, Cn as SheetContent, wn as SheetDescription, Tn as SheetFooter, En as SheetHeader, Dn as SheetOverlay, On as SheetPortal, kn as SheetTitle, An as SheetTrigger, In as Sidebar, Ln as SidebarContent, Rn as SidebarFooter, zn as SidebarGroup, Bn as SidebarGroupAction, Vn as SidebarGroupContent, Hn as SidebarGroupLabel, Un as SidebarHeader, Wn as SidebarInput, Gn as SidebarInset, Kn as SidebarMenu, qn as SidebarMenuAction, Jn as SidebarMenuBadge, Yn as SidebarMenuButton, Xn as SidebarMenuItem, Zn as SidebarMenuSkeleton, Qn as SidebarMenuSub, $n as SidebarMenuSubButton, er as SidebarMenuSubItem, tr as SidebarProvider, nr as SidebarRail, rr as SidebarSeparator, ir as SidebarTrigger, jn as Skeleton, or as Slider, lr as SonamuFilterModal, $ as SonamuFilterPopover, $ as SonamuFilterTooltip, ur as Switch, dr as Table, fr as TableBody, pr as TableCaption, mr as TableCell, hr as TableFooter, gr as TableHead, _r as TableHeader, vr as TableRow, yr as Tabs, br as TabsContent, xr as TabsList, Sr as TabsTrigger, sr as TagInput, Cr as Textarea, wr as Toast, Tr as ToastAction, Er as ToastClose, Dr as ToastDescription, Or as ToastProvider, kr as ToastTitle, Ar as ToastViewport, jr as Toaster, Mr as Toggle, Pr as ToggleGroup, Fr as ToggleGroupItem, Mn as Tooltip, Nn as TooltipContent, Pn as TooltipProvider, Fn as TooltipTrigger, w as badgeVariants, s as buttonVariants, Te as commonModalAtom, cr as extractFieldMetaFromSchema, cn as navigationMenuTriggerStyle, ee as toast, Nr as toggleVariants, Ee as useCommonModal, Dt as useFormField, ar as useSidebar, te as useToast };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../_virtual/~icons/lucide/chevron-down.js";
|
|
3
|
+
import { cn as t } from "../../lib/utils.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import * as r from "@radix-ui/react-accordion";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/ui/accordion.tsx
|
|
8
|
+
var o = r.Root, s = n.forwardRef(({ className: e, ...n }, a) => /* @__PURE__ */ i(r.Item, {
|
|
9
|
+
ref: a,
|
|
10
|
+
className: t("border-b", e),
|
|
11
|
+
...n
|
|
12
|
+
}));
|
|
13
|
+
s.displayName = "AccordionItem";
|
|
14
|
+
var c = n.forwardRef(({ className: n, children: o, ...s }, c) => /* @__PURE__ */ i(r.Header, {
|
|
15
|
+
className: "flex",
|
|
16
|
+
children: /* @__PURE__ */ a(r.Trigger, {
|
|
17
|
+
ref: c,
|
|
18
|
+
className: t("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", n),
|
|
19
|
+
...s,
|
|
20
|
+
children: [o, /* @__PURE__ */ i(e, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
c.displayName = r.Trigger.displayName;
|
|
24
|
+
var l = n.forwardRef(({ className: e, children: n, ...a }, o) => /* @__PURE__ */ i(r.Content, {
|
|
25
|
+
ref: o,
|
|
26
|
+
className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
27
|
+
...a,
|
|
28
|
+
children: /* @__PURE__ */ i("div", {
|
|
29
|
+
className: t("pb-4 pt-0", e),
|
|
30
|
+
children: n
|
|
31
|
+
})
|
|
32
|
+
}));
|
|
33
|
+
l.displayName = r.Content.displayName;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as Accordion, l as AccordionContent, s as AccordionItem, c as AccordionTrigger };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","names":[],"sources":["../../../src/components/ui/accordion.tsx"],"sourcesContent":["\"use client\";\n\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport * as React from \"react\";\nimport ChevronDownIcon from \"~icons/lucide/chevron-down\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Accordion = AccordionPrimitive.Root;\n\nconst AccordionItem = React.forwardRef<\n React.ComponentRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n));\nAccordionItem.displayName = \"AccordionItem\";\n\nconst AccordionTrigger = React.forwardRef<\n React.ComponentRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180\",\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"h-4 w-4 shrink-0 transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n));\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;\n\nconst AccordionContent = React.forwardRef<\n React.ComponentRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n));\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName;\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\n"],"mappings":";;;;;;;AAQA,IAAM,IAAY,EAAmB,MAE/B,IAAgB,EAAM,YAGzB,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAmB,MAApB;CAA8B;CAAK,WAAW,EAAG,YAAY,CAAS;CAAG,GAAI;AAAQ,CAAA,CACtF;AACD,EAAc,cAAc;AAE5B,IAAM,IAAmB,EAAM,YAG5B,EAAE,cAAW,aAAU,GAAG,KAAS,MACpC,kBAAC,EAAmB,QAApB;CAA2B,WAAU;WACnC,kBAAC,EAAmB,SAApB;EACO;EACL,WAAW,EACT,gIACA,CACF;EACA,GAAI;YANN,CAQG,GACD,kBAAC,GAAD,EAAiB,WAAU,qDAAsD,CAAA,CACvD;;AACH,CAAA,CAC5B;AACD,EAAiB,cAAc,EAAmB,QAAQ;AAE1D,IAAM,IAAmB,EAAM,YAG5B,EAAE,cAAW,aAAU,GAAG,KAAS,MACpC,kBAAC,EAAmB,SAApB;CACO;CACL,WAAU;CACV,GAAI;WAEJ,kBAAC,OAAD;EAAK,WAAW,EAAG,aAAa,CAAS;EAAI;CAAc,CAAA;AACjC,CAAA,CAC7B;AAED,EAAiB,cAAc,EAAmB,QAAQ"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { buttonVariants as t } from "./button.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import * as a from "@radix-ui/react-alert-dialog";
|
|
6
|
+
//#region src/components/ui/alert-dialog.tsx
|
|
7
|
+
var o = a.Root, s = a.Trigger, c = a.Portal, l = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Overlay, {
|
|
8
|
+
className: e("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
9
|
+
...n,
|
|
10
|
+
ref: i
|
|
11
|
+
}));
|
|
12
|
+
l.displayName = a.Overlay.displayName;
|
|
13
|
+
var u = n.forwardRef(({ className: t, ...n }, o) => /* @__PURE__ */ i(c, { children: [/* @__PURE__ */ r(l, {}), /* @__PURE__ */ r(a.Content, {
|
|
14
|
+
ref: o,
|
|
15
|
+
className: e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", t),
|
|
16
|
+
...n
|
|
17
|
+
})] }));
|
|
18
|
+
u.displayName = a.Content.displayName;
|
|
19
|
+
var d = ({ className: t, ...n }) => /* @__PURE__ */ r("div", {
|
|
20
|
+
className: e("flex flex-col space-y-2 text-center sm:text-left", t),
|
|
21
|
+
...n
|
|
22
|
+
});
|
|
23
|
+
d.displayName = "AlertDialogHeader";
|
|
24
|
+
var f = ({ className: t, ...n }) => /* @__PURE__ */ r("div", {
|
|
25
|
+
className: e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
26
|
+
...n
|
|
27
|
+
});
|
|
28
|
+
f.displayName = "AlertDialogFooter";
|
|
29
|
+
var p = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Title, {
|
|
30
|
+
ref: i,
|
|
31
|
+
className: e("text-lg font-semibold", t),
|
|
32
|
+
...n
|
|
33
|
+
}));
|
|
34
|
+
p.displayName = a.Title.displayName;
|
|
35
|
+
var m = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Description, {
|
|
36
|
+
ref: i,
|
|
37
|
+
className: e("text-sm text-muted-foreground", t),
|
|
38
|
+
...n
|
|
39
|
+
}));
|
|
40
|
+
m.displayName = a.Description.displayName;
|
|
41
|
+
var h = n.forwardRef(({ className: n, ...i }, o) => /* @__PURE__ */ r(a.Action, {
|
|
42
|
+
ref: o,
|
|
43
|
+
className: e(t(), n),
|
|
44
|
+
...i
|
|
45
|
+
}));
|
|
46
|
+
h.displayName = a.Action.displayName;
|
|
47
|
+
var g = n.forwardRef(({ className: n, ...i }, o) => /* @__PURE__ */ r(a.Cancel, {
|
|
48
|
+
ref: o,
|
|
49
|
+
className: e(t({ variant: "outline" }), "mt-2 sm:mt-0", n),
|
|
50
|
+
...i
|
|
51
|
+
}));
|
|
52
|
+
g.displayName = a.Cancel.displayName;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { o as AlertDialog, h as AlertDialogAction, g as AlertDialogCancel, u as AlertDialogContent, m as AlertDialogDescription, f as AlertDialogFooter, d as AlertDialogHeader, l as AlertDialogOverlay, c as AlertDialogPortal, p as AlertDialogTitle, s as AlertDialogTrigger };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=alert-dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","names":[],"sources":["../../../src/components/ui/alert-dialog.tsx"],"sourcesContent":["import * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\nimport { buttonVariants } from \"./button\";\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ComponentRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\n \"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\nconst AlertDialogContent = React.forwardRef<\n React.ComponentRef<typeof AlertDialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <AlertDialogPortal>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\n className,\n )}\n {...props}\n />\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn(\"flex flex-col space-y-2 text-center sm:text-left\", className)} {...props} />\n);\nAlertDialogHeader.displayName = \"AlertDialogHeader\";\n\nconst AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\", className)}\n {...props}\n />\n);\nAlertDialogFooter.displayName = \"AlertDialogFooter\";\n\nconst AlertDialogTitle = React.forwardRef<\n React.ComponentRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn(\"text-lg font-semibold\", className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ComponentRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ComponentRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />\n));\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ComponentRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(buttonVariants({ variant: \"outline\" }), \"mt-2 sm:mt-0\", className)}\n {...props}\n />\n));\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"],"mappings":";;;;;;AAMA,IAAM,IAAc,EAAqB,MAEnC,IAAqB,EAAqB,SAE1C,IAAoB,EAAqB,QAEzC,IAAqB,EAAM,YAG9B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAqB,SAAtB;CACE,WAAW,EACT,2JACA,CACF;CACA,GAAI;CACC;AACN,CAAA,CACF;AACD,EAAmB,cAAc,EAAqB,QAAQ;AAE9D,IAAM,IAAqB,EAAM,YAG9B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,CAAqB,CAAA,GACrB,kBAAC,EAAqB,SAAtB;CACO;CACL,WAAW,EACT,+fACA,CACF;CACA,GAAI;AACL,CAAA,CACgB,EAAA,CAAA,CACpB;AACD,EAAmB,cAAc,EAAqB,QAAQ;AAE9D,IAAM,KAAqB,EAAE,cAAW,GAAG,QACzC,kBAAC,OAAD;CAAK,WAAW,EAAG,oDAAoD,CAAS;CAAG,GAAI;AAAQ,CAAA;AAEjG,EAAkB,cAAc;AAEhC,IAAM,KAAqB,EAAE,cAAW,GAAG,QACzC,kBAAC,OAAD;CACE,WAAW,EAAG,iEAAiE,CAAS;CACxF,GAAI;AACL,CAAA;AAEH,EAAkB,cAAc;AAEhC,IAAM,IAAmB,EAAM,YAG5B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAqB,OAAtB;CACO;CACL,WAAW,EAAG,yBAAyB,CAAS;CAChD,GAAI;AACL,CAAA,CACF;AACD,EAAiB,cAAc,EAAqB,MAAM;AAE1D,IAAM,IAAyB,EAAM,YAGlC,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAqB,aAAtB;CACO;CACL,WAAW,EAAG,iCAAiC,CAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,EAAuB,cAAc,EAAqB,YAAY;AAEtE,IAAM,IAAoB,EAAM,YAG7B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAqB,QAAtB;CAAkC;CAAK,WAAW,EAAG,EAAe,GAAG,CAAS;CAAG,GAAI;AAAQ,CAAA,CAChG;AACD,EAAkB,cAAc,EAAqB,OAAO;AAE5D,IAAM,IAAoB,EAAM,YAG7B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAqB,QAAtB;CACO;CACL,WAAW,EAAG,EAAe,EAAE,SAAS,UAAU,CAAC,GAAG,gBAAgB,CAAS;CAC/E,GAAI;AACL,CAAA,CACF;AACD,EAAkB,cAAc,EAAqB,OAAO"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { cva as r } from "class-variance-authority";
|
|
5
|
+
var i = r("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
6
|
+
variants: { variant: {
|
|
7
|
+
default: "bg-background text-foreground",
|
|
8
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
9
|
+
} },
|
|
10
|
+
defaultVariants: { variant: "default" }
|
|
11
|
+
}), a = t.forwardRef(({ className: t, variant: r, ...a }, o) => /* @__PURE__ */ n("div", {
|
|
12
|
+
ref: o,
|
|
13
|
+
role: "alert",
|
|
14
|
+
className: e(i({ variant: r }), t),
|
|
15
|
+
...a
|
|
16
|
+
}));
|
|
17
|
+
a.displayName = "Alert";
|
|
18
|
+
var o = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("h5", {
|
|
19
|
+
ref: i,
|
|
20
|
+
className: e("mb-1 font-medium leading-none tracking-tight", t),
|
|
21
|
+
...r
|
|
22
|
+
}));
|
|
23
|
+
o.displayName = "AlertTitle";
|
|
24
|
+
var s = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("div", {
|
|
25
|
+
ref: i,
|
|
26
|
+
className: e("text-sm [&_p]:leading-relaxed", t),
|
|
27
|
+
...r
|
|
28
|
+
}));
|
|
29
|
+
s.displayName = "AlertDescription";
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as Alert, s as AlertDescription, o as AlertTitle };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","names":[],"sources":["../../../src/components/ui/alert.tsx"],"sourcesContent":["import { cva } from \"class-variance-authority\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst alertVariantsConfig = {\n variant: {\n default: \"bg-background text-foreground\",\n destructive:\n \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n} as const;\n\nconst alertVariants = cva(\n \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n {\n variants: alertVariantsConfig,\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\n>(({ className, variant, ...props }, ref) => (\n <div ref={ref} role=\"alert\" className={cn(alertVariants({ variant }), className)} {...props} />\n));\nAlert.displayName = \"Alert\";\n\nconst AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(\n ({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n {...props}\n />\n ),\n);\nAlertTitle.displayName = \"AlertTitle\";\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"text-sm [&_p]:leading-relaxed\", className)} {...props} />\n));\nAlertDescription.displayName = \"AlertDescription\";\n\nexport { Alert, alertVariantsConfig, AlertTitle, AlertDescription };\n"],"mappings":";;;;AAcA,IAAM,IAAgB,EACpB,6JACA;CACE,UAAU,EAVZ,SAAS;EACP,SAAS;EACT,aACE;CACJ,EAMY;CACV,iBAAiB,EACf,SAAS,UACX;AACF,CACF,GAEM,IAAQ,EAAM,YAGjB,EAAE,cAAW,YAAS,GAAG,KAAS,MACnC,kBAAC,OAAD;CAAU;CAAK,MAAK;CAAQ,WAAW,EAAG,EAAc,EAAE,WAAQ,CAAC,GAAG,CAAS;CAAG,GAAI;AAAQ,CAAA,CAC/F;AACD,EAAM,cAAc;AAEpB,IAAM,IAAa,EAAM,YACtB,EAAE,cAAW,GAAG,KAAS,MACxB,kBAAC,MAAD;CACO;CACL,WAAW,EAAG,gDAAgD,CAAS;CACvE,GAAI;AACL,CAAA,CAEL;AACA,EAAW,cAAc;AAEzB,IAAM,IAAmB,EAAM,YAG5B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,OAAD;CAAU;CAAK,WAAW,EAAG,iCAAiC,CAAS;CAAG,GAAI;AAAQ,CAAA,CACvF;AACD,EAAiB,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aspect-ratio.js","names":[],"sources":["../../../src/components/ui/aspect-ratio.tsx"],"sourcesContent":["import * as AspectRatioPrimitive from \"@radix-ui/react-aspect-ratio\";\n\nconst AspectRatio = AspectRatioPrimitive.Root;\n\nexport { AspectRatio };\n"],"mappings":";;AAEA,IAAM,IAAc,EAAqB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import * as r from "@radix-ui/react-avatar";
|
|
5
|
+
//#region src/components/ui/avatar.tsx
|
|
6
|
+
var i = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Root, {
|
|
7
|
+
ref: a,
|
|
8
|
+
className: e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", t),
|
|
9
|
+
...i
|
|
10
|
+
}));
|
|
11
|
+
i.displayName = r.Root.displayName;
|
|
12
|
+
var a = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Image, {
|
|
13
|
+
ref: a,
|
|
14
|
+
className: e("aspect-square h-full w-full", t),
|
|
15
|
+
...i
|
|
16
|
+
}));
|
|
17
|
+
a.displayName = r.Image.displayName;
|
|
18
|
+
var o = t.forwardRef(({ className: t, ...i }, a) => /* @__PURE__ */ n(r.Fallback, {
|
|
19
|
+
ref: a,
|
|
20
|
+
className: e("flex h-full w-full items-center justify-center rounded-full bg-muted", t),
|
|
21
|
+
...i
|
|
22
|
+
}));
|
|
23
|
+
o.displayName = r.Fallback.displayName;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { i as Avatar, o as AvatarFallback, a as AvatarImage };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","names":[],"sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from \"@radix-ui/react-avatar\";\nimport * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Avatar = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Root\n ref={ref}\n className={cn(\"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\", className)}\n {...props}\n />\n));\nAvatar.displayName = AvatarPrimitive.Root.displayName;\n\nconst AvatarImage = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Image>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn(\"aspect-square h-full w-full\", className)}\n {...props}\n />\n));\nAvatarImage.displayName = AvatarPrimitive.Image.displayName;\n\nconst AvatarFallback = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Fallback>,\n React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn(\n \"flex h-full w-full items-center justify-center rounded-full bg-muted\",\n className,\n )}\n {...props}\n />\n));\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"mappings":";;;;;AAKA,IAAM,IAAS,EAAM,YAGlB,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAgB,MAAjB;CACO;CACL,WAAW,EAAG,iEAAiE,CAAS;CACxF,GAAI;AACL,CAAA,CACF;AACD,EAAO,cAAc,EAAgB,KAAK;AAE1C,IAAM,IAAc,EAAM,YAGvB,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAgB,OAAjB;CACO;CACL,WAAW,EAAG,+BAA+B,CAAS;CACtD,GAAI;AACL,CAAA,CACF;AACD,EAAY,cAAc,EAAgB,MAAM;AAEhD,IAAM,IAAiB,EAAM,YAG1B,EAAE,cAAW,GAAG,KAAS,MAC1B,kBAAC,EAAgB,UAAjB;CACO;CACL,WAAW,EACT,wEACA,CACF;CACA,GAAI;AACL,CAAA,CACF;AACD,EAAe,cAAc,EAAgB,SAAS"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
|
+
import { Slot as r } from "@radix-ui/react-slot";
|
|
5
|
+
var i = n("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
6
|
+
variants: { variant: {
|
|
7
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
8
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
9
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
10
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { variant: "default" }
|
|
13
|
+
});
|
|
14
|
+
function a({ className: n, variant: a, asChild: o = !1, ...s }) {
|
|
15
|
+
return /* @__PURE__ */ t(o ? r : "span", {
|
|
16
|
+
"data-slot": "badge",
|
|
17
|
+
className: e(i({ variant: a }), n),
|
|
18
|
+
...s
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as Badge, i as badgeVariants };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.js","names":[],"sources":["../../../src/components/ui/badge.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva } from \"class-variance-authority\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst badgeVariantsConfig = {\n variant: {\n default: \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline: \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n} as const;\n\nconst badgeVariants = cva(\n \"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden\",\n {\n variants: badgeVariantsConfig,\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\";\n return (\n <Comp data-slot=\"badge\" className={cn(badgeVariants({ variant }), className)} {...props} />\n );\n}\n\nexport { Badge, badgeVariants, badgeVariantsConfig };\n"],"mappings":";;;;AAkBA,IAAM,IAAgB,EACpB,kZACA;CACE,UAAU,EAbZ,SAAS;EACP,SAAS;EACT,WACE;EACF,aACE;EACF,SAAS;CACX,EAMY;CACV,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,SAAS,EAAM,EACb,cACA,YACA,aAAU,IACV,GAAG,KACyF;CAE5F,OACE,kBAFW,IAAU,IAAO,QAE5B;EAAM,aAAU;EAAQ,WAAW,EAAG,EAAc,EAAE,WAAQ,CAAC,GAAG,CAAS;EAAG,GAAI;CAAQ,CAAA;AAE9F"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import t from "../../_virtual/~icons/lucide/chevron-right.js";
|
|
3
|
+
import n from "../../_virtual/~icons/lucide/more-horizontal.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { Slot as o } from "@radix-ui/react-slot";
|
|
7
|
+
//#region src/components/ui/breadcrumb.tsx
|
|
8
|
+
var s = r.forwardRef(({ ...e }, t) => /* @__PURE__ */ i("nav", {
|
|
9
|
+
ref: t,
|
|
10
|
+
"aria-label": "breadcrumb",
|
|
11
|
+
...e
|
|
12
|
+
}));
|
|
13
|
+
s.displayName = "Breadcrumb";
|
|
14
|
+
var c = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("ol", {
|
|
15
|
+
ref: r,
|
|
16
|
+
className: e("flex flex-wrap items-center gap-1.5 overflow-wrap-anywhere text-sm text-muted-foreground sm:gap-2.5", t),
|
|
17
|
+
...n
|
|
18
|
+
}));
|
|
19
|
+
c.displayName = "BreadcrumbList";
|
|
20
|
+
var l = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("li", {
|
|
21
|
+
ref: r,
|
|
22
|
+
className: e("inline-flex items-center gap-1.5", t),
|
|
23
|
+
...n
|
|
24
|
+
}));
|
|
25
|
+
l.displayName = "BreadcrumbItem";
|
|
26
|
+
var u = r.forwardRef(({ asChild: t, className: n, ...r }, a) => /* @__PURE__ */ i(t ? o : "a", {
|
|
27
|
+
ref: a,
|
|
28
|
+
className: e("transition-colors hover:text-foreground", n),
|
|
29
|
+
...r
|
|
30
|
+
}));
|
|
31
|
+
u.displayName = "BreadcrumbLink";
|
|
32
|
+
var d = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("span", {
|
|
33
|
+
ref: r,
|
|
34
|
+
role: "link",
|
|
35
|
+
"aria-disabled": "true",
|
|
36
|
+
"aria-current": "page",
|
|
37
|
+
className: e("font-normal text-foreground", t),
|
|
38
|
+
...n
|
|
39
|
+
}));
|
|
40
|
+
d.displayName = "BreadcrumbPage";
|
|
41
|
+
var f = ({ children: n, className: r, ...a }) => /* @__PURE__ */ i("li", {
|
|
42
|
+
role: "presentation",
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
className: e("[&>svg]:w-3.5 [&>svg]:h-3.5", r),
|
|
45
|
+
...a,
|
|
46
|
+
children: n ?? /* @__PURE__ */ i(t, {})
|
|
47
|
+
});
|
|
48
|
+
f.displayName = "BreadcrumbSeparator";
|
|
49
|
+
var p = ({ className: t, ...r }) => /* @__PURE__ */ a("span", {
|
|
50
|
+
role: "presentation",
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
className: e("flex h-9 w-9 items-center justify-center", t),
|
|
53
|
+
...r,
|
|
54
|
+
children: [/* @__PURE__ */ i(n, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", {
|
|
55
|
+
className: "sr-only",
|
|
56
|
+
children: "More"
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
p.displayName = "BreadcrumbElipssis";
|
|
60
|
+
//#endregion
|
|
61
|
+
export { s as Breadcrumb, p as BreadcrumbEllipsis, l as BreadcrumbItem, u as BreadcrumbLink, c as BreadcrumbList, d as BreadcrumbPage, f as BreadcrumbSeparator };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.js","names":[],"sources":["../../../src/components/ui/breadcrumb.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport * as React from \"react\";\nimport ChevronRightIcon from \"~icons/lucide/chevron-right\";\nimport MoreHorizontalIcon from \"~icons/lucide/more-horizontal\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Breadcrumb = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<\"nav\"> & {\n separator?: React.ReactNode;\n }\n>(({ ...props }, ref) => <nav ref={ref} aria-label=\"breadcrumb\" {...props} />);\nBreadcrumb.displayName = \"Breadcrumb\";\n\nconst BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<\"ol\">>(\n ({ className, ...props }, ref) => (\n <ol\n ref={ref}\n className={cn(\n \"flex flex-wrap items-center gap-1.5 overflow-wrap-anywhere text-sm text-muted-foreground sm:gap-2.5\",\n className,\n )}\n {...props}\n />\n ),\n);\nBreadcrumbList.displayName = \"BreadcrumbList\";\n\nconst BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<\"li\">>(\n ({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"inline-flex items-center gap-1.5\", className)} {...props} />\n ),\n);\nBreadcrumbItem.displayName = \"BreadcrumbItem\";\n\nconst BreadcrumbLink = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentPropsWithoutRef<\"a\"> & {\n asChild?: boolean;\n }\n>(({ asChild, className, ...props }, ref) => {\n const Comp = asChild ? Slot : \"a\";\n\n return (\n <Comp\n ref={ref}\n className={cn(\"transition-colors hover:text-foreground\", className)}\n {...props}\n />\n );\n});\nBreadcrumbLink.displayName = \"BreadcrumbLink\";\n\nconst BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<\"span\">>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn(\"font-normal text-foreground\", className)}\n {...props}\n />\n ),\n);\nBreadcrumbPage.displayName = \"BreadcrumbPage\";\n\nconst BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<\"li\">) => (\n <li\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"[&>svg]:w-3.5 [&>svg]:h-3.5\", className)}\n {...props}\n >\n {children ?? <ChevronRightIcon />}\n </li>\n);\nBreadcrumbSeparator.displayName = \"BreadcrumbSeparator\";\n\nconst BreadcrumbEllipsis = ({ className, ...props }: React.ComponentProps<\"span\">) => (\n <span\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n);\nBreadcrumbEllipsis.displayName = \"BreadcrumbElipssis\";\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n};\n"],"mappings":";;;;;;;AAOA,IAAM,IAAa,EAAM,YAKtB,EAAE,GAAG,KAAS,MAAQ,kBAAC,OAAD;CAAU;CAAK,cAAW;CAAa,GAAI;AAAQ,CAAA,CAAC;AAC7E,EAAW,cAAc;AAEzB,IAAM,IAAiB,EAAM,YAC1B,EAAE,cAAW,GAAG,KAAS,MACxB,kBAAC,MAAD;CACO;CACL,WAAW,EACT,uGACA,CACF;CACA,GAAI;AACL,CAAA,CAEL;AACA,EAAe,cAAc;AAE7B,IAAM,IAAiB,EAAM,YAC1B,EAAE,cAAW,GAAG,KAAS,MACxB,kBAAC,MAAD;CAAS;CAAK,WAAW,EAAG,oCAAoC,CAAS;CAAG,GAAI;AAAQ,CAAA,CAE5F;AACA,EAAe,cAAc;AAE7B,IAAM,IAAiB,EAAM,YAK1B,EAAE,YAAS,cAAW,GAAG,KAAS,MAIjC,kBAHW,IAAU,IAAO,KAG5B;CACO;CACL,WAAW,EAAG,2CAA2C,CAAS;CAClE,GAAI;AACL,CAAA,CAEJ;AACD,EAAe,cAAc;AAE7B,IAAM,IAAiB,EAAM,YAC1B,EAAE,cAAW,GAAG,KAAS,MACxB,kBAAC,QAAD;CACO;CACL,MAAK;CACL,iBAAc;CACd,gBAAa;CACb,WAAW,EAAG,+BAA+B,CAAS;CACtD,GAAI;AACL,CAAA,CAEL;AACA,EAAe,cAAc;AAE7B,IAAM,KAAuB,EAAE,aAAU,cAAW,GAAG,QACrD,kBAAC,MAAD;CACE,MAAK;CACL,eAAY;CACZ,WAAW,EAAG,+BAA+B,CAAS;CACtD,GAAI;WAEH,KAAY,kBAAC,GAAD,CAAmB,CAAA;AAC9B,CAAA;AAEN,EAAoB,cAAc;AAElC,IAAM,KAAsB,EAAE,cAAW,GAAG,QAC1C,kBAAC,QAAD;CACE,MAAK;CACL,eAAY;CACZ,WAAW,EAAG,4CAA4C,CAAS;CACnE,GAAI;WAJN,CAME,kBAAC,GAAD,EAAoB,WAAU,UAAW,CAAA,GACzC,kBAAC,QAAD;EAAM,WAAU;YAAU;CAAU,CAAA,CAChC;;AAER,EAAmB,cAAc"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import t from "../../_virtual/~icons/lucide/loader-2.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { cva as a } from "class-variance-authority";
|
|
6
|
+
import { Slot as o } from "@radix-ui/react-slot";
|
|
7
|
+
var s = a("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
11
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
12
|
+
outline: "border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
13
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
14
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
15
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
16
|
+
red: "bg-red-500 text-white hover:bg-red-600",
|
|
17
|
+
yellow: "bg-yellow-500 text-white hover:bg-yellow-600",
|
|
18
|
+
green: "bg-green-500 text-white hover:bg-green-600",
|
|
19
|
+
blue: "bg-blue-500 text-white hover:bg-blue-600",
|
|
20
|
+
cyan: "bg-cyan-500 text-white hover:bg-cyan-600",
|
|
21
|
+
purple: "bg-purple-500 text-white hover:bg-purple-600",
|
|
22
|
+
pink: "bg-pink-500 text-white hover:bg-pink-600",
|
|
23
|
+
orange: "bg-orange-500 text-white hover:bg-orange-600"
|
|
24
|
+
},
|
|
25
|
+
size: {
|
|
26
|
+
xs: "h-6 px-2 py-1 text-xs [&_svg]:size-3 has-[>svg]:px-1.5 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square",
|
|
27
|
+
sm: "h-7 px-3 py-1.5 text-xs [&_svg]:size-3.5 has-[>svg]:px-2 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square",
|
|
28
|
+
default: "h-9 px-4 py-2 [&_svg]:size-4 has-[>svg]:px-3 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square",
|
|
29
|
+
lg: "h-11 px-6 py-3 text-base [&_svg]:size-5 has-[>svg]:px-4 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square",
|
|
30
|
+
xl: "h-13 px-8 py-4 text-lg [&_svg]:size-6 has-[>svg]:px-6 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
variant: "default",
|
|
35
|
+
size: "default"
|
|
36
|
+
}
|
|
37
|
+
}), c = n.forwardRef(({ className: a, variant: c, size: l, icon: u, children: d, loading: f, disabled: p, asChild: m = !1, ...h }, g) => {
|
|
38
|
+
let _ = m ? o : "button", v = n.Children.count(d) === 0, y = f ? /* @__PURE__ */ r(t, { className: "animate-spin" }) : u;
|
|
39
|
+
return /* @__PURE__ */ r(_, {
|
|
40
|
+
"data-slot": "button",
|
|
41
|
+
className: e(s({
|
|
42
|
+
variant: c,
|
|
43
|
+
size: l,
|
|
44
|
+
className: a
|
|
45
|
+
})),
|
|
46
|
+
ref: g,
|
|
47
|
+
disabled: p || f,
|
|
48
|
+
...h,
|
|
49
|
+
children: v ? y : y ? /* @__PURE__ */ i("span", {
|
|
50
|
+
className: "contents",
|
|
51
|
+
children: [y, d]
|
|
52
|
+
}) : d
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
c.displayName = "Button";
|
|
56
|
+
//#endregion
|
|
57
|
+
export { c as Button, s as buttonVariants };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","names":[],"sources":["../../../src/components/ui/button.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva } from \"class-variance-authority\";\nimport { type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport LoaderIcon from \"~icons/lucide/loader-2\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst buttonVariantsConfig = {\n variant: {\n // semantic variants (shadcn/ui 기본)\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n\n // solid color variants\n red: \"bg-red-500 text-white hover:bg-red-600\",\n yellow: \"bg-yellow-500 text-white hover:bg-yellow-600\",\n green: \"bg-green-500 text-white hover:bg-green-600\",\n blue: \"bg-blue-500 text-white hover:bg-blue-600\",\n cyan: \"bg-cyan-500 text-white hover:bg-cyan-600\",\n purple: \"bg-purple-500 text-white hover:bg-purple-600\",\n pink: \"bg-pink-500 text-white hover:bg-pink-600\",\n orange: \"bg-orange-500 text-white hover:bg-orange-600\",\n },\n size: {\n // button sizes\n // - 아이콘만 있는 버튼: 정사각형 (px-0 aspect-square)\n // - 텍스트 / 아이콘 + 텍스트 버튼: 일반 패딩 유지 (가로 자동 확장)\n xs: \"h-6 px-2 py-1 text-xs [&_svg]:size-3 has-[>svg]:px-1.5 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square\",\n sm: \"h-7 px-3 py-1.5 text-xs [&_svg]:size-3.5 has-[>svg]:px-2 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square\",\n default:\n \"h-9 px-4 py-2 [&_svg]:size-4 has-[>svg]:px-3 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square\",\n lg: \"h-11 px-6 py-3 text-base [&_svg]:size-5 has-[>svg]:px-4 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square\",\n xl: \"h-13 px-8 py-4 text-lg [&_svg]:size-6 has-[>svg]:px-6 has-[>svg:only-child]:px-0 has-[>svg:only-child]:aspect-square\",\n },\n} as const;\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-button text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer\",\n {\n variants: buttonVariantsConfig,\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n\ntype ButtonProps = React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n icon?: React.ReactElement;\n loading?: boolean;\n };\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n { className, variant, size, icon, children, loading, disabled, asChild = false, ...props },\n ref,\n ) => {\n const Comp = asChild ? Slot : \"button\";\n\n const iconOnly = React.Children.count(children) === 0;\n\n const leadingIcon = loading ? <LoaderIcon className=\"animate-spin\" /> : icon;\n\n return (\n <Comp\n data-slot=\"button\"\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n {...props}\n >\n {iconOnly ? (\n leadingIcon\n ) : leadingIcon ? (\n <span className=\"contents\">\n {leadingIcon}\n {children}\n </span>\n ) : (\n children\n )}\n </Comp>\n );\n },\n);\nButton.displayName = \"Button\";\n\nexport { Button, buttonVariants, buttonVariantsConfig, type ButtonProps };\n"],"mappings":";;;;;;AA2CA,IAAM,IAAiB,EACrB,6aACA;CACE,UAAU;EArCZ,SAAS;GAEP,SAAS;GACT,aACE;GACF,SACE;GACF,WAAW;GACX,OAAO;GACP,MAAM;GAGN,KAAK;GACL,QAAQ;GACR,OAAO;GACP,MAAM;GACN,MAAM;GACN,QAAQ;GACR,MAAM;GACN,QAAQ;EACV;EACA,MAAM;GAIJ,IAAI;GACJ,IAAI;GACJ,SACE;GACF,IAAI;GACJ,IAAI;EACN;CAMY;CACV,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF,GASM,IAAS,EAAM,YAEjB,EAAE,cAAW,YAAS,SAAM,SAAM,aAAU,YAAS,aAAU,aAAU,IAAO,GAAG,KACnF,MACG;CACH,IAAM,IAAO,IAAU,IAAO,UAExB,IAAW,EAAM,SAAS,MAAM,CAAQ,MAAM,GAE9C,IAAc,IAAU,kBAAC,GAAD,EAAY,WAAU,eAAgB,CAAA,IAAI;CAExE,OACE,kBAAC,GAAD;EACE,aAAU;EACV,WAAW,EAAG,EAAe;GAAE;GAAS;GAAM;EAAU,CAAC,CAAC;EACrD;EACL,UAAU,KAAY;EACtB,GAAI;YAEH,IACC,IACE,IACF,kBAAC,QAAD;GAAM,WAAU;aAAhB,CACG,GACA,CACG;OAEN;CAEE,CAAA;AAEV,CACF;AACA,EAAO,cAAc"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { buttonVariants as t } from "./button.js";
|
|
4
|
+
import n from "../../_virtual/~icons/lucide/chevron-right.js";
|
|
5
|
+
import r from "../../_virtual/~icons/lucide/chevron-left.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
8
|
+
import { DayPicker as a } from "react-day-picker";
|
|
9
|
+
//#region src/components/ui/calendar.tsx
|
|
10
|
+
function o({ className: o, classNames: s, showOutsideDays: c = !0, ...l }) {
|
|
11
|
+
return /* @__PURE__ */ i(a, {
|
|
12
|
+
showOutsideDays: c,
|
|
13
|
+
className: e("p-3", o),
|
|
14
|
+
classNames: {
|
|
15
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
16
|
+
month: "space-y-4",
|
|
17
|
+
caption: "flex justify-center pt-1 relative items-center w-full",
|
|
18
|
+
caption_label: "text-sm font-medium",
|
|
19
|
+
nav: "space-x-1 flex items-center",
|
|
20
|
+
nav_button: e(t({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
21
|
+
nav_button_previous: "absolute left-1",
|
|
22
|
+
nav_button_next: "absolute right-1",
|
|
23
|
+
table: "w-full border-collapse space-y-1",
|
|
24
|
+
head_row: "flex",
|
|
25
|
+
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
26
|
+
row: "flex w-full mt-2",
|
|
27
|
+
cell: e("h-9 w-9 text-center text-sm p-0 relative focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent/10", l.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"),
|
|
28
|
+
day: e(t({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
|
|
29
|
+
day_range_start: "day-range-start",
|
|
30
|
+
day_range_end: "day-range-end",
|
|
31
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
32
|
+
day_today: "bg-accent/10 text-foreground",
|
|
33
|
+
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-transparent aria-selected:opacity-100 aria-selected:text-foreground",
|
|
34
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
35
|
+
day_range_middle: "aria-selected:bg-transparent aria-selected:text-foreground",
|
|
36
|
+
day_hidden: "invisible",
|
|
37
|
+
...s
|
|
38
|
+
},
|
|
39
|
+
components: {
|
|
40
|
+
IconLeft: () => /* @__PURE__ */ i(r, { className: "h-4 w-4" }),
|
|
41
|
+
IconRight: () => /* @__PURE__ */ i(n, { className: "h-4 w-4" })
|
|
42
|
+
},
|
|
43
|
+
...l
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { o as Calendar };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","names":[],"sources":["../../../src/components/ui/calendar.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { DayPicker } from \"react-day-picker\";\nimport { type DateRange } from \"react-day-picker\";\nimport ChevronLeftIcon from \"~icons/lucide/chevron-left\";\nimport ChevronRightIcon from \"~icons/lucide/chevron-right\";\n\nimport { cn } from \"../../lib/utils\";\nimport { buttonVariants } from \"./button\";\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: React.ComponentProps<typeof DayPicker>) {\n return (\n <DayPicker\n showOutsideDays={showOutsideDays}\n className={cn(\"p-3\", className)}\n classNames={{\n months: \"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0\",\n month: \"space-y-4\",\n caption: \"flex justify-center pt-1 relative items-center w-full\",\n caption_label: \"text-sm font-medium\",\n nav: \"space-x-1 flex items-center\",\n nav_button: cn(\n buttonVariants({ variant: \"outline\" }),\n \"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\",\n ),\n nav_button_previous: \"absolute left-1\",\n nav_button_next: \"absolute right-1\",\n table: \"w-full border-collapse space-y-1\",\n head_row: \"flex\",\n head_cell: \"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]\",\n row: \"flex w-full mt-2\",\n cell: cn(\n \"h-9 w-9 text-center text-sm p-0 relative focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent/10\",\n props.mode === \"range\"\n ? \"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md\"\n : \"[&:has([aria-selected])]:rounded-md\",\n ),\n day: cn(\n buttonVariants({ variant: \"ghost\" }),\n \"h-9 w-9 p-0 font-normal aria-selected:opacity-100\",\n ),\n day_range_start: \"day-range-start\",\n day_range_end: \"day-range-end\",\n day_selected:\n \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n day_today: \"bg-accent/10 text-foreground\",\n day_outside:\n \"day-outside text-muted-foreground opacity-50 aria-selected:bg-transparent aria-selected:opacity-100 aria-selected:text-foreground\",\n day_disabled: \"text-muted-foreground opacity-50\",\n day_range_middle: \"aria-selected:bg-transparent aria-selected:text-foreground\",\n day_hidden: \"invisible\",\n ...classNames,\n }}\n components={{\n IconLeft: () => <ChevronLeftIcon className=\"h-4 w-4\" />,\n IconRight: () => <ChevronRightIcon className=\"h-4 w-4\" />,\n }}\n {...props}\n />\n );\n}\n\nexport { Calendar };\nexport type { DateRange };\n"],"mappings":";;;;;;;;;AAWA,SAAS,EAAS,EAChB,cACA,eACA,qBAAkB,IAClB,GAAG,KACsC;CACzC,OACE,kBAAC,GAAD;EACmB;EACjB,WAAW,EAAG,OAAO,CAAS;EAC9B,YAAY;GACV,QAAQ;GACR,OAAO;GACP,SAAS;GACT,eAAe;GACf,KAAK;GACL,YAAY,EACV,EAAe,EAAE,SAAS,UAAU,CAAC,GACrC,yDACF;GACA,qBAAqB;GACrB,iBAAiB;GACjB,OAAO;GACP,UAAU;GACV,WAAW;GACX,KAAK;GACL,MAAM,EACJ,0HACA,EAAM,SAAS,UACX,yKACA,qCACN;GACA,KAAK,EACH,EAAe,EAAE,SAAS,QAAQ,CAAC,GACnC,mDACF;GACA,iBAAiB;GACjB,eAAe;GACf,cACE;GACF,WAAW;GACX,aACE;GACF,cAAc;GACd,kBAAkB;GAClB,YAAY;GACZ,GAAG;EACL;EACA,YAAY;GACV,gBAAgB,kBAAC,GAAD,EAAiB,WAAU,UAAW,CAAA;GACtD,iBAAiB,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA;EAC1D;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/ui/card.tsx
|
|
4
|
+
function n({ className: n, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
"data-slot": "card",
|
|
7
|
+
className: e("bg-card text-card-foreground flex flex-col gap-6 rounded-card border", n),
|
|
8
|
+
...r
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
function r({ className: n, ...r }) {
|
|
12
|
+
return /* @__PURE__ */ t("div", {
|
|
13
|
+
"data-slot": "card-header",
|
|
14
|
+
className: e("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", n),
|
|
15
|
+
...r
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function i({ className: n, ...r }) {
|
|
19
|
+
return /* @__PURE__ */ t("h4", {
|
|
20
|
+
"data-slot": "card-title",
|
|
21
|
+
className: e("leading-none", n),
|
|
22
|
+
...r
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function a({ className: n, ...r }) {
|
|
26
|
+
return /* @__PURE__ */ t("p", {
|
|
27
|
+
"data-slot": "card-description",
|
|
28
|
+
className: e("text-muted-foreground", n),
|
|
29
|
+
...r
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function o({ className: n, ...r }) {
|
|
33
|
+
return /* @__PURE__ */ t("div", {
|
|
34
|
+
"data-slot": "card-action",
|
|
35
|
+
className: e("col-start-2 row-span-2 row-start-1 self-start justify-self-end", n),
|
|
36
|
+
...r
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function s({ className: n, ...r }) {
|
|
40
|
+
return /* @__PURE__ */ t("div", {
|
|
41
|
+
"data-slot": "card-content",
|
|
42
|
+
className: e("px-6 last:pb-6", n),
|
|
43
|
+
...r
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function c({ className: n, ...r }) {
|
|
47
|
+
return /* @__PURE__ */ t("div", {
|
|
48
|
+
"data-slot": "card-footer",
|
|
49
|
+
className: e("flex items-center px-6 pb-6 [.border-t]:pt-6", n),
|
|
50
|
+
...r
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { n as Card, o as CardAction, s as CardContent, a as CardDescription, c as CardFooter, r as CardHeader, i as CardTitle };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/ui/card.tsx"],"sourcesContent":["import type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-card border\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 pt-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return <h4 data-slot=\"card-title\" className={cn(\"leading-none\", className)} {...props} />;\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <p data-slot=\"card-description\" className={cn(\"text-muted-foreground\", className)} {...props} />\n );\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\"col-start-2 row-span-2 row-start-1 self-start justify-self-end\", className)}\n {...props}\n />\n );\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"card-content\" className={cn(\"px-6 last:pb-6\", className)} {...props} />;\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 pb-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n );\n}\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };\n"],"mappings":";;;AAIA,SAAS,EAAK,EAAE,cAAW,GAAG,KAAsC;CAClE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,wEACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,mKACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAsC;CACvE,OAAO,kBAAC,MAAD;EAAI,aAAU;EAAa,WAAW,EAAG,gBAAgB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC1F;AAEA,SAAS,EAAgB,EAAE,cAAW,GAAG,KAAsC;CAC7E,OACE,kBAAC,KAAD;EAAG,aAAU;EAAmB,WAAW,EAAG,yBAAyB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAEnG;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,kEAAkE,CAAS;EACzF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAsC;CACzE,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAe,WAAW,EAAG,kBAAkB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/F;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,gDAAgD,CAAS;EACvE,GAAI;CACL,CAAA;AAEL"}
|