@porsche-design-system/components-vue 3.8.0 → 3.9.0-rc.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.
- package/CHANGELOG.md +44 -2
- package/cjs/PorscheDesignSystemProvider.vue.cjs +1 -1
- package/cjs/lib/components/AccordionWrapper.vue.cjs +1 -1
- package/cjs/lib/components/BannerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonGroupWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonPureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonTileWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ButtonWrapper.vue.cjs +1 -1
- package/cjs/lib/components/CarouselWrapper.vue.cjs +1 -1
- package/cjs/lib/components/CheckboxWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ContentWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/CrestWrapper.vue.cjs +1 -1
- package/cjs/lib/components/DisplayWrapper.vue.cjs +1 -1
- package/cjs/lib/components/DividerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FieldsetWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FieldsetWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlexItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlexWrapper.vue.cjs +1 -1
- package/cjs/lib/components/FlyoutWrapper.vue.cjs +1 -1
- package/cjs/lib/components/GridItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/GridWrapper.vue.cjs +1 -1
- package/cjs/lib/components/HeadingWrapper.vue.cjs +1 -1
- package/cjs/lib/components/HeadlineWrapper.vue.cjs +1 -1
- package/cjs/lib/components/IconWrapper.vue.cjs +1 -1
- package/cjs/lib/components/InlineNotificationWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkPureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkSocialWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkTileModelSignatureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkTileWrapper.vue.cjs +1 -1
- package/cjs/lib/components/LinkWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MarqueWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ModalWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ModelSignatureWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MultiSelectOptionWrapper.vue.cjs +1 -1
- package/cjs/lib/components/MultiSelectWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PaginationWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PinCodeWrapper.vue.cjs +1 -1
- package/cjs/lib/components/PopoverWrapper.vue.cjs +1 -1
- package/cjs/lib/components/RadioButtonWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ScrollerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SegmentedControlItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SegmentedControlWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SelectWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SpinnerWrapper.vue.cjs +1 -1
- package/cjs/lib/components/StepperHorizontalItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/StepperHorizontalWrapper.vue.cjs +1 -1
- package/cjs/lib/components/SwitchWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableBodyWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableCellWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableHeadCellWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableHeadRowWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableHeadWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableRowWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TableWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TabsBarWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TabsItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TabsWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TagDismissibleWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TagWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextFieldWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextListItemWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextListWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextWrapper.vue.cjs +1 -1
- package/cjs/lib/components/TextareaWrapperWrapper.vue.cjs +1 -1
- package/cjs/lib/components/ToastWrapper.vue.cjs +1 -1
- package/cjs/lib/components/WordmarkWrapper.vue.cjs +1 -1
- package/cjs/utils.cjs +1 -1
- package/esm/PorscheDesignSystemProvider.vue.d.ts +31 -17
- package/esm/PorscheDesignSystemProvider.vue.mjs +11 -8
- package/esm/lib/components/AccordionWrapper.vue.d.ts +52 -48
- package/esm/lib/components/AccordionWrapper.vue.mjs +14 -14
- package/esm/lib/components/BannerWrapper.vue.d.ts +67 -67
- package/esm/lib/components/BannerWrapper.vue.mjs +14 -14
- package/esm/lib/components/ButtonGroupWrapper.vue.d.ts +33 -16
- package/esm/lib/components/ButtonGroupWrapper.vue.mjs +7 -11
- package/esm/lib/components/ButtonPureWrapper.vue.d.ts +104 -105
- package/esm/lib/components/ButtonPureWrapper.vue.mjs +15 -15
- package/esm/lib/components/ButtonTileWrapper.vue.d.ts +105 -120
- package/esm/lib/components/ButtonTileWrapper.vue.mjs +7 -11
- package/esm/lib/components/ButtonWrapper.vue.d.ts +79 -73
- package/esm/lib/components/ButtonWrapper.vue.mjs +15 -15
- package/esm/lib/components/CarouselWrapper.vue.d.ts +89 -98
- package/esm/lib/components/CarouselWrapper.vue.mjs +14 -14
- package/esm/lib/components/CheckboxWrapperWrapper.vue.d.ts +57 -53
- package/esm/lib/components/CheckboxWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/ContentWrapperWrapper.vue.d.ts +41 -28
- package/esm/lib/components/ContentWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/CrestWrapper.vue.d.ts +37 -24
- package/esm/lib/components/CrestWrapper.vue.mjs +7 -11
- package/esm/lib/components/DisplayWrapper.vue.d.ts +55 -51
- package/esm/lib/components/DisplayWrapper.vue.mjs +12 -14
- package/esm/lib/components/DividerWrapper.vue.d.ts +43 -35
- package/esm/lib/components/DividerWrapper.vue.mjs +11 -13
- package/esm/lib/components/FieldsetWrapper.vue.d.ts +57 -52
- package/esm/lib/components/FieldsetWrapper.vue.mjs +13 -15
- package/esm/lib/components/FieldsetWrapperWrapper.vue.d.ts +57 -52
- package/esm/lib/components/FieldsetWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/FlexItemWrapper.vue.d.ts +59 -52
- package/esm/lib/components/FlexItemWrapper.vue.mjs +9 -13
- package/esm/lib/components/FlexWrapper.vue.d.ts +59 -52
- package/esm/lib/components/FlexWrapper.vue.mjs +8 -12
- package/esm/lib/components/FlyoutWrapper.vue.d.ts +44 -38
- package/esm/lib/components/FlyoutWrapper.vue.mjs +13 -13
- package/esm/lib/components/GridItemWrapper.vue.d.ts +35 -20
- package/esm/lib/components/GridItemWrapper.vue.mjs +8 -12
- package/esm/lib/components/GridWrapper.vue.d.ts +48 -34
- package/esm/lib/components/GridWrapper.vue.mjs +8 -12
- package/esm/lib/components/HeadingWrapper.vue.d.ts +55 -51
- package/esm/lib/components/HeadingWrapper.vue.mjs +13 -15
- package/esm/lib/components/HeadlineWrapper.vue.d.ts +55 -51
- package/esm/lib/components/HeadlineWrapper.vue.mjs +13 -15
- package/esm/lib/components/IconWrapper.vue.d.ts +59 -56
- package/esm/lib/components/IconWrapper.vue.mjs +11 -13
- package/esm/lib/components/InlineNotificationWrapper.vue.d.ts +72 -73
- package/esm/lib/components/InlineNotificationWrapper.vue.mjs +14 -14
- package/esm/lib/components/LinkPureWrapper.vue.d.ts +102 -115
- package/esm/lib/components/LinkPureWrapper.vue.mjs +13 -15
- package/esm/lib/components/LinkSocialWrapper.vue.d.ts +55 -53
- package/esm/lib/components/LinkSocialWrapper.vue.mjs +13 -15
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +65 -62
- package/esm/lib/components/LinkTileModelSignatureWrapper.vue.mjs +9 -13
- package/esm/lib/components/LinkTileWrapper.vue.d.ts +95 -110
- package/esm/lib/components/LinkTileWrapper.vue.mjs +6 -10
- package/esm/lib/components/LinkWrapper.vue.d.ts +71 -75
- package/esm/lib/components/LinkWrapper.vue.mjs +13 -15
- package/esm/lib/components/MarqueWrapper.vue.d.ts +55 -48
- package/esm/lib/components/MarqueWrapper.vue.mjs +6 -10
- package/esm/lib/components/ModalWrapper.vue.d.ts +65 -66
- package/esm/lib/components/ModalWrapper.vue.mjs +14 -14
- package/esm/lib/components/ModelSignatureWrapper.vue.d.ts +45 -36
- package/esm/lib/components/ModelSignatureWrapper.vue.mjs +11 -13
- package/esm/lib/components/MultiSelectOptionWrapper.vue.d.ts +32 -19
- package/esm/lib/components/MultiSelectOptionWrapper.vue.mjs +8 -12
- package/esm/lib/components/MultiSelectWrapper.vue.d.ts +87 -95
- package/esm/lib/components/MultiSelectWrapper.vue.mjs +14 -14
- package/esm/lib/components/PaginationWrapper.vue.d.ts +92 -102
- package/esm/lib/components/PaginationWrapper.vue.mjs +12 -12
- package/esm/lib/components/PinCodeWrapper.vue.d.ts +100 -110
- package/esm/lib/components/PinCodeWrapper.vue.mjs +14 -14
- package/esm/lib/components/PopoverWrapper.vue.d.ts +41 -33
- package/esm/lib/components/PopoverWrapper.vue.mjs +13 -15
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.d.ts +57 -53
- package/esm/lib/components/RadioButtonWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/ScrollerWrapper.vue.d.ts +61 -61
- package/esm/lib/components/ScrollerWrapper.vue.mjs +13 -15
- package/esm/lib/components/SegmentedControlItemWrapper.vue.d.ts +45 -37
- package/esm/lib/components/SegmentedControlItemWrapper.vue.mjs +8 -12
- package/esm/lib/components/SegmentedControlWrapper.vue.d.ts +42 -34
- package/esm/lib/components/SegmentedControlWrapper.vue.mjs +14 -14
- package/esm/lib/components/SelectWrapperWrapper.vue.d.ts +75 -77
- package/esm/lib/components/SelectWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/SpinnerWrapper.vue.d.ts +37 -27
- package/esm/lib/components/SpinnerWrapper.vue.mjs +11 -13
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.d.ts +33 -17
- package/esm/lib/components/StepperHorizontalItemWrapper.vue.mjs +7 -11
- package/esm/lib/components/StepperHorizontalWrapper.vue.d.ts +31 -22
- package/esm/lib/components/StepperHorizontalWrapper.vue.mjs +14 -14
- package/esm/lib/components/SwitchWrapper.vue.d.ts +64 -62
- package/esm/lib/components/SwitchWrapper.vue.mjs +14 -14
- package/esm/lib/components/TableBodyWrapper.vue.mjs +6 -6
- package/esm/lib/components/TableCellWrapper.vue.d.ts +28 -11
- package/esm/lib/components/TableCellWrapper.vue.mjs +6 -10
- package/esm/lib/components/TableHeadCellWrapper.vue.d.ts +38 -25
- package/esm/lib/components/TableHeadCellWrapper.vue.mjs +8 -12
- package/esm/lib/components/TableHeadRowWrapper.vue.mjs +6 -6
- package/esm/lib/components/TableHeadWrapper.vue.mjs +8 -8
- package/esm/lib/components/TableRowWrapper.vue.mjs +4 -4
- package/esm/lib/components/TableWrapper.vue.d.ts +23 -21
- package/esm/lib/components/TableWrapper.vue.mjs +14 -14
- package/esm/lib/components/TabsBarWrapper.vue.d.ts +54 -50
- package/esm/lib/components/TabsBarWrapper.vue.mjs +13 -13
- package/esm/lib/components/TabsItemWrapper.vue.d.ts +16 -11
- package/esm/lib/components/TabsItemWrapper.vue.mjs +8 -12
- package/esm/lib/components/TabsWrapper.vue.d.ts +56 -52
- package/esm/lib/components/TabsWrapper.vue.mjs +13 -13
- package/esm/lib/components/TagDismissibleWrapper.vue.d.ts +41 -33
- package/esm/lib/components/TagDismissibleWrapper.vue.mjs +13 -15
- package/esm/lib/components/TagWrapper.vue.d.ts +41 -32
- package/esm/lib/components/TagWrapper.vue.mjs +13 -15
- package/esm/lib/components/TextFieldWrapperWrapper.vue.d.ts +96 -106
- package/esm/lib/components/TextFieldWrapperWrapper.vue.mjs +14 -14
- package/esm/lib/components/TextListItemWrapper.vue.mjs +6 -6
- package/esm/lib/components/TextListWrapper.vue.d.ts +41 -32
- package/esm/lib/components/TextListWrapper.vue.mjs +13 -15
- package/esm/lib/components/TextWrapper.vue.d.ts +63 -61
- package/esm/lib/components/TextWrapper.vue.mjs +13 -15
- package/esm/lib/components/TextareaWrapperWrapper.vue.d.ts +67 -67
- package/esm/lib/components/TextareaWrapperWrapper.vue.mjs +13 -15
- package/esm/lib/components/ToastWrapper.vue.d.ts +17 -13
- package/esm/lib/components/ToastWrapper.vue.mjs +11 -13
- package/esm/lib/components/WordmarkWrapper.vue.d.ts +47 -41
- package/esm/lib/components/WordmarkWrapper.vue.mjs +11 -13
- package/esm/lib/types.d.ts +15 -0
- package/esm/utils.d.ts +5 -4
- package/esm/utils.mjs +12 -10
- package/package.json +2 -2
|
@@ -1,67 +1,52 @@
|
|
|
1
|
-
import type { BreakpointCustomizable } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
size:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
align: {
|
|
49
|
-
type: import("vue").PropType<"center" | "start" | "end" | "left" | "right">;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
color: {
|
|
53
|
-
type: import("vue").PropType<"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">;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
ellipsis: {
|
|
57
|
-
type: import("vue").PropType<boolean>;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
}>>, {
|
|
1
|
+
import type { TextAlign, TextColor, BreakpointCustomizable, TextSize, TextTag, Theme, TextWeight } from '../types';
|
|
2
|
+
type PTextProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Text alignment of the component.
|
|
5
|
+
*/
|
|
6
|
+
align?: TextAlign;
|
|
7
|
+
/**
|
|
8
|
+
* Basic text color variations depending on theme property.
|
|
9
|
+
*/
|
|
10
|
+
color?: TextColor;
|
|
11
|
+
/**
|
|
12
|
+
* Adds an ellipsis to a single line of text if it overflows.
|
|
13
|
+
*/
|
|
14
|
+
ellipsis?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 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
|
+
size?: BreakpointCustomizable<TextSize>;
|
|
19
|
+
/**
|
|
20
|
+
* Sets a custom HTML tag depending on the usage of the text component.
|
|
21
|
+
*/
|
|
22
|
+
tag?: TextTag;
|
|
23
|
+
/**
|
|
24
|
+
* Adapts the text color depending on the theme. Has no effect when "inherit" is set as color prop.
|
|
25
|
+
*/
|
|
26
|
+
theme?: Theme;
|
|
27
|
+
/**
|
|
28
|
+
* The weight of the text.
|
|
29
|
+
*/
|
|
30
|
+
weight?: TextWeight;
|
|
31
|
+
};
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextProps>, {
|
|
33
|
+
align: string;
|
|
34
|
+
color: string;
|
|
35
|
+
ellipsis: boolean;
|
|
36
|
+
size: string;
|
|
37
|
+
tag: string;
|
|
38
|
+
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<PTextProps>, {
|
|
40
|
+
align: string;
|
|
41
|
+
color: string;
|
|
42
|
+
ellipsis: boolean;
|
|
43
|
+
size: string;
|
|
44
|
+
tag: string;
|
|
45
|
+
weight: string;
|
|
46
|
+
}>>>, {
|
|
61
47
|
weight: "regular" | "semi-bold" | "bold" | "thin" | "semibold";
|
|
62
48
|
size: BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large">;
|
|
63
49
|
tag: "time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend";
|
|
64
|
-
theme: "light" | "dark" | "auto";
|
|
65
50
|
align: "center" | "start" | "end" | "left" | "right";
|
|
66
51
|
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";
|
|
67
52
|
ellipsis: boolean;
|
|
@@ -69,6 +54,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
54
|
default?(_: {}): any;
|
|
70
55
|
}>;
|
|
71
56
|
export default _default;
|
|
57
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
58
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
59
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
60
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
61
|
+
} : {
|
|
62
|
+
type: import('vue').PropType<T[K]>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
type __VLS_WithDefaults<P, D> = {
|
|
67
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
68
|
+
default: D[K];
|
|
69
|
+
}> : P[K];
|
|
70
|
+
};
|
|
71
|
+
type __VLS_Prettify<T> = {
|
|
72
|
+
[K in keyof T]: T[K];
|
|
73
|
+
} & {};
|
|
72
74
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
75
|
new (): {
|
|
74
76
|
$slots: S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as l, ref as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, ref as f, inject as m, onMounted as c, onUpdated as u, watch as d, openBlock as i, createBlock as h, resolveDynamicComponent as y, unref as _, withCtx as C, renderSlot as g } from "vue";
|
|
2
|
+
import { usePrefix as x, themeInjectionKey as w, syncProperties as a } from "../../utils.mjs";
|
|
3
|
+
const R = /* @__PURE__ */ l({
|
|
4
4
|
__name: "TextWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
align: { default: "start" },
|
|
@@ -8,26 +8,24 @@ const y = /* @__PURE__ */ l({
|
|
|
8
8
|
ellipsis: { type: Boolean, default: !1 },
|
|
9
9
|
size: { default: "small" },
|
|
10
10
|
tag: { default: "p" },
|
|
11
|
-
theme: {
|
|
11
|
+
theme: {},
|
|
12
12
|
weight: { default: "regular" }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
o(e.value, t);
|
|
20
|
-
}), (n, C) => (d(), u(m(i(r)), {
|
|
14
|
+
setup(s) {
|
|
15
|
+
const p = x("p-text"), e = s, t = f(), n = m(w), r = () => a(t, { ...e, theme: e.theme || n.value });
|
|
16
|
+
return c(r), u(r), d(n, (o) => {
|
|
17
|
+
a(t, { theme: e.theme || o });
|
|
18
|
+
}), (o, k) => (i(), h(y(_(p)), {
|
|
21
19
|
ref_key: "pdsComponentRef",
|
|
22
|
-
ref:
|
|
20
|
+
ref: t
|
|
23
21
|
}, {
|
|
24
|
-
default:
|
|
25
|
-
g(
|
|
22
|
+
default: C(() => [
|
|
23
|
+
g(o.$slots, "default")
|
|
26
24
|
]),
|
|
27
25
|
_: 3
|
|
28
26
|
}, 512));
|
|
29
27
|
}
|
|
30
28
|
});
|
|
31
29
|
export {
|
|
32
|
-
|
|
30
|
+
R as default
|
|
33
31
|
};
|
|
@@ -1,71 +1,54 @@
|
|
|
1
|
-
import type { BreakpointCustomizable } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
hideLabel: {
|
|
52
|
-
type: import("vue").PropType<BreakpointCustomizable<boolean>>;
|
|
53
|
-
default: boolean;
|
|
54
|
-
};
|
|
55
|
-
message: {
|
|
56
|
-
type: import("vue").PropType<string>;
|
|
57
|
-
default: string;
|
|
58
|
-
};
|
|
59
|
-
showCharacterCount: {
|
|
60
|
-
type: import("vue").PropType<boolean>;
|
|
61
|
-
};
|
|
62
|
-
showCounter: {
|
|
63
|
-
type: import("vue").PropType<boolean>;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
}>>, {
|
|
1
|
+
import type { BreakpointCustomizable, TextareaWrapperState, Theme } from '../types';
|
|
2
|
+
type PTextareaWrapperProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The description text.
|
|
5
|
+
*/
|
|
6
|
+
description?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Show or hide label. For better accessibility it is recommended to show the label.
|
|
9
|
+
*/
|
|
10
|
+
hideLabel?: BreakpointCustomizable<boolean>;
|
|
11
|
+
/**
|
|
12
|
+
* The label text.
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The message styled depending on validation state.
|
|
17
|
+
*/
|
|
18
|
+
message?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated since v3.0.0, will be removed with next major release, use `showCounter` instead. Show or hide max character count.
|
|
21
|
+
*/
|
|
22
|
+
showCharacterCount?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Show or hide max character count.
|
|
25
|
+
*/
|
|
26
|
+
showCounter?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The validation state.
|
|
29
|
+
*/
|
|
30
|
+
state?: TextareaWrapperState;
|
|
31
|
+
/**
|
|
32
|
+
* Adapts the color depending on the theme.
|
|
33
|
+
*/
|
|
34
|
+
theme?: Theme;
|
|
35
|
+
};
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PTextareaWrapperProps>, {
|
|
37
|
+
description: string;
|
|
38
|
+
hideLabel: boolean;
|
|
39
|
+
label: string;
|
|
40
|
+
message: string;
|
|
41
|
+
showCounter: boolean;
|
|
42
|
+
state: 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<PTextareaWrapperProps>, {
|
|
44
|
+
description: string;
|
|
45
|
+
hideLabel: boolean;
|
|
46
|
+
label: string;
|
|
47
|
+
message: string;
|
|
48
|
+
showCounter: boolean;
|
|
49
|
+
state: string;
|
|
50
|
+
}>>>, {
|
|
67
51
|
label: string;
|
|
68
|
-
theme: "light" | "dark" | "auto";
|
|
69
52
|
description: string;
|
|
70
53
|
state: "none" | "success" | "error";
|
|
71
54
|
hideLabel: BreakpointCustomizable<boolean>;
|
|
@@ -75,6 +58,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
58
|
default?(_: {}): any;
|
|
76
59
|
}>;
|
|
77
60
|
export default _default;
|
|
61
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
62
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
63
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
64
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
65
|
+
} : {
|
|
66
|
+
type: import('vue').PropType<T[K]>;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
type __VLS_WithDefaults<P, D> = {
|
|
71
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
72
|
+
default: D[K];
|
|
73
|
+
}> : P[K];
|
|
74
|
+
};
|
|
75
|
+
type __VLS_Prettify<T> = {
|
|
76
|
+
[K in keyof T]: T[K];
|
|
77
|
+
} & {};
|
|
78
78
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
79
79
|
new (): {
|
|
80
80
|
$slots: S;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as l, inject as c, onMounted as m, onUpdated as u, watch as d, openBlock as h, createBlock as i, resolveDynamicComponent as C, unref as y, withCtx as _, renderSlot as w } from "vue";
|
|
2
|
+
import { usePrefix as x, themeInjectionKey as B, syncProperties as a } from "../../utils.mjs";
|
|
3
|
+
const R = /* @__PURE__ */ f({
|
|
4
4
|
__name: "TextareaWrapperWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
description: { default: "" },
|
|
@@ -10,25 +10,23 @@ const x = /* @__PURE__ */ p({
|
|
|
10
10
|
showCharacterCount: { type: Boolean },
|
|
11
11
|
showCounter: { type: Boolean, default: !0 },
|
|
12
12
|
state: { default: "none" },
|
|
13
|
-
theme: {
|
|
13
|
+
theme: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
}),
|
|
20
|
-
o(e.value, t);
|
|
21
|
-
}), (n, _) => (d(), u(m(c(r)), {
|
|
15
|
+
setup(p) {
|
|
16
|
+
const s = x("p-textarea-wrapper"), e = p, t = l(), n = c(B), r = () => a(t, { ...e, theme: e.theme || n.value });
|
|
17
|
+
return m(r), u(r), d(n, (o) => {
|
|
18
|
+
a(t, { theme: e.theme || o });
|
|
19
|
+
}), (o, b) => (h(), i(C(y(s)), {
|
|
22
20
|
ref_key: "pdsComponentRef",
|
|
23
|
-
ref:
|
|
21
|
+
ref: t
|
|
24
22
|
}, {
|
|
25
|
-
default:
|
|
26
|
-
|
|
23
|
+
default: _(() => [
|
|
24
|
+
w(o.$slots, "default")
|
|
27
25
|
]),
|
|
28
26
|
_: 3
|
|
29
27
|
}, 512));
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
R as default
|
|
34
32
|
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}>>, {
|
|
12
|
-
theme: "light" | "dark" | "auto";
|
|
13
|
-
}, {}>;
|
|
1
|
+
import type { Theme } from '../types';
|
|
2
|
+
type PToastProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Adapts the toast color depending on the theme.
|
|
5
|
+
*/
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PToastProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PToastProps>>>, {}, {}>;
|
|
14
9
|
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as a, inject as f, onMounted as h, onUpdated as i, watch as u, openBlock as d, createBlock as l, resolveDynamicComponent as _, unref as y } from "vue";
|
|
2
|
+
import { usePrefix as C, themeInjectionKey as k, syncProperties as p } from "../../utils.mjs";
|
|
3
|
+
const j = /* @__PURE__ */ m({
|
|
4
4
|
__name: "ToastWrapper",
|
|
5
5
|
props: {
|
|
6
|
-
theme: {
|
|
6
|
+
theme: {}
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
return
|
|
11
|
-
t
|
|
12
|
-
}),
|
|
13
|
-
t(e.value, o);
|
|
14
|
-
}), (i, _) => (c(), f(l(u(r)), {
|
|
8
|
+
setup(s) {
|
|
9
|
+
const c = C("p-toast"), e = s, t = a(), o = f(k), n = () => p(t, { ...e, theme: e.theme || o.value });
|
|
10
|
+
return h(n), i(n), u(o, (r) => {
|
|
11
|
+
p(t, { theme: e.theme || r });
|
|
12
|
+
}), (r, x) => (d(), l(_(y(c)), {
|
|
15
13
|
ref_key: "pdsComponentRef",
|
|
16
|
-
ref:
|
|
14
|
+
ref: t
|
|
17
15
|
}, null, 512));
|
|
18
16
|
}
|
|
19
17
|
});
|
|
20
18
|
export {
|
|
21
|
-
|
|
19
|
+
j as default
|
|
22
20
|
};
|
|
@@ -1,45 +1,51 @@
|
|
|
1
|
-
import type { SelectedAriaAttributes } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
type: import("vue").PropType<SelectedAriaAttributes<"aria-label" | "aria-current">>;
|
|
32
|
-
};
|
|
33
|
-
href: {
|
|
34
|
-
type: import("vue").PropType<string>;
|
|
35
|
-
};
|
|
36
|
-
target: {
|
|
37
|
-
type: import("vue").PropType<string>;
|
|
38
|
-
default: string;
|
|
39
|
-
};
|
|
40
|
-
}>>, {
|
|
1
|
+
import type { SelectedAriaAttributes, WordmarkAriaAttribute, WordmarkSize, WordmarkTarget, Theme } from '../types';
|
|
2
|
+
type PWordmarkProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Add ARIA attributes.
|
|
5
|
+
*/
|
|
6
|
+
aria?: SelectedAriaAttributes<WordmarkAriaAttribute>;
|
|
7
|
+
/**
|
|
8
|
+
* When providing an url then the component will be rendered as `<a>`.
|
|
9
|
+
*/
|
|
10
|
+
href?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Adapts sizing of wordmark.
|
|
13
|
+
*/
|
|
14
|
+
size?: WordmarkSize;
|
|
15
|
+
/**
|
|
16
|
+
* Target attribute where the link should be opened.
|
|
17
|
+
*/
|
|
18
|
+
target?: WordmarkTarget;
|
|
19
|
+
/**
|
|
20
|
+
* Adapts color depending on theme.
|
|
21
|
+
*/
|
|
22
|
+
theme?: Theme;
|
|
23
|
+
};
|
|
24
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PWordmarkProps>, {
|
|
25
|
+
size: string;
|
|
26
|
+
target: string;
|
|
27
|
+
}>, {}, 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<PWordmarkProps>, {
|
|
28
|
+
size: string;
|
|
29
|
+
target: string;
|
|
30
|
+
}>>>, {
|
|
41
31
|
size: "inherit" | "small";
|
|
42
|
-
theme: "light" | "dark" | "auto";
|
|
43
32
|
target: string;
|
|
44
33
|
}, {}>;
|
|
45
34
|
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import { defineComponent as a, ref as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, ref as c, inject as f, onMounted as l, onUpdated as d, watch as i, openBlock as u, createBlock as h, resolveDynamicComponent as _, unref as k } from "vue";
|
|
2
|
+
import { usePrefix as y, themeInjectionKey as C, syncProperties as m } from "../../utils.mjs";
|
|
3
|
+
const R = /* @__PURE__ */ a({
|
|
4
4
|
__name: "WordmarkWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
aria: {},
|
|
7
7
|
href: {},
|
|
8
8
|
size: { default: "small" },
|
|
9
9
|
target: { default: "_self" },
|
|
10
|
-
theme: {
|
|
10
|
+
theme: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
}),
|
|
17
|
-
r(e.value, o);
|
|
18
|
-
}), (i, _) => (s(), l(c(d(n)), {
|
|
12
|
+
setup(p) {
|
|
13
|
+
const s = y("p-wordmark"), e = p, t = c(), o = f(C), n = () => m(t, { ...e, theme: e.theme || o.value });
|
|
14
|
+
return l(n), d(n), i(o, (r) => {
|
|
15
|
+
m(t, { theme: e.theme || r });
|
|
16
|
+
}), (r, w) => (u(), h(_(k(s)), {
|
|
19
17
|
ref_key: "pdsComponentRef",
|
|
20
|
-
ref:
|
|
18
|
+
ref: t
|
|
21
19
|
}, null, 512));
|
|
22
20
|
}
|
|
23
21
|
});
|
|
24
22
|
export {
|
|
25
|
-
|
|
23
|
+
R as default
|
|
26
24
|
};
|
package/esm/lib/types.d.ts
CHANGED
|
@@ -590,6 +590,17 @@ export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
|
|
|
590
590
|
export type LinkButtonIconName = IconName | "none";
|
|
591
591
|
export type ButtonVariant = LinkButtonVariant;
|
|
592
592
|
export type LinkVariant = LinkButtonVariant;
|
|
593
|
+
export type PorscheDesignSystem = {
|
|
594
|
+
[key: `${number}.${number}.${number}${`-rc.${number}` | ""}`]: {
|
|
595
|
+
prefixes: string[];
|
|
596
|
+
isReady: () => Promise<void>;
|
|
597
|
+
readyResolve: () => void;
|
|
598
|
+
};
|
|
599
|
+
cdn: {
|
|
600
|
+
url: string;
|
|
601
|
+
prefixes: string[];
|
|
602
|
+
};
|
|
603
|
+
};
|
|
593
604
|
export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAttributes, T> | string;
|
|
594
605
|
declare const ACCORDION_SIZES: readonly [
|
|
595
606
|
"small",
|
|
@@ -1042,7 +1053,11 @@ declare const PIN_CODE_TYPES: readonly [
|
|
|
1042
1053
|
];
|
|
1043
1054
|
export type PinCodeType = (typeof PIN_CODE_TYPES)[number];
|
|
1044
1055
|
declare const PIN_CODE_LENGTHS: readonly [
|
|
1056
|
+
1,
|
|
1057
|
+
2,
|
|
1058
|
+
3,
|
|
1045
1059
|
4,
|
|
1060
|
+
5,
|
|
1046
1061
|
6
|
|
1047
1062
|
];
|
|
1048
1063
|
export type PinCodeLength = (typeof PIN_CODE_LENGTHS)[number];
|
package/esm/utils.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { InjectionKey } from 'vue';
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
2
|
import type { ToastMessage } from './lib/types';
|
|
3
3
|
export declare const prefixInjectionKey: InjectionKey<string>;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
4
|
+
export declare const themeInjectionKey: InjectionKey<Ref<"light" | "dark" | "auto">>;
|
|
5
|
+
export declare const usePrefix: (tagName: string) => string;
|
|
6
|
+
export declare const syncProperties: <T extends HTMLElement>(elementRef: Ref<T | undefined>, props: Partial<T>) => void;
|
|
7
|
+
export declare const addEventListenerToElementRef: <T extends HTMLElement, E extends string>(elementRef: Ref<T | undefined>, eventName: E, emit: (eventName: E, detail: any) => void) => void;
|
|
7
8
|
export declare const useToastManager: () => {
|
|
8
9
|
addMessage: (message: ToastMessage) => void;
|
|
9
10
|
};
|