@egose/shadcn-theme 0.0.1
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/README.md +30 -0
- package/chunk-2NMEKWO5.js +38 -0
- package/chunk-2NMEKWO5.js.map +1 -0
- package/chunk-3ONILUYO.mjs +11 -0
- package/chunk-3ONILUYO.mjs.map +1 -0
- package/chunk-4CBX7RQR.mjs +37 -0
- package/chunk-4CBX7RQR.mjs.map +1 -0
- package/chunk-5HXFUN6E.mjs +132 -0
- package/chunk-5HXFUN6E.mjs.map +1 -0
- package/chunk-A6SPGGUA.mjs +31 -0
- package/chunk-A6SPGGUA.mjs.map +1 -0
- package/chunk-B2G2EZ4P.js +11 -0
- package/chunk-B2G2EZ4P.js.map +1 -0
- package/chunk-B5KVOXLO.js +119 -0
- package/chunk-B5KVOXLO.js.map +1 -0
- package/chunk-BBMYITL4.mjs +35 -0
- package/chunk-BBMYITL4.mjs.map +1 -0
- package/chunk-BIIFJJWL.mjs +119 -0
- package/chunk-BIIFJJWL.mjs.map +1 -0
- package/chunk-DDR4LO2B.mjs +27 -0
- package/chunk-DDR4LO2B.mjs.map +1 -0
- package/chunk-DG6G5KP2.js +35 -0
- package/chunk-DG6G5KP2.js.map +1 -0
- package/chunk-HPKA6MRM.js +132 -0
- package/chunk-HPKA6MRM.js.map +1 -0
- package/chunk-JB72ECC3.js +57 -0
- package/chunk-JB72ECC3.js.map +1 -0
- package/chunk-K5LCVJVQ.js +31 -0
- package/chunk-K5LCVJVQ.js.map +1 -0
- package/chunk-PEJ7BU4C.js +27 -0
- package/chunk-PEJ7BU4C.js.map +1 -0
- package/chunk-PICOAWKQ.js +49 -0
- package/chunk-PICOAWKQ.js.map +1 -0
- package/chunk-PZ6OC36F.js +32 -0
- package/chunk-PZ6OC36F.js.map +1 -0
- package/chunk-SIGC6GCN.mjs +32 -0
- package/chunk-SIGC6GCN.mjs.map +1 -0
- package/chunk-TVGM4RRO.mjs +21 -0
- package/chunk-TVGM4RRO.mjs.map +1 -0
- package/chunk-WTKKFZZ4.mjs +57 -0
- package/chunk-WTKKFZZ4.mjs.map +1 -0
- package/chunk-WTTHT7F4.js +21 -0
- package/chunk-WTTHT7F4.js.map +1 -0
- package/chunk-XHNXPJDJ.mjs +49 -0
- package/chunk-XHNXPJDJ.mjs.map +1 -0
- package/chunk-YOSPWY5K.mjs +38 -0
- package/chunk-YOSPWY5K.mjs.map +1 -0
- package/chunk-ZR3EVQAK.js +37 -0
- package/chunk-ZR3EVQAK.js.map +1 -0
- package/components/ui/accordion.d.mts +9 -0
- package/components/ui/accordion.d.ts +9 -0
- package/components/ui/accordion.js +59 -0
- package/components/ui/accordion.js.map +1 -0
- package/components/ui/accordion.mjs +59 -0
- package/components/ui/accordion.mjs.map +1 -0
- package/components/ui/alert-dialog.d.mts +22 -0
- package/components/ui/alert-dialog.d.ts +22 -0
- package/components/ui/alert-dialog.js +143 -0
- package/components/ui/alert-dialog.js.map +1 -0
- package/components/ui/alert-dialog.mjs +143 -0
- package/components/ui/alert-dialog.mjs.map +1 -0
- package/components/ui/alert.d.mts +11 -0
- package/components/ui/alert.d.ts +11 -0
- package/components/ui/alert.js +65 -0
- package/components/ui/alert.js.map +1 -0
- package/components/ui/alert.mjs +65 -0
- package/components/ui/alert.mjs.map +1 -0
- package/components/ui/aspect-ratio.d.mts +6 -0
- package/components/ui/aspect-ratio.d.ts +6 -0
- package/components/ui/aspect-ratio.js +9 -0
- package/components/ui/aspect-ratio.js.map +1 -0
- package/components/ui/aspect-ratio.mjs +9 -0
- package/components/ui/aspect-ratio.mjs.map +1 -0
- package/components/ui/avatar.d.mts +8 -0
- package/components/ui/avatar.d.ts +8 -0
- package/components/ui/avatar.js +57 -0
- package/components/ui/avatar.js.map +1 -0
- package/components/ui/avatar.mjs +57 -0
- package/components/ui/avatar.mjs.map +1 -0
- package/components/ui/badge.d.mts +12 -0
- package/components/ui/badge.d.ts +12 -0
- package/components/ui/badge.js +36 -0
- package/components/ui/badge.js.map +1 -0
- package/components/ui/badge.mjs +36 -0
- package/components/ui/badge.mjs.map +1 -0
- package/components/ui/breadcrumb.d.mts +21 -0
- package/components/ui/breadcrumb.d.ts +21 -0
- package/components/ui/breadcrumb.js +115 -0
- package/components/ui/breadcrumb.js.map +1 -0
- package/components/ui/breadcrumb.mjs +115 -0
- package/components/ui/breadcrumb.mjs.map +1 -0
- package/components/ui/button.d.mts +14 -0
- package/components/ui/button.d.ts +14 -0
- package/components/ui/button.js +11 -0
- package/components/ui/button.js.map +1 -0
- package/components/ui/button.mjs +11 -0
- package/components/ui/button.mjs.map +1 -0
- package/components/ui/calendar.d.mts +10 -0
- package/components/ui/calendar.d.ts +10 -0
- package/components/ui/calendar.js +81 -0
- package/components/ui/calendar.js.map +1 -0
- package/components/ui/calendar.mjs +81 -0
- package/components/ui/calendar.mjs.map +1 -0
- package/components/ui/card.d.mts +10 -0
- package/components/ui/card.d.ts +10 -0
- package/components/ui/card.js +82 -0
- package/components/ui/card.js.map +1 -0
- package/components/ui/card.mjs +82 -0
- package/components/ui/card.mjs.map +1 -0
- package/components/ui/carousel.d.mts +23 -0
- package/components/ui/carousel.d.ts +23 -0
- package/components/ui/carousel.js +206 -0
- package/components/ui/carousel.js.map +1 -0
- package/components/ui/carousel.mjs +206 -0
- package/components/ui/carousel.mjs.map +1 -0
- package/components/ui/chart.d.mts +68 -0
- package/components/ui/chart.d.ts +68 -0
- package/components/ui/chart.js +236 -0
- package/components/ui/chart.js.map +1 -0
- package/components/ui/chart.mjs +236 -0
- package/components/ui/chart.mjs.map +1 -0
- package/components/ui/checkbox.d.mts +6 -0
- package/components/ui/checkbox.d.ts +6 -0
- package/components/ui/checkbox.js +37 -0
- package/components/ui/checkbox.js.map +1 -0
- package/components/ui/checkbox.mjs +37 -0
- package/components/ui/checkbox.mjs.map +1 -0
- package/components/ui/collapsible.d.mts +8 -0
- package/components/ui/collapsible.d.ts +8 -0
- package/components/ui/collapsible.js +14 -0
- package/components/ui/collapsible.js.map +1 -0
- package/components/ui/collapsible.mjs +14 -0
- package/components/ui/collapsible.mjs.map +1 -0
- package/components/ui/command.d.mts +82 -0
- package/components/ui/command.d.ts +82 -0
- package/components/ui/command.js +135 -0
- package/components/ui/command.js.map +1 -0
- package/components/ui/command.mjs +135 -0
- package/components/ui/command.mjs.map +1 -0
- package/components/ui/context-menu.d.mts +29 -0
- package/components/ui/context-menu.d.ts +29 -0
- package/components/ui/context-menu.js +172 -0
- package/components/ui/context-menu.js.map +1 -0
- package/components/ui/context-menu.mjs +172 -0
- package/components/ui/context-menu.mjs.map +1 -0
- package/components/ui/dialog.d.mts +21 -0
- package/components/ui/dialog.d.ts +21 -0
- package/components/ui/dialog.js +28 -0
- package/components/ui/dialog.js.map +1 -0
- package/components/ui/dialog.mjs +28 -0
- package/components/ui/dialog.mjs.map +1 -0
- package/components/ui/drawer.d.mts +26 -0
- package/components/ui/drawer.d.ts +26 -0
- package/components/ui/drawer.js +122 -0
- package/components/ui/drawer.js.map +1 -0
- package/components/ui/drawer.mjs +122 -0
- package/components/ui/drawer.mjs.map +1 -0
- package/components/ui/dropdown-menu.d.mts +29 -0
- package/components/ui/dropdown-menu.d.ts +29 -0
- package/components/ui/dropdown-menu.js +171 -0
- package/components/ui/dropdown-menu.js.map +1 -0
- package/components/ui/dropdown-menu.mjs +171 -0
- package/components/ui/dropdown-menu.mjs.map +1 -0
- package/components/ui/form.d.mts +27 -0
- package/components/ui/form.d.ts +27 -0
- package/components/ui/form.js +123 -0
- package/components/ui/form.js.map +1 -0
- package/components/ui/form.mjs +123 -0
- package/components/ui/form.mjs.map +1 -0
- package/components/ui/hover-card.d.mts +8 -0
- package/components/ui/hover-card.d.ts +8 -0
- package/components/ui/hover-card.js +36 -0
- package/components/ui/hover-card.js.map +1 -0
- package/components/ui/hover-card.mjs +36 -0
- package/components/ui/hover-card.mjs.map +1 -0
- package/components/ui/input-otp.d.mts +37 -0
- package/components/ui/input-otp.d.ts +37 -0
- package/components/ui/input-otp.js +63 -0
- package/components/ui/input-otp.js.map +1 -0
- package/components/ui/input-otp.mjs +63 -0
- package/components/ui/input-otp.mjs.map +1 -0
- package/components/ui/input.d.mts +5 -0
- package/components/ui/input.d.ts +5 -0
- package/components/ui/input.js +9 -0
- package/components/ui/input.js.map +1 -0
- package/components/ui/input.mjs +9 -0
- package/components/ui/input.mjs.map +1 -0
- package/components/ui/label.d.mts +8 -0
- package/components/ui/label.d.ts +8 -0
- package/components/ui/label.js +9 -0
- package/components/ui/label.js.map +1 -0
- package/components/ui/label.mjs +9 -0
- package/components/ui/label.mjs.map +1 -0
- package/components/ui/menubar.d.mts +30 -0
- package/components/ui/menubar.d.ts +30 -0
- package/components/ui/menubar.js +221 -0
- package/components/ui/menubar.js.map +1 -0
- package/components/ui/menubar.mjs +221 -0
- package/components/ui/menubar.mjs.map +1 -0
- package/components/ui/navigation-menu.d.mts +15 -0
- package/components/ui/navigation-menu.d.ts +15 -0
- package/components/ui/navigation-menu.js +123 -0
- package/components/ui/navigation-menu.js.map +1 -0
- package/components/ui/navigation-menu.mjs +123 -0
- package/components/ui/navigation-menu.mjs.map +1 -0
- package/components/ui/pagination.d.mts +32 -0
- package/components/ui/pagination.d.ts +32 -0
- package/components/ui/pagination.js +130 -0
- package/components/ui/pagination.js.map +1 -0
- package/components/ui/pagination.mjs +130 -0
- package/components/ui/pagination.mjs.map +1 -0
- package/components/ui/popover.d.mts +9 -0
- package/components/ui/popover.d.ts +9 -0
- package/components/ui/popover.js +37 -0
- package/components/ui/popover.js.map +1 -0
- package/components/ui/popover.mjs +37 -0
- package/components/ui/popover.mjs.map +1 -0
- package/components/ui/progress.d.mts +6 -0
- package/components/ui/progress.d.ts +6 -0
- package/components/ui/progress.js +37 -0
- package/components/ui/progress.js.map +1 -0
- package/components/ui/progress.mjs +37 -0
- package/components/ui/progress.mjs.map +1 -0
- package/components/ui/radio-group.d.mts +7 -0
- package/components/ui/radio-group.d.ts +7 -0
- package/components/ui/radio-group.js +45 -0
- package/components/ui/radio-group.js.map +1 -0
- package/components/ui/radio-group.mjs +45 -0
- package/components/ui/radio-group.mjs.map +1 -0
- package/components/ui/resizable.d.mts +26 -0
- package/components/ui/resizable.d.ts +26 -0
- package/components/ui/resizable.js +54 -0
- package/components/ui/resizable.js.map +1 -0
- package/components/ui/resizable.mjs +54 -0
- package/components/ui/resizable.mjs.map +1 -0
- package/components/ui/scroll-area.d.mts +7 -0
- package/components/ui/scroll-area.d.ts +7 -0
- package/components/ui/scroll-area.js +48 -0
- package/components/ui/scroll-area.js.map +1 -0
- package/components/ui/scroll-area.mjs +48 -0
- package/components/ui/scroll-area.mjs.map +1 -0
- package/components/ui/select.d.mts +15 -0
- package/components/ui/select.d.ts +15 -0
- package/components/ui/select.js +141 -0
- package/components/ui/select.js.map +1 -0
- package/components/ui/select.mjs +141 -0
- package/components/ui/select.mjs.map +1 -0
- package/components/ui/separator.d.mts +6 -0
- package/components/ui/separator.d.ts +6 -0
- package/components/ui/separator.js +9 -0
- package/components/ui/separator.js.map +1 -0
- package/components/ui/separator.mjs +9 -0
- package/components/ui/separator.mjs.map +1 -0
- package/components/ui/sheet.d.mts +28 -0
- package/components/ui/sheet.d.ts +28 -0
- package/components/ui/sheet.js +28 -0
- package/components/ui/sheet.js.map +1 -0
- package/components/ui/sheet.mjs +28 -0
- package/components/ui/sheet.mjs.map +1 -0
- package/components/ui/sidebar.d.mts +72 -0
- package/components/ui/sidebar.d.ts +72 -0
- package/components/ui/sidebar.js +642 -0
- package/components/ui/sidebar.js.map +1 -0
- package/components/ui/sidebar.mjs +642 -0
- package/components/ui/sidebar.mjs.map +1 -0
- package/components/ui/skeleton.d.mts +5 -0
- package/components/ui/skeleton.d.ts +5 -0
- package/components/ui/skeleton.js +9 -0
- package/components/ui/skeleton.js.map +1 -0
- package/components/ui/skeleton.mjs +9 -0
- package/components/ui/skeleton.mjs.map +1 -0
- package/components/ui/slider.d.mts +6 -0
- package/components/ui/slider.d.ts +6 -0
- package/components/ui/slider.js +31 -0
- package/components/ui/slider.js.map +1 -0
- package/components/ui/slider.mjs +31 -0
- package/components/ui/slider.mjs.map +1 -0
- package/components/ui/sonner.d.mts +7 -0
- package/components/ui/sonner.d.ts +7 -0
- package/components/ui/sonner.js +32 -0
- package/components/ui/sonner.js.map +1 -0
- package/components/ui/sonner.mjs +32 -0
- package/components/ui/sonner.mjs.map +1 -0
- package/components/ui/switch.d.mts +6 -0
- package/components/ui/switch.d.ts +6 -0
- package/components/ui/switch.js +39 -0
- package/components/ui/switch.js.map +1 -0
- package/components/ui/switch.mjs +39 -0
- package/components/ui/switch.mjs.map +1 -0
- package/components/ui/table.d.mts +12 -0
- package/components/ui/table.d.ts +12 -0
- package/components/ui/table.js +115 -0
- package/components/ui/table.js.map +1 -0
- package/components/ui/table.mjs +115 -0
- package/components/ui/table.mjs.map +1 -0
- package/components/ui/tabs.d.mts +9 -0
- package/components/ui/tabs.d.ts +9 -0
- package/components/ui/tabs.js +61 -0
- package/components/ui/tabs.js.map +1 -0
- package/components/ui/tabs.mjs +61 -0
- package/components/ui/tabs.mjs.map +1 -0
- package/components/ui/textarea.d.mts +5 -0
- package/components/ui/textarea.d.ts +5 -0
- package/components/ui/textarea.js +28 -0
- package/components/ui/textarea.js.map +1 -0
- package/components/ui/textarea.mjs +28 -0
- package/components/ui/textarea.mjs.map +1 -0
- package/components/ui/toggle-group.d.mts +15 -0
- package/components/ui/toggle-group.d.ts +15 -0
- package/components/ui/toggle-group.js +55 -0
- package/components/ui/toggle-group.js.map +1 -0
- package/components/ui/toggle-group.mjs +55 -0
- package/components/ui/toggle-group.mjs.map +1 -0
- package/components/ui/toggle.d.mts +15 -0
- package/components/ui/toggle.d.ts +15 -0
- package/components/ui/toggle.js +11 -0
- package/components/ui/toggle.js.map +1 -0
- package/components/ui/toggle.mjs +11 -0
- package/components/ui/toggle.mjs.map +1 -0
- package/components/ui/tooltip.d.mts +9 -0
- package/components/ui/tooltip.d.ts +9 -0
- package/components/ui/tooltip.js +16 -0
- package/components/ui/tooltip.js.map +1 -0
- package/components/ui/tooltip.mjs +16 -0
- package/components/ui/tooltip.mjs.map +1 -0
- package/hooks/use-mobile.d.mts +3 -0
- package/hooks/use-mobile.d.ts +3 -0
- package/hooks/use-mobile.js +8 -0
- package/hooks/use-mobile.js.map +1 -0
- package/hooks/use-mobile.mjs +8 -0
- package/hooks/use-mobile.mjs.map +1 -0
- package/lib/utils.d.mts +5 -0
- package/lib/utils.d.ts +5 -0
- package/lib/utils.js +8 -0
- package/lib/utils.js.map +1 -0
- package/lib/utils.mjs +8 -0
- package/lib/utils.mjs.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn
|
|
3
|
+
} from "../../chunk-3ONILUYO.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "../../chunk-YOSPWY5K.mjs";
|
|
8
|
+
|
|
9
|
+
// components/ui/context-menu.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
12
|
+
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
13
|
+
var ContextMenu = ContextMenuPrimitive.Root;
|
|
14
|
+
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
15
|
+
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
16
|
+
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
17
|
+
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
18
|
+
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
19
|
+
var ContextMenuSubTrigger = React.forwardRef((_a, ref) => {
|
|
20
|
+
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
21
|
+
return /* @__PURE__ */ React.createElement(
|
|
22
|
+
ContextMenuPrimitive.SubTrigger,
|
|
23
|
+
__spreadValues({
|
|
24
|
+
ref,
|
|
25
|
+
className: cn(
|
|
26
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
27
|
+
inset && "pl-8",
|
|
28
|
+
className
|
|
29
|
+
)
|
|
30
|
+
}, props),
|
|
31
|
+
children,
|
|
32
|
+
/* @__PURE__ */ React.createElement(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
33
|
+
);
|
|
34
|
+
});
|
|
35
|
+
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
36
|
+
var ContextMenuSubContent = React.forwardRef((_a, ref) => {
|
|
37
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
38
|
+
return /* @__PURE__ */ React.createElement(
|
|
39
|
+
ContextMenuPrimitive.SubContent,
|
|
40
|
+
__spreadValues({
|
|
41
|
+
ref,
|
|
42
|
+
className: cn(
|
|
43
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
44
|
+
className
|
|
45
|
+
)
|
|
46
|
+
}, props)
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
50
|
+
var ContextMenuContent = React.forwardRef((_a, ref) => {
|
|
51
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
52
|
+
return /* @__PURE__ */ React.createElement(ContextMenuPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
|
|
53
|
+
ContextMenuPrimitive.Content,
|
|
54
|
+
__spreadValues({
|
|
55
|
+
ref,
|
|
56
|
+
className: cn(
|
|
57
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
58
|
+
className
|
|
59
|
+
)
|
|
60
|
+
}, props)
|
|
61
|
+
));
|
|
62
|
+
});
|
|
63
|
+
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
64
|
+
var ContextMenuItem = React.forwardRef((_a, ref) => {
|
|
65
|
+
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
66
|
+
return /* @__PURE__ */ React.createElement(
|
|
67
|
+
ContextMenuPrimitive.Item,
|
|
68
|
+
__spreadValues({
|
|
69
|
+
ref,
|
|
70
|
+
className: cn(
|
|
71
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
72
|
+
inset && "pl-8",
|
|
73
|
+
className
|
|
74
|
+
)
|
|
75
|
+
}, props)
|
|
76
|
+
);
|
|
77
|
+
});
|
|
78
|
+
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
79
|
+
var ContextMenuCheckboxItem = React.forwardRef((_a, ref) => {
|
|
80
|
+
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
81
|
+
return /* @__PURE__ */ React.createElement(
|
|
82
|
+
ContextMenuPrimitive.CheckboxItem,
|
|
83
|
+
__spreadValues({
|
|
84
|
+
ref,
|
|
85
|
+
className: cn(
|
|
86
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
87
|
+
className
|
|
88
|
+
),
|
|
89
|
+
checked
|
|
90
|
+
}, props),
|
|
91
|
+
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(ContextMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(Check, { className: "h-4 w-4" }))),
|
|
92
|
+
children
|
|
93
|
+
);
|
|
94
|
+
});
|
|
95
|
+
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
96
|
+
var ContextMenuRadioItem = React.forwardRef((_a, ref) => {
|
|
97
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
98
|
+
return /* @__PURE__ */ React.createElement(
|
|
99
|
+
ContextMenuPrimitive.RadioItem,
|
|
100
|
+
__spreadValues({
|
|
101
|
+
ref,
|
|
102
|
+
className: cn(
|
|
103
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
104
|
+
className
|
|
105
|
+
)
|
|
106
|
+
}, props),
|
|
107
|
+
/* @__PURE__ */ React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ React.createElement(ContextMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React.createElement(Circle, { className: "h-4 w-4 fill-current" }))),
|
|
108
|
+
children
|
|
109
|
+
);
|
|
110
|
+
});
|
|
111
|
+
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
112
|
+
var ContextMenuLabel = React.forwardRef((_a, ref) => {
|
|
113
|
+
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
114
|
+
return /* @__PURE__ */ React.createElement(
|
|
115
|
+
ContextMenuPrimitive.Label,
|
|
116
|
+
__spreadValues({
|
|
117
|
+
ref,
|
|
118
|
+
className: cn(
|
|
119
|
+
"px-2 py-1.5 text-sm font-semibold text-foreground",
|
|
120
|
+
inset && "pl-8",
|
|
121
|
+
className
|
|
122
|
+
)
|
|
123
|
+
}, props)
|
|
124
|
+
);
|
|
125
|
+
});
|
|
126
|
+
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
127
|
+
var ContextMenuSeparator = React.forwardRef((_a, ref) => {
|
|
128
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
129
|
+
return /* @__PURE__ */ React.createElement(
|
|
130
|
+
ContextMenuPrimitive.Separator,
|
|
131
|
+
__spreadValues({
|
|
132
|
+
ref,
|
|
133
|
+
className: cn("-mx-1 my-1 h-px bg-border", className)
|
|
134
|
+
}, props)
|
|
135
|
+
);
|
|
136
|
+
});
|
|
137
|
+
ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
|
|
138
|
+
var ContextMenuShortcut = (_a) => {
|
|
139
|
+
var _b = _a, {
|
|
140
|
+
className
|
|
141
|
+
} = _b, props = __objRest(_b, [
|
|
142
|
+
"className"
|
|
143
|
+
]);
|
|
144
|
+
return /* @__PURE__ */ React.createElement(
|
|
145
|
+
"span",
|
|
146
|
+
__spreadValues({
|
|
147
|
+
className: cn(
|
|
148
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
149
|
+
className
|
|
150
|
+
)
|
|
151
|
+
}, props)
|
|
152
|
+
);
|
|
153
|
+
};
|
|
154
|
+
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
155
|
+
export {
|
|
156
|
+
ContextMenu,
|
|
157
|
+
ContextMenuCheckboxItem,
|
|
158
|
+
ContextMenuContent,
|
|
159
|
+
ContextMenuGroup,
|
|
160
|
+
ContextMenuItem,
|
|
161
|
+
ContextMenuLabel,
|
|
162
|
+
ContextMenuPortal,
|
|
163
|
+
ContextMenuRadioGroup,
|
|
164
|
+
ContextMenuRadioItem,
|
|
165
|
+
ContextMenuSeparator,
|
|
166
|
+
ContextMenuShortcut,
|
|
167
|
+
ContextMenuSub,
|
|
168
|
+
ContextMenuSubContent,
|
|
169
|
+
ContextMenuSubTrigger,
|
|
170
|
+
ContextMenuTrigger
|
|
171
|
+
};
|
|
172
|
+
//# sourceMappingURL=context-menu.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/context-menu.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as ContextMenuPrimitive from \"@radix-ui/react-context-menu\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ContextMenu = ContextMenuPrimitive.Root\n\nconst ContextMenuTrigger = ContextMenuPrimitive.Trigger\n\nconst ContextMenuGroup = ContextMenuPrimitive.Group\n\nconst ContextMenuPortal = ContextMenuPrimitive.Portal\n\nconst ContextMenuSub = ContextMenuPrimitive.Sub\n\nconst ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup\n\nconst ContextMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <ContextMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-4 w-4\" />\n </ContextMenuPrimitive.SubTrigger>\n))\nContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName\n\nconst ContextMenuSubContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n))\nContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName\n\nconst ContextMenuContent = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Portal>\n <ContextMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </ContextMenuPrimitive.Portal>\n))\nContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName\n\nconst ContextMenuItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n))\nContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName\n\nconst ContextMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <ContextMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.CheckboxItem>\n))\nContextMenuCheckboxItem.displayName =\n ContextMenuPrimitive.CheckboxItem.displayName\n\nconst ContextMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <ContextMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <ContextMenuPrimitive.ItemIndicator>\n <Circle className=\"h-4 w-4 fill-current\" />\n </ContextMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </ContextMenuPrimitive.RadioItem>\n))\nContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName\n\nconst ContextMenuLabel = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <ContextMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold text-foreground\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n))\nContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName\n\nconst ContextMenuSeparator = React.forwardRef<\n React.ElementRef<typeof ContextMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <ContextMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n))\nContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName\n\nconst ContextMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n )\n}\nContextMenuShortcut.displayName = \"ContextMenuShortcut\"\n\nexport {\n ContextMenu,\n ContextMenuTrigger,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuCheckboxItem,\n ContextMenuRadioItem,\n ContextMenuLabel,\n ContextMenuSeparator,\n ContextMenuShortcut,\n ContextMenuGroup,\n ContextMenuPortal,\n ContextMenuSub,\n ContextMenuSubContent,\n ContextMenuSubTrigger,\n ContextMenuRadioGroup,\n}\n"],"mappings":";;;;;;;;;AAAA,YAAY,WAAW;AACvB,YAAY,0BAA0B;AACtC,SAAS,OAAO,cAAc,cAAc;AAI5C,IAAM,cAAmC;AAEzC,IAAM,qBAA0C;AAEhD,IAAM,mBAAwC;AAE9C,IAAM,oBAAyC;AAE/C,IAAM,iBAAsC;AAE5C,IAAM,wBAA6C;AAEnD,IAAM,wBAA8B,iBAKlC,CAAC,IAA0C,QAAK;AAA/C,e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HhB,eAC3B;AAAA;AAAA,EAtKF,IAqK6B,IAExB,kBAFwB,IAExB;AAAA,IADH;AAAA;AAGA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAEJ;AACA,oBAAoB,cAAc;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
5
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
7
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const DialogHeader: {
|
|
11
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
declare const DialogFooter: {
|
|
15
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
19
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
|
|
21
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
5
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
7
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const DialogHeader: {
|
|
11
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
declare const DialogFooter: {
|
|
15
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
19
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
|
|
21
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkB5KVOXLOjs = require('../../chunk-B5KVOXLO.js');
|
|
14
|
+
require('../../chunk-B2G2EZ4P.js');
|
|
15
|
+
require('../../chunk-2NMEKWO5.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.Dialog = _chunkB5KVOXLOjs.Dialog; exports.DialogClose = _chunkB5KVOXLOjs.DialogClose; exports.DialogContent = _chunkB5KVOXLOjs.DialogContent; exports.DialogDescription = _chunkB5KVOXLOjs.DialogDescription; exports.DialogFooter = _chunkB5KVOXLOjs.DialogFooter; exports.DialogHeader = _chunkB5KVOXLOjs.DialogHeader; exports.DialogOverlay = _chunkB5KVOXLOjs.DialogOverlay; exports.DialogPortal = _chunkB5KVOXLOjs.DialogPortal; exports.DialogTitle = _chunkB5KVOXLOjs.DialogTitle; exports.DialogTrigger = _chunkB5KVOXLOjs.DialogTrigger;
|
|
28
|
+
//# sourceMappingURL=dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/dialog.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,2hBAAC","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/dialog.js"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Dialog,
|
|
4
|
+
DialogClose,
|
|
5
|
+
DialogContent,
|
|
6
|
+
DialogDescription,
|
|
7
|
+
DialogFooter,
|
|
8
|
+
DialogHeader,
|
|
9
|
+
DialogOverlay,
|
|
10
|
+
DialogPortal,
|
|
11
|
+
DialogTitle,
|
|
12
|
+
DialogTrigger
|
|
13
|
+
} from "../../chunk-BIIFJJWL.mjs";
|
|
14
|
+
import "../../chunk-3ONILUYO.mjs";
|
|
15
|
+
import "../../chunk-YOSPWY5K.mjs";
|
|
16
|
+
export {
|
|
17
|
+
Dialog,
|
|
18
|
+
DialogClose,
|
|
19
|
+
DialogContent,
|
|
20
|
+
DialogDescription,
|
|
21
|
+
DialogFooter,
|
|
22
|
+
DialogHeader,
|
|
23
|
+
DialogOverlay,
|
|
24
|
+
DialogPortal,
|
|
25
|
+
DialogTitle,
|
|
26
|
+
DialogTrigger
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as vaul from 'vaul';
|
|
2
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
declare const Drawer: {
|
|
7
|
+
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
12
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const DrawerHeader: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const DrawerFooter: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
|
|
26
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as vaul from 'vaul';
|
|
2
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
declare const Drawer: {
|
|
7
|
+
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof Drawer$1.Root>): React.JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
12
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const DrawerHeader: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const DrawerFooter: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
|
|
26
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkB2G2EZ4Pjs = require('../../chunk-B2G2EZ4P.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk2NMEKWO5js = require('../../chunk-2NMEKWO5.js');
|
|
9
|
+
|
|
10
|
+
// components/ui/drawer.tsx
|
|
11
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
12
|
+
var _vaul = require('vaul');
|
|
13
|
+
var Drawer = (_a) => {
|
|
14
|
+
var _b = _a, {
|
|
15
|
+
shouldScaleBackground = true
|
|
16
|
+
} = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, [
|
|
17
|
+
"shouldScaleBackground"
|
|
18
|
+
]);
|
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
|
20
|
+
_vaul.Drawer.Root,
|
|
21
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
22
|
+
shouldScaleBackground
|
|
23
|
+
}, props)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
Drawer.displayName = "Drawer";
|
|
27
|
+
var DrawerTrigger = _vaul.Drawer.Trigger;
|
|
28
|
+
var DrawerPortal = _vaul.Drawer.Portal;
|
|
29
|
+
var DrawerClose = _vaul.Drawer.Close;
|
|
30
|
+
var DrawerOverlay = React.forwardRef((_a, ref) => {
|
|
31
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
32
|
+
return /* @__PURE__ */ React.createElement(
|
|
33
|
+
_vaul.Drawer.Overlay,
|
|
34
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
35
|
+
ref,
|
|
36
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0, "fixed inset-0 z-50 bg-black/80", className)
|
|
37
|
+
}, props)
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
DrawerOverlay.displayName = _vaul.Drawer.Overlay.displayName;
|
|
41
|
+
var DrawerContent = React.forwardRef((_a, ref) => {
|
|
42
|
+
var _b = _a, { className, children } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className", "children"]);
|
|
43
|
+
return /* @__PURE__ */ React.createElement(DrawerPortal, null, /* @__PURE__ */ React.createElement(DrawerOverlay, null), /* @__PURE__ */ React.createElement(
|
|
44
|
+
_vaul.Drawer.Content,
|
|
45
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
46
|
+
ref,
|
|
47
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0,
|
|
48
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
49
|
+
className
|
|
50
|
+
)
|
|
51
|
+
}, props),
|
|
52
|
+
/* @__PURE__ */ React.createElement("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
53
|
+
children
|
|
54
|
+
));
|
|
55
|
+
});
|
|
56
|
+
DrawerContent.displayName = "DrawerContent";
|
|
57
|
+
var DrawerHeader = (_a) => {
|
|
58
|
+
var _b = _a, {
|
|
59
|
+
className
|
|
60
|
+
} = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, [
|
|
61
|
+
"className"
|
|
62
|
+
]);
|
|
63
|
+
return /* @__PURE__ */ React.createElement(
|
|
64
|
+
"div",
|
|
65
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
66
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0, "grid gap-1.5 p-4 text-center sm:text-left", className)
|
|
67
|
+
}, props)
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
71
|
+
var DrawerFooter = (_a) => {
|
|
72
|
+
var _b = _a, {
|
|
73
|
+
className
|
|
74
|
+
} = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, [
|
|
75
|
+
"className"
|
|
76
|
+
]);
|
|
77
|
+
return /* @__PURE__ */ React.createElement(
|
|
78
|
+
"div",
|
|
79
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
80
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0, "mt-auto flex flex-col gap-2 p-4", className)
|
|
81
|
+
}, props)
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
85
|
+
var DrawerTitle = React.forwardRef((_a, ref) => {
|
|
86
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
87
|
+
return /* @__PURE__ */ React.createElement(
|
|
88
|
+
_vaul.Drawer.Title,
|
|
89
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
90
|
+
ref,
|
|
91
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0,
|
|
92
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
93
|
+
className
|
|
94
|
+
)
|
|
95
|
+
}, props)
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
DrawerTitle.displayName = _vaul.Drawer.Title.displayName;
|
|
99
|
+
var DrawerDescription = React.forwardRef((_a, ref) => {
|
|
100
|
+
var _b = _a, { className } = _b, props = _chunk2NMEKWO5js.__objRest.call(void 0, _b, ["className"]);
|
|
101
|
+
return /* @__PURE__ */ React.createElement(
|
|
102
|
+
_vaul.Drawer.Description,
|
|
103
|
+
_chunk2NMEKWO5js.__spreadValues.call(void 0, {
|
|
104
|
+
ref,
|
|
105
|
+
className: _chunkB2G2EZ4Pjs.cn.call(void 0, "text-sm text-muted-foreground", className)
|
|
106
|
+
}, props)
|
|
107
|
+
);
|
|
108
|
+
});
|
|
109
|
+
DrawerDescription.displayName = _vaul.Drawer.Description.displayName;
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
exports.Drawer = Drawer; exports.DrawerClose = DrawerClose; exports.DrawerContent = DrawerContent; exports.DrawerDescription = DrawerDescription; exports.DrawerFooter = DrawerFooter; exports.DrawerHeader = DrawerHeader; exports.DrawerOverlay = DrawerOverlay; exports.DrawerPortal = DrawerPortal; exports.DrawerTitle = DrawerTitle; exports.DrawerTrigger = DrawerTrigger;
|
|
122
|
+
//# sourceMappingURL=drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/drawer.js","../../../components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,uWAAY;AACZ;AACE;AACF,0DAAgC;AAChC;AACE;AACA;AACF,0DAAgC;AAChC;AACA;ACPA,2EAAuB;AACvB,4BAA0C;AAI1C,IAAM,OAAA,EAAS,CAAC,EAAA,EAAA,GAGsC;AAHtC,EAAA,IAAA,GAAA,EAAA,EAAA,EACd;AAAA,IAAA,sBAAA,EAAwB;AAAA,EAR1B,EAAA,EAOgB,EAAA,EAEX,MAAA,EAAA,wCAAA,EAFW,EAEX;AAAA,IADH;AAAA,EAAA,CAAA,CAAA;AAGA,EAAA,uBAAA,KAAA,CA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CAGxB,CAAC,EAAA,EAAyB,GAAA,EAAA,GAAK;AAA9B,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,UAlFL,EAAA,EAkFG,EAAA,EAAgB,MAAA,EAAA,wCAAA,EAAhB,EAAgB,CAAd,WAAA,CAAA,CAAA;AACH,EAAA,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,YAAA,CAAgB,KAAA;AAAA,IAAhB,6CAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,iCAAA;AAAA,QACT,mDAAA;AAAA,QACA;AAAA,MACF;AAAA,IAAA,CAAA,EACI,KAAA;AAAA,EACN,CAAA;AAAA,CACD,CAAA;AACD,WAAA,CAAY,YAAA,EAAc,YAAA,CAAgB,KAAA,CAAM,WAAA;AAEhD,IAAM,kBAAA,EAA0B,KAAA,CAAA,UAAA,CAG9B,CAAC,EAAA,EAAyB,GAAA,EAAA,GAAK;AAA9B,EAAA,IAAA,GAAA,EAAA,EAAA,EAAE,EAAA,UAjGL,EAAA,EAiGG,EAAA,EAAgB,MAAA,EAAA,wCAAA,EAAhB,EAAgB,CAAd,WAAA,CAAA,CAAA;AACH,EAAA,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,YAAA,CAAgB,WAAA;AAAA,IAAhB,6CAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,iCAAA,+BAAG,EAAiC,SAAS;AAAA,IAAA,CAAA,EACpD,KAAA;AAAA,EACN,CAAA;AAAA,CACD,CAAA;AACD,iBAAA,CAAkB,YAAA,EAAc,YAAA,CAAgB,WAAA,CAAY,WAAA;ADK5D;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,iXAAC","file":"/home/ahnjun/projects/egose-shadcn/package/dist/components/ui/drawer.js","sourcesContent":[null,"\"use client\"\n\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Drawer = ({\n shouldScaleBackground = true,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n)\nDrawer.displayName = \"Drawer\"\n\nconst DrawerTrigger = DrawerPrimitive.Trigger\n\nconst DrawerPortal = DrawerPrimitive.Portal\n\nconst DrawerClose = DrawerPrimitive.Close\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n className={cn(\"fixed inset-0 z-50 bg-black/80\", className)}\n {...props}\n />\n))\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background\",\n className\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n))\nDrawerContent.displayName = \"DrawerContent\"\n\nconst DrawerHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"grid gap-1.5 p-4 text-center sm:text-left\", className)}\n {...props}\n />\n)\nDrawerHeader.displayName = \"DrawerHeader\"\n\nconst DrawerFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n)\nDrawerFooter.displayName = \"DrawerFooter\"\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn(\n \"text-lg font-semibold leading-none tracking-tight\",\n className\n )}\n {...props}\n />\n))\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n}\n"]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "../../chunk-3ONILUYO.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__objRest,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "../../chunk-YOSPWY5K.mjs";
|
|
9
|
+
|
|
10
|
+
// components/ui/drawer.tsx
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { Drawer as DrawerPrimitive } from "vaul";
|
|
13
|
+
var Drawer = (_a) => {
|
|
14
|
+
var _b = _a, {
|
|
15
|
+
shouldScaleBackground = true
|
|
16
|
+
} = _b, props = __objRest(_b, [
|
|
17
|
+
"shouldScaleBackground"
|
|
18
|
+
]);
|
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
|
20
|
+
DrawerPrimitive.Root,
|
|
21
|
+
__spreadValues({
|
|
22
|
+
shouldScaleBackground
|
|
23
|
+
}, props)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
Drawer.displayName = "Drawer";
|
|
27
|
+
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
28
|
+
var DrawerPortal = DrawerPrimitive.Portal;
|
|
29
|
+
var DrawerClose = DrawerPrimitive.Close;
|
|
30
|
+
var DrawerOverlay = React.forwardRef((_a, ref) => {
|
|
31
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
32
|
+
return /* @__PURE__ */ React.createElement(
|
|
33
|
+
DrawerPrimitive.Overlay,
|
|
34
|
+
__spreadValues({
|
|
35
|
+
ref,
|
|
36
|
+
className: cn("fixed inset-0 z-50 bg-black/80", className)
|
|
37
|
+
}, props)
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
41
|
+
var DrawerContent = React.forwardRef((_a, ref) => {
|
|
42
|
+
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
43
|
+
return /* @__PURE__ */ React.createElement(DrawerPortal, null, /* @__PURE__ */ React.createElement(DrawerOverlay, null), /* @__PURE__ */ React.createElement(
|
|
44
|
+
DrawerPrimitive.Content,
|
|
45
|
+
__spreadValues({
|
|
46
|
+
ref,
|
|
47
|
+
className: cn(
|
|
48
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
|
|
49
|
+
className
|
|
50
|
+
)
|
|
51
|
+
}, props),
|
|
52
|
+
/* @__PURE__ */ React.createElement("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
53
|
+
children
|
|
54
|
+
));
|
|
55
|
+
});
|
|
56
|
+
DrawerContent.displayName = "DrawerContent";
|
|
57
|
+
var DrawerHeader = (_a) => {
|
|
58
|
+
var _b = _a, {
|
|
59
|
+
className
|
|
60
|
+
} = _b, props = __objRest(_b, [
|
|
61
|
+
"className"
|
|
62
|
+
]);
|
|
63
|
+
return /* @__PURE__ */ React.createElement(
|
|
64
|
+
"div",
|
|
65
|
+
__spreadValues({
|
|
66
|
+
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className)
|
|
67
|
+
}, props)
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
DrawerHeader.displayName = "DrawerHeader";
|
|
71
|
+
var DrawerFooter = (_a) => {
|
|
72
|
+
var _b = _a, {
|
|
73
|
+
className
|
|
74
|
+
} = _b, props = __objRest(_b, [
|
|
75
|
+
"className"
|
|
76
|
+
]);
|
|
77
|
+
return /* @__PURE__ */ React.createElement(
|
|
78
|
+
"div",
|
|
79
|
+
__spreadValues({
|
|
80
|
+
className: cn("mt-auto flex flex-col gap-2 p-4", className)
|
|
81
|
+
}, props)
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
DrawerFooter.displayName = "DrawerFooter";
|
|
85
|
+
var DrawerTitle = React.forwardRef((_a, ref) => {
|
|
86
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
87
|
+
return /* @__PURE__ */ React.createElement(
|
|
88
|
+
DrawerPrimitive.Title,
|
|
89
|
+
__spreadValues({
|
|
90
|
+
ref,
|
|
91
|
+
className: cn(
|
|
92
|
+
"text-lg font-semibold leading-none tracking-tight",
|
|
93
|
+
className
|
|
94
|
+
)
|
|
95
|
+
}, props)
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
99
|
+
var DrawerDescription = React.forwardRef((_a, ref) => {
|
|
100
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
101
|
+
return /* @__PURE__ */ React.createElement(
|
|
102
|
+
DrawerPrimitive.Description,
|
|
103
|
+
__spreadValues({
|
|
104
|
+
ref,
|
|
105
|
+
className: cn("text-sm text-muted-foreground", className)
|
|
106
|
+
}, props)
|
|
107
|
+
);
|
|
108
|
+
});
|
|
109
|
+
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
110
|
+
export {
|
|
111
|
+
Drawer,
|
|
112
|
+
DrawerClose,
|
|
113
|
+
DrawerContent,
|
|
114
|
+
DrawerDescription,
|
|
115
|
+
DrawerFooter,
|
|
116
|
+
DrawerHeader,
|
|
117
|
+
DrawerOverlay,
|
|
118
|
+
DrawerPortal,
|
|
119
|
+
DrawerTitle,
|
|
120
|
+
DrawerTrigger
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=drawer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../components/ui/drawer.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Drawer as DrawerPrimitive } from \"vaul\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst Drawer = ({\n shouldScaleBackground = true,\n ...props\n}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (\n <DrawerPrimitive.Root\n shouldScaleBackground={shouldScaleBackground}\n {...props}\n />\n)\nDrawer.displayName = \"Drawer\"\n\nconst DrawerTrigger = DrawerPrimitive.Trigger\n\nconst DrawerPortal = DrawerPrimitive.Portal\n\nconst DrawerClose = DrawerPrimitive.Close\n\nconst DrawerOverlay = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Overlay\n ref={ref}\n className={cn(\"fixed inset-0 z-50 bg-black/80\", className)}\n {...props}\n />\n))\nDrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName\n\nconst DrawerContent = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DrawerPortal>\n <DrawerOverlay />\n <DrawerPrimitive.Content\n ref={ref}\n className={cn(\n \"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background\",\n className\n )}\n {...props}\n >\n <div className=\"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted\" />\n {children}\n </DrawerPrimitive.Content>\n </DrawerPortal>\n))\nDrawerContent.displayName = \"DrawerContent\"\n\nconst DrawerHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"grid gap-1.5 p-4 text-center sm:text-left\", className)}\n {...props}\n />\n)\nDrawerHeader.displayName = \"DrawerHeader\"\n\nconst DrawerFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"mt-auto flex flex-col gap-2 p-4\", className)}\n {...props}\n />\n)\nDrawerFooter.displayName = \"DrawerFooter\"\n\nconst DrawerTitle = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Title\n ref={ref}\n className={cn(\n \"text-lg font-semibold leading-none tracking-tight\",\n className\n )}\n {...props}\n />\n))\nDrawerTitle.displayName = DrawerPrimitive.Title.displayName\n\nconst DrawerDescription = React.forwardRef<\n React.ElementRef<typeof DrawerPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DrawerPrimitive.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n))\nDrawerDescription.displayName = DrawerPrimitive.Description.displayName\n\nexport {\n Drawer,\n DrawerPortal,\n DrawerOverlay,\n DrawerTrigger,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerFooter,\n DrawerTitle,\n DrawerDescription,\n}\n"],"mappings":";;;;;;;;;;AAEA,YAAY,WAAW;AACvB,SAAS,UAAU,uBAAuB;AAI1C,IAAM,SAAS,CAAC,OAGsC;AAHtC,eACd;AAAA,4BAAwB;AAAA,EAR1B,IAOgB,IAEX,kBAFW,IAEX;AAAA,IADH;AAAA;AAGA;AAAA,IAAC,gBAAgB;AAAA,IAAhB;AAAA,MACC;AAAA,OACI;AAAA,EACN;AAA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