@mozaic-ds/vue 1.0.0-beta.3 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/LICENSE +51 -0
  2. package/README.md +224 -82
  3. package/dist/mozaic-vue.css +1 -1
  4. package/dist/mozaic-vue.d.ts +1202 -0
  5. package/dist/mozaic-vue.js +1220 -0
  6. package/dist/mozaic-vue.js.map +1 -0
  7. package/dist/mozaic-vue.umd.cjs +2 -0
  8. package/dist/mozaic-vue.umd.cjs.map +1 -0
  9. package/env.d.ts +1 -0
  10. package/package.json +81 -50
  11. package/src/components/Contributing.mdx +118 -0
  12. package/src/components/GettingStarted.mdx +50 -0
  13. package/src/components/Introduction.mdx +54 -0
  14. package/src/components/Support.mdx +18 -0
  15. package/src/components/badge/MBadge.spec.ts +16 -0
  16. package/src/components/badge/MBadge.stories.ts +50 -0
  17. package/src/components/badge/MBadge.vue +36 -34
  18. package/src/components/breadcrumb/MBreadcrumb.spec.ts +105 -0
  19. package/src/components/breadcrumb/MBreadcrumb.stories.ts +57 -0
  20. package/src/components/breadcrumb/MBreadcrumb.vue +52 -55
  21. package/src/components/button/MButton.spec.ts +191 -0
  22. package/src/components/button/MButton.stories.ts +66 -0
  23. package/src/components/button/MButton.vue +98 -154
  24. package/src/components/checkbox/MCheckbox.spec.ts +104 -0
  25. package/src/components/checkbox/MCheckbox.stories.ts +83 -0
  26. package/src/components/checkbox/MCheckbox.vue +60 -101
  27. package/src/components/checkboxgroup/MCheckboxGroup.spec.ts +78 -0
  28. package/src/components/checkboxgroup/MCheckboxGroup.stories.ts +61 -0
  29. package/src/components/checkboxgroup/MCheckboxGroup.vue +97 -0
  30. package/src/components/field/MField.spec.ts +166 -0
  31. package/src/components/field/MField.stories.ts +376 -0
  32. package/src/components/field/MField.vue +78 -61
  33. package/src/components/fieldgroup/MFieldGroup.spec.ts +165 -0
  34. package/src/components/fieldgroup/MFieldGroup.stories.ts +423 -0
  35. package/src/components/fieldgroup/MFieldGroup.vue +79 -0
  36. package/src/components/iconbutton/MIconButton.spec.ts +108 -0
  37. package/src/components/iconbutton/MIconButton.stories.ts +66 -0
  38. package/src/components/iconbutton/MIconButton.vue +73 -0
  39. package/src/components/link/MLink.spec.ts +154 -0
  40. package/src/components/link/MLink.stories.ts +98 -0
  41. package/src/components/link/MLink.vue +86 -109
  42. package/src/components/loader/MLoader.spec.ts +104 -0
  43. package/src/components/loader/MLoader.stories.ts +45 -0
  44. package/src/components/loader/MLoader.vue +65 -55
  45. package/src/components/overlay/MOverlay.spec.ts +51 -0
  46. package/src/components/overlay/MOverlay.stories.ts +40 -0
  47. package/src/components/overlay/MOverlay.vue +27 -19
  48. package/src/components/passwordinput/MPasswordInput.spec.ts +104 -0
  49. package/src/components/passwordinput/MPasswordInput.stories.ts +75 -0
  50. package/src/components/passwordinput/MPasswordInput.vue +129 -76
  51. package/src/components/quantityselector/MQuantitySelector.spec.ts +262 -0
  52. package/src/components/quantityselector/MQuantitySelector.stories.ts +89 -0
  53. package/src/components/quantityselector/MQuantitySelector.vue +160 -136
  54. package/src/components/radio/MRadio.spec.ts +104 -0
  55. package/src/components/radio/MRadio.stories.ts +68 -0
  56. package/src/components/radio/MRadio.vue +56 -39
  57. package/src/components/radiogroup/MRadioGroup.spec.ts +54 -0
  58. package/src/components/radiogroup/MRadioGroup.stories.ts +61 -0
  59. package/src/components/radiogroup/MRadioGroup.vue +79 -0
  60. package/src/components/select/MSelect.spec.ts +114 -0
  61. package/src/components/select/MSelect.stories.ts +101 -0
  62. package/src/components/select/MSelect.vue +77 -119
  63. package/src/components/statusbadge/MStatusBadge.stories.ts +45 -0
  64. package/src/components/statusbadge/MStatusBadge.vue +40 -0
  65. package/src/components/statusbadge/MstatusBadge.spec.ts +16 -0
  66. package/src/components/statusdot/MStatusDot.spec.ts +51 -0
  67. package/src/components/statusdot/MStatusDot.stories.ts +48 -0
  68. package/src/components/statusdot/MStatusDot.vue +36 -0
  69. package/src/components/statusnotification/MStatusNotification.spec.ts +99 -0
  70. package/src/components/statusnotification/MStatusNotification.stories.ts +96 -0
  71. package/src/components/statusnotification/MStatusNotification.vue +106 -0
  72. package/src/components/textarea/MTextArea.spec.ts +112 -0
  73. package/src/components/textarea/MTextArea.stories.ts +67 -0
  74. package/src/components/textarea/MTextArea.vue +81 -42
  75. package/src/components/textinput/MTextInput.spec.ts +121 -0
  76. package/src/components/textinput/MTextInput.stories.ts +114 -0
  77. package/src/components/textinput/MTextInput.vue +127 -47
  78. package/src/components/toggle/MToggle.spec.ts +99 -0
  79. package/src/components/toggle/MToggle.stories.ts +68 -0
  80. package/src/components/toggle/MToggle.vue +63 -103
  81. package/src/components/togglegroup/MToggleGroup.spec.ts +78 -0
  82. package/src/components/togglegroup/MToggleGroup.stories.ts +61 -0
  83. package/src/components/togglegroup/MToggleGroup.vue +97 -0
  84. package/src/components/usingIcons.mdx +43 -0
  85. package/src/components/usingPresets.mdx +125 -0
  86. package/src/main.ts +47 -0
  87. package/dist/demo.html +0 -1
  88. package/dist/mozaic-vue.adeo.css +0 -45
  89. package/dist/mozaic-vue.adeo.umd.js +0 -41775
  90. package/dist/mozaic-vue.common.js +0 -41765
  91. package/dist/mozaic-vue.common.js.map +0 -1
  92. package/dist/mozaic-vue.umd.js +0 -41776
  93. package/dist/mozaic-vue.umd.js.map +0 -1
  94. package/dist/mozaic-vue.umd.min.js +0 -4
  95. package/dist/mozaic-vue.umd.min.js.map +0 -1
  96. package/postinstall.js +0 -3
  97. package/src/components/accordion/MAccordion.vue +0 -128
  98. package/src/components/accordion/index.js +0 -7
  99. package/src/components/autocomplete/MAutocomplete.vue +0 -198
  100. package/src/components/autocomplete/index.js +0 -7
  101. package/src/components/badge/index.js +0 -7
  102. package/src/components/breadcrumb/index.js +0 -7
  103. package/src/components/button/index.js +0 -7
  104. package/src/components/card/MCard.vue +0 -78
  105. package/src/components/card/index.js +0 -7
  106. package/src/components/checkbox/MCheckboxGroup.vue +0 -155
  107. package/src/components/checkbox/index.js +0 -12
  108. package/src/components/container/MContainer.vue +0 -33
  109. package/src/components/container/index.js +0 -7
  110. package/src/components/datatable/MDataTable.vue +0 -651
  111. package/src/components/datatable/MDataTableHeader.vue +0 -55
  112. package/src/components/datatable/MDataTableTop.vue +0 -35
  113. package/src/components/datatable/helpers.js +0 -132
  114. package/src/components/datatable/index.js +0 -12
  115. package/src/components/field/index.js +0 -7
  116. package/src/components/fileuploader/MFileResult.vue +0 -149
  117. package/src/components/fileuploader/MFileUploader.vue +0 -142
  118. package/src/components/fileuploader/index.js +0 -7
  119. package/src/components/flag/MFlag.vue +0 -46
  120. package/src/components/flag/index.js +0 -7
  121. package/src/components/heading/MHeading.vue +0 -75
  122. package/src/components/heading/index.js +0 -7
  123. package/src/components/hero/MHero.vue +0 -93
  124. package/src/components/hero/index.js +0 -7
  125. package/src/components/icon/MIcon.vue +0 -120
  126. package/src/components/icon/index.js +0 -7
  127. package/src/components/index.js +0 -43
  128. package/src/components/layer/MLayer.vue +0 -208
  129. package/src/components/layer/index.js +0 -7
  130. package/src/components/link/index.js +0 -7
  131. package/src/components/listbox/MListBox.vue +0 -106
  132. package/src/components/listbox/index.js +0 -7
  133. package/src/components/loader/index.js +0 -7
  134. package/src/components/modal/MModal.vue +0 -179
  135. package/src/components/modal/index.js +0 -7
  136. package/src/components/notification/MNotification.vue +0 -110
  137. package/src/components/notification/index.js +0 -7
  138. package/src/components/optionbutton/MOptionButton.vue +0 -67
  139. package/src/components/optionbutton/index.js +0 -7
  140. package/src/components/optioncard/MOptionCard.vue +0 -132
  141. package/src/components/optioncard/index.js +0 -7
  142. package/src/components/optiongroup/MOptionGroup.vue +0 -18
  143. package/src/components/optiongroup/index.js +0 -7
  144. package/src/components/overlay/MOverlayLoader.vue +0 -43
  145. package/src/components/overlay/index.js +0 -12
  146. package/src/components/pagination/MPagination.vue +0 -162
  147. package/src/components/pagination/index.js +0 -7
  148. package/src/components/passwordinput/index.js +0 -7
  149. package/src/components/phonenumber/MPhoneNumber.vue +0 -390
  150. package/src/components/phonenumber/index.js +0 -7
  151. package/src/components/progressbar/MProgress.vue +0 -102
  152. package/src/components/progressbar/index.js +0 -7
  153. package/src/components/quantityselector/index.js +0 -7
  154. package/src/components/radio/MRadioGroup.vue +0 -111
  155. package/src/components/radio/index.js +0 -12
  156. package/src/components/ratingstars/MStarsInput.vue +0 -118
  157. package/src/components/ratingstars/MStarsResult.vue +0 -89
  158. package/src/components/ratingstars/index.js +0 -12
  159. package/src/components/select/index.js +0 -7
  160. package/src/components/stepper/MStepper.vue +0 -70
  161. package/src/components/stepper/index.js +0 -7
  162. package/src/components/tabs/MTab.vue +0 -184
  163. package/src/components/tabs/index.js +0 -7
  164. package/src/components/tags/MTag.vue +0 -173
  165. package/src/components/tags/index.js +0 -7
  166. package/src/components/textarea/index.js +0 -7
  167. package/src/components/textinput/MTextInputField.vue +0 -105
  168. package/src/components/textinput/MTextInputIcon.vue +0 -42
  169. package/src/components/textinput/index.js +0 -7
  170. package/src/components/toggle/index.js +0 -7
  171. package/src/components/tooltip/MTooltip.vue +0 -42
  172. package/src/components/tooltip/index.js +0 -7
  173. package/src/index.js +0 -62
  174. package/src/shims-tsx.d.ts +0 -13
  175. package/src/shims.vue.d.ts +0 -4
  176. package/src/tokens/adeo/android/colors.xml +0 -391
  177. package/src/tokens/adeo/android/font_dimens.xml +0 -18
  178. package/src/tokens/adeo/css/_variables.scss +0 -385
  179. package/src/tokens/adeo/css/root.scss +0 -387
  180. package/src/tokens/adeo/ios/StyleDictionaryColor.h +0 -399
  181. package/src/tokens/adeo/ios/StyleDictionaryColor.m +0 -411
  182. package/src/tokens/adeo/ios/StyleDictionaryColor.swift +0 -394
  183. package/src/tokens/adeo/ios/StyleDictionarySize.h +0 -69
  184. package/src/tokens/adeo/ios/StyleDictionarySize.m +0 -70
  185. package/src/tokens/adeo/ios/StyleDictionarySize.swift +0 -71
  186. package/src/tokens/adeo/js/tokens.js +0 -483
  187. package/src/tokens/adeo/js/tokensObject.js +0 -10354
  188. package/src/tokens/adeo/scss/_tokens.scss +0 -1300
  189. package/src/utils/mozaicClasses.js +0 -16
  190. package/src/utils/theme.validator.js +0 -19
  191. package/types/index.d.ts +0 -100
@@ -0,0 +1,1220 @@
1
+ import { defineComponent as y, computed as v, createElementBlock as n, openBlock as l, normalizeClass as $, toDisplayString as f, createBlock as w, resolveDynamicComponent as j, withCtx as S, createCommentVNode as h, createElementVNode as d, renderSlot as g, Fragment as B, renderList as C, createVNode as V, createTextVNode as M, normalizeStyle as Z, mergeProps as k, ref as I, watch as O, withDirectives as T, vModelDynamic as P, vModelText as G } from "vue";
2
+ const U = /* @__PURE__ */ y({
3
+ __name: "MBadge",
4
+ props: {
5
+ label: {},
6
+ appearance: { default: "standard" },
7
+ size: { default: "s" }
8
+ },
9
+ setup(o) {
10
+ const a = o, t = v(() => ({
11
+ [`mc-badge--${a.appearance}`]: a.appearance && a.appearance != "standard",
12
+ [`mc-badge--${a.size}`]: a.size && a.size != "s"
13
+ }));
14
+ return (e, i) => (l(), n("span", {
15
+ class: $(["mc-badge", t.value])
16
+ }, f(e.label), 3));
17
+ }
18
+ }), _ = (o, a) => {
19
+ const t = o.__vccOpts || o;
20
+ for (const [e, i] of a)
21
+ t[e] = i;
22
+ return t;
23
+ }, Xa = /* @__PURE__ */ _(U, [["__scopeId", "data-v-b427cc61"]]), D = {
24
+ key: 0,
25
+ class: "mc-link__icon",
26
+ "aria-hidden": "true"
27
+ }, F = { class: "mc-link__label" }, N = {
28
+ key: 1,
29
+ class: "mc-link__icon",
30
+ "aria-hidden": "true"
31
+ }, R = /* @__PURE__ */ y({
32
+ __name: "MLink",
33
+ props: {
34
+ iconPosition: { default: "left" },
35
+ appearance: { default: "standard" },
36
+ size: { default: "s" },
37
+ href: { default: void 0 },
38
+ target: { default: void 0 },
39
+ inline: { type: Boolean },
40
+ router: { type: Boolean }
41
+ },
42
+ setup(o) {
43
+ const a = o, t = v(() => ({
44
+ [`mc-link--${a.appearance}`]: a.appearance && a.appearance != "standard",
45
+ [`mc-link--${a.size}`]: a.size && a.size != "s",
46
+ "mc-link--inline": a.inline,
47
+ "mc-link--stand-alone": !a.inline
48
+ }));
49
+ return (e, i) => (l(), w(j(e.router ? "router-link" : "a"), {
50
+ class: $(["mc-link", t.value]),
51
+ href: e.href,
52
+ target: e.target,
53
+ to: e.router ? e.href : void 0
54
+ }, {
55
+ default: S(() => [
56
+ e.$slots.icon && e.iconPosition == "left" ? (l(), n("span", D, [
57
+ g(e.$slots, "icon", {}, void 0, !0)
58
+ ])) : h("", !0),
59
+ d("span", F, [
60
+ g(e.$slots, "default", {}, void 0, !0)
61
+ ]),
62
+ e.$slots.icon && e.iconPosition == "right" ? (l(), n("span", N, [
63
+ g(e.$slots, "icon", {}, void 0, !0)
64
+ ])) : h("", !0)
65
+ ]),
66
+ _: 3
67
+ }, 8, ["class", "href", "target", "to"]));
68
+ }
69
+ }), A = /* @__PURE__ */ _(R, [["__scopeId", "data-v-ad3d954f"]]), H = { class: "mc-breadcrumb__container" }, E = /* @__PURE__ */ y({
70
+ __name: "MBreadcrumb",
71
+ props: {
72
+ appearance: {},
73
+ links: {}
74
+ },
75
+ setup(o) {
76
+ const a = o, t = v(() => ({
77
+ [`mc-breadcrumb--${a.appearance}`]: a.appearance && a.appearance != "standard"
78
+ })), e = (i) => {
79
+ var s;
80
+ return i === (((s = a.links) == null ? void 0 : s.length) ?? 0) - 1;
81
+ };
82
+ return (i, s) => (l(), n("nav", {
83
+ class: $(["mc-breadcrumb", t.value]),
84
+ "aria-label": "Breadcrumb"
85
+ }, [
86
+ d("ul", H, [
87
+ (l(!0), n(B, null, C(i.links, (u, r) => (l(), n("li", {
88
+ class: "mc-breadcrumb__item",
89
+ key: `breadcrumb-${r}`
90
+ }, [
91
+ V(A, {
92
+ href: u.href,
93
+ router: u.router,
94
+ appearance: i.appearance,
95
+ inline: "",
96
+ class: $({
97
+ "mc-breadcrumb__current": e(r)
98
+ }),
99
+ "aria-current": e(r) ? "page" : void 0
100
+ }, {
101
+ default: S(() => [
102
+ M(f(u.label), 1)
103
+ ]),
104
+ _: 2
105
+ }, 1032, ["href", "router", "appearance", "class", "aria-current"])
106
+ ]))), 128))
107
+ ])
108
+ ], 2));
109
+ }
110
+ }), Ya = /* @__PURE__ */ _(E, [["__scopeId", "data-v-09df4905"]]), Q = { class: "mc-loader__spinner" }, W = ["viewBox"], J = ["r"], K = {
111
+ key: 0,
112
+ class: "mc-loader__text",
113
+ role: "status"
114
+ }, X = /* @__PURE__ */ y({
115
+ __name: "MLoader",
116
+ props: {
117
+ appearance: { default: "standard" },
118
+ size: { default: "m" },
119
+ text: {}
120
+ },
121
+ setup(o) {
122
+ const a = o, t = v(() => ({
123
+ [`mc-loader--${a.size}`]: a.size && a.size !== "m",
124
+ [`mc-loader--${a.appearance}`]: a.appearance && a.appearance !== "standard"
125
+ })), e = v(() => {
126
+ let s;
127
+ switch (a.size) {
128
+ case "s":
129
+ s = "0 0 24 24";
130
+ break;
131
+ case "l":
132
+ s = "0 0 64 64";
133
+ break;
134
+ default:
135
+ s = "0 0 32 32";
136
+ }
137
+ return s;
138
+ }), i = v(() => {
139
+ let s;
140
+ switch (a.size) {
141
+ case "s":
142
+ s = 6;
143
+ break;
144
+ case "l":
145
+ s = 19;
146
+ break;
147
+ default:
148
+ s = 9;
149
+ }
150
+ return s;
151
+ });
152
+ return (s, u) => (l(), n("div", {
153
+ class: $(["mc-loader", t.value])
154
+ }, [
155
+ d("span", Q, [
156
+ (l(), n("svg", {
157
+ class: "mc-loader__icon",
158
+ xmlns: "http://www.w3.org/2000/svg",
159
+ viewBox: e.value,
160
+ "aria-hidden": "true"
161
+ }, [
162
+ d("circle", {
163
+ class: "mc-loader__path",
164
+ cx: "50%",
165
+ cy: "50%",
166
+ r: i.value
167
+ }, null, 8, J)
168
+ ], 8, W))
169
+ ]),
170
+ s.text ? (l(), n("p", K, f(s.text), 1)) : h("", !0)
171
+ ], 2));
172
+ }
173
+ }), Y = /* @__PURE__ */ _(X, [["__scopeId", "data-v-56c66912"]]), x = ["disabled", "type"], ee = {
174
+ key: 0,
175
+ class: "mc-button__icon"
176
+ }, ae = {
177
+ key: 1,
178
+ class: "mc-button__icon",
179
+ style: { position: "absolute" }
180
+ }, se = {
181
+ key: 2,
182
+ class: "mc-button__icon"
183
+ }, te = {
184
+ key: 4,
185
+ class: "mc-button__icon"
186
+ }, le = /* @__PURE__ */ y({
187
+ __name: "MButton",
188
+ props: {
189
+ appearance: { default: "standard" },
190
+ size: { default: "m" },
191
+ disabled: { type: Boolean },
192
+ ghost: { type: Boolean },
193
+ outlined: { type: Boolean },
194
+ iconPosition: {},
195
+ type: { default: "button" },
196
+ isLoading: { type: Boolean }
197
+ },
198
+ setup(o) {
199
+ const a = o, t = v(() => ({
200
+ [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
201
+ [`mc-button--${a.size}`]: a.size && a.size != "m",
202
+ "mc-button--ghost": a.ghost,
203
+ "mc-button--outlined": a.outlined,
204
+ "mc-button--icon-only": a.iconPosition == "only"
205
+ }));
206
+ return (e, i) => (l(), n("button", {
207
+ class: $(["mc-button", t.value]),
208
+ disabled: e.disabled,
209
+ type: e.type
210
+ }, [
211
+ e.$slots.icon && e.iconPosition == "left" && !e.isLoading ? (l(), n("span", ee, [
212
+ g(e.$slots, "icon", {}, void 0, !0)
213
+ ])) : h("", !0),
214
+ e.isLoading ? (l(), n("span", ae, [
215
+ V(Y, {
216
+ style: { color: "currentColor" },
217
+ size: "s"
218
+ })
219
+ ])) : h("", !0),
220
+ e.$slots.icon && e.iconPosition == "only" ? (l(), n("span", se, [
221
+ g(e.$slots, "icon", {}, void 0, !0)
222
+ ])) : (l(), n("span", {
223
+ key: 3,
224
+ class: "mc-button__label",
225
+ style: Z({ visibility: e.isLoading ? "hidden" : "visible" })
226
+ }, [
227
+ g(e.$slots, "default", {}, () => [
228
+ i[0] || (i[0] = M("Button Label"))
229
+ ], !0)
230
+ ], 4)),
231
+ e.$slots.icon && e.iconPosition == "right" && !e.isLoading ? (l(), n("span", te, [
232
+ g(e.$slots, "icon", {}, void 0, !0)
233
+ ])) : h("", !0)
234
+ ], 10, x));
235
+ }
236
+ }), ne = /* @__PURE__ */ _(le, [["__scopeId", "data-v-f4f43ab6"]]), oe = { class: "mc-checkbox" }, ie = ["id", "name", "checked", "indeterminate", "disabled", "aria-invalid"], de = ["for"], re = /* @__PURE__ */ y({
237
+ __name: "MCheckbox",
238
+ props: {
239
+ id: {},
240
+ name: {},
241
+ label: {},
242
+ modelValue: { type: Boolean },
243
+ indeterminate: { type: Boolean },
244
+ isInvalid: { type: Boolean },
245
+ disabled: { type: Boolean }
246
+ },
247
+ emits: ["update:modelValue"],
248
+ setup(o, { emit: a }) {
249
+ const t = o, e = v(() => ({
250
+ "is-invalid": t.isInvalid
251
+ })), i = a;
252
+ return (s, u) => (l(), n("div", oe, [
253
+ d("input", k({
254
+ id: s.id,
255
+ type: "checkbox",
256
+ class: ["mc-checkbox__input", e.value],
257
+ name: s.name,
258
+ checked: s.modelValue,
259
+ indeterminate: s.indeterminate,
260
+ disabled: s.disabled,
261
+ "aria-invalid": s.isInvalid
262
+ }, s.$attrs, {
263
+ onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
264
+ }), null, 16, ie),
265
+ s.label ? (l(), n("label", {
266
+ key: 0,
267
+ for: s.id,
268
+ class: "mc-checkbox__label"
269
+ }, f(s.label), 9, de)) : h("", !0)
270
+ ]));
271
+ }
272
+ }), ce = /* @__PURE__ */ _(re, [["__scopeId", "data-v-37fd0a35"]]), ue = /* @__PURE__ */ y({
273
+ __name: "MCheckboxGroup",
274
+ props: {
275
+ name: {},
276
+ modelValue: {},
277
+ options: {},
278
+ inline: { type: Boolean }
279
+ },
280
+ emits: ["update:modelValue"],
281
+ setup(o, { emit: a }) {
282
+ const t = o, e = I([]);
283
+ O(
284
+ () => t.modelValue,
285
+ (p) => {
286
+ e.value = p || [];
287
+ },
288
+ { immediate: !0 }
289
+ );
290
+ const i = (p, c) => {
291
+ let m = [...e.value];
292
+ p && !m.includes(c) ? m.push(c) : m = m.filter((b) => b !== c), r("update:modelValue", m), e.value = m;
293
+ }, s = v(() => ({
294
+ "mc-field__container--inline": t.inline
295
+ })), u = v(() => ({
296
+ "mc-field__container--inline__item": t.inline
297
+ })), r = a;
298
+ return (p, c) => (l(), n("div", {
299
+ class: $(["mc-field__container", s.value])
300
+ }, [
301
+ (l(!0), n(B, null, C(p.options, (m) => (l(), w(ce, {
302
+ id: m.id,
303
+ key: m.id,
304
+ label: m.label,
305
+ "is-invalid": m.isInvalid,
306
+ name: p.name,
307
+ class: $(["mc-field__item", u.value]),
308
+ "model-value": p.modelValue ? p.modelValue.includes(m.value) : void 0,
309
+ disabled: m.disabled,
310
+ "onUpdate:modelValue": (b) => i(b, m.value)
311
+ }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
312
+ ], 2));
313
+ }
314
+ }), xa = /* @__PURE__ */ _(ue, [["__scopeId", "data-v-8ee4699f"]]), pe = { class: "mc-field" }, me = ["for"], _e = {
315
+ key: 0,
316
+ class: "mc-field__requirement"
317
+ }, ve = ["id"], be = { class: "mc-field__content" }, fe = ["id"], he = /* @__PURE__ */ y({
318
+ __name: "MField",
319
+ props: {
320
+ id: {},
321
+ label: {},
322
+ requirementText: {},
323
+ helpText: {},
324
+ helpId: {},
325
+ isValid: { type: Boolean },
326
+ isInvalid: { type: Boolean },
327
+ messageId: {},
328
+ message: {}
329
+ },
330
+ setup(o) {
331
+ const a = o, t = v(() => ({
332
+ "is-valid": a.isValid,
333
+ "is-invalid": a.isInvalid
334
+ }));
335
+ return (e, i) => (l(), n("div", pe, [
336
+ d("label", {
337
+ class: "mc-field__label",
338
+ for: e.id
339
+ }, [
340
+ M(f(e.label) + " ", 1),
341
+ e.requirementText ? (l(), n("span", _e, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
342
+ ], 8, me),
343
+ e.helpId && e.helpText ? (l(), n("span", {
344
+ key: 0,
345
+ id: e.helpId,
346
+ class: "mc-field__help"
347
+ }, f(e.helpText), 9, ve)) : h("", !0),
348
+ d("div", be, [
349
+ g(e.$slots, "default", {}, void 0, !0)
350
+ ]),
351
+ (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
352
+ key: 1,
353
+ class: $(["mc-field__validation-message", t.value]),
354
+ id: e.messageId
355
+ }, f(e.message), 11, fe)) : h("", !0)
356
+ ]));
357
+ }
358
+ }), es = /* @__PURE__ */ _(he, [["__scopeId", "data-v-ead078c4"]]), $e = { class: "mc-field--group" }, ye = ["for"], ge = {
359
+ key: 0,
360
+ class: "mc-field__requirement"
361
+ }, Ve = {
362
+ key: 0,
363
+ class: "mc-field__help"
364
+ }, ke = { class: "mc-field__content" }, Ie = /* @__PURE__ */ y({
365
+ __name: "MFieldGroup",
366
+ props: {
367
+ id: {},
368
+ legend: {},
369
+ requirementText: {},
370
+ helpText: {},
371
+ isValid: { type: Boolean },
372
+ isInvalid: { type: Boolean },
373
+ message: {}
374
+ },
375
+ setup(o) {
376
+ const a = o, t = v(() => ({
377
+ "is-valid": a.isValid,
378
+ "is-invalid": a.isInvalid
379
+ }));
380
+ return (e, i) => (l(), n("fieldset", $e, [
381
+ d("legend", {
382
+ class: "mc-field__legend",
383
+ for: e.id
384
+ }, [
385
+ M(f(e.legend) + " ", 1),
386
+ e.requirementText ? (l(), n("span", ge, "(" + f(e.requirementText) + ")", 1)) : h("", !0)
387
+ ], 8, ye),
388
+ e.helpText ? (l(), n("span", Ve, f(e.helpText), 1)) : h("", !0),
389
+ d("div", ke, [
390
+ g(e.$slots, "default", {}, void 0, !0)
391
+ ]),
392
+ (e.isValid || e.isInvalid) && e.message ? (l(), n("span", {
393
+ key: 1,
394
+ class: $(["mc-field__validation-message", t.value])
395
+ }, f(e.message), 3)) : h("", !0)
396
+ ]));
397
+ }
398
+ }), as = /* @__PURE__ */ _(Ie, [["__scopeId", "data-v-fc0c08dc"]]), we = ["disabled", "type"], Be = { class: "mc-button__icon" }, Ce = /* @__PURE__ */ y({
399
+ __name: "MIconButton",
400
+ props: {
401
+ appearance: { default: "standard" },
402
+ size: { default: "m" },
403
+ disabled: { type: Boolean },
404
+ ghost: { type: Boolean },
405
+ outlined: { type: Boolean },
406
+ type: { default: "button" }
407
+ },
408
+ setup(o) {
409
+ const a = o, t = v(() => ({
410
+ [`mc-button--${a.appearance}`]: a.appearance && a.appearance != "standard",
411
+ [`mc-button--${a.size}`]: a.size && a.size != "m",
412
+ "mc-button--ghost": a.ghost,
413
+ "mc-button--outlined": a.outlined
414
+ }));
415
+ return (e, i) => (l(), n("button", {
416
+ class: $(["mc-button mc-button--icon-button", t.value]),
417
+ disabled: e.disabled,
418
+ type: e.type
419
+ }, [
420
+ d("span", Be, [
421
+ g(e.$slots, "icon", {}, void 0, !0)
422
+ ])
423
+ ], 10, we));
424
+ }
425
+ }), ss = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-abf78562"]]), Me = ["aria-labelledby"], ze = /* @__PURE__ */ y({
426
+ __name: "MOverlay",
427
+ props: {
428
+ isVisible: { type: Boolean },
429
+ dialogLabel: {}
430
+ },
431
+ setup(o) {
432
+ return (a, t) => (l(), n("div", {
433
+ class: $(["mc-overlay", { "is-visible": a.isVisible }])
434
+ }, [
435
+ d("div", {
436
+ role: "dialog",
437
+ tabindex: "-1",
438
+ "aria-labelledby": a.dialogLabel
439
+ }, [
440
+ g(a.$slots, "default", {}, void 0, !0)
441
+ ], 8, Me)
442
+ ], 2));
443
+ }
444
+ }), ts = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-db90fdb3"]]), Le = {
445
+ name: "CrossCircleFilled24",
446
+ props: {
447
+ /**
448
+ * Icon color
449
+ */
450
+ color: {
451
+ type: String,
452
+ default: "currentColor"
453
+ }
454
+ }
455
+ }, Se = {
456
+ xmlns: "http://www.w3.org/2000/svg",
457
+ viewBox: "0 0 24 24"
458
+ };
459
+ function Oe(o, a, t, e, i, s) {
460
+ return l(), n("svg", Se, a[0] || (a[0] = [
461
+ d("path", {
462
+ "fill-rule": "evenodd",
463
+ d: "M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z"
464
+ }, null, -1)
465
+ ]));
466
+ }
467
+ const q = /* @__PURE__ */ _(Le, [["render", Oe]]), je = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Te = {
468
+ key: 0,
469
+ class: "mc-controls-options"
470
+ }, qe = { class: "mc-controls-options__label" }, Ze = /* @__PURE__ */ y({
471
+ __name: "MPasswordInput",
472
+ props: {
473
+ id: {},
474
+ name: {},
475
+ modelValue: {},
476
+ placeholder: {},
477
+ isInvalid: { type: Boolean },
478
+ disabled: { type: Boolean },
479
+ readonly: { type: Boolean },
480
+ isClearable: { type: Boolean },
481
+ clearLabel: { default: "Clear content" },
482
+ buttonLabel: { default: () => ({ show: "Show", hide: "Hide" }) }
483
+ },
484
+ 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", {
494
+ class: $(["mc-password-input mc-text-input", e.value])
495
+ }, [
496
+ T(d("input", k({
497
+ class: "mc-password-input__control mc-text-input__control",
498
+ "onUpdate:modelValue": z[0] || (z[0] = (L) => i.value = L),
499
+ id: b.id,
500
+ 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]
510
+ ]),
511
+ b.isClearable && i.value ? (l(), n("div", Te, [
512
+ d("button", {
513
+ class: "mc-controls-options__button",
514
+ onClick: u
515
+ }, [
516
+ V(q, {
517
+ class: "mc-controls-options__icon",
518
+ "aria-hidden": "true"
519
+ }),
520
+ d("span", qe, f(b.clearLabel), 1)
521
+ ])
522
+ ])) : h("", !0),
523
+ V(ne, {
524
+ ref: "button",
525
+ role: "switch",
526
+ "aria-checked": c.value,
527
+ disabled: b.disabled,
528
+ onClick: r,
529
+ size: "s",
530
+ ghost: ""
531
+ }, {
532
+ default: S(() => [
533
+ M(f(s.value ? b.buttonLabel.hide : b.buttonLabel.show), 1)
534
+ ]),
535
+ _: 1
536
+ }, 8, ["aria-checked", "disabled"])
537
+ ], 2));
538
+ }
539
+ }), ls = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-a5164b59"]]), Pe = {
540
+ name: "More24",
541
+ props: {
542
+ /**
543
+ * Icon color
544
+ */
545
+ color: {
546
+ type: String,
547
+ default: "currentColor"
548
+ }
549
+ }
550
+ }, Ge = {
551
+ xmlns: "http://www.w3.org/2000/svg",
552
+ viewBox: "0 0 24 24"
553
+ };
554
+ function Ue(o, a, t, e, i, s) {
555
+ return l(), n("svg", Ge, a[0] || (a[0] = [
556
+ d("g", { "clip-path": "url(#a)" }, [
557
+ d("path", {
558
+ "fill-rule": "evenodd",
559
+ d: "M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V5Z"
560
+ })
561
+ ], -1),
562
+ d("defs", null, [
563
+ d("clipPath", { id: "a" }, [
564
+ d("rect", {
565
+ width: "24",
566
+ height: "24",
567
+ fill: "#fff"
568
+ })
569
+ ])
570
+ ], -1)
571
+ ]));
572
+ }
573
+ const De = /* @__PURE__ */ _(Pe, [["render", Ue]]), Fe = {
574
+ name: "Less24",
575
+ props: {
576
+ /**
577
+ * Icon color
578
+ */
579
+ color: {
580
+ type: String,
581
+ default: "currentColor"
582
+ }
583
+ }
584
+ }, Ne = {
585
+ xmlns: "http://www.w3.org/2000/svg",
586
+ viewBox: "0 0 24 24"
587
+ };
588
+ function Re(o, a, t, e, i, s) {
589
+ return l(), n("svg", Ne, a[0] || (a[0] = [
590
+ d("g", { "clip-path": "url(#a)" }, [
591
+ d("path", {
592
+ "fill-rule": "evenodd",
593
+ d: "M6 12a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"
594
+ })
595
+ ], -1),
596
+ d("defs", null, [
597
+ d("clipPath", { id: "a" }, [
598
+ d("rect", {
599
+ width: "24",
600
+ height: "24",
601
+ fill: "#fff"
602
+ })
603
+ ])
604
+ ], -1)
605
+ ]));
606
+ }
607
+ const Ae = /* @__PURE__ */ _(Fe, [["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({
608
+ __name: "MQuantitySelector",
609
+ props: {
610
+ id: {},
611
+ name: { default: "quantity-selector-input" },
612
+ modelValue: { default: 1 },
613
+ isInvalid: { type: Boolean },
614
+ disabled: { type: Boolean },
615
+ size: { default: "m" },
616
+ min: { default: 1 },
617
+ max: { default: 100 },
618
+ step: { default: 1 },
619
+ readonly: { type: Boolean },
620
+ incrementlabel: { default: "Increment" },
621
+ decrementLabel: { default: "Decrement" }
622
+ },
623
+ 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);
628
+ });
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);
638
+ }, p = a;
639
+ return (c, m) => (l(), n("div", {
640
+ class: $(["mc-quantity-selector", i.value])
641
+ }, [
642
+ T(d("input", k({
643
+ id: c.id,
644
+ "onUpdate:modelValue": m[0] || (m[0] = (b) => e.value = b),
645
+ class: "mc-quantity-selector__control",
646
+ type: "number",
647
+ name: c.name,
648
+ disabled: c.disabled,
649
+ min: c.min,
650
+ max: c.max,
651
+ step: c.step,
652
+ readonly: c.readonly,
653
+ "aria-invalid": c.isInvalid,
654
+ "aria-valuemin": c.min,
655
+ "aria-valuemax": c.max,
656
+ "aria-valuenow": e.value
657
+ }, c.$attrs, {
658
+ onChange: m[1] || (m[1] = (b) => r(Number(b.target.value)))
659
+ }), null, 16, He), [
660
+ [G, e.value]
661
+ ]),
662
+ c.readonly ? h("", !0) : (l(), n("button", {
663
+ key: 0,
664
+ type: "button",
665
+ "aria-controls": c.id,
666
+ class: "mc-quantity-selector__button mc-quantity-selector__button--increase",
667
+ tabindex: "-1",
668
+ disabled: c.disabled || e.value === c.max,
669
+ onClick: s
670
+ }, [
671
+ d("span", Qe, [
672
+ V(De)
673
+ ]),
674
+ d("span", We, f(c.incrementlabel), 1)
675
+ ], 8, Ee)),
676
+ c.readonly ? h("", !0) : (l(), n("button", {
677
+ key: 1,
678
+ type: "button",
679
+ "aria-controls": c.id,
680
+ class: "mc-quantity-selector__button mc-quantity-selector__button--decrease",
681
+ tabindex: "-1",
682
+ disabled: c.disabled || e.value === c.min,
683
+ onClick: u
684
+ }, [
685
+ d("span", Ke, [
686
+ V(Ae)
687
+ ]),
688
+ d("span", Xe, f(c.decrementLabel), 1)
689
+ ], 8, Je))
690
+ ], 2));
691
+ }
692
+ }), ns = /* @__PURE__ */ _(Ye, [["__scopeId", "data-v-a732650a"]]), xe = { class: "mc-radio" }, ea = ["id", "name", "checked", "disabled", "aria-invalid"], aa = ["for"], sa = /* @__PURE__ */ y({
693
+ __name: "MRadio",
694
+ props: {
695
+ id: {},
696
+ name: {},
697
+ label: {},
698
+ modelValue: { type: Boolean },
699
+ isInvalid: { type: Boolean },
700
+ disabled: { type: Boolean }
701
+ },
702
+ 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,
710
+ type: "radio",
711
+ 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", {
720
+ key: 0,
721
+ for: s.id,
722
+ class: "mc-radio__label"
723
+ }, f(s.label), 9, aa)) : h("", !0)
724
+ ]));
725
+ }
726
+ }), ta = /* @__PURE__ */ _(sa, [["__scopeId", "data-v-da78938c"]]), la = /* @__PURE__ */ y({
727
+ __name: "MRadioGroup",
728
+ props: {
729
+ name: {},
730
+ modelValue: {},
731
+ options: {},
732
+ isInvalid: { type: Boolean },
733
+ inline: { type: Boolean }
734
+ },
735
+ emits: ["update:modelValue"],
736
+ setup(o, { emit: a }) {
737
+ const t = o, e = v(() => ({
738
+ "mc-field__container--inline": t.inline
739
+ })), i = v(() => ({
740
+ "mc-field__container--inline__item": t.inline
741
+ })), s = a;
742
+ return (u, r) => (l(), n("div", {
743
+ class: $(["mc-field__container", e.value])
744
+ }, [
745
+ (l(!0), n(B, null, C(u.options, (p) => (l(), w(ta, {
746
+ id: p.id,
747
+ key: p.id,
748
+ 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,
753
+ disabled: p.disabled,
754
+ "onUpdate:modelValue": (c) => c ? s("update:modelValue", p.value) : null
755
+ }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
756
+ ], 2));
757
+ }
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
796
+ }, r.attributes, {
797
+ disabled: r.disabled
798
+ }), f(r.text), 17, ia))), 128))
799
+ ], 16, na));
800
+ }
801
+ }), is = /* @__PURE__ */ _(da, [["__scopeId", "data-v-68c735e4"]]), ra = /* @__PURE__ */ y({
802
+ __name: "MStatusDot",
803
+ props: {
804
+ status: { default: "info" },
805
+ size: {}
806
+ },
807
+ setup(o) {
808
+ const a = o, t = v(() => ({
809
+ [`mc-status-dot--${a.status}`]: a.status && a.status != "info",
810
+ [`mc-status-dot--${a.size}`]: a.size && a.size != "m"
811
+ }));
812
+ return (e, i) => (l(), n("span", {
813
+ class: $(["mc-status-dot", t.value])
814
+ }, null, 2));
815
+ }
816
+ }), ca = /* @__PURE__ */ _(ra, [["__scopeId", "data-v-417b563f"]]), ua = { class: "mc-status-badge__label" }, pa = /* @__PURE__ */ y({
817
+ __name: "MStatusBadge",
818
+ props: {
819
+ label: {},
820
+ status: { default: "info" }
821
+ },
822
+ setup(o) {
823
+ const a = o, t = v(() => ({
824
+ [`mc-status-badge--${a.status}`]: a.status && a.status != "info"
825
+ }));
826
+ return (e, i) => (l(), n("div", {
827
+ class: $(["mc-status-badge", t.value])
828
+ }, [
829
+ V(ca, { status: e.status }, null, 8, ["status"]),
830
+ d("span", ua, f(e.label), 1)
831
+ ], 2));
832
+ }
833
+ }), ds = /* @__PURE__ */ _(pa, [["__scopeId", "data-v-3e437a03"]]), ma = {
834
+ name: "Cross20",
835
+ props: {
836
+ /**
837
+ * Icon color
838
+ */
839
+ color: {
840
+ type: String,
841
+ default: "currentColor"
842
+ }
843
+ }
844
+ }, _a = {
845
+ xmlns: "http://www.w3.org/2000/svg",
846
+ viewBox: "0 0 20 20"
847
+ };
848
+ function va(o, a, t, e, i, s) {
849
+ return l(), n("svg", _a, a[0] || (a[0] = [
850
+ d("g", { "clip-path": "url(#a)" }, [
851
+ d("path", {
852
+ "fill-rule": "evenodd",
853
+ 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"
854
+ })
855
+ ], -1),
856
+ d("defs", null, [
857
+ d("clipPath", { id: "a" }, [
858
+ d("rect", {
859
+ width: "20",
860
+ height: "20",
861
+ fill: "#fff"
862
+ })
863
+ ])
864
+ ], -1)
865
+ ]));
866
+ }
867
+ const ba = /* @__PURE__ */ _(ma, [["render", va]]), fa = {
868
+ name: "InfoCircle32",
869
+ props: {
870
+ /**
871
+ * Icon color
872
+ */
873
+ color: {
874
+ type: String,
875
+ default: "currentColor"
876
+ }
877
+ }
878
+ }, ha = {
879
+ xmlns: "http://www.w3.org/2000/svg",
880
+ viewBox: "0 0 32 32"
881
+ };
882
+ function $a(o, a, t, e, i, s) {
883
+ return l(), n("svg", ha, a[0] || (a[0] = [
884
+ d("path", {
885
+ "fill-rule": "evenodd",
886
+ 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"
887
+ }, null, -1)
888
+ ]));
889
+ }
890
+ const ya = /* @__PURE__ */ _(fa, [["render", $a]]), ga = {
891
+ name: "WarningCircle32",
892
+ props: {
893
+ /**
894
+ * Icon color
895
+ */
896
+ color: {
897
+ type: String,
898
+ default: "currentColor"
899
+ }
900
+ }
901
+ }, Va = {
902
+ xmlns: "http://www.w3.org/2000/svg",
903
+ viewBox: "0 0 32 32"
904
+ };
905
+ function ka(o, a, t, e, i, s) {
906
+ return l(), n("svg", Va, a[0] || (a[0] = [
907
+ d("path", {
908
+ "fill-rule": "evenodd",
909
+ 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"
910
+ }, null, -1)
911
+ ]));
912
+ }
913
+ const Ia = /* @__PURE__ */ _(ga, [["render", ka]]), wa = {
914
+ name: "CrossCircle32",
915
+ props: {
916
+ /**
917
+ * Icon color
918
+ */
919
+ color: {
920
+ type: String,
921
+ default: "currentColor"
922
+ }
923
+ }
924
+ }, Ba = {
925
+ xmlns: "http://www.w3.org/2000/svg",
926
+ viewBox: "0 0 32 32"
927
+ };
928
+ function Ca(o, a, t, e, i, s) {
929
+ return l(), n("svg", Ba, a[0] || (a[0] = [
930
+ d("path", {
931
+ "fill-rule": "evenodd",
932
+ 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"
933
+ }, null, -1)
934
+ ]));
935
+ }
936
+ const Ma = /* @__PURE__ */ _(wa, [["render", Ca]]), za = {
937
+ name: "CheckCircle32",
938
+ props: {
939
+ /**
940
+ * Icon color
941
+ */
942
+ color: {
943
+ type: String,
944
+ default: "currentColor"
945
+ }
946
+ }
947
+ }, La = {
948
+ xmlns: "http://www.w3.org/2000/svg",
949
+ viewBox: "0 0 32 32"
950
+ };
951
+ function Sa(o, a, t, e, i, s) {
952
+ return l(), n("svg", La, a[0] || (a[0] = [
953
+ d("path", {
954
+ "fill-rule": "evenodd",
955
+ 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"
956
+ }, null, -1)
957
+ ]));
958
+ }
959
+ 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 = {
960
+ key: 0,
961
+ class: "mc-status-notification__footer"
962
+ }, Pa = /* @__PURE__ */ y({
963
+ __name: "MStatusNotification",
964
+ props: {
965
+ title: {},
966
+ description: {},
967
+ status: { default: "info" },
968
+ closable: { type: Boolean }
969
+ },
970
+ emits: ["close"],
971
+ setup(o, { emit: a }) {
972
+ const t = o, e = v(() => ({
973
+ [`mc-status-notification--${t.status}`]: t.status && t.status != "info"
974
+ })), i = v(() => {
975
+ switch (t.status) {
976
+ case "success":
977
+ return Oa;
978
+ case "warning":
979
+ return Ia;
980
+ case "error":
981
+ return Ma;
982
+ case "info":
983
+ default:
984
+ return ya;
985
+ }
986
+ }), s = a;
987
+ return (u, r) => (l(), n("section", {
988
+ class: $(["mc-status-notification", e.value]),
989
+ role: "status"
990
+ }, [
991
+ (l(), w(j(i.value), {
992
+ class: "mc-status-notification__icon",
993
+ "aria-hidden": "true"
994
+ })),
995
+ d("div", ja, [
996
+ d("h2", Ta, f(u.title), 1),
997
+ d("p", qa, f(u.description), 1),
998
+ u.$slots.footer ? (l(), n("div", Za, [
999
+ g(u.$slots, "footer", {}, void 0, !0)
1000
+ ])) : h("", !0)
1001
+ ]),
1002
+ u.closable ? (l(), n("button", {
1003
+ key: 0,
1004
+ class: "mc-status-notification-closable__close",
1005
+ onClick: r[0] || (r[0] = (p) => s("close"))
1006
+ }, [
1007
+ V(ba, {
1008
+ class: "mc-status-notification-closable__icon",
1009
+ "aria-hidden": "true"
1010
+ }),
1011
+ r[1] || (r[1] = d("span", { class: "mc-status-notification-closable__text" }, "Close", -1))
1012
+ ])) : h("", !0)
1013
+ ], 2));
1014
+ }
1015
+ }), rs = /* @__PURE__ */ _(Pa, [["__scopeId", "data-v-d6e3be16"]]), Ga = ["id", "aria-invalid", "value", "name", "placeholder", "disabled", "minlength", "maxlength", "rows", "readonly"], Ua = /* @__PURE__ */ y({
1016
+ __name: "MTextArea",
1017
+ props: {
1018
+ id: {},
1019
+ name: {},
1020
+ modelValue: {},
1021
+ placeholder: {},
1022
+ isInvalid: { type: Boolean },
1023
+ disabled: { type: Boolean },
1024
+ rows: { default: 2 },
1025
+ minLength: {},
1026
+ maxLength: {},
1027
+ readonly: { type: Boolean }
1028
+ },
1029
+ emits: ["update:modelValue"],
1030
+ setup(o, { emit: a }) {
1031
+ const t = o, e = v(() => ({
1032
+ "is-invalid": t.isInvalid
1033
+ })), i = a;
1034
+ return (s, u) => (l(), n("textarea", k({
1035
+ id: s.id,
1036
+ class: ["mc-textarea", e.value],
1037
+ "aria-invalid": s.isInvalid,
1038
+ value: s.modelValue,
1039
+ name: s.name,
1040
+ placeholder: s.placeholder,
1041
+ disabled: s.disabled,
1042
+ minlength: s.minLength,
1043
+ maxlength: s.maxLength,
1044
+ rows: s.rows,
1045
+ readonly: s.readonly
1046
+ }, s.$attrs, {
1047
+ onInput: u[0] || (u[0] = (r) => i("update:modelValue", r.target.value))
1048
+ }), null, 16, Ga));
1049
+ }
1050
+ }), cs = /* @__PURE__ */ _(Ua, [["__scopeId", "data-v-8184b69c"]]), Da = {
1051
+ key: 0,
1052
+ class: "mc-text-input__icon"
1053
+ }, Fa = ["id", "value", "type", "name", "placeholder", "disabled", "aria-invalid", "readonly"], Na = {
1054
+ key: 1,
1055
+ class: "mc-controls-options"
1056
+ }, Ra = /* @__PURE__ */ y({
1057
+ __name: "MTextInput",
1058
+ props: {
1059
+ id: {},
1060
+ name: {},
1061
+ modelValue: {},
1062
+ placeholder: {},
1063
+ inputType: { default: "text" },
1064
+ isInvalid: { type: Boolean },
1065
+ disabled: { type: Boolean },
1066
+ size: { default: "m" },
1067
+ readonly: { type: Boolean },
1068
+ isClearable: { type: Boolean },
1069
+ clearLabel: { default: "clear content" }
1070
+ },
1071
+ emits: ["update:modelValue"],
1072
+ setup(o, { emit: a }) {
1073
+ const t = o, e = v(() => ({
1074
+ [`mc-text-input--${t.size}`]: t.size && t.size != "m",
1075
+ "is-invalid": t.isInvalid
1076
+ })), i = I(t.modelValue), s = () => {
1077
+ i.value = "", u("update:modelValue", "");
1078
+ }, u = a;
1079
+ return (r, p) => (l(), n("div", {
1080
+ class: $(["mc-text-input", e.value])
1081
+ }, [
1082
+ r.$slots.icon ? (l(), n("span", Da, [
1083
+ g(r.$slots, "icon", {}, void 0, !0)
1084
+ ])) : h("", !0),
1085
+ d("input", k({
1086
+ id: r.id,
1087
+ class: "mc-text-input__control",
1088
+ value: i.value,
1089
+ type: r.inputType,
1090
+ name: r.name,
1091
+ placeholder: r.placeholder,
1092
+ disabled: r.disabled,
1093
+ "aria-invalid": r.isInvalid,
1094
+ readonly: r.readonly
1095
+ }, r.$attrs, {
1096
+ onInput: p[0] || (p[0] = (c) => u("update:modelValue", c.target.value))
1097
+ }), null, 16, Fa),
1098
+ r.isClearable && i.value ? (l(), n("div", Na, [
1099
+ d("button", {
1100
+ type: "button",
1101
+ class: "mc-controls-options__button",
1102
+ onClick: s
1103
+ }, [
1104
+ V(q, {
1105
+ class: "mc-controls-options__icon",
1106
+ "aria-hidden": "true"
1107
+ }),
1108
+ p[1] || (p[1] = d("span", { class: "mc-controls-options__label" }, "{clearLabel}", -1))
1109
+ ])
1110
+ ])) : h("", !0)
1111
+ ], 2));
1112
+ }
1113
+ }), us = /* @__PURE__ */ _(Ra, [["__scopeId", "data-v-38f67338"]]), Aa = ["for"], Ha = ["id", "name", "checked", "disabled"], Ea = ["for"], Qa = /* @__PURE__ */ y({
1114
+ __name: "MToggle",
1115
+ props: {
1116
+ id: {},
1117
+ name: {},
1118
+ label: {},
1119
+ modelValue: { type: Boolean },
1120
+ size: { default: "s" },
1121
+ disabled: { type: Boolean }
1122
+ },
1123
+ emits: ["update:modelValue"],
1124
+ setup(o, { emit: a }) {
1125
+ const t = o, e = v(() => ({
1126
+ [`mc-toggle--${t.size}`]: t.size && t.size != "s"
1127
+ })), i = a;
1128
+ return (s, u) => (l(), n("div", {
1129
+ class: $(["mc-toggle", e.value])
1130
+ }, [
1131
+ d("label", {
1132
+ class: "mc-toggle__container",
1133
+ for: s.id
1134
+ }, [
1135
+ d("input", k({
1136
+ id: s.id,
1137
+ type: "checkbox",
1138
+ class: "mc-toggle__input",
1139
+ name: s.name,
1140
+ checked: s.modelValue,
1141
+ disabled: s.disabled
1142
+ }, s.$attrs, {
1143
+ onChange: u[0] || (u[0] = (r) => i("update:modelValue", r.target.checked))
1144
+ }), null, 16, Ha),
1145
+ s.label ? (l(), n("span", {
1146
+ key: 0,
1147
+ for: s.id,
1148
+ class: "mc-toggle__label"
1149
+ }, f(s.label), 9, Ea)) : h("", !0)
1150
+ ], 8, Aa)
1151
+ ], 2));
1152
+ }
1153
+ }), Wa = /* @__PURE__ */ _(Qa, [["__scopeId", "data-v-5be734e7"]]), Ja = /* @__PURE__ */ y({
1154
+ __name: "MToggleGroup",
1155
+ props: {
1156
+ name: {},
1157
+ modelValue: {},
1158
+ options: {},
1159
+ inline: { type: Boolean }
1160
+ },
1161
+ emits: ["update:modelValue"],
1162
+ setup(o, { emit: a }) {
1163
+ const t = o, e = I([]);
1164
+ O(
1165
+ () => t.modelValue,
1166
+ (p) => {
1167
+ e.value = p || [];
1168
+ },
1169
+ { immediate: !0 }
1170
+ );
1171
+ const i = (p, c) => {
1172
+ let m = [...e.value];
1173
+ p && !m.includes(c) ? m.push(c) : m = m.filter((b) => b !== c), r("update:modelValue", m), e.value = m;
1174
+ }, s = v(() => ({
1175
+ "mc-field__container--inline": t.inline
1176
+ })), u = v(() => ({
1177
+ "mc-field__container--inline__item": t.inline
1178
+ })), r = a;
1179
+ return (p, c) => (l(), n("div", {
1180
+ class: $(s.value)
1181
+ }, [
1182
+ (l(!0), n(B, null, C(p.options, (m) => (l(), w(Wa, {
1183
+ id: m.id,
1184
+ key: m.id,
1185
+ label: m.label,
1186
+ "is-invalid": m.isInvalid,
1187
+ name: p.name,
1188
+ class: $(u.value),
1189
+ "model-value": p.modelValue ? p.modelValue.includes(m.value) : void 0,
1190
+ disabled: m.disabled,
1191
+ "onUpdate:modelValue": (b) => i(b, m.value)
1192
+ }, null, 8, ["id", "label", "is-invalid", "name", "class", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
1193
+ ], 2));
1194
+ }
1195
+ }), ps = /* @__PURE__ */ _(Ja, [["__scopeId", "data-v-c6b10172"]]);
1196
+ export {
1197
+ Xa as MBadge,
1198
+ Ya as MBreadcrumb,
1199
+ ne as MButton,
1200
+ ce as MCheckbox,
1201
+ xa as MCheckboxGroup,
1202
+ es as MField,
1203
+ as as MFieldGroup,
1204
+ ss as MIconButton,
1205
+ A as MLink,
1206
+ Y as MLoader,
1207
+ ts as MOverlay,
1208
+ ls as MPasswordInput,
1209
+ ns as MQuantitySelector,
1210
+ ta as MRadio,
1211
+ os as MRadioGroup,
1212
+ is as MSelect,
1213
+ ds as MStatusBadge,
1214
+ rs as MStatusNotification,
1215
+ cs as MTextArea,
1216
+ us as MTextInput,
1217
+ Wa as MToggle,
1218
+ ps as MToggleGroup
1219
+ };
1220
+ //# sourceMappingURL=mozaic-vue.js.map