@muenchen/muc-patternlab-vue 1.8.0-beta.7 → 1.8.0-beta.9
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/Icon/MucIcon.stories.d.ts +43 -0
- package/dist/components/Icon/MucIcon.vue.d.ts +29 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/muc-patternlab-vue.es.js +136 -115
- package/package.json +4 -5
- package/src/components/Button/MucButton.vue +3 -1
- package/src/components/Icon/MucIcon.stories.ts +35 -0
- package/src/components/Icon/MucIcon.vue +23 -0
- package/src/components/Icon/index.ts +3 -0
- package/src/components/index.ts +2 -0
- package/dist/types/components/Banner/MucBanner.stories.d.ts +0 -76
- package/dist/types/components/Banner/MucBanner.vue.d.ts +0 -52
- package/dist/types/components/Banner/index.d.ts +0 -2
- package/dist/types/components/BuisnessHours/BusinessHourType.d.ts +0 -25
- package/dist/types/components/BuisnessHours/BusinessHours.stories.d.ts +0 -116
- package/dist/types/components/BuisnessHours/MucBusinessHours.vue.d.ts +0 -72
- package/dist/types/components/Button/MucButton.stories.d.ts +0 -158
- package/dist/types/components/Button/MucButton.vue.d.ts +0 -93
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/Callout/MucCallout.stories.d.ts +0 -89
- package/dist/types/components/Callout/MucCallout.vue.d.ts +0 -71
- package/dist/types/components/Callout/index.d.ts +0 -2
- package/dist/types/components/Card/MucCard.stories.d.ts +0 -165
- package/dist/types/components/Card/MucCard.vue.d.ts +0 -44
- package/dist/types/components/Card/MucCardContainer.stories.d.ts +0 -148
- package/dist/types/components/Card/MucCardContainer.vue.d.ts +0 -17
- package/dist/types/components/Card/index.d.ts +0 -3
- package/dist/types/components/Comment/CommentType.d.ts +0 -2
- package/dist/types/components/Comment/MucComment.stories.d.ts +0 -106
- package/dist/types/components/Comment/MucComment.vue.d.ts +0 -103
- package/dist/types/components/Comment/MucCommentText.stories.d.ts +0 -93
- package/dist/types/components/Comment/MucCommentText.vue.d.ts +0 -47
- package/dist/types/components/Comment/index.d.ts +0 -3
- package/dist/types/components/Intro/MucIntro.stories.d.ts +0 -97
- package/dist/types/components/Intro/MucIntro.vue.d.ts +0 -52
- package/dist/types/components/Intro/index.d.ts +0 -2
- package/dist/types/components/index.d.ts +0 -7
- package/dist/types/index.d.ts +0 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
aria-hidden="true"
|
|
4
|
+
class="m-button__icon"
|
|
5
|
+
:style="{ color: color }"
|
|
6
|
+
>
|
|
7
|
+
<use :href="'#icon-' + icon" />
|
|
8
|
+
</svg>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
defineProps<{
|
|
13
|
+
/**
|
|
14
|
+
* String of the icon to be displayed.
|
|
15
|
+
*/
|
|
16
|
+
icon: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Optional css-color for the icon.
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
}>();
|
|
23
|
+
</script>
|
package/src/components/index.ts
CHANGED
|
@@ -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
9
|
export {
|
|
@@ -14,4 +15,5 @@ export {
|
|
|
14
15
|
MucCardContainer,
|
|
15
16
|
MucComment,
|
|
16
17
|
MucCommentText,
|
|
18
|
+
MucIcon,
|
|
17
19
|
};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
component: {
|
|
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: Readonly<{
|
|
42
|
-
default(): any;
|
|
43
|
-
}> & {
|
|
44
|
-
default(): any;
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
title: string;
|
|
48
|
-
tags: string[];
|
|
49
|
-
excludeStories: RegExp;
|
|
50
|
-
parameters: {
|
|
51
|
-
docs: {
|
|
52
|
-
description: {
|
|
53
|
-
component: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export default _default;
|
|
59
|
-
export declare const Default: {
|
|
60
|
-
args: {
|
|
61
|
-
default: string;
|
|
62
|
-
type: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export declare const Warning: {
|
|
66
|
-
args: {
|
|
67
|
-
default: string;
|
|
68
|
-
type: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export declare const Emergency: {
|
|
72
|
-
args: {
|
|
73
|
-
default: string;
|
|
74
|
-
type: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
type bannerType = "info" | "warning" | "emergency";
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
/**
|
|
4
|
-
* Changes the style of the banner. Available types are `info`, `warning` and `emergency`.
|
|
5
|
-
*/
|
|
6
|
-
type?: bannerType | undefined;
|
|
7
|
-
}>, {
|
|
8
|
-
type: string;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
10
|
-
/**
|
|
11
|
-
* Changes the style of the banner. Available types are `info`, `warning` and `emergency`.
|
|
12
|
-
*/
|
|
13
|
-
type?: bannerType | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
type: string;
|
|
16
|
-
}>>>, {
|
|
17
|
-
type: bannerType;
|
|
18
|
-
}, {}>, Readonly<{
|
|
19
|
-
/**
|
|
20
|
-
* Text-content of the banner.
|
|
21
|
-
*/
|
|
22
|
-
default(): any;
|
|
23
|
-
}> & {
|
|
24
|
-
/**
|
|
25
|
-
* Text-content of the banner.
|
|
26
|
-
*/
|
|
27
|
-
default(): any;
|
|
28
|
-
}>;
|
|
29
|
-
export default _default;
|
|
30
|
-
|
|
31
|
-
type __VLS_WithDefaults<P, D> = {
|
|
32
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
-
default: D[K];
|
|
34
|
-
}> : P[K];
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
-
new (): {
|
|
41
|
-
$slots: S;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
|
-
type __VLS_TypePropsToOption<T> = {
|
|
46
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
47
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
48
|
-
} : {
|
|
49
|
-
type: import('vue').PropType<T[K]>;
|
|
50
|
-
required: true;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
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 };
|
|
@@ -1,116 +0,0 @@
|
|
|
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.js").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.js").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.js").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.js").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
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { BusinessHourType } from "./BusinessHourType";
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
/**
|
|
4
|
-
* This array includes all the opening hours for all days of the week.
|
|
5
|
-
*/
|
|
6
|
-
businessHours: BusinessHourType[];
|
|
7
|
-
/**
|
|
8
|
-
* Lets you choose between the toggleable and fixed state of the component.
|
|
9
|
-
* In the fixed state, no toggle button will be shown.
|
|
10
|
-
*/
|
|
11
|
-
toggleable?: boolean | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Choose an icon for the toggle button. The default if none is given is the time icon.
|
|
14
|
-
*/
|
|
15
|
-
icon?: string | undefined;
|
|
16
|
-
}>, {
|
|
17
|
-
icon: string;
|
|
18
|
-
toggleable: boolean;
|
|
19
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
20
|
-
/**
|
|
21
|
-
* This array includes all the opening hours for all days of the week.
|
|
22
|
-
*/
|
|
23
|
-
businessHours: BusinessHourType[];
|
|
24
|
-
/**
|
|
25
|
-
* Lets you choose between the toggleable and fixed state of the component.
|
|
26
|
-
* In the fixed state, no toggle button will be shown.
|
|
27
|
-
*/
|
|
28
|
-
toggleable?: boolean | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Choose an icon for the toggle button. The default if none is given is the time icon.
|
|
31
|
-
*/
|
|
32
|
-
icon?: string | undefined;
|
|
33
|
-
}>, {
|
|
34
|
-
icon: string;
|
|
35
|
-
toggleable: boolean;
|
|
36
|
-
}>>>, {
|
|
37
|
-
icon: string;
|
|
38
|
-
toggleable: boolean;
|
|
39
|
-
}, {}>, Readonly<{
|
|
40
|
-
/**
|
|
41
|
-
* Display a hint beneath all the opening hours.
|
|
42
|
-
*/
|
|
43
|
-
hint(): any;
|
|
44
|
-
}> & {
|
|
45
|
-
/**
|
|
46
|
-
* Display a hint beneath all the opening hours.
|
|
47
|
-
*/
|
|
48
|
-
hint(): any;
|
|
49
|
-
}>;
|
|
50
|
-
export default _default;
|
|
51
|
-
type __VLS_WithDefaults<P, D> = {
|
|
52
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
53
|
-
default: D[K];
|
|
54
|
-
}> : P[K];
|
|
55
|
-
};
|
|
56
|
-
type __VLS_Prettify<T> = {
|
|
57
|
-
[K in keyof T]: T[K];
|
|
58
|
-
} & {};
|
|
59
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
-
new (): {
|
|
61
|
-
$slots: S;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
-
type __VLS_TypePropsToOption<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
-
} : {
|
|
69
|
-
type: import('vue').PropType<T[K]>;
|
|
70
|
-
required: true;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
@@ -1,158 +0,0 @@
|
|
|
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
|
-
};
|
|
7
|
-
variant: {
|
|
8
|
-
type: import("vue").PropType<"primary" | "secondary" | "ghost">;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
disabled: {
|
|
12
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
iconAnimated: {
|
|
16
|
-
type: import("vue").PropType<boolean>;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
|
-
}>> & {
|
|
20
|
-
onClick?: (() => any) | undefined;
|
|
21
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
-
click: () => void;
|
|
23
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
icon: {
|
|
25
|
-
type: import("vue").PropType<string>;
|
|
26
|
-
};
|
|
27
|
-
variant: {
|
|
28
|
-
type: import("vue").PropType<"primary" | "secondary" | "ghost">;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
disabled: {
|
|
32
|
-
type: import("vue").PropType<boolean>;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
iconAnimated: {
|
|
36
|
-
type: import("vue").PropType<boolean>;
|
|
37
|
-
default: boolean;
|
|
38
|
-
};
|
|
39
|
-
}>> & {
|
|
40
|
-
onClick?: (() => any) | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
variant: "primary" | "secondary" | "ghost";
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
iconAnimated: boolean;
|
|
45
|
-
}, true, {}, {}, {
|
|
46
|
-
P: {};
|
|
47
|
-
B: {};
|
|
48
|
-
D: {};
|
|
49
|
-
C: {};
|
|
50
|
-
M: {};
|
|
51
|
-
Defaults: {};
|
|
52
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
-
icon: {
|
|
54
|
-
type: import("vue").PropType<string>;
|
|
55
|
-
};
|
|
56
|
-
variant: {
|
|
57
|
-
type: import("vue").PropType<"primary" | "secondary" | "ghost">;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
disabled: {
|
|
61
|
-
type: import("vue").PropType<boolean>;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
iconAnimated: {
|
|
65
|
-
type: import("vue").PropType<boolean>;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
}>> & {
|
|
69
|
-
onClick?: (() => any) | undefined;
|
|
70
|
-
}, {}, {}, {}, {}, {
|
|
71
|
-
variant: "primary" | "secondary" | "ghost";
|
|
72
|
-
disabled: boolean;
|
|
73
|
-
iconAnimated: boolean;
|
|
74
|
-
}>;
|
|
75
|
-
__isFragment?: undefined;
|
|
76
|
-
__isTeleport?: undefined;
|
|
77
|
-
__isSuspense?: undefined;
|
|
78
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
-
icon: {
|
|
80
|
-
type: import("vue").PropType<string>;
|
|
81
|
-
};
|
|
82
|
-
variant: {
|
|
83
|
-
type: import("vue").PropType<"primary" | "secondary" | "ghost">;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
disabled: {
|
|
87
|
-
type: import("vue").PropType<boolean>;
|
|
88
|
-
default: boolean;
|
|
89
|
-
};
|
|
90
|
-
iconAnimated: {
|
|
91
|
-
type: import("vue").PropType<boolean>;
|
|
92
|
-
default: boolean;
|
|
93
|
-
};
|
|
94
|
-
}>> & {
|
|
95
|
-
onClick?: (() => any) | undefined;
|
|
96
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
97
|
-
click: () => void;
|
|
98
|
-
}, string, {
|
|
99
|
-
variant: "primary" | "secondary" | "ghost";
|
|
100
|
-
disabled: boolean;
|
|
101
|
-
iconAnimated: boolean;
|
|
102
|
-
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
103
|
-
$slots: Readonly<{
|
|
104
|
-
default(): any;
|
|
105
|
-
}> & {
|
|
106
|
-
default(): any;
|
|
107
|
-
};
|
|
108
|
-
});
|
|
109
|
-
title: string;
|
|
110
|
-
tags: string[];
|
|
111
|
-
args: {
|
|
112
|
-
onClick: import("@vitest/spy").Mock<any, any>;
|
|
113
|
-
};
|
|
114
|
-
parameters: {
|
|
115
|
-
docs: {
|
|
116
|
-
description: {
|
|
117
|
-
component: string;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
export default _default;
|
|
123
|
-
export declare const Default: {
|
|
124
|
-
args: {
|
|
125
|
-
default: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
export declare const Secondary: {
|
|
129
|
-
args: {
|
|
130
|
-
default: string;
|
|
131
|
-
variant: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
export declare const Ghost: {
|
|
135
|
-
args: {
|
|
136
|
-
default: string;
|
|
137
|
-
variant: string;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
export declare const Disabled: {
|
|
141
|
-
args: {
|
|
142
|
-
default: string;
|
|
143
|
-
disabled: boolean;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
export declare const Icon: {
|
|
147
|
-
args: {
|
|
148
|
-
default: string;
|
|
149
|
-
icon: string;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
export declare const IconAnimated: {
|
|
153
|
-
args: {
|
|
154
|
-
default: string;
|
|
155
|
-
icon: string;
|
|
156
|
-
iconAnimated: boolean;
|
|
157
|
-
};
|
|
158
|
-
};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
type buttonType = "primary" | "secondary" | "ghost";
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
-
/**
|
|
4
|
-
* The variant prop gives you easy access to several different button styles.
|
|
5
|
-
*
|
|
6
|
-
* Available are `primary`, `secondary` and `ghost`.
|
|
7
|
-
*/
|
|
8
|
-
variant?: buttonType | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Let`s you indicate that the button is not currently interactive or clickable.
|
|
11
|
-
*/
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Choose an icon to be appended behind the slot. No icon will be placed if the prop is left empty.
|
|
15
|
-
*/
|
|
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;
|
|
23
|
-
}>, {
|
|
24
|
-
variant: string;
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
iconAnimated: boolean;
|
|
27
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
-
click: () => void;
|
|
29
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
30
|
-
/**
|
|
31
|
-
* The variant prop gives you easy access to several different button styles.
|
|
32
|
-
*
|
|
33
|
-
* Available are `primary`, `secondary` and `ghost`.
|
|
34
|
-
*/
|
|
35
|
-
variant?: buttonType | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Let`s you indicate that the button is not currently interactive or clickable.
|
|
38
|
-
*/
|
|
39
|
-
disabled?: boolean | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Choose an icon to be appended behind the slot. No icon will be placed if the prop is left empty.
|
|
42
|
-
*/
|
|
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;
|
|
50
|
-
}>, {
|
|
51
|
-
variant: string;
|
|
52
|
-
disabled: boolean;
|
|
53
|
-
iconAnimated: boolean;
|
|
54
|
-
}>>> & {
|
|
55
|
-
onClick?: (() => any) | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
variant: buttonType;
|
|
58
|
-
disabled: boolean;
|
|
59
|
-
iconAnimated: boolean;
|
|
60
|
-
}, {}>, Readonly<{
|
|
61
|
-
/**
|
|
62
|
-
* Display content inside the button.
|
|
63
|
-
*/
|
|
64
|
-
default(): any;
|
|
65
|
-
}> & {
|
|
66
|
-
/**
|
|
67
|
-
* Display content inside the button.
|
|
68
|
-
*/
|
|
69
|
-
default(): any;
|
|
70
|
-
}>;
|
|
71
|
-
export default _default;
|
|
72
|
-
type __VLS_WithDefaults<P, D> = {
|
|
73
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
74
|
-
default: D[K];
|
|
75
|
-
}> : P[K];
|
|
76
|
-
};
|
|
77
|
-
type __VLS_Prettify<T> = {
|
|
78
|
-
[K in keyof T]: T[K];
|
|
79
|
-
} & {};
|
|
80
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
81
|
-
new (): {
|
|
82
|
-
$slots: S;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
86
|
-
type __VLS_TypePropsToOption<T> = {
|
|
87
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
88
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
89
|
-
} : {
|
|
90
|
-
type: import('vue').PropType<T[K]>;
|
|
91
|
-
required: true;
|
|
92
|
-
};
|
|
93
|
-
};
|