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

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.
@@ -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 C, openBlock as l, resolveDynamicComponent as j, normalizeClass as $, withCtx as M, createElementBlock as n, createCommentVNode as h, createElementVNode as i, renderSlot as V, Fragment as z, renderList as L, createVNode as g, createTextVNode as S, toDisplayString as f, normalizeStyle as U, mergeProps as k, ref as B, watch as O, withDirectives as D, vModelDynamic as F, vModelText as G } from "vue";
2
+ const R = {
3
3
  key: 0,
4
4
  class: "mc-link__icon",
5
5
  "aria-hidden": "true"
6
- }, U = { class: "mc-link__label" }, D = {
6
+ }, A = { class: "mc-link__label" }, H = {
7
7
  key: 1,
8
8
  class: "mc-link__icon",
9
9
  "aria-hidden": "true"
10
- }, F = /* @__PURE__ */ y({
10
+ }, E = /* @__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(() => ({
21
+ setup(d) {
22
+ const a = d, s = b(() => ({
23
23
  [`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
24
24
  [`mc-link--${a.size}`]: a.size && a.size != "s",
25
25
  "mc-link--inline": a.inline,
26
26
  "mc-link--stand-alone": !a.inline
27
27
  }));
28
- return (e, i) => (l(), w(j(e.router ? "router-link" : "a"), {
29
- class: $(["mc-link", t.value]),
28
+ return (e, o) => (l(), C(j(e.router ? "router-link" : "a"), {
29
+ class: $(["mc-link", s.value]),
30
30
  href: e.href,
31
31
  target: e.target,
32
32
  to: e.router ? e.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: M(() => [
35
+ e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", R, [
36
+ V(e.$slots, "icon", {}, void 0, !0)
37
37
  ])) : h("", !0),
38
- d("span", U, [
39
- g(e.$slots, "default", {}, void 0, !0)
38
+ i("span", A, [
39
+ V(e.$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
+ e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", H, [
42
+ V(e.$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
+ }), v = (d, a) => {
49
+ const s = d.__vccOpts || d;
50
+ for (const [e, o] of a)
51
+ s[e] = o;
52
+ return s;
53
+ }, Q = /* @__PURE__ */ v(E, [["__scopeId", "data-v-df607c25"]]), W = { class: "mc-breadcrumb__container" }, J = /* @__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(() => ({
59
+ setup(d) {
60
+ const a = d, s = b(() => ({
61
61
  [`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
62
- })), e = (i) => {
63
- var s;
64
- return i === (((s = a.links) == null ? void 0 : s.length) ?? 0) - 1;
62
+ })), e = (o) => {
63
+ var t;
64
+ return o === (((t = a.links) == null ? void 0 : t.length) ?? 0) - 1;
65
65
  };
66
- return (i, s) => (l(), n("nav", {
67
- class: $(["mc-breadcrumb", t.value]),
66
+ return (o, t) => (l(), n("nav", {
67
+ class: $(["mc-breadcrumb", s.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
+ i("ul", W, [
71
+ (l(!0), n(z, null, L(o.links, (c, 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
+ g(Q, {
76
+ href: c.href,
77
+ router: c.router,
78
+ appearance: o.appearance,
79
79
  inline: "",
80
80
  class: $({
81
- "mc-breadcrumb__current": e(r)
81
+ "mc-breadcrumb__current": e(u)
82
82
  }),
83
- "aria-current": e(r) ? "page" : void 0
83
+ "aria-current": e(u) ? "page" : void 0
84
84
  }, {
85
- default: S(() => [
86
- M(f(u.label), 1)
85
+ default: M(() => [
86
+ S(f(c.label), 1)
87
87
  ]),
88
88
  _: 2
89
89
  }, 1032, ["href", "router", "appearance", "class", "aria-current"])
@@ -91,83 +91,83 @@ 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
+ }), Lt = /* @__PURE__ */ v(J, [["__scopeId", "data-v-09df4905"]]), K = { class: "mc-loader__spinner" }, X = ["viewBox"], Y = ["r"], x = {
95
95
  key: 0,
96
96
  class: "mc-loader__text",
97
97
  role: "status"
98
- }, K = /* @__PURE__ */ y({
98
+ }, ee = /* @__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(() => ({
105
+ setup(d) {
106
+ const a = d, s = b(() => ({
107
107
  [`mc-loader--${a.size}`]: a.size && a.size !== "m",
108
108
  [`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard"
109
- })), e = v(() => {
110
- let s;
109
+ })), e = b(() => {
110
+ let t;
111
111
  switch (a.size) {
112
112
  case "s":
113
- s = "0 0 24 24";
113
+ t = "0 0 24 24";
114
114
  break;
115
115
  case "l":
116
- s = "0 0 64 64";
116
+ t = "0 0 64 64";
117
117
  break;
118
118
  default:
119
- s = "0 0 32 32";
119
+ t = "0 0 32 32";
120
120
  }
121
- return s;
122
- }), i = v(() => {
123
- let s;
121
+ return t;
122
+ }), o = b(() => {
123
+ let t;
124
124
  switch (a.size) {
125
125
  case "s":
126
- s = 6;
126
+ t = 6;
127
127
  break;
128
128
  case "l":
129
- s = 19;
129
+ t = 19;
130
130
  break;
131
131
  default:
132
- s = 9;
132
+ t = 9;
133
133
  }
134
- return s;
134
+ return t;
135
135
  });
136
- return (s, u) => (l(), n("div", {
137
- class: $(["mc-loader", t.value])
136
+ return (t, c) => (l(), n("div", {
137
+ class: $(["mc-loader", s.value])
138
138
  }, [
139
- d("span", E, [
139
+ i("span", K, [
140
140
  (l(), n("svg", {
141
141
  class: "mc-loader__icon",
142
142
  xmlns: "http://www.w3.org/2000/svg",
143
143
  viewBox: e.value,
144
144
  "aria-hidden": "true"
145
145
  }, [
146
- d("circle", {
146
+ i("circle", {
147
147
  class: "mc-loader__path",
148
148
  cx: "50%",
149
149
  cy: "50%",
150
- r: i.value
151
- }, null, 8, W)
152
- ], 8, Q))
150
+ r: o.value
151
+ }, null, 8, Y)
152
+ ], 8, X))
153
153
  ]),
154
- s.text ? (l(), n("p", J, f(s.text), 1)) : h("", !0)
154
+ t.text ? (l(), n("p", x, f(t.text), 1)) : h("", !0)
155
155
  ], 2));
156
156
  }
157
- }), X = /* @__PURE__ */ _(K, [["__scopeId", "data-v-56c66912"]]), Y = ["disabled", "type"], x = {
157
+ }), ae = /* @__PURE__ */ v(ee, [["__scopeId", "data-v-56c66912"]]), te = ["disabled", "type"], se = {
158
158
  key: 0,
159
159
  class: "mc-button__icon"
160
- }, ee = {
160
+ }, le = {
161
161
  key: 1,
162
162
  class: "mc-button__icon",
163
163
  style: { position: "absolute" }
164
- }, ae = {
164
+ }, ne = {
165
165
  key: 2,
166
166
  class: "mc-button__icon"
167
- }, se = {
167
+ }, oe = {
168
168
  key: 4,
169
169
  class: "mc-button__icon"
170
- }, te = /* @__PURE__ */ y({
170
+ }, ie = /* @__PURE__ */ y({
171
171
  __name: "MButton",
172
172
  props: {
173
173
  appearance: { default: "standard" },
@@ -179,45 +179,45 @@ const G = {
179
179
  type: { default: "button" },
180
180
  isLoading: { type: Boolean }
181
181
  },
182
- setup(o) {
183
- const a = o, t = v(() => ({
182
+ setup(d) {
183
+ const a = d, s = b(() => ({
184
184
  [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
185
185
  [`mc-button--${a.size}`]: a.size && a.size != "m",
186
186
  "mc-button--ghost": a.ghost,
187
187
  "mc-button--outlined": a.outlined,
188
188
  "mc-button--icon-only": a.iconPosition == "only"
189
189
  }));
190
- return (e, i) => (l(), n("button", {
191
- class: $(["mc-button", t.value]),
190
+ return (e, o) => (l(), n("button", {
191
+ class: $(["mc-button", s.value]),
192
192
  disabled: e.disabled,
193
193
  type: e.type
194
194
  }, [
195
- e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", x, [
196
- g(e.$slots, "icon", {}, void 0, !0)
195
+ e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", se, [
196
+ V(e.$slots, "icon", {}, void 0, !0)
197
197
  ])) : h("", !0),
198
- e.isLoading ? (l(), n("span", ee, [
199
- V(X, {
198
+ e.isLoading ? (l(), n("span", le, [
199
+ g(ae, {
200
200
  style: { color: "currentColor" },
201
201
  size: "s"
202
202
  })
203
203
  ])) : h("", !0),
204
- e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", ae, [
205
- g(e.$slots, "icon", {}, void 0, !0)
204
+ e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", ne, [
205
+ V(e.$slots, "icon", {}, void 0, !0)
206
206
  ])) : (l(), n("span", {
207
207
  key: 3,
208
208
  class: "mc-button__label",
209
- style: Z({ visibility: e.isLoading ? "hidden" : "visible" })
209
+ style: U({ visibility: e.isLoading ? "hidden" : "visible" })
210
210
  }, [
211
- g(e.$slots, "default", {}, () => [
212
- i[0] || (i[0] = M("Button Label"))
211
+ V(e.$slots, "default", {}, () => [
212
+ o[0] || (o[0] = S("Button Label"))
213
213
  ], !0)
214
214
  ], 4)),
215
- e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", se, [
216
- g(e.$slots, "icon", {}, void 0, !0)
215
+ e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", oe, [
216
+ V(e.$slots, "icon", {}, void 0, !0)
217
217
  ])) : h("", !0)
218
- ], 10, Y));
218
+ ], 10, te));
219
219
  }
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({
220
+ }), T = /* @__PURE__ */ v(ie, [["__scopeId", "data-v-f4f43ab6"]]), de = { class: "mc-checkbox" }, re = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], ce = ["for"], ue = /* @__PURE__ */ y({
221
221
  __name: "MCheckbox",
222
222
  props: {
223
223
  id: {},
@@ -229,31 +229,31 @@ const G = {
229
229
  disabled: { type: Boolean }
230
230
  },
231
231
  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({
238
- id: s.id,
232
+ setup(d, { emit: a }) {
233
+ const s = d, e = b(() => ({
234
+ "is-invalid": s.isInvalid
235
+ })), o = a;
236
+ return (t, c) => (l(), n("div", de, [
237
+ i("input", k({
238
+ id: t.id,
239
239
  type: "checkbox",
240
240
  class: ["mc-checkbox__input", e.value],
241
- name: s.name,
242
- checked: s.modelValue,
243
- indeterminate: s.indeterminate,
244
- disabled: s.disabled,
245
- "aria-invalid": s.isInvalid
246
- }, s.$attrs, {
247
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
248
- }), null, 16, oe),
249
- s.label ? (l(), n("label", {
241
+ name: t.name,
242
+ checked: t.modelValue,
243
+ indeterminate: t.indeterminate,
244
+ disabled: t.disabled,
245
+ "aria-invalid": t.isInvalid
246
+ }, t.$attrs, {
247
+ onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
248
+ }), null, 16, re),
249
+ t.label ? (l(), n("label", {
250
250
  key: 0,
251
- for: s.id,
251
+ for: t.id,
252
252
  class: "mc-checkbox__label"
253
- }, f(s.label), 9, ie)) : h("", !0)
253
+ }, f(t.label), 9, ce)) : h("", !0)
254
254
  ]));
255
255
  }
256
- }), re = /* @__PURE__ */ _(de, [["__scopeId", "data-v-37fd0a35"]]), ce = /* @__PURE__ */ y({
256
+ }), pe = /* @__PURE__ */ v(ue, [["__scopeId", "data-v-37fd0a35"]]), me = /* @__PURE__ */ y({
257
257
  __name: "MCheckboxGroup",
258
258
  props: {
259
259
  name: {},
@@ -262,43 +262,63 @@ const G = {
262
262
  inline: { type: Boolean }
263
263
  },
264
264
  emits: ["update:modelValue"],
265
- setup(o, { emit: a }) {
266
- const t = o, e = I([]);
265
+ setup(d, { emit: a }) {
266
+ const s = d, e = B([]);
267
267
  O(
268
- () => t.modelValue,
268
+ () => s.modelValue,
269
269
  (p) => {
270
270
  e.value = p || [];
271
271
  },
272
272
  { immediate: !0 }
273
273
  );
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])
274
+ const o = (p, m) => {
275
+ let r = [...e.value];
276
+ p && !r.includes(m) ? r.push(m) : r = r.filter((_) => _ !== m), u("update:modelValue", r), e.value = r;
277
+ }, t = b(() => ({
278
+ "mc-field__container--inline": s.inline
279
+ })), c = b(() => ({
280
+ "mc-field__container--inline__item": s.inline
281
+ })), u = a;
282
+ return (p, m) => (l(), n("div", {
283
+ class: $(["mc-field__container", t.value])
284
284
  }, [
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,
285
+ (l(!0), n(z, null, L(p.options, (r) => (l(), C(pe, {
286
+ id: r.id,
287
+ key: r.id,
288
+ label: r.label,
289
+ "is-invalid": r.isInvalid,
290
290
  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)
291
+ class: $(["mc-field__item", c.value]),
292
+ "model-value": p.modelValue ? p.modelValue.includes(r.value) : void 0,
293
+ disabled: r.disabled,
294
+ "onUpdate:modelValue": (_) => o(_, r.value)
295
295
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
296
296
  ], 2));
297
297
  }
298
- }), Ya = /* @__PURE__ */ _(ce, [["__scopeId", "data-v-8ee4699f"]]), ue = { class: "mc-field" }, pe = ["for"], me = {
298
+ }), St = /* @__PURE__ */ v(me, [["__scopeId", "data-v-8ee4699f"]]), _e = { class: "mc-divider" }, ve = /* @__PURE__ */ y({
299
+ __name: "MDivider",
300
+ props: {
301
+ orientation: { default: "horizontal" },
302
+ style: { default: "primary" },
303
+ size: { default: "s" }
304
+ },
305
+ setup(d) {
306
+ const a = d, s = b(() => ({
307
+ [`mc-divider-${a.orientation}`]: a.orientation,
308
+ [`mc-divider-horizontal--${a.style}`]: a.style && a.style != "primary",
309
+ [`mc-divider-horizontal--${a.size}`]: a.size && a.size != "s"
310
+ }));
311
+ return (e, o) => (l(), n("div", _e, [
312
+ i("div", {
313
+ class: $(s.value)
314
+ }, null, 2),
315
+ V(e.$slots, "default", {}, void 0, !0)
316
+ ]));
317
+ }
318
+ }), be = /* @__PURE__ */ v(ve, [["__scopeId", "data-v-b2b223a3"]]), fe = { class: "mc-field" }, he = ["for"], $e = {
299
319
  key: 0,
300
320
  class: "mc-field__requirement"
301
- }, _e = ["id"], ve = { class: "mc-field__content" }, be = ["id"], fe = /* @__PURE__ */ y({
321
+ }, ye = ["id"], ge = { class: "mc-field__content" }, ke = ["id"], Ve = /* @__PURE__ */ y({
302
322
  __name: "MField",
303
323
  props: {
304
324
  id: {},
@@ -311,41 +331,41 @@ const G = {
311
331
  messageId: {},
312
332
  message: {}
313
333
  },
314
- setup(o) {
315
- const a = o, t = v(() => ({
334
+ setup(d) {
335
+ const a = d, s = b(() => ({
316
336
  "is-valid": a.isValid,
317
337
  "is-invalid": a.isInvalid
318
338
  }));
319
- return (e, i) => (l(), n("div", ue, [
320
- d("label", {
339
+ return (e, o) => (l(), n("div", fe, [
340
+ i("label", {
321
341
  class: "mc-field__label",
322
342
  for: e.id
323
343
  }, [
324
- M(f(e.label) + " ", 1),
325
- e.requirementText ? (l(), n("span", me, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
326
- ], 8, pe),
344
+ S(f(e.label) + " ", 1),
345
+ e.requirementText ? (l(), n("span", $e, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
346
+ ], 8, he),
327
347
  e.helpId && e.helpText ? (l(), n("span", {
328
348
  key: 0,
329
349
  id: e.helpId,
330
350
  class: "mc-field__help"
331
- }, f(e.helpText), 9, _e)) : h("", !0),
332
- d("div", ve, [
333
- g(e.$slots, "default", {}, void 0, !0)
351
+ }, f(e.helpText), 9, ye)) : h("", !0),
352
+ i("div", ge, [
353
+ V(e.$slots, "default", {}, void 0, !0)
334
354
  ]),
335
355
  (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
336
356
  key: 1,
337
- class: $(["mc-field__validation-message", t.value]),
357
+ class: $(["mc-field__validation-message", s.value]),
338
358
  id: e.messageId
339
- }, f(e.message), 11, be)) : h("", !0)
359
+ }, f(e.message), 11, ke)) : h("", !0)
340
360
  ]));
341
361
  }
342
- }), xa = /* @__PURE__ */ _(fe, [["__scopeId", "data-v-ead078c4"]]), he = { class: "mc-field--group" }, $e = ["for"], ye = {
362
+ }), Ot = /* @__PURE__ */ v(Ve, [["__scopeId", "data-v-ead078c4"]]), Ce = { class: "mc-field--group" }, we = ["for"], Ie = {
343
363
  key: 0,
344
364
  class: "mc-field__requirement"
345
- }, ge = {
365
+ }, Be = {
346
366
  key: 0,
347
367
  class: "mc-field__help"
348
- }, Ve = { class: "mc-field__content" }, ke = /* @__PURE__ */ y({
368
+ }, Me = { class: "mc-field__content" }, ze = /* @__PURE__ */ y({
349
369
  __name: "MFieldGroup",
350
370
  props: {
351
371
  id: {},
@@ -356,30 +376,30 @@ const G = {
356
376
  isInvalid: { type: Boolean },
357
377
  message: {}
358
378
  },
359
- setup(o) {
360
- const a = o, t = v(() => ({
379
+ setup(d) {
380
+ const a = d, s = b(() => ({
361
381
  "is-valid": a.isValid,
362
382
  "is-invalid": a.isInvalid
363
383
  }));
364
- return (e, i) => (l(), n("fieldset", he, [
365
- d("legend", {
384
+ return (e, o) => (l(), n("fieldset", Ce, [
385
+ i("legend", {
366
386
  class: "mc-field__legend",
367
387
  for: e.id
368
388
  }, [
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)
389
+ S(f(e.legend) + " ", 1),
390
+ e.requirementText ? (l(), n("span", Ie, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
391
+ ], 8, we),
392
+ e.helpText ? (l(), n("span", Be, f(e.helpText), 1)) : h("", !0),
393
+ i("div", Me, [
394
+ V(e.$slots, "default", {}, void 0, !0)
375
395
  ]),
376
396
  (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
377
397
  key: 1,
378
- class: $(["mc-field__validation-message", t.value])
398
+ class: $(["mc-field__validation-message", s.value])
379
399
  }, f(e.message), 3)) : h("", !0)
380
400
  ]));
381
401
  }
382
- }), es = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-fc0c08dc"]]), Ie = ["disabled", "type"], we = { class: "mc-button__icon" }, Be = /* @__PURE__ */ y({
402
+ }), Tt = /* @__PURE__ */ v(ze, [["__scopeId", "data-v-fc0c08dc"]]), Le = ["disabled", "type"], Se = { class: "mc-button__icon" }, Oe = /* @__PURE__ */ y({
383
403
  __name: "MIconButton",
384
404
  props: {
385
405
  appearance: { default: "standard" },
@@ -389,59 +409,274 @@ const G = {
389
409
  outlined: { type: Boolean },
390
410
  type: { default: "button" }
391
411
  },
392
- setup(o) {
393
- const a = o, t = v(() => ({
412
+ setup(d) {
413
+ const a = d, s = b(() => ({
394
414
  [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
395
415
  [`mc-button--${a.size}`]: a.size && a.size != "m",
396
416
  "mc-button--ghost": a.ghost,
397
417
  "mc-button--outlined": a.outlined
398
418
  }));
399
- return (e, i) => (l(), n("button", {
400
- class: $(["mc-button mc-button--icon-button", t.value]),
419
+ return (e, o) => (l(), n("button", {
420
+ class: $(["mc-button mc-button--icon-button", s.value]),
401
421
  disabled: e.disabled,
402
422
  type: e.type
403
423
  }, [
404
- d("span", we, [
405
- g(e.$slots, "icon", {}, void 0, !0)
424
+ i("span", Se, [
425
+ V(e.$slots, "icon", {}, void 0, !0)
406
426
  ])
407
- ], 10, Ie));
427
+ ], 10, Le));
408
428
  }
409
- }), as = /* @__PURE__ */ _(Be, [["__scopeId", "data-v-abf78562"]]), Ce = /* @__PURE__ */ y({
429
+ }), P = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-abf78562"]]), Te = /* @__PURE__ */ y({
410
430
  __name: "MNumberBadge",
411
431
  props: {
412
432
  label: {},
413
433
  appearance: { default: "standard" },
414
434
  size: { default: "s" }
415
435
  },
416
- setup(o) {
417
- const a = o, t = v(() => ({
436
+ setup(d) {
437
+ const a = d, s = b(() => ({
418
438
  [`mc-number-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
419
439
  [`mc-number-badge--${a.size}`]: a.size && a.size != "s"
420
440
  }));
421
- return (e, i) => (l(), n("span", {
422
- class: $(["mc-number-badge", t.value])
441
+ return (e, o) => (l(), n("span", {
442
+ class: $(["mc-number-badge", s.value])
423
443
  }, f(e.label), 3));
424
444
  }
425
- }), ss = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-7e6acb92"]]), Me = ["aria-labelledby"], ze = /* @__PURE__ */ y({
445
+ }), je = /* @__PURE__ */ v(Te, [["__scopeId", "data-v-7e6acb92"]]), qe = ["aria-labelledby"], Pe = /* @__PURE__ */ y({
426
446
  __name: "MOverlay",
427
447
  props: {
428
448
  isVisible: { type: Boolean },
429
449
  dialogLabel: {}
430
450
  },
431
- setup(o) {
432
- return (a, t) => (l(), n("div", {
451
+ setup(d) {
452
+ return (a, s) => (l(), n("div", {
433
453
  class: $(["mc-overlay", { "is-visible": a.isVisible }])
434
454
  }, [
435
- d("div", {
455
+ i("div", {
436
456
  role: "dialog",
437
457
  tabindex: "-1",
438
458
  "aria-labelledby": a.dialogLabel
439
459
  }, [
440
- g(a.$slots, "default", {}, void 0, !0)
441
- ], 8, Me)
460
+ V(a.$slots, "default", {}, void 0, !0)
461
+ ], 8, qe)
442
462
  ], 2));
443
463
  }
444
- }), ts = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-db90fdb3"]]), Le = {
464
+ }), jt = /* @__PURE__ */ v(Pe, [["__scopeId", "data-v-db90fdb3"]]), Ze = ["id", "name", "value", "disabled"], Ne = {
465
+ key: 0,
466
+ value: "",
467
+ disabled: ""
468
+ }, De = ["value", "disabled"], Ue = /* @__PURE__ */ y({
469
+ __name: "MSelect",
470
+ props: {
471
+ id: {},
472
+ name: {},
473
+ options: {},
474
+ modelValue: {},
475
+ placeholder: {},
476
+ isInvalid: { type: Boolean },
477
+ disabled: { type: Boolean },
478
+ size: { default: "m" },
479
+ readonly: { type: Boolean }
480
+ },
481
+ emits: ["update:modelValue"],
482
+ setup(d, { emit: a }) {
483
+ const s = d, e = b(() => ({
484
+ [`mc-select--${s.size}`]: s.size && s.size != "m",
485
+ "mc-select--readonly": s.readonly,
486
+ "is-invalid": s.isInvalid
487
+ })), o = a;
488
+ return (t, c) => (l(), n("select", k({
489
+ id: t.id,
490
+ class: ["mc-select", e.value],
491
+ name: t.name,
492
+ value: t.modelValue,
493
+ disabled: t.disabled
494
+ }, t.$attrs, {
495
+ onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.value))
496
+ }), [
497
+ t.placeholder ? (l(), n("option", Ne, " -- " + f(t.placeholder) + " -- ", 1)) : h("", !0),
498
+ (l(!0), n(z, null, L(t.options, (u, p) => (l(), n("option", k({
499
+ key: p,
500
+ value: u.value
501
+ }, { ref_for: !0 }, u.attributes, {
502
+ disabled: u.disabled
503
+ }), f(u.text), 17, De))), 128))
504
+ ], 16, Ze));
505
+ }
506
+ }), Fe = /* @__PURE__ */ v(Ue, [["__scopeId", "data-v-68c735e4"]]), Ge = {
507
+ name: "ChevronLeft24",
508
+ props: {
509
+ /**
510
+ * Icon color
511
+ */
512
+ color: {
513
+ type: String,
514
+ default: "currentColor"
515
+ }
516
+ }
517
+ }, Re = {
518
+ xmlns: "http://www.w3.org/2000/svg",
519
+ viewBox: "0 0 24 24"
520
+ };
521
+ function Ae(d, a, s, e, o, t) {
522
+ return l(), n("svg", Re, a[0] || (a[0] = [
523
+ i("g", { "clip-path": "url(#a)" }, [
524
+ i("path", {
525
+ "fill-rule": "evenodd",
526
+ d: "M15.207 6.293a1 1 0 0 1 0 1.414L10.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 0Z"
527
+ })
528
+ ], -1),
529
+ i("defs", null, [
530
+ i("clipPath", { id: "a" }, [
531
+ i("rect", {
532
+ width: "24",
533
+ height: "24",
534
+ fill: "#fff"
535
+ })
536
+ ])
537
+ ], -1)
538
+ ]));
539
+ }
540
+ const Z = /* @__PURE__ */ v(Ge, [["render", Ae]]), He = {
541
+ name: "ChevronRight24",
542
+ props: {
543
+ /**
544
+ * Icon color
545
+ */
546
+ color: {
547
+ type: String,
548
+ default: "currentColor"
549
+ }
550
+ }
551
+ }, Ee = {
552
+ xmlns: "http://www.w3.org/2000/svg",
553
+ viewBox: "0 0 24 24"
554
+ };
555
+ function Qe(d, a, s, e, o, t) {
556
+ return l(), n("svg", Ee, a[0] || (a[0] = [
557
+ i("g", { "clip-path": "url(#a)" }, [
558
+ i("path", {
559
+ "fill-rule": "evenodd",
560
+ d: "M8.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.414L13.086 12 8.793 7.707a1 1 0 0 1 0-1.414Z"
561
+ })
562
+ ], -1),
563
+ i("defs", null, [
564
+ i("clipPath", { id: "a" }, [
565
+ i("rect", {
566
+ width: "24",
567
+ height: "24",
568
+ fill: "#fff"
569
+ })
570
+ ])
571
+ ], -1)
572
+ ]));
573
+ }
574
+ const N = /* @__PURE__ */ v(He, [["render", Qe]]), We = {
575
+ class: "mc-pagination",
576
+ role: "navigation",
577
+ "aria-label": "pagination"
578
+ }, Je = {
579
+ key: 2,
580
+ class: "mc-pagination__field"
581
+ }, Ke = {
582
+ key: 3,
583
+ class: "mc-pagination__label",
584
+ "aria-current": "page"
585
+ }, Xe = /* @__PURE__ */ y({
586
+ __name: "MPagination",
587
+ props: {
588
+ id: {},
589
+ modelValue: {},
590
+ compact: { type: Boolean },
591
+ options: {},
592
+ selectLabel: {}
593
+ },
594
+ emits: ["update:modelValue"],
595
+ setup(d, { emit: a }) {
596
+ const s = d, e = a, o = B(s.modelValue);
597
+ O(o, (r) => {
598
+ r !== s.modelValue && e("update:modelValue", r);
599
+ });
600
+ const t = b(
601
+ () => s.options.findIndex((r) => r.value === o.value)
602
+ ), c = b(() => t.value === 0), u = b(() => t.value === s.options.length - 1), p = () => {
603
+ const r = s.options.findIndex(
604
+ (_) => _.value === o.value
605
+ );
606
+ r > 0 && (o.value = s.options[r - 1].value, e("update:modelValue", s.options[r - 1].value));
607
+ }, m = () => {
608
+ const r = s.options.findIndex(
609
+ (_) => _.value === o.value
610
+ );
611
+ r < s.options.length - 1 && (o.value = s.options[r + 1].value, e("update:modelValue", s.options[r + 1].value));
612
+ };
613
+ return (r, _) => {
614
+ var I;
615
+ return l(), n("nav", We, [
616
+ r.compact ? (l(), C(P, {
617
+ key: 1,
618
+ outlined: "",
619
+ "aria-label": "Previous page",
620
+ disabled: c.value,
621
+ onClick: p
622
+ }, {
623
+ icon: M(() => [
624
+ g(Z)
625
+ ]),
626
+ _: 1
627
+ }, 8, ["disabled"])) : (l(), C(T, {
628
+ key: 0,
629
+ "icon-position": "only",
630
+ "aria-label": "Previous page",
631
+ disabled: c.value,
632
+ onClick: p
633
+ }, {
634
+ icon: M(() => [
635
+ g(Z)
636
+ ]),
637
+ _: 1
638
+ }, 8, ["disabled"])),
639
+ r.compact ? h("", !0) : (l(), n("div", Je, [
640
+ g(Fe, {
641
+ class: "mc-pagination__select",
642
+ id: r.id,
643
+ modelValue: o.value,
644
+ "onUpdate:modelValue": [
645
+ _[0] || (_[0] = (w) => o.value = w),
646
+ _[1] || (_[1] = (w) => e("update:modelValue", Number(w)))
647
+ ],
648
+ options: r.options,
649
+ "aria-label": r.selectLabel
650
+ }, null, 8, ["id", "modelValue", "options", "aria-label"])
651
+ ])),
652
+ r.compact ? (l(), n("span", Ke, f((I = r.options.find((w) => w.value === o.value)) == null ? void 0 : I.text), 1)) : h("", !0),
653
+ r.compact ? (l(), C(P, {
654
+ key: 5,
655
+ outlined: "",
656
+ "aria-label": "Next page",
657
+ disabled: u.value,
658
+ onClick: m
659
+ }, {
660
+ icon: M(() => [
661
+ g(N)
662
+ ]),
663
+ _: 1
664
+ }, 8, ["disabled"])) : (l(), C(T, {
665
+ key: 4,
666
+ "icon-position": "only",
667
+ "aria-label": "Next page",
668
+ disabled: u.value,
669
+ onClick: m
670
+ }, {
671
+ icon: M(() => [
672
+ g(N)
673
+ ]),
674
+ _: 1
675
+ }, 8, ["disabled"]))
676
+ ]);
677
+ };
678
+ }
679
+ }), qt = /* @__PURE__ */ v(Xe, [["__scopeId", "data-v-f959ec90"]]), Ye = {
445
680
  name: "CrossCircleFilled24",
446
681
  props: {
447
682
  /**
@@ -452,22 +687,22 @@ const G = {
452
687
  default: "currentColor"
453
688
  }
454
689
  }
455
- }, Se = {
690
+ }, xe = {
456
691
  xmlns: "http://www.w3.org/2000/svg",
457
692
  viewBox: "0 0 24 24"
458
693
  };
459
- function Oe(o, a, t, e, i, s) {
460
- return l(), n("svg", Se, a[0] || (a[0] = [
461
- d("path", {
694
+ function ea(d, a, s, e, o, t) {
695
+ return l(), n("svg", xe, a[0] || (a[0] = [
696
+ i("path", {
462
697
  "fill-rule": "evenodd",
463
698
  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"
464
699
  }, null, -1)
465
700
  ]));
466
701
  }
467
- const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Te = {
702
+ const q = /* @__PURE__ */ v(Ye, [["render", ea]]), aa = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], ta = {
468
703
  key: 0,
469
704
  class: "mc-controls-options"
470
- }, qe = { class: "mc-controls-options__label" }, Ze = /* @__PURE__ */ y({
705
+ }, sa = { class: "mc-controls-options__label" }, la = /* @__PURE__ */ y({
471
706
  __name: "MPasswordInput",
472
707
  props: {
473
708
  id: {},
@@ -482,61 +717,61 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
482
717
  buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
483
718
  },
484
719
  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 = () => {
491
- 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", {
720
+ setup(d, { emit: a }) {
721
+ const s = d, e = b(() => ({
722
+ "is-invalid": s.isInvalid
723
+ })), o = B(s.modelValue), t = B(!1), c = () => {
724
+ o.value = "", r("update:modelValue", "");
725
+ }, u = () => {
726
+ t.value = !t.value;
727
+ }, p = b(() => t.value ? "text" : "password"), m = b(() => t.value ? "true" : "false"), r = a;
728
+ return (_, I) => (l(), n("div", {
494
729
  class: $(["mc-password-input mc-text-input", e.value])
495
730
  }, [
496
- T(d("input", k({
731
+ D(i("input", k({
497
732
  class: "mc-password-input__control mc-text-input__control",
498
- "onUpdate:modelValue": z[0] || (z[0] = (L) => i.value = L),
499
- id: b.id,
733
+ "onUpdate:modelValue": I[0] || (I[0] = (w) => o.value = w),
734
+ id: _.id,
500
735
  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]
736
+ name: _.name,
737
+ placeholder: _.placeholder,
738
+ disabled: _.disabled,
739
+ "aria-invalid": _.isInvalid,
740
+ readonly: _.readonly
741
+ }, _.$attrs, {
742
+ onInput: I[1] || (I[1] = (w) => r("update:modelValue", w.target.value))
743
+ }), null, 16, aa), [
744
+ [F, o.value]
510
745
  ]),
511
- b.isClearable && i.value ? (l(), n("div", Te, [
512
- d("button", {
746
+ _.isClearable && o.value ? (l(), n("div", ta, [
747
+ i("button", {
513
748
  class: "mc-controls-options__button",
514
- onClick: u
749
+ onClick: c
515
750
  }, [
516
- V(q, {
751
+ g(q, {
517
752
  class: "mc-controls-options__icon",
518
753
  "aria-hidden": "true"
519
754
  }),
520
- d("span", qe, f(b.clearLabel), 1)
755
+ i("span", sa, f(_.clearLabel), 1)
521
756
  ])
522
757
  ])) : h("", !0),
523
- V(le, {
758
+ g(T, {
524
759
  ref: "button",
525
760
  role: "switch",
526
- "aria-checked": c.value,
527
- disabled: b.disabled,
528
- onClick: r,
761
+ "aria-checked": m.value,
762
+ disabled: _.disabled,
763
+ onClick: u,
529
764
  size: "s",
530
765
  ghost: ""
531
766
  }, {
532
- default: S(() => [
533
- M(f(s.value ? b.buttonLabel.hide : b.buttonLabel.show), 1)
767
+ default: M(() => [
768
+ S(f(t.value ? _.buttonLabel.hide : _.buttonLabel.show), 1)
534
769
  ]),
535
770
  _: 1
536
771
  }, 8, ["aria-checked", "disabled"])
537
772
  ], 2));
538
773
  }
539
- }), ls = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-a5164b59"]]), Pe = {
774
+ }), Pt = /* @__PURE__ */ v(la, [["__scopeId", "data-v-a5164b59"]]), na = {
540
775
  name: "More24",
541
776
  props: {
542
777
  /**
@@ -547,21 +782,21 @@ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "
547
782
  default: "currentColor"
548
783
  }
549
784
  }
550
- }, Ne = {
785
+ }, oa = {
551
786
  xmlns: "http://www.w3.org/2000/svg",
552
787
  viewBox: "0 0 24 24"
553
788
  };
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", {
789
+ function ia(d, a, s, e, o, t) {
790
+ return l(), n("svg", oa, a[0] || (a[0] = [
791
+ i("g", { "clip-path": "url(#a)" }, [
792
+ i("path", {
558
793
  "fill-rule": "evenodd",
559
794
  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
795
  })
561
796
  ], -1),
562
- d("defs", null, [
563
- d("clipPath", { id: "a" }, [
564
- d("rect", {
797
+ i("defs", null, [
798
+ i("clipPath", { id: "a" }, [
799
+ i("rect", {
565
800
  width: "24",
566
801
  height: "24",
567
802
  fill: "#fff"
@@ -570,7 +805,7 @@ function Ge(o, a, t, e, i, s) {
570
805
  ], -1)
571
806
  ]));
572
807
  }
573
- const Ue = /* @__PURE__ */ _(Pe, [["render", Ge]]), De = {
808
+ const da = /* @__PURE__ */ v(na, [["render", ia]]), ra = {
574
809
  name: "Less24",
575
810
  props: {
576
811
  /**
@@ -581,21 +816,21 @@ const Ue = /* @__PURE__ */ _(Pe, [["render", Ge]]), De = {
581
816
  default: "currentColor"
582
817
  }
583
818
  }
584
- }, Fe = {
819
+ }, ca = {
585
820
  xmlns: "http://www.w3.org/2000/svg",
586
821
  viewBox: "0 0 24 24"
587
822
  };
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", {
823
+ function ua(d, a, s, e, o, t) {
824
+ return l(), n("svg", ca, a[0] || (a[0] = [
825
+ i("g", { "clip-path": "url(#a)" }, [
826
+ i("path", {
592
827
  "fill-rule": "evenodd",
593
828
  d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"
594
829
  })
595
830
  ], -1),
596
- d("defs", null, [
597
- d("clipPath", { id: "a" }, [
598
- d("rect", {
831
+ i("defs", null, [
832
+ i("clipPath", { id: "a" }, [
833
+ i("rect", {
599
834
  width: "24",
600
835
  height: "24",
601
836
  fill: "#fff"
@@ -604,7 +839,7 @@ function Re(o, a, t, e, i, s) {
604
839
  ], -1)
605
840
  ]));
606
841
  }
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({
842
+ const pa = /* @__PURE__ */ v(ra, [["render", ua]]), ma = ["id", "name", "disabled", "min", "max", "step", "readonly", "aria-invalid", "aria-valuemin", "aria-valuemax", "aria-valuenow"], _a = ["aria-controls", "disabled"], va = { class: "mc-quantity-selector__icon" }, ba = { class: "mc-quantity-selector__label" }, fa = ["aria-controls", "disabled"], ha = { class: "mc-quantity-selector__icon" }, $a = { class: "mc-quantity-selector__label" }, ya = /* @__PURE__ */ y({
608
843
  __name: "MQuantitySelector",
609
844
  props: {
610
845
  id: {},
@@ -621,75 +856,75 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
621
856
  decrementLabel: { default: "Decrement" }
622
857
  },
623
858
  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);
859
+ setup(d, { emit: a }) {
860
+ const s = d, e = B(s.modelValue);
861
+ O(e, (m) => {
862
+ m !== s.modelValue && p("update:modelValue", m);
628
863
  });
629
- const i = v(() => ({
630
- [`mc-quantity-selector--${t.size}`]: t.size && t.size != "m",
631
- "is-invalid": t.isInvalid
632
- })), 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);
864
+ const o = b(() => ({
865
+ [`mc-quantity-selector--${s.size}`]: s.size && s.size != "m",
866
+ "is-invalid": s.isInvalid
867
+ })), t = () => {
868
+ e.value + s.step <= s.max ? e.value += s.step : e.value = s.max;
869
+ }, c = () => {
870
+ e.value - s.step > s.min ? e.value -= s.step : e.value = s.min;
871
+ }, u = (m) => {
872
+ e.value = m, e.value > s.max && (e.value = s.max), e.value <= s.min && (e.value = s.min), p("update:modelValue", e.value);
638
873
  }, p = a;
639
- return (c, m) => (l(), n("div", {
640
- class: $(["mc-quantity-selector", i.value])
874
+ return (m, r) => (l(), n("div", {
875
+ class: $(["mc-quantity-selector", o.value])
641
876
  }, [
642
- T(d("input", k({
643
- id: c.id,
644
- "onUpdate:modelValue": m[0] || (m[0] = (b) => e.value = b),
877
+ D(i("input", k({
878
+ id: m.id,
879
+ "onUpdate:modelValue": r[0] || (r[0] = (_) => e.value = _),
645
880
  class: "mc-quantity-selector__control",
646
881
  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,
882
+ name: m.name,
883
+ disabled: m.disabled,
884
+ min: m.min,
885
+ max: m.max,
886
+ step: m.step,
887
+ readonly: m.readonly,
888
+ "aria-invalid": m.isInvalid,
889
+ "aria-valuemin": m.min,
890
+ "aria-valuemax": m.max,
656
891
  "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]
892
+ }, m.$attrs, {
893
+ onChange: r[1] || (r[1] = (_) => u(Number(_.target.value)))
894
+ }), null, 16, ma), [
895
+ [G, e.value]
661
896
  ]),
662
- c.readonly ? h("", !0) : (l(), n("button", {
897
+ m.readonly ? h("", !0) : (l(), n("button", {
663
898
  key: 0,
664
899
  type: "button",
665
- "aria-controls": c.id,
900
+ "aria-controls": m.id,
666
901
  class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
667
902
  tabindex: "-1",
668
- disabled: c.disabled || e.value === c.max,
669
- onClick: s
903
+ disabled: m.disabled || e.value === m.max,
904
+ onClick: t
670
905
  }, [
671
- d("span", Qe, [
672
- V(Ue)
906
+ i("span", va, [
907
+ g(da)
673
908
  ]),
674
- d("span", We, f(c.incrementlabel), 1)
675
- ], 8, Ee)),
676
- c.readonly ? h("", !0) : (l(), n("button", {
909
+ i("span", ba, f(m.incrementlabel), 1)
910
+ ], 8, _a)),
911
+ m.readonly ? h("", !0) : (l(), n("button", {
677
912
  key: 1,
678
913
  type: "button",
679
- "aria-controls": c.id,
914
+ "aria-controls": m.id,
680
915
  class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
681
916
  tabindex: "-1",
682
- disabled: c.disabled || e.value === c.min,
683
- onClick: u
917
+ disabled: m.disabled || e.value === m.min,
918
+ onClick: c
684
919
  }, [
685
- d("span", Ke, [
686
- V(Ae)
920
+ i("span", ha, [
921
+ g(pa)
687
922
  ]),
688
- d("span", Xe, f(c.decrementLabel), 1)
689
- ], 8, Je))
923
+ i("span", $a, f(m.decrementLabel), 1)
924
+ ], 8, fa))
690
925
  ], 2));
691
926
  }
692
- }), ns = /* @__PURE__ */ _(Ye, [["__scopeId", "data-v-a732650a"]]), xe = { class: "mc-radio" }, ea = ["id", "name", "checked", "disabled", "aria-invalid"], aa = ["for"], sa = /* @__PURE__ */ y({
927
+ }), Zt = /* @__PURE__ */ v(ya, [["__scopeId", "data-v-a732650a"]]), ga = { class: "mc-radio" }, ka = ["id", "name", "checked", "disabled", "aria-invalid"], Va = ["for"], Ca = /* @__PURE__ */ y({
693
928
  __name: "MRadio",
694
929
  props: {
695
930
  id: {},
@@ -700,30 +935,30 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
700
935
  disabled: { type: Boolean }
701
936
  },
702
937
  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({
709
- id: s.id,
938
+ setup(d, { emit: a }) {
939
+ const s = d, e = b(() => ({
940
+ "is-invalid": s.isInvalid
941
+ })), o = a;
942
+ return (t, c) => (l(), n("div", ga, [
943
+ i("input", k({
944
+ id: t.id,
710
945
  type: "radio",
711
946
  class: ["mc-radio__input", e.value],
712
- name: s.name,
713
- checked: s.modelValue,
714
- disabled: s.disabled,
715
- "aria-invalid": s.isInvalid
716
- }, s.$attrs, {
717
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
718
- }), null, 16, ea),
719
- s.label ? (l(), n("label", {
947
+ name: t.name,
948
+ checked: t.modelValue,
949
+ disabled: t.disabled,
950
+ "aria-invalid": t.isInvalid
951
+ }, t.$attrs, {
952
+ onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
953
+ }), null, 16, ka),
954
+ t.label ? (l(), n("label", {
720
955
  key: 0,
721
- for: s.id,
956
+ for: t.id,
722
957
  class: "mc-radio__label"
723
- }, f(s.label), 9, aa)) : h("", !0)
958
+ }, f(t.label), 9, Va)) : h("", !0)
724
959
  ]));
725
960
  }
726
- }), ta = /* @__PURE__ */ _(sa, [["__scopeId", "data-v-da78938c"]]), la = /* @__PURE__ */ y({
961
+ }), wa = /* @__PURE__ */ v(Ca, [["__scopeId", "data-v-da78938c"]]), Ia = /* @__PURE__ */ y({
727
962
  __name: "MRadioGroup",
728
963
  props: {
729
964
  name: {},
@@ -733,103 +968,61 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
733
968
  inline: { type: Boolean }
734
969
  },
735
970
  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", {
971
+ setup(d, { emit: a }) {
972
+ const s = d, e = b(() => ({
973
+ "mc-field__container--inline": s.inline
974
+ })), o = b(() => ({
975
+ "mc-field__container--inline__item": s.inline
976
+ })), t = a;
977
+ return (c, u) => (l(), n("div", {
743
978
  class: $(["mc-field__container", e.value])
744
979
  }, [
745
- (l(!0), n(B, null, C(u.options, (p) => (l(), w(ta, {
980
+ (l(!0), n(z, null, L(c.options, (p) => (l(), C(wa, {
746
981
  id: p.id,
747
982
  key: p.id,
748
983
  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,
984
+ "is-invalid": c.isInvalid,
985
+ name: c.name,
986
+ class: $(["mc-field__item", o.value]),
987
+ "model-value": c.modelValue === p.value,
753
988
  disabled: p.disabled,
754
- "onUpdate:modelValue": (c) => c ? s("update:modelValue", p.value) : null
989
+ "onUpdate:modelValue": (m) => m ? t("update:modelValue", p.value) : null
755
990
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
756
991
  ], 2));
757
992
  }
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({
993
+ }), Nt = /* @__PURE__ */ v(Ia, [["__scopeId", "data-v-d2f5e103"]]), Ba = /* @__PURE__ */ y({
801
994
  __name: "MStatusDot",
802
995
  props: {
803
996
  status: { default: "info" },
804
997
  size: {}
805
998
  },
806
- setup(o) {
807
- const a = o, t = v(() => ({
999
+ setup(d) {
1000
+ const a = d, s = b(() => ({
808
1001
  [`mc-status-dot--${a.status}`]: a.status && a.status != "info",
809
1002
  [`mc-status-dot--${a.size}`]: a.size && a.size != "m"
810
1003
  }));
811
- return (e, i) => (l(), n("span", {
812
- class: $(["mc-status-dot", t.value])
1004
+ return (e, o) => (l(), n("span", {
1005
+ class: $(["mc-status-dot", s.value])
813
1006
  }, null, 2));
814
1007
  }
815
- }), ca = /* @__PURE__ */ _(ra, [["__scopeId", "data-v-417b563f"]]), ua = { class: "mc-status-badge__label" }, pa = /* @__PURE__ */ y({
1008
+ }), Ma = /* @__PURE__ */ v(Ba, [["__scopeId", "data-v-417b563f"]]), za = { class: "mc-status-badge__label" }, La = /* @__PURE__ */ y({
816
1009
  __name: "MStatusBadge",
817
1010
  props: {
818
1011
  label: {},
819
1012
  status: { default: "info" }
820
1013
  },
821
- setup(o) {
822
- const a = o, t = v(() => ({
1014
+ setup(d) {
1015
+ const a = d, s = b(() => ({
823
1016
  [`mc-status-badge--${a.status}`]: a.status && a.status != "info"
824
1017
  }));
825
- return (e, i) => (l(), n("div", {
826
- class: $(["mc-status-badge", t.value])
1018
+ return (e, o) => (l(), n("div", {
1019
+ class: $(["mc-status-badge", s.value])
827
1020
  }, [
828
- V(ca, { status: e.status }, null, 8, ["status"]),
829
- d("span", ua, f(e.label), 1)
1021
+ g(Ma, { status: e.status }, null, 8, ["status"]),
1022
+ i("span", za, f(e.label), 1)
830
1023
  ], 2));
831
1024
  }
832
- }), ds = /* @__PURE__ */ _(pa, [["__scopeId", "data-v-3e437a03"]]), ma = {
1025
+ }), Dt = /* @__PURE__ */ v(La, [["__scopeId", "data-v-3e437a03"]]), Sa = {
833
1026
  name: "Cross20",
834
1027
  props: {
835
1028
  /**
@@ -840,21 +1033,21 @@ const Ae = /* @__PURE__ */ _(De, [["render", Re]]), He = ["id", "name", "disable
840
1033
  default: "currentColor"
841
1034
  }
842
1035
  }
843
- }, _a = {
1036
+ }, Oa = {
844
1037
  xmlns: "http://www.w3.org/2000/svg",
845
1038
  viewBox: "0 0 20 20"
846
1039
  };
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", {
1040
+ function Ta(d, a, s, e, o, t) {
1041
+ return l(), n("svg", Oa, a[0] || (a[0] = [
1042
+ i("g", { "clip-path": "url(#a)" }, [
1043
+ i("path", {
851
1044
  "fill-rule": "evenodd",
852
1045
  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
1046
  })
854
1047
  ], -1),
855
- d("defs", null, [
856
- d("clipPath", { id: "a" }, [
857
- d("rect", {
1048
+ i("defs", null, [
1049
+ i("clipPath", { id: "a" }, [
1050
+ i("rect", {
858
1051
  width: "20",
859
1052
  height: "20",
860
1053
  fill: "#fff"
@@ -863,7 +1056,7 @@ function va(o, a, t, e, i, s) {
863
1056
  ], -1)
864
1057
  ]));
865
1058
  }
866
- const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
1059
+ const ja = /* @__PURE__ */ v(Sa, [["render", Ta]]), qa = {
867
1060
  name: "InfoCircle32",
868
1061
  props: {
869
1062
  /**
@@ -874,19 +1067,19 @@ const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
874
1067
  default: "currentColor"
875
1068
  }
876
1069
  }
877
- }, ha = {
1070
+ }, Pa = {
878
1071
  xmlns: "http://www.w3.org/2000/svg",
879
1072
  viewBox: "0 0 32 32"
880
1073
  };
881
- function $a(o, a, t, e, i, s) {
882
- return l(), n("svg", ha, a[0] || (a[0] = [
883
- d("path", {
1074
+ function Za(d, a, s, e, o, t) {
1075
+ return l(), n("svg", Pa, a[0] || (a[0] = [
1076
+ i("path", {
884
1077
  "fill-rule": "evenodd",
885
1078
  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"
886
1079
  }, null, -1)
887
1080
  ]));
888
1081
  }
889
- const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
1082
+ const Na = /* @__PURE__ */ v(qa, [["render", Za]]), Da = {
890
1083
  name: "WarningCircle32",
891
1084
  props: {
892
1085
  /**
@@ -897,19 +1090,19 @@ const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
897
1090
  default: "currentColor"
898
1091
  }
899
1092
  }
900
- }, Va = {
1093
+ }, Ua = {
901
1094
  xmlns: "http://www.w3.org/2000/svg",
902
1095
  viewBox: "0 0 32 32"
903
1096
  };
904
- function ka(o, a, t, e, i, s) {
905
- return l(), n("svg", Va, a[0] || (a[0] = [
906
- d("path", {
1097
+ function Fa(d, a, s, e, o, t) {
1098
+ return l(), n("svg", Ua, a[0] || (a[0] = [
1099
+ i("path", {
907
1100
  "fill-rule": "evenodd",
908
1101
  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"
909
1102
  }, null, -1)
910
1103
  ]));
911
1104
  }
912
- const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
1105
+ const Ga = /* @__PURE__ */ v(Da, [["render", Fa]]), Ra = {
913
1106
  name: "CrossCircle32",
914
1107
  props: {
915
1108
  /**
@@ -920,19 +1113,19 @@ const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
920
1113
  default: "currentColor"
921
1114
  }
922
1115
  }
923
- }, Ba = {
1116
+ }, Aa = {
924
1117
  xmlns: "http://www.w3.org/2000/svg",
925
1118
  viewBox: "0 0 32 32"
926
1119
  };
927
- function Ca(o, a, t, e, i, s) {
928
- return l(), n("svg", Ba, a[0] || (a[0] = [
929
- d("path", {
1120
+ function Ha(d, a, s, e, o, t) {
1121
+ return l(), n("svg", Aa, a[0] || (a[0] = [
1122
+ i("path", {
930
1123
  "fill-rule": "evenodd",
931
1124
  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"
932
1125
  }, null, -1)
933
1126
  ]));
934
1127
  }
935
- const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
1128
+ const Ea = /* @__PURE__ */ v(Ra, [["render", Ha]]), Qa = {
936
1129
  name: "CheckCircle32",
937
1130
  props: {
938
1131
  /**
@@ -943,22 +1136,22 @@ const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
943
1136
  default: "currentColor"
944
1137
  }
945
1138
  }
946
- }, La = {
1139
+ }, Wa = {
947
1140
  xmlns: "http://www.w3.org/2000/svg",
948
1141
  viewBox: "0 0 32 32"
949
1142
  };
950
- function Sa(o, a, t, e, i, s) {
951
- return l(), n("svg", La, a[0] || (a[0] = [
952
- d("path", {
1143
+ function Ja(d, a, s, e, o, t) {
1144
+ return l(), n("svg", Wa, a[0] || (a[0] = [
1145
+ i("path", {
953
1146
  "fill-rule": "evenodd",
954
1147
  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"
955
1148
  }, null, -1)
956
1149
  ]));
957
1150
  }
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 = {
1151
+ const Ka = /* @__PURE__ */ v(Qa, [["render", Ja]]), Xa = { class: "mc-status-notification__content" }, Ya = { class: "mc-status-notification__title" }, xa = { class: "mc-status-notification__message" }, et = {
959
1152
  key: 0,
960
1153
  class: "mc-status-notification__footer"
961
- }, Pa = /* @__PURE__ */ y({
1154
+ }, at = /* @__PURE__ */ y({
962
1155
  __name: "MStatusNotification",
963
1156
  props: {
964
1157
  title: {},
@@ -967,51 +1160,183 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
967
1160
  closable: { type: Boolean }
968
1161
  },
969
1162
  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) {
1163
+ setup(d, { emit: a }) {
1164
+ const s = d, e = b(() => ({
1165
+ [`mc-status-notification--${s.status}`]: s.status && s.status != "info"
1166
+ })), o = b(() => {
1167
+ switch (s.status) {
975
1168
  case "success":
976
- return Oa;
1169
+ return Ka;
977
1170
  case "warning":
978
- return Ia;
1171
+ return Ga;
979
1172
  case "error":
980
- return Ma;
1173
+ return Ea;
981
1174
  case "info":
982
1175
  default:
983
- return ya;
1176
+ return Na;
984
1177
  }
985
- }), s = a;
986
- return (u, r) => (l(), n("section", {
1178
+ }), t = a;
1179
+ return (c, u) => (l(), n("section", {
987
1180
  class: $(["mc-status-notification", e.value]),
988
1181
  role: "status"
989
1182
  }, [
990
- (l(), w(j(i.value), {
1183
+ (l(), C(j(o.value), {
991
1184
  class: "mc-status-notification__icon",
992
1185
  "aria-hidden": "true"
993
1186
  })),
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)
1187
+ i("div", Xa, [
1188
+ i("h2", Ya, f(c.title), 1),
1189
+ i("p", xa, f(c.description), 1),
1190
+ c.$slots.footer ? (l(), n("div", et, [
1191
+ V(c.$slots, "footer", {}, void 0, !0)
999
1192
  ])) : h("", !0)
1000
1193
  ]),
1001
- u.closable ? (l(), n("button", {
1194
+ c.closable ? (l(), n("button", {
1002
1195
  key: 0,
1003
1196
  class: "mc-status-notification-closable__close",
1004
- onClick: r[0] || (r[0] = (p) => s("close"))
1197
+ onClick: u[0] || (u[0] = (p) => t("close"))
1005
1198
  }, [
1006
- V(ba, {
1199
+ g(ja, {
1007
1200
  class: "mc-status-notification-closable__icon",
1008
1201
  "aria-hidden": "true"
1009
1202
  }),
1010
- r[1] || (r[1] = d("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1203
+ u[1] || (u[1] = i("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1011
1204
  ])) : h("", !0)
1012
1205
  ], 2));
1013
1206
  }
1014
- }), rs = /* @__PURE__ */ _(Pa, [["__scopeId", "data-v-d6e3be16"]]), Na = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], Ga = /* @__PURE__ */ y({
1207
+ }), Ut = /* @__PURE__ */ v(at, [["__scopeId", "data-v-d6e3be16"]]), tt = ["aria-label"], st = ["aria-selected", "onClick"], lt = {
1208
+ key: 0,
1209
+ class: "mc-tabs__icon"
1210
+ }, nt = { class: "mc-tabs__label" }, ot = /* @__PURE__ */ y({
1211
+ __name: "MTabs",
1212
+ props: {
1213
+ description: {},
1214
+ divider: { type: Boolean, default: !0 },
1215
+ centered: { type: Boolean },
1216
+ modelValue: { default: 0 },
1217
+ tabs: {}
1218
+ },
1219
+ emits: ["update:modelValue"],
1220
+ setup(d, { emit: a }) {
1221
+ const s = d, e = b(() => ({
1222
+ "mc-tabs--centered": s.centered
1223
+ })), o = B(s.modelValue), t = (p) => {
1224
+ s.tabs[p].disabled || p !== o.value && (o.value = p, u("update:modelValue", p));
1225
+ }, c = (p) => o.value === p, u = a;
1226
+ return (p, m) => (l(), n("nav", {
1227
+ class: $(["mc-tabs", e.value])
1228
+ }, [
1229
+ i("ul", {
1230
+ role: "tablist",
1231
+ class: "mc-tabs__list",
1232
+ "aria-label": p.description
1233
+ }, [
1234
+ (l(!0), n(z, null, L(p.tabs, (r, _) => (l(), n("li", {
1235
+ key: `tab-${_}`,
1236
+ role: "presentation",
1237
+ class: "mc-tabs__item"
1238
+ }, [
1239
+ i("button", {
1240
+ ref_for: !0,
1241
+ ref: "tab",
1242
+ role: "tab",
1243
+ class: $(["mc-tabs__tab", {
1244
+ "mc-tabs__tab--selected": c(_),
1245
+ "mc-tabs__tab--disabled": r.disabled
1246
+ }]),
1247
+ "aria-selected": c(_),
1248
+ type: "button",
1249
+ onClick: (I) => t(_)
1250
+ }, [
1251
+ r.icon ? (l(), n("span", lt, [
1252
+ (l(), C(j(r.icon)))
1253
+ ])) : h("", !0),
1254
+ i("div", nt, [
1255
+ i("span", null, f(r.label), 1)
1256
+ ])
1257
+ ], 10, st)
1258
+ ]))), 128))
1259
+ ], 8, tt),
1260
+ p.divider ? (l(), C(be, { key: 0 })) : h("", !0)
1261
+ ], 2));
1262
+ }
1263
+ }), Ft = /* @__PURE__ */ v(ot, [["__scopeId", "data-v-fcad128f"]]), it = ["for"], dt = ["id", "name", "checked", "disabled"], rt = { class: "mc-tag__label" }, ct = ["disabled"], ut = { class: "mc-tag__label" }, pt = ["disabled"], mt = { class: "mc-tag__label" }, _t = { class: "mc-tag__label" }, vt = { class: "mc-tag__label" }, bt = /* @__PURE__ */ y({
1264
+ __name: "MTag",
1265
+ props: {
1266
+ type: { default: "informative" },
1267
+ size: {},
1268
+ id: {},
1269
+ name: {},
1270
+ label: {},
1271
+ modelValue: { type: Boolean },
1272
+ disabled: { type: Boolean },
1273
+ contextualisedNumber: { default: 99 },
1274
+ removableLabel: {}
1275
+ },
1276
+ emits: ["update:modelValue", "remove-tag"],
1277
+ setup(d, { emit: a }) {
1278
+ const s = d, e = b(() => ({
1279
+ [`mc-tag-${s.type}`]: s.type && s.type != "informative",
1280
+ [`mc-tag--${s.size}`]: s.size && s.size != "m"
1281
+ })), o = a;
1282
+ return (t, c) => t.type === "selectable" ? (l(), n("label", {
1283
+ key: 0,
1284
+ for: t.id,
1285
+ class: $(["mc-tag", e.value])
1286
+ }, [
1287
+ i("input", k({
1288
+ type: "checkbox",
1289
+ class: "mc-tag__input",
1290
+ id: t.id,
1291
+ name: t.name,
1292
+ checked: t.modelValue,
1293
+ disabled: t.disabled,
1294
+ onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
1295
+ }, t.$attrs), null, 16, dt),
1296
+ i("span", rt, f(t.label), 1)
1297
+ ], 10, it)) : t.type === "interactive" ? (l(), n("button", k({
1298
+ key: 1,
1299
+ class: ["mc-tag", e.value],
1300
+ type: "button",
1301
+ disabled: t.disabled
1302
+ }, t.$attrs), [
1303
+ i("span", ut, f(t.label), 1)
1304
+ ], 16, ct)) : t.type === "contextualised" ? (l(), n("button", k({
1305
+ key: 2,
1306
+ class: ["mc-tag", e.value],
1307
+ type: "button",
1308
+ disabled: t.disabled
1309
+ }, t.$attrs), [
1310
+ g(je, {
1311
+ appearance: "inverse",
1312
+ label: t.contextualisedNumber,
1313
+ size: t.size === "l" ? "m" : void 0
1314
+ }, null, 8, ["label", "size"]),
1315
+ i("span", mt, f(t.label), 1)
1316
+ ], 16, pt)) : t.type === "removable" ? (l(), n("span", k({
1317
+ key: 3,
1318
+ class: ["mc-tag", e.value]
1319
+ }, t.$attrs), [
1320
+ i("span", _t, f(t.label), 1),
1321
+ i("button", {
1322
+ class: "mc-tag-removable__remove",
1323
+ type: "button",
1324
+ onClick: c[1] || (c[1] = (u) => t.id && o("remove-tag", t.id))
1325
+ }, [
1326
+ g(q, {
1327
+ class: "mc-tag-removable__icon",
1328
+ "aria-hidden": "true"
1329
+ }),
1330
+ c[2] || (c[2] = i("span", { class: "mc-tag-removable__text" }, "removableLabel", -1))
1331
+ ])
1332
+ ], 16)) : (l(), n("span", k({
1333
+ key: 4,
1334
+ class: ["mc-tag", e.value]
1335
+ }, t.$attrs), [
1336
+ i("span", vt, f(t.label), 1)
1337
+ ], 16));
1338
+ }
1339
+ }), Gt = /* @__PURE__ */ v(bt, [["__scopeId", "data-v-6a66ee2d"]]), ft = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ht = /* @__PURE__ */ y({
1015
1340
  __name: "MTextArea",
1016
1341
  props: {
1017
1342
  id: {},
@@ -1026,33 +1351,33 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1026
1351
  readonly: { type: Boolean }
1027
1352
  },
1028
1353
  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({
1034
- id: s.id,
1354
+ setup(d, { emit: a }) {
1355
+ const s = d, e = b(() => ({
1356
+ "is-invalid": s.isInvalid
1357
+ })), o = a;
1358
+ return (t, c) => (l(), n("textarea", k({
1359
+ id: t.id,
1035
1360
  class: ["mc-textarea", e.value],
1036
- "aria-invalid": s.isInvalid,
1037
- value: s.modelValue,
1038
- name: s.name,
1039
- placeholder: s.placeholder,
1040
- disabled: s.disabled,
1041
- minlength: s.minLength,
1042
- maxlength: s.maxLength,
1043
- rows: s.rows,
1044
- readonly: s.readonly
1045
- }, s.$attrs, {
1046
- onInput: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
1047
- }), null, 16, Na));
1361
+ "aria-invalid": t.isInvalid,
1362
+ value: t.modelValue,
1363
+ name: t.name,
1364
+ placeholder: t.placeholder,
1365
+ disabled: t.disabled,
1366
+ minlength: t.minLength,
1367
+ maxlength: t.maxLength,
1368
+ rows: t.rows,
1369
+ readonly: t.readonly
1370
+ }, t.$attrs, {
1371
+ onInput: c[0] || (c[0] = (u) => o("update:modelValue", u.target.value))
1372
+ }), null, 16, ft));
1048
1373
  }
1049
- }), cs = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-8184b69c"]]), Ua = {
1374
+ }), Rt = /* @__PURE__ */ v(ht, [["__scopeId", "data-v-8184b69c"]]), $t = {
1050
1375
  key: 0,
1051
1376
  class: "mc-text-input__icon"
1052
- }, Da = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Fa = {
1377
+ }, yt = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], gt = {
1053
1378
  key: 1,
1054
1379
  class: "mc-controls-options"
1055
- }, Ra = /* @__PURE__ */ y({
1380
+ }, kt = /* @__PURE__ */ y({
1056
1381
  __name: "MTextInput",
1057
1382
  props: {
1058
1383
  id: {},
@@ -1068,48 +1393,48 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1068
1393
  clearLabel: { default: "clear content" }
1069
1394
  },
1070
1395
  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", {
1396
+ setup(d, { emit: a }) {
1397
+ const s = d, e = b(() => ({
1398
+ [`mc-text-input--${s.size}`]: s.size && s.size != "m",
1399
+ "is-invalid": s.isInvalid
1400
+ })), o = B(s.modelValue), t = () => {
1401
+ o.value = "", c("update:modelValue", "");
1402
+ }, c = a;
1403
+ return (u, p) => (l(), n("div", {
1079
1404
  class: $(["mc-text-input", e.value])
1080
1405
  }, [
1081
- r.$slots.icon ? (l(), n("span", Ua, [
1082
- g(r.$slots, "icon", {}, void 0, !0)
1406
+ u.$slots.icon ? (l(), n("span", $t, [
1407
+ V(u.$slots, "icon", {}, void 0, !0)
1083
1408
  ])) : h("", !0),
1084
- d("input", k({
1085
- id: r.id,
1409
+ i("input", k({
1410
+ id: u.id,
1086
1411
  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", {
1412
+ value: o.value,
1413
+ type: u.inputType,
1414
+ name: u.name,
1415
+ placeholder: u.placeholder,
1416
+ disabled: u.disabled,
1417
+ "aria-invalid": u.isInvalid,
1418
+ readonly: u.readonly
1419
+ }, u.$attrs, {
1420
+ onInput: p[0] || (p[0] = (m) => c("update:modelValue", m.target.value))
1421
+ }), null, 16, yt),
1422
+ u.isClearable && o.value ? (l(), n("div", gt, [
1423
+ i("button", {
1099
1424
  type: "button",
1100
1425
  class: "mc-controls-options__button",
1101
- onClick: s
1426
+ onClick: t
1102
1427
  }, [
1103
- V(q, {
1428
+ g(q, {
1104
1429
  class: "mc-controls-options__icon",
1105
1430
  "aria-hidden": "true"
1106
1431
  }),
1107
- p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1432
+ p[1] || (p[1] = i("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1108
1433
  ])
1109
1434
  ])) : h("", !0)
1110
1435
  ], 2));
1111
1436
  }
1112
- }), us = /* @__PURE__ */ _(Ra, [["__scopeId", "data-v-38f67338"]]), Aa = ["for"], Ha = ["id", "name", "checked", "disabled"], Ea = ["for"], Qa = /* @__PURE__ */ y({
1437
+ }), At = /* @__PURE__ */ v(kt, [["__scopeId", "data-v-38f67338"]]), Vt = ["for"], Ct = ["id", "name", "checked", "disabled"], wt = ["for"], It = /* @__PURE__ */ y({
1113
1438
  __name: "MToggle",
1114
1439
  props: {
1115
1440
  id: {},
@@ -1120,36 +1445,36 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1120
1445
  disabled: { type: Boolean }
1121
1446
  },
1122
1447
  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", {
1448
+ setup(d, { emit: a }) {
1449
+ const s = d, e = b(() => ({
1450
+ [`mc-toggle--${s.size}`]: s.size && s.size != "s"
1451
+ })), o = a;
1452
+ return (t, c) => (l(), n("div", {
1128
1453
  class: $(["mc-toggle", e.value])
1129
1454
  }, [
1130
- d("label", {
1455
+ i("label", {
1131
1456
  class: "mc-toggle__container",
1132
- for: s.id
1457
+ for: t.id
1133
1458
  }, [
1134
- d("input", k({
1135
- id: s.id,
1459
+ i("input", k({
1460
+ id: t.id,
1136
1461
  type: "checkbox",
1137
1462
  class: "mc-toggle__input",
1138
- name: s.name,
1139
- checked: s.modelValue,
1140
- disabled: s.disabled
1141
- }, s.$attrs, {
1142
- onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
1143
- }), null, 16, Ha),
1144
- s.label ? (l(), n("span", {
1463
+ name: t.name,
1464
+ checked: t.modelValue,
1465
+ disabled: t.disabled
1466
+ }, t.$attrs, {
1467
+ onChange: c[0] || (c[0] = (u) => o("update:modelValue", u.target.checked))
1468
+ }), null, 16, Ct),
1469
+ t.label ? (l(), n("span", {
1145
1470
  key: 0,
1146
- for: s.id,
1471
+ for: t.id,
1147
1472
  class: "mc-toggle__label"
1148
- }, f(s.label), 9, Ea)) : h("", !0)
1149
- ], 8, Aa)
1473
+ }, f(t.label), 9, wt)) : h("", !0)
1474
+ ], 8, Vt)
1150
1475
  ], 2));
1151
1476
  }
1152
- }), Wa = /* @__PURE__ */ _(Qa, [["__scopeId", "data-v-5be734e7"]]), Ja = /* @__PURE__ */ y({
1477
+ }), Bt = /* @__PURE__ */ v(It, [["__scopeId", "data-v-5be734e7"]]), Mt = /* @__PURE__ */ y({
1153
1478
  __name: "MToggleGroup",
1154
1479
  props: {
1155
1480
  name: {},
@@ -1158,62 +1483,66 @@ const Oa = /* @__PURE__ */ _(za, [["render", Sa]]), ja = { class: "mc-status-not
1158
1483
  inline: { type: Boolean }
1159
1484
  },
1160
1485
  emits: ["update:modelValue"],
1161
- setup(o, { emit: a }) {
1162
- const t = o, e = I([]);
1486
+ setup(d, { emit: a }) {
1487
+ const s = d, e = B([]);
1163
1488
  O(
1164
- () => t.modelValue,
1489
+ () => s.modelValue,
1165
1490
  (p) => {
1166
1491
  e.value = p || [];
1167
1492
  },
1168
1493
  { immediate: !0 }
1169
1494
  );
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)
1495
+ const o = (p, m) => {
1496
+ let r = [...e.value];
1497
+ p && !r.includes(m) ? r.push(m) : r = r.filter((_) => _ !== m), u("update:modelValue", r), e.value = r;
1498
+ }, t = b(() => ({
1499
+ "mc-field__container--inline": s.inline
1500
+ })), c = b(() => ({
1501
+ "mc-field__container--inline__item": s.inline
1502
+ })), u = a;
1503
+ return (p, m) => (l(), n("div", {
1504
+ class: $(t.value)
1180
1505
  }, [
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,
1506
+ (l(!0), n(z, null, L(p.options, (r) => (l(), C(Bt, {
1507
+ id: r.id,
1508
+ key: r.id,
1509
+ label: r.label,
1510
+ "is-invalid": r.isInvalid,
1186
1511
  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)
1512
+ class: $(c.value),
1513
+ "model-value": p.modelValue ? p.modelValue.includes(r.value) : void 0,
1514
+ disabled: r.disabled,
1515
+ "onUpdate:modelValue": (_) => o(_, r.value)
1191
1516
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1192
1517
  ], 2));
1193
1518
  }
1194
- }), ps = /* @__PURE__ */ _(Ja, [["__scopeId", "data-v-c6b10172"]]);
1519
+ }), Ht = /* @__PURE__ */ v(Mt, [["__scopeId", "data-v-c6b10172"]]);
1195
1520
  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
1521
+ Lt as MBreadcrumb,
1522
+ T as MButton,
1523
+ pe as MCheckbox,
1524
+ St as MCheckboxGroup,
1525
+ be as MDivider,
1526
+ Ot as MField,
1527
+ Tt as MFieldGroup,
1528
+ P as MIconButton,
1529
+ Q as MLink,
1530
+ ae as MLoader,
1531
+ je as MNumberBadge,
1532
+ jt as MOverlay,
1533
+ qt as MPagination,
1534
+ Pt as MPasswordInput,
1535
+ Zt as MQuantitySelector,
1536
+ wa as MRadio,
1537
+ Nt as MRadioGroup,
1538
+ Fe as MSelect,
1539
+ Dt as MStatusBadge,
1540
+ Ut as MStatusNotification,
1541
+ Ft as MTabs,
1542
+ Gt as MTag,
1543
+ Rt as MTextArea,
1544
+ At as MTextInput,
1545
+ Bt as MToggle,
1546
+ Ht as MToggleGroup
1218
1547
  };
1219
1548
  //# sourceMappingURL=mozaic-vue.js.map