@m3ui-vue/m3ui-vue 0.9.2 → 1.0.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 (139) hide show
  1. package/README.md +26 -29
  2. package/dist/API.md +242 -22
  3. package/dist/{MIcon-CaEooCmZ.js → MIcon-DLOkQduI.js} +10 -3
  4. package/dist/MIcon-DLOkQduI.js.map +1 -0
  5. package/dist/{MTextField-Ck0oWDMk.js → MTextField-TZ7lfr09.js} +551 -216
  6. package/dist/MTextField-TZ7lfr09.js.map +1 -0
  7. package/dist/THIRD_PARTY_LICENSES.md +547 -0
  8. package/dist/api.json +1 -1
  9. package/dist/code-editor.js +2 -2
  10. package/dist/components/MAppBarWithSearch.vue.d.ts +70 -0
  11. package/dist/components/MBottomAppBar.vue.d.ts +37 -0
  12. package/dist/components/MBottomSheetScaffold.vue.d.ts +40 -0
  13. package/dist/components/MButton.vue.d.ts +4 -2
  14. package/dist/components/MButtonGroup.vue.d.ts +2 -0
  15. package/dist/components/MChatBubble.vue.d.ts +1 -1
  16. package/dist/components/MChip.vue.d.ts +19 -2
  17. package/dist/components/MContainer.vue.d.ts +1 -1
  18. package/dist/components/MDataTable.vue.d.ts +1 -1
  19. package/dist/components/MDialog.vue.d.ts +1 -1
  20. package/dist/components/MFab.vue.d.ts +15 -4
  21. package/dist/components/MIcon.vue.d.ts +3 -0
  22. package/dist/components/MIconButton.vue.d.ts +15 -1
  23. package/dist/components/MListItem.vue.d.ts +2 -2
  24. package/dist/components/MLoadingOverlay.vue.d.ts +1 -1
  25. package/dist/components/MMenuItem.vue.d.ts +17 -4
  26. package/dist/components/MNavigationRail.vue.d.ts +6 -0
  27. package/dist/components/MSearchBar.vue.d.ts +5 -3
  28. package/dist/components/MShortNavigationBar.vue.d.ts +1 -1
  29. package/dist/components/MSplitButton.vue.d.ts +2 -0
  30. package/dist/components/MTable.vue.d.ts +1 -1
  31. package/dist/components/MTabs.vue.d.ts +6 -0
  32. package/dist/components/MTimePickerModal.vue.d.ts +3 -0
  33. package/dist/components/MTimeScroll.vue.d.ts +22 -0
  34. package/dist/components/MToggleButton.vue.d.ts +2 -0
  35. package/dist/components/MTopAppBar.vue.d.ts +33 -2
  36. package/dist/components/MTree.vue.d.ts +2 -2
  37. package/dist/components/_MDrawerItemList.vue.d.ts +3 -0
  38. package/dist/composables/_searchAppBar.d.ts +6 -0
  39. package/dist/composables/_themeTransition.d.ts +2 -0
  40. package/dist/composables/_useSpring.d.ts +5 -5
  41. package/dist/composables/motion.d.ts +101 -0
  42. package/dist/composables/useColorPalette.d.ts +10 -0
  43. package/dist/composables/useLocale.d.ts +9 -0
  44. package/dist/directives/vRipple.d.ts +16 -0
  45. package/dist/emoji-names-de-BphO5XpV.js.map +1 -1
  46. package/dist/emoji-names-en-9ZvMRvzi.js.map +1 -1
  47. package/dist/emoji-names-es-DvfWU3Pj.js.map +1 -1
  48. package/dist/emoji-names-fr-B-jhUlsP.js.map +1 -1
  49. package/dist/emoji-names-ja-l8cMFJo1.js.map +1 -1
  50. package/dist/emoji-names-ko-YP-o9G0c.js.map +1 -1
  51. package/dist/emoji-names-pt-DGj_Js4M.js.map +1 -1
  52. package/dist/emoji-names-zh-Dzecwtw_.js.map +1 -1
  53. package/dist/index.d.ts +11 -1
  54. package/dist/locales/index.js +63 -0
  55. package/dist/locales/index.js.map +1 -1
  56. package/dist/m3ui-vue.css +1 -1
  57. package/dist/m3ui.js +7716 -6768
  58. package/dist/m3ui.js.map +1 -1
  59. package/dist/plugin.d.ts +7 -0
  60. package/dist/rich-text-editor.js +22 -22
  61. package/dist/styles/palettes-contrast.css +7764 -0
  62. package/dist/styles/theme.css +59 -2
  63. package/dist/styles.css +1 -1
  64. package/dist/terminal.js +1 -1
  65. package/dist/{useLocale-CFW8cIzL.js → useLocale-CuvWRZ1h.js} +10 -1
  66. package/dist/useLocale-CuvWRZ1h.js.map +1 -0
  67. package/package.json +4 -2
  68. package/src/__tests__/MAppBarWithSearch.test.ts +96 -0
  69. package/src/__tests__/MBottomAppBar.test.ts +71 -0
  70. package/src/__tests__/MBottomSheetScaffold.test.ts +101 -0
  71. package/src/__tests__/MChip.test.ts +63 -0
  72. package/src/__tests__/MFab.test.ts +36 -0
  73. package/src/__tests__/MIconButton.test.ts +60 -0
  74. package/src/__tests__/MMenuItem.test.ts +84 -0
  75. package/src/__tests__/MNavigationRail.test.ts +77 -0
  76. package/src/__tests__/MScrollField.test.ts +28 -0
  77. package/src/__tests__/MTabs.test.ts +39 -0
  78. package/src/__tests__/MTimePickerModal.test.ts +52 -0
  79. package/src/__tests__/MTimeScroll.test.ts +44 -0
  80. package/src/__tests__/MTopAppBar.test.ts +99 -0
  81. package/src/__tests__/contrast.test.ts +64 -0
  82. package/src/__tests__/dynamicColor.test.ts +17 -0
  83. package/src/__tests__/motion.test.ts +37 -0
  84. package/src/__tests__/themeTransition.test.ts +119 -0
  85. package/src/__tests__/vRipple.test.ts +92 -0
  86. package/src/components/MAppBarWithSearch.vue +236 -0
  87. package/src/components/MBottomAppBar.vue +181 -0
  88. package/src/components/MBottomSheetScaffold.vue +296 -0
  89. package/src/components/MBreadcrumbs.vue +1 -1
  90. package/src/components/MButton.vue +4 -13
  91. package/src/components/MButtonGroup.vue +4 -11
  92. package/src/components/MChip.vue +137 -5
  93. package/src/components/MFab.vue +81 -27
  94. package/src/components/MIcon.vue +4 -2
  95. package/src/components/MIconButton.vue +96 -24
  96. package/src/components/MMenuItem.vue +115 -13
  97. package/src/components/MNavigationDrawer.vue +2 -2
  98. package/src/components/MNavigationRail.vue +135 -8
  99. package/src/components/MScrollField.vue +10 -2
  100. package/src/components/MSearchBar.vue +28 -12
  101. package/src/components/MSplitButton.vue +5 -12
  102. package/src/components/MTabs.vue +16 -5
  103. package/src/components/MTimePickerModal.vue +48 -8
  104. package/src/components/MTimeScroll.vue +161 -0
  105. package/src/components/MToggleButton.vue +5 -12
  106. package/src/components/MTopAppBar.vue +252 -28
  107. package/src/composables/_carouselStrategy.ts +3 -0
  108. package/src/composables/_searchAppBar.ts +9 -0
  109. package/src/composables/_themeColor.ts +11 -4
  110. package/src/composables/_themeTransition.ts +71 -0
  111. package/src/composables/_useSpring.ts +12 -20
  112. package/src/composables/motion.ts +73 -0
  113. package/src/composables/useColorPalette.ts +103 -20
  114. package/src/composables/useLocale.ts +18 -0
  115. package/src/composables/useTheme.ts +4 -12
  116. package/src/data/emoji-names/emoji-names-de.ts +1 -0
  117. package/src/data/emoji-names/emoji-names-en.ts +1 -0
  118. package/src/data/emoji-names/emoji-names-es.ts +1 -0
  119. package/src/data/emoji-names/emoji-names-fr.ts +1 -0
  120. package/src/data/emoji-names/emoji-names-ja.ts +1 -0
  121. package/src/data/emoji-names/emoji-names-ko.ts +1 -0
  122. package/src/data/emoji-names/emoji-names-pt.ts +1 -0
  123. package/src/data/emoji-names/emoji-names-zh.ts +1 -0
  124. package/src/data/emojis.ts +1 -0
  125. package/src/directives/vRipple.ts +73 -0
  126. package/src/index.ts +13 -1
  127. package/src/locales/de.ts +9 -0
  128. package/src/locales/es.ts +9 -0
  129. package/src/locales/fr.ts +9 -0
  130. package/src/locales/ja.ts +9 -0
  131. package/src/locales/ko.ts +9 -0
  132. package/src/locales/pt.ts +9 -0
  133. package/src/locales/zh.ts +9 -0
  134. package/src/plugin.ts +11 -1
  135. package/src/styles/palettes-contrast.css +7764 -0
  136. package/src/styles/theme.css +59 -2
  137. package/dist/MIcon-CaEooCmZ.js.map +0 -1
  138. package/dist/MTextField-Ck0oWDMk.js.map +0 -1
  139. package/dist/useLocale-CFW8cIzL.js.map +0 -1
@@ -1,16 +1,45 @@
1
- import { i as e } from "./useLocale-CFW8cIzL.js";
2
- import { t } from "./MIcon-CaEooCmZ.js";
1
+ import { i as e } from "./useLocale-CuvWRZ1h.js";
2
+ import { t } from "./MIcon-DLOkQduI.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
- import { Fragment as r, Teleport as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as b, onUnmounted as x, openBlock as S, provide as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, useId as A, useSlots as j, watch as ee, withCtx as M, withModifiers as N } from "vue";
5
- //#region src/components/MSpinner.vue?vue&type=script&setup=true&lang.ts
6
- var P = ["aria-label"], F = {
4
+ import { Fragment as r, Teleport as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as b, onUnmounted as x, openBlock as S, provide as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, useId as A, useSlots as j, watch as ee, withCtx as M, withDirectives as N, withModifiers as P } from "vue";
5
+ //#region src/directives/vRipple.ts
6
+ function F(e) {
7
+ return e === !1 ? { disabled: !0 } : typeof e == "string" ? { color: e } : e === !0 || e == null ? {} : e;
8
+ }
9
+ function te(e, t, n) {
10
+ let r = e.getBoundingClientRect(), i = Math.max(r.width, r.height) * 2, a = document.createElement("span");
11
+ a.className = "m3-ripple-layer";
12
+ let o = document.createElement("span");
13
+ o.className = "m3-ripple", o.style.cssText = `width:${i}px;height:${i}px;top:${t.clientY - r.top - i / 2}px;left:${t.clientX - r.left - i / 2}px`, n && (o.style.background = n), a.appendChild(o), e.appendChild(a), o.addEventListener("animationend", () => a.remove(), { once: !0 });
14
+ }
15
+ var I = /* @__PURE__ */ new WeakMap(), L = {
16
+ mounted(e, t) {
17
+ let n = {
18
+ options: F(t.value),
19
+ onPointerDown(t) {
20
+ if (n.options.disabled || t.button !== 0) return;
21
+ let { position: r } = getComputedStyle(e);
22
+ (!r || r === "static") && (e.style.position = "relative"), te(e, t, n.options.color);
23
+ }
24
+ };
25
+ I.set(e, n), e.addEventListener("pointerdown", n.onPointerDown);
26
+ },
27
+ updated(e, t) {
28
+ let n = I.get(e);
29
+ n && (n.options = F(t.value));
30
+ },
31
+ beforeUnmount(e) {
32
+ let t = I.get(e);
33
+ t && e.removeEventListener("pointerdown", t.onPointerDown), I.delete(e);
34
+ }
35
+ }, R = ["aria-label"], z = {
7
36
  key: 0,
8
37
  class: "block h-full w-full animate-spin rounded-full border-2 border-current border-t-transparent"
9
- }, I = [
38
+ }, B = [
10
39
  "width",
11
40
  "height",
12
41
  "viewBox"
13
- ], te = ["d", "stroke-dasharray"], L = 3, ne = 9, R = /* @__PURE__ */ p({
42
+ ], V = ["d", "stroke-dasharray"], H = 3, U = 9, W = /* @__PURE__ */ p({
14
43
  __name: "MSpinner",
15
44
  props: {
16
45
  size: { default: 20 },
@@ -21,10 +50,10 @@ var P = ["aria-label"], F = {
21
50
  label: {}
22
51
  },
23
52
  setup(t) {
24
- let n = t, r = e(), i = o(() => (n.size / 2 - 1 - L / 2) / 1.25), a = o(() => n.size / 2), s = o(() => {
53
+ let n = t, r = e(), i = o(() => (n.size / 2 - 1 - H / 2) / 1.25), a = o(() => n.size / 2), s = o(() => {
25
54
  let e = a.value, t = i.value, n = t * .08, r = [], o = 0, s = 0, c = 0;
26
55
  for (let i = 0; i <= 216; i++) {
27
- let a = 2 * Math.PI * i / 216 - Math.PI / 2, l = t + n * Math.sin(ne * a), u = e + l * Math.cos(a), d = e + l * Math.sin(a);
56
+ let a = 2 * Math.PI * i / 216 - Math.PI / 2, l = t + n * Math.sin(U * a), u = e + l * Math.cos(a), d = e + l * Math.sin(a);
28
57
  i > 0 && (o += Math.sqrt((u - s) ** 2 + (d - c) ** 2)), r.push(`${i === 0 ? "M" : "L"}${u.toFixed(2)},${d.toFixed(2)}`), s = u, c = d;
29
58
  }
30
59
  let l = o * .58, u = o - l, d = `${l.toFixed(1)} ${u.toFixed(1)}`;
@@ -53,14 +82,14 @@ var P = ["aria-label"], F = {
53
82
  }, [u("path", {
54
83
  d: s.value.path,
55
84
  stroke: "currentColor",
56
- "stroke-width": L,
85
+ "stroke-width": H,
57
86
  "stroke-linecap": "round",
58
87
  "stroke-dasharray": s.value.dash,
59
88
  class: "animate-[m3-wavy-travel_2s_linear_infinite]",
60
89
  style: v({ "--m3-wave-len": s.value.len })
61
- }, null, 12, te)], 12, I)) : (S(), l("span", F))], 12, P));
90
+ }, null, 12, V)], 12, B)) : (S(), l("span", z))], 12, R));
62
91
  }
63
- }), z = [
92
+ }), ne = [
64
93
  "bg-surface-container-highest",
65
94
  "bg-surface-container-high",
66
95
  "bg-surface-container-low",
@@ -87,11 +116,11 @@ var P = ["aria-label"], F = {
87
116
  "bg-tertiary",
88
117
  "bg-error"
89
118
  ];
90
- function B(e) {
91
- for (let t of z) if (e.classList.contains(t)) return `var(--color-${t.slice(3)})`;
119
+ function re(e) {
120
+ for (let t of ne) if (e.classList.contains(t)) return `var(--color-${t.slice(3)})`;
92
121
  return null;
93
122
  }
94
- function V(e) {
123
+ function G(e) {
95
124
  if (!e || e === "transparent") return !0;
96
125
  let t = e.match(/^rgba?\(([^)]+)\)$/);
97
126
  if (t) {
@@ -100,7 +129,7 @@ function V(e) {
100
129
  }
101
130
  return !1;
102
131
  }
103
- function H(e, t) {
132
+ function K(e, t) {
104
133
  let n = w("var(--color-surface)");
105
134
  function r(r) {
106
135
  n.value = r, e.value?.style.setProperty("--field-bg", t() ?? r);
@@ -108,7 +137,7 @@ function H(e, t) {
108
137
  function i() {
109
138
  let t = e.value?.parentElement ?? null;
110
139
  for (; t;) {
111
- let e = B(t);
140
+ let e = re(t);
112
141
  if (e) {
113
142
  r(e);
114
143
  return;
@@ -118,7 +147,7 @@ function H(e, t) {
118
147
  return;
119
148
  }
120
149
  let n = getComputedStyle(t).backgroundColor;
121
- if (!V(n)) {
150
+ if (!G(n)) {
122
151
  r(n);
123
152
  return;
124
153
  }
@@ -140,7 +169,7 @@ function H(e, t) {
140
169
  }
141
170
  //#endregion
142
171
  //#region src/composables/useDebounce.ts
143
- function U(e, t) {
172
+ function q(e, t) {
144
173
  let n = null;
145
174
  function r(...r) {
146
175
  n && clearTimeout(n), n = setTimeout(() => {
@@ -156,8 +185,180 @@ function U(e, t) {
156
185
  };
157
186
  }
158
187
  //#endregion
159
- //#region src/components/MIconButton.vue?vue&type=script&setup=true&lang.ts
160
- var re = "relative inline-flex shrink-0 items-center justify-center overflow-hidden transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", W = /* @__PURE__ */ p({
188
+ //#region src/composables/motion.ts
189
+ var J = {
190
+ standard: {
191
+ fastSpatial: {
192
+ dampingRatio: .9,
193
+ stiffness: 1400
194
+ },
195
+ defaultSpatial: {
196
+ dampingRatio: .9,
197
+ stiffness: 700
198
+ },
199
+ slowSpatial: {
200
+ dampingRatio: .9,
201
+ stiffness: 300
202
+ },
203
+ fastEffects: {
204
+ dampingRatio: 1,
205
+ stiffness: 3800
206
+ },
207
+ defaultEffects: {
208
+ dampingRatio: 1,
209
+ stiffness: 1600
210
+ },
211
+ slowEffects: {
212
+ dampingRatio: 1,
213
+ stiffness: 800
214
+ }
215
+ },
216
+ expressive: {
217
+ fastSpatial: {
218
+ dampingRatio: .6,
219
+ stiffness: 800
220
+ },
221
+ defaultSpatial: {
222
+ dampingRatio: .8,
223
+ stiffness: 380
224
+ },
225
+ slowSpatial: {
226
+ dampingRatio: .8,
227
+ stiffness: 200
228
+ },
229
+ fastEffects: {
230
+ dampingRatio: 1,
231
+ stiffness: 3800
232
+ },
233
+ defaultEffects: {
234
+ dampingRatio: 1,
235
+ stiffness: 1600
236
+ },
237
+ slowEffects: {
238
+ dampingRatio: 1,
239
+ stiffness: 800
240
+ }
241
+ }
242
+ }, Y = {
243
+ emphasized: [
244
+ .2,
245
+ 0,
246
+ 0,
247
+ 1
248
+ ],
249
+ emphasizedDecelerate: [
250
+ .05,
251
+ .7,
252
+ .1,
253
+ 1
254
+ ],
255
+ emphasizedAccelerate: [
256
+ .3,
257
+ 0,
258
+ .8,
259
+ .15
260
+ ],
261
+ standard: [
262
+ .2,
263
+ 0,
264
+ 0,
265
+ 1
266
+ ],
267
+ standardDecelerate: [
268
+ 0,
269
+ 0,
270
+ 0,
271
+ 1
272
+ ],
273
+ standardAccelerate: [
274
+ .3,
275
+ 0,
276
+ 1,
277
+ 1
278
+ ],
279
+ legacy: [
280
+ .4,
281
+ 0,
282
+ .2,
283
+ 1
284
+ ],
285
+ legacyDecelerate: [
286
+ 0,
287
+ 0,
288
+ .2,
289
+ 1
290
+ ],
291
+ legacyAccelerate: [
292
+ .4,
293
+ 0,
294
+ 1,
295
+ 1
296
+ ],
297
+ linear: [
298
+ 0,
299
+ 0,
300
+ 1,
301
+ 1
302
+ ]
303
+ }, X = {
304
+ short1: 50,
305
+ short2: 100,
306
+ short3: 150,
307
+ short4: 200,
308
+ medium1: 250,
309
+ medium2: 300,
310
+ medium3: 350,
311
+ medium4: 400,
312
+ long1: 450,
313
+ long2: 500,
314
+ long3: 550,
315
+ long4: 600,
316
+ extraLong1: 700,
317
+ extraLong2: 800,
318
+ extraLong3: 900,
319
+ extraLong4: 1e3
320
+ };
321
+ function ie(e, t, n, r) {
322
+ return (i) => {
323
+ if (i <= 0) return 0;
324
+ if (i >= 1) return 1;
325
+ let a = i;
326
+ for (let t = 0; t < 8; t++) {
327
+ let t = 3 * a * (1 - a) ** 2 * e + 3 * a ** 2 * (1 - a) * n + a ** 3 - i, r = 3 * (1 - a) ** 2 * e + 6 * a * (1 - a) * (n - e) + 3 * a ** 2 * (1 - n);
328
+ if (Math.abs(r) < 1e-6) break;
329
+ a -= t / r;
330
+ }
331
+ return 3 * a * (1 - a) ** 2 * t + 3 * a ** 2 * (1 - a) * r + a ** 3;
332
+ };
333
+ }
334
+ //#endregion
335
+ //#region src/composables/_useSpring.ts
336
+ var ae = J.standard.fastSpatial, oe = J.standard.fastEffects, se = J.standard.defaultEffects, ce = J.standard.defaultSpatial, Z = .004;
337
+ function Q(e, t, n = ae) {
338
+ let r = [...e()], i = r.map(() => 0), a = 0, o = 0;
339
+ function s(c) {
340
+ let l = Math.min((c - o) / 1e3, 1 / 30);
341
+ o = c;
342
+ let u = e();
343
+ u.length !== r.length && (r = [...u], i = u.map(() => 0));
344
+ let d = n.stiffness, f = 2 * n.dampingRatio * Math.sqrt(d);
345
+ for (; l > 0;) {
346
+ let e = Math.min(l, Z);
347
+ l -= e;
348
+ for (let t = 0; t < u.length; t++) i[t] += (-d * (r[t] - u[t]) - f * i[t]) * e, r[t] += i[t] * e;
349
+ }
350
+ let p = u.every((e, t) => Math.abs(e - r[t]) < .05 && Math.abs(i[t]) < .05);
351
+ p && (r = [...u], i = u.map(() => 0)), t(r), a = p ? 0 : requestAnimationFrame(s);
352
+ }
353
+ function c() {
354
+ a ||= (o = performance.now(), requestAnimationFrame(s));
355
+ }
356
+ function l() {
357
+ cancelAnimationFrame(a), a = 0, r = [...e()], i = r.map(() => 0), t(r);
358
+ }
359
+ return ee(() => e().join(","), c), b(() => t(r)), x(() => cancelAnimationFrame(a)), { snap: l };
360
+ }
361
+ var le = ie(.4, 0, .2, 1), ue = "relative inline-flex shrink-0 items-center justify-center overflow-hidden transition-colors duration-150 cursor-pointer disabled:cursor-not-allowed disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", de = /* @__PURE__ */ p({
161
362
  __name: "MIconButton",
162
363
  props: {
163
364
  icon: {},
@@ -169,91 +370,153 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
169
370
  type: Boolean,
170
371
  default: !1
171
372
  },
172
- to: {}
373
+ to: {},
374
+ rippleColor: {},
375
+ checked: {
376
+ type: Boolean,
377
+ default: void 0
378
+ },
379
+ checkedIcon: {}
173
380
  },
174
- setup(e) {
175
- let n = e, r = o(() => n.to ? "RouterLink" : "button"), i = {
381
+ emits: ["update:checked"],
382
+ setup(e, { emit: n }) {
383
+ let r = e, i = n, a = o(() => r.checked !== void 0), c = o(() => r.to && !a.value ? "RouterLink" : "button"), l = {
176
384
  xs: {
177
385
  px: 32,
178
386
  icon: 20,
179
- squareRadius: "rounded-md"
387
+ squareRadius: "rounded-md",
388
+ square: 12,
389
+ pressed: 8,
390
+ checkedRound: 12
180
391
  },
181
392
  sm: {
182
393
  px: 40,
183
394
  icon: 24,
184
- squareRadius: "rounded-md"
395
+ squareRadius: "rounded-md",
396
+ square: 12,
397
+ pressed: 8,
398
+ checkedRound: 12
185
399
  },
186
400
  md: {
187
401
  px: 56,
188
402
  icon: 24,
189
- squareRadius: "rounded-lg"
403
+ squareRadius: "rounded-lg",
404
+ square: 16,
405
+ pressed: 12,
406
+ checkedRound: 16
190
407
  },
191
408
  lg: {
192
409
  px: 96,
193
410
  icon: 32,
194
- squareRadius: "rounded-xl"
411
+ squareRadius: "rounded-xl",
412
+ square: 28,
413
+ pressed: 16,
414
+ checkedRound: 28
195
415
  },
196
416
  xl: {
197
417
  px: 136,
198
418
  icon: 40,
199
- squareRadius: "rounded-xl"
419
+ squareRadius: "rounded-xl",
420
+ square: 28,
421
+ pressed: 16,
422
+ checkedRound: 28
200
423
  }
201
- }, a = o(() => typeof n.size == "number" ? {
202
- px: n.size,
203
- icon: Math.round(n.size * .55),
204
- squareRadius: "rounded-md"
205
- } : i[n.size] ?? i.sm), c = o(() => {
206
- switch (n.variant) {
424
+ }, u = o(() => typeof r.size == "number" ? {
425
+ px: r.size,
426
+ icon: Math.round(r.size * .55),
427
+ squareRadius: "rounded-md",
428
+ square: 12,
429
+ pressed: 8,
430
+ checkedRound: 12
431
+ } : l[r.size] ?? l.sm), d = w(null), p = w(!1);
432
+ function m() {
433
+ let e = u.value, t = e.px / 2;
434
+ return p.value ? e.pressed : r.checked ? r.shape === "squared" ? t : e.checkedRound : r.shape === "squared" ? e.square : t;
435
+ }
436
+ Q(() => a.value ? [m()] : [], (e) => {
437
+ d.value instanceof HTMLElement && (d.value.style.borderRadius = e.length ? `${e[0]}px` : "");
438
+ }, se);
439
+ function h() {
440
+ a.value && !r.disabled && (p.value = !0);
441
+ }
442
+ function g() {
443
+ p.value = !1;
444
+ }
445
+ function y() {
446
+ a.value && !r.disabled && i("update:checked", !r.checked);
447
+ }
448
+ let b = o(() => {
449
+ if (r.variant === "outlined" && r.checked) return "disabled:bg-on-surface/10";
450
+ switch (r.variant) {
207
451
  case "filled":
208
452
  case "tonal": return "disabled:bg-on-surface/10";
209
453
  default: return "";
210
454
  }
211
- }), l = o(() => n.shape === "squared" ? a.value.squareRadius : "rounded-full");
212
- function u(e) {
213
- if (n.disabled) return;
214
- let t = e.currentTarget, r = t.getBoundingClientRect(), i = Math.max(r.width, r.height) * 2, a = document.createElement("span");
215
- a.className = "m3-ripple", a.style.cssText = `width:${i}px;height:${i}px;top:${e.clientY - r.top - i / 2}px;left:${e.clientX - r.left - i / 2}px`, t.appendChild(a), a.addEventListener("animationend", () => a.remove(), { once: !0 });
216
- }
217
- let d = o(() => {
218
- switch (n.variant) {
455
+ }), x = o(() => r.shape === "squared" ? u.value.squareRadius : "rounded-full"), C = o(() => {
456
+ let e = r.checked;
457
+ switch (r.variant) {
458
+ case "filled": return e ? "bg-primary text-on-primary" : "bg-surface-container text-on-surface-variant";
459
+ case "tonal": return e ? "bg-secondary text-on-secondary" : "bg-secondary-container text-on-secondary-container";
460
+ case "outlined": return e ? "bg-inverse-surface text-inverse-on-surface" : "border border-current text-on-surface-variant";
461
+ default: return e ? "text-primary" : "text-on-surface-variant";
462
+ }
463
+ }), T = o(() => {
464
+ if (a.value) return C.value;
465
+ switch (r.variant) {
219
466
  case "filled": return "bg-primary text-on-primary";
220
467
  case "tonal": return "bg-secondary-container text-on-secondary-container";
221
468
  case "outlined": return "border border-current text-on-surface-variant";
222
469
  default: return "text-on-surface-variant";
223
470
  }
224
471
  });
225
- return (n, i) => (S(), s(D(r.value), {
226
- to: e.to || void 0,
227
- type: e.to ? void 0 : "button",
472
+ return (n, r) => N((S(), s(D(c.value), {
473
+ ref_key: "rootEl",
474
+ ref: d,
475
+ to: c.value === "RouterLink" ? e.to : void 0,
476
+ type: c.value === "RouterLink" ? void 0 : "button",
228
477
  "aria-label": e.label || void 0,
478
+ "aria-pressed": a.value ? e.checked : void 0,
229
479
  disabled: e.disabled,
230
480
  class: _([
231
- re,
232
- l.value,
233
- d.value,
234
- c.value
481
+ ue,
482
+ x.value,
483
+ T.value,
484
+ b.value
235
485
  ]),
236
486
  style: v({
237
- width: `${a.value.px}px`,
238
- height: `${a.value.px}px`
487
+ width: `${u.value.px}px`,
488
+ height: `${u.value.px}px`
239
489
  }),
240
- onPointerdown: u
490
+ onPointerdown: h,
491
+ onPointerup: g,
492
+ onPointerleave: g,
493
+ onPointercancel: g,
494
+ onClick: y
241
495
  }, {
242
496
  default: M(() => [f(t, {
243
- name: e.icon,
244
- size: a.value.icon
245
- }, null, 8, ["name", "size"])]),
497
+ name: e.checked && e.checkedIcon ? e.checkedIcon : e.icon,
498
+ size: u.value.icon,
499
+ filled: !!e.checked
500
+ }, null, 8, [
501
+ "name",
502
+ "size",
503
+ "filled"
504
+ ])]),
246
505
  _: 1
247
506
  }, 40, [
248
507
  "to",
249
508
  "type",
250
509
  "aria-label",
510
+ "aria-pressed",
251
511
  "disabled",
252
512
  "class",
253
513
  "style"
254
- ]));
514
+ ])), [[k(L), {
515
+ disabled: e.disabled,
516
+ color: e.rippleColor
517
+ }]]);
255
518
  }
256
- }), G = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", K = /* @__PURE__ */ p({
519
+ }), fe = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", pe = /* @__PURE__ */ p({
257
520
  __name: "MButton",
258
521
  props: {
259
522
  variant: { default: "filled" },
@@ -271,7 +534,8 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
271
534
  iconPos: { default: "leading" },
272
535
  size: { default: "sm" },
273
536
  shape: { default: "rounded" },
274
- to: {}
537
+ to: {},
538
+ rippleColor: {}
275
539
  },
276
540
  setup(e) {
277
541
  let n = ["primary", "error"], i = e, a = o(() => i.to ? "RouterLink" : "button"), u = o(() => !!i.color && !n.includes(i.color)), d = o(() => {
@@ -351,28 +615,22 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
351
615
  default: return "";
352
616
  }
353
617
  });
354
- function T(e) {
355
- if (i.disabled || i.loading) return;
356
- let t = e.currentTarget, n = t.getBoundingClientRect(), r = Math.max(n.width, n.height) * 2, a = document.createElement("span");
357
- a.className = "m3-ripple", a.style.cssText = `width:${r}px;height:${r}px;top:${e.clientY - n.top - r / 2}px;left:${e.clientX - n.left - r / 2}px`, t.appendChild(a), a.addEventListener("animationend", () => a.remove(), { once: !0 });
358
- }
359
- return (n, i) => (S(), s(D(a.value), {
618
+ return (n, i) => N((S(), s(D(a.value), {
360
619
  to: e.to || void 0,
361
620
  type: e.to ? void 0 : e.type,
362
621
  disabled: e.disabled || e.loading,
363
622
  class: _([
364
- G,
623
+ fe,
365
624
  C.value,
366
625
  g.value,
367
626
  x.value,
368
627
  w.value,
369
628
  p.value
370
629
  ]),
371
- style: v(d.value),
372
- onPointerdown: T
630
+ style: v(d.value)
373
631
  }, {
374
632
  default: M(() => [
375
- e.iconPos === "leading" ? (S(), l(r, { key: 0 }, [e.loading ? (S(), s(R, {
633
+ e.iconPos === "leading" ? (S(), l(r, { key: 0 }, [e.loading ? (S(), s(W, {
376
634
  key: 0,
377
635
  size: b.value
378
636
  }, null, 8, ["size"])) : e.icon ? (S(), s(t, {
@@ -381,7 +639,7 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
381
639
  size: y.value
382
640
  }, null, 8, ["name", "size"])) : c("", !0)], 64)) : c("", !0),
383
641
  E(n.$slots, "default"),
384
- e.iconPos === "trailing" ? (S(), l(r, { key: 1 }, [e.loading ? (S(), s(R, {
642
+ e.iconPos === "trailing" ? (S(), l(r, { key: 1 }, [e.loading ? (S(), s(W, {
385
643
  key: 0,
386
644
  size: b.value
387
645
  }, null, 8, ["size"])) : e.icon ? (S(), s(t, {
@@ -391,33 +649,36 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
391
649
  }, null, 8, ["name", "size"])) : c("", !0)], 64)) : c("", !0)
392
650
  ]),
393
651
  _: 3
394
- }, 40, [
652
+ }, 8, [
395
653
  "to",
396
654
  "type",
397
655
  "disabled",
398
656
  "class",
399
657
  "style"
400
- ]));
658
+ ])), [[k(L), {
659
+ disabled: e.disabled || e.loading,
660
+ color: e.rippleColor
661
+ }]]);
401
662
  }
402
- }), q = { class: "relative px-6 pt-6 pb-2" }, J = {
663
+ }), me = { class: "relative px-6 pt-6 pb-2" }, he = {
403
664
  key: 0,
404
665
  class: "absolute right-4 top-4"
405
- }, Y = {
666
+ }, ge = {
406
667
  key: 1,
407
668
  class: "mb-4 flex justify-center text-secondary"
408
- }, X = {
669
+ }, _e = {
409
670
  key: 0,
410
671
  class: "shrink-0 border-t border-outline-variant"
411
- }, ie = {
672
+ }, ve = {
412
673
  key: 1,
413
674
  class: "flex flex-wrap justify-end gap-2 px-6 pt-4 pb-6"
414
- }, ae = {
675
+ }, ye = {
415
676
  key: 0,
416
677
  class: "dialog-fs fixed inset-0 z-50 flex flex-col bg-surface"
417
- }, Z = { class: "flex h-14 shrink-0 items-center gap-2 px-2" }, oe = { class: "flex-1 text-title-large font-medium text-on-surface" }, se = {
678
+ }, be = { class: "flex h-14 shrink-0 items-center gap-2 px-2" }, xe = { class: "flex-1 text-title-large font-medium text-on-surface" }, Se = {
418
679
  key: 1,
419
680
  class: "flex items-center gap-2"
420
- }, Q = { class: "flex-1 overflow-y-auto px-6 py-4 text-body-medium text-on-surface-variant" }, ce = /*#__PURE__*/ n(/* @__PURE__ */ p({
681
+ }, Ce = { class: "flex-1 overflow-y-auto px-6 py-4 text-body-medium text-on-surface-variant" }, we = /*#__PURE__*/ n(/* @__PURE__ */ p({
421
682
  __name: "MDialog",
422
683
  props: {
423
684
  modelValue: { type: Boolean },
@@ -450,7 +711,7 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
450
711
  function T(e) {
451
712
  e.key === "Escape" && C();
452
713
  }
453
- let D = w(), A = w(), j = w(!1), P;
714
+ let D = w(), A = w(), j = w(!1), N;
454
715
  function F() {
455
716
  let e = D.value;
456
717
  if (!e) {
@@ -460,24 +721,24 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
460
721
  j.value = e.scrollHeight - e.scrollTop - e.clientHeight > 1;
461
722
  }
462
723
  return ee(() => r.modelValue, async (e) => {
463
- e ? (document.addEventListener("keydown", T), document.body.style.overflow = "hidden", await g(), F(), P = new ResizeObserver(F), D.value && P.observe(D.value), A.value && P.observe(A.value)) : (document.removeEventListener("keydown", T), document.body.style.overflow = "", P?.disconnect(), P = void 0);
724
+ e ? (document.addEventListener("keydown", T), document.body.style.overflow = "hidden", await g(), F(), N = new ResizeObserver(F), D.value && N.observe(D.value), A.value && N.observe(A.value)) : (document.removeEventListener("keydown", T), document.body.style.overflow = "", N?.disconnect(), N = void 0);
464
725
  }), x(() => {
465
- document.removeEventListener("keydown", T), P?.disconnect();
726
+ document.removeEventListener("keydown", T), N?.disconnect();
466
727
  }), (e, n) => (S(), s(i, { to: "body" }, [t.fullscreen ? (S(), s(a, {
467
728
  key: 1,
468
729
  name: "m3-dialog-fs",
469
730
  appear: ""
470
731
  }, {
471
- default: M(() => [t.modelValue ? (S(), l("div", ae, [u("div", Z, [
472
- t.persistent ? c("", !0) : (S(), s(W, {
732
+ default: M(() => [t.modelValue ? (S(), l("div", ye, [u("div", be, [
733
+ t.persistent ? c("", !0) : (S(), s(de, {
473
734
  key: 0,
474
735
  icon: "close",
475
736
  label: t.closeLabel ?? k(p).close,
476
737
  onClick: C
477
738
  }, null, 8, ["label"])),
478
- u("h2", oe, [E(e.$slots, "title", {}, () => [d(O(t.title), 1)], !0)]),
479
- e.$slots.actions ? (S(), l("div", se, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
480
- ]), u("div", Q, [E(e.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
739
+ u("h2", xe, [E(e.$slots, "title", {}, () => [d(O(t.title), 1)], !0)]),
740
+ e.$slots.actions ? (S(), l("div", Se, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
741
+ ]), u("div", Ce, [E(e.$slots, "default", {}, void 0, !0)])])) : c("", !0)]),
481
742
  _: 3
482
743
  })) : (S(), s(a, {
483
744
  key: 0,
@@ -487,18 +748,18 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
487
748
  default: M(() => [t.modelValue ? (S(), l("div", {
488
749
  key: 0,
489
750
  class: "fixed inset-0 z-50 flex items-center justify-center bg-scrim/32 p-4",
490
- onClick: N(C, ["self"])
751
+ onClick: P(C, ["self"])
491
752
  }, [u("div", {
492
753
  class: _(["dialog-box flex min-w-[280px] w-full flex-col rounded-xl bg-surface-container-high shadow-elevation-3", h.value]),
493
754
  style: v(y.value)
494
755
  }, [
495
- u("div", q, [
496
- t.closable && !t.persistent ? (S(), l("div", J, [f(W, {
756
+ u("div", me, [
757
+ t.closable && !t.persistent ? (S(), l("div", he, [f(de, {
497
758
  icon: "close",
498
759
  label: t.closeLabel ?? k(p).close,
499
760
  onClick: C
500
761
  }, null, 8, ["label"])])) : c("", !0),
501
- e.$slots.icon ? (S(), l("div", Y, [E(e.$slots, "icon", {}, void 0, !0)])) : c("", !0),
762
+ e.$slots.icon ? (S(), l("div", ge, [E(e.$slots, "icon", {}, void 0, !0)])) : c("", !0),
502
763
  u("h2", { class: _(["text-headline-small text-on-surface", [e.$slots.icon ? "text-center" : "text-left", t.closable && !t.persistent ? e.$slots.icon ? "px-10" : "pr-10" : ""]]) }, [E(e.$slots, "title", {}, () => [d(O(t.title), 1)], !0)], 2)
503
764
  ]),
504
765
  u("div", {
@@ -510,25 +771,25 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
510
771
  ref_key: "contentInnerEl",
511
772
  ref: A
512
773
  }, [E(e.$slots, "default", {}, void 0, !0)], 512)], 34),
513
- j.value && e.$slots.actions ? (S(), l("div", X)) : c("", !0),
514
- e.$slots.actions ? (S(), l("div", ie, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
774
+ j.value && e.$slots.actions ? (S(), l("div", _e)) : c("", !0),
775
+ e.$slots.actions ? (S(), l("div", ve, [E(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
515
776
  ], 6)])) : c("", !0)]),
516
777
  _: 3
517
778
  }))]));
518
779
  }
519
- }), [["__scopeId", "data-v-0aac9ebd"]]), le = { class: "my-1 border-outline-variant" }, ue = /* @__PURE__ */ p({
780
+ }), [["__scopeId", "data-v-0aac9ebd"]]), Te = { class: "my-1 border-outline-variant" }, Ee = /* @__PURE__ */ p({
520
781
  __name: "MMenuDivider",
521
782
  props: { gap: {
522
783
  type: Boolean,
523
784
  default: !1
524
785
  } },
525
786
  setup(e) {
526
- return (e, t) => (S(), l("hr", le));
787
+ return (e, t) => (S(), l("hr", Te));
527
788
  }
528
- }), de = { class: "flex-1 truncate" }, fe = { key: "root" }, pe = {
789
+ }), De = { class: "flex-1 truncate" }, Oe = { key: "root" }, ke = {
529
790
  key: 0,
530
791
  class: "flex flex-col gap-1 px-1.5"
531
- }, me = { class: "overflow-hidden rounded-lg bg-surface-container" }, he = 220, $ = 1 / 240, ge = /* @__PURE__ */ p({
792
+ }, Ae = { class: "overflow-hidden rounded-lg bg-surface-container" }, je = 220, $ = 1 / 240, Me = /* @__PURE__ */ p({
532
793
  inheritAttrs: !1,
533
794
  __name: "MMenu",
534
795
  props: {
@@ -544,17 +805,17 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
544
805
  return t;
545
806
  }
546
807
  function O(e) {
547
- if (e.type !== ue) return !1;
808
+ if (e.type !== Ee) return !1;
548
809
  let t = e.props?.gap;
549
810
  return t === "" || t === !0 || t === "true";
550
811
  }
551
812
  let k = o(() => {
552
813
  if (d.variant !== "expressive") return null;
553
- let e = y(p.default?.({ close: Q }) ?? []), t = [[]];
814
+ let e = y(p.default?.({ close: Z }) ?? []), t = [[]];
554
815
  for (let n of e) O(n) ? t.push([]) : t[t.length - 1].push(n);
555
816
  return t.filter((e) => e.length > 0);
556
817
  }), A = o(() => !!k.value && k.value.length > 1), N = w([]), P = o(() => N.value[N.value.length - 1]), F = w("forward");
557
- function I(e, t) {
818
+ function te(e, t) {
558
819
  let n = F.value === "forward" ? 1 : -1, r = e.animate([{
559
820
  transform: `translateX(${n * 100}%)`,
560
821
  opacity: .4
@@ -562,12 +823,12 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
562
823
  transform: "translateX(0%)",
563
824
  opacity: 1
564
825
  }], {
565
- duration: he,
826
+ duration: je,
566
827
  easing: "cubic-bezier(0.05,0.7,0.1,1)"
567
828
  });
568
829
  r.onfinish = t;
569
830
  }
570
- function te(e, t) {
831
+ function I(e, t) {
571
832
  let n = F.value === "forward" ? -1 : 1, r = e;
572
833
  r.style.position = "absolute", r.style.insetInline = "0", r.style.top = "0";
573
834
  let i = r.animate([{
@@ -577,13 +838,13 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
577
838
  transform: `translateX(${n * 100}%)`,
578
839
  opacity: .4
579
840
  }], {
580
- duration: he,
841
+ duration: je,
581
842
  easing: "cubic-bezier(0.3,0,0.8,0.15)"
582
843
  });
583
844
  i.onfinish = t;
584
845
  }
585
846
  let L = null;
586
- function ne() {
847
+ function R() {
587
848
  if (L) return L;
588
849
  let e = [], t = .8, n = 0, r = 0, i = 0;
589
850
  for (let a = 0; a < 1 && (e.push({
@@ -595,10 +856,10 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
595
856
  alpha: 1
596
857
  }), L = e, e;
597
858
  }
598
- let R = 0, z = null, B = null;
599
- function V(e, t, n) {
600
- z?.();
601
- let r = e, i = ne(), a = i.length - 1, o = n ? 1 : -1, s = n ? a : 0, c = 0, l = 0, u = !1;
859
+ let z = 0, B = null, V = null;
860
+ function H(e, t, n) {
861
+ B?.();
862
+ let r = e, i = R(), a = i.length - 1, o = n ? 1 : -1, s = n ? a : 0, c = 0, l = 0, u = !1;
602
863
  function d(e) {
603
864
  let t = i[Math.round(Math.max(0, Math.min(a, e)))];
604
865
  r.style.transform = `scale(${t.scale})`, r.style.opacity = String(Math.min(1, Math.max(0, t.alpha)));
@@ -606,29 +867,29 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
606
867
  function f(e) {
607
868
  if (u) return;
608
869
  let r = c ? (e - c) / 1e3 / $ : 1;
609
- if (c = e, R = Math.max(0, Math.min(a, R + o * r)), d(R), n && R >= s || !n && R <= s) {
610
- z = null, B = null, t();
870
+ if (c = e, z = Math.max(0, Math.min(a, z + o * r)), d(z), n && z >= s || !n && z <= s) {
871
+ B = null, V = null, t();
611
872
  return;
612
873
  }
613
874
  l = requestAnimationFrame(f);
614
875
  }
615
- z = () => {
876
+ B = () => {
616
877
  u = !0, cancelAnimationFrame(l);
617
- }, B = n ? null : () => {
618
- z?.(), z = null, B = null, t();
619
- }, d(R), l = requestAnimationFrame(f);
620
- }
621
- function H(e, t) {
622
- V(e, t, !0);
878
+ }, V = n ? null : () => {
879
+ B?.(), B = null, V = null, t();
880
+ }, d(z), l = requestAnimationFrame(f);
623
881
  }
624
882
  function U(e, t) {
625
- V(e, t, !1);
883
+ H(e, t, !0);
884
+ }
885
+ function W(e, t) {
886
+ H(e, t, !1);
626
887
  }
627
- function re(e) {
628
- F.value = "forward", N.value.push(e), g(() => Z());
888
+ function ne(e) {
889
+ F.value = "forward", N.value.push(e), g(() => oe());
629
890
  }
630
- function W() {
631
- F.value = "backward", N.value.pop(), g(() => Z());
891
+ function re() {
892
+ F.value = "backward", N.value.pop(), g(() => oe());
632
893
  }
633
894
  let G = w(!1), K = w(null), q = w(null), J = w({}), Y = m("m-menu-panel-registry", /* @__PURE__ */ new Set());
634
895
  C("m-menu-panel-registry", Y), ee(q, (e, t) => {
@@ -646,64 +907,64 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
646
907
  function ae() {
647
908
  return q.value ? Array.from(q.value.querySelectorAll("button:not(:disabled), a[href]")) : [];
648
909
  }
649
- function Z() {
910
+ function oe() {
650
911
  g(() => ae()[0]?.focus());
651
912
  }
652
- function oe(e) {
913
+ function se(e) {
653
914
  let t = ae();
654
915
  if (!t.length) return;
655
916
  let n = t.indexOf(document.activeElement);
656
917
  (n === -1 ? e === 1 ? t[0] : t[t.length - 1] : t[(n + e + t.length) % t.length])?.focus();
657
918
  }
658
- function se() {
659
- G.value ? X?.current === Q && (X.current = null) : (X && X.current && X.current !== Q && X.current(), X && (X.current = Q), ie(), N.value = []), G.value = !G.value, G.value && Z();
919
+ function ce() {
920
+ G.value ? X?.current === Z && (X.current = null) : (X && X.current && X.current !== Z && X.current(), X && (X.current = Z), ie(), N.value = []), G.value = !G.value, G.value && oe();
660
921
  }
661
- function Q() {
662
- X?.current === Q && (X.current = null), G.value = !1;
922
+ function Z() {
923
+ X?.current === Z && (X.current = null), G.value = !1;
663
924
  }
664
- C("m-menu-close", Q), C("m-menu-nav", {
925
+ C("m-menu-close", Z), C("m-menu-nav", {
665
926
  mode: d.submenuMode,
666
- push: re
927
+ push: ne
667
928
  }), n({
668
- close: Q,
929
+ close: Z,
669
930
  open: G
670
931
  });
671
- function ce(e) {
932
+ function Q(e) {
672
933
  let t = e.target;
673
934
  if (!K.value?.contains(t)) {
674
935
  for (let e of Y) if (e.contains(t)) return;
675
- t.closest?.(".m3-submenu") || Q();
936
+ t.closest?.(".m3-submenu") || Z();
676
937
  }
677
938
  }
678
939
  function le(e) {
679
940
  if (!G.value) return;
680
941
  let t = e.target;
681
942
  for (let e of Y) if (e.contains(t)) return;
682
- t.closest?.(".m3-submenu") || Q();
943
+ t.closest?.(".m3-submenu") || Z();
683
944
  }
684
- function ge(e) {
945
+ function ue(e) {
685
946
  if (e.key === "Escape") {
686
- N.value.length ? W() : Q();
947
+ N.value.length ? re() : Z();
687
948
  return;
688
949
  }
689
- G.value && (e.key === "ArrowDown" ? (e.preventDefault(), oe(1)) : e.key === "ArrowUp" && (e.preventDefault(), oe(-1)));
950
+ G.value && (e.key === "ArrowDown" ? (e.preventDefault(), se(1)) : e.key === "ArrowUp" && (e.preventDefault(), se(-1)));
690
951
  }
691
952
  b(() => {
692
- document.addEventListener("mousedown", ce), document.addEventListener("keydown", ge), window.addEventListener("scroll", le, !0);
953
+ document.addEventListener("mousedown", Q), document.addEventListener("keydown", ue), window.addEventListener("scroll", le, !0);
693
954
  }), x(() => {
694
- document.removeEventListener("mousedown", ce), document.removeEventListener("keydown", ge), window.removeEventListener("scroll", le, !0), B ? B() : z?.();
955
+ document.removeEventListener("mousedown", Q), document.removeEventListener("keydown", ue), window.removeEventListener("scroll", le, !0), V ? V() : B?.();
695
956
  });
696
- let _e = o(() => d.align === "right" ? "top right" : "top left");
957
+ let de = o(() => d.align === "right" ? "top right" : "top left");
697
958
  return (n, o) => (S(), l(r, null, [u("div", h({
698
959
  ref_key: "triggerEl",
699
960
  ref: K
700
961
  }, n.$attrs, {
701
962
  class: "inline-block",
702
- onClick: se
963
+ onClick: ce
703
964
  }), [E(n.$slots, "trigger", { open: G.value })], 16), (S(), s(i, { to: "body" }, [f(a, {
704
965
  css: !1,
705
- onEnter: H,
706
- onLeave: U
966
+ onEnter: U,
967
+ onLeave: W
707
968
  }, {
708
969
  default: M(() => [G.value ? (S(), l("div", {
709
970
  key: 0,
@@ -712,20 +973,20 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
712
973
  class: _(["fixed z-500 min-w-48", [e.variant === "expressive" ? "rounded-lg" : "rounded-xs", A.value ? "" : "shadow-elevation-2"]]),
713
974
  style: v({
714
975
  ...J.value,
715
- transformOrigin: _e.value
976
+ transformOrigin: de.value
716
977
  })
717
978
  }, [u("div", { class: _(["overflow-hidden", [e.variant === "expressive" ? "rounded-lg" : "rounded-xs", A.value ? "" : "bg-surface-container"]]) }, [u("div", {
718
979
  class: "relative overflow-y-auto overscroll-contain py-1",
719
980
  style: v({ maxHeight: J.value.maxHeight })
720
981
  }, [f(a, {
721
982
  css: !1,
722
- onEnter: I,
723
- onLeave: te
983
+ onEnter: te,
984
+ onLeave: I
724
985
  }, {
725
986
  default: M(() => [P.value ? (S(), l("div", { key: N.value.length }, [u("button", {
726
987
  type: "button",
727
988
  class: "flex w-full items-center gap-3 border-b border-outline-variant px-4 py-2.5 text-left text-body-large text-on-surface outline-none transition-colors hover:bg-on-surface/8 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",
728
- onClick: W
989
+ onClick: re
729
990
  }, [
730
991
  f(t, {
731
992
  name: "chevron_left",
@@ -738,20 +999,20 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
738
999
  size: 20,
739
1000
  class: "shrink-0 text-on-surface-variant"
740
1001
  }, null, 8, ["name"])) : c("", !0),
741
- u("span", de, [(S(), s(D(() => P.value?.header?.())))])
742
- ]), (S(), s(D(() => P.value?.content?.())))])) : (S(), l("div", fe, [A.value ? (S(), l("div", pe, [(S(!0), l(r, null, T(k.value, (e, t) => (S(), l("div", {
1002
+ u("span", De, [(S(), s(D(() => P.value?.header?.())))])
1003
+ ]), (S(), s(D(() => P.value?.content?.())))])) : (S(), l("div", Oe, [A.value ? (S(), l("div", ke, [(S(!0), l(r, null, T(k.value, (e, t) => (S(), l("div", {
743
1004
  key: t,
744
1005
  class: "rounded-lg shadow-elevation-2"
745
- }, [u("div", me, [(S(), s(D(() => e)))])]))), 128))])) : E(n.$slots, "default", { close: Q }, void 0, void 0, 1)]))]),
1006
+ }, [u("div", Ae, [(S(), s(D(() => e)))])]))), 128))])) : E(n.$slots, "default", { close: Z }, void 0, void 0, 1)]))]),
746
1007
  _: 3
747
1008
  })], 4)], 2)], 6)) : c("", !0)]),
748
1009
  _: 3
749
1010
  })]))], 64));
750
1011
  }
751
- }), _e = { class: "flex-1" }, ve = {
752
- key: 1,
1012
+ }), Ne = ["data-m3-menu-choice"], Pe = { class: "flex-1" }, Fe = {
1013
+ key: 2,
753
1014
  class: "ml-4 shrink-0 text-label-small text-on-surface-variant opacity-60"
754
- }, ye = { class: "overflow-hidden rounded-xs bg-surface-container py-1" }, be = /* @__PURE__ */ p({
1015
+ }, Ie = { class: "overflow-hidden rounded-xs bg-surface-container py-1" }, Le = 32, Re = /* @__PURE__ */ p({
755
1016
  __name: "MMenuItem",
756
1017
  props: {
757
1018
  icon: {},
@@ -767,82 +1028,154 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
767
1028
  },
768
1029
  keepOpen: {
769
1030
  type: Boolean,
770
- default: !1
771
- }
1031
+ default: void 0
1032
+ },
1033
+ selected: {
1034
+ type: Boolean,
1035
+ default: void 0
1036
+ },
1037
+ checked: {
1038
+ type: Boolean,
1039
+ default: void 0
1040
+ },
1041
+ selectedIcon: {}
772
1042
  },
773
- emits: ["click"],
1043
+ emits: ["click", "update:checked"],
774
1044
  setup(e, { emit: n }) {
775
- let r = e, d = n, p = j(), h = o(() => r.to ? "RouterLink" : "button"), g = o(() => !!p.children), y = m("m-menu-close", null), b = m("m-menu-nav", null), x = w(), C = w(!1), T = w({});
776
- function A() {
777
- if (!x.value) return;
778
- let e = x.value.getBoundingClientRect(), t = e.right + 200 > window.innerWidth;
779
- T.value = {
1045
+ let r = e, d = n, p = o(() => r.checked !== void 0), h = o(() => p.value || r.selected !== void 0), y = o(() => !!(r.checked ?? r.selected)), C = o(() => h.value && !r.icon), T = o(() => r.selectedIcon ?? (r.icon ? void 0 : "check")), A = w("single");
1046
+ function N() {
1047
+ let e = V.value;
1048
+ if (!e || !h.value) return;
1049
+ let t = (e) => !!e?.hasAttribute("data-m3-menu-choice"), n = t(e.previousElementSibling), r = t(e.nextElementSibling);
1050
+ A.value = n && r ? "middle" : n ? "last" : r ? "first" : "single";
1051
+ }
1052
+ function P() {
1053
+ if (y.value) return [
1054
+ 12,
1055
+ 12,
1056
+ 12,
1057
+ 12
1058
+ ];
1059
+ let e = A.value === "first" ? 12 : 4, t = A.value === "last" ? 12 : 4;
1060
+ return [
1061
+ e,
1062
+ e,
1063
+ t,
1064
+ t
1065
+ ];
1066
+ }
1067
+ let { snap: F } = Q(() => h.value ? [...P(), C.value && y.value ? Le : 0] : [], ([e, t, n, r, i]) => {
1068
+ let a = H.value instanceof HTMLElement ? H.value : H.value?.$el;
1069
+ a && r !== void 0 && (a.style.borderRadius = `${e}px ${t}px ${n}px ${r}px`), U.value && i !== void 0 && (U.value.style.width = `${i}px`);
1070
+ }, ae);
1071
+ ee(A, () => F());
1072
+ let te = null;
1073
+ b(() => {
1074
+ N();
1075
+ let e = V.value?.parentElement;
1076
+ e && (te = new MutationObserver(N), te.observe(e, { childList: !0 }));
1077
+ }), x(() => te?.disconnect()), ee(h, () => g(N)), Q(() => C.value ? [+!!y.value] : [], ([e]) => {
1078
+ U.value && e !== void 0 && (U.value.style.opacity = String(e));
1079
+ }, oe);
1080
+ let I = j(), L = o(() => r.to ? "RouterLink" : "button"), R = o(() => !!I.children), z = m("m-menu-close", null), B = m("m-menu-nav", null), V = w(), H = w(), U = w(), W = w(!1), ne = w({});
1081
+ function re() {
1082
+ if (!V.value) return;
1083
+ let e = V.value.getBoundingClientRect(), t = e.right + 200 > window.innerWidth;
1084
+ ne.value = {
780
1085
  position: "fixed",
781
1086
  top: `${e.top}px`,
782
1087
  ...t ? { right: `${window.innerWidth - e.left}px` } : { left: `${e.right}px` },
783
1088
  zIndex: "501"
784
1089
  };
785
1090
  }
786
- function ee() {
787
- if (C.value) {
788
- C.value = !1;
1091
+ function G() {
1092
+ if (W.value) {
1093
+ W.value = !1;
789
1094
  return;
790
1095
  }
791
- A(), C.value = !0;
1096
+ re(), W.value = !0;
792
1097
  }
793
- function N() {
1098
+ function K() {
794
1099
  if (!r.disabled) {
795
- if (g.value) {
796
- b?.mode === "push" ? b.push({
1100
+ if (R.value) {
1101
+ B?.mode === "push" ? B.push({
797
1102
  icon: r.icon,
798
- header: p.default,
799
- content: p.children
800
- }) : ee();
1103
+ header: I.default,
1104
+ content: I.children
1105
+ }) : G();
801
1106
  return;
802
1107
  }
803
- d("click"), r.keepOpen || y?.();
1108
+ p.value && d("update:checked", !r.checked), d("click"), (r.keepOpen ?? p.value) || z?.();
804
1109
  }
805
1110
  }
806
- function P(e) {
807
- e.pointerType === "mouse" && g.value && !r.disabled && (A(), C.value = !0);
1111
+ function q(e) {
1112
+ e.pointerType === "mouse" && R.value && !r.disabled && (re(), W.value = !0);
808
1113
  }
809
- function F(e) {
810
- e.pointerType === "mouse" && (e.relatedTarget?.closest(".m3-submenu") || (C.value = !1));
1114
+ function J(e) {
1115
+ e.pointerType === "mouse" && (e.relatedTarget?.closest(".m3-submenu") || (W.value = !1));
811
1116
  }
812
- function I(e) {
1117
+ function Y(e) {
813
1118
  if (e.pointerType !== "mouse") return;
814
1119
  let t = e.relatedTarget;
815
- t?.closest(".m3-submenu") || x.value?.contains(t) || (C.value = !1);
1120
+ t?.closest(".m3-submenu") || V.value?.contains(t) || (W.value = !1);
816
1121
  }
817
1122
  return (n, r) => (S(), l("div", {
818
1123
  ref_key: "itemEl",
819
- ref: x,
820
- onPointerenter: P,
821
- onPointerleave: F
822
- }, [(S(), s(D(h.value), {
1124
+ ref: V,
1125
+ "data-m3-menu-choice": h.value || void 0,
1126
+ onPointerenter: q,
1127
+ onPointerleave: J
1128
+ }, [(S(), s(D(L.value), {
1129
+ ref_key: "controlEl",
1130
+ ref: H,
823
1131
  to: e.to || void 0,
824
1132
  type: e.to ? void 0 : "button",
825
- class: _(["flex w-full items-center gap-3 px-4 py-2.5 text-left text-body-large transition-colors outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary", [
1133
+ role: h.value ? p.value ? "menuitemcheckbox" : "menuitemradio" : void 0,
1134
+ "aria-checked": h.value ? y.value : void 0,
1135
+ class: _(["flex items-center gap-3 py-2.5 text-left text-body-large transition-colors outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary", h.value ? [
1136
+ "relative mx-1 w-[calc(100%-0.5rem)] px-3 duration-150 before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:bg-current before:opacity-0 before:transition-opacity",
1137
+ y.value ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface",
1138
+ e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer hover:before:opacity-[0.08] active:before:opacity-[0.12]"
1139
+ ] : [
1140
+ "w-full px-4",
826
1141
  e.disabled ? "cursor-not-allowed opacity-[0.38] text-on-surface" : "cursor-pointer",
827
1142
  !e.disabled && e.danger ? "text-error hover:bg-error/8" : "",
828
1143
  !e.disabled && !e.danger ? "text-on-surface hover:bg-on-surface/8" : ""
829
1144
  ]]),
830
1145
  disabled: e.disabled || void 0,
831
- "aria-haspopup": g.value ? "menu" : void 0,
832
- "aria-expanded": g.value ? C.value : void 0,
833
- onClick: N
1146
+ "aria-haspopup": R.value ? "menu" : void 0,
1147
+ "aria-expanded": R.value ? W.value : void 0,
1148
+ onClick: K
834
1149
  }, {
835
1150
  default: M(() => [
836
- e.icon ? (S(), s(t, {
1151
+ C.value ? (S(), l("span", {
837
1152
  key: 0,
838
- name: e.icon,
1153
+ ref_key: "iconSlotEl",
1154
+ ref: U,
1155
+ class: "-mr-3 flex shrink-0 overflow-hidden",
1156
+ style: {
1157
+ width: "0",
1158
+ opacity: "0"
1159
+ }
1160
+ }, [f(t, {
1161
+ name: T.value,
1162
+ size: 20,
1163
+ class: "shrink-0"
1164
+ }, null, 8, ["name"])], 512)) : e.icon ? (S(), s(t, {
1165
+ key: 1,
1166
+ name: y.value && T.value ? T.value : e.icon,
1167
+ filled: y.value && !T.value,
839
1168
  size: 20,
840
- class: _(["shrink-0", e.danger ? "text-error" : "text-on-surface-variant"])
841
- }, null, 8, ["name", "class"])) : c("", !0),
842
- u("span", _e, [E(n.$slots, "default")]),
843
- e.shortcut && !g.value ? (S(), l("span", ve, O(e.shortcut), 1)) : c("", !0),
844
- g.value ? (S(), s(t, {
845
- key: 2,
1169
+ class: _(["shrink-0", h.value ? y.value ? "" : "text-on-surface-variant" : e.danger ? "text-error" : "text-on-surface-variant"])
1170
+ }, null, 8, [
1171
+ "name",
1172
+ "filled",
1173
+ "class"
1174
+ ])) : c("", !0),
1175
+ u("span", Pe, [E(n.$slots, "default")]),
1176
+ e.shortcut && !R.value ? (S(), l("span", Fe, O(e.shortcut), 1)) : c("", !0),
1177
+ R.value ? (S(), s(t, {
1178
+ key: 3,
846
1179
  name: "chevron_right",
847
1180
  size: 18,
848
1181
  class: "shrink-0 text-on-surface-variant"
@@ -852,11 +1185,13 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
852
1185
  }, 8, [
853
1186
  "to",
854
1187
  "type",
1188
+ "role",
1189
+ "aria-checked",
855
1190
  "class",
856
1191
  "disabled",
857
1192
  "aria-haspopup",
858
1193
  "aria-expanded"
859
- ])), g.value && k(b)?.mode !== "push" ? (S(), s(i, {
1194
+ ])), R.value && k(B)?.mode !== "push" ? (S(), s(i, {
860
1195
  key: 0,
861
1196
  to: "body"
862
1197
  }, [f(a, {
@@ -865,41 +1200,41 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
865
1200
  "leave-active-class": "transition-opacity duration-75",
866
1201
  "leave-to-class": "opacity-0"
867
1202
  }, {
868
- default: M(() => [C.value ? (S(), l("div", {
1203
+ default: M(() => [W.value ? (S(), l("div", {
869
1204
  key: 0,
870
1205
  class: "m3-submenu min-w-44 rounded-xs shadow-elevation-2",
871
- style: v(T.value),
872
- onPointerleave: I
873
- }, [u("div", ye, [E(n.$slots, "children")])], 36)) : c("", !0)]),
1206
+ style: v(ne.value),
1207
+ onPointerleave: Y
1208
+ }, [u("div", Ie, [E(n.$slots, "children")])], 36)) : c("", !0)]),
874
1209
  _: 3
875
- })])) : c("", !0)], 544));
1210
+ })])) : c("", !0)], 40, Ne));
876
1211
  }
877
- }), xe = { class: "flex flex-col gap-1" }, Se = [
1212
+ }), ze = { class: "flex flex-col gap-1" }, Be = [
878
1213
  "id",
879
1214
  "value",
880
1215
  "rows",
881
1216
  "disabled",
882
1217
  "required"
883
- ], Ce = [
1218
+ ], Ve = [
884
1219
  "id",
885
1220
  "type",
886
1221
  "value",
887
1222
  "disabled",
888
1223
  "required",
889
1224
  "autocomplete"
890
- ], we = ["for"], Te = {
1225
+ ], He = ["for"], Ue = {
891
1226
  key: 0,
892
1227
  class: "text-error"
893
- }, Ee = {
1228
+ }, We = {
894
1229
  key: 3,
895
1230
  class: "absolute right-2 top-1/2 -translate-y-1/2"
896
- }, De = {
1231
+ }, Ge = {
897
1232
  key: 0,
898
1233
  class: "px-4 text-body-small text-error"
899
- }, Oe = {
1234
+ }, Ke = {
900
1235
  key: 1,
901
1236
  class: "px-4 text-body-small text-on-surface-variant"
902
- }, ke = /* @__PURE__ */ p({
1237
+ }, qe = /* @__PURE__ */ p({
903
1238
  __name: "MTextField",
904
1239
  props: {
905
1240
  modelValue: {},
@@ -924,7 +1259,7 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
924
1259
  },
925
1260
  emits: ["update:modelValue", "debounced"],
926
1261
  setup(e, { emit: n }) {
927
- let r = e, i = n, a = A(), s = j(), p = w(null), { resolvedFieldBg: m } = H(p, () => r.fieldBg), { debounced: h, cancel: g } = U((e) => i("debounced", e), r.debounce), y = o(() => r.clearable && String(r.modelValue).length > 0 && !r.disabled), b = o(() => {
1262
+ let r = e, i = n, a = A(), s = j(), p = w(null), { resolvedFieldBg: m } = K(p, () => r.fieldBg), { debounced: h, cancel: g } = q((e) => i("debounced", e), r.debounce), y = o(() => r.clearable && String(r.modelValue).length > 0 && !r.disabled), b = o(() => {
928
1263
  let e = !!s.trailing || r.clearable, t = r.leadingIcon ? "pl-12" : "pl-4", n = e ? "pr-12" : "pr-4", i = r.multiline ? "resize-y min-h-[56px]" : "h-14", a = [
929
1264
  "peer block w-full text-body-large text-on-surface outline-none placeholder:text-transparent",
930
1265
  "transition-[border-color,border-width] duration-150",
@@ -971,7 +1306,7 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
971
1306
  let t = e.target;
972
1307
  i("update:modelValue", t.value), r.debounce > 0 && h(t.value);
973
1308
  }
974
- return (n, r) => (S(), l("div", xe, [u("div", {
1309
+ return (n, r) => (S(), l("div", ze, [u("div", {
975
1310
  ref_key: "fieldBgEl",
976
1311
  ref: p,
977
1312
  class: _(["relative", e.variant === "outlined" ? "mt-2" : ""]),
@@ -994,7 +1329,7 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
994
1329
  placeholder: " ",
995
1330
  class: _(b.value),
996
1331
  onInput: C
997
- }, null, 42, Se)) : (S(), l("input", {
1332
+ }, null, 42, Be)) : (S(), l("input", {
998
1333
  key: 2,
999
1334
  id: k(a),
1000
1335
  type: e.type,
@@ -1005,12 +1340,12 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1005
1340
  placeholder: " ",
1006
1341
  class: _(b.value),
1007
1342
  onInput: C
1008
- }, null, 42, Ce)),
1343
+ }, null, 42, Ve)),
1009
1344
  u("label", {
1010
1345
  for: k(a),
1011
1346
  class: _(x.value)
1012
- }, [d(O(e.label), 1), e.required ? (S(), l("span", Te, "\xA0*")) : c("", !0)], 10, we),
1013
- n.$slots.trailing ? (S(), l("div", Ee, [E(n.$slots, "trailing")])) : y.value ? (S(), l("button", {
1347
+ }, [d(O(e.label), 1), e.required ? (S(), l("span", Ue, "\xA0*")) : c("", !0)], 10, He),
1348
+ n.$slots.trailing ? (S(), l("div", We, [E(n.$slots, "trailing")])) : y.value ? (S(), l("button", {
1014
1349
  key: 4,
1015
1350
  type: "button",
1016
1351
  class: "absolute right-3 top-1/2 -translate-y-1/2 flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8 hover:text-on-surface",
@@ -1021,10 +1356,10 @@ var re = "relative inline-flex shrink-0 items-center justify-center overflow-hid
1021
1356
  name: "close",
1022
1357
  size: 18
1023
1358
  })])) : c("", !0)
1024
- ], 6), e.error && e.errorLabel ? (S(), l("p", De, O(e.errorLabel), 1)) : e.hint ? (S(), l("p", Oe, O(e.hint), 1)) : c("", !0)]));
1359
+ ], 6), e.error && e.errorLabel ? (S(), l("p", Ge, O(e.errorLabel), 1)) : e.hint ? (S(), l("p", Ke, O(e.hint), 1)) : c("", !0)]));
1025
1360
  }
1026
1361
  });
1027
1362
  //#endregion
1028
- export { ce as a, U as c, ue as i, H as l, be as n, K as o, ge as r, W as s, ke as t, R as u };
1363
+ export { J as _, we as a, W as b, se as c, ae as d, le as f, Y as g, X as h, Ee as i, ce as l, ie as m, Re as n, pe as o, Q as p, Me as r, de as s, qe as t, oe as u, q as v, L as x, K as y };
1029
1364
 
1030
- //# sourceMappingURL=MTextField-Ck0oWDMk.js.map
1365
+ //# sourceMappingURL=MTextField-TZ7lfr09.js.map