@porsche-design-system/components-react 4.0.0-beta.2 → 4.0.0-beta.3

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 (178) hide show
  1. package/CHANGELOG.md +293 -1
  2. package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
  3. package/cjs/lib/components/display.wrapper.cjs +1 -0
  4. package/cjs/lib/components/flag.wrapper.cjs +1 -1
  5. package/cjs/lib/components/heading.wrapper.cjs +3 -3
  6. package/cjs/lib/components/icon.wrapper.cjs +1 -1
  7. package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
  8. package/cjs/lib/components/spinner.wrapper.cjs +3 -3
  9. package/cjs/lib/components/text.wrapper.cjs +1 -1
  10. package/esm/lib/components/accordion.wrapper.d.ts +8 -8
  11. package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  12. package/esm/lib/components/button-pure.wrapper.mjs +3 -3
  13. package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  14. package/esm/lib/components/button.wrapper.d.ts +6 -6
  15. package/esm/lib/components/carousel.wrapper.d.ts +10 -10
  16. package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  17. package/esm/lib/components/crest.wrapper.d.ts +6 -6
  18. package/esm/lib/components/display.wrapper.d.ts +1 -0
  19. package/esm/lib/components/display.wrapper.mjs +1 -0
  20. package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  21. package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  22. package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  23. package/esm/lib/components/flag.wrapper.d.ts +5 -5
  24. package/esm/lib/components/flag.wrapper.mjs +1 -1
  25. package/esm/lib/components/flyout.wrapper.d.ts +2 -2
  26. package/esm/lib/components/heading.wrapper.d.ts +19 -11
  27. package/esm/lib/components/heading.wrapper.mjs +3 -3
  28. package/esm/lib/components/icon.wrapper.d.ts +7 -7
  29. package/esm/lib/components/icon.wrapper.mjs +1 -1
  30. package/esm/lib/components/input-date.wrapper.d.ts +12 -12
  31. package/esm/lib/components/input-email.wrapper.d.ts +8 -8
  32. package/esm/lib/components/input-month.wrapper.d.ts +12 -12
  33. package/esm/lib/components/input-number.wrapper.d.ts +8 -8
  34. package/esm/lib/components/input-password.wrapper.d.ts +6 -6
  35. package/esm/lib/components/input-search.wrapper.d.ts +6 -6
  36. package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  37. package/esm/lib/components/input-text.wrapper.d.ts +6 -6
  38. package/esm/lib/components/input-time.wrapper.d.ts +14 -14
  39. package/esm/lib/components/input-url.wrapper.d.ts +16 -16
  40. package/esm/lib/components/input-week.wrapper.d.ts +14 -14
  41. package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  42. package/esm/lib/components/link-pure.wrapper.mjs +3 -3
  43. package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  44. package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  45. package/esm/lib/components/link.wrapper.d.ts +14 -14
  46. package/esm/lib/components/modal.wrapper.d.ts +2 -2
  47. package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  48. package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  49. package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  50. package/esm/lib/components/popover.wrapper.d.ts +6 -6
  51. package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  52. package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  53. package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  54. package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  55. package/esm/lib/components/select.wrapper.d.ts +10 -10
  56. package/esm/lib/components/sheet.wrapper.d.ts +2 -2
  57. package/esm/lib/components/spinner.wrapper.d.ts +13 -5
  58. package/esm/lib/components/spinner.wrapper.mjs +3 -3
  59. package/esm/lib/components/switch.wrapper.d.ts +6 -6
  60. package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  61. package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  62. package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  63. package/esm/lib/components/tabs.wrapper.d.ts +2 -2
  64. package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  65. package/esm/lib/components/tag.wrapper.d.ts +2 -2
  66. package/esm/lib/components/text.wrapper.d.ts +12 -12
  67. package/esm/lib/components/text.wrapper.mjs +1 -1
  68. package/esm/lib/components/textarea.wrapper.d.ts +6 -6
  69. package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  70. package/esm/lib/types.d.ts +322 -141
  71. package/global-styles/cn/index.css +3 -7
  72. package/global-styles/index.css +3 -7
  73. package/global-styles/variables.css +3 -7
  74. package/package.json +6 -2
  75. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +341 -319
  76. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +18 -8
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +1 -1
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -0
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -1
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
  98. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +341 -319
  99. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +18 -8
  100. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
  101. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
  102. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
  103. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +1 -1
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -1
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
  121. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
  122. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  123. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  124. package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
  125. package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
  126. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  127. package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
  128. package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
  129. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  130. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  131. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  132. package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
  133. package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
  134. package/ssr/esm/lib/components/heading.wrapper.d.ts +19 -11
  135. package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
  136. package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
  137. package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
  138. package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
  139. package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
  140. package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
  141. package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
  142. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  143. package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
  144. package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
  145. package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
  146. package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
  147. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  148. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  149. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  150. package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
  151. package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
  152. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  153. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  154. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  155. package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
  156. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  157. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  158. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  159. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  160. package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
  161. package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
  162. package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
  163. package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
  164. package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  165. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  166. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  167. package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
  168. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  169. package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
  170. package/ssr/esm/lib/components/text.wrapper.d.ts +12 -12
  171. package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
  172. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  173. package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
  174. package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
  175. package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
  176. package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
  177. package/ssr/esm/lib/types.d.ts +322 -141
  178. package/tailwindcss/index.css +19 -4
@@ -1,6 +1,8 @@
1
1
  import { Component } from 'react';
2
2
  /**
3
3
  * @slot {"name": "", "description": "Default slot for the display text." }
4
+ *
5
+ * @deprecated since v4.0.0, will be removed with next major release. Please use `p-heading` instead.
4
6
  */
5
7
  export declare class DSRDisplay extends Component<any> {
6
8
  host: HTMLElement;
@@ -1,8 +1,8 @@
1
1
  import { Component } from 'react';
2
2
  /**
3
3
  * @slot {"name": "", "description": "Default slot for the main content." }
4
- * @slot {"name": "button", "description": "Shows a custom button to reach a deeper level of the navigation structure." } *
5
- * @slot {"name": "header", "description": "Shows a custom header section on mobile view" } *
4
+ * @slot {"name": "button", "description": "Shows a custom button to reach a deeper level of the navigation structure." }
5
+ * @slot {"name": "header", "description": "Shows a custom header section on mobile view." }
6
6
  * @experimental
7
7
  */
8
8
  export declare class DSRDrilldownItem extends Component<any> {
@@ -3,7 +3,7 @@ import { Component } from 'react';
3
3
  * @slot {"name": "header", "description": "Renders a sticky header section above the content area." }
4
4
  * @slot {"name": "", "description": "Default slot for the main content." }
5
5
  * @slot {"name": "footer", "description": "Shows a sticky footer section, flowing under the content area when scrollable." }
6
- * @slot {"name": "sub-footer", "description": "Shows a sub-footer section to display additional information below the footer. This slot is ideal for less critical content, such as legal information or FAQs, which provides further details to the user. It appears when scrolling to the end of the flyout or when there is available space to accommodate the content." }
6
+ * @slot {"name": "sub-footer", "description": "Renders additional content below the footer, such as legal information or FAQs. It appears when the flyout has enough space or when the user scrolls to the end." }
7
7
  *
8
8
  * @controlled {"props": ["open"], "event": "dismiss"}
9
9
  */
@@ -1,3 +1,34 @@
1
+ declare const ACCORDIONS_BACKGROUNDS: readonly [
2
+ "canvas",
3
+ "surface",
4
+ "frosted",
5
+ "none"
6
+ ];
7
+ export type AccordionBackground = (typeof ACCORDIONS_BACKGROUNDS)[number];
8
+ declare const ACCORDION_ALIGN_MARKERS: readonly [
9
+ "start",
10
+ "end"
11
+ ];
12
+ export type AccordionAlignMarker = (typeof ACCORDION_ALIGN_MARKERS)[number];
13
+ export type AccordionUpdateEventDetail = {
14
+ open: boolean;
15
+ };
16
+ declare const ACCORDION_HEADINGS_DEPRECATED: readonly [
17
+ "h1",
18
+ "h2",
19
+ "h3",
20
+ "h4",
21
+ "h5",
22
+ "h6"
23
+ ];
24
+ /** @deprecated */
25
+ export type AccordionHeadingTag = (typeof ACCORDION_HEADINGS_DEPRECATED)[number];
26
+ declare const ACCORDION_SIZES: readonly [
27
+ "small",
28
+ "medium"
29
+ ];
30
+ /** @deprecated */
31
+ export type AccordionSize = (typeof ACCORDION_SIZES)[number];
1
32
  export type Booleanish = boolean | "true" | "false";
2
33
  export type AriaAttributes = {
3
34
  /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
@@ -621,6 +652,27 @@ declare const FLAG_NAMES: readonly [
621
652
  "za"
622
653
  ];
623
654
  export type FlagName = typeof FLAG_NAMES[number];
655
+ declare const FORM_STATES: readonly [
656
+ "none",
657
+ "error",
658
+ "success"
659
+ ];
660
+ export type FormState = (typeof FORM_STATES)[number];
661
+ declare const BUTTON_ARIA_ATTRIBUTES: readonly [
662
+ "aria-label",
663
+ "aria-description",
664
+ "aria-expanded",
665
+ "aria-pressed",
666
+ "aria-haspopup"
667
+ ];
668
+ export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
669
+ declare const LINK_ARIA_ATTRIBUTES: readonly [
670
+ "aria-label",
671
+ "aria-description",
672
+ "aria-current",
673
+ "aria-haspopup"
674
+ ];
675
+ export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
624
676
  declare const breakpoints: readonly [
625
677
  "base",
626
678
  "xs",
@@ -637,75 +689,6 @@ export type BreakpointValues<T> = {
637
689
  base: T;
638
690
  };
639
691
  export type BreakpointCustomizable<T> = T | BreakpointValues<T>;
640
- declare const HEADING_SIZES: readonly [
641
- "small",
642
- "medium",
643
- "large",
644
- "x-large",
645
- "xx-large",
646
- "inherit"
647
- ];
648
- export type HeadingSize = (typeof HEADING_SIZES)[number];
649
- declare const HEADING_TAGS: readonly [
650
- "h1",
651
- "h2",
652
- "h3",
653
- "h4",
654
- "h5",
655
- "h6"
656
- ];
657
- export type HeadingTag = (typeof HEADING_TAGS)[number];
658
- declare const TEXT_SIZES: readonly [
659
- "xx-small",
660
- "x-small",
661
- "small",
662
- "medium",
663
- "large",
664
- "x-large",
665
- "inherit"
666
- ];
667
- export type TextSize = (typeof TEXT_SIZES)[number];
668
- declare const TYPOGRAPHY_ALIGNS: readonly [
669
- "start",
670
- "center",
671
- "end",
672
- "inherit"
673
- ];
674
- export type TypographyAlign = (typeof TYPOGRAPHY_ALIGNS)[number];
675
- declare const TYPOGRAPHY_TEXT_COLORS: readonly [
676
- "primary",
677
- "contrast-high",
678
- "contrast-medium",
679
- "contrast-low",
680
- "success",
681
- "warning",
682
- "error",
683
- "info",
684
- "inherit"
685
- ];
686
- export type TypographyTextColor = (typeof TYPOGRAPHY_TEXT_COLORS)[number];
687
- declare const TYPOGRAPHY_TEXT_WEIGHTS: readonly [
688
- "regular",
689
- "semi-bold",
690
- "bold"
691
- ];
692
- export type TypographyTextWeight = (typeof TYPOGRAPHY_TEXT_WEIGHTS)[number];
693
- declare const LINK_BUTTON_VARIANTS: readonly [
694
- "primary",
695
- "secondary"
696
- ];
697
- export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
698
- declare const BUTTON_TYPES: readonly [
699
- "button",
700
- "submit",
701
- "reset"
702
- ];
703
- export type ButtonType = (typeof BUTTON_TYPES)[number];
704
- declare const ALIGN_LABELS: readonly [
705
- "start",
706
- "end"
707
- ];
708
- export type AlignLabel = (typeof ALIGN_LABELS)[number];
709
692
  declare const LINK_TARGETS: readonly [
710
693
  "_self",
711
694
  "_blank",
@@ -713,45 +696,6 @@ declare const LINK_TARGETS: readonly [
713
696
  "_top"
714
697
  ];
715
698
  export type LinkTarget = (typeof LINK_TARGETS)[number] | string;
716
- export type LinkButtonIconName = IconName | "none";
717
- export type ButtonVariant = LinkButtonVariant;
718
- export type LinkVariant = LinkButtonVariant;
719
- export type PorscheDesignSystem = {
720
- [key: `${number}.${number}.${number}${`-rc.${number}` | ""}`]: {
721
- prefixes: string[];
722
- isReady: () => Promise<void>;
723
- readyResolve: () => void;
724
- };
725
- cdn: {
726
- url: string;
727
- prefixes: string[];
728
- };
729
- };
730
- export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAttributes, T>;
731
- export type SelectedAriaRole<T> = {
732
- role: Extract<AriaRole, T>;
733
- };
734
- declare const FORM_STATES: readonly [
735
- "none",
736
- "error",
737
- "success"
738
- ];
739
- export type FormState = (typeof FORM_STATES)[number];
740
- declare const BUTTON_ARIA_ATTRIBUTES: readonly [
741
- "aria-label",
742
- "aria-description",
743
- "aria-expanded",
744
- "aria-pressed",
745
- "aria-haspopup"
746
- ];
747
- export type ButtonAriaAttribute = (typeof BUTTON_ARIA_ATTRIBUTES)[number];
748
- declare const LINK_ARIA_ATTRIBUTES: readonly [
749
- "aria-label",
750
- "aria-description",
751
- "aria-current",
752
- "aria-haspopup"
753
- ];
754
- export type LinkAriaAttribute = (typeof LINK_ARIA_ATTRIBUTES)[number];
755
699
  export type MultiSelectState = FormState;
756
700
  export type MultiSelectDropdownDirection = SelectComponentsDropdownDirection;
757
701
  export type MultiSelectChangeEventDetail = {
@@ -801,29 +745,40 @@ declare const TILE_ALIGNS: readonly [
801
745
  "bottom"
802
746
  ];
803
747
  export type TileAlign = (typeof TILE_ALIGNS)[number];
804
- declare const ACCORDIONS_BACKGROUNDS: readonly [
805
- "canvas",
806
- "surface",
807
- "frosted",
808
- "none"
809
- ];
810
- export type AccordionBackground = (typeof ACCORDIONS_BACKGROUNDS)[number];
811
- declare const ACCORDION_ALIGN_MARKERS: readonly [
748
+ declare const ALIGN_LABELS: readonly [
812
749
  "start",
813
750
  "end"
814
751
  ];
815
- export type AccordionAlignMarker = (typeof ACCORDION_ALIGN_MARKERS)[number];
816
- export type AccordionUpdateEventDetail = {
817
- open: boolean;
818
- };
819
- /** @deprecated */
820
- export type AccordionHeadingTag = HeadingTag;
821
- declare const ACCORDION_SIZES: readonly [
822
- "small",
823
- "medium"
752
+ export type AlignLabel = (typeof ALIGN_LABELS)[number];
753
+ declare const BUTTON_TYPES: readonly [
754
+ "button",
755
+ "submit",
756
+ "reset"
824
757
  ];
825
- /** @deprecated */
826
- export type AccordionSize = (typeof ACCORDION_SIZES)[number];
758
+ export type ButtonType = (typeof BUTTON_TYPES)[number];
759
+ declare const LINK_BUTTON_VARIANTS: readonly [
760
+ "primary",
761
+ "secondary"
762
+ ];
763
+ export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANTS)[number];
764
+ export type LinkButtonIconName = IconName | "none";
765
+ export type ButtonVariant = LinkButtonVariant;
766
+ export type LinkVariant = LinkButtonVariant;
767
+ export type PorscheDesignSystem = {
768
+ [key: `${number}.${number}.${number}${`-rc.${number}` | ""}`]: {
769
+ prefixes: string[];
770
+ isReady: () => Promise<void>;
771
+ readyResolve: () => void;
772
+ };
773
+ cdn: {
774
+ url: string;
775
+ prefixes: string[];
776
+ };
777
+ };
778
+ export type SelectedAriaAttributes<T extends keyof AriaAttributes> = Pick<AriaAttributes, T>;
779
+ export type SelectedAriaRole<T> = {
780
+ role: Extract<AriaRole, T>;
781
+ };
827
782
  declare const BANNER_STATES: readonly [
828
783
  "info",
829
784
  "success",
@@ -831,13 +786,48 @@ declare const BANNER_STATES: readonly [
831
786
  "error"
832
787
  ];
833
788
  export type BannerState = (typeof BANNER_STATES)[number];
834
- export type BannerHeadingTag = HeadingTag;
789
+ declare const BANNER_HEADING_TAGS: readonly [
790
+ "h1",
791
+ "h2",
792
+ "h3",
793
+ "h4",
794
+ "h5",
795
+ "h6"
796
+ ];
797
+ export type BannerHeadingTag = (typeof BANNER_HEADING_TAGS)[number];
835
798
  export type ButtonIcon = LinkButtonIconName;
836
799
  export type ButtonPureType = ButtonType;
837
800
  export type ButtonPureIcon = LinkButtonIconName;
838
801
  export type ButtonPureAriaAttribute = ButtonAriaAttribute;
839
802
  export type ButtonPureAlignLabel = AlignLabel;
840
- export type ButtonPureSize = TextSize;
803
+ declare const BUTTON_PURE_SIZES: readonly [
804
+ "2xs",
805
+ "xs",
806
+ "sm",
807
+ "md",
808
+ "lg",
809
+ "xl",
810
+ "2xl",
811
+ "3xl",
812
+ "4xl",
813
+ "5xl",
814
+ "inherit",
815
+ "xx-small",
816
+ "x-small",
817
+ "small",
818
+ "medium",
819
+ "large",
820
+ "x-large"
821
+ ];
822
+ export type ButtonPureSize = (typeof BUTTON_PURE_SIZES)[number];
823
+ declare const BUTTON_PURE_COLORS: readonly [
824
+ "primary",
825
+ "contrast-higher",
826
+ "contrast-high",
827
+ "contrast-medium",
828
+ "inherit"
829
+ ];
830
+ export type ButtonPureColor = (typeof BUTTON_PURE_COLORS)[number];
841
831
  export type ButtonTileAriaAttribute = ButtonAriaAttribute;
842
832
  export type ButtonTileIcon = LinkButtonIconName;
843
833
  export type ButtonTileType = ButtonType;
@@ -867,7 +857,11 @@ declare const CAROUSEL_ALIGN_HEADERS: readonly [
867
857
  "center"
868
858
  ];
869
859
  export type CarouselAlignHeader = (typeof CAROUSEL_ALIGN_HEADERS)[number];
870
- export type CarouselHeadingSize = Extract<HeadingSize, "x-large" | "xx-large">;
860
+ declare const CAROUSEL_HEADING_SIZES: readonly [
861
+ "x-large",
862
+ "xx-large"
863
+ ];
864
+ export type CarouselHeadingSize = (typeof CAROUSEL_HEADING_SIZES)[number];
871
865
  declare const CAROUSEL_ARIA_ATTRIBUTES: readonly [
872
866
  "aria-label"
873
867
  ];
@@ -909,7 +903,13 @@ declare const DISPLAY_COLORS: readonly [
909
903
  "inherit"
910
904
  ];
911
905
  export type DisplayColor = (typeof DISPLAY_COLORS)[number];
912
- export type DisplayAlign = TypographyAlign;
906
+ declare const DISPLAY_ALIGNS: readonly [
907
+ "start",
908
+ "center",
909
+ "end",
910
+ "inherit"
911
+ ];
912
+ export type DisplayAlign = (typeof DISPLAY_ALIGNS)[number];
913
913
  declare const DIVIDER_COLORS: readonly [
914
914
  "contrast-lower",
915
915
  "contrast-low",
@@ -941,7 +941,27 @@ declare const FLAG_ARIA_ATTRIBUTES: readonly [
941
941
  "aria-label"
942
942
  ];
943
943
  export type FlagAriaAttribute = (typeof FLAG_ARIA_ATTRIBUTES)[number];
944
- export type FlagSize = TextSize;
944
+ declare const FLAG_SIZES: readonly [
945
+ "2xs",
946
+ "xs",
947
+ "sm",
948
+ "md",
949
+ "lg",
950
+ "xl",
951
+ "2xl",
952
+ "3xl",
953
+ "4xl",
954
+ "5xl",
955
+ "inherit",
956
+ "xx-small",
957
+ "x-small",
958
+ "small",
959
+ "medium",
960
+ "large",
961
+ "x-large",
962
+ "xx-large"
963
+ ];
964
+ export type FlagSize = (typeof FLAG_SIZES)[number];
945
965
  declare const BACKDROPS: readonly [
946
966
  "blur",
947
967
  "shading"
@@ -969,22 +989,89 @@ export type FlyoutAriaAttribute = (typeof FLYOUT_ARIA_ATTRIBUTES)[number];
969
989
  export type FlyoutMotionVisibleEndEventDetail = TransitionEvent;
970
990
  export type FlyoutMotionHiddenEndEventDetail = TransitionEvent;
971
991
  export type FlyoutBackdrop = Backdrop;
992
+ declare const HEADING_TAGS: readonly [
993
+ "h1",
994
+ "h2",
995
+ "h3",
996
+ "h4",
997
+ "h5",
998
+ "h6"
999
+ ];
1000
+ export type HeadingTag = (typeof HEADING_TAGS)[number];
972
1001
  declare const HEADING_COLORS: readonly [
973
1002
  "primary",
1003
+ "contrast-higher",
1004
+ "contrast-high",
1005
+ "contrast-medium",
974
1006
  "inherit"
975
1007
  ];
976
1008
  export type HeadingColor = (typeof HEADING_COLORS)[number];
977
- export type HeadingAlign = TypographyAlign;
1009
+ declare const HEADING_WEIGHTS: readonly [
1010
+ "normal",
1011
+ "semibold",
1012
+ "bold",
1013
+ "regular",
1014
+ "semi-bold"
1015
+ ];
1016
+ export type HeadingWeight = (typeof HEADING_WEIGHTS)[number];
1017
+ declare const HEADING_ALIGNS: readonly [
1018
+ "start",
1019
+ "center",
1020
+ "end",
1021
+ "inherit"
1022
+ ];
1023
+ export type HeadingAlign = (typeof HEADING_ALIGNS)[number];
1024
+ declare const HEADING_SIZES: readonly [
1025
+ "2xs",
1026
+ "xs",
1027
+ "sm",
1028
+ "md",
1029
+ "lg",
1030
+ "xl",
1031
+ "2xl",
1032
+ "3xl",
1033
+ "4xl",
1034
+ "5xl",
1035
+ "inherit",
1036
+ "small",
1037
+ "medium",
1038
+ "large",
1039
+ "x-large",
1040
+ "xx-large"
1041
+ ];
1042
+ export type HeadingSize = (typeof HEADING_SIZES)[number];
978
1043
  declare const ICON_ARIA_ATTRIBUTES: readonly [
979
1044
  "aria-label"
980
1045
  ];
981
1046
  export type IconAriaAttribute = (typeof ICON_ARIA_ATTRIBUTES)[number];
982
- export type IconSize = TextSize;
1047
+ declare const ICON_SIZES: readonly [
1048
+ "2xs",
1049
+ "xs",
1050
+ "sm",
1051
+ "md",
1052
+ "lg",
1053
+ "xl",
1054
+ "2xl",
1055
+ "3xl",
1056
+ "4xl",
1057
+ "5xl",
1058
+ "inherit",
1059
+ "xx-small",
1060
+ "x-small",
1061
+ "small",
1062
+ "medium",
1063
+ "large",
1064
+ "x-large",
1065
+ "xx-large"
1066
+ ];
1067
+ export type IconSize = (typeof ICON_SIZES)[number];
983
1068
  declare const ICON_COLORS: readonly [
984
1069
  "primary",
1070
+ "contrast-higher",
985
1071
  "contrast-high",
986
1072
  "contrast-medium",
987
1073
  "contrast-low",
1074
+ "contrast-lower",
988
1075
  "success",
989
1076
  "warning",
990
1077
  "error",
@@ -1000,7 +1087,15 @@ declare const INLINE_NOTIFICATION_STATES: readonly [
1000
1087
  ];
1001
1088
  export type InlineNotificationState = (typeof INLINE_NOTIFICATION_STATES)[number];
1002
1089
  export type InlineNotificationActionIcon = IconName;
1003
- export type InlineNotificationHeadingTag = HeadingTag;
1090
+ declare const INLINE_NOTIFICATION_HEADING_TAGS: readonly [
1091
+ "h1",
1092
+ "h2",
1093
+ "h3",
1094
+ "h4",
1095
+ "h5",
1096
+ "h6"
1097
+ ];
1098
+ export type InlineNotificationHeadingTag = (typeof INLINE_NOTIFICATION_HEADING_TAGS)[number];
1004
1099
  export type InputDateState = FormState;
1005
1100
  export type InputDateChangeEventDetail = Event;
1006
1101
  export type InputDateBlurEventDetail = Event;
@@ -1049,8 +1144,35 @@ export type LinkIcon = LinkButtonIconName;
1049
1144
  export type LinkPureIcon = LinkButtonIconName;
1050
1145
  export type LinkPureAriaAttribute = LinkAriaAttribute;
1051
1146
  export type LinkPureAlignLabel = AlignLabel;
1052
- export type LinkPureSize = TextSize;
1053
1147
  export type LinkPureTarget = LinkTarget;
1148
+ declare const LINK_PURE_SIZES: readonly [
1149
+ "2xs",
1150
+ "xs",
1151
+ "sm",
1152
+ "md",
1153
+ "lg",
1154
+ "xl",
1155
+ "2xl",
1156
+ "3xl",
1157
+ "4xl",
1158
+ "5xl",
1159
+ "inherit",
1160
+ "xx-small",
1161
+ "x-small",
1162
+ "small",
1163
+ "medium",
1164
+ "large",
1165
+ "x-large"
1166
+ ];
1167
+ export type LinkPureSize = (typeof LINK_PURE_SIZES)[number];
1168
+ declare const LINK_PURE_COLORS: readonly [
1169
+ "primary",
1170
+ "contrast-higher",
1171
+ "contrast-high",
1172
+ "contrast-medium",
1173
+ "inherit"
1174
+ ];
1175
+ export type LinkPureColor = (typeof LINK_PURE_COLORS)[number];
1054
1176
  export type LinkTileTarget = LinkTarget;
1055
1177
  export type LinkTileAriaAttribute = LinkAriaAttribute;
1056
1178
  export type LinkTileAspectRatio = TileAspectRatio;
@@ -1247,11 +1369,26 @@ declare const SHEET_BACKGROUNDS: readonly [
1247
1369
  export type SheetBackground = (typeof SHEET_BACKGROUNDS)[number];
1248
1370
  export type SheetMotionVisibleEndEventDetail = TransitionEvent;
1249
1371
  export type SheetMotionHiddenEndEventDetail = TransitionEvent;
1372
+ declare const SPINNER_COLORS: readonly [
1373
+ "primary",
1374
+ "inherit"
1375
+ ];
1376
+ export type SpinnerColor = (typeof SPINNER_COLORS)[number];
1250
1377
  declare const SPINNER_SIZES: readonly [
1378
+ "2xs",
1379
+ "xs",
1380
+ "sm",
1381
+ "md",
1382
+ "lg",
1383
+ "xl",
1384
+ "2xl",
1385
+ "3xl",
1386
+ "4xl",
1387
+ "5xl",
1388
+ "inherit",
1251
1389
  "small",
1252
1390
  "medium",
1253
- "large",
1254
- "inherit"
1391
+ "large"
1255
1392
  ];
1256
1393
  export type SpinnerSize = (typeof SPINNER_SIZES)[number];
1257
1394
  declare const SPINNER_ARIA_ATTRIBUTES: readonly [
@@ -1356,9 +1493,53 @@ declare const TEXT_TAGS: readonly [
1356
1493
  "legend"
1357
1494
  ];
1358
1495
  export type TextTag = (typeof TEXT_TAGS)[number];
1359
- export type TextAlign = TypographyAlign;
1360
- export type TextColor = TypographyTextColor;
1361
- export type TextWeight = TypographyTextWeight;
1496
+ declare const TEXT_COLORS: readonly [
1497
+ "primary",
1498
+ "contrast-higher",
1499
+ "contrast-high",
1500
+ "contrast-medium",
1501
+ "success",
1502
+ "warning",
1503
+ "error",
1504
+ "info",
1505
+ "inherit"
1506
+ ];
1507
+ export type TextColor = (typeof TEXT_COLORS)[number];
1508
+ declare const TEXT_WEIGHTS: readonly [
1509
+ "normal",
1510
+ "semibold",
1511
+ "bold",
1512
+ "regular",
1513
+ "semi-bold"
1514
+ ];
1515
+ export type TextWeight = (typeof TEXT_WEIGHTS)[number];
1516
+ declare const TEXT_ALIGNS: readonly [
1517
+ "start",
1518
+ "center",
1519
+ "end",
1520
+ "inherit"
1521
+ ];
1522
+ export type TextAlign = (typeof TEXT_ALIGNS)[number];
1523
+ declare const TEXT_SIZES: readonly [
1524
+ "2xs",
1525
+ "xs",
1526
+ "sm",
1527
+ "md",
1528
+ "lg",
1529
+ "xl",
1530
+ "2xl",
1531
+ "3xl",
1532
+ "4xl",
1533
+ "5xl",
1534
+ "inherit",
1535
+ "xx-small",
1536
+ "x-small",
1537
+ "small",
1538
+ "medium",
1539
+ "large",
1540
+ "x-large"
1541
+ ];
1542
+ export type TextSize = (typeof TEXT_SIZES)[number];
1362
1543
  declare const TEXT_LIST_TYPES: readonly [
1363
1544
  "unordered",
1364
1545
  "numbered",
@@ -143,6 +143,12 @@
143
143
  --text-xl--line-height: calc(6px + 2.125ex);
144
144
  --text-2xl: clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem);
145
145
  --text-2xl--line-height: calc(6px + 2.125ex);
146
+ --text-3xl: clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem);
147
+ --text-3xl--line-height: calc(6px + 2.125ex);
148
+ --text-4xl: clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem);
149
+ --text-4xl--line-height: calc(6px + 2.125ex);
150
+ --text-5xl: clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem);
151
+ --text-5xl--line-height: calc(6px + 2.125ex);
146
152
 
147
153
  /* Breakpoint */
148
154
  --breakpoint-xs: 480px;
@@ -492,7 +498,7 @@
492
498
 
493
499
  /* Typography: Heading */
494
500
  @utility prose-heading-sm {
495
- @apply font-porsche-next not-italic font-normal text-sm text-primary;
501
+ @apply font-porsche-next not-italic font-semibold text-sm text-primary;
496
502
  }
497
503
  @utility prose-heading-md {
498
504
  @apply font-porsche-next not-italic font-normal text-md text-primary;
@@ -506,14 +512,23 @@
506
512
  @utility prose-heading-2xl {
507
513
  @apply font-porsche-next not-italic font-normal text-2xl text-primary;
508
514
  }
515
+ @utility prose-heading-3xl {
516
+ @apply font-porsche-next not-italic font-normal text-3xl text-primary;
517
+ }
518
+ @utility prose-heading-4xl {
519
+ @apply font-porsche-next not-italic font-normal text-4xl text-primary;
520
+ }
521
+ @utility prose-heading-5xl {
522
+ @apply font-porsche-next not-italic font-normal text-5xl text-primary;
523
+ }
509
524
 
510
525
  /* Typography: Display */
511
526
  @utility prose-display-sm {
512
- @apply font-porsche-next not-italic font-normal leading-normal text-primary text-[clamp(1.8rem,2.41vw+1.32rem,4.21rem)];
527
+ @apply font-porsche-next not-italic font-normal leading-normal text-primary text-3xl;
513
528
  }
514
529
  @utility prose-display-md {
515
- @apply font-porsche-next not-italic font-normal leading-normal text-primary text-[clamp(2.03rem,3.58vw+1.31rem,5.61rem)];
530
+ @apply font-porsche-next not-italic font-normal leading-normal text-primary text-4xl;
516
531
  }
517
532
  @utility prose-display-lg {
518
- @apply font-porsche-next not-italic font-normal leading-normal text-primary text-[clamp(2.28rem,5.2vw+1.24rem,7.48rem)];
533
+ @apply font-porsche-next not-italic font-normal leading-normal text-primary text-5xl;
519
534
  }