@porsche-design-system/components-vue 3.0.0-rc.1 → 3.0.0-rc.2
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/CHANGELOG.md +36 -0
- package/PorscheDesignSystemProvider.vue.d.ts +11 -3
- package/lib/components/AccordionWrapper.vue.d.ts +24 -41
- package/lib/components/BannerWrapper.vue.d.ts +25 -50
- package/lib/components/ButtonGroupWrapper.vue.d.ts +17 -13
- package/lib/components/ButtonPureWrapper.vue.d.ts +35 -80
- package/lib/components/ButtonTileWrapper.vue.d.ts +34 -82
- package/lib/components/ButtonWrapper.vue.d.ts +29 -57
- package/lib/components/CarouselWrapper.vue.d.ts +32 -74
- package/lib/components/CheckboxWrapperWrapper.vue.d.ts +23 -39
- package/lib/components/ContentWrapperWrapper.vue.d.ts +22 -28
- package/lib/components/CrestWrapper.vue.d.ts +15 -23
- package/lib/components/DisplayWrapper.vue.d.ts +26 -42
- package/lib/components/DividerWrapper.vue.d.ts +18 -30
- package/lib/components/FieldsetWrapper.vue.d.ts +24 -40
- package/lib/components/FieldsetWrapperWrapper.vue.d.ts +25 -41
- package/lib/components/FlexItemWrapper.vue.d.ts +28 -44
- package/lib/components/FlexWrapper.vue.d.ts +28 -44
- package/lib/components/GridItemWrapper.vue.d.ts +20 -20
- package/lib/components/GridWrapper.vue.d.ts +22 -27
- package/lib/components/HeadingWrapper.vue.d.ts +26 -42
- package/lib/components/HeadlineWrapper.vue.d.ts +26 -42
- package/lib/components/IconWrapper.vue.d.ts +22 -50
- package/lib/components/IconWrapper.vue.js +8 -8
- package/lib/components/InlineNotificationWrapper.vue.d.ts +27 -56
- package/lib/components/LinkPureWrapper.vue.d.ts +37 -90
- package/lib/components/LinkSocialWrapper.vue.d.ts +25 -45
- package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +26 -46
- package/lib/components/LinkTileWrapper.vue.d.ts +31 -75
- package/lib/components/LinkWrapper.vue.d.ts +30 -62
- package/lib/components/MarqueWrapper.vue.d.ts +19 -35
- package/lib/components/ModalWrapper.vue.d.ts +22 -43
- package/lib/components/ModelSignatureWrapper.vue.d.ts +18 -30
- package/lib/components/PaginationWrapper.vue.d.ts +22 -59
- package/lib/components/PopoverWrapper.vue.d.ts +22 -30
- package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +22 -34
- package/lib/components/ScrollerWrapper.vue.d.ts +33 -49
- package/lib/components/ScrollerWrapper.vue.js +4 -3
- package/lib/components/SegmentedControlItemWrapper.vue.d.ts +20 -31
- package/lib/components/SegmentedControlWrapper.vue.d.ts +20 -25
- package/lib/components/SelectWrapperWrapper.vue.d.ts +27 -55
- package/lib/components/SpinnerWrapper.vue.d.ts +16 -24
- package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +18 -17
- package/lib/components/StepperHorizontalWrapper.vue.d.ts +19 -17
- package/lib/components/SwitchWrapper.vue.d.ts +24 -45
- package/lib/components/TableBodyWrapper.vue.d.ts +6 -1
- package/lib/components/TableCellWrapper.vue.d.ts +16 -12
- package/lib/components/TableHeadCellWrapper.vue.d.ts +18 -22
- package/lib/components/TableHeadRowWrapper.vue.d.ts +6 -1
- package/lib/components/TableHeadWrapper.vue.d.ts +6 -1
- package/lib/components/TableRowWrapper.vue.d.ts +6 -1
- package/lib/components/TableWrapper.vue.d.ts +18 -19
- package/lib/components/TabsBarWrapper.vue.d.ts +25 -42
- package/lib/components/TabsItemWrapper.vue.d.ts +9 -8
- package/lib/components/TabsWrapper.vue.d.ts +26 -43
- package/lib/components/TagDismissibleWrapper.vue.d.ts +22 -30
- package/lib/components/TagWrapper.vue.d.ts +22 -30
- package/lib/components/TextFieldWrapperWrapper.vue.d.ts +31 -71
- package/lib/components/TextListItemWrapper.vue.d.ts +6 -1
- package/lib/components/TextListWrapper.vue.d.ts +22 -30
- package/lib/components/TextWrapper.vue.d.ts +28 -48
- package/lib/components/TextareaWrapperWrapper.vue.d.ts +25 -49
- package/lib/components/ToastWrapper.vue.d.ts +12 -12
- package/lib/components/WordmarkWrapper.vue.d.ts +19 -35
- package/lib/types.d.ts +210 -191
- package/package.json +2 -2
|
@@ -1,49 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { TagColor, TagIcon, Theme } from '../types';
|
|
3
|
+
type PTagProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Background color variations depending on theme property.
|
|
5
6
|
*/
|
|
6
|
-
color?:
|
|
7
|
+
color?: TagColor;
|
|
7
8
|
/**
|
|
8
9
|
* The icon shown.
|
|
9
10
|
*/
|
|
10
|
-
icon?:
|
|
11
|
+
icon?: TagIcon;
|
|
11
12
|
/**
|
|
12
13
|
* A URL path to a custom icon.
|
|
13
14
|
*/
|
|
14
|
-
iconSource?: string
|
|
15
|
+
iconSource?: string;
|
|
15
16
|
/**
|
|
16
17
|
* Adapts the tag color depending on the theme.
|
|
17
18
|
*/
|
|
18
|
-
theme?:
|
|
19
|
-
}
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTagProps>, {
|
|
20
22
|
color: string;
|
|
21
23
|
theme: string;
|
|
22
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
-
/**
|
|
24
|
-
* Background color variations depending on theme property.
|
|
25
|
-
*/
|
|
26
|
-
color?: "background-base" | "background-surface" | "primary" | "notification-success" | "notification-warning" | "notification-error" | "neutral-contrast-high" | "notification-neutral" | "background-default" | "notification-info-soft" | "notification-warning-soft" | "notification-success-soft" | "notification-error-soft" | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* The icon shown.
|
|
29
|
-
*/
|
|
30
|
-
icon?: "360" | "accessibility" | "active-cabin-ventilation" | "add" | "adjust" | "arrow-double-down" | "arrow-double-left" | "arrow-double-right" | "arrow-double-up" | "arrow-down" | "arrow-first" | "arrow-head-down" | "arrow-head-left" | "arrow-head-right" | "arrow-head-up" | "arrow-last" | "arrow-left" | "arrow-right" | "arrow-up" | "augmented-reality" | "battery-empty" | "battery-full" | "bell" | "bookmark" | "broadcast" | "calculator" | "calendar" | "camera" | "car" | "car-battery" | "card" | "charging-active" | "charging-state" | "charging-station" | "chart" | "chat" | "check" | "city" | "climate" | "climate-control" | "clock" | "close" | "closed-caption" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "document" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "locate" | "lock" | "lock-open" | "logo-apple-podcast" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-facebook" | "logo-foursquare" | "logo-gmail" | "logo-google" | "logo-hatena" | "logo-instagram" | "logo-kaixin" | "logo-kakaotalk" | "logo-linkedin" | "logo-naver" | "logo-pinterest" | "logo-qq" | "logo-qq-share" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-spotify" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-xing" | "logo-yahoo" | "logo-youku" | "logo-youtube" | "logout" | "map" | "menu-dots-horizontal" | "menu-dots-vertical" | "menu-lines" | "minus" | "mobile" | "moon" | "oil-can" | "parking-brake" | "parking-light" | "pause" | "phone" | "pin" | "pin-filled" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "push-pin" | "push-pin-off" | "qr" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-bag-filled" | "shopping-cart" | "shopping-cart-filled" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-filled" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* A URL path to a custom icon.
|
|
33
|
-
*/
|
|
34
|
-
iconSource?: string | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Adapts the tag color depending on the theme.
|
|
37
|
-
*/
|
|
38
|
-
theme?: "light" | "dark" | undefined;
|
|
39
|
-
}>, {
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTagProps>, {
|
|
40
25
|
color: string;
|
|
41
26
|
theme: string;
|
|
42
27
|
}>>>, {
|
|
43
|
-
theme:
|
|
44
|
-
color:
|
|
28
|
+
theme: "light" | "dark";
|
|
29
|
+
color: "background-base" | "background-surface" | "primary" | "notification-success" | "notification-warning" | "notification-error" | "neutral-contrast-high" | "notification-neutral" | "background-default" | "notification-info-soft" | "notification-warning-soft" | "notification-success-soft" | "notification-error-soft";
|
|
45
30
|
}>, {
|
|
46
|
-
default
|
|
31
|
+
default?(_: {}): any;
|
|
47
32
|
}>;
|
|
48
33
|
export default _default;
|
|
49
34
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -56,12 +41,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
56
41
|
};
|
|
57
42
|
};
|
|
58
43
|
type __VLS_WithDefaults<P, D> = {
|
|
59
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
45
|
default: D[K];
|
|
61
|
-
} : P[K];
|
|
46
|
+
}> : P[K];
|
|
62
47
|
};
|
|
63
48
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
49
|
new (): {
|
|
65
50
|
$slots: S;
|
|
51
|
+
$props: __VLS_PropsChildren<S>;
|
|
66
52
|
};
|
|
67
53
|
};
|
|
54
|
+
type __VLS_PropsChildren<S> = {
|
|
55
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { TextFieldWrapperActionIcon, BreakpointCustomizable, TextFieldWrapperState, Theme, TextFieldWrapperUnitPosition } from '../types';
|
|
3
|
+
type PTextFieldWrapperProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Action icon can be set to `locate` for `input type="search"` in order to display an action button.
|
|
5
6
|
*/
|
|
6
|
-
actionIcon?:
|
|
7
|
+
actionIcon?: TextFieldWrapperActionIcon;
|
|
7
8
|
/**
|
|
8
9
|
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
9
10
|
*/
|
|
10
|
-
actionLoading?: boolean
|
|
11
|
+
actionLoading?: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* The description text.
|
|
13
14
|
*/
|
|
14
|
-
description?: string
|
|
15
|
+
description?: string;
|
|
15
16
|
/**
|
|
16
17
|
* Show or hide label and description text. For better accessibility it is recommended to show the label.
|
|
17
18
|
*/
|
|
18
|
-
hideLabel?: BreakpointCustomizable<boolean
|
|
19
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
19
20
|
/**
|
|
20
21
|
* The label text.
|
|
21
22
|
*/
|
|
22
|
-
label?: string
|
|
23
|
+
label?: string;
|
|
23
24
|
/**
|
|
24
25
|
* The message styled depending on validation state.
|
|
25
26
|
*/
|
|
26
|
-
message?: string
|
|
27
|
+
message?: string;
|
|
27
28
|
/**
|
|
28
29
|
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
29
30
|
*/
|
|
30
|
-
showCharacterCount?: boolean
|
|
31
|
+
showCharacterCount?: boolean;
|
|
31
32
|
/**
|
|
32
33
|
* Show or hide max character count.
|
|
33
34
|
*/
|
|
34
|
-
showCounter?: boolean
|
|
35
|
+
showCounter?: boolean;
|
|
35
36
|
/**
|
|
36
37
|
* The validation state.
|
|
37
38
|
*/
|
|
38
|
-
state?:
|
|
39
|
+
state?: TextFieldWrapperState;
|
|
39
40
|
/**
|
|
40
41
|
* Adapts the color depending on the theme.
|
|
41
42
|
*/
|
|
42
|
-
theme?:
|
|
43
|
+
theme?: Theme;
|
|
43
44
|
/**
|
|
44
45
|
* The unit text.
|
|
45
46
|
*/
|
|
46
|
-
unit?: string
|
|
47
|
+
unit?: string;
|
|
47
48
|
/**
|
|
48
49
|
* The unit position.
|
|
49
50
|
*/
|
|
50
|
-
unitPosition?:
|
|
51
|
-
}
|
|
51
|
+
unitPosition?: TextFieldWrapperUnitPosition;
|
|
52
|
+
};
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextFieldWrapperProps>, {
|
|
52
54
|
actionLoading: boolean;
|
|
53
55
|
description: string;
|
|
54
56
|
hideLabel: boolean;
|
|
@@ -61,56 +63,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
61
63
|
unitPosition: string;
|
|
62
64
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
65
|
action: (value?: void | undefined) => void;
|
|
64
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
65
|
-
/**
|
|
66
|
-
* Action icon can be set to `locate` for `input type="search"` in order to display an action button.
|
|
67
|
-
*/
|
|
68
|
-
actionIcon?: "locate" | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Disables the action button and shows a loading indicator. No events will be triggered while loading state is active.
|
|
71
|
-
*/
|
|
72
|
-
actionLoading?: boolean | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* The description text.
|
|
75
|
-
*/
|
|
76
|
-
description?: string | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* Show or hide label and description text. For better accessibility it is recommended to show the label.
|
|
79
|
-
*/
|
|
80
|
-
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* The label text.
|
|
83
|
-
*/
|
|
84
|
-
label?: string | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* The message styled depending on validation state.
|
|
87
|
-
*/
|
|
88
|
-
message?: string | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
91
|
-
*/
|
|
92
|
-
showCharacterCount?: boolean | undefined;
|
|
93
|
-
/**
|
|
94
|
-
* Show or hide max character count.
|
|
95
|
-
*/
|
|
96
|
-
showCounter?: boolean | undefined;
|
|
97
|
-
/**
|
|
98
|
-
* The validation state.
|
|
99
|
-
*/
|
|
100
|
-
state?: "success" | "none" | "error" | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* Adapts the color depending on the theme.
|
|
103
|
-
*/
|
|
104
|
-
theme?: "light" | "dark" | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* The unit text.
|
|
107
|
-
*/
|
|
108
|
-
unit?: string | undefined;
|
|
109
|
-
/**
|
|
110
|
-
* The unit position.
|
|
111
|
-
*/
|
|
112
|
-
unitPosition?: "prefix" | "suffix" | undefined;
|
|
113
|
-
}>, {
|
|
66
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextFieldWrapperProps>, {
|
|
114
67
|
actionLoading: boolean;
|
|
115
68
|
description: string;
|
|
116
69
|
hideLabel: boolean;
|
|
@@ -125,17 +78,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
125
78
|
onAction?: ((value?: void | undefined) => any) | undefined;
|
|
126
79
|
}, {
|
|
127
80
|
label: string;
|
|
128
|
-
theme:
|
|
81
|
+
theme: "light" | "dark";
|
|
129
82
|
description: string;
|
|
130
|
-
state:
|
|
83
|
+
state: "success" | "none" | "error";
|
|
131
84
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
132
85
|
message: string;
|
|
133
86
|
actionLoading: boolean;
|
|
134
87
|
showCounter: boolean;
|
|
135
88
|
unit: string;
|
|
136
|
-
unitPosition:
|
|
89
|
+
unitPosition: "prefix" | "suffix";
|
|
137
90
|
}>, {
|
|
138
|
-
default
|
|
91
|
+
default?(_: {}): any;
|
|
139
92
|
}>;
|
|
140
93
|
export default _default;
|
|
141
94
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -148,12 +101,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
148
101
|
};
|
|
149
102
|
};
|
|
150
103
|
type __VLS_WithDefaults<P, D> = {
|
|
151
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
104
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
152
105
|
default: D[K];
|
|
153
|
-
} : P[K];
|
|
106
|
+
}> : P[K];
|
|
154
107
|
};
|
|
155
108
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
156
109
|
new (): {
|
|
157
110
|
$slots: S;
|
|
111
|
+
$props: __VLS_PropsChildren<S>;
|
|
158
112
|
};
|
|
159
113
|
};
|
|
114
|
+
type __VLS_PropsChildren<S> = {
|
|
115
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
116
|
+
};
|
|
117
|
+
type __VLS_Prettify<T> = {
|
|
118
|
+
[K in keyof T]: T[K];
|
|
119
|
+
} & {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
|
|
2
|
-
default
|
|
3
|
+
default?(_: {}): any;
|
|
3
4
|
}>;
|
|
4
5
|
export default _default;
|
|
5
6
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
7
|
new (): {
|
|
7
8
|
$slots: S;
|
|
9
|
+
$props: __VLS_PropsChildren<S>;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
12
|
+
type __VLS_PropsChildren<S> = {
|
|
13
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
14
|
+
};
|
|
@@ -1,49 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
2
|
+
import type { TextListListType, TextListOrderType, Theme, TextListType } from '../types';
|
|
3
|
+
type PTextListProps = {
|
|
3
4
|
/**
|
|
4
5
|
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The type of the list.
|
|
5
6
|
*/
|
|
6
|
-
listType?:
|
|
7
|
+
listType?: TextListListType;
|
|
7
8
|
/**
|
|
8
9
|
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
9
10
|
*/
|
|
10
|
-
orderType?:
|
|
11
|
+
orderType?: TextListOrderType;
|
|
11
12
|
/**
|
|
12
13
|
* Adapts the text color depending on the theme.
|
|
13
14
|
*/
|
|
14
|
-
theme?:
|
|
15
|
+
theme?: Theme;
|
|
15
16
|
/**
|
|
16
17
|
* The list style type.
|
|
17
18
|
*/
|
|
18
|
-
type?:
|
|
19
|
-
}
|
|
19
|
+
type?: TextListType;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextListProps>, {
|
|
20
22
|
theme: string;
|
|
21
23
|
type: string;
|
|
22
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The type of the list.
|
|
25
|
-
*/
|
|
26
|
-
listType?: "unordered" | "ordered" | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `type` instead. The list style type of ordered list. Only has effect when list type is set to 'ordered'.
|
|
29
|
-
*/
|
|
30
|
-
orderType?: "numbered" | "alphabetically" | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Adapts the text color depending on the theme.
|
|
33
|
-
*/
|
|
34
|
-
theme?: "light" | "dark" | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The list style type.
|
|
37
|
-
*/
|
|
38
|
-
type?: "unordered" | "numbered" | "alphabetically" | undefined;
|
|
39
|
-
}>, {
|
|
24
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextListProps>, {
|
|
40
25
|
theme: string;
|
|
41
26
|
type: string;
|
|
42
27
|
}>>>, {
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
type: "unordered" | "numbered" | "alphabetically";
|
|
29
|
+
theme: "light" | "dark";
|
|
45
30
|
}>, {
|
|
46
|
-
default
|
|
31
|
+
default?(_: {}): any;
|
|
47
32
|
}>;
|
|
48
33
|
export default _default;
|
|
49
34
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -56,12 +41,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
56
41
|
};
|
|
57
42
|
};
|
|
58
43
|
type __VLS_WithDefaults<P, D> = {
|
|
59
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
60
45
|
default: D[K];
|
|
61
|
-
} : P[K];
|
|
46
|
+
}> : P[K];
|
|
62
47
|
};
|
|
63
48
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
49
|
new (): {
|
|
65
50
|
$slots: S;
|
|
51
|
+
$props: __VLS_PropsChildren<S>;
|
|
66
52
|
};
|
|
67
53
|
};
|
|
54
|
+
type __VLS_PropsChildren<S> = {
|
|
55
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
56
|
+
};
|
|
57
|
+
type __VLS_Prettify<T> = {
|
|
58
|
+
[K in keyof T]: T[K];
|
|
59
|
+
} & {};
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { TextAlign, TextColor, BreakpointCustomizable, TextSize, TextTag, Theme, TextWeight } from '../types';
|
|
2
|
-
|
|
3
|
+
type PTextProps = {
|
|
3
4
|
/**
|
|
4
5
|
* Text alignment of the component.
|
|
5
6
|
*/
|
|
6
|
-
align?:
|
|
7
|
+
align?: TextAlign;
|
|
7
8
|
/**
|
|
8
9
|
* Basic text color variations depending on theme property.
|
|
9
10
|
*/
|
|
10
|
-
color?:
|
|
11
|
+
color?: TextColor;
|
|
11
12
|
/**
|
|
12
13
|
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
14
|
*/
|
|
14
|
-
ellipsis?: boolean
|
|
15
|
+
ellipsis?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Size of the text. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
17
18
|
*/
|
|
18
|
-
size?: BreakpointCustomizable<
|
|
19
|
+
size?: BreakpointCustomizable<TextSize>;
|
|
19
20
|
/**
|
|
20
21
|
* Sets a custom HTML tag depending on the usage of the text component.
|
|
21
22
|
*/
|
|
22
|
-
tag?:
|
|
23
|
+
tag?: TextTag;
|
|
23
24
|
/**
|
|
24
25
|
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
25
26
|
*/
|
|
26
|
-
theme?:
|
|
27
|
+
theme?: Theme;
|
|
27
28
|
/**
|
|
28
29
|
* The weight of the text.
|
|
29
30
|
*/
|
|
30
|
-
weight?:
|
|
31
|
-
}
|
|
31
|
+
weight?: TextWeight;
|
|
32
|
+
};
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextProps>, {
|
|
32
34
|
align: string;
|
|
33
35
|
color: string;
|
|
34
36
|
ellipsis: boolean;
|
|
@@ -36,36 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
38
|
tag: string;
|
|
37
39
|
theme: string;
|
|
38
40
|
weight: string;
|
|
39
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
40
|
-
/**
|
|
41
|
-
* Text alignment of the component.
|
|
42
|
-
*/
|
|
43
|
-
align?: "center" | "left" | "right" | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Basic text color variations depending on theme property.
|
|
46
|
-
*/
|
|
47
|
-
color?: "default" | "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral" | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Adds an ellipsis to a single line of text if it overflows.
|
|
50
|
-
*/
|
|
51
|
-
ellipsis?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Size of the text. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
|
|
54
|
-
*/
|
|
55
|
-
size?: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Sets a custom HTML tag depending on the usage of the text component.
|
|
58
|
-
*/
|
|
59
|
-
tag?: "time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend" | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
62
|
-
*/
|
|
63
|
-
theme?: "light" | "dark" | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* The weight of the text.
|
|
66
|
-
*/
|
|
67
|
-
weight?: "regular" | "semi-bold" | "bold" | "thin" | "semibold" | undefined;
|
|
68
|
-
}>, {
|
|
41
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextProps>, {
|
|
69
42
|
align: string;
|
|
70
43
|
color: string;
|
|
71
44
|
ellipsis: boolean;
|
|
@@ -74,15 +47,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
74
47
|
theme: string;
|
|
75
48
|
weight: string;
|
|
76
49
|
}>>>, {
|
|
77
|
-
weight:
|
|
78
|
-
size: BreakpointCustomizable<
|
|
79
|
-
tag:
|
|
80
|
-
theme:
|
|
81
|
-
align:
|
|
82
|
-
color:
|
|
50
|
+
weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
|
|
51
|
+
size: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large">;
|
|
52
|
+
tag: "time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend";
|
|
53
|
+
theme: "light" | "dark";
|
|
54
|
+
align: "center" | "left" | "right";
|
|
55
|
+
color: "default" | "inherit" | "primary" | "contrast-low" | "contrast-medium" | "contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "brand" | "neutral-contrast-low" | "neutral-contrast-medium" | "neutral-contrast-high" | "notification-neutral";
|
|
83
56
|
ellipsis: boolean;
|
|
84
57
|
}>, {
|
|
85
|
-
default
|
|
58
|
+
default?(_: {}): any;
|
|
86
59
|
}>;
|
|
87
60
|
export default _default;
|
|
88
61
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -95,12 +68,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
95
68
|
};
|
|
96
69
|
};
|
|
97
70
|
type __VLS_WithDefaults<P, D> = {
|
|
98
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
71
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
99
72
|
default: D[K];
|
|
100
|
-
} : P[K];
|
|
73
|
+
}> : P[K];
|
|
101
74
|
};
|
|
102
75
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
103
76
|
new (): {
|
|
104
77
|
$slots: S;
|
|
78
|
+
$props: __VLS_PropsChildren<S>;
|
|
105
79
|
};
|
|
106
80
|
};
|
|
81
|
+
type __VLS_PropsChildren<S> = {
|
|
82
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
83
|
+
};
|
|
84
|
+
type __VLS_Prettify<T> = {
|
|
85
|
+
[K in keyof T]: T[K];
|
|
86
|
+
} & {};
|
|
@@ -1,38 +1,40 @@
|
|
|
1
|
+
/** __vue_virtual_code_placeholder */
|
|
1
2
|
import type { BreakpointCustomizable, TextareaWrapperState, Theme } from '../types';
|
|
2
|
-
|
|
3
|
+
type PTextareaWrapperProps = {
|
|
3
4
|
/**
|
|
4
5
|
* The description text.
|
|
5
6
|
*/
|
|
6
|
-
description?: string
|
|
7
|
+
description?: string;
|
|
7
8
|
/**
|
|
8
9
|
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
9
10
|
*/
|
|
10
|
-
hideLabel?: BreakpointCustomizable<boolean
|
|
11
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
11
12
|
/**
|
|
12
13
|
* The label text.
|
|
13
14
|
*/
|
|
14
|
-
label?: string
|
|
15
|
+
label?: string;
|
|
15
16
|
/**
|
|
16
17
|
* The message styled depending on validation state.
|
|
17
18
|
*/
|
|
18
|
-
message?: string
|
|
19
|
+
message?: string;
|
|
19
20
|
/**
|
|
20
21
|
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
21
22
|
*/
|
|
22
|
-
showCharacterCount?: boolean
|
|
23
|
+
showCharacterCount?: boolean;
|
|
23
24
|
/**
|
|
24
25
|
* Show or hide max character count.
|
|
25
26
|
*/
|
|
26
|
-
showCounter?: boolean
|
|
27
|
+
showCounter?: boolean;
|
|
27
28
|
/**
|
|
28
29
|
* The validation state.
|
|
29
30
|
*/
|
|
30
|
-
state?:
|
|
31
|
+
state?: TextareaWrapperState;
|
|
31
32
|
/**
|
|
32
33
|
* Adapts the color depending on the theme.
|
|
33
34
|
*/
|
|
34
|
-
theme?:
|
|
35
|
-
}
|
|
35
|
+
theme?: Theme;
|
|
36
|
+
};
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextareaWrapperProps>, {
|
|
36
38
|
description: string;
|
|
37
39
|
hideLabel: boolean;
|
|
38
40
|
label: string;
|
|
@@ -40,40 +42,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
42
|
showCounter: boolean;
|
|
41
43
|
state: string;
|
|
42
44
|
theme: string;
|
|
43
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
44
|
-
/**
|
|
45
|
-
* The description text.
|
|
46
|
-
*/
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
50
|
-
*/
|
|
51
|
-
hideLabel?: BreakpointCustomizable<boolean> | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* The label text.
|
|
54
|
-
*/
|
|
55
|
-
label?: string | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* The message styled depending on validation state.
|
|
58
|
-
*/
|
|
59
|
-
message?: string | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
62
|
-
*/
|
|
63
|
-
showCharacterCount?: boolean | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Show or hide max character count.
|
|
66
|
-
*/
|
|
67
|
-
showCounter?: boolean | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* The validation state.
|
|
70
|
-
*/
|
|
71
|
-
state?: "success" | "none" | "error" | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Adapts the color depending on the theme.
|
|
74
|
-
*/
|
|
75
|
-
theme?: "light" | "dark" | undefined;
|
|
76
|
-
}>, {
|
|
45
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextareaWrapperProps>, {
|
|
77
46
|
description: string;
|
|
78
47
|
hideLabel: boolean;
|
|
79
48
|
label: string;
|
|
@@ -83,14 +52,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
83
52
|
theme: string;
|
|
84
53
|
}>>>, {
|
|
85
54
|
label: string;
|
|
86
|
-
theme:
|
|
55
|
+
theme: "light" | "dark";
|
|
87
56
|
description: string;
|
|
88
|
-
state:
|
|
57
|
+
state: "success" | "none" | "error";
|
|
89
58
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
90
59
|
message: string;
|
|
91
60
|
showCounter: boolean;
|
|
92
61
|
}>, {
|
|
93
|
-
default
|
|
62
|
+
default?(_: {}): any;
|
|
94
63
|
}>;
|
|
95
64
|
export default _default;
|
|
96
65
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -103,12 +72,19 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
103
72
|
};
|
|
104
73
|
};
|
|
105
74
|
type __VLS_WithDefaults<P, D> = {
|
|
106
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
75
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
107
76
|
default: D[K];
|
|
108
|
-
} : P[K];
|
|
77
|
+
}> : P[K];
|
|
109
78
|
};
|
|
110
79
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
111
80
|
new (): {
|
|
112
81
|
$slots: S;
|
|
82
|
+
$props: __VLS_PropsChildren<S>;
|
|
113
83
|
};
|
|
114
84
|
};
|
|
85
|
+
type __VLS_PropsChildren<S> = {
|
|
86
|
+
[K in keyof (boolean extends (JSX.ElementChildrenAttribute extends never ? true : false) ? never : JSX.ElementChildrenAttribute)]?: S;
|
|
87
|
+
};
|
|
88
|
+
type __VLS_Prettify<T> = {
|
|
89
|
+
[K in keyof T]: T[K];
|
|
90
|
+
} & {};
|