@muenchen/muc-patternlab-vue 1.8.0-beta.5 → 1.8.0-beta.7

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,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.