@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
@@ -24,16 +24,7 @@ const leadingNormal$1 = 'calc(6px + 2.125ex)';
24
24
  /** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
25
25
  const fontLineHeight = leadingNormal$1;
26
26
 
27
- const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
28
-
29
- const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
30
-
31
- const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
32
-
33
- const typescaleLg = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
34
-
35
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
36
- const fontSizeHeadingLarge = typescaleLg;
27
+ const typescaleLg$1 = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
37
28
 
38
29
  const typescaleMd$1 = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
39
30
 
@@ -45,18 +36,18 @@ const typescaleSm$1 = '1rem';
45
36
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
46
37
  const fontSizeHeadingSmall = typescaleSm$1;
47
38
 
48
- const typescaleXl = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
39
+ const typescaleXl$1 = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
49
40
 
50
41
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
51
- const fontSizeHeadingXLarge = typescaleXl;
42
+ const fontSizeHeadingXLarge = typescaleXl$1;
52
43
 
53
- const typescale2Xl = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
44
+ const typescale2Xl$1 = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
54
45
 
55
46
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xl instead. */
56
- const fontSizeHeadingXXLarge = typescale2Xl;
47
+ const fontSizeHeadingXXLarge = typescale2Xl$1;
57
48
 
58
49
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
59
- const fontSizeTextLarge = typescaleLg;
50
+ const fontSizeTextLarge = typescaleLg$1;
60
51
 
61
52
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
62
53
  const fontSizeTextMedium = typescaleMd$1;
@@ -65,17 +56,17 @@ const fontSizeTextMedium = typescaleMd$1;
65
56
  const fontSizeTextSmall = typescaleSm$1;
66
57
 
67
58
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
68
- const fontSizeTextXLarge = typescaleXl;
59
+ const fontSizeTextXLarge = typescaleXl$1;
69
60
 
70
- const typescaleXs$1 = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
61
+ const typescaleXs$2 = '.875rem';
71
62
 
72
63
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
73
- const fontSizeTextXSmall = typescaleXs$1;
64
+ const fontSizeTextXSmall = typescaleXs$2;
74
65
 
75
- const typescale2Xs = '.75rem';
66
+ const typescale2Xs$1 = '.75rem';
76
67
 
77
68
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xs instead. */
78
- const fontSizeTextXXSmall = typescale2Xs;
69
+ const fontSizeTextXXSmall = typescale2Xs$1;
79
70
 
80
71
  /** @deprecated since v4.0.0, will be removed with next major release. Use typescale variables instead. */
81
72
  const fontSizeText$1 = {
@@ -93,26 +84,16 @@ const fontStyleNormal = 'normal';
93
84
  /** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
94
85
  const fontVariant = 'normal';
95
86
 
96
- const fontWeightNormal = 400;
87
+ const fontWeightNormal$1 = 400;
97
88
 
98
89
  /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
99
- const fontWeightRegular = fontWeightNormal;
90
+ const fontWeightRegular = fontWeightNormal$1;
100
91
 
101
92
  const fontWeightSemibold$1 = 600;
102
93
 
103
94
  /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightSemibold instead. */
104
95
  const fontWeightSemiBold = fontWeightSemibold$1;
105
96
 
106
- const fontWeightBold$1 = 700;
107
-
108
- const fontWeightBold = fontWeightBold$1;
109
-
110
- const fontHyphenationStyle = {
111
- overflowWrap: 'break-word',
112
- // @ts-ignore
113
- hyphens: 'var(--p-hyphens, auto)',
114
- };
115
-
116
97
  const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
117
98
  'hsla(0,0%,0%,.8) 8.1%,' +
118
99
  'hsla(0,0%,0%,.8) 15.5%,' +
@@ -263,10 +244,10 @@ const durationSm$1 = '.25s';
263
244
  /** @deprecated since v4.0.0, will be removed with next major release. Use durationSm instead. */
264
245
  const motionDurationShort = durationSm$1;
265
246
 
266
- const durationXl = '1.2s';
247
+ const durationXl$1 = '1.2s';
267
248
 
268
249
  /** @deprecated since v4.0.0, will be removed with next major release. Use durationXl instead. */
269
- const motionDurationVeryLong = durationXl;
250
+ const motionDurationVeryLong = durationXl$1;
270
251
 
271
252
  const easeInOut = 'cubic-bezier(.25,.1,.25,1)';
272
253
 
@@ -322,14 +303,6 @@ const spacingStaticXSmall = spacingStaticXs$3;
322
303
 
323
304
  const spacingStaticXs$2 = spacingStaticXs$3;
324
305
 
325
- const _displayFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
326
- const _displayFontPartB = `/${fontLineHeight} ${fontFamily}`;
327
-
328
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseDisplayLg instead. */
329
- const displayLargeStyle = {
330
- font: `${_displayFontPartA}${fontSizeDisplayLarge}${_displayFontPartB}`,
331
- };
332
-
333
306
  const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
334
307
  const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
335
308
 
@@ -359,30 +332,25 @@ const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
359
332
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseText2Xs instead. */
360
333
  const textXXSmallStyle = {
361
334
  font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
362
- ...fontHyphenationStyle,
363
335
  };
364
336
 
365
337
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
366
338
  const textXSmallStyle = {
367
339
  font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
368
- ...fontHyphenationStyle,
369
340
  };
370
341
 
371
342
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
372
343
  const textSmallStyle = {
373
344
  font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
374
- ...fontHyphenationStyle,
375
345
  };
376
346
 
377
347
  /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextMd instead. */
378
348
  const textMediumStyle = {
379
349
  font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
380
- ...fontHyphenationStyle,
381
350
  };
382
351
 
383
352
  const proseTextSmStyle = {
384
- font: `normal normal ${fontWeightNormal} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
385
- ...fontHyphenationStyle,
353
+ font: `normal normal ${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
386
354
  };
387
355
 
388
356
  const alphaDisabled = 0.4;
@@ -427,6 +395,8 @@ const colorSurface = 'var(--p-color-surface)';
427
395
 
428
396
  const colorContrastHigh = 'var(--p-color-contrast-high)';
429
397
 
398
+ const colorContrastHigher = 'var(--p-color-contrast-higher)';
399
+
430
400
  const colorContrastLow = 'var(--p-color-contrast-low)';
431
401
 
432
402
  const colorContrastLower = 'var(--p-color-contrast-lower)';
@@ -441,11 +411,13 @@ const colorErrorFrosted = 'var(--p-color-error-frosted)';
441
411
 
442
412
  const colorErrorFrostedSoft = 'var(--p-color-error-frosted-soft)';
443
413
 
414
+ const colorErrorMedium = 'var(--p-color-error-medium)';
415
+
444
416
  const colorInfo = 'var(--p-color-info)';
445
417
 
446
418
  const colorInfoFrosted = 'var(--p-color-info-frosted)';
447
419
 
448
- const colorInfoFrostedSoft = 'var(--p-color-info-frosted-soft)';
420
+ const colorInfoMedium = 'var(--p-color-info-medium)';
449
421
 
450
422
  const colorSuccess = 'var(--p-color-success)';
451
423
 
@@ -455,26 +427,50 @@ const colorSuccessFrostedSoft = 'var(--p-color-success-frosted-soft)';
455
427
 
456
428
  const colorSuccessLow = 'var(--p-color-success-low)';
457
429
 
430
+ const colorSuccessMedium = 'var(--p-color-success-medium)';
431
+
458
432
  const colorWarning = 'var(--p-color-warning)';
459
433
 
460
434
  const colorWarningFrosted = 'var(--p-color-warning-frosted)';
461
435
 
462
- const colorWarningFrostedSoft = 'var(--p-color-warning-frosted-soft)';
436
+ const colorWarningMedium = 'var(--p-color-warning-medium)';
463
437
 
464
438
  const fontPorscheNext = 'var(--p-font-porsche-next)';
465
439
 
466
440
  const leadingNormal = 'var(--p-leading-normal)';
467
441
 
442
+ const typescale2Xl = 'var(--p-typescale-2xl)';
443
+
444
+ const typescale2Xs = 'var(--p-typescale-2xs)';
445
+
446
+ const typescale3Xl = 'var(--p-typescale-3xl)';
447
+
448
+ const typescale4Xl = 'var(--p-typescale-4xl)';
449
+
450
+ const typescale5Xl = 'var(--p-typescale-5xl)';
451
+
452
+ const typescaleLg = 'var(--p-typescale-lg)';
453
+
468
454
  const typescaleMd = 'var(--p-typescale-md)';
469
455
 
470
456
  const typescaleSm = 'var(--p-typescale-sm)';
471
457
 
458
+ const typescaleXl = 'var(--p-typescale-xl)';
459
+
460
+ const typescaleXs$1 = 'var(--p-typescale-xs)';
461
+
462
+ const fontWeightBold = 'var(--p-font-weight-bold)';
463
+
464
+ const fontWeightNormal = 'var(--p-font-weight-normal)';
465
+
472
466
  const fontWeightSemibold = 'var(--p-font-weight-semibold)';
473
467
 
474
468
  const durationMd = 'var(--p-duration-md)';
475
469
 
476
470
  const durationSm = 'var(--p-duration-sm)';
477
471
 
472
+ const durationXl = 'var(--p-duration-xl)';
473
+
478
474
  const spacingStaticMd = 'var(--p-spacing-static-md)';
479
475
 
480
476
  const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
@@ -482,7 +478,7 @@ const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
482
478
  const spacingStaticXs$1 = 'var(--p-spacing-static-xs)';
483
479
 
484
480
  const forcedColorsMediaQuery = (style) => {
485
- return { '@media (forced-colors: active)': style };
481
+ return { '@media(forced-colors:active)': style };
486
482
  };
487
483
 
488
484
  const motionDurationMap = {
@@ -584,7 +580,9 @@ const preventFoucOfNestedElementsStyles = {
584
580
  * utility to wrap jss styles parameter in `@media (hover: hover)`
585
581
  * which is used to not have hover styles on touch devices
586
582
  */
587
- const hoverMediaQuery = (style) => ({ '@media(hover:hover)': style });
583
+ const hoverMediaQuery = (style) => {
584
+ return { '@media(hover:hover)': style };
585
+ };
588
586
 
589
587
  function _extends() {
590
588
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -3907,14 +3905,12 @@ const OPTION_LIST_SAFE_ZONE = 6;
3907
3905
 
3908
3906
  const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
3909
3907
 
3910
- const prefix = `[Porsche Design System v${"4.0.0-beta.2"}]` // this part isn't covered by unit tests
3908
+ const prefix = `[Porsche Design System v${"4.0.0-beta.4"}]` // this part isn't covered by unit tests
3911
3909
  ;
3912
3910
  const consoleError = (...messages) => {
3913
3911
  console.error(prefix, ...messages);
3914
3912
  };
3915
3913
 
3916
- const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
3917
-
3918
3914
  const headerSlot = 'header';
3919
3915
  const anchorSlot = 'anchor';
3920
3916
 
@@ -4033,10 +4029,6 @@ const cssVarPaddingInline$1 = '--p-accordion-px';
4033
4029
  * @css-variable {"name": "--p-accordion-py", "description": "Vertical padding of the accordion.", "defaultValue": "16px"}
4034
4030
  */
4035
4031
  const cssVarPaddingBlock = '--p-accordion-py';
4036
- // CSS Variable defined in fontHyphenationStyle
4037
- /**
4038
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4039
- */
4040
4032
  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"/>`);
4041
4033
  const backgroundMap$1 = {
4042
4034
  canvas: colorCanvas,
@@ -4233,6 +4225,9 @@ const cssVariableBottom = '--p-banner-position-bottom';
4233
4225
  const cssVariableZIndex = '--p-internal-banner-z-index';
4234
4226
  const topBottomFallback = '56px';
4235
4227
  const getComponentCss$18 = (isOpen) => {
4228
+ const easing = isOpen ? 'in' : 'out';
4229
+ const transition = `visibility 0s linear var(${cssVariableTransitionDuration}, ${isOpen ? '0s' : motionDurationLong}), ${getTransition('transform', 'moderate', easing)}`;
4230
+ const transitionChild = `${getTransition('opacity', 'moderate', easing)}`;
4236
4231
  return getCss({
4237
4232
  '@global': {
4238
4233
  ':host': {
@@ -4242,32 +4237,42 @@ const getComponentCss$18 = (isOpen) => {
4242
4237
  ...getBannerPopoverResetStyles(),
4243
4238
  inset: `auto ${gridExtendedOffsetBase} var(${cssVariableBottom},${topBottomFallback})`,
4244
4239
  zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
4245
- ...dropShadowHighStyle,
4246
4240
  borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`, // needed for rounded box-shadow
4247
4241
  '&::backdrop': {
4248
4242
  display: 'none',
4249
4243
  },
4244
+ '& > :first-child': {
4245
+ opacity: 0,
4246
+ ...dropShadowHighStyle,
4247
+ ...(isOpen
4248
+ ? {
4249
+ opacity: 1,
4250
+ }
4251
+ : {
4252
+ opacity: 0,
4253
+ }),
4254
+ transition: transitionChild,
4255
+ // // 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)
4256
+ '@supports (transition-behavior: allow-discrete)': {
4257
+ transition: `${transitionChild}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4258
+ },
4259
+ },
4250
4260
  ...(isOpen
4251
4261
  ? {
4252
- opacity: 1,
4253
4262
  visibility: 'inherit',
4254
4263
  pointerEvents: 'inherit',
4255
4264
  transform: 'translate3d(0,0,0)',
4256
- transition: `${getTransition('transform', 'moderate', 'in')}, ${getTransition('opacity', 'moderate', 'in')}`,
4257
4265
  }
4258
4266
  : {
4259
- opacity: 0,
4260
4267
  visibility: 'hidden',
4261
4268
  pointerEvents: 'none',
4262
4269
  transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
4263
- '&(.hydrated),&(.ssr)': {
4264
- transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationLong}), ${getTransition('transform', 'moderate', 'out')}, ${getTransition('opacity', 'moderate', 'out')}`,
4265
- // 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)
4266
- '@supports (transition-behavior: allow-discrete)': {
4267
- transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationLong}), ${getTransition('transform', 'moderate', 'out')}, ${getTransition('opacity', 'moderate', 'out')}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4268
- },
4269
- },
4270
4270
  }),
4271
+ transition,
4272
+ // 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)
4273
+ '@supports (transition-behavior: allow-discrete)': {
4274
+ transition: `${transition}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4275
+ },
4271
4276
  [getMediaQueryMin('s')]: {
4272
4277
  inset: `var(${cssVariableTop},${topBottomFallback}) ${gridExtendedOffsetS} auto`,
4273
4278
  ...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
@@ -4283,17 +4288,47 @@ const getComponentCss$18 = (isOpen) => {
4283
4288
  });
4284
4289
  };
4285
4290
 
4286
- const fontSizeTextMap = {
4287
- 'xx-small': fontSizeTextXXSmall,
4288
- 'x-small': fontSizeTextXSmall,
4289
- small: fontSizeTextSmall,
4290
- medium: fontSizeTextMedium,
4291
- large: fontSizeTextLarge,
4292
- 'x-large': fontSizeTextXLarge,
4291
+ const colorMap$3 = {
4292
+ primary: colorPrimary,
4293
+ 'contrast-higher': colorContrastHigher,
4294
+ 'contrast-high': colorContrastHigh,
4295
+ 'contrast-medium': colorContrastMedium,
4296
+ 'contrast-low': colorContrastLow,
4297
+ 'contrast-lower': colorContrastLower,
4298
+ success: colorSuccess,
4299
+ warning: colorWarning,
4300
+ error: colorError,
4301
+ info: colorInfo,
4302
+ inherit: 'currentcolor',
4303
+ };
4304
+
4305
+ const sizeMap$1 = {
4306
+ 'xx-small': typescale2Xs, // deprecated (alias)
4307
+ 'x-small': typescaleXs$1, // deprecated (alias)
4308
+ small: typescaleSm, // deprecated (alias)
4309
+ medium: typescaleMd, // deprecated (alias)
4310
+ large: typescaleLg, // deprecated (alias)
4311
+ 'x-large': typescaleXl, // deprecated (alias)
4312
+ 'xx-large': typescale2Xl, // deprecated (alias)
4313
+ '2xs': typescale2Xs,
4314
+ xs: typescaleXs$1,
4315
+ sm: typescaleSm,
4316
+ md: typescaleMd,
4317
+ lg: typescaleLg,
4318
+ xl: typescaleXl,
4319
+ '2xl': typescale2Xl,
4320
+ '3xl': typescale3Xl,
4321
+ '4xl': typescale4Xl,
4322
+ '5xl': typescale5Xl,
4293
4323
  inherit: 'inherit',
4294
4324
  };
4295
- const getFontSizeText = (size) => {
4296
- return fontSizeTextMap[size];
4325
+
4326
+ const weightMap = {
4327
+ regular: fontWeightNormal, // deprecated
4328
+ 'semi-bold': fontWeightSemibold, // deprecated
4329
+ normal: fontWeightNormal,
4330
+ semibold: fontWeightSemibold,
4331
+ bold: fontWeightBold,
4297
4332
  };
4298
4333
 
4299
4334
  // 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.
@@ -4312,7 +4347,7 @@ const getVisibilityJssStyle = (hideLabel) => {
4312
4347
  };
4313
4348
  const offsetVertical = '-2px';
4314
4349
  const offsetHorizontal = '-4px';
4315
- const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
4350
+ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
4316
4351
  const hasIcon = hasVisibleIcon(icon, iconSource);
4317
4352
  return {
4318
4353
  '@global': {
@@ -4334,16 +4369,16 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4334
4369
  display: 'flex',
4335
4370
  width: '100%',
4336
4371
  cursor: 'pointer',
4337
- color: colorPrimary,
4372
+ color: colorMap$3[color],
4338
4373
  textDecoration: underline ? 'underline' : 'none',
4339
- ...textSmallStyle,
4374
+ font: `${fontWeightNormal} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
4340
4375
  ...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
4341
- gap: hidelabelValue ? 0 : spacingStaticXSmall,
4376
+ gap: hidelabelValue ? 0 : spacingStaticXs$1,
4342
4377
  })), buildResponsiveStyles(stretch, (stretchValue) => ({
4343
4378
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
4344
4379
  alignItems: stretchValue ? 'center' : 'flex-start',
4345
- })), buildResponsiveStyles(size, (sizeValue) => ({
4346
- fontSize: getFontSizeText(sizeValue),
4380
+ })), buildResponsiveStyles(size, (v) => ({
4381
+ fontSize: sizeMap$1[v],
4347
4382
  }))),
4348
4383
  ...forcedColorsMediaQuery({
4349
4384
  color: 'LinkText',
@@ -4363,14 +4398,16 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4363
4398
  })),
4364
4399
  transition: getTransition('background-color'),
4365
4400
  ...(active && {
4366
- ...frostedGlassStyle,
4401
+ WebkitBackdropFilter: blurFrosted,
4402
+ backdropFilter: blurFrosted,
4367
4403
  backgroundColor: colorFrosted,
4368
4404
  }),
4369
4405
  },
4370
4406
  ...(!isDisabledOrLoading &&
4371
4407
  hoverMediaQuery({
4372
4408
  '&:hover::before': {
4373
- ...frostedGlassStyle,
4409
+ WebkitBackdropFilter: blurFrosted,
4410
+ backdropFilter: blurFrosted,
4374
4411
  backgroundColor: colorFrostedStrong,
4375
4412
  },
4376
4413
  })),
@@ -4383,15 +4420,6 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4383
4420
  icon: {
4384
4421
  position: 'relative',
4385
4422
  flexShrink: '0',
4386
- fontSize: 'inherit', // inherit font size from root
4387
- width: fontLineHeight,
4388
- height: fontLineHeight,
4389
- // workaround for Safari to optimize vertical alignment of icons
4390
- // TODO: check if this is still needed after optimized icons are included
4391
- '@supports (width: round(down, 1px, 1px))': {
4392
- width: `round(down, ${fontLineHeight}, 1px)`,
4393
- height: `round(down, ${fontLineHeight}, 1px)`,
4394
- },
4395
4423
  },
4396
4424
  label: mergeDeep({ zIndex: '1' }, // fix Firefox bug on :hover (#2583) & pure-link with nested anchor & hidden label (#3349)
4397
4425
  buildResponsiveStyles(hideLabel, getVisibilityJssStyle), buildResponsiveStyles(alignLabel, (alignLabelValue) => ({
@@ -4412,13 +4440,9 @@ const getFunctionalComponentLoadingMessageStyles = () => {
4412
4440
  };
4413
4441
  };
4414
4442
 
4415
- // CSS Variable defined in fontHyphenationStyle
4416
- /**
4417
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4418
- */
4419
- const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline) => {
4443
+ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline) => {
4420
4444
  const hasIcon = hasVisibleIcon(icon, iconSource);
4421
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false), {
4445
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, color, hideLabel, alignLabel, underline, false), {
4422
4446
  root: {
4423
4447
  ...(isDisabled && {
4424
4448
  color: colorContrastLow,
@@ -4435,9 +4459,7 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
4435
4459
  icon: {
4436
4460
  position: 'absolute',
4437
4461
  top: 0,
4438
- left: `calc(50% - ${fontLineHeight} / 2)`,
4439
- width: fontLineHeight,
4440
- height: fontLineHeight,
4462
+ left: `calc(50% - ${leadingNormal} / 2)`,
4441
4463
  },
4442
4464
  }),
4443
4465
  // .loading
@@ -4445,19 +4467,6 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
4445
4467
  }));
4446
4468
  };
4447
4469
 
4448
- const fontWeightMap = {
4449
- regular: fontWeightRegular,
4450
- 'semi-bold': fontWeightSemiBold,
4451
- bold: fontWeightBold,
4452
- };
4453
- const getFontWeight = (weight) => {
4454
- return fontWeightMap[weight];
4455
- };
4456
-
4457
- // CSS Variable defined in fontHyphenationStyle
4458
- /**
4459
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4460
- */
4461
4470
  const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
4462
4471
  const isTopAligned = align === 'top';
4463
4472
  return getCss({
@@ -4512,10 +4521,10 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4512
4521
  ...textMediumStyle,
4513
4522
  color: colorPrimary,
4514
4523
  hyphens: 'inherit',
4515
- ...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
4516
- fontSize: getFontSizeText(sizeValue),
4517
- })), buildResponsiveStyles(weight, (weightValue) => ({
4518
- fontWeight: getFontWeight(weightValue),
4524
+ ...mergeDeep(buildResponsiveStyles(size, (v) => ({
4525
+ fontSize: sizeMap$1[v],
4526
+ })), buildResponsiveStyles(weight, (v) => ({
4527
+ fontWeight: weightMap[v],
4519
4528
  }))),
4520
4529
  },
4521
4530
  },
@@ -4696,10 +4705,6 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4696
4705
  };
4697
4706
 
4698
4707
  const cssVariableInternalButtonScaling = '--p-internal-button-scaling';
4699
- // CSS Variable defined in fontHyphenationStyle
4700
- /**
4701
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
4702
- */
4703
4708
  const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, isLoading, isCompact) => {
4704
4709
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
4705
4710
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, disabledOrLoading, false, isCompact, cssVariableInternalButtonScaling), {
@@ -4724,7 +4729,9 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4724
4729
  top: '50%',
4725
4730
  left: '50%',
4726
4731
  transform: 'translate(-50%, -50%)',
4727
- color: 'inherit',
4732
+ ...(variant === 'primary' && {
4733
+ '--p-spinner-color': 'currentcolor',
4734
+ }),
4728
4735
  },
4729
4736
  }),
4730
4737
  label: {
@@ -4753,9 +4760,9 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4753
4760
  const palette = {
4754
4761
  dark: {
4755
4762
  grey: {
4756
- '950': 'hsl(225, 100%, 99%)',
4757
- '100a': 'hsla(240, 3.7%, 26.5%, 0.154)',
4758
- '200a': 'hsla(240, 2%, 43%, 0.228)'},
4763
+ '950': 'hsl(225 100% 99%)',
4764
+ '100a': 'hsl(240 3.7% 26.5% / 0.154)',
4765
+ '200a': 'hsl(240 2% 43% / 0.228)'},
4759
4766
  },
4760
4767
  };
4761
4768
 
@@ -4765,7 +4772,7 @@ const colorFrostedSoftDark = palette.dark.grey['100a'];
4765
4772
 
4766
4773
  const colorPrimaryDark = palette.dark.grey["950"];
4767
4774
 
4768
- const typescaleXs = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
4775
+ const typescaleXs = '.875rem';
4769
4776
 
4770
4777
  const spacingStaticSm = '8px';
4771
4778
 
@@ -4994,7 +5001,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
4994
5001
  },
4995
5002
  },
4996
5003
  main: {
4997
- zIndex: 3,
5004
+ zIndex: 2,
4998
5005
  gridArea: 'main',
4999
5006
  padding: spacingBase,
5000
5007
  },
@@ -5016,7 +5023,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
5016
5023
  },
5017
5024
  },
5018
5025
  sidebar: {
5019
- zIndex: 2,
5026
+ zIndex: 3,
5020
5027
  position: 'sticky',
5021
5028
  top: 0,
5022
5029
  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)
@@ -5128,10 +5135,6 @@ const backfaceVisibilityJssStyle = {
5128
5135
  WebkitBackfaceVisibility: 'hidden',
5129
5136
  };
5130
5137
  const gradientMask = `linear-gradient(90deg,transparent 20%,#000 var(${cssVariableGradientColorWidth},33%) calc(100% - var(${cssVariableGradientColorWidth},33%)),transparent 80%)`;
5131
- // CSS Variable defined in fontHyphenationStyle
5132
- /**
5133
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
5134
- */
5135
5138
  const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlot, headingSize, width, hasPagination, isInfinitePagination, alignHeader, hasNavigation, alignControls) => {
5136
5139
  const isHeaderAlignCenter = alignHeader === 'center';
5137
5140
  return getCss({
@@ -5386,6 +5389,11 @@ const colorBackgroundMap$1 = {
5386
5389
  error: colorErrorFrostedSoft,
5387
5390
  none: colorFrosted,
5388
5391
  };
5392
+ const colorBackgroundHoverMap$1 = {
5393
+ success: colorSuccessMedium,
5394
+ error: colorErrorMedium,
5395
+ none: colorContrastHigh,
5396
+ };
5389
5397
  const colorBorderMap = {
5390
5398
  success: colorSuccess,
5391
5399
  error: colorError,
@@ -5396,7 +5404,7 @@ const colorBorderHoverMap = {
5396
5404
  error: colorError,
5397
5405
  none: colorPrimary,
5398
5406
  };
5399
- const colorMap$4 = {
5407
+ const colorMap$2 = {
5400
5408
  success: colorSuccess,
5401
5409
  error: colorError,
5402
5410
  none: undefined,
@@ -5404,9 +5412,10 @@ const colorMap$4 = {
5404
5412
  const getThemedFormStateColors = (state) => {
5405
5413
  return {
5406
5414
  formStateBackgroundColor: colorBackgroundMap$1[state],
5415
+ formStateBackgroundHoverColor: colorBackgroundHoverMap$1[state],
5407
5416
  formStateBorderColor: colorBorderMap[state],
5408
5417
  formStateBorderHoverColor: colorBorderHoverMap[state],
5409
- formStateColor: colorMap$4[state],
5418
+ formStateColor: colorMap$2[state],
5410
5419
  };
5411
5420
  };
5412
5421
 
@@ -5422,7 +5431,7 @@ const cssVarCheckboxIconColor = '--p-checkbox-icon-color';
5422
5431
  const cssVarInternalCheckboxScaling = '--__p-checkbox-scaling';
5423
5432
 
5424
5433
  const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5425
- const { formStateBackgroundColor, formStateBorderColor } = getThemedFormStateColors(state);
5434
+ const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
5426
5435
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
5427
5436
  const checkboxBorderWidth = borderWidthThin;
5428
5437
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
@@ -5447,6 +5456,11 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5447
5456
  ...(disabledOrLoading && {
5448
5457
  pointerEvents: 'none', // to prevent form element becomes clickable/toggleable
5449
5458
  }),
5459
+ ...hoverMediaQuery({
5460
+ '&:hover': {
5461
+ borderColor: `var(${cssVarCheckboxBorderColor}, ${formStateBorderHoverColor})`,
5462
+ },
5463
+ }),
5450
5464
  '&::before': {
5451
5465
  // This pseudo-element is used to render the checkmark or indeterminate icon when the checkbox is checked or indeterminate.
5452
5466
  content: '""',
@@ -5464,16 +5478,29 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5464
5478
 
5465
5479
  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"/>`);
5466
5480
  const getCheckboxCheckedBaseStyles = (isLoading, state) => {
5467
- const { formStateBorderColor } = getThemedFormStateColors(state);
5481
+ const { formStateBorderColor, formStateBackgroundHoverColor } = getThemedFormStateColors(state);
5468
5482
  if (isLoading) {
5469
5483
  return {};
5470
5484
  }
5471
5485
  return {
5486
+ '&': {
5487
+ background: state === 'none' ? colorPrimary : formStateBorderColor,
5488
+ },
5489
+ ...(state === 'none' && {
5490
+ ...hoverMediaQuery({
5491
+ '&:hover': {
5492
+ backgroundColor: `var(${cssVarCheckboxBorderColor}, ${formStateBackgroundHoverColor})`,
5493
+ borderColor: 'transparent',
5494
+ },
5495
+ }),
5496
+ }),
5472
5497
  '&::before': {
5473
- forcedColorAdjust: 'none',
5474
5498
  WebkitMask: `${checkedIcon$1} center/contain no-repeat`, // necessary for Sogou browser support :-)
5475
5499
  mask: `${checkedIcon$1} center/contain no-repeat`,
5476
- backgroundColor: `var(${cssVarCheckboxIconColor}, ${state === 'none' ? colorPrimary : formStateBorderColor})`,
5500
+ backgroundColor: `var(${cssVarCheckboxIconColor},${colorCanvas})`,
5501
+ ...forcedColorsMediaQuery({
5502
+ background: 'CanvasText',
5503
+ }),
5477
5504
  },
5478
5505
  };
5479
5506
  };
@@ -5486,10 +5513,12 @@ const getCheckboxIndeterminateBaseStyles = (isLoading, state) => {
5486
5513
  }
5487
5514
  return {
5488
5515
  '&::before': {
5489
- forcedColorAdjust: 'none',
5490
5516
  WebkitMask: `${indeterminateIcon} center/contain no-repeat`,
5491
5517
  mask: `${indeterminateIcon} center/contain no-repeat`,
5492
5518
  backgroundColor: state === 'none' ? colorPrimary : formStateBorderColor,
5519
+ ...forcedColorsMediaQuery({
5520
+ background: 'CanvasText',
5521
+ }),
5493
5522
  },
5494
5523
  };
5495
5524
  };
@@ -5572,10 +5601,6 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5572
5601
  };
5573
5602
  };
5574
5603
 
5575
- // CSS Variable defined in fontHyphenationStyle
5576
- /**
5577
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
5578
- */
5579
5604
  // CSS Variables defined in checkbox-css-vars.ts
5580
5605
  /**
5581
5606
  * @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."}
@@ -5583,7 +5608,6 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5583
5608
  * @css-variable {"name": "--p-checkbox-icon-color", "description": "🧪Experimental: Checkmark icon color of Checkbox."}
5584
5609
  */
5585
5610
  const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact) => {
5586
- const { formStateBorderHoverColor } = getThemedFormStateColors(state);
5587
5611
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
5588
5612
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
5589
5613
  const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${fontLineHeight}) / 2))`;
@@ -5604,12 +5628,6 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5604
5628
  '&:checked': getCheckboxCheckedBaseStyles(isLoading, state),
5605
5629
  '&:indeterminate': getCheckboxIndeterminateBaseStyles(isLoading, state),
5606
5630
  '&:focus-visible': getFocusBaseStyles(),
5607
- ...(!disabledOrLoading &&
5608
- hoverMediaQuery({
5609
- '&:hover': {
5610
- borderColor: `var(${cssVarCheckboxBorderColor}, ${formStateBorderHoverColor})`,
5611
- },
5612
- })),
5613
5631
  },
5614
5632
  },
5615
5633
  root: {
@@ -5632,13 +5650,11 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5632
5650
  },
5633
5651
  ...(isLoading && {
5634
5652
  spinner: {
5653
+ '--p-spinner-size': `calc(${checkboxDimension} - 2px)`, // compensates the 1px border of the checkbox
5635
5654
  position: 'absolute',
5636
5655
  top: '50%',
5637
5656
  left: '50%',
5638
5657
  transform: 'translate(-50%,-50%)',
5639
- width: checkboxDimension,
5640
- height: checkboxDimension,
5641
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
5642
5658
  },
5643
5659
  }),
5644
5660
  // .label / .required
@@ -5751,13 +5767,6 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
5751
5767
  },
5752
5768
  })),
5753
5769
  },
5754
- ...(isLoading && {
5755
- spinner: {
5756
- font: textSmallStyle.font,
5757
- width: fontLineHeight,
5758
- height: fontLineHeight,
5759
- },
5760
- }),
5761
5770
  // .label / .required
5762
5771
  ...getFunctionalComponentLabelStyles(isDisabled, isLoading, hideLabel),
5763
5772
  // .message
@@ -5951,7 +5960,7 @@ const getFunctionalComponentNoResultsOptionStyles = (componentName, cssVarScalin
5951
5960
  };
5952
5961
 
5953
5962
  // index.ts
5954
- 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" };
5963
+ 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" };
5955
5964
 
5956
5965
  // index.ts
5957
5966
  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 } };
@@ -6009,54 +6018,13 @@ const getComponentCss$11 = () => {
6009
6018
  });
6010
6019
  };
6011
6020
 
6012
- const colorMap$3 = {
6013
- primary: colorPrimary,
6014
- 'contrast-high': colorContrastHigh,
6015
- 'contrast-medium': colorContrastMedium,
6016
- 'contrast-low': colorContrastLow,
6017
- success: colorSuccess,
6018
- warning: colorWarning,
6019
- error: colorError,
6020
- info: colorInfo,
6021
- inherit: 'currentColor',
6022
- };
6023
- const getThemedTypographyColor = (textColor) => {
6024
- return colorMap$3[textColor];
6025
- };
6026
-
6027
- const getTypographyRootJssStyle = (baseTextStyle, responsiveStyle, align, // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
6028
- color, // eslint-disable-line @typescript-eslint/no-duplicate-type-constituents
6029
- ellipsis) => {
6030
- return {
6031
- all: 'unset',
6032
- display: 'block',
6033
- ...baseTextStyle,
6034
- color: getThemedTypographyColor(color),
6035
- textAlign: align,
6036
- letterSpacing: 'normal',
6037
- listStyleType: 'none',
6038
- whiteSpace: 'inherit',
6039
- ...(ellipsis && {
6040
- maxWidth: '100%',
6041
- overflow: 'hidden',
6042
- textOverflow: 'ellipsis',
6043
- whiteSpace: 'nowrap',
6044
- }),
6045
- ...responsiveStyle,
6046
- };
6047
- };
6048
- const getTypographySlottedJssStyle = () => {
6049
- return {
6050
- all: 'unset',
6051
- };
6052
- };
6053
-
6054
6021
  const DISPLAY_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
6055
6022
 
6056
- const sizeMap$5 = {
6057
- small: fontSizeDisplaySmall,
6058
- medium: fontSizeDisplayMedium,
6059
- large: fontSizeDisplayLarge,
6023
+ const sizeMap = {
6024
+ small: typescale3Xl,
6025
+ medium: typescale4Xl,
6026
+ large: typescale5Xl,
6027
+ inherit: 'inherit',
6060
6028
  };
6061
6029
  const getComponentCss$10 = (size, align, color, ellipsis) => {
6062
6030
  return getCss({
@@ -6067,15 +6035,30 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
6067
6035
  ...hostHiddenStyles,
6068
6036
  }),
6069
6037
  },
6070
- [`::slotted(:is(${DISPLAY_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
6038
+ [`::slotted(:is(${DISPLAY_TAGS.join()}))`]: addImportantToEachRule({
6039
+ all: 'unset',
6040
+ }),
6041
+ },
6042
+ root: {
6043
+ all: 'unset',
6044
+ display: 'block',
6045
+ font: `${fontWeightNormal} ${typescale5Xl}/${leadingNormal} ${fontPorscheNext}`,
6046
+ ...buildResponsiveStyles(size, (v) => ({
6047
+ fontSize: sizeMap[v],
6048
+ })),
6049
+ color: colorMap$3[color],
6050
+ textAlign: align,
6051
+ ...(ellipsis && {
6052
+ maxWidth: '100%',
6053
+ overflow: 'hidden',
6054
+ textOverflow: 'ellipsis',
6055
+ whiteSpace: 'nowrap',
6056
+ }),
6071
6057
  },
6072
- root: getTypographyRootJssStyle(displayLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
6073
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$5[sizeValue],
6074
- })), align, color, ellipsis),
6075
6058
  });
6076
6059
  };
6077
6060
 
6078
- const colorMap$2 = {
6061
+ const colorMap$1 = {
6079
6062
  'contrast-lower': colorContrastLower,
6080
6063
  'contrast-low': colorContrastLow,
6081
6064
  'contrast-medium': colorContrastMedium,
@@ -6093,7 +6076,10 @@ const getComponentCss$$ = (color, orientation) => {
6093
6076
  hr: {
6094
6077
  all: 'unset',
6095
6078
  display: 'block',
6096
- background: colorMap$2[color],
6079
+ background: colorMap$1[color],
6080
+ ...forcedColorsMediaQuery({
6081
+ background: 'CanvasText',
6082
+ }),
6097
6083
  ...buildResponsiveStyles(orientation, (o) => o === 'horizontal' ? { height: '1px', width: '100%' } : { height: '100%', width: '1px' }),
6098
6084
  },
6099
6085
  },
@@ -6668,40 +6654,36 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
6668
6654
  });
6669
6655
  };
6670
6656
 
6671
- const sizeMap$4 = {
6672
- 'xx-small': fontSizeTextXXSmall,
6673
- 'x-small': fontSizeTextXSmall,
6674
- small: fontSizeTextSmall,
6675
- medium: fontSizeTextMedium,
6676
- large: fontSizeTextLarge,
6677
- 'x-large': fontSizeTextXLarge,
6678
- };
6657
+ /**
6658
+ * @css-variable {"name": "--p-flag-size", "description": "Defines the width and height of the flag. Overrides the `size` property when set.", "defaultValue": ""}
6659
+ */
6660
+ const cssVarSize$2 = '--p-flag-size';
6679
6661
  const getComponentCss$W = (size) => {
6662
+ const dimension = `var(${cssVarSize$2},${leadingNormal})`;
6680
6663
  return getCss({
6681
6664
  '@global': {
6682
6665
  ':host': {
6683
- display: 'inline-block',
6666
+ display: 'inline-flex',
6684
6667
  verticalAlign: 'top',
6685
6668
  ...addImportantToEachRule({
6686
6669
  ...hostHiddenStyles,
6687
6670
  }),
6688
6671
  },
6689
6672
  img: {
6690
- all: 'unset',
6691
6673
  display: 'block', // without display, img tag gets some extra spacing
6674
+ margin: 0,
6692
6675
  padding: '1px', // add safe-zone to be visually in sync with <p-icon />
6676
+ border: 0,
6677
+ outline: 0,
6678
+ overflow: 'hidden', // clip the image
6693
6679
  boxSizing: 'border-box',
6694
6680
  pointerEvents: 'none', // disable dragging/ghosting of images
6695
- ...(size === 'inherit'
6696
- ? {
6697
- width: size,
6698
- height: size,
6699
- }
6700
- : {
6701
- width: fontLineHeight,
6702
- height: fontLineHeight,
6703
- font: `${sizeMap$4[size]} ${fontFamily}`,
6704
- }),
6681
+ width: dimension,
6682
+ height: dimension,
6683
+ fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
6684
+ ...buildResponsiveStyles(size, (s) => ({
6685
+ fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
6686
+ })),
6705
6687
  },
6706
6688
  },
6707
6689
  });
@@ -7008,14 +6990,9 @@ const getComponentCss$V = (isOpen, background, backdrop, position, hasHeader, ha
7008
6990
  });
7009
6991
  };
7010
6992
 
7011
- const sizeMap$3 = {
7012
- small: fontSizeHeadingSmall,
7013
- medium: fontSizeHeadingMedium,
7014
- large: fontSizeHeadingLarge,
7015
- 'x-large': fontSizeHeadingXLarge,
7016
- 'xx-large': fontSizeHeadingXXLarge,
7017
- };
7018
- const getComponentCss$U = (size, align, color, ellipsis) => {
6993
+ const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
6994
+
6995
+ const getComponentCss$U = (size, weight, align, color, hyphens, ellipsis) => {
7019
6996
  return getCss({
7020
6997
  '@global': {
7021
6998
  ':host': {
@@ -7024,12 +7001,30 @@ const getComponentCss$U = (size, align, color, ellipsis) => {
7024
7001
  ...hostHiddenStyles,
7025
7002
  }),
7026
7003
  },
7027
- [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
7004
+ [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule({
7005
+ all: 'unset',
7006
+ }),
7007
+ },
7008
+ root: {
7009
+ all: 'unset',
7010
+ display: 'block',
7011
+ font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal} ${fontPorscheNext}`,
7012
+ ...buildResponsiveStyles(size, (v) => ({
7013
+ fontSize: sizeMap$1[v],
7014
+ })),
7015
+ color: colorMap$3[color],
7016
+ textAlign: align,
7017
+ hyphens,
7018
+ ...((hyphens === 'auto' || hyphens === 'manual') && {
7019
+ overflowWrap: 'break-word',
7020
+ }),
7021
+ ...(ellipsis && {
7022
+ maxWidth: '100%',
7023
+ overflow: 'hidden',
7024
+ textOverflow: 'ellipsis',
7025
+ whiteSpace: 'nowrap',
7026
+ }),
7028
7027
  },
7029
- root: getTypographyRootJssStyle(headingXXLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
7030
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$3[sizeValue],
7031
- fontWeight: sizeValue === 'small' ? fontWeightSemiBold : fontWeightRegular,
7032
- })), align, color, ellipsis),
7033
7028
  });
7034
7029
  };
7035
7030
 
@@ -7049,25 +7044,14 @@ const buildIconUrl = (iconNameOrSource = DEFAULT_ICON_NAME) => {
7049
7044
  return buildIconUrl(DEFAULT_ICON_NAME);
7050
7045
  };
7051
7046
 
7052
- const colorMap$1 = {
7053
- primary: colorPrimary,
7054
- 'contrast-high': colorContrastHigh,
7055
- 'contrast-medium': colorContrastMedium,
7056
- 'contrast-low': colorContrastLow,
7057
- success: colorSuccess,
7058
- warning: colorWarning,
7059
- error: colorError,
7060
- info: colorInfo,
7061
- inherit: 'inherit',
7062
- };
7063
- const sizeMap$2 = {
7064
- 'xx-small': fontSizeTextXXSmall,
7065
- 'x-small': fontSizeTextXSmall,
7066
- small: fontSizeTextSmall,
7067
- medium: fontSizeTextMedium,
7068
- large: fontSizeTextLarge,
7069
- 'x-large': fontSizeTextXLarge,
7070
- };
7047
+ /**
7048
+ * @css-variable {"name": "--p-icon-size", "description": "Defines the width and height of the icon. Overrides the `size` property when set.", "defaultValue": ""}
7049
+ */
7050
+ const cssVarSize$1 = '--p-icon-size';
7051
+ /**
7052
+ * @css-variable {"name": "--p-icon-color", "description": "Defines the icon color. Overrides the `color` property when set.", "defaultValue": ""}
7053
+ */
7054
+ const cssVarColor$1 = '--p-icon-color';
7071
7055
  const isFlippableIcon = (name, source) => {
7072
7056
  return (!source &&
7073
7057
  (name === 'arrow-compact-left' ||
@@ -7091,41 +7075,44 @@ const isFlippableIcon = (name, source) => {
7091
7075
  name === 'send'));
7092
7076
  };
7093
7077
  const getComponentCss$T = (name, source, color, size) => {
7094
- const isSizeInherit = size === 'inherit';
7095
- const dimension = isSizeInherit ? 'inherit' : fontLineHeight;
7078
+ const dimension = `var(${cssVarSize$1},${leadingNormal})`;
7079
+ const mask = `url("${buildIconUrl(source || name)}") center/contain no-repeat`;
7096
7080
  return getCss({
7097
7081
  '@global': {
7098
7082
  ':host': {
7099
- display: 'inline-block',
7083
+ display: 'inline-flex',
7100
7084
  verticalAlign: 'top',
7101
- maxWidth: '100%',
7102
- maxHeight: '100%',
7103
- width: dimension,
7104
- height: dimension,
7105
- font: `${isSizeInherit ? sizeMap$2.small : sizeMap$2[size]} ${fontFamily}`,
7106
- color: colorMap$1[color],
7107
7085
  ...addImportantToEachRule({
7108
- WebkitMask: `url("${buildIconUrl(source || name)}") center/contain no-repeat`, // necessary for Sogou browser support :-)
7109
- mask: `url("${buildIconUrl(source || name)}") center/contain no-repeat`,
7110
- aspectRatio: '1/1',
7111
- background: 'currentcolor', // necessary for proper color inheritance
7112
- forcedColorAdjust: 'none',
7113
- ...(isFlippableIcon(name, source) && {
7114
- '&(:dir(rtl))': {
7115
- transform: 'scaleX(-1)',
7116
- },
7117
- }),
7118
7086
  ...hostHiddenStyles,
7119
7087
  }),
7120
7088
  },
7121
- // the <img /> is only needed for a11y compliance because of alt text and to handle the fetch priority
7089
+ // the <img /> is needed for a11y compliance because of alt text and to handle the fetch priority
7122
7090
  img: {
7123
- all: 'unset',
7124
- position: 'absolute', // prevents unintended bottom white-space
7125
- opacity: 0,
7126
- width: '1px',
7127
- height: '1px',
7091
+ display: 'block', // without display, img tag gets some extra spacing
7092
+ margin: 0,
7093
+ padding: 0,
7094
+ border: 0,
7095
+ outline: 0,
7096
+ overflow: 'hidden', // clip the image
7097
+ objectPosition: '-9999px -9999px', // hide the actual image content, the mask + background still renders the icon
7128
7098
  pointerEvents: 'none', // disable dragging/ghosting of images
7099
+ width: dimension,
7100
+ height: dimension,
7101
+ fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
7102
+ ...buildResponsiveStyles(size, (s) => ({
7103
+ fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
7104
+ })),
7105
+ WebkitMask: mask, // necessary for Sogou browser support :-)
7106
+ mask,
7107
+ background: `var(${cssVarColor$1},${colorMap$3[color]})`,
7108
+ ...forcedColorsMediaQuery({
7109
+ background: 'CanvasText',
7110
+ }),
7111
+ ...(isFlippableIcon(name, source) && {
7112
+ '&:dir(rtl)': {
7113
+ transform: 'scaleX(-1)',
7114
+ },
7115
+ }),
7129
7116
  },
7130
7117
  },
7131
7118
  });
@@ -7178,6 +7165,8 @@ const getNotificationContentJssStyle = () => ({
7178
7165
  },
7179
7166
  });
7180
7167
 
7168
+ const INLINE_NOTIFICATION_HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7169
+
7181
7170
  const mediaQueryMaxS$1 = getMediaQueryMax('s');
7182
7171
  const getTextJssStyle = {
7183
7172
  margin: 0,
@@ -7187,10 +7176,6 @@ const getHeadingJssStyle = {
7187
7176
  ...headingSmallStyle,
7188
7177
  ...getTextJssStyle,
7189
7178
  };
7190
- // CSS Variable defined in fontHyphenationStyle
7191
- /**
7192
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7193
- */
7194
7179
  const getComponentCss$S = (state, hasAction, hasClose) => {
7195
7180
  return getCss({
7196
7181
  '@global': {
@@ -7202,7 +7187,9 @@ const getComponentCss$S = (state, hasAction, hasClose) => {
7202
7187
  }),
7203
7188
  },
7204
7189
  ...preventFoucOfNestedElementsStyles,
7205
- [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
7190
+ [`::slotted(:is(${INLINE_NOTIFICATION_HEADING_TAGS.join()}))`]: addImportantToEachRule({
7191
+ all: 'unset',
7192
+ }),
7206
7193
  'slot[name="heading"]': getHeadingJssStyle,
7207
7194
  },
7208
7195
  heading: getHeadingJssStyle,
@@ -7231,10 +7218,6 @@ const getComponentCss$S = (state, hasAction, hasClose) => {
7231
7218
  /**
7232
7219
  * @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."}
7233
7220
  */
7234
- // CSS Variable defined in fontHyphenationStyle
7235
- /**
7236
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7237
- */
7238
7221
  const getComponentCss$R = (disabled, loading, hideLabel, state, compact, readOnly) => {
7239
7222
  return getCss({
7240
7223
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7256,10 +7239,6 @@ const getComponentCss$R = (disabled, loading, hideLabel, state, compact, readOnl
7256
7239
  /**
7257
7240
  * @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."}
7258
7241
  */
7259
- // CSS Variable defined in fontHyphenationStyle
7260
- /**
7261
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7262
- */
7263
7242
  const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnly) => {
7264
7243
  return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, null,
7265
7244
  // Overwrites direction to ltr for rtl languages to prevent issues with the email input, e.g. cursor jumping to the
@@ -7279,10 +7258,6 @@ const getComponentCss$Q = (disabled, loading, hideLabel, state, compact, readOnl
7279
7258
  /**
7280
7259
  * @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."}
7281
7260
  */
7282
- // CSS Variable defined in fontHyphenationStyle
7283
- /**
7284
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7285
- */
7286
7261
  const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnly) => {
7287
7262
  return getCss({
7288
7263
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7306,10 +7281,6 @@ const getComponentCss$P = (disabled, loading, hideLabel, state, compact, readOnl
7306
7281
  /**
7307
7282
  * @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."}
7308
7283
  */
7309
- // CSS Variable defined in fontHyphenationStyle
7310
- /**
7311
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7312
- */
7313
7284
  const getComponentCss$O = (disabled, loading, hideLabel, state, compact, readOnly, controls) => {
7314
7285
  return getCss({
7315
7286
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7334,10 +7305,6 @@ const getComponentCss$O = (disabled, loading, hideLabel, state, compact, readOnl
7334
7305
  /**
7335
7306
  * @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."}
7336
7307
  */
7337
- // CSS Variable defined in fontHyphenationStyle
7338
- /**
7339
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7340
- */
7341
7308
  const getComponentCss$N = (disabled, loading, hideLabel, state, toggle, compact, readOnly) => {
7342
7309
  return getCss({
7343
7310
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly),
@@ -7357,10 +7324,6 @@ const getComponentCss$N = (disabled, loading, hideLabel, state, toggle, compact,
7357
7324
  /**
7358
7325
  * @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."}
7359
7326
  */
7360
- // CSS Variable defined in fontHyphenationStyle
7361
- /**
7362
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7363
- */
7364
7327
  const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnly, clear) => {
7365
7328
  return getCss({
7366
7329
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7384,10 +7347,6 @@ const getComponentCss$M = (disabled, loading, hideLabel, state, compact, readOnl
7384
7347
  /**
7385
7348
  * @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."}
7386
7349
  */
7387
- // CSS Variable defined in fontHyphenationStyle
7388
- /**
7389
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7390
- */
7391
7350
  const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnly) => {
7392
7351
  return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, null,
7393
7352
  // Overwrites direction to ltr for rtl languages to prevent issues with the tel input, e.g. cursor jumping to the
@@ -7433,10 +7392,6 @@ const getUnitCounterJssStyle = () => {
7433
7392
  /**
7434
7393
  * @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."}
7435
7394
  */
7436
- // CSS Variable defined in fontHyphenationStyle
7437
- /**
7438
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7439
- */
7440
7395
  const getComponentCss$K = (disabled, loading, hideLabel, state, compact, readOnly, counter) => {
7441
7396
  return getCss({
7442
7397
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly),
@@ -7454,10 +7409,6 @@ const getComponentCss$K = (disabled, loading, hideLabel, state, compact, readOnl
7454
7409
  /**
7455
7410
  * @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."}
7456
7411
  */
7457
- // CSS Variable defined in fontHyphenationStyle
7458
- /**
7459
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7460
- */
7461
7412
  const getComponentCss$J = (disabled, loading, hideLabel, state, compact, readOnly) => {
7462
7413
  return getCss({
7463
7414
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7479,10 +7430,6 @@ const getComponentCss$J = (disabled, loading, hideLabel, state, compact, readOnl
7479
7430
  /**
7480
7431
  * @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."}
7481
7432
  */
7482
- // CSS Variable defined in fontHyphenationStyle
7483
- /**
7484
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7485
- */
7486
7433
  const getComponentCss$I = (disabled, loading, hideLabel, state, compact, readOnly) => {
7487
7434
  return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, null,
7488
7435
  // Overwrites direction to ltr for rtl languages to prevent issues with the url input, e.g. cursor jumping to the
@@ -7502,10 +7449,6 @@ const getComponentCss$I = (disabled, loading, hideLabel, state, compact, readOnl
7502
7449
  /**
7503
7450
  * @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."}
7504
7451
  */
7505
- // CSS Variable defined in fontHyphenationStyle
7506
- /**
7507
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7508
- */
7509
7452
  const getComponentCss$H = (disabled, loading, hideLabel, state, compact, readOnly) => {
7510
7453
  return getCss({
7511
7454
  ...getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly, {
@@ -7522,12 +7465,8 @@ const getComponentCss$H = (disabled, loading, hideLabel, state, compact, readOnl
7522
7465
  });
7523
7466
  };
7524
7467
 
7525
- // CSS Variable defined in fontHyphenationStyle
7526
- /**
7527
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7528
- */
7529
- const getComponentCss$G = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
7530
- return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor), hasSlottedAnchor && {
7468
+ const getComponentCss$G = (icon, iconSource, active, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
7469
+ return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, color, hideLabel, alignLabel, underline, hasSlottedAnchor), hasSlottedAnchor && {
7531
7470
  '@global': addImportantToEachRule({
7532
7471
  '::slotted': {
7533
7472
  '&(a)': {
@@ -7567,10 +7506,6 @@ const getMultilineEllipsis = (lineClamp) => {
7567
7506
  overflow: 'hidden',
7568
7507
  };
7569
7508
  };
7570
- // CSS Variable defined in fontHyphenationStyle
7571
- /**
7572
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7573
- */
7574
7509
  const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio) => {
7575
7510
  return getCss({
7576
7511
  '@global': {
@@ -7670,7 +7605,6 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7670
7605
  heading: {
7671
7606
  margin: '0 0 2px', // ua-style reset
7672
7607
  ...headingSmallStyle,
7673
- ...fontHyphenationStyle,
7674
7608
  ...getMultilineEllipsis(3),
7675
7609
  },
7676
7610
  price: {
@@ -7697,10 +7631,6 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7697
7631
  });
7698
7632
  };
7699
7633
 
7700
- // CSS Variable defined in fontHyphenationStyle
7701
- /**
7702
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7703
- */
7704
7634
  const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
7705
7635
  const isTopAligned = align === 'top';
7706
7636
  return getCss({
@@ -7755,10 +7685,10 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7755
7685
  ...textMediumStyle,
7756
7686
  color: colorPrimary,
7757
7687
  hyphens: 'inherit',
7758
- ...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
7759
- fontSize: getFontSizeText(sizeValue),
7760
- })), buildResponsiveStyles(weight, (weightValue) => ({
7761
- fontWeight: getFontWeight(weightValue),
7688
+ ...mergeDeep(buildResponsiveStyles(size, (v) => ({
7689
+ fontSize: sizeMap$1[v],
7690
+ })), buildResponsiveStyles(weight, (v) => ({
7691
+ fontWeight: weightMap[v],
7762
7692
  }))),
7763
7693
  },
7764
7694
  },
@@ -7843,10 +7773,6 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7843
7773
  };
7844
7774
 
7845
7775
  const cssVariableInternalLinkScaling = '--p-internal-link-scaling';
7846
- // CSS Variable defined in fontHyphenationStyle
7847
- /**
7848
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
7849
- */
7850
7776
  const getComponentCss$D = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, isCompact) => {
7851
7777
  return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, isCompact, cssVariableInternalLinkScaling), {
7852
7778
  label: {
@@ -8014,10 +7940,6 @@ const getComponentCss$B = (model, safeZone, size, color) => {
8014
7940
  };
8015
7941
 
8016
7942
  const cssVarInternalMultiSelectOptionScaling = '--p-internal-multi-select-option-scaling';
8017
- // CSS Variable defined in fontHyphenationStyle
8018
- /**
8019
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8020
- */
8021
7943
  const getComponentCss$A = (isDisabled, selected) => {
8022
7944
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
8023
7945
  const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${fontLineHeight}) / 2))`;
@@ -8077,10 +7999,6 @@ const getComponentCss$z = (isDisabled) => {
8077
7999
  };
8078
8000
 
8079
8001
  const cssVarInternalMultiSelectScaling = '--p-internal-multi-select-scaling';
8080
- // CSS Variable defined in fontHyphenationStyle
8081
- /**
8082
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8083
- */
8084
8002
  const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8085
8003
  return getCss({
8086
8004
  '@global': {
@@ -8125,9 +8043,6 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8125
8043
 
8126
8044
  const mediaQueryMinS = getMediaQueryMin('s');
8127
8045
  const mediaQueryMaxS = getMediaQueryMax('s');
8128
- // button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
8129
- // and text scale 200% works (almost) on mobile viewports too
8130
- const buttonSize = `clamp(36px, calc(${fontLineHeight} + 10vw - 20px), 40px)`;
8131
8046
  const disabledCursorStyle = {
8132
8047
  cursor: 'default',
8133
8048
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
@@ -8181,10 +8096,6 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8181
8096
  },
8182
8097
  }),
8183
8098
  [mediaQueryMinS]: {
8184
- // prev
8185
- '&:first-child': { marginInlineEnd: spacingStaticSmall },
8186
- // next
8187
- '&:last-child': { marginInlineStart: spacingStaticSmall },
8188
8099
  ...(pageTotal < 8
8189
8100
  ? { '&.ellip': hiddenStyle }
8190
8101
  : // max 7 items including ellipsis at the same time on tablet
@@ -8202,32 +8113,40 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8202
8113
  display: 'flex',
8203
8114
  justifyContent: 'center',
8204
8115
  alignItems: 'center',
8205
- transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transition between states
8116
+ transition: `${getTransition('background-color')}, ${getTransition('color')}`, // for smooth transition between states
8206
8117
  position: 'relative',
8207
- width: buttonSize,
8208
- height: buttonSize,
8118
+ padding: '0 6px',
8119
+ minWidth: '2.25rem',
8120
+ height: '2.25rem',
8209
8121
  boxSizing: 'border-box',
8210
8122
  ...textSmallStyle,
8211
8123
  whiteSpace: 'nowrap',
8212
8124
  cursor: 'pointer',
8125
+ backgroundColor: 'transparent',
8213
8126
  color: colorPrimary,
8214
- borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
8127
+ borderRadius: `var(${legacyRadiusSmall}, ${radiusFull})`,
8215
8128
  borderColor: 'transparent', // default value is needed for smooth transition
8216
8129
  outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style
8217
8130
  ...hoverMediaQuery({
8218
8131
  '&:not([aria-disabled]):not(.ellipsis):hover': {
8219
8132
  ...frostedGlassStyle,
8220
8133
  background: colorFrosted,
8134
+ ...forcedColorsMediaQuery({
8135
+ outline: '2px solid CanvasText',
8136
+ outlineOffset: '-2px',
8137
+ }),
8221
8138
  },
8222
8139
  }),
8223
8140
  '&[aria-current]': {
8224
8141
  ...disabledCursorStyle,
8225
- color: colorPrimary,
8226
- border: `${borderWidthBase} solid ${colorPrimary}`,
8142
+ backgroundColor: colorFrostedStrong,
8143
+ ...forcedColorsMediaQuery({
8144
+ border: '2px solid CanvasText',
8145
+ }),
8227
8146
  },
8228
8147
  '&[aria-disabled]': {
8229
- ...getDisabledBaseStyles(),
8230
8148
  ...disabledCursorStyle,
8149
+ ...getDisabledBaseStyles(),
8231
8150
  },
8232
8151
  // TODO :not(.ellipsis) is only needed for VRT states tests to work properly
8233
8152
  '&:not(.ellipsis):focus-visible': getFocusBaseStyles(),
@@ -8243,10 +8162,6 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8243
8162
  };
8244
8163
 
8245
8164
  const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
8246
- // CSS Variable defined in fontHyphenationStyle
8247
- /**
8248
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8249
- */
8250
8165
  const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCompact) => {
8251
8166
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8252
8167
  const gap = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
@@ -8314,8 +8229,6 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8314
8229
  top: '50%',
8315
8230
  left: '50%',
8316
8231
  transform: 'translate(-50%, -50%)',
8317
- width: inputDimension,
8318
- height: inputDimension,
8319
8232
  pointerEvents: 'none',
8320
8233
  },
8321
8234
  }),
@@ -8330,10 +8243,6 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8330
8243
 
8331
8244
  const POPOVER_SAFE_ZONE = 8;
8332
8245
 
8333
- // CSS Variable defined in fontHyphenationStyle
8334
- /**
8335
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8336
- */
8337
8246
  const getComponentCss$v = () => {
8338
8247
  const shadowColor = 'rgba(0,0,0,0.3)';
8339
8248
  return getCss({
@@ -8426,10 +8335,6 @@ const getComponentCss$v = () => {
8426
8335
 
8427
8336
  const cssVarInternalRadioGroupOptionScaling = '--p-internal-radio-group-option-scaling';
8428
8337
  const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>`);
8429
- // CSS Variable defined in fontHyphenationStyle
8430
- /**
8431
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8432
- */
8433
8338
  const getComponentCss$u = (disabled, loading, state) => {
8434
8339
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8435
8340
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
@@ -8467,24 +8372,29 @@ const getComponentCss$u = (disabled, loading, state) => {
8467
8372
  borderColor: 'GrayText',
8468
8373
  }),
8469
8374
  }),
8470
- '&:focus-visible': getFocusBaseStyles(),
8471
8375
  ...(!disabledOrLoading &&
8472
8376
  hoverMediaQuery({
8473
8377
  '&:hover': {
8474
8378
  borderColor: formStateBorderHoverColor,
8475
8379
  },
8476
8380
  })),
8381
+ '&:focus-visible': getFocusBaseStyles(),
8382
+ '&:checked': {
8383
+ background: state === 'none' ? colorPrimary : formStateBorderColor,
8384
+ '&::before': {
8385
+ WebkitMask: `${checkedIcon} center/contain no-repeat`, // necessary for Sogou browser support :-)
8386
+ mask: `${checkedIcon} center/contain no-repeat`,
8387
+ backgroundColor: colorCanvas,
8388
+ ...forcedColorsMediaQuery({
8389
+ background: 'CanvasText',
8390
+ }),
8391
+ },
8392
+ },
8477
8393
  '&::before': {
8478
8394
  // This pseudo-element is used to render the checked icon.
8479
8395
  content: '""',
8480
8396
  gridArea: '1/1',
8481
8397
  },
8482
- '&:checked::before': {
8483
- forcedColorAdjust: 'none',
8484
- WebkitMask: `${checkedIcon} center/contain no-repeat`, // necessary for Sogou browser support :-)
8485
- mask: `${checkedIcon} center/contain no-repeat`,
8486
- backgroundColor: state === 'none' ? colorPrimary : formStateBorderColor,
8487
- },
8488
8398
  '&::after': {
8489
8399
  // Ensures the touch target is at least 24px, even if the checkbox is smaller than the minimum touch target size.
8490
8400
  // This pseudo-element expands the clickable area without affecting the visual size of the checkbox itself.
@@ -8510,13 +8420,11 @@ const getComponentCss$u = (disabled, loading, state) => {
8510
8420
  },
8511
8421
  ...(loading && {
8512
8422
  spinner: {
8423
+ '--p-spinner-size': `calc(${radioDimension} - 2px)`, // compensates the 1px border of the radio button
8513
8424
  position: 'absolute',
8514
8425
  top: '50%',
8515
8426
  left: '50%',
8516
8427
  transform: 'translate(-50%,-50%)',
8517
- width: radioDimension,
8518
- height: radioDimension,
8519
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
8520
8428
  },
8521
8429
  }),
8522
8430
  // .label / .required
@@ -8543,12 +8451,7 @@ const groupRadioGroupDirectionJssStyles = {
8543
8451
  const getRadioGroupDirectionJssStyles = (direction) => {
8544
8452
  return groupRadioGroupDirectionJssStyles[direction];
8545
8453
  };
8546
- // CSS Variable defined in fontHyphenationStyle
8547
- /**
8548
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8549
- */
8550
8454
  const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, direction) => {
8551
- const radioDimension = `calc(var(${cssVarInternalRadioGroupScaling}) * 1.75rem)`;
8552
8455
  const columnGap = `calc(22.4px * (var(${cssVarInternalRadioGroupScaling}) - 0.64285714) + 8px)`;
8553
8456
  const rowGap = `calc(11.2px * (var(${cssVarInternalRadioGroupScaling}) - 0.64285714) + 4px)`;
8554
8457
  return getCss({
@@ -8588,8 +8491,6 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
8588
8491
  top: '50%',
8589
8492
  left: '50%',
8590
8493
  transform: 'translate(-50%, -50%)',
8591
- width: radioDimension,
8592
- height: radioDimension,
8593
8494
  pointerEvents: 'none',
8594
8495
  },
8595
8496
  }),
@@ -8695,6 +8596,9 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
8695
8596
  mask: iconMask,
8696
8597
  background: colorPrimary,
8697
8598
  transition: getTransition('transform'),
8599
+ ...forcedColorsMediaQuery({
8600
+ background: 'CanvasText',
8601
+ }),
8698
8602
  },
8699
8603
  };
8700
8604
  };
@@ -8766,7 +8670,6 @@ isSticky, hasScrollbar, isCompact) => {
8766
8670
  const cssVarInternalSegmentedControlScaling = '--p-internal-segmented-control-scaling';
8767
8671
  const getScalingVar = (compact) => `var(${cssVarInternalSegmentedControlScaling}, ${compact ? 0.5 : 1})`;
8768
8672
  const ICON_OFFSET = '4px';
8769
- const { font: BUTTON_FONT } = textSmallStyle;
8770
8673
  const ICON_SIZE = '1.5rem';
8771
8674
  const ICON_MARGIN = '.25rem';
8772
8675
  const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
@@ -8779,10 +8682,6 @@ const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
8779
8682
  const dimension = `calc(max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px)) + (${verticalPadding} + ${borderWidthBase}) * 2)`;
8780
8683
  return { padding, dimension };
8781
8684
  };
8782
- // CSS Variable defined in fontHyphenationStyle
8783
- /**
8784
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8785
- */
8786
8685
  const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, hasSlottedContent) => {
8787
8686
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8788
8687
  const { dimension, padding } = getScalableItemStyles(hasIcon && hasSlottedContent, isCompact);
@@ -8889,10 +8788,6 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8889
8788
  };
8890
8789
 
8891
8790
  const cssVarInternalSelectOptionScaling = '--p-internal-select-option-scaling';
8892
- // CSS Variable defined in fontHyphenationStyle
8893
- /**
8894
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8895
- */
8896
8791
  const getComponentCss$p = (isDisabled) => {
8897
8792
  return getCss({
8898
8793
  '@global': {
@@ -8918,10 +8813,6 @@ const getComponentCss$p = (isDisabled) => {
8918
8813
  };
8919
8814
 
8920
8815
  const cssVarInternalSelectScaling = '--p-internal-select-scaling';
8921
- // CSS Variable defined in fontHyphenationStyle
8922
- /**
8923
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
8924
- */
8925
8816
  const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8926
8817
  return getCss({
8927
8818
  '@global': {
@@ -9021,18 +8912,22 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
9021
8912
  });
9022
8913
  };
9023
8914
 
9024
- const sizeSmall = '48px';
9025
- const sizeMedium = '72px';
9026
- const sizeLarge = '104px';
9027
- const sizeMap$1 = {
9028
- small: { height: sizeSmall, width: sizeSmall },
9029
- medium: { height: sizeMedium, width: sizeMedium },
9030
- large: { height: sizeLarge, width: sizeLarge },
9031
- inherit: { height: 'inherit', width: 'inherit' },
9032
- };
9033
- const getComponentCss$m = (size) => {
9034
- const strokeDasharray = '57'; // C = 2πR
9035
- const animationDuration = `var(${cssVariableAnimationDuration}, ${motionDurationVeryLong})`;
8915
+ /**
8916
+ * @css-variable {"name": "--p-spinner-size", "description": "Defines the width and height of the spinner. Overrides the `size` property when set.", "defaultValue": ""}
8917
+ */
8918
+ const cssVarSize = '--p-spinner-size';
8919
+ /**
8920
+ * @css-variable {"name": "--p-spinner-color", "description": "Defines the foreground color. Overrides the `color` property when set.", "defaultValue": ""}
8921
+ */
8922
+ const cssVarColor = '--p-spinner-color';
8923
+ /**
8924
+ * @css-variable {"name": "--p-spinner-track-color", "description": "Defines the track/background color. Overrides the `color` property when set.", "defaultValue": ""}
8925
+ */
8926
+ const cssVarTrackColor = '--p-spinner-track-color';
8927
+ const getComponentCss$m = (color, size) => {
8928
+ const dimension = `var(${cssVarSize},${leadingNormal})`;
8929
+ const strokeDasharray = '69'; // C = 2πR
8930
+ const animationDuration = `var(${cssVariableAnimationDuration}, ${durationXl})`;
9036
8931
  return getCss({
9037
8932
  '@global': {
9038
8933
  '@keyframes rotate': {
@@ -9045,49 +8940,61 @@ const getComponentCss$m = (size) => {
9045
8940
  },
9046
8941
  '@keyframes dash': {
9047
8942
  '0%': {
9048
- strokeDashoffset: 57,
8943
+ strokeDashoffset: 69,
9049
8944
  transform: 'rotateZ(0)',
9050
8945
  },
9051
8946
  '50%, 75%': {
9052
- strokeDashoffset: 20,
8947
+ strokeDashoffset: 24,
9053
8948
  transform: 'rotateZ(80deg)',
9054
8949
  },
9055
8950
  '100%': {
9056
- strokeDashoffset: 57,
8951
+ strokeDashoffset: 69,
9057
8952
  transform: 'rotateZ(360deg)',
9058
8953
  },
9059
8954
  },
9060
8955
  ':host': {
9061
8956
  display: 'inline-flex',
9062
- color: colorPrimary,
8957
+ verticalAlign: 'top',
9063
8958
  ...addImportantToEachRule({
9064
- verticalAlign: 'top',
9065
8959
  ...hostHiddenStyles,
9066
8960
  }),
9067
8961
  },
8962
+ div: {
8963
+ width: dimension,
8964
+ height: dimension,
8965
+ fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
8966
+ ...buildResponsiveStyles(size, (s) => ({
8967
+ fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
8968
+ })),
8969
+ },
9068
8970
  svg: {
9069
8971
  display: 'block', // for correct vertical alignment
9070
8972
  fill: 'none',
9071
- animation: `$rotate ${animationDuration} steps(50) infinite`,
8973
+ strokeWidth: 1.5,
8974
+ animation: `rotate ${animationDuration} steps(50) infinite`,
9072
8975
  },
9073
8976
  circle: {
9074
8977
  '&:first-child': {
9075
- stroke: colorContrastLower,
8978
+ stroke: `var(${cssVarTrackColor},${colorContrastLower})`,
8979
+ '@supports (color: oklch(from red l c h))': {
8980
+ stroke: `var(${cssVarTrackColor},oklch(from var(${cssVarColor},${colorMap$3[color]}) l c h/.2))`,
8981
+ },
8982
+ ...forcedColorsMediaQuery({
8983
+ stroke: addImportantToRule('none'),
8984
+ }),
9076
8985
  },
9077
8986
  '&:last-child': {
9078
- animation: `$dash ${animationDuration} steps(50) infinite`,
9079
- stroke: 'currentcolor', // necessary for proper color inheritance
8987
+ stroke: `var(${cssVarColor},${colorMap$3[color]})`,
8988
+ ...forcedColorsMediaQuery({
8989
+ stroke: 'CanvasText',
8990
+ }),
9080
8991
  strokeDasharray: strokeDasharray
9081
8992
  ,
9082
8993
  strokeLinecap: 'round',
8994
+ animation: `dash ${animationDuration} steps(50) infinite`,
9083
8995
  },
9084
8996
  },
9085
8997
  },
9086
- root: {
9087
- display: 'block',
9088
- ...buildResponsiveStyles(size, (s) => sizeMap$1[s]),
9089
- strokeWidth: 1.5,
9090
- },
9091
8998
  'sr-only': getHiddenTextJssStyle(),
9092
8999
  });
9093
9000
  };
@@ -9103,10 +9010,6 @@ const svgNumber = [
9103
9010
  '<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"/>',
9104
9011
  '<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"/>',
9105
9012
  ];
9106
- // CSS Variable defined in fontHyphenationStyle
9107
- /**
9108
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9109
- */
9110
9013
  const getComponentCss$l = (state, disabled) => {
9111
9014
  const isStateCurrent = state === 'current';
9112
9015
  const isStateCurrentOrUndefined = !state || isStateCurrent;
@@ -9218,10 +9121,6 @@ const getColors$1 = (checked, loading) => {
9218
9121
  textColor: colorPrimary,
9219
9122
  };
9220
9123
  };
9221
- // CSS Variable defined in fontHyphenationStyle
9222
- /**
9223
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9224
- */
9225
9124
  const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisabled, isLoading, isCompact) => {
9226
9125
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, toggleBackgroundColor, textColor } = getColors$1(isChecked, isLoading);
9227
9126
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
@@ -9234,7 +9133,6 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9234
9133
  const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${fontLineHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
9235
9134
  const toggleDimension = `calc(var(${cssVarInternalSwitchScaling}) * 1.25rem)`;
9236
9135
  const toggleTranslateX = `calc(var(${cssVarInternalSwitchScaling}) * .1875rem)`;
9237
- const spinnerDimension = buttonHeight;
9238
9136
  return getCss({
9239
9137
  '@global': {
9240
9138
  ':host': {
@@ -9309,7 +9207,6 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9309
9207
  },
9310
9208
  },
9311
9209
  toggle: {
9312
- forcedColorAdjust: 'none',
9313
9210
  display: 'flex',
9314
9211
  placeItems: 'center',
9315
9212
  placeContent: 'center',
@@ -9319,14 +9216,16 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9319
9216
  background: toggleBackgroundColor,
9320
9217
  transition: getTransition('transform'),
9321
9218
  transform: `translate3d(${isChecked ? `calc(${buttonWidth} - ${buttonBorderWidth} * 2 - 100% - ${toggleTranslateX})` : toggleTranslateX}, 0, 0)`,
9219
+ ...forcedColorsMediaQuery({
9220
+ background: 'CanvasText',
9221
+ }),
9322
9222
  '&:dir(rtl)': {
9323
9223
  transform: `translate3d(calc(${isChecked ? `calc(${buttonWidth} - ${buttonBorderWidth} * 2 - 100% - ${toggleTranslateX})` : toggleTranslateX} * -1), 0, 0)`,
9324
9224
  },
9325
9225
  },
9326
9226
  ...(isLoading && {
9327
9227
  spinner: {
9328
- width: spinnerDimension,
9329
- height: spinnerDimension,
9228
+ '--p-spinner-size': buttonHeight,
9330
9229
  },
9331
9230
  }),
9332
9231
  // .loading
@@ -9681,10 +9580,6 @@ const getComponentCss$9 = () => {
9681
9580
  };
9682
9581
 
9683
9582
  const cssVarInternalTagDismissibleScaling = '--p-internal-tag-dismissible-scaling';
9684
- // CSS Variable defined in fontHyphenationStyle
9685
- /**
9686
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9687
- */
9688
9583
  const getComponentCss$8 = (hasLabel, isCompact) => {
9689
9584
  const buttonPaddingBlock = hasLabel
9690
9585
  ? `calc(16.8px * (var(${cssVarInternalTagDismissibleScaling}) - 0.64285714))`
@@ -9750,26 +9645,26 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
9750
9645
  const colorTextMap = {
9751
9646
  primary: colorCanvas,
9752
9647
  secondary: colorPrimary,
9753
- info: colorPrimary,
9754
- success: colorPrimary,
9755
- warning: colorPrimary,
9756
- error: colorPrimary,
9648
+ info: colorCanvas,
9649
+ success: colorCanvas,
9650
+ warning: colorCanvas,
9651
+ error: colorCanvas,
9757
9652
  };
9758
9653
  const colorBackgroundMap = {
9759
9654
  primary: colorPrimary,
9760
9655
  secondary: colorFrostedStrong,
9761
- info: colorInfoFrosted,
9762
- success: colorSuccessFrosted,
9763
- warning: colorWarningFrosted,
9764
- error: colorErrorFrosted,
9656
+ info: colorInfo,
9657
+ success: colorSuccess,
9658
+ warning: colorWarning,
9659
+ error: colorError,
9765
9660
  };
9766
9661
  const colorBackgroundHoverMap = {
9767
9662
  primary: colorContrastHigh,
9768
9663
  secondary: colorFrosted,
9769
- info: colorInfoFrostedSoft,
9770
- success: colorSuccessFrostedSoft,
9771
- warning: colorWarningFrostedSoft,
9772
- error: colorErrorFrostedSoft,
9664
+ info: colorInfoMedium,
9665
+ success: colorSuccessMedium,
9666
+ warning: colorWarningMedium,
9667
+ error: colorErrorMedium,
9773
9668
  };
9774
9669
  const getColors = (variant) => {
9775
9670
  return {
@@ -9798,7 +9693,10 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
9798
9693
  padding: compact ? '1px 6px' : `${spacingStaticXSmall} 9px`,
9799
9694
  borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXSmall} + (${fontLineHeight} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
9800
9695
  font: textXSmallStyle.font,
9801
- ...frostedGlassStyle,
9696
+ ...(variant === 'secondary' && {
9697
+ WebkitBackdropFilter: blurFrosted,
9698
+ backdropFilter: blurFrosted,
9699
+ }),
9802
9700
  color: textColor,
9803
9701
  background: backgroundColor,
9804
9702
  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
@@ -9931,19 +9829,7 @@ const getComponentCss$5 = () => {
9931
9829
 
9932
9830
  const TEXT_TAGS = ['p', 'span', 'div', 'address', 'blockquote', 'figcaption', 'cite', 'time', 'legend'];
9933
9831
 
9934
- const sizeMap = {
9935
- 'xx-small': fontSizeTextXXSmall,
9936
- 'x-small': fontSizeTextXSmall,
9937
- small: fontSizeTextSmall,
9938
- medium: fontSizeTextMedium,
9939
- large: fontSizeTextLarge,
9940
- 'x-large': fontSizeTextXLarge,
9941
- };
9942
- // CSS Variable defined in fontHyphenationStyle
9943
- /**
9944
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9945
- */
9946
- const getComponentCss$4 = (size, weight, align, color, ellipsis) => {
9832
+ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
9947
9833
  return getCss({
9948
9834
  '@global': {
9949
9835
  ':host': {
@@ -9952,19 +9838,35 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis) => {
9952
9838
  ...hostHiddenStyles,
9953
9839
  }),
9954
9840
  },
9955
- [`::slotted(:is(${TEXT_TAGS.join()}))`]: addImportantToEachRule(getTypographySlottedJssStyle()),
9841
+ [`::slotted(:is(${TEXT_TAGS.join()}))`]: addImportantToEachRule({
9842
+ all: 'unset',
9843
+ }),
9844
+ },
9845
+ root: {
9846
+ all: 'unset',
9847
+ display: 'block',
9848
+ font: `${weightMap[weight]} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
9849
+ ...buildResponsiveStyles(size, (v) => ({
9850
+ fontSize: sizeMap$1[v],
9851
+ })),
9852
+ color: colorMap$3[color],
9853
+ textAlign: align,
9854
+ hyphens,
9855
+ ...((hyphens === 'auto' || hyphens === 'manual') && {
9856
+ overflowWrap: 'break-word',
9857
+ }),
9858
+ ...(ellipsis && {
9859
+ maxWidth: '100%',
9860
+ overflow: 'hidden',
9861
+ textOverflow: 'ellipsis',
9862
+ whiteSpace: 'nowrap',
9863
+ }),
9956
9864
  },
9957
- root: getTypographyRootJssStyle(textSmallStyle, buildResponsiveStyles(size, (sizeValue) => ({
9958
- fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap[sizeValue],
9959
- fontWeight: getFontWeight(weight),
9960
- })), align, color, ellipsis),
9961
9865
  });
9962
9866
  };
9963
9867
 
9964
9868
  const cssVarInternalTextareaScaling = '--p-internal-textarea-scaling';
9965
- // CSS Variable defined in fontHyphenationStyle
9966
9869
  /**
9967
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
9968
9870
  * @css-variable {"name":"--p-textarea-field-sizing","description":"Controls CSS `field-sizing` for textarea.","defaultValue":"unset"}
9969
9871
  * @css-variable {"name":"--p-textarea-min-width","description":"Minimum width of the textarea.","defaultValue":"52px"}
9970
9872
  * @css-variable {"name":"--p-textarea-max-width","description":"Maximum width of the textarea.","defaultValue":"unset"}
@@ -10077,10 +9979,6 @@ const getKeyframesMobile = (direction, bottomVar) => getKeyframes(direction, {
10077
9979
  transform: `translate3d(0,calc(var(${bottomVar}) + 100%),0)`, // space before and after "+" is crucial
10078
9980
  });
10079
9981
  const toastCloseClassName = 'close';
10080
- // CSS Variable defined in fontHyphenationStyle
10081
- /**
10082
- * @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
10083
- */
10084
9982
  const getComponentCss$1 = () => {
10085
9983
  return getCss({
10086
9984
  '@global': {
@@ -10154,6 +10052,9 @@ const getComponentCss = (size) => {
10154
10052
  svg: {
10155
10053
  ...sizingStyles,
10156
10054
  fill: colorPrimary,
10055
+ ...forcedColorsMediaQuery({
10056
+ fill: 'CanvasText',
10057
+ }),
10157
10058
  },
10158
10059
  },
10159
10060
  });