@porsche-design-system/components-vue 2.20.0 → 2.21.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
@@ -9,6 +9,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9
9
 
10
10
  ### [Unreleased]
11
11
 
12
+ ### [2.21.0] - 2023-03-28
13
+
14
+ ### [2.21.0-rc.0] - 2023-03-28
15
+
16
+ #### Added
17
+
18
+ - `Marque` now has a `variant` property, including 75 years variant [PR](https://github.com/porsche-design-system/porsche-design-system/pull/2433)
19
+
12
20
  ### [2.20.0] - 2023-02-06
13
21
 
14
22
  ### [2.20.0-rc.1] - 2023-02-06
@@ -1,4 +1,4 @@
1
- import type { SelectedAriaAttributes, MarqueSize, LinkTarget } from '../types';
1
+ import type { SelectedAriaAttributes, MarqueSize, LinkTarget, MarqueVariant } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * Add ARIA attributes.
@@ -17,13 +17,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  */
18
18
  target?: string | undefined;
19
19
  /**
20
- * Show/hide trademark sign.
20
+ * Show/hide trademark sign (only has effect when variant is set to default).
21
21
  */
22
22
  trademark?: boolean | undefined;
23
+ /**
24
+ * Shows marque in special editions
25
+ */
26
+ variant?: "default" | "75-years" | undefined;
23
27
  }>, {
24
28
  size: string;
25
29
  target: string;
26
30
  trademark: boolean;
31
+ variant: string;
27
32
  }>, {}, 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<{
28
33
  /**
29
34
  * Add ARIA attributes.
@@ -42,15 +47,21 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
42
47
  */
43
48
  target?: string | undefined;
44
49
  /**
45
- * Show/hide trademark sign.
50
+ * Show/hide trademark sign (only has effect when variant is set to default).
46
51
  */
47
52
  trademark?: boolean | undefined;
53
+ /**
54
+ * Shows marque in special editions
55
+ */
56
+ variant?: "default" | "75-years" | undefined;
48
57
  }>, {
49
58
  size: string;
50
59
  target: string;
51
60
  trademark: boolean;
61
+ variant: string;
52
62
  }>>>, {
53
63
  size: MarqueSize;
64
+ variant: MarqueVariant;
54
65
  target: LinkTarget;
55
66
  trademark: boolean;
56
67
  }>;
@@ -1,26 +1,27 @@
1
- import { defineComponent as a, ref as p, onMounted as s, onUpdated as f, openBlock as l, createBlock as u, resolveDynamicComponent as m, unref as c } from "vue";
2
- import { getPrefixedTagName as d, syncProperties as n } from "../../utils.js";
3
- const k = /* @__PURE__ */ a({
1
+ import { defineComponent as a, ref as p, onMounted as f, onUpdated as l, openBlock as u, createBlock as s, resolveDynamicComponent as m, unref as d } from "vue";
2
+ import { getPrefixedTagName as c, syncProperties as n } from "../../utils.js";
3
+ const g = /* @__PURE__ */ a({
4
4
  __name: "MarqueWrapper",
5
5
  props: {
6
6
  aria: null,
7
7
  href: null,
8
8
  size: { default: "responsive" },
9
9
  target: { default: "_self" },
10
- trademark: { type: Boolean, default: !0 }
10
+ trademark: { type: Boolean, default: !0 },
11
+ variant: { default: "default" }
11
12
  },
12
- setup(r) {
13
- const o = r, t = d("p-marque"), e = p();
14
- return s(() => {
15
- n(e.value, o);
16
- }), f(() => {
17
- n(e.value, o);
18
- }), (i, _) => (l(), u(m(c(t)), {
13
+ setup(o) {
14
+ const t = o, r = c("p-marque"), e = p();
15
+ return f(() => {
16
+ n(e.value, t);
17
+ }), l(() => {
18
+ n(e.value, t);
19
+ }), (i, _) => (u(), s(m(d(r)), {
19
20
  ref_key: "pdsComponentRef",
20
21
  ref: e
21
22
  }, null, 512));
22
23
  }
23
24
  });
24
25
  export {
25
- k as default
26
+ g as default
26
27
  };
package/lib/types.d.ts CHANGED
@@ -566,16 +566,21 @@ declare const LINK_TILE_ASPECT_RATIOS: readonly [
566
566
  "9:16"
567
567
  ];
568
568
  export declare type LinkTileAspectRatio = typeof LINK_TILE_ASPECT_RATIOS[number];
569
+ declare const MARQUE_VARIANTS: readonly [
570
+ "75-years",
571
+ "default"
572
+ ];
573
+ export declare type MarqueVariant = (typeof MARQUE_VARIANTS)[number];
569
574
  declare const MARQUE_SIZES: readonly [
570
575
  "responsive",
571
576
  "small",
572
577
  "medium"
573
578
  ];
574
- export declare type MarqueSize = typeof MARQUE_SIZES[number];
579
+ export declare type MarqueSize = (typeof MARQUE_SIZES)[number];
575
580
  declare const MARQUE_ARIA_ATTRIBUTES: readonly [
576
581
  "aria-label"
577
582
  ];
578
- export declare type MarqueAriaAttribute = typeof MARQUE_ARIA_ATTRIBUTES[number];
583
+ export declare type MarqueAriaAttribute = (typeof MARQUE_ARIA_ATTRIBUTES)[number];
579
584
  declare const MODAL_ARIA_ATTRIBUTES: readonly [
580
585
  "aria-label"
581
586
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "2.20.0",
3
+ "version": "2.21.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": "2.20.0"
20
+ "@porsche-design-system/components-js": "2.21.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"