@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.
Files changed (196) hide show
  1. package/CHANGELOG.md +44 -2
  2. package/cjs/PorscheDesignSystemProvider.vue.cjs +1 -1
  3. package/cjs/lib/components/AccordionWrapper.vue.cjs +1 -1
  4. package/cjs/lib/components/BannerWrapper.vue.cjs +1 -1
  5. package/cjs/lib/components/ButtonGroupWrapper.vue.cjs +1 -1
  6. package/cjs/lib/components/ButtonPureWrapper.vue.cjs +1 -1
  7. package/cjs/lib/components/ButtonTileWrapper.vue.cjs +1 -1
  8. package/cjs/lib/components/ButtonWrapper.vue.cjs +1 -1
  9. package/cjs/lib/components/CarouselWrapper.vue.cjs +1 -1
  10. package/cjs/lib/components/CheckboxWrapperWrapper.vue.cjs +1 -1
  11. package/cjs/lib/components/ContentWrapperWrapper.vue.cjs +1 -1
  12. package/cjs/lib/components/CrestWrapper.vue.cjs +1 -1
  13. package/cjs/lib/components/DisplayWrapper.vue.cjs +1 -1
  14. package/cjs/lib/components/DividerWrapper.vue.cjs +1 -1
  15. package/cjs/lib/components/FieldsetWrapper.vue.cjs +1 -1
  16. package/cjs/lib/components/FieldsetWrapperWrapper.vue.cjs +1 -1
  17. package/cjs/lib/components/FlexItemWrapper.vue.cjs +1 -1
  18. package/cjs/lib/components/FlexWrapper.vue.cjs +1 -1
  19. package/cjs/lib/components/FlyoutWrapper.vue.cjs +1 -1
  20. package/cjs/lib/components/GridItemWrapper.vue.cjs +1 -1
  21. package/cjs/lib/components/GridWrapper.vue.cjs +1 -1
  22. package/cjs/lib/components/HeadingWrapper.vue.cjs +1 -1
  23. package/cjs/lib/components/HeadlineWrapper.vue.cjs +1 -1
  24. package/cjs/lib/components/IconWrapper.vue.cjs +1 -1
  25. package/cjs/lib/components/InlineNotificationWrapper.vue.cjs +1 -1
  26. package/cjs/lib/components/LinkPureWrapper.vue.cjs +1 -1
  27. package/cjs/lib/components/LinkSocialWrapper.vue.cjs +1 -1
  28. package/cjs/lib/components/LinkTileModelSignatureWrapper.vue.cjs +1 -1
  29. package/cjs/lib/components/LinkTileWrapper.vue.cjs +1 -1
  30. package/cjs/lib/components/LinkWrapper.vue.cjs +1 -1
  31. package/cjs/lib/components/MarqueWrapper.vue.cjs +1 -1
  32. package/cjs/lib/components/ModalWrapper.vue.cjs +1 -1
  33. package/cjs/lib/components/ModelSignatureWrapper.vue.cjs +1 -1
  34. package/cjs/lib/components/MultiSelectOptionWrapper.vue.cjs +1 -1
  35. package/cjs/lib/components/MultiSelectWrapper.vue.cjs +1 -1
  36. package/cjs/lib/components/PaginationWrapper.vue.cjs +1 -1
  37. package/cjs/lib/components/PinCodeWrapper.vue.cjs +1 -1
  38. package/cjs/lib/components/PopoverWrapper.vue.cjs +1 -1
  39. package/cjs/lib/components/RadioButtonWrapperWrapper.vue.cjs +1 -1
  40. package/cjs/lib/components/ScrollerWrapper.vue.cjs +1 -1
  41. package/cjs/lib/components/SegmentedControlItemWrapper.vue.cjs +1 -1
  42. package/cjs/lib/components/SegmentedControlWrapper.vue.cjs +1 -1
  43. package/cjs/lib/components/SelectWrapperWrapper.vue.cjs +1 -1
  44. package/cjs/lib/components/SpinnerWrapper.vue.cjs +1 -1
  45. package/cjs/lib/components/StepperHorizontalItemWrapper.vue.cjs +1 -1
  46. package/cjs/lib/components/StepperHorizontalWrapper.vue.cjs +1 -1
  47. package/cjs/lib/components/SwitchWrapper.vue.cjs +1 -1
  48. package/cjs/lib/components/TableBodyWrapper.vue.cjs +1 -1
  49. package/cjs/lib/components/TableCellWrapper.vue.cjs +1 -1
  50. package/cjs/lib/components/TableHeadCellWrapper.vue.cjs +1 -1
  51. package/cjs/lib/components/TableHeadRowWrapper.vue.cjs +1 -1
  52. package/cjs/lib/components/TableHeadWrapper.vue.cjs +1 -1
  53. package/cjs/lib/components/TableRowWrapper.vue.cjs +1 -1
  54. package/cjs/lib/components/TableWrapper.vue.cjs +1 -1
  55. package/cjs/lib/components/TabsBarWrapper.vue.cjs +1 -1
  56. package/cjs/lib/components/TabsItemWrapper.vue.cjs +1 -1
  57. package/cjs/lib/components/TabsWrapper.vue.cjs +1 -1
  58. package/cjs/lib/components/TagDismissibleWrapper.vue.cjs +1 -1
  59. package/cjs/lib/components/TagWrapper.vue.cjs +1 -1
  60. package/cjs/lib/components/TextFieldWrapperWrapper.vue.cjs +1 -1
  61. package/cjs/lib/components/TextListItemWrapper.vue.cjs +1 -1
  62. package/cjs/lib/components/TextListWrapper.vue.cjs +1 -1
  63. package/cjs/lib/components/TextWrapper.vue.cjs +1 -1
  64. package/cjs/lib/components/TextareaWrapperWrapper.vue.cjs +1 -1
  65. package/cjs/lib/components/ToastWrapper.vue.cjs +1 -1
  66. package/cjs/lib/components/WordmarkWrapper.vue.cjs +1 -1
  67. package/cjs/utils.cjs +1 -1
  68. package/esm/PorscheDesignSystemProvider.vue.d.ts +31 -17
  69. package/esm/PorscheDesignSystemProvider.vue.mjs +11 -8
  70. package/esm/lib/components/AccordionWrapper.vue.d.ts +52 -48
  71. package/esm/lib/components/AccordionWrapper.vue.mjs +14 -14
  72. package/esm/lib/components/BannerWrapper.vue.d.ts +67 -67
  73. package/esm/lib/components/BannerWrapper.vue.mjs +14 -14
  74. package/esm/lib/components/ButtonGroupWrapper.vue.d.ts +33 -16
  75. package/esm/lib/components/ButtonGroupWrapper.vue.mjs +7 -11
  76. package/esm/lib/components/ButtonPureWrapper.vue.d.ts +104 -105
  77. package/esm/lib/components/ButtonPureWrapper.vue.mjs +15 -15
  78. package/esm/lib/components/ButtonTileWrapper.vue.d.ts +105 -120
  79. package/esm/lib/components/ButtonTileWrapper.vue.mjs +7 -11
  80. package/esm/lib/components/ButtonWrapper.vue.d.ts +79 -73
  81. package/esm/lib/components/ButtonWrapper.vue.mjs +15 -15
  82. package/esm/lib/components/CarouselWrapper.vue.d.ts +89 -98
  83. package/esm/lib/components/CarouselWrapper.vue.mjs +14 -14
  84. package/esm/lib/components/CheckboxWrapperWrapper.vue.d.ts +57 -53
  85. package/esm/lib/components/CheckboxWrapperWrapper.vue.mjs +13 -15
  86. package/esm/lib/components/ContentWrapperWrapper.vue.d.ts +41 -28
  87. package/esm/lib/components/ContentWrapperWrapper.vue.mjs +13 -15
  88. package/esm/lib/components/CrestWrapper.vue.d.ts +37 -24
  89. package/esm/lib/components/CrestWrapper.vue.mjs +7 -11
  90. package/esm/lib/components/DisplayWrapper.vue.d.ts +55 -51
  91. package/esm/lib/components/DisplayWrapper.vue.mjs +12 -14
  92. package/esm/lib/components/DividerWrapper.vue.d.ts +43 -35
  93. package/esm/lib/components/DividerWrapper.vue.mjs +11 -13
  94. package/esm/lib/components/FieldsetWrapper.vue.d.ts +57 -52
  95. package/esm/lib/components/FieldsetWrapper.vue.mjs +13 -15
  96. package/esm/lib/components/FieldsetWrapperWrapper.vue.d.ts +57 -52
  97. package/esm/lib/components/FieldsetWrapperWrapper.vue.mjs +13 -15
  98. package/esm/lib/components/FlexItemWrapper.vue.d.ts +59 -52
  99. package/esm/lib/components/FlexItemWrapper.vue.mjs +9 -13
  100. package/esm/lib/components/FlexWrapper.vue.d.ts +59 -52
  101. package/esm/lib/components/FlexWrapper.vue.mjs +8 -12
  102. package/esm/lib/components/FlyoutWrapper.vue.d.ts +44 -38
  103. package/esm/lib/components/FlyoutWrapper.vue.mjs +13 -13
  104. package/esm/lib/components/GridItemWrapper.vue.d.ts +35 -20
  105. package/esm/lib/components/GridItemWrapper.vue.mjs +8 -12
  106. package/esm/lib/components/GridWrapper.vue.d.ts +48 -34
  107. package/esm/lib/components/GridWrapper.vue.mjs +8 -12
  108. package/esm/lib/components/HeadingWrapper.vue.d.ts +55 -51
  109. package/esm/lib/components/HeadingWrapper.vue.mjs +13 -15
  110. package/esm/lib/components/HeadlineWrapper.vue.d.ts +55 -51
  111. package/esm/lib/components/HeadlineWrapper.vue.mjs +13 -15
  112. package/esm/lib/components/IconWrapper.vue.d.ts +59 -56
  113. package/esm/lib/components/IconWrapper.vue.mjs +11 -13
  114. package/esm/lib/components/InlineNotificationWrapper.vue.d.ts +72 -73
  115. package/esm/lib/components/InlineNotificationWrapper.vue.mjs +14 -14
  116. package/esm/lib/components/LinkPureWrapper.vue.d.ts +102 -115
  117. package/esm/lib/components/LinkPureWrapper.vue.mjs +13 -15
  118. package/esm/lib/components/LinkSocialWrapper.vue.d.ts +55 -53
  119. package/esm/lib/components/LinkSocialWrapper.vue.mjs +13 -15
  120. package/esm/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +65 -62
  121. package/esm/lib/components/LinkTileModelSignatureWrapper.vue.mjs +9 -13
  122. package/esm/lib/components/LinkTileWrapper.vue.d.ts +95 -110
  123. package/esm/lib/components/LinkTileWrapper.vue.mjs +6 -10
  124. package/esm/lib/components/LinkWrapper.vue.d.ts +71 -75
  125. package/esm/lib/components/LinkWrapper.vue.mjs +13 -15
  126. package/esm/lib/components/MarqueWrapper.vue.d.ts +55 -48
  127. package/esm/lib/components/MarqueWrapper.vue.mjs +6 -10
  128. package/esm/lib/components/ModalWrapper.vue.d.ts +65 -66
  129. package/esm/lib/components/ModalWrapper.vue.mjs +14 -14
  130. package/esm/lib/components/ModelSignatureWrapper.vue.d.ts +45 -36
  131. package/esm/lib/components/ModelSignatureWrapper.vue.mjs +11 -13
  132. package/esm/lib/components/MultiSelectOptionWrapper.vue.d.ts +32 -19
  133. package/esm/lib/components/MultiSelectOptionWrapper.vue.mjs +8 -12
  134. package/esm/lib/components/MultiSelectWrapper.vue.d.ts +87 -95
  135. package/esm/lib/components/MultiSelectWrapper.vue.mjs +14 -14
  136. package/esm/lib/components/PaginationWrapper.vue.d.ts +92 -102
  137. package/esm/lib/components/PaginationWrapper.vue.mjs +12 -12
  138. package/esm/lib/components/PinCodeWrapper.vue.d.ts +100 -110
  139. package/esm/lib/components/PinCodeWrapper.vue.mjs +14 -14
  140. package/esm/lib/components/PopoverWrapper.vue.d.ts +41 -33
  141. package/esm/lib/components/PopoverWrapper.vue.mjs +13 -15
  142. package/esm/lib/components/RadioButtonWrapperWrapper.vue.d.ts +57 -53
  143. package/esm/lib/components/RadioButtonWrapperWrapper.vue.mjs +13 -15
  144. package/esm/lib/components/ScrollerWrapper.vue.d.ts +61 -61
  145. package/esm/lib/components/ScrollerWrapper.vue.mjs +13 -15
  146. package/esm/lib/components/SegmentedControlItemWrapper.vue.d.ts +45 -37
  147. package/esm/lib/components/SegmentedControlItemWrapper.vue.mjs +8 -12
  148. package/esm/lib/components/SegmentedControlWrapper.vue.d.ts +42 -34
  149. package/esm/lib/components/SegmentedControlWrapper.vue.mjs +14 -14
  150. package/esm/lib/components/SelectWrapperWrapper.vue.d.ts +75 -77
  151. package/esm/lib/components/SelectWrapperWrapper.vue.mjs +13 -15
  152. package/esm/lib/components/SpinnerWrapper.vue.d.ts +37 -27
  153. package/esm/lib/components/SpinnerWrapper.vue.mjs +11 -13
  154. package/esm/lib/components/StepperHorizontalItemWrapper.vue.d.ts +33 -17
  155. package/esm/lib/components/StepperHorizontalItemWrapper.vue.mjs +7 -11
  156. package/esm/lib/components/StepperHorizontalWrapper.vue.d.ts +31 -22
  157. package/esm/lib/components/StepperHorizontalWrapper.vue.mjs +14 -14
  158. package/esm/lib/components/SwitchWrapper.vue.d.ts +64 -62
  159. package/esm/lib/components/SwitchWrapper.vue.mjs +14 -14
  160. package/esm/lib/components/TableBodyWrapper.vue.mjs +6 -6
  161. package/esm/lib/components/TableCellWrapper.vue.d.ts +28 -11
  162. package/esm/lib/components/TableCellWrapper.vue.mjs +6 -10
  163. package/esm/lib/components/TableHeadCellWrapper.vue.d.ts +38 -25
  164. package/esm/lib/components/TableHeadCellWrapper.vue.mjs +8 -12
  165. package/esm/lib/components/TableHeadRowWrapper.vue.mjs +6 -6
  166. package/esm/lib/components/TableHeadWrapper.vue.mjs +8 -8
  167. package/esm/lib/components/TableRowWrapper.vue.mjs +4 -4
  168. package/esm/lib/components/TableWrapper.vue.d.ts +23 -21
  169. package/esm/lib/components/TableWrapper.vue.mjs +14 -14
  170. package/esm/lib/components/TabsBarWrapper.vue.d.ts +54 -50
  171. package/esm/lib/components/TabsBarWrapper.vue.mjs +13 -13
  172. package/esm/lib/components/TabsItemWrapper.vue.d.ts +16 -11
  173. package/esm/lib/components/TabsItemWrapper.vue.mjs +8 -12
  174. package/esm/lib/components/TabsWrapper.vue.d.ts +56 -52
  175. package/esm/lib/components/TabsWrapper.vue.mjs +13 -13
  176. package/esm/lib/components/TagDismissibleWrapper.vue.d.ts +41 -33
  177. package/esm/lib/components/TagDismissibleWrapper.vue.mjs +13 -15
  178. package/esm/lib/components/TagWrapper.vue.d.ts +41 -32
  179. package/esm/lib/components/TagWrapper.vue.mjs +13 -15
  180. package/esm/lib/components/TextFieldWrapperWrapper.vue.d.ts +96 -106
  181. package/esm/lib/components/TextFieldWrapperWrapper.vue.mjs +14 -14
  182. package/esm/lib/components/TextListItemWrapper.vue.mjs +6 -6
  183. package/esm/lib/components/TextListWrapper.vue.d.ts +41 -32
  184. package/esm/lib/components/TextListWrapper.vue.mjs +13 -15
  185. package/esm/lib/components/TextWrapper.vue.d.ts +63 -61
  186. package/esm/lib/components/TextWrapper.vue.mjs +13 -15
  187. package/esm/lib/components/TextareaWrapperWrapper.vue.d.ts +67 -67
  188. package/esm/lib/components/TextareaWrapperWrapper.vue.mjs +13 -15
  189. package/esm/lib/components/ToastWrapper.vue.d.ts +17 -13
  190. package/esm/lib/components/ToastWrapper.vue.mjs +11 -13
  191. package/esm/lib/components/WordmarkWrapper.vue.d.ts +47 -41
  192. package/esm/lib/components/WordmarkWrapper.vue.mjs +11 -13
  193. package/esm/lib/types.d.ts +15 -0
  194. package/esm/utils.d.ts +5 -4
  195. package/esm/utils.mjs +12 -10
  196. package/package.json +2 -2
@@ -1,67 +1,52 @@
1
- import type { BreakpointCustomizable } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- weight: {
4
- type: import("vue").PropType<"regular" | "semi-bold" | "bold" | "thin" | "semibold">;
5
- default: string;
6
- };
7
- size: {
8
- type: import("vue").PropType<BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large">>;
9
- default: string;
10
- };
11
- tag: {
12
- type: import("vue").PropType<"time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend">;
13
- default: string;
14
- };
15
- theme: {
16
- type: import("vue").PropType<"light" | "dark" | "auto">;
17
- default: string;
18
- };
19
- align: {
20
- type: import("vue").PropType<"center" | "start" | "end" | "left" | "right">;
21
- default: string;
22
- };
23
- color: {
24
- 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">;
25
- default: string;
26
- };
27
- ellipsis: {
28
- type: import("vue").PropType<boolean>;
29
- default: boolean;
30
- };
31
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
- weight: {
33
- type: import("vue").PropType<"regular" | "semi-bold" | "bold" | "thin" | "semibold">;
34
- default: string;
35
- };
36
- size: {
37
- type: import("vue").PropType<BreakpointCustomizable<"inherit" | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large">>;
38
- default: string;
39
- };
40
- tag: {
41
- type: import("vue").PropType<"time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend">;
42
- default: string;
43
- };
44
- theme: {
45
- type: import("vue").PropType<"light" | "dark" | "auto">;
46
- default: string;
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 p, onMounted as f, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as i, withCtx as c, renderSlot as g } from "vue";
2
- import { getPrefixedTagName as _, syncProperties as o } from "../../utils.mjs";
3
- const y = /* @__PURE__ */ l({
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: { default: "light" },
11
+ theme: {},
12
12
  weight: { default: "regular" }
13
13
  },
14
- setup(a) {
15
- const t = a, r = _("p-text"), e = p();
16
- return f(() => {
17
- o(e.value, t);
18
- }), s(() => {
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: e
20
+ ref: t
23
21
  }, {
24
- default: c(() => [
25
- g(n.$slots, "default")
22
+ default: C(() => [
23
+ g(o.$slots, "default")
26
24
  ]),
27
25
  _: 3
28
26
  }, 512));
29
27
  }
30
28
  });
31
29
  export {
32
- y as default
30
+ R as default
33
31
  };
@@ -1,71 +1,54 @@
1
- import type { BreakpointCustomizable } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- label: {
4
- type: import("vue").PropType<string>;
5
- default: string;
6
- };
7
- theme: {
8
- type: import("vue").PropType<"light" | "dark" | "auto">;
9
- default: string;
10
- };
11
- description: {
12
- type: import("vue").PropType<string>;
13
- default: string;
14
- };
15
- state: {
16
- type: import("vue").PropType<"none" | "success" | "error">;
17
- default: string;
18
- };
19
- hideLabel: {
20
- type: import("vue").PropType<BreakpointCustomizable<boolean>>;
21
- default: boolean;
22
- };
23
- message: {
24
- type: import("vue").PropType<string>;
25
- default: string;
26
- };
27
- showCharacterCount: {
28
- type: import("vue").PropType<boolean>;
29
- };
30
- showCounter: {
31
- type: import("vue").PropType<boolean>;
32
- default: boolean;
33
- };
34
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
- label: {
36
- type: import("vue").PropType<string>;
37
- default: string;
38
- };
39
- theme: {
40
- type: import("vue").PropType<"light" | "dark" | "auto">;
41
- default: string;
42
- };
43
- description: {
44
- type: import("vue").PropType<string>;
45
- default: string;
46
- };
47
- state: {
48
- type: import("vue").PropType<"none" | "success" | "error">;
49
- default: string;
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 p, ref as l, onMounted as s, onUpdated as f, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as c, withCtx as i, renderSlot as C } from "vue";
2
- import { getPrefixedTagName as h, syncProperties as o } from "../../utils.mjs";
3
- const x = /* @__PURE__ */ p({
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: { default: "light" }
13
+ theme: {}
14
14
  },
15
- setup(a) {
16
- const t = a, r = h("p-textarea-wrapper"), e = l();
17
- return s(() => {
18
- o(e.value, t);
19
- }), f(() => {
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: e
21
+ ref: t
24
22
  }, {
25
- default: i(() => [
26
- C(n.$slots, "default")
23
+ default: _(() => [
24
+ w(o.$slots, "default")
27
25
  ]),
28
26
  _: 3
29
27
  }, 512));
30
28
  }
31
29
  });
32
30
  export {
33
- x as default
31
+ R as default
34
32
  };
@@ -1,14 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- theme: {
3
- type: import("vue").PropType<"light" | "dark" | "auto">;
4
- default: string;
5
- };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- theme: {
8
- type: import("vue").PropType<"light" | "dark" | "auto">;
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 p, ref as a, onMounted as s, onUpdated as m, openBlock as c, createBlock as f, resolveDynamicComponent as l, unref as u } from "vue";
2
- import { getPrefixedTagName as d, syncProperties as t } from "../../utils.mjs";
3
- const h = /* @__PURE__ */ p({
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: { default: "light" }
6
+ theme: {}
7
7
  },
8
- setup(n) {
9
- const o = n, r = d("p-toast"), e = a();
10
- return s(() => {
11
- t(e.value, o);
12
- }), m(() => {
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: e
14
+ ref: t
17
15
  }, null, 512));
18
16
  }
19
17
  });
20
18
  export {
21
- h as default
19
+ j as default
22
20
  };
@@ -1,45 +1,51 @@
1
- import type { SelectedAriaAttributes } from '../types';
2
- declare const _default: import("vue").DefineComponent<{
3
- size: {
4
- type: import("vue").PropType<"inherit" | "small">;
5
- default: string;
6
- };
7
- theme: {
8
- type: import("vue").PropType<"light" | "dark" | "auto">;
9
- default: string;
10
- };
11
- aria: {
12
- type: import("vue").PropType<SelectedAriaAttributes<"aria-label" | "aria-current">>;
13
- };
14
- href: {
15
- type: import("vue").PropType<string>;
16
- };
17
- target: {
18
- type: import("vue").PropType<string>;
19
- default: string;
20
- };
21
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
- size: {
23
- type: import("vue").PropType<"inherit" | "small">;
24
- default: string;
25
- };
26
- theme: {
27
- type: import("vue").PropType<"light" | "dark" | "auto">;
28
- default: string;
29
- };
30
- aria: {
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 p, onMounted as f, onUpdated as m, openBlock as s, createBlock as l, resolveDynamicComponent as c, unref as d } from "vue";
2
- import { getPrefixedTagName as u, syncProperties as r } from "../../utils.mjs";
3
- const C = /* @__PURE__ */ a({
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: { default: "light" }
10
+ theme: {}
11
11
  },
12
- setup(t) {
13
- const o = t, n = u("p-wordmark"), e = p();
14
- return f(() => {
15
- r(e.value, o);
16
- }), m(() => {
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: e
18
+ ref: t
21
19
  }, null, 512));
22
20
  }
23
21
  });
24
22
  export {
25
- C as default
23
+ R as default
26
24
  };
@@ -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 getPrefixedTagName: (tagName: string) => string;
5
- export declare const syncProperties: <T extends HTMLElement>(elementRef: T, props: Partial<T>) => void;
6
- export declare const addEventListenerToElementRef: <T extends HTMLElement, E extends string>(elementRef: T, eventName: E, emit: (eventName: E, detail: any) => void) => void;
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
  };