@orchidui/dashboard 1.8.1-95 → 1.8.1-96
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/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +295 -0
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +891 -0
- package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +68 -0
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +172 -0
- package/dist/CollapsibleTrigger-fCarY5DJ.js +154 -0
- package/dist/Collection-COudIl-A.js +55 -0
- package/dist/ConfigProvider-7mV0D7Sp.js +6 -0
- package/dist/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +68 -0
- package/dist/DialogOverlay-Cj3UTjZ8.js +309 -0
- package/dist/DialogPortal-zAvO8zt4.js +23 -0
- package/dist/DialogTrigger-BIF1A4hk.js +72 -0
- package/dist/DismissableLayer-C7IJliOb.js +151 -0
- package/dist/FocusScope--pJ6bboI.js +121 -0
- package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +92 -0
- package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +27 -0
- package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +51 -0
- package/dist/ListboxItem-CjMk-mEX.js +417 -0
- package/dist/MenuSubTrigger-CUrxnPwO.js +845 -0
- package/dist/{OcCard-D3be6IMj.js → OcCard-B3SCzVwn.js} +54 -58
- package/dist/{OcLottieAnimation-0mdksHMn.js → OcLottieAnimation-DeMoIDaX.js} +1 -1
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +394 -0
- package/dist/PopperContent-BT3Svcc3.js +1465 -0
- package/dist/Presence-CxfTrw6l.js +133 -0
- package/dist/Primitive-B3twiLO1.js +44 -0
- package/dist/{QuillEditor-DRwC0sgJ.js → QuillEditor-hFQ0MJZO.js} +556 -579
- package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +297 -0
- package/dist/RovingFocusGroup-0OHdFQl0.js +92 -0
- package/dist/RovingFocusItem-s7Ug6oxb.js +82 -0
- package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +1255 -0
- package/dist/Separator-DRam5i7g.js +54 -0
- package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +27 -0
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +17 -0
- package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +135 -0
- package/dist/Teleport-DnUewq5H.js +25 -0
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +27 -0
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +426 -0
- package/dist/VisuallyHidden-DMAU4heD.js +41 -0
- package/dist/VisuallyHiddenInput-DvJnsVHt.js +59 -0
- package/dist/_commonjsHelpers-B4e78b8K.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/array-CqVTtuYm.js +6 -0
- package/dist/arrays-4jDZqbdb.js +20 -0
- package/dist/check-C2tzJ0Gk.js +11 -0
- package/dist/chevron-down-CnpAlizg.js +13 -0
- package/dist/chevron-left-BOwFasou.js +13 -0
- package/dist/chevron-right-D308801z.js +13 -0
- package/dist/circle-A-6NpYiX.js +13 -0
- package/dist/clamp-BL1Rb24G.js +22 -0
- package/dist/constant-CuDQlTIy.js +3433 -0
- package/dist/createContext-CZEfaSVa.js +17 -0
- package/dist/createLucideIcon-eXqDwUWj.js +71 -0
- package/dist/ellipsis-CEG9G7eN.js +15 -0
- package/dist/getActiveElement-B-HWdUIb.js +11 -0
- package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +11 -0
- package/dist/index-B3LW8uSH.js +133 -0
- package/dist/index-BIlpXuWX.js +3430 -0
- package/dist/index-BlGEiPHj.js +1246 -0
- package/dist/index-BwPb_idr.js +574 -0
- package/dist/index-C9julNQm.js +173 -0
- package/dist/index-C_aI-Wfj.js +34 -0
- package/dist/index-CumjCvqB.js +5703 -0
- package/dist/index-LqWMCtOd.js +809 -0
- package/dist/index-OpE2oGce.js +110 -0
- package/dist/index.js +3 -3
- package/dist/isValueEqualOrExist-BDSMUv8t.js +8 -0
- package/dist/lib/utils.js +5 -0
- package/dist/nullish-CjWwlQS3.js +6 -0
- package/dist/ohash.D__AXeF1-DX2n0b2C.js +106 -0
- package/dist/plus-CgluTYQY.js +14 -0
- package/dist/text-zwICaAnx.js +743 -0
- package/dist/ui/accordion/index.js +7 -0
- package/dist/ui/alert/index.js +64 -0
- package/dist/ui/alert-dialog/index.js +356 -0
- package/dist/ui/aspect-ratio/index.js +50 -0
- package/dist/ui/auto-form/constant.js +5 -0
- package/dist/ui/auto-form/dependencies.js +61 -0
- package/dist/ui/auto-form/index.js +227 -0
- package/dist/ui/auto-form/interface.js +4 -0
- package/dist/ui/auto-form/utils.js +89 -0
- package/dist/ui/avatar/index.js +189 -0
- package/dist/ui/badge/index.js +37 -0
- package/dist/ui/breadcrumb/index.js +126 -0
- package/dist/ui/button/index.js +55 -0
- package/dist/ui/calendar/index.js +15 -0
- package/dist/ui/card/index.js +38 -0
- package/dist/ui/carousel/index.js +174 -0
- package/dist/ui/carousel/interface.js +1 -0
- package/dist/ui/carousel/useCarousel.js +1288 -0
- package/dist/ui/chart/index.js +8 -0
- package/dist/ui/chart/interface.js +1 -0
- package/dist/ui/chart-area/index.js +331 -0
- package/dist/ui/chart-bar/index.js +490 -0
- package/dist/ui/chart-donut/index.js +509 -0
- package/dist/ui/chart-line/index.js +110 -0
- package/dist/ui/checkbox/index.js +4 -0
- package/dist/ui/collapsible/index.js +60 -0
- package/dist/ui/combobox/index.js +877 -0
- package/dist/ui/command/index.js +323 -0
- package/dist/ui/context-menu/index.js +734 -0
- package/dist/ui/dialog/index.js +169 -0
- package/dist/ui/drawer/index.js +971 -0
- package/dist/ui/dropdown-menu/index.js +723 -0
- package/dist/ui/form/index.js +13 -0
- package/dist/ui/form/injectionKeys.js +4 -0
- package/dist/ui/form/useFormField.js +25 -0
- package/dist/ui/hover-card/index.js +331 -0
- package/dist/ui/input/index.js +4 -0
- package/dist/ui/label/index.js +4 -0
- package/dist/ui/menubar/index.js +862 -0
- package/dist/ui/navigation-menu/index.js +873 -0
- package/dist/ui/number-field/index.js +682 -0
- package/dist/ui/pagination/index.js +444 -0
- package/dist/ui/pin-input/index.js +308 -0
- package/dist/ui/popover/index.js +6 -0
- package/dist/ui/progress/index.js +137 -0
- package/dist/ui/radio-group/index.js +5 -0
- package/dist/ui/range-calendar/index.js +986 -0
- package/dist/ui/resizable/index.js +1432 -0
- package/dist/ui/scroll-area/index.js +775 -0
- package/dist/ui/select/index.js +135 -0
- package/dist/ui/separator/index.js +4 -0
- package/dist/ui/sheet/index.js +188 -0
- package/dist/ui/sidebar/index.js +652 -0
- package/dist/ui/sidebar/utils.js +12 -0
- package/dist/ui/skeleton/index.js +4 -0
- package/dist/ui/slider/index.js +478 -0
- package/dist/ui/sonner/index.js +892 -0
- package/dist/ui/stepper/index.js +442 -0
- package/dist/ui/switch/index.js +4 -0
- package/dist/ui/table/index.js +153 -0
- package/dist/ui/tabs/index.js +280 -0
- package/dist/ui/tags-input/index.js +449 -0
- package/dist/ui/textarea/index.js +4 -0
- package/dist/ui/toast/index.js +738 -0
- package/dist/ui/toast/use-toast.js +85 -0
- package/dist/ui/toggle/index.js +6 -0
- package/dist/ui/toggle-group/index.js +112 -0
- package/dist/ui/tooltip/index.js +29 -0
- package/dist/useArrowNavigation-BRMPveaB.js +49 -0
- package/dist/useBodyScrollLock-CazCRZjZ.js +153 -0
- package/dist/useDirection-C3C_TLKm.js +14 -0
- package/dist/useFocusGuards-CyjC9cG9.js +26 -0
- package/dist/useFormControl-CFVC51Lp.js +11 -0
- package/dist/useForwardExpose-DZT6mL_U.js +37 -0
- package/dist/useForwardPropsEmits-0XKBv1pB.js +33 -0
- package/dist/useGraceArea-D7-GP1ii.js +137 -0
- package/dist/useId-reAg216X.js +13 -0
- package/dist/useKbd-BJNupnml.js +41 -0
- package/dist/useLocale-BfU0LC8Z.js +14 -0
- package/dist/useNonce-C1ZOgOp5.js +14 -0
- package/dist/usePrimitiveElement-BjwUvHih.js +15 -0
- package/dist/useSingleOrMultipleValue-BkTAaaJB.js +43 -0
- package/dist/useSize-BnyQ8FZF.js +37 -0
- package/dist/useTypeahead-oSidjyFF.js +40 -0
- package/dist/utils-DKNaYMZh.js +57 -0
- package/dist/utils-Dx9la83v.js +35 -0
- package/dist/utils-DxQ_ywGa.js +55 -0
- package/dist/utils-SFgRDk1R.js +2748 -0
- package/dist/utils-W-UiqiPE.js +1869 -0
- package/dist/vee-validate-Cf8JDJ_k.js +2232 -0
- package/dist/x-Cl6YllUK.js +14 -0
- package/package.json +264 -2
|
@@ -0,0 +1,862 @@
|
|
|
1
|
+
import { defineComponent as u, createBlock as p, openBlock as d, unref as e, normalizeProps as v, guardReactiveProps as M, withCtx as i, renderSlot as c, ref as V, toRefs as X, createVNode as B, computed as E, watch as Y, mergeProps as $, withKeys as D, isRef as Z, onMounted as ee, createElementVNode as L, normalizeClass as G, createElementBlock as te } from "vue";
|
|
2
|
+
import { c as w } from "../../utils-SFgRDk1R.js";
|
|
3
|
+
import { b as T, u as C, a as I } from "../../useForwardPropsEmits-0XKBv1pB.js";
|
|
4
|
+
import { u as U } from "../../index-BwPb_idr.js";
|
|
5
|
+
import { u as F } from "../../Collection-COudIl-A.js";
|
|
6
|
+
import { c as N } from "../../createContext-CZEfaSVa.js";
|
|
7
|
+
import { u as h } from "../../useForwardExpose-DZT6mL_U.js";
|
|
8
|
+
import { u as ae } from "../../useDirection-C3C_TLKm.js";
|
|
9
|
+
import { _ as oe } from "../../RovingFocusGroup-0OHdFQl0.js";
|
|
10
|
+
import { P as W } from "../../Primitive-B3twiLO1.js";
|
|
11
|
+
import { r as O } from "../../index-OpE2oGce.js";
|
|
12
|
+
import { _ as se, a as ne, b as re, c as le, d as ie, e as ue, f as de, g as pe, h as ce, i as fe, j as me, k as _e, l as be, m as ge, n as ye } from "../../MenuSubTrigger-CUrxnPwO.js";
|
|
13
|
+
import { C as he } from "../../check-C2tzJ0Gk.js";
|
|
14
|
+
import { w as q } from "../../useTypeahead-oSidjyFF.js";
|
|
15
|
+
import { u as H } from "../../useId-reAg216X.js";
|
|
16
|
+
import { C as ve } from "../../circle-A-6NpYiX.js";
|
|
17
|
+
import { C as Me } from "../../chevron-right-D308801z.js";
|
|
18
|
+
import { _ as Be } from "../../RovingFocusItem-s7Ug6oxb.js";
|
|
19
|
+
const $e = /* @__PURE__ */ u({
|
|
20
|
+
__name: "MenubarCheckboxItem",
|
|
21
|
+
props: {
|
|
22
|
+
modelValue: { type: [Boolean, String] },
|
|
23
|
+
disabled: { type: Boolean },
|
|
24
|
+
textValue: {},
|
|
25
|
+
asChild: { type: Boolean },
|
|
26
|
+
as: {}
|
|
27
|
+
},
|
|
28
|
+
emits: ["select", "update:modelValue"],
|
|
29
|
+
setup(o, { emit: a }) {
|
|
30
|
+
const t = o, r = T(a);
|
|
31
|
+
return h(), (l, s) => (d(), p(e(se), v(M({ ...t, ...e(r) })), {
|
|
32
|
+
default: i(() => [
|
|
33
|
+
c(l.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16));
|
|
37
|
+
}
|
|
38
|
+
}), [R, we] = N("MenubarRoot"), Ce = /* @__PURE__ */ u({
|
|
39
|
+
__name: "MenubarRoot",
|
|
40
|
+
props: {
|
|
41
|
+
modelValue: {},
|
|
42
|
+
defaultValue: {},
|
|
43
|
+
dir: {},
|
|
44
|
+
loop: { type: Boolean, default: !1 }
|
|
45
|
+
},
|
|
46
|
+
emits: ["update:modelValue"],
|
|
47
|
+
setup(o, { emit: a }) {
|
|
48
|
+
const t = o, n = a, { forwardRef: r } = h(), { CollectionSlot: l } = F({ key: "Menubar", isProvider: !0 }), s = U(t, "modelValue", n, {
|
|
49
|
+
defaultValue: t.defaultValue ?? "",
|
|
50
|
+
passive: t.modelValue === void 0
|
|
51
|
+
}), f = V(null), { dir: g, loop: m } = X(t), _ = ae(g);
|
|
52
|
+
return we({
|
|
53
|
+
modelValue: s,
|
|
54
|
+
dir: _,
|
|
55
|
+
loop: m,
|
|
56
|
+
onMenuOpen: (b) => {
|
|
57
|
+
s.value = b, f.value = b;
|
|
58
|
+
},
|
|
59
|
+
onMenuClose: () => {
|
|
60
|
+
s.value = "";
|
|
61
|
+
},
|
|
62
|
+
onMenuToggle: (b) => {
|
|
63
|
+
s.value = s.value ? "" : b, f.value = b;
|
|
64
|
+
}
|
|
65
|
+
}), (b, y) => (d(), p(e(l), null, {
|
|
66
|
+
default: i(() => [
|
|
67
|
+
B(e(oe), {
|
|
68
|
+
"current-tab-stop-id": f.value,
|
|
69
|
+
"onUpdate:currentTabStopId": y[0] || (y[0] = (k) => f.value = k),
|
|
70
|
+
orientation: "horizontal",
|
|
71
|
+
loop: e(m),
|
|
72
|
+
dir: e(_),
|
|
73
|
+
"as-child": ""
|
|
74
|
+
}, {
|
|
75
|
+
default: i(() => [
|
|
76
|
+
B(e(W), {
|
|
77
|
+
ref: e(r),
|
|
78
|
+
role: "menubar"
|
|
79
|
+
}, {
|
|
80
|
+
default: i(() => [
|
|
81
|
+
c(b.$slots, "default", { modelValue: e(s) })
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 512)
|
|
85
|
+
]),
|
|
86
|
+
_: 3
|
|
87
|
+
}, 8, ["current-tab-stop-id", "loop", "dir"])
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
}), [K, xe] = N("MenubarMenu"), Oe = /* @__PURE__ */ u({
|
|
93
|
+
__name: "MenubarMenu",
|
|
94
|
+
props: {
|
|
95
|
+
value: {}
|
|
96
|
+
},
|
|
97
|
+
setup(o) {
|
|
98
|
+
const t = H(o.value), n = R();
|
|
99
|
+
h();
|
|
100
|
+
const r = V(), l = V(!1), s = E(() => n.modelValue.value === t);
|
|
101
|
+
return Y(s, () => {
|
|
102
|
+
s.value || (l.value = !1);
|
|
103
|
+
}), xe({
|
|
104
|
+
value: t,
|
|
105
|
+
triggerElement: r,
|
|
106
|
+
triggerId: t,
|
|
107
|
+
contentId: "",
|
|
108
|
+
wasKeyboardTriggerOpenRef: l
|
|
109
|
+
}), (f, g) => (d(), p(e(ne), {
|
|
110
|
+
open: s.value,
|
|
111
|
+
modal: !1,
|
|
112
|
+
dir: e(n).dir.value,
|
|
113
|
+
"onUpdate:open": g[0] || (g[0] = (m) => {
|
|
114
|
+
m || e(n).onMenuClose();
|
|
115
|
+
})
|
|
116
|
+
}, {
|
|
117
|
+
default: i(() => [
|
|
118
|
+
c(f.$slots, "default")
|
|
119
|
+
]),
|
|
120
|
+
_: 3
|
|
121
|
+
}, 8, ["open", "dir"]));
|
|
122
|
+
}
|
|
123
|
+
}), ke = /* @__PURE__ */ u({
|
|
124
|
+
__name: "MenubarContent",
|
|
125
|
+
props: {
|
|
126
|
+
forceMount: { type: Boolean },
|
|
127
|
+
loop: { type: Boolean },
|
|
128
|
+
side: {},
|
|
129
|
+
sideOffset: {},
|
|
130
|
+
align: { default: "start" },
|
|
131
|
+
alignOffset: {},
|
|
132
|
+
avoidCollisions: { type: Boolean },
|
|
133
|
+
collisionBoundary: {},
|
|
134
|
+
collisionPadding: {},
|
|
135
|
+
arrowPadding: {},
|
|
136
|
+
sticky: {},
|
|
137
|
+
hideWhenDetached: { type: Boolean },
|
|
138
|
+
positionStrategy: {},
|
|
139
|
+
updatePositionStrategy: {},
|
|
140
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
141
|
+
prioritizePosition: { type: Boolean },
|
|
142
|
+
reference: {},
|
|
143
|
+
asChild: { type: Boolean },
|
|
144
|
+
as: {}
|
|
145
|
+
},
|
|
146
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
147
|
+
setup(o, { emit: a }) {
|
|
148
|
+
const r = C(o, a);
|
|
149
|
+
h();
|
|
150
|
+
const l = R(), s = K();
|
|
151
|
+
s.contentId || (s.contentId = H(void 0, "reka-menubar-content"));
|
|
152
|
+
const { getItems: f } = F({ key: "Menubar" }), g = V(!1);
|
|
153
|
+
function m(_) {
|
|
154
|
+
const y = _.target.hasAttribute(
|
|
155
|
+
"data-reka-menubar-subtrigger"
|
|
156
|
+
), x = (l.dir.value === "rtl" ? "ArrowRight" : "ArrowLeft") === _.key;
|
|
157
|
+
if (!x && y)
|
|
158
|
+
return;
|
|
159
|
+
let S = f().filter((A) => A.ref.dataset.disabled !== "").map((A) => A.ref.dataset.value);
|
|
160
|
+
x && S.reverse();
|
|
161
|
+
const j = S.indexOf(s.value);
|
|
162
|
+
S = l.loop.value ? q(S, j + 1) : S.slice(j + 1);
|
|
163
|
+
const [z] = S;
|
|
164
|
+
z && l.onMenuOpen(z);
|
|
165
|
+
}
|
|
166
|
+
return (_, b) => (d(), p(e(re), $(e(r), {
|
|
167
|
+
id: e(s).contentId,
|
|
168
|
+
"data-reka-menubar-content": "",
|
|
169
|
+
"aria-labelledby": e(s).triggerId,
|
|
170
|
+
style: {
|
|
171
|
+
"--reka-menubar-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
172
|
+
"--reka-menubar-content-available-width": "var(--reka-popper-available-width)",
|
|
173
|
+
"--reka-menubar-content-available-height": "var(--reka-popper-available-height)",
|
|
174
|
+
"--reka-menubar-trigger-width": "var(--reka-popper-anchor-width)",
|
|
175
|
+
"--reka-menubar-trigger-height": "var(--reka-popper-anchor-height)"
|
|
176
|
+
},
|
|
177
|
+
onCloseAutoFocus: b[0] || (b[0] = (y) => {
|
|
178
|
+
var x;
|
|
179
|
+
!!!e(l).modelValue.value && !g.value && ((x = e(s).triggerElement.value) == null || x.focus()), g.value = !1, y.preventDefault();
|
|
180
|
+
}),
|
|
181
|
+
onFocusOutside: b[1] || (b[1] = (y) => {
|
|
182
|
+
const k = y.target;
|
|
183
|
+
e(f)().filter((P) => P.ref.dataset.disabled !== "").some((P) => P.ref.contains(k)) && y.preventDefault();
|
|
184
|
+
}),
|
|
185
|
+
onInteractOutside: b[2] || (b[2] = (y) => {
|
|
186
|
+
g.value = !0;
|
|
187
|
+
}),
|
|
188
|
+
onEntryFocus: b[3] || (b[3] = (y) => {
|
|
189
|
+
e(s).wasKeyboardTriggerOpenRef.value || y.preventDefault();
|
|
190
|
+
}),
|
|
191
|
+
onKeydown: D(m, ["arrow-right", "arrow-left"])
|
|
192
|
+
}), {
|
|
193
|
+
default: i(() => [
|
|
194
|
+
c(_.$slots, "default")
|
|
195
|
+
]),
|
|
196
|
+
_: 3
|
|
197
|
+
}, 16, ["id", "aria-labelledby"]));
|
|
198
|
+
}
|
|
199
|
+
}), Pe = /* @__PURE__ */ u({
|
|
200
|
+
__name: "MenubarGroup",
|
|
201
|
+
props: {
|
|
202
|
+
asChild: { type: Boolean },
|
|
203
|
+
as: {}
|
|
204
|
+
},
|
|
205
|
+
setup(o) {
|
|
206
|
+
const a = o;
|
|
207
|
+
return h(), (t, n) => (d(), p(e(le), v(M(a)), {
|
|
208
|
+
default: i(() => [
|
|
209
|
+
c(t.$slots, "default")
|
|
210
|
+
]),
|
|
211
|
+
_: 3
|
|
212
|
+
}, 16));
|
|
213
|
+
}
|
|
214
|
+
}), Se = /* @__PURE__ */ u({
|
|
215
|
+
__name: "MenubarItem",
|
|
216
|
+
props: {
|
|
217
|
+
disabled: { type: Boolean },
|
|
218
|
+
textValue: {},
|
|
219
|
+
asChild: { type: Boolean },
|
|
220
|
+
as: {}
|
|
221
|
+
},
|
|
222
|
+
emits: ["select"],
|
|
223
|
+
setup(o, { emit: a }) {
|
|
224
|
+
const t = o, r = T(a);
|
|
225
|
+
return h(), (l, s) => (d(), p(e(ie), v(M({ ...t, ...e(r) })), {
|
|
226
|
+
default: i(() => [
|
|
227
|
+
c(l.$slots, "default")
|
|
228
|
+
]),
|
|
229
|
+
_: 3
|
|
230
|
+
}, 16));
|
|
231
|
+
}
|
|
232
|
+
}), J = /* @__PURE__ */ u({
|
|
233
|
+
__name: "MenubarItemIndicator",
|
|
234
|
+
props: {
|
|
235
|
+
forceMount: { type: Boolean },
|
|
236
|
+
asChild: { type: Boolean },
|
|
237
|
+
as: {}
|
|
238
|
+
},
|
|
239
|
+
setup(o) {
|
|
240
|
+
const a = o;
|
|
241
|
+
return h(), (t, n) => (d(), p(e(ue), v(M(a)), {
|
|
242
|
+
default: i(() => [
|
|
243
|
+
c(t.$slots, "default")
|
|
244
|
+
]),
|
|
245
|
+
_: 3
|
|
246
|
+
}, 16));
|
|
247
|
+
}
|
|
248
|
+
}), Ve = /* @__PURE__ */ u({
|
|
249
|
+
__name: "MenubarLabel",
|
|
250
|
+
props: {
|
|
251
|
+
asChild: { type: Boolean },
|
|
252
|
+
as: {}
|
|
253
|
+
},
|
|
254
|
+
setup(o) {
|
|
255
|
+
const a = o;
|
|
256
|
+
return h(), (t, n) => (d(), p(e(de), v(M(a)), {
|
|
257
|
+
default: i(() => [
|
|
258
|
+
c(t.$slots, "default")
|
|
259
|
+
]),
|
|
260
|
+
_: 3
|
|
261
|
+
}, 16));
|
|
262
|
+
}
|
|
263
|
+
}), Q = /* @__PURE__ */ u({
|
|
264
|
+
__name: "MenubarPortal",
|
|
265
|
+
props: {
|
|
266
|
+
to: {},
|
|
267
|
+
disabled: { type: Boolean },
|
|
268
|
+
defer: { type: Boolean },
|
|
269
|
+
forceMount: { type: Boolean }
|
|
270
|
+
},
|
|
271
|
+
setup(o) {
|
|
272
|
+
const a = o;
|
|
273
|
+
return (t, n) => (d(), p(e(pe), v(M(a)), {
|
|
274
|
+
default: i(() => [
|
|
275
|
+
c(t.$slots, "default")
|
|
276
|
+
]),
|
|
277
|
+
_: 3
|
|
278
|
+
}, 16));
|
|
279
|
+
}
|
|
280
|
+
}), Ie = /* @__PURE__ */ u({
|
|
281
|
+
__name: "MenubarRadioGroup",
|
|
282
|
+
props: {
|
|
283
|
+
modelValue: {},
|
|
284
|
+
asChild: { type: Boolean },
|
|
285
|
+
as: {}
|
|
286
|
+
},
|
|
287
|
+
emits: ["update:modelValue"],
|
|
288
|
+
setup(o, { emit: a }) {
|
|
289
|
+
const t = o, r = T(a);
|
|
290
|
+
return h(), (l, s) => (d(), p(e(ce), v(M({ ...t, ...e(r) })), {
|
|
291
|
+
default: i(() => [
|
|
292
|
+
c(l.$slots, "default")
|
|
293
|
+
]),
|
|
294
|
+
_: 3
|
|
295
|
+
}, 16));
|
|
296
|
+
}
|
|
297
|
+
}), Fe = /* @__PURE__ */ u({
|
|
298
|
+
__name: "MenubarRadioItem",
|
|
299
|
+
props: {
|
|
300
|
+
value: {},
|
|
301
|
+
disabled: { type: Boolean },
|
|
302
|
+
textValue: {},
|
|
303
|
+
asChild: { type: Boolean },
|
|
304
|
+
as: {}
|
|
305
|
+
},
|
|
306
|
+
emits: ["select"],
|
|
307
|
+
setup(o, { emit: a }) {
|
|
308
|
+
const r = C(o, a);
|
|
309
|
+
return h(), (l, s) => (d(), p(e(fe), v(M(e(r))), {
|
|
310
|
+
default: i(() => [
|
|
311
|
+
c(l.$slots, "default")
|
|
312
|
+
]),
|
|
313
|
+
_: 3
|
|
314
|
+
}, 16));
|
|
315
|
+
}
|
|
316
|
+
}), Re = /* @__PURE__ */ u({
|
|
317
|
+
__name: "MenubarSeparator",
|
|
318
|
+
props: {
|
|
319
|
+
asChild: { type: Boolean },
|
|
320
|
+
as: {}
|
|
321
|
+
},
|
|
322
|
+
setup(o) {
|
|
323
|
+
const a = o;
|
|
324
|
+
return h(), (t, n) => (d(), p(e(me), v(M(a)), {
|
|
325
|
+
default: i(() => [
|
|
326
|
+
c(t.$slots, "default")
|
|
327
|
+
]),
|
|
328
|
+
_: 3
|
|
329
|
+
}, 16));
|
|
330
|
+
}
|
|
331
|
+
}), Ae = /* @__PURE__ */ u({
|
|
332
|
+
__name: "MenubarSub",
|
|
333
|
+
props: {
|
|
334
|
+
defaultOpen: { type: Boolean },
|
|
335
|
+
open: { type: Boolean, default: void 0 }
|
|
336
|
+
},
|
|
337
|
+
emits: ["update:open"],
|
|
338
|
+
setup(o, { emit: a }) {
|
|
339
|
+
const t = o, n = a;
|
|
340
|
+
h();
|
|
341
|
+
const r = U(t, "open", n, {
|
|
342
|
+
defaultValue: t.defaultOpen ?? !1,
|
|
343
|
+
passive: t.open === void 0
|
|
344
|
+
});
|
|
345
|
+
return (l, s) => (d(), p(e(_e), {
|
|
346
|
+
open: e(r),
|
|
347
|
+
"onUpdate:open": s[0] || (s[0] = (f) => Z(r) ? r.value = f : null)
|
|
348
|
+
}, {
|
|
349
|
+
default: i(() => [
|
|
350
|
+
c(l.$slots, "default", { open: e(r) })
|
|
351
|
+
]),
|
|
352
|
+
_: 3
|
|
353
|
+
}, 8, ["open"]));
|
|
354
|
+
}
|
|
355
|
+
}), De = /* @__PURE__ */ u({
|
|
356
|
+
__name: "MenubarSubContent",
|
|
357
|
+
props: {
|
|
358
|
+
forceMount: { type: Boolean },
|
|
359
|
+
loop: { type: Boolean },
|
|
360
|
+
sideOffset: {},
|
|
361
|
+
alignOffset: {},
|
|
362
|
+
avoidCollisions: { type: Boolean },
|
|
363
|
+
collisionBoundary: {},
|
|
364
|
+
collisionPadding: {},
|
|
365
|
+
arrowPadding: {},
|
|
366
|
+
sticky: {},
|
|
367
|
+
hideWhenDetached: { type: Boolean },
|
|
368
|
+
positionStrategy: {},
|
|
369
|
+
updatePositionStrategy: {},
|
|
370
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
371
|
+
prioritizePosition: { type: Boolean },
|
|
372
|
+
reference: {},
|
|
373
|
+
asChild: { type: Boolean },
|
|
374
|
+
as: {}
|
|
375
|
+
},
|
|
376
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
|
|
377
|
+
setup(o, { emit: a }) {
|
|
378
|
+
const r = C(o, a);
|
|
379
|
+
h();
|
|
380
|
+
const { getItems: l } = F({ key: "Menubar" }), s = R(), f = K();
|
|
381
|
+
function g(m) {
|
|
382
|
+
if (m.target.hasAttribute(
|
|
383
|
+
"data-reka-menubar-subtrigger"
|
|
384
|
+
))
|
|
385
|
+
return;
|
|
386
|
+
let y = l().filter((P) => P.ref.dataset.disabled !== "").map((P) => P.ref.dataset.value);
|
|
387
|
+
const k = y.indexOf(f.value);
|
|
388
|
+
y = s.loop.value ? q(y, k + 1) : y.slice(k + 1);
|
|
389
|
+
const [x] = y;
|
|
390
|
+
x && s.onMenuOpen(x);
|
|
391
|
+
}
|
|
392
|
+
return (m, _) => (d(), p(e(be), $(e(r), {
|
|
393
|
+
"data-reka-menubar-content": "",
|
|
394
|
+
style: {
|
|
395
|
+
"--reka-menubar-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
396
|
+
"--reka-menubar-content-available-width": "var(--reka-popper-available-width)",
|
|
397
|
+
"--reka-menubar-content-available-height": "var(--reka-popper-available-height)",
|
|
398
|
+
"--reka-menubar-trigger-width": "var(--reka-popper-anchor-width)",
|
|
399
|
+
"--reka-menubar-trigger-height": "var(--reka-popper-anchor-height)"
|
|
400
|
+
},
|
|
401
|
+
onKeydown: D(g, ["arrow-right"])
|
|
402
|
+
}), {
|
|
403
|
+
default: i(() => [
|
|
404
|
+
c(m.$slots, "default")
|
|
405
|
+
]),
|
|
406
|
+
_: 3
|
|
407
|
+
}, 16));
|
|
408
|
+
}
|
|
409
|
+
}), Te = /* @__PURE__ */ u({
|
|
410
|
+
__name: "MenubarSubTrigger",
|
|
411
|
+
props: {
|
|
412
|
+
disabled: { type: Boolean },
|
|
413
|
+
textValue: {},
|
|
414
|
+
asChild: { type: Boolean },
|
|
415
|
+
as: {}
|
|
416
|
+
},
|
|
417
|
+
setup(o) {
|
|
418
|
+
const a = o;
|
|
419
|
+
return h(), (t, n) => (d(), p(e(ge), $(a, { "data-reka-menubar-subtrigger": "" }), {
|
|
420
|
+
default: i(() => [
|
|
421
|
+
c(t.$slots, "default")
|
|
422
|
+
]),
|
|
423
|
+
_: 3
|
|
424
|
+
}, 16));
|
|
425
|
+
}
|
|
426
|
+
}), Ke = /* @__PURE__ */ u({
|
|
427
|
+
__name: "MenubarTrigger",
|
|
428
|
+
props: {
|
|
429
|
+
disabled: { type: Boolean },
|
|
430
|
+
asChild: { type: Boolean },
|
|
431
|
+
as: { default: "button" }
|
|
432
|
+
},
|
|
433
|
+
setup(o) {
|
|
434
|
+
const a = R(), t = K(), { forwardRef: n, currentElement: r } = h(), { CollectionItem: l } = F({ key: "Menubar" }), s = V(!1), f = E(() => a.modelValue.value === t.value);
|
|
435
|
+
return ee(() => {
|
|
436
|
+
t.triggerElement = r;
|
|
437
|
+
}), (g, m) => (d(), p(e(Be), {
|
|
438
|
+
"as-child": "",
|
|
439
|
+
focusable: !g.disabled,
|
|
440
|
+
"tab-stop-id": e(t).value
|
|
441
|
+
}, {
|
|
442
|
+
default: i(() => [
|
|
443
|
+
B(e(l), null, {
|
|
444
|
+
default: i(() => [
|
|
445
|
+
B(e(ye), { "as-child": "" }, {
|
|
446
|
+
default: i(() => [
|
|
447
|
+
B(e(W), {
|
|
448
|
+
id: e(t).triggerId,
|
|
449
|
+
ref: e(n),
|
|
450
|
+
as: g.as,
|
|
451
|
+
type: g.as === "button" ? "button" : void 0,
|
|
452
|
+
role: "menuitem",
|
|
453
|
+
"aria-haspopup": "menu",
|
|
454
|
+
"aria-expanded": f.value,
|
|
455
|
+
"aria-controls": f.value ? e(t).contentId : void 0,
|
|
456
|
+
"data-highlighted": s.value ? "" : void 0,
|
|
457
|
+
"data-state": f.value ? "open" : "closed",
|
|
458
|
+
"data-disabled": g.disabled ? "" : void 0,
|
|
459
|
+
disabled: g.disabled,
|
|
460
|
+
"data-value": e(t).value,
|
|
461
|
+
onPointerdown: m[0] || (m[0] = (_) => {
|
|
462
|
+
!g.disabled && _.button === 0 && _.ctrlKey === !1 && (e(a).onMenuOpen(e(t).value), f.value || _.preventDefault());
|
|
463
|
+
}),
|
|
464
|
+
onPointerenter: m[1] || (m[1] = () => {
|
|
465
|
+
var b;
|
|
466
|
+
!!e(a).modelValue.value && !f.value && (e(a).onMenuOpen(e(t).value), (b = e(r)) == null || b.focus());
|
|
467
|
+
}),
|
|
468
|
+
onKeydown: m[2] || (m[2] = D((_) => {
|
|
469
|
+
g.disabled || (["Enter", " "].includes(_.key) && e(a).onMenuToggle(e(t).value), _.key === "ArrowDown" && e(a).onMenuOpen(e(t).value), ["Enter", " ", "ArrowDown"].includes(_.key) && (e(t).wasKeyboardTriggerOpenRef.value = !0, _.preventDefault()));
|
|
470
|
+
}, ["enter", "space", "arrow-down"])),
|
|
471
|
+
onFocus: m[3] || (m[3] = (_) => s.value = !0),
|
|
472
|
+
onBlur: m[4] || (m[4] = (_) => s.value = !1)
|
|
473
|
+
}, {
|
|
474
|
+
default: i(() => [
|
|
475
|
+
c(g.$slots, "default")
|
|
476
|
+
]),
|
|
477
|
+
_: 3
|
|
478
|
+
}, 8, ["id", "as", "type", "aria-expanded", "aria-controls", "data-highlighted", "data-state", "data-disabled", "disabled", "data-value"])
|
|
479
|
+
]),
|
|
480
|
+
_: 3
|
|
481
|
+
})
|
|
482
|
+
]),
|
|
483
|
+
_: 3
|
|
484
|
+
})
|
|
485
|
+
]),
|
|
486
|
+
_: 3
|
|
487
|
+
}, 8, ["focusable", "tab-stop-id"]));
|
|
488
|
+
}
|
|
489
|
+
}), nt = /* @__PURE__ */ u({
|
|
490
|
+
__name: "Menubar",
|
|
491
|
+
props: {
|
|
492
|
+
modelValue: {},
|
|
493
|
+
defaultValue: {},
|
|
494
|
+
dir: {},
|
|
495
|
+
loop: { type: Boolean },
|
|
496
|
+
class: {}
|
|
497
|
+
},
|
|
498
|
+
emits: ["update:modelValue"],
|
|
499
|
+
setup(o, { emit: a }) {
|
|
500
|
+
const t = o, n = a, r = O(t, "class"), l = C(r, n);
|
|
501
|
+
return (s, f) => (d(), p(e(Ce), $(e(l), {
|
|
502
|
+
class: e(w)(
|
|
503
|
+
"flex h-10 items-center gap-x-1 rounded-md border bg-background p-1",
|
|
504
|
+
t.class
|
|
505
|
+
)
|
|
506
|
+
}), {
|
|
507
|
+
default: i(() => [
|
|
508
|
+
c(s.$slots, "default")
|
|
509
|
+
]),
|
|
510
|
+
_: 3
|
|
511
|
+
}, 16, ["class"]));
|
|
512
|
+
}
|
|
513
|
+
}), je = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, rt = /* @__PURE__ */ u({
|
|
514
|
+
__name: "MenubarCheckboxItem",
|
|
515
|
+
props: {
|
|
516
|
+
modelValue: { type: [Boolean, String] },
|
|
517
|
+
disabled: { type: Boolean },
|
|
518
|
+
textValue: {},
|
|
519
|
+
asChild: { type: Boolean },
|
|
520
|
+
as: { type: [String, Object, Function] },
|
|
521
|
+
class: {}
|
|
522
|
+
},
|
|
523
|
+
emits: ["select", "update:modelValue"],
|
|
524
|
+
setup(o, { emit: a }) {
|
|
525
|
+
const t = o, n = a, r = O(t, "class"), l = C(r, n);
|
|
526
|
+
return (s, f) => (d(), p(e($e), $(e(l), {
|
|
527
|
+
class: e(w)(
|
|
528
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
529
|
+
t.class
|
|
530
|
+
)
|
|
531
|
+
}), {
|
|
532
|
+
default: i(() => [
|
|
533
|
+
L("span", je, [
|
|
534
|
+
B(e(J), null, {
|
|
535
|
+
default: i(() => [
|
|
536
|
+
B(e(he), { class: "w-4 h-4" })
|
|
537
|
+
]),
|
|
538
|
+
_: 1
|
|
539
|
+
})
|
|
540
|
+
]),
|
|
541
|
+
c(s.$slots, "default")
|
|
542
|
+
]),
|
|
543
|
+
_: 3
|
|
544
|
+
}, 16, ["class"]));
|
|
545
|
+
}
|
|
546
|
+
}), lt = /* @__PURE__ */ u({
|
|
547
|
+
__name: "MenubarContent",
|
|
548
|
+
props: {
|
|
549
|
+
forceMount: { type: Boolean },
|
|
550
|
+
loop: { type: Boolean },
|
|
551
|
+
side: {},
|
|
552
|
+
sideOffset: { default: 8 },
|
|
553
|
+
align: { default: "start" },
|
|
554
|
+
alignOffset: { default: -4 },
|
|
555
|
+
avoidCollisions: { type: Boolean },
|
|
556
|
+
collisionBoundary: {},
|
|
557
|
+
collisionPadding: {},
|
|
558
|
+
arrowPadding: {},
|
|
559
|
+
sticky: {},
|
|
560
|
+
hideWhenDetached: { type: Boolean },
|
|
561
|
+
positionStrategy: {},
|
|
562
|
+
updatePositionStrategy: {},
|
|
563
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
564
|
+
prioritizePosition: { type: Boolean },
|
|
565
|
+
reference: {},
|
|
566
|
+
asChild: { type: Boolean },
|
|
567
|
+
as: {},
|
|
568
|
+
class: {}
|
|
569
|
+
},
|
|
570
|
+
setup(o) {
|
|
571
|
+
const a = o, t = O(a, "class"), n = I(t);
|
|
572
|
+
return (r, l) => (d(), p(e(Q), null, {
|
|
573
|
+
default: i(() => [
|
|
574
|
+
B(e(ke), $(e(n), {
|
|
575
|
+
class: e(w)(
|
|
576
|
+
"z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
|
|
577
|
+
a.class
|
|
578
|
+
)
|
|
579
|
+
}), {
|
|
580
|
+
default: i(() => [
|
|
581
|
+
c(r.$slots, "default")
|
|
582
|
+
]),
|
|
583
|
+
_: 3
|
|
584
|
+
}, 16, ["class"])
|
|
585
|
+
]),
|
|
586
|
+
_: 3
|
|
587
|
+
}));
|
|
588
|
+
}
|
|
589
|
+
}), it = /* @__PURE__ */ u({
|
|
590
|
+
__name: "MenubarGroup",
|
|
591
|
+
props: {
|
|
592
|
+
asChild: { type: Boolean },
|
|
593
|
+
as: { type: [String, Object, Function] }
|
|
594
|
+
},
|
|
595
|
+
setup(o) {
|
|
596
|
+
const a = o;
|
|
597
|
+
return (t, n) => (d(), p(e(Pe), v(M(a)), {
|
|
598
|
+
default: i(() => [
|
|
599
|
+
c(t.$slots, "default")
|
|
600
|
+
]),
|
|
601
|
+
_: 3
|
|
602
|
+
}, 16));
|
|
603
|
+
}
|
|
604
|
+
}), ut = /* @__PURE__ */ u({
|
|
605
|
+
__name: "MenubarItem",
|
|
606
|
+
props: {
|
|
607
|
+
disabled: { type: Boolean },
|
|
608
|
+
textValue: {},
|
|
609
|
+
asChild: { type: Boolean },
|
|
610
|
+
as: { type: [String, Object, Function] },
|
|
611
|
+
class: {},
|
|
612
|
+
inset: { type: Boolean }
|
|
613
|
+
},
|
|
614
|
+
emits: ["select"],
|
|
615
|
+
setup(o, { emit: a }) {
|
|
616
|
+
const t = o, n = a, r = O(t, "class"), l = C(r, n);
|
|
617
|
+
return (s, f) => (d(), p(e(Se), $(e(l), {
|
|
618
|
+
class: e(w)(
|
|
619
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
620
|
+
s.inset && "pl-8",
|
|
621
|
+
t.class
|
|
622
|
+
)
|
|
623
|
+
}), {
|
|
624
|
+
default: i(() => [
|
|
625
|
+
c(s.$slots, "default")
|
|
626
|
+
]),
|
|
627
|
+
_: 3
|
|
628
|
+
}, 16, ["class"]));
|
|
629
|
+
}
|
|
630
|
+
}), dt = /* @__PURE__ */ u({
|
|
631
|
+
__name: "MenubarLabel",
|
|
632
|
+
props: {
|
|
633
|
+
asChild: { type: Boolean },
|
|
634
|
+
as: { type: [String, Object, Function] },
|
|
635
|
+
class: {},
|
|
636
|
+
inset: { type: Boolean }
|
|
637
|
+
},
|
|
638
|
+
setup(o) {
|
|
639
|
+
const a = o;
|
|
640
|
+
return (t, n) => (d(), p(e(Ve), {
|
|
641
|
+
class: G(e(w)("px-2 py-1.5 text-sm font-semibold", t.inset && "pl-8", a.class))
|
|
642
|
+
}, {
|
|
643
|
+
default: i(() => [
|
|
644
|
+
c(t.$slots, "default")
|
|
645
|
+
]),
|
|
646
|
+
_: 3
|
|
647
|
+
}, 8, ["class"]));
|
|
648
|
+
}
|
|
649
|
+
}), pt = /* @__PURE__ */ u({
|
|
650
|
+
__name: "MenubarMenu",
|
|
651
|
+
props: {
|
|
652
|
+
value: {}
|
|
653
|
+
},
|
|
654
|
+
setup(o) {
|
|
655
|
+
const a = o;
|
|
656
|
+
return (t, n) => (d(), p(e(Oe), v(M(a)), {
|
|
657
|
+
default: i(() => [
|
|
658
|
+
c(t.$slots, "default")
|
|
659
|
+
]),
|
|
660
|
+
_: 3
|
|
661
|
+
}, 16));
|
|
662
|
+
}
|
|
663
|
+
}), ct = /* @__PURE__ */ u({
|
|
664
|
+
__name: "MenubarRadioGroup",
|
|
665
|
+
props: {
|
|
666
|
+
modelValue: {},
|
|
667
|
+
asChild: { type: Boolean },
|
|
668
|
+
as: { type: [String, Object, Function] }
|
|
669
|
+
},
|
|
670
|
+
emits: ["update:modelValue"],
|
|
671
|
+
setup(o, { emit: a }) {
|
|
672
|
+
const r = C(o, a);
|
|
673
|
+
return (l, s) => (d(), p(e(Ie), v(M(e(r))), {
|
|
674
|
+
default: i(() => [
|
|
675
|
+
c(l.$slots, "default")
|
|
676
|
+
]),
|
|
677
|
+
_: 3
|
|
678
|
+
}, 16));
|
|
679
|
+
}
|
|
680
|
+
}), ze = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, ft = /* @__PURE__ */ u({
|
|
681
|
+
__name: "MenubarRadioItem",
|
|
682
|
+
props: {
|
|
683
|
+
value: {},
|
|
684
|
+
disabled: { type: Boolean },
|
|
685
|
+
textValue: {},
|
|
686
|
+
asChild: { type: Boolean },
|
|
687
|
+
as: { type: [String, Object, Function] },
|
|
688
|
+
class: {}
|
|
689
|
+
},
|
|
690
|
+
emits: ["select"],
|
|
691
|
+
setup(o, { emit: a }) {
|
|
692
|
+
const t = o, n = a, r = O(t, "class"), l = C(r, n);
|
|
693
|
+
return (s, f) => (d(), p(e(Fe), $(e(l), {
|
|
694
|
+
class: e(w)(
|
|
695
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
696
|
+
t.class
|
|
697
|
+
)
|
|
698
|
+
}), {
|
|
699
|
+
default: i(() => [
|
|
700
|
+
L("span", ze, [
|
|
701
|
+
B(e(J), null, {
|
|
702
|
+
default: i(() => [
|
|
703
|
+
B(e(ve), { class: "h-2 w-2 fill-current" })
|
|
704
|
+
]),
|
|
705
|
+
_: 1
|
|
706
|
+
})
|
|
707
|
+
]),
|
|
708
|
+
c(s.$slots, "default")
|
|
709
|
+
]),
|
|
710
|
+
_: 3
|
|
711
|
+
}, 16, ["class"]));
|
|
712
|
+
}
|
|
713
|
+
}), mt = /* @__PURE__ */ u({
|
|
714
|
+
__name: "MenubarSeparator",
|
|
715
|
+
props: {
|
|
716
|
+
asChild: { type: Boolean },
|
|
717
|
+
as: { type: [String, Object, Function] },
|
|
718
|
+
class: {}
|
|
719
|
+
},
|
|
720
|
+
setup(o) {
|
|
721
|
+
const a = o, t = O(a, "class"), n = I(t);
|
|
722
|
+
return (r, l) => (d(), p(e(Re), $({
|
|
723
|
+
class: e(w)("-mx-1 my-1 h-px bg-muted", a.class)
|
|
724
|
+
}, e(n)), null, 16, ["class"]));
|
|
725
|
+
}
|
|
726
|
+
}), _t = /* @__PURE__ */ u({
|
|
727
|
+
__name: "MenubarShortcut",
|
|
728
|
+
props: {
|
|
729
|
+
class: {}
|
|
730
|
+
},
|
|
731
|
+
setup(o) {
|
|
732
|
+
const a = o;
|
|
733
|
+
return (t, n) => (d(), te("span", {
|
|
734
|
+
class: G(e(w)("ml-auto text-xs tracking-widest text-muted-foreground", a.class))
|
|
735
|
+
}, [
|
|
736
|
+
c(t.$slots, "default")
|
|
737
|
+
], 2));
|
|
738
|
+
}
|
|
739
|
+
}), bt = /* @__PURE__ */ u({
|
|
740
|
+
__name: "MenubarSub",
|
|
741
|
+
props: {
|
|
742
|
+
defaultOpen: { type: Boolean },
|
|
743
|
+
open: { type: Boolean }
|
|
744
|
+
},
|
|
745
|
+
emits: ["update:open"],
|
|
746
|
+
setup(o, { emit: a }) {
|
|
747
|
+
const r = C(o, a);
|
|
748
|
+
return (l, s) => (d(), p(e(Ae), v(M(e(r))), {
|
|
749
|
+
default: i(() => [
|
|
750
|
+
c(l.$slots, "default")
|
|
751
|
+
]),
|
|
752
|
+
_: 3
|
|
753
|
+
}, 16));
|
|
754
|
+
}
|
|
755
|
+
}), gt = /* @__PURE__ */ u({
|
|
756
|
+
__name: "MenubarSubContent",
|
|
757
|
+
props: {
|
|
758
|
+
forceMount: { type: Boolean },
|
|
759
|
+
loop: { type: Boolean },
|
|
760
|
+
sideOffset: {},
|
|
761
|
+
alignOffset: {},
|
|
762
|
+
avoidCollisions: { type: Boolean },
|
|
763
|
+
collisionBoundary: {},
|
|
764
|
+
collisionPadding: {},
|
|
765
|
+
arrowPadding: {},
|
|
766
|
+
sticky: {},
|
|
767
|
+
hideWhenDetached: { type: Boolean },
|
|
768
|
+
positionStrategy: {},
|
|
769
|
+
updatePositionStrategy: {},
|
|
770
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
771
|
+
prioritizePosition: { type: Boolean },
|
|
772
|
+
reference: {},
|
|
773
|
+
asChild: { type: Boolean },
|
|
774
|
+
as: { type: [String, Object, Function] },
|
|
775
|
+
class: {}
|
|
776
|
+
},
|
|
777
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
|
|
778
|
+
setup(o, { emit: a }) {
|
|
779
|
+
const t = o, n = a, r = O(t, "class"), l = C(r, n);
|
|
780
|
+
return (s, f) => (d(), p(e(Q), null, {
|
|
781
|
+
default: i(() => [
|
|
782
|
+
B(e(De), $(e(l), {
|
|
783
|
+
class: e(w)(
|
|
784
|
+
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 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",
|
|
785
|
+
t.class
|
|
786
|
+
)
|
|
787
|
+
}), {
|
|
788
|
+
default: i(() => [
|
|
789
|
+
c(s.$slots, "default")
|
|
790
|
+
]),
|
|
791
|
+
_: 3
|
|
792
|
+
}, 16, ["class"])
|
|
793
|
+
]),
|
|
794
|
+
_: 3
|
|
795
|
+
}));
|
|
796
|
+
}
|
|
797
|
+
}), yt = /* @__PURE__ */ u({
|
|
798
|
+
__name: "MenubarSubTrigger",
|
|
799
|
+
props: {
|
|
800
|
+
disabled: { type: Boolean },
|
|
801
|
+
textValue: {},
|
|
802
|
+
asChild: { type: Boolean },
|
|
803
|
+
as: { type: [String, Object, Function] },
|
|
804
|
+
class: {},
|
|
805
|
+
inset: { type: Boolean }
|
|
806
|
+
},
|
|
807
|
+
setup(o) {
|
|
808
|
+
const a = o, t = O(a, "class"), n = I(t);
|
|
809
|
+
return (r, l) => (d(), p(e(Te), $(e(n), {
|
|
810
|
+
class: e(w)(
|
|
811
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
812
|
+
r.inset && "pl-8",
|
|
813
|
+
a.class
|
|
814
|
+
)
|
|
815
|
+
}), {
|
|
816
|
+
default: i(() => [
|
|
817
|
+
c(r.$slots, "default"),
|
|
818
|
+
B(e(Me), { class: "ml-auto h-4 w-4" })
|
|
819
|
+
]),
|
|
820
|
+
_: 3
|
|
821
|
+
}, 16, ["class"]));
|
|
822
|
+
}
|
|
823
|
+
}), ht = /* @__PURE__ */ u({
|
|
824
|
+
__name: "MenubarTrigger",
|
|
825
|
+
props: {
|
|
826
|
+
disabled: { type: Boolean },
|
|
827
|
+
asChild: { type: Boolean },
|
|
828
|
+
as: { type: [String, Object, Function] },
|
|
829
|
+
class: {}
|
|
830
|
+
},
|
|
831
|
+
setup(o) {
|
|
832
|
+
const a = o, t = O(a, "class"), n = I(t);
|
|
833
|
+
return (r, l) => (d(), p(e(Ke), $(e(n), {
|
|
834
|
+
class: e(w)(
|
|
835
|
+
"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
836
|
+
a.class
|
|
837
|
+
)
|
|
838
|
+
}), {
|
|
839
|
+
default: i(() => [
|
|
840
|
+
c(r.$slots, "default")
|
|
841
|
+
]),
|
|
842
|
+
_: 3
|
|
843
|
+
}, 16, ["class"]));
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
export {
|
|
847
|
+
nt as Menubar,
|
|
848
|
+
rt as MenubarCheckboxItem,
|
|
849
|
+
lt as MenubarContent,
|
|
850
|
+
it as MenubarGroup,
|
|
851
|
+
ut as MenubarItem,
|
|
852
|
+
dt as MenubarLabel,
|
|
853
|
+
pt as MenubarMenu,
|
|
854
|
+
ct as MenubarRadioGroup,
|
|
855
|
+
ft as MenubarRadioItem,
|
|
856
|
+
mt as MenubarSeparator,
|
|
857
|
+
_t as MenubarShortcut,
|
|
858
|
+
bt as MenubarSub,
|
|
859
|
+
gt as MenubarSubContent,
|
|
860
|
+
yt as MenubarSubTrigger,
|
|
861
|
+
ht as MenubarTrigger
|
|
862
|
+
};
|