@porsche-design-system/components-vue 3.2.0-rc.0 → 3.3.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 (60) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/PorscheDesignSystemProvider.vue.d.ts +11 -26
  3. package/lib/components/AccordionWrapper.vue.d.ts +47 -54
  4. package/lib/components/BannerWrapper.vue.d.ts +66 -69
  5. package/lib/components/ButtonGroupWrapper.vue.d.ts +16 -33
  6. package/lib/components/ButtonPureWrapper.vue.d.ts +104 -98
  7. package/lib/components/ButtonTileWrapper.vue.d.ts +112 -99
  8. package/lib/components/ButtonWrapper.vue.d.ts +72 -73
  9. package/lib/components/CarouselWrapper.vue.d.ts +97 -91
  10. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +52 -59
  11. package/lib/components/ContentWrapperWrapper.vue.d.ts +27 -43
  12. package/lib/components/CrestWrapper.vue.d.ts +24 -37
  13. package/lib/components/DisplayWrapper.vue.d.ts +50 -57
  14. package/lib/components/DividerWrapper.vue.d.ts +34 -45
  15. package/lib/components/FieldsetWrapper.vue.d.ts +51 -59
  16. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +51 -59
  17. package/lib/components/FlexItemWrapper.vue.d.ts +52 -59
  18. package/lib/components/FlexWrapper.vue.d.ts +52 -59
  19. package/lib/components/FlyoutWrapper.vue.d.ts +37 -46
  20. package/lib/components/GridItemWrapper.vue.d.ts +20 -35
  21. package/lib/components/GridWrapper.vue.d.ts +34 -48
  22. package/lib/components/HeadingWrapper.vue.d.ts +50 -57
  23. package/lib/components/HeadlineWrapper.vue.d.ts +50 -57
  24. package/lib/components/IconWrapper.vue.d.ts +54 -60
  25. package/lib/components/InlineNotificationWrapper.vue.d.ts +72 -74
  26. package/lib/components/LinkPureWrapper.vue.d.ts +114 -104
  27. package/lib/components/LinkSocialWrapper.vue.d.ts +52 -57
  28. package/lib/components/LinkTileModelSignatureWrapper.vue.d.ts +62 -65
  29. package/lib/components/LinkTileWrapper.vue.d.ts +102 -89
  30. package/lib/components/LinkWrapper.vue.d.ts +74 -73
  31. package/lib/components/MarqueWrapper.vue.d.ts +48 -55
  32. package/lib/components/ModalWrapper.vue.d.ts +57 -60
  33. package/lib/components/ModelSignatureWrapper.vue.d.ts +35 -47
  34. package/lib/components/PaginationWrapper.vue.d.ts +101 -94
  35. package/lib/components/PopoverWrapper.vue.d.ts +32 -43
  36. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +44 -53
  37. package/lib/components/ScrollerWrapper.vue.d.ts +60 -63
  38. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +37 -45
  39. package/lib/components/SegmentedControlWrapper.vue.d.ts +25 -38
  40. package/lib/components/SelectWrapperWrapper.vue.d.ts +76 -77
  41. package/lib/components/SpinnerWrapper.vue.d.ts +26 -39
  42. package/lib/components/StepperHorizontalItemWrapper.vue.d.ts +17 -33
  43. package/lib/components/StepperHorizontalWrapper.vue.d.ts +21 -33
  44. package/lib/components/SwitchWrapper.vue.d.ts +61 -66
  45. package/lib/components/TableCellWrapper.vue.d.ts +11 -28
  46. package/lib/components/TableHeadCellWrapper.vue.d.ts +25 -38
  47. package/lib/components/TableWrapper.vue.d.ts +18 -34
  48. package/lib/components/TabsBarWrapper.vue.d.ts +49 -56
  49. package/lib/components/TabsItemWrapper.vue.d.ts +11 -16
  50. package/lib/components/TabsWrapper.vue.d.ts +51 -58
  51. package/lib/components/TagDismissibleWrapper.vue.d.ts +32 -43
  52. package/lib/components/TagWrapper.vue.d.ts +31 -43
  53. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +105 -98
  54. package/lib/components/TextListWrapper.vue.d.ts +31 -43
  55. package/lib/components/TextWrapper.vue.d.ts +60 -65
  56. package/lib/components/TextareaWrapperWrapper.vue.d.ts +66 -69
  57. package/lib/components/ToastWrapper.vue.d.ts +11 -29
  58. package/lib/components/WordmarkWrapper.vue.d.ts +40 -49
  59. package/lib/types.d.ts +27 -2
  60. package/package.json +2 -2
@@ -1,55 +1,69 @@
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
- theme: string;
44
- }>, {}, 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>, {
45
- description: string;
46
- hideLabel: boolean;
47
- label: string;
48
- message: string;
49
- showCounter: boolean;
50
- state: string;
51
- theme: string;
52
- }>>>, {
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">;
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">;
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
+ }>>, {
53
67
  label: string;
54
68
  theme: "light" | "dark";
55
69
  description: string;
@@ -61,25 +75,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
61
75
  default?(_: {}): any;
62
76
  }>;
63
77
  export default _default;
64
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
65
- type __VLS_TypePropsToRuntimeProps<T> = {
66
- [K in keyof T]-?: {} extends Pick<T, K> ? {
67
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
68
- } : {
69
- type: import('vue').PropType<T[K]>;
70
- required: true;
71
- };
72
- };
73
- type __VLS_WithDefaults<P, D> = {
74
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
75
- default: D[K];
76
- }> : P[K];
77
- };
78
78
  type __VLS_WithTemplateSlots<T, S> = T & {
79
79
  new (): {
80
80
  $slots: S;
81
81
  };
82
82
  };
83
- type __VLS_Prettify<T> = {
84
- [K in keyof T]: T[K];
85
- } & {};
@@ -1,32 +1,14 @@
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_WithDefaults<__VLS_TypePropsToRuntimeProps<PToastProps>, {
9
- theme: string;
10
- }>, {}, 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<PToastProps>, {
11
- theme: string;
12
- }>>>, {
1
+ declare const _default: import("vue").DefineComponent<{
2
+ theme: {
3
+ type: import("vue").PropType<"light" | "dark">;
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">;
9
+ default: string;
10
+ };
11
+ }>>, {
13
12
  theme: "light" | "dark";
14
13
  }, {}>;
15
14
  export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToRuntimeProps<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
25
- type __VLS_WithDefaults<P, D> = {
26
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
- default: D[K];
28
- }> : P[K];
29
- };
30
- type __VLS_Prettify<T> = {
31
- [K in keyof T]: T[K];
32
- } & {};
@@ -1,54 +1,45 @@
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
- theme: string;
28
- }>, {}, 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>, {
29
- size: string;
30
- target: string;
31
- theme: string;
32
- }>>>, {
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">;
9
+ default: string;
10
+ };
11
+ aria: {
12
+ type: import("vue").PropType<SelectedAriaAttributes<"aria-label">>;
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">;
28
+ default: string;
29
+ };
30
+ aria: {
31
+ type: import("vue").PropType<SelectedAriaAttributes<"aria-label">>;
32
+ };
33
+ href: {
34
+ type: import("vue").PropType<string>;
35
+ };
36
+ target: {
37
+ type: import("vue").PropType<string>;
38
+ default: string;
39
+ };
40
+ }>>, {
33
41
  size: "inherit" | "small";
34
42
  theme: "light" | "dark";
35
43
  target: string;
36
44
  }, {}>;
37
45
  export default _default;
38
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
- type __VLS_TypePropsToRuntimeProps<T> = {
40
- [K in keyof T]-?: {} extends Pick<T, K> ? {
41
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
42
- } : {
43
- type: import('vue').PropType<T[K]>;
44
- required: true;
45
- };
46
- };
47
- type __VLS_WithDefaults<P, D> = {
48
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
- default: D[K];
50
- }> : P[K];
51
- };
52
- type __VLS_Prettify<T> = {
53
- [K in keyof T]: T[K];
54
- } & {};
package/lib/types.d.ts CHANGED
@@ -10,6 +10,16 @@ export type AriaAttributes = {
10
10
  */
11
11
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
12
12
  /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
13
+ /**
14
+ * Defines a string value that labels the current element, which is intended to be converted into Braille.
15
+ * @see aria-label.
16
+ */
17
+ "aria-braillelabel"?: string | undefined;
18
+ /**
19
+ * Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
20
+ * @see aria-roledescription.
21
+ */
22
+ "aria-brailleroledescription"?: string | undefined;
13
23
  "aria-busy"?: Booleanish | undefined;
14
24
  /**
15
25
  * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
@@ -26,6 +36,11 @@ export type AriaAttributes = {
26
36
  * @see aria-colcount @see aria-colspan.
27
37
  */
28
38
  "aria-colindex"?: number | undefined;
39
+ /**
40
+ * Defines a human readable text alternative of aria-colindex.
41
+ * @see aria-rowindextext.
42
+ */
43
+ "aria-colindextext"?: string | undefined;
29
44
  /**
30
45
  * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
31
46
  * @see aria-colindex @see aria-rowspan.
@@ -43,6 +58,11 @@ export type AriaAttributes = {
43
58
  * @see aria-labelledby
44
59
  */
45
60
  "aria-describedby"?: string | undefined;
61
+ /**
62
+ * Defines a string value that describes or annotates the current element.
63
+ * @see related aria-describedby.
64
+ */
65
+ "aria-description"?: string | undefined;
46
66
  /**
47
67
  * Identifies the element that provides a detailed, extended description for the object.
48
68
  * @see aria-describedby.
@@ -156,6 +176,11 @@ export type AriaAttributes = {
156
176
  * @see aria-rowcount @see aria-rowspan.
157
177
  */
158
178
  "aria-rowindex"?: number | undefined;
179
+ /**
180
+ * Defines a human readable text alternative of aria-rowindex.
181
+ * @see aria-colindextext.
182
+ */
183
+ "aria-rowindextext"?: string | undefined;
159
184
  /**
160
185
  * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
161
186
  * @see aria-rowindex @see aria-colspan.
@@ -667,7 +692,7 @@ declare const FIELDSET_LABEL_SIZES: readonly [
667
692
  "small",
668
693
  "medium"
669
694
  ];
670
- export type FieldsetLabelSize = typeof FIELDSET_LABEL_SIZES[number];
695
+ export type FieldsetLabelSize = (typeof FIELDSET_LABEL_SIZES)[number];
671
696
  export type FieldsetState = FormState;
672
697
  export type FieldsetWrapperLabelSize = FieldsetLabelSize;
673
698
  export type FieldsetWrapperState = FieldsetState;
@@ -1106,7 +1131,7 @@ declare const TAG_COLORS: readonly [
1106
1131
  "notification-success",
1107
1132
  "notification-error"
1108
1133
  ];
1109
- export type TagColor = typeof TAG_COLORS[number];
1134
+ export type TagColor = (typeof TAG_COLORS)[number];
1110
1135
  declare const TEXT_TAGS: readonly [
1111
1136
  "p",
1112
1137
  "span",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.2.0-rc.0",
3
+ "version": "3.3.0-rc.0",
4
4
  "description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
5
5
  "keywords": [
6
6
  "porsche",
@@ -17,7 +17,7 @@
17
17
  "license": "SEE LICENSE IN LICENSE",
18
18
  "homepage": "https://designsystem.porsche.com",
19
19
  "dependencies": {
20
- "@porsche-design-system/components-js": "3.2.0-rc.0"
20
+ "@porsche-design-system/components-js": "3.3.0-rc.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"