@gv-tech/ui-web 2.29.2 → 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 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.mjs +99 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +10 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.mjs +25 -24
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +49 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +5 -4
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +12 -11
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.mjs +4 -3
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.mjs +12 -11
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +4 -3
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +97 -1
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +107 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +19 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +12 -12
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.mjs +161 -1
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +89 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +123 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +40 -40
- package/dist/direction.cjs +1 -1
- package/dist/direction.mjs +7 -7
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +126 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.mjs +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.mjs +36 -36
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +36 -36
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +30 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +36 -36
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.mjs +26 -26
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.mjs +45 -1
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.mjs +28 -27
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.mjs +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +13 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.mjs +4 -3
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +133 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.mjs +59 -1
- package/dist/message.cjs +1 -1
- package/dist/message.mjs +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.mjs +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +79 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +14 -14
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +54 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.mjs +19 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.mjs +168 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +25 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +26 -1
- package/dist/rolldown-runtime-BocRIvOZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +35 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +98 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +15 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +38 -38
- package/dist/{sidebar-C2ax_A0G.mjs → sidebar-DrU3nKaL.mjs} +138 -134
- package/dist/sidebar-uOtFHnBs.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +3 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +34 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.mjs +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +18 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +44 -1
- package/dist/text.cjs +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/{theme-toggle-BSMwXb8o.mjs → theme-toggle-9KtAIRxy.mjs} +6 -6
- package/dist/theme-toggle-DkNI3bfh.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +2 -1
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +52 -1
- package/dist/{toaster-D2BV6jez.mjs → toaster-8RrHPtlc.mjs} +8 -8
- package/dist/toaster-AFud4l6l.js +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +2 -1
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +49 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +35 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +34 -1
- package/package.json +1 -1
- package/dist/accordion-Bd0-CZQn.js +0 -1
- package/dist/accordion-Cf6DNbLH.mjs +0 -244
- package/dist/alert-dialog-BxFH0Lwn.mjs +0 -180
- package/dist/alert-dialog-C6vNmGBL.js +0 -1
- package/dist/aspect-ratio-CdQevcDV.mjs +0 -38
- package/dist/aspect-ratio-Z4Nkc56X.js +0 -1
- package/dist/avatar-B5PWwGhY.mjs +0 -136
- package/dist/avatar-CFhYRM52.js +0 -1
- package/dist/calendar-D5qgt2o2.js +0 -1
- package/dist/calendar-DIqXNjOR.mjs +0 -3029
- package/dist/carousel-D-xEqRCX.js +0 -1
- package/dist/carousel-DPjWmM_A.mjs +0 -1169
- package/dist/checkbox-DEPm1BBc.mjs +0 -184
- package/dist/checkbox-DI9Hn_e_.js +0 -1
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +0 -1
- package/dist/chunk-HBS6WEDP-DD8ZmxRM.mjs +0 -62
- package/dist/combobox-C4y8AbZX.mjs +0 -5644
- package/dist/combobox-boXp-mix.js +0 -3
- package/dist/command-BnW6UIVk.js +0 -1
- package/dist/command-Cbsp7PBx.mjs +0 -542
- package/dist/context-menu-CwsdFpx1.js +0 -1
- package/dist/context-menu-FNgV55ZV.mjs +0 -315
- package/dist/dist-7YyzJonC.mjs +0 -39
- package/dist/dist-AlmToDtO.mjs +0 -17
- package/dist/dist-B76UOZbx.mjs +0 -40
- package/dist/dist-B7Ph9-T6.mjs +0 -44
- package/dist/dist-B7jnFMko.js +0 -1
- package/dist/dist-BOiFyvyS.mjs +0 -10
- package/dist/dist-BQkDLAY7.js +0 -1
- package/dist/dist-Bal96K8t.js +0 -1
- package/dist/dist-Blgp9lfa.js +0 -1
- package/dist/dist-BnlI08Je.mjs +0 -96
- package/dist/dist-Bu-uFV1C.mjs +0 -191
- package/dist/dist-C2BHd5i1.mjs +0 -460
- package/dist/dist-C516Vwxy.mjs +0 -116
- package/dist/dist-CBlqVBTk.js +0 -1
- package/dist/dist-CDcZ8WMF.js +0 -1
- package/dist/dist-CDksSmTD.mjs +0 -189
- package/dist/dist-CF-qVmmV.js +0 -1
- package/dist/dist-CIgGRTmJ.js +0 -1
- package/dist/dist-CJqVmdrU.js +0 -1
- package/dist/dist-COqM3IM6.mjs +0 -89
- package/dist/dist-CbWpCWog.mjs +0 -180
- package/dist/dist-CcGLWbPa.mjs +0 -19
- package/dist/dist-Cn4F8XlY.mjs +0 -220
- package/dist/dist-CoTs6T03.js +0 -1
- package/dist/dist-Co_xSt6d.js +0 -1
- package/dist/dist-Cu0GG-3j.mjs +0 -15
- package/dist/dist-DJqkhIXb.js +0 -1
- package/dist/dist-DKI-XYwI.mjs +0 -98
- package/dist/dist-DQeXXRYL.mjs +0 -201
- package/dist/dist-DW2ltK5-.js +0 -1
- package/dist/dist-DWcKY_sJ.js +0 -1
- package/dist/dist-DZiOPWLp.js +0 -1
- package/dist/dist-DdAeWIwf.js +0 -1
- package/dist/dist-DhubV_gU.mjs +0 -4
- package/dist/dist-DmY7elIQ.js +0 -1
- package/dist/dist-DoWtzxYc.mjs +0 -684
- package/dist/dist-DuQlxGyN.js +0 -1
- package/dist/dist-KFF7QKuL.js +0 -1
- package/dist/dist-RXrZgzkO.js +0 -1
- package/dist/dist-R_G5UQRm.js +0 -1
- package/dist/dist-dwRwxUPt.mjs +0 -22
- package/dist/dist-fzmUl3YX.mjs +0 -553
- package/dist/dist-hBsne-A2.mjs +0 -92
- package/dist/dist-ljiGYyay.mjs +0 -29
- package/dist/dist-pqMcQ1Nk.js +0 -1
- package/dist/dist-zmnQp5Xf.js +0 -1
- package/dist/dropdown-menu-ChuqZeix.js +0 -1
- package/dist/dropdown-menu-DU7KNoXP.mjs +0 -311
- package/dist/es2015-BooeZGhO.mjs +0 -554
- package/dist/es2015-Dggv0vx3.js +0 -41
- package/dist/floating-ui.react-dom-2hihjuTL.mjs +0 -1057
- package/dist/floating-ui.react-dom-BtFIezY4.js +0 -1
- package/dist/hover-card-BeqCs_2R.js +0 -1
- package/dist/hover-card-w8PmCyw2.mjs +0 -176
- package/dist/input-otp-Bn_Uy1mR.mjs +0 -398
- package/dist/input-otp-CTRB_0Xp.js +0 -20
- package/dist/label-Da0kELfR.mjs +0 -26
- package/dist/label-JMa1tFfC.js +0 -1
- package/dist/menubar-B7sRxpE4.mjs +0 -405
- package/dist/menubar-Bd-QKMcw.js +0 -1
- package/dist/message-scroller-B8AU0v3Y.mjs +0 -805
- package/dist/message-scroller-BJb4Mh_I.js +0 -1
- package/dist/navigation-menu-B-RwfscB.mjs +0 -638
- package/dist/navigation-menu-kPwxYZCR.js +0 -1
- package/dist/popover-Cq5cTNtC.js +0 -1
- package/dist/popover-T6Ra737i.mjs +0 -241
- package/dist/progress-e9YzxvRo.mjs +0 -90
- package/dist/progress-iUSEI7J9.js +0 -6
- package/dist/questionnaire-BLCvUX1C.mjs +0 -1137
- package/dist/questionnaire-CcymIPae.js +0 -1
- package/dist/radio-group-BKpiDcIb.mjs +0 -264
- package/dist/radio-group-DPEzCmxe.js +0 -1
- package/dist/resizable-ByF0NmN9.mjs +0 -2153
- package/dist/resizable-oL3v42zT.js +0 -1
- package/dist/rolldown-runtime-D7yIeQp2.mjs +0 -13
- package/dist/rolldown-runtime-DbbDpzbe.js +0 -1
- package/dist/scroll-area-BzNeOQ6C.mjs +0 -568
- package/dist/scroll-area-s4_ZJK59.js +0 -1
- package/dist/select-B_nRxX2Y.mjs +0 -831
- package/dist/select-j5_dph9S.js +0 -1
- package/dist/separator-Bn-3XUSJ.js +0 -1
- package/dist/separator-CCcMNS78.mjs +0 -38
- package/dist/sidebar-Cnem2n5A.js +0 -1
- package/dist/slider-B2PUTc7W.mjs +0 -484
- package/dist/slider-wZuXwuib.js +0 -1
- package/dist/switch-CD675xU7.js +0 -1
- package/dist/switch-ikzIzrme.mjs +0 -172
- package/dist/tabs-DCm5zOYB.mjs +0 -158
- package/dist/tabs-fcahDQDp.js +0 -1
- package/dist/theme-toggle-BGTJsIA-.js +0 -1
- package/dist/toast-C31v9P1K.js +0 -1
- package/dist/toast-vU5ISM03.mjs +0 -445
- package/dist/toaster-CaJyOCyC.js +0 -1
- package/dist/toggle-CSZdCCwX.js +0 -1
- package/dist/toggle-Cv9YYwLI.mjs +0 -58
- package/dist/toggle-group-RT8wyBwK.js +0 -1
- package/dist/toggle-group-qvjasXS-.mjs +0 -166
- package/dist/tooltip-7ERoN5mV.mjs +0 -386
- package/dist/tooltip-CC9_spXT.js +0 -1
package/dist/combobox.mjs
CHANGED
|
@@ -1,3 +1,163 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
|
|
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,2 +1,90 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
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,2 +1,124 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
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("./rolldown-runtime-
|
|
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
|
|
8
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
9
9
|
// src/dialog.tsx
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */
|
|
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,39 +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
|
-
export {
|
|
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("./rolldown-runtime-
|
|
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,14 +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
|
|
5
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
6
6
|
// src/direction.tsx
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
dir: r ??
|
|
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
|
-
export {
|
|
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("./rolldown-runtime-
|
|
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;
|
package/dist/drawer.mjs
CHANGED