@muenchen/muc-patternlab-vue 1.13.0-beta.1 → 1.13.0-beta.2

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.
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
3
+ title: string;
4
+ tags: string[];
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ component: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export default _default;
14
+ export declare const Default: {};
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as MucDivider } from './MucDivider.vue';
2
+
3
+ export { MucDivider };
@@ -3,9 +3,10 @@ import { MucButton } from './Button';
3
3
  import { MucCallout } from './Callout';
4
4
  import { MucCard, MucCardContainer } from './Card';
5
5
  import { MucComment, MucCommentText } from './Comment/';
6
+ import { MucDivider } from './Divider';
6
7
  import { MucCheckbox, MucCheckboxGroup, MucErrorList, MucInput, MucRadioButton, MucRadioButtonGroup, MucSelect, MucTextArea } from './Form';
7
8
  import { MucIcon } from './Icon';
8
9
  import { MucIntro } from './Intro';
9
10
  import { MucLink } from './Link';
10
11
 
11
- export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucLink, };
12
+ export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucDivider, MucLink, };
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, useAttrs as Z, computed as r, openBlock as n, createElementBlock as c, normalizeClass as b, normalizeStyle as ee, createElementVNode as e, createVNode as R, unref as k, renderSlot as _, createBlock as j, createCommentVNode as g, toDisplayString as u, pushScopeId as H, popScopeId as U, useSlots as N, createTextVNode as $, Fragment as E, renderList as L, createSlots as te, withCtx as B, mergeModels as C, useModel as T, withModifiers as W, ref as O, withDirectives as z, vModelDynamic as se, inject as oe, provide as ae, readonly as ne, toRef as le, vModelText as ce } from "vue";
1
+ import { defineComponent as h, useAttrs as Z, computed as r, openBlock as n, createElementBlock as c, normalizeClass as g, normalizeStyle as ee, createElementVNode as e, createVNode as R, unref as k, renderSlot as _, createBlock as j, createCommentVNode as $, toDisplayString as u, pushScopeId as H, popScopeId as U, useSlots as N, createTextVNode as b, Fragment as E, renderList as L, createSlots as te, withCtx as B, mergeModels as C, useModel as T, withModifiers as W, ref as O, withDirectives as D, vModelDynamic as se, inject as oe, provide as ae, readonly as ne, toRef as le, vModelText as ce } from "vue";
2
2
  const ie = ["href"], M = /* @__PURE__ */ h({
3
3
  __name: "MucIcon",
4
4
  props: {
@@ -9,7 +9,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
9
9
  const t = Z(), s = r(() => t.class ?? "icon");
10
10
  return (o, i) => (n(), c("svg", {
11
11
  "aria-hidden": "true",
12
- class: b(s.value),
12
+ class: g(s.value),
13
13
  style: ee({ color: o.color })
14
14
  }, [
15
15
  e("use", {
@@ -77,7 +77,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
77
77
  return (m, f) => (n(), c("div", null, [
78
78
  e("div", null, [
79
79
  e("div", {
80
- class: b(["m-banner", s.value]),
80
+ class: g(["m-banner", s.value]),
81
81
  role: o.value,
82
82
  "aria-label": i.value
83
83
  }, [
@@ -94,7 +94,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
94
94
  for (const [o, i] of t)
95
95
  s[o] = i;
96
96
  return s;
97
- }, _e = /* @__PURE__ */ V(de, [["__scopeId", "data-v-53bc7eca"]]), me = ["disabled"], D = /* @__PURE__ */ h({
97
+ }, _e = /* @__PURE__ */ V(de, [["__scopeId", "data-v-53bc7eca"]]), me = ["disabled"], z = /* @__PURE__ */ h({
98
98
  __name: "MucButton",
99
99
  props: {
100
100
  variant: { default: "primary" },
@@ -121,7 +121,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
121
121
  return (f, v) => (n(), c("button", {
122
122
  onClick: m,
123
123
  disabled: f.disabled,
124
- class: b(["m-button", [i.value, l.value]])
124
+ class: g(["m-button", [i.value, l.value]])
125
125
  }, [
126
126
  e("span", null, [
127
127
  _(f.$slots, "default"),
@@ -129,11 +129,11 @@ const ie = ["href"], M = /* @__PURE__ */ h({
129
129
  key: 0,
130
130
  icon: f.icon,
131
131
  class: "m-button__icon"
132
- }, null, 8, ["icon"])) : g("", !0)
132
+ }, null, 8, ["icon"])) : $("", !0)
133
133
  ])
134
134
  ], 10, me));
135
135
  }
136
- }), pe = ["aria-label"], he = { class: "m-callout__inner" }, ve = { class: "m-callout__icon" }, fe = { class: "m-callout__body" }, ge = { class: "m-callout__body__inner" }, $e = { class: "m-callout__headline" }, be = { class: "m-callout__content" }, ye = /* @__PURE__ */ h({
136
+ }), pe = ["aria-label"], he = { class: "m-callout__inner" }, ve = { class: "m-callout__icon" }, fe = { class: "m-callout__body" }, $e = { class: "m-callout__body__inner" }, be = { class: "m-callout__headline" }, ge = { class: "m-callout__content" }, ye = /* @__PURE__ */ h({
137
137
  __name: "MucCallout",
138
138
  props: {
139
139
  type: { default: "info" }
@@ -172,7 +172,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
172
172
  }
173
173
  });
174
174
  return (l, m) => (n(), c("div", {
175
- class: b(["m-callout", o.value]),
175
+ class: g(["m-callout", o.value]),
176
176
  "aria-label": i.value
177
177
  }, [
178
178
  e("div", he, [
@@ -182,11 +182,11 @@ const ie = ["href"], M = /* @__PURE__ */ h({
182
182
  ], !0)
183
183
  ]),
184
184
  e("div", fe, [
185
- e("div", ge, [
186
- e("div", $e, [
185
+ e("div", $e, [
186
+ e("div", be, [
187
187
  _(l.$slots, "header", {}, void 0, !0)
188
188
  ]),
189
- e("div", be, [
189
+ e("div", ge, [
190
190
  e("p", null, [
191
191
  _(l.$slots, "content", { class: "m-callout__content" }, void 0, !0)
192
192
  ])
@@ -196,10 +196,10 @@ const ie = ["href"], M = /* @__PURE__ */ h({
196
196
  ])
197
197
  ], 10, pe));
198
198
  }
199
- }), ke = /* @__PURE__ */ V(ye, [["__scopeId", "data-v-e6cf4104"]]), Me = (a) => (H("data-v-acf0a1dd"), a = a(), U(), a), Ce = { class: "card-content" }, we = { class: "card-header" }, Se = {
199
+ }), ke = /* @__PURE__ */ V(ye, [["__scopeId", "data-v-e6cf4104"]]), Me = (a) => (H("data-v-acf0a1dd"), a = a(), U(), a), Ce = { class: "card-content" }, we = { class: "card-header" }, Ie = {
200
200
  key: 0,
201
201
  class: "card-tagline"
202
- }, Ie = /* @__PURE__ */ Me(() => /* @__PURE__ */ e("div", { class: "muc-divider" }, null, -1)), Be = /* @__PURE__ */ h({
202
+ }, Se = /* @__PURE__ */ Me(() => /* @__PURE__ */ e("div", { class: "muc-divider" }, null, -1)), Be = /* @__PURE__ */ h({
203
203
  __name: "MucCard",
204
204
  props: {
205
205
  title: {},
@@ -216,13 +216,13 @@ const ie = ["href"], M = /* @__PURE__ */ h({
216
216
  e("div", we, [
217
217
  _(o.$slots, "headerPrefix", {}, void 0, !0),
218
218
  e("div", null, [
219
- o.tagline ? (n(), c("div", Se, u(o.tagline), 1)) : g("", !0),
219
+ o.tagline ? (n(), c("div", Ie, u(o.tagline), 1)) : $("", !0),
220
220
  e("div", null, [
221
221
  e("h3", null, u(o.title), 1)
222
222
  ])
223
223
  ])
224
224
  ]),
225
- Ie,
225
+ Se,
226
226
  _(o.$slots, "content", {}, void 0, !0)
227
227
  ])
228
228
  ]));
@@ -237,7 +237,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
237
237
  }), Re = /* @__PURE__ */ V(Ae, [["__scopeId", "data-v-6740df8f"]]), Ee = { class: "m-comment__head" }, Le = { class: "m-comment__initials" }, Te = { class: "m-comment__info" }, Oe = { class: "m-comment__author" }, je = { key: 0 }, Ge = { class: "m-comment__author" }, Pe = { class: "m-comment__date" }, qe = ["aria-label"], He = {
238
238
  key: 0,
239
239
  class: "m-star-rating__item m-star-rating__item--half"
240
- }, Ue = { class: "m-star-rating__numeric" }, Ne = { class: "m-comment__body" }, We = { class: "m-comment__headline" }, ze = { class: "m-comment__text" }, De = "de-DE", Fe = 0.2, Ke = 0.8, A = 5, F = /* @__PURE__ */ h({
240
+ }, Ue = { class: "m-star-rating__numeric" }, Ne = { class: "m-comment__body" }, We = { class: "m-comment__headline" }, De = { class: "m-comment__text" }, ze = "de-DE", Fe = 0.2, Ke = 0.8, A = 5, F = /* @__PURE__ */ h({
241
241
  __name: "MucComment",
242
242
  props: {
243
243
  rating: {},
@@ -246,7 +246,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
246
246
  setup(a) {
247
247
  const t = N(), s = a, o = r(() => !!t.date), i = r(() => s.variant === "slider" ? "m-comment--slider" : "m-comment--listing"), l = r(
248
248
  () => Math.min(Math.max(s.rating, 0), A)
249
- ), m = r(() => l.value.toLocaleString(De.valueOf(), {
249
+ ), m = r(() => l.value.toLocaleString(ze.valueOf(), {
250
250
  minimumFractionDigits: 1
251
251
  })), f = r(() => {
252
252
  const v = +(l.value % 1).toFixed(1);
@@ -258,7 +258,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
258
258
  };
259
259
  });
260
260
  return (v, w) => (n(), c("div", {
261
- class: b(["m-comment", i.value])
261
+ class: g(["m-comment", i.value])
262
262
  }, [
263
263
  e("div", Ee, [
264
264
  e("div", Le, [
@@ -270,14 +270,14 @@ const ie = ["href"], M = /* @__PURE__ */ h({
270
270
  ]),
271
271
  o.value ? (n(), c("span", je, [
272
272
  e("span", Ge, [
273
- $("  "),
273
+ b("  "),
274
274
  _(v.$slots, "datePrefix")
275
275
  ]),
276
276
  e("span", Pe, [
277
- $(" "),
277
+ b(" "),
278
278
  _(v.$slots, "date")
279
279
  ])
280
- ])) : g("", !0),
280
+ ])) : $("", !0),
281
281
  e("div", {
282
282
  class: "m-star-rating",
283
283
  role: "img",
@@ -291,7 +291,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
291
291
  ]))), 128)),
292
292
  f.value.isHalfStar ? (n(), c("div", He, [
293
293
  R(k(M), { icon: "half-star" })
294
- ])) : g("", !0),
294
+ ])) : $("", !0),
295
295
  (n(!0), c(E, null, L(f.value.emptyStars, (y) => (n(), c("div", {
296
296
  key: y,
297
297
  class: "m-star-rating__item"
@@ -306,7 +306,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
306
306
  e("div", We, [
307
307
  _(v.$slots, "headline")
308
308
  ]),
309
- e("div", ze, [
309
+ e("div", De, [
310
310
  _(v.$slots, "text")
311
311
  ])
312
312
  ])
@@ -331,32 +331,36 @@ const ie = ["href"], M = /* @__PURE__ */ h({
331
331
  variant: o.variant
332
332
  }, te({
333
333
  initials: B(() => [
334
- $(u(s.value), 1)
334
+ b(u(s.value), 1)
335
335
  ]),
336
336
  datePrefix: B(() => [
337
- $("am")
337
+ b("am")
338
338
  ]),
339
339
  author: B(() => [
340
- $(u(o.author), 1)
340
+ b(u(o.author), 1)
341
341
  ]),
342
342
  headline: B(() => [
343
- $(u(o.headline), 1)
343
+ b(u(o.headline), 1)
344
344
  ]),
345
345
  text: B(() => [
346
- $(u(o.text), 1)
346
+ b(u(o.text), 1)
347
347
  ]),
348
348
  _: 2
349
349
  }, [
350
350
  o.date ? {
351
351
  name: "date",
352
352
  fn: B(() => [
353
- $(u(o.date), 1)
353
+ b(u(o.date), 1)
354
354
  ]),
355
355
  key: "0"
356
356
  } : void 0
357
357
  ]), 1032, ["rating", "variant"]));
358
358
  }
359
- }), Qe = ["checked"], Ye = { class: "m-label m-checkboxes__label" }, Ze = /* @__PURE__ */ h({
359
+ }), Qe = {}, Ye = { class: "divider-border" };
360
+ function Ze(a, t) {
361
+ return n(), c("hr", Ye);
362
+ }
363
+ const et = /* @__PURE__ */ V(Qe, [["render", Ze], ["__scopeId", "data-v-a2b37f5b"]]), tt = ["checked"], st = { class: "m-label m-checkboxes__label" }, ot = /* @__PURE__ */ h({
360
364
  __name: "MucCheckbox",
361
365
  props: /* @__PURE__ */ C({
362
366
  label: {}
@@ -379,58 +383,58 @@ const ie = ["href"], M = /* @__PURE__ */ h({
379
383
  type: "checkbox",
380
384
  checked: s.value,
381
385
  onClick: W(i, ["stop"])
382
- }, null, 8, Qe),
383
- e("label", Ye, u(l.label), 1)
386
+ }, null, 8, tt),
387
+ e("label", st, u(l.label), 1)
384
388
  ]));
385
389
  }
386
- }), et = { class: "m-form-group" }, tt = { class: "m-checkbox-group" }, st = { class: "m-checkbox-group__legend" }, ot = { class: "m-checkbox-group__heading" }, at = { class: "m-checkboxes m-checkboxes--collapse" }, nt = /* @__PURE__ */ e("span", null, "Mehr ", -1), lt = {
390
+ }), at = { class: "m-form-group" }, nt = { class: "m-checkbox-group" }, lt = { class: "m-checkbox-group__legend" }, ct = { class: "m-checkbox-group__heading" }, it = { class: "m-checkboxes m-checkboxes--collapse" }, rt = /* @__PURE__ */ e("span", null, "Mehr ", -1), ut = {
387
391
  "aria-hidden": "true",
388
392
  class: "icon icon--after"
389
- }, ct = ["href"], it = /* @__PURE__ */ h({
393
+ }, dt = ["href"], _t = /* @__PURE__ */ h({
390
394
  __name: "MucCheckboxGroup",
391
395
  props: {
392
396
  heading: {}
393
397
  },
394
398
  setup(a) {
395
399
  const t = O(!0), s = r(() => t.value ? "collapse" : ""), o = r(() => t.value ? "down" : "up"), i = () => t.value = !t.value;
396
- return (l, m) => (n(), c("div", et, [
397
- e("fieldset", tt, [
398
- e("legend", st, [
399
- e("h3", ot, u(l.heading), 1)
400
+ return (l, m) => (n(), c("div", at, [
401
+ e("fieldset", nt, [
402
+ e("legend", lt, [
403
+ e("h3", ct, u(l.heading), 1)
400
404
  ]),
401
- e("div", at, [
405
+ e("div", it, [
402
406
  _(l.$slots, "checkboxes"),
403
407
  l.$slots.collapsableCheckboxes ? (n(), c("div", {
404
408
  key: 0,
405
- class: b(["m-checkboxes__collapse__container", s.value])
409
+ class: g(["m-checkboxes__collapse__container", s.value])
406
410
  }, [
407
411
  _(l.$slots, "collapsableCheckboxes")
408
- ], 2)) : g("", !0),
409
- l.$slots.collapsableCheckboxes ? (n(), j(k(D), {
412
+ ], 2)) : $("", !0),
413
+ l.$slots.collapsableCheckboxes ? (n(), j(k(z), {
410
414
  key: 1,
411
415
  variant: "ghost",
412
416
  onClick: i,
413
417
  "aria-expanded": !t.value
414
418
  }, {
415
419
  default: B(() => [
416
- nt,
417
- (n(), c("svg", lt, [
420
+ rt,
421
+ (n(), c("svg", ut, [
418
422
  e("use", {
419
423
  href: "#icon-chevron-" + o.value
420
- }, null, 8, ct)
424
+ }, null, 8, dt)
421
425
  ]))
422
426
  ]),
423
427
  _: 1
424
- }, 8, ["aria-expanded"])) : g("", !0)
428
+ }, 8, ["aria-expanded"])) : $("", !0)
425
429
  ])
426
430
  ])
427
431
  ]));
428
432
  }
429
- }), rt = {
433
+ }), mt = {
430
434
  class: "m-error-list",
431
435
  role: "alert",
432
436
  tabindex: "-1"
433
- }, ut = { class: "m-error-list__title" }, dt = { class: "m-error-list__body" }, _t = { class: "m-list m-error-list__list" }, mt = /* @__PURE__ */ h({
437
+ }, pt = { class: "m-error-list__title" }, ht = { class: "m-error-list__body" }, vt = { class: "m-list m-error-list__list" }, ft = /* @__PURE__ */ h({
434
438
  __name: "MucErrorList",
435
439
  props: {
436
440
  title: {},
@@ -440,10 +444,10 @@ const ie = ["href"], M = /* @__PURE__ */ h({
440
444
  const t = a, s = r(
441
445
  () => typeof t.errors == "string" ? [t.errors] : t.errors
442
446
  );
443
- return (o, i) => (n(), c("div", rt, [
444
- e("h2", ut, u(o.title), 1),
445
- e("div", dt, [
446
- e("ul", _t, [
447
+ return (o, i) => (n(), c("div", mt, [
448
+ e("h2", pt, u(o.title), 1),
449
+ e("div", ht, [
450
+ e("ul", vt, [
447
451
  (n(!0), c(E, null, L(s.value, (l, m) => (n(), c("li", { key: m }, [
448
452
  e("a", null, u(l), 1)
449
453
  ]))), 128))
@@ -451,29 +455,29 @@ const ie = ["href"], M = /* @__PURE__ */ h({
451
455
  ])
452
456
  ]));
453
457
  }
454
- }), pt = {
458
+ }), $t = {
455
459
  for: "search-input",
456
460
  class: "m-label"
457
- }, ht = {
461
+ }, bt = {
458
462
  key: 0,
459
463
  "aria-hidden": "true",
460
464
  class: "mandatory"
461
- }, vt = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "(erforderlich)", -1), ft = {
465
+ }, gt = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "(erforderlich)", -1), yt = {
462
466
  id: "text-input-error",
463
467
  class: "m-error-message"
464
- }, gt = { class: "m-input-wrapper m-autocomplete" }, $t = {
468
+ }, kt = { class: "m-input-wrapper m-autocomplete" }, Mt = {
465
469
  key: 0,
466
470
  class: "m-input__prefix"
467
- }, bt = ["type", "aria-describedby", "placeholder", "required"], yt = {
471
+ }, Ct = ["type", "aria-describedby", "placeholder", "required"], wt = {
468
472
  key: 1,
469
473
  class: "autocomplete-result-list autocomplete-result-list--location"
470
- }, kt = ["onClick"], Mt = {
474
+ }, It = ["onClick"], St = {
471
475
  "aria-hidden": "true",
472
476
  class: "icon"
473
- }, Ct = ["xlink:href"], wt = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "Suchen", -1), St = {
477
+ }, Bt = ["xlink:href"], Vt = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "Suchen", -1), xt = {
474
478
  class: "m-hint",
475
479
  id: "text-input-hint"
476
- }, It = /* @__PURE__ */ h({
480
+ }, At = /* @__PURE__ */ h({
477
481
  __name: "MucInput",
478
482
  props: /* @__PURE__ */ C({
479
483
  errorMsg: {},
@@ -494,63 +498,63 @@ const ie = ["href"], M = /* @__PURE__ */ h({
494
498
  if (s.value === "") return [];
495
499
  const d = s.value.toLowerCase();
496
500
  return o.datalist.filter(
497
- (S) => S.toLowerCase().startsWith(d) && S.toLowerCase() !== d
501
+ (I) => I.toLowerCase().startsWith(d) && I.toLowerCase() !== d
498
502
  );
499
503
  }), w = (d) => s.value = d, y = () => l("suffixClick");
500
- return (d, S) => (n(), c("div", {
501
- class: b(["m-form-group", m.value])
504
+ return (d, I) => (n(), c("div", {
505
+ class: g(["m-form-group", m.value])
502
506
  }, [
503
- e("label", pt, [
504
- $(u(d.label) + " ", 1),
505
- d.required ? (n(), c("span", ht, [
506
- $(" * "),
507
- vt
508
- ])) : g("", !0)
507
+ e("label", $t, [
508
+ b(u(d.label) + " ", 1),
509
+ d.required ? (n(), c("span", bt, [
510
+ b(" * "),
511
+ gt
512
+ ])) : $("", !0)
509
513
  ]),
510
- e("p", ft, u(d.errorMsg), 1),
511
- e("div", gt, [
512
- i.prefix ? (n(), c("div", $t, [
514
+ e("p", yt, u(d.errorMsg), 1),
515
+ e("div", kt, [
516
+ i.prefix ? (n(), c("div", Mt, [
513
517
  e("span", null, [
514
518
  _(d.$slots, "prefix")
515
519
  ])
516
- ])) : g("", !0),
517
- z(e("input", {
520
+ ])) : $("", !0),
521
+ D(e("input", {
518
522
  class: "m-input autocomplete-input",
519
523
  type: d.type,
520
- "onUpdate:modelValue": S[0] || (S[0] = (I) => s.value = I),
524
+ "onUpdate:modelValue": I[0] || (I[0] = (S) => s.value = S),
521
525
  "aria-describedby": d.type + "-input",
522
526
  placeholder: d.placeholder,
523
527
  required: d.required
524
- }, null, 8, bt), [
528
+ }, null, 8, Ct), [
525
529
  [se, s.value]
526
530
  ]),
527
- f.value && v.value.length !== 0 ? (n(), c("ul", yt, [
528
- (n(!0), c(E, null, L(v.value, (I) => (n(), c("li", {
531
+ f.value && v.value.length !== 0 ? (n(), c("ul", wt, [
532
+ (n(!0), c(E, null, L(v.value, (S) => (n(), c("li", {
529
533
  class: "autocomplete-result",
530
- key: I,
531
- onClick: (G) => w(I)
532
- }, u(I), 9, kt))), 128))
533
- ])) : g("", !0),
534
+ key: S,
535
+ onClick: (G) => w(S)
536
+ }, u(S), 9, It))), 128))
537
+ ])) : $("", !0),
534
538
  d.suffixIcon ? (n(), c("button", {
535
539
  key: 2,
536
540
  class: "m-input__suffix",
537
541
  onClick: y
538
542
  }, [
539
- (n(), c("svg", Mt, [
543
+ (n(), c("svg", St, [
540
544
  e("use", {
541
545
  "xlink:href": "#icon-" + d.suffixIcon
542
- }, null, 8, Ct)
546
+ }, null, 8, Bt)
543
547
  ])),
544
- wt
545
- ])) : g("", !0)
548
+ Vt
549
+ ])) : $("", !0)
546
550
  ]),
547
- e("p", St, u(d.hint), 1)
551
+ e("p", xt, u(d.hint), 1)
548
552
  ], 2));
549
553
  }
550
- }), K = Symbol("mucRadioGroup"), Bt = {
554
+ }), K = Symbol("mucRadioGroup"), Rt = {
551
555
  key: 0,
552
556
  class: "m-radios__item"
553
- }, Vt = ["checked", "disabled"], xt = { class: "m-hint" }, At = /* @__PURE__ */ h({
557
+ }, Et = ["checked", "disabled"], Lt = { class: "m-hint" }, Tt = /* @__PURE__ */ h({
554
558
  __name: "MucRadioButton",
555
559
  props: {
556
560
  value: {},
@@ -560,24 +564,24 @@ const ie = ["href"], M = /* @__PURE__ */ h({
560
564
  },
561
565
  setup(a) {
562
566
  const t = a, s = oe(K), o = () => s == null ? void 0 : s.set(t.value), i = r(() => (s == null ? void 0 : s.modelValue.value) === t.value), l = r(() => t.disabled || (s == null ? void 0 : s.disabled.value)), m = r(() => !!(s != null && s.disabled));
563
- return (f, v) => m.value ? (n(), c("div", Bt, [
567
+ return (f, v) => m.value ? (n(), c("div", Rt, [
564
568
  e("input", {
565
569
  class: "m-radios__input",
566
570
  type: "radio",
567
571
  checked: i.value,
568
572
  disabled: l.value,
569
573
  onClick: W(o, ["stop"])
570
- }, null, 8, Vt),
574
+ }, null, 8, Et),
571
575
  e("label", {
572
576
  class: "m-label m-radios__label",
573
577
  onClick: o
574
578
  }, [
575
- $(u(f.label) + " ", 1),
576
- e("span", xt, u(f.hint), 1)
579
+ b(u(f.label) + " ", 1),
580
+ e("span", Lt, u(f.hint), 1)
577
581
  ])
578
- ])) : g("", !0);
582
+ ])) : $("", !0);
579
583
  }
580
- }), Rt = { class: "m-form-group" }, Et = { class: "m-radio-group" }, Lt = { class: "m-radio-group__legend" }, Tt = { class: "m-radio-group__heading" }, Ot = { class: "m-radios" }, jt = /* @__PURE__ */ h({
584
+ }), Ot = { class: "m-form-group" }, jt = { class: "m-radio-group" }, Gt = { class: "m-radio-group__legend" }, Pt = { class: "m-radio-group__heading" }, qt = { class: "m-radios" }, Ht = /* @__PURE__ */ h({
581
585
  __name: "MucRadioButtonGroup",
582
586
  props: /* @__PURE__ */ C({
583
587
  heading: {},
@@ -595,29 +599,29 @@ const ie = ["href"], M = /* @__PURE__ */ h({
595
599
  },
596
600
  modelValue: s,
597
601
  disabled: ne(le(o.disabled))
598
- }), (l, m) => (n(), c("div", Rt, [
599
- e("fieldset", Et, [
600
- e("legend", Lt, [
601
- e("h3", Tt, u(l.heading), 1)
602
+ }), (l, m) => (n(), c("div", Ot, [
603
+ e("fieldset", jt, [
604
+ e("legend", Gt, [
605
+ e("h3", Pt, u(l.heading), 1)
602
606
  ]),
603
- e("div", Ot, [
607
+ e("div", qt, [
604
608
  _(l.$slots, "default")
605
609
  ])
606
610
  ])
607
611
  ]));
608
612
  }
609
- }), X = (a) => (H("data-v-d28d341e"), a = a(), U(), a), Gt = { class: "m-form-group" }, Pt = { class: "m-label" }, qt = ["value"], Ht = /* @__PURE__ */ X(() => /* @__PURE__ */ e("svg", {
613
+ }), X = (a) => (H("data-v-d28d341e"), a = a(), U(), a), Ut = { class: "m-form-group" }, Nt = { class: "m-label" }, Wt = ["value"], Dt = /* @__PURE__ */ X(() => /* @__PURE__ */ e("svg", {
610
614
  "aria-hidden": "true",
611
615
  class: "icon"
612
616
  }, [
613
617
  /* @__PURE__ */ e("use", { "xlink:href": "#icon-chevron-down" })
614
- ], -1)), Ut = /* @__PURE__ */ X(() => /* @__PURE__ */ e("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), Nt = [
615
- Ht,
616
- Ut
617
- ], Wt = ["onMouseenter", "onClick"], zt = {
618
+ ], -1)), zt = /* @__PURE__ */ X(() => /* @__PURE__ */ e("span", { class: "visually-hidden" }, "Auswahlliste öffnen", -1)), Ft = [
619
+ Dt,
620
+ zt
621
+ ], Kt = ["onMouseenter", "onClick"], Xt = {
618
622
  key: 0,
619
623
  class: "m-hint"
620
- }, Dt = /* @__PURE__ */ h({
624
+ }, Jt = /* @__PURE__ */ h({
621
625
  __name: "MucSelect",
622
626
  props: /* @__PURE__ */ C({
623
627
  items: {},
@@ -640,15 +644,15 @@ const ie = ["href"], M = /* @__PURE__ */ h({
640
644
  typeof t.value == "object" && (t.value = t.value.join(" ")), t.value = t.value === p ? "" : p;
641
645
  }, w = (p) => {
642
646
  typeof t.value == "string" && (t.value = [t.value]), t.value = t.value.includes(p) ? t.value.filter((P) => P !== p) : [...t.value, p];
643
- }, y = r(() => typeof t.value == "string" ? t.value : t.value.join(l.multiple ? ", " : " ")), d = (p) => p === i.value ? "active" : "", S = (p) => t.value.includes(p) ? "selected" : "", I = () => i.value = "", G = r(
647
+ }, y = r(() => typeof t.value == "string" ? t.value : t.value.join(l.multiple ? ", " : " ")), d = (p) => p === i.value ? "active" : "", I = (p) => t.value.includes(p) ? "selected" : "", S = () => i.value = "", G = r(
644
648
  () => s.value ? "display-listbox" : ""
645
649
  ), J = r(
646
650
  () => l.multiple ? "m-input-wrapper--multiselect multiselect" : "m-input-wrapper--select"
647
651
  );
648
- return (p, P) => (n(), c("div", Gt, [
649
- e("label", Pt, u(p.label), 1),
652
+ return (p, P) => (n(), c("div", Ut, [
653
+ e("label", Nt, u(p.label), 1),
650
654
  e("div", {
651
- class: b(["m-input-wrapper", J.value])
655
+ class: g(["m-input-wrapper", J.value])
652
656
  }, [
653
657
  e("input", {
654
658
  type: "text",
@@ -656,34 +660,34 @@ const ie = ["href"], M = /* @__PURE__ */ h({
656
660
  value: y.value,
657
661
  onClick: m,
658
662
  readonly: ""
659
- }, null, 8, qt),
663
+ }, null, 8, Wt),
660
664
  e("span", {
661
665
  class: "m-input__trigger",
662
666
  onClick: m
663
- }, Nt),
667
+ }, Ft),
664
668
  e("ul", {
665
- class: b(["listbox", G.value]),
666
- onMouseleave: I
669
+ class: g(["listbox", G.value]),
670
+ onMouseleave: S
667
671
  }, [
668
672
  (n(!0), c(E, null, L(l.items, (x, Q) => (n(), c("li", {
669
673
  key: Q,
670
- class: b(["option", [d(x), S(x)]]),
674
+ class: g(["option", [d(x), I(x)]]),
671
675
  onMouseenter: (Y) => i.value = x,
672
676
  onClick: (Y) => f(x)
673
- }, u(x), 43, Wt))), 128))
677
+ }, u(x), 43, Kt))), 128))
674
678
  ], 34)
675
679
  ], 2),
676
- p.hint ? (n(), c("p", zt, u(p.hint), 1)) : g("", !0)
680
+ p.hint ? (n(), c("p", Xt, u(p.hint), 1)) : $("", !0)
677
681
  ]));
678
682
  }
679
- }), Ft = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-d28d341e"]]), Kt = { class: "m-form-group has-error" }, Xt = {
683
+ }), Qt = /* @__PURE__ */ V(Jt, [["__scopeId", "data-v-d28d341e"]]), Yt = { class: "m-form-group has-error" }, Zt = {
680
684
  for: "textarea",
681
685
  class: "m-label"
682
- }, Jt = {
686
+ }, es = {
683
687
  key: 0,
684
688
  "aria-hidden": "true",
685
689
  class: "mandatory"
686
- }, Qt = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "(erforderlich)", -1), Yt = { class: "m-error-message" }, Zt = { class: "m-input-wrapper" }, es = ["rows", "placeholder"], ts = { class: "m-hint" }, ss = /* @__PURE__ */ h({
690
+ }, ts = /* @__PURE__ */ e("span", { class: "visually-hidden" }, "(erforderlich)", -1), ss = { class: "m-error-message" }, os = { class: "m-input-wrapper" }, as = ["rows", "placeholder"], ns = { class: "m-hint" }, ls = /* @__PURE__ */ h({
687
691
  __name: "MucTextArea",
688
692
  props: /* @__PURE__ */ C({
689
693
  errorMsg: {},
@@ -699,39 +703,39 @@ const ie = ["href"], M = /* @__PURE__ */ h({
699
703
  emits: ["update:modelValue"],
700
704
  setup(a) {
701
705
  const t = T(a, "modelValue");
702
- return (s, o) => (n(), c("div", Kt, [
703
- e("label", Xt, [
704
- $(u(s.label) + " ", 1),
705
- s.required ? (n(), c("span", Jt, [
706
- $(" * "),
707
- Qt
708
- ])) : g("", !0)
706
+ return (s, o) => (n(), c("div", Yt, [
707
+ e("label", Zt, [
708
+ b(u(s.label) + " ", 1),
709
+ s.required ? (n(), c("span", es, [
710
+ b(" * "),
711
+ ts
712
+ ])) : $("", !0)
709
713
  ]),
710
- e("p", Yt, u(s.errorMsg), 1),
711
- e("div", Zt, [
712
- z(e("textarea", {
714
+ e("p", ss, u(s.errorMsg), 1),
715
+ e("div", os, [
716
+ D(e("textarea", {
713
717
  class: "m-textarea",
714
718
  rows: s.rows,
715
719
  "aria-describedby": "textarea input",
716
720
  placeholder: s.placeholder,
717
721
  "onUpdate:modelValue": o[0] || (o[0] = (i) => t.value = i)
718
- }, null, 8, es), [
722
+ }, null, 8, as), [
719
723
  [ce, t.value]
720
724
  ])
721
725
  ]),
722
- e("p", ts, u(s.hint), 1)
726
+ e("p", ns, u(s.hint), 1)
723
727
  ]));
724
728
  }
725
- }), os = {
729
+ }), cs = {
726
730
  class: "m-intro m-intro-static-image",
727
731
  style: { "background-color": "var(--color-neutrals-blue-xlight)" }
728
- }, as = { class: "container" }, ns = { style: { width: "66.6%" } }, ls = {
732
+ }, is = { class: "container" }, rs = { style: { width: "66.6%" } }, us = {
729
733
  key: 0,
730
734
  class: "m-intro-vertical__tagline"
731
- }, cs = { class: "m-intro-vertical__title" }, is = {
735
+ }, ds = { class: "m-intro-vertical__title" }, _s = {
732
736
  key: 0,
733
737
  class: "muc-divider"
734
- }, rs = { class: "m-intro-vertical__content" }, us = { style: { "padding-bottom": "32px" } }, ds = /* @__PURE__ */ h({
738
+ }, ms = { class: "m-intro-vertical__content" }, ps = { style: { "padding-bottom": "32px" } }, hs = /* @__PURE__ */ h({
735
739
  __name: "MucIntro",
736
740
  props: {
737
741
  title: {},
@@ -739,16 +743,16 @@ const ie = ["href"], M = /* @__PURE__ */ h({
739
743
  divider: { type: Boolean }
740
744
  },
741
745
  setup(a) {
742
- return (t, s) => (n(), c("div", os, [
743
- e("div", as, [
744
- e("div", ns, [
746
+ return (t, s) => (n(), c("div", cs, [
747
+ e("div", is, [
748
+ e("div", rs, [
745
749
  e("div", null, [
746
- t.tagline ? (n(), c("p", ls, u(t.tagline), 1)) : g("", !0),
747
- e("h1", cs, u(t.title), 1)
750
+ t.tagline ? (n(), c("p", us, u(t.tagline), 1)) : $("", !0),
751
+ e("h1", ds, u(t.title), 1)
748
752
  ]),
749
- t.divider ? (n(), c("div", is)) : g("", !0),
750
- e("div", rs, [
751
- e("p", us, [
753
+ t.divider ? (n(), c("div", _s)) : $("", !0),
754
+ e("div", ms, [
755
+ e("p", ps, [
752
756
  _(t.$slots, "default", {}, void 0, !0)
753
757
  ])
754
758
  ])
@@ -756,7 +760,7 @@ const ie = ["href"], M = /* @__PURE__ */ h({
756
760
  ])
757
761
  ]));
758
762
  }
759
- }), _s = /* @__PURE__ */ V(ds, [["__scopeId", "data-v-9ad3adc7"]]), ms = ["href", "target"], ps = /* @__PURE__ */ h({
763
+ }), vs = /* @__PURE__ */ V(hs, [["__scopeId", "data-v-9ad3adc7"]]), fs = ["href", "target"], $s = /* @__PURE__ */ h({
760
764
  __name: "MucLink",
761
765
  props: {
762
766
  label: {},
@@ -772,62 +776,64 @@ const ie = ["href"], M = /* @__PURE__ */ h({
772
776
  return (o, i) => (n(), c("a", {
773
777
  href: o.href,
774
778
  target: o.target,
775
- class: b(["m-link", s.value])
779
+ class: g(["m-link", s.value])
776
780
  }, [
777
- $(u(o.label) + " ", 1),
781
+ b(u(o.label) + " ", 1),
778
782
  _(o.$slots, "icon", {}, () => [
779
783
  o.icon ? (n(), j(k(M), {
780
784
  key: 0,
781
785
  icon: o.icon,
782
786
  class: "icon icon--after"
783
- }, null, 8, ["icon"])) : g("", !0)
787
+ }, null, 8, ["icon"])) : $("", !0)
784
788
  ])
785
- ], 10, ms));
789
+ ], 10, fs));
786
790
  }
787
791
  }), q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
788
792
  __proto__: null,
789
793
  MucBanner: _e,
790
- MucButton: D,
794
+ MucButton: z,
791
795
  MucCallout: ke,
792
796
  MucCard: Ve,
793
797
  MucCardContainer: Re,
794
- MucCheckbox: Ze,
795
- MucCheckboxGroup: it,
798
+ MucCheckbox: ot,
799
+ MucCheckboxGroup: _t,
796
800
  MucComment: F,
797
801
  MucCommentText: Je,
798
- MucErrorList: mt,
802
+ MucDivider: et,
803
+ MucErrorList: ft,
799
804
  MucIcon: M,
800
- MucInput: It,
801
- MucIntro: _s,
802
- MucLink: ps,
803
- MucRadioButton: At,
804
- MucRadioButtonGroup: jt,
805
- MucSelect: Ft,
806
- MucTextArea: ss
805
+ MucInput: At,
806
+ MucIntro: vs,
807
+ MucLink: $s,
808
+ MucRadioButton: Tt,
809
+ MucRadioButtonGroup: Ht,
810
+ MucSelect: Qt,
811
+ MucTextArea: ls
807
812
  }, Symbol.toStringTag, { value: "Module" }));
808
- function hs(a) {
813
+ function bs(a) {
809
814
  for (const t in q)
810
815
  a.component(t, q[t]);
811
816
  }
812
- const fs = { install: hs };
817
+ const ys = { install: bs };
813
818
  export {
814
819
  _e as MucBanner,
815
- D as MucButton,
820
+ z as MucButton,
816
821
  ke as MucCallout,
817
822
  Ve as MucCard,
818
823
  Re as MucCardContainer,
819
- Ze as MucCheckbox,
820
- it as MucCheckboxGroup,
824
+ ot as MucCheckbox,
825
+ _t as MucCheckboxGroup,
821
826
  F as MucComment,
822
827
  Je as MucCommentText,
823
- mt as MucErrorList,
828
+ et as MucDivider,
829
+ ft as MucErrorList,
824
830
  M as MucIcon,
825
- It as MucInput,
826
- _s as MucIntro,
827
- ps as MucLink,
828
- At as MucRadioButton,
829
- jt as MucRadioButtonGroup,
830
- Ft as MucSelect,
831
- ss as MucTextArea,
832
- fs as default
831
+ At as MucInput,
832
+ vs as MucIntro,
833
+ $s as MucLink,
834
+ Tt as MucRadioButton,
835
+ Ht as MucRadioButtonGroup,
836
+ Qt as MucSelect,
837
+ ls as MucTextArea,
838
+ ys as default
833
839
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .m-banner--success[data-v-53bc7eca]{background-color:#f1f6f3;border-bottom:1px solid #3a7f53}.m-callout--success[data-v-e6cf4104]{background-color:#f1f6f3;border-color:#95b9a2}.m-callout--success .m-callout__icon[data-v-e6cf4104]{background-color:#3a7f53;box-shadow:0 .3125rem .625rem #005a9f33}.m-callout--error[data-v-e6cf4104]{background-color:#f8f2f2;border-color:#c79a9b}.m-callout--error .m-callout__icon[data-v-e6cf4104]{background-color:#984447;box-shadow:0 .3125rem .625rem #005a9f33}.card[data-v-acf0a1dd]{cursor:pointer;border:solid 1px var(--color-neutrals-blue);border-bottom:solid 5px var(--color-brand-main-blue);transition:background-color ease-in .15s}.card[data-v-acf0a1dd]:hover{background-color:#f1f1f1}.card-content[data-v-acf0a1dd]{padding:32px 24px}.card-header[data-v-acf0a1dd]{display:flex}.card-tagline[data-v-acf0a1dd]{font-size:16px;font-family:Open Sans,sans-serif;color:#005a9f;font-weight:700;line-height:24px;word-wrap:break-word;padding-bottom:4px}.muc-divider[data-v-acf0a1dd]{margin-top:16px;margin-bottom:16px}@media all and (min-width: 992px){.card-container[data-v-6740df8f]{padding-left:0;padding-right:0;display:grid;grid-template-columns:repeat(auto-fit,384px);grid-column-gap:32px;grid-row-gap:32px}}@media all and (max-width: 992px){.card-container[data-v-6740df8f]{padding-left:0;padding-right:0;display:inline-grid;grid-template-columns:1fr;grid-row-gap:32px}}.display-listbox[data-v-d28d341e]{display:block!important}.muc-divider[data-v-9ad3adc7]{margin-top:8px;margin-bottom:16px}
1
+ .m-banner--success[data-v-53bc7eca]{background-color:#f1f6f3;border-bottom:1px solid #3a7f53}.m-callout--success[data-v-e6cf4104]{background-color:#f1f6f3;border-color:#95b9a2}.m-callout--success .m-callout__icon[data-v-e6cf4104]{background-color:#3a7f53;box-shadow:0 .3125rem .625rem #005a9f33}.m-callout--error[data-v-e6cf4104]{background-color:#f8f2f2;border-color:#c79a9b}.m-callout--error .m-callout__icon[data-v-e6cf4104]{background-color:#984447;box-shadow:0 .3125rem .625rem #005a9f33}.card[data-v-acf0a1dd]{cursor:pointer;border:solid 1px var(--color-neutrals-blue);border-bottom:solid 5px var(--color-brand-main-blue);transition:background-color ease-in .15s}.card[data-v-acf0a1dd]:hover{background-color:#f1f1f1}.card-content[data-v-acf0a1dd]{padding:32px 24px}.card-header[data-v-acf0a1dd]{display:flex}.card-tagline[data-v-acf0a1dd]{font-size:16px;font-family:Open Sans,sans-serif;color:#005a9f;font-weight:700;line-height:24px;word-wrap:break-word;padding-bottom:4px}.muc-divider[data-v-acf0a1dd]{margin-top:16px;margin-bottom:16px}@media all and (min-width: 992px){.card-container[data-v-6740df8f]{padding-left:0;padding-right:0;display:grid;grid-template-columns:repeat(auto-fit,384px);grid-column-gap:32px;grid-row-gap:32px}}@media all and (max-width: 992px){.card-container[data-v-6740df8f]{padding-left:0;padding-right:0;display:inline-grid;grid-template-columns:1fr;grid-row-gap:32px}}.divider-border[data-v-a2b37f5b]{border-bottom:1px solid var(--color-neutrals-blue)}.display-listbox[data-v-d28d341e]{display:block!important}.muc-divider[data-v-9ad3adc7]{margin-top:8px;margin-bottom:16px}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "FabianWilms",
4
4
  "description": "A vue component library of some of the components available from https://patternlab.muenchen.space",
5
5
  "license": "MIT",
6
- "version": "1.13.0-beta.1",
6
+ "version": "1.13.0-beta.2",
7
7
  "private": false,
8
8
  "module": "./dist/muc-patternlab-vue.es.js",
9
9
  "types": "./dist/types/index.d.ts",
@@ -0,0 +1,19 @@
1
+ import MucDivider from "./MucDivider.vue";
2
+
3
+ export default {
4
+ component: MucDivider,
5
+ title: "MucDivider",
6
+ tags: ["autodocs"],
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: `The \`muc-divider\` is a trivial divider.
11
+
12
+ [🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-components-all)
13
+ `,
14
+ },
15
+ },
16
+ },
17
+ };
18
+
19
+ export const Default = {};
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <hr class="divider-border" />
3
+ </template>
4
+
5
+ <style scoped>
6
+ .divider-border {
7
+ border-bottom: 1px solid var(--color-neutrals-blue);
8
+ }
9
+ </style>
@@ -0,0 +1,3 @@
1
+ import MucDivider from "./MucDivider.vue";
2
+
3
+ export { MucDivider };
@@ -3,6 +3,7 @@ import { MucButton } from "./Button";
3
3
  import { MucCallout } from "./Callout";
4
4
  import { MucCard, MucCardContainer } from "./Card";
5
5
  import { MucComment, MucCommentText } from "./Comment/";
6
+ import { MucDivider } from "./Divider";
6
7
  import {
7
8
  MucCheckbox,
8
9
  MucCheckboxGroup,
@@ -35,5 +36,6 @@ export {
35
36
  MucSelect,
36
37
  MucErrorList,
37
38
  MucIcon,
39
+ MucDivider,
38
40
  MucLink,
39
41
  };