@gv-tech/ui-web 2.29.1 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +53 -2
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +2 -3
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +26 -26
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -5
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +13 -13
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +5 -5
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +13 -13
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +5 -5
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -2
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +13 -14
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -2
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +41 -42
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +8 -9
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +2 -3
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +37 -38
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +34 -35
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +27 -28
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -2
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +29 -29
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +5 -5
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -2
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -2
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +15 -16
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -2
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -2
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -2
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -2
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +6 -11
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -2
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +39 -40
- package/dist/{sidebar-DM9ee9wf.mjs → sidebar-DrU3nKaL.mjs} +137 -135
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -2
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +2 -3
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +5 -6
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +2 -3
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -2
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +14 -12
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.mjs +1 -2
- package/dist/{theme-toggle-3RStptYf.mjs → theme-toggle-9KtAIRxy.mjs} +18 -20
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -2
- package/dist/{toaster-gT2b7mfE.mjs → toaster-8RrHPtlc.mjs} +10 -12
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -2
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +3 -3
- package/dist/accordion-D5QXSsCK.mjs +0 -248
- package/dist/accordion-DjyDOX-h.js +0 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +0 -182
- package/dist/alert-dialog-DYQAhGBC.js +0 -1
- package/dist/aspect-ratio-C-KOOyGP.js +0 -1
- package/dist/aspect-ratio-s7Ji1MSr.mjs +0 -40
- package/dist/avatar-4K3XjhP8.js +0 -1
- package/dist/avatar-d8Di248f.mjs +0 -138
- package/dist/calendar-DFj14O6r.js +0 -1
- package/dist/calendar-UW8h9dfh.mjs +0 -3182
- package/dist/carousel-CNGpg5df.js +0 -1
- package/dist/carousel-DG9xGJns.mjs +0 -1171
- package/dist/checkbox-BCgbTAdU.js +0 -1
- package/dist/checkbox-Dq8VHKDH.mjs +0 -186
- package/dist/chunk-BmowowmI.mjs +0 -14
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +0 -63
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-CpPIGtPJ.js +0 -4
- package/dist/combobox-b4OmCNw1.mjs +0 -5887
- package/dist/command-5hobOyGG.mjs +0 -545
- package/dist/command-Dbqnm9kI.js +0 -1
- package/dist/context-menu-DyTUismw.js +0 -1
- package/dist/context-menu-DzzU-_v8.mjs +0 -317
- package/dist/dist-1zUKVGvf.js +0 -1
- package/dist/dist-B057I8ju.mjs +0 -30
- package/dist/dist-BB78QQyQ.mjs +0 -41
- package/dist/dist-BBvidwzC.js +0 -1
- package/dist/dist-BEbV0Hal.mjs +0 -45
- package/dist/dist-BPL7gUpg.mjs +0 -18
- package/dist/dist-BTUvBzOm.js +0 -1
- package/dist/dist-BU-TFzJf.js +0 -1
- package/dist/dist-Bb5W_J2F.mjs +0 -39
- package/dist/dist-BbI6NHqR.mjs +0 -23
- package/dist/dist-BexAB6yo.mjs +0 -192
- package/dist/dist-BgXIqHHq.js +0 -1
- package/dist/dist-Bvfb4y_L.mjs +0 -100
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-CPAF050o.mjs +0 -90
- package/dist/dist-CS572Be42.mjs +0 -11
- package/dist/dist-CUvxOuXM.mjs +0 -551
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-ClYM7l1t.js +0 -1
- package/dist/dist-CpKLY_uZ.mjs +0 -96
- package/dist/dist-D1qkELLT.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-DEpkkABT.js +0 -1
- package/dist/dist-DI1vapnL.mjs +0 -20
- package/dist/dist-DJqkhIXb2.js +0 -1
- package/dist/dist-DKXojpVG.js +0 -1
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DatgTWLz.mjs +0 -202
- package/dist/dist-Dm3IQk5b.mjs +0 -685
- package/dist/dist-DoivLw3t.js +0 -1
- package/dist/dist-Dq-h6VAy.mjs +0 -118
- package/dist/dist-Dt6m-kwU.mjs +0 -221
- package/dist/dist-E8ieJTBC.mjs +0 -190
- package/dist/dist-GazS1kfR.mjs +0 -5
- package/dist/dist-N97cIp0_.js +0 -1
- package/dist/dist-OqDzLHTa.mjs +0 -460
- package/dist/dist-Qm9hFvM1.js +0 -1
- package/dist/dist-UkWa-Arh.mjs +0 -16
- package/dist/dist-UnTrOmPV.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-Zs2sjYhL.js +0 -1
- package/dist/dist-hFLuJoMi.js +0 -1
- package/dist/dist-s7ibhASj.mjs +0 -181
- package/dist/dist-vu20fMUK.mjs +0 -93
- package/dist/dropdown-menu-BqAhn64y.mjs +0 -313
- package/dist/dropdown-menu-BtKOr--r.js +0 -1
- package/dist/es2015-DbAsWDbs.js +0 -41
- package/dist/es2015-DbsmTzuc.mjs +0 -571
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/floating-ui.react-dom-CyupHsR6.mjs +0 -1062
- package/dist/hover-card-DMsxpR9G.mjs +0 -178
- package/dist/hover-card-DWXusgiI.js +0 -1
- package/dist/input-otp-D49Y9VcH.mjs +0 -409
- package/dist/input-otp-u3obpt-Q.js +0 -20
- package/dist/label-Dacwh21G.js +0 -1
- package/dist/label-DsSICLPc.mjs +0 -28
- package/dist/menubar-BYNeRuzx.js +0 -1
- package/dist/menubar-DZqEj6S1.mjs +0 -407
- package/dist/message-scroller-CS4t7Ypn.mjs +0 -824
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-B36G3O83.js +0 -1
- package/dist/navigation-menu-RO6thDOF.mjs +0 -636
- package/dist/popover-DSBkc70V.mjs +0 -243
- package/dist/popover-DUHbvKB8.js +0 -1
- package/dist/progress-B9z08UXf.js +0 -6
- package/dist/progress-CQ4nQ85t.mjs +0 -92
- package/dist/questionnaire-CVED7G7R.mjs +0 -1159
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-Bd3WbH5I.js +0 -1
- package/dist/radio-group-TRiAhMZB.mjs +0 -266
- package/dist/resizable-Cq60hEWB.js +0 -1
- package/dist/resizable-Qc8cVUKd.mjs +0 -2857
- package/dist/scroll-area-D6MiNHnJ.mjs +0 -564
- package/dist/scroll-area-DFUdJeSZ.js +0 -1
- package/dist/select-BFJUmjvX.mjs +0 -830
- package/dist/select-iQFoKU1s.js +0 -1
- package/dist/separator-2kr96SyF.mjs +0 -40
- package/dist/separator-Bo49G2aj.js +0 -1
- package/dist/sidebar-C6O8hLkz.js +0 -1
- package/dist/slider-CagVxozY.js +0 -1
- package/dist/slider-CdTCoQu1.mjs +0 -485
- package/dist/switch-CoeAC1Wk.js +0 -1
- package/dist/switch-zUBdj7jK.mjs +0 -174
- package/dist/tabs-DaE9pEbo.mjs +0 -160
- package/dist/tabs-TMhXe20x.js +0 -1
- package/dist/theme-toggle-DKh8WFLT.js +0 -1
- package/dist/toast-B0S3F09s.js +0 -1
- package/dist/toast-D0Yb-K84.mjs +0 -445
- package/dist/toaster-CX9im8R_.js +0 -1
- package/dist/toggle-B0hXPsi7.js +0 -1
- package/dist/toggle-BAeKd2N0.mjs +0 -59
- package/dist/toggle-group-CEKhUozD.mjs +0 -167
- package/dist/toggle-group-htyug3G7.js +0 -1
- package/dist/tooltip-BZazhXDZ.js +0 -1
- package/dist/tooltip-R_nK_Qh5.mjs +0 -390
package/dist/combobox.mjs
CHANGED
|
@@ -1,4 +1,163 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { Button as e } from "./button.mjs";
|
|
4
|
+
import { InputGroup as t, InputGroupAddon as n, InputGroupButton as r, InputGroupInput as i } from "./input-group.mjs";
|
|
5
|
+
import { cn as a } from "cn";
|
|
6
|
+
import { CheckIcon as o, ChevronDownIcon as s, XIcon as c } from "lucide-react";
|
|
7
|
+
import * as l from "react";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
import { Combobox as f } from "@base-ui/react";
|
|
10
|
+
// src/combobox.tsx
|
|
11
|
+
var p = f.Root;
|
|
12
|
+
function m({ ...e }) {
|
|
13
|
+
return /* @__PURE__ */ u(f.Value, {
|
|
14
|
+
"data-slot": "combobox-value",
|
|
15
|
+
...e
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function h({ className: e, children: t, ...n }) {
|
|
19
|
+
return /* @__PURE__ */ d(f.Trigger, {
|
|
20
|
+
"data-slot": "combobox-trigger",
|
|
21
|
+
className: a("[&_svg:not([class*='size-'])]:size-4", e),
|
|
22
|
+
...n,
|
|
23
|
+
children: [t, /* @__PURE__ */ u(s, { className: "text-muted-foreground pointer-events-none size-4" })]
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function g({ className: e, ...t }) {
|
|
27
|
+
return /* @__PURE__ */ u(f.Clear, {
|
|
28
|
+
"data-slot": "combobox-clear",
|
|
29
|
+
render: /* @__PURE__ */ u(r, {
|
|
30
|
+
variant: "ghost",
|
|
31
|
+
size: "icon-xs"
|
|
32
|
+
}),
|
|
33
|
+
className: a(e),
|
|
34
|
+
...t,
|
|
35
|
+
children: /* @__PURE__ */ u(c, { className: "pointer-events-none" })
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function _({ className: e, children: o, disabled: s = !1, showTrigger: c = !0, showClear: l = !1, ...p }) {
|
|
39
|
+
return /* @__PURE__ */ d(t, {
|
|
40
|
+
className: a("w-auto", e),
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ u(f.Input, {
|
|
43
|
+
render: /* @__PURE__ */ u(i, { disabled: s }),
|
|
44
|
+
...p
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ d(n, {
|
|
47
|
+
align: "inline-end",
|
|
48
|
+
children: [c && /* @__PURE__ */ u(r, {
|
|
49
|
+
size: "icon-xs",
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
asChild: !0,
|
|
52
|
+
"data-slot": "input-group-button",
|
|
53
|
+
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
54
|
+
disabled: s,
|
|
55
|
+
children: /* @__PURE__ */ u(h, {})
|
|
56
|
+
}), l && /* @__PURE__ */ u(g, { disabled: s })]
|
|
57
|
+
}),
|
|
58
|
+
o
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function v({ className: e, side: t = "bottom", sideOffset: n = 6, align: r = "start", alignOffset: i = 0, anchor: o, ...s }) {
|
|
63
|
+
return /* @__PURE__ */ u(f.Portal, { children: /* @__PURE__ */ u(f.Positioner, {
|
|
64
|
+
side: t,
|
|
65
|
+
sideOffset: n,
|
|
66
|
+
align: r,
|
|
67
|
+
alignOffset: i,
|
|
68
|
+
anchor: o,
|
|
69
|
+
className: "isolate z-50",
|
|
70
|
+
children: /* @__PURE__ */ u(f.Popup, {
|
|
71
|
+
"data-slot": "combobox-content",
|
|
72
|
+
"data-chips": !!o,
|
|
73
|
+
className: a("group/combobox-content bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-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 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg shadow-md ring-1 duration-100 data-[chips=true]:min-w-(--anchor-width) *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none", e),
|
|
74
|
+
...s
|
|
75
|
+
})
|
|
76
|
+
}) });
|
|
77
|
+
}
|
|
78
|
+
function y({ className: e, ...t }) {
|
|
79
|
+
return /* @__PURE__ */ u(f.List, {
|
|
80
|
+
"data-slot": "combobox-list",
|
|
81
|
+
className: a("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", e),
|
|
82
|
+
...t
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function b({ className: e, children: t, ...n }) {
|
|
86
|
+
return /* @__PURE__ */ d(f.Item, {
|
|
87
|
+
"data-slot": "combobox-item",
|
|
88
|
+
className: a("data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
89
|
+
...n,
|
|
90
|
+
children: [t, /* @__PURE__ */ u(f.ItemIndicator, {
|
|
91
|
+
render: /* @__PURE__ */ u("span", { className: "pointer-events-none absolute end-2 flex size-4 items-center justify-center" }),
|
|
92
|
+
children: /* @__PURE__ */ u(o, { className: "pointer-events-none" })
|
|
93
|
+
})]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function x({ className: e, ...t }) {
|
|
97
|
+
return /* @__PURE__ */ u(f.Group, {
|
|
98
|
+
"data-slot": "combobox-group",
|
|
99
|
+
className: a(e),
|
|
100
|
+
...t
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function S({ className: e, ...t }) {
|
|
104
|
+
return /* @__PURE__ */ u(f.GroupLabel, {
|
|
105
|
+
"data-slot": "combobox-label",
|
|
106
|
+
className: a("text-muted-foreground px-2 py-1.5 text-xs", e),
|
|
107
|
+
...t
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function C({ ...e }) {
|
|
111
|
+
return /* @__PURE__ */ u(f.Collection, {
|
|
112
|
+
"data-slot": "combobox-collection",
|
|
113
|
+
...e
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function w({ className: e, ...t }) {
|
|
117
|
+
return /* @__PURE__ */ u(f.Empty, {
|
|
118
|
+
"data-slot": "combobox-empty",
|
|
119
|
+
className: a("text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex", e),
|
|
120
|
+
...t
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function T({ className: e, ...t }) {
|
|
124
|
+
return /* @__PURE__ */ u(f.Separator, {
|
|
125
|
+
"data-slot": "combobox-separator",
|
|
126
|
+
className: a("bg-border -mx-1 my-1 h-px", e),
|
|
127
|
+
...t
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function E({ className: e, ...t }) {
|
|
131
|
+
return /* @__PURE__ */ u(f.Chips, {
|
|
132
|
+
"data-slot": "combobox-chips",
|
|
133
|
+
className: a("border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-destructive/20 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1", e),
|
|
134
|
+
...t
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function D({ className: t, children: n, showRemove: r = !0, ...i }) {
|
|
138
|
+
return /* @__PURE__ */ d(f.Chip, {
|
|
139
|
+
"data-slot": "combobox-chip",
|
|
140
|
+
className: a("bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pe-0", t),
|
|
141
|
+
...i,
|
|
142
|
+
children: [n, r && /* @__PURE__ */ u(f.ChipRemove, {
|
|
143
|
+
render: /* @__PURE__ */ u(e, {
|
|
144
|
+
variant: "ghost",
|
|
145
|
+
size: "icon-xs"
|
|
146
|
+
}),
|
|
147
|
+
className: "-ms-1 opacity-50 hover:opacity-100",
|
|
148
|
+
"data-slot": "combobox-chip-remove",
|
|
149
|
+
children: /* @__PURE__ */ u(c, { className: "pointer-events-none" })
|
|
150
|
+
})]
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function O({ className: e, ...t }) {
|
|
154
|
+
return /* @__PURE__ */ u(f.Input, {
|
|
155
|
+
"data-slot": "combobox-chip-input",
|
|
156
|
+
className: a("min-w-16 flex-1 outline-none", e),
|
|
157
|
+
...t
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function k() {
|
|
161
|
+
return l.useRef(null);
|
|
162
|
+
}
|
|
163
|
+
export { p as Combobox, D as ComboboxChip, E as ComboboxChips, O as ComboboxChipsInput, C as ComboboxCollection, v as ComboboxContent, w as ComboboxEmpty, x as ComboboxGroup, _ as ComboboxInput, b as ComboboxItem, S as ComboboxLabel, y as ComboboxList, T as ComboboxSeparator, h as ComboboxTrigger, m as ComboboxValue, k as useComboboxAnchor };
|
package/dist/command.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./dialog.cjs"),n=require("./input-group.cjs");let r=require("cn"),i=require("lucide-react"),a=require("react");a=e.t(a);let o=require("react/jsx-runtime"),s=require("cmdk");function c({className:e,...t}){return(0,o.jsx)(s.Command,{"data-slot":`command`,className:(0,r.cn)(`bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1`,e),...t})}function l({title:e=`Command Palette`,description:n=`Search for a command to run...`,children:i,className:a,showCloseButton:s=!1,...l}){return(0,o.jsxs)(t.Dialog,{...l,children:[(0,o.jsxs)(t.DialogHeader,{className:`sr-only`,children:[(0,o.jsx)(t.DialogTitle,{children:e}),(0,o.jsx)(t.DialogDescription,{children:n})]}),(0,o.jsx)(t.DialogContent,{className:(0,r.cn)(`top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0`,a),showCloseButton:s,children:(0,o.jsx)(c,{className:`[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5`,children:i})})]})}function u({className:e,...t}){return(0,o.jsx)(`div`,{"data-slot":`command-input-wrapper`,className:`p-1 pb-0`,children:(0,o.jsxs)(n.InputGroup,{className:`border-input/30 bg-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!`,children:[(0,o.jsx)(s.Command.Input,{"data-slot":`command-input`,className:(0,r.cn)(`w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,e),...t}),(0,o.jsx)(n.InputGroupAddon,{children:(0,o.jsx)(i.SearchIcon,{className:`size-4 shrink-0 opacity-50`})})]})})}function d({className:e,...t}){return(0,o.jsx)(s.Command.List,{"data-slot":`command-list`,className:(0,r.cn)(`no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none`,e),...t})}function f({className:e,...t}){return(0,o.jsx)(s.Command.Empty,{"data-slot":`command-empty`,className:(0,r.cn)(`py-6 text-center text-sm`,e),...t})}function p({className:e,...t}){return(0,o.jsx)(s.Command.Group,{"data-slot":`command-group`,className:(0,r.cn)(`text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium`,e),...t})}function m({className:e,...t}){return(0,o.jsx)(s.Command.Separator,{"data-slot":`command-separator`,className:(0,r.cn)(`bg-border -mx-1 h-px`,e),...t})}function h({className:e,children:t,...n}){return(0,o.jsxs)(s.Command.Item,{"data-slot":`command-item`,className:(0,r.cn)(`group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[t,(0,o.jsx)(i.CheckIcon,{className:`ms-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100`})]})}function g({className:e,...t}){return(0,o.jsx)(`span`,{"data-slot":`command-shortcut`,className:(0,r.cn)(`text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest`,e),...t})}exports.Command=c,exports.CommandDialog=l,exports.CommandEmpty=f,exports.CommandGroup=p,exports.CommandInput=u,exports.CommandItem=h,exports.CommandList=d,exports.CommandSeparator=m,exports.CommandShortcut=g;
|
package/dist/command.mjs
CHANGED
|
@@ -1,3 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Dialog as e, DialogContent as t, DialogDescription as n, DialogHeader as r, DialogTitle as i } from "./dialog.mjs";
|
|
3
|
+
import { InputGroup as a, InputGroupAddon as o } from "./input-group.mjs";
|
|
4
|
+
import { cn as s } from "cn";
|
|
5
|
+
import { CheckIcon as c, SearchIcon as l } from "lucide-react";
|
|
6
|
+
import "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
import { Command as f } from "cmdk";
|
|
9
|
+
// src/command.tsx
|
|
10
|
+
function p({ className: e, ...t }) {
|
|
11
|
+
return /* @__PURE__ */ u(f, {
|
|
12
|
+
"data-slot": "command",
|
|
13
|
+
className: s("bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-xl! p-1", e),
|
|
14
|
+
...t
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function m({ title: a = "Command Palette", description: o = "Search for a command to run...", children: c, className: l, showCloseButton: f = !1, ...m }) {
|
|
18
|
+
return /* @__PURE__ */ d(e, {
|
|
19
|
+
...m,
|
|
20
|
+
children: [/* @__PURE__ */ d(r, {
|
|
21
|
+
className: "sr-only",
|
|
22
|
+
children: [/* @__PURE__ */ u(i, { children: a }), /* @__PURE__ */ u(n, { children: o })]
|
|
23
|
+
}), /* @__PURE__ */ u(t, {
|
|
24
|
+
className: s("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0", l),
|
|
25
|
+
showCloseButton: f,
|
|
26
|
+
children: /* @__PURE__ */ u(p, {
|
|
27
|
+
className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5",
|
|
28
|
+
children: c
|
|
29
|
+
})
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function h({ className: e, ...t }) {
|
|
34
|
+
return /* @__PURE__ */ u("div", {
|
|
35
|
+
"data-slot": "command-input-wrapper",
|
|
36
|
+
className: "p-1 pb-0",
|
|
37
|
+
children: /* @__PURE__ */ d(a, {
|
|
38
|
+
className: "border-input/30 bg-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:ps-2!",
|
|
39
|
+
children: [/* @__PURE__ */ u(f.Input, {
|
|
40
|
+
"data-slot": "command-input",
|
|
41
|
+
className: s("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
42
|
+
...t
|
|
43
|
+
}), /* @__PURE__ */ u(o, { children: /* @__PURE__ */ u(l, { className: "size-4 shrink-0 opacity-50" }) })]
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function g({ className: e, ...t }) {
|
|
48
|
+
return /* @__PURE__ */ u(f.List, {
|
|
49
|
+
"data-slot": "command-list",
|
|
50
|
+
className: s("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", e),
|
|
51
|
+
...t
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function _({ className: e, ...t }) {
|
|
55
|
+
return /* @__PURE__ */ u(f.Empty, {
|
|
56
|
+
"data-slot": "command-empty",
|
|
57
|
+
className: s("py-6 text-center text-sm", e),
|
|
58
|
+
...t
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function v({ className: e, ...t }) {
|
|
62
|
+
return /* @__PURE__ */ u(f.Group, {
|
|
63
|
+
"data-slot": "command-group",
|
|
64
|
+
className: s("text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium", e),
|
|
65
|
+
...t
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function y({ className: e, ...t }) {
|
|
69
|
+
return /* @__PURE__ */ u(f.Separator, {
|
|
70
|
+
"data-slot": "command-separator",
|
|
71
|
+
className: s("bg-border -mx-1 h-px", e),
|
|
72
|
+
...t
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function b({ className: e, children: t, ...n }) {
|
|
76
|
+
return /* @__PURE__ */ d(f.Item, {
|
|
77
|
+
"data-slot": "command-item",
|
|
78
|
+
className: s("group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
79
|
+
...n,
|
|
80
|
+
children: [t, /* @__PURE__ */ u(c, { className: "ms-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })]
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function x({ className: e, ...t }) {
|
|
84
|
+
return /* @__PURE__ */ u("span", {
|
|
85
|
+
"data-slot": "command-shortcut",
|
|
86
|
+
className: s("text-muted-foreground group-data-selected/command-item:text-foreground ms-auto text-xs tracking-widest", e),
|
|
87
|
+
...t
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
export { p as Command, m as CommandDialog, _ as CommandEmpty, v as CommandGroup, h as CommandInput, b as CommandItem, g as CommandList, y as CommandSeparator, x as CommandShortcut };
|
package/dist/context-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("lucide-react"),r=require("radix-ui"),i=require("react");i=e.t(i);let a=require("react/jsx-runtime");function o({...e}){return(0,a.jsx)(r.ContextMenu.Root,{"data-slot":`context-menu`,...e})}function s({className:e,...n}){return(0,a.jsx)(r.ContextMenu.Trigger,{"data-slot":`context-menu-trigger`,className:(0,t.cn)(`select-none`,e),...n})}function c({...e}){return(0,a.jsx)(r.ContextMenu.Group,{"data-slot":`context-menu-group`,...e})}function l({...e}){return(0,a.jsx)(r.ContextMenu.Portal,{"data-slot":`context-menu-portal`,...e})}function u({...e}){return(0,a.jsx)(r.ContextMenu.Sub,{"data-slot":`context-menu-sub`,...e})}function d({...e}){return(0,a.jsx)(r.ContextMenu.RadioGroup,{"data-slot":`context-menu-radio-group`,...e})}function f({className:e,...n}){return(0,a.jsx)(r.ContextMenu.Portal,{children:(0,a.jsx)(r.ContextMenu.Content,{"data-slot":`context-menu-content`,className:(0,t.cn)(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100`,e),...n})})}function p({className:e,inset:n,variant:i=`default`,...o}){return(0,a.jsx)(r.ContextMenu.Item,{"data-slot":`context-menu-item`,"data-inset":n,"data-variant":i,className:(0,t.cn)(`group/context-menu-item focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o})}function m({className:e,inset:i,children:o,...s}){return(0,a.jsxs)(r.ContextMenu.SubTrigger,{"data-slot":`context-menu-sub-trigger`,"data-inset":i,className:(0,t.cn)(`focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,a.jsx)(n.ChevronRightIcon,{className:`ms-auto rtl:rotate-180`})]})}function h({className:e,...n}){return(0,a.jsx)(r.ContextMenu.SubContent,{"data-slot":`context-menu-sub-content`,className:(0,t.cn)(`bg-popover text-popover-foreground 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg duration-100`,e),...n})}function g({className:e,children:i,checked:o,inset:s,...c}){return(0,a.jsxs)(r.ContextMenu.CheckboxItem,{"data-slot":`context-menu-checkbox-item`,"data-inset":s,className:(0,t.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:o,...c,children:[(0,a.jsx)(`span`,{className:`pointer-events-none absolute end-2`,children:(0,a.jsx)(r.ContextMenu.ItemIndicator,{children:(0,a.jsx)(n.CheckIcon,{})})}),i]})}function _({className:e,children:i,inset:o,...s}){return(0,a.jsxs)(r.ContextMenu.RadioItem,{"data-slot":`context-menu-radio-item`,"data-inset":o,className:(0,t.cn)(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[(0,a.jsx)(`span`,{className:`pointer-events-none absolute end-2`,children:(0,a.jsx)(r.ContextMenu.ItemIndicator,{children:(0,a.jsx)(n.CheckIcon,{})})}),i]})}function v({className:e,inset:n,...i}){return(0,a.jsx)(r.ContextMenu.Label,{"data-slot":`context-menu-label`,"data-inset":n,className:(0,t.cn)(`text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7`,e),...i})}function y({className:e,...n}){return(0,a.jsx)(r.ContextMenu.Separator,{"data-slot":`context-menu-separator`,className:(0,t.cn)(`bg-border -mx-1 my-1 h-px`,e),...n})}function b({className:e,...n}){return(0,a.jsx)(`span`,{"data-slot":`context-menu-shortcut`,className:(0,t.cn)(`text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest`,e),...n})}exports.ContextMenu=o,exports.ContextMenuCheckboxItem=g,exports.ContextMenuContent=f,exports.ContextMenuGroup=c,exports.ContextMenuItem=p,exports.ContextMenuLabel=v,exports.ContextMenuPortal=l,exports.ContextMenuRadioGroup=d,exports.ContextMenuRadioItem=_,exports.ContextMenuSeparator=y,exports.ContextMenuShortcut=b,exports.ContextMenuSub=u,exports.ContextMenuSubContent=h,exports.ContextMenuSubTrigger=m,exports.ContextMenuTrigger=s;
|
package/dist/context-menu.mjs
CHANGED
|
@@ -1,3 +1,124 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { cn as e } from "cn";
|
|
3
|
+
import { CheckIcon as t, ChevronRightIcon as n } from "lucide-react";
|
|
4
|
+
import { ContextMenu as r } from "radix-ui";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
// src/context-menu.tsx
|
|
8
|
+
function o({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ i(r.Root, {
|
|
10
|
+
"data-slot": "context-menu",
|
|
11
|
+
...e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function s({ className: t, ...n }) {
|
|
15
|
+
return /* @__PURE__ */ i(r.Trigger, {
|
|
16
|
+
"data-slot": "context-menu-trigger",
|
|
17
|
+
className: e("select-none", t),
|
|
18
|
+
...n
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function c({ ...e }) {
|
|
22
|
+
return /* @__PURE__ */ i(r.Group, {
|
|
23
|
+
"data-slot": "context-menu-group",
|
|
24
|
+
...e
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function l({ ...e }) {
|
|
28
|
+
return /* @__PURE__ */ i(r.Portal, {
|
|
29
|
+
"data-slot": "context-menu-portal",
|
|
30
|
+
...e
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function u({ ...e }) {
|
|
34
|
+
return /* @__PURE__ */ i(r.Sub, {
|
|
35
|
+
"data-slot": "context-menu-sub",
|
|
36
|
+
...e
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function d({ ...e }) {
|
|
40
|
+
return /* @__PURE__ */ i(r.RadioGroup, {
|
|
41
|
+
"data-slot": "context-menu-radio-group",
|
|
42
|
+
...e
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function f({ className: t, ...n }) {
|
|
46
|
+
return /* @__PURE__ */ i(r.Portal, { children: /* @__PURE__ */ i(r.Content, {
|
|
47
|
+
"data-slot": "context-menu-content",
|
|
48
|
+
className: e("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100", t),
|
|
49
|
+
...n
|
|
50
|
+
}) });
|
|
51
|
+
}
|
|
52
|
+
function p({ className: t, inset: n, variant: a = "default", ...o }) {
|
|
53
|
+
return /* @__PURE__ */ i(r.Item, {
|
|
54
|
+
"data-slot": "context-menu-item",
|
|
55
|
+
"data-inset": n,
|
|
56
|
+
"data-variant": a,
|
|
57
|
+
className: e("group/context-menu-item focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
58
|
+
...o
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function m({ className: t, inset: o, children: s, ...c }) {
|
|
62
|
+
return /* @__PURE__ */ a(r.SubTrigger, {
|
|
63
|
+
"data-slot": "context-menu-sub-trigger",
|
|
64
|
+
"data-inset": o,
|
|
65
|
+
className: e("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
66
|
+
...c,
|
|
67
|
+
children: [s, /* @__PURE__ */ i(n, { className: "ms-auto rtl:rotate-180" })]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function h({ className: t, ...n }) {
|
|
71
|
+
return /* @__PURE__ */ i(r.SubContent, {
|
|
72
|
+
"data-slot": "context-menu-sub-content",
|
|
73
|
+
className: e("bg-popover text-popover-foreground 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg duration-100", t),
|
|
74
|
+
...n
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function g({ className: n, children: o, checked: s, inset: c, ...l }) {
|
|
78
|
+
return /* @__PURE__ */ a(r.CheckboxItem, {
|
|
79
|
+
"data-slot": "context-menu-checkbox-item",
|
|
80
|
+
"data-inset": c,
|
|
81
|
+
className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", n),
|
|
82
|
+
checked: s,
|
|
83
|
+
...l,
|
|
84
|
+
children: [/* @__PURE__ */ i("span", {
|
|
85
|
+
className: "pointer-events-none absolute end-2",
|
|
86
|
+
children: /* @__PURE__ */ i(r.ItemIndicator, { children: /* @__PURE__ */ i(t, {}) })
|
|
87
|
+
}), o]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function _({ className: n, children: o, inset: s, ...c }) {
|
|
91
|
+
return /* @__PURE__ */ a(r.RadioItem, {
|
|
92
|
+
"data-slot": "context-menu-radio-item",
|
|
93
|
+
"data-inset": s,
|
|
94
|
+
className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 ps-1.5 pe-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", n),
|
|
95
|
+
...c,
|
|
96
|
+
children: [/* @__PURE__ */ i("span", {
|
|
97
|
+
className: "pointer-events-none absolute end-2",
|
|
98
|
+
children: /* @__PURE__ */ i(r.ItemIndicator, { children: /* @__PURE__ */ i(t, {}) })
|
|
99
|
+
}), o]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function v({ className: t, inset: n, ...a }) {
|
|
103
|
+
return /* @__PURE__ */ i(r.Label, {
|
|
104
|
+
"data-slot": "context-menu-label",
|
|
105
|
+
"data-inset": n,
|
|
106
|
+
className: e("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7", t),
|
|
107
|
+
...a
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function y({ className: t, ...n }) {
|
|
111
|
+
return /* @__PURE__ */ i(r.Separator, {
|
|
112
|
+
"data-slot": "context-menu-separator",
|
|
113
|
+
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
114
|
+
...n
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function b({ className: t, ...n }) {
|
|
118
|
+
return /* @__PURE__ */ i("span", {
|
|
119
|
+
"data-slot": "context-menu-shortcut",
|
|
120
|
+
className: e("text-muted-foreground group-focus/context-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", t),
|
|
121
|
+
...n
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
export { o as ContextMenu, g as ContextMenuCheckboxItem, f as ContextMenuContent, c as ContextMenuGroup, p as ContextMenuItem, v as ContextMenuLabel, l as ContextMenuPortal, d as ContextMenuRadioGroup, _ as ContextMenuRadioItem, y as ContextMenuSeparator, b as ContextMenuShortcut, u as ContextMenuSub, h as ContextMenuSubContent, m as ContextMenuSubTrigger, s as ContextMenuTrigger };
|
package/dist/dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js"),t=require("./button.cjs");let n=require("cn"),r=require("lucide-react"),i=require("radix-ui"),a=require("react");a=e.t(a);let o=require("react/jsx-runtime");function s({...e}){return(0,o.jsx)(i.Dialog.Root,{"data-slot":`dialog`,...e})}function c({...e}){return(0,o.jsx)(i.Dialog.Trigger,{"data-slot":`dialog-trigger`,...e})}function l({...e}){return(0,o.jsx)(i.Dialog.Portal,{"data-slot":`dialog-portal`,...e})}function u({...e}){return(0,o.jsx)(i.Dialog.Close,{"data-slot":`dialog-close`,...e})}function d({className:e,...t}){return(0,o.jsx)(i.Dialog.Overlay,{"data-slot":`dialog-overlay`,className:(0,n.cn)(`data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs`,e),...t})}function f({className:e,children:a,showCloseButton:s=!0,...c}){return(0,o.jsxs)(l,{children:[(0,o.jsx)(d,{}),(0,o.jsxs)(i.Dialog.Content,{"data-slot":`dialog-content`,className:(0,n.cn)(`bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm rtl:translate-x-1/2`,e),...c,children:[a,s&&(0,o.jsx)(i.Dialog.Close,{"data-slot":`dialog-close`,asChild:!0,children:(0,o.jsxs)(t.Button,{variant:`ghost`,className:`absolute end-2 top-2`,size:`icon-sm`,children:[(0,o.jsx)(r.XIcon,{}),(0,o.jsx)(`span`,{className:`sr-only`,children:`Close`})]})})]})]})}function p({className:e,...t}){return(0,o.jsx)(`div`,{"data-slot":`dialog-header`,className:(0,n.cn)(`flex flex-col gap-2`,e),...t})}function m({className:e,showCloseButton:r=!1,children:a,...s}){return(0,o.jsxs)(`div`,{"data-slot":`dialog-footer`,className:(0,n.cn)(`bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 sm:flex-row sm:justify-end`,e),...s,children:[a,r&&(0,o.jsx)(i.Dialog.Close,{asChild:!0,children:(0,o.jsx)(t.Button,{variant:`outline`,children:`Close`})})]})}function h({className:e,...t}){return(0,o.jsx)(i.Dialog.Title,{"data-slot":`dialog-title`,className:(0,n.cn)(`text-base leading-none font-medium`,e),...t})}function g({className:e,...t}){return(0,o.jsx)(i.Dialog.Description,{"data-slot":`dialog-description`,className:(0,n.cn)(`text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3`,e),...t})}exports.Dialog=s,exports.DialogClose=u,exports.DialogContent=f,exports.DialogDescription=g,exports.DialogFooter=m,exports.DialogHeader=p,exports.DialogOverlay=d,exports.DialogPortal=l,exports.DialogTitle=h,exports.DialogTrigger=c;
|
package/dist/dialog.mjs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Button as e } from "./button.mjs";
|
|
4
|
+
import { cn as t } from "cn";
|
|
5
|
+
import { XIcon as n } from "lucide-react";
|
|
6
|
+
import { Dialog as r } from "radix-ui";
|
|
7
7
|
import "react";
|
|
8
|
-
import { jsx as
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */
|
|
8
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
9
|
+
// src/dialog.tsx
|
|
10
|
+
function o({ ...e }) {
|
|
11
|
+
return /* @__PURE__ */ i(r.Root, {
|
|
12
12
|
"data-slot": "dialog",
|
|
13
13
|
...e
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
function s({ ...e }) {
|
|
17
|
+
return /* @__PURE__ */ i(r.Trigger, {
|
|
18
18
|
"data-slot": "dialog-trigger",
|
|
19
19
|
...e
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return /* @__PURE__ */
|
|
22
|
+
function c({ ...e }) {
|
|
23
|
+
return /* @__PURE__ */ i(r.Portal, {
|
|
24
24
|
"data-slot": "dialog-portal",
|
|
25
25
|
...e
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
function l({ ...e }) {
|
|
29
|
+
return /* @__PURE__ */ i(r.Close, {
|
|
30
30
|
"data-slot": "dialog-close",
|
|
31
31
|
...e
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
function u({ className: e, ...n }) {
|
|
35
|
+
return /* @__PURE__ */ i(r.Overlay, {
|
|
36
36
|
"data-slot": "dialog-overlay",
|
|
37
|
-
className:
|
|
38
|
-
...
|
|
37
|
+
className: t("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", e),
|
|
38
|
+
...n
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return /* @__PURE__ */
|
|
41
|
+
function d({ className: o, children: s, showCloseButton: l = !0, ...d }) {
|
|
42
|
+
return /* @__PURE__ */ a(c, { children: [/* @__PURE__ */ i(u, {}), /* @__PURE__ */ a(r.Content, {
|
|
43
43
|
"data-slot": "dialog-content",
|
|
44
|
-
className:
|
|
45
|
-
...
|
|
46
|
-
children: [
|
|
44
|
+
className: t("bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm rtl:translate-x-1/2", o),
|
|
45
|
+
...d,
|
|
46
|
+
children: [s, l && /* @__PURE__ */ i(r.Close, {
|
|
47
47
|
"data-slot": "dialog-close",
|
|
48
48
|
asChild: !0,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ a(e, {
|
|
50
50
|
variant: "ghost",
|
|
51
51
|
className: "absolute end-2 top-2",
|
|
52
52
|
size: "icon-sm",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ i(n, {}), /* @__PURE__ */ i("span", {
|
|
54
54
|
className: "sr-only",
|
|
55
55
|
children: "Close"
|
|
56
56
|
})]
|
|
@@ -58,40 +58,39 @@ function v({ className: t, children: n, showCloseButton: r = !0, ...a }) {
|
|
|
58
58
|
})]
|
|
59
59
|
})] });
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
function f({ className: e, ...n }) {
|
|
62
|
+
return /* @__PURE__ */ i("div", {
|
|
63
63
|
"data-slot": "dialog-header",
|
|
64
|
-
className:
|
|
64
|
+
className: t("flex flex-col gap-2", e),
|
|
65
65
|
...n
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return /* @__PURE__ */
|
|
68
|
+
function p({ className: n, showCloseButton: o = !1, children: s, ...c }) {
|
|
69
|
+
return /* @__PURE__ */ a("div", {
|
|
70
70
|
"data-slot": "dialog-footer",
|
|
71
|
-
className:
|
|
72
|
-
...
|
|
73
|
-
children: [
|
|
71
|
+
className: t("bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 sm:flex-row sm:justify-end", n),
|
|
72
|
+
...c,
|
|
73
|
+
children: [s, o && /* @__PURE__ */ i(r.Close, {
|
|
74
74
|
asChild: !0,
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ i(e, {
|
|
76
76
|
variant: "outline",
|
|
77
77
|
children: "Close"
|
|
78
78
|
})
|
|
79
79
|
})]
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return /* @__PURE__ */
|
|
82
|
+
function m({ className: e, ...n }) {
|
|
83
|
+
return /* @__PURE__ */ i(r.Title, {
|
|
84
84
|
"data-slot": "dialog-title",
|
|
85
|
-
className:
|
|
85
|
+
className: t("text-base leading-none font-medium", e),
|
|
86
86
|
...n
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return /* @__PURE__ */
|
|
89
|
+
function h({ className: e, ...n }) {
|
|
90
|
+
return /* @__PURE__ */ i(r.Description, {
|
|
91
91
|
"data-slot": "dialog-description",
|
|
92
|
-
className:
|
|
92
|
+
className: t("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", e),
|
|
93
93
|
...n
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
export { p as Dialog, g as DialogClose, v as DialogContent, S as DialogDescription, b as DialogFooter, y as DialogHeader, _ as DialogOverlay, h as DialogPortal, x as DialogTitle, m as DialogTrigger };
|
|
96
|
+
export { o as Dialog, l as DialogClose, d as DialogContent, h as DialogDescription, p as DialogFooter, f as DialogHeader, u as DialogOverlay, c as DialogPortal, m as DialogTitle, s as DialogTrigger };
|
package/dist/direction.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("radix-ui"),n=require("react");n=e.t(n);let r=require("react/jsx-runtime");function i({dir:e,direction:n,children:i}){return(0,r.jsx)(t.Direction.DirectionProvider,{dir:n??e,children:i})}var a=t.Direction.useDirection;exports.DirectionProvider=i,exports.useDirection=a;
|
package/dist/direction.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
3
|
+
import { Direction as e } from "radix-ui";
|
|
4
4
|
import "react";
|
|
5
|
-
import { jsx as
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
dir: r ??
|
|
5
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
|
+
// src/direction.tsx
|
|
7
|
+
function n({ dir: n, direction: r, children: i }) {
|
|
8
|
+
return /* @__PURE__ */ t(e.DirectionProvider, {
|
|
9
|
+
dir: r ?? n,
|
|
10
10
|
children: i
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
export { r as DirectionProvider, i as useDirection };
|
|
13
|
+
var r = e.useDirection;
|
|
14
|
+
export { n as DirectionProvider, r as useDirection };
|
package/dist/drawer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BocRIvOZ.js");let t=require("cn"),n=require("react");n=e.t(n);let r=require("react/jsx-runtime"),i=require("vaul");function a({...e}){return(0,r.jsx)(i.Drawer.Root,{"data-slot":`drawer`,...e})}function o({...e}){return(0,r.jsx)(i.Drawer.Trigger,{"data-slot":`drawer-trigger`,...e})}function s({...e}){return(0,r.jsx)(i.Drawer.Portal,{"data-slot":`drawer-portal`,...e})}function c({...e}){return(0,r.jsx)(i.Drawer.Close,{"data-slot":`drawer-close`,...e})}function l({className:e,...n}){return(0,r.jsx)(i.Drawer.Overlay,{"data-slot":`drawer-overlay`,className:(0,t.cn)(`data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs`,e),...n})}function u({className:e,children:n,...a}){return(0,r.jsxs)(s,{"data-slot":`drawer-portal`,children:[(0,r.jsx)(l,{}),(0,r.jsxs)(i.Drawer.Content,{"data-slot":`drawer-content`,className:(0,t.cn)(`group/drawer-content bg-popover text-popover-foreground fixed z-50 flex h-auto flex-col text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:start-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-e-xl data-[vaul-drawer-direction=left]:border-e data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:end-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-s-xl data-[vaul-drawer-direction=right]:border-s data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm`,e),...a,children:[(0,r.jsx)(`div`,{className:`bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),n]})]})}function d({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`drawer-header`,className:(0,t.cn)(`flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-start`,e),...n})}function f({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`drawer-footer`,className:(0,t.cn)(`mt-auto flex flex-col gap-2 p-4`,e),...n})}function p({className:e,...n}){return(0,r.jsx)(i.Drawer.Title,{"data-slot":`drawer-title`,className:(0,t.cn)(`text-foreground text-base font-medium`,e),...n})}function m({className:e,...n}){return(0,r.jsx)(i.Drawer.Description,{"data-slot":`drawer-description`,className:(0,t.cn)(`text-muted-foreground text-sm`,e),...n})}exports.Drawer=a,exports.DrawerClose=c,exports.DrawerContent=u,exports.DrawerDescription=m,exports.DrawerFooter=f,exports.DrawerHeader=d,exports.DrawerOverlay=l,exports.DrawerPortal=s,exports.DrawerTitle=p,exports.DrawerTrigger=o;
|