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

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 (184) hide show
  1. package/CHANGELOG.md +334 -1
  2. package/OSS_NOTICE +1649 -5178
  3. package/cjs/lib/components/button-pure.wrapper.cjs +3 -3
  4. package/cjs/lib/components/display.wrapper.cjs +1 -0
  5. package/cjs/lib/components/flag.wrapper.cjs +1 -1
  6. package/cjs/lib/components/heading.wrapper.cjs +3 -3
  7. package/cjs/lib/components/icon.wrapper.cjs +1 -1
  8. package/cjs/lib/components/link-pure.wrapper.cjs +3 -3
  9. package/cjs/lib/components/spinner.wrapper.cjs +3 -3
  10. package/cjs/lib/components/text.wrapper.cjs +3 -3
  11. package/esm/lib/components/accordion.wrapper.d.ts +8 -8
  12. package/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  13. package/esm/lib/components/button-pure.wrapper.mjs +3 -3
  14. package/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  15. package/esm/lib/components/button.wrapper.d.ts +6 -6
  16. package/esm/lib/components/carousel.wrapper.d.ts +10 -10
  17. package/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  18. package/esm/lib/components/crest.wrapper.d.ts +6 -6
  19. package/esm/lib/components/display.wrapper.d.ts +1 -0
  20. package/esm/lib/components/display.wrapper.mjs +1 -0
  21. package/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  22. package/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  23. package/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  24. package/esm/lib/components/flag.wrapper.d.ts +5 -5
  25. package/esm/lib/components/flag.wrapper.mjs +1 -1
  26. package/esm/lib/components/flyout.wrapper.d.ts +2 -2
  27. package/esm/lib/components/heading.wrapper.d.ts +27 -11
  28. package/esm/lib/components/heading.wrapper.mjs +3 -3
  29. package/esm/lib/components/icon.wrapper.d.ts +7 -7
  30. package/esm/lib/components/icon.wrapper.mjs +1 -1
  31. package/esm/lib/components/input-date.wrapper.d.ts +12 -12
  32. package/esm/lib/components/input-email.wrapper.d.ts +8 -8
  33. package/esm/lib/components/input-month.wrapper.d.ts +12 -12
  34. package/esm/lib/components/input-number.wrapper.d.ts +8 -8
  35. package/esm/lib/components/input-password.wrapper.d.ts +6 -6
  36. package/esm/lib/components/input-search.wrapper.d.ts +6 -6
  37. package/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  38. package/esm/lib/components/input-text.wrapper.d.ts +6 -6
  39. package/esm/lib/components/input-time.wrapper.d.ts +14 -14
  40. package/esm/lib/components/input-url.wrapper.d.ts +16 -16
  41. package/esm/lib/components/input-week.wrapper.d.ts +14 -14
  42. package/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  43. package/esm/lib/components/link-pure.wrapper.mjs +3 -3
  44. package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  45. package/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  46. package/esm/lib/components/link.wrapper.d.ts +14 -14
  47. package/esm/lib/components/modal.wrapper.d.ts +2 -2
  48. package/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  49. package/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  50. package/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  51. package/esm/lib/components/popover.wrapper.d.ts +6 -6
  52. package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  53. package/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  54. package/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  55. package/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  56. package/esm/lib/components/select.wrapper.d.ts +10 -10
  57. package/esm/lib/components/sheet.wrapper.d.ts +2 -2
  58. package/esm/lib/components/spinner.wrapper.d.ts +13 -5
  59. package/esm/lib/components/spinner.wrapper.mjs +3 -3
  60. package/esm/lib/components/switch.wrapper.d.ts +6 -6
  61. package/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  62. package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  63. package/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  64. package/esm/lib/components/tabs.wrapper.d.ts +2 -2
  65. package/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  66. package/esm/lib/components/tag.wrapper.d.ts +2 -2
  67. package/esm/lib/components/text.wrapper.d.ts +21 -13
  68. package/esm/lib/components/text.wrapper.mjs +3 -3
  69. package/esm/lib/components/textarea.wrapper.d.ts +6 -6
  70. package/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  71. package/esm/lib/types.d.ts +341 -141
  72. package/global-styles/cn/index.css +157 -159
  73. package/global-styles/color-scheme.css +95 -95
  74. package/global-styles/index.css +157 -159
  75. package/global-styles/variables.css +62 -64
  76. package/package.json +6 -2
  77. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +413 -512
  78. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +20 -18
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.cjs +4 -4
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.cjs +1 -0
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.cjs +1 -1
  82. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.cjs +4 -4
  83. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.cjs +1 -1
  84. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.cjs +4 -4
  85. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.cjs +4 -4
  86. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.cjs +4 -4
  87. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +1 -1
  88. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -2
  89. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
  90. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +1 -1
  91. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -0
  92. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
  93. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -1
  94. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +1 -1
  95. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.cjs +1 -1
  96. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -1
  97. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +1 -1
  98. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +1 -1
  99. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
  100. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -1
  101. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +1 -1
  102. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +413 -512
  103. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +20 -18
  104. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/button-pure.wrapper.mjs +4 -4
  105. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/display.wrapper.mjs +1 -0
  106. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flag.wrapper.mjs +1 -1
  107. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/heading.wrapper.mjs +4 -4
  108. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/icon.wrapper.mjs +1 -1
  109. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-pure.wrapper.mjs +4 -4
  110. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/spinner.wrapper.mjs +4 -4
  111. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text.wrapper.mjs +4 -4
  112. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +1 -1
  113. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +3 -2
  114. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
  115. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +1 -1
  116. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -0
  117. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
  118. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +1 -1
  119. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +1 -1
  120. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-base.mjs +1 -1
  121. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +1 -1
  122. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +1 -1
  123. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +1 -1
  124. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
  125. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -1
  126. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +1 -1
  127. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -8
  128. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +15 -7
  129. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +2 -2
  130. package/ssr/esm/lib/components/button.wrapper.d.ts +6 -6
  131. package/ssr/esm/lib/components/carousel.wrapper.d.ts +10 -10
  132. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +6 -6
  133. package/ssr/esm/lib/components/crest.wrapper.d.ts +6 -6
  134. package/ssr/esm/lib/components/display.wrapper.d.ts +1 -0
  135. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +8 -8
  136. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +8 -8
  137. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +6 -6
  138. package/ssr/esm/lib/components/flag.wrapper.d.ts +5 -5
  139. package/ssr/esm/lib/components/flyout.wrapper.d.ts +2 -2
  140. package/ssr/esm/lib/components/heading.wrapper.d.ts +27 -11
  141. package/ssr/esm/lib/components/icon.wrapper.d.ts +7 -7
  142. package/ssr/esm/lib/components/input-date.wrapper.d.ts +12 -12
  143. package/ssr/esm/lib/components/input-email.wrapper.d.ts +8 -8
  144. package/ssr/esm/lib/components/input-month.wrapper.d.ts +12 -12
  145. package/ssr/esm/lib/components/input-number.wrapper.d.ts +8 -8
  146. package/ssr/esm/lib/components/input-password.wrapper.d.ts +6 -6
  147. package/ssr/esm/lib/components/input-search.wrapper.d.ts +6 -6
  148. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +6 -6
  149. package/ssr/esm/lib/components/input-text.wrapper.d.ts +6 -6
  150. package/ssr/esm/lib/components/input-time.wrapper.d.ts +14 -14
  151. package/ssr/esm/lib/components/input-url.wrapper.d.ts +16 -16
  152. package/ssr/esm/lib/components/input-week.wrapper.d.ts +14 -14
  153. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +23 -15
  154. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -8
  155. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +8 -8
  156. package/ssr/esm/lib/components/link.wrapper.d.ts +14 -14
  157. package/ssr/esm/lib/components/modal.wrapper.d.ts +2 -2
  158. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +2 -2
  159. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +10 -10
  160. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +8 -8
  161. package/ssr/esm/lib/components/popover.wrapper.d.ts +6 -6
  162. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -2
  163. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +8 -8
  164. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +4 -4
  165. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +4 -4
  166. package/ssr/esm/lib/components/select.wrapper.d.ts +10 -10
  167. package/ssr/esm/lib/components/sheet.wrapper.d.ts +2 -2
  168. package/ssr/esm/lib/components/spinner.wrapper.d.ts +13 -5
  169. package/ssr/esm/lib/components/switch.wrapper.d.ts +6 -6
  170. package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -2
  171. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -4
  172. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +2 -2
  173. package/ssr/esm/lib/components/tabs.wrapper.d.ts +2 -2
  174. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +6 -6
  175. package/ssr/esm/lib/components/tag.wrapper.d.ts +2 -2
  176. package/ssr/esm/lib/components/text.wrapper.d.ts +21 -13
  177. package/ssr/esm/lib/components/textarea.wrapper.d.ts +6 -6
  178. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +8 -8
  179. package/ssr/esm/lib/dsr-components/carousel.d.ts +2 -2
  180. package/ssr/esm/lib/dsr-components/display.d.ts +2 -0
  181. package/ssr/esm/lib/dsr-components/drilldown-item.d.ts +2 -2
  182. package/ssr/esm/lib/dsr-components/flyout.d.ts +1 -1
  183. package/ssr/esm/lib/types.d.ts +341 -141
  184. package/tailwindcss/index.css +170 -158
@@ -22,16 +22,7 @@ const leadingNormal$1 = 'calc(6px + 2.125ex)';
22
22
  /** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
23
23
  const fontLineHeight = leadingNormal$1;
24
24
 
25
- const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
26
-
27
- const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
28
-
29
- const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
30
-
31
- const typescaleLg = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
32
-
33
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
34
- const fontSizeHeadingLarge = typescaleLg;
25
+ const typescaleLg$1 = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
35
26
 
36
27
  const typescaleMd$1 = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
37
28
 
@@ -43,18 +34,18 @@ const typescaleSm$1 = '1rem';
43
34
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
44
35
  const fontSizeHeadingSmall = typescaleSm$1;
45
36
 
46
- const typescaleXl = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
37
+ const typescaleXl$1 = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
47
38
 
48
39
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
49
- const fontSizeHeadingXLarge = typescaleXl;
40
+ const fontSizeHeadingXLarge = typescaleXl$1;
50
41
 
51
- const typescale2Xl = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
42
+ const typescale2Xl$1 = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
52
43
 
53
44
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xl instead. */
54
- const fontSizeHeadingXXLarge = typescale2Xl;
45
+ const fontSizeHeadingXXLarge = typescale2Xl$1;
55
46
 
56
47
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
57
- const fontSizeTextLarge = typescaleLg;
48
+ const fontSizeTextLarge = typescaleLg$1;
58
49
 
59
50
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
60
51
  const fontSizeTextMedium = typescaleMd$1;
@@ -63,17 +54,17 @@ const fontSizeTextMedium = typescaleMd$1;
63
54
  const fontSizeTextSmall = typescaleSm$1;
64
55
 
65
56
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
66
- const fontSizeTextXLarge = typescaleXl;
57
+ const fontSizeTextXLarge = typescaleXl$1;
67
58
 
68
- const typescaleXs$1 = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
59
+ const typescaleXs$2 = '.875rem';
69
60
 
70
61
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
71
- const fontSizeTextXSmall = typescaleXs$1;
62
+ const fontSizeTextXSmall = typescaleXs$2;
72
63
 
73
- const typescale2Xs = '.75rem';
64
+ const typescale2Xs$1 = '.75rem';
74
65
 
75
66
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xs instead. */
76
- const fontSizeTextXXSmall = typescale2Xs;
67
+ const fontSizeTextXXSmall = typescale2Xs$1;
77
68
 
78
69
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescale variables instead. */
79
70
  const fontSizeText$1 = {
@@ -91,26 +82,16 @@ const fontStyleNormal = 'normal';
91
82
  /** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
92
83
  const fontVariant = 'normal';
93
84
 
94
- const fontWeightNormal = 400;
85
+ const fontWeightNormal$1 = 400;
95
86
 
96
87
  /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
97
- const fontWeightRegular = fontWeightNormal;
88
+ const fontWeightRegular = fontWeightNormal$1;
98
89
 
99
90
  const fontWeightSemibold$1 = 600;
100
91
 
101
92
  /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightSemibold instead. */
102
93
  const fontWeightSemiBold = fontWeightSemibold$1;
103
94
 
104
- const fontWeightBold$1 = 700;
105
-
106
- const fontWeightBold = fontWeightBold$1;
107
-
108
- const fontHyphenationStyle = {
109
- overflowWrap: 'break-word',
110
- // @ts-ignore
111
- hyphens: 'var(--p-hyphens, auto)',
112
- };
113
-
114
95
  const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
115
96
  'hsla(0,0%,0%,.8) 8.1%,' +
116
97
  'hsla(0,0%,0%,.8) 15.5%,' +
@@ -261,10 +242,10 @@ const durationSm$1 = '.25s';
261
242
  /** @deprecated since v4.0.0, will be removed with next major release. Use durationSm instead. */
262
243
  const motionDurationShort = durationSm$1;
263
244
 
264
- const durationXl = '1.2s';
245
+ const durationXl$1 = '1.2s';
265
246
 
266
247
  /** @deprecated since v4.0.0, will be removed with next major release. Use durationXl instead. */
267
- const motionDurationVeryLong = durationXl;
248
+ const motionDurationVeryLong = durationXl$1;
268
249
 
269
250
  const easeInOut = 'cubic-bezier(.25,.1,.25,1)';
270
251
 
@@ -320,14 +301,6 @@ const spacingStaticXSmall = spacingStaticXs$3;
320
301
 
321
302
  const spacingStaticXs$2 = spacingStaticXs$3;
322
303
 
323
- const _displayFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
324
- const _displayFontPartB = `/${fontLineHeight} ${fontFamily}`;
325
-
326
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseDisplayLg instead. */
327
- const displayLargeStyle = {
328
- font: `${_displayFontPartA}${fontSizeDisplayLarge}${_displayFontPartB}`,
329
- };
330
-
331
304
  const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
332
305
  const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
333
306
 
@@ -357,30 +330,25 @@ const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
357
330
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseText2Xs instead. */
358
331
  const textXXSmallStyle = {
359
332
  font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
360
- ...fontHyphenationStyle,
361
333
  };
362
334
 
363
335
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
364
336
  const textXSmallStyle = {
365
337
  font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
366
- ...fontHyphenationStyle,
367
338
  };
368
339
 
369
340
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
370
341
  const textSmallStyle = {
371
342
  font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
372
- ...fontHyphenationStyle,
373
343
  };
374
344
 
375
345
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextMd instead. */
376
346
  const textMediumStyle = {
377
347
  font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
378
- ...fontHyphenationStyle,
379
348
  };
380
349
 
381
350
  const proseTextSmStyle = {
382
- font: `normal normal ${fontWeightNormal} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
383
- ...fontHyphenationStyle,
351
+ font: `normal normal ${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
384
352
  };
385
353
 
386
354
  const alphaDisabled = 0.4;
@@ -425,6 +393,8 @@ const colorSurface = 'var(--p-color-surface)';
425
393
 
426
394
  const colorContrastHigh = 'var(--p-color-contrast-high)';
427
395
 
396
+ const colorContrastHigher = 'var(--p-color-contrast-higher)';
397
+
428
398
  const colorContrastLow = 'var(--p-color-contrast-low)';
429
399
 
430
400
  const colorContrastLower = 'var(--p-color-contrast-lower)';
@@ -439,11 +409,13 @@ const colorErrorFrosted = 'var(--p-color-error-frosted)';
439
409
 
440
410
  const colorErrorFrostedSoft = 'var(--p-color-error-frosted-soft)';
441
411
 
412
+ const colorErrorMedium = 'var(--p-color-error-medium)';
413
+
442
414
  const colorInfo = 'var(--p-color-info)';
443
415
 
444
416
  const colorInfoFrosted = 'var(--p-color-info-frosted)';
445
417
 
446
- const colorInfoFrostedSoft = 'var(--p-color-info-frosted-soft)';
418
+ const colorInfoMedium = 'var(--p-color-info-medium)';
447
419
 
448
420
  const colorSuccess = 'var(--p-color-success)';
449
421
 
@@ -453,26 +425,50 @@ const colorSuccessFrostedSoft = 'var(--p-color-success-frosted-soft)';
453
425
 
454
426
  const colorSuccessLow = 'var(--p-color-success-low)';
455
427
 
428
+ const colorSuccessMedium = 'var(--p-color-success-medium)';
429
+
456
430
  const colorWarning = 'var(--p-color-warning)';
457
431
 
458
432
  const colorWarningFrosted = 'var(--p-color-warning-frosted)';
459
433
 
460
- const colorWarningFrostedSoft = 'var(--p-color-warning-frosted-soft)';
434
+ const colorWarningMedium = 'var(--p-color-warning-medium)';
461
435
 
462
436
  const fontPorscheNext = 'var(--p-font-porsche-next)';
463
437
 
464
438
  const leadingNormal = 'var(--p-leading-normal)';
465
439
 
440
+ const typescale2Xl = 'var(--p-typescale-2xl)';
441
+
442
+ const typescale2Xs = 'var(--p-typescale-2xs)';
443
+
444
+ const typescale3Xl = 'var(--p-typescale-3xl)';
445
+
446
+ const typescale4Xl = 'var(--p-typescale-4xl)';
447
+
448
+ const typescale5Xl = 'var(--p-typescale-5xl)';
449
+
450
+ const typescaleLg = 'var(--p-typescale-lg)';
451
+
466
452
  const typescaleMd = 'var(--p-typescale-md)';
467
453
 
468
454
  const typescaleSm = 'var(--p-typescale-sm)';
469
455
 
456
+ const typescaleXl = 'var(--p-typescale-xl)';
457
+
458
+ const typescaleXs$1 = 'var(--p-typescale-xs)';
459
+
460
+ const fontWeightBold = 'var(--p-font-weight-bold)';
461
+
462
+ const fontWeightNormal = 'var(--p-font-weight-normal)';
463
+
470
464
  const fontWeightSemibold = 'var(--p-font-weight-semibold)';
471
465
 
472
466
  const durationMd = 'var(--p-duration-md)';
473
467
 
474
468
  const durationSm = 'var(--p-duration-sm)';
475
469
 
470
+ const durationXl = 'var(--p-duration-xl)';
471
+
476
472
  const spacingStaticMd = 'var(--p-spacing-static-md)';
477
473
 
478
474
  const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
@@ -480,7 +476,7 @@ const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
480
476
  const spacingStaticXs$1 = 'var(--p-spacing-static-xs)';
481
477
 
482
478
  const forcedColorsMediaQuery = (style) => {
483
- return { '@media (forced-colors: active)': style };
479
+ return { '@media(forced-colors:active)': style };
484
480
  };
485
481
 
486
482
  const motionDurationMap = {
@@ -582,7 +578,9 @@ const preventFoucOfNestedElementsStyles = {
582
578
  * utility to wrap jss styles parameter in `@media (hover: hover)`
583
579
  * which is used to not have hover styles on touch devices
584
580
  */
585
- const hoverMediaQuery = (style) => ({ '@media(hover:hover)': style });
581
+ const hoverMediaQuery = (style) => {
582
+ return { '@media(hover:hover)': style };
583
+ };
586
584
 
587
585
  function _extends() {
588
586
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -3905,14 +3903,12 @@ const OPTION_LIST_SAFE_ZONE = 6;
3905
3903
 
3906
3904
  const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
3907
3905
 
3908
- const prefix = `[Porsche Design System v${"4.0.0-beta.2"}]` // this part isn't covered by unit tests
3906
+ const prefix = `[Porsche Design System v${"4.0.0-beta.4"}]` // this part isn't covered by unit tests
3909
3907
  ;
3910
3908
  const consoleError = (...messages) => {
3911
3909
  console.error(prefix, ...messages);
3912
3910
  };
3913
3911
 
3914
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3915
-
3916
3912
  const headerSlot = 'header';
3917
3913
  const anchorSlot = 'anchor';
3918
3914
 
@@ -4031,10 +4027,6 @@ const cssVarPaddingInline$1 = '--p-accordion-px';
4031
4027
  * @css-variable {"name": "--p-accordion-py", "description": "Vertical padding of the accordion.", "defaultValue": "16px"}
4032
4028
  */
4033
4029
  const cssVarPaddingBlock = '--p-accordion-py';
4034
- // CSS Variable defined in fontHyphenationStyle
4035
- /**
4036
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4037
- */
4038
4030
  const iconMarker = getInlineSVGBackgroundImage(`<path d="m12 15.125h-.001l-.005-.006-6.494-5.476.642-.768 5.858 4.94 5.858-4.94.642.769-6.497 5.477z"/>`);
4039
4031
  const backgroundMap$1 = {
4040
4032
  canvas: colorCanvas,
@@ -4231,6 +4223,9 @@ const cssVariableBottom = '--p-banner-position-bottom';
4231
4223
  const cssVariableZIndex = '--p-internal-banner-z-index';
4232
4224
  const topBottomFallback = '56px';
4233
4225
  const getComponentCss$18 = (isOpen) => {
4226
+ const easing = isOpen ? 'in' : 'out';
4227
+ const transition = `visibility 0s linear var(${cssVariableTransitionDuration}, ${isOpen ? '0s' : motionDurationLong}), ${getTransition('transform', 'moderate', easing)}`;
4228
+ const transitionChild = `${getTransition('opacity', 'moderate', easing)}`;
4234
4229
  return getCss({
4235
4230
  '@global': {
4236
4231
  ':host': {
@@ -4240,32 +4235,42 @@ const getComponentCss$18 = (isOpen) => {
4240
4235
  ...getBannerPopoverResetStyles(),
4241
4236
  inset: `auto ${gridExtendedOffsetBase} var(${cssVariableBottom},${topBottomFallback})`,
4242
4237
  zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
4243
- ...dropShadowHighStyle,
4244
4238
  borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`, // needed for rounded box-shadow
4245
4239
  '&::backdrop': {
4246
4240
  display: 'none',
4247
4241
  },
4242
+ '& > :first-child': {
4243
+ opacity: 0,
4244
+ ...dropShadowHighStyle,
4245
+ ...(isOpen
4246
+ ? {
4247
+ opacity: 1,
4248
+ }
4249
+ : {
4250
+ opacity: 0,
4251
+ }),
4252
+ transition: transitionChild,
4253
+ // // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4254
+ '@supports (transition-behavior: allow-discrete)': {
4255
+ transition: `${transitionChild}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4256
+ },
4257
+ },
4248
4258
  ...(isOpen
4249
4259
  ? {
4250
- opacity: 1,
4251
4260
  visibility: 'inherit',
4252
4261
  pointerEvents: 'inherit',
4253
4262
  transform: 'translate3d(0,0,0)',
4254
- transition: `${getTransition('transform', 'moderate', 'in')}, ${getTransition('opacity', 'moderate', 'in')}`,
4255
4263
  }
4256
4264
  : {
4257
- opacity: 0,
4258
4265
  visibility: 'hidden',
4259
4266
  pointerEvents: 'none',
4260
4267
  transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
4261
- '&(.hydrated),&(.ssr)': {
4262
- transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationLong}), ${getTransition('transform', 'moderate', 'out')}, ${getTransition('opacity', 'moderate', 'out')}`,
4263
- // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4264
- '@supports (transition-behavior: allow-discrete)': {
4265
- transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationLong}), ${getTransition('transform', 'moderate', 'out')}, ${getTransition('opacity', 'moderate', 'out')}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4266
- },
4267
- },
4268
4268
  }),
4269
+ transition,
4270
+ // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4271
+ '@supports (transition-behavior: allow-discrete)': {
4272
+ transition: `${transition}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4273
+ },
4269
4274
  [getMediaQueryMin('s')]: {
4270
4275
  inset: `var(${cssVariableTop},${topBottomFallback}) ${gridExtendedOffsetS} auto`,
4271
4276
  ...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
@@ -4281,17 +4286,47 @@ const getComponentCss$18 = (isOpen) => {
4281
4286
  });
4282
4287
  };
4283
4288
 
4284
- const fontSizeTextMap = {
4285
- 'xx-small': fontSizeTextXXSmall,
4286
- 'x-small': fontSizeTextXSmall,
4287
- small: fontSizeTextSmall,
4288
- medium: fontSizeTextMedium,
4289
- large: fontSizeTextLarge,
4290
- 'x-large': fontSizeTextXLarge,
4289
+ const colorMap$3 = {
4290
+ primary: colorPrimary,
4291
+ 'contrast-higher': colorContrastHigher,
4292
+ 'contrast-high': colorContrastHigh,
4293
+ 'contrast-medium': colorContrastMedium,
4294
+ 'contrast-low': colorContrastLow,
4295
+ 'contrast-lower': colorContrastLower,
4296
+ success: colorSuccess,
4297
+ warning: colorWarning,
4298
+ error: colorError,
4299
+ info: colorInfo,
4300
+ inherit: 'currentcolor',
4301
+ };
4302
+
4303
+ const sizeMap$1 = {
4304
+ 'xx-small': typescale2Xs, // deprecated (alias)
4305
+ 'x-small': typescaleXs$1, // deprecated (alias)
4306
+ small: typescaleSm, // deprecated (alias)
4307
+ medium: typescaleMd, // deprecated (alias)
4308
+ large: typescaleLg, // deprecated (alias)
4309
+ 'x-large': typescaleXl, // deprecated (alias)
4310
+ 'xx-large': typescale2Xl, // deprecated (alias)
4311
+ '2xs': typescale2Xs,
4312
+ xs: typescaleXs$1,
4313
+ sm: typescaleSm,
4314
+ md: typescaleMd,
4315
+ lg: typescaleLg,
4316
+ xl: typescaleXl,
4317
+ '2xl': typescale2Xl,
4318
+ '3xl': typescale3Xl,
4319
+ '4xl': typescale4Xl,
4320
+ '5xl': typescale5Xl,
4291
4321
  inherit: 'inherit',
4292
4322
  };
4293
- const getFontSizeText = (size) => {
4294
- return fontSizeTextMap[size];
4323
+
4324
+ const weightMap = {
4325
+ regular: fontWeightNormal, // deprecated
4326
+ 'semi-bold': fontWeightSemibold, // deprecated
4327
+ normal: fontWeightNormal,
4328
+ semibold: fontWeightSemibold,
4329
+ bold: fontWeightBold,
4295
4330
  };
4296
4331
 
4297
4332
  // Needed for slotted anchor and hidden label, which then enlarges the hidden label to equal host size and indents the text to be visually hidden.
@@ -4310,7 +4345,7 @@ const getVisibilityJssStyle = (hideLabel) => {
4310
4345
  };
4311
4346
  const offsetVertical = '-2px';
4312
4347
  const offsetHorizontal = '-4px';
4313
- const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
4348
+ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
4314
4349
  const hasIcon = hasVisibleIcon(icon, iconSource);
4315
4350
  return {
4316
4351
  '@global': {
@@ -4332,16 +4367,16 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4332
4367
  display: 'flex',
4333
4368
  width: '100%',
4334
4369
  cursor: 'pointer',
4335
- color: colorPrimary,
4370
+ color: colorMap$3[color],
4336
4371
  textDecoration: underline ? 'underline' : 'none',
4337
- ...textSmallStyle,
4372
+ font: `${fontWeightNormal} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
4338
4373
  ...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
4339
- gap: hidelabelValue ? 0 : spacingStaticXSmall,
4374
+ gap: hidelabelValue ? 0 : spacingStaticXs$1,
4340
4375
  })), buildResponsiveStyles(stretch, (stretchValue) => ({
4341
4376
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
4342
4377
  alignItems: stretchValue ? 'center' : 'flex-start',
4343
- })), buildResponsiveStyles(size, (sizeValue) => ({
4344
- fontSize: getFontSizeText(sizeValue),
4378
+ })), buildResponsiveStyles(size, (v) => ({
4379
+ fontSize: sizeMap$1[v],
4345
4380
  }))),
4346
4381
  ...forcedColorsMediaQuery({
4347
4382
  color: 'LinkText',
@@ -4361,14 +4396,16 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4361
4396
  })),
4362
4397
  transition: getTransition('background-color'),
4363
4398
  ...(active && {
4364
- ...frostedGlassStyle,
4399
+ WebkitBackdropFilter: blurFrosted,
4400
+ backdropFilter: blurFrosted,
4365
4401
  backgroundColor: colorFrosted,
4366
4402
  }),
4367
4403
  },
4368
4404
  ...(!isDisabledOrLoading &&
4369
4405
  hoverMediaQuery({
4370
4406
  '&:hover::before': {
4371
- ...frostedGlassStyle,
4407
+ WebkitBackdropFilter: blurFrosted,
4408
+ backdropFilter: blurFrosted,
4372
4409
  backgroundColor: colorFrostedStrong,
4373
4410
  },
4374
4411
  })),
@@ -4381,15 +4418,6 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4381
4418
  icon: {
4382
4419
  position: 'relative',
4383
4420
  flexShrink: '0',
4384
- fontSize: 'inherit', // inherit font size from root
4385
- width: fontLineHeight,
4386
- height: fontLineHeight,
4387
- // workaround for Safari to optimize vertical alignment of icons
4388
- // TODO: check if this is still needed after optimized icons are included
4389
- '@supports (width: round(down, 1px, 1px))': {
4390
- width: `round(down, ${fontLineHeight}, 1px)`,
4391
- height: `round(down, ${fontLineHeight}, 1px)`,
4392
- },
4393
4421
  },
4394
4422
  label: mergeDeep({ zIndex: '1' }, // fix Firefox bug on :hover (#2583) & pure-link with nested anchor & hidden label (#3349)
4395
4423
  buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
@@ -4410,13 +4438,9 @@ const getFunctionalComponentLoadingMessageStyles = () => {
4410
4438
  };
4411
4439
  };
4412
4440
 
4413
- // CSS Variable defined in fontHyphenationStyle
4414
- /**
4415
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4416
- */
4417
- const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline) => {
4441
+ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline) => {
4418
4442
  const hasIcon = hasVisibleIcon(icon, iconSource);
4419
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false), {
4443
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, false), {
4420
4444
  root: {
4421
4445
  ...(isDisabled && {
4422
4446
  color: colorContrastLow,
@@ -4433,9 +4457,7 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
4433
4457
  icon: {
4434
4458
  position: 'absolute',
4435
4459
  top: 0,
4436
- left: `calc(50% - ${fontLineHeight} / 2)`,
4437
- width: fontLineHeight,
4438
- height: fontLineHeight,
4460
+ left: `calc(50% - ${leadingNormal} / 2)`,
4439
4461
  },
4440
4462
  }),
4441
4463
  // .loading
@@ -4443,19 +4465,6 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
4443
4465
  }));
4444
4466
  };
4445
4467
 
4446
- const fontWeightMap = {
4447
- regular: fontWeightRegular,
4448
- 'semi-bold': fontWeightSemiBold,
4449
- bold: fontWeightBold,
4450
- };
4451
- const getFontWeight = (weight) => {
4452
- return fontWeightMap[weight];
4453
- };
4454
-
4455
- // CSS Variable defined in fontHyphenationStyle
4456
- /**
4457
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4458
- */
4459
4468
  const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
4460
4469
  const isTopAligned = align === 'top';
4461
4470
  return getCss({
@@ -4510,10 +4519,10 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4510
4519
  ...textMediumStyle,
4511
4520
  color: colorPrimary,
4512
4521
  hyphens: 'inherit',
4513
- ...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
4514
- fontSize: getFontSizeText(sizeValue),
4515
- })), buildResponsiveStyles(weight, (weightValue) => ({
4516
- fontWeight: getFontWeight(weightValue),
4522
+ ...mergeDeep(buildResponsiveStyles(size, (v) => ({
4523
+ fontSize: sizeMap$1[v],
4524
+ })), buildResponsiveStyles(weight, (v) => ({
4525
+ fontWeight: weightMap[v],
4517
4526
  }))),
4518
4527
  },
4519
4528
  },
@@ -4694,10 +4703,6 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4694
4703
  };
4695
4704
 
4696
4705
  const cssVariableInternalButtonScaling = '--p-internal-button-scaling';
4697
- // CSS Variable defined in fontHyphenationStyle
4698
- /**
4699
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4700
- */
4701
4706
  const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, isLoading, isCompact) => {
4702
4707
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
4703
4708
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling), {
@@ -4722,7 +4727,9 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4722
4727
  top: '50%',
4723
4728
  left: '50%',
4724
4729
  transform: 'translate(-50%, -50%)',
4725
- color: 'inherit',
4730
+ ...(variant === 'primary' && {
4731
+ '--p-spinner-color': 'currentcolor',
4732
+ }),
4726
4733
  },
4727
4734
  }),
4728
4735
  label: {
@@ -4751,9 +4758,9 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4751
4758
  const palette = {
4752
4759
  dark: {
4753
4760
  grey: {
4754
- '950': 'hsl(225, 100%, 99%)',
4755
- '100a': 'hsla(240, 3.7%, 26.5%, 0.154)',
4756
- '200a': 'hsla(240, 2%, 43%, 0.228)'},
4761
+ '950': 'hsl(225 100% 99%)',
4762
+ '100a': 'hsl(240 3.7% 26.5% / 0.154)',
4763
+ '200a': 'hsl(240 2% 43% / 0.228)'},
4757
4764
  },
4758
4765
  };
4759
4766
 
@@ -4763,7 +4770,7 @@ const colorFrostedSoftDark = palette.dark.grey['100a'];
4763
4770
 
4764
4771
  const colorPrimaryDark = palette.dark.grey["950"];
4765
4772
 
4766
- const typescaleXs = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
4773
+ const typescaleXs = '.875rem';
4767
4774
 
4768
4775
  const spacingStaticSm = '8px';
4769
4776
 
@@ -4992,7 +4999,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
4992
4999
  },
4993
5000
  },
4994
5001
  main: {
4995
- zIndex: 3,
5002
+ zIndex: 2,
4996
5003
  gridArea: 'main',
4997
5004
  padding: spacingBase,
4998
5005
  },
@@ -5014,7 +5021,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
5014
5021
  },
5015
5022
  },
5016
5023
  sidebar: {
5017
- zIndex: 2,
5024
+ zIndex: 3,
5018
5025
  position: 'sticky',
5019
5026
  top: 0,
5020
5027
  height: '100dvh', // transitions between svh (viewport when Safari's address bar and bottom bar are visible (~60-90px less)) and lvh (viewport when Safari's UI is completely hidden (maximum space)) as you scroll (causes reflows)
@@ -5126,10 +5133,6 @@ const backfaceVisibilityJssStyle = {
5126
5133
  WebkitBackfaceVisibility: 'hidden',
5127
5134
  };
5128
5135
  const gradientMask = `linear-gradient(90deg,transparent 20%,#000 var(${cssVariableGradientColorWidth},33%) calc(100% - var(${cssVariableGradientColorWidth},33%)),transparent 80%)`;
5129
- // CSS Variable defined in fontHyphenationStyle
5130
- /**
5131
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
5132
- */
5133
5136
  const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, hasNavigation, alignControls) => {
5134
5137
  const isHeaderAlignCenter = alignHeader === 'center';
5135
5138
  return getCss({
@@ -5384,6 +5387,11 @@ const colorBackgroundMap$1 = {
5384
5387
  error: colorErrorFrostedSoft,
5385
5388
  none: colorFrosted,
5386
5389
  };
5390
+ const colorBackgroundHoverMap$1 = {
5391
+ success: colorSuccessMedium,
5392
+ error: colorErrorMedium,
5393
+ none: colorContrastHigh,
5394
+ };
5387
5395
  const colorBorderMap = {
5388
5396
  success: colorSuccess,
5389
5397
  error: colorError,
@@ -5394,7 +5402,7 @@ const colorBorderHoverMap = {
5394
5402
  error: colorError,
5395
5403
  none: colorPrimary,
5396
5404
  };
5397
- const colorMap$4 = {
5405
+ const colorMap$2 = {
5398
5406
  success: colorSuccess,
5399
5407
  error: colorError,
5400
5408
  none: undefined,
@@ -5402,9 +5410,10 @@ const colorMap$4 = {
5402
5410
  const getThemedFormStateColors = (state) => {
5403
5411
  return {
5404
5412
  formStateBackgroundColor: colorBackgroundMap$1[state],
5413
+ formStateBackgroundHoverColor: colorBackgroundHoverMap$1[state],
5405
5414
  formStateBorderColor: colorBorderMap[state],
5406
5415
  formStateBorderHoverColor: colorBorderHoverMap[state],
5407
- formStateColor: colorMap$4[state],
5416
+ formStateColor: colorMap$2[state],
5408
5417
  };
5409
5418
  };
5410
5419
 
@@ -5420,7 +5429,7 @@ const cssVarCheckboxIconColor = '--p-checkbox-icon-color';
5420
5429
  const cssVarInternalCheckboxScaling = '--__p-checkbox-scaling';
5421
5430
 
5422
5431
  const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5423
- const { formStateBackgroundColor, formStateBorderColor } = getThemedFormStateColors(state);
5432
+ const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
5424
5433
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
5425
5434
  const checkboxBorderWidth = borderWidthThin;
5426
5435
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
@@ -5445,6 +5454,11 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5445
5454
  ...(disabledOrLoading && {
5446
5455
  pointerEvents: 'none', // to prevent form element becomes clickable/toggleable
5447
5456
  }),
5457
+ ...hoverMediaQuery({
5458
+ '&:hover': {
5459
+ borderColor: `var(${cssVarCheckboxBorderColor}, ${formStateBorderHoverColor})`,
5460
+ },
5461
+ }),
5448
5462
  '&::before': {
5449
5463
  // This pseudo-element is used to render the checkmark or indeterminate icon when the checkbox is checked or indeterminate.
5450
5464
  content: '""',
@@ -5462,16 +5476,29 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5462
5476
 
5463
5477
  const checkedIcon$1 = getInlineSVGBackgroundImage(`<path d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`);
5464
5478
  const getCheckboxCheckedBaseStyles = (isLoading, state) => {
5465
- const { formStateBorderColor } = getThemedFormStateColors(state);
5479
+ const { formStateBorderColor, formStateBackgroundHoverColor } = getThemedFormStateColors(state);
5466
5480
  if (isLoading) {
5467
5481
  return {};
5468
5482
  }
5469
5483
  return {
5484
+ '&': {
5485
+ background: state === 'none' ? colorPrimary : formStateBorderColor,
5486
+ },
5487
+ ...(state === 'none' && {
5488
+ ...hoverMediaQuery({
5489
+ '&:hover': {
5490
+ backgroundColor: `var(${cssVarCheckboxBorderColor}, ${formStateBackgroundHoverColor})`,
5491
+ borderColor: 'transparent',
5492
+ },
5493
+ }),
5494
+ }),
5470
5495
  '&::before': {
5471
- forcedColorAdjust: 'none',
5472
5496
  WebkitMask: `${checkedIcon$1} center/contain no-repeat`, // necessary for Sogou browser support :-)
5473
5497
  mask: `${checkedIcon$1} center/contain no-repeat`,
5474
- backgroundColor: `var(${cssVarCheckboxIconColor}, ${state === 'none' ? colorPrimary : formStateBorderColor})`,
5498
+ backgroundColor: `var(${cssVarCheckboxIconColor},${colorCanvas})`,
5499
+ ...forcedColorsMediaQuery({
5500
+ background: 'CanvasText',
5501
+ }),
5475
5502
  },
5476
5503
  };
5477
5504
  };
@@ -5484,10 +5511,12 @@ const getCheckboxIndeterminateBaseStyles = (isLoading, state) => {
5484
5511
  }
5485
5512
  return {
5486
5513
  '&::before': {
5487
- forcedColorAdjust: 'none',
5488
5514
  WebkitMask: `${indeterminateIcon} center/contain no-repeat`,
5489
5515
  mask: `${indeterminateIcon} center/contain no-repeat`,
5490
5516
  backgroundColor: state === 'none' ? colorPrimary : formStateBorderColor,
5517
+ ...forcedColorsMediaQuery({
5518
+ background: 'CanvasText',
5519
+ }),
5491
5520
  },
5492
5521
  };
5493
5522
  };
@@ -5570,10 +5599,6 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5570
5599
  };
5571
5600
  };
5572
5601
 
5573
- // CSS Variable defined in fontHyphenationStyle
5574
- /**
5575
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
5576
- */
5577
5602
  // CSS Variables defined in checkbox-css-vars.ts
5578
5603
  /**
5579
5604
  * @css-variable {"name": "--p-checkbox-border-color", "description": "🧪Experimental: Border colors of Checkbox. Should be used to override the default border color in different states (e.g., hover, focus, error), e.g. when the Checkbox is wrapped inside a custom label."}
@@ -5581,7 +5606,6 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5581
5606
  * @css-variable {"name": "--p-checkbox-icon-color", "description": "🧪Experimental: Checkmark icon color of Checkbox."}
5582
5607
  */
5583
5608
  const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact) => {
5584
- const { formStateBorderHoverColor } = getThemedFormStateColors(state);
5585
5609
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
5586
5610
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
5587
5611
  const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${fontLineHeight}) / 2))`;
@@ -5602,12 +5626,6 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5602
5626
  '&:checked': getCheckboxCheckedBaseStyles(isLoading, state),
5603
5627
  '&:indeterminate': getCheckboxIndeterminateBaseStyles(isLoading, state),
5604
5628
  '&:focus-visible': getFocusBaseStyles(),
5605
- ...(!disabledOrLoading &&
5606
- hoverMediaQuery({
5607
- '&:hover': {
5608
- borderColor: `var(${cssVarCheckboxBorderColor}, ${formStateBorderHoverColor})`,
5609
- },
5610
- })),
5611
5629
  },
5612
5630
  },
5613
5631
  root: {
@@ -5630,13 +5648,11 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5630
5648
  },
5631
5649
  ...(isLoading && {
5632
5650
  spinner: {
5651
+ '--p-spinner-size': `calc(${checkboxDimension} - 2px)`, // compensates the 1px border of the checkbox
5633
5652
  position: 'absolute',
5634
5653
  top: '50%',
5635
5654
  left: '50%',
5636
5655
  transform: 'translate(-50%,-50%)',
5637
- width: checkboxDimension,
5638
- height: checkboxDimension,
5639
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
5640
5656
  },
5641
5657
  }),
5642
5658
  // .label / .required
@@ -5749,13 +5765,6 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
5749
5765
  },
5750
5766
  })),
5751
5767
  },
5752
- ...(isLoading && {
5753
- spinner: {
5754
- font: textSmallStyle.font,
5755
- width: fontLineHeight,
5756
- height: fontLineHeight,
5757
- },
5758
- }),
5759
5768
  // .label / .required
5760
5769
  ...getFunctionalComponentLabelStyles(isDisabled, isLoading, hideLabel),
5761
5770
  // .message
@@ -5949,7 +5958,7 @@ const getFunctionalComponentNoResultsOptionStyles = (componentName, cssVarScalin
5949
5958
  };
5950
5959
 
5951
5960
  // index.ts
5952
- var ICONS_MANIFEST = { "360": "360.0600731.svg", "4-wheel-drive": "4-wheel-drive.9c218bf.svg", "accessibility": "accessibility.087d747.svg", "active-cabin-ventilation": "active-cabin-ventilation.b081399.svg", "add": "add.fac861a.svg", "adjust": "adjust.ca46bd4.svg", "aggregation": "aggregation.96f06e5.svg", "ai-3d-object": "ai-3d-object.7a85dd7.svg", "ai-code": "ai-code.9afafb7.svg", "ai-edit": "ai-edit.75a4765.svg", "ai-image": "ai-image.c786d48.svg", "ai-scale": "ai-scale.846fde0.svg", "ai-sound": "ai-sound.727ea7a.svg", "ai-spark": "ai-spark.a134e18.svg", "ai-spark-filled": "ai-spark-filled.2d5d971.svg", "ai-text": "ai-text.fc84e09.svg", "ai-video": "ai-video.759a7f2.svg", "arrow-compact-down": "arrow-compact-down.9b37afe.svg", "arrow-compact-left": "arrow-compact-left.7169de6.svg", "arrow-compact-right": "arrow-compact-right.cc2d1d2.svg", "arrow-compact-up": "arrow-compact-up.36724bb.svg", "arrow-double-down": "arrow-double-down.61ae4d7.svg", "arrow-double-left": "arrow-double-left.1b576eb.svg", "arrow-double-right": "arrow-double-right.dcfabff.svg", "arrow-double-up": "arrow-double-up.fb73db5.svg", "arrow-down": "arrow-down.49c6983.svg", "arrow-first": "arrow-first.beb7d9f.svg", "arrow-head-down": "arrow-head-down.1e3cbb8.svg", "arrow-head-left": "arrow-head-left.cf1395d.svg", "arrow-head-right": "arrow-head-right.304b330.svg", "arrow-head-up": "arrow-head-up.6d3fd23.svg", "arrow-last": "arrow-last.cc24903.svg", "arrow-left": "arrow-left.e03c25b.svg", "arrow-right": "arrow-right.872716b.svg", "arrow-up": "arrow-up.9d294d1.svg", "arrows": "arrows.de040f9.svg", "attachment": "attachment.8f3dd0a.svg", "augmented-reality": "augmented-reality.8b6ce95.svg", "battery-empty": "battery-empty.38b4b15.svg", "battery-empty-co2": "battery-empty-co2.c4cabef.svg", "battery-empty-fuel": "battery-empty-fuel.e833e13.svg", "battery-full": "battery-full.03de75d.svg", "battery-half": "battery-half.11f1ef8.svg", "battery-one-quarter": "battery-one-quarter.91235a0.svg", "battery-three-quarters": "battery-three-quarters.dcf768f.svg", "bell": "bell.1eab3a2.svg", "bookmark": "bookmark.9d6982f.svg", "bookmark-filled": "bookmark-filled.327ac78.svg", "brain": "brain.838387a.svg", "broadcast": "broadcast.0ad5a15.svg", "cabriolet": "cabriolet.ab33aab.svg", "calculator": "calculator.a323a2d.svg", "calendar": "calendar.70a6a12.svg", "camera": "camera.e5e95b9.svg", "car": "car.35229c9.svg", "car-battery": "car-battery.895510f.svg", "card": "card.f284448.svg", "charging-active": "charging-active.c3aa214.svg", "charging-network": "charging-network.a40072f.svg", "charging-state": "charging-state.f56d8df.svg", "charging-station": "charging-station.5ff1ed4.svg", "chart": "chart.c8c32d2.svg", "chat": "chat.7945544.svg", "check": "check.8ba06be.svg", "city": "city.5ae672c.svg", "climate": "climate.a9d5818.svg", "climate-control": "climate-control.ce31939.svg", "clock": "clock.c88a1ef.svg", "close": "close.eec3c5d.svg", "closed-caption": "closed-caption.ceaf6cb.svg", "cloud": "cloud.2c3959e.svg", "co2-class": "co2-class.fc49211.svg", "co2-emission": "co2-emission.c42e7f8.svg", "color-picker": "color-picker.598f402.svg", "compare": "compare.6578829.svg", "compass": "compass.f90f319.svg", "configurate": "configurate.5311c8d.svg", "copy": "copy.0fcd086.svg", "country-road": "country-road.d2bbc5a.svg", "coupe": "coupe.7549e3e.svg", "cubic-capacity": "cubic-capacity.7b0b8c8.svg", "cut": "cut.851e5c2.svg", "delete": "delete.5a8c8ca.svg", "disable": "disable.5918c32.svg", "dislike": "dislike.51614b0.svg", "dislike-filled": "dislike-filled.e1a8c4d.svg", "document": "document.df36b6c.svg", "door": "door.61c32d6.svg", "download": "download.c06f455.svg", "drag": "drag.9e893fd.svg", "duration": "duration.94e5252.svg", "ear": "ear.27a802f.svg", "edit": "edit.330f321.svg", "email": "email.f2530de.svg", "error": "error.b8ae9ad.svg", "error-filled": "error-filled.a4d06ed.svg", "exclamation": "exclamation.46cd17b.svg", "exclamation-filled": "exclamation-filled.9d09ed1.svg", "external": "external.fb677b9.svg", "fast-backward": "fast-backward.a71faae.svg", "fast-forward": "fast-forward.1e6fa9f.svg", "file-csv": "file-csv.4140e24.svg", "file-excel": "file-excel.56d577d.svg", "filter": "filter.610f808.svg", "fingerprint": "fingerprint.6a85170.svg", "flag": "flag.7af5baf.svg", "flash": "flash.88a2ada.svg", "fuel-station": "fuel-station.f7bdf51.svg", "garage": "garage.5014e8d.svg", "genuine-parts": "genuine-parts.6bfddde.svg", "geo-localization": "geo-localization.516d603.svg", "gift": "gift.7beb1eb.svg", "globe": "globe.56cc8fc.svg", "grid": "grid.06bc31a.svg", "grip": "grip.5ec4289.svg", "group": "group.051436a.svg", "hand": "hand.4e85714.svg", "heart": "heart.9a5962e.svg", "heart-filled": "heart-filled.dd7decf.svg", "highway": "highway.bf0eb24.svg", "highway-filled": "highway-filled.38e93fb.svg", "history": "history.f09645c.svg", "home": "home.7b1d1da.svg", "horn": "horn.bf47b1a.svg", "image": "image.b2614f0.svg", "increase": "increase.700012f.svg", "information": "information.da41162.svg", "information-filled": "information-filled.8f08911.svg", "key": "key.ee5d89b.svg", "laptop": "laptop.c422480.svg", "leaf": "leaf.92ca6a6.svg", "leather": "leather.1d2769a.svg", "light": "light.f0eb8e4.svg", "like": "like.a7468cd.svg", "like-filled": "like-filled.a0126c1.svg", "limousine": "limousine.87799d5.svg", "linked": "linked.8f30cb5.svg", "list": "list.411dd00.svg", "locate": "locate.6554f9e.svg", "lock": "lock.243281a.svg", "lock-open": "lock-open.95803d2.svg", "logo-apple-carplay": "logo-apple-carplay.c872af9.svg", "logo-apple-music": "logo-apple-music.1395f37.svg", "logo-apple-podcast": "logo-apple-podcast.09be038.svg", "logo-baidu": "logo-baidu.9e89c7d.svg", "logo-delicious": "logo-delicious.e83f574.svg", "logo-digg": "logo-digg.f096670.svg", "logo-facebook": "logo-facebook.74abe88.svg", "logo-foursquare": "logo-foursquare.d638fd8.svg", "logo-gmail": "logo-gmail.5f96ee2.svg", "logo-google": "logo-google.1dee423.svg", "logo-hatena": "logo-hatena.da509f0.svg", "logo-instagram": "logo-instagram.b916daa.svg", "logo-kaixin": "logo-kaixin.b1211a2.svg", "logo-kakaotalk": "logo-kakaotalk.38f5396.svg", "logo-kununu": "logo-kununu.79344ff.svg", "logo-linkedin": "logo-linkedin.b72559f.svg", "logo-naver": "logo-naver.75588fe.svg", "logo-pinterest": "logo-pinterest.e8f6963.svg", "logo-qq": "logo-qq.6d9b6d9.svg", "logo-qq-share": "logo-qq-share.ee864d9.svg", "logo-reddit": "logo-reddit.da13e44.svg", "logo-skyrock": "logo-skyrock.eb2f28d.svg", "logo-snapchat": "logo-snapchat.ef706a2.svg", "logo-sohu": "logo-sohu.a30c66b.svg", "logo-spotify": "logo-spotify.2ec4b2d.svg", "logo-tecent": "logo-tecent.d119e85.svg", "logo-telegram": "logo-telegram.d151481.svg", "logo-tiktok": "logo-tiktok.2f3a465.svg", "logo-tumblr": "logo-tumblr.c689f44.svg", "logo-twitter": "logo-twitter.5f2490a.svg", "logo-viber": "logo-viber.198bd43.svg", "logo-vk": "logo-vk.37b94e0.svg", "logo-wechat": "logo-wechat.83b2b98.svg", "logo-weibo": "logo-weibo.c8dacee.svg", "logo-whatsapp": "logo-whatsapp.add9a6d.svg", "logo-x": "logo-x.5f2490a.svg", "logo-xing": "logo-xing.3a8df0f.svg", "logo-yahoo": "logo-yahoo.8cbd0ba.svg", "logo-youku": "logo-youku.fe988d0.svg", "logo-youtube": "logo-youtube.da3798f.svg", "logout": "logout.7ec7451.svg", "map": "map.c16f618.svg", "menu-dots-horizontal": "menu-dots-horizontal.788f7fa.svg", "menu-dots-vertical": "menu-dots-vertical.4970a65.svg", "menu-lines": "menu-lines.e332216.svg", "microphone": "microphone.8ecdce6.svg", "minus": "minus.f6d964c.svg", "mobile": "mobile.7f35446.svg", "moon": "moon.5b73246.svg", "new-chat": "new-chat.95ffd2e.svg", "news": "news.5b604b0.svg", "north-arrow": "north-arrow.2da1dbe.svg", "oil-can": "oil-can.cb58fc7.svg", "online-search": "online-search.90e9ab1.svg", "parking-brake": "parking-brake.45704bd.svg", "parking-light": "parking-light.c49a231.svg", "paste": "paste.dd60261.svg", "pause": "pause.e41b935.svg", "phone": "phone.f4f774b.svg", "pin": "pin.3417cec.svg", "pin-filled": "pin-filled.7b8e9ba.svg", "pivot": "pivot.3ae18b8.svg", "play": "play.24226d4.svg", "plug": "plug.c159935.svg", "plus": "plus.319993e.svg", "preheating": "preheating.e2a796f.svg", "price-tag": "price-tag.f0d3917.svg", "printer": "printer.f59b0ee.svg", "purchase": "purchase.9cd6d65.svg", "push-pin": "push-pin.89e4ead.svg", "push-pin-off": "push-pin-off.ba99213.svg", "qr": "qr.87a49a3.svg", "qr-off": "qr-off.64e21b9.svg", "question": "question.3402a63.svg", "question-filled": "question-filled.cf25dd5.svg", "racing-flag": "racing-flag.b7ddcc8.svg", "radar": "radar.de5a6c1.svg", "radio": "radio.2b48e53.svg", "refresh": "refresh.41fd868.svg", "replay": "replay.55a99f2.svg", "reset": "reset.e53d52f.svg", "return": "return.46d30de.svg", "road": "road.bd3d4bc.svg", "roof-closed": "roof-closed.018d021.svg", "roof-open": "roof-open.51c8ee6.svg", "route": "route.f4fbbb4.svg", "rss": "rss.0e77baf.svg", "save": "save.6171ff5.svg", "screen": "screen.420be15.svg", "search": "search.3f0f1ce.svg", "seat": "seat.a3ebc40.svg", "send": "send.b32099c.svg", "service-technician": "service-technician.8749028.svg", "share": "share.a0b30da.svg", "shopping-bag": "shopping-bag.3f91a9b.svg", "shopping-bag-filled": "shopping-bag-filled.abf6c98.svg", "shopping-cart": "shopping-cart.370e224.svg", "shopping-cart-filled": "shopping-cart-filled.e0c3a65.svg", "sidebar": "sidebar.8e43896.svg", "sidelights": "sidelights.65c9dd9.svg", "skip-backward": "skip-backward.cd25ac5.svg", "skip-forward": "skip-forward.001e97f.svg", "snowflake": "snowflake.83907b3.svg", "sort": "sort.92b50bd.svg", "stack": "stack.804af93.svg", "star": "star.4c5bb15.svg", "star-filled": "star-filled.84ef2f6.svg", "steering-wheel": "steering-wheel.4dea19e.svg", "stop": "stop.173b6ac.svg", "stopwatch": "stopwatch.0e048a4.svg", "subtract": "subtract.57eed1d.svg", "success": "success.b16d4c1.svg", "success-filled": "success-filled.1832d98.svg", "sun": "sun.4301cbd.svg", "suv": "suv.33ac4aa.svg", "switch": "switch.66f74c4.svg", "tablet": "tablet.07341ac.svg", "tachometer": "tachometer.3a2fc3c.svg", "theme": "theme.08f6508.svg", "tire": "tire.e5c9372.svg", "trigger-finger": "trigger-finger.65aa6e2.svg", "truck": "truck.2c26c04.svg", "turismo": "turismo.a066b9f.svg", "unlinked": "unlinked.e9afe39.svg", "upload": "upload.d1f5a2a.svg", "user": "user.c18dabe.svg", "user-filled": "user-filled.2ea646d.svg", "user-group": "user-group.79cdf86.svg", "user-manual": "user-manual.470e243.svg", "video": "video.7590689.svg", "view": "view.5b4d7f6.svg", "view-off": "view-off.a4ede54.svg", "volume-off": "volume-off.bcd49e7.svg", "volume-up": "volume-up.2084f60.svg", "warning": "warning.59927e6.svg", "warning-filled": "warning-filled.1f6fe21.svg", "weather": "weather.9c96bd7.svg", "weight": "weight.b57a60d.svg", "wifi": "wifi.e2a8d9c.svg", "work": "work.9dd71a4.svg", "wrench": "wrench.09a2a67.svg", "wrenches": "wrenches.d2ed45d.svg", "zoom-in": "zoom-in.ff299b8.svg", "zoom-out": "zoom-out.ebb6246.svg" };
5961
+ var ICONS_MANIFEST = { "360": "360.0600731.svg", "4-wheel-drive": "4-wheel-drive.9c218bf.svg", "accessibility": "accessibility.087d747.svg", "active-cabin-ventilation": "active-cabin-ventilation.b081399.svg", "add": "add.fac861a.svg", "adjust": "adjust.ca46bd4.svg", "aggregation": "aggregation.96f06e5.svg", "ai-3d-object": "ai-3d-object.7a85dd7.svg", "ai-code": "ai-code.9afafb7.svg", "ai-edit": "ai-edit.75a4765.svg", "ai-image": "ai-image.c786d48.svg", "ai-scale": "ai-scale.846fde0.svg", "ai-sound": "ai-sound.727ea7a.svg", "ai-spark": "ai-spark.a134e18.svg", "ai-spark-filled": "ai-spark-filled.2d5d971.svg", "ai-text": "ai-text.fc84e09.svg", "ai-video": "ai-video.759a7f2.svg", "arrow-compact-down": "arrow-compact-down.9b37afe.svg", "arrow-compact-left": "arrow-compact-left.7169de6.svg", "arrow-compact-right": "arrow-compact-right.cc2d1d2.svg", "arrow-compact-up": "arrow-compact-up.36724bb.svg", "arrow-double-down": "arrow-double-down.61ae4d7.svg", "arrow-double-left": "arrow-double-left.1b576eb.svg", "arrow-double-right": "arrow-double-right.dcfabff.svg", "arrow-double-up": "arrow-double-up.fb73db5.svg", "arrow-down": "arrow-down.49c6983.svg", "arrow-down-left": "arrow-down-left.83597e3.svg", "arrow-down-right": "arrow-down-right.f6ec21e.svg", "arrow-first": "arrow-first.beb7d9f.svg", "arrow-head-down": "arrow-head-down.1e3cbb8.svg", "arrow-head-left": "arrow-head-left.cf1395d.svg", "arrow-head-right": "arrow-head-right.304b330.svg", "arrow-head-up": "arrow-head-up.6d3fd23.svg", "arrow-last": "arrow-last.cc24903.svg", "arrow-left": "arrow-left.e03c25b.svg", "arrow-right": "arrow-right.872716b.svg", "arrow-up": "arrow-up.9d294d1.svg", "arrow-up-left": "arrow-up-left.9e7da2c.svg", "arrow-up-right": "arrow-up-right.776feb2.svg", "arrows": "arrows.de040f9.svg", "attachment": "attachment.8f3dd0a.svg", "augmented-reality": "augmented-reality.8b6ce95.svg", "battery-empty": "battery-empty.38b4b15.svg", "battery-empty-co2": "battery-empty-co2.c4cabef.svg", "battery-empty-fuel": "battery-empty-fuel.e833e13.svg", "battery-full": "battery-full.03de75d.svg", "battery-half": "battery-half.11f1ef8.svg", "battery-one-quarter": "battery-one-quarter.91235a0.svg", "battery-three-quarters": "battery-three-quarters.dcf768f.svg", "bell": "bell.1eab3a2.svg", "bookmark": "bookmark.9d6982f.svg", "bookmark-filled": "bookmark-filled.327ac78.svg", "brain": "brain.838387a.svg", "broadcast": "broadcast.0ad5a15.svg", "cabriolet": "cabriolet.ab33aab.svg", "calculator": "calculator.a323a2d.svg", "calendar": "calendar.70a6a12.svg", "camera": "camera.e5e95b9.svg", "car": "car.35229c9.svg", "car-battery": "car-battery.895510f.svg", "card": "card.f284448.svg", "charging-active": "charging-active.c3aa214.svg", "charging-network": "charging-network.a40072f.svg", "charging-state": "charging-state.f56d8df.svg", "charging-station": "charging-station.5ff1ed4.svg", "chart": "chart.c8c32d2.svg", "chat": "chat.7945544.svg", "check": "check.8ba06be.svg", "city": "city.5ae672c.svg", "climate": "climate.a9d5818.svg", "climate-control": "climate-control.ce31939.svg", "clock": "clock.c88a1ef.svg", "close": "close.eec3c5d.svg", "closed-caption": "closed-caption.ceaf6cb.svg", "cloud": "cloud.2c3959e.svg", "co2-class": "co2-class.fc49211.svg", "co2-emission": "co2-emission.c42e7f8.svg", "color-picker": "color-picker.598f402.svg", "compare": "compare.6578829.svg", "compass": "compass.f90f319.svg", "configurate": "configurate.5311c8d.svg", "copy": "copy.0fcd086.svg", "country-road": "country-road.d2bbc5a.svg", "coupe": "coupe.7549e3e.svg", "cubic-capacity": "cubic-capacity.7b0b8c8.svg", "cut": "cut.851e5c2.svg", "delete": "delete.5a8c8ca.svg", "disable": "disable.5918c32.svg", "dislike": "dislike.51614b0.svg", "dislike-filled": "dislike-filled.e1a8c4d.svg", "document": "document.df36b6c.svg", "door": "door.61c32d6.svg", "download": "download.c06f455.svg", "drag": "drag.9e893fd.svg", "duration": "duration.94e5252.svg", "ear": "ear.27a802f.svg", "edit": "edit.330f321.svg", "email": "email.f2530de.svg", "error": "error.b8ae9ad.svg", "error-filled": "error-filled.a4d06ed.svg", "exclamation": "exclamation.46cd17b.svg", "exclamation-filled": "exclamation-filled.9d09ed1.svg", "external": "external.fb677b9.svg", "fast-backward": "fast-backward.aaca8b9.svg", "fast-forward": "fast-forward.4bc43ff.svg", "file-csv": "file-csv.4140e24.svg", "file-excel": "file-excel.56d577d.svg", "filter": "filter.610f808.svg", "fingerprint": "fingerprint.6a85170.svg", "flag": "flag.7af5baf.svg", "flash": "flash.88a2ada.svg", "fuel-station": "fuel-station.f7bdf51.svg", "garage": "garage.5014e8d.svg", "genuine-parts": "genuine-parts.6bfddde.svg", "geo-localization": "geo-localization.516d603.svg", "gift": "gift.7beb1eb.svg", "globe": "globe.56cc8fc.svg", "grid": "grid.06bc31a.svg", "grip": "grip.5ec4289.svg", "group": "group.051436a.svg", "hand": "hand.4e85714.svg", "heart": "heart.9a5962e.svg", "heart-filled": "heart-filled.dd7decf.svg", "highway": "highway.bf0eb24.svg", "highway-filled": "highway-filled.38e93fb.svg", "history": "history.f09645c.svg", "home": "home.7b1d1da.svg", "horn": "horn.bf47b1a.svg", "image": "image.b2614f0.svg", "increase": "increase.700012f.svg", "information": "information.da41162.svg", "information-filled": "information-filled.8f08911.svg", "key": "key.ee5d89b.svg", "laptop": "laptop.c422480.svg", "leaf": "leaf.92ca6a6.svg", "leather": "leather.1d2769a.svg", "light": "light.f0eb8e4.svg", "like": "like.a7468cd.svg", "like-filled": "like-filled.a0126c1.svg", "limousine": "limousine.87799d5.svg", "linked": "linked.8f30cb5.svg", "list": "list.411dd00.svg", "locate": "locate.6554f9e.svg", "lock": "lock.243281a.svg", "lock-open": "lock-open.95803d2.svg", "logo-apple-carplay": "logo-apple-carplay.c872af9.svg", "logo-apple-music": "logo-apple-music.1395f37.svg", "logo-apple-podcast": "logo-apple-podcast.09be038.svg", "logo-baidu": "logo-baidu.9e89c7d.svg", "logo-delicious": "logo-delicious.e83f574.svg", "logo-digg": "logo-digg.f096670.svg", "logo-facebook": "logo-facebook.74abe88.svg", "logo-foursquare": "logo-foursquare.d638fd8.svg", "logo-gmail": "logo-gmail.5f96ee2.svg", "logo-google": "logo-google.1dee423.svg", "logo-hatena": "logo-hatena.da509f0.svg", "logo-instagram": "logo-instagram.b916daa.svg", "logo-kaixin": "logo-kaixin.b1211a2.svg", "logo-kakaotalk": "logo-kakaotalk.38f5396.svg", "logo-kununu": "logo-kununu.79344ff.svg", "logo-linkedin": "logo-linkedin.b72559f.svg", "logo-naver": "logo-naver.75588fe.svg", "logo-pinterest": "logo-pinterest.e8f6963.svg", "logo-qq": "logo-qq.6d9b6d9.svg", "logo-qq-share": "logo-qq-share.ee864d9.svg", "logo-reddit": "logo-reddit.da13e44.svg", "logo-skyrock": "logo-skyrock.eb2f28d.svg", "logo-snapchat": "logo-snapchat.ef706a2.svg", "logo-sohu": "logo-sohu.a30c66b.svg", "logo-spotify": "logo-spotify.2ec4b2d.svg", "logo-tecent": "logo-tecent.d119e85.svg", "logo-telegram": "logo-telegram.d151481.svg", "logo-tiktok": "logo-tiktok.2f3a465.svg", "logo-tumblr": "logo-tumblr.c689f44.svg", "logo-twitter": "logo-twitter.5f2490a.svg", "logo-viber": "logo-viber.198bd43.svg", "logo-vk": "logo-vk.37b94e0.svg", "logo-wechat": "logo-wechat.83b2b98.svg", "logo-weibo": "logo-weibo.c8dacee.svg", "logo-whatsapp": "logo-whatsapp.add9a6d.svg", "logo-x": "logo-x.5f2490a.svg", "logo-xing": "logo-xing.3a8df0f.svg", "logo-yahoo": "logo-yahoo.8cbd0ba.svg", "logo-youku": "logo-youku.fe988d0.svg", "logo-youtube": "logo-youtube.da3798f.svg", "logout": "logout.7ec7451.svg", "map": "map.c16f618.svg", "menu-dots-horizontal": "menu-dots-horizontal.788f7fa.svg", "menu-dots-vertical": "menu-dots-vertical.4970a65.svg", "menu-lines": "menu-lines.e332216.svg", "microphone": "microphone.8ecdce6.svg", "minus": "minus.f6d964c.svg", "mobile": "mobile.7f35446.svg", "moon": "moon.5b73246.svg", "new-chat": "new-chat.6ba4fae.svg", "news": "news.5b604b0.svg", "north-arrow": "north-arrow.2da1dbe.svg", "oil-can": "oil-can.cb58fc7.svg", "online-search": "online-search.90e9ab1.svg", "parking-brake": "parking-brake.45704bd.svg", "parking-light": "parking-light.c49a231.svg", "paste": "paste.dd60261.svg", "pause": "pause.65f20ae.svg", "phone": "phone.f4f774b.svg", "pin": "pin.3417cec.svg", "pin-filled": "pin-filled.7b8e9ba.svg", "pivot": "pivot.3ae18b8.svg", "play": "play.03ae554.svg", "play-filled": "play-filled.0fb6689.svg", "plug": "plug.c159935.svg", "plus": "plus.319993e.svg", "preheating": "preheating.e2a796f.svg", "price-tag": "price-tag.f0d3917.svg", "printer": "printer.f59b0ee.svg", "purchase": "purchase.9cd6d65.svg", "push-pin": "push-pin.89e4ead.svg", "push-pin-off": "push-pin-off.ba99213.svg", "qr": "qr.87a49a3.svg", "qr-off": "qr-off.64e21b9.svg", "question": "question.3402a63.svg", "question-filled": "question-filled.cf25dd5.svg", "racing-flag": "racing-flag.b7ddcc8.svg", "radar": "radar.de5a6c1.svg", "radio": "radio.2b48e53.svg", "refresh": "refresh.41fd868.svg", "replay": "replay.55a99f2.svg", "reset": "reset.e53d52f.svg", "return": "return.46d30de.svg", "road": "road.bd3d4bc.svg", "roof-closed": "roof-closed.018d021.svg", "roof-open": "roof-open.51c8ee6.svg", "route": "route.f4fbbb4.svg", "rss": "rss.0e77baf.svg", "save": "save.6171ff5.svg", "screen": "screen.420be15.svg", "search": "search.3f0f1ce.svg", "seat": "seat.a3ebc40.svg", "send": "send.b32099c.svg", "service-technician": "service-technician.8749028.svg", "share": "share.a0b30da.svg", "shopping-bag": "shopping-bag.3f91a9b.svg", "shopping-bag-filled": "shopping-bag-filled.abf6c98.svg", "shopping-cart": "shopping-cart.370e224.svg", "shopping-cart-filled": "shopping-cart-filled.e0c3a65.svg", "sidebar": "sidebar.8e43896.svg", "sidelights": "sidelights.65c9dd9.svg", "skip-backward": "skip-backward.05fe8cd.svg", "skip-forward": "skip-forward.45a7bc0.svg", "snowflake": "snowflake.83907b3.svg", "sort": "sort.92b50bd.svg", "stack": "stack.804af93.svg", "star": "star.4c5bb15.svg", "star-filled": "star-filled.84ef2f6.svg", "steering-wheel": "steering-wheel.4dea19e.svg", "stop": "stop.173b6ac.svg", "stopwatch": "stopwatch.0e048a4.svg", "subtract": "subtract.57eed1d.svg", "success": "success.b16d4c1.svg", "success-filled": "success-filled.1832d98.svg", "sun": "sun.4301cbd.svg", "suv": "suv.33ac4aa.svg", "switch": "switch.66f74c4.svg", "tablet": "tablet.07341ac.svg", "tachometer": "tachometer.3a2fc3c.svg", "theme": "theme.08f6508.svg", "tire": "tire.e5c9372.svg", "trigger-finger": "trigger-finger.65aa6e2.svg", "truck": "truck.2c26c04.svg", "turismo": "turismo.a066b9f.svg", "unlinked": "unlinked.e9afe39.svg", "upload": "upload.d1f5a2a.svg", "user": "user.c18dabe.svg", "user-filled": "user-filled.2ea646d.svg", "user-group": "user-group.79cdf86.svg", "user-manual": "user-manual.470e243.svg", "video": "video.7590689.svg", "view": "view.5b4d7f6.svg", "view-off": "view-off.a4ede54.svg", "volume-off": "volume-off.bcd49e7.svg", "volume-up": "volume-up.2084f60.svg", "warning": "warning.59927e6.svg", "warning-filled": "warning-filled.1f6fe21.svg", "weather": "weather.9c96bd7.svg", "weight": "weight.b57a60d.svg", "wifi": "wifi.e2a8d9c.svg", "work": "work.9dd71a4.svg", "wrench": "wrench.09a2a67.svg", "wrenches": "wrenches.d2ed45d.svg", "zoom-in": "zoom-in.ff299b8.svg", "zoom-out": "zoom-out.ebb6246.svg" };
5953
5962
 
5954
5963
  // index.ts
5955
5964
  var MODEL_SIGNATURES_MANIFEST = { "718": { "src": "718.493a9e3.svg", "width": 79, "height": 26 }, "911": { "src": "911.b68f913.svg", "width": 94, "height": 25 }, "boxster": { "src": "boxster.c321738.svg", "width": 239, "height": 26 }, "cayenne": { "src": "cayenne.2556201.svg", "width": 245, "height": 35 }, "cayman": { "src": "cayman.cc89196.svg", "width": 229, "height": 35 }, "gt3-rs": { "src": "gt3-rs.03ac3ee.svg", "width": 238, "height": 25 }, "gt3": { "src": "gt3.bd3186c.svg", "width": 151, "height": 25 }, "gts": { "src": "gts.99bd35e.svg", "width": 121, "height": 25 }, "macan": { "src": "macan.a1844f4.svg", "width": 196, "height": 26 }, "panamera": { "src": "panamera.6dae809.svg", "width": 260, "height": 25 }, "taycan": { "src": "taycan.df444c6.svg", "width": 167, "height": 36 }, "turbo-s": { "src": "turbo-s.73f1e10.svg", "width": 199, "height": 25 }, "turbo": { "src": "turbo.6a4084a.svg", "width": 143, "height": 25 } };
@@ -6007,54 +6016,13 @@ const getComponentCss$11 = () => {
6007
6016
  });
6008
6017
  };
6009
6018
 
6010
- const colorMap$3 = {
6011
- primary: colorPrimary,
6012
- 'contrast-high': colorContrastHigh,
6013
- 'contrast-medium': colorContrastMedium,
6014
- 'contrast-low': colorContrastLow,
6015
- success: colorSuccess,
6016
- warning: colorWarning,
6017
- error: colorError,
6018
- info: colorInfo,
6019
- inherit: 'currentColor',
6020
- };
6021
- const getThemedTypographyColor = (textColor) => {
6022
- return colorMap$3[textColor];
6023
- };
6024
-
6025
- const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
6026
- color, // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
6027
- ellipsis) => {
6028
- return {
6029
- all: 'unset',
6030
- display: 'block',
6031
- ...baseTextStyle,
6032
- color: getThemedTypographyColor(color),
6033
- textAlign: align,
6034
- letterSpacing: 'normal',
6035
- listStyleType: 'none',
6036
- whiteSpace: 'inherit',
6037
- ...(ellipsis && {
6038
- maxWidth: '100%',
6039
- overflow: 'hidden',
6040
- textOverflow: 'ellipsis',
6041
- whiteSpace: 'nowrap',
6042
- }),
6043
- ...responsiveStyle,
6044
- };
6045
- };
6046
- const getTypographySlottedJssStyle = () => {
6047
- return {
6048
- all: 'unset',
6049
- };
6050
- };
6051
-
6052
6019
  const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
6053
6020
 
6054
- const sizeMap$5 = {
6055
- small: fontSizeDisplaySmall,
6056
- medium: fontSizeDisplayMedium,
6057
- large: fontSizeDisplayLarge,
6021
+ const sizeMap = {
6022
+ small: typescale3Xl,
6023
+ medium: typescale4Xl,
6024
+ large: typescale5Xl,
6025
+ inherit: 'inherit',
6058
6026
  };
6059
6027
  const getComponentCss$10 = (size, align, color, ellipsis) => {
6060
6028
  return getCss({
@@ -6065,15 +6033,30 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
6065
6033
  ...hostHiddenStyles,
6066
6034
  }),
6067
6035
  },
6068
- [`::slotted(:is(${DISPLAY_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
6036
+ [`::slotted(:is(${DISPLAY_TAGS.join()}))`]: addImportantToEachRule({
6037
+ all: 'unset',
6038
+ }),
6039
+ },
6040
+ root: {
6041
+ all: 'unset',
6042
+ display: 'block',
6043
+ font: `${fontWeightNormal} ${typescale5Xl}/${leadingNormal} ${fontPorscheNext}`,
6044
+ ...buildResponsiveStyles(size, (v) => ({
6045
+ fontSize: sizeMap[v],
6046
+ })),
6047
+ color: colorMap$3[color],
6048
+ textAlign: align,
6049
+ ...(ellipsis && {
6050
+ maxWidth: '100%',
6051
+ overflow: 'hidden',
6052
+ textOverflow: 'ellipsis',
6053
+ whiteSpace: 'nowrap',
6054
+ }),
6069
6055
  },
6070
- root: getTypographyRootJssStyle(displayLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
6071
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$5[sizeValue],
6072
- })), align, color, ellipsis),
6073
6056
  });
6074
6057
  };
6075
6058
 
6076
- const colorMap$2 = {
6059
+ const colorMap$1 = {
6077
6060
  'contrast-lower': colorContrastLower,
6078
6061
  'contrast-low': colorContrastLow,
6079
6062
  'contrast-medium': colorContrastMedium,
@@ -6091,7 +6074,10 @@ const getComponentCss$$ = (color, orientation) => {
6091
6074
  hr: {
6092
6075
  all: 'unset',
6093
6076
  display: 'block',
6094
- background: colorMap$2[color],
6077
+ background: colorMap$1[color],
6078
+ ...forcedColorsMediaQuery({
6079
+ background: 'CanvasText',
6080
+ }),
6095
6081
  ...buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' }),
6096
6082
  },
6097
6083
  },
@@ -6666,40 +6652,36 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
6666
6652
  });
6667
6653
  };
6668
6654
 
6669
- const sizeMap$4 = {
6670
- 'xx-small': fontSizeTextXXSmall,
6671
- 'x-small': fontSizeTextXSmall,
6672
- small: fontSizeTextSmall,
6673
- medium: fontSizeTextMedium,
6674
- large: fontSizeTextLarge,
6675
- 'x-large': fontSizeTextXLarge,
6676
- };
6655
+ /**
6656
+ * @css-variable {"name": "--p-flag-size", "description": "Defines the width and height of the flag. Overrides the `size` property when set.", "defaultValue": ""}
6657
+ */
6658
+ const cssVarSize$2 = '--p-flag-size';
6677
6659
  const getComponentCss$W = (size) => {
6660
+ const dimension = `var(${cssVarSize$2},${leadingNormal})`;
6678
6661
  return getCss({
6679
6662
  '@global': {
6680
6663
  ':host': {
6681
- display: 'inline-block',
6664
+ display: 'inline-flex',
6682
6665
  verticalAlign: 'top',
6683
6666
  ...addImportantToEachRule({
6684
6667
  ...hostHiddenStyles,
6685
6668
  }),
6686
6669
  },
6687
6670
  img: {
6688
- all: 'unset',
6689
6671
  display: 'block', // without display, img tag gets some extra spacing
6672
+ margin: 0,
6690
6673
  padding: '1px', // add safe-zone to be visually in sync with <p-icon />
6674
+ border: 0,
6675
+ outline: 0,
6676
+ overflow: 'hidden', // clip the image
6691
6677
  boxSizing: 'border-box',
6692
6678
  pointerEvents: 'none', // disable dragging/ghosting of images
6693
- ...(size === 'inherit'
6694
- ? {
6695
- width: size,
6696
- height: size,
6697
- }
6698
- : {
6699
- width: fontLineHeight,
6700
- height: fontLineHeight,
6701
- font: `${sizeMap$4[size]} ${fontFamily}`,
6702
- }),
6679
+ width: dimension,
6680
+ height: dimension,
6681
+ fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
6682
+ ...buildResponsiveStyles(size, (s) => ({
6683
+ fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
6684
+ })),
6703
6685
  },
6704
6686
  },
6705
6687
  });
@@ -7006,14 +6988,9 @@ const getComponentCss$V = (isOpen, background, backdrop, position, hasHeader, ha
7006
6988
  });
7007
6989
  };
7008
6990
 
7009
- const sizeMap$3 = {
7010
- small: fontSizeHeadingSmall,
7011
- medium: fontSizeHeadingMedium,
7012
- large: fontSizeHeadingLarge,
7013
- 'x-large': fontSizeHeadingXLarge,
7014
- 'xx-large': fontSizeHeadingXXLarge,
7015
- };
7016
- const getComponentCss$U = (size, align, color, ellipsis) => {
6991
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
6992
+
6993
+ const getComponentCss$U = (size, weight, align, color, hyphens, ellipsis) => {
7017
6994
  return getCss({
7018
6995
  '@global': {
7019
6996
  ':host': {
@@ -7022,12 +6999,30 @@ const getComponentCss$U = (size, align, color, ellipsis) => {
7022
6999
  ...hostHiddenStyles,
7023
7000
  }),
7024
7001
  },
7025
- [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
7002
+ [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule({
7003
+ all: 'unset',
7004
+ }),
7005
+ },
7006
+ root: {
7007
+ all: 'unset',
7008
+ display: 'block',
7009
+ font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal} ${fontPorscheNext}`,
7010
+ ...buildResponsiveStyles(size, (v) => ({
7011
+ fontSize: sizeMap$1[v],
7012
+ })),
7013
+ color: colorMap$3[color],
7014
+ textAlign: align,
7015
+ hyphens,
7016
+ ...((hyphens === 'auto' || hyphens === 'manual') && {
7017
+ overflowWrap: 'break-word',
7018
+ }),
7019
+ ...(ellipsis && {
7020
+ maxWidth: '100%',
7021
+ overflow: 'hidden',
7022
+ textOverflow: 'ellipsis',
7023
+ whiteSpace: 'nowrap',
7024
+ }),
7026
7025
  },
7027
- root: getTypographyRootJssStyle(headingXXLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
7028
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$3[sizeValue],
7029
- fontWeight: sizeValue === 'small' ? fontWeightSemiBold : fontWeightRegular,
7030
- })), align, color, ellipsis),
7031
7026
  });
7032
7027
  };
7033
7028
 
@@ -7047,25 +7042,14 @@ const buildIconUrl = (iconNameOrSource = DEFAULT_ICON_NAME) => {
7047
7042
  return buildIconUrl(DEFAULT_ICON_NAME);
7048
7043
  };
7049
7044
 
7050
- const colorMap$1 = {
7051
- primary: colorPrimary,
7052
- 'contrast-high': colorContrastHigh,
7053
- 'contrast-medium': colorContrastMedium,
7054
- 'contrast-low': colorContrastLow,
7055
- success: colorSuccess,
7056
- warning: colorWarning,
7057
- error: colorError,
7058
- info: colorInfo,
7059
- inherit: 'inherit',
7060
- };
7061
- const sizeMap$2 = {
7062
- 'xx-small': fontSizeTextXXSmall,
7063
- 'x-small': fontSizeTextXSmall,
7064
- small: fontSizeTextSmall,
7065
- medium: fontSizeTextMedium,
7066
- large: fontSizeTextLarge,
7067
- 'x-large': fontSizeTextXLarge,
7068
- };
7045
+ /**
7046
+ * @css-variable {"name": "--p-icon-size", "description": "Defines the width and height of the icon. Overrides the `size` property when set.", "defaultValue": ""}
7047
+ */
7048
+ const cssVarSize$1 = '--p-icon-size';
7049
+ /**
7050
+ * @css-variable {"name": "--p-icon-color", "description": "Defines the icon color. Overrides the `color` property when set.", "defaultValue": ""}
7051
+ */
7052
+ const cssVarColor$1 = '--p-icon-color';
7069
7053
  const isFlippableIcon = (name, source) => {
7070
7054
  return (!source &&
7071
7055
  (name === 'arrow-compact-left' ||
@@ -7089,41 +7073,44 @@ const isFlippableIcon = (name, source) => {
7089
7073
  name === 'send'));
7090
7074
  };
7091
7075
  const getComponentCss$T = (name, source, color, size) => {
7092
- const isSizeInherit = size === 'inherit';
7093
- const dimension = isSizeInherit ? 'inherit' : fontLineHeight;
7076
+ const dimension = `var(${cssVarSize$1},${leadingNormal})`;
7077
+ const mask = `url("${buildIconUrl(source || name)}") center/contain no-repeat`;
7094
7078
  return getCss({
7095
7079
  '@global': {
7096
7080
  ':host': {
7097
- display: 'inline-block',
7081
+ display: 'inline-flex',
7098
7082
  verticalAlign: 'top',
7099
- maxWidth: '100%',
7100
- maxHeight: '100%',
7101
- width: dimension,
7102
- height: dimension,
7103
- font: `${isSizeInherit ? sizeMap$2.small : sizeMap$2[size]} ${fontFamily}`,
7104
- color: colorMap$1[color],
7105
7083
  ...addImportantToEachRule({
7106
- WebkitMask: `url("${buildIconUrl(source || name)}") center/contain no-repeat`, // necessary for Sogou browser support :-)
7107
- mask: `url("${buildIconUrl(source || name)}") center/contain no-repeat`,
7108
- aspectRatio: '1/1',
7109
- background: 'currentcolor', // necessary for proper color inheritance
7110
- forcedColorAdjust: 'none',
7111
- ...(isFlippableIcon(name, source) && {
7112
- '&(:dir(rtl))': {
7113
- transform: 'scaleX(-1)',
7114
- },
7115
- }),
7116
7084
  ...hostHiddenStyles,
7117
7085
  }),
7118
7086
  },
7119
- // the <img /> is only needed for a11y compliance because of alt text and to handle the fetch priority
7087
+ // the <img /> is needed for a11y compliance because of alt text and to handle the fetch priority
7120
7088
  img: {
7121
- all: 'unset',
7122
- position: 'absolute', // prevents unintended bottom white-space
7123
- opacity: 0,
7124
- width: '1px',
7125
- height: '1px',
7089
+ display: 'block', // without display, img tag gets some extra spacing
7090
+ margin: 0,
7091
+ padding: 0,
7092
+ border: 0,
7093
+ outline: 0,
7094
+ overflow: 'hidden', // clip the image
7095
+ objectPosition: '-9999px -9999px', // hide the actual image content, the mask + background still renders the icon
7126
7096
  pointerEvents: 'none', // disable dragging/ghosting of images
7097
+ width: dimension,
7098
+ height: dimension,
7099
+ fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
7100
+ ...buildResponsiveStyles(size, (s) => ({
7101
+ fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
7102
+ })),
7103
+ WebkitMask: mask, // necessary for Sogou browser support :-)
7104
+ mask,
7105
+ background: `var(${cssVarColor$1},${colorMap$3[color]})`,
7106
+ ...forcedColorsMediaQuery({
7107
+ background: 'CanvasText',
7108
+ }),
7109
+ ...(isFlippableIcon(name, source) && {
7110
+ '&:dir(rtl)': {
7111
+ transform: 'scaleX(-1)',
7112
+ },
7113
+ }),
7127
7114
  },
7128
7115
  },
7129
7116
  });
@@ -7176,6 +7163,8 @@ const getNotificationContentJssStyle = () => ({
7176
7163
  },
7177
7164
  });
7178
7165
 
7166
+ const INLINE_NOTIFICATION_HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7167
+
7179
7168
  const mediaQueryMaxS$1 = getMediaQueryMax('s');
7180
7169
  const getTextJssStyle = {
7181
7170
  margin: 0,
@@ -7185,10 +7174,6 @@ const getHeadingJssStyle = {
7185
7174
  ...headingSmallStyle,
7186
7175
  ...getTextJssStyle,
7187
7176
  };
7188
- // CSS Variable defined in fontHyphenationStyle
7189
- /**
7190
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7191
- */
7192
7177
  const getComponentCss$S = (state, hasAction, hasClose) => {
7193
7178
  return getCss({
7194
7179
  '@global': {
@@ -7200,7 +7185,9 @@ const getComponentCss$S = (state, hasAction, hasClose) => {
7200
7185
  }),
7201
7186
  },
7202
7187
  ...preventFoucOfNestedElementsStyles,
7203
- [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
7188
+ [`::slotted(:is(${INLINE_NOTIFICATION_HEADING_TAGS.join()}))`]: addImportantToEachRule({
7189
+ all: 'unset',
7190
+ }),
7204
7191
  'slot[name="heading"]': getHeadingJssStyle,
7205
7192
  },
7206
7193
  heading: getHeadingJssStyle,
@@ -7229,10 +7216,6 @@ const getComponentCss$S = (state, hasAction, hasClose) => {
7229
7216
  /**
7230
7217
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7231
7218
  */
7232
- // CSS Variable defined in fontHyphenationStyle
7233
- /**
7234
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7235
- */
7236
7219
  const getComponentCss$R = (disabled, loading, hideLabel, state, compact, readOnly) => {
7237
7220
  return getCss({
7238
7221
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7254,10 +7237,6 @@ const getComponentCss$R = (disabled, loading, hideLabel, state, compact, readOnl
7254
7237
  /**
7255
7238
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7256
7239
  */
7257
- // CSS Variable defined in fontHyphenationStyle
7258
- /**
7259
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7260
- */
7261
7240
  const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnly) => {
7262
7241
  return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, null,
7263
7242
  // Overwrites direction to ltr for rtl languages to prevent issues with the email input, e.g. cursor jumping to the
@@ -7277,10 +7256,6 @@ const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnl
7277
7256
  /**
7278
7257
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7279
7258
  */
7280
- // CSS Variable defined in fontHyphenationStyle
7281
- /**
7282
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7283
- */
7284
7259
  const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnly) => {
7285
7260
  return getCss({
7286
7261
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7304,10 +7279,6 @@ const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnl
7304
7279
  /**
7305
7280
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7306
7281
  */
7307
- // CSS Variable defined in fontHyphenationStyle
7308
- /**
7309
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7310
- */
7311
7282
  const getComponentCss$O = (disabled, loading, hideLabel, state, compact, readOnly, controls) => {
7312
7283
  return getCss({
7313
7284
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7332,10 +7303,6 @@ const getComponentCss$O = (disabled, loading, hideLabel, state, compact, readOnl
7332
7303
  /**
7333
7304
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7334
7305
  */
7335
- // CSS Variable defined in fontHyphenationStyle
7336
- /**
7337
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7338
- */
7339
7306
  const getComponentCss$N = (disabled, loading, hideLabel, state, toggle, compact, readOnly) => {
7340
7307
  return getCss({
7341
7308
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly),
@@ -7355,10 +7322,6 @@ const getComponentCss$N = (disabled, loading, hideLabel, state, toggle, compact,
7355
7322
  /**
7356
7323
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7357
7324
  */
7358
- // CSS Variable defined in fontHyphenationStyle
7359
- /**
7360
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7361
- */
7362
7325
  const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnly, clear) => {
7363
7326
  return getCss({
7364
7327
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7382,10 +7345,6 @@ const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnl
7382
7345
  /**
7383
7346
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7384
7347
  */
7385
- // CSS Variable defined in fontHyphenationStyle
7386
- /**
7387
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7388
- */
7389
7348
  const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnly) => {
7390
7349
  return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, null,
7391
7350
  // Overwrites direction to ltr for rtl languages to prevent issues with the tel input, e.g. cursor jumping to the
@@ -7431,10 +7390,6 @@ const getUnitCounterJssStyle = () => {
7431
7390
  /**
7432
7391
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7433
7392
  */
7434
- // CSS Variable defined in fontHyphenationStyle
7435
- /**
7436
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7437
- */
7438
7393
  const getComponentCss$K = (disabled, loading, hideLabel, state, compact, readOnly, counter) => {
7439
7394
  return getCss({
7440
7395
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly),
@@ -7452,10 +7407,6 @@ const getComponentCss$K = (disabled, loading, hideLabel, state, compact, readOnl
7452
7407
  /**
7453
7408
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7454
7409
  */
7455
- // CSS Variable defined in fontHyphenationStyle
7456
- /**
7457
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7458
- */
7459
7410
  const getComponentCss$J = (disabled, loading, hideLabel, state, compact, readOnly) => {
7460
7411
  return getCss({
7461
7412
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7477,10 +7428,6 @@ const getComponentCss$J = (disabled, loading, hideLabel, state, compact, readOnl
7477
7428
  /**
7478
7429
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7479
7430
  */
7480
- // CSS Variable defined in fontHyphenationStyle
7481
- /**
7482
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7483
- */
7484
7431
  const getComponentCss$I = (disabled, loading, hideLabel, state, compact, readOnly) => {
7485
7432
  return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, null,
7486
7433
  // Overwrites direction to ltr for rtl languages to prevent issues with the url input, e.g. cursor jumping to the
@@ -7500,10 +7447,6 @@ const getComponentCss$I = (disabled, loading, hideLabel, state, compact, readOnl
7500
7447
  /**
7501
7448
  * @css-variable {"name": "--ref-p-input-slotted-margin", "description": "When slotting a `p-button-pure` or `p-link-pure` this variable needs to be set as `margin` in oder to adjust the spacings correctly."}
7502
7449
  */
7503
- // CSS Variable defined in fontHyphenationStyle
7504
- /**
7505
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7506
- */
7507
7450
  const getComponentCss$H = (disabled, loading, hideLabel, state, compact, readOnly) => {
7508
7451
  return getCss({
7509
7452
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7520,12 +7463,8 @@ const getComponentCss$H = (disabled, loading, hideLabel, state, compact, readOnl
7520
7463
  });
7521
7464
  };
7522
7465
 
7523
- // CSS Variable defined in fontHyphenationStyle
7524
- /**
7525
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7526
- */
7527
- const getComponentCss$G = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
7528
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor), hasSlottedAnchor && {
7466
+ const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
7467
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor), hasSlottedAnchor && {
7529
7468
  '@global': addImportantToEachRule({
7530
7469
  '::slotted': {
7531
7470
  '&(a)': {
@@ -7565,10 +7504,6 @@ const getMultilineEllipsis = (lineClamp) => {
7565
7504
  overflow: 'hidden',
7566
7505
  };
7567
7506
  };
7568
- // CSS Variable defined in fontHyphenationStyle
7569
- /**
7570
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7571
- */
7572
7507
  const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio) => {
7573
7508
  return getCss({
7574
7509
  '@global': {
@@ -7668,7 +7603,6 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7668
7603
  heading: {
7669
7604
  margin: '0 0 2px', // ua-style reset
7670
7605
  ...headingSmallStyle,
7671
- ...fontHyphenationStyle,
7672
7606
  ...getMultilineEllipsis(3),
7673
7607
  },
7674
7608
  price: {
@@ -7695,10 +7629,6 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7695
7629
  });
7696
7630
  };
7697
7631
 
7698
- // CSS Variable defined in fontHyphenationStyle
7699
- /**
7700
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7701
- */
7702
7632
  const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
7703
7633
  const isTopAligned = align === 'top';
7704
7634
  return getCss({
@@ -7753,10 +7683,10 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7753
7683
  ...textMediumStyle,
7754
7684
  color: colorPrimary,
7755
7685
  hyphens: 'inherit',
7756
- ...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
7757
- fontSize: getFontSizeText(sizeValue),
7758
- })), buildResponsiveStyles(weight, (weightValue) => ({
7759
- fontWeight: getFontWeight(weightValue),
7686
+ ...mergeDeep(buildResponsiveStyles(size, (v) => ({
7687
+ fontSize: sizeMap$1[v],
7688
+ })), buildResponsiveStyles(weight, (v) => ({
7689
+ fontWeight: weightMap[v],
7760
7690
  }))),
7761
7691
  },
7762
7692
  },
@@ -7841,10 +7771,6 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7841
7771
  };
7842
7772
 
7843
7773
  const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
7844
- // CSS Variable defined in fontHyphenationStyle
7845
- /**
7846
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7847
- */
7848
7774
  const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, isCompact) => {
7849
7775
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, isCompact, cssVariableInternalLinkScaling), {
7850
7776
  label: {
@@ -8012,10 +7938,6 @@ const getComponentCss$B = (model, safeZone, size, color) => {
8012
7938
  };
8013
7939
 
8014
7940
  const cssVarInternalMultiSelectOptionScaling = '--p-internal-multi-select-option-scaling';
8015
- // CSS Variable defined in fontHyphenationStyle
8016
- /**
8017
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8018
- */
8019
7941
  const getComponentCss$A = (isDisabled, selected) => {
8020
7942
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
8021
7943
  const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${fontLineHeight}) / 2))`;
@@ -8075,10 +7997,6 @@ const getComponentCss$z = (isDisabled) => {
8075
7997
  };
8076
7998
 
8077
7999
  const cssVarInternalMultiSelectScaling = '--p-internal-multi-select-scaling';
8078
- // CSS Variable defined in fontHyphenationStyle
8079
- /**
8080
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8081
- */
8082
8000
  const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8083
8001
  return getCss({
8084
8002
  '@global': {
@@ -8123,9 +8041,6 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8123
8041
 
8124
8042
  const mediaQueryMinS = getMediaQueryMin('s');
8125
8043
  const mediaQueryMaxS = getMediaQueryMax('s');
8126
- // button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
8127
- // and text scale 200% works (almost) on mobile viewports too
8128
- const buttonSize = `clamp(36px, calc(${fontLineHeight} + 10vw - 20px), 40px)`;
8129
8044
  const disabledCursorStyle = {
8130
8045
  cursor: 'default',
8131
8046
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
@@ -8179,10 +8094,6 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8179
8094
  },
8180
8095
  }),
8181
8096
  [mediaQueryMinS]: {
8182
- // prev
8183
- '&:first-child': { marginInlineEnd: spacingStaticSmall },
8184
- // next
8185
- '&:last-child': { marginInlineStart: spacingStaticSmall },
8186
8097
  ...(pageTotal < 8
8187
8098
  ? { '&.ellip': hiddenStyle }
8188
8099
  : // max 7 items including ellipsis at the same time on tablet
@@ -8200,32 +8111,40 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8200
8111
  display: 'flex',
8201
8112
  justifyContent: 'center',
8202
8113
  alignItems: 'center',
8203
- transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transition between states
8114
+ transition: `${getTransition('background-color')}, ${getTransition('color')}`, // for smooth transition between states
8204
8115
  position: 'relative',
8205
- width: buttonSize,
8206
- height: buttonSize,
8116
+ padding: '0 6px',
8117
+ minWidth: '2.25rem',
8118
+ height: '2.25rem',
8207
8119
  boxSizing: 'border-box',
8208
8120
  ...textSmallStyle,
8209
8121
  whiteSpace: 'nowrap',
8210
8122
  cursor: 'pointer',
8123
+ backgroundColor: 'transparent',
8211
8124
  color: colorPrimary,
8212
- borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
8125
+ borderRadius: `var(${legacyRadiusSmall}, ${radiusFull})`,
8213
8126
  borderColor: 'transparent', // default value is needed for smooth transition
8214
8127
  outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style
8215
8128
  ...hoverMediaQuery({
8216
8129
  '&:not([aria-disabled]):not(.ellipsis):hover': {
8217
8130
  ...frostedGlassStyle,
8218
8131
  background: colorFrosted,
8132
+ ...forcedColorsMediaQuery({
8133
+ outline: '2px solid CanvasText',
8134
+ outlineOffset: '-2px',
8135
+ }),
8219
8136
  },
8220
8137
  }),
8221
8138
  '&[aria-current]': {
8222
8139
  ...disabledCursorStyle,
8223
- color: colorPrimary,
8224
- border: `${borderWidthBase} solid ${colorPrimary}`,
8140
+ backgroundColor: colorFrostedStrong,
8141
+ ...forcedColorsMediaQuery({
8142
+ border: '2px solid CanvasText',
8143
+ }),
8225
8144
  },
8226
8145
  '&[aria-disabled]': {
8227
- ...getDisabledBaseStyles(),
8228
8146
  ...disabledCursorStyle,
8147
+ ...getDisabledBaseStyles(),
8229
8148
  },
8230
8149
  // TODO :not(.ellipsis) is only needed for VRT states tests to work properly
8231
8150
  '&:not(.ellipsis):focus-visible': getFocusBaseStyles(),
@@ -8241,10 +8160,6 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8241
8160
  };
8242
8161
 
8243
8162
  const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
8244
- // CSS Variable defined in fontHyphenationStyle
8245
- /**
8246
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8247
- */
8248
8163
  const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCompact) => {
8249
8164
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8250
8165
  const gap = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
@@ -8312,8 +8227,6 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8312
8227
  top: '50%',
8313
8228
  left: '50%',
8314
8229
  transform: 'translate(-50%, -50%)',
8315
- width: inputDimension,
8316
- height: inputDimension,
8317
8230
  pointerEvents: 'none',
8318
8231
  },
8319
8232
  }),
@@ -8328,10 +8241,6 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8328
8241
 
8329
8242
  const POPOVER_SAFE_ZONE = 8;
8330
8243
 
8331
- // CSS Variable defined in fontHyphenationStyle
8332
- /**
8333
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8334
- */
8335
8244
  const getComponentCss$v = () => {
8336
8245
  const shadowColor = 'rgba(0,0,0,0.3)';
8337
8246
  return getCss({
@@ -8424,10 +8333,6 @@ const getComponentCss$v = () => {
8424
8333
 
8425
8334
  const cssVarInternalRadioGroupOptionScaling = '--p-internal-radio-group-option-scaling';
8426
8335
  const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>`);
8427
- // CSS Variable defined in fontHyphenationStyle
8428
- /**
8429
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8430
- */
8431
8336
  const getComponentCss$u = (disabled, loading, state) => {
8432
8337
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8433
8338
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
@@ -8465,24 +8370,29 @@ const getComponentCss$u = (disabled, loading, state) => {
8465
8370
  borderColor: 'GrayText',
8466
8371
  }),
8467
8372
  }),
8468
- '&:focus-visible': getFocusBaseStyles(),
8469
8373
  ...(!disabledOrLoading &&
8470
8374
  hoverMediaQuery({
8471
8375
  '&:hover': {
8472
8376
  borderColor: formStateBorderHoverColor,
8473
8377
  },
8474
8378
  })),
8379
+ '&:focus-visible': getFocusBaseStyles(),
8380
+ '&:checked': {
8381
+ background: state === 'none' ? colorPrimary : formStateBorderColor,
8382
+ '&::before': {
8383
+ WebkitMask: `${checkedIcon} center/contain no-repeat`, // necessary for Sogou browser support :-)
8384
+ mask: `${checkedIcon} center/contain no-repeat`,
8385
+ backgroundColor: colorCanvas,
8386
+ ...forcedColorsMediaQuery({
8387
+ background: 'CanvasText',
8388
+ }),
8389
+ },
8390
+ },
8475
8391
  '&::before': {
8476
8392
  // This pseudo-element is used to render the checked icon.
8477
8393
  content: '""',
8478
8394
  gridArea: '1/1',
8479
8395
  },
8480
- '&:checked::before': {
8481
- forcedColorAdjust: 'none',
8482
- WebkitMask: `${checkedIcon} center/contain no-repeat`, // necessary for Sogou browser support :-)
8483
- mask: `${checkedIcon} center/contain no-repeat`,
8484
- backgroundColor: state === 'none' ? colorPrimary : formStateBorderColor,
8485
- },
8486
8396
  '&::after': {
8487
8397
  // Ensures the touch target is at least 24px, even if the checkbox is smaller than the minimum touch target size.
8488
8398
  // This pseudo-element expands the clickable area without affecting the visual size of the checkbox itself.
@@ -8508,13 +8418,11 @@ const getComponentCss$u = (disabled, loading, state) => {
8508
8418
  },
8509
8419
  ...(loading && {
8510
8420
  spinner: {
8421
+ '--p-spinner-size': `calc(${radioDimension} - 2px)`, // compensates the 1px border of the radio button
8511
8422
  position: 'absolute',
8512
8423
  top: '50%',
8513
8424
  left: '50%',
8514
8425
  transform: 'translate(-50%,-50%)',
8515
- width: radioDimension,
8516
- height: radioDimension,
8517
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
8518
8426
  },
8519
8427
  }),
8520
8428
  // .label / .required
@@ -8541,12 +8449,7 @@ const groupRadioGroupDirectionJssStyles = {
8541
8449
  const getRadioGroupDirectionJssStyles = (direction) => {
8542
8450
  return groupRadioGroupDirectionJssStyles[direction];
8543
8451
  };
8544
- // CSS Variable defined in fontHyphenationStyle
8545
- /**
8546
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8547
- */
8548
8452
  const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, direction) => {
8549
- const radioDimension = `calc(var(${cssVarInternalRadioGroupScaling}) * 1.75rem)`;
8550
8453
  const columnGap = `calc(22.4px * (var(${cssVarInternalRadioGroupScaling}) - 0.64285714) + 8px)`;
8551
8454
  const rowGap = `calc(11.2px * (var(${cssVarInternalRadioGroupScaling}) - 0.64285714) + 4px)`;
8552
8455
  return getCss({
@@ -8586,8 +8489,6 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
8586
8489
  top: '50%',
8587
8490
  left: '50%',
8588
8491
  transform: 'translate(-50%, -50%)',
8589
- width: radioDimension,
8590
- height: radioDimension,
8591
8492
  pointerEvents: 'none',
8592
8493
  },
8593
8494
  }),
@@ -8693,6 +8594,9 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
8693
8594
  mask: iconMask,
8694
8595
  background: colorPrimary,
8695
8596
  transition: getTransition('transform'),
8597
+ ...forcedColorsMediaQuery({
8598
+ background: 'CanvasText',
8599
+ }),
8696
8600
  },
8697
8601
  };
8698
8602
  };
@@ -8764,7 +8668,6 @@ isSticky, hasScrollbar, isCompact) => {
8764
8668
  const cssVarInternalSegmentedControlScaling = '--p-internal-segmented-control-scaling';
8765
8669
  const getScalingVar = (compact) => `var(${cssVarInternalSegmentedControlScaling}, ${compact ? 0.5 : 1})`;
8766
8670
  const ICON_OFFSET = '4px';
8767
- const { font: BUTTON_FONT } = textSmallStyle;
8768
8671
  const ICON_SIZE = '1.5rem';
8769
8672
  const ICON_MARGIN = '.25rem';
8770
8673
  const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
@@ -8777,10 +8680,6 @@ const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
8777
8680
  const dimension = `calc(max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px)) + (${verticalPadding} + ${borderWidthBase}) * 2)`;
8778
8681
  return { padding, dimension };
8779
8682
  };
8780
- // CSS Variable defined in fontHyphenationStyle
8781
- /**
8782
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8783
- */
8784
8683
  const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, hasSlottedContent) => {
8785
8684
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8786
8685
  const { dimension, padding } = getScalableItemStyles(hasIcon && hasSlottedContent, isCompact);
@@ -8887,10 +8786,6 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8887
8786
  };
8888
8787
 
8889
8788
  const cssVarInternalSelectOptionScaling = '--p-internal-select-option-scaling';
8890
- // CSS Variable defined in fontHyphenationStyle
8891
- /**
8892
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8893
- */
8894
8789
  const getComponentCss$p = (isDisabled) => {
8895
8790
  return getCss({
8896
8791
  '@global': {
@@ -8916,10 +8811,6 @@ const getComponentCss$p = (isDisabled) => {
8916
8811
  };
8917
8812
 
8918
8813
  const cssVarInternalSelectScaling = '--p-internal-select-scaling';
8919
- // CSS Variable defined in fontHyphenationStyle
8920
- /**
8921
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8922
- */
8923
8814
  const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8924
8815
  return getCss({
8925
8816
  '@global': {
@@ -9019,18 +8910,22 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
9019
8910
  });
9020
8911
  };
9021
8912
 
9022
- const sizeSmall = '48px';
9023
- const sizeMedium = '72px';
9024
- const sizeLarge = '104px';
9025
- const sizeMap$1 = {
9026
- small: { height: sizeSmall, width: sizeSmall },
9027
- medium: { height: sizeMedium, width: sizeMedium },
9028
- large: { height: sizeLarge, width: sizeLarge },
9029
- inherit: { height: 'inherit', width: 'inherit' },
9030
- };
9031
- const getComponentCss$m = (size) => {
9032
- const strokeDasharray = '57'; // C = 2πR
9033
- const animationDuration = `var(${cssVariableAnimationDuration}, ${motionDurationVeryLong})`;
8913
+ /**
8914
+ * @css-variable {"name": "--p-spinner-size", "description": "Defines the width and height of the spinner. Overrides the `size` property when set.", "defaultValue": ""}
8915
+ */
8916
+ const cssVarSize = '--p-spinner-size';
8917
+ /**
8918
+ * @css-variable {"name": "--p-spinner-color", "description": "Defines the foreground color. Overrides the `color` property when set.", "defaultValue": ""}
8919
+ */
8920
+ const cssVarColor = '--p-spinner-color';
8921
+ /**
8922
+ * @css-variable {"name": "--p-spinner-track-color", "description": "Defines the track/background color. Overrides the `color` property when set.", "defaultValue": ""}
8923
+ */
8924
+ const cssVarTrackColor = '--p-spinner-track-color';
8925
+ const getComponentCss$m = (color, size) => {
8926
+ const dimension = `var(${cssVarSize},${leadingNormal})`;
8927
+ const strokeDasharray = '69'; // C = 2πR
8928
+ const animationDuration = `var(${cssVariableAnimationDuration}, ${durationXl})`;
9034
8929
  return getCss({
9035
8930
  '@global': {
9036
8931
  '@keyframes rotate': {
@@ -9043,49 +8938,61 @@ const getComponentCss$m = (size) => {
9043
8938
  },
9044
8939
  '@keyframes dash': {
9045
8940
  '0%': {
9046
- strokeDashoffset: 57,
8941
+ strokeDashoffset: 69,
9047
8942
  transform: 'rotateZ(0)',
9048
8943
  },
9049
8944
  '50%, 75%': {
9050
- strokeDashoffset: 20,
8945
+ strokeDashoffset: 24,
9051
8946
  transform: 'rotateZ(80deg)',
9052
8947
  },
9053
8948
  '100%': {
9054
- strokeDashoffset: 57,
8949
+ strokeDashoffset: 69,
9055
8950
  transform: 'rotateZ(360deg)',
9056
8951
  },
9057
8952
  },
9058
8953
  ':host': {
9059
8954
  display: 'inline-flex',
9060
- color: colorPrimary,
8955
+ verticalAlign: 'top',
9061
8956
  ...addImportantToEachRule({
9062
- verticalAlign: 'top',
9063
8957
  ...hostHiddenStyles,
9064
8958
  }),
9065
8959
  },
8960
+ div: {
8961
+ width: dimension,
8962
+ height: dimension,
8963
+ fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
8964
+ ...buildResponsiveStyles(size, (s) => ({
8965
+ fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
8966
+ })),
8967
+ },
9066
8968
  svg: {
9067
8969
  display: 'block', // for correct vertical alignment
9068
8970
  fill: 'none',
9069
- animation: `$rotate ${animationDuration} steps(50) infinite`,
8971
+ strokeWidth: 1.5,
8972
+ animation: `rotate ${animationDuration} steps(50) infinite`,
9070
8973
  },
9071
8974
  circle: {
9072
8975
  '&:first-child': {
9073
- stroke: colorContrastLower,
8976
+ stroke: `var(${cssVarTrackColor},${colorContrastLower})`,
8977
+ '@supports (color: oklch(from red l c h))': {
8978
+ stroke: `var(${cssVarTrackColor},oklch(from var(${cssVarColor},${colorMap$3[color]}) l c h/.2))`,
8979
+ },
8980
+ ...forcedColorsMediaQuery({
8981
+ stroke: addImportantToRule('none'),
8982
+ }),
9074
8983
  },
9075
8984
  '&:last-child': {
9076
- animation: `$dash ${animationDuration} steps(50) infinite`,
9077
- stroke: 'currentcolor', // necessary for proper color inheritance
8985
+ stroke: `var(${cssVarColor},${colorMap$3[color]})`,
8986
+ ...forcedColorsMediaQuery({
8987
+ stroke: 'CanvasText',
8988
+ }),
9078
8989
  strokeDasharray: strokeDasharray
9079
8990
  ,
9080
8991
  strokeLinecap: 'round',
8992
+ animation: `dash ${animationDuration} steps(50) infinite`,
9081
8993
  },
9082
8994
  },
9083
8995
  },
9084
- root: {
9085
- display: 'block',
9086
- ...buildResponsiveStyles(size, (s) => sizeMap$1[s]),
9087
- strokeWidth: 1.5,
9088
- },
9089
8996
  'sr-only': getHiddenTextJssStyle(),
9090
8997
  });
9091
8998
  };
@@ -9101,10 +9008,6 @@ const svgNumber = [
9101
9008
  '<path d="m10.47 11.94c-.65-.33-1.13-.92-1.13-2.01 0-1.53.85-2.47 2.66-2.47s2.66.94 2.66 2.47c0 1.08-.47 1.68-1.15 2.01.92.35 1.34 1.07 1.34 2.11 0 1.73-.99 2.49-2.86 2.49s-2.86-.76-2.86-2.49c0-1.04.41-1.76 1.33-2.11zm1.53 3.78c1.27 0 1.85-.51 1.85-1.69 0-1.1-.58-1.61-1.85-1.61s-1.85.52-1.85 1.61c0 1.18.58 1.69 1.85 1.69zm1.65-5.76c0-1.1-.56-1.56-1.65-1.56s-1.65.47-1.65 1.56c0 1 .46 1.6 1.65 1.6s1.65-.6 1.65-1.6z"/>',
9102
9009
  '<path d="m9.16 10.33c0-2.03 1.02-2.86 2.83-2.86s2.82.81 2.82 2.85c0 1.11-.3 1.82-.81 2.64l-2.18 3.44h-1.1l2.18-3.37c-.31.14-.65.2-1.01.2-1.82 0-2.74-.99-2.74-2.9zm4.65 0c0-1.23-.47-1.92-1.81-1.92s-1.81.69-1.81 1.92c0 1.37.49 2.05 1.81 2.05s1.81-.68 1.81-2.05z"/>',
9103
9010
  ];
9104
- // CSS Variable defined in fontHyphenationStyle
9105
- /**
9106
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9107
- */
9108
9011
  const getComponentCss$l = (state, disabled) => {
9109
9012
  const isStateCurrent = state === 'current';
9110
9013
  const isStateCurrentOrUndefined = !state || isStateCurrent;
@@ -9216,10 +9119,6 @@ const getColors$1 = (checked, loading) => {
9216
9119
  textColor: colorPrimary,
9217
9120
  };
9218
9121
  };
9219
- // CSS Variable defined in fontHyphenationStyle
9220
- /**
9221
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9222
- */
9223
9122
  const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisabled, isLoading, isCompact) => {
9224
9123
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, toggleBackgroundColor, textColor } = getColors$1(isChecked, isLoading);
9225
9124
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
@@ -9232,7 +9131,6 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9232
9131
  const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${fontLineHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
9233
9132
  const toggleDimension = `calc(var(${cssVarInternalSwitchScaling}) * 1.25rem)`;
9234
9133
  const toggleTranslateX = `calc(var(${cssVarInternalSwitchScaling}) * .1875rem)`;
9235
- const spinnerDimension = buttonHeight;
9236
9134
  return getCss({
9237
9135
  '@global': {
9238
9136
  ':host': {
@@ -9307,7 +9205,6 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9307
9205
  },
9308
9206
  },
9309
9207
  toggle: {
9310
- forcedColorAdjust: 'none',
9311
9208
  display: 'flex',
9312
9209
  placeItems: 'center',
9313
9210
  placeContent: 'center',
@@ -9317,14 +9214,16 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9317
9214
  background: toggleBackgroundColor,
9318
9215
  transition: getTransition('transform'),
9319
9216
  transform: `translate3d(${isChecked ? `calc(${buttonWidth} - ${buttonBorderWidth} * 2 - 100% - ${toggleTranslateX})` : toggleTranslateX}, 0, 0)`,
9217
+ ...forcedColorsMediaQuery({
9218
+ background: 'CanvasText',
9219
+ }),
9320
9220
  '&:dir(rtl)': {
9321
9221
  transform: `translate3d(calc(${isChecked ? `calc(${buttonWidth} - ${buttonBorderWidth} * 2 - 100% - ${toggleTranslateX})` : toggleTranslateX} * -1), 0, 0)`,
9322
9222
  },
9323
9223
  },
9324
9224
  ...(isLoading && {
9325
9225
  spinner: {
9326
- width: spinnerDimension,
9327
- height: spinnerDimension,
9226
+ '--p-spinner-size': buttonHeight,
9328
9227
  },
9329
9228
  }),
9330
9229
  // .loading
@@ -9679,10 +9578,6 @@ const getComponentCss$9 = () => {
9679
9578
  };
9680
9579
 
9681
9580
  const cssVarInternalTagDismissibleScaling = '--p-internal-tag-dismissible-scaling';
9682
- // CSS Variable defined in fontHyphenationStyle
9683
- /**
9684
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9685
- */
9686
9581
  const getComponentCss$8 = (hasLabel, isCompact) => {
9687
9582
  const buttonPaddingBlock = hasLabel
9688
9583
  ? `calc(16.8px * (var(${cssVarInternalTagDismissibleScaling}) - 0.64285714))`
@@ -9748,26 +9643,26 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
9748
9643
  const colorTextMap = {
9749
9644
  primary: colorCanvas,
9750
9645
  secondary: colorPrimary,
9751
- info: colorPrimary,
9752
- success: colorPrimary,
9753
- warning: colorPrimary,
9754
- error: colorPrimary,
9646
+ info: colorCanvas,
9647
+ success: colorCanvas,
9648
+ warning: colorCanvas,
9649
+ error: colorCanvas,
9755
9650
  };
9756
9651
  const colorBackgroundMap = {
9757
9652
  primary: colorPrimary,
9758
9653
  secondary: colorFrostedStrong,
9759
- info: colorInfoFrosted,
9760
- success: colorSuccessFrosted,
9761
- warning: colorWarningFrosted,
9762
- error: colorErrorFrosted,
9654
+ info: colorInfo,
9655
+ success: colorSuccess,
9656
+ warning: colorWarning,
9657
+ error: colorError,
9763
9658
  };
9764
9659
  const colorBackgroundHoverMap = {
9765
9660
  primary: colorContrastHigh,
9766
9661
  secondary: colorFrosted,
9767
- info: colorInfoFrostedSoft,
9768
- success: colorSuccessFrostedSoft,
9769
- warning: colorWarningFrostedSoft,
9770
- error: colorErrorFrostedSoft,
9662
+ info: colorInfoMedium,
9663
+ success: colorSuccessMedium,
9664
+ warning: colorWarningMedium,
9665
+ error: colorErrorMedium,
9771
9666
  };
9772
9667
  const getColors = (variant) => {
9773
9668
  return {
@@ -9796,7 +9691,10 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
9796
9691
  padding: compact ? '1px 6px' : `${spacingStaticXSmall} 9px`,
9797
9692
  borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXSmall} + (${fontLineHeight} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
9798
9693
  font: textXSmallStyle.font,
9799
- ...frostedGlassStyle,
9694
+ ...(variant === 'secondary' && {
9695
+ WebkitBackdropFilter: blurFrosted,
9696
+ backdropFilter: blurFrosted,
9697
+ }),
9800
9698
  color: textColor,
9801
9699
  background: backgroundColor,
9802
9700
  transition: `${getTransition('color')}, ${getTransition('background-color')}, ${getTransition('backdrop-filter')}`, // transition style should always be applied to have a smooth color change in case color prop gets updated during runtime
@@ -9929,19 +9827,7 @@ const getComponentCss$5 = () => {
9929
9827
 
9930
9828
  const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
9931
9829
 
9932
- const sizeMap = {
9933
- 'xx-small': fontSizeTextXXSmall,
9934
- 'x-small': fontSizeTextXSmall,
9935
- small: fontSizeTextSmall,
9936
- medium: fontSizeTextMedium,
9937
- large: fontSizeTextLarge,
9938
- 'x-large': fontSizeTextXLarge,
9939
- };
9940
- // CSS Variable defined in fontHyphenationStyle
9941
- /**
9942
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9943
- */
9944
- const getComponentCss$4 = (size, weight, align, color, ellipsis) => {
9830
+ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
9945
9831
  return getCss({
9946
9832
  '@global': {
9947
9833
  ':host': {
@@ -9950,19 +9836,35 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis) => {
9950
9836
  ...hostHiddenStyles,
9951
9837
  }),
9952
9838
  },
9953
- [`::slotted(:is(${TEXT_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
9839
+ [`::slotted(:is(${TEXT_TAGS.join()}))`]: addImportantToEachRule({
9840
+ all: 'unset',
9841
+ }),
9842
+ },
9843
+ root: {
9844
+ all: 'unset',
9845
+ display: 'block',
9846
+ font: `${weightMap[weight]} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
9847
+ ...buildResponsiveStyles(size, (v) => ({
9848
+ fontSize: sizeMap$1[v],
9849
+ })),
9850
+ color: colorMap$3[color],
9851
+ textAlign: align,
9852
+ hyphens,
9853
+ ...((hyphens === 'auto' || hyphens === 'manual') && {
9854
+ overflowWrap: 'break-word',
9855
+ }),
9856
+ ...(ellipsis && {
9857
+ maxWidth: '100%',
9858
+ overflow: 'hidden',
9859
+ textOverflow: 'ellipsis',
9860
+ whiteSpace: 'nowrap',
9861
+ }),
9954
9862
  },
9955
- root: getTypographyRootJssStyle(textSmallStyle, buildResponsiveStyles(size, (sizeValue) => ({
9956
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap[sizeValue],
9957
- fontWeight: getFontWeight(weight),
9958
- })), align, color, ellipsis),
9959
9863
  });
9960
9864
  };
9961
9865
 
9962
9866
  const cssVarInternalTextareaScaling = '--p-internal-textarea-scaling';
9963
- // CSS Variable defined in fontHyphenationStyle
9964
9867
  /**
9965
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9966
9868
  * @css-variable {"name":"--p-textarea-field-sizing","description":"Controls CSS `field-sizing` for textarea.","defaultValue":"unset"}
9967
9869
  * @css-variable {"name":"--p-textarea-min-width","description":"Minimum width of the textarea.","defaultValue":"52px"}
9968
9870
  * @css-variable {"name":"--p-textarea-max-width","description":"Maximum width of the textarea.","defaultValue":"unset"}
@@ -10075,10 +9977,6 @@ const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
10075
9977
  transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
10076
9978
  });
10077
9979
  const toastCloseClassName = 'close';
10078
- // CSS Variable defined in fontHyphenationStyle
10079
- /**
10080
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
10081
- */
10082
9980
  const getComponentCss$1 = () => {
10083
9981
  return getCss({
10084
9982
  '@global': {
@@ -10152,6 +10050,9 @@ const getComponentCss = (size) => {
10152
10050
  svg: {
10153
10051
  ...sizingStyles,
10154
10052
  fill: colorPrimary,
10053
+ ...forcedColorsMediaQuery({
10054
+ fill: 'CanvasText',
10055
+ }),
10155
10056
  },
10156
10057
  },
10157
10058
  });