@muenchen/muc-patternlab-vue 1.13.0-beta.4 → 1.13.0-beta.6
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/Form/MucCounter.stories.d.ts +89 -0
- package/dist/components/Form/MucCounter.vue.d.ts +54 -0
- package/dist/components/Form/index.d.ts +2 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/muc-patternlab-vue.es.js +398 -338
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/Form/MucCounter.stories.ts +47 -0
- package/src/components/Form/MucCounter.vue +128 -0
- package/src/components/Form/index.ts +2 -0
- package/src/components/Intro/MucIntro.vue +7 -1
- package/src/components/index.ts +2 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
component: import('vue').DefineComponent<{
|
|
3
|
+
link: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
};
|
|
6
|
+
label: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
type: import('vue').PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import('vue').PropType<number>;
|
|
16
|
+
};
|
|
17
|
+
min: {
|
|
18
|
+
type: import('vue').PropType<number>;
|
|
19
|
+
};
|
|
20
|
+
max: {
|
|
21
|
+
type: import('vue').PropType<number>;
|
|
22
|
+
};
|
|
23
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (modelValue: number) => void;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
link: {
|
|
27
|
+
type: import('vue').PropType<string>;
|
|
28
|
+
};
|
|
29
|
+
label: {
|
|
30
|
+
type: import('vue').PropType<string>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: import('vue').PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: import('vue').PropType<number>;
|
|
39
|
+
};
|
|
40
|
+
min: {
|
|
41
|
+
type: import('vue').PropType<number>;
|
|
42
|
+
};
|
|
43
|
+
max: {
|
|
44
|
+
type: import('vue').PropType<number>;
|
|
45
|
+
};
|
|
46
|
+
}>> & {
|
|
47
|
+
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
}, {}>;
|
|
51
|
+
title: string;
|
|
52
|
+
tags: string[];
|
|
53
|
+
parameters: {
|
|
54
|
+
docs: {
|
|
55
|
+
description: {
|
|
56
|
+
component: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
62
|
+
export declare const Default: {
|
|
63
|
+
args: {
|
|
64
|
+
modelValue: number;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const MinAndMax: {
|
|
69
|
+
args: {
|
|
70
|
+
modelValue: number;
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const Link: {
|
|
77
|
+
args: {
|
|
78
|
+
link: string;
|
|
79
|
+
modelValue: number;
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export declare const Disabled: {
|
|
84
|
+
args: {
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
modelValue: number;
|
|
87
|
+
label: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare let __VLS_typeProps: {
|
|
2
|
+
/**
|
|
3
|
+
* Label shown after the counter
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional minimum of counter
|
|
8
|
+
*/
|
|
9
|
+
min?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Optional maximum of counter
|
|
12
|
+
*/
|
|
13
|
+
max?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Optional link for label
|
|
16
|
+
*/
|
|
17
|
+
link?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optionally disable this specific counter
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = {
|
|
24
|
+
modelValue?: number;
|
|
25
|
+
} & typeof __VLS_typeProps;
|
|
26
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (modelValue: number) => void;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
}>>> & {
|
|
33
|
+
"onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithDefaults<P, D> = {
|
|
39
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
40
|
+
default: D[K];
|
|
41
|
+
}> : P[K];
|
|
42
|
+
};
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: import('vue').PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as MucCheckbox } from './MucCheckbox.vue';
|
|
2
2
|
import { default as MucCheckboxGroup } from './MucCheckboxGroup.vue';
|
|
3
|
+
import { default as MucCounter } from './MucCounter.vue';
|
|
3
4
|
import { default as MucErrorList } from './MucErrorList.vue';
|
|
4
5
|
import { default as MucForm } from './MucInput.vue';
|
|
5
6
|
import { default as MucRadioButton } from './MucRadioButton.vue';
|
|
6
7
|
import { default as MucRadioButtonGroup } from './MucRadioButtonGroup.vue';
|
|
7
8
|
import { default as MucSelect } from './MucSelect.vue';
|
|
8
9
|
import { default as MucTextArea } from './MucTextArea.vue';
|
|
9
|
-
export { MucForm, MucCheckbox, MucCheckboxGroup, MucRadioButtonGroup, MucInput, MucRadioButton, MucTextArea, MucErrorList, MucSelect, };
|
|
10
|
+
export { MucForm, MucCheckbox, MucCheckboxGroup, MucCounter, MucRadioButtonGroup, MucInput, MucRadioButton, MucTextArea, MucErrorList, MucSelect, };
|
|
@@ -4,8 +4,8 @@ import { MucCallout } from './Callout';
|
|
|
4
4
|
import { MucCard, MucCardContainer } from './Card';
|
|
5
5
|
import { MucComment, MucCommentText } from './Comment/';
|
|
6
6
|
import { MucDivider } from './Divider';
|
|
7
|
-
import { MucCheckbox, MucCheckboxGroup, MucErrorList, MucInput, MucRadioButton, MucRadioButtonGroup, MucSelect, MucTextArea } from './Form';
|
|
7
|
+
import { MucCheckbox, MucCheckboxGroup, MucCounter, MucErrorList, MucInput, MucRadioButton, MucRadioButtonGroup, MucSelect, MucTextArea } from './Form';
|
|
8
8
|
import { MucIcon } from './Icon';
|
|
9
9
|
import { MucIntro } from './Intro';
|
|
10
10
|
import { MucLink } from './Link';
|
|
11
|
-
export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucDivider, MucLink, };
|
|
11
|
+
export { MucButton, MucBanner, MucIntro, MucCallout, MucCard, MucCardContainer, MucComment, MucCommentText, MucRadioButton, MucRadioButtonGroup, MucInput, MucTextArea, MucCheckboxGroup, MucCheckbox, MucSelect, MucErrorList, MucIcon, MucDivider, MucLink, MucCounter, };
|