@mozaic-ds/vue 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, computed as b, createBlock as B, openBlock as l, resolveDynamicComponent as A, 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 P, toDisplayString as f, normalizeStyle as J, mergeProps as I, ref as z, watch as q, withKeys as R, withDirectives as H, vModelDynamic as X, nextTick as Y, vModelText as Z } from "vue";
1
+ import { defineComponent as $, computed as v, createBlock as B, openBlock as l, resolveDynamicComponent as A, 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 P, toDisplayString as f, normalizeStyle as J, mergeProps as I, ref as z, watch as q, withKeys as R, withDirectives as H, vModelDynamic as X, nextTick as Y, vModelText as Z } from "vue";
2
2
  const x = {
3
3
  key: 0,
4
4
  class: "mc-link__icon",
@@ -19,7 +19,7 @@ const x = {
19
19
  router: { type: Boolean }
20
20
  },
21
21
  setup(d) {
22
- const e = d, a = b(() => ({
22
+ const e = d, a = v(() => ({
23
23
  [`mc-link--${e.appearance}`]: e.appearance && e.appearance != "standard",
24
24
  [`mc-link--${e.size}`]: e.size && e.size != "s",
25
25
  "mc-link--inline": e.inline,
@@ -57,7 +57,7 @@ const x = {
57
57
  links: {}
58
58
  },
59
59
  setup(d) {
60
- const e = d, a = b(() => ({
60
+ const e = d, a = v(() => ({
61
61
  [`mc-breadcrumb--${e.appearance}`]: e.appearance && e.appearance != "standard"
62
62
  })), t = (o) => {
63
63
  var s;
@@ -91,7 +91,7 @@ const x = {
91
91
  ])
92
92
  ], 2));
93
93
  }
94
- }), ys = /* @__PURE__ */ _(oe, [["__scopeId", "data-v-41249412"]]), ne = { class: "mc-loader__spinner" }, ie = ["viewBox"], de = ["r"], re = {
94
+ }), Vs = /* @__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"
@@ -103,11 +103,11 @@ const x = {
103
103
  text: {}
104
104
  },
105
105
  setup(d) {
106
- const e = d, a = b(() => ({
106
+ const e = d, a = v(() => ({
107
107
  [`mc-loader--${e.size}`]: e.size && e.size !== "m",
108
108
  [`mc-loader--${e.appearance}`]: e.appearance && e.appearance !== "standard",
109
109
  "mc-loader--text-visible": e.text
110
- })), t = b(() => {
110
+ })), t = v(() => {
111
111
  let s;
112
112
  switch (e.size) {
113
113
  case "s":
@@ -120,7 +120,7 @@ const x = {
120
120
  s = "0 0 32 32";
121
121
  }
122
122
  return s;
123
- }), o = b(() => {
123
+ }), o = v(() => {
124
124
  let s;
125
125
  switch (e.size) {
126
126
  case "s":
@@ -181,7 +181,7 @@ const x = {
181
181
  isLoading: { type: Boolean }
182
182
  },
183
183
  setup(d) {
184
- const e = d, a = b(() => ({
184
+ const e = d, a = v(() => ({
185
185
  [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
186
186
  [`mc-button--${e.size}`]: e.size && e.size != "m",
187
187
  "mc-button--ghost": e.ghost,
@@ -231,7 +231,7 @@ const x = {
231
231
  },
232
232
  emits: ["update:modelValue"],
233
233
  setup(d, { emit: e }) {
234
- const a = d, t = b(() => ({
234
+ const a = d, t = v(() => ({
235
235
  "is-invalid": a.isInvalid
236
236
  })), o = e;
237
237
  return (s, i) => (l(), n("div", fe, [
@@ -274,10 +274,10 @@ const x = {
274
274
  );
275
275
  const o = (p, m) => {
276
276
  let u = [...t.value];
277
- p && !u.includes(m) ? u.push(m) : u = u.filter((v) => v !== m), c("update:modelValue", u), t.value = u;
278
- }, s = b(() => ({
277
+ p && !u.includes(m) ? u.push(m) : u = u.filter((b) => b !== m), c("update:modelValue", u), t.value = u;
278
+ }, s = v(() => ({
279
279
  "mc-field__container--inline": a.inline
280
- })), i = b(() => ({
280
+ })), i = v(() => ({
281
281
  "mc-field__container--inline__item": a.inline
282
282
  })), c = e;
283
283
  return (p, m) => (l(), n("div", {
@@ -292,11 +292,11 @@ const x = {
292
292
  class: g(["mc-field__item", i.value]),
293
293
  "model-value": p.modelValue ? p.modelValue.includes(u.value) : void 0,
294
294
  disabled: u.disabled,
295
- "onUpdate:modelValue": (v) => o(v, u.value)
295
+ "onUpdate:modelValue": (b) => o(b, u.value)
296
296
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
297
297
  ], 2));
298
298
  }
299
- }), gs = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-8ee4699f"]]), we = {
299
+ }), Is = /* @__PURE__ */ _(ke, [["__scopeId", "data-v-8ee4699f"]]), we = {
300
300
  name: "CrossCircleFilled24",
301
301
  props: {
302
302
  /**
@@ -341,7 +341,7 @@ const F = /* @__PURE__ */ _(we, [["render", Ie]]), Be = ["id", "value", "name",
341
341
  },
342
342
  emits: ["update:modelValue"],
343
343
  setup(d, { emit: e }) {
344
- const a = d, t = b(() => ({
344
+ const a = d, t = v(() => ({
345
345
  [`mc-text-input--${a.size} mc-datepicker--${a.size}`]: a.size && a.size != "m",
346
346
  "is-invalid": a.isInvalid
347
347
  })), o = z(a.modelValue), s = () => {
@@ -377,7 +377,7 @@ const F = /* @__PURE__ */ _(we, [["render", Ie]]), Be = ["id", "value", "name",
377
377
  ])) : h("", !0)
378
378
  ], 2));
379
379
  }
380
- }), ks = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-0c5cddc2"]]), Le = { class: "mc-divider" }, Te = /* @__PURE__ */ $({
380
+ }), Bs = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-0c5cddc2"]]), Le = { class: "mc-divider" }, Te = /* @__PURE__ */ $({
381
381
  __name: "MDivider",
382
382
  props: {
383
383
  orientation: { default: "horizontal" },
@@ -385,7 +385,7 @@ const F = /* @__PURE__ */ _(we, [["render", Ie]]), Be = ["id", "value", "name",
385
385
  size: { default: "s" }
386
386
  },
387
387
  setup(d) {
388
- const e = d, a = b(() => ({
388
+ const e = d, a = v(() => ({
389
389
  [`mc-divider-${e.orientation}`]: e.orientation,
390
390
  [`mc-divider-horizontal--${e.style}`]: e.style && e.style != "primary",
391
391
  [`mc-divider-horizontal--${e.size}`]: e.size && e.size != "s"
@@ -462,7 +462,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
462
462
  type: { default: "button" }
463
463
  },
464
464
  setup(d) {
465
- const e = d, a = b(() => ({
465
+ const e = d, a = v(() => ({
466
466
  [`mc-button--${e.appearance}`]: e.appearance && e.appearance != "standard",
467
467
  [`mc-button--${e.size}`]: e.size && e.size != "m",
468
468
  "mc-button--ghost": e.ghost,
@@ -524,7 +524,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
524
524
  },
525
525
  emits: ["update:open", "back"],
526
526
  setup(d, { emit: e }) {
527
- const a = d, t = b(() => ({
527
+ const a = d, t = v(() => ({
528
528
  "is-open": a.open,
529
529
  "mc-drawer--extend": a.extended,
530
530
  [`mc-drawer--${a.position}`]: a.position && a.position != "right"
@@ -595,7 +595,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
595
595
  _: 3
596
596
  }, 8, ["is-visible"]));
597
597
  }
598
- }), ws = /* @__PURE__ */ _(xe, [["__scopeId", "data-v-673a796c"]]), ea = { class: "mc-field" }, aa = ["for"], ta = {
598
+ }), Cs = /* @__PURE__ */ _(xe, [["__scopeId", "data-v-673a796c"]]), ea = { class: "mc-field" }, aa = ["for"], ta = {
599
599
  key: 0,
600
600
  class: "mc-field__requirement"
601
601
  }, sa = ["id"], la = { class: "mc-field__content" }, oa = ["id"], na = /* @__PURE__ */ $({
@@ -612,7 +612,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
612
612
  message: {}
613
613
  },
614
614
  setup(d) {
615
- const e = d, a = b(() => ({
615
+ const e = d, a = v(() => ({
616
616
  "is-valid": e.isValid,
617
617
  "is-invalid": e.isInvalid
618
618
  }));
@@ -639,7 +639,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
639
639
  }, f(t.message), 11, oa)) : h("", !0)
640
640
  ]));
641
641
  }
642
- }), Vs = /* @__PURE__ */ _(na, [["__scopeId", "data-v-ead078c4"]]), ia = { class: "mc-field--group" }, da = ["for"], ra = {
642
+ }), Ms = /* @__PURE__ */ _(na, [["__scopeId", "data-v-ead078c4"]]), ia = { class: "mc-field--group" }, da = ["for"], ra = {
643
643
  key: 0,
644
644
  class: "mc-field__requirement"
645
645
  }, ca = {
@@ -657,7 +657,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
657
657
  message: {}
658
658
  },
659
659
  setup(d) {
660
- const e = d, a = b(() => ({
660
+ const e = d, a = v(() => ({
661
661
  "is-valid": e.isValid,
662
662
  "is-invalid": e.isInvalid
663
663
  }));
@@ -679,14 +679,14 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
679
679
  }, f(t.message), 3)) : h("", !0)
680
680
  ]));
681
681
  }
682
- }), Is = /* @__PURE__ */ _(pa, [["__scopeId", "data-v-fc0c08dc"]]), ma = { class: "mc-flag__label" }, _a = /* @__PURE__ */ $({
682
+ }), zs = /* @__PURE__ */ _(pa, [["__scopeId", "data-v-fc0c08dc"]]), ma = { class: "mc-flag__label" }, _a = /* @__PURE__ */ $({
683
683
  __name: "MFlag",
684
684
  props: {
685
685
  label: {},
686
686
  appearance: {}
687
687
  },
688
688
  setup(d) {
689
- const e = d, a = b(() => ({
689
+ const e = d, a = v(() => ({
690
690
  [`mc-flag--${e.appearance}`]: e.appearance && e.appearance != "standard"
691
691
  }));
692
692
  return (t, o) => (l(), n("div", {
@@ -695,7 +695,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
695
695
  r("span", ma, f(t.label), 1)
696
696
  ], 2));
697
697
  }
698
- }), Bs = /* @__PURE__ */ _(_a, [["__scopeId", "data-v-9245f79e"]]), va = ["aria-label"], ba = /* @__PURE__ */ $({
698
+ }), Ls = /* @__PURE__ */ _(_a, [["__scopeId", "data-v-9245f79e"]]), va = ["aria-label"], ba = /* @__PURE__ */ $({
699
699
  __name: "MLoadingOverlay",
700
700
  props: {
701
701
  isVisible: { type: Boolean },
@@ -718,7 +718,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
718
718
  ], 16, va)
719
719
  ], 2));
720
720
  }
721
- }), Cs = /* @__PURE__ */ _(ba, [["__scopeId", "data-v-eae6b1f2"]]), fa = ["aria-modal", "aria-hidden"], ha = {
721
+ }), Ts = /* @__PURE__ */ _(ba, [["__scopeId", "data-v-eae6b1f2"]]), fa = ["aria-modal", "aria-hidden"], ha = {
722
722
  class: "mc-modal__dialog",
723
723
  role: "document"
724
724
  }, $a = { class: "mc-modal__header" }, ya = {
@@ -740,7 +740,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
740
740
  },
741
741
  emits: ["update:open"],
742
742
  setup(d, { emit: e }) {
743
- const a = d, t = b(() => ({
743
+ const a = d, t = v(() => ({
744
744
  "is-open": a.open
745
745
  }));
746
746
  q(
@@ -802,7 +802,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
802
802
  _: 3
803
803
  }, 8, ["is-visible"]));
804
804
  }
805
- }), Ms = /* @__PURE__ */ _(Ia, [["__scopeId", "data-v-20ce36b2"]]), Ba = /* @__PURE__ */ $({
805
+ }), js = /* @__PURE__ */ _(Ia, [["__scopeId", "data-v-20ce36b2"]]), Ba = /* @__PURE__ */ $({
806
806
  __name: "MNumberBadge",
807
807
  props: {
808
808
  label: {},
@@ -810,7 +810,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
810
810
  size: { default: "s" }
811
811
  },
812
812
  setup(d) {
813
- const e = d, a = b(() => ({
813
+ const e = d, a = v(() => ({
814
814
  [`mc-number-badge--${e.appearance}`]: e.appearance && e.appearance != "standard",
815
815
  [`mc-number-badge--${e.size}`]: e.size && e.size != "s"
816
816
  }));
@@ -837,7 +837,7 @@ const E = /* @__PURE__ */ _(Pe, [["render", Ne]]), Ae = ["disabled", "type"], Re
837
837
  },
838
838
  emits: ["update:modelValue"],
839
839
  setup(d, { emit: e }) {
840
- const a = d, t = b(() => ({
840
+ const a = d, t = v(() => ({
841
841
  [`mc-select--${a.size}`]: a.size && a.size != "m",
842
842
  "mc-select--readonly": a.readonly,
843
843
  "is-invalid": a.isInvalid
@@ -940,22 +940,22 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
940
940
  q(o, (u) => {
941
941
  u !== a.modelValue && t("update:modelValue", u);
942
942
  });
943
- const s = b(
943
+ const s = v(
944
944
  () => a.options.findIndex((u) => u.value === o.value)
945
- ), i = b(() => s.value === 0), c = b(
945
+ ), i = v(() => s.value === 0), c = v(
946
946
  () => s.value === a.options.length - 1
947
947
  ), p = () => {
948
948
  const u = a.options.findIndex(
949
- (v) => v.value === o.value
949
+ (b) => b.value === o.value
950
950
  );
951
951
  u > 0 && (o.value = a.options[u - 1].value, t("update:modelValue", a.options[u - 1].value));
952
952
  }, m = () => {
953
953
  const u = a.options.findIndex(
954
- (v) => v.value === o.value
954
+ (b) => b.value === o.value
955
955
  );
956
956
  u < a.options.length - 1 && (o.value = a.options[u + 1].value, t("update:modelValue", a.options[u + 1].value));
957
957
  };
958
- return (u, v) => {
958
+ return (u, b) => {
959
959
  var L;
960
960
  return l(), n("nav", Na, [
961
961
  u.compact ? (l(), B(D, {
@@ -987,8 +987,8 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
987
987
  id: u.id,
988
988
  modelValue: o.value,
989
989
  "onUpdate:modelValue": [
990
- v[0] || (v[0] = (y) => o.value = y),
991
- v[1] || (v[1] = (y) => t("update:modelValue", Number(y)))
990
+ b[0] || (b[0] = (y) => o.value = y),
991
+ b[1] || (b[1] = (y) => t("update:modelValue", Number(y)))
992
992
  ],
993
993
  options: u.options,
994
994
  "aria-label": u.selectLabel
@@ -1021,7 +1021,7 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
1021
1021
  ]);
1022
1022
  };
1023
1023
  }
1024
- }), zs = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-3b9257ac"]]), Ua = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Ha = {
1024
+ }), Os = /* @__PURE__ */ _(Ga, [["__scopeId", "data-v-3b9257ac"]]), Ua = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Ha = {
1025
1025
  key: 0,
1026
1026
  class: "mc-controls-options"
1027
1027
  }, Ka = { class: "mc-controls-options__label" }, Ea = /* @__PURE__ */ $({
@@ -1040,32 +1040,32 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
1040
1040
  },
1041
1041
  emits: ["update:modelValue"],
1042
1042
  setup(d, { emit: e }) {
1043
- const a = d, t = b(() => ({
1043
+ const a = d, t = v(() => ({
1044
1044
  "is-invalid": a.isInvalid
1045
1045
  })), o = z(a.modelValue), s = z(!1), i = () => {
1046
1046
  o.value = "", u("update:modelValue", "");
1047
1047
  }, c = () => {
1048
1048
  s.value = !s.value;
1049
- }, p = b(() => s.value ? "text" : "password"), m = b(() => s.value ? "true" : "false"), u = e;
1050
- return (v, L) => (l(), n("div", {
1049
+ }, p = v(() => s.value ? "text" : "password"), m = v(() => s.value ? "true" : "false"), u = e;
1050
+ return (b, L) => (l(), n("div", {
1051
1051
  class: g(["mc-password-input mc-text-input", t.value])
1052
1052
  }, [
1053
1053
  H(r("input", I({
1054
1054
  class: "mc-password-input__control mc-text-input__control",
1055
1055
  "onUpdate:modelValue": L[0] || (L[0] = (y) => o.value = y),
1056
- id: v.id,
1056
+ id: b.id,
1057
1057
  type: p.value,
1058
- name: v.name,
1059
- placeholder: v.placeholder,
1060
- disabled: v.disabled,
1061
- "aria-invalid": v.isInvalid,
1062
- readonly: v.readonly
1063
- }, v.$attrs, {
1058
+ name: b.name,
1059
+ placeholder: b.placeholder,
1060
+ disabled: b.disabled,
1061
+ "aria-invalid": b.isInvalid,
1062
+ readonly: b.readonly
1063
+ }, b.$attrs, {
1064
1064
  onInput: L[1] || (L[1] = (y) => u("update:modelValue", y.target.value))
1065
1065
  }), null, 16, Ua), [
1066
1066
  [X, o.value]
1067
1067
  ]),
1068
- v.isClearable && o.value ? (l(), n("div", Ha, [
1068
+ b.isClearable && o.value ? (l(), n("div", Ha, [
1069
1069
  r("button", {
1070
1070
  class: "mc-controls-options__button",
1071
1071
  onClick: i
@@ -1074,26 +1074,26 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
1074
1074
  class: "mc-controls-options__icon",
1075
1075
  "aria-hidden": "true"
1076
1076
  }),
1077
- r("span", Ka, f(v.clearLabel), 1)
1077
+ r("span", Ka, f(b.clearLabel), 1)
1078
1078
  ])
1079
1079
  ])) : h("", !0),
1080
1080
  w(N, {
1081
1081
  ref: "button",
1082
1082
  role: "switch",
1083
1083
  "aria-checked": m.value,
1084
- disabled: v.disabled,
1084
+ disabled: b.disabled,
1085
1085
  onClick: c,
1086
1086
  size: "s",
1087
1087
  ghost: ""
1088
1088
  }, {
1089
1089
  default: C(() => [
1090
- P(f(s.value ? v.buttonLabel.hide : v.buttonLabel.show), 1)
1090
+ P(f(s.value ? b.buttonLabel.hide : b.buttonLabel.show), 1)
1091
1091
  ]),
1092
1092
  _: 1
1093
1093
  }, 8, ["aria-checked", "disabled"])
1094
1094
  ], 2));
1095
1095
  }
1096
- }), Ls = /* @__PURE__ */ _(Ea, [["__scopeId", "data-v-167f10e2"]]), Qa = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], Wa = /* @__PURE__ */ $({
1096
+ }), Ss = /* @__PURE__ */ _(Ea, [["__scopeId", "data-v-167f10e2"]]), Qa = ["id", "name", "disabled", "readonly", "value", "onInput", "onKeydown"], Wa = /* @__PURE__ */ $({
1097
1097
  __name: "MPincode",
1098
1098
  props: {
1099
1099
  id: {},
@@ -1106,7 +1106,7 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
1106
1106
  },
1107
1107
  emits: ["update:modelValue"],
1108
1108
  setup(d, { emit: e }) {
1109
- const a = d, t = b(() => ({
1109
+ const a = d, t = v(() => ({
1110
1110
  "is-invalid": a.isInvalid
1111
1111
  })), o = e, s = z(Array(a.length).fill("")), i = z([]), c = (y, k) => {
1112
1112
  i.value[k] = y;
@@ -1128,8 +1128,8 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
1128
1128
  const T = y.target.value.replace(/\D/g, "");
1129
1129
  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("")));
1130
1130
  }, u = (y, k) => {
1131
- y.key === "ArrowLeft" && k > 0 ? p(k - 1) : y.key === "ArrowRight" && k < a.length - 1 ? p(k + 1) : y.key === "Backspace" && v(y, k);
1132
- }, v = (y, k) => {
1131
+ y.key === "ArrowLeft" && k > 0 ? p(k - 1) : y.key === "ArrowRight" && k < a.length - 1 ? p(k + 1) : y.key === "Backspace" && b(y, k);
1132
+ }, b = (y, k) => {
1133
1133
  s.value[k] === "" && k > 0 && (s.value[k - 1] = "", o("update:modelValue", s.value.join("")), p(k - 1));
1134
1134
  }, L = (y) => {
1135
1135
  var M;
@@ -1159,13 +1159,13 @@ const U = /* @__PURE__ */ _(Da, [["render", Fa]]), Na = {
1159
1159
  }, { ref_for: !0 }, y.$attrs, {
1160
1160
  onInput: (j) => m(j, M),
1161
1161
  onKeydown: [
1162
- R((j) => v(j, M), ["backspace"]),
1162
+ R((j) => b(j, M), ["backspace"]),
1163
1163
  (j) => u(j, M)
1164
1164
  ]
1165
1165
  }), null, 16, Qa))), 128))
1166
1166
  ], 34));
1167
1167
  }
1168
- }), Ts = /* @__PURE__ */ _(Wa, [["__scopeId", "data-v-b2202545"]]), Ja = {
1168
+ }), qs = /* @__PURE__ */ _(Wa, [["__scopeId", "data-v-b2202545"]]), Ja = {
1169
1169
  name: "More24",
1170
1170
  props: {
1171
1171
  /**
@@ -1241,7 +1241,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1241
1241
  q(t, (m) => {
1242
1242
  m !== a.modelValue && p("update:modelValue", m);
1243
1243
  });
1244
- const o = b(() => ({
1244
+ const o = v(() => ({
1245
1245
  [`mc-quantity-selector--${a.size}`]: a.size && a.size != "m",
1246
1246
  "is-invalid": a.isInvalid
1247
1247
  })), s = () => {
@@ -1256,7 +1256,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1256
1256
  }, [
1257
1257
  H(r("input", I({
1258
1258
  id: m.id,
1259
- "onUpdate:modelValue": u[0] || (u[0] = (v) => t.value = v),
1259
+ "onUpdate:modelValue": u[0] || (u[0] = (b) => t.value = b),
1260
1260
  class: "mc-quantity-selector__control",
1261
1261
  type: "number",
1262
1262
  name: m.name,
@@ -1270,7 +1270,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1270
1270
  "aria-valuemax": m.max,
1271
1271
  "aria-valuenow": t.value
1272
1272
  }, m.$attrs, {
1273
- onChange: u[1] || (u[1] = (v) => c(Number(v.target.value)))
1273
+ onChange: u[1] || (u[1] = (b) => c(Number(b.target.value)))
1274
1274
  }), null, 16, st), [
1275
1275
  [Z, t.value]
1276
1276
  ]),
@@ -1304,7 +1304,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1304
1304
  ], 8, it))
1305
1305
  ], 2));
1306
1306
  }
1307
- }), js = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-a732650a"]]), ut = { class: "mc-radio" }, pt = ["id", "name", "checked", "disabled", "aria-invalid"], mt = ["for"], _t = /* @__PURE__ */ $({
1307
+ }), Ds = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-a732650a"]]), ut = { class: "mc-radio" }, pt = ["id", "name", "checked", "disabled", "aria-invalid"], mt = ["for"], _t = /* @__PURE__ */ $({
1308
1308
  __name: "MRadio",
1309
1309
  props: {
1310
1310
  id: {},
@@ -1316,7 +1316,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1316
1316
  },
1317
1317
  emits: ["update:modelValue"],
1318
1318
  setup(d, { emit: e }) {
1319
- const a = d, t = b(() => ({
1319
+ const a = d, t = v(() => ({
1320
1320
  "is-invalid": a.isInvalid
1321
1321
  })), o = e;
1322
1322
  return (s, i) => (l(), n("div", ut, [
@@ -1349,9 +1349,9 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1349
1349
  },
1350
1350
  emits: ["update:modelValue"],
1351
1351
  setup(d, { emit: e }) {
1352
- const a = d, t = b(() => ({
1352
+ const a = d, t = v(() => ({
1353
1353
  "mc-field__container--inline": a.inline
1354
- })), o = b(() => ({
1354
+ })), o = v(() => ({
1355
1355
  "mc-field__container--inline__item": a.inline
1356
1356
  })), s = e;
1357
1357
  return (i, c) => (l(), n("div", {
@@ -1370,14 +1370,14 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1370
1370
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1371
1371
  ], 2));
1372
1372
  }
1373
- }), Os = /* @__PURE__ */ _(bt, [["__scopeId", "data-v-d2f5e103"]]), ft = /* @__PURE__ */ $({
1373
+ }), Ps = /* @__PURE__ */ _(bt, [["__scopeId", "data-v-d2f5e103"]]), ft = /* @__PURE__ */ $({
1374
1374
  __name: "MStatusDot",
1375
1375
  props: {
1376
1376
  status: { default: "info" },
1377
1377
  size: {}
1378
1378
  },
1379
1379
  setup(d) {
1380
- const e = d, a = b(() => ({
1380
+ const e = d, a = v(() => ({
1381
1381
  [`mc-status-dot--${e.status}`]: e.status && e.status != "info",
1382
1382
  [`mc-status-dot--${e.size}`]: e.size && e.size != "m"
1383
1383
  }));
@@ -1392,7 +1392,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1392
1392
  status: { default: "info" }
1393
1393
  },
1394
1394
  setup(d) {
1395
- const e = d, a = b(() => ({
1395
+ const e = d, a = v(() => ({
1396
1396
  [`mc-status-badge--${e.status}`]: e.status && e.status != "info"
1397
1397
  }));
1398
1398
  return (t, o) => (l(), n("div", {
@@ -1402,7 +1402,7 @@ const tt = /* @__PURE__ */ _(xa, [["render", at]]), st = ["id", "name", "disable
1402
1402
  r("span", $t, f(t.label), 1)
1403
1403
  ], 2));
1404
1404
  }
1405
- }), Ss = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-3e437a03"]]), gt = {
1405
+ }), Fs = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-3e437a03"]]), gt = {
1406
1406
  name: "Cross20",
1407
1407
  props: {
1408
1408
  /**
@@ -1550,9 +1550,9 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1550
1550
  },
1551
1551
  emits: ["close"],
1552
1552
  setup(d, { emit: e }) {
1553
- const a = d, t = b(() => ({
1553
+ const a = d, t = v(() => ({
1554
1554
  [`mc-status-notification--${a.status}`]: a.status && a.status != "info"
1555
- })), o = b(() => {
1555
+ })), o = v(() => {
1556
1556
  switch (a.status) {
1557
1557
  case "success":
1558
1558
  return At;
@@ -1593,7 +1593,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1593
1593
  ])) : h("", !0)
1594
1594
  ], 2));
1595
1595
  }
1596
- }), qs = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-457733a1"]]), Et = ["aria-label"], Qt = ["aria-selected", "onClick"], Wt = {
1596
+ }), Ns = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-457733a1"]]), Et = ["aria-label"], Qt = ["aria-selected", "onClick"], Wt = {
1597
1597
  key: 0,
1598
1598
  class: "mc-tabs__icon"
1599
1599
  }, Jt = { class: "mc-tabs__label" }, Xt = /* @__PURE__ */ $({
@@ -1607,7 +1607,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1607
1607
  },
1608
1608
  emits: ["update:modelValue"],
1609
1609
  setup(d, { emit: e }) {
1610
- const a = d, t = b(() => ({
1610
+ const a = d, t = v(() => ({
1611
1611
  "mc-tabs--centered": a.centered
1612
1612
  })), o = z(a.modelValue), s = (p) => {
1613
1613
  a.tabs[p].disabled || p !== o.value && (o.value = p, c("update:modelValue", p));
@@ -1620,8 +1620,8 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1620
1620
  class: "mc-tabs__list",
1621
1621
  "aria-label": p.description
1622
1622
  }, [
1623
- (l(!0), n(O, null, S(p.tabs, (u, v) => (l(), n("li", {
1624
- key: `tab-${v}`,
1623
+ (l(!0), n(O, null, S(p.tabs, (u, b) => (l(), n("li", {
1624
+ key: `tab-${b}`,
1625
1625
  role: "presentation",
1626
1626
  class: "mc-tabs__item"
1627
1627
  }, [
@@ -1630,12 +1630,12 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1630
1630
  ref: "tab",
1631
1631
  role: "tab",
1632
1632
  class: g(["mc-tabs__tab", {
1633
- "mc-tabs__tab--selected": i(v),
1633
+ "mc-tabs__tab--selected": i(b),
1634
1634
  "mc-tabs__tab--disabled": u.disabled
1635
1635
  }]),
1636
- "aria-selected": i(v),
1636
+ "aria-selected": i(b),
1637
1637
  type: "button",
1638
- onClick: (L) => s(v)
1638
+ onClick: (L) => s(b)
1639
1639
  }, [
1640
1640
  u.icon ? (l(), n("span", Wt, [
1641
1641
  (l(), B(A(u.icon)))
@@ -1649,7 +1649,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1649
1649
  p.divider ? (l(), B(je, { key: 0 })) : h("", !0)
1650
1650
  ], 2));
1651
1651
  }
1652
- }), Ds = /* @__PURE__ */ _(Xt, [["__scopeId", "data-v-3919f834"]]), Yt = ["for"], Zt = ["id", "name", "checked", "disabled"], xt = { class: "mc-tag__label" }, es = ["disabled"], as = { class: "mc-tag__label" }, ts = ["disabled"], ss = { class: "mc-tag__label" }, ls = { class: "mc-tag__label" }, os = { class: "mc-tag__label" }, ns = /* @__PURE__ */ $({
1652
+ }), As = /* @__PURE__ */ _(Xt, [["__scopeId", "data-v-3919f834"]]), Yt = ["for"], Zt = ["id", "name", "checked", "disabled"], xt = { class: "mc-tag__label" }, es = ["disabled"], as = { class: "mc-tag__label" }, ts = ["disabled"], ss = { class: "mc-tag__label" }, ls = { class: "mc-tag__label" }, os = { class: "mc-tag__label" }, ns = /* @__PURE__ */ $({
1653
1653
  __name: "MTag",
1654
1654
  props: {
1655
1655
  type: { default: "informative" },
@@ -1664,7 +1664,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1664
1664
  },
1665
1665
  emits: ["update:modelValue", "remove-tag"],
1666
1666
  setup(d, { emit: e }) {
1667
- const a = d, t = b(() => ({
1667
+ const a = d, t = v(() => ({
1668
1668
  [`mc-tag-${a.type}`]: a.type && a.type != "informative",
1669
1669
  [`mc-tag--${a.size}`]: a.size && a.size != "m"
1670
1670
  })), o = e;
@@ -1725,7 +1725,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1725
1725
  r("span", os, f(s.label), 1)
1726
1726
  ], 16));
1727
1727
  }
1728
- }), Ps = /* @__PURE__ */ _(ns, [["__scopeId", "data-v-a3166010"]]), is = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ds = /* @__PURE__ */ $({
1728
+ }), Rs = /* @__PURE__ */ _(ns, [["__scopeId", "data-v-a3166010"]]), is = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], ds = /* @__PURE__ */ $({
1729
1729
  __name: "MTextArea",
1730
1730
  props: {
1731
1731
  id: {},
@@ -1741,7 +1741,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1741
1741
  },
1742
1742
  emits: ["update:modelValue"],
1743
1743
  setup(d, { emit: e }) {
1744
- const a = d, t = b(() => ({
1744
+ const a = d, t = v(() => ({
1745
1745
  "is-invalid": a.isInvalid
1746
1746
  })), o = e;
1747
1747
  return (s, i) => (l(), n("textarea", I({
@@ -1760,7 +1760,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1760
1760
  onInput: i[0] || (i[0] = (c) => o("update:modelValue", c.target.value))
1761
1761
  }), null, 16, is));
1762
1762
  }
1763
- }), Fs = /* @__PURE__ */ _(ds, [["__scopeId", "data-v-8184b69c"]]), rs = {
1763
+ }), Gs = /* @__PURE__ */ _(ds, [["__scopeId", "data-v-8184b69c"]]), rs = {
1764
1764
  key: 0,
1765
1765
  class: "mc-text-input__icon"
1766
1766
  }, cs = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], us = {
@@ -1783,7 +1783,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1783
1783
  },
1784
1784
  emits: ["update:modelValue"],
1785
1785
  setup(d, { emit: e }) {
1786
- const a = d, t = b(() => ({
1786
+ const a = d, t = v(() => ({
1787
1787
  [`mc-text-input--${a.size}`]: a.size && a.size != "m",
1788
1788
  "is-invalid": a.isInvalid
1789
1789
  })), o = z(a.modelValue), s = () => {
@@ -1823,7 +1823,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1823
1823
  ])) : h("", !0)
1824
1824
  ], 2));
1825
1825
  }
1826
- }), Ns = /* @__PURE__ */ _(ps, [["__scopeId", "data-v-38f67338"]]), ms = ["for"], _s = ["id", "name", "checked", "disabled"], vs = ["for"], bs = /* @__PURE__ */ $({
1826
+ }), Us = /* @__PURE__ */ _(ps, [["__scopeId", "data-v-38f67338"]]), ms = ["for"], _s = ["id", "name", "checked", "disabled"], vs = ["for"], bs = /* @__PURE__ */ $({
1827
1827
  __name: "MToggle",
1828
1828
  props: {
1829
1829
  id: {},
@@ -1835,7 +1835,7 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1835
1835
  },
1836
1836
  emits: ["update:modelValue"],
1837
1837
  setup(d, { emit: e }) {
1838
- const a = d, t = b(() => ({
1838
+ const a = d, t = v(() => ({
1839
1839
  [`mc-toggle--${a.size}`]: a.size && a.size != "s"
1840
1840
  })), o = e;
1841
1841
  return (s, i) => (l(), n("div", {
@@ -1863,7 +1863,34 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1863
1863
  ], 8, ms)
1864
1864
  ], 2));
1865
1865
  }
1866
- }), fs = /* @__PURE__ */ _(bs, [["__scopeId", "data-v-5be734e7"]]), hs = /* @__PURE__ */ $({
1866
+ }), fs = /* @__PURE__ */ _(bs, [["__scopeId", "data-v-5be734e7"]]), hs = { class: "tooltip-story-wrapper" }, $s = ["aria-describedby"], ys = ["id"], gs = /* @__PURE__ */ $({
1867
+ __name: "MTooltip",
1868
+ props: {
1869
+ id: {},
1870
+ text: {},
1871
+ position: { default: "top" },
1872
+ pointer: { type: Boolean, default: !0 }
1873
+ },
1874
+ setup(d) {
1875
+ const e = d, a = v(() => ({
1876
+ [`mc-tooltip--${e.position}`]: e.position,
1877
+ "mc-tooltip--no-pointer": !e.pointer
1878
+ }));
1879
+ return (t, o) => (l(), n("div", hs, [
1880
+ r("div", {
1881
+ class: g(["mc-tooltip", a.value]),
1882
+ "aria-describedby": t.id
1883
+ }, [
1884
+ V(t.$slots, "default", {}, void 0, !0),
1885
+ r("span", {
1886
+ id: t.id,
1887
+ class: "mc-tooltip__content",
1888
+ role: "tooltip"
1889
+ }, f(t.text), 9, ys)
1890
+ ], 10, $s)
1891
+ ]));
1892
+ }
1893
+ }), Hs = /* @__PURE__ */ _(gs, [["__scopeId", "data-v-fbbb2707"]]), ks = /* @__PURE__ */ $({
1867
1894
  __name: "MToggleGroup",
1868
1895
  props: {
1869
1896
  name: {},
@@ -1883,10 +1910,10 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1883
1910
  );
1884
1911
  const o = (p, m) => {
1885
1912
  let u = [...t.value];
1886
- p && !u.includes(m) ? u.push(m) : u = u.filter((v) => v !== m), c("update:modelValue", u), t.value = u;
1887
- }, s = b(() => ({
1913
+ p && !u.includes(m) ? u.push(m) : u = u.filter((b) => b !== m), c("update:modelValue", u), t.value = u;
1914
+ }, s = v(() => ({
1888
1915
  "mc-field__container--inline": a.inline
1889
- })), i = b(() => ({
1916
+ })), i = v(() => ({
1890
1917
  "mc-field__container--inline__item": a.inline
1891
1918
  })), c = e;
1892
1919
  return (p, m) => (l(), n("div", {
@@ -1901,43 +1928,44 @@ const At = /* @__PURE__ */ _(Pt, [["render", Nt]]), Rt = { class: "mc-status-not
1901
1928
  class: g(i.value),
1902
1929
  "model-value": p.modelValue ? p.modelValue.includes(u.value) : void 0,
1903
1930
  disabled: u.disabled,
1904
- "onUpdate:modelValue": (v) => o(v, u.value)
1931
+ "onUpdate:modelValue": (b) => o(b, u.value)
1905
1932
  }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1906
1933
  ], 2));
1907
1934
  }
1908
- }), As = /* @__PURE__ */ _(hs, [["__scopeId", "data-v-c6b10172"]]);
1935
+ }), Ks = /* @__PURE__ */ _(ks, [["__scopeId", "data-v-c6b10172"]]);
1909
1936
  export {
1910
- ys as MBreadcrumb,
1937
+ Vs as MBreadcrumb,
1911
1938
  N as MButton,
1912
1939
  ge as MCheckbox,
1913
- gs as MCheckboxGroup,
1914
- ks as MDatepicker,
1940
+ Is as MCheckboxGroup,
1941
+ Bs as MDatepicker,
1915
1942
  je as MDivider,
1916
- ws as MDrawer,
1917
- Vs as MField,
1918
- Is as MFieldGroup,
1919
- Bs as MFlag,
1943
+ Cs as MDrawer,
1944
+ Ms as MField,
1945
+ zs as MFieldGroup,
1946
+ Ls as MFlag,
1920
1947
  D as MIconButton,
1921
1948
  se as MLink,
1922
1949
  K as MLoader,
1923
- Cs as MLoadingOverlay,
1924
- Ms as MModal,
1950
+ Ts as MLoadingOverlay,
1951
+ js as MModal,
1925
1952
  Ca as MNumberBadge,
1926
1953
  Q as MOverlay,
1927
- zs as MPagination,
1928
- Ls as MPasswordInput,
1929
- Ts as MPincode,
1930
- js as MQuantitySelector,
1954
+ Os as MPagination,
1955
+ Ss as MPasswordInput,
1956
+ qs as MPincode,
1957
+ Ds as MQuantitySelector,
1931
1958
  vt as MRadio,
1932
- Os as MRadioGroup,
1959
+ Ps as MRadioGroup,
1933
1960
  ja as MSelect,
1934
- Ss as MStatusBadge,
1935
- qs as MStatusNotification,
1936
- Ds as MTabs,
1937
- Ps as MTag,
1938
- Fs as MTextArea,
1939
- Ns as MTextInput,
1961
+ Fs as MStatusBadge,
1962
+ Ns as MStatusNotification,
1963
+ As as MTabs,
1964
+ Rs as MTag,
1965
+ Gs as MTextArea,
1966
+ Us as MTextInput,
1940
1967
  fs as MToggle,
1941
- As as MToggleGroup
1968
+ Ks as MToggleGroup,
1969
+ Hs as MTooltip
1942
1970
  };
1943
1971
  //# sourceMappingURL=mozaic-vue.js.map