@muenchen/muc-patternlab-vue 1.0.1-beta.3 → 1.0.1-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 (37) hide show
  1. package/dist/components/Banner/MucBanner.vue.d.ts +24 -0
  2. package/dist/components/Banner/index.d.ts +46 -0
  3. package/dist/components/Button/MucButton.vue.d.ts +21 -0
  4. package/dist/components/Button/index.d.ts +3 -0
  5. package/dist/components/Intro/MucIntro.vue.d.ts +17 -0
  6. package/dist/components/Intro/index.d.ts +3 -0
  7. package/dist/components/index.d.ts +5 -0
  8. package/dist/index.d.ts +5 -3
  9. package/dist/main.d.ts +1 -0
  10. package/dist/muc-patternlab-vue.es.js +116 -0
  11. package/dist/style.css +1 -0
  12. package/dist/types/App.vue.d.ts +2 -0
  13. package/dist/types/components/Banner/MucBanner.vue.d.ts +23 -0
  14. package/dist/types/components/Banner/index.d.ts +46 -0
  15. package/dist/types/components/Button/MucButton.vue.d.ts +21 -0
  16. package/dist/types/components/Button/index.d.ts +2 -0
  17. package/dist/types/components/Intro/MucIntro.vue.d.ts +17 -0
  18. package/dist/types/components/Intro/index.d.ts +2 -0
  19. package/dist/types/components/index.d.ts +4 -0
  20. package/dist/types/index.d.ts +8 -0
  21. package/dist/types/main.d.ts +1 -0
  22. package/package.json +8 -6
  23. package/src/App.vue +69 -0
  24. package/src/components/Banner/MucBanner.vue +73 -0
  25. package/src/components/Banner/index.ts +3 -0
  26. package/src/components/Button/MucButton.vue +18 -0
  27. package/src/components/Button/index.ts +3 -0
  28. package/src/components/Intro/MucIntro.vue +24 -0
  29. package/src/components/Intro/index.ts +3 -0
  30. package/src/components/index.ts +5 -0
  31. package/src/index.ts +15 -0
  32. package/src/main.ts +4 -0
  33. package/dist/Banner/MucBanner.vue.d.ts +0 -2
  34. package/dist/Button/MucButton.vue.d.ts +0 -2
  35. package/dist/Intro/MucIntro.vue.d.ts +0 -2
  36. package/dist/muc-patternlab-vue.js +0 -103
  37. package/dist/muc-patternlab-vue.umd.cjs +0 -1
@@ -0,0 +1,24 @@
1
+ import { PropType } from 'vue';
2
+
3
+ type bannerType = "info" | "warning" | "emergency";
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
5
+ type: {
6
+ type: PropType<bannerType>;
7
+ default: string;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ type: {
11
+ type: PropType<bannerType>;
12
+ default: string;
13
+ };
14
+ }>>, {
15
+ type: bannerType;
16
+ }, {}>, {
17
+ default?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,46 @@
1
+ declare const _default: {
2
+ MucBanner: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
4
+ type: {
5
+ type: import("vue").PropType<"info" | "warning" | "emergency">;
6
+ default: string;
7
+ };
8
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
9
+ type: {
10
+ type: import("vue").PropType<"info" | "warning" | "emergency">;
11
+ default: string;
12
+ };
13
+ }>>, {
14
+ type: "info" | "warning" | "emergency";
15
+ }, true, {}, {}, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<import("vue").ExtractPropTypes<{
23
+ type: {
24
+ type: import("vue").PropType<"info" | "warning" | "emergency">;
25
+ default: string;
26
+ };
27
+ }>>, {}, {}, {}, {}, {
28
+ type: "info" | "warning" | "emergency";
29
+ }>;
30
+ __isFragment?: undefined;
31
+ __isTeleport?: undefined;
32
+ __isSuspense?: undefined;
33
+ } & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
34
+ type: {
35
+ type: import("vue").PropType<"info" | "warning" | "emergency">;
36
+ default: string;
37
+ };
38
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
39
+ type: "info" | "warning" | "emergency";
40
+ }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
41
+ $slots: {
42
+ default?(_: {}): any;
43
+ };
44
+ });
45
+ };
46
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ expanded: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
+ expanded: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ }>>, {
12
+ expanded: boolean;
13
+ }, {}>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,3 @@
1
+ import { default as MucButton } from './MucButton.vue';
2
+
3
+ export { MucButton };
@@ -0,0 +1,17 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ title: {
3
+ type: StringConstructor;
4
+ };
5
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
+ title: {
7
+ type: StringConstructor;
8
+ };
9
+ }>>, {}, {}>, {
10
+ default?(_: {}): any;
11
+ }>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,3 @@
1
+ import { default as MucIntro } from './MucIntro.vue';
2
+
3
+ export { MucIntro };
@@ -0,0 +1,5 @@
1
+ import { default as MucIntro } from './Intro/MucIntro.vue';
2
+ import { default as MucBanner } from './Banner/MucBanner.vue';
3
+ import { default as MucButton } from './Button/MucButton.vue';
4
+
5
+ export { MucButton, MucBanner, MucIntro };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
+ import { App } from 'vue';
2
+
3
+ declare function install(app: App): void;
1
4
  declare const _default: {
2
- MucButton: any;
3
- MucBanner: any;
4
- MucIntro: any;
5
+ install: typeof install;
5
6
  };
6
7
  export default _default;
8
+ export * from './components';
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,116 @@
1
+ import { defineComponent as s, openBlock as a, createElementBlock as c, renderSlot as i, computed as o, createElementVNode as t, normalizeClass as d, toDisplayString as p } from "vue";
2
+ const f = { class: "m-button m-button--primary m-button--animated-right" }, y = /* @__PURE__ */ s({
3
+ __name: "MucButton",
4
+ props: {
5
+ expanded: {
6
+ type: Boolean,
7
+ default: !1
8
+ }
9
+ },
10
+ setup(n) {
11
+ return (e, r) => (a(), c("button", f, [
12
+ i(e.$slots, "default")
13
+ ]));
14
+ }
15
+ }), g = ["role", "aria-label"], h = { class: "container-fluid" }, b = /* @__PURE__ */ t("svg", { class: "icon" }, [
16
+ /* @__PURE__ */ t("use", { href: "#icon-information" })
17
+ ], -1), v = /* @__PURE__ */ s({
18
+ __name: "MucBanner",
19
+ props: {
20
+ type: {
21
+ type: String,
22
+ default: "info"
23
+ }
24
+ },
25
+ setup(n) {
26
+ const e = n, r = o(() => {
27
+ switch (e.type) {
28
+ case "info":
29
+ return "m-banner--info";
30
+ case "warning":
31
+ return "m-banner--emergency";
32
+ case "emergency":
33
+ return "m-banner--warning";
34
+ default:
35
+ return "m-banner--info";
36
+ }
37
+ }), u = o(() => {
38
+ switch (e.type) {
39
+ case "info":
40
+ return "dialog";
41
+ case "warning":
42
+ return "alert";
43
+ case "emergency":
44
+ return "alert";
45
+ default:
46
+ return "dialog";
47
+ }
48
+ }), m = o(() => {
49
+ switch (e.type) {
50
+ case "info":
51
+ return "Information";
52
+ case "warning":
53
+ return "Warnung";
54
+ case "emergency":
55
+ return "Emergency";
56
+ default:
57
+ return "Information";
58
+ }
59
+ });
60
+ return (_, C) => (a(), c("div", null, [
61
+ t("div", null, [
62
+ t("div", {
63
+ class: d(["m-banner", r.value]),
64
+ role: u.value,
65
+ "aria-label": m.value
66
+ }, [
67
+ t("div", h, [
68
+ b,
69
+ t("p", null, [
70
+ i(_.$slots, "default")
71
+ ])
72
+ ])
73
+ ], 10, g)
74
+ ])
75
+ ]));
76
+ }
77
+ }), M = { class: "m-intro m-intro-summary-text" }, B = { class: "container" }, $ = { class: "m-intro-summary-text__body" }, x = { class: "m-intro-summary-text__grid" }, w = { class: "m-intro-summary-text__content" }, S = { class: "m-intro-summary-text__title" }, I = /* @__PURE__ */ s({
78
+ __name: "MucIntro",
79
+ props: {
80
+ title: {
81
+ type: String
82
+ }
83
+ },
84
+ setup(n) {
85
+ return (e, r) => (a(), c("div", M, [
86
+ t("div", B, [
87
+ t("div", $, [
88
+ t("div", x, [
89
+ t("div", w, [
90
+ t("h1", S, p(n.title), 1),
91
+ t("p", null, [
92
+ i(e.$slots, "default")
93
+ ])
94
+ ])
95
+ ])
96
+ ])
97
+ ])
98
+ ]));
99
+ }
100
+ }), l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
101
+ __proto__: null,
102
+ MucBanner: v,
103
+ MucButton: y,
104
+ MucIntro: I
105
+ }, Symbol.toStringTag, { value: "Module" }));
106
+ function k(n) {
107
+ for (const e in l)
108
+ n.component(e, l[e]);
109
+ }
110
+ const j = { install: k };
111
+ export {
112
+ v as MucBanner,
113
+ y as MucButton,
114
+ I as MucIntro,
115
+ j as default
116
+ };