@porsche-design-system/components-vue 3.0.0 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9
9
 
10
10
  ### [Unreleased]
11
11
 
12
+ ### [3.1.0-rc.0] - 2023-05-24
13
+
14
+ #### Added
15
+
16
+ - `Marque` now has a `variant` property, including 75 years variant
17
+ [#2575](https://github.com/porsche-design-system/porsche-design-system/pull/2575)
18
+
12
19
  ### [3.0.0] - 2023-05-11
13
20
 
14
21
  ### [3.0.0-rc.3] - 2023-05-10
@@ -1,5 +1,5 @@
1
1
  /** __vue_virtual_code_placeholder */
2
- import type { SelectedAriaAttributes, MarqueAriaAttribute, MarqueSize, MarqueTarget } from '../types';
2
+ import type { SelectedAriaAttributes, MarqueAriaAttribute, MarqueSize, MarqueTarget, MarqueVariant } from '../types';
3
3
  type PMarqueProps = {
4
4
  /**
5
5
  * Add ARIA attributes.
@@ -18,21 +18,28 @@ type PMarqueProps = {
18
18
  */
19
19
  target?: MarqueTarget;
20
20
  /**
21
- * Show/hide trademark sign.
21
+ * Show/hide trademark sign (only has effect when variant is set to default).
22
22
  */
23
23
  trademark?: boolean;
24
+ /**
25
+ * Shows marque in special editions
26
+ */
27
+ variant?: MarqueVariant;
24
28
  };
25
29
  /** @deprecated since v3.0.0, will be removed with next major release. Please use "p-wordmark" instead. */
26
30
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PMarqueProps>, {
27
31
  size: string;
28
32
  target: string;
29
33
  trademark: boolean;
34
+ variant: string;
30
35
  }>, {}, 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<PMarqueProps>, {
31
36
  size: string;
32
37
  target: string;
33
38
  trademark: boolean;
39
+ variant: string;
34
40
  }>>>, {
35
41
  size: "small" | "medium" | "responsive";
42
+ variant: "default" | "75-years";
36
43
  target: string;
37
44
  trademark: boolean;
38
45
  }>;
@@ -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
@@ -921,17 +921,22 @@ export type LinkTileModelSignatureHeadingTag = (typeof LINK_TILE_MODEL_SIGNATURE
921
921
  export type LinkTileModelSignatureWeight = TileWeight;
922
922
  export type LinkTileModelSignatureAspectRatio = TileAspectRatio;
923
923
  export type LinkTileModelSignatureLinkDirection = GroupDirection;
924
+ declare const MARQUE_VARIANTS: readonly [
925
+ "75-years",
926
+ "default"
927
+ ];
928
+ export type MarqueVariant = (typeof MARQUE_VARIANTS)[number];
929
+ export type MarqueTarget = LinkTarget;
930
+ declare const MARQUE_ARIA_ATTRIBUTES: readonly [
931
+ "aria-label"
932
+ ];
933
+ export type MarqueAriaAttribute = (typeof MARQUE_ARIA_ATTRIBUTES)[number];
924
934
  declare const MARQUE_SIZES: readonly [
925
935
  "responsive",
926
936
  "small",
927
937
  "medium"
928
938
  ];
929
939
  export type MarqueSize = typeof MARQUE_SIZES[number];
930
- export type MarqueTarget = LinkTarget;
931
- declare const MARQUE_ARIA_ATTRIBUTES: readonly [
932
- "aria-label"
933
- ];
934
- export type MarqueAriaAttribute = typeof MARQUE_ARIA_ATTRIBUTES[number];
935
940
  declare const MODAL_ARIA_ATTRIBUTES: readonly [
936
941
  "aria-label"
937
942
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "3.0.0",
3
+ "version": "3.1.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.0.0"
20
+ "@porsche-design-system/components-js": "3.1.0-rc.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "vue": ">=3.0.0 <4.0.0"