@porsche-design-system/components-vue 3.32.1 → 3.33.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,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [3.33.0] - 2026-03-09
|
|
18
|
+
|
|
19
|
+
## [3.33.0-rc.0] - 2026-03-04
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- `Tag`: new `variant` property to define background colors which complies now with PDS `v4`
|
|
24
|
+
([#4227](https://github.com/porsche-design-system/porsche-design-system/pull/4227))
|
|
25
|
+
- `Checkbox`: add warning for Firefox form restore bug
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- `Tag`: deprecated `color` property, use `variant` property instead to define background colors which complies now with
|
|
30
|
+
PDS `v4` ([#4227](https://github.com/porsche-design-system/porsche-design-system/pull/4227))
|
|
31
|
+
|
|
17
32
|
## [3.32.1] - 2026-02-24
|
|
18
33
|
|
|
19
34
|
## [3.32.1-rc.0] - 2026-02-20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"TagWrapper",props:{color:{default:"background-surface"},compact:{type:Boolean,default:!1},icon:{},iconSource:{},theme:{}},setup(
|
|
1
|
+
"use strict";const e=require("vue"),t=require("../../utils.cjs"),u=e.defineComponent({__name:"TagWrapper",props:{color:{default:"background-surface"},compact:{type:Boolean,default:!1},icon:{},iconSource:{},theme:{},variant:{}},setup(a){const p=t.usePrefix("p-tag"),o=a,n=e.ref(),c=e.inject(t.themeInjectionKey),s=()=>t.syncProperties(n,{...o,theme:o.theme||c.value});return e.onMounted(s),e.onUpdated(s),e.watch(c,r=>{t.syncProperties(n,{theme:o.theme||r})}),(r,f)=>(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=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TagColor, TagIcon, Theme } from '../types';
|
|
1
|
+
import type { TagColor, TagIcon, Theme, TagVariant } from '../types';
|
|
2
2
|
type PTagProps = {
|
|
3
3
|
/**
|
|
4
|
-
* Background color variations depending on theme property.
|
|
4
|
+
* @deprecated since v3.33.0, will be removed with next major release. Use `variant` prop instead. Background color variations depending on theme property.
|
|
5
5
|
*/
|
|
6
6
|
color?: TagColor;
|
|
7
7
|
/**
|
|
@@ -20,6 +20,10 @@ type PTagProps = {
|
|
|
20
20
|
* Adapts the tag color depending on the theme.
|
|
21
21
|
*/
|
|
22
22
|
theme?: Theme;
|
|
23
|
+
/**
|
|
24
|
+
* Background color variations.
|
|
25
|
+
*/
|
|
26
|
+
variant?: TagVariant;
|
|
23
27
|
};
|
|
24
28
|
declare var __VLS_8: {};
|
|
25
29
|
type __VLS_Slots = {} & {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as s, ref as m, inject as f, onMounted as u, onUpdated as l, watch as d, createBlock as i, openBlock as h, resolveDynamicComponent as _, unref as y, withCtx as C, renderSlot as g } from "vue";
|
|
2
|
-
import { usePrefix as k, themeInjectionKey as
|
|
3
|
-
const
|
|
2
|
+
import { usePrefix as k, themeInjectionKey as v, syncProperties as c } from "../../utils.mjs";
|
|
3
|
+
const P = /* @__PURE__ */ s({
|
|
4
4
|
__name: "TagWrapper",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "background-surface" },
|
|
7
7
|
compact: { type: Boolean, default: !1 },
|
|
8
8
|
icon: {},
|
|
9
9
|
iconSource: {},
|
|
10
|
-
theme: {}
|
|
10
|
+
theme: {},
|
|
11
|
+
variant: {}
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
13
|
+
setup(a) {
|
|
14
|
+
const p = k("p-tag"), e = a, o = m(), n = f(v), r = () => c(o, { ...e, theme: e.theme || n.value });
|
|
14
15
|
return u(r), l(r), d(n, (t) => {
|
|
15
16
|
c(o, { theme: e.theme || t });
|
|
16
|
-
}), (t,
|
|
17
|
+
}), (t, w) => (h(), i(_(y(p)), {
|
|
17
18
|
ref_key: "pdsComponentRef",
|
|
18
19
|
ref: o
|
|
19
20
|
}, {
|
|
@@ -25,5 +26,5 @@ const R = /* @__PURE__ */ s({
|
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
P as default
|
|
29
30
|
};
|
package/esm/lib/types.d.ts
CHANGED
|
@@ -1644,6 +1644,15 @@ declare const TAG_DISMISSIBLE_ARIA_ATTRIBUTES: readonly [
|
|
|
1644
1644
|
];
|
|
1645
1645
|
export type TagDismissibleAriaAttribute = (typeof TAG_DISMISSIBLE_ARIA_ATTRIBUTES)[number];
|
|
1646
1646
|
export type TagIcon = IconName;
|
|
1647
|
+
declare const TAG_VARIANTS: readonly [
|
|
1648
|
+
"primary",
|
|
1649
|
+
"secondary",
|
|
1650
|
+
"info",
|
|
1651
|
+
"warning",
|
|
1652
|
+
"success",
|
|
1653
|
+
"error"
|
|
1654
|
+
];
|
|
1655
|
+
export type TagVariant = (typeof TAG_VARIANTS)[number];
|
|
1647
1656
|
declare const TAG_COLORS: readonly [
|
|
1648
1657
|
"background-base",
|
|
1649
1658
|
"background-surface",
|
|
@@ -1660,6 +1669,7 @@ declare const TAG_COLORS: readonly [
|
|
|
1660
1669
|
"notification-success",
|
|
1661
1670
|
"notification-error"
|
|
1662
1671
|
];
|
|
1672
|
+
/** @deprecated */
|
|
1663
1673
|
export type TagColor = (typeof TAG_COLORS)[number];
|
|
1664
1674
|
declare const TEXT_TAGS: readonly [
|
|
1665
1675
|
"p",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.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.
|
|
20
|
+
"@porsche-design-system/components-js": "3.33.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"ag-grid-enterprise": ">= 35.0.0 <36.0.0",
|