@mozaic-ds/vue 1.0.0-beta.7 → 1.0.0-beta.9

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 (67) hide show
  1. package/README.md +1 -1
  2. package/dist/mozaic-vue.css +1 -1
  3. package/dist/mozaic-vue.d.ts +605 -210
  4. package/dist/mozaic-vue.js +1281 -629
  5. package/dist/mozaic-vue.js.map +1 -1
  6. package/dist/mozaic-vue.umd.cjs +1 -1
  7. package/dist/mozaic-vue.umd.cjs.map +1 -1
  8. package/package.json +8 -11
  9. package/src/components/Contributing.mdx +1 -1
  10. package/src/components/GettingStarted.mdx +2 -7
  11. package/src/components/Introduction.mdx +41 -21
  12. package/src/components/Support.mdx +1 -1
  13. package/src/components/breadcrumb/MBreadcrumb.stories.ts +11 -13
  14. package/src/components/breadcrumb/MBreadcrumb.vue +1 -1
  15. package/src/components/button/MButton.stories.ts +1 -8
  16. package/src/components/checkbox/MCheckbox.stories.ts +2 -2
  17. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +2 -2
  18. package/src/components/divider/MDivider.spec.ts +57 -0
  19. package/src/components/divider/MDivider.stories.ts +64 -0
  20. package/src/components/divider/MDivider.vue +56 -0
  21. package/src/components/drawer/MDrawer.spec.ts +100 -0
  22. package/src/components/drawer/MDrawer.stories.ts +128 -0
  23. package/src/components/drawer/MDrawer.vue +140 -0
  24. package/src/components/field/MField.stories.ts +2 -9
  25. package/src/components/fieldgroup/MFieldGroup.stories.ts +2 -9
  26. package/src/components/iconbutton/MIconButton.stories.ts +12 -4
  27. package/src/components/link/MLink.stories.ts +3 -12
  28. package/src/components/loader/MLoader.stories.ts +3 -5
  29. package/src/components/loader/MLoader.vue +1 -0
  30. package/src/components/loadingoverlay/MLoadingOverlay.spec.ts +37 -0
  31. package/src/components/loadingoverlay/MLoadingOverlay.stories.ts +40 -0
  32. package/src/components/loadingoverlay/MLoadingOverlay.vue +28 -0
  33. package/src/components/modal/MModal.spec.ts +103 -0
  34. package/src/components/modal/MModal.stories.ts +127 -0
  35. package/src/components/modal/MModal.vue +131 -0
  36. package/src/components/numberbadge/MNumberBadge.stories.ts +3 -5
  37. package/src/components/overlay/MOverlay.stories.ts +3 -8
  38. package/src/components/pagination/MPagination.spec.ts +123 -0
  39. package/src/components/pagination/MPagination.stories.ts +83 -0
  40. package/src/components/pagination/MPagination.vue +142 -0
  41. package/src/components/passwordinput/MPasswordInput.stories.ts +2 -2
  42. package/src/components/passwordinput/MPasswordInput.vue +2 -5
  43. package/src/components/pincode/MPincode.spec.ts +126 -0
  44. package/src/components/pincode/MPincode.stories.ts +68 -0
  45. package/src/components/pincode/MPincode.vue +139 -0
  46. package/src/components/quantityselector/MQuantitySelector.stories.ts +2 -2
  47. package/src/components/radio/MRadio.stories.ts +2 -2
  48. package/src/components/radiogroup/MRadioGroup.stories.ts +2 -2
  49. package/src/components/select/MSelect.stories.ts +2 -2
  50. package/src/components/statusbadge/MStatusBadge.stories.ts +1 -1
  51. package/src/components/statusdot/MStatusDot.stories.ts +1 -1
  52. package/src/components/statusnotification/MStatusNotification.spec.ts +12 -8
  53. package/src/components/statusnotification/MStatusNotification.stories.ts +2 -9
  54. package/src/components/statusnotification/MStatusNotification.vue +8 -8
  55. package/src/components/tabs/MTabs.stories.ts +104 -0
  56. package/src/components/tabs/MTabs.vue +113 -0
  57. package/src/components/tabs/Mtabs.spec.ts +149 -0
  58. package/src/components/tag/MTag.spec.ts +107 -0
  59. package/src/components/tag/MTag.stories.ts +75 -0
  60. package/src/components/tag/MTag.vue +151 -0
  61. package/src/components/textarea/MTextArea.stories.ts +2 -2
  62. package/src/components/textinput/MTextInput.stories.ts +2 -9
  63. package/src/components/toggle/MToggle.stories.ts +2 -2
  64. package/src/components/togglegroup/MToggleGroup.stories.ts +2 -2
  65. package/src/components/usingIcons.mdx +5 -13
  66. package/src/components/usingPresets.mdx +12 -9
  67. package/src/main.ts +8 -0
@@ -1,13 +1,13 @@
1
- import { defineComponent as y, computed as v, createBlock as w, openBlock as l, resolveDynamicComponent as j, normalizeClass as $, withCtx as S, createElementBlock as n, createCommentVNode as h, createElementVNode as d, renderSlot as g, Fragment as B, renderList as C, createVNode as V, createTextVNode as M, toDisplayString as f, normalizeStyle as Z, mergeProps as k, ref as I, watch as O, withDirectives as T, vModelDynamic as P, vModelText as N } from "vue";
2
- const G = {
1
+ import { defineComponent as y, computed as b, createBlock as I, openBlock as l, resolveDynamicComponent as N, normalizeClass as g, withCtx as C, createElementBlock as n, createCommentVNode as h, createElementVNode as r, renderSlot as V, Fragment as O, renderList as S, createVNode as w, createTextVNode as D, toDisplayString as f, normalizeStyle as J, mergeProps as B, ref as L, watch as q, withKeys as A, withDirectives as K, vModelDynamic as X, nextTick as Y, vModelText as Z } from "vue";
2
+ const x = {
3
3
  key: 0,
4
4
  class: "mc-link__icon",
5
5
  "aria-hidden": "true"
6
- }, U = { class: "mc-link__label" }, D = {
6
+ }, ee = { class: "mc-link__label" }, ae = {
7
7
  key: 1,
8
8
  class: "mc-link__icon",
9
9
  "aria-hidden": "true"
10
- }, F = /* @__PURE__ */ y({
10
+ }, te = /* @__PURE__ */ y({
11
11
  __name: "MLink",
12
12
  props: {
13
13
  iconPosition: { default: "left" },
@@ -18,72 +18,72 @@ const G = {
18
18
  inline: { type: Boolean },
19
19
  router: { type: Boolean }
20
20
  },
21
- setup(o) {
22
- const a = o, t = v(() => ({
23
- [`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
24
- [`mc-link--${a.size}`]: a.size && a.size != "s",
25
- "mc-link--inline": a.inline,
26
- "mc-link--stand-alone": !a.inline
21
+ setup(d) {
22
+ const e = d, a = b(() => ({
23
+ [`mc-link--${e.appearance}`]: e.appearance && e.appearance != "standard",
24
+ [`mc-link--${e.size}`]: e.size && e.size != "s",
25
+ "mc-link--inline": e.inline,
26
+ "mc-link--stand-alone": !e.inline
27
27
  }));
28
- return (e, i) => (l(), w(j(e.router ? "router-link" : "a"), {
29
- class: $(["mc-link", t.value]),
30
- href: e.href,
31
- target: e.target,
32
- to: e.router ? e.href : void 0
28
+ return (t, o) => (l(), I(N(t.router ? "router-link" : "a"), {
29
+ class: g(["mc-link", a.value]),
30
+ href: t.href,
31
+ target: t.target,
32
+ to: t.router ? t.href : void 0
33
33
  }, {
34
- default: S(() => [
35
- e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", G, [
36
- g(e.$slots, "icon", {}, void 0, !0)
34
+ default: C(() => [
35
+ t.$slots.icon && t.iconPosition == "left" ? (l(), n("span", x, [
36
+ V(t.$slots, "icon", {}, void 0, !0)
37
37
  ])) : h("", !0),
38
- d("span", U, [
39
- g(e.$slots, "default", {}, void 0, !0)
38
+ r("span", ee, [
39
+ V(t.$slots, "default", {}, void 0, !0)
40
40
  ]),
41
- e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", D, [
42
- g(e.$slots, "icon", {}, void 0, !0)
41
+ t.$slots.icon && t.iconPosition == "right" ? (l(), n("span", ae, [
42
+ V(t.$slots, "icon", {}, void 0, !0)
43
43
  ])) : h("", !0)
44
44
  ]),
45
45
  _: 3
46
46
  }, 8, ["class", "href", "target", "to"]));
47
47
  }
48
- }), _ = (o, a) => {
49
- const t = o.__vccOpts || o;
50
- for (const [e, i] of a)
51
- t[e] = i;
52
- return t;
53
- }, R = /* @__PURE__ */ _(F, [["__scopeId", "data-v-df607c25"]]), A = { class: "mc-breadcrumb__container" }, H = /* @__PURE__ */ y({
48
+ }), _ = (d, e) => {
49
+ const a = d.__vccOpts || d;
50
+ for (const [t, o] of e)
51
+ a[t] = o;
52
+ return a;
53
+ }, se = /* @__PURE__ */ _(te, [["__scopeId", "data-v-df607c25"]]), le = { class: "mc-breadcrumb__container" }, oe = /* @__PURE__ */ y({
54
54
  __name: "MBreadcrumb",
55
55
  props: {
56
56
  appearance: {},
57
57
  links: {}
58
58
  },
59
- setup(o) {
60
- const a = o, t = v(() => ({
61
- [`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
62
- })), e = (i) => {
59
+ setup(d) {
60
+ const e = d, a = b(() => ({
61
+ [`mc-breadcrumb--${e.appearance}`]: e.appearance && e.appearance != "standard"
62
+ })), t = (o) => {
63
63
  var s;
64
- return i === (((s = a.links) == null ? void 0 : s.length) ?? 0) - 1;
64
+ return o === (((s = e.links) == null ? void 0 : s.length) ?? 0) - 1;
65
65
  };
66
- return (i, s) => (l(), n("nav", {
67
- class: $(["mc-breadcrumb", t.value]),
66
+ return (o, s) => (l(), n("nav", {
67
+ class: g(["mc-breadcrumb", a.value]),
68
68
  "aria-label": "Breadcrumb"
69
69
  }, [
70
- d("ul", A, [
71
- (l(!0), n(B, null, C(i.links, (u, r) => (l(), n("li", {
70
+ r("ul", le, [
71
+ (l(!0), n(O, null, S(o.links, (i, u) => (l(), n("li", {
72
72
  class: "mc-breadcrumb__item",
73
- key: `breadcrumb-${r}`
73
+ key: `breadcrumb-${u}`
74
74
  }, [
75
- V(R, {
76
- href: u.href,
77
- router: u.router,
78
- appearance: i.appearance,
75
+ w(se, {
76
+ href: i.href,
77
+ router: i.router,
78
+ appearance: o.appearance,
79
79
  inline: "",
80
- class: $({
81
- "mc-breadcrumb__current": e(r)
80
+ class: g({
81
+ "mc-breadcrumb__current": t(u)
82
82
  }),
83
- "aria-current": e(r) ? "page" : void 0
83
+ "aria-current": t(u) ? "page" : void 0
84
84
  }, {
85
- default: S(() => [
86
- M(f(u.label), 1)
85
+ default: C(() => [
86
+ D(f(i.label), 1)
87
87
  ]),
88
88
  _: 2
89
89
  }, 1032, ["href", "router", "appearance", "class", "aria-current"])
@@ -91,24 +91,25 @@ const G = {
91
91
  ])
92
92
  ], 2));
93
93
  }
94
- }), Xa = /* @__PURE__ */ _(H, [["__scopeId", "data-v-09df4905"]]), E = { class: "mc-loader__spinner" }, Q = ["viewBox"], W = ["r"], J = {
94
+ }), _s = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-41249412"]]), ne = { class: "mc-loader__spinner" }, ie = ["viewBox"], de = ["r"], re = {
95
95
  key: 0,
96
96
  class: "mc-loader__text",
97
97
  role: "status"
98
- }, K = /* @__PURE__ */ y({
98
+ }, ce = /* @__PURE__ */ y({
99
99
  __name: "MLoader",
100
100
  props: {
101
101
  appearance: { default: "standard" },
102
102
  size: { default: "m" },
103
103
  text: {}
104
104
  },
105
- setup(o) {
106
- const a = o, t = v(() => ({
107
- [`mc-loader--${a.size}`]: a.size && a.size !== "m",
108
- [`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard"
109
- })), e = v(() => {
105
+ setup(d) {
106
+ const e = d, a = b(() => ({
107
+ [`mc-loader--${e.size}`]: e.size && e.size !== "m",
108
+ [`mc-loader--${e.appearance}`]: e.appearance && e.appearance !== "standard",
109
+ "mc-loader--text-visible": e.text
110
+ })), t = b(() => {
110
111
  let s;
111
- switch (a.size) {
112
+ switch (e.size) {
112
113
  case "s":
113
114
  s = "0 0 24 24";
114
115
  break;
@@ -119,9 +120,9 @@ const G = {
119
120
  s = "0 0 32 32";
120
121
  }
121
122
  return s;
122
- }), i = v(() => {
123
+ }), o = b(() => {
123
124
  let s;
124
- switch (a.size) {
125
+ switch (e.size) {
125
126
  case "s":
126
127
  s = 6;
127
128
  break;
@@ -133,41 +134,41 @@ const G = {
133
134
  }
134
135
  return s;
135
136
  });
136
- return (s, u) => (l(), n("div", {
137
- class: $(["mc-loader", t.value])
137
+ return (s, i) => (l(), n("div", {
138
+ class: g(["mc-loader", a.value])
138
139
  }, [
139
- d("span", E, [
140
+ r("span", ne, [
140
141
  (l(), n("svg", {
141
142
  class: "mc-loader__icon",
142
143
  xmlns: "http://www.w3.org/2000/svg",
143
- viewBox: e.value,
144
+ viewBox: t.value,
144
145
  "aria-hidden": "true"
145
146
  }, [
146
- d("circle", {
147
+ r("circle", {
147
148
  class: "mc-loader__path",
148
149
  cx: "50%",
149
150
  cy: "50%",
150
- r: i.value
151
- }, null, 8, W)
152
- ], 8, Q))
151
+ r: o.value
152
+ }, null, 8, de)
153
+ ], 8, ie))
153
154
  ]),
154
- s.text ? (l(), n("p", J, f(s.text), 1)) : h("", !0)
155
+ s.text ? (l(), n("p", re, f(s.text), 1)) : h("", !0)
155
156
  ], 2));
156
157
  }
157
- }), X = /* @__PURE__ */ _(K, [["__scopeId", "data-v-56c66912"]]), Y = ["disabled", "type"], x = {
158
+ }), H = /* @__PURE__ */ _(ce, [["__scopeId", "data-v-998c550b"]]), ue = ["disabled", "type"], pe = {
158
159
  key: 0,
159
160
  class: "mc-button__icon"
160
- }, ee = {
161
+ }, me = {
161
162
  key: 1,
162
163
  class: "mc-button__icon",
163
164
  style: { position: "absolute" }
164
- }, ae = {
165
+ }, _e = {
165
166
  key: 2,
166
167
  class: "mc-button__icon"
167
- }, se = {
168
+ }, ve = {
168
169
  key: 4,
169
170
  class: "mc-button__icon"
170
- }, te = /* @__PURE__ */ y({
171
+ }, be = /* @__PURE__ */ y({
171
172
  __name: "MButton",
172
173
  props: {
173
174
  appearance: { default: "standard" },
@@ -179,45 +180,45 @@ const G = {
179
180
  type: { default: "button" },
180
181
  isLoading: { type: Boolean }
181
182
  },
182
- setup(o) {
183
- const a = o, t = v(() => ({
184
- [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
185
- [`mc-button--${a.size}`]: a.size && a.size != "m",
186
- "mc-button--ghost": a.ghost,
187
- "mc-button--outlined": a.outlined,
188
- "mc-button--icon-only": a.iconPosition == "only"
183
+ setup(d) {
184
+ const e = d, a = b(() => ({
185
+ [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
186
+ [`mc-button--${e.size}`]: e.size && e.size != "m",
187
+ "mc-button--ghost": e.ghost,
188
+ "mc-button--outlined": e.outlined,
189
+ "mc-button--icon-only": e.iconPosition == "only"
189
190
  }));
190
- return (e, i) => (l(), n("button", {
191
- class: $(["mc-button", t.value]),
192
- disabled: e.disabled,
193
- type: e.type
191
+ return (t, o) => (l(), n("button", {
192
+ class: g(["mc-button", a.value]),
193
+ disabled: t.disabled,
194
+ type: t.type
194
195
  }, [
195
- e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", x, [
196
- g(e.$slots, "icon", {}, void 0, !0)
196
+ t.$slots.icon && t.iconPosition == "left" && !t.isLoading ? (l(), n("span", pe, [
197
+ V(t.$slots, "icon", {}, void 0, !0)
197
198
  ])) : h("", !0),
198
- e.isLoading ? (l(), n("span", ee, [
199
- V(X, {
199
+ t.isLoading ? (l(), n("span", me, [
200
+ w(H, {
200
201
  style: { color: "currentColor" },
201
202
  size: "s"
202
203
  })
203
204
  ])) : h("", !0),
204
- e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", ae, [
205
- g(e.$slots, "icon", {}, void 0, !0)
205
+ t.$slots.icon && t.iconPosition == "only" ? (l(), n("span", _e, [
206
+ V(t.$slots, "icon", {}, void 0, !0)
206
207
  ])) : (l(), n("span", {
207
208
  key: 3,
208
209
  class: "mc-button__label",
209
- style: Z({ visibility: e.isLoading ? "hidden" : "visible" })
210
+ style: J({ visibility: t.isLoading ? "hidden" : "visible" })
210
211
  }, [
211
- g(e.$slots, "default", {}, () => [
212
- i[0] || (i[0] = M("Button Label"))
212
+ V(t.$slots, "default", {}, () => [
213
+ o[0] || (o[0] = D("Button Label"))
213
214
  ], !0)
214
215
  ], 4)),
215
- e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", se, [
216
- g(e.$slots, "icon", {}, void 0, !0)
216
+ t.$slots.icon && t.iconPosition == "right" && !t.isLoading ? (l(), n("span", ve, [
217
+ V(t.$slots, "icon", {}, void 0, !0)
217
218
  ])) : h("", !0)
218
- ], 10, Y));
219
+ ], 10, ue));
219
220
  }
220
- }), le = /* @__PURE__ */ _(te, [["__scopeId", "data-v-f4f43ab6"]]), ne = { class: "mc-checkbox" }, oe = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], ie = ["for"], de = /* @__PURE__ */ y({
221
+ }), F = /* @__PURE__ */ _(be, [["__scopeId", "data-v-f4f43ab6"]]), fe = { class: "mc-checkbox" }, he = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], $e = ["for"], ye = /* @__PURE__ */ y({
221
222
  __name: "MCheckbox",
222
223
  props: {
223
224
  id: {},
@@ -229,31 +230,31 @@ const G = {
229
230
  disabled: { type: Boolean }
230
231
  },
231
232
  emits: ["update:modelValue"],
232
- setup(o, { emit: a }) {
233
- const t = o, e = v(() => ({
234
- "is-invalid": t.isInvalid
235
- })), i = a;
236
- return (s, u) => (l(), n("div", ne, [
237
- d("input", k({
233
+ setup(d, { emit: e }) {
234
+ const a = d, t = b(() => ({
235
+ "is-invalid": a.isInvalid
236
+ })), o = e;
237
+ return (s, i) => (l(), n("div", fe, [
238
+ r("input", B({
238
239
  id: s.id,
239
240
  type: "checkbox",
240
- class: ["mc-checkbox__input", e.value],
241
+ class: ["mc-checkbox__input", t.value],
241
242
  name: s.name,
242
243
  checked: s.modelValue,
243
244
  indeterminate: s.indeterminate,
244
245
  disabled: s.disabled,
245
246
  "aria-invalid": s.isInvalid
246
247
  }, s.$attrs, {
247
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
248
- }), null, 16, oe),
248
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
249
+ }), null, 16, he),
249
250
  s.label ? (l(), n("label", {
250
251
  key: 0,
251
252
  for: s.id,
252
253
  class: "mc-checkbox__label"
253
- }, f(s.label), 9, ie)) : h("", !0)
254
+ }, f(s.label), 9, $e)) : h("", !0)
254
255
  ]));
255
256
  }
256
- }), re = /* @__PURE__ */ _(de, [["__scopeId", "data-v-37fd0a35"]]), ce = /* @__PURE__ */ y({
257
+ }), ge = /* @__PURE__ */ _(ye, [["__scopeId", "data-v-37fd0a35"]]), ke = /* @__PURE__ */ y({
257
258
  __name: "MCheckboxGroup",
258
259
  props: {
259
260
  name: {},
@@ -262,43 +263,261 @@ const G = {
262
263
  inline: { type: Boolean }
263
264
  },
264
265
  emits: ["update:modelValue"],
265
- setup(o, { emit: a }) {
266
- const t = o, e = I([]);
267
- O(
268
- () => t.modelValue,
266
+ setup(d, { emit: e }) {
267
+ const a = d, t = L([]);
268
+ q(
269
+ () => a.modelValue,
269
270
  (p) => {
270
- e.value = p || [];
271
+ t.value = p || [];
271
272
  },
272
273
  { immediate: !0 }
273
274
  );
274
- const i = (p, c) => {
275
- let m = [...e.value];
276
- p && !m.includes(c) ? m.push(c) : m = m.filter((b) => b !== c), r("update:modelValue", m), e.value = m;
277
- }, s = v(() => ({
278
- "mc-field__container--inline": t.inline
279
- })), u = v(() => ({
280
- "mc-field__container--inline__item": t.inline
281
- })), r = a;
282
- return (p, c) => (l(), n("div", {
283
- class: $(["mc-field__container", s.value])
275
+ const o = (p, m) => {
276
+ let c = [...t.value];
277
+ p && !c.includes(m) ? c.push(m) : c = c.filter((v) => v !== m), u("update:modelValue", c), t.value = c;
278
+ }, s = b(() => ({
279
+ "mc-field__container--inline": a.inline
280
+ })), i = b(() => ({
281
+ "mc-field__container--inline__item": a.inline
282
+ })), u = e;
283
+ return (p, m) => (l(), n("div", {
284
+ class: g(["mc-field__container", s.value])
284
285
  }, [
285
- (l(!0), n(B, null, C(p.options, (m) => (l(), w(re, {
286
- id: m.id,
287
- key: m.id,
288
- label: m.label,
289
- "is-invalid": m.isInvalid,
286
+ (l(!0), n(O, null, S(p.options, (c) => (l(), I(ge, {
287
+ id: c.id,
288
+ key: c.id,
289
+ label: c.label,
290
+ "is-invalid": c.isInvalid,
290
291
  name: p.name,
291
- class: $(["mc-field__item", u.value]),
292
- "model-value": p.modelValue ? p.modelValue.includes(m.value) : void 0,
293
- disabled: m.disabled,
294
- "onUpdate:modelValue": (b) => i(b, m.value)
292
+ class: g(["mc-field__item", i.value]),
293
+ "model-value": p.modelValue ? p.modelValue.includes(c.value) : void 0,
294
+ disabled: c.disabled,
295
+ "onUpdate:modelValue": (v) => o(v, c.value)
295
296
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
296
297
  ], 2));
297
298
  }
298
- }), Ya = /* @__PURE__ */ _(ce, [["__scopeId", "data-v-8ee4699f"]]), ue = { class: "mc-field" }, pe = ["for"], me = {
299
+ }), vs = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-8ee4699f"]]), we = { class: "mc-divider" }, Ve = /* @__PURE__ */ y({
300
+ __name: "MDivider",
301
+ props: {
302
+ orientation: { default: "horizontal" },
303
+ style: { default: "primary" },
304
+ size: { default: "s" }
305
+ },
306
+ setup(d) {
307
+ const e = d, a = b(() => ({
308
+ [`mc-divider-${e.orientation}`]: e.orientation,
309
+ [`mc-divider-horizontal--${e.style}`]: e.style && e.style != "primary",
310
+ [`mc-divider-horizontal--${e.size}`]: e.size && e.size != "s"
311
+ }));
312
+ return (t, o) => (l(), n("div", we, [
313
+ r("div", {
314
+ class: g(a.value)
315
+ }, null, 2),
316
+ V(t.$slots, "default", {}, void 0, !0)
317
+ ]));
318
+ }
319
+ }), Be = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-f8e160af"]]), Ie = {
320
+ name: "ArrowBack24",
321
+ props: {
322
+ /**
323
+ * Icon color
324
+ */
325
+ color: {
326
+ type: String,
327
+ default: "currentColor"
328
+ }
329
+ }
330
+ }, Ce = ["fill"];
331
+ function Me(d, e, a, t, o, s) {
332
+ return l(), n("svg", {
333
+ "aria-hidden": "true",
334
+ fill: a.color,
335
+ xmlns: "http://www.w3.org/2000/svg",
336
+ viewBox: "0 0 24 24",
337
+ width: "24",
338
+ height: "24"
339
+ }, e[0] || (e[0] = [
340
+ r("path", {
341
+ "fill-rule": "evenodd",
342
+ d: "M8.707 6.293a1 1 0 0 1 0 1.414L5.414 11H21a1 1 0 1 1 0 2H5.414l3.293 3.293a1 1 0 1 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0"
343
+ }, null, -1)
344
+ ]), 8, Ce);
345
+ }
346
+ const ze = /* @__PURE__ */ _(Ie, [["render", Me]]), Le = {
347
+ name: "Cross24",
348
+ props: {
349
+ /**
350
+ * Icon color
351
+ */
352
+ color: {
353
+ type: String,
354
+ default: "currentColor"
355
+ }
356
+ }
357
+ }, Te = ["fill"];
358
+ function je(d, e, a, t, o, s) {
359
+ return l(), n("svg", {
360
+ "aria-hidden": "true",
361
+ fill: a.color,
362
+ xmlns: "http://www.w3.org/2000/svg",
363
+ viewBox: "0 0 24 24",
364
+ width: "24",
365
+ height: "24"
366
+ }, e[0] || (e[0] = [
367
+ r("path", {
368
+ "fill-rule": "evenodd",
369
+ d: "M17.707 7.707a1 1 0 0 0-1.414-1.414L12 10.586 7.707 6.293a1 1 0 0 0-1.414 1.414L10.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414L12 13.414l4.293 4.293a1 1 0 0 0 1.414-1.414L13.414 12z"
370
+ }, null, -1)
371
+ ]), 8, Te);
372
+ }
373
+ const E = /* @__PURE__ */ _(Le, [["render", je]]), Oe = ["disabled", "type"], Se = { class: "mc-button__icon" }, qe = /* @__PURE__ */ y({
374
+ __name: "MIconButton",
375
+ props: {
376
+ appearance: { default: "standard" },
377
+ size: { default: "m" },
378
+ disabled: { type: Boolean },
379
+ ghost: { type: Boolean },
380
+ outlined: { type: Boolean },
381
+ type: { default: "button" }
382
+ },
383
+ setup(d) {
384
+ const e = d, a = b(() => ({
385
+ [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
386
+ [`mc-button--${e.size}`]: e.size && e.size != "m",
387
+ "mc-button--ghost": e.ghost,
388
+ "mc-button--outlined": e.outlined
389
+ }));
390
+ return (t, o) => (l(), n("button", {
391
+ class: g(["mc-button mc-button--icon-button", a.value]),
392
+ disabled: t.disabled,
393
+ type: t.type
394
+ }, [
395
+ r("span", Se, [
396
+ V(t.$slots, "icon", {}, void 0, !0)
397
+ ])
398
+ ], 10, Oe));
399
+ }
400
+ }), P = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-abf78562"]]), Pe = ["aria-labelledby"], De = /* @__PURE__ */ y({
401
+ __name: "MOverlay",
402
+ props: {
403
+ isVisible: { type: Boolean },
404
+ dialogLabel: {}
405
+ },
406
+ setup(d) {
407
+ return (e, a) => (l(), n("div", {
408
+ class: g(["mc-overlay", { "is-visible": e.isVisible }])
409
+ }, [
410
+ r("div", {
411
+ role: "dialog",
412
+ tabindex: "-1",
413
+ "aria-labelledby": e.dialogLabel
414
+ }, [
415
+ V(e.$slots, "default", {}, void 0, !0)
416
+ ], 8, Pe)
417
+ ], 2));
418
+ }
419
+ }), Q = /* @__PURE__ */ _(De, [["__scopeId", "data-v-db90fdb3"]]), Fe = ["aria-modal", "aria-hidden"], Ne = {
420
+ class: "mc-drawer__dialog",
421
+ role: "document"
422
+ }, Ae = { class: "mc-drawer__header" }, Re = {
423
+ class: "mc-drawer__title",
424
+ id: "drawerTitle"
425
+ }, Ge = { class: "mc-drawer__body" }, Ue = {
426
+ class: "mc-drawer__content",
427
+ tabindex: "0"
428
+ }, Ke = {
429
+ key: 0,
430
+ class: "mc-drawer__content__title"
431
+ }, He = {
432
+ key: 0,
433
+ class: "mc-drawer__footer"
434
+ }, Ee = /* @__PURE__ */ y({
435
+ __name: "MDrawer",
436
+ props: {
437
+ open: { type: Boolean },
438
+ position: {},
439
+ extended: { type: Boolean },
440
+ back: { type: Boolean },
441
+ title: {},
442
+ contentTitle: {}
443
+ },
444
+ emits: ["update:open", "back"],
445
+ setup(d, { emit: e }) {
446
+ const a = d, t = b(() => ({
447
+ "is-open": a.open,
448
+ "mc-drawer--extend": a.extended,
449
+ [`mc-drawer--${a.position}`]: a.position && a.position != "right"
450
+ }));
451
+ q(
452
+ () => a.open,
453
+ (i) => {
454
+ s("update:open", i);
455
+ }
456
+ );
457
+ const o = () => {
458
+ s("update:open", !1);
459
+ }, s = e;
460
+ return (i, u) => (l(), I(Q, {
461
+ "is-visible": i.open,
462
+ dialogLabel: "drawerTitle"
463
+ }, {
464
+ default: C(() => [
465
+ r("section", B({
466
+ class: ["mc-drawer", t.value],
467
+ role: "dialog",
468
+ "aria-labelledby": "drawerTitle",
469
+ "aria-modal": i.open ? "true" : "false",
470
+ tabindex: "-1",
471
+ "aria-hidden": !i.open
472
+ }, i.$attrs, {
473
+ onKeydown: A(o, ["esc"])
474
+ }), [
475
+ r("div", Ne, [
476
+ r("div", Ae, [
477
+ i.back ? (l(), I(P, {
478
+ key: 0,
479
+ class: "mc-drawer__back",
480
+ "aria-label": "Back",
481
+ ghost: "",
482
+ onClick: u[0] || (u[0] = (p) => s("back"))
483
+ }, {
484
+ icon: C(() => [
485
+ w(ze, { "aria-hidden": "true" })
486
+ ]),
487
+ _: 1
488
+ })) : h("", !0),
489
+ r("h2", Re, f(i.title), 1),
490
+ w(P, {
491
+ class: "mc-drawer__close",
492
+ "aria-label": "Close",
493
+ ghost: "",
494
+ onClick: o
495
+ }, {
496
+ icon: C(() => [
497
+ w(E, { "aria-hidden": "true" })
498
+ ]),
499
+ _: 1
500
+ })
501
+ ]),
502
+ r("div", Ge, [
503
+ r("div", Ue, [
504
+ i.contentTitle ? (l(), n("h2", Ke, f(i.contentTitle), 1)) : h("", !0),
505
+ V(i.$slots, "default", {}, void 0, !0)
506
+ ])
507
+ ]),
508
+ i.$slots.footer ? (l(), n("div", He, [
509
+ V(i.$slots, "footer", {}, void 0, !0)
510
+ ])) : h("", !0)
511
+ ])
512
+ ], 16, Fe)
513
+ ]),
514
+ _: 3
515
+ }, 8, ["is-visible"]));
516
+ }
517
+ }), bs = /* @__PURE__ */ _(Ee, [["__scopeId", "data-v-673a796c"]]), Qe = { class: "mc-field" }, We = ["for"], Je = {
299
518
  key: 0,
300
519
  class: "mc-field__requirement"
301
- }, _e = ["id"], ve = { class: "mc-field__content" }, be = ["id"], fe = /* @__PURE__ */ y({
520
+ }, Xe = ["id"], Ye = { class: "mc-field__content" }, Ze = ["id"], xe = /* @__PURE__ */ y({
302
521
  __name: "MField",
303
522
  props: {
304
523
  id: {},
@@ -311,41 +530,41 @@ const G = {
311
530
  messageId: {},
312
531
  message: {}
313
532
  },
314
- setup(o) {
315
- const a = o, t = v(() => ({
316
- "is-valid": a.isValid,
317
- "is-invalid": a.isInvalid
533
+ setup(d) {
534
+ const e = d, a = b(() => ({
535
+ "is-valid": e.isValid,
536
+ "is-invalid": e.isInvalid
318
537
  }));
319
- return (e, i) => (l(), n("div", ue, [
320
- d("label", {
538
+ return (t, o) => (l(), n("div", Qe, [
539
+ r("label", {
321
540
  class: "mc-field__label",
322
- for: e.id
541
+ for: t.id
323
542
  }, [
324
- M(f(e.label) + " ", 1),
325
- e.requirementText ? (l(), n("span", me, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
326
- ], 8, pe),
327
- e.helpId && e.helpText ? (l(), n("span", {
543
+ D(f(t.label) + " ", 1),
544
+ t.requirementText ? (l(), n("span", Je, "(" + f(t.requirementText) + ")", 1)) : h("", !0)
545
+ ], 8, We),
546
+ t.helpId && t.helpText ? (l(), n("span", {
328
547
  key: 0,
329
- id: e.helpId,
548
+ id: t.helpId,
330
549
  class: "mc-field__help"
331
- }, f(e.helpText), 9, _e)) : h("", !0),
332
- d("div", ve, [
333
- g(e.$slots, "default", {}, void 0, !0)
550
+ }, f(t.helpText), 9, Xe)) : h("", !0),
551
+ r("div", Ye, [
552
+ V(t.$slots, "default", {}, void 0, !0)
334
553
  ]),
335
- (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
554
+ (t.isValid || t.isInvalid) && t.message ? (l(), n("span", {
336
555
  key: 1,
337
- class: $(["mc-field__validation-message", t.value]),
338
- id: e.messageId
339
- }, f(e.message), 11, be)) : h("", !0)
556
+ class: g(["mc-field__validation-message", a.value]),
557
+ id: t.messageId
558
+ }, f(t.message), 11, Ze)) : h("", !0)
340
559
  ]));
341
560
  }
342
- }), xa = /* @__PURE__ */ _(fe, [["__scopeId", "data-v-ead078c4"]]), he = { class: "mc-field--group" }, $e = ["for"], ye = {
561
+ }), fs = /* @__PURE__ */ _(xe, [["__scopeId", "data-v-ead078c4"]]), ea = { class: "mc-field--group" }, aa = ["for"], ta = {
343
562
  key: 0,
344
563
  class: "mc-field__requirement"
345
- }, ge = {
564
+ }, sa = {
346
565
  key: 0,
347
566
  class: "mc-field__help"
348
- }, Ve = { class: "mc-field__content" }, ke = /* @__PURE__ */ y({
567
+ }, la = { class: "mc-field__content" }, oa = /* @__PURE__ */ y({
349
568
  __name: "MFieldGroup",
350
569
  props: {
351
570
  id: {},
@@ -356,92 +575,356 @@ const G = {
356
575
  isInvalid: { type: Boolean },
357
576
  message: {}
358
577
  },
359
- setup(o) {
360
- const a = o, t = v(() => ({
361
- "is-valid": a.isValid,
362
- "is-invalid": a.isInvalid
578
+ setup(d) {
579
+ const e = d, a = b(() => ({
580
+ "is-valid": e.isValid,
581
+ "is-invalid": e.isInvalid
363
582
  }));
364
- return (e, i) => (l(), n("fieldset", he, [
365
- d("legend", {
583
+ return (t, o) => (l(), n("fieldset", ea, [
584
+ r("legend", {
366
585
  class: "mc-field__legend",
367
- for: e.id
586
+ for: t.id
368
587
  }, [
369
- M(f(e.legend) + " ", 1),
370
- e.requirementText ? (l(), n("span", ye, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
371
- ], 8, $e),
372
- e.helpText ? (l(), n("span", ge, f(e.helpText), 1)) : h("", !0),
373
- d("div", Ve, [
374
- g(e.$slots, "default", {}, void 0, !0)
588
+ D(f(t.legend) + " ", 1),
589
+ t.requirementText ? (l(), n("span", ta, "(" + f(t.requirementText) + ")", 1)) : h("", !0)
590
+ ], 8, aa),
591
+ t.helpText ? (l(), n("span", sa, f(t.helpText), 1)) : h("", !0),
592
+ r("div", la, [
593
+ V(t.$slots, "default", {}, void 0, !0)
375
594
  ]),
376
- (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
595
+ (t.isValid || t.isInvalid) && t.message ? (l(), n("span", {
377
596
  key: 1,
378
- class: $(["mc-field__validation-message", t.value])
379
- }, f(e.message), 3)) : h("", !0)
597
+ class: g(["mc-field__validation-message", a.value])
598
+ }, f(t.message), 3)) : h("", !0)
380
599
  ]));
381
600
  }
382
- }), es = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-fc0c08dc"]]), Ie = ["disabled", "type"], we = { class: "mc-button__icon" }, Be = /* @__PURE__ */ y({
383
- __name: "MIconButton",
601
+ }), hs = /* @__PURE__ */ _(oa, [["__scopeId", "data-v-fc0c08dc"]]), na = ["aria-label"], ia = /* @__PURE__ */ y({
602
+ __name: "MLoadingOverlay",
384
603
  props: {
385
- appearance: { default: "standard" },
386
- size: { default: "m" },
387
- disabled: { type: Boolean },
388
- ghost: { type: Boolean },
389
- outlined: { type: Boolean },
390
- type: { default: "button" }
604
+ isVisible: { type: Boolean },
605
+ text: {}
391
606
  },
392
- setup(o) {
393
- const a = o, t = v(() => ({
394
- [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
395
- [`mc-button--${a.size}`]: a.size && a.size != "m",
396
- "mc-button--ghost": a.ghost,
397
- "mc-button--outlined": a.outlined
398
- }));
399
- return (e, i) => (l(), n("button", {
400
- class: $(["mc-button mc-button--icon-button", t.value]),
401
- disabled: e.disabled,
402
- type: e.type
607
+ setup(d) {
608
+ return (e, a) => (l(), n("div", {
609
+ class: g(["mc-loading-loader", { "is-visible": e.isVisible }])
403
610
  }, [
404
- d("span", we, [
405
- g(e.$slots, "icon", {}, void 0, !0)
406
- ])
407
- ], 10, Ie));
611
+ r("div", B({
612
+ role: "dialog",
613
+ tabindex: "-1",
614
+ "aria-label": e.text
615
+ }, e.$attrs), [
616
+ w(H, {
617
+ size: "l",
618
+ appearance: "inverse",
619
+ text: e.text
620
+ }, null, 8, ["text"])
621
+ ], 16, na)
622
+ ], 2));
623
+ }
624
+ }), $s = /* @__PURE__ */ _(ia, [["__scopeId", "data-v-eae6b1f2"]]), da = ["aria-modal", "aria-hidden"], ra = {
625
+ class: "mc-modal__dialog",
626
+ role: "document"
627
+ }, ca = { class: "mc-modal__header" }, ua = {
628
+ key: 0,
629
+ class: "mc-modal__icon"
630
+ }, pa = {
631
+ class: "mc-modal__title",
632
+ id: "modalTitle"
633
+ }, ma = { class: "mc-modal__body" }, _a = {
634
+ key: 0,
635
+ class: "mc-modal__footer"
636
+ }, va = { class: "mc-modal__link" }, ba = /* @__PURE__ */ y({
637
+ __name: "MModal",
638
+ props: {
639
+ open: { type: Boolean },
640
+ title: {},
641
+ description: {},
642
+ closable: { type: Boolean, default: !0 }
643
+ },
644
+ emits: ["update:open"],
645
+ setup(d, { emit: e }) {
646
+ const a = d, t = b(() => ({
647
+ "is-open": a.open
648
+ }));
649
+ q(
650
+ () => a.open,
651
+ (i) => {
652
+ s("update:open", i);
653
+ }
654
+ );
655
+ const o = () => {
656
+ s("update:open", !1);
657
+ }, s = e;
658
+ return (i, u) => (l(), I(Q, {
659
+ "is-visible": i.open,
660
+ dialogLabel: "modalTitle"
661
+ }, {
662
+ default: C(() => [
663
+ r("section", B({
664
+ class: ["mc-modal", t.value],
665
+ role: "dialog",
666
+ "aria-labelledby": "modalTitle",
667
+ "aria-modal": i.open ? "true" : "false",
668
+ tabindex: "-1",
669
+ "aria-hidden": !i.open
670
+ }, i.$attrs, {
671
+ onKeydown: A(o, ["esc"])
672
+ }), [
673
+ r("div", ra, [
674
+ r("header", ca, [
675
+ i.$slots.icon ? (l(), n("span", ua, [
676
+ V(i.$slots, "icon", {}, void 0, !0)
677
+ ])) : h("", !0),
678
+ r("h2", pa, f(i.title), 1),
679
+ i.closable ? (l(), I(P, {
680
+ key: 1,
681
+ class: "mc-modal__close",
682
+ "aria-label": "Close",
683
+ ghost: "",
684
+ onClick: o
685
+ }, {
686
+ icon: C(() => [
687
+ w(E, { "aria-hidden": "true" })
688
+ ]),
689
+ _: 1
690
+ })) : h("", !0)
691
+ ]),
692
+ r("main", ma, [
693
+ r("p", null, f(i.description), 1),
694
+ V(i.$slots, "default", {}, void 0, !0)
695
+ ]),
696
+ i.$slots.footer ? (l(), n("footer", _a, [
697
+ r("span", va, [
698
+ V(i.$slots, "link", {}, void 0, !0)
699
+ ]),
700
+ V(i.$slots, "footer", {}, void 0, !0)
701
+ ])) : h("", !0)
702
+ ])
703
+ ], 16, da)
704
+ ]),
705
+ _: 3
706
+ }, 8, ["is-visible"]));
408
707
  }
409
- }), as = /* @__PURE__ */ _(Be, [["__scopeId", "data-v-abf78562"]]), Ce = /* @__PURE__ */ y({
708
+ }), ys = /* @__PURE__ */ _(ba, [["__scopeId", "data-v-20ce36b2"]]), fa = /* @__PURE__ */ y({
410
709
  __name: "MNumberBadge",
411
710
  props: {
412
711
  label: {},
413
712
  appearance: { default: "standard" },
414
713
  size: { default: "s" }
415
714
  },
416
- setup(o) {
417
- const a = o, t = v(() => ({
418
- [`mc-number-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
419
- [`mc-number-badge--${a.size}`]: a.size && a.size != "s"
715
+ setup(d) {
716
+ const e = d, a = b(() => ({
717
+ [`mc-number-badge--${e.appearance}`]: e.appearance && e.appearance != "standard",
718
+ [`mc-number-badge--${e.size}`]: e.size && e.size != "s"
420
719
  }));
421
- return (e, i) => (l(), n("span", {
422
- class: $(["mc-number-badge", t.value])
423
- }, f(e.label), 3));
720
+ return (t, o) => (l(), n("span", {
721
+ class: g(["mc-number-badge", a.value])
722
+ }, f(t.label), 3));
424
723
  }
425
- }), ss = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-7e6acb92"]]), Me = ["aria-labelledby"], ze = /* @__PURE__ */ y({
426
- __name: "MOverlay",
724
+ }), ha = /* @__PURE__ */ _(fa, [["__scopeId", "data-v-7e6acb92"]]), $a = ["id", "name", "value", "disabled"], ya = {
725
+ key: 0,
726
+ value: "",
727
+ disabled: ""
728
+ }, ga = ["value", "disabled"], ka = /* @__PURE__ */ y({
729
+ __name: "MSelect",
427
730
  props: {
428
- isVisible: { type: Boolean },
429
- dialogLabel: {}
731
+ id: {},
732
+ name: {},
733
+ options: {},
734
+ modelValue: {},
735
+ placeholder: {},
736
+ isInvalid: { type: Boolean },
737
+ disabled: { type: Boolean },
738
+ size: { default: "m" },
739
+ readonly: { type: Boolean }
430
740
  },
431
- setup(o) {
432
- return (a, t) => (l(), n("div", {
433
- class: $(["mc-overlay", { "is-visible": a.isVisible }])
434
- }, [
435
- d("div", {
436
- role: "dialog",
437
- tabindex: "-1",
438
- "aria-labelledby": a.dialogLabel
439
- }, [
440
- g(a.$slots, "default", {}, void 0, !0)
441
- ], 8, Me)
442
- ], 2));
741
+ emits: ["update:modelValue"],
742
+ setup(d, { emit: e }) {
743
+ const a = d, t = b(() => ({
744
+ [`mc-select--${a.size}`]: a.size && a.size != "m",
745
+ "mc-select--readonly": a.readonly,
746
+ "is-invalid": a.isInvalid
747
+ })), o = e;
748
+ return (s, i) => (l(), n("select", B({
749
+ id: s.id,
750
+ class: ["mc-select", t.value],
751
+ name: s.name,
752
+ value: s.modelValue,
753
+ disabled: s.disabled
754
+ }, s.$attrs, {
755
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.value))
756
+ }), [
757
+ s.placeholder ? (l(), n("option", ya, " -- " + f(s.placeholder) + " -- ", 1)) : h("", !0),
758
+ (l(!0), n(O, null, S(s.options, (u, p) => (l(), n("option", B({
759
+ key: p,
760
+ value: u.value
761
+ }, { ref_for: !0 }, u.attributes, {
762
+ disabled: u.disabled
763
+ }), f(u.text), 17, ga))), 128))
764
+ ], 16, $a));
765
+ }
766
+ }), wa = /* @__PURE__ */ _(ka, [["__scopeId", "data-v-68c735e4"]]), Va = {
767
+ name: "ChevronLeft24",
768
+ props: {
769
+ /**
770
+ * Icon color
771
+ */
772
+ color: {
773
+ type: String,
774
+ default: "currentColor"
775
+ }
776
+ }
777
+ }, Ba = ["fill"];
778
+ function Ia(d, e, a, t, o, s) {
779
+ return l(), n("svg", {
780
+ "aria-hidden": "true",
781
+ fill: a.color,
782
+ xmlns: "http://www.w3.org/2000/svg",
783
+ viewBox: "0 0 24 24",
784
+ width: "24",
785
+ height: "24"
786
+ }, e[0] || (e[0] = [
787
+ r("path", {
788
+ "fill-rule": "evenodd",
789
+ d: "M14.207 6.293a1 1 0 0 1 0 1.414L9.914 12l4.293 4.293a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0"
790
+ }, null, -1)
791
+ ]), 8, Ba);
792
+ }
793
+ const G = /* @__PURE__ */ _(Va, [["render", Ia]]), Ca = {
794
+ name: "ChevronRight24",
795
+ props: {
796
+ /**
797
+ * Icon color
798
+ */
799
+ color: {
800
+ type: String,
801
+ default: "currentColor"
802
+ }
803
+ }
804
+ }, Ma = ["fill"];
805
+ function za(d, e, a, t, o, s) {
806
+ return l(), n("svg", {
807
+ "aria-hidden": "true",
808
+ fill: a.color,
809
+ xmlns: "http://www.w3.org/2000/svg",
810
+ viewBox: "0 0 24 24",
811
+ width: "24",
812
+ height: "24"
813
+ }, e[0] || (e[0] = [
814
+ r("path", {
815
+ "fill-rule": "evenodd",
816
+ d: "M9.793 6.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L14.086 12 9.793 7.707a1 1 0 0 1 0-1.414"
817
+ }, null, -1)
818
+ ]), 8, Ma);
819
+ }
820
+ const U = /* @__PURE__ */ _(Ca, [["render", za]]), La = {
821
+ class: "mc-pagination",
822
+ role: "navigation",
823
+ "aria-label": "pagination"
824
+ }, Ta = {
825
+ key: 2,
826
+ class: "mc-pagination__field"
827
+ }, ja = {
828
+ key: 3,
829
+ class: "mc-pagination__label",
830
+ "aria-current": "page"
831
+ }, Oa = /* @__PURE__ */ y({
832
+ __name: "MPagination",
833
+ props: {
834
+ id: {},
835
+ modelValue: {},
836
+ compact: { type: Boolean },
837
+ options: {},
838
+ selectLabel: {}
839
+ },
840
+ emits: ["update:modelValue"],
841
+ setup(d, { emit: e }) {
842
+ const a = d, t = e, o = L(a.modelValue);
843
+ q(o, (c) => {
844
+ c !== a.modelValue && t("update:modelValue", c);
845
+ });
846
+ const s = b(
847
+ () => a.options.findIndex((c) => c.value === o.value)
848
+ ), i = b(() => s.value === 0), u = b(
849
+ () => s.value === a.options.length - 1
850
+ ), p = () => {
851
+ const c = a.options.findIndex(
852
+ (v) => v.value === o.value
853
+ );
854
+ c > 0 && (o.value = a.options[c - 1].value, t("update:modelValue", a.options[c - 1].value));
855
+ }, m = () => {
856
+ const c = a.options.findIndex(
857
+ (v) => v.value === o.value
858
+ );
859
+ c < a.options.length - 1 && (o.value = a.options[c + 1].value, t("update:modelValue", a.options[c + 1].value));
860
+ };
861
+ return (c, v) => {
862
+ var z;
863
+ return l(), n("nav", La, [
864
+ c.compact ? (l(), I(P, {
865
+ key: 1,
866
+ outlined: "",
867
+ "aria-label": "Previous page",
868
+ disabled: i.value,
869
+ onClick: p
870
+ }, {
871
+ icon: C(() => [
872
+ w(G)
873
+ ]),
874
+ _: 1
875
+ }, 8, ["disabled"])) : (l(), I(F, {
876
+ key: 0,
877
+ "icon-position": "only",
878
+ "aria-label": "Previous page",
879
+ disabled: i.value,
880
+ onClick: p
881
+ }, {
882
+ icon: C(() => [
883
+ w(G)
884
+ ]),
885
+ _: 1
886
+ }, 8, ["disabled"])),
887
+ c.compact ? h("", !0) : (l(), n("div", Ta, [
888
+ w(wa, {
889
+ class: "mc-pagination__select",
890
+ id: c.id,
891
+ modelValue: o.value,
892
+ "onUpdate:modelValue": [
893
+ v[0] || (v[0] = ($) => o.value = $),
894
+ v[1] || (v[1] = ($) => t("update:modelValue", Number($)))
895
+ ],
896
+ options: c.options,
897
+ "aria-label": c.selectLabel
898
+ }, null, 8, ["id", "modelValue", "options", "aria-label"])
899
+ ])),
900
+ c.compact ? (l(), n("span", ja, f((z = c.options.find(($) => $.value === o.value)) == null ? void 0 : z.text), 1)) : h("", !0),
901
+ c.compact ? (l(), I(P, {
902
+ key: 5,
903
+ outlined: "",
904
+ "aria-label": "Next page",
905
+ disabled: u.value,
906
+ onClick: m
907
+ }, {
908
+ icon: C(() => [
909
+ w(U)
910
+ ]),
911
+ _: 1
912
+ }, 8, ["disabled"])) : (l(), I(F, {
913
+ key: 4,
914
+ "icon-position": "only",
915
+ "aria-label": "Next page",
916
+ disabled: u.value,
917
+ onClick: m
918
+ }, {
919
+ icon: C(() => [
920
+ w(U)
921
+ ]),
922
+ _: 1
923
+ }, 8, ["disabled"]))
924
+ ]);
925
+ };
443
926
  }
444
- }), ts = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-db90fdb3"]]), Le = {
927
+ }), gs = /* @__PURE__ */ _(Oa, [["__scopeId", "data-v-3b9257ac"]]), Sa = {
445
928
  name: "CrossCircleFilled24",
446
929
  props: {
447
930
  /**
@@ -452,22 +935,26 @@ const G = {
452
935
  default: "currentColor"
453
936
  }
454
937
  }
455
- }, Se = {
456
- xmlns: "http://www.w3.org/2000/svg",
457
- viewBox: "0 0 24 24"
458
- };
459
- function Oe(o, a, t, e, i, s) {
460
- return l(), n("svg", Se, a[0] || (a[0] = [
461
- d("path", {
938
+ }, qa = ["fill"];
939
+ function Pa(d, e, a, t, o, s) {
940
+ return l(), n("svg", {
941
+ "aria-hidden": "true",
942
+ fill: a.color,
943
+ xmlns: "http://www.w3.org/2000/svg",
944
+ viewBox: "0 0 24 24",
945
+ width: "24",
946
+ height: "24"
947
+ }, e[0] || (e[0] = [
948
+ r("path", {
462
949
  "fill-rule": "evenodd",
463
- d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z"
950
+ d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414"
464
951
  }, null, -1)
465
- ]));
952
+ ]), 8, qa);
466
953
  }
467
- const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Te = {
954
+ const R = /* @__PURE__ */ _(Sa, [["render", Pa]]), Da = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Fa = {
468
955
  key: 0,
469
956
  class: "mc-controls-options"
470
- }, qe = { class: "mc-controls-options__label" }, Ze = /* @__PURE__ */ y({
957
+ }, Na = { class: "mc-controls-options__label" }, Aa = /* @__PURE__ */ y({
471
958
  __name: "MPasswordInput",
472
959
  props: {
473
960
  id: {},
@@ -482,61 +969,133 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
482
969
  buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
483
970
  },
484
971
  emits: ["update:modelValue"],
485
- setup(o, { emit: a }) {
486
- const t = o, e = v(() => ({
487
- "is-invalid": t.isInvalid
488
- })), i = I(t.modelValue), s = I(!1), u = () => {
489
- i.value = "", m("update:modelValue", "");
490
- }, r = () => {
972
+ setup(d, { emit: e }) {
973
+ const a = d, t = b(() => ({
974
+ "is-invalid": a.isInvalid
975
+ })), o = L(a.modelValue), s = L(!1), i = () => {
976
+ o.value = "", c("update:modelValue", "");
977
+ }, u = () => {
491
978
  s.value = !s.value;
492
- }, p = v(() => s.value ? "text" : "password"), c = v(() => s.value ? "true" : "false"), m = a;
493
- return (b, z) => (l(), n("div", {
494
- class: $(["mc-password-input mc-text-input", e.value])
979
+ }, p = b(() => s.value ? "text" : "password"), m = b(() => s.value ? "true" : "false"), c = e;
980
+ return (v, z) => (l(), n("div", {
981
+ class: g(["mc-password-input mc-text-input", t.value])
495
982
  }, [
496
- T(d("input", k({
983
+ K(r("input", B({
497
984
  class: "mc-password-input__control mc-text-input__control",
498
- "onUpdate:modelValue": z[0] || (z[0] = (L) => i.value = L),
499
- id: b.id,
985
+ "onUpdate:modelValue": z[0] || (z[0] = ($) => o.value = $),
986
+ id: v.id,
500
987
  type: p.value,
501
- name: b.name,
502
- placeholder: b.placeholder,
503
- disabled: b.disabled,
504
- "aria-invalid": b.isInvalid,
505
- readonly: b.readonly
506
- }, b.$attrs, {
507
- onInput: z[1] || (z[1] = (L) => m("update:modelValue", L.target.value))
508
- }), null, 16, je), [
509
- [P, i.value]
988
+ name: v.name,
989
+ placeholder: v.placeholder,
990
+ disabled: v.disabled,
991
+ "aria-invalid": v.isInvalid,
992
+ readonly: v.readonly
993
+ }, v.$attrs, {
994
+ onInput: z[1] || (z[1] = ($) => c("update:modelValue", $.target.value))
995
+ }), null, 16, Da), [
996
+ [X, o.value]
510
997
  ]),
511
- b.isClearable && i.value ? (l(), n("div", Te, [
512
- d("button", {
998
+ v.isClearable && o.value ? (l(), n("div", Fa, [
999
+ r("button", {
513
1000
  class: "mc-controls-options__button",
514
- onClick: u
1001
+ onClick: i
515
1002
  }, [
516
- V(q, {
1003
+ w(R, {
517
1004
  class: "mc-controls-options__icon",
518
1005
  "aria-hidden": "true"
519
1006
  }),
520
- d("span", qe, f(b.clearLabel), 1)
1007
+ r("span", Na, f(v.clearLabel), 1)
521
1008
  ])
522
1009
  ])) : h("", !0),
523
- V(le, {
1010
+ w(F, {
524
1011
  ref: "button",
525
1012
  role: "switch",
526
- "aria-checked": c.value,
527
- disabled: b.disabled,
528
- onClick: r,
1013
+ "aria-checked": m.value,
1014
+ disabled: v.disabled,
1015
+ onClick: u,
529
1016
  size: "s",
530
1017
  ghost: ""
531
1018
  }, {
532
- default: S(() => [
533
- M(f(s.value ? b.buttonLabel.hide : b.buttonLabel.show), 1)
1019
+ default: C(() => [
1020
+ D(f(s.value ? v.buttonLabel.hide : v.buttonLabel.show), 1)
534
1021
  ]),
535
1022
  _: 1
536
1023
  }, 8, ["aria-checked", "disabled"])
537
1024
  ], 2));
538
1025
  }
539
- }), ls = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-a5164b59"]]), Pe = {
1026
+ }), ks = /* @__PURE__ */ _(Aa, [["__scopeId", "data-v-167f10e2"]]), Ra = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], Ga = /* @__PURE__ */ y({
1027
+ __name: "MPincode",
1028
+ props: {
1029
+ id: {},
1030
+ length: { default: 6 },
1031
+ name: {},
1032
+ modelValue: {},
1033
+ isInvalid: { type: Boolean },
1034
+ disabled: { type: Boolean },
1035
+ readonly: { type: Boolean }
1036
+ },
1037
+ emits: ["update:modelValue"],
1038
+ setup(d, { emit: e }) {
1039
+ const a = d, t = b(() => ({
1040
+ "is-invalid": a.isInvalid
1041
+ })), o = e, s = L(Array(a.length).fill("")), i = L([]), u = ($, k) => {
1042
+ i.value[k] = $;
1043
+ };
1044
+ q(
1045
+ () => a.modelValue,
1046
+ ($) => {
1047
+ const k = String($ ?? "");
1048
+ s.value = Array.from({ length: a.length }, (T, M) => k[M] ?? "");
1049
+ },
1050
+ { immediate: !0 }
1051
+ );
1052
+ const p = ($) => {
1053
+ Y(() => {
1054
+ var k;
1055
+ return (k = i.value[$]) == null ? void 0 : k.focus();
1056
+ });
1057
+ }, m = ($, k) => {
1058
+ const T = $.target.value.replace(/\D/g, "");
1059
+ T ? (s.value[k] = T[0], o("update:modelValue", s.value.join("")), k + 1 < a.length && p(k + 1)) : (s.value[k] = "", o("update:modelValue", s.value.join("")));
1060
+ }, c = ($, k) => {
1061
+ $.key === "ArrowLeft" && k > 0 ? p(k - 1) : $.key === "ArrowRight" && k < a.length - 1 ? p(k + 1) : $.key === "Backspace" && v($, k);
1062
+ }, v = ($, k) => {
1063
+ s.value[k] === "" && k > 0 && (s.value[k - 1] = "", o("update:modelValue", s.value.join("")), p(k - 1));
1064
+ }, z = ($) => {
1065
+ var M;
1066
+ $.preventDefault();
1067
+ const T = (((M = $.clipboardData) == null ? void 0 : M.getData("text")) ?? "").replace(/\D/g, "").slice(0, a.length).split("");
1068
+ s.value = Array.from({ length: a.length }, (j, W) => T[W] ?? ""), o("update:modelValue", s.value.join("")), p(Math.min(T.length, a.length - 1));
1069
+ };
1070
+ return ($, k) => (l(), n("div", {
1071
+ class: g(["mc-pincode-input", t.value]),
1072
+ onPaste: z
1073
+ }, [
1074
+ (l(!0), n(O, null, S(s.value, (T, M) => (l(), n("input", B({
1075
+ key: M,
1076
+ id: `pincodeItem${M}`,
1077
+ ref_for: !0,
1078
+ ref: (j) => u(j, M),
1079
+ type: "text",
1080
+ inputmode: "numeric",
1081
+ maxlength: "1",
1082
+ pattern: "\\d*",
1083
+ autocomplete: "one-time-code",
1084
+ name: $.name || `pincode-${$.id}`,
1085
+ class: "mc-pincode-input__control",
1086
+ disabled: $.disabled,
1087
+ readonly: $.readonly,
1088
+ value: T
1089
+ }, { ref_for: !0 }, $.$attrs, {
1090
+ onInput: (j) => m(j, M),
1091
+ onKeydown: [
1092
+ A((j) => v(j, M), ["backspace"]),
1093
+ (j) => c(j, M)
1094
+ ]
1095
+ }), null, 16, Ra))), 128))
1096
+ ], 34));
1097
+ }
1098
+ }), ws = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-1bcac0ce"]]), Ua = {
540
1099
  name: "More24",
541
1100
  props: {
542
1101
  /**
@@ -547,30 +1106,23 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
547
1106
  default: "currentColor"
548
1107
  }
549
1108
  }
550
- }, Ne = {
551
- xmlns: "http://www.w3.org/2000/svg",
552
- viewBox: "0 0 24 24"
553
- };
554
- function Ge(o, a, t, e, i, s) {
555
- return l(), n("svg", Ne, a[0] || (a[0] = [
556
- d("g", { "clip-path": "url(#a)" }, [
557
- d("path", {
558
- "fill-rule": "evenodd",
559
- d: "M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V5Z"
560
- })
561
- ], -1),
562
- d("defs", null, [
563
- d("clipPath", { id: "a" }, [
564
- d("rect", {
565
- width: "24",
566
- height: "24",
567
- fill: "#fff"
568
- })
569
- ])
570
- ], -1)
571
- ]));
1109
+ }, Ka = ["fill"];
1110
+ function Ha(d, e, a, t, o, s) {
1111
+ return l(), n("svg", {
1112
+ "aria-hidden": "true",
1113
+ fill: a.color,
1114
+ xmlns: "http://www.w3.org/2000/svg",
1115
+ viewBox: "0 0 24 24",
1116
+ width: "24",
1117
+ height: "24"
1118
+ }, e[0] || (e[0] = [
1119
+ r("path", {
1120
+ "fill-rule": "evenodd",
1121
+ d: "M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6z"
1122
+ }, null, -1)
1123
+ ]), 8, Ka);
572
1124
  }
573
- const Ue = /* @__PURE__ */ _(Pe, [["render", Ge]]), De = {
1125
+ const Ea = /* @__PURE__ */ _(Ua, [["render", Ha]]), Qa = {
574
1126
  name: "Less24",
575
1127
  props: {
576
1128
  /**
@@ -581,30 +1133,23 @@ const Ue = /* @__PURE__ */ _(Pe, [["render", Ge]]), De = {
581
1133
  default: "currentColor"
582
1134
  }
583
1135
  }
584
- }, Fe = {
585
- xmlns: "http://www.w3.org/2000/svg",
586
- viewBox: "0 0 24 24"
587
- };
588
- function Re(o, a, t, e, i, s) {
589
- return l(), n("svg", Fe, a[0] || (a[0] = [
590
- d("g", { "clip-path": "url(#a)" }, [
591
- d("path", {
592
- "fill-rule": "evenodd",
593
- d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"
594
- })
595
- ], -1),
596
- d("defs", null, [
597
- d("clipPath", { id: "a" }, [
598
- d("rect", {
599
- width: "24",
600
- height: "24",
601
- fill: "#fff"
602
- })
603
- ])
604
- ], -1)
605
- ]));
1136
+ }, Wa = ["fill"];
1137
+ function Ja(d, e, a, t, o, s) {
1138
+ return l(), n("svg", {
1139
+ "aria-hidden": "true",
1140
+ fill: a.color,
1141
+ xmlns: "http://www.w3.org/2000/svg",
1142
+ viewBox: "0 0 24 24",
1143
+ width: "24",
1144
+ height: "24"
1145
+ }, e[0] || (e[0] = [
1146
+ r("path", {
1147
+ "fill-rule": "evenodd",
1148
+ d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1"
1149
+ }, null, -1)
1150
+ ]), 8, Wa);
606
1151
  }
607
- const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Ee = ["aria-controls", "disabled"], Qe = { class: "mc-quantity-selector__icon" }, We = { class: "mc-quantity-selector__label" }, Je = ["aria-controls", "disabled"], Ke = { class: "mc-quantity-selector__icon" }, Xe = { class: "mc-quantity-selector__label" }, Ye = /* @__PURE__ */ y({
1152
+ const Xa = /* @__PURE__ */ _(Qa, [["render", Ja]]), Ya = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], Za = ["aria-controls", "disabled"], xa = { class: "mc-quantity-selector__icon" }, et = { class: "mc-quantity-selector__label" }, at = ["aria-controls", "disabled"], tt = { class: "mc-quantity-selector__icon" }, st = { class: "mc-quantity-selector__label" }, lt = /* @__PURE__ */ y({
608
1153
  __name: "MQuantitySelector",
609
1154
  props: {
610
1155
  id: {},
@@ -621,75 +1166,75 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
621
1166
  decrementLabel: { default: "Decrement" }
622
1167
  },
623
1168
  emits: ["update:modelValue"],
624
- setup(o, { emit: a }) {
625
- const t = o, e = I(t.modelValue);
626
- O(e, (c) => {
627
- c !== t.modelValue && p("update:modelValue", c);
1169
+ setup(d, { emit: e }) {
1170
+ const a = d, t = L(a.modelValue);
1171
+ q(t, (m) => {
1172
+ m !== a.modelValue && p("update:modelValue", m);
628
1173
  });
629
- const i = v(() => ({
630
- [`mc-quantity-selector--${t.size}`]: t.size && t.size != "m",
631
- "is-invalid": t.isInvalid
1174
+ const o = b(() => ({
1175
+ [`mc-quantity-selector--${a.size}`]: a.size && a.size != "m",
1176
+ "is-invalid": a.isInvalid
632
1177
  })), s = () => {
633
- e.value + t.step <= t.max ? e.value += t.step : e.value = t.max;
634
- }, u = () => {
635
- e.value - t.step > t.min ? e.value -= t.step : e.value = t.min;
636
- }, r = (c) => {
637
- e.value = c, e.value > t.max && (e.value = t.max), e.value <= t.min && (e.value = t.min), p("update:modelValue", e.value);
638
- }, p = a;
639
- return (c, m) => (l(), n("div", {
640
- class: $(["mc-quantity-selector", i.value])
1178
+ t.value + a.step <= a.max ? t.value += a.step : t.value = a.max;
1179
+ }, i = () => {
1180
+ t.value - a.step > a.min ? t.value -= a.step : t.value = a.min;
1181
+ }, u = (m) => {
1182
+ t.value = m, t.value > a.max && (t.value = a.max), t.value <= a.min && (t.value = a.min), p("update:modelValue", t.value);
1183
+ }, p = e;
1184
+ return (m, c) => (l(), n("div", {
1185
+ class: g(["mc-quantity-selector", o.value])
641
1186
  }, [
642
- T(d("input", k({
643
- id: c.id,
644
- "onUpdate:modelValue": m[0] || (m[0] = (b) => e.value = b),
1187
+ K(r("input", B({
1188
+ id: m.id,
1189
+ "onUpdate:modelValue": c[0] || (c[0] = (v) => t.value = v),
645
1190
  class: "mc-quantity-selector__control",
646
1191
  type: "number",
647
- name: c.name,
648
- disabled: c.disabled,
649
- min: c.min,
650
- max: c.max,
651
- step: c.step,
652
- readonly: c.readonly,
653
- "aria-invalid": c.isInvalid,
654
- "aria-valuemin": c.min,
655
- "aria-valuemax": c.max,
656
- "aria-valuenow": e.value
657
- }, c.$attrs, {
658
- onChange: m[1] || (m[1] = (b) => r(Number(b.target.value)))
659
- }), null, 16, He), [
660
- [N, e.value]
1192
+ name: m.name,
1193
+ disabled: m.disabled,
1194
+ min: m.min,
1195
+ max: m.max,
1196
+ step: m.step,
1197
+ readonly: m.readonly,
1198
+ "aria-invalid": m.isInvalid,
1199
+ "aria-valuemin": m.min,
1200
+ "aria-valuemax": m.max,
1201
+ "aria-valuenow": t.value
1202
+ }, m.$attrs, {
1203
+ onChange: c[1] || (c[1] = (v) => u(Number(v.target.value)))
1204
+ }), null, 16, Ya), [
1205
+ [Z, t.value]
661
1206
  ]),
662
- c.readonly ? h("", !0) : (l(), n("button", {
1207
+ m.readonly ? h("", !0) : (l(), n("button", {
663
1208
  key: 0,
664
1209
  type: "button",
665
- "aria-controls": c.id,
1210
+ "aria-controls": m.id,
666
1211
  class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
667
1212
  tabindex: "-1",
668
- disabled: c.disabled || e.value === c.max,
1213
+ disabled: m.disabled || t.value === m.max,
669
1214
  onClick: s
670
1215
  }, [
671
- d("span", Qe, [
672
- V(Ue)
1216
+ r("span", xa, [
1217
+ w(Ea)
673
1218
  ]),
674
- d("span", We, f(c.incrementlabel), 1)
675
- ], 8, Ee)),
676
- c.readonly ? h("", !0) : (l(), n("button", {
1219
+ r("span", et, f(m.incrementlabel), 1)
1220
+ ], 8, Za)),
1221
+ m.readonly ? h("", !0) : (l(), n("button", {
677
1222
  key: 1,
678
1223
  type: "button",
679
- "aria-controls": c.id,
1224
+ "aria-controls": m.id,
680
1225
  class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
681
1226
  tabindex: "-1",
682
- disabled: c.disabled || e.value === c.min,
683
- onClick: u
1227
+ disabled: m.disabled || t.value === m.min,
1228
+ onClick: i
684
1229
  }, [
685
- d("span", Ke, [
686
- V(Ae)
1230
+ r("span", tt, [
1231
+ w(Xa)
687
1232
  ]),
688
- d("span", Xe, f(c.decrementLabel), 1)
689
- ], 8, Je))
1233
+ r("span", st, f(m.decrementLabel), 1)
1234
+ ], 8, at))
690
1235
  ], 2));
691
1236
  }
692
- }), ns = /* @__PURE__ */ _(Ye, [["__scopeId", "data-v-a732650a"]]), xe = { class: "mc-radio" }, ea = ["id", "name", "checked", "disabled", "aria-invalid"], aa = ["for"], sa = /* @__PURE__ */ y({
1237
+ }), Vs = /* @__PURE__ */ _(lt, [["__scopeId", "data-v-a732650a"]]), ot = { class: "mc-radio" }, nt = ["id", "name", "checked", "disabled", "aria-invalid"], it = ["for"], dt = /* @__PURE__ */ y({
693
1238
  __name: "MRadio",
694
1239
  props: {
695
1240
  id: {},
@@ -700,30 +1245,30 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
700
1245
  disabled: { type: Boolean }
701
1246
  },
702
1247
  emits: ["update:modelValue"],
703
- setup(o, { emit: a }) {
704
- const t = o, e = v(() => ({
705
- "is-invalid": t.isInvalid
706
- })), i = a;
707
- return (s, u) => (l(), n("div", xe, [
708
- d("input", k({
1248
+ setup(d, { emit: e }) {
1249
+ const a = d, t = b(() => ({
1250
+ "is-invalid": a.isInvalid
1251
+ })), o = e;
1252
+ return (s, i) => (l(), n("div", ot, [
1253
+ r("input", B({
709
1254
  id: s.id,
710
1255
  type: "radio",
711
- class: ["mc-radio__input", e.value],
1256
+ class: ["mc-radio__input", t.value],
712
1257
  name: s.name,
713
1258
  checked: s.modelValue,
714
1259
  disabled: s.disabled,
715
1260
  "aria-invalid": s.isInvalid
716
1261
  }, s.$attrs, {
717
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
718
- }), null, 16, ea),
1262
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
1263
+ }), null, 16, nt),
719
1264
  s.label ? (l(), n("label", {
720
1265
  key: 0,
721
1266
  for: s.id,
722
1267
  class: "mc-radio__label"
723
- }, f(s.label), 9, aa)) : h("", !0)
1268
+ }, f(s.label), 9, it)) : h("", !0)
724
1269
  ]));
725
1270
  }
726
- }), ta = /* @__PURE__ */ _(sa, [["__scopeId", "data-v-da78938c"]]), la = /* @__PURE__ */ y({
1271
+ }), rt = /* @__PURE__ */ _(dt, [["__scopeId", "data-v-da78938c"]]), ct = /* @__PURE__ */ y({
727
1272
  __name: "MRadioGroup",
728
1273
  props: {
729
1274
  name: {},
@@ -733,103 +1278,61 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
733
1278
  inline: { type: Boolean }
734
1279
  },
735
1280
  emits: ["update:modelValue"],
736
- setup(o, { emit: a }) {
737
- const t = o, e = v(() => ({
738
- "mc-field__container--inline": t.inline
739
- })), i = v(() => ({
740
- "mc-field__container--inline__item": t.inline
741
- })), s = a;
742
- return (u, r) => (l(), n("div", {
743
- class: $(["mc-field__container", e.value])
1281
+ setup(d, { emit: e }) {
1282
+ const a = d, t = b(() => ({
1283
+ "mc-field__container--inline": a.inline
1284
+ })), o = b(() => ({
1285
+ "mc-field__container--inline__item": a.inline
1286
+ })), s = e;
1287
+ return (i, u) => (l(), n("div", {
1288
+ class: g(["mc-field__container", t.value])
744
1289
  }, [
745
- (l(!0), n(B, null, C(u.options, (p) => (l(), w(ta, {
1290
+ (l(!0), n(O, null, S(i.options, (p) => (l(), I(rt, {
746
1291
  id: p.id,
747
1292
  key: p.id,
748
1293
  label: p.label,
749
- "is-invalid": u.isInvalid,
750
- name: u.name,
751
- class: $(["mc-field__item", i.value]),
752
- "model-value": u.modelValue === p.value,
1294
+ "is-invalid": i.isInvalid,
1295
+ name: i.name,
1296
+ class: g(["mc-field__item", o.value]),
1297
+ "model-value": i.modelValue === p.value,
753
1298
  disabled: p.disabled,
754
- "onUpdate:modelValue": (c) => c ? s("update:modelValue", p.value) : null
1299
+ "onUpdate:modelValue": (m) => m ? s("update:modelValue", p.value) : null
755
1300
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
756
1301
  ], 2));
757
1302
  }
758
- }), os = /* @__PURE__ */ _(la, [["__scopeId", "data-v-d2f5e103"]]), na = ["id", "name", "value", "disabled"], oa = {
759
- key: 0,
760
- value: "",
761
- disabled: ""
762
- }, ia = ["value", "disabled"], da = /* @__PURE__ */ y({
763
- __name: "MSelect",
764
- props: {
765
- id: {},
766
- name: {},
767
- options: {},
768
- modelValue: {},
769
- placeholder: {},
770
- isInvalid: { type: Boolean },
771
- disabled: { type: Boolean },
772
- size: { default: "m" },
773
- readonly: { type: Boolean }
774
- },
775
- emits: ["update:modelValue"],
776
- setup(o, { emit: a }) {
777
- const t = o, e = v(() => ({
778
- [`mc-select--${t.size}`]: t.size && t.size != "m",
779
- "mc-select--readonly": t.readonly,
780
- "is-invalid": t.isInvalid
781
- })), i = a;
782
- return (s, u) => (l(), n("select", k({
783
- id: s.id,
784
- class: ["mc-select", e.value],
785
- name: s.name,
786
- value: s.modelValue,
787
- disabled: s.disabled
788
- }, s.$attrs, {
789
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
790
- }), [
791
- s.placeholder ? (l(), n("option", oa, " -- " + f(s.placeholder) + " -- ", 1)) : h("", !0),
792
- (l(!0), n(B, null, C(s.options, (r, p) => (l(), n("option", k({
793
- key: p,
794
- value: r.value
795
- }, { ref_for: !0 }, r.attributes, {
796
- disabled: r.disabled
797
- }), f(r.text), 17, ia))), 128))
798
- ], 16, na));
799
- }
800
- }), is = /* @__PURE__ */ _(da, [["__scopeId", "data-v-68c735e4"]]), ra = /* @__PURE__ */ y({
1303
+ }), Bs = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-d2f5e103"]]), ut = /* @__PURE__ */ y({
801
1304
  __name: "MStatusDot",
802
1305
  props: {
803
1306
  status: { default: "info" },
804
1307
  size: {}
805
1308
  },
806
- setup(o) {
807
- const a = o, t = v(() => ({
808
- [`mc-status-dot--${a.status}`]: a.status && a.status != "info",
809
- [`mc-status-dot--${a.size}`]: a.size && a.size != "m"
1309
+ setup(d) {
1310
+ const e = d, a = b(() => ({
1311
+ [`mc-status-dot--${e.status}`]: e.status && e.status != "info",
1312
+ [`mc-status-dot--${e.size}`]: e.size && e.size != "m"
810
1313
  }));
811
- return (e, i) => (l(), n("span", {
812
- class: $(["mc-status-dot", t.value])
1314
+ return (t, o) => (l(), n("span", {
1315
+ class: g(["mc-status-dot", a.value])
813
1316
  }, null, 2));
814
1317
  }
815
- }), ca = /* @__PURE__ */ _(ra, [["__scopeId", "data-v-417b563f"]]), ua = { class: "mc-status-badge__label" }, pa = /* @__PURE__ */ y({
1318
+ }), pt = /* @__PURE__ */ _(ut, [["__scopeId", "data-v-417b563f"]]), mt = { class: "mc-status-badge__label" }, _t = /* @__PURE__ */ y({
816
1319
  __name: "MStatusBadge",
817
1320
  props: {
818
1321
  label: {},
819
1322
  status: { default: "info" }
820
1323
  },
821
- setup(o) {
822
- const a = o, t = v(() => ({
823
- [`mc-status-badge--${a.status}`]: a.status && a.status != "info"
1324
+ setup(d) {
1325
+ const e = d, a = b(() => ({
1326
+ [`mc-status-badge--${e.status}`]: e.status && e.status != "info"
824
1327
  }));
825
- return (e, i) => (l(), n("div", {
826
- class: $(["mc-status-badge", t.value])
1328
+ return (t, o) => (l(), n("div", {
1329
+ class: g(["mc-status-badge", a.value])
827
1330
  }, [
828
- V(ca, { status: e.status }, null, 8, ["status"]),
829
- d("span", ua, f(e.label), 1)
1331
+ w(pt, { status: t.status }, null, 8, ["status"]),
1332
+ r("span", mt, f(t.label), 1)
830
1333
  ], 2));
831
1334
  }
832
- }), ds = /* @__PURE__ */ _(pa, [["__scopeId", "data-v-3e437a03"]]), ma = {
1335
+ }), Is = /* @__PURE__ */ _(_t, [["__scopeId", "data-v-3e437a03"]]), vt = {
833
1336
  name: "Cross20",
834
1337
  props: {
835
1338
  /**
@@ -840,31 +1343,24 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
840
1343
  default: "currentColor"
841
1344
  }
842
1345
  }
843
- }, _a = {
844
- xmlns: "http://www.w3.org/2000/svg",
845
- viewBox: "0 0 20 20"
846
- };
847
- function va(o, a, t, e, i, s) {
848
- return l(), n("svg", _a, a[0] || (a[0] = [
849
- d("g", { "clip-path": "url(#a)" }, [
850
- d("path", {
851
- "fill-rule": "evenodd",
852
- d: "M16.364 4.697a.75.75 0 1 0-1.061-1.06L10 8.938 4.697 3.636a.75.75 0 0 0-1.06 1.06L8.938 10l-5.303 5.303a.75.75 0 0 0 1.061 1.06L10 11.06l5.303 5.303a.75.75 0 0 0 1.06-1.06L11.062 10l5.303-5.303Z"
853
- })
854
- ], -1),
855
- d("defs", null, [
856
- d("clipPath", { id: "a" }, [
857
- d("rect", {
858
- width: "20",
859
- height: "20",
860
- fill: "#fff"
861
- })
862
- ])
863
- ], -1)
864
- ]));
1346
+ }, bt = ["fill"];
1347
+ function ft(d, e, a, t, o, s) {
1348
+ return l(), n("svg", {
1349
+ "aria-hidden": "true",
1350
+ fill: a.color,
1351
+ xmlns: "http://www.w3.org/2000/svg",
1352
+ viewBox: "0 0 20 20",
1353
+ width: "20",
1354
+ height: "20"
1355
+ }, e[0] || (e[0] = [
1356
+ r("path", {
1357
+ "fill-rule": "evenodd",
1358
+ d: "M14.697 6.364a.75.75 0 1 0-1.061-1.061L10 8.939 6.363 5.303a.75.75 0 0 0-1.06 1.06L8.939 10l-3.636 3.636a.75.75 0 1 0 1.06 1.06L10 11.062l3.636 3.636a.75.75 0 0 0 1.06-1.06L11.06 10z"
1359
+ }, null, -1)
1360
+ ]), 8, bt);
865
1361
  }
866
- const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
867
- name: "InfoCircle32",
1362
+ const ht = /* @__PURE__ */ _(vt, [["render", ft]]), $t = {
1363
+ name: "InfoCircleFilled32",
868
1364
  props: {
869
1365
  /**
870
1366
  * Icon color
@@ -874,20 +1370,24 @@ const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
874
1370
  default: "currentColor"
875
1371
  }
876
1372
  }
877
- }, ha = {
878
- xmlns: "http://www.w3.org/2000/svg",
879
- viewBox: "0 0 32 32"
880
- };
881
- function $a(o, a, t, e, i, s) {
882
- return l(), n("svg", ha, a[0] || (a[0] = [
883
- d("path", {
1373
+ }, yt = ["fill"];
1374
+ function gt(d, e, a, t, o, s) {
1375
+ return l(), n("svg", {
1376
+ "aria-hidden": "true",
1377
+ fill: a.color,
1378
+ xmlns: "http://www.w3.org/2000/svg",
1379
+ viewBox: "0 0 32 32",
1380
+ width: "32",
1381
+ height: "32"
1382
+ }, e[0] || (e[0] = [
1383
+ r("path", {
884
1384
  "fill-rule": "evenodd",
885
- d: "M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5ZM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16Zm13-2.333a1 1 0 0 1 1 1v6.666a1 1 0 1 1-2 0v-6.666a1 1 0 0 1 1-1ZM16 12a1.333 1.333 0 1 0 0-2.667A1.333 1.333 0 0 0 16 12Z"
1385
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m0 9a1.333 1.333 0 1 0 0-2.667A1.333 1.333 0 0 0 16 12m1 2.667a1 1 0 1 0-2 0v6.666a1 1 0 1 0 2 0z"
886
1386
  }, null, -1)
887
- ]));
1387
+ ]), 8, yt);
888
1388
  }
889
- const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
890
- name: "WarningCircle32",
1389
+ const kt = /* @__PURE__ */ _($t, [["render", gt]]), wt = {
1390
+ name: "WarningCircleFilled32",
891
1391
  props: {
892
1392
  /**
893
1393
  * Icon color
@@ -897,20 +1397,24 @@ const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
897
1397
  default: "currentColor"
898
1398
  }
899
1399
  }
900
- }, Va = {
901
- xmlns: "http://www.w3.org/2000/svg",
902
- viewBox: "0 0 32 32"
903
- };
904
- function ka(o, a, t, e, i, s) {
905
- return l(), n("svg", Va, a[0] || (a[0] = [
906
- d("path", {
1400
+ }, Vt = ["fill"];
1401
+ function Bt(d, e, a, t, o, s) {
1402
+ return l(), n("svg", {
1403
+ "aria-hidden": "true",
1404
+ fill: a.color,
1405
+ xmlns: "http://www.w3.org/2000/svg",
1406
+ viewBox: "0 0 32 32",
1407
+ width: "32",
1408
+ height: "32"
1409
+ }, e[0] || (e[0] = [
1410
+ r("path", {
907
1411
  "fill-rule": "evenodd",
908
- d: "M16 5C9.925 5 5 9.925 5 16s4.925 11 11 11 11-4.925 11-11S22.075 5 16 5ZM3 16C3 8.82 8.82 3 16 3s13 5.82 13 13-5.82 13-13 13S3 23.18 3 16Zm13-6.333a1 1 0 0 1 1 1v6.666a1 1 0 1 1-2 0v-6.666a1 1 0 0 1 1-1Zm0 13A1.333 1.333 0 1 0 16 20a1.333 1.333 0 0 0 0 2.667Z"
1412
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m1 7.667a1 1 0 1 0-2 0v6.666a1 1 0 1 0 2 0zm-1 12A1.333 1.333 0 1 0 16 20a1.333 1.333 0 0 0 0 2.667"
909
1413
  }, null, -1)
910
- ]));
1414
+ ]), 8, Vt);
911
1415
  }
912
- const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
913
- name: "CrossCircle32",
1416
+ const It = /* @__PURE__ */ _(wt, [["render", Bt]]), Ct = {
1417
+ name: "CrossCircleFilled32",
914
1418
  props: {
915
1419
  /**
916
1420
  * Icon color
@@ -920,20 +1424,24 @@ const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
920
1424
  default: "currentColor"
921
1425
  }
922
1426
  }
923
- }, Ba = {
924
- xmlns: "http://www.w3.org/2000/svg",
925
- viewBox: "0 0 32 32"
926
- };
927
- function Ca(o, a, t, e, i, s) {
928
- return l(), n("svg", Ba, a[0] || (a[0] = [
929
- d("path", {
1427
+ }, Mt = ["fill"];
1428
+ function zt(d, e, a, t, o, s) {
1429
+ return l(), n("svg", {
1430
+ "aria-hidden": "true",
1431
+ fill: a.color,
1432
+ xmlns: "http://www.w3.org/2000/svg",
1433
+ viewBox: "0 0 32 32",
1434
+ width: "32",
1435
+ height: "32"
1436
+ }, e[0] || (e[0] = [
1437
+ r("path", {
930
1438
  "fill-rule": "evenodd",
931
- d: "M5 16C5 9.925 9.925 5 16 5s11 4.925 11 11-4.925 11-11 11S5 22.075 5 16ZM16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3Zm-3.293 8.293a1 1 0 0 0-1.414 1.414L14.586 16l-3.293 3.293a1 1 0 0 0 1.414 1.414L16 17.414l3.293 3.293a1 1 0 0 0 1.414-1.414L17.414 16l3.293-3.293a1 1 0 0 0-1.414-1.414L16 14.586l-3.293-3.293Z"
1439
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m-4.707 8.293a1 1 0 0 1 1.414 0L16 14.586l3.293-3.293a1 1 0 0 1 1.414 1.414L17.414 16l3.293 3.293a1 1 0 0 1-1.414 1.414L16 17.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L14.586 16l-3.293-3.293a1 1 0 0 1 0-1.414"
932
1440
  }, null, -1)
933
- ]));
1441
+ ]), 8, Mt);
934
1442
  }
935
- const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
936
- name: "CheckCircle32",
1443
+ const Lt = /* @__PURE__ */ _(Ct, [["render", zt]]), Tt = {
1444
+ name: "CheckCircleFilled32",
937
1445
  props: {
938
1446
  /**
939
1447
  * Icon color
@@ -943,22 +1451,26 @@ const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
943
1451
  default: "currentColor"
944
1452
  }
945
1453
  }
946
- }, La = {
947
- xmlns: "http://www.w3.org/2000/svg",
948
- viewBox: "0 0 32 32"
949
- };
950
- function Sa(o, a, t, e, i, s) {
951
- return l(), n("svg", La, a[0] || (a[0] = [
952
- d("path", {
1454
+ }, jt = ["fill"];
1455
+ function Ot(d, e, a, t, o, s) {
1456
+ return l(), n("svg", {
1457
+ "aria-hidden": "true",
1458
+ fill: a.color,
1459
+ xmlns: "http://www.w3.org/2000/svg",
1460
+ viewBox: "0 0 32 32",
1461
+ width: "32",
1462
+ height: "32"
1463
+ }, e[0] || (e[0] = [
1464
+ r("path", {
953
1465
  "fill-rule": "evenodd",
954
- d: "M5 16C5 9.925 9.925 5 16 5s11 4.925 11 11-4.925 11-11 11S5 22.075 5 16ZM16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3Zm6.707 10.374a1 1 0 0 0-1.414-1.414l-6.626 6.626-3.293-3.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l7.333-7.333Z"
1466
+ d: "M16 3C8.82 3 3 8.82 3 16s5.82 13 13 13 13-5.82 13-13S23.18 3 16 3m6.707 8.96a1 1 0 0 1 0 1.414l-7.333 7.333a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414l3.293 3.293 6.626-6.626a1 1 0 0 1 1.414 0"
955
1467
  }, null, -1)
956
- ]));
1468
+ ]), 8, jt);
957
1469
  }
958
- const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-notification__content" }, Ta = { class: "mc-status-notification__title" }, qa = { class: "mc-status-notification__message" }, Za = {
1470
+ const St = /* @__PURE__ */ _(Tt, [["render", Ot]]), qt = { class: "mc-status-notification__content" }, Pt = { class: "mc-status-notification__title" }, Dt = { class: "mc-status-notification__message" }, Ft = {
959
1471
  key: 0,
960
1472
  class: "mc-status-notification__footer"
961
- }, Pa = /* @__PURE__ */ y({
1473
+ }, Nt = /* @__PURE__ */ y({
962
1474
  __name: "MStatusNotification",
963
1475
  props: {
964
1476
  title: {},
@@ -967,51 +1479,183 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
967
1479
  closable: { type: Boolean }
968
1480
  },
969
1481
  emits: ["close"],
970
- setup(o, { emit: a }) {
971
- const t = o, e = v(() => ({
972
- [`mc-status-notification--${t.status}`]: t.status && t.status != "info"
973
- })), i = v(() => {
974
- switch (t.status) {
1482
+ setup(d, { emit: e }) {
1483
+ const a = d, t = b(() => ({
1484
+ [`mc-status-notification--${a.status}`]: a.status && a.status != "info"
1485
+ })), o = b(() => {
1486
+ switch (a.status) {
975
1487
  case "success":
976
- return Oa;
1488
+ return St;
977
1489
  case "warning":
978
- return Ia;
1490
+ return It;
979
1491
  case "error":
980
- return Ma;
1492
+ return Lt;
981
1493
  case "info":
982
1494
  default:
983
- return ya;
1495
+ return kt;
984
1496
  }
985
- }), s = a;
986
- return (u, r) => (l(), n("section", {
987
- class: $(["mc-status-notification", e.value]),
1497
+ }), s = e;
1498
+ return (i, u) => (l(), n("section", {
1499
+ class: g(["mc-status-notification", t.value]),
988
1500
  role: "status"
989
1501
  }, [
990
- (l(), w(j(i.value), {
1502
+ (l(), I(N(o.value), {
991
1503
  class: "mc-status-notification__icon",
992
1504
  "aria-hidden": "true"
993
1505
  })),
994
- d("div", ja, [
995
- d("h2", Ta, f(u.title), 1),
996
- d("p", qa, f(u.description), 1),
997
- u.$slots.footer ? (l(), n("div", Za, [
998
- g(u.$slots, "footer", {}, void 0, !0)
1506
+ r("div", qt, [
1507
+ r("h2", Pt, f(i.title), 1),
1508
+ r("p", Dt, f(i.description), 1),
1509
+ i.$slots.footer ? (l(), n("div", Ft, [
1510
+ V(i.$slots, "footer", {}, void 0, !0)
999
1511
  ])) : h("", !0)
1000
1512
  ]),
1001
- u.closable ? (l(), n("button", {
1513
+ i.closable ? (l(), n("button", {
1002
1514
  key: 0,
1003
1515
  class: "mc-status-notification-closable__close",
1004
- onClick: r[0] || (r[0] = (p) => s("close"))
1516
+ onClick: u[0] || (u[0] = (p) => s("close"))
1005
1517
  }, [
1006
- V(ba, {
1518
+ w(ht, {
1007
1519
  class: "mc-status-notification-closable__icon",
1008
1520
  "aria-hidden": "true"
1009
1521
  }),
1010
- r[1] || (r[1] = d("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1522
+ u[1] || (u[1] = r("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1011
1523
  ])) : h("", !0)
1012
1524
  ], 2));
1013
1525
  }
1014
- }), rs = /* @__PURE__ */ _(Pa, [["__scopeId", "data-v-d6e3be16"]]), Na = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], Ga = /* @__PURE__ */ y({
1526
+ }), Cs = /* @__PURE__ */ _(Nt, [["__scopeId", "data-v-457733a1"]]), At = ["aria-label"], Rt = ["aria-selected", "onClick"], Gt = {
1527
+ key: 0,
1528
+ class: "mc-tabs__icon"
1529
+ }, Ut = { class: "mc-tabs__label" }, Kt = /* @__PURE__ */ y({
1530
+ __name: "MTabs",
1531
+ props: {
1532
+ description: {},
1533
+ divider: { type: Boolean, default: !0 },
1534
+ centered: { type: Boolean },
1535
+ modelValue: { default: 0 },
1536
+ tabs: {}
1537
+ },
1538
+ emits: ["update:modelValue"],
1539
+ setup(d, { emit: e }) {
1540
+ const a = d, t = b(() => ({
1541
+ "mc-tabs--centered": a.centered
1542
+ })), o = L(a.modelValue), s = (p) => {
1543
+ a.tabs[p].disabled || p !== o.value && (o.value = p, u("update:modelValue", p));
1544
+ }, i = (p) => o.value === p, u = e;
1545
+ return (p, m) => (l(), n("nav", {
1546
+ class: g(["mc-tabs", t.value])
1547
+ }, [
1548
+ r("ul", {
1549
+ role: "tablist",
1550
+ class: "mc-tabs__list",
1551
+ "aria-label": p.description
1552
+ }, [
1553
+ (l(!0), n(O, null, S(p.tabs, (c, v) => (l(), n("li", {
1554
+ key: `tab-${v}`,
1555
+ role: "presentation",
1556
+ class: "mc-tabs__item"
1557
+ }, [
1558
+ r("button", {
1559
+ ref_for: !0,
1560
+ ref: "tab",
1561
+ role: "tab",
1562
+ class: g(["mc-tabs__tab", {
1563
+ "mc-tabs__tab--selected": i(v),
1564
+ "mc-tabs__tab--disabled": c.disabled
1565
+ }]),
1566
+ "aria-selected": i(v),
1567
+ type: "button",
1568
+ onClick: (z) => s(v)
1569
+ }, [
1570
+ c.icon ? (l(), n("span", Gt, [
1571
+ (l(), I(N(c.icon)))
1572
+ ])) : h("", !0),
1573
+ r("div", Ut, [
1574
+ r("span", null, f(c.label), 1)
1575
+ ])
1576
+ ], 10, Rt)
1577
+ ]))), 128))
1578
+ ], 8, At),
1579
+ p.divider ? (l(), I(Be, { key: 0 })) : h("", !0)
1580
+ ], 2));
1581
+ }
1582
+ }), Ms = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-3919f834"]]), Ht = ["for"], Et = ["id", "name", "checked", "disabled"], Qt = { class: "mc-tag__label" }, Wt = ["disabled"], Jt = { class: "mc-tag__label" }, Xt = ["disabled"], Yt = { class: "mc-tag__label" }, Zt = { class: "mc-tag__label" }, xt = { class: "mc-tag__label" }, es = /* @__PURE__ */ y({
1583
+ __name: "MTag",
1584
+ props: {
1585
+ type: { default: "informative" },
1586
+ size: {},
1587
+ id: {},
1588
+ name: {},
1589
+ label: {},
1590
+ modelValue: { type: Boolean },
1591
+ disabled: { type: Boolean },
1592
+ contextualisedNumber: { default: 99 },
1593
+ removableLabel: {}
1594
+ },
1595
+ emits: ["update:modelValue", "remove-tag"],
1596
+ setup(d, { emit: e }) {
1597
+ const a = d, t = b(() => ({
1598
+ [`mc-tag-${a.type}`]: a.type && a.type != "informative",
1599
+ [`mc-tag--${a.size}`]: a.size && a.size != "m"
1600
+ })), o = e;
1601
+ return (s, i) => s.type === "selectable" ? (l(), n("label", {
1602
+ key: 0,
1603
+ for: s.id,
1604
+ class: g(["mc-tag", t.value])
1605
+ }, [
1606
+ r("input", B({
1607
+ type: "checkbox",
1608
+ class: "mc-tag__input",
1609
+ id: s.id,
1610
+ name: s.name,
1611
+ checked: s.modelValue,
1612
+ disabled: s.disabled,
1613
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
1614
+ }, s.$attrs), null, 16, Et),
1615
+ r("span", Qt, f(s.label), 1)
1616
+ ], 10, Ht)) : s.type === "interactive" ? (l(), n("button", B({
1617
+ key: 1,
1618
+ class: ["mc-tag", t.value],
1619
+ type: "button",
1620
+ disabled: s.disabled
1621
+ }, s.$attrs), [
1622
+ r("span", Jt, f(s.label), 1)
1623
+ ], 16, Wt)) : s.type === "contextualised" ? (l(), n("button", B({
1624
+ key: 2,
1625
+ class: ["mc-tag", t.value],
1626
+ type: "button",
1627
+ disabled: s.disabled
1628
+ }, s.$attrs), [
1629
+ w(ha, {
1630
+ appearance: "inverse",
1631
+ label: s.contextualisedNumber,
1632
+ size: s.size === "l" ? "m" : void 0
1633
+ }, null, 8, ["label", "size"]),
1634
+ r("span", Yt, f(s.label), 1)
1635
+ ], 16, Xt)) : s.type === "removable" ? (l(), n("span", B({
1636
+ key: 3,
1637
+ class: ["mc-tag", t.value]
1638
+ }, s.$attrs), [
1639
+ r("span", Zt, f(s.label), 1),
1640
+ r("button", {
1641
+ class: "mc-tag-removable__remove",
1642
+ type: "button",
1643
+ onClick: i[1] || (i[1] = (u) => s.id && o("remove-tag", s.id))
1644
+ }, [
1645
+ w(R, {
1646
+ class: "mc-tag-removable__icon",
1647
+ "aria-hidden": "true"
1648
+ }),
1649
+ i[2] || (i[2] = r("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
1650
+ ])
1651
+ ], 16)) : (l(), n("span", B({
1652
+ key: 4,
1653
+ class: ["mc-tag", t.value]
1654
+ }, s.$attrs), [
1655
+ r("span", xt, f(s.label), 1)
1656
+ ], 16));
1657
+ }
1658
+ }), zs = /* @__PURE__ */ _(es, [["__scopeId", "data-v-a3166010"]]), as = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ts = /* @__PURE__ */ y({
1015
1659
  __name: "MTextArea",
1016
1660
  props: {
1017
1661
  id: {},
@@ -1026,13 +1670,13 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1026
1670
  readonly: { type: Boolean }
1027
1671
  },
1028
1672
  emits: ["update:modelValue"],
1029
- setup(o, { emit: a }) {
1030
- const t = o, e = v(() => ({
1031
- "is-invalid": t.isInvalid
1032
- })), i = a;
1033
- return (s, u) => (l(), n("textarea", k({
1673
+ setup(d, { emit: e }) {
1674
+ const a = d, t = b(() => ({
1675
+ "is-invalid": a.isInvalid
1676
+ })), o = e;
1677
+ return (s, i) => (l(), n("textarea", B({
1034
1678
  id: s.id,
1035
- class: ["mc-textarea", e.value],
1679
+ class: ["mc-textarea", t.value],
1036
1680
  "aria-invalid": s.isInvalid,
1037
1681
  value: s.modelValue,
1038
1682
  name: s.name,
@@ -1043,16 +1687,16 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1043
1687
  rows: s.rows,
1044
1688
  readonly: s.readonly
1045
1689
  }, s.$attrs, {
1046
- onInput: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
1047
- }), null, 16, Na));
1690
+ onInput: i[0] || (i[0] = (u) => o("update:modelValue", u.target.value))
1691
+ }), null, 16, as));
1048
1692
  }
1049
- }), cs = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-8184b69c"]]), Ua = {
1693
+ }), Ls = /* @__PURE__ */ _(ts, [["__scopeId", "data-v-8184b69c"]]), ss = {
1050
1694
  key: 0,
1051
1695
  class: "mc-text-input__icon"
1052
- }, Da = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Fa = {
1696
+ }, ls = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], os = {
1053
1697
  key: 1,
1054
1698
  class: "mc-controls-options"
1055
- }, Ra = /* @__PURE__ */ y({
1699
+ }, ns = /* @__PURE__ */ y({
1056
1700
  __name: "MTextInput",
1057
1701
  props: {
1058
1702
  id: {},
@@ -1068,48 +1712,48 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1068
1712
  clearLabel: { default: "clear content" }
1069
1713
  },
1070
1714
  emits: ["update:modelValue"],
1071
- setup(o, { emit: a }) {
1072
- const t = o, e = v(() => ({
1073
- [`mc-text-input--${t.size}`]: t.size && t.size != "m",
1074
- "is-invalid": t.isInvalid
1075
- })), i = I(t.modelValue), s = () => {
1076
- i.value = "", u("update:modelValue", "");
1077
- }, u = a;
1078
- return (r, p) => (l(), n("div", {
1079
- class: $(["mc-text-input", e.value])
1715
+ setup(d, { emit: e }) {
1716
+ const a = d, t = b(() => ({
1717
+ [`mc-text-input--${a.size}`]: a.size && a.size != "m",
1718
+ "is-invalid": a.isInvalid
1719
+ })), o = L(a.modelValue), s = () => {
1720
+ o.value = "", i("update:modelValue", "");
1721
+ }, i = e;
1722
+ return (u, p) => (l(), n("div", {
1723
+ class: g(["mc-text-input", t.value])
1080
1724
  }, [
1081
- r.$slots.icon ? (l(), n("span", Ua, [
1082
- g(r.$slots, "icon", {}, void 0, !0)
1725
+ u.$slots.icon ? (l(), n("span", ss, [
1726
+ V(u.$slots, "icon", {}, void 0, !0)
1083
1727
  ])) : h("", !0),
1084
- d("input", k({
1085
- id: r.id,
1728
+ r("input", B({
1729
+ id: u.id,
1086
1730
  class: "mc-text-input__control",
1087
- value: i.value,
1088
- type: r.inputType,
1089
- name: r.name,
1090
- placeholder: r.placeholder,
1091
- disabled: r.disabled,
1092
- "aria-invalid": r.isInvalid,
1093
- readonly: r.readonly
1094
- }, r.$attrs, {
1095
- onInput: p[0] || (p[0] = (c) => u("update:modelValue", c.target.value))
1096
- }), null, 16, Da),
1097
- r.isClearable && i.value ? (l(), n("div", Fa, [
1098
- d("button", {
1731
+ value: o.value,
1732
+ type: u.inputType,
1733
+ name: u.name,
1734
+ placeholder: u.placeholder,
1735
+ disabled: u.disabled,
1736
+ "aria-invalid": u.isInvalid,
1737
+ readonly: u.readonly
1738
+ }, u.$attrs, {
1739
+ onInput: p[0] || (p[0] = (m) => i("update:modelValue", m.target.value))
1740
+ }), null, 16, ls),
1741
+ u.isClearable && o.value ? (l(), n("div", os, [
1742
+ r("button", {
1099
1743
  type: "button",
1100
1744
  class: "mc-controls-options__button",
1101
1745
  onClick: s
1102
1746
  }, [
1103
- V(q, {
1747
+ w(R, {
1104
1748
  class: "mc-controls-options__icon",
1105
1749
  "aria-hidden": "true"
1106
1750
  }),
1107
- p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1751
+ p[1] || (p[1] = r("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1108
1752
  ])
1109
1753
  ])) : h("", !0)
1110
1754
  ], 2));
1111
1755
  }
1112
- }), us = /* @__PURE__ */ _(Ra, [["__scopeId", "data-v-38f67338"]]), Aa = ["for"], Ha = ["id", "name", "checked", "disabled"], Ea = ["for"], Qa = /* @__PURE__ */ y({
1756
+ }), Ts = /* @__PURE__ */ _(ns, [["__scopeId", "data-v-38f67338"]]), is = ["for"], ds = ["id", "name", "checked", "disabled"], rs = ["for"], cs = /* @__PURE__ */ y({
1113
1757
  __name: "MToggle",
1114
1758
  props: {
1115
1759
  id: {},
@@ -1120,18 +1764,18 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1120
1764
  disabled: { type: Boolean }
1121
1765
  },
1122
1766
  emits: ["update:modelValue"],
1123
- setup(o, { emit: a }) {
1124
- const t = o, e = v(() => ({
1125
- [`mc-toggle--${t.size}`]: t.size && t.size != "s"
1126
- })), i = a;
1127
- return (s, u) => (l(), n("div", {
1128
- class: $(["mc-toggle", e.value])
1767
+ setup(d, { emit: e }) {
1768
+ const a = d, t = b(() => ({
1769
+ [`mc-toggle--${a.size}`]: a.size && a.size != "s"
1770
+ })), o = e;
1771
+ return (s, i) => (l(), n("div", {
1772
+ class: g(["mc-toggle", t.value])
1129
1773
  }, [
1130
- d("label", {
1774
+ r("label", {
1131
1775
  class: "mc-toggle__container",
1132
1776
  for: s.id
1133
1777
  }, [
1134
- d("input", k({
1778
+ r("input", B({
1135
1779
  id: s.id,
1136
1780
  type: "checkbox",
1137
1781
  class: "mc-toggle__input",
@@ -1139,17 +1783,17 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1139
1783
  checked: s.modelValue,
1140
1784
  disabled: s.disabled
1141
1785
  }, s.$attrs, {
1142
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
1143
- }), null, 16, Ha),
1786
+ onChange: i[0] || (i[0] = (u) => o("update:modelValue", u.target.checked))
1787
+ }), null, 16, ds),
1144
1788
  s.label ? (l(), n("span", {
1145
1789
  key: 0,
1146
1790
  for: s.id,
1147
1791
  class: "mc-toggle__label"
1148
- }, f(s.label), 9, Ea)) : h("", !0)
1149
- ], 8, Aa)
1792
+ }, f(s.label), 9, rs)) : h("", !0)
1793
+ ], 8, is)
1150
1794
  ], 2));
1151
1795
  }
1152
- }), Wa = /* @__PURE__ */ _(Qa, [["__scopeId", "data-v-5be734e7"]]), Ja = /* @__PURE__ */ y({
1796
+ }), us = /* @__PURE__ */ _(cs, [["__scopeId", "data-v-5be734e7"]]), ps = /* @__PURE__ */ y({
1153
1797
  __name: "MToggleGroup",
1154
1798
  props: {
1155
1799
  name: {},
@@ -1158,62 +1802,70 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1158
1802
  inline: { type: Boolean }
1159
1803
  },
1160
1804
  emits: ["update:modelValue"],
1161
- setup(o, { emit: a }) {
1162
- const t = o, e = I([]);
1163
- O(
1164
- () => t.modelValue,
1805
+ setup(d, { emit: e }) {
1806
+ const a = d, t = L([]);
1807
+ q(
1808
+ () => a.modelValue,
1165
1809
  (p) => {
1166
- e.value = p || [];
1810
+ t.value = p || [];
1167
1811
  },
1168
1812
  { immediate: !0 }
1169
1813
  );
1170
- const i = (p, c) => {
1171
- let m = [...e.value];
1172
- p && !m.includes(c) ? m.push(c) : m = m.filter((b) => b !== c), r("update:modelValue", m), e.value = m;
1173
- }, s = v(() => ({
1174
- "mc-field__container--inline": t.inline
1175
- })), u = v(() => ({
1176
- "mc-field__container--inline__item": t.inline
1177
- })), r = a;
1178
- return (p, c) => (l(), n("div", {
1179
- class: $(s.value)
1814
+ const o = (p, m) => {
1815
+ let c = [...t.value];
1816
+ p && !c.includes(m) ? c.push(m) : c = c.filter((v) => v !== m), u("update:modelValue", c), t.value = c;
1817
+ }, s = b(() => ({
1818
+ "mc-field__container--inline": a.inline
1819
+ })), i = b(() => ({
1820
+ "mc-field__container--inline__item": a.inline
1821
+ })), u = e;
1822
+ return (p, m) => (l(), n("div", {
1823
+ class: g(s.value)
1180
1824
  }, [
1181
- (l(!0), n(B, null, C(p.options, (m) => (l(), w(Wa, {
1182
- id: m.id,
1183
- key: m.id,
1184
- label: m.label,
1185
- "is-invalid": m.isInvalid,
1825
+ (l(!0), n(O, null, S(p.options, (c) => (l(), I(us, {
1826
+ id: c.id,
1827
+ key: c.id,
1828
+ label: c.label,
1829
+ "is-invalid": c.isInvalid,
1186
1830
  name: p.name,
1187
- class: $(u.value),
1188
- "model-value": p.modelValue ? p.modelValue.includes(m.value) : void 0,
1189
- disabled: m.disabled,
1190
- "onUpdate:modelValue": (b) => i(b, m.value)
1831
+ class: g(i.value),
1832
+ "model-value": p.modelValue ? p.modelValue.includes(c.value) : void 0,
1833
+ disabled: c.disabled,
1834
+ "onUpdate:modelValue": (v) => o(v, c.value)
1191
1835
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1192
1836
  ], 2));
1193
1837
  }
1194
- }), ps = /* @__PURE__ */ _(Ja, [["__scopeId", "data-v-c6b10172"]]);
1838
+ }), js = /* @__PURE__ */ _(ps, [["__scopeId", "data-v-c6b10172"]]);
1195
1839
  export {
1196
- Xa as MBreadcrumb,
1197
- le as MButton,
1198
- re as MCheckbox,
1199
- Ya as MCheckboxGroup,
1200
- xa as MField,
1201
- es as MFieldGroup,
1202
- as as MIconButton,
1203
- R as MLink,
1204
- X as MLoader,
1205
- ss as MNumberBadge,
1206
- ts as MOverlay,
1207
- ls as MPasswordInput,
1208
- ns as MQuantitySelector,
1209
- ta as MRadio,
1210
- os as MRadioGroup,
1211
- is as MSelect,
1212
- ds as MStatusBadge,
1213
- rs as MStatusNotification,
1214
- cs as MTextArea,
1215
- us as MTextInput,
1216
- Wa as MToggle,
1217
- ps as MToggleGroup
1840
+ _s as MBreadcrumb,
1841
+ F as MButton,
1842
+ ge as MCheckbox,
1843
+ vs as MCheckboxGroup,
1844
+ Be as MDivider,
1845
+ bs as MDrawer,
1846
+ fs as MField,
1847
+ hs as MFieldGroup,
1848
+ P as MIconButton,
1849
+ se as MLink,
1850
+ H as MLoader,
1851
+ $s as MLoadingOverlay,
1852
+ ys as MModal,
1853
+ ha as MNumberBadge,
1854
+ Q as MOverlay,
1855
+ gs as MPagination,
1856
+ ks as MPasswordInput,
1857
+ ws as MPincode,
1858
+ Vs as MQuantitySelector,
1859
+ rt as MRadio,
1860
+ Bs as MRadioGroup,
1861
+ wa as MSelect,
1862
+ Is as MStatusBadge,
1863
+ Cs as MStatusNotification,
1864
+ Ms as MTabs,
1865
+ zs as MTag,
1866
+ Ls as MTextArea,
1867
+ Ts as MTextInput,
1868
+ us as MToggle,
1869
+ js as MToggleGroup
1218
1870
  };
1219
1871
  //# sourceMappingURL=mozaic-vue.js.map