@porsche-design-system/components-vue 3.4.0 → 3.5.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 CHANGED
@@ -14,6 +14,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
14
14
 
15
15
  ### [Unreleased]
16
16
 
17
+ ### [3.5.0] - 2023-07-25
18
+
19
+ ### [3.5.0-rc.0] - 2023-07-21
20
+
21
+ #### Added
22
+
23
+ - `background` property to `Button Tile` and `Link Tile` component to adapt the description and link/button theme when
24
+ used on light background image ([#2669](https://github.com/porsche-design-system/porsche-design-system/pull/2669))
25
+ - Breakpoint customizable property `columns` to `Segmented Control` to set the amount of columns
26
+ ([#2652](https://github.com/porsche-design-system/porsche-design-system/pull/2652))
27
+
28
+ ### Fixed
29
+
30
+ - Alignment of `Icon` inside `Accordion` header
31
+ ([#2673](https://github.com/porsche-design-system/porsche-design-system/pull/2673))
32
+
17
33
  ### [3.4.0] - 2023-07-14
18
34
 
19
35
  ### [3.4.0-rc.0] - 2023-07-13
@@ -50,6 +50,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
50
50
  type: import("vue").PropType<BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">>;
51
51
  default: string;
52
52
  };
53
+ background: {
54
+ type: import("vue").PropType<"light" | "dark">;
55
+ default: string;
56
+ };
53
57
  gradient: {
54
58
  type: import("vue").PropType<boolean>;
55
59
  default: boolean;
@@ -105,6 +109,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
105
109
  type: import("vue").PropType<BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">>;
106
110
  default: string;
107
111
  };
112
+ background: {
113
+ type: import("vue").PropType<"light" | "dark">;
114
+ default: string;
115
+ };
108
116
  gradient: {
109
117
  type: import("vue").PropType<boolean>;
110
118
  default: boolean;
@@ -119,6 +127,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
119
127
  loading: boolean;
120
128
  align: "top" | "bottom";
121
129
  aspectRatio: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">;
130
+ background: "light" | "dark";
122
131
  gradient: boolean;
123
132
  }, {}>, {
124
133
  default?(_: {}): any;
@@ -1,11 +1,12 @@
1
- import { defineComponent as r, ref as d, onMounted as f, onUpdated as p, openBlock as u, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as b } from "vue";
1
+ import { defineComponent as d, ref as r, onMounted as f, onUpdated as p, openBlock as u, createBlock as s, resolveDynamicComponent as i, unref as c, withCtx as m, renderSlot as b } from "vue";
2
2
  import { getPrefixedTagName as g, syncProperties as o } from "../../utils.js";
3
- const C = /* @__PURE__ */ r({
3
+ const C = /* @__PURE__ */ d({
4
4
  __name: "ButtonTileWrapper",
5
5
  props: {
6
6
  align: { default: "bottom" },
7
7
  aria: {},
8
8
  aspectRatio: { default: "4:3" },
9
+ background: { default: "dark" },
9
10
  compact: { default: !1 },
10
11
  description: {},
11
12
  disabled: { type: Boolean, default: !1 },
@@ -19,7 +20,7 @@ const C = /* @__PURE__ */ r({
19
20
  weight: { default: "semi-bold" }
20
21
  },
21
22
  setup(a) {
22
- const t = a, n = g("p-button-tile"), e = d();
23
+ const t = a, n = g("p-button-tile"), e = r();
23
24
  return f(() => {
24
25
  o(e.value, t);
25
26
  }), p(() => {
@@ -2,25 +2,25 @@ import type { BreakpointCustomizable } from '../types';
2
2
  /** @deprecated since v3.0.0, will be removed with next major release. Use native CSS Grid instead. */
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  size: {
5
- type: import("vue").PropType<BreakpointCustomizable<3 | 4 | 7 | 5 | 2 | 1 | 6 | 12 | 8 | 9 | 10 | 11>>;
5
+ type: import("vue").PropType<BreakpointCustomizable<3 | 4 | 7 | 2 | 5 | 1 | 6 | 12 | 8 | 9 | 10 | 11>>;
6
6
  default: number;
7
7
  };
8
8
  offset: {
9
- type: import("vue").PropType<BreakpointCustomizable<0 | 3 | 4 | 7 | 5 | 2 | 1 | 6 | 8 | 9 | 10 | 11>>;
9
+ type: import("vue").PropType<BreakpointCustomizable<0 | 3 | 4 | 7 | 2 | 5 | 1 | 6 | 8 | 9 | 10 | 11>>;
10
10
  default: number;
11
11
  };
12
12
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
13
  size: {
14
- type: import("vue").PropType<BreakpointCustomizable<3 | 4 | 7 | 5 | 2 | 1 | 6 | 12 | 8 | 9 | 10 | 11>>;
14
+ type: import("vue").PropType<BreakpointCustomizable<3 | 4 | 7 | 2 | 5 | 1 | 6 | 12 | 8 | 9 | 10 | 11>>;
15
15
  default: number;
16
16
  };
17
17
  offset: {
18
- type: import("vue").PropType<BreakpointCustomizable<0 | 3 | 4 | 7 | 5 | 2 | 1 | 6 | 8 | 9 | 10 | 11>>;
18
+ type: import("vue").PropType<BreakpointCustomizable<0 | 3 | 4 | 7 | 2 | 5 | 1 | 6 | 8 | 9 | 10 | 11>>;
19
19
  default: number;
20
20
  };
21
21
  }>>, {
22
- size: BreakpointCustomizable<3 | 4 | 7 | 5 | 2 | 1 | 6 | 12 | 8 | 9 | 10 | 11>;
23
- offset: BreakpointCustomizable<0 | 3 | 4 | 7 | 5 | 2 | 1 | 6 | 8 | 9 | 10 | 11>;
22
+ size: BreakpointCustomizable<3 | 4 | 7 | 2 | 5 | 1 | 6 | 12 | 8 | 9 | 10 | 11>;
23
+ offset: BreakpointCustomizable<0 | 3 | 4 | 7 | 2 | 5 | 1 | 6 | 8 | 9 | 10 | 11>;
24
24
  }, {}>, {
25
25
  default?(_: {}): any;
26
26
  }>;
@@ -34,6 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
34
  type: import("vue").PropType<BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">>;
35
35
  default: string;
36
36
  };
37
+ background: {
38
+ type: import("vue").PropType<"light" | "dark">;
39
+ default: string;
40
+ };
37
41
  gradient: {
38
42
  type: import("vue").PropType<boolean>;
39
43
  default: boolean;
@@ -84,6 +88,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
84
88
  type: import("vue").PropType<BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">>;
85
89
  default: string;
86
90
  };
91
+ background: {
92
+ type: import("vue").PropType<"light" | "dark">;
93
+ default: string;
94
+ };
87
95
  gradient: {
88
96
  type: import("vue").PropType<boolean>;
89
97
  default: boolean;
@@ -105,6 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
105
113
  size: BreakpointCustomizable<"default" | "inherit">;
106
114
  align: "top" | "bottom";
107
115
  aspectRatio: BreakpointCustomizable<"1:1" | "4:3" | "3:4" | "16:9" | "9:16">;
116
+ background: "light" | "dark";
108
117
  gradient: boolean;
109
118
  target: string;
110
119
  }, {}>, {
@@ -1,11 +1,12 @@
1
- import { defineComponent as l, ref as f, onMounted as p, onUpdated as d, openBlock as s, createBlock as i, resolveDynamicComponent as u, unref as c, withCtx as m, renderSlot as _ } from "vue";
2
- import { getPrefixedTagName as g, syncProperties as o } from "../../utils.js";
1
+ import { defineComponent as l, ref as d, onMounted as f, onUpdated as p, openBlock as s, createBlock as i, resolveDynamicComponent as u, unref as c, withCtx as m, renderSlot as g } from "vue";
2
+ import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
3
3
  const h = /* @__PURE__ */ l({
4
4
  __name: "LinkTileWrapper",
5
5
  props: {
6
6
  align: { default: "bottom" },
7
7
  aria: {},
8
8
  aspectRatio: { default: "4:3" },
9
+ background: { default: "dark" },
9
10
  compact: { default: !1 },
10
11
  description: {},
11
12
  download: {},
@@ -18,17 +19,17 @@ const h = /* @__PURE__ */ l({
18
19
  weight: { default: "semi-bold" }
19
20
  },
20
21
  setup(a) {
21
- const t = a, n = g("p-link-tile"), e = f();
22
- return p(() => {
22
+ const t = a, n = _("p-link-tile"), e = d();
23
+ return f(() => {
23
24
  o(e.value, t);
24
- }), d(() => {
25
+ }), p(() => {
25
26
  o(e.value, t);
26
- }), (r, C) => (s(), i(u(c(n)), {
27
+ }), (r, k) => (s(), i(u(c(n)), {
27
28
  ref_key: "pdsComponentRef",
28
29
  ref: e
29
30
  }, {
30
31
  default: m(() => [
31
- _(r.$slots, "default")
32
+ g(r.$slots, "default")
32
33
  ]),
33
34
  _: 3
34
35
  }, 512));
@@ -1,4 +1,4 @@
1
- import type { SegmentedControlUpdateEvent } from '../types';
1
+ import type { BreakpointCustomizable, SegmentedControlUpdateEvent } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  theme: {
4
4
  type: import("vue").PropType<"light" | "dark">;
@@ -10,6 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  value: {
11
11
  type: import("vue").PropType<string | number>;
12
12
  };
13
+ columns: {
14
+ type: import("vue").PropType<BreakpointCustomizable<string | number>>;
15
+ default: string;
16
+ };
13
17
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
18
  segmentedControlChange: (value: SegmentedControlUpdateEvent) => void;
15
19
  update: (value: SegmentedControlUpdateEvent) => void;
@@ -24,11 +28,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
24
28
  value: {
25
29
  type: import("vue").PropType<string | number>;
26
30
  };
31
+ columns: {
32
+ type: import("vue").PropType<BreakpointCustomizable<string | number>>;
33
+ default: string;
34
+ };
27
35
  }>> & {
28
36
  onUpdate?: ((value: SegmentedControlUpdateEvent) => any) | undefined;
29
37
  onSegmentedControlChange?: ((value: SegmentedControlUpdateEvent) => any) | undefined;
30
38
  }, {
31
39
  theme: "light" | "dark";
40
+ columns: BreakpointCustomizable<string | number>;
32
41
  }, {}>, {
33
42
  default?(_: {}): any;
34
43
  }>;
@@ -1,25 +1,26 @@
1
- import { defineComponent as l, ref as s, onMounted as m, onUpdated as u, openBlock as f, createBlock as c, resolveDynamicComponent as C, unref as g, withCtx as i, renderSlot as v } from "vue";
1
+ import { defineComponent as d, ref as s, onMounted as m, onUpdated as u, openBlock as f, createBlock as c, resolveDynamicComponent as C, unref as g, withCtx as i, renderSlot as v } from "vue";
2
2
  import { getPrefixedTagName as _, syncProperties as n, addEventListenerToElementRef as r } from "../../utils.js";
3
- const y = /* @__PURE__ */ l({
3
+ const y = /* @__PURE__ */ d({
4
4
  __name: "SegmentedControlWrapper",
5
5
  props: {
6
6
  backgroundColor: {},
7
+ columns: { default: "auto" },
7
8
  theme: { default: "light" },
8
9
  value: {}
9
10
  },
10
11
  emits: ["segmentedControlChange", "update"],
11
12
  setup(a, { emit: o }) {
12
- const t = a, p = _("p-segmented-control"), e = s();
13
+ const t = a, l = _("p-segmented-control"), e = s();
13
14
  return m(() => {
14
15
  n(e.value, t), r(e.value, "segmentedControlChange", o), r(e.value, "update", o);
15
16
  }), u(() => {
16
17
  n(e.value, t);
17
- }), (d, h) => (f(), c(C(g(p)), {
18
+ }), (p, h) => (f(), c(C(g(l)), {
18
19
  ref_key: "pdsComponentRef",
19
20
  ref: e
20
21
  }, {
21
22
  default: i(() => [
22
- v(d.$slots, "default")
23
+ v(p.$slots, "default")
23
24
  ]),
24
25
  _: 3
25
26
  }, 512));
package/lib/types.d.ts CHANGED
@@ -441,6 +441,11 @@ export type BreakpointValues<T> = {
441
441
  base: T;
442
442
  };
443
443
  export type BreakpointCustomizable<T> = T | BreakpointValues<T> | string;
444
+ declare const THEMES: readonly [
445
+ "light",
446
+ "dark"
447
+ ];
448
+ export type Theme = typeof THEMES[number];
444
449
  declare const TILE_ASPECT_RATIOS: readonly [
445
450
  "1:1",
446
451
  "4:3",
@@ -459,6 +464,7 @@ declare const TILE_WEIGHTS: readonly [
459
464
  "semi-bold"
460
465
  ];
461
466
  export type TileWeight = (typeof TILE_WEIGHTS)[number];
467
+ export type TileBackground = (typeof THEMES)[number];
462
468
  declare const TILE_ALIGNS: readonly [
463
469
  "top",
464
470
  "bottom"
@@ -490,11 +496,6 @@ declare const SCROLL_INDICATOR_POSITIONS: readonly [
490
496
  /** @deprecated */
491
497
  export type ScrollerScrollIndicatorPosition = (typeof SCROLL_INDICATOR_POSITIONS)[number];
492
498
  export type ScrollerAlignScrollIndicator = ScrollerScrollIndicatorPosition;
493
- declare const THEMES: readonly [
494
- "light",
495
- "dark"
496
- ];
497
- export type Theme = typeof THEMES[number];
498
499
  declare const ALIGN_LABELS: readonly [
499
500
  "left",
500
501
  "right"
@@ -615,6 +616,7 @@ export type ButtonTileIcon = LinkButtonIconName;
615
616
  export type ButtonTileType = ButtonType;
616
617
  export type ButtonTileAspectRatio = TileAspectRatio;
617
618
  export type ButtonTileSize = TileSize;
619
+ export type ButtonTileBackground = TileBackground;
618
620
  export type ButtonTileWeight = TileWeight;
619
621
  export type ButtonTileAlign = TileAlign;
620
622
  declare const CAROUSEL_WIDTHS: readonly [
@@ -931,6 +933,7 @@ export type LinkTileTarget = LinkTarget;
931
933
  export type LinkTileAriaAttribute = LinkAriaAttribute;
932
934
  export type LinkTileAspectRatio = TileAspectRatio;
933
935
  export type LinkTileSize = TileSize;
936
+ export type LinkTileBackground = TileBackground;
934
937
  export type LinkTileAlign = TileAlign;
935
938
  declare const LINK_TILE_WEIGHTS: readonly [
936
939
  "regular",
@@ -1038,6 +1041,8 @@ export type SegmentedControlBackgroundColor = (typeof SEGMENTED_CONTROL_BACKGROU
1038
1041
  export type SegmentedControlUpdateEvent = {
1039
1042
  value: string | number;
1040
1043
  };
1044
+ declare const SEGMENTED_CONTROL_COLUMNS: (string | number)[];
1045
+ export type SegmentedControlColumns = (typeof SEGMENTED_CONTROL_COLUMNS)[number];
1041
1046
  export type SegmentedControlItemIcon = LinkButtonIconName;
1042
1047
  declare const DROPDOWN_DIRECTIONS: readonly [
1043
1048
  "down",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.4.0",
3
+ "version": "3.5.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.4.0"
20
+ "@porsche-design-system/components-js": "3.5.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"