@porsche-design-system/components-vue 2.20.0 → 3.0.0-alpha.1

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +418 -3
  2. package/lib/components/AccordionWrapper.vue.d.ts +5 -5
  3. package/lib/components/BannerWrapper.vue.d.ts +2 -2
  4. package/lib/components/BannerWrapper.vue.js +9 -9
  5. package/lib/components/ButtonPureWrapper.vue.d.ts +14 -25
  6. package/lib/components/ButtonPureWrapper.vue.js +7 -8
  7. package/lib/components/ButtonWrapper.vue.d.ts +10 -23
  8. package/lib/components/ButtonWrapper.vue.js +12 -13
  9. package/lib/components/CheckboxWrapperWrapper.vue.d.ts +12 -1
  10. package/lib/components/CheckboxWrapperWrapper.vue.js +13 -12
  11. package/lib/components/ContentWrapperWrapper.vue.d.ts +11 -6
  12. package/lib/components/DisplayWrapper.vue.d.ts +92 -0
  13. package/lib/components/DisplayWrapper.vue.js +32 -0
  14. package/lib/components/DisplayWrapper.vue2.js +4 -0
  15. package/lib/components/DividerWrapper.vue.d.ts +2 -2
  16. package/lib/components/FieldsetWrapperWrapper.vue.d.ts +12 -1
  17. package/lib/components/FieldsetWrapperWrapper.vue.js +11 -10
  18. package/lib/components/FlexItemWrapper.vue.d.ts +3 -2
  19. package/lib/components/FlexWrapper.vue.d.ts +1 -0
  20. package/lib/components/GridItemWrapper.vue.d.ts +5 -4
  21. package/lib/components/GridWrapper.vue.d.ts +5 -2
  22. package/lib/components/HeadingWrapper.vue.d.ts +92 -0
  23. package/lib/components/HeadingWrapper.vue.js +32 -0
  24. package/lib/components/HeadingWrapper.vue2.js +4 -0
  25. package/lib/components/HeadlineWrapper.vue.d.ts +8 -7
  26. package/lib/components/HeadlineWrapper.vue.js +5 -5
  27. package/lib/components/IconWrapper.vue.d.ts +17 -15
  28. package/lib/components/IconWrapper.vue.js +7 -7
  29. package/lib/components/InlineNotificationWrapper.vue.d.ts +4 -4
  30. package/lib/components/InlineNotificationWrapper.vue.js +7 -7
  31. package/lib/components/LinkPureWrapper.vue.d.ts +24 -11
  32. package/lib/components/LinkPureWrapper.vue.js +6 -5
  33. package/lib/components/LinkSocialWrapper.vue.d.ts +1 -0
  34. package/lib/components/LinkWrapper.vue.d.ts +9 -9
  35. package/lib/components/LinkWrapper.vue.js +10 -10
  36. package/lib/components/PopoverWrapper.vue.d.ts +12 -1
  37. package/lib/components/PopoverWrapper.vue.js +9 -8
  38. package/lib/components/RadioButtonWrapperWrapper.vue.d.ts +12 -1
  39. package/lib/components/RadioButtonWrapperWrapper.vue.js +7 -6
  40. package/lib/components/ScrollerWrapper.vue.d.ts +4 -4
  41. package/lib/components/SegmentedControlItemWrapper.vue.d.ts +2 -3
  42. package/lib/components/SegmentedControlWrapper.vue.d.ts +3 -6
  43. package/lib/components/SegmentedControlWrapper.vue.js +14 -14
  44. package/lib/components/SpinnerWrapper.vue.d.ts +6 -6
  45. package/lib/components/SwitchWrapper.vue.d.ts +5 -18
  46. package/lib/components/SwitchWrapper.vue.js +7 -8
  47. package/lib/components/TabsBarWrapper.vue.d.ts +4 -4
  48. package/lib/components/TabsWrapper.vue.d.ts +4 -4
  49. package/lib/components/TagDismissibleWrapper.vue.d.ts +14 -3
  50. package/lib/components/TagDismissibleWrapper.vue.js +13 -12
  51. package/lib/components/TagWrapper.vue.d.ts +5 -5
  52. package/lib/components/TextFieldWrapperWrapper.vue.d.ts +12 -1
  53. package/lib/components/TextFieldWrapperWrapper.vue.js +8 -7
  54. package/lib/components/TextWrapper.vue.d.ts +9 -9
  55. package/lib/components/TextWrapper.vue.js +7 -7
  56. package/lib/components/TextareaWrapperWrapper.vue.d.ts +12 -1
  57. package/lib/components/TextareaWrapperWrapper.vue.js +10 -9
  58. package/lib/components/index.d.ts +2 -0
  59. package/lib/types.d.ts +293 -42
  60. package/package.json +2 -2
  61. package/partials/esm/{partials.js → index.js} +0 -0
  62. package/partials/{partials.d.ts → index.d.ts} +0 -0
  63. package/partials/{partials.js → index.js} +0 -0
  64. package/partials/package.json +3 -3
  65. package/public-api.js +94 -90
  66. package/styles/esm/index.js +1 -0
  67. package/styles/index.d.ts +1 -0
  68. package/styles/index.js +12 -0
  69. package/styles/package.json +6 -0
  70. package/styles/scss.scss +1 -0
  71. package/{testing.d.ts → testing/index.d.ts} +0 -0
  72. package/testing/{testing.js → index.js} +0 -0
  73. package/jsdom-polyfill.d.ts +0 -1
  74. package/testing/package.json +0 -5
  75. package/testing/testing.d.ts +0 -1
  76. package/utilities/js/esm/js.js +0 -1
  77. package/utilities/js/js.d.ts +0 -1
  78. package/utilities/js/js.js +0 -12
  79. package/utilities/js/package.json +0 -6
  80. package/utilities/scss.scss +0 -1
@@ -1,4 +1,4 @@
1
- import type { SelectedAriaAttributes, TagDismissibleColor } from '../types';
1
+ import type { SelectedAriaAttributes, TagDismissibleColor, Theme } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * Add ARIA attributes.
@@ -7,13 +7,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  /**
8
8
  * Background color variations
9
9
  */
10
- color?: "background-surface" | "background-default" | undefined;
10
+ color?: "background-surface" | "background-default" | "background-base" | undefined;
11
11
  /**
12
12
  * The label text.
13
13
  */
14
14
  label?: string | undefined;
15
+ /**
16
+ * Adapts the color when used on dark background.
17
+ */
18
+ theme?: "light" | "dark" | undefined;
15
19
  }>, {
16
20
  color: string;
21
+ theme: string;
17
22
  }>, {}, 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<{
18
23
  /**
19
24
  * Add ARIA attributes.
@@ -22,14 +27,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
22
27
  /**
23
28
  * Background color variations
24
29
  */
25
- color?: "background-surface" | "background-default" | undefined;
30
+ color?: "background-surface" | "background-default" | "background-base" | undefined;
26
31
  /**
27
32
  * The label text.
28
33
  */
29
34
  label?: string | undefined;
35
+ /**
36
+ * Adapts the color when used on dark background.
37
+ */
38
+ theme?: "light" | "dark" | undefined;
30
39
  }>, {
31
40
  color: string;
41
+ theme: string;
32
42
  }>>>, {
43
+ theme: Theme;
33
44
  color: TagDismissibleColor;
34
45
  }>, {
35
46
  default: (_: {}) => any;
@@ -1,29 +1,30 @@
1
- import { defineComponent as s, ref as p, onMounted as l, onUpdated as f, openBlock as c, createBlock as i, resolveDynamicComponent as m, unref as u, withCtx as d, renderSlot as _ } from "vue";
2
- import { getPrefixedTagName as g, syncProperties as n } from "../../utils.js";
3
- const v = /* @__PURE__ */ s({
1
+ import { defineComponent as s, ref as l, onMounted as p, onUpdated as f, openBlock as i, createBlock as m, resolveDynamicComponent as u, unref as c, withCtx as d, renderSlot as g } from "vue";
2
+ import { getPrefixedTagName as _, syncProperties as t } from "../../utils.js";
3
+ const k = /* @__PURE__ */ s({
4
4
  __name: "TagDismissibleWrapper",
5
5
  props: {
6
6
  aria: null,
7
7
  color: { default: "background-surface" },
8
- label: null
8
+ label: null,
9
+ theme: { default: "light" }
9
10
  },
10
- setup(t) {
11
- const o = t, r = g("p-tag-dismissible"), e = p();
12
- return l(() => {
13
- n(e.value, o);
11
+ setup(n) {
12
+ const o = n, r = _("p-tag-dismissible"), e = l();
13
+ return p(() => {
14
+ t(e.value, o);
14
15
  }), f(() => {
15
- n(e.value, o);
16
- }), (a, C) => (c(), i(m(u(r)), {
16
+ t(e.value, o);
17
+ }), (a, C) => (i(), m(u(c(r)), {
17
18
  ref_key: "pdsComponentRef",
18
19
  ref: e
19
20
  }, {
20
21
  default: d(() => [
21
- _(a.$slots, "default")
22
+ g(a.$slots, "default")
22
23
  ]),
23
24
  _: 3
24
25
  }, 512));
25
26
  }
26
27
  });
27
28
  export {
28
- v as default
29
+ k as default
29
30
  };
@@ -1,13 +1,13 @@
1
- import type { TagColor, IconName, Theme } from '../types';
1
+ import type { TagColor, Theme } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * Background color variations depending on theme property.
5
5
  */
6
- color?: "neutral-contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-neutral" | "background-surface" | "background-default" | undefined;
6
+ color?: "primary" | "neutral-contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "notification-neutral" | "background-surface" | "background-default" | "background-base" | undefined;
7
7
  /**
8
8
  * The icon shown.
9
9
  */
10
- icon?: IconName | undefined;
10
+ icon?: "360" | "accessibility" | "active-cabin-ventilation" | "add" | "adjust" | "arrow-double-down" | "arrow-double-left" | "arrow-double-right" | "arrow-double-up" | "arrow-down" | "arrow-first" | "arrow-head-down" | "arrow-head-left" | "arrow-head-right" | "arrow-head-up" | "arrow-last" | "arrow-left" | "arrow-right" | "arrow-up" | "augmented-reality" | "battery-empty" | "battery-full" | "bell" | "bookmark" | "broadcast" | "calculator" | "calendar" | "camera" | "car" | "car-battery" | "card" | "charging-active" | "charging-state" | "charging-station" | "chart" | "chat" | "check" | "city" | "climate" | "climate-control" | "clock" | "close" | "closed-caption" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "document" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "locate" | "lock" | "lock-open" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-facebook" | "logo-foursquare" | "logo-gmail" | "logo-google" | "logo-hatena" | "logo-instagram" | "logo-kaixin" | "logo-kakaotalk" | "logo-linkedin" | "logo-naver" | "logo-pinterest" | "logo-qq" | "logo-qq-share" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-xing" | "logo-yahoo" | "logo-youku" | "logo-youtube" | "logout" | "map" | "menu-dots-horizontal" | "menu-dots-vertical" | "menu-lines" | "minus" | "mobile" | "moon" | "oil-can" | "parking-brake" | "parking-light" | "pause" | "phone" | "pin" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-cart" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
11
11
  /**
12
12
  * A URL path to a custom icon.
13
13
  */
@@ -23,11 +23,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  /**
24
24
  * Background color variations depending on theme property.
25
25
  */
26
- color?: "neutral-contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-neutral" | "background-surface" | "background-default" | undefined;
26
+ color?: "primary" | "neutral-contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "notification-neutral" | "background-surface" | "background-default" | "background-base" | undefined;
27
27
  /**
28
28
  * The icon shown.
29
29
  */
30
- icon?: IconName | undefined;
30
+ icon?: "360" | "accessibility" | "active-cabin-ventilation" | "add" | "adjust" | "arrow-double-down" | "arrow-double-left" | "arrow-double-right" | "arrow-double-up" | "arrow-down" | "arrow-first" | "arrow-head-down" | "arrow-head-left" | "arrow-head-right" | "arrow-head-up" | "arrow-last" | "arrow-left" | "arrow-right" | "arrow-up" | "augmented-reality" | "battery-empty" | "battery-full" | "bell" | "bookmark" | "broadcast" | "calculator" | "calendar" | "camera" | "car" | "car-battery" | "card" | "charging-active" | "charging-state" | "charging-station" | "chart" | "chat" | "check" | "city" | "climate" | "climate-control" | "clock" | "close" | "closed-caption" | "co2-emission" | "compare" | "configurate" | "country-road" | "cubic-capacity" | "delete" | "disable" | "document" | "download" | "duration" | "edit" | "email" | "error-filled" | "exclamation" | "external" | "filter" | "flash" | "fuel-station" | "garage" | "gift" | "globe" | "grid" | "highway" | "home" | "horn" | "image" | "increase" | "information" | "information-filled" | "key" | "leaf" | "leather" | "light" | "list" | "locate" | "lock" | "lock-open" | "logo-baidu" | "logo-delicious" | "logo-digg" | "logo-facebook" | "logo-foursquare" | "logo-gmail" | "logo-google" | "logo-hatena" | "logo-instagram" | "logo-kaixin" | "logo-kakaotalk" | "logo-linkedin" | "logo-naver" | "logo-pinterest" | "logo-qq" | "logo-qq-share" | "logo-reddit" | "logo-skyrock" | "logo-sohu" | "logo-tecent" | "logo-telegram" | "logo-tiktok" | "logo-tumblr" | "logo-twitter" | "logo-viber" | "logo-vk" | "logo-wechat" | "logo-weibo" | "logo-whatsapp" | "logo-xing" | "logo-yahoo" | "logo-youku" | "logo-youtube" | "logout" | "map" | "menu-dots-horizontal" | "menu-dots-vertical" | "menu-lines" | "minus" | "mobile" | "moon" | "oil-can" | "parking-brake" | "parking-light" | "pause" | "phone" | "pin" | "play" | "plug" | "plus" | "preheating" | "printer" | "purchase" | "question" | "racing-flag" | "refresh" | "replay" | "reset" | "route" | "rss" | "save" | "screen" | "search" | "send" | "share" | "shopping-bag" | "shopping-cart" | "sidelights" | "snowflake" | "sort" | "stack" | "star" | "steering-wheel" | "stopwatch" | "subtract" | "success" | "success-filled" | "sun" | "switch" | "tablet" | "tachometer" | "truck" | "upload" | "user" | "user-group" | "user-manual" | "video" | "view" | "view-off" | "volume-off" | "volume-up" | "warning" | "warning-filled" | "weight" | "wifi" | "work" | "wrench" | "wrenches" | "zoom-in" | "zoom-out" | undefined;
31
31
  /**
32
32
  * A URL path to a custom icon.
33
33
  */
@@ -1,4 +1,4 @@
1
- import type { BreakpointCustomizable, FormState, TextFieldWrapperUnitPosition } from '../types';
1
+ import type { BreakpointCustomizable, FormState, Theme, TextFieldWrapperUnitPosition } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * Action icon can be set to `locate` for `input type="search"` in order to display an action button.
@@ -32,6 +32,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
32
32
  * The validation state.
33
33
  */
34
34
  state?: "success" | "none" | "error" | undefined;
35
+ /**
36
+ * Adapts the color depending on the theme.
37
+ */
38
+ theme?: "light" | "dark" | undefined;
35
39
  /**
36
40
  * The unit text.
37
41
  */
@@ -48,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
48
52
  message: string;
49
53
  showCharacterCount: boolean;
50
54
  state: string;
55
+ theme: string;
51
56
  unit: string;
52
57
  unitPosition: string;
53
58
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -85,6 +90,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
85
90
  * The validation state.
86
91
  */
87
92
  state?: "success" | "none" | "error" | undefined;
93
+ /**
94
+ * Adapts the color depending on the theme.
95
+ */
96
+ theme?: "light" | "dark" | undefined;
88
97
  /**
89
98
  * The unit text.
90
99
  */
@@ -101,12 +110,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
101
110
  message: string;
102
111
  showCharacterCount: boolean;
103
112
  state: string;
113
+ theme: string;
104
114
  unit: string;
105
115
  unitPosition: string;
106
116
  }>>> & {
107
117
  onAction?: ((value?: void | undefined) => any) | undefined;
108
118
  }, {
109
119
  label: string;
120
+ theme: Theme;
110
121
  state: FormState;
111
122
  hideLabel: BreakpointCustomizable<boolean>;
112
123
  description: string;
@@ -1,6 +1,6 @@
1
- import { defineComponent as p, ref as f, onMounted as d, onUpdated as s, openBlock as i, createBlock as u, resolveDynamicComponent as c, unref as m, withCtx as C, renderSlot as _ } from "vue";
2
- import { getPrefixedTagName as x, syncProperties as o, addEventListenerToElementRef as g } from "../../utils.js";
3
- const w = /* @__PURE__ */ p({
1
+ import { defineComponent as f, ref as p, onMounted as d, onUpdated as i, openBlock as s, createBlock as u, resolveDynamicComponent as c, unref as m, withCtx as C, renderSlot as h } from "vue";
2
+ import { getPrefixedTagName as _, syncProperties as o, addEventListenerToElementRef as g } from "../../utils.js";
3
+ const w = /* @__PURE__ */ f({
4
4
  __name: "TextFieldWrapperWrapper",
5
5
  props: {
6
6
  actionIcon: null,
@@ -11,22 +11,23 @@ const w = /* @__PURE__ */ p({
11
11
  message: { default: "" },
12
12
  showCharacterCount: { type: Boolean, default: !0 },
13
13
  state: { default: "none" },
14
+ theme: { default: "light" },
14
15
  unit: { default: "" },
15
16
  unitPosition: { default: "prefix" }
16
17
  },
17
18
  emits: ["action"],
18
19
  setup(n, { emit: a }) {
19
- const t = n, r = x("p-text-field-wrapper"), e = f();
20
+ const t = n, l = _("p-text-field-wrapper"), e = p();
20
21
  return d(() => {
21
22
  o(e.value, t), g(e.value, "action", a);
22
- }), s(() => {
23
+ }), i(() => {
23
24
  o(e.value, t);
24
- }), (l, h) => (i(), u(c(m(r)), {
25
+ }), (r, x) => (s(), u(c(m(l)), {
25
26
  ref_key: "pdsComponentRef",
26
27
  ref: e
27
28
  }, {
28
29
  default: C(() => [
29
- _(l.$slots, "default")
30
+ h(r.$slots, "default")
30
31
  ]),
31
32
  _: 3
32
33
  }, 512));
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  /**
8
8
  * Basic text color variations depending on theme property.
9
9
  */
10
- color?: "default" | "inherit" | "brand" | "neutral-contrast-high" | "neutral-contrast-medium" | "neutral-contrast-low" | "notification-success" | "notification-warning" | "notification-error" | "notification-neutral" | undefined;
10
+ color?: "default" | "primary" | "brand" | "contrast-low" | "neutral-contrast-low" | "contrast-medium" | "neutral-contrast-medium" | "contrast-high" | "neutral-contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "notification-neutral" | "inherit" | undefined;
11
11
  /**
12
12
  * Adds an ellipsis to a single line of text if it overflows.
13
13
  */
@@ -15,9 +15,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
15
  /**
16
16
  * Size of the text. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
17
17
  */
18
- size?: BreakpointCustomizable<"x-small" | "small" | "medium" | "large" | "x-large" | "inherit"> | undefined;
18
+ size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
19
19
  /**
20
- * Sets a custom HTML tag depending of the usage of the text component.
20
+ * Sets a custom HTML tag depending on the usage of the text component.
21
21
  */
22
22
  tag?: "time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend" | undefined;
23
23
  /**
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
27
27
  /**
28
28
  * The weight of the text.
29
29
  */
30
- weight?: "thin" | "regular" | "semibold" | "bold" | undefined;
30
+ weight?: "thin" | "regular" | "semibold" | "semi-bold" | "bold" | undefined;
31
31
  }>, {
32
32
  align: string;
33
33
  color: string;
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
44
44
  /**
45
45
  * Basic text color variations depending on theme property.
46
46
  */
47
- color?: "default" | "inherit" | "brand" | "neutral-contrast-high" | "neutral-contrast-medium" | "neutral-contrast-low" | "notification-success" | "notification-warning" | "notification-error" | "notification-neutral" | undefined;
47
+ color?: "default" | "primary" | "brand" | "contrast-low" | "neutral-contrast-low" | "contrast-medium" | "neutral-contrast-medium" | "contrast-high" | "neutral-contrast-high" | "notification-success" | "notification-warning" | "notification-error" | "notification-info" | "notification-neutral" | "inherit" | undefined;
48
48
  /**
49
49
  * Adds an ellipsis to a single line of text if it overflows.
50
50
  */
@@ -52,9 +52,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
52
52
  /**
53
53
  * Size of the text. Also defines the size for specific breakpoints, like {base: "small", l: "medium"}. You always need to provide a base value when doing this.
54
54
  */
55
- size?: BreakpointCustomizable<"x-small" | "small" | "medium" | "large" | "x-large" | "inherit"> | undefined;
55
+ size?: BreakpointCustomizable<"inherit" | "x-small" | "small" | "medium" | "large" | "x-large"> | undefined;
56
56
  /**
57
- * Sets a custom HTML tag depending of the usage of the text component.
57
+ * Sets a custom HTML tag depending on the usage of the text component.
58
58
  */
59
59
  tag?: "time" | "p" | "span" | "div" | "address" | "blockquote" | "figcaption" | "cite" | "legend" | undefined;
60
60
  /**
@@ -64,7 +64,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
64
64
  /**
65
65
  * The weight of the text.
66
66
  */
67
- weight?: "thin" | "regular" | "semibold" | "bold" | undefined;
67
+ weight?: "thin" | "regular" | "semibold" | "semi-bold" | "bold" | undefined;
68
68
  }>, {
69
69
  align: string;
70
70
  color: string;
@@ -78,8 +78,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
78
78
  size: BreakpointCustomizable<TextSize>;
79
79
  tag: TextTag;
80
80
  theme: Theme;
81
- color: TextColor;
82
81
  align: TextAlign;
82
+ color: TextColor;
83
83
  ellipsis: boolean;
84
84
  }>, {
85
85
  default: (_: {}) => any;
@@ -1,10 +1,10 @@
1
- import { defineComponent as r, ref as f, onMounted as p, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as i, withCtx as c, renderSlot as g } from "vue";
1
+ import { defineComponent as l, ref as p, onMounted as f, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as i, withCtx as c, renderSlot as g } from "vue";
2
2
  import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
3
- const y = /* @__PURE__ */ r({
3
+ const y = /* @__PURE__ */ l({
4
4
  __name: "TextWrapper",
5
5
  props: {
6
6
  align: { default: "left" },
7
- color: { default: "default" },
7
+ color: { default: "primary" },
8
8
  ellipsis: { type: Boolean, default: !1 },
9
9
  size: { default: "small" },
10
10
  tag: { default: "p" },
@@ -12,17 +12,17 @@ const y = /* @__PURE__ */ r({
12
12
  weight: { default: "regular" }
13
13
  },
14
14
  setup(a) {
15
- const t = a, l = _("p-text"), e = f();
16
- return p(() => {
15
+ const t = a, n = _("p-text"), e = p();
16
+ return f(() => {
17
17
  o(e.value, t);
18
18
  }), s(() => {
19
19
  o(e.value, t);
20
- }), (n, C) => (d(), u(m(i(l)), {
20
+ }), (r, C) => (d(), u(m(i(n)), {
21
21
  ref_key: "pdsComponentRef",
22
22
  ref: e
23
23
  }, {
24
24
  default: c(() => [
25
- g(n.$slots, "default")
25
+ g(r.$slots, "default")
26
26
  ]),
27
27
  _: 3
28
28
  }, 512));
@@ -1,4 +1,4 @@
1
- import type { BreakpointCustomizable, FormState } from '../types';
1
+ import type { BreakpointCustomizable, FormState, Theme } from '../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  /**
4
4
  * The description text.
@@ -24,6 +24,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
24
24
  * The validation state.
25
25
  */
26
26
  state?: "success" | "none" | "error" | undefined;
27
+ /**
28
+ * Adapts the color depending on the theme.
29
+ */
30
+ theme?: "light" | "dark" | undefined;
27
31
  }>, {
28
32
  description: string;
29
33
  hideLabel: boolean;
@@ -31,6 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
31
35
  message: string;
32
36
  showCharacterCount: boolean;
33
37
  state: string;
38
+ theme: string;
34
39
  }>, {}, 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<{
35
40
  /**
36
41
  * The description text.
@@ -56,6 +61,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
56
61
  * The validation state.
57
62
  */
58
63
  state?: "success" | "none" | "error" | undefined;
64
+ /**
65
+ * Adapts the color depending on the theme.
66
+ */
67
+ theme?: "light" | "dark" | undefined;
59
68
  }>, {
60
69
  description: string;
61
70
  hideLabel: boolean;
@@ -63,8 +72,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
63
72
  message: string;
64
73
  showCharacterCount: boolean;
65
74
  state: string;
75
+ theme: string;
66
76
  }>>>, {
67
77
  label: string;
78
+ theme: Theme;
68
79
  state: FormState;
69
80
  hideLabel: BreakpointCustomizable<boolean>;
70
81
  description: string;
@@ -1,5 +1,5 @@
1
- import { defineComponent as p, ref as s, onMounted as f, onUpdated as l, openBlock as d, createBlock as u, resolveDynamicComponent as c, unref as m, withCtx as i, renderSlot as C } from "vue";
2
- import { getPrefixedTagName as _, syncProperties as o } from "../../utils.js";
1
+ import { defineComponent as p, ref as l, onMounted as f, onUpdated as s, openBlock as d, createBlock as u, resolveDynamicComponent as m, unref as c, withCtx as i, renderSlot as C } from "vue";
2
+ import { getPrefixedTagName as h, syncProperties as a } from "../../utils.js";
3
3
  const w = /* @__PURE__ */ p({
4
4
  __name: "TextareaWrapperWrapper",
5
5
  props: {
@@ -8,15 +8,16 @@ const w = /* @__PURE__ */ p({
8
8
  label: { default: "" },
9
9
  message: { default: "" },
10
10
  showCharacterCount: { type: Boolean, default: !0 },
11
- state: { default: "none" }
11
+ state: { default: "none" },
12
+ theme: { default: "light" }
12
13
  },
13
- setup(a) {
14
- const t = a, r = _("p-textarea-wrapper"), e = s();
14
+ setup(o) {
15
+ const t = o, r = h("p-textarea-wrapper"), e = l();
15
16
  return f(() => {
16
- o(e.value, t);
17
- }), l(() => {
18
- o(e.value, t);
19
- }), (n, h) => (d(), u(c(m(r)), {
17
+ a(e.value, t);
18
+ }), s(() => {
19
+ a(e.value, t);
20
+ }), (n, _) => (d(), u(m(c(r)), {
20
21
  ref_key: "pdsComponentRef",
21
22
  ref: e
22
23
  }, {
@@ -6,12 +6,14 @@ export { default as PButtonPure } from './ButtonPureWrapper.vue';
6
6
  export { default as PCarousel } from './CarouselWrapper.vue';
7
7
  export { default as PCheckboxWrapper } from './CheckboxWrapperWrapper.vue';
8
8
  export { default as PContentWrapper } from './ContentWrapperWrapper.vue';
9
+ export { default as PDisplay } from './DisplayWrapper.vue';
9
10
  export { default as PDivider } from './DividerWrapper.vue';
10
11
  export { default as PFieldsetWrapper } from './FieldsetWrapperWrapper.vue';
11
12
  export { default as PFlex } from './FlexWrapper.vue';
12
13
  export { default as PFlexItem } from './FlexItemWrapper.vue';
13
14
  export { default as PGrid } from './GridWrapper.vue';
14
15
  export { default as PGridItem } from './GridItemWrapper.vue';
16
+ export { default as PHeading } from './HeadingWrapper.vue';
15
17
  export { default as PHeadline } from './HeadlineWrapper.vue';
16
18
  export { default as PIcon } from './IconWrapper.vue';
17
19
  export { default as PInlineNotification } from './InlineNotificationWrapper.vue';