@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/dist-hBsne-A2.mjs
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B76UOZbx.mjs";
|
|
2
|
-
import { t } from "./dist-COqM3IM6.mjs";
|
|
3
|
-
import { t as n } from "./dist-DKI-XYwI.mjs";
|
|
4
|
-
import { t as r } from "./dist-DhubV_gU.mjs";
|
|
5
|
-
import { a as i } from "./dist-C516Vwxy.mjs";
|
|
6
|
-
import { t as a } from "./dist-B7Ph9-T6.mjs";
|
|
7
|
-
import { t as o } from "./dist-BnlI08Je.mjs";
|
|
8
|
-
import { t as s } from "./dist-Cu0GG-3j.mjs";
|
|
9
|
-
import * as c from "react";
|
|
10
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
11
|
-
// ../../node_modules/.bun/@radix-ui+react-collapsible@1.2.1+2b23df507bdda662/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
12
|
-
var u = Object.defineProperty, d = (e, t) => u(e, "name", {
|
|
13
|
-
value: t,
|
|
14
|
-
configurable: !0
|
|
15
|
-
}), f = "Collapsible", [p, m] = t(f), [h, g] = p(f), _ = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
16
|
-
let { __scopeCollapsible: r, open: i, defaultOpen: o, disabled: u, onOpenChange: d, ...p } = e, [m, g] = n({
|
|
17
|
-
prop: i,
|
|
18
|
-
defaultProp: o ?? !1,
|
|
19
|
-
onChange: d,
|
|
20
|
-
caller: f
|
|
21
|
-
});
|
|
22
|
-
return /* @__PURE__ */ l(h, {
|
|
23
|
-
scope: r,
|
|
24
|
-
disabled: u,
|
|
25
|
-
contentId: s(),
|
|
26
|
-
open: m,
|
|
27
|
-
onOpenToggle: c.useCallback(() => g((e) => !e), [g]),
|
|
28
|
-
children: /* @__PURE__ */ l(a.div, {
|
|
29
|
-
"data-state": C(m),
|
|
30
|
-
"data-disabled": u ? "" : void 0,
|
|
31
|
-
...p,
|
|
32
|
-
ref: t
|
|
33
|
-
})
|
|
34
|
-
});
|
|
35
|
-
}, "Collapsible")), v = "CollapsibleTrigger", y = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(t, n) {
|
|
36
|
-
let { __scopeCollapsible: r, ...i } = t, o = g(v, r);
|
|
37
|
-
return /* @__PURE__ */ l(a.button, {
|
|
38
|
-
type: "button",
|
|
39
|
-
"aria-controls": o.open ? o.contentId : void 0,
|
|
40
|
-
"aria-expanded": o.open || !1,
|
|
41
|
-
"data-state": C(o.open),
|
|
42
|
-
"data-disabled": o.disabled ? "" : void 0,
|
|
43
|
-
disabled: o.disabled,
|
|
44
|
-
...i,
|
|
45
|
-
ref: n,
|
|
46
|
-
onClick: e(t.onClick, o.onOpenToggle)
|
|
47
|
-
});
|
|
48
|
-
}, "CollapsibleTrigger")), b = "CollapsibleContent", x = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
49
|
-
let { forceMount: n, ...r } = e, i = g(b, e.__scopeCollapsible);
|
|
50
|
-
return /* @__PURE__ */ l(o, {
|
|
51
|
-
present: n || i.open,
|
|
52
|
-
children: ({ present: e }) => /* @__PURE__ */ l(S, {
|
|
53
|
-
...r,
|
|
54
|
-
ref: t,
|
|
55
|
-
present: e
|
|
56
|
-
})
|
|
57
|
-
});
|
|
58
|
-
}, "CollapsibleContent")), S = /* @__PURE__ */ c.forwardRef(/* @__PURE__ */ d(function(e, t) {
|
|
59
|
-
let { __scopeCollapsible: n, present: o, children: s, ...u } = e, d = g(b, n), [f, p] = c.useState(o), m = c.useRef(null), h = i(t, m), _ = c.useRef(0), v = _.current, y = c.useRef(0), x = y.current, S = d.open || f, w = c.useRef(S), T = c.useRef(void 0);
|
|
60
|
-
return c.useEffect(() => {
|
|
61
|
-
let e = requestAnimationFrame(() => w.current = !1);
|
|
62
|
-
return () => cancelAnimationFrame(e);
|
|
63
|
-
}, []), r(() => {
|
|
64
|
-
let e = m.current;
|
|
65
|
-
if (e) {
|
|
66
|
-
T.current = T.current || {
|
|
67
|
-
transitionDuration: e.style.transitionDuration,
|
|
68
|
-
animationName: e.style.animationName
|
|
69
|
-
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
70
|
-
let t = e.getBoundingClientRect();
|
|
71
|
-
_.current = t.height, y.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
|
|
72
|
-
}
|
|
73
|
-
}, [d.open, o]), /* @__PURE__ */ l(a.div, {
|
|
74
|
-
"data-state": C(d.open),
|
|
75
|
-
"data-disabled": d.disabled ? "" : void 0,
|
|
76
|
-
id: d.contentId,
|
|
77
|
-
hidden: !S,
|
|
78
|
-
...u,
|
|
79
|
-
ref: h,
|
|
80
|
-
style: {
|
|
81
|
-
"--radix-collapsible-content-height": v ? `${v}px` : void 0,
|
|
82
|
-
"--radix-collapsible-content-width": x ? `${x}px` : void 0,
|
|
83
|
-
...e.style
|
|
84
|
-
},
|
|
85
|
-
children: S && s
|
|
86
|
-
});
|
|
87
|
-
}, "CollapsibleContentImpl"));
|
|
88
|
-
function C(e) {
|
|
89
|
-
return e ? "open" : "closed";
|
|
90
|
-
}
|
|
91
|
-
d(C, "getState");
|
|
92
|
-
export { m as i, x as n, y as r, _ as t };
|
package/dist/dist-ljiGYyay.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-B7Ph9-T6.mjs";
|
|
2
|
-
import * as t from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
// ../../node_modules/.bun/@radix-ui+react-visually-hidden@1.2.13+2b23df507bdda662/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
5
|
-
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
6
|
-
value: t,
|
|
7
|
-
configurable: !0
|
|
8
|
-
}), a = Object.freeze({
|
|
9
|
-
position: "absolute",
|
|
10
|
-
border: 0,
|
|
11
|
-
width: 1,
|
|
12
|
-
height: 1,
|
|
13
|
-
padding: 0,
|
|
14
|
-
margin: -1,
|
|
15
|
-
overflow: "hidden",
|
|
16
|
-
clip: "rect(0, 0, 0, 0)",
|
|
17
|
-
whiteSpace: "nowrap",
|
|
18
|
-
wordWrap: "normal"
|
|
19
|
-
}), o = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ i(function(t, r) {
|
|
20
|
-
return /* @__PURE__ */ n(e.span, {
|
|
21
|
-
...t,
|
|
22
|
-
ref: r,
|
|
23
|
-
style: {
|
|
24
|
-
...a,
|
|
25
|
-
...t.style
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}, "VisuallyHidden"));
|
|
29
|
-
export { o as n, a as t };
|
package/dist/dist-pqMcQ1Nk.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-B7jnFMko.js");let n=require("react"),r=e.r(n,1);n=e.r(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useInsertionEffect;function s(e){let n=r.useRef(e);return typeof o==`function`?o(()=>{n.current=e}):t.t(()=>{n.current=e}),r.useMemo(()=>((...e)=>n.current?.(...e)),[])}a(s,`useCallbackRef`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/dist-zmnQp5Xf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-B7jnFMko.js");let n=require("react"),r=e.r(n,1);n=e.r(n);var i=Object.defineProperty,a=(e,t)=>i(e,`name`,{value:t,configurable:!0}),o=r.useEffectEvent,s=r.useInsertionEffect;function c(e){if(typeof o==`function`)return o(e);let n=r.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof s==`function`?s(()=>{n.current=e}):t.t(()=>{n.current=e}),r.useMemo(()=>((...e)=>n.current?.(...e)),[])}a(c,`useEffectEvent`);var l=Object.defineProperty,u=(e,t)=>l(e,`name`,{value:t,configurable:!0}),d=r.useInsertionEffect||t.t;function f({prop:e,defaultProp:t,onChange:n=u(()=>{},`onChange`),caller:i}){let[a,o,s]=p({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:a,r.useCallback(t=>{if(c){let n=m(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}u(f,`useControllableState`);function p({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),a=r.useRef(n),o=r.useRef(t);return d(()=>{o.current=t},[t]),r.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,i,o]}u(p,`useUncontrolledState`);function m(e){return typeof e==`function`}u(m,`isFunction`);var h=Symbol(`RADIX:SYNC_STATE`);function g(e,t,n,i){let{prop:a,defaultProp:o,onChange:s,caller:l}=t,u=a!==void 0,d=c(s),f=[{...n,state:o}];i&&f.push(i);let[p,m]=r.useReducer((t,n)=>{if(n.type===h)return{...t,state:n.state};let r=e(t,n);return u&&!Object.is(r.state,t.state)&&d(r.state),r},...f),g=p.state,_=r.useRef(g);r.useEffect(()=>{_.current!==g&&(_.current=g,u||d(g))},[g,_,u]);let v=r.useMemo(()=>a===void 0?p:{...p,state:a},[p,a]);return r.useEffect(()=>{u&&!Object.is(a,p.state)&&m({type:h,state:a})},[a,p.state,u]),[v,m]}u(g,`useControllableStateReducer`),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-DZiOPWLp.js"),r=require("./dist-CJqVmdrU.js"),i=require("./dist-DW2ltK5-.js"),a=require("./dist-zmnQp5Xf.js"),o=require("./dist-CBlqVBTk.js"),s=require("./dist-CF-qVmmV.js"),c=require("./dist-RXrZgzkO.js");let l=require("lucide-react"),u=require("react"),d=e.r(u,1);u=e.r(u);let f=require("react/jsx-runtime");var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h=`DropdownMenu`,[g,_]=i.t(h,[s.g]),v=s.g(),[y,b]=g(h),x=m(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,p=v(t),m=d.useRef(null),[g,_]=a.t({prop:i,defaultProp:o??!1,onChange:l,caller:h});return(0,f.jsx)(y,{scope:t,triggerId:c.t(),triggerRef:m,contentId:c.t(),open:g,onOpenChange:_,onOpenToggle:d.useCallback(()=>_(e=>!e),[_]),modal:u,children:(0,f.jsx)(s.t,{...p,open:g,onOpenChange:_,dir:r,modal:u,children:n})})},`DropdownMenu`),S=`DropdownMenuTrigger`,C=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:i,disabled:a=!1,...c}=e,l=b(S,i),u=v(i),d=r.a(t,l.triggerRef);return(0,f.jsx)(s.n,{asChild:!0,...u,children:(0,f.jsx)(o.t.button,{type:`button`,id:l.triggerId,"aria-haspopup":`menu`,"aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?`open`:`closed`,"data-disabled":a?``:void 0,disabled:a,...c,ref:d,onPointerDown:n.t(e.onPointerDown,e=>{!a&&e.button===0&&e.ctrlKey===!1&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:n.t(e.onKeyDown,e=>{a||([`Enter`,` `].includes(e.key)&&l.onOpenToggle(),e.key===`ArrowDown`&&l.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),w=m(e=>{let{__scopeDropdownMenu:t,...n}=e,r=v(t);return(0,f.jsx)(s.l,{...r,...n})},`DropdownMenuPortal`),T=`DropdownMenuContent`,E=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:r,...i}=e,a=b(T,r),o=v(r),c=d.useRef(!1);return(0,f.jsx)(s.i,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:t,onCloseAutoFocus:n.t(e.onCloseAutoFocus,e=>{c.current||a.triggerRef.current?.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:n.t(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)`}})},`DropdownMenuContent`)),D=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.a,{...i,...r,ref:t})},`DropdownMenuGroup`)),O=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.c,{...i,...r,ref:t})},`DropdownMenuLabel`)),k=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.o,{...i,...r,ref:t})},`DropdownMenuItem`)),A=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.r,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),j=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.u,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),M=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.d,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),N=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.s,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),P=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.f,{...i,...r,ref:t})},`DropdownMenuSeparator`)),F=m(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:o}=e,c=v(t),[l,u]=a.t({prop:r,defaultProp:o??!1,onChange:i,caller:`DropdownMenuSub`});return(0,f.jsx)(s.p,{...c,open:l,onOpenChange:u,children:n})},`DropdownMenuSub`),I=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.h,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),L=d.forwardRef(m(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=v(n);return(0,f.jsx)(s.m,{...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)`}})},`DropdownMenuSubContent`));function R({...e}){return(0,f.jsx)(x,{"data-slot":`dropdown-menu`,...e})}function z({...e}){return(0,f.jsx)(w,{"data-slot":`dropdown-menu-portal`,...e})}function B({...e}){return(0,f.jsx)(C,{"data-slot":`dropdown-menu-trigger`,...e})}function V({className:e,align:n=`start`,sideOffset:r=4,...i}){return(0,f.jsx)(w,{children:(0,f.jsx)(E,{"data-slot":`dropdown-menu-content`,sideOffset:r,align:n,className:t.t(`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-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 data-[state=closed]:overflow-hidden`,e),...i})})}function H({...e}){return(0,f.jsx)(D,{"data-slot":`dropdown-menu-group`,...e})}function U({className:e,inset:n,variant:r=`default`,...i}){return(0,f.jsx)(k,{"data-slot":`dropdown-menu-item`,"data-inset":n,"data-variant":r,className:t.t(`group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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 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),...i})}function W({className:e,children:n,checked:r,inset:i,...a}){return(0,f.jsxs)(A,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":i,className:t.t(`focus:bg-accent focus:text-accent-foreground 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:r,...a,children:[(0,f.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,f.jsx)(N,{children:(0,f.jsx)(l.CheckIcon,{})})}),n]})}function G({...e}){return(0,f.jsx)(j,{"data-slot":`dropdown-menu-radio-group`,...e})}function K({className:e,children:n,inset:r,...i}){return(0,f.jsxs)(M,{"data-slot":`dropdown-menu-radio-item`,"data-inset":r,className:t.t(`focus:bg-accent focus:text-accent-foreground 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),...i,children:[(0,f.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex items-center justify-center`,"data-slot":`dropdown-menu-radio-item-indicator`,children:(0,f.jsx)(N,{children:(0,f.jsx)(l.CheckIcon,{})})}),n]})}function q({className:e,inset:n,...r}){return(0,f.jsx)(O,{"data-slot":`dropdown-menu-label`,"data-inset":n,className:t.t(`text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7`,e),...r})}function J({className:e,...n}){return(0,f.jsx)(P,{"data-slot":`dropdown-menu-separator`,className:t.t(`bg-border -mx-1 my-1 h-px`,e),...n})}function Y({className:e,...n}){return(0,f.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:t.t(`text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest`,e),...n})}function X({...e}){return(0,f.jsx)(F,{"data-slot":`dropdown-menu-sub`,...e})}function Z({className:e,inset:n,children:r,...i}){return(0,f.jsxs)(I,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":n,className:t.t(`focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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),...i,children:[r,(0,f.jsx)(l.ChevronRightIcon,{className:`ms-auto rtl:rotate-180`})]})}function Q({className:e,...n}){return(0,f.jsx)(L,{"data-slot":`dropdown-menu-sub-content`,className:t.t(`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 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100`,e),...n})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return J}});
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
-
import { t } from "./dist-B76UOZbx.mjs";
|
|
3
|
-
import { a as n } from "./dist-C516Vwxy.mjs";
|
|
4
|
-
import { t as r } from "./dist-COqM3IM6.mjs";
|
|
5
|
-
import { t as i } from "./dist-DKI-XYwI.mjs";
|
|
6
|
-
import { t as a } from "./dist-B7Ph9-T6.mjs";
|
|
7
|
-
import { a as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x } from "./dist-fzmUl3YX.mjs";
|
|
8
|
-
import { t as S } from "./dist-Cu0GG-3j.mjs";
|
|
9
|
-
import { CheckIcon as C, ChevronRightIcon as ee } from "lucide-react";
|
|
10
|
-
import * as w from "react";
|
|
11
|
-
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
12
|
-
// ../../node_modules/.bun/@radix-ui+react-dropdown-menu@2.2.1+2b23df507bdda662/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
13
|
-
var D = Object.defineProperty, O = (e, t) => D(e, "name", {
|
|
14
|
-
value: t,
|
|
15
|
-
configurable: !0
|
|
16
|
-
}), k = "DropdownMenu", [A, te] = r(k, [u]), j = u(), [M, N] = A(k), P = /* @__PURE__ */ O((e) => {
|
|
17
|
-
let { __scopeDropdownMenu: t, children: n, dir: r, open: a, defaultOpen: o, onOpenChange: s, modal: c = !0 } = e, l = j(t), u = w.useRef(null), [d, f] = i({
|
|
18
|
-
prop: a,
|
|
19
|
-
defaultProp: o ?? !1,
|
|
20
|
-
onChange: s,
|
|
21
|
-
caller: k
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ T(M, {
|
|
24
|
-
scope: t,
|
|
25
|
-
triggerId: S(),
|
|
26
|
-
triggerRef: u,
|
|
27
|
-
contentId: S(),
|
|
28
|
-
open: d,
|
|
29
|
-
onOpenChange: f,
|
|
30
|
-
onOpenToggle: w.useCallback(() => f((e) => !e), [f]),
|
|
31
|
-
modal: c,
|
|
32
|
-
children: /* @__PURE__ */ T(b, {
|
|
33
|
-
...l,
|
|
34
|
-
open: d,
|
|
35
|
-
onOpenChange: f,
|
|
36
|
-
dir: r,
|
|
37
|
-
modal: c,
|
|
38
|
-
children: n
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}, "DropdownMenu"), F = "DropdownMenuTrigger", I = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, r) {
|
|
42
|
-
let { __scopeDropdownMenu: i, disabled: o = !1, ...s } = e, c = N(F, i), l = j(i), u = n(r, c.triggerRef);
|
|
43
|
-
return /* @__PURE__ */ T(h, {
|
|
44
|
-
asChild: !0,
|
|
45
|
-
...l,
|
|
46
|
-
children: /* @__PURE__ */ T(a.button, {
|
|
47
|
-
type: "button",
|
|
48
|
-
id: c.triggerId,
|
|
49
|
-
"aria-haspopup": "menu",
|
|
50
|
-
"aria-expanded": c.open,
|
|
51
|
-
"aria-controls": c.open ? c.contentId : void 0,
|
|
52
|
-
"data-state": c.open ? "open" : "closed",
|
|
53
|
-
"data-disabled": o ? "" : void 0,
|
|
54
|
-
disabled: o,
|
|
55
|
-
...s,
|
|
56
|
-
ref: u,
|
|
57
|
-
onPointerDown: t(e.onPointerDown, (e) => {
|
|
58
|
-
!o && e.button === 0 && e.ctrlKey === !1 && (c.onOpenToggle(), c.open || e.preventDefault());
|
|
59
|
-
}),
|
|
60
|
-
onKeyDown: t(e.onKeyDown, (e) => {
|
|
61
|
-
o || (["Enter", " "].includes(e.key) && c.onOpenToggle(), e.key === "ArrowDown" && c.onOpenChange(!0), [
|
|
62
|
-
"Enter",
|
|
63
|
-
" ",
|
|
64
|
-
"ArrowDown"
|
|
65
|
-
].includes(e.key) && e.preventDefault());
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
}, "DropdownMenuTrigger")), L = /* @__PURE__ */ O((e) => {
|
|
70
|
-
let { __scopeDropdownMenu: t, ...n } = e, r = j(t);
|
|
71
|
-
return /* @__PURE__ */ T(p, {
|
|
72
|
-
...r,
|
|
73
|
-
...n
|
|
74
|
-
});
|
|
75
|
-
}, "DropdownMenuPortal"), R = "DropdownMenuContent", z = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, n) {
|
|
76
|
-
let { __scopeDropdownMenu: r, ...i } = e, a = N(R, r), o = j(r), s = w.useRef(!1);
|
|
77
|
-
return /* @__PURE__ */ T(f, {
|
|
78
|
-
id: a.contentId,
|
|
79
|
-
"aria-labelledby": a.triggerId,
|
|
80
|
-
...o,
|
|
81
|
-
...i,
|
|
82
|
-
ref: n,
|
|
83
|
-
onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
|
|
84
|
-
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
85
|
-
}),
|
|
86
|
-
onInteractOutside: t(e.onInteractOutside, (e) => {
|
|
87
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
88
|
-
(!a.modal || r) && (s.current = !0);
|
|
89
|
-
}),
|
|
90
|
-
style: {
|
|
91
|
-
...e.style,
|
|
92
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
93
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
94
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
95
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
96
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}, "DropdownMenuContent")), B = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
100
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
101
|
-
return /* @__PURE__ */ T(o, {
|
|
102
|
-
...i,
|
|
103
|
-
...r,
|
|
104
|
-
ref: t
|
|
105
|
-
});
|
|
106
|
-
}, "DropdownMenuGroup")), V = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
107
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
108
|
-
return /* @__PURE__ */ T(s, {
|
|
109
|
-
...i,
|
|
110
|
-
...r,
|
|
111
|
-
ref: t
|
|
112
|
-
});
|
|
113
|
-
}, "DropdownMenuLabel")), H = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
114
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
115
|
-
return /* @__PURE__ */ T(g, {
|
|
116
|
-
...i,
|
|
117
|
-
...r,
|
|
118
|
-
ref: t
|
|
119
|
-
});
|
|
120
|
-
}, "DropdownMenuItem")), ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
121
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
122
|
-
return /* @__PURE__ */ T(v, {
|
|
123
|
-
...i,
|
|
124
|
-
...r,
|
|
125
|
-
ref: t
|
|
126
|
-
});
|
|
127
|
-
}, "DropdownMenuCheckboxItem")), U = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
128
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
129
|
-
return /* @__PURE__ */ T(x, {
|
|
130
|
-
...i,
|
|
131
|
-
...r,
|
|
132
|
-
ref: t
|
|
133
|
-
});
|
|
134
|
-
}, "DropdownMenuRadioGroup")), W = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
135
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
136
|
-
return /* @__PURE__ */ T(c, {
|
|
137
|
-
...i,
|
|
138
|
-
...r,
|
|
139
|
-
ref: t
|
|
140
|
-
});
|
|
141
|
-
}, "DropdownMenuRadioItem")), G = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
142
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
143
|
-
return /* @__PURE__ */ T(y, {
|
|
144
|
-
...i,
|
|
145
|
-
...r,
|
|
146
|
-
ref: t
|
|
147
|
-
});
|
|
148
|
-
}, "DropdownMenuItemIndicator")), K = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
149
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
150
|
-
return /* @__PURE__ */ T(l, {
|
|
151
|
-
...i,
|
|
152
|
-
...r,
|
|
153
|
-
ref: t
|
|
154
|
-
});
|
|
155
|
-
}, "DropdownMenuSeparator")), q = /* @__PURE__ */ O((e) => {
|
|
156
|
-
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: o } = e, s = j(t), [c, l] = i({
|
|
157
|
-
prop: r,
|
|
158
|
-
defaultProp: o ?? !1,
|
|
159
|
-
onChange: a,
|
|
160
|
-
caller: "DropdownMenuSub"
|
|
161
|
-
});
|
|
162
|
-
return /* @__PURE__ */ T(_, {
|
|
163
|
-
...s,
|
|
164
|
-
open: c,
|
|
165
|
-
onOpenChange: l,
|
|
166
|
-
children: n
|
|
167
|
-
});
|
|
168
|
-
}, "DropdownMenuSub"), J = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
169
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
170
|
-
return /* @__PURE__ */ T(d, {
|
|
171
|
-
...i,
|
|
172
|
-
...r,
|
|
173
|
-
ref: t
|
|
174
|
-
});
|
|
175
|
-
}, "DropdownMenuSubTrigger")), Y = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ O(function(e, t) {
|
|
176
|
-
let { __scopeDropdownMenu: n, ...r } = e, i = j(n);
|
|
177
|
-
return /* @__PURE__ */ T(m, {
|
|
178
|
-
...i,
|
|
179
|
-
...r,
|
|
180
|
-
ref: t,
|
|
181
|
-
style: {
|
|
182
|
-
...e.style,
|
|
183
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
184
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
185
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
186
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
187
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}, "DropdownMenuSubContent"));
|
|
191
|
-
// src/dropdown-menu.tsx
|
|
192
|
-
function X({ ...e }) {
|
|
193
|
-
return /* @__PURE__ */ T(P, {
|
|
194
|
-
"data-slot": "dropdown-menu",
|
|
195
|
-
...e
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
function Z({ ...e }) {
|
|
199
|
-
return /* @__PURE__ */ T(L, {
|
|
200
|
-
"data-slot": "dropdown-menu-portal",
|
|
201
|
-
...e
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
function Q({ ...e }) {
|
|
205
|
-
return /* @__PURE__ */ T(I, {
|
|
206
|
-
"data-slot": "dropdown-menu-trigger",
|
|
207
|
-
...e
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
function re({ className: t, align: n = "start", sideOffset: r = 4, ...i }) {
|
|
211
|
-
return /* @__PURE__ */ T(L, { children: /* @__PURE__ */ T(z, {
|
|
212
|
-
"data-slot": "dropdown-menu-content",
|
|
213
|
-
sideOffset: r,
|
|
214
|
-
align: n,
|
|
215
|
-
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-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 data-[state=closed]:overflow-hidden", t),
|
|
216
|
-
...i
|
|
217
|
-
}) });
|
|
218
|
-
}
|
|
219
|
-
function ie({ ...e }) {
|
|
220
|
-
return /* @__PURE__ */ T(B, {
|
|
221
|
-
"data-slot": "dropdown-menu-group",
|
|
222
|
-
...e
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function ae({ className: t, inset: n, variant: r = "default", ...i }) {
|
|
226
|
-
return /* @__PURE__ */ T(H, {
|
|
227
|
-
"data-slot": "dropdown-menu-item",
|
|
228
|
-
"data-inset": n,
|
|
229
|
-
"data-variant": r,
|
|
230
|
-
className: e("group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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 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),
|
|
231
|
-
...i
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
function oe({ className: t, children: n, checked: r, inset: i, ...a }) {
|
|
235
|
-
return /* @__PURE__ */ E(ne, {
|
|
236
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
237
|
-
"data-inset": i,
|
|
238
|
-
className: e("focus:bg-accent focus:text-accent-foreground 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", t),
|
|
239
|
-
checked: r,
|
|
240
|
-
...a,
|
|
241
|
-
children: [/* @__PURE__ */ T("span", {
|
|
242
|
-
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
243
|
-
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
244
|
-
children: /* @__PURE__ */ T(G, { children: /* @__PURE__ */ T(C, {}) })
|
|
245
|
-
}), n]
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
function $({ ...e }) {
|
|
249
|
-
return /* @__PURE__ */ T(U, {
|
|
250
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
251
|
-
...e
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function se({ className: t, children: n, inset: r, ...i }) {
|
|
255
|
-
return /* @__PURE__ */ E(W, {
|
|
256
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
257
|
-
"data-inset": r,
|
|
258
|
-
className: e("focus:bg-accent focus:text-accent-foreground 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", t),
|
|
259
|
-
...i,
|
|
260
|
-
children: [/* @__PURE__ */ T("span", {
|
|
261
|
-
className: "pointer-events-none absolute end-2 flex items-center justify-center",
|
|
262
|
-
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
263
|
-
children: /* @__PURE__ */ T(G, { children: /* @__PURE__ */ T(C, {}) })
|
|
264
|
-
}), n]
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
function ce({ className: t, inset: n, ...r }) {
|
|
268
|
-
return /* @__PURE__ */ T(V, {
|
|
269
|
-
"data-slot": "dropdown-menu-label",
|
|
270
|
-
"data-inset": n,
|
|
271
|
-
className: e("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:ps-7", t),
|
|
272
|
-
...r
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
function le({ className: t, ...n }) {
|
|
276
|
-
return /* @__PURE__ */ T(K, {
|
|
277
|
-
"data-slot": "dropdown-menu-separator",
|
|
278
|
-
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
279
|
-
...n
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
function ue({ className: t, ...n }) {
|
|
283
|
-
return /* @__PURE__ */ T("span", {
|
|
284
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
285
|
-
className: e("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest", t),
|
|
286
|
-
...n
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
function de({ ...e }) {
|
|
290
|
-
return /* @__PURE__ */ T(q, {
|
|
291
|
-
"data-slot": "dropdown-menu-sub",
|
|
292
|
-
...e
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function fe({ className: t, inset: n, children: r, ...i }) {
|
|
296
|
-
return /* @__PURE__ */ E(J, {
|
|
297
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
298
|
-
"data-inset": n,
|
|
299
|
-
className: e("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]: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),
|
|
300
|
-
...i,
|
|
301
|
-
children: [r, /* @__PURE__ */ T(ee, { className: "ms-auto rtl:rotate-180" })]
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
function pe({ className: t, ...n }) {
|
|
305
|
-
return /* @__PURE__ */ T(Y, {
|
|
306
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
307
|
-
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 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100", t),
|
|
308
|
-
...n
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
export { ae as a, $ as c, ue as d, de as f, Q as h, ie as i, se as l, fe as m, oe as n, ce as o, pe as p, re as r, Z as s, X as t, le as u };
|