@gv-tech/ui-web 2.20.0 → 2.21.0
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-Be1vGv6M.js +1 -0
- package/dist/accordion-DXnU0LgU.mjs +221 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.mjs +3 -259
- package/dist/alert-dialog-BXRY0Ghq.js +7 -0
- package/dist/alert-dialog-fcZ-sL7h.mjs +164 -0
- package/dist/alert-dialog.cjs +1 -7
- package/dist/alert-dialog.mjs +4 -171
- package/dist/alert.cjs +1 -1
- package/dist/alert.mjs +35 -32
- package/dist/aspect-ratio-BP5HarYZ.js +1 -0
- package/dist/aspect-ratio-Bp8HMg-1.mjs +33 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.mjs +3 -43
- package/dist/avatar-klFl8Sqa.js +1 -0
- package/dist/avatar-vGm9JN1a.mjs +184 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.mjs +3 -205
- package/dist/badge.cjs +1 -1
- package/dist/badge.mjs +21 -24
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.mjs +60 -68
- package/dist/button.cjs +1 -1
- package/dist/button.mjs +40 -40
- package/dist/calendar-aIuSXzs7.js +1 -0
- package/dist/calendar-oitID53a.mjs +3154 -0
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.mjs +4 -2976
- package/dist/card.cjs +1 -1
- package/dist/card.mjs +42 -32
- package/dist/carousel-BjTSkVh9.js +1 -0
- package/dist/carousel-CENzZCXN.mjs +1178 -0
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.mjs +4 -1403
- package/dist/chart.cjs +4 -4
- package/dist/chart.d.ts +3 -35
- package/dist/chart.mjs +123 -182
- package/dist/checkbox-Bwq7mXA2.mjs +170 -0
- package/dist/checkbox-DzEO1q4R.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.mjs +3 -258
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.mjs +6 -7
- package/dist/command-D7hksKY6.js +1 -0
- package/dist/command-Ws_iF1hM.mjs +531 -0
- package/dist/command.cjs +1 -1
- package/dist/command.mjs +3 -396
- package/dist/context-menu-DJbgNJ7N.js +1 -0
- package/dist/context-menu-fu39gePi.mjs +292 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.mjs +3 -328
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.mjs +50 -66
- package/dist/dist-0FXx-pUX.js +1 -0
- package/dist/dist-4A0ut6a8.mjs +10 -0
- package/dist/dist-ALQAoSGx.mjs +10 -0
- package/dist/dist-B4N_7Tps.js +1 -0
- package/dist/dist-B5776DvK.js +5 -0
- package/dist/dist-B57mzJP3.mjs +28 -0
- package/dist/dist-B5VmV2K7.js +1 -0
- package/dist/dist-BBRD-Qfb.js +1 -0
- package/dist/dist-BC_VB6JL.mjs +25 -0
- package/dist/dist-BKFtvTm8.mjs +6 -0
- package/dist/dist-BUS_s_6N.js +1 -0
- package/dist/dist-BVKPqhkg.js +1 -0
- package/dist/dist-Ba7mQG9D.mjs +117 -0
- package/dist/dist-BeFCyPgD.js +1 -0
- package/dist/dist-Bf4P28CV.js +1 -0
- package/dist/dist-BfFVoFJN.js +1 -0
- package/dist/dist-BhtQH_6Z.js +1 -0
- package/dist/dist-BmjFh8i_.mjs +5 -0
- package/dist/dist-BrCTkQXt.mjs +62 -0
- package/dist/dist-BxmpAHsT.mjs +219 -0
- package/dist/dist-C2ArLRnq.js +1 -0
- package/dist/dist-C2pRTcV_.mjs +62 -0
- package/dist/dist-C9wnUiS4.mjs +27 -0
- package/dist/dist-CIRItnqs.js +1 -0
- package/dist/dist-CL1DhkaL.js +1 -0
- package/dist/dist-CRe7xawr.js +1 -0
- package/dist/dist-CUFjt0cI.js +1 -0
- package/dist/dist-CaaGWewc.mjs +557 -0
- package/dist/dist-Ci2whnVp.js +1 -0
- package/dist/dist-CmBtqW5f.js +1 -0
- package/dist/dist-CsEsK2jW.js +1 -0
- package/dist/dist-CscAxhT8.js +1 -0
- package/dist/dist-CvtF5JdF.mjs +95 -0
- package/dist/dist-Cvwtowos.mjs +77 -0
- package/dist/dist-D2f83VMO.mjs +73 -0
- package/dist/dist-Dh_jWJh-.mjs +11 -0
- package/dist/dist-DikyKBU3.mjs +12 -0
- package/dist/dist-DmmUjo_P.js +1 -0
- package/dist/dist-DqvQ5UFr.mjs +38 -0
- package/dist/dist-FGQAMrhH.mjs +29 -0
- package/dist/dist-Jtk3jeb9.mjs +18 -0
- package/dist/dist-Kqk0oQYU.js +1 -0
- package/dist/dist-VI9bl_Wk.mjs +45 -0
- package/dist/dist-Z7lEV5Nx.mjs +1282 -0
- package/dist/dist-_Osar3kp.js +1 -0
- package/dist/dist-bDoR0CBU.mjs +112 -0
- package/dist/dist-cRjbOZRf.js +1 -0
- package/dist/dist-d_pecHgw.mjs +66 -0
- package/dist/dist-r36zVVcK.js +1 -0
- package/dist/dist-sRlXdzvf.mjs +152 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.mjs +48 -54
- package/dist/dropdown-menu-BGkQXJ-r.mjs +288 -0
- package/dist/dropdown-menu-uGMnmGL-.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.mjs +3 -316
- package/dist/es2015-Cx0gpR1a.js +41 -0
- package/dist/es2015-a1b8kENC.mjs +701 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +76 -67
- package/dist/hover-card-DdIYJP-Q.mjs +167 -0
- package/dist/hover-card-Ua-2KlY-.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.mjs +3 -188
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -35
- package/dist/index.mjs +56 -296
- package/dist/input.cjs +1 -1
- package/dist/input.mjs +14 -19
- package/dist/jsx-runtime-CN3qjQQx.js +6 -0
- package/dist/jsx-runtime-CW53Uo-e.mjs +189 -0
- package/dist/label-8YSUv4kt.js +1 -0
- package/dist/label-Bur66PVg.mjs +22 -0
- package/dist/label.cjs +1 -1
- package/dist/label.mjs +3 -22
- package/dist/menubar-Bq1Sfbf5.js +1 -0
- package/dist/menubar-D2fY6zkQ.mjs +410 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.mjs +3 -473
- package/dist/navigation-menu-BuOakbgA.mjs +602 -0
- package/dist/navigation-menu-so6EvLAY.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.mjs +3 -673
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.mjs +63 -68
- package/dist/popover-BUADXRkO.mjs +201 -0
- package/dist/popover-nBrSPqHk.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.mjs +3 -242
- package/dist/progress-BTApMbqg.js +6 -0
- package/dist/progress-BbN-RNvs.mjs +81 -0
- package/dist/progress.cjs +1 -6
- package/dist/progress.mjs +3 -99
- package/dist/radio-group-C5oprOrt.mjs +193 -0
- package/dist/radio-group-FDXr6VLM.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +3 -253
- package/dist/resizable-ChdgCzzx.mjs +1534 -0
- package/dist/resizable-ztiFzq_y.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.mjs +3 -1990
- package/dist/scroll-area-3o0-cc3n.mjs +520 -0
- package/dist/scroll-area-DXZqIKXN.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.mjs +3 -546
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.mjs +71 -84
- package/dist/search.cjs +1 -1
- package/dist/search.mjs +53 -63
- package/dist/select-B2qM503G.mjs +744 -0
- package/dist/select-BHCeW-MD.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.mjs +3 -908
- package/dist/separator-BZJ-SDvg.js +1 -0
- package/dist/separator-DJ_IwKUQ.mjs +31 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.mjs +3 -35
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.mjs +59 -66
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.mjs +13 -7
- package/dist/slider-CJJPQ0fH.mjs +366 -0
- package/dist/slider-DHccqrW2.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.mjs +3 -442
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.mjs +21 -24
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +81 -117
- package/dist/switch-BbcAUYjl.mjs +103 -0
- package/dist/switch-DZfRzgWs.js +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.mjs +3 -149
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.mjs +159 -155
- package/dist/table.cjs +1 -1
- package/dist/table.mjs +58 -57
- package/dist/tabs-BEy0IIV0.js +1 -0
- package/dist/tabs-DqAKyl9T.mjs +136 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.mjs +3 -195
- package/dist/text.cjs +1 -1
- package/dist/text.mjs +41 -42
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.mjs +12 -17
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.mjs +15 -7
- package/dist/theme-toggle-DKQmD-FO.js +1 -0
- package/dist/theme-toggle-dQbFWNI8.mjs +65 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +3 -8
- package/dist/toast-C84Cpidq.js +1 -0
- package/dist/toast-CQbUslcw.mjs +427 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.mjs +3 -494
- package/dist/toaster-BpcpNRz1.js +1 -0
- package/dist/toaster-i6giQYiq.mjs +126 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +3 -6
- package/dist/toggle-group-B2S7fkhA.mjs +155 -0
- package/dist/toggle-group-BNn6MNiJ.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.mjs +3 -170
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.mjs +19 -14
- package/dist/tooltip-CElrNodA.js +1 -0
- package/dist/tooltip-oKfTBTbv.mjs +364 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.mjs +3 -342
- package/dist/utils-BxDanjP7.js +1 -0
- package/dist/utils-yc5uc46c.mjs +11 -0
- package/package.json +2 -2
- package/src/chart.tsx +7 -7
- package/src/setupTests.ts +5 -4
- package/dist/index-0ioNhtNM.mjs +0 -10
- package/dist/index-3j-XAIXT.mjs +0 -55
- package/dist/index-B2XtpfGY.js +0 -1
- package/dist/index-B39Lzq0v.js +0 -1
- package/dist/index-B7n6fy75.js +0 -1
- package/dist/index-B8dxbSWX.js +0 -41
- package/dist/index-BGIK9FQF.js +0 -1
- package/dist/index-BZPx6jYI.mjs +0 -8
- package/dist/index-BoNjHhm4.js +0 -1
- package/dist/index-BtZvtDmp.js +0 -1
- package/dist/index-Bv7qrYW6.mjs +0 -180
- package/dist/index-ByiPJW53.js +0 -5
- package/dist/index-C0dlIQIi.js +0 -1
- package/dist/index-C1qb0595.mjs +0 -27
- package/dist/index-C7HEunrh.mjs +0 -15
- package/dist/index-C8ni3LLa.js +0 -1
- package/dist/index-CCKe-Mpx.mjs +0 -6
- package/dist/index-CD6_IrA-.mjs +0 -10
- package/dist/index-CRyCZJLa.mjs +0 -677
- package/dist/index-CVx1AgNG.mjs +0 -615
- package/dist/index-Ce5TOFAK.js +0 -1
- package/dist/index-CeSLNJ60.mjs +0 -32
- package/dist/index-CefEQe_4.js +0 -1
- package/dist/index-Cj5hzyBi.js +0 -1
- package/dist/index-Cjj_rUPu.js +0 -1
- package/dist/index-Cl3G0jzM.js +0 -1
- package/dist/index-CwfE56Ep.mjs +0 -1545
- package/dist/index-CwyAfCwY.js +0 -1
- package/dist/index-CzY-WZXL.js +0 -1
- package/dist/index-D2HnlO3y.js +0 -1
- package/dist/index-DFdF7K7v.mjs +0 -50
- package/dist/index-DIsg7zU7.js +0 -1
- package/dist/index-DKN_vhyX.mjs +0 -32
- package/dist/index-DLcqcWxM.mjs +0 -29
- package/dist/index-DSxf1gN6.mjs +0 -118
- package/dist/index-DYxWvftI.js +0 -1
- package/dist/index-DaILh3TV.mjs +0 -32
- package/dist/index-Dfzl8TxY.mjs +0 -136
- package/dist/index-Dko2XdTk.js +0 -1
- package/dist/index-DlY82G31.mjs +0 -245
- package/dist/index-DnFcfnA9.mjs +0 -13
- package/dist/index-IZ2gq03c.mjs +0 -68
- package/dist/index-K9FzbxYw.mjs +0 -93
- package/dist/index-Le8p9oP4.mjs +0 -60
- package/dist/index-MQ0c3ZX_.js +0 -1
- package/dist/index-_XxjJPRD.js +0 -1
- package/dist/index-_wdrnYim.js +0 -1
- package/dist/index-jv3B4mTd.js +0 -1
- package/dist/index-kaM0u2Q1.js +0 -1
- package/dist/index-p6xVFRb4.mjs +0 -52
- package/dist/index-rKs9bXHr.mjs +0 -6
- package/dist/index-vuPgkS0V.mjs +0 -70
- package/dist/jsx-runtime-nZSsnGb7.js +0 -6
- package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
- package/dist/theme-toggle-DXQGNfCe.js +0 -1
- package/dist/theme-toggle-tHXIbr8W.mjs +0 -79
- package/dist/toaster-C_S9hnXa.js +0 -1
- package/dist/toaster-k5DnQSsh.mjs +0 -118
- package/dist/utils-DY6fhrgS.mjs +0 -12
- package/dist/utils-cdbZV8DZ.js +0 -1
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { t as e } from "./jsx-runtime-CW53Uo-e.mjs";
|
|
2
|
+
import { t } from "./utils-yc5uc46c.mjs";
|
|
3
|
+
import { n } from "./dist-Cvwtowos.mjs";
|
|
4
|
+
import { t as r } from "./dist-BC_VB6JL.mjs";
|
|
5
|
+
import { r as i, t as a } from "./dist-bDoR0CBU.mjs";
|
|
6
|
+
import { t as o } from "./dist-VI9bl_Wk.mjs";
|
|
7
|
+
import { t as s } from "./dist-DikyKBU3.mjs";
|
|
8
|
+
import { _ as c, a as l, c as u, d, f as ee, g as f, h as p, i as te, l as ne, m as re, n as ie, o as ae, p as oe, r as se, s as ce, t as le, u as ue } from "./dist-CaaGWewc.mjs";
|
|
9
|
+
import * as m from "react";
|
|
10
|
+
import { Check as de, ChevronRight as fe, Circle as pe } from "lucide-react";
|
|
11
|
+
//#region ../../node_modules/.bun/@radix-ui+react-dropdown-menu@2.1.16+2d3f272c3a65784a/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
12
|
+
var h = e(), g = "DropdownMenu", [me, he] = n(g, [c]), _ = c(), [ge, v] = me(g), y = (e) => {
|
|
13
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: c, modal: l = !0 } = e, u = _(t), d = m.useRef(null), [f, p] = o({
|
|
14
|
+
prop: i,
|
|
15
|
+
defaultProp: a ?? !1,
|
|
16
|
+
onChange: c,
|
|
17
|
+
caller: g
|
|
18
|
+
});
|
|
19
|
+
return /* @__PURE__ */ (0, h.jsx)(ge, {
|
|
20
|
+
scope: t,
|
|
21
|
+
triggerId: s(),
|
|
22
|
+
triggerRef: d,
|
|
23
|
+
contentId: s(),
|
|
24
|
+
open: f,
|
|
25
|
+
onOpenChange: p,
|
|
26
|
+
onOpenToggle: m.useCallback(() => p((e) => !e), [p]),
|
|
27
|
+
modal: l,
|
|
28
|
+
children: /* @__PURE__ */ (0, h.jsx)(ee, {
|
|
29
|
+
...u,
|
|
30
|
+
open: f,
|
|
31
|
+
onOpenChange: p,
|
|
32
|
+
dir: r,
|
|
33
|
+
modal: l,
|
|
34
|
+
children: n
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
y.displayName = g;
|
|
39
|
+
var b = "DropdownMenuTrigger", x = m.forwardRef((e, t) => {
|
|
40
|
+
let { __scopeDropdownMenu: n, disabled: o = !1, ...s } = e, c = v(b, n), l = _(n);
|
|
41
|
+
return /* @__PURE__ */ (0, h.jsx)(le, {
|
|
42
|
+
asChild: !0,
|
|
43
|
+
...l,
|
|
44
|
+
children: /* @__PURE__ */ (0, h.jsx)(a.button, {
|
|
45
|
+
type: "button",
|
|
46
|
+
id: c.triggerId,
|
|
47
|
+
"aria-haspopup": "menu",
|
|
48
|
+
"aria-expanded": c.open,
|
|
49
|
+
"aria-controls": c.open ? c.contentId : void 0,
|
|
50
|
+
"data-state": c.open ? "open" : "closed",
|
|
51
|
+
"data-disabled": o ? "" : void 0,
|
|
52
|
+
disabled: o,
|
|
53
|
+
...s,
|
|
54
|
+
ref: r(t, c.triggerRef),
|
|
55
|
+
onPointerDown: i(e.onPointerDown, (e) => {
|
|
56
|
+
!o && e.button === 0 && e.ctrlKey === !1 && (c.onOpenToggle(), c.open || e.preventDefault());
|
|
57
|
+
}),
|
|
58
|
+
onKeyDown: i(e.onKeyDown, (e) => {
|
|
59
|
+
o || (["Enter", " "].includes(e.key) && c.onOpenToggle(), e.key === "ArrowDown" && c.onOpenChange(!0), [
|
|
60
|
+
"Enter",
|
|
61
|
+
" ",
|
|
62
|
+
"ArrowDown"
|
|
63
|
+
].includes(e.key) && e.preventDefault());
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
x.displayName = b;
|
|
69
|
+
var _e = "DropdownMenuPortal", S = (e) => {
|
|
70
|
+
let { __scopeDropdownMenu: t, ...n } = e, r = _(t);
|
|
71
|
+
return /* @__PURE__ */ (0, h.jsx)(ne, {
|
|
72
|
+
...r,
|
|
73
|
+
...n
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
S.displayName = _e;
|
|
77
|
+
var C = "DropdownMenuContent", w = m.forwardRef((e, t) => {
|
|
78
|
+
let { __scopeDropdownMenu: n, ...r } = e, a = v(C, n), o = _(n), s = m.useRef(!1);
|
|
79
|
+
return /* @__PURE__ */ (0, h.jsx)(te, {
|
|
80
|
+
id: a.contentId,
|
|
81
|
+
"aria-labelledby": a.triggerId,
|
|
82
|
+
...o,
|
|
83
|
+
...r,
|
|
84
|
+
ref: t,
|
|
85
|
+
onCloseAutoFocus: i(e.onCloseAutoFocus, (e) => {
|
|
86
|
+
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
87
|
+
}),
|
|
88
|
+
onInteractOutside: i(e.onInteractOutside, (e) => {
|
|
89
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
90
|
+
(!a.modal || r) && (s.current = !0);
|
|
91
|
+
}),
|
|
92
|
+
style: {
|
|
93
|
+
...e.style,
|
|
94
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
95
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
96
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
97
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
98
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
w.displayName = C;
|
|
103
|
+
var ve = "DropdownMenuGroup", T = m.forwardRef((e, t) => {
|
|
104
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
105
|
+
return /* @__PURE__ */ (0, h.jsx)(l, {
|
|
106
|
+
...i,
|
|
107
|
+
...r,
|
|
108
|
+
ref: t
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
T.displayName = ve;
|
|
112
|
+
var ye = "DropdownMenuLabel", E = m.forwardRef((e, t) => {
|
|
113
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
114
|
+
return /* @__PURE__ */ (0, h.jsx)(u, {
|
|
115
|
+
...i,
|
|
116
|
+
...r,
|
|
117
|
+
ref: t
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
E.displayName = ye;
|
|
121
|
+
var be = "DropdownMenuItem", D = m.forwardRef((e, t) => {
|
|
122
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
123
|
+
return /* @__PURE__ */ (0, h.jsx)(ae, {
|
|
124
|
+
...i,
|
|
125
|
+
...r,
|
|
126
|
+
ref: t
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
D.displayName = be;
|
|
130
|
+
var xe = "DropdownMenuCheckboxItem", O = m.forwardRef((e, t) => {
|
|
131
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
132
|
+
return /* @__PURE__ */ (0, h.jsx)(se, {
|
|
133
|
+
...i,
|
|
134
|
+
...r,
|
|
135
|
+
ref: t
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
O.displayName = xe;
|
|
139
|
+
var Se = "DropdownMenuRadioGroup", k = m.forwardRef((e, t) => {
|
|
140
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
141
|
+
return /* @__PURE__ */ (0, h.jsx)(ue, {
|
|
142
|
+
...i,
|
|
143
|
+
...r,
|
|
144
|
+
ref: t
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
k.displayName = Se;
|
|
148
|
+
var Ce = "DropdownMenuRadioItem", A = m.forwardRef((e, t) => {
|
|
149
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
150
|
+
return /* @__PURE__ */ (0, h.jsx)(d, {
|
|
151
|
+
...i,
|
|
152
|
+
...r,
|
|
153
|
+
ref: t
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
A.displayName = Ce;
|
|
157
|
+
var we = "DropdownMenuItemIndicator", j = m.forwardRef((e, t) => {
|
|
158
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
159
|
+
return /* @__PURE__ */ (0, h.jsx)(ce, {
|
|
160
|
+
...i,
|
|
161
|
+
...r,
|
|
162
|
+
ref: t
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
j.displayName = we;
|
|
166
|
+
var Te = "DropdownMenuSeparator", M = m.forwardRef((e, t) => {
|
|
167
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
168
|
+
return /* @__PURE__ */ (0, h.jsx)(oe, {
|
|
169
|
+
...i,
|
|
170
|
+
...r,
|
|
171
|
+
ref: t
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
M.displayName = Te;
|
|
175
|
+
var Ee = "DropdownMenuArrow", De = m.forwardRef((e, t) => {
|
|
176
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
177
|
+
return /* @__PURE__ */ (0, h.jsx)(ie, {
|
|
178
|
+
...i,
|
|
179
|
+
...r,
|
|
180
|
+
ref: t
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
De.displayName = Ee;
|
|
184
|
+
var Oe = (e) => {
|
|
185
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, s = _(t), [c, l] = o({
|
|
186
|
+
prop: r,
|
|
187
|
+
defaultProp: a ?? !1,
|
|
188
|
+
onChange: i,
|
|
189
|
+
caller: "DropdownMenuSub"
|
|
190
|
+
});
|
|
191
|
+
return /* @__PURE__ */ (0, h.jsx)(re, {
|
|
192
|
+
...s,
|
|
193
|
+
open: c,
|
|
194
|
+
onOpenChange: l,
|
|
195
|
+
children: n
|
|
196
|
+
});
|
|
197
|
+
}, ke = "DropdownMenuSubTrigger", N = m.forwardRef((e, t) => {
|
|
198
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
199
|
+
return /* @__PURE__ */ (0, h.jsx)(f, {
|
|
200
|
+
...i,
|
|
201
|
+
...r,
|
|
202
|
+
ref: t
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
N.displayName = ke;
|
|
206
|
+
var Ae = "DropdownMenuSubContent", P = m.forwardRef((e, t) => {
|
|
207
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = _(n);
|
|
208
|
+
return /* @__PURE__ */ (0, h.jsx)(p, {
|
|
209
|
+
...i,
|
|
210
|
+
...r,
|
|
211
|
+
ref: t,
|
|
212
|
+
style: {
|
|
213
|
+
...e.style,
|
|
214
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
215
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
216
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
217
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
218
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
P.displayName = Ae;
|
|
223
|
+
var je = y, Me = x, F = S, I = w, Ne = T, L = E, R = D, z = O, Pe = k, B = A, V = j, H = M, Fe = Oe, U = N, W = P, Ie = je, Le = Me, Re = Ne, ze = F, Be = Fe, Ve = Pe, G = m.forwardRef(({ className: e, inset: n, children: r, ...i }, a) => /* @__PURE__ */ (0, h.jsxs)(U, {
|
|
224
|
+
ref: a,
|
|
225
|
+
className: t("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", n && "pl-8", e),
|
|
226
|
+
...i,
|
|
227
|
+
children: [r, /* @__PURE__ */ (0, h.jsx)(fe, { className: "ml-auto" })]
|
|
228
|
+
}));
|
|
229
|
+
G.displayName = U?.displayName || "DropdownMenuSubTrigger";
|
|
230
|
+
var K = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(W, {
|
|
231
|
+
ref: r,
|
|
232
|
+
className: t("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg", e),
|
|
233
|
+
...n
|
|
234
|
+
}));
|
|
235
|
+
K.displayName = W?.displayName || "DropdownMenuSubContent";
|
|
236
|
+
var q = m.forwardRef(({ className: e, sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ (0, h.jsx)(F, { children: /* @__PURE__ */ (0, h.jsx)(I, {
|
|
237
|
+
ref: i,
|
|
238
|
+
sideOffset: n,
|
|
239
|
+
className: t("bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]", e),
|
|
240
|
+
...r
|
|
241
|
+
}) }));
|
|
242
|
+
q.displayName = I?.displayName || "DropdownMenuContent";
|
|
243
|
+
var J = m.forwardRef(({ className: e, inset: n, ...r }, i) => /* @__PURE__ */ (0, h.jsx)(R, {
|
|
244
|
+
ref: i,
|
|
245
|
+
className: t("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0", n && "pl-8", e),
|
|
246
|
+
...r
|
|
247
|
+
}));
|
|
248
|
+
J.displayName = R?.displayName || "DropdownMenuItem";
|
|
249
|
+
var Y = m.forwardRef(({ className: e, children: n, checked: r, ...i }, a) => /* @__PURE__ */ (0, h.jsxs)(z, {
|
|
250
|
+
ref: a,
|
|
251
|
+
className: t("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
252
|
+
checked: r,
|
|
253
|
+
...i,
|
|
254
|
+
children: [/* @__PURE__ */ (0, h.jsx)("span", {
|
|
255
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
256
|
+
children: /* @__PURE__ */ (0, h.jsx)(V, { children: /* @__PURE__ */ (0, h.jsx)(de, { className: "h-4 w-4" }) })
|
|
257
|
+
}), n]
|
|
258
|
+
}));
|
|
259
|
+
Y.displayName = z?.displayName || "DropdownMenuCheckboxItem";
|
|
260
|
+
var X = m.forwardRef(({ className: e, children: n, ...r }, i) => /* @__PURE__ */ (0, h.jsxs)(B, {
|
|
261
|
+
ref: i,
|
|
262
|
+
className: t("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e),
|
|
263
|
+
...r,
|
|
264
|
+
children: [/* @__PURE__ */ (0, h.jsx)("span", {
|
|
265
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
266
|
+
children: /* @__PURE__ */ (0, h.jsx)(V, { children: /* @__PURE__ */ (0, h.jsx)(pe, { className: "h-2 w-2 fill-current" }) })
|
|
267
|
+
}), n]
|
|
268
|
+
}));
|
|
269
|
+
X.displayName = B?.displayName || "DropdownMenuRadioItem";
|
|
270
|
+
var Z = m.forwardRef(({ className: e, inset: n, ...r }, i) => /* @__PURE__ */ (0, h.jsx)(L, {
|
|
271
|
+
ref: i,
|
|
272
|
+
className: t("px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
273
|
+
...r
|
|
274
|
+
}));
|
|
275
|
+
Z.displayName = L?.displayName || "DropdownMenuLabel";
|
|
276
|
+
var Q = m.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ (0, h.jsx)(H, {
|
|
277
|
+
ref: r,
|
|
278
|
+
className: t("bg-muted -mx-1 my-1 h-px", e),
|
|
279
|
+
...n
|
|
280
|
+
}));
|
|
281
|
+
Q.displayName = H?.displayName || "DropdownMenuSeparator";
|
|
282
|
+
var $ = ({ className: e, ...n }) => /* @__PURE__ */ (0, h.jsx)("span", {
|
|
283
|
+
className: t("ml-auto text-xs tracking-widest opacity-60", e),
|
|
284
|
+
...n
|
|
285
|
+
});
|
|
286
|
+
$.displayName = "DropdownMenuShortcut";
|
|
287
|
+
//#endregion
|
|
288
|
+
export { J as a, Ve as c, $ as d, Be as f, Le as h, Re as i, X as l, G as m, Y as n, Z as o, K as p, q as r, ze as s, Ie as t, Q as u };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./jsx-runtime-CN3qjQQx.js`),t=require(`./utils-BxDanjP7.js`),n=require(`./dist-Kqk0oQYU.js`),r=require(`./dist-CsEsK2jW.js`),i=require(`./dist-DmmUjo_P.js`),a=require(`./dist-B5VmV2K7.js`),o=require(`./dist-CUFjt0cI.js`),s=require(`./dist-BBRD-Qfb.js`);let c=require(`react`),l=e.i(c,1);c=e.i(c);let u=require(`lucide-react`);var d=e.t(),f=`DropdownMenu`,[p,ee]=n.n(f,[s._]),m=s._(),[te,h]=p(f),g=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:c,onOpenChange:u,modal:p=!0}=e,ee=m(t),h=l.useRef(null),[g,_]=a.t({prop:i,defaultProp:c??!1,onChange:u,caller:f});return(0,d.jsx)(te,{scope:t,triggerId:o.t(),triggerRef:h,contentId:o.t(),open:g,onOpenChange:_,onOpenToggle:l.useCallback(()=>_(e=>!e),[_]),modal:p,children:(0,d.jsx)(s.f,{...ee,open:g,onOpenChange:_,dir:r,modal:p,children:n})})};g.displayName=f;var _=`DropdownMenuTrigger`,v=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,c=h(_,n),l=m(n);return(0,d.jsx)(s.t,{asChild:!0,...l,children:(0,d.jsx)(i.t.button,{type:`button`,id:c.triggerId,"aria-haspopup":`menu`,"aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?`open`:`closed`,"data-disabled":a?``:void 0,disabled:a,...o,ref:r.t(t,c.triggerRef),onPointerDown:i.r(e.onPointerDown,e=>{!a&&e.button===0&&e.ctrlKey===!1&&(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:i.r(e.onKeyDown,e=>{a||([`Enter`,` `].includes(e.key)&&c.onOpenToggle(),e.key===`ArrowDown`&&c.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});v.displayName=_;var ne=`DropdownMenuPortal`,y=e=>{let{__scopeDropdownMenu:t,...n}=e,r=m(t);return(0,d.jsx)(s.l,{...r,...n})};y.displayName=ne;var b=`DropdownMenuContent`,x=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,a=h(b,n),o=m(n),c=l.useRef(!1);return(0,d.jsx)(s.i,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...r,ref:t,onCloseAutoFocus:i.r(e.onCloseAutoFocus,e=>{c.current||a.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:i.r(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});x.displayName=b;var re=`DropdownMenuGroup`,S=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.a,{...i,...r,ref:t})});S.displayName=re;var ie=`DropdownMenuLabel`,C=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.c,{...i,...r,ref:t})});C.displayName=ie;var ae=`DropdownMenuItem`,w=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.o,{...i,...r,ref:t})});w.displayName=ae;var oe=`DropdownMenuCheckboxItem`,T=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.r,{...i,...r,ref:t})});T.displayName=oe;var se=`DropdownMenuRadioGroup`,E=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.u,{...i,...r,ref:t})});E.displayName=se;var D=`DropdownMenuRadioItem`,O=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.d,{...i,...r,ref:t})});O.displayName=D;var ce=`DropdownMenuItemIndicator`,k=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.s,{...i,...r,ref:t})});k.displayName=ce;var le=`DropdownMenuSeparator`,A=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.p,{...i,...r,ref:t})});A.displayName=le;var ue=`DropdownMenuArrow`,de=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.n,{...i,...r,ref:t})});de.displayName=ue;var fe=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,c=m(t),[l,u]=a.t({prop:r,defaultProp:o??!1,onChange:i,caller:`DropdownMenuSub`});return(0,d.jsx)(s.m,{...c,open:l,onOpenChange:u,children:n})},pe=`DropdownMenuSubTrigger`,j=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.g,{...i,...r,ref:t})});j.displayName=pe;var me=`DropdownMenuSubContent`,M=l.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=m(n);return(0,d.jsx)(s.h,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});M.displayName=me;var he=g,ge=v,N=y,P=x,F=S,I=C,L=w,R=T,_e=E,z=O,B=k,V=A,ve=fe,H=j,U=M,ye=he,be=ge,xe=F,Se=N,Ce=ve,W=_e,G=c.forwardRef(({className:e,inset:n,children:r,...i},a)=>(0,d.jsxs)(H,{ref:a,className:t.t(`focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,n&&`pl-8`,e),...i,children:[r,(0,d.jsx)(u.ChevronRight,{className:`ml-auto`})]}));G.displayName=H?.displayName||`DropdownMenuSubTrigger`;var K=c.forwardRef(({className:e,...n},r)=>(0,d.jsx)(U,{ref:r,className:t.t(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg`,e),...n}));K.displayName=U?.displayName||`DropdownMenuSubContent`;var q=c.forwardRef(({className:e,sideOffset:n=4,...r},i)=>(0,d.jsx)(N,{children:(0,d.jsx)(P,{ref:i,sideOffset:n,className:t.t(`bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]`,e),...r})}));q.displayName=P?.displayName||`DropdownMenuContent`;var J=c.forwardRef(({className:e,inset:n,...r},i)=>(0,d.jsx)(L,{ref:i,className:t.t(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0`,n&&`pl-8`,e),...r}));J.displayName=L?.displayName||`DropdownMenuItem`;var Y=c.forwardRef(({className:e,children:n,checked:r,...i},a)=>(0,d.jsxs)(R,{ref:a,className:t.t(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),checked:r,...i,children:[(0,d.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,d.jsx)(B,{children:(0,d.jsx)(u.Check,{className:`h-4 w-4`})})}),n]}));Y.displayName=R?.displayName||`DropdownMenuCheckboxItem`;var X=c.forwardRef(({className:e,children:n,...r},i)=>(0,d.jsxs)(z,{ref:i,className:t.t(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...r,children:[(0,d.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,d.jsx)(B,{children:(0,d.jsx)(u.Circle,{className:`h-2 w-2 fill-current`})})}),n]}));X.displayName=z?.displayName||`DropdownMenuRadioItem`;var Z=c.forwardRef(({className:e,inset:n,...r},i)=>(0,d.jsx)(I,{ref:i,className:t.t(`px-2 py-1.5 text-sm font-semibold`,n&&`pl-8`,e),...r}));Z.displayName=I?.displayName||`DropdownMenuLabel`;var Q=c.forwardRef(({className:e,...n},r)=>(0,d.jsx)(V,{ref:r,className:t.t(`bg-muted -mx-1 my-1 h-px`,e),...n}));Q.displayName=V?.displayName||`DropdownMenuSeparator`;var $=({className:e,...n})=>(0,d.jsx)(`span`,{className:t.t(`ml-auto text-xs tracking-widest opacity-60`,e),...n});$.displayName=`DropdownMenuShortcut`,Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Q}});
|
package/dist/dropdown-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-nZSsnGb7.js"),ae=require("react"),x=require("./index-BtZvtDmp.js"),se=require("./index-_XxjJPRD.js"),de=require("./index-D2HnlO3y.js"),R=require("./index-Ce5TOFAK.js"),d=require("./index-B7n6fy75.js"),v=require("./index-CefEQe_4.js"),D=require("lucide-react"),l=require("./utils-cdbZV8DZ.js");function pe(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const s=pe(ae);var g="DropdownMenu",[ie]=de.createContextScope(g,[d.createMenuScope]),u=d.createMenuScope(),[ue,b]=ie(g),h=e=>{const{__scopeDropdownMenu:o,children:n,dir:r,open:t,defaultOpen:i,onOpenChange:c,modal:p=!0}=e,m=u(o),M=s.useRef(null),[w,f]=R.useControllableState({prop:t,defaultProp:i??!1,onChange:c,caller:g});return a.jsxRuntimeExports.jsx(ue,{scope:o,triggerId:v.useId(),triggerRef:M,contentId:v.useId(),open:w,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(te=>!te),[f]),modal:p,children:a.jsxRuntimeExports.jsx(d.Root3,{...m,open:w,onOpenChange:f,dir:r,modal:p,children:n})})};h.displayName=g;var j="DropdownMenuTrigger",E=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...t}=e,i=b(j,n),c=u(n);return a.jsxRuntimeExports.jsx(d.Anchor2,{asChild:!0,...c,children:a.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...t,ref:se.composeRefs(o,i.triggerRef),onPointerDown:x.composeEventHandlers(e.onPointerDown,p=>{!r&&p.button===0&&p.ctrlKey===!1&&(i.onOpenToggle(),i.open||p.preventDefault())}),onKeyDown:x.composeEventHandlers(e.onKeyDown,p=>{r||(["Enter"," "].includes(p.key)&&i.onOpenToggle(),p.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(p.key)&&p.preventDefault())})})})});E.displayName=j;var ce="DropdownMenuPortal",N=e=>{const{__scopeDropdownMenu:o,...n}=e,r=u(o);return a.jsxRuntimeExports.jsx(d.Portal,{...r,...n})};N.displayName=ce;var y="DropdownMenuContent",S=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=b(y,n),i=u(n),c=s.useRef(!1);return a.jsxRuntimeExports.jsx(d.Content2,{id:t.contentId,"aria-labelledby":t.triggerId,...i,...r,ref:o,onCloseAutoFocus:x.composeEventHandlers(e.onCloseAutoFocus,p=>{c.current||t.triggerRef.current?.focus(),c.current=!1,p.preventDefault()}),onInteractOutside:x.composeEventHandlers(e.onInteractOutside,p=>{const m=p.detail.originalEvent,M=m.button===0&&m.ctrlKey===!0,w=m.button===2||M;(!t.modal||w)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});S.displayName=y;var le="DropdownMenuGroup",_=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.Group,{...t,...r,ref:o})});_.displayName=le;var me="DropdownMenuLabel",I=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.Label,{...t,...r,ref:o})});I.displayName=me;var xe="DropdownMenuItem",C=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.Item2,{...t,...r,ref:o})});C.displayName=xe;var we="DropdownMenuCheckboxItem",P=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.CheckboxItem,{...t,...r,ref:o})});P.displayName=we;var fe="DropdownMenuRadioGroup",O=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.RadioGroup,{...t,...r,ref:o})});O.displayName=fe;var ge="DropdownMenuRadioItem",A=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.RadioItem,{...t,...r,ref:o})});A.displayName=ge;var Me="DropdownMenuItemIndicator",T=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.ItemIndicator,{...t,...r,ref:o})});T.displayName=Me;var De="DropdownMenuSeparator",k=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.Separator,{...t,...r,ref:o})});k.displayName=De;var ve="DropdownMenuArrow",Re=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.Arrow2,{...t,...r,ref:o})});Re.displayName=ve;var be=e=>{const{__scopeDropdownMenu:o,children:n,open:r,onOpenChange:t,defaultOpen:i}=e,c=u(o),[p,m]=R.useControllableState({prop:r,defaultProp:i??!1,onChange:t,caller:"DropdownMenuSub"});return a.jsxRuntimeExports.jsx(d.Sub,{...c,open:p,onOpenChange:m,children:n})},he="DropdownMenuSubTrigger",G=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.SubTrigger,{...t,...r,ref:o})});G.displayName=he;var je="DropdownMenuSubContent",$=s.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...r}=e,t=u(n);return a.jsxRuntimeExports.jsx(d.SubContent,{...t,...r,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$.displayName=je;var Ee=h,Ne=E,L=N,q=S,ye=_,z=I,H=C,K=P,Se=O,U=A,B=T,F=k,_e=be,W=G,X=$;const Ie=Ee,Ce=Ne,Pe=ye,Oe=L,Ae=_e,Te=Se,J=s.forwardRef(({className:e,inset:o,children:n,...r},t)=>a.jsxRuntimeExports.jsxs(W,{ref:t,className:l.cn("focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...r,children:[n,a.jsxRuntimeExports.jsx(D.ChevronRight,{className:"ml-auto"})]}));J.displayName=W?.displayName||"DropdownMenuSubTrigger";const Q=s.forwardRef(({className:e,...o},n)=>a.jsxRuntimeExports.jsx(X,{ref:n,className:l.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",e),...o}));Q.displayName=X?.displayName||"DropdownMenuSubContent";const V=s.forwardRef(({className:e,sideOffset:o=4,...n},r)=>a.jsxRuntimeExports.jsx(L,{children:a.jsxRuntimeExports.jsx(q,{ref:r,sideOffset:o,className:l.cn("bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));V.displayName=q?.displayName||"DropdownMenuContent";const Y=s.forwardRef(({className:e,inset:o,...n},r)=>a.jsxRuntimeExports.jsx(H,{ref:r,className:l.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",o&&"pl-8",e),...n}));Y.displayName=H?.displayName||"DropdownMenuItem";const Z=s.forwardRef(({className:e,children:o,checked:n,...r},t)=>a.jsxRuntimeExports.jsxs(K,{ref:t,className:l.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(B,{children:a.jsxRuntimeExports.jsx(D.Check,{className:"h-4 w-4"})})}),o]}));Z.displayName=K?.displayName||"DropdownMenuCheckboxItem";const ee=s.forwardRef(({className:e,children:o,...n},r)=>a.jsxRuntimeExports.jsxs(U,{ref:r,className:l.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[a.jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsxRuntimeExports.jsx(B,{children:a.jsxRuntimeExports.jsx(D.Circle,{className:"h-2 w-2 fill-current"})})}),o]}));ee.displayName=U?.displayName||"DropdownMenuRadioItem";const oe=s.forwardRef(({className:e,inset:o,...n},r)=>a.jsxRuntimeExports.jsx(z,{ref:r,className:l.cn("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...n}));oe.displayName=z?.displayName||"DropdownMenuLabel";const ne=s.forwardRef(({className:e,...o},n)=>a.jsxRuntimeExports.jsx(F,{ref:n,className:l.cn("bg-muted -mx-1 my-1 h-px",e),...o}));ne.displayName=F?.displayName||"DropdownMenuSeparator";const re=({className:e,...o})=>a.jsxRuntimeExports.jsx("span",{className:l.cn("ml-auto text-xs tracking-widest opacity-60",e),...o});re.displayName="DropdownMenuShortcut";exports.DropdownMenu=Ie;exports.DropdownMenuCheckboxItem=Z;exports.DropdownMenuContent=V;exports.DropdownMenuGroup=Pe;exports.DropdownMenuItem=Y;exports.DropdownMenuLabel=oe;exports.DropdownMenuPortal=Oe;exports.DropdownMenuRadioGroup=Te;exports.DropdownMenuRadioItem=ee;exports.DropdownMenuSeparator=ne;exports.DropdownMenuShortcut=re;exports.DropdownMenuSub=Ae;exports.DropdownMenuSubContent=Q;exports.DropdownMenuSubTrigger=J;exports.DropdownMenuTrigger=Ce;
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./dropdown-menu-uGMnmGL-.js`);exports.DropdownMenu=e.t,exports.DropdownMenuCheckboxItem=e.n,exports.DropdownMenuContent=e.r,exports.DropdownMenuGroup=e.i,exports.DropdownMenuItem=e.a,exports.DropdownMenuLabel=e.o,exports.DropdownMenuPortal=e.s,exports.DropdownMenuRadioGroup=e.c,exports.DropdownMenuRadioItem=e.l,exports.DropdownMenuSeparator=e.u,exports.DropdownMenuShortcut=e.d,exports.DropdownMenuSub=e.f,exports.DropdownMenuSubContent=e.p,exports.DropdownMenuSubTrigger=e.m,exports.DropdownMenuTrigger=e.h;
|
package/dist/dropdown-menu.mjs
CHANGED
|
@@ -1,317 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import { c as Q } from "./index-DLcqcWxM.mjs";
|
|
6
|
-
import { c as V } from "./index-IZ2gq03c.mjs";
|
|
7
|
-
import { u as v } from "./index-p6xVFRb4.mjs";
|
|
8
|
-
import { S as Y, a as Z, P as ee, C as oe, I as re, b as ne, c as ae, R as te, L as se, d as de, e as D, f as pe, G as ie, g as ue, h as ce, A as le, i as me } from "./index-CVx1AgNG.mjs";
|
|
9
|
-
import { u as M } from "./index-DnFcfnA9.mjs";
|
|
10
|
-
import { ChevronRight as fe, Check as we, Circle as ge } from "lucide-react";
|
|
11
|
-
import { c } from "./utils-DY6fhrgS.mjs";
|
|
12
|
-
var g = "DropdownMenu", [xe] = V(
|
|
13
|
-
g,
|
|
14
|
-
[D]
|
|
15
|
-
), i = D(), [Me, h] = xe(g), b = (e) => {
|
|
16
|
-
const {
|
|
17
|
-
__scopeDropdownMenu: o,
|
|
18
|
-
children: r,
|
|
19
|
-
dir: n,
|
|
20
|
-
open: a,
|
|
21
|
-
defaultOpen: p,
|
|
22
|
-
onOpenChange: u,
|
|
23
|
-
modal: d = !0
|
|
24
|
-
} = e, l = i(o), x = s.useRef(null), [m, f] = v({
|
|
25
|
-
prop: a,
|
|
26
|
-
defaultProp: p ?? !1,
|
|
27
|
-
onChange: u,
|
|
28
|
-
caller: g
|
|
29
|
-
});
|
|
30
|
-
return /* @__PURE__ */ t.jsx(
|
|
31
|
-
Me,
|
|
32
|
-
{
|
|
33
|
-
scope: o,
|
|
34
|
-
triggerId: M(),
|
|
35
|
-
triggerRef: x,
|
|
36
|
-
contentId: M(),
|
|
37
|
-
open: m,
|
|
38
|
-
onOpenChange: f,
|
|
39
|
-
onOpenToggle: s.useCallback(() => f((q) => !q), [f]),
|
|
40
|
-
modal: d,
|
|
41
|
-
children: /* @__PURE__ */ t.jsx(pe, { ...l, open: m, onOpenChange: f, dir: n, modal: d, children: r })
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
b.displayName = g;
|
|
46
|
-
var N = "DropdownMenuTrigger", R = s.forwardRef(
|
|
47
|
-
(e, o) => {
|
|
48
|
-
const { __scopeDropdownMenu: r, disabled: n = !1, ...a } = e, p = h(N, r), u = i(r);
|
|
49
|
-
return /* @__PURE__ */ t.jsx(le, { asChild: !0, ...u, children: /* @__PURE__ */ t.jsx(
|
|
50
|
-
J.button,
|
|
51
|
-
{
|
|
52
|
-
type: "button",
|
|
53
|
-
id: p.triggerId,
|
|
54
|
-
"aria-haspopup": "menu",
|
|
55
|
-
"aria-expanded": p.open,
|
|
56
|
-
"aria-controls": p.open ? p.contentId : void 0,
|
|
57
|
-
"data-state": p.open ? "open" : "closed",
|
|
58
|
-
"data-disabled": n ? "" : void 0,
|
|
59
|
-
disabled: n,
|
|
60
|
-
...a,
|
|
61
|
-
ref: Q(o, p.triggerRef),
|
|
62
|
-
onPointerDown: w(e.onPointerDown, (d) => {
|
|
63
|
-
!n && d.button === 0 && d.ctrlKey === !1 && (p.onOpenToggle(), p.open || d.preventDefault());
|
|
64
|
-
}),
|
|
65
|
-
onKeyDown: w(e.onKeyDown, (d) => {
|
|
66
|
-
n || (["Enter", " "].includes(d.key) && p.onOpenToggle(), d.key === "ArrowDown" && p.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(d.key) && d.preventDefault());
|
|
67
|
-
})
|
|
68
|
-
}
|
|
69
|
-
) });
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
R.displayName = N;
|
|
73
|
-
var ve = "DropdownMenuPortal", y = (e) => {
|
|
74
|
-
const { __scopeDropdownMenu: o, ...r } = e, n = i(o);
|
|
75
|
-
return /* @__PURE__ */ t.jsx(ee, { ...n, ...r });
|
|
76
|
-
};
|
|
77
|
-
y.displayName = ve;
|
|
78
|
-
var _ = "DropdownMenuContent", I = s.forwardRef(
|
|
79
|
-
(e, o) => {
|
|
80
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = h(_, r), p = i(r), u = s.useRef(!1);
|
|
81
|
-
return /* @__PURE__ */ t.jsx(
|
|
82
|
-
oe,
|
|
83
|
-
{
|
|
84
|
-
id: a.contentId,
|
|
85
|
-
"aria-labelledby": a.triggerId,
|
|
86
|
-
...p,
|
|
87
|
-
...n,
|
|
88
|
-
ref: o,
|
|
89
|
-
onCloseAutoFocus: w(e.onCloseAutoFocus, (d) => {
|
|
90
|
-
u.current || a.triggerRef.current?.focus(), u.current = !1, d.preventDefault();
|
|
91
|
-
}),
|
|
92
|
-
onInteractOutside: w(e.onInteractOutside, (d) => {
|
|
93
|
-
const l = d.detail.originalEvent, x = l.button === 0 && l.ctrlKey === !0, m = l.button === 2 || x;
|
|
94
|
-
(!a.modal || m) && (u.current = !0);
|
|
95
|
-
}),
|
|
96
|
-
style: {
|
|
97
|
-
...e.style,
|
|
98
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
99
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
100
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
101
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
102
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
);
|
|
108
|
-
I.displayName = _;
|
|
109
|
-
var De = "DropdownMenuGroup", S = s.forwardRef(
|
|
110
|
-
(e, o) => {
|
|
111
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
112
|
-
return /* @__PURE__ */ t.jsx(ie, { ...a, ...n, ref: o });
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
S.displayName = De;
|
|
116
|
-
var he = "DropdownMenuLabel", C = s.forwardRef(
|
|
117
|
-
(e, o) => {
|
|
118
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
119
|
-
return /* @__PURE__ */ t.jsx(se, { ...a, ...n, ref: o });
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
C.displayName = he;
|
|
123
|
-
var be = "DropdownMenuItem", j = s.forwardRef(
|
|
124
|
-
(e, o) => {
|
|
125
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
126
|
-
return /* @__PURE__ */ t.jsx(re, { ...a, ...n, ref: o });
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
j.displayName = be;
|
|
130
|
-
var Ne = "DropdownMenuCheckboxItem", P = s.forwardRef((e, o) => {
|
|
131
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
132
|
-
return /* @__PURE__ */ t.jsx(ne, { ...a, ...n, ref: o });
|
|
133
|
-
});
|
|
134
|
-
P.displayName = Ne;
|
|
135
|
-
var Re = "DropdownMenuRadioGroup", A = s.forwardRef((e, o) => {
|
|
136
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
137
|
-
return /* @__PURE__ */ t.jsx(ue, { ...a, ...n, ref: o });
|
|
138
|
-
});
|
|
139
|
-
A.displayName = Re;
|
|
140
|
-
var ye = "DropdownMenuRadioItem", E = s.forwardRef((e, o) => {
|
|
141
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
142
|
-
return /* @__PURE__ */ t.jsx(te, { ...a, ...n, ref: o });
|
|
143
|
-
});
|
|
144
|
-
E.displayName = ye;
|
|
145
|
-
var _e = "DropdownMenuItemIndicator", O = s.forwardRef((e, o) => {
|
|
146
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
147
|
-
return /* @__PURE__ */ t.jsx(ae, { ...a, ...n, ref: o });
|
|
148
|
-
});
|
|
149
|
-
O.displayName = _e;
|
|
150
|
-
var Ie = "DropdownMenuSeparator", T = s.forwardRef((e, o) => {
|
|
151
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
152
|
-
return /* @__PURE__ */ t.jsx(de, { ...a, ...n, ref: o });
|
|
153
|
-
});
|
|
154
|
-
T.displayName = Ie;
|
|
155
|
-
var Se = "DropdownMenuArrow", Ce = s.forwardRef(
|
|
156
|
-
(e, o) => {
|
|
157
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
158
|
-
return /* @__PURE__ */ t.jsx(me, { ...a, ...n, ref: o });
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
|
-
Ce.displayName = Se;
|
|
162
|
-
var je = (e) => {
|
|
163
|
-
const { __scopeDropdownMenu: o, children: r, open: n, onOpenChange: a, defaultOpen: p } = e, u = i(o), [d, l] = v({
|
|
164
|
-
prop: n,
|
|
165
|
-
defaultProp: p ?? !1,
|
|
166
|
-
onChange: a,
|
|
167
|
-
caller: "DropdownMenuSub"
|
|
168
|
-
});
|
|
169
|
-
return /* @__PURE__ */ t.jsx(ce, { ...u, open: d, onOpenChange: l, children: r });
|
|
170
|
-
}, Pe = "DropdownMenuSubTrigger", G = s.forwardRef((e, o) => {
|
|
171
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
172
|
-
return /* @__PURE__ */ t.jsx(Y, { ...a, ...n, ref: o });
|
|
173
|
-
});
|
|
174
|
-
G.displayName = Pe;
|
|
175
|
-
var Ae = "DropdownMenuSubContent", k = s.forwardRef((e, o) => {
|
|
176
|
-
const { __scopeDropdownMenu: r, ...n } = e, a = i(r);
|
|
177
|
-
return /* @__PURE__ */ t.jsx(
|
|
178
|
-
Z,
|
|
179
|
-
{
|
|
180
|
-
...a,
|
|
181
|
-
...n,
|
|
182
|
-
ref: o,
|
|
183
|
-
style: {
|
|
184
|
-
...e.style,
|
|
185
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
186
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
187
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
188
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
189
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
);
|
|
193
|
-
});
|
|
194
|
-
k.displayName = Ae;
|
|
195
|
-
var Ee = b, Oe = R, $ = y, L = I, Te = S, z = C, K = j, U = P, Ge = A, B = E, F = O, H = T, ke = je, W = G, X = k;
|
|
196
|
-
const ro = Ee, no = Oe, ao = Te, to = $, so = ke, po = Ge, $e = s.forwardRef(({ className: e, inset: o, children: r, ...n }, a) => /* @__PURE__ */ t.jsxs(
|
|
197
|
-
W,
|
|
198
|
-
{
|
|
199
|
-
ref: a,
|
|
200
|
-
className: c(
|
|
201
|
-
"focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
202
|
-
o && "pl-8",
|
|
203
|
-
e
|
|
204
|
-
),
|
|
205
|
-
...n,
|
|
206
|
-
children: [
|
|
207
|
-
r,
|
|
208
|
-
/* @__PURE__ */ t.jsx(fe, { className: "ml-auto" })
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
));
|
|
212
|
-
$e.displayName = W?.displayName || "DropdownMenuSubTrigger";
|
|
213
|
-
const Le = s.forwardRef(({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx(
|
|
214
|
-
X,
|
|
215
|
-
{
|
|
216
|
-
ref: r,
|
|
217
|
-
className: c(
|
|
218
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
219
|
-
e
|
|
220
|
-
),
|
|
221
|
-
...o
|
|
222
|
-
}
|
|
223
|
-
));
|
|
224
|
-
Le.displayName = X?.displayName || "DropdownMenuSubContent";
|
|
225
|
-
const ze = s.forwardRef(({ className: e, sideOffset: o = 4, ...r }, n) => /* @__PURE__ */ t.jsx($, { children: /* @__PURE__ */ t.jsx(
|
|
226
|
-
L,
|
|
227
|
-
{
|
|
228
|
-
ref: n,
|
|
229
|
-
sideOffset: o,
|
|
230
|
-
className: c(
|
|
231
|
-
"bg-popover text-popover-foreground z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
232
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
233
|
-
e
|
|
234
|
-
),
|
|
235
|
-
...r
|
|
236
|
-
}
|
|
237
|
-
) }));
|
|
238
|
-
ze.displayName = L?.displayName || "DropdownMenuContent";
|
|
239
|
-
const Ke = s.forwardRef(({ className: e, inset: o, ...r }, n) => /* @__PURE__ */ t.jsx(
|
|
240
|
-
K,
|
|
241
|
-
{
|
|
242
|
-
ref: n,
|
|
243
|
-
className: c(
|
|
244
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
245
|
-
o && "pl-8",
|
|
246
|
-
e
|
|
247
|
-
),
|
|
248
|
-
...r
|
|
249
|
-
}
|
|
250
|
-
));
|
|
251
|
-
Ke.displayName = K?.displayName || "DropdownMenuItem";
|
|
252
|
-
const Ue = s.forwardRef(({ className: e, children: o, checked: r, ...n }, a) => /* @__PURE__ */ t.jsxs(
|
|
253
|
-
U,
|
|
254
|
-
{
|
|
255
|
-
ref: a,
|
|
256
|
-
className: c(
|
|
257
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
258
|
-
e
|
|
259
|
-
),
|
|
260
|
-
checked: r,
|
|
261
|
-
...n,
|
|
262
|
-
children: [
|
|
263
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx(we, { className: "h-4 w-4" }) }) }),
|
|
264
|
-
o
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
));
|
|
268
|
-
Ue.displayName = U?.displayName || "DropdownMenuCheckboxItem";
|
|
269
|
-
const Be = s.forwardRef(({ className: e, children: o, ...r }, n) => /* @__PURE__ */ t.jsxs(
|
|
270
|
-
B,
|
|
271
|
-
{
|
|
272
|
-
ref: n,
|
|
273
|
-
className: c(
|
|
274
|
-
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
275
|
-
e
|
|
276
|
-
),
|
|
277
|
-
...r,
|
|
278
|
-
children: [
|
|
279
|
-
/* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx(ge, { className: "h-2 w-2 fill-current" }) }) }),
|
|
280
|
-
o
|
|
281
|
-
]
|
|
282
|
-
}
|
|
283
|
-
));
|
|
284
|
-
Be.displayName = B?.displayName || "DropdownMenuRadioItem";
|
|
285
|
-
const Fe = s.forwardRef(({ className: e, inset: o, ...r }, n) => /* @__PURE__ */ t.jsx(
|
|
286
|
-
z,
|
|
287
|
-
{
|
|
288
|
-
ref: n,
|
|
289
|
-
className: c("px-2 py-1.5 text-sm font-semibold", o && "pl-8", e),
|
|
290
|
-
...r
|
|
291
|
-
}
|
|
292
|
-
));
|
|
293
|
-
Fe.displayName = z?.displayName || "DropdownMenuLabel";
|
|
294
|
-
const He = s.forwardRef(({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx(H, { ref: r, className: c("bg-muted -mx-1 my-1 h-px", e), ...o }));
|
|
295
|
-
He.displayName = H?.displayName || "DropdownMenuSeparator";
|
|
296
|
-
const We = ({
|
|
297
|
-
className: e,
|
|
298
|
-
...o
|
|
299
|
-
}) => /* @__PURE__ */ t.jsx("span", { className: c("ml-auto text-xs tracking-widest opacity-60", e), ...o });
|
|
300
|
-
We.displayName = "DropdownMenuShortcut";
|
|
301
|
-
export {
|
|
302
|
-
ro as DropdownMenu,
|
|
303
|
-
Ue as DropdownMenuCheckboxItem,
|
|
304
|
-
ze as DropdownMenuContent,
|
|
305
|
-
ao as DropdownMenuGroup,
|
|
306
|
-
Ke as DropdownMenuItem,
|
|
307
|
-
Fe as DropdownMenuLabel,
|
|
308
|
-
to as DropdownMenuPortal,
|
|
309
|
-
po as DropdownMenuRadioGroup,
|
|
310
|
-
Be as DropdownMenuRadioItem,
|
|
311
|
-
He as DropdownMenuSeparator,
|
|
312
|
-
We as DropdownMenuShortcut,
|
|
313
|
-
so as DropdownMenuSub,
|
|
314
|
-
Le as DropdownMenuSubContent,
|
|
315
|
-
$e as DropdownMenuSubTrigger,
|
|
316
|
-
no as DropdownMenuTrigger
|
|
317
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-BGkQXJ-r.mjs";
|
|
4
|
+
export { p as DropdownMenu, c as DropdownMenuCheckboxItem, d as DropdownMenuContent, a as DropdownMenuGroup, e as DropdownMenuItem, l as DropdownMenuLabel, f as DropdownMenuPortal, t as DropdownMenuRadioGroup, o as DropdownMenuRadioItem, m as DropdownMenuSeparator, n as DropdownMenuShortcut, r as DropdownMenuSub, u as DropdownMenuSubContent, s as DropdownMenuSubTrigger, i as DropdownMenuTrigger };
|