morya-ui 0.5.0 → 0.5.1

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 (86) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{Input-D2bee2LU.js → Input-BErawS7K.js} +1 -5
  3. package/dist/{Pagination-DpNOb0CS.js → Pagination-B8WYoL2a.js} +1 -1
  4. package/dist/{Popover-Bnz7KNZq.js → Popover-zQChu00_.js} +6 -1
  5. package/dist/{Select-q4X2ff_M.js → Select-BaFKBeIh.js} +2 -2
  6. package/dist/{Textarea-DsFOAtPd.js → Textarea-WCEgpzbq.js} +1 -5
  7. package/dist/calendar/index.js +1 -1
  8. package/dist/color-picker/index.js +4 -4
  9. package/dist/command-menu/index.js +73 -66
  10. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
  11. package/dist/components/ColorPicker/types.d.ts +1 -1
  12. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  13. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  14. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  15. package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
  16. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  17. package/dist/components/Input/Input.vue.d.ts +0 -1
  18. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  19. package/dist/components/Input/types.d.ts +0 -2
  20. package/dist/components/Input/types.d.ts.map +1 -1
  21. package/dist/components/InputPassword/InputPassword.vue.d.ts +0 -1
  22. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  23. package/dist/components/InputPassword/types.d.ts +0 -2
  24. package/dist/components/InputPassword/types.d.ts.map +1 -1
  25. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  26. package/dist/components/Mentions/Mentions.vue.d.ts +0 -1
  27. package/dist/components/Mentions/Mentions.vue.d.ts.map +1 -1
  28. package/dist/components/Mentions/types.d.ts +0 -2
  29. package/dist/components/Mentions/types.d.ts.map +1 -1
  30. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  31. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  32. package/dist/components/Menu/styles.css +45 -3
  33. package/dist/components/Menu/types.d.ts +3 -1
  34. package/dist/components/Menu/types.d.ts.map +1 -1
  35. package/dist/components/Menubar/Menubar.vue.d.ts +2 -2
  36. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  37. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  38. package/dist/components/Rating/Rating.vue.d.ts +1 -1
  39. package/dist/components/Rating/types.d.ts +2 -2
  40. package/dist/components/Rating/types.d.ts.map +1 -1
  41. package/dist/components/Select/Select.vue.d.ts +1 -1
  42. package/dist/components/Select/types.d.ts +1 -1
  43. package/dist/components/Select/types.d.ts.map +1 -1
  44. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  45. package/dist/components/SpeedDial/SpeedDial.vue.d.ts +3 -3
  46. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  47. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  48. package/dist/components/Textarea/Textarea.vue.d.ts +0 -1
  49. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  50. package/dist/components/Textarea/types.d.ts +0 -2
  51. package/dist/components/Textarea/types.d.ts.map +1 -1
  52. package/dist/components/Tooltip/styles.css +15 -2
  53. package/dist/context-menu/index.js +92 -84
  54. package/dist/data-view/index.js +1 -1
  55. package/dist/dock/index.js +21 -18
  56. package/dist/dropdown/index.js +103 -95
  57. package/dist/{icon-H8prbteT.js → icon-CUrSaD8r.js} +4 -1
  58. package/dist/index.js +3464 -3391
  59. package/dist/input/index.js +1 -1
  60. package/dist/input-password/index.js +1 -5
  61. package/dist/list/index.js +1 -1
  62. package/dist/mega-menu/index.js +94 -87
  63. package/dist/mentions/index.js +35 -39
  64. package/dist/menu/index.js +235 -213
  65. package/dist/menu/style.css +60 -5
  66. package/dist/menubar/index.js +106 -98
  67. package/dist/pagination/index.js +1 -1
  68. package/dist/popover/index.js +1 -1
  69. package/dist/rating/index.js +2 -2
  70. package/dist/select/index.js +1 -1
  71. package/dist/shared/menu/icon.d.ts +3 -0
  72. package/dist/shared/menu/icon.d.ts.map +1 -1
  73. package/dist/shared/menu/index.d.ts +2 -2
  74. package/dist/shared/menu/index.d.ts.map +1 -1
  75. package/dist/shared/menu/types.d.ts +3 -1
  76. package/dist/shared/menu/types.d.ts.map +1 -1
  77. package/dist/sidebar/index.js +37 -29
  78. package/dist/speed-dial/index.js +101 -94
  79. package/dist/split-button/index.js +3 -3
  80. package/dist/styles.css +1 -1
  81. package/dist/table/index.js +3 -3
  82. package/dist/textarea/index.js +1 -1
  83. package/dist/toggle-button/index.js +1 -1
  84. package/dist/tooltip/style.css +15 -2
  85. package/dist/typography/index.js +1 -1
  86. package/package.json +1 -1
@@ -5,37 +5,37 @@ import { t as i } from "../useFloatingViewportSync-wLLKIGUA.js";
5
5
  import { t as a } from "../useMotionTransition-DohkfWRB.js";
6
6
  import { t as o } from "../Icon-CmHjx7W8.js";
7
7
  import { t as s } from "../Scrollbar-DTeJ8P5b.js";
8
- import { t as c } from "../icon-H8prbteT.js";
9
- import { t as l } from "../key-CaQYVkjh.js";
10
- import { t as u } from "../FlyoutSubmenu-C1n-fr6i.js";
8
+ import { t as c } from "../key-CaQYVkjh.js";
9
+ import { n as l, t as u } from "../icon-CUrSaD8r.js";
10
+ import { t as ee } from "../FlyoutSubmenu-C1n-fr6i.js";
11
11
  import { l as d } from "../config-Cd20zAyW.js";
12
12
  import { n as f } from "../locale-BcxMPufl.js";
13
13
  import "./style.js";
14
- import { Fragment as p, Teleport as m, Transition as h, computed as g, createBlock as ee, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as b, createTextVNode as x, createVNode as S, defineComponent as C, mergeProps as w, nextTick as te, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useAttrs as ne, watch as re, withCtx as P } from "vue";
14
+ import { Fragment as p, Teleport as m, Transition as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeStyle as O, onBeforeUnmount as k, openBlock as A, ref as j, renderList as te, renderSlot as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, useAttrs as I, watch as L, withCtx as R } from "vue";
15
15
  //#region src/components/Dropdown/DropdownNodes.vue?vue&type=script&setup=true&lang.ts
16
- var F = {
16
+ var ne = {
17
17
  key: 0,
18
18
  class: "m-dropdown__separator",
19
19
  role: "separator"
20
- }, I = {
20
+ }, z = {
21
21
  key: 1,
22
22
  class: "m-dropdown__group"
23
- }, L = { class: "m-dropdown__group-label" }, R = ["onMouseenter"], z = ["disabled"], B = {
23
+ }, B = { class: "m-dropdown__group-label" }, V = ["onMouseenter"], H = ["disabled"], U = {
24
24
  key: 0,
25
25
  class: "m-dropdown__icon",
26
26
  "aria-hidden": "true"
27
- }, V = {
27
+ }, W = {
28
28
  class: "m-dropdown__caret",
29
29
  "aria-hidden": "true"
30
- }, H = [
30
+ }, G = [
31
31
  "disabled",
32
32
  "onMouseenter",
33
33
  "onClick"
34
- ], U = {
34
+ ], K = {
35
35
  key: 0,
36
36
  class: "m-dropdown__icon",
37
37
  "aria-hidden": "true"
38
- }, W = /* @__PURE__ */ C({
38
+ }, q = /* @__PURE__ */ w({
39
39
  __name: "DropdownNodes",
40
40
  props: {
41
41
  items: {},
@@ -48,7 +48,7 @@ var F = {
48
48
  "submenuLeave"
49
49
  ],
50
50
  setup(e, { emit: t }) {
51
- let n = t, r = k(null), i = k(null), a;
51
+ let n = t, r = j(null), i = j(null), a;
52
52
  function d() {
53
53
  a && clearTimeout(a), a = void 0;
54
54
  }
@@ -64,105 +64,113 @@ var F = {
64
64
  return e.type === "group";
65
65
  }
66
66
  function g(e, t) {
67
- return l(e, t, "dd");
67
+ return c(e, t, "dd");
68
68
  }
69
- function C(e) {
70
- return c(e.icon);
69
+ function w(e) {
70
+ return typeof e.icon == "string" ? u(e.icon) : void 0;
71
71
  }
72
- function w(e, t, a) {
72
+ function T(e) {
73
+ return l(e.icon);
74
+ }
75
+ function E(e) {
76
+ return !!(w(e) || T(e));
77
+ }
78
+ function O(e, t, a) {
73
79
  if (e.disabled || m(e) || h(e) || (d(), n("highlight", e.value), !e.items?.length)) return;
74
80
  r.value = g(e, t);
75
81
  let o = a.currentTarget;
76
82
  i.value = o?.querySelector(".m-dropdown__item--parent") ?? o;
77
83
  }
78
- function te() {
84
+ function k() {
79
85
  f();
80
86
  }
81
- function E() {
87
+ function F() {
82
88
  d(), n("submenuEnter");
83
89
  }
84
- function D() {
90
+ function I() {
85
91
  f(), n("submenuLeave");
86
92
  }
87
- return (t, n) => (O(!0), v(p, null, A(e.items, (a, c) => (O(), v(p, { key: g(a, c) }, [m(a) ? (O(), v("div", F)) : h(a) ? (O(), v("div", I, [y("div", L, M(a.label), 1), a.items?.length ? (O(), ee(W, {
93
+ return (t, n) => (A(!0), y(p, null, te(e.items, (a, c) => (A(), y(p, { key: g(a, c) }, [m(a) ? (A(), y("div", ne)) : h(a) ? (A(), y("div", z, [b("div", B, P(a.label), 1), a.items?.length ? (A(), _(q, {
88
94
  key: 0,
89
95
  items: a.items,
90
96
  "highlighted-value": e.highlightedValue,
91
97
  onSelect: n[0] ||= (e) => t.$emit("select", e),
92
98
  onHighlight: n[1] ||= (e) => t.$emit("highlight", e),
93
- onSubmenuEnter: E,
94
- onSubmenuLeave: D
95
- }, b({ _: 2 }, [t.$slots.item ? {
99
+ onSubmenuEnter: F,
100
+ onSubmenuLeave: I
101
+ }, x({ _: 2 }, [t.$slots.item ? {
96
102
  name: "item",
97
- fn: P(({ item: e }) => [j(t.$slots, "item", { item: e })]),
103
+ fn: R(({ item: e }) => [M(t.$slots, "item", { item: e })]),
98
104
  key: "0"
99
- } : void 0]), 1032, ["items", "highlighted-value"])) : _("", !0)])) : a.items?.length ? (O(), v("div", {
105
+ } : void 0]), 1032, ["items", "highlighted-value"])) : v("", !0)])) : a.items?.length ? (A(), y("div", {
100
106
  key: 2,
101
107
  class: "m-dropdown__submenu-wrap",
102
- onMouseenter: (e) => w(a, c, e),
103
- onMouseleave: te
104
- }, [y("button", {
108
+ onMouseenter: (e) => O(a, c, e),
109
+ onMouseleave: k
110
+ }, [b("button", {
105
111
  type: "button",
106
- class: T(["m-dropdown__item m-dropdown__item--parent", { "m-dropdown__item--highlighted": e.highlightedValue === a.value }]),
112
+ class: D(["m-dropdown__item m-dropdown__item--parent", { "m-dropdown__item--highlighted": e.highlightedValue === a.value }]),
107
113
  role: "menuitem",
108
114
  disabled: a.disabled,
109
115
  "aria-haspopup": !0
110
116
  }, [
111
- C(a) ? (O(), v("span", B, [S(o, {
112
- name: C(a),
117
+ E(a) ? (A(), y("span", U, [w(a) ? (A(), _(o, {
118
+ key: 0,
119
+ name: w(a),
113
120
  size: "sm"
114
- }, null, 8, ["name"])])) : _("", !0),
115
- j(t.$slots, "item", { item: a }, () => [x(M(a.label), 1)]),
116
- y("span", V, [S(o, {
121
+ }, null, 8, ["name"])) : T(a) ? (A(), _(N(T(a)), { key: 1 })) : v("", !0)])) : v("", !0),
122
+ M(t.$slots, "item", { item: a }, () => [S(P(a.label), 1)]),
123
+ b("span", W, [C(o, {
117
124
  name: "chevron-right",
118
125
  size: "sm"
119
126
  })])
120
- ], 10, z), S(u, {
127
+ ], 10, H), C(ee, {
121
128
  open: r.value === g(a, c),
122
129
  anchor: r.value === g(a, c) ? i.value : null,
123
130
  "panel-class": "m-dropdown__submenu",
124
- onEnter: E,
125
- onLeave: D
131
+ onEnter: F,
132
+ onLeave: I
126
133
  }, {
127
- default: P(() => [S(s, {
134
+ default: R(() => [C(s, {
128
135
  class: "m-dropdown__submenu-scroll",
129
136
  "fit-content": "",
130
137
  "wrap-class": "m-dropdown__submenu-wrap-inner",
131
138
  "view-class": "m-dropdown__submenu-view"
132
139
  }, {
133
- default: P(() => [S(W, {
140
+ default: R(() => [C(q, {
134
141
  items: a.items,
135
142
  "highlighted-value": e.highlightedValue,
136
143
  onSelect: n[2] ||= (e) => t.$emit("select", e),
137
144
  onHighlight: n[3] ||= (e) => t.$emit("highlight", e),
138
- onSubmenuEnter: E,
139
- onSubmenuLeave: D
140
- }, b({ _: 2 }, [t.$slots.item ? {
145
+ onSubmenuEnter: F,
146
+ onSubmenuLeave: I
147
+ }, x({ _: 2 }, [t.$slots.item ? {
141
148
  name: "item",
142
- fn: P(({ item: e }) => [j(t.$slots, "item", { item: e })]),
149
+ fn: R(({ item: e }) => [M(t.$slots, "item", { item: e })]),
143
150
  key: "0"
144
151
  } : void 0]), 1032, ["items", "highlighted-value"])]),
145
152
  _: 2
146
153
  }, 1024)]),
147
154
  _: 2
148
- }, 1032, ["open", "anchor"])], 40, R)) : (O(), v("button", {
155
+ }, 1032, ["open", "anchor"])], 40, V)) : (A(), y("button", {
149
156
  key: 3,
150
157
  type: "button",
151
- class: T(["m-dropdown__item", { "m-dropdown__item--highlighted": e.highlightedValue === a.value }]),
158
+ class: D(["m-dropdown__item", { "m-dropdown__item--highlighted": e.highlightedValue === a.value }]),
152
159
  role: "menuitem",
153
160
  disabled: a.disabled,
154
161
  onMouseenter: (e) => !a.disabled && t.$emit("highlight", a.value),
155
162
  onClick: (e) => t.$emit("select", a)
156
- }, [C(a) ? (O(), v("span", U, [S(o, {
157
- name: C(a),
163
+ }, [E(a) ? (A(), y("span", K, [w(a) ? (A(), _(o, {
164
+ key: 0,
165
+ name: w(a),
158
166
  size: "sm"
159
- }, null, 8, ["name"])])) : _("", !0), j(t.$slots, "item", { item: a }, () => [x(M(a.label), 1)])], 42, H))], 64))), 128));
167
+ }, null, 8, ["name"])) : T(a) ? (A(), _(N(T(a)), { key: 1 })) : v("", !0)])) : v("", !0), M(t.$slots, "item", { item: a }, () => [S(P(a.label), 1)])], 42, G))], 64))), 128));
160
168
  }
161
- }), ie = [
169
+ }), re = [
162
170
  "tabindex",
163
171
  "aria-expanded",
164
172
  "aria-disabled"
165
- ], G = /* @__PURE__ */ C({
173
+ ], J = /* @__PURE__ */ w({
166
174
  inheritAttrs: !1,
167
175
  __name: "Dropdown",
168
176
  props: {
@@ -196,85 +204,85 @@ var F = {
196
204
  },
197
205
  emits: ["update:modelValue", "select"],
198
206
  setup(o, { emit: c }) {
199
- let l = o, u = c, p = ne(), { rootAttrs: C } = e(p, () => l.pt), A = d(), { transitionName: F, transitionCss: I } = a({
207
+ let l = o, u = c, ee = I(), { rootAttrs: p } = e(ee, () => l.pt), w = d(), { transitionName: te, transitionCss: N } = a({
200
208
  role: "popup",
201
209
  local: () => l.transition,
202
210
  componentName: "Dropdown",
203
211
  fallback: "scale-fade"
204
- }), L = f(), R = k(null), z = k(null), B = k(null), V = k({}), H = k(-1), U = g(() => l.items.filter((e) => !e.disabled && !e.separator && e.type !== "divider" && e.type !== "group" && !e.items?.length && e.value != null)), G = g(() => U.value[H.value]?.value), K, q, J = g(() => t(l, A.value.appendTo)), Y = g(() => n(l, A.value.appendTo));
205
- function ae() {
206
- H.value = U.value.length ? 0 : -1;
212
+ }), ne = f(), z = j(null), B = j(null), V = j(null), H = j({}), U = j(-1), W = g(() => l.items.filter((e) => !e.disabled && !e.separator && e.type !== "divider" && e.type !== "group" && !e.items?.length && e.value != null)), G = g(() => W.value[U.value]?.value), K, J, Y = g(() => t(l, w.value.appendTo)), X = g(() => n(l, w.value.appendTo));
213
+ function ie() {
214
+ U.value = -1;
207
215
  }
208
- function X() {
209
- if (!Y.value || !z.value) return;
210
- let e = z.value.getBoundingClientRect();
211
- V.value = r(e, l.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
216
+ function ae() {
217
+ if (!X.value || !B.value) return;
218
+ let e = B.value.getBoundingClientRect();
219
+ H.value = r(e, l.placement === "bottom-end" ? "bottom-end" : "bottom-start", { minWidth: `${e.width}px` });
212
220
  }
213
221
  function Z(e) {
214
- l.disabled && e || (u("update:modelValue", e), e && (ae(), te(() => {
215
- X(), B.value?.focus({ preventScroll: !0 });
222
+ l.disabled && e || (u("update:modelValue", e), e && (ie(), E(() => {
223
+ ae(), V.value?.focus({ preventScroll: !0 });
216
224
  })));
217
225
  }
218
226
  function oe() {
219
227
  l.disabled || Z(!l.modelValue);
220
228
  }
221
229
  function se() {
222
- l.modelValue && X();
230
+ l.modelValue && ae();
223
231
  }
224
232
  function ce(e) {
225
233
  e.disabled || e.separator || e.type === "divider" || e.type === "group" || (e.command?.(), u("select", e), l.closeOnSelect && Z(!1));
226
234
  }
227
235
  function Q() {
228
- K && clearTimeout(K), q && clearTimeout(q), K = void 0, q = void 0;
236
+ K && clearTimeout(K), J && clearTimeout(J), K = void 0, J = void 0;
229
237
  }
230
238
  function le() {
231
239
  l.disabled || l.trigger !== "hover" || (Q(), K = setTimeout(Z, l.showDelay, !0));
232
240
  }
233
241
  function ue() {
234
- l.trigger === "hover" && (Q(), q = setTimeout(Z, l.hideDelay, !1));
242
+ l.trigger === "hover" && (Q(), J = setTimeout(Z, l.hideDelay, !1));
235
243
  }
236
244
  function de() {
237
245
  l.trigger === "hover" && Q();
238
246
  }
239
247
  function fe() {
240
- l.trigger === "hover" && (Q(), q = setTimeout(Z, l.hideDelay, !1));
248
+ l.trigger === "hover" && (Q(), J = setTimeout(Z, l.hideDelay, !1));
241
249
  }
242
250
  function pe(e) {
243
251
  if (l.modelValue) {
244
252
  if (e.key === "Escape") {
245
- e.preventDefault(), Z(!1), z.value?.focus({ preventScroll: !0 });
253
+ e.preventDefault(), Z(!1), B.value?.focus({ preventScroll: !0 });
246
254
  return;
247
255
  }
248
256
  if (e.key === "ArrowDown" || e.key === "ArrowUp") {
249
257
  e.preventDefault();
250
- let t = e.key === "ArrowDown" ? 1 : -1, n = U.value.length;
251
- n && (H.value = (H.value + t + n) % n);
258
+ let t = e.key === "ArrowDown" ? 1 : -1, n = W.value.length;
259
+ n && (U.value = (U.value + t + n) % n);
252
260
  }
253
- if (e.key === "Home" && (e.preventDefault(), H.value = 0), e.key === "End" && (e.preventDefault(), H.value = U.value.length - 1), e.key === "Enter" || e.key === " ") {
254
- let t = U.value[H.value];
255
- H.value >= 0 && t && (e.preventDefault(), ce(t));
261
+ if (e.key === "Home" && (e.preventDefault(), U.value = 0), e.key === "End" && (e.preventDefault(), U.value = W.value.length - 1), e.key === "Enter" || e.key === " ") {
262
+ let t = W.value[U.value];
263
+ U.value >= 0 && t && (e.preventDefault(), ce(t));
256
264
  }
257
265
  }
258
266
  }
259
267
  function me(e) {
260
268
  l.disabled || (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), l.modelValue || Z(!0));
261
269
  }
262
- re(() => l.disabled, (e) => {
270
+ L(() => l.disabled, (e) => {
263
271
  e && l.modelValue && Z(!1);
264
272
  });
265
273
  function $(e) {
266
- l.modelValue && R.value && !R.value.contains(e.target) && !B.value?.contains(e.target) && Z(!1);
274
+ l.modelValue && z.value && !z.value.contains(e.target) && !V.value?.contains(e.target) && Z(!1);
267
275
  }
268
- return re(() => l.modelValue, (e) => {
276
+ return L(() => l.modelValue, (e) => {
269
277
  e ? document.addEventListener("click", $) : document.removeEventListener("click", $);
270
- }, { immediate: !0 }), i(() => l.modelValue && Y.value, se), D(() => {
278
+ }, { immediate: !0 }), i(() => l.modelValue && X.value, se), k(() => {
271
279
  document.removeEventListener("click", $), Q();
272
- }), (e, t) => (O(), v("div", w({
280
+ }), (e, t) => (A(), y("div", T({
273
281
  ref_key: "root",
274
- ref: R
275
- }, N(C), { class: ["m-dropdown", { "m-dropdown--disabled": o.disabled }] }), [y("span", {
282
+ ref: z
283
+ }, F(p), { class: ["m-dropdown", { "m-dropdown--disabled": o.disabled }] }), [b("span", {
276
284
  ref_key: "trigger",
277
- ref: z,
285
+ ref: B,
278
286
  class: "m-dropdown__trigger",
279
287
  role: "button",
280
288
  tabindex: o.disabled ? -1 : 0,
@@ -285,47 +293,47 @@ var F = {
285
293
  onMouseenter: le,
286
294
  onMouseleave: ue,
287
295
  onKeydown: me
288
- }, [j(e.$slots, "trigger", {}, () => [x(M(N(L).openMenu), 1)])], 40, ie), (O(), ee(m, {
289
- to: J.value.to,
290
- disabled: J.value.disabled
291
- }, [S(h, {
292
- name: N(F),
293
- css: N(I)
296
+ }, [M(e.$slots, "trigger", {}, () => [S(P(F(ne).openMenu), 1)])], 40, re), (A(), _(m, {
297
+ to: Y.value.to,
298
+ disabled: Y.value.disabled
299
+ }, [C(h, {
300
+ name: F(te),
301
+ css: F(N)
294
302
  }, {
295
- default: P(() => [o.modelValue ? (O(), v("div", {
303
+ default: R(() => [o.modelValue ? (A(), y("div", {
296
304
  key: 0,
297
305
  ref_key: "menu",
298
- ref: B,
299
- class: T(["m-dropdown__menu", [`m-dropdown__menu--${o.placement}`, { "m-dropdown__menu--teleported": Y.value }]]),
300
- style: E(Y.value ? V.value : void 0),
306
+ ref: V,
307
+ class: D(["m-dropdown__menu", [`m-dropdown__menu--${o.placement}`, { "m-dropdown__menu--teleported": X.value }]]),
308
+ style: O(X.value ? H.value : void 0),
301
309
  role: "menu",
302
310
  tabindex: "-1",
303
311
  onKeydown: pe,
304
312
  onMouseenter: de,
305
313
  onMouseleave: fe
306
- }, [S(s, {
314
+ }, [C(s, {
307
315
  class: "m-dropdown__scroll",
308
316
  "fit-content": "",
309
317
  "wrap-class": "m-dropdown__scroll-wrap",
310
318
  "view-class": "m-dropdown__scroll-view"
311
319
  }, {
312
- default: P(() => [S(W, {
320
+ default: R(() => [C(q, {
313
321
  items: o.items,
314
322
  "highlighted-value": G.value,
315
323
  onSelect: ce,
316
- onHighlight: t[1] ||= (e) => H.value = U.value.findIndex((t) => t.value === e),
324
+ onHighlight: t[1] ||= (e) => U.value = W.value.findIndex((t) => t.value === e),
317
325
  onSubmenuEnter: de,
318
326
  onSubmenuLeave: fe
319
- }, b({ _: 2 }, [e.$slots.item ? {
327
+ }, x({ _: 2 }, [e.$slots.item ? {
320
328
  name: "item",
321
- fn: P(({ item: t }) => [j(e.$slots, "item", { item: t })]),
329
+ fn: R(({ item: t }) => [M(e.$slots, "item", { item: t })]),
322
330
  key: "0"
323
331
  } : void 0]), 1032, ["items", "highlighted-value"])]),
324
332
  _: 3
325
- })], 38)) : _("", !0)]),
333
+ })], 38)) : v("", !0)]),
326
334
  _: 3
327
335
  }, 8, ["name", "css"])], 8, ["to", "disabled"]))], 16));
328
336
  }
329
337
  });
330
338
  //#endregion
331
- export { G as MDropdown };
339
+ export { J as MDropdown };
@@ -14,5 +14,8 @@ var t = {
14
14
  function n(n) {
15
15
  if (n) return e(n) ? n : t[n];
16
16
  }
17
+ function r(e) {
18
+ if (!(!e || typeof e == "string")) return e;
19
+ }
17
20
  //#endregion
18
- export { n as t };
21
+ export { r as n, n as t };