maz-ui 3.23.4 → 3.24.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.
Files changed (151) hide show
  1. package/components/MazAvatar.mjs +1 -1
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.d.ts +3 -3
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCarousel.mjs +1 -1
  7. package/components/MazCheckbox.mjs +9 -9
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.d.ts +6 -6
  10. package/components/MazDialogPromise.mjs +1 -1
  11. package/components/MazDrawer.mjs +1 -1
  12. package/components/MazDropdown.d.ts +4 -0
  13. package/components/MazDropdown.mjs +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.mjs +1 -1
  16. package/components/MazInputPrice.mjs +1 -1
  17. package/components/MazInputTags.d.ts +1 -0
  18. package/components/MazInputTags.mjs +1 -1
  19. package/components/MazPhoneNumberInput.mjs +1 -1
  20. package/components/MazPicker.mjs +1 -1
  21. package/components/MazRadioButtons.mjs +49 -38
  22. package/components/MazSelect.mjs +1 -1
  23. package/components/MazSlider.mjs +1 -1
  24. package/components/MazTabsBar.mjs +1 -1
  25. package/components/assets/MazAvatar.css +1 -1
  26. package/components/assets/MazBtn.css +1 -1
  27. package/components/assets/MazCard.css +1 -1
  28. package/components/assets/MazCheckbox.css +1 -1
  29. package/components/assets/MazDropdown.css +1 -1
  30. package/components/assets/MazInput.css +1 -1
  31. package/components/assets/MazInputPrice.css +1 -1
  32. package/components/assets/MazInputTags.css +1 -1
  33. package/components/assets/MazPhoneNumberInput.css +1 -1
  34. package/components/assets/MazPicker.css +1 -1
  35. package/components/assets/MazPickerCalendar.css +1 -1
  36. package/components/assets/MazRadioButtons.css +1 -1
  37. package/components/assets/MazSelect.css +1 -1
  38. package/components/assets/MazSlider.css +1 -1
  39. package/components/chunks/{MazAvatar-1636f58b.mjs → MazAvatar-a0310614.mjs} +7 -7
  40. package/components/chunks/{MazBottomSheet-c24f92f8.mjs → MazBottomSheet-656778f3.mjs} +1 -1
  41. package/components/chunks/{MazBtn-2d1d1ba5.mjs → MazBtn-1abd74e1.mjs} +3 -3
  42. package/components/chunks/{MazBtn-683effc1.mjs → MazBtn-1b5325b4.mjs} +3 -3
  43. package/components/chunks/{MazBtn-5e426592.mjs → MazBtn-28eb4f51.mjs} +3 -3
  44. package/components/chunks/{MazBtn-1e61862b.mjs → MazBtn-4242d8bf.mjs} +3 -3
  45. package/components/chunks/MazBtn-54c46d7a.mjs +153 -0
  46. package/components/chunks/MazBtn-55bdce06.mjs +153 -0
  47. package/components/chunks/MazBtn-5b3c390b.mjs +153 -0
  48. package/components/chunks/{MazBtn-3d74f737.mjs → MazBtn-5c7f35e9.mjs} +3 -3
  49. package/components/chunks/{MazBtn-4a447126.mjs → MazBtn-6df3ecd9.mjs} +3 -3
  50. package/components/chunks/{MazBtn-7706b2da.mjs → MazBtn-7313b190.mjs} +9 -9
  51. package/components/chunks/{MazBtn-555928ed.mjs → MazBtn-8d15228e.mjs} +3 -3
  52. package/components/chunks/{MazBtn-6ce4cfd3.mjs → MazBtn-ab3967b5.mjs} +1 -1
  53. package/components/chunks/{MazBtn-124f3700.mjs → MazBtn-edeb8105.mjs} +3 -3
  54. package/components/chunks/MazBtn-fbc2b2c9.mjs +153 -0
  55. package/components/chunks/{MazCard-bcc36489.mjs → MazCard-cb88998a.mjs} +3 -3
  56. package/components/chunks/{MazCarousel-6da75122.mjs → MazCarousel-4a1f2f1b.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-3a2b48b4.mjs → MazCheckbox-0df95780.mjs} +6 -6
  58. package/components/chunks/{MazCheckbox-040dc2c4.mjs → MazCheckbox-4ccd0b53.mjs} +6 -6
  59. package/components/chunks/{MazDialog-44eda544.mjs → MazDialog-e80585a6.mjs} +1 -1
  60. package/components/chunks/{MazDialogPromise-eec5acde.mjs → MazDialogPromise-0769de39.mjs} +2 -2
  61. package/components/chunks/{MazDrawer-b628b37e.mjs → MazDrawer-ff505fb8.mjs} +1 -1
  62. package/components/chunks/MazDropdown-0dea4e44.mjs +352 -0
  63. package/components/chunks/{MazGallery-6b8ecedf.mjs → MazGallery-eb620533.mjs} +1 -1
  64. package/components/chunks/{MazIcon-95e31ff8.mjs → MazIcon-b0ad5b4c.mjs} +1 -1
  65. package/components/chunks/{MazInput-1ed4f946.mjs → MazInput-14d96bc3.mjs} +2 -2
  66. package/components/chunks/{MazInput-c51881ea.mjs → MazInput-a4884812.mjs} +2 -2
  67. package/components/chunks/{MazInput-8a217995.mjs → MazInput-d0d28579.mjs} +3 -3
  68. package/components/chunks/{MazInputPrice-cd348d46.mjs → MazInputPrice-a94b17c3.mjs} +2 -2
  69. package/components/chunks/MazInputTags-d8514b7b.mjs +595 -0
  70. package/components/chunks/{MazLazyImg-47d3449a.mjs → MazLazyImg-632c3f0c.mjs} +2 -2
  71. package/components/chunks/{MazPhoneNumberInput-e1bf46f9.mjs → MazPhoneNumberInput-b32334b7.mjs} +138 -135
  72. package/components/chunks/{MazPicker-e4620d8b.mjs → MazPicker-9b2f5212.mjs} +49 -49
  73. package/components/chunks/{MazPickerCalendar-da62262c.mjs → MazPickerCalendar-fd08a0bd.mjs} +7 -7
  74. package/components/chunks/{MazPickerHeader-a2e041eb.mjs → MazPickerHeader-b353cef2.mjs} +1 -1
  75. package/components/chunks/{MazPickerMonthSwitcher-5bf8bd08.mjs → MazPickerMonthSwitcher-ec404758.mjs} +2 -2
  76. package/components/chunks/{MazPickerShortcuts-7f95430e.mjs → MazPickerShortcuts-e9c8b46e.mjs} +2 -2
  77. package/components/chunks/{MazPickerTime-717402ae.mjs → MazPickerTime-a94a2ad1.mjs} +2 -2
  78. package/components/chunks/{MazPickerYearSwitcher-85f97b6d.mjs → MazPickerYearSwitcher-4ab742f7.mjs} +3 -3
  79. package/components/chunks/{MazSelect-6ff6bb96.mjs → MazSelect-a0d29d46.mjs} +3 -3
  80. package/components/chunks/{MazSpinner-51aa73ca.mjs → MazSpinner-05b867f0.mjs} +1 -1
  81. package/components/chunks/MazSpinner-151ca8af.mjs +39 -0
  82. package/components/chunks/{MazSpinner-059ee1d2.mjs → MazSpinner-37cda5f1.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-6d1d24d5.mjs → MazSpinner-38548063.mjs} +1 -1
  84. package/components/chunks/MazSpinner-3b9cd6bd.mjs +39 -0
  85. package/components/chunks/MazSpinner-691d6fe4.mjs +39 -0
  86. package/components/chunks/MazSpinner-70afb16b.mjs +39 -0
  87. package/components/chunks/MazSpinner-8ecee924.mjs +39 -0
  88. package/components/chunks/MazSpinner-9fc0d858.mjs +39 -0
  89. package/components/chunks/{MazSpinner-13403729.mjs → MazSpinner-a936fb87.mjs} +1 -1
  90. package/components/chunks/MazSpinner-d37b29f0.mjs +39 -0
  91. package/components/chunks/{MazSpinner-054f948c.mjs → MazSpinner-ea39af30.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-452a1534.mjs → MazSpinner-ef90ca5e.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-4c02cfd2.mjs → MazSpinner-f54688d1.mjs} +1 -1
  94. package/components/chunks/MazSpinner-fa0d644a.mjs +39 -0
  95. package/components/chunks/{MazSpinner-d9ef329f.mjs → MazSpinner-fa796159.mjs} +1 -1
  96. package/components/chunks/{MazTabsBar-27965f16.mjs → MazTabsBar-3fc93e3c.mjs} +1 -1
  97. package/components/chunks/{MazTransitionExpand-cd24498f.mjs → MazTransitionExpand-9d45da0e.mjs} +1 -1
  98. package/css/main.css +1 -1
  99. package/modules/assets/MazBtn.css +1 -1
  100. package/modules/assets/index.css +1 -1
  101. package/modules/chunks/{MazBtn-760c3b29.mjs → MazBtn-6d482774.mjs} +3 -3
  102. package/modules/chunks/{MazBtn-2f302422.cjs → MazBtn-9e80b611.cjs} +1 -1
  103. package/modules/chunks/{MazIcon-599a907f.cjs → MazIcon-84d2e299.cjs} +1 -1
  104. package/modules/chunks/{MazIcon-0bd6b78e.mjs → MazIcon-c59e858b.mjs} +1 -1
  105. package/modules/chunks/{MazSpinner-6ffa8db1.cjs → MazSpinner-108d3dc0.cjs} +1 -1
  106. package/modules/chunks/{MazSpinner-03bd76bd.mjs → MazSpinner-dcb0164b.mjs} +1 -1
  107. package/modules/chunks/check-circle-59c383ed.mjs +30 -0
  108. package/modules/chunks/check-circle-8c27a70a.cjs +1 -0
  109. package/modules/chunks/exclamation-circle-a33311d2.cjs +1 -0
  110. package/modules/chunks/exclamation-circle-e2620aab.mjs +30 -0
  111. package/modules/chunks/exclamation-triangle-21bf116a.mjs +30 -0
  112. package/modules/chunks/exclamation-triangle-df9f85b0.cjs +1 -0
  113. package/modules/chunks/index-4ffeaf8e.cjs +124 -0
  114. package/modules/chunks/{index-6a90ef88.mjs → index-67003347.mjs} +598 -508
  115. package/modules/chunks/information-circle-9fe4430a.cjs +1 -0
  116. package/modules/chunks/information-circle-b8051b19.mjs +30 -0
  117. package/modules/index.cjs +1 -1
  118. package/modules/index.mjs +18 -17
  119. package/nuxt/index.d.mts +5 -0
  120. package/nuxt/index.d.ts +5 -0
  121. package/nuxt/index.json +1 -1
  122. package/nuxt/index.mjs +14 -0
  123. package/nuxt/runtime/plugins/maz-icon-path.mjs +2 -1
  124. package/package.json +4 -4
  125. package/tailwindcss/tailwind.config.ts +0 -1
  126. package/types/components/MazBtn.vue.d.ts +3 -3
  127. package/types/components/MazDialogPromise.vue.d.ts +6 -6
  128. package/types/components/MazDropdown.vue.d.ts +4 -0
  129. package/types/components/MazInputTags.vue.d.ts +1 -0
  130. package/types/modules/composables/index.d.ts +1 -0
  131. package/types/modules/composables/use-timer.d.ts +12 -0
  132. package/types/modules/plugins/aos/index.d.ts +12 -12
  133. package/types/modules/plugins/toaster/MazToast.vue.d.ts +6 -6
  134. package/types/modules/plugins/toaster/toaster-handler.d.ts +2 -1
  135. package/components/chunks/MazBtn-571454f6.mjs +0 -153
  136. package/components/chunks/MazBtn-6905cc39.mjs +0 -153
  137. package/components/chunks/MazBtn-74656d5b.mjs +0 -153
  138. package/components/chunks/MazBtn-a7a913dd.mjs +0 -153
  139. package/components/chunks/MazBtn-fb3c7af8.mjs +0 -153
  140. package/components/chunks/MazDropdown-6f2248b0.mjs +0 -345
  141. package/components/chunks/MazInputTags-aa95fae7.mjs +0 -446
  142. package/components/chunks/MazSpinner-6e7c4705.mjs +0 -39
  143. package/components/chunks/MazSpinner-7895f54f.mjs +0 -39
  144. package/components/chunks/MazSpinner-7eee202e.mjs +0 -39
  145. package/components/chunks/MazSpinner-805e14a6.mjs +0 -39
  146. package/components/chunks/MazSpinner-85080b43.mjs +0 -39
  147. package/components/chunks/MazSpinner-c67b05bb.mjs +0 -39
  148. package/components/chunks/MazSpinner-caa33afc.mjs +0 -39
  149. package/components/chunks/MazSpinner-cb8fbe9a.mjs +0 -39
  150. package/modules/chunks/index-794680d2.cjs +0 -124
  151. package/types/modules/plugins/toaster/timer.d.ts +0 -11
@@ -1,345 +0,0 @@
1
- import "../assets/MazDropdown.css";
2
- import { defineComponent as N, defineAsyncComponent as S, useAttrs as V, useSlots as P, onBeforeMount as R, computed as r, openBlock as i, createBlock as w, resolveDynamicComponent as T, mergeProps as F, withCtx as I, createElementBlock as y, normalizeClass as z, renderSlot as g, unref as u, createCommentVNode as m, createElementVNode as j, getCurrentInstance as q, ref as A, watch as E, createVNode as L, withModifiers as O, Transition as H, Fragment as U, renderList as x, createTextVNode as K, toDisplayString as G } from "vue";
3
- const J = /* @__PURE__ */ N({
4
- __name: "MazBtn",
5
- props: {
6
- variant: {
7
- type: String,
8
- default: "button",
9
- validator: (n) => ["button", "link"].includes(n)
10
- },
11
- size: {
12
- type: String,
13
- default: "md",
14
- validator: (n) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(n)
15
- },
16
- color: {
17
- type: String,
18
- default: "primary"
19
- },
20
- type: {
21
- type: String,
22
- default: "button",
23
- validator: (n) => ["button", "submit", "reset"].includes(n)
24
- },
25
- rounded: { type: Boolean, default: !1 },
26
- noRounded: { type: Boolean, default: !1 },
27
- outline: { type: Boolean, default: !1 },
28
- pastel: { type: Boolean, default: !1 },
29
- block: { type: Boolean, default: !1 },
30
- noUnderline: { type: Boolean, default: !1 },
31
- noLeading: { type: Boolean, default: !1 },
32
- loading: { type: Boolean, default: !1 },
33
- disabled: { type: Boolean, default: !1 },
34
- fab: { type: Boolean, default: !1 },
35
- icon: { type: String, default: void 0 },
36
- leftIcon: { type: String, default: void 0 },
37
- rightIcon: { type: String, default: void 0 },
38
- noPadding: { type: Boolean, default: !1 },
39
- noElevation: { type: Boolean, default: !1 }
40
- },
41
- setup(n) {
42
- const s = S(() => import("./MazSpinner-4c02cfd2.mjs")), a = S(() => import("./MazIcon-52a76873.mjs")), { href: p, to: k } = V(), d = P(), t = n;
43
- R(() => {
44
- t.icon && !t.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
45
- });
46
- const $ = r(() => p ? "a" : k ? "router-link" : "button"), f = r(
47
- () => t.pastel ? `--${t.color}-pastel` : t.outline ? `--${t.color}-outline` : `--${t.color}`
48
- ), c = r(
49
- () => (t.loading || t.disabled) && $.value === "button"
50
- ), D = r(() => c.value ? "--cursor-default" : "--cursor-pointer"), h = r(() => `--is-${t.variant}`), b = r(() => t.loading && t.variant === "button"), B = r(() => !!d["left-icon"] || t.leftIcon), C = r(() => !!d["right-icon"] || t.rightIcon), e = r(() => B.value || C.value), l = r(() => t.fab && t.icon), o = r(() => $.value === "button" ? t.type : void 0);
51
- return (v, M) => (i(), w(T($.value), F(v.$attrs, {
52
- disabled: c.value,
53
- class: ["m-btn", [
54
- `--${n.size}`,
55
- f.value,
56
- D.value,
57
- h.value,
58
- {
59
- "--block": n.block,
60
- "--no-underline": n.noUnderline,
61
- "--no-leading": n.noLeading,
62
- "--fab": n.fab,
63
- "--loading": n.loading,
64
- "--disabled": c.value,
65
- "--icon": e.value,
66
- "--rounded": n.rounded,
67
- "--no-rounded": n.noRounded,
68
- "--no-padding": n.noPadding,
69
- "--no-elevation": n.noElevation
70
- }
71
- ]],
72
- type: o.value
73
- }), {
74
- default: I(() => [
75
- B.value ? (i(), y(
76
- "div",
77
- {
78
- key: 0,
79
- class: z(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": b.value }])
80
- },
81
- [
82
- g(v.$slots, "left-icon", {}, () => [
83
- n.leftIcon ? (i(), w(u(a), {
84
- key: 0,
85
- name: n.leftIcon
86
- }, null, 8, ["name"])) : m("v-if", !0)
87
- ], !0)
88
- ],
89
- 2
90
- /* CLASS */
91
- )) : m("v-if", !0),
92
- l.value ? (i(), y(
93
- "div",
94
- {
95
- key: 1,
96
- class: z(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": b.value }])
97
- },
98
- [
99
- g(v.$slots, "icon", {}, () => [
100
- n.icon ? (i(), w(u(a), {
101
- key: 0,
102
- name: n.icon
103
- }, null, 8, ["name"])) : m("v-if", !0)
104
- ], !0)
105
- ],
106
- 2
107
- /* CLASS */
108
- )) : m("v-if", !0),
109
- j(
110
- "span",
111
- {
112
- class: z(["maz-flex maz-flex-center", { "maz-invisible": b.value }])
113
- },
114
- [
115
- g(v.$slots, "default", {}, void 0, !0)
116
- ],
117
- 2
118
- /* CLASS */
119
- ),
120
- C.value ? (i(), y(
121
- "div",
122
- {
123
- key: 2,
124
- class: z(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": b.value }])
125
- },
126
- [
127
- g(v.$slots, "right-icon", {}, () => [
128
- n.rightIcon ? (i(), w(u(a), {
129
- key: 0,
130
- name: n.rightIcon
131
- }, null, 8, ["name"])) : m("v-if", !0)
132
- ], !0)
133
- ],
134
- 2
135
- /* CLASS */
136
- )) : m("v-if", !0),
137
- b.value ? (i(), w(u(s), {
138
- key: 3,
139
- size: "2em",
140
- color: n.color,
141
- class: "maz-absolute"
142
- }, null, 8, ["color"])) : m("v-if", !0)
143
- ]),
144
- _: 3
145
- /* FORWARDED */
146
- }, 16, ["disabled", "class", "type"]));
147
- }
148
- });
149
- const Q = (n, s) => {
150
- const a = n.__vccOpts || n;
151
- for (const [p, k] of s)
152
- a[p] = k;
153
- return a;
154
- }, W = /* @__PURE__ */ Q(J, [["__scopeId", "data-v-06ad874b"]]), X = ({
155
- componentName: n,
156
- instance: s,
157
- providedId: a
158
- }) => r(() => a ?? `${n}-${s == null ? void 0 : s.uid}`);
159
- function Y(n, s) {
160
- let a;
161
- return function(...p) {
162
- clearTimeout(a), a = setTimeout(() => {
163
- n.apply(this, p);
164
- }, s);
165
- };
166
- }
167
- const Z = ["id"], ne = /* @__PURE__ */ N({
168
- __name: "MazDropdown",
169
- props: {
170
- items: {},
171
- open: { type: Boolean },
172
- id: { default: "maz-dropdown" },
173
- trigger: { default: "both" },
174
- color: { default: "transparent" },
175
- position: { default: "bottom left" },
176
- noCloseOnClick: { type: Boolean },
177
- disabled: { type: Boolean }
178
- },
179
- emits: [
180
- /**
181
- * emitted when a menu item is clicked
182
- */
183
- "menuitem-clicked",
184
- /**
185
- * Triggers when the number changes
186
- *
187
- * @property {boolean} open new value
188
- */
189
- "update:open"
190
- ],
191
- setup(n, { emit: s }) {
192
- const a = n, p = s, k = X({
193
- componentName: "MazCheckbox",
194
- instance: q(),
195
- providedId: a.id
196
- }), d = A(a.open), t = A();
197
- function $() {
198
- f(!d.value);
199
- }
200
- const f = (e) => {
201
- a.disabled || (d.value = e, p("update:open", e));
202
- }, c = Y((e) => {
203
- f(e);
204
- }, 200);
205
- async function D(e, l) {
206
- var o;
207
- p("menuitem-clicked", l), await ((o = e.action) == null ? void 0 : o.call(e)), h();
208
- }
209
- function h() {
210
- a.noCloseOnClick === !1 && f(!1);
211
- }
212
- function b(e) {
213
- e.key === "Escape" ? (e.preventDefault(), f(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? C(e) : e.key === "Enter" && typeof t.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${k.value} .menuitem`)[t.value].click(), h());
214
- }
215
- function B(e) {
216
- ["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && d.value === !1 && (e.preventDefault(), f(!0));
217
- }
218
- function C(e) {
219
- var v;
220
- e.preventDefault();
221
- const l = e.key;
222
- d.value || f(!0);
223
- const o = (v = a.items) == null ? void 0 : v.length;
224
- o && (typeof t.value == "number" ? t.value === o - 1 && l === "ArrowDown" ? t.value = 0 : t.value === 0 && l === "ArrowUp" ? t.value = o - 1 : t.value = l === "ArrowDown" ? t.value + 1 : t.value - 1 : t.value = l === "ArrowDown" ? 0 : o - 1);
225
- }
226
- return E(
227
- () => d.value,
228
- (e) => {
229
- e ? document.addEventListener("keydown", b) : document.removeEventListener("keydown", b), t.value = void 0;
230
- }
231
- ), E(
232
- () => a.open,
233
- (e) => f(e)
234
- ), (e, l) => (i(), y("div", {
235
- id: u(k),
236
- class: "m-dropdown"
237
- }, [
238
- L(W, F({
239
- color: e.color,
240
- size: "md",
241
- "aria-expanded": d.value,
242
- "aria-haspopup": "menu",
243
- disabled: e.disabled
244
- }, e.$attrs, {
245
- onClick: l[0] || (l[0] = O((o) => ["click"].includes(e.trigger) ? $() : void 0, ["stop"])),
246
- onFocus: l[1] || (l[1] = (o) => ["hover", "both"].includes(e.trigger) ? f(!0) : void 0),
247
- onBlur: l[2] || (l[2] = (o) => u(c)(!1)),
248
- onKeydown: B,
249
- onMouseenter: l[3] || (l[3] = (o) => ["hover", "both"].includes(e.trigger) ? d.value === !1 ? f(!0) : u(c)(!0) : void 0),
250
- onMouseleave: l[4] || (l[4] = (o) => ["hover", "both"].includes(e.trigger) ? u(c)(!1) : void 0)
251
- }), {
252
- default: I(() => [
253
- m(" @slot Menu Label "),
254
- g(e.$slots, "default")
255
- ]),
256
- _: 3
257
- /* FORWARDED */
258
- }, 16, ["color", "aria-expanded", "disabled"]),
259
- L(H, { name: "maz-scale-fade" }, {
260
- default: I(() => [
261
- d.value ? (i(), y(
262
- "div",
263
- {
264
- key: 0,
265
- role: "menu",
266
- "aria-label": "Menu",
267
- class: z(["menu", {
268
- "--top": e.position.includes("top"),
269
- "--left": e.position.includes("left"),
270
- "--right": e.position.includes("right"),
271
- "--bottom": e.position.includes("bottom")
272
- }]),
273
- tabindex: "-1",
274
- onFocus: l[5] || (l[5] = (o) => u(c)(!0)),
275
- onBlur: l[6] || (l[6] = (o) => u(c)(!1)),
276
- onMouseenter: l[7] || (l[7] = (o) => ["hover", "both"].includes(e.trigger) ? u(c)(!0) : void 0),
277
- onMouseleave: l[8] || (l[8] = (o) => ["hover", "both"].includes(e.trigger) ? u(c)(!1) : void 0)
278
- },
279
- [
280
- (i(!0), y(
281
- U,
282
- null,
283
- x(e.items, (o, v) => (i(), y(
284
- U,
285
- null,
286
- [
287
- m(`
288
- @slot Custom menu item
289
- @binding {Object} item - menu item
290
- `),
291
- g(e.$slots, "menuitem", { item: o }, () => [
292
- (i(), w(T(o.to ? "router-link" : o.action ? "button" : "a"), {
293
- key: v,
294
- href: o.href,
295
- tabindex: "-1",
296
- target: o.href ? o.target ?? "_self" : void 0,
297
- type: o.action ? "button" : void 0,
298
- class: z([[
299
- {
300
- "--is-keyboard-selected": t.value === v
301
- },
302
- o.class
303
- ], "menuitem"]),
304
- to: o.to,
305
- onClick: O((M) => o.action ? D(o, M) : h(), ["stop"])
306
- }, {
307
- default: I(() => [
308
- m(`
309
- @slot Custom menu item label
310
- @binding {Object} item - menu item
311
- `),
312
- g(e.$slots, "menuitem-label", { item: o }, () => [
313
- K(
314
- G(o.label),
315
- 1
316
- /* TEXT */
317
- )
318
- ])
319
- ]),
320
- _: 2
321
- /* DYNAMIC */
322
- }, 1032, ["href", "target", "type", "class", "to", "onClick"]))
323
- ])
324
- ],
325
- 64
326
- /* STABLE_FRAGMENT */
327
- ))),
328
- 256
329
- /* UNKEYED_FRAGMENT */
330
- ))
331
- ],
332
- 34
333
- /* CLASS, HYDRATE_EVENTS */
334
- )) : m("v-if", !0)
335
- ]),
336
- _: 3
337
- /* FORWARDED */
338
- })
339
- ], 8, Z));
340
- }
341
- });
342
- export {
343
- Q as _,
344
- ne as a
345
- };