@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.
- package/dist/components/Banner/MucBanner.vue.d.ts +24 -0
- package/dist/components/Banner/index.d.ts +46 -0
- package/dist/components/Button/MucButton.vue.d.ts +21 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Intro/MucIntro.vue.d.ts +17 -0
- package/dist/components/Intro/index.d.ts +3 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/index.d.ts +5 -3
- package/dist/main.d.ts +1 -0
- package/dist/muc-patternlab-vue.es.js +116 -0
- package/dist/style.css +1 -0
- package/dist/types/App.vue.d.ts +2 -0
- package/dist/types/components/Banner/MucBanner.vue.d.ts +23 -0
- package/dist/types/components/Banner/index.d.ts +46 -0
- package/dist/types/components/Button/MucButton.vue.d.ts +21 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Intro/MucIntro.vue.d.ts +17 -0
- package/dist/types/components/Intro/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/main.d.ts +1 -0
- package/package.json +8 -6
- package/src/App.vue +69 -0
- package/src/components/Banner/MucBanner.vue +73 -0
- package/src/components/Banner/index.ts +3 -0
- package/src/components/Button/MucButton.vue +18 -0
- package/src/components/Button/index.ts +3 -0
- package/src/components/Intro/MucIntro.vue +24 -0
- package/src/components/Intro/index.ts +3 -0
- package/src/components/index.ts +5 -0
- package/src/index.ts +15 -0
- package/src/main.ts +4 -0
- package/dist/Banner/MucBanner.vue.d.ts +0 -2
- package/dist/Button/MucButton.vue.d.ts +0 -2
- package/dist/Intro/MucIntro.vue.d.ts +0 -2
- package/dist/muc-patternlab-vue.js +0 -103
- package/dist/muc-patternlab-vue.umd.cjs +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
type bannerType = "info" | "warning" | "emergency";
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
type: {
|
|
5
|
+
type: PropType<bannerType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
type: {
|
|
10
|
+
type: PropType<bannerType>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
type: bannerType;
|
|
15
|
+
}, {}>, {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -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,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 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
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.0.1-beta.
|
|
6
|
+
"version": "1.0.1-beta.5",
|
|
7
7
|
"private": false,
|
|
8
8
|
"type": "module",
|
|
9
|
-
"
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
9
|
+
"module": "./dist/muc-patternlab-vue.es.js",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/it-at-m/muc-patternlab-vue"
|
|
@@ -18,16 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"types": "./dist/types/index.d.ts",
|
|
22
|
+
"import": "./dist/muc-patternlab-vue.es.js"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
+
"src",
|
|
26
27
|
"dist"
|
|
27
28
|
],
|
|
28
29
|
"scripts": {
|
|
29
30
|
"dev": "vite",
|
|
30
|
-
"build": "npm run type-check && npm run build-only",
|
|
31
|
+
"build": "rimraf dist && npm run type-check && npm run build-only",
|
|
31
32
|
"preview": "vite preview",
|
|
32
33
|
"test:unit": "vitest",
|
|
33
34
|
"build-only": "vite build",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"jsdom": "^24.0.0",
|
|
57
58
|
"npm-run-all2": "^6.1.1",
|
|
58
59
|
"prettier": "^3.0.3",
|
|
60
|
+
"rimraf": "^5.0.1",
|
|
59
61
|
"semantic-release": "^23.0.0",
|
|
60
62
|
"typescript": "~5.3.0",
|
|
61
63
|
"vite": "^5.0.11",
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import sprites from "../public/assets/temporary/muc-icons.svg?raw";
|
|
3
|
+
|
|
4
|
+
import MucButton from './components/Button/MucButton.vue';
|
|
5
|
+
import MucBanner from './components/Banner/MucBanner.vue';
|
|
6
|
+
import MucIntro from "./components/Intro/MucIntro.vue";
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div>
|
|
11
|
+
<svg
|
|
12
|
+
style="display: none;"
|
|
13
|
+
v-html="sprites">
|
|
14
|
+
</svg>
|
|
15
|
+
|
|
16
|
+
<table>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>MucButton</th>
|
|
19
|
+
<td><muc-button>Test Me!</muc-button></td>
|
|
20
|
+
</tr>
|
|
21
|
+
<tr>
|
|
22
|
+
<th>MucBanner info</th>
|
|
23
|
+
<td>
|
|
24
|
+
<muc-banner type="info">
|
|
25
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt <a href="#">Mehr erfahren</a>
|
|
26
|
+
</muc-banner>
|
|
27
|
+
</td>
|
|
28
|
+
</tr>
|
|
29
|
+
<tr>
|
|
30
|
+
<th>MucBanner warning</th>
|
|
31
|
+
<td>
|
|
32
|
+
<muc-banner type="warning">
|
|
33
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt <a href="#">Mehr erfahren</a>
|
|
34
|
+
</muc-banner>
|
|
35
|
+
</td>
|
|
36
|
+
</tr>
|
|
37
|
+
<tr>
|
|
38
|
+
<th>MucBanner emergency</th>
|
|
39
|
+
<td>
|
|
40
|
+
<muc-banner type="emergency">
|
|
41
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt <a href="#">Mehr erfahren</a>
|
|
42
|
+
</muc-banner>
|
|
43
|
+
</td>
|
|
44
|
+
</tr>
|
|
45
|
+
<tr>
|
|
46
|
+
<th>MucIntro</th>
|
|
47
|
+
<td>
|
|
48
|
+
<muc-intro title="Testtitel">
|
|
49
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt <a href="#">Mehr erfahren</a>
|
|
50
|
+
</muc-intro>
|
|
51
|
+
</td>
|
|
52
|
+
</tr>
|
|
53
|
+
</table>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<style>
|
|
58
|
+
@import "../public/assets/temporary/muenchende-style.css";
|
|
59
|
+
|
|
60
|
+
table {
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: 100%;
|
|
63
|
+
border: 1px solid lightgray;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
th, td {
|
|
67
|
+
padding: 8px;
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {computed, type PropType} from "vue";
|
|
3
|
+
|
|
4
|
+
type bannerType = "info" | "warning" | "emergency";
|
|
5
|
+
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
type: {
|
|
8
|
+
type: String as PropType<bannerType>,
|
|
9
|
+
default: "info"
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const typeClass = computed(() => {
|
|
14
|
+
switch (props.type) {
|
|
15
|
+
case "info":
|
|
16
|
+
return "m-banner--info";
|
|
17
|
+
case "warning":
|
|
18
|
+
return "m-banner--emergency";
|
|
19
|
+
case "emergency":
|
|
20
|
+
return "m-banner--warning";
|
|
21
|
+
default:
|
|
22
|
+
return "m-banner--info";
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const typeRole = computed(() => {
|
|
27
|
+
switch (props.type) {
|
|
28
|
+
case "info":
|
|
29
|
+
return "dialog";
|
|
30
|
+
case "warning":
|
|
31
|
+
return "alert";
|
|
32
|
+
case "emergency":
|
|
33
|
+
return "alert";
|
|
34
|
+
default:
|
|
35
|
+
return "dialog";
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const typeAriaLabel = computed(() => {
|
|
40
|
+
switch (props.type) {
|
|
41
|
+
case "info":
|
|
42
|
+
return "Information";
|
|
43
|
+
case "warning":
|
|
44
|
+
return "Warnung";
|
|
45
|
+
case "emergency":
|
|
46
|
+
return "Emergency";
|
|
47
|
+
default:
|
|
48
|
+
return "Information";
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<template>
|
|
54
|
+
<div>
|
|
55
|
+
<div>
|
|
56
|
+
<div
|
|
57
|
+
class="m-banner"
|
|
58
|
+
:class="typeClass"
|
|
59
|
+
:role="typeRole"
|
|
60
|
+
:aria-label="typeAriaLabel"
|
|
61
|
+
>
|
|
62
|
+
<div class="container-fluid">
|
|
63
|
+
<svg class="icon">
|
|
64
|
+
<use href="#icon-information"/>
|
|
65
|
+
</svg>
|
|
66
|
+
<p>
|
|
67
|
+
<slot/>
|
|
68
|
+
</p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
expanded: {
|
|
4
|
+
type: Boolean,
|
|
5
|
+
default: false
|
|
6
|
+
}
|
|
7
|
+
})
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<button class="m-button m-button--primary m-button--animated-right">
|
|
12
|
+
<slot />
|
|
13
|
+
</button>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style scoped>
|
|
17
|
+
|
|
18
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps({
|
|
3
|
+
title: {
|
|
4
|
+
type: String
|
|
5
|
+
}
|
|
6
|
+
})
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<div class="m-intro m-intro-summary-text">
|
|
11
|
+
<div class="container">
|
|
12
|
+
<div class="m-intro-summary-text__body">
|
|
13
|
+
<div class="m-intro-summary-text__grid">
|
|
14
|
+
<div class="m-intro-summary-text__content">
|
|
15
|
+
<h1 class="m-intro-summary-text__title">{{ title }}</h1>
|
|
16
|
+
<p>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</p>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type App } from 'vue'
|
|
2
|
+
import * as components from './components'
|
|
3
|
+
|
|
4
|
+
function install (app: App) {
|
|
5
|
+
for (const key in components) {
|
|
6
|
+
// @ts-expect-error
|
|
7
|
+
app.component(key, components[key])
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
import "../public/assets/temporary/muenchende-style.css";
|
|
12
|
+
|
|
13
|
+
export default { install }
|
|
14
|
+
|
|
15
|
+
export * from './components'
|
package/src/main.ts
ADDED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as a, createElementBlock as c, renderSlot as i, computed as s, createElementVNode as e, normalizeClass as _, toDisplayString as d } from "vue";
|
|
2
|
-
const p = { class: "m-button m-button--primary m-button--animated-right" }, f = /* @__PURE__ */ o({
|
|
3
|
-
__name: "MucButton",
|
|
4
|
-
props: {
|
|
5
|
-
expanded: {
|
|
6
|
-
type: Boolean,
|
|
7
|
-
default: !1
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
setup(n) {
|
|
11
|
-
return (t, r) => (a(), c("button", p, [
|
|
12
|
-
i(t.$slots, "default")
|
|
13
|
-
]));
|
|
14
|
-
}
|
|
15
|
-
}), y = ["role", "aria-label"], h = { class: "container-fluid" }, g = /* @__PURE__ */ e("svg", { class: "icon" }, [
|
|
16
|
-
/* @__PURE__ */ e("use", { href: "#icon-information" })
|
|
17
|
-
], -1), b = /* @__PURE__ */ o({
|
|
18
|
-
__name: "MucBanner",
|
|
19
|
-
props: {
|
|
20
|
-
type: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "info"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(n) {
|
|
26
|
-
const t = n, r = s(() => {
|
|
27
|
-
switch (t.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
|
-
}), l = s(() => {
|
|
38
|
-
switch (t.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
|
-
}), u = s(() => {
|
|
49
|
-
switch (t.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 (m, S) => (a(), c("div", null, [
|
|
61
|
-
e("div", null, [
|
|
62
|
-
e("div", {
|
|
63
|
-
class: _(["m-banner", r.value]),
|
|
64
|
-
role: l.value,
|
|
65
|
-
"aria-label": u.value
|
|
66
|
-
}, [
|
|
67
|
-
e("div", h, [
|
|
68
|
-
g,
|
|
69
|
-
e("p", null, [
|
|
70
|
-
i(m.$slots, "default")
|
|
71
|
-
])
|
|
72
|
-
])
|
|
73
|
-
], 10, y)
|
|
74
|
-
])
|
|
75
|
-
]));
|
|
76
|
-
}
|
|
77
|
-
}), v = { class: "m-intro m-intro-summary-text" }, $ = { class: "container" }, x = { class: "m-intro-summary-text__body" }, w = { class: "m-intro-summary-text__grid" }, B = { class: "m-intro-summary-text__content" }, M = { class: "m-intro-summary-text__title" }, I = /* @__PURE__ */ o({
|
|
78
|
-
__name: "MucIntro",
|
|
79
|
-
props: {
|
|
80
|
-
title: {
|
|
81
|
-
type: String
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
setup(n) {
|
|
85
|
-
return (t, r) => (a(), c("div", v, [
|
|
86
|
-
e("div", $, [
|
|
87
|
-
e("div", x, [
|
|
88
|
-
e("div", w, [
|
|
89
|
-
e("div", B, [
|
|
90
|
-
e("h1", M, d(n.title), 1),
|
|
91
|
-
e("p", null, [
|
|
92
|
-
i(t.$slots, "default")
|
|
93
|
-
])
|
|
94
|
-
])
|
|
95
|
-
])
|
|
96
|
-
])
|
|
97
|
-
])
|
|
98
|
-
]));
|
|
99
|
-
}
|
|
100
|
-
}), E = { MucButton: f, MucBanner: b, MucIntro: I };
|
|
101
|
-
export {
|
|
102
|
-
E as default
|
|
103
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e["muc-patternlab-vue"]=n(e.Vue))})(this,function(e){"use strict";const n={class:"m-button m-button--primary m-button--animated-right"},a=e.defineComponent({__name:"MucButton",props:{expanded:{type:Boolean,default:!1}},setup(o){return(t,r)=>(e.openBlock(),e.createElementBlock("button",n,[e.renderSlot(t.$slots,"default")]))}}),s=["role","aria-label"],c={class:"container-fluid"},i=e.createElementVNode("svg",{class:"icon"},[e.createElementVNode("use",{href:"#icon-information"})],-1),l=e.defineComponent({__name:"MucBanner",props:{type:{type:String,default:"info"}},setup(o){const t=o,r=e.computed(()=>{switch(t.type){case"info":return"m-banner--info";case"warning":return"m-banner--emergency";case"emergency":return"m-banner--warning";default:return"m-banner--info"}}),y=e.computed(()=>{switch(t.type){case"info":return"dialog";case"warning":return"alert";case"emergency":return"alert";default:return"dialog"}}),h=e.computed(()=>{switch(t.type){case"info":return"Information";case"warning":return"Warnung";case"emergency":return"Emergency";default:return"Information"}});return(g,V)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(["m-banner",r.value]),role:y.value,"aria-label":h.value},[e.createElementVNode("div",c,[i,e.createElementVNode("p",null,[e.renderSlot(g.$slots,"default")])])],10,s)])]))}}),d={class:"m-intro m-intro-summary-text"},m={class:"container"},_={class:"m-intro-summary-text__body"},u={class:"m-intro-summary-text__grid"},p={class:"m-intro-summary-text__content"},f={class:"m-intro-summary-text__title"};return{MucButton:a,MucBanner:l,MucIntro:e.defineComponent({__name:"MucIntro",props:{title:{type:String}},setup(o){return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",m,[e.createElementVNode("div",_,[e.createElementVNode("div",u,[e.createElementVNode("div",p,[e.createElementVNode("h1",f,e.toDisplayString(o.title),1),e.createElementVNode("p",null,[e.renderSlot(t.$slots,"default")])])])])])]))}})}});
|