@porsche-design-system/components-vue 3.17.0-rc.0 → 3.17.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -14,6 +14,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
14
14
 
15
15
  ### [Unreleased]
16
16
 
17
+ ### [3.17.0-rc.2] - 2024-08-01
18
+
19
+ #### Fixed
20
+
21
+ - `Optgoup`: hydration error in Next.js SSR context
22
+ ([#3432](https://github.com/porsche-design-system/porsche-design-system/pull/3432))
23
+ - `Select`: ensure slotted image width
24
+ ([#3432](https://github.com/porsche-design-system/porsche-design-system/pull/3432))
25
+
26
+ ### [3.17.0-rc.1] - 2024-07-31
27
+
28
+ #### Added
29
+
30
+ - `Button`, `Link`:
31
+ - Prop `variant` extended by value `ghost`
32
+ ([#3423](https://github.com/porsche-design-system/porsche-design-system/pull/3423))
33
+ - Prop `compact` ([#3423](https://github.com/porsche-design-system/porsche-design-system/pull/3423))
34
+
35
+ #### Fixed
36
+
37
+ - `Tabs Bar`: fixed tabindex issue when `Tabs Bar` is rendered with the `Scroller` component
38
+ ([#3421](https://github.com/porsche-design-system/porsche-design-system/pull/3421))
39
+
17
40
  ### [3.17.0-rc.0] - 2024-07-29
18
41
 
19
42
  #### Added
@@ -75,12 +98,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
75
98
 
76
99
  - `Link Pure`: Broken with `alignLabel="start"`, hidden label & nested anchor
77
100
  ([#3379](https://github.com/porsche-design-system/porsche-design-system/pull/3379))
78
- - `PTextFieldWrapper`, `PTextareaWrapper`: Conditionally rendered component throws
101
+ - `Textfield Wrapper`, `Textarea Wrapper`: Conditionally rendered component throws
79
102
  `TypeError: Cannot read properties of undefined (reading 'type')`
80
103
  ([#3383](https://github.com/porsche-design-system/porsche-design-system/pull/3383))
81
- - `LinkTile`: Broken word-break & hyphens Safari
104
+ - `Link Tile`: Broken word-break & hyphens Safari
82
105
  ([#3397](https://github.com/porsche-design-system/porsche-design-system/pull/3397))
83
- - `Select-Wrapper`: `optgroup` styling and behavior
106
+ - `Select Wrapper`: `optgroup` styling and behavior
84
107
  ([#3410](https://github.com/porsche-design-system/porsche-design-system/pull/3410))
85
108
 
86
109
  ### [3.16.0] - 2024-07-02
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"ButtonWrapper",props:{aria:{},disabled:{type:Boolean,default:!1},hideLabel:{default:!1},icon:{default:"none"},iconSource:{},loading:{type:Boolean,default:!1},name:{},theme:{},type:{default:"submit"},value:{},variant:{default:"primary"}},setup(c){const p=t.usePrefix("p-button"),n=c,o=e.ref(),r=e.inject(t.themeInjectionKey),s=()=>t.syncProperties(o,{...n,theme:n.theme||r.value});return e.onMounted(s),e.onUpdated(s),e.watch(r,a=>{t.syncProperties(o,{theme:n.theme||a})}),(a,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},512))}});module.exports=u;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),p=e.defineComponent({__name:"ButtonWrapper",props:{aria:{},compact:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideLabel:{default:!1},icon:{default:"none"},iconSource:{},loading:{type:Boolean,default:!1},name:{},theme:{},type:{default:"submit"},value:{},variant:{default:"primary"}},setup(c){const l=t.usePrefix("p-button"),n=c,o=e.ref(),s=e.inject(t.themeInjectionKey),r=()=>t.syncProperties(o,{...n,theme:n.theme||s.value});return e.onMounted(r),e.onUpdated(r),e.watch(s,a=>{t.syncProperties(o,{theme:n.theme||a})}),(a,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},512))}});module.exports=p;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),a=e.defineComponent({__name:"LinkSocialWrapper",props:{hideLabel:{default:!1},href:{},icon:{},iconSource:{},rel:{},target:{default:"_self"},theme:{}},setup(p){const i=t.usePrefix("p-link-social"),n=p,o=e.ref(),s=e.inject(t.themeInjectionKey),c=()=>t.syncProperties(o,{...n,theme:n.theme||s.value});return e.onMounted(c),e.onUpdated(c),e.watch(s,r=>{t.syncProperties(o,{theme:n.theme||r})}),(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=a;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),l=e.defineComponent({__name:"LinkSocialWrapper",props:{compact:{type:Boolean,default:!1},hideLabel:{default:!1},href:{},icon:{},iconSource:{},rel:{},target:{default:"_self"},theme:{}},setup(a){const p=t.usePrefix("p-link-social"),o=a,n=e.ref(),s=e.inject(t.themeInjectionKey),c=()=>t.syncProperties(n,{...o,theme:o.theme||s.value});return e.onMounted(c),e.onUpdated(c),e.watch(s,r=>{t.syncProperties(n,{theme:o.theme||r})}),(r,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),{ref_key:"pdsComponentRef",ref:n},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=l;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../../utils.cjs"),i=e.defineComponent({__name:"LinkWrapper",props:{aria:{},download:{},hideLabel:{default:!1},href:{},icon:{default:"none"},iconSource:{},rel:{},target:{default:"_self"},theme:{},variant:{default:"primary"}},setup(c){const p=t.usePrefix("p-link"),n=c,o=e.ref(),s=e.inject(t.themeInjectionKey),a=()=>t.syncProperties(o,{...n,theme:n.theme||s.value});return e.onMounted(a),e.onUpdated(a),e.watch(s,r=>{t.syncProperties(o,{theme:n.theme||r})}),(r,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=i;
1
+ "use strict";const e=require("vue"),t=require("../../utils.cjs"),l=e.defineComponent({__name:"LinkWrapper",props:{aria:{},compact:{type:Boolean,default:!1},download:{},hideLabel:{default:!1},href:{},icon:{default:"none"},iconSource:{},rel:{},target:{default:"_self"},theme:{},variant:{default:"primary"}},setup(c){const p=t.usePrefix("p-link"),n=c,o=e.ref(),s=e.inject(t.themeInjectionKey),a=()=>t.syncProperties(o,{...n,theme:n.theme||s.value});return e.onMounted(a),e.onUpdated(a),e.watch(s,r=>{t.syncProperties(o,{theme:n.theme||r})}),(r,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p)),{ref_key:"pdsComponentRef",ref:o},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},512))}});module.exports=l;
@@ -4,6 +4,10 @@ type PButtonProps = {
4
4
  * Add ARIA attributes.
5
5
  */
6
6
  aria?: SelectedAriaAttributes<ButtonAriaAttribute>;
7
+ /**
8
+ * Displays as compact version.
9
+ */
10
+ compact?: boolean;
7
11
  /**
8
12
  * Disables the button. No events will be triggered while disabled state is active.
9
13
  */
@@ -49,6 +53,7 @@ declare function __VLS_template(): {
49
53
  default?(_: {}): any;
50
54
  };
51
55
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonProps>, {
56
+ compact: boolean;
52
57
  disabled: boolean;
53
58
  hideLabel: boolean;
54
59
  icon: string;
@@ -56,6 +61,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
56
61
  type: string;
57
62
  variant: string;
58
63
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PButtonProps>, {
64
+ compact: boolean;
59
65
  disabled: boolean;
60
66
  hideLabel: boolean;
61
67
  icon: string;
@@ -64,6 +70,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
64
70
  variant: string;
65
71
  }>>>, {
66
72
  type: ButtonType;
73
+ compact: boolean;
67
74
  disabled: boolean;
68
75
  hideLabel: BreakpointCustomizable<boolean>;
69
76
  icon: ButtonIcon;
@@ -1,9 +1,10 @@
1
- import { defineComponent as f, ref as l, 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 b } from "vue";
2
- import { usePrefix as B, themeInjectionKey as v, syncProperties as r } from "../../utils.mjs";
3
- const P = /* @__PURE__ */ f({
1
+ import { defineComponent as s, ref as f, inject as c, onMounted as m, onUpdated as u, watch as d, openBlock as i, createBlock as h, resolveDynamicComponent as y, unref as _, withCtx as B, renderSlot as C } from "vue";
2
+ import { usePrefix as b, themeInjectionKey as v, syncProperties as r } from "../../utils.mjs";
3
+ const P = /* @__PURE__ */ s({
4
4
  __name: "ButtonWrapper",
5
5
  props: {
6
6
  aria: {},
7
+ compact: { type: Boolean, default: !1 },
7
8
  disabled: { type: Boolean, default: !1 },
8
9
  hideLabel: { default: !1 },
9
10
  icon: { default: "none" },
@@ -16,15 +17,15 @@ const P = /* @__PURE__ */ f({
16
17
  variant: { default: "primary" }
17
18
  },
18
19
  setup(p) {
19
- const s = B("p-button"), e = p, t = l(), n = m(v), a = () => r(t, { ...e, theme: e.theme || n.value });
20
- return c(a), u(a), d(n, (o) => {
20
+ const l = b("p-button"), e = p, t = f(), n = c(v), a = () => r(t, { ...e, theme: e.theme || n.value });
21
+ return m(a), u(a), d(n, (o) => {
21
22
  r(t, { theme: e.theme || o });
22
- }), (o, k) => (i(), h(y(_(s)), {
23
+ }), (o, k) => (i(), h(y(_(l)), {
23
24
  ref_key: "pdsComponentRef",
24
25
  ref: t
25
26
  }, {
26
- default: C(() => [
27
- b(o.$slots, "default")
27
+ default: B(() => [
28
+ C(o.$slots, "default")
28
29
  ]),
29
30
  _: 3
30
31
  }, 512));
@@ -1,5 +1,9 @@
1
1
  import type { BreakpointCustomizable, LinkSocialIcon, LinkSocialTarget, Theme } from '../types';
2
2
  type PLinkSocialProps = {
3
+ /**
4
+ * Displays as compact version.
5
+ */
6
+ compact?: boolean;
3
7
  /**
4
8
  * Show or hide label.
5
9
  */
@@ -33,12 +37,15 @@ declare function __VLS_template(): {
33
37
  default?(_: {}): any;
34
38
  };
35
39
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkSocialProps>, {
40
+ compact: boolean;
36
41
  hideLabel: boolean;
37
42
  target: string;
38
43
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkSocialProps>, {
44
+ compact: boolean;
39
45
  hideLabel: boolean;
40
46
  target: string;
41
47
  }>>>, {
48
+ compact: boolean;
42
49
  hideLabel: BreakpointCustomizable<boolean>;
43
50
  target: LinkSocialTarget;
44
51
  }, {}>;
@@ -1,8 +1,9 @@
1
- import { defineComponent as a, ref as f, inject as m, onMounted as l, onUpdated as i, watch as d, openBlock as u, createBlock as h, resolveDynamicComponent as _, unref as C, withCtx as k, renderSlot as y } from "vue";
2
- import { usePrefix as w, themeInjectionKey as x, syncProperties as s } from "../../utils.mjs";
3
- const b = /* @__PURE__ */ a({
1
+ import { defineComponent as p, ref as f, inject as l, onMounted as m, onUpdated as i, watch as d, openBlock as u, createBlock as h, resolveDynamicComponent as _, unref as y, withCtx as C, renderSlot as k } from "vue";
2
+ import { usePrefix as w, themeInjectionKey as x, syncProperties as a } from "../../utils.mjs";
3
+ const S = /* @__PURE__ */ p({
4
4
  __name: "LinkSocialWrapper",
5
5
  props: {
6
+ compact: { type: Boolean, default: !1 },
6
7
  hideLabel: { default: !1 },
7
8
  href: {},
8
9
  icon: {},
@@ -12,20 +13,20 @@ const b = /* @__PURE__ */ a({
12
13
  theme: {}
13
14
  },
14
15
  setup(c) {
15
- const p = w("p-link-social"), e = c, t = f(), n = m(x), r = () => s(t, { ...e, theme: e.theme || n.value });
16
- return l(r), i(r), d(n, (o) => {
17
- s(t, { theme: e.theme || o });
18
- }), (o, P) => (u(), h(_(C(p)), {
16
+ const s = w("p-link-social"), e = c, t = f(), n = l(x), r = () => a(t, { ...e, theme: e.theme || n.value });
17
+ return m(r), i(r), d(n, (o) => {
18
+ a(t, { theme: e.theme || o });
19
+ }), (o, B) => (u(), h(_(y(s)), {
19
20
  ref_key: "pdsComponentRef",
20
21
  ref: t
21
22
  }, {
22
- default: k(() => [
23
- y(o.$slots, "default")
23
+ default: C(() => [
24
+ k(o.$slots, "default")
24
25
  ]),
25
26
  _: 3
26
27
  }, 512));
27
28
  }
28
29
  });
29
30
  export {
30
- b as default
31
+ S as default
31
32
  };
@@ -4,6 +4,10 @@ type PLinkProps = {
4
4
  * Add ARIA attributes.
5
5
  */
6
6
  aria?: SelectedAriaAttributes<LinkAriaAttribute>;
7
+ /**
8
+ * Displays as compact version.
9
+ */
10
+ compact?: boolean;
7
11
  /**
8
12
  * Special download attribute to open native browser download dialog if target url points to a downloadable file.
9
13
  */
@@ -45,16 +49,19 @@ declare function __VLS_template(): {
45
49
  default?(_: {}): any;
46
50
  };
47
51
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkProps>, {
52
+ compact: boolean;
48
53
  hideLabel: boolean;
49
54
  icon: string;
50
55
  target: string;
51
56
  variant: string;
52
57
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PLinkProps>, {
58
+ compact: boolean;
53
59
  hideLabel: boolean;
54
60
  icon: string;
55
61
  target: string;
56
62
  variant: string;
57
63
  }>>>, {
64
+ compact: boolean;
58
65
  hideLabel: BreakpointCustomizable<boolean>;
59
66
  icon: LinkIcon;
60
67
  variant: LinkVariant;
@@ -1,9 +1,10 @@
1
- import { defineComponent as f, ref as c, inject as m, onMounted as l, onUpdated as i, watch as d, openBlock as u, createBlock as h, resolveDynamicComponent as _, unref as y, withCtx as C, renderSlot as k } from "vue";
1
+ import { defineComponent as s, ref as c, inject as l, onMounted as m, onUpdated as d, watch as i, openBlock as u, createBlock as h, resolveDynamicComponent as _, unref as y, withCtx as C, renderSlot as k } from "vue";
2
2
  import { usePrefix as w, themeInjectionKey as v, syncProperties as a } from "../../utils.mjs";
3
- const b = /* @__PURE__ */ f({
3
+ const R = /* @__PURE__ */ s({
4
4
  __name: "LinkWrapper",
5
5
  props: {
6
6
  aria: {},
7
+ compact: { type: Boolean, default: !1 },
7
8
  download: {},
8
9
  hideLabel: { default: !1 },
9
10
  href: {},
@@ -15,20 +16,20 @@ const b = /* @__PURE__ */ f({
15
16
  variant: { default: "primary" }
16
17
  },
17
18
  setup(p) {
18
- const s = w("p-link"), e = p, t = c(), o = m(v), r = () => a(t, { ...e, theme: e.theme || o.value });
19
- return l(r), i(r), d(o, (n) => {
20
- a(t, { theme: e.theme || n });
21
- }), (n, x) => (u(), h(_(y(s)), {
19
+ const f = w("p-link"), e = p, t = c(), n = l(v), r = () => a(t, { ...e, theme: e.theme || n.value });
20
+ return m(r), d(r), i(n, (o) => {
21
+ a(t, { theme: e.theme || o });
22
+ }), (o, x) => (u(), h(_(y(f)), {
22
23
  ref_key: "pdsComponentRef",
23
24
  ref: t
24
25
  }, {
25
26
  default: C(() => [
26
- k(n.$slots, "default")
27
+ k(o.$slots, "default")
27
28
  ]),
28
29
  _: 3
29
30
  }, 512));
30
31
  }
31
32
  });
32
33
  export {
33
- b as default
34
+ R as default
34
35
  };
@@ -606,9 +606,10 @@ export type ButtonType = typeof BUTTON_TYPES[number];
606
606
  declare const LINK_BUTTON_VARIANTS: readonly [
607
607
  "primary",
608
608
  "secondary",
609
+ "ghost",
609
610
  "tertiary"
610
611
  ];
611
- export type LinkButtonVariant = typeof LINK_BUTTON_VARIANTS[number];
612
+ export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
612
613
  export type LinkButtonIconName = IconName | "none";
613
614
  export type ButtonVariant = LinkButtonVariant;
614
615
  export type LinkVariant = LinkButtonVariant;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.17.0-rc.0",
3
+ "version": "3.17.0-rc.2",
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.17.0-rc.0"
20
+ "@porsche-design-system/components-js": "3.17.0-rc.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"