@muenchen/muc-patternlab-vue 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/assets/temporary/custom-style.css +1 -1
  2. package/dist/components/BuisnessHours/BusinessHourType.d.ts +25 -0
  3. package/dist/components/BuisnessHours/BusinessHours.stories.d.ts +116 -0
  4. package/dist/components/Button/MucButton.stories.d.ts +26 -0
  5. package/dist/components/Button/MucButton.vue.d.ts +15 -0
  6. package/dist/components/Comment/MucCommentText.stories.d.ts +93 -0
  7. package/dist/components/Comment/MucCommentText.vue.d.ts +2 -2
  8. package/dist/components/Icon/MucIcon.stories.d.ts +43 -0
  9. package/dist/components/Icon/MucIcon.vue.d.ts +29 -0
  10. package/dist/components/Icon/index.d.ts +3 -0
  11. package/dist/components/index.d.ts +2 -1
  12. package/dist/muc-patternlab-vue.es.js +168 -146
  13. package/dist/style.css +1 -1
  14. package/package.json +4 -5
  15. package/src/components/BuisnessHours/BusinessHourType.ts +28 -0
  16. package/src/components/BuisnessHours/BusinessHours.stories.ts +108 -0
  17. package/src/components/BuisnessHours/MucBusinessHours.vue +166 -0
  18. package/src/components/Button/MucButton.stories.ts +8 -0
  19. package/src/components/Button/MucButton.vue +14 -3
  20. package/src/components/Card/MucCard.stories.ts +1 -1
  21. package/src/components/Card/MucCardContainer.stories.ts +1 -1
  22. package/src/components/Card/MucCardContainer.vue +1 -1
  23. package/src/components/Comment/MucComment.stories.ts +2 -3
  24. package/src/components/Comment/MucCommentText.stories.ts +38 -0
  25. package/src/components/Comment/MucCommentText.vue +15 -7
  26. package/src/components/Icon/MucIcon.stories.ts +35 -0
  27. package/src/components/Icon/MucIcon.vue +23 -0
  28. package/src/components/Icon/index.ts +3 -0
  29. package/src/components/Intro/MucIntro.vue +10 -9
  30. package/src/components/index.ts +2 -0
  31. package/dist/types/components/Banner/MucBanner.stories.d.ts +0 -76
  32. package/dist/types/components/Banner/MucBanner.vue.d.ts +0 -52
  33. package/dist/types/components/Banner/index.d.ts +0 -2
  34. package/dist/types/components/Button/MucButton.stories.d.ts +0 -132
  35. package/dist/types/components/Button/MucButton.vue.d.ts +0 -78
  36. package/dist/types/components/Button/index.d.ts +0 -2
  37. package/dist/types/components/Callout/MucCallout.stories.d.ts +0 -89
  38. package/dist/types/components/Callout/MucCallout.vue.d.ts +0 -71
  39. package/dist/types/components/Callout/index.d.ts +0 -2
  40. package/dist/types/components/Card/MucCard.stories.d.ts +0 -165
  41. package/dist/types/components/Card/MucCard.vue.d.ts +0 -44
  42. package/dist/types/components/Card/MucCardContainer.stories.d.ts +0 -148
  43. package/dist/types/components/Card/MucCardContainer.vue.d.ts +0 -17
  44. package/dist/types/components/Card/index.d.ts +0 -3
  45. package/dist/types/components/Comment/CommentType.d.ts +0 -2
  46. package/dist/types/components/Comment/MucComment.stories.d.ts +0 -106
  47. package/dist/types/components/Comment/MucComment.vue.d.ts +0 -103
  48. package/dist/types/components/Comment/MucCommentText.vue.d.ts +0 -47
  49. package/dist/types/components/Comment/index.d.ts +0 -3
  50. package/dist/types/components/Intro/MucIntro.stories.d.ts +0 -97
  51. package/dist/types/components/Intro/MucIntro.vue.d.ts +0 -52
  52. package/dist/types/components/Intro/index.d.ts +0 -2
  53. package/dist/types/components/index.d.ts +0 -7
  54. package/dist/types/index.d.ts +0 -7
@@ -2,7 +2,7 @@
2
2
  * We need this css to ensure the correct patternlab
3
3
  * behaviour inside of a webcomponent.
4
4
  */
5
- :root {
5
+ :host {
6
6
  --color-brand-main-blue: #005A9F;
7
7
  --color-neutrals-blue: #BDD4EA;
8
8
  --color-neutrals-blue-xlight: #F2F6FA;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Shorthand notation of all seven days in german.
3
+ *
4
+ * @typedef {"Mo" | "Di" | "Mi" | "Do" | "Fr" | "Sa" | "So"} WeekDays
5
+ */
6
+ type WeekDays = "Mo" | "Di" | "Mi" | "Do" | "Fr" | "Sa" | "So";
7
+ /**
8
+ * @typedef {Object} OpeningHour
9
+ * @property {string} from - The start time of the opening period (in 'HH:mm' format).
10
+ * @property {string} to - The end time of the opening period (in 'HH:mm' format).
11
+ */
12
+ type OpeningHour = {
13
+ from: string;
14
+ to: string;
15
+ };
16
+ /**
17
+ * @typedef {Object} BusinessHourType
18
+ * @property {WeekDays} weekDay - The day of the week for which the opening hours apply.
19
+ * @property {OpeningHour[]} openingHours - A list of opening hours for the specified day of the week.
20
+ */
21
+ type BusinessHourType = {
22
+ weekDay: WeekDays;
23
+ openingHours: OpeningHour[];
24
+ };
25
+ export type { BusinessHourType, OpeningHour, WeekDays };
@@ -0,0 +1,116 @@
1
+ declare const _default: {
2
+ component: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
4
+ icon: {
5
+ type: import('vue').PropType<string>;
6
+ default: string;
7
+ };
8
+ businessHours: {
9
+ type: import('vue').PropType<import('./BusinessHourType').BusinessHourType[]>;
10
+ required: true;
11
+ };
12
+ toggleable: {
13
+ type: import('vue').PropType<boolean>;
14
+ default: boolean;
15
+ };
16
+ }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
17
+ icon: {
18
+ type: import('vue').PropType<string>;
19
+ default: string;
20
+ };
21
+ businessHours: {
22
+ type: import('vue').PropType<import('./BusinessHourType').BusinessHourType[]>;
23
+ required: true;
24
+ };
25
+ toggleable: {
26
+ type: import('vue').PropType<boolean>;
27
+ default: boolean;
28
+ };
29
+ }>>, {
30
+ icon: string;
31
+ toggleable: boolean;
32
+ }, true, {}, {}, {
33
+ P: {};
34
+ B: {};
35
+ D: {};
36
+ C: {};
37
+ M: {};
38
+ Defaults: {};
39
+ }, Readonly<import('vue').ExtractPropTypes<{
40
+ icon: {
41
+ type: import('vue').PropType<string>;
42
+ default: string;
43
+ };
44
+ businessHours: {
45
+ type: import('vue').PropType<import('./BusinessHourType').BusinessHourType[]>;
46
+ required: true;
47
+ };
48
+ toggleable: {
49
+ type: import('vue').PropType<boolean>;
50
+ default: boolean;
51
+ };
52
+ }>>, {}, {}, {}, {}, {
53
+ icon: string;
54
+ toggleable: boolean;
55
+ }>;
56
+ __isFragment?: undefined;
57
+ __isTeleport?: undefined;
58
+ __isSuspense?: undefined;
59
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
60
+ icon: {
61
+ type: import('vue').PropType<string>;
62
+ default: string;
63
+ };
64
+ businessHours: {
65
+ type: import('vue').PropType<import('./BusinessHourType').BusinessHourType[]>;
66
+ required: true;
67
+ };
68
+ toggleable: {
69
+ type: import('vue').PropType<boolean>;
70
+ default: boolean;
71
+ };
72
+ }>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
73
+ icon: string;
74
+ toggleable: boolean;
75
+ }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
76
+ $slots: Readonly<{
77
+ hint(): any;
78
+ }> & {
79
+ hint(): any;
80
+ };
81
+ });
82
+ title: string;
83
+ tags: string[];
84
+ parameters: {
85
+ docs: {
86
+ description: {
87
+ component: string;
88
+ };
89
+ };
90
+ };
91
+ };
92
+ export default _default;
93
+ export declare const Default: {
94
+ args: {
95
+ businessHours: {
96
+ weekDay: string;
97
+ openingHours: {
98
+ from: string;
99
+ to: string;
100
+ }[];
101
+ }[];
102
+ toggleable: boolean;
103
+ };
104
+ };
105
+ export declare const Fixed: {
106
+ args: {
107
+ toggleable: boolean;
108
+ businessHours: {
109
+ weekDay: string;
110
+ openingHours: {
111
+ from: string;
112
+ to: string;
113
+ }[];
114
+ }[];
115
+ };
116
+ };
@@ -12,6 +12,10 @@ declare const _default: {
12
12
  type: import('vue').PropType<boolean>;
13
13
  default: boolean;
14
14
  };
15
+ iconAnimated: {
16
+ type: import('vue').PropType<boolean>;
17
+ default: boolean;
18
+ };
15
19
  }>> & {
16
20
  onClick?: (() => any) | undefined;
17
21
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -28,11 +32,16 @@ declare const _default: {
28
32
  type: import('vue').PropType<boolean>;
29
33
  default: boolean;
30
34
  };
35
+ iconAnimated: {
36
+ type: import('vue').PropType<boolean>;
37
+ default: boolean;
38
+ };
31
39
  }>> & {
32
40
  onClick?: (() => any) | undefined;
33
41
  }, {
34
42
  variant: "primary" | "secondary" | "ghost";
35
43
  disabled: boolean;
44
+ iconAnimated: boolean;
36
45
  }, true, {}, {}, {
37
46
  P: {};
38
47
  B: {};
@@ -52,11 +61,16 @@ declare const _default: {
52
61
  type: import('vue').PropType<boolean>;
53
62
  default: boolean;
54
63
  };
64
+ iconAnimated: {
65
+ type: import('vue').PropType<boolean>;
66
+ default: boolean;
67
+ };
55
68
  }>> & {
56
69
  onClick?: (() => any) | undefined;
57
70
  }, {}, {}, {}, {}, {
58
71
  variant: "primary" | "secondary" | "ghost";
59
72
  disabled: boolean;
73
+ iconAnimated: boolean;
60
74
  }>;
61
75
  __isFragment?: undefined;
62
76
  __isTeleport?: undefined;
@@ -73,6 +87,10 @@ declare const _default: {
73
87
  type: import('vue').PropType<boolean>;
74
88
  default: boolean;
75
89
  };
90
+ iconAnimated: {
91
+ type: import('vue').PropType<boolean>;
92
+ default: boolean;
93
+ };
76
94
  }>> & {
77
95
  onClick?: (() => any) | undefined;
78
96
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -80,6 +98,7 @@ declare const _default: {
80
98
  }, string, {
81
99
  variant: "primary" | "secondary" | "ghost";
82
100
  disabled: boolean;
101
+ iconAnimated: boolean;
83
102
  }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
84
103
  $slots: Readonly<{
85
104
  default(): any;
@@ -130,3 +149,10 @@ export declare const Icon: {
130
149
  icon: string;
131
150
  };
132
151
  };
152
+ export declare const IconAnimated: {
153
+ args: {
154
+ default: string;
155
+ icon: string;
156
+ iconAnimated: boolean;
157
+ };
158
+ };
@@ -14,9 +14,16 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
14
14
  * Choose an icon to be appended behind the slot. No icon will be placed if the prop is left empty.
15
15
  */
16
16
  icon?: string | undefined;
17
+ /**
18
+ * Wether the Icon should be animated on hover (slide-right) or not.
19
+ *
20
+ * Default is `false`
21
+ */
22
+ iconAnimated?: boolean | undefined;
17
23
  }>, {
18
24
  variant: string;
19
25
  disabled: boolean;
26
+ iconAnimated: boolean;
20
27
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
28
  click: () => void;
22
29
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -34,14 +41,22 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
34
41
  * Choose an icon to be appended behind the slot. No icon will be placed if the prop is left empty.
35
42
  */
36
43
  icon?: string | undefined;
44
+ /**
45
+ * Wether the Icon should be animated on hover (slide-right) or not.
46
+ *
47
+ * Default is `false`
48
+ */
49
+ iconAnimated?: boolean | undefined;
37
50
  }>, {
38
51
  variant: string;
39
52
  disabled: boolean;
53
+ iconAnimated: boolean;
40
54
  }>>> & {
41
55
  onClick?: (() => any) | undefined;
42
56
  }, {
43
57
  variant: buttonType;
44
58
  disabled: boolean;
59
+ iconAnimated: boolean;
45
60
  }, {}>, Readonly<{
46
61
  /**
47
62
  * Display content inside the button.
@@ -0,0 +1,93 @@
1
+ declare const _default: {
2
+ component: import('vue').DefineComponent<{
3
+ text: {
4
+ type: import('vue').PropType<string>;
5
+ required: true;
6
+ };
7
+ variant: {
8
+ type: import('vue').PropType<import('./CommentType').default>;
9
+ default: string;
10
+ };
11
+ rating: {
12
+ type: import('vue').PropType<number>;
13
+ required: true;
14
+ };
15
+ date: {
16
+ type: import('vue').PropType<string>;
17
+ };
18
+ initials: {
19
+ type: import('vue').PropType<string>;
20
+ };
21
+ author: {
22
+ type: import('vue').PropType<string>;
23
+ required: true;
24
+ };
25
+ datePrefix: {
26
+ type: import('vue').PropType<string>;
27
+ default: string;
28
+ };
29
+ headline: {
30
+ type: import('vue').PropType<string>;
31
+ };
32
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
33
+ text: {
34
+ type: import('vue').PropType<string>;
35
+ required: true;
36
+ };
37
+ variant: {
38
+ type: import('vue').PropType<import('./CommentType').default>;
39
+ default: string;
40
+ };
41
+ rating: {
42
+ type: import('vue').PropType<number>;
43
+ required: true;
44
+ };
45
+ date: {
46
+ type: import('vue').PropType<string>;
47
+ };
48
+ initials: {
49
+ type: import('vue').PropType<string>;
50
+ };
51
+ author: {
52
+ type: import('vue').PropType<string>;
53
+ required: true;
54
+ };
55
+ datePrefix: {
56
+ type: import('vue').PropType<string>;
57
+ default: string;
58
+ };
59
+ headline: {
60
+ type: import('vue').PropType<string>;
61
+ };
62
+ }>>, {
63
+ variant: import('./CommentType').default;
64
+ datePrefix: string;
65
+ }, {}>;
66
+ title: string;
67
+ tags: string[];
68
+ parameters: {
69
+ docs: {
70
+ description: {
71
+ component: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ export default _default;
77
+ export declare const Default: {
78
+ args: {
79
+ rating: number;
80
+ author: string;
81
+ headline: string;
82
+ text: string;
83
+ };
84
+ };
85
+ export declare const Slider: {
86
+ args: {
87
+ rating: number;
88
+ author: string;
89
+ headline: string;
90
+ variant: string;
91
+ text: string;
92
+ };
93
+ };
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
8
8
  headline?: string | undefined;
9
9
  text: string;
10
10
  rating: number;
11
- variant: CommentType;
11
+ variant?: CommentType | undefined;
12
12
  }>, {
13
13
  datePrefix: string;
14
14
  variant: string;
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
20
20
  headline?: string | undefined;
21
21
  text: string;
22
22
  rating: number;
23
- variant: CommentType;
23
+ variant?: CommentType | undefined;
24
24
  }>, {
25
25
  datePrefix: string;
26
26
  variant: string;
@@ -0,0 +1,43 @@
1
+ declare const _default: {
2
+ component: import('vue').DefineComponent<{
3
+ icon: {
4
+ type: import('vue').PropType<string>;
5
+ required: true;
6
+ };
7
+ color: {
8
+ type: import('vue').PropType<string>;
9
+ };
10
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ icon: {
12
+ type: import('vue').PropType<string>;
13
+ required: true;
14
+ };
15
+ color: {
16
+ type: import('vue').PropType<string>;
17
+ };
18
+ }>>, {}, {}>;
19
+ title: string;
20
+ tags: string[];
21
+ args: {
22
+ onClick: import('@vitest/spy').Mock<any, any>;
23
+ };
24
+ parameters: {
25
+ docs: {
26
+ description: {
27
+ component: string;
28
+ };
29
+ };
30
+ };
31
+ };
32
+ export default _default;
33
+ export declare const Weather: {
34
+ args: {
35
+ icon: string;
36
+ };
37
+ };
38
+ export declare const Youtube: {
39
+ args: {
40
+ icon: string;
41
+ color: string;
42
+ };
43
+ };
@@ -0,0 +1,29 @@
1
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ /**
3
+ * String of the icon to be displayed.
4
+ */
5
+ icon: string;
6
+ /**
7
+ * Optional css-color for the icon.
8
+ */
9
+ color?: string | undefined;
10
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ /**
12
+ * String of the icon to be displayed.
13
+ */
14
+ icon: string;
15
+ /**
16
+ * Optional css-color for the icon.
17
+ */
18
+ color?: string | undefined;
19
+ }>>>, {}, {}>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
@@ -0,0 +1,3 @@
1
+ import { default as MucIcon } from './MucIcon.vue';
2
+
3
+ export { MucIcon };
@@ -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 { MucIcon } from './Icon';
6
7
  import { MucIntro } from './Intro';
7
8
 
8
- export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, };
9
+ export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucIcon, };