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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/CHANGELOG.md +72 -4
  2. package/cjs/lib/components/banner.wrapper.cjs +3 -3
  3. package/esm/lib/components/accordion.wrapper.d.ts +8 -0
  4. package/esm/lib/components/banner.wrapper.d.ts +37 -15
  5. package/esm/lib/components/banner.wrapper.mjs +3 -3
  6. package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
  7. package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
  8. package/esm/lib/components/button.wrapper.d.ts +14 -0
  9. package/esm/lib/components/canvas.wrapper.d.ts +6 -0
  10. package/esm/lib/components/carousel.wrapper.d.ts +22 -0
  11. package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
  12. package/esm/lib/components/crest.wrapper.d.ts +2 -0
  13. package/esm/lib/components/display.wrapper.d.ts +8 -0
  14. package/esm/lib/components/divider.wrapper.d.ts +4 -0
  15. package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
  16. package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
  17. package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
  18. package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
  19. package/esm/lib/components/flag.wrapper.d.ts +4 -0
  20. package/esm/lib/components/flyout.wrapper.d.ts +12 -0
  21. package/esm/lib/components/heading.wrapper.d.ts +12 -0
  22. package/esm/lib/components/icon.wrapper.d.ts +6 -0
  23. package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
  24. package/esm/lib/components/input-date.wrapper.d.ts +24 -0
  25. package/esm/lib/components/input-email.wrapper.d.ts +28 -0
  26. package/esm/lib/components/input-month.wrapper.d.ts +24 -0
  27. package/esm/lib/components/input-number.wrapper.d.ts +28 -0
  28. package/esm/lib/components/input-password.wrapper.d.ts +26 -0
  29. package/esm/lib/components/input-search.wrapper.d.ts +28 -0
  30. package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
  31. package/esm/lib/components/input-text.wrapper.d.ts +26 -0
  32. package/esm/lib/components/input-time.wrapper.d.ts +24 -0
  33. package/esm/lib/components/input-url.wrapper.d.ts +26 -0
  34. package/esm/lib/components/input-week.wrapper.d.ts +24 -0
  35. package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
  36. package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
  37. package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
  38. package/esm/lib/components/link.wrapper.d.ts +10 -0
  39. package/esm/lib/components/modal.wrapper.d.ts +12 -0
  40. package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
  41. package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
  42. package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
  43. package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
  44. package/esm/lib/components/pagination.wrapper.d.ts +10 -0
  45. package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
  46. package/esm/lib/components/popover.wrapper.d.ts +2 -0
  47. package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
  48. package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
  49. package/esm/lib/components/scroller.wrapper.d.ts +6 -0
  50. package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
  51. package/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
  52. package/esm/lib/components/select-option.wrapper.d.ts +2 -0
  53. package/esm/lib/components/select.wrapper.d.ts +20 -0
  54. package/esm/lib/components/sheet.wrapper.d.ts +8 -0
  55. package/esm/lib/components/spinner.wrapper.d.ts +4 -0
  56. package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
  57. package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
  58. package/esm/lib/components/switch.wrapper.d.ts +14 -0
  59. package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
  60. package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
  61. package/esm/lib/components/table.wrapper.d.ts +6 -0
  62. package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
  63. package/esm/lib/components/tabs.wrapper.d.ts +8 -0
  64. package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
  65. package/esm/lib/components/tag.wrapper.d.ts +6 -0
  66. package/esm/lib/components/text-list.wrapper.d.ts +2 -0
  67. package/esm/lib/components/text.wrapper.d.ts +14 -0
  68. package/esm/lib/components/textarea.wrapper.d.ts +30 -0
  69. package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
  70. package/esm/lib/types.d.ts +5 -0
  71. package/global-styles/cn/index.css +1 -0
  72. package/global-styles/index.css +1 -0
  73. package/global-styles/variables.css +1 -0
  74. package/package.json +4 -2
  75. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +723 -775
  76. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +16 -77
  77. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
  78. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +11 -6
  79. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
  80. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +4 -6
  81. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -4
  82. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +723 -775
  83. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +15 -76
  84. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
  85. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +11 -6
  86. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
  87. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +5 -7
  88. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -5
  89. package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
  90. package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
  91. package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
  92. package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
  93. package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
  94. package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
  95. package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
  96. package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
  97. package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
  98. package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
  99. package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
  100. package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
  101. package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
  102. package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
  103. package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
  104. package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
  105. package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
  106. package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
  107. package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
  108. package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
  109. package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
  110. package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
  111. package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
  112. package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
  113. package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
  114. package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
  115. package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
  116. package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
  117. package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
  118. package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
  119. package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
  120. package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
  121. package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
  122. package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
  123. package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
  124. package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
  125. package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
  126. package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
  127. package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
  128. package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
  129. package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
  130. package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
  131. package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
  132. package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
  133. package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
  134. package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
  135. package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
  136. package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
  137. package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
  138. package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
  139. package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
  140. package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
  141. package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
  142. package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
  143. package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
  144. package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
  145. package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
  146. package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
  147. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
  148. package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
  149. package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
  150. package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
  151. package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
  152. package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
  153. package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
  154. package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
  155. package/ssr/esm/lib/dsr-components/banner.d.ts +2 -2
  156. package/ssr/esm/lib/types.d.ts +5 -0
  157. package/tailwindcss/index.css +73 -14
@@ -1,356 +1,3 @@
1
- const blurFrosted$1 = 'blur(32px)';
2
-
3
- /** @deprecated since v4.0.0, will be removed with next major release. Use backdropFilter: blurFrosted instead */
4
- const frostedGlassStyle = {
5
- WebkitBackdropFilter: blurFrosted$1,
6
- backdropFilter: blurFrosted$1,
7
- };
8
-
9
- /** @deprecated since v4.0.0, will be removed with next major release. Use 2px instead. */
10
- const borderWidthBase = '2px';
11
-
12
- /** @deprecated since v4.0.0, will be removed with next major release. Use 1px instead. */
13
- const borderWidthThin = '1px';
14
-
15
- const fontPorscheNext$1 = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
16
-
17
- /** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
18
- const fontFamily = fontPorscheNext$1;
19
-
20
- const leadingNormal$1 = 'calc(6px + 2.125ex)';
21
-
22
- /** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
23
- const fontLineHeight = leadingNormal$1;
24
-
25
- const typescaleLg$1 = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
26
-
27
- const typescaleMd$1 = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
28
-
29
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
30
- const fontSizeHeadingMedium = typescaleMd$1;
31
-
32
- const typescaleSm$1 = '1rem';
33
-
34
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
35
- const fontSizeHeadingSmall = typescaleSm$1;
36
-
37
- const typescaleXl$1 = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
38
-
39
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
40
- const fontSizeHeadingXLarge = typescaleXl$1;
41
-
42
- const typescale2Xl$1 = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
43
-
44
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xl instead. */
45
- const fontSizeHeadingXXLarge = typescale2Xl$1;
46
-
47
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
48
- const fontSizeTextLarge = typescaleLg$1;
49
-
50
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
51
- const fontSizeTextMedium = typescaleMd$1;
52
-
53
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
54
- const fontSizeTextSmall = typescaleSm$1;
55
-
56
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
57
- const fontSizeTextXLarge = typescaleXl$1;
58
-
59
- const typescaleXs$2 = '.875rem';
60
-
61
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
62
- const fontSizeTextXSmall = typescaleXs$2;
63
-
64
- const typescale2Xs$1 = '.75rem';
65
-
66
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xs instead. */
67
- const fontSizeTextXXSmall = typescale2Xs$1;
68
-
69
- /** @deprecated since v4.0.0, will be removed with next major release. Use typescale variables instead. */
70
- const fontSizeText$1 = {
71
- xxSmall: fontSizeTextXXSmall,
72
- xSmall: fontSizeTextXSmall,
73
- small: fontSizeTextSmall,
74
- medium: fontSizeTextMedium,
75
- large: fontSizeTextLarge,
76
- xLarge: fontSizeTextXLarge,
77
- };
78
-
79
- /** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
80
- const fontStyleNormal = 'normal';
81
-
82
- /** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
83
- const fontVariant = 'normal';
84
-
85
- const fontWeightNormal$1 = 400;
86
-
87
- /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
88
- const fontWeightRegular = fontWeightNormal$1;
89
-
90
- const fontWeightSemibold$1 = 600;
91
-
92
- /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightSemibold instead. */
93
- const fontWeightSemiBold = fontWeightSemibold$1;
94
-
95
- const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
96
- 'hsla(0,0%,0%,.8) 8.1%,' +
97
- 'hsla(0,0%,0%,.8) 15.5%,' +
98
- 'hsla(0,0%,0%,.8) 22.5%,' +
99
- 'hsla(0,0%,0%,.78) 29%,' +
100
- 'hsla(0,0%,0%,.73) 35.3%,' +
101
- 'hsla(0,0%,0%,.67) 41.2%,' +
102
- 'hsla(0,0%,0%,.6) 47.1%,' +
103
- 'hsla(0,0%,0%,.52) 52.9%,' +
104
- 'hsla(0,0%,0%,.44) 58.8%,' +
105
- 'hsla(0,0%,0%,.33) 64.7%,' +
106
- 'hsla(0,0%,0%,.22) 71%,' +
107
- 'hsla(0,0%,0%,.12) 77.5%,' +
108
- 'hsla(0,0%,0%,.05) 84.5%,' +
109
- 'hsla(0,0%,0%,.011) 91.9%,' +
110
- 'hsla(0,0%,0%,0) 100%';
111
-
112
- /** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
113
- const gradientToBottomStyle = {
114
- background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
115
- };
116
-
117
- /** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
118
- const gradientToTopStyle = {
119
- background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
120
- };
121
-
122
- const breakpointBase = 0;
123
-
124
- const breakpointLg = 1300;
125
-
126
- const breakpointL = breakpointLg;
127
-
128
- const breakpointMd = 1000;
129
-
130
- const breakpointM = breakpointMd;
131
-
132
- const breakpointSm = 760;
133
-
134
- const breakpointS = breakpointSm;
135
-
136
- const breakpointXl = 1760;
137
-
138
- const breakpointXL = breakpointXl;
139
-
140
- const breakpointXs = 480;
141
-
142
- const breakpointXS = breakpointXs;
143
-
144
- const breakpoint2Xl = 1920;
145
-
146
- const breakpointXXL = breakpoint2Xl;
147
-
148
- const breakpoint = {
149
- base: breakpointBase,
150
- xs: breakpointXS,
151
- s: breakpointS,
152
- m: breakpointM,
153
- l: breakpointL,
154
- xl: breakpointXL,
155
- xxl: breakpointXXL,
156
- };
157
-
158
- function getMediaQueryMin(min) {
159
- return `@media(min-width:${breakpoint[min]}px)`;
160
- }
161
-
162
- const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
163
-
164
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
165
- const spacingFluidMedium = spacingFluidMd;
166
-
167
- const gridGap = spacingFluidMedium;
168
-
169
- const _gridWidthMax = '2560px';
170
- // fluid sizing calculated by https://fluidtypography.com/#app-get-started
171
- const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
172
- const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
173
- const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
174
-
175
- const columnMap = {
176
- narrow: 4,
177
- basic: 2,
178
- extended: 1,
179
- };
180
- const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
181
- const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
182
- const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
183
- const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
184
- const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
185
-
186
- const gridFullOffset = _gridPadding;
187
-
188
- const gridWideOffsetBase = _gridSafeZoneBase;
189
-
190
- const gridWideOffsetS = _gridSafeZoneS;
191
-
192
- const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
193
-
194
- const gridWideOffset = {
195
- base: gridWideOffsetBase,
196
- s: gridWideOffsetS,
197
- xxl: gridWideOffsetXXL,
198
- };
199
-
200
- const gridExtendedOffsetBase = _gridSafeZoneBase;
201
-
202
- const gridExtendedOffsetS = _getGridOffsetS('extended');
203
-
204
- const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
205
-
206
- const gridExtendedOffset = {
207
- base: gridExtendedOffsetBase,
208
- s: gridExtendedOffsetS,
209
- xxl: gridExtendedOffsetXXL,
210
- };
211
-
212
- const gridBasicOffsetBase = _gridSafeZoneBase;
213
-
214
- const gridBasicOffsetS = _getGridOffsetS('basic');
215
-
216
- const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
217
-
218
- const gridBasicOffset = {
219
- base: gridBasicOffsetBase,
220
- s: gridBasicOffsetS,
221
- xxl: gridBasicOffsetXXL,
222
- };
223
-
224
- const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
225
-
226
- function getMediaQueryMax(max) {
227
- return `@media(max-width:${breakpoint[max] - 1}px)`;
228
- }
229
-
230
- const durationLg = '.6s';
231
-
232
- /** @deprecated since v4.0.0, will be removed with next major release. Use durationLg instead. */
233
- const motionDurationLong = durationLg;
234
-
235
- const durationMd$1 = '.4s';
236
-
237
- /** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
238
- const motionDurationModerate = durationMd$1;
239
-
240
- const durationSm$1 = '.25s';
241
-
242
- /** @deprecated since v4.0.0, will be removed with next major release. Use durationSm instead. */
243
- const motionDurationShort = durationSm$1;
244
-
245
- const durationXl$1 = '1.2s';
246
-
247
- /** @deprecated since v4.0.0, will be removed with next major release. Use durationXl instead. */
248
- const motionDurationVeryLong = durationXl$1;
249
-
250
- const easeInOut = 'cubic-bezier(.25,.1,.25,1)';
251
-
252
- /** @deprecated since v4.0.0, will be removed with next major release. Use easeInOut instead. */
253
- const motionEasingBase = easeInOut;
254
-
255
- const easeIn = 'cubic-bezier(0,0,.2,1)';
256
-
257
- /** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
258
- const motionEasingIn = easeIn;
259
-
260
- const easeOut = 'cubic-bezier(.4,0,.5,1)';
261
-
262
- /** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
263
- const motionEasingOut = easeOut;
264
-
265
- const shadowLg = '0px 8px 40px rgba(0,0,0,.16)';
266
-
267
- /** @deprecated since v4.0.0, will be removed with next major release. Use boxShadow: shadowLg instead. */
268
- const dropShadowHighStyle = {
269
- boxShadow: shadowLg,
270
- };
271
-
272
- const spacingFluidLg = 'clamp(32px, 2.75vw + 23px, 76px)';
273
-
274
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidLg instead. */
275
- const spacingFluidLarge = spacingFluidLg;
276
-
277
- const spacingFluidSm = 'clamp(8px, 0.5vw + 6px, 16px)';
278
-
279
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidSm instead. */
280
- const spacingFluidSmall = spacingFluidSm;
281
-
282
- const spacingFluidXs = 'clamp(4px, 0.25vw + 3px, 8px)';
283
-
284
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidXs instead. */
285
- const spacingFluidXSmall = spacingFluidXs;
286
-
287
- const spacingStaticMd$1 = '16px';
288
-
289
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticMd instead. */
290
- const spacingStaticMedium = spacingStaticMd$1;
291
-
292
- const spacingStaticSm$2 = '8px';
293
-
294
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticSm instead. */
295
- const spacingStaticSmall = spacingStaticSm$2;
296
-
297
- const spacingStaticXs$3 = '4px';
298
-
299
- /** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticXs instead. */
300
- const spacingStaticXSmall = spacingStaticXs$3;
301
-
302
- const spacingStaticXs$2 = spacingStaticXs$3;
303
-
304
- const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
305
- const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
306
-
307
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingSm instead. */
308
- const headingSmallStyle = {
309
- font: `${_headingFontPartA}${fontSizeHeadingSmall}${_headingFontPartB}`,
310
- };
311
-
312
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingMd instead. */
313
- const headingMediumStyle = {
314
- font: `${_headingFontPartA}${fontSizeHeadingMedium}${_headingFontPartB}`,
315
- };
316
-
317
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingXl instead. */
318
- const headingXLargeStyle = {
319
- font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
320
- };
321
-
322
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseHeading2Xl instead. */
323
- const headingXXLargeStyle = {
324
- font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
325
- };
326
-
327
- const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
328
- const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
329
-
330
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseText2Xs instead. */
331
- const textXXSmallStyle = {
332
- font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
333
- };
334
-
335
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
336
- const textXSmallStyle = {
337
- font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
338
- };
339
-
340
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
341
- const textSmallStyle = {
342
- font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
343
- };
344
-
345
- /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextMd instead. */
346
- const textMediumStyle = {
347
- font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
348
- };
349
-
350
- const proseTextSmStyle = {
351
- font: `normal normal ${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
352
- };
353
-
354
1
  const alphaDisabled = 0.4;
355
2
 
356
3
  const blurFrosted = 'var(--p-blur-frosted)';
@@ -433,9 +80,9 @@ const colorWarningFrosted = 'var(--p-color-warning-frosted)';
433
80
 
434
81
  const colorWarningMedium = 'var(--p-color-warning-medium)';
435
82
 
436
- const fontPorscheNext = 'var(--p-font-porsche-next)';
83
+ const fontPorscheNext$1 = 'var(--p-font-porsche-next)';
437
84
 
438
- const leadingNormal = 'var(--p-leading-normal)';
85
+ const leadingNormal$1 = 'var(--p-leading-normal)';
439
86
 
440
87
  const typescale2Xl = 'var(--p-typescale-2xl)';
441
88
 
@@ -451,7 +98,7 @@ const typescaleLg = 'var(--p-typescale-lg)';
451
98
 
452
99
  const typescaleMd = 'var(--p-typescale-md)';
453
100
 
454
- const typescaleSm = 'var(--p-typescale-sm)';
101
+ const typescaleSm$1 = 'var(--p-typescale-sm)';
455
102
 
456
103
  const typescaleXl = 'var(--p-typescale-xl)';
457
104
 
@@ -459,16 +106,34 @@ const typescaleXs$1 = 'var(--p-typescale-xs)';
459
106
 
460
107
  const fontWeightBold = 'var(--p-font-weight-bold)';
461
108
 
462
- const fontWeightNormal = 'var(--p-font-weight-normal)';
109
+ const fontWeightNormal$1 = 'var(--p-font-weight-normal)';
463
110
 
464
111
  const fontWeightSemibold = 'var(--p-font-weight-semibold)';
465
112
 
466
- const durationMd = 'var(--p-duration-md)';
113
+ const durationLg = 'var(--p-duration-lg)';
114
+
115
+ const durationMd$1 = 'var(--p-duration-md)';
467
116
 
468
117
  const durationSm = 'var(--p-duration-sm)';
469
118
 
470
119
  const durationXl = 'var(--p-duration-xl)';
471
120
 
121
+ const easeIn$1 = 'var(--p-ease-in)';
122
+
123
+ const easeInOut = 'var(--p-ease-in-out)';
124
+
125
+ const easeOut$1 = 'var(--p-ease-out)';
126
+
127
+ const shadowLg = 'var(--p-shadow-lg)';
128
+
129
+ const spacingFluidLg = 'var(--p-spacing-fluid-lg)';
130
+
131
+ const spacingFluidMd$1 = 'var(--p-spacing-fluid-md)';
132
+
133
+ const spacingFluidSm = 'var(--p-spacing-fluid-sm)';
134
+
135
+ const spacingFluidXs = 'var(--p-spacing-fluid-xs)';
136
+
472
137
  const spacingStaticMd = 'var(--p-spacing-static-md)';
473
138
 
474
139
  const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
@@ -480,20 +145,17 @@ const forcedColorsMediaQuery = (style) => {
480
145
  };
481
146
 
482
147
  const motionDurationMap = {
483
- short: motionDurationShort,
484
- moderate: motionDurationModerate,
485
- long: motionDurationLong,
486
- veryLong: motionDurationVeryLong,
148
+ short: durationSm,
149
+ moderate: durationMd$1,
150
+ long: durationLg,
151
+ veryLong: durationXl,
487
152
  };
488
153
  const motionEasingMap = {
489
- base: motionEasingBase,
490
- in: motionEasingIn,
491
- out: motionEasingOut,
154
+ base: easeInOut,
155
+ in: easeIn$1,
156
+ out: easeOut$1,
492
157
  linear: 'linear',
493
158
  };
494
- const dismissButtonJssStyle = {
495
- '--p-internal-button-scaling': 0.5,
496
- };
497
159
  const cssVariableTransitionDuration = '--p-transition-duration';
498
160
  const cssVariableAnimationDuration = '--p-animation-duration';
499
161
  const getAnimation = (name, duration = 'short', easing = 'base') => {
@@ -514,7 +176,7 @@ const addImportantToEachRule = (input) => {
514
176
  };
515
177
  const getFocusBaseStyles = (offset = 2) => {
516
178
  return {
517
- outline: `${borderWidthBase} solid ${colorFocus}`,
179
+ outline: `2px solid ${colorFocus}`,
518
180
  outlineOffset: `${offset}px`,
519
181
  ...forcedColorsMediaQuery({
520
182
  outlineColor: 'Highlight',
@@ -582,6 +244,14 @@ const hoverMediaQuery = (style) => {
582
244
  return { '@media(hover:hover)': style };
583
245
  };
584
246
 
247
+ /**
248
+ * Utility to wrap JSS styles in `@media (pointer: coarse)`,
249
+ * which targets touch devices with an imprecise pointer.
250
+ */
251
+ const pointerCoarseMediaQuery = (style) => {
252
+ return { '@media(pointer:coarse)': style };
253
+ };
254
+
585
255
  function _extends() {
586
256
  _extends = Object.assign ? Object.assign.bind() : function (target) {
587
257
  for (var i = 1; i < arguments.length; i++) {
@@ -3757,15 +3427,209 @@ function requireDist () {
3757
3427
  };
3758
3428
  }
3759
3429
 
3760
- dist = jssCombineAndSortMQ;
3761
- return dist;
3430
+ dist = jssCombineAndSortMQ;
3431
+ return dist;
3432
+ }
3433
+
3434
+ var distExports = requireDist();
3435
+ var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
3436
+
3437
+ const isDisabledOrLoading = (disabled, loading) => {
3438
+ return disabled || loading;
3439
+ };
3440
+
3441
+ const fontPorscheNext = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
3442
+
3443
+ /** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
3444
+ const fontFamily = fontPorscheNext;
3445
+
3446
+ const leadingNormal = 'calc(6px + 2.125ex)';
3447
+
3448
+ /** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
3449
+ const fontLineHeight = leadingNormal;
3450
+
3451
+ const typescaleSm = '1rem';
3452
+
3453
+ /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
3454
+ const fontSizeTextSmall = typescaleSm;
3455
+
3456
+ const typescaleXs = '.875rem';
3457
+
3458
+ /** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
3459
+ const fontSizeTextXSmall = typescaleXs;
3460
+
3461
+ /** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
3462
+ const fontStyleNormal = 'normal';
3463
+
3464
+ /** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
3465
+ const fontVariant = 'normal';
3466
+
3467
+ const fontWeightNormal = 400;
3468
+
3469
+ /** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
3470
+ const fontWeightRegular = fontWeightNormal;
3471
+
3472
+ const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
3473
+ 'hsla(0,0%,0%,.8) 8.1%,' +
3474
+ 'hsla(0,0%,0%,.8) 15.5%,' +
3475
+ 'hsla(0,0%,0%,.8) 22.5%,' +
3476
+ 'hsla(0,0%,0%,.78) 29%,' +
3477
+ 'hsla(0,0%,0%,.73) 35.3%,' +
3478
+ 'hsla(0,0%,0%,.67) 41.2%,' +
3479
+ 'hsla(0,0%,0%,.6) 47.1%,' +
3480
+ 'hsla(0,0%,0%,.52) 52.9%,' +
3481
+ 'hsla(0,0%,0%,.44) 58.8%,' +
3482
+ 'hsla(0,0%,0%,.33) 64.7%,' +
3483
+ 'hsla(0,0%,0%,.22) 71%,' +
3484
+ 'hsla(0,0%,0%,.12) 77.5%,' +
3485
+ 'hsla(0,0%,0%,.05) 84.5%,' +
3486
+ 'hsla(0,0%,0%,.011) 91.9%,' +
3487
+ 'hsla(0,0%,0%,0) 100%';
3488
+
3489
+ /** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
3490
+ const gradientToBottomStyle = {
3491
+ background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
3492
+ };
3493
+
3494
+ /** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
3495
+ const gradientToTopStyle = {
3496
+ background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
3497
+ };
3498
+
3499
+ const breakpointBase = 0;
3500
+
3501
+ const breakpointLg = 1300;
3502
+
3503
+ const breakpointL = breakpointLg;
3504
+
3505
+ const breakpointMd = 1000;
3506
+
3507
+ const breakpointM = breakpointMd;
3508
+
3509
+ const breakpointSm = 760;
3510
+
3511
+ const breakpointS = breakpointSm;
3512
+
3513
+ const breakpointXl = 1760;
3514
+
3515
+ const breakpointXL = breakpointXl;
3516
+
3517
+ const breakpointXs = 480;
3518
+
3519
+ const breakpointXS = breakpointXs;
3520
+
3521
+ const breakpoint2Xl = 1920;
3522
+
3523
+ const breakpointXXL = breakpoint2Xl;
3524
+
3525
+ const breakpoint = {
3526
+ base: breakpointBase,
3527
+ xs: breakpointXS,
3528
+ s: breakpointS,
3529
+ m: breakpointM,
3530
+ l: breakpointL,
3531
+ xl: breakpointXL,
3532
+ xxl: breakpointXXL,
3533
+ };
3534
+
3535
+ function getMediaQueryMin(min) {
3536
+ return `@media(min-width:${breakpoint[min]}px)`;
3537
+ }
3538
+
3539
+ const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
3540
+
3541
+ /** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
3542
+ const spacingFluidMedium = spacingFluidMd;
3543
+
3544
+ const gridGap = spacingFluidMedium;
3545
+
3546
+ const _gridWidthMax = '2560px';
3547
+ // fluid sizing calculated by https://fluidtypography.com/#app-get-started
3548
+ const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
3549
+ const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
3550
+ const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
3551
+
3552
+ const columnMap = {
3553
+ narrow: 4,
3554
+ basic: 2,
3555
+ extended: 1,
3556
+ };
3557
+ const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
3558
+ const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
3559
+ const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
3560
+ const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
3561
+ const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
3562
+
3563
+ const gridFullOffset = _gridPadding;
3564
+
3565
+ const gridWideOffsetBase = _gridSafeZoneBase;
3566
+
3567
+ const gridWideOffsetS = _gridSafeZoneS;
3568
+
3569
+ const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
3570
+
3571
+ const gridWideOffset = {
3572
+ base: gridWideOffsetBase,
3573
+ s: gridWideOffsetS,
3574
+ xxl: gridWideOffsetXXL,
3575
+ };
3576
+
3577
+ const gridExtendedOffsetBase = _gridSafeZoneBase;
3578
+
3579
+ const gridExtendedOffsetS = _getGridOffsetS('extended');
3580
+
3581
+ const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
3582
+
3583
+ const gridExtendedOffset = {
3584
+ base: gridExtendedOffsetBase,
3585
+ s: gridExtendedOffsetS,
3586
+ xxl: gridExtendedOffsetXXL,
3587
+ };
3588
+
3589
+ const gridBasicOffsetBase = _gridSafeZoneBase;
3590
+
3591
+ const gridBasicOffsetS = _getGridOffsetS('basic');
3592
+
3593
+ const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
3594
+
3595
+ const gridBasicOffset = {
3596
+ base: gridBasicOffsetBase,
3597
+ s: gridBasicOffsetS,
3598
+ xxl: gridBasicOffsetXXL,
3599
+ };
3600
+
3601
+ const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
3602
+
3603
+ function getMediaQueryMax(max) {
3604
+ return `@media(max-width:${breakpoint[max] - 1}px)`;
3762
3605
  }
3763
3606
 
3764
- var distExports = requireDist();
3765
- var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
3607
+ const durationMd = '.4s';
3766
3608
 
3767
- const isDisabledOrLoading = (disabled, loading) => {
3768
- return disabled || loading;
3609
+ /** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
3610
+ const motionDurationModerate = durationMd;
3611
+
3612
+ const easeIn = 'cubic-bezier(0,0,.2,1)';
3613
+
3614
+ /** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
3615
+ const motionEasingIn = easeIn;
3616
+
3617
+ const easeOut = 'cubic-bezier(.4,0,.5,1)';
3618
+
3619
+ /** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
3620
+ const motionEasingOut = easeOut;
3621
+
3622
+ const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
3623
+ const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
3624
+
3625
+ /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
3626
+ const textXSmallStyle = {
3627
+ font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
3628
+ };
3629
+
3630
+ /** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
3631
+ const textSmallStyle = {
3632
+ font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
3769
3633
  };
3770
3634
 
3771
3635
  const parseJSON = (prop) => {
@@ -3903,7 +3767,7 @@ const OPTION_LIST_SAFE_ZONE = 6;
3903
3767
 
3904
3768
  const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
3905
3769
 
3906
- const prefix = `[Porsche Design System v${"4.0.0-beta.4"}]` // this part isn't covered by unit tests
3770
+ const prefix = `[Porsche Design System v${"4.0.0-rc.1"}]` // this part isn't covered by unit tests
3907
3771
  ;
3908
3772
  const consoleError = (...messages) => {
3909
3773
  console.error(prefix, ...messages);
@@ -4042,7 +3906,7 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
4042
3906
  const paddingBlock = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
4043
3907
  const paddingInline = `calc(11.2px * (${compactFactor} - 0.64285714) + 12px)`;
4044
3908
  const gap = `calc(11.2px * (${compactFactor} - 0.64285714) + 4px)`;
4045
- const marginTop = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
3909
+ const paddingTop = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
4046
3910
  const isIconAlignedStart = alignMarker === 'start';
4047
3911
  return getCss({
4048
3912
  '@global': {
@@ -4091,12 +3955,12 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
4091
3955
  font: 'inherit',
4092
3956
  fontWeight: fontWeightSemibold,
4093
3957
  ...buildResponsiveStyles(size, (sizeValue) => ({
4094
- fontSize: sizeValue === 'medium' ? typescaleMd : typescaleSm,
3958
+ fontSize: sizeValue === 'medium' ? typescaleMd : typescaleSm$1,
4095
3959
  })),
4096
3960
  },
4097
3961
  details: {
4098
3962
  all: 'unset',
4099
- font: `${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`, // enables font inheritance for slotted content
3963
+ font: `${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`, // enables font inheritance for slotted content
4100
3964
  color: colorPrimary, // enables color inheritance for slotted content
4101
3965
  display: 'grid',
4102
3966
  gridTemplate: `repeat(2, auto) / ${hasSummaryBefore ? 'auto ' : ''}${isIconAlignedStart ? 'auto minmax(0, 1fr)' : 'minmax(0, 1fr) auto'}${hasSummaryAfter ? ' auto ' : ''}`,
@@ -4104,7 +3968,10 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
4104
3968
  alignItems: 'center',
4105
3969
  padding: `var(${cssVarPaddingBlock}, ${background === 'none' ? '0' : paddingBlock}) var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline})`,
4106
3970
  background: backgroundMap$1[background],
4107
- ...(background === 'frosted' && frostedGlassStyle),
3971
+ ...(background === 'frosted' && {
3972
+ WebkitBackdropFilter: blurFrosted,
3973
+ backdropFilter: blurFrosted,
3974
+ }),
4108
3975
  borderRadius: `var(${legacyRadiusSmall}, ${radiusXl})`,
4109
3976
  ...forcedColorsMediaQuery({
4110
3977
  outline: '1px solid CanvasText',
@@ -4124,12 +3991,15 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
4124
3991
  gridTemplateRows: '0fr',
4125
3992
  visibility: 'hidden', // since `::details-content` and `allow-discrete` transition doesn't work in Safari we need to take care ourselves for visibility state to be a11y compliant
4126
3993
  // as soon as all browsers are supporting `allow-discrete` reliable, visibility transition shouldn't be necessary anymore
4127
- transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationMap[duration]}), ${getTransition('grid-template-rows', duration, easing)}, ${getTransition('margin-top', duration, easing)}, ${getTransition('opacity', duration, easing)}`,
3994
+ transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationMap[duration]}), ${getTransition('grid-template-rows', duration, easing)}, ${getTransition('padding-top', duration, easing)}, ${getTransition('opacity', duration, easing)}`,
4128
3995
  },
4129
3996
  '&[open]': {
4130
3997
  '& > div': {
4131
3998
  opacity: 1,
4132
- marginTop,
3999
+ paddingTop,
4000
+ zIndex: 2, // Ensure details are above summary when using custom padding
4001
+ paddingInline: `var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline})`,
4002
+ marginInline: `calc(-1 * var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline}))`,
4133
4003
  // as soon as all browsers support calc-size(auto) to be transitionable, we can remove the grid-template-rows rule and animation
4134
4004
  gridTemplateRows: '1fr',
4135
4005
  visibility: 'inherit', // since `::details-content` and `allow-discrete` transition doesn't work in Safari we need to take care ourselves for visibility state to be a11y compliant
@@ -4199,93 +4069,6 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
4199
4069
  const TOAST_Z_INDEX = 999999;
4200
4070
  const BANNER_Z_INDEX = 99;
4201
4071
 
4202
- const getBannerPopoverResetStyles = () => {
4203
- return {
4204
- position: 'fixed',
4205
- margin: 0,
4206
- padding: 0,
4207
- inset: 'auto', // ua popover reset
4208
- width: 'auto', // ua popover reset
4209
- height: 'auto', // ua popover reset
4210
- maxWidth: '100%', // If component is wrapped in container with maxWidth
4211
- border: '0', // ua popover reset
4212
- outline: '0', // ua popover reset
4213
- overflow: 'visible', // ua popover reset
4214
- };
4215
- };
4216
-
4217
- /**
4218
- * @css-variable {"name": "--p-banner-position-top", "description": "Position top of banner", "defaultValue": "56px"}
4219
- * @css-variable {"name": "--p-banner-position-bottom", "description": "Position bottom of banner. Only has an effect below breakpoint 's'.", "defaultValue": "56px"}
4220
- */
4221
- const cssVariableTop = '--p-banner-position-top';
4222
- const cssVariableBottom = '--p-banner-position-bottom';
4223
- const cssVariableZIndex = '--p-internal-banner-z-index';
4224
- const topBottomFallback = '56px';
4225
- const getComponentCss$18 = (isOpen) => {
4226
- const easing = isOpen ? 'in' : 'out';
4227
- const transition = `visibility 0s linear var(${cssVariableTransitionDuration}, ${isOpen ? '0s' : motionDurationLong}), ${getTransition('transform', 'moderate', easing)}`;
4228
- const transitionChild = `${getTransition('opacity', 'moderate', easing)}`;
4229
- return getCss({
4230
- '@global': {
4231
- ':host': {
4232
- display: 'block',
4233
- ...addImportantToEachRule({
4234
- all: 'unset',
4235
- ...getBannerPopoverResetStyles(),
4236
- inset: `auto ${gridExtendedOffsetBase} var(${cssVariableBottom},${topBottomFallback})`,
4237
- zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
4238
- borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`, // needed for rounded box-shadow
4239
- '&::backdrop': {
4240
- display: 'none',
4241
- },
4242
- '& > :first-child': {
4243
- opacity: 0,
4244
- ...dropShadowHighStyle,
4245
- ...(isOpen
4246
- ? {
4247
- opacity: 1,
4248
- }
4249
- : {
4250
- opacity: 0,
4251
- }),
4252
- transition: transitionChild,
4253
- // // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4254
- '@supports (transition-behavior: allow-discrete)': {
4255
- transition: `${transitionChild}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4256
- },
4257
- },
4258
- ...(isOpen
4259
- ? {
4260
- visibility: 'inherit',
4261
- pointerEvents: 'inherit',
4262
- transform: 'translate3d(0,0,0)',
4263
- }
4264
- : {
4265
- visibility: 'hidden',
4266
- pointerEvents: 'none',
4267
- transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
4268
- }),
4269
- transition,
4270
- // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
4271
- '@supports (transition-behavior: allow-discrete)': {
4272
- transition: `${transition}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
4273
- },
4274
- [getMediaQueryMin('s')]: {
4275
- inset: `var(${cssVariableTop},${topBottomFallback}) ${gridExtendedOffsetS} auto`,
4276
- ...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
4277
- },
4278
- [getMediaQueryMin('xxl')]: {
4279
- insetInline: gridExtendedOffsetXXL,
4280
- },
4281
- ...hostHiddenStyles,
4282
- }),
4283
- },
4284
- ...preventFoucOfNestedElementsStyles,
4285
- },
4286
- });
4287
- };
4288
-
4289
4072
  const colorMap$3 = {
4290
4073
  primary: colorPrimary,
4291
4074
  'contrast-higher': colorContrastHigher,
@@ -4300,17 +4083,38 @@ const colorMap$3 = {
4300
4083
  inherit: 'currentcolor',
4301
4084
  };
4302
4085
 
4086
+ const notificationBackgroundMap = {
4087
+ info: colorInfoFrosted,
4088
+ warning: colorWarningFrosted,
4089
+ success: colorSuccessFrosted,
4090
+ error: colorErrorFrosted,
4091
+ };
4092
+
4093
+ const notificationColorMap = {
4094
+ info: colorInfo,
4095
+ warning: colorWarning,
4096
+ success: colorSuccess,
4097
+ error: colorError,
4098
+ };
4099
+
4100
+ const notificationIconMap = {
4101
+ info: getInlineSVGBackgroundImage('<path d="M12 3c-4.95 0-9 4.05-9 9s4.05 9 9 9 9-4.05 9-9-4.05-9-9-9m-.75 4.5h1.5V9h-1.5zm1.5 8.5h-1.5v-6h1.5z"/>'),
4102
+ warning: getInlineSVGBackgroundImage('<path d="M21.58 18.26 13.3 3.75A1.5 1.5 0 0 0 12 3a1.5 1.5 0 0 0-1.3.75l-8.28 14.5a1.5 1.5 0 0 0 0 1.5c.28.47.76.75 1.3.75h16.56a1.5 1.5 0 0 0 1.3-2.25M13 17.5h-2v-2h2zm-.4-3.5h-1.2L11 8.5h2z"/>'),
4103
+ success: getInlineSVGBackgroundImage('<path d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18m-1.26 12.69-3.8-3.8 1.07-1.05 2.73 2.73 5.25-5.26 1.06 1.06z"/>'),
4104
+ error: getInlineSVGBackgroundImage('<path d="M18 3H6a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h4l2 2 2-2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5 3.5-.4 5.5h-1.2L11 6.5zm-2 7h2v2h-2z"/>'),
4105
+ };
4106
+
4303
4107
  const sizeMap$1 = {
4304
4108
  'xx-small': typescale2Xs, // deprecated (alias)
4305
4109
  'x-small': typescaleXs$1, // deprecated (alias)
4306
- small: typescaleSm, // deprecated (alias)
4110
+ small: typescaleSm$1, // deprecated (alias)
4307
4111
  medium: typescaleMd, // deprecated (alias)
4308
4112
  large: typescaleLg, // deprecated (alias)
4309
4113
  'x-large': typescaleXl, // deprecated (alias)
4310
4114
  'xx-large': typescale2Xl, // deprecated (alias)
4311
4115
  '2xs': typescale2Xs,
4312
4116
  xs: typescaleXs$1,
4313
- sm: typescaleSm,
4117
+ sm: typescaleSm$1,
4314
4118
  md: typescaleMd,
4315
4119
  lg: typescaleLg,
4316
4120
  xl: typescaleXl,
@@ -4322,13 +4126,144 @@ const sizeMap$1 = {
4322
4126
  };
4323
4127
 
4324
4128
  const weightMap = {
4325
- regular: fontWeightNormal, // deprecated
4129
+ regular: fontWeightNormal$1, // deprecated
4326
4130
  'semi-bold': fontWeightSemibold, // deprecated
4327
- normal: fontWeightNormal,
4131
+ normal: fontWeightNormal$1,
4328
4132
  semibold: fontWeightSemibold,
4329
4133
  bold: fontWeightBold,
4330
4134
  };
4331
4135
 
4136
+ /**
4137
+ * @css-variable {"name": "--p-banner-max-w", "description": "Defines the maximum width of the Banner.", "defaultValue": "100ch"}
4138
+ */
4139
+ const cssVarMaxWidth = '--p-banner-max-w';
4140
+ /**
4141
+ * @css-variable {"name": "--p-banner-top", "description": "Defines the distance from the top of the viewport. Only takes effect when the `position` property is set to `top` (at the respective breakpoint).", "defaultValue": "56px"}
4142
+ */
4143
+ const cssVarTop = '--p-banner-top';
4144
+ /**
4145
+ * @css-variable {"name": "--p-banner-bottom", "description": "Defines the distance from the bottom of the viewport. Only takes effect when the `position` property is set to `bottom` (at the respective breakpoint).", "defaultValue": "56px"}
4146
+ */
4147
+ const cssVarBottom = '--p-banner-bottom';
4148
+ /**
4149
+ * @css-variable {"name": "--p-banner-inset-x", "description": "Defines the horizontal offset of the Banner from the edges of the viewport.", "defaultValue": "max(22px, 10.625vw - 12px)"}
4150
+ */
4151
+ const cssVarInsetX = '--p-banner-inset-x';
4152
+ const cssVarPositionTop = '--p-banner-position-top'; // deprecated (aliased)
4153
+ const cssVarPositionBottom = '--p-banner-position-bottom'; // deprecated (aliased)
4154
+ const topBottomFallback = '56px';
4155
+ const cssVariableZIndex = '--p-internal-banner-z-index';
4156
+ const getComponentCss$18 = (isOpen, position, state, hasDismissButton) => {
4157
+ const duration = isOpen ? 'moderate' : 'short';
4158
+ const easing = isOpen ? 'in' : 'out';
4159
+ const transition = `visibility 0s linear var(${cssVariableTransitionDuration},${isOpen ? '0s' : motionDurationMap[duration]}),${getTransition('transform', duration, easing)}`;
4160
+ return getCss({
4161
+ '@global': {
4162
+ ':host': {
4163
+ display: 'contents',
4164
+ ...addImportantToEachRule({
4165
+ ...hostHiddenStyles,
4166
+ }),
4167
+ },
4168
+ ...preventFoucOfNestedElementsStyles,
4169
+ 'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
4170
+ all: 'unset',
4171
+ display: 'block',
4172
+ gridArea: '1/2',
4173
+ font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4174
+ color: colorPrimary,
4175
+ },
4176
+ 'slot[name="description"],p': {
4177
+ all: 'unset',
4178
+ display: 'block',
4179
+ gridArea: '2/2',
4180
+ marginTop: spacingStaticXs$1,
4181
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4182
+ color: colorPrimary,
4183
+ },
4184
+ '[popover]': {
4185
+ all: 'unset',
4186
+ position: 'fixed',
4187
+ zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, // Fallback for browsers lacking `transition-behavior: allow-discrete` — keeps the banner visible during fade-out after leaving the top layer.
4188
+ ...buildResponsiveStyles(position, (v) => ({
4189
+ ...(v === 'top' && {
4190
+ insetBlock: `var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback})) auto`,
4191
+ ...(!isOpen && {
4192
+ transform: `translate3d(-50%,calc(-100% - var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback}))),0)`,
4193
+ }),
4194
+ }),
4195
+ ...(v === 'bottom' && {
4196
+ insetBlock: `auto var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback}))`,
4197
+ ...(!isOpen && {
4198
+ transform: `translate3d(-50%,calc(var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback})) + 100%),0)`,
4199
+ }),
4200
+ }),
4201
+ })),
4202
+ left: '50vw',
4203
+ width: `min(calc(100vw - 2 * var(${cssVarInsetX},${gridExtendedOffsetBase})),var(${cssVarMaxWidth},100ch))`,
4204
+ '&:popover-open': {
4205
+ overlay: 'auto',
4206
+ },
4207
+ '&::backdrop': {
4208
+ display: 'none',
4209
+ },
4210
+ visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
4211
+ pointerEvents: 'none', // element can't be interacted with mouse
4212
+ ...(isOpen && {
4213
+ visibility: 'inherit',
4214
+ pointerEvents: 'inherit',
4215
+ transform: 'translate3d(-50%,0,0)',
4216
+ }),
4217
+ transition,
4218
+ // 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)
4219
+ '@supports (transition-behavior: allow-discrete)': {
4220
+ transition: `${transition},${getTransition('overlay', duration, easing)} allow-discrete`,
4221
+ },
4222
+ },
4223
+ },
4224
+ banner: {
4225
+ display: 'grid',
4226
+ gridTemplateColumns: `auto minmax(0, 1fr) auto auto`,
4227
+ padding: spacingStaticMd,
4228
+ borderRadius: `var(${legacyRadiusMedium}, ${radius2Xl})`,
4229
+ background: notificationBackgroundMap[state],
4230
+ WebkitBackdropFilter: blurFrosted,
4231
+ backdropFilter: blurFrosted,
4232
+ boxShadow: shadowLg,
4233
+ opacity: isOpen ? 1 : 0, // it's necessary to spit up opacity transition from [popover], otherwise frosted effect won't render
4234
+ transition: getTransition('opacity', duration, easing),
4235
+ ...forcedColorsMediaQuery({
4236
+ outline: '2px solid CanvasText',
4237
+ outlineOffset: '-2px',
4238
+ }),
4239
+ '&::before': {
4240
+ [getMediaQueryMin('s')]: {
4241
+ gridArea: '1/1',
4242
+ placeSelf: 'center',
4243
+ content: '""',
4244
+ width: '1.5rem',
4245
+ height: '1.5rem',
4246
+ marginInlineEnd: spacingStaticSm$1,
4247
+ background: notificationColorMap[state],
4248
+ WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
4249
+ mask: `${notificationIconMap[state]} center/contain no-repeat`,
4250
+ ...forcedColorsMediaQuery({
4251
+ background: 'CanvasText',
4252
+ }),
4253
+ },
4254
+ },
4255
+ },
4256
+ ...(hasDismissButton && {
4257
+ dismiss: {
4258
+ gridArea: `1/4/3`,
4259
+ marginTop: `calc(-1 * ${spacingStaticXs$1})`,
4260
+ marginInlineEnd: `calc(-1 * ${spacingStaticXs$1})`,
4261
+ marginInlineStart: spacingStaticMd,
4262
+ },
4263
+ }),
4264
+ });
4265
+ };
4266
+
4332
4267
  // 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.
4333
4268
  const getVisibilityJssStyle = (hideLabel) => {
4334
4269
  return hideLabel
@@ -4369,7 +4304,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4369
4304
  cursor: 'pointer',
4370
4305
  color: colorMap$3[color],
4371
4306
  textDecoration: underline ? 'underline' : 'none',
4372
- font: `${fontWeightNormal} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
4307
+ font: `${fontWeightNormal$1} ${typescaleSm$1}/${leadingNormal$1} ${fontPorscheNext$1}`,
4373
4308
  ...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
4374
4309
  gap: hidelabelValue ? 0 : spacingStaticXs$1,
4375
4310
  })), buildResponsiveStyles(stretch, (stretchValue) => ({
@@ -4457,7 +4392,7 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
4457
4392
  icon: {
4458
4393
  position: 'absolute',
4459
4394
  top: 0,
4460
- left: `calc(50% - ${leadingNormal} / 2)`,
4395
+ left: `calc(50% - ${leadingNormal$1} / 2)`,
4461
4396
  },
4462
4397
  }),
4463
4398
  // .loading
@@ -4516,7 +4451,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4516
4451
  all: 'unset',
4517
4452
  zIndex: 3,
4518
4453
  maxWidth: '34.375rem',
4519
- ...textMediumStyle,
4454
+ font: `${fontWeightNormal$1} ${typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4520
4455
  color: colorPrimary,
4521
4456
  hyphens: 'inherit',
4522
4457
  ...mergeDeep(buildResponsiveStyles(size, (v) => ({
@@ -4528,7 +4463,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4528
4463
  },
4529
4464
  root: {
4530
4465
  display: 'grid',
4531
- gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
4466
+ gridTemplate: `${spacingFluidMd$1} auto minmax(0px, 1fr) auto ${spacingFluidMd$1}/${spacingFluidMd$1} minmax(0px, 1fr) ${spacingFluidMd$1}`,
4532
4467
  width: '100%', // necessary in case tile content overflows in grid or flex context
4533
4468
  // Safari workaround to scale the tile properly
4534
4469
  '@supports (-webkit-hyphens: auto)': {
@@ -4547,14 +4482,14 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4547
4482
  ? {
4548
4483
  gridArea: '1/1/3/-1',
4549
4484
  background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
4550
- marginBottom: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
4485
+ marginBottom: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
4551
4486
  borderStartStartRadius: 'inherit',
4552
4487
  borderStartEndRadius: 'inherit',
4553
4488
  }
4554
4489
  : {
4555
4490
  gridArea: '4/1/6/-1',
4556
4491
  background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
4557
- marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
4492
+ marginTop: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
4558
4493
  borderEndStartRadius: 'inherit',
4559
4494
  borderEndEndRadius: 'inherit',
4560
4495
  }),
@@ -4580,7 +4515,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4580
4515
  ? {
4581
4516
  display: 'grid',
4582
4517
  gridTemplateColumns: 'minmax(0,1fr) auto',
4583
- columnGap: spacingStaticMedium,
4518
+ columnGap: spacingStaticMd,
4584
4519
  }
4585
4520
  : {
4586
4521
  display: 'flex',
@@ -4600,7 +4535,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
4600
4535
  'link-or-button': {
4601
4536
  minHeight: '54px', // prevent content shift
4602
4537
  zIndex: 5,
4603
- marginTop: spacingStaticMedium,
4538
+ marginTop: spacingStaticMd,
4604
4539
  ...buildResponsiveStyles(compact, (compactValue) => ({
4605
4540
  display: compactValue ? 'none' : 'inline-block',
4606
4541
  })),
@@ -4654,8 +4589,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4654
4589
  width: '100%', // Allows for setting a width on the host
4655
4590
  minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
4656
4591
  boxSizing: 'border-box',
4657
- ...frostedGlassStyle,
4658
- ...textSmallStyle,
4592
+ WebkitBackdropFilter: blurFrosted,
4593
+ backdropFilter: blurFrosted,
4594
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4659
4595
  borderRadius: 'inherit',
4660
4596
  transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
4661
4597
  backgroundColor,
@@ -4692,8 +4628,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
4692
4628
  label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle),
4693
4629
  ...(hasIcon && {
4694
4630
  icon: {
4695
- width: fontLineHeight, // ensure space is already reserved until icon component is loaded (ssr)
4696
- height: fontLineHeight, // ensure space is already reserved until icon component is loaded (ssr)
4631
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width/height definition based on ex-unit
4632
+ width: leadingNormal$1, // ensure space is already reserved until icon component is loaded (ssr)
4633
+ height: leadingNormal$1, // ensure space is already reserved until icon component is loaded (ssr)
4697
4634
  ...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
4698
4635
  marginInlineStart: hideLabelValue ? 0 : iconMarginInlineStart, // compensate white space of svg icon and optimize visual alignment
4699
4636
  })),
@@ -4720,9 +4657,6 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4720
4657
  },
4721
4658
  ...(isLoading && {
4722
4659
  spinner: {
4723
- width: fontLineHeight,
4724
- height: fontLineHeight,
4725
- pointerEvents: 'none',
4726
4660
  position: 'absolute',
4727
4661
  top: '50%',
4728
4662
  left: '50%',
@@ -4770,8 +4704,6 @@ const colorFrostedSoftDark = palette.dark.grey['100a'];
4770
4704
 
4771
4705
  const colorPrimaryDark = palette.dark.grey["950"];
4772
4706
 
4773
- const typescaleXs = '.875rem';
4774
-
4775
4707
  const spacingStaticSm = '8px';
4776
4708
 
4777
4709
  const spacingStaticXs = '4px';
@@ -4855,7 +4787,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
4855
4787
  h2: {
4856
4788
  all: 'unset',
4857
4789
  padding: spacingStaticXs, // preserve enough spacing for focus state
4858
- font: textXSmallStyle.font,
4790
+ font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
4859
4791
  color: colorPrimary,
4860
4792
  textOverflow: 'ellipsis',
4861
4793
  overflow: 'hidden',
@@ -4902,13 +4834,13 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
4902
4834
  gridTemplateColumns: 'minmax(0,1fr) auto minmax(0,1fr)',
4903
4835
  gap: spacingBase,
4904
4836
  alignItems: 'center',
4905
- padding: `${spacingStaticSmall} ${spacingBase}`,
4837
+ padding: `${spacingStaticSm$1} ${spacingBase}`,
4906
4838
  '&:focus-visible': {
4907
4839
  outline: 'none',
4908
4840
  },
4909
4841
  '&__area': {
4910
4842
  display: 'flex',
4911
- gap: spacingStaticSmall,
4843
+ gap: spacingStaticSm$1,
4912
4844
  alignItems: 'center',
4913
4845
  '&--start': {
4914
4846
  justifyContent: 'flex-start',
@@ -5006,7 +4938,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
5006
4938
  footer: {
5007
4939
  zIndex: 5,
5008
4940
  gridArea: 'footer',
5009
- padding: `${spacingBase} ${spacingBase} ${spacingFluidSmall}`,
4941
+ padding: `${spacingBase} ${spacingBase} ${spacingFluidSm}`,
5010
4942
  position: 'sticky',
5011
4943
  bottom: 0,
5012
4944
  '&::before': {
@@ -5054,12 +4986,12 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
5054
4986
  '&__header': {
5055
4987
  zIndex: 9999999,
5056
4988
  display: 'flex',
5057
- gap: spacingStaticSmall,
4989
+ gap: spacingStaticSm$1,
5058
4990
  alignItems: 'center',
5059
4991
  position: 'sticky',
5060
4992
  top: `calc(-1 * ${spacingBase})`,
5061
4993
  margin: `calc(-1 * ${spacingBase}) calc(-1 * ${spacingBase}) ${spacingBase}`,
5062
- padding: `${spacingStaticSmall} ${spacingBase}`,
4994
+ padding: `${spacingStaticSm$1} ${spacingBase}`,
5063
4995
  minHeight: '56px',
5064
4996
  boxSizing: 'border-box',
5065
4997
  '&--start': {
@@ -5140,7 +5072,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
5140
5072
  ':host': {
5141
5073
  display: 'flex',
5142
5074
  ...addImportantToEachRule({
5143
- gap: spacingFluidMedium, // TODO: maybe it's better to style by margin on .splide, then styles would be part of shadow dom
5075
+ gap: spacingFluidMd$1, // TODO: maybe it's better to style by margin on .splide, then styles would be part of shadow dom
5144
5076
  flexDirection: 'column',
5145
5077
  boxSizing: 'content-box', // ensures padding is added to host instead of subtracted
5146
5078
  ...hostHiddenStyles,
@@ -5181,20 +5113,20 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
5181
5113
  ...(hasHeading && {
5182
5114
  [selectorHeading]: {
5183
5115
  maxWidth: '56.25rem',
5184
- margin: `0 0 ${hasDescription ? 0 : spacingFluidMedium}`,
5185
- ...(headingSize === 'xx-large' ? headingXXLargeStyle : headingXLargeStyle),
5116
+ margin: `0 0 ${hasDescription ? 0 : spacingFluidMd$1}`,
5117
+ font: `${fontWeightNormal$1} ${headingSize === 'xx-large' ? typescale2Xl : typescaleXl} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5186
5118
  },
5187
5119
  '::slotted([slot=heading])': {
5188
5120
  margin: 0, // reset ua-style
5189
- ...(headingSize === 'xx-large' ? headingXXLargeStyle : headingXLargeStyle),
5121
+ font: `${fontWeightNormal$1} ${headingSize === 'xx-large' ? typescale2Xl : typescaleXl} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5190
5122
  },
5191
5123
  }),
5192
5124
  // p,::slotted([slot=description])
5193
5125
  ...(hasDescription && {
5194
5126
  [selectorDescription]: {
5195
5127
  maxWidth: '34.375rem',
5196
- margin: `${spacingFluidSmall} 0 ${spacingFluidMedium}`,
5197
- ...textSmallStyle,
5128
+ margin: `${spacingFluidSm} 0 ${spacingFluidMd$1}`,
5129
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5198
5130
  },
5199
5131
  }),
5200
5132
  }),
@@ -5207,7 +5139,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
5207
5139
  gridTemplateColumns: 'minmax(0px,1fr) auto',
5208
5140
  paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
5209
5141
  paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
5210
- ...(hasNavigation && { columnGap: spacingStaticMedium }),
5142
+ ...(hasNavigation && { columnGap: spacingStaticMd }),
5211
5143
  },
5212
5144
  [mediaQueryXXL]: {
5213
5145
  paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
@@ -5220,12 +5152,12 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
5220
5152
  gridRowStart: '3',
5221
5153
  gridColumnEnd: '-1',
5222
5154
  display: 'flex',
5223
- gap: spacingStaticXSmall,
5155
+ gap: spacingStaticXs$1,
5224
5156
  alignSelf: 'flex-start', // relevant in case slot="header" becomes higher than nav group
5225
5157
  },
5226
5158
  },
5227
5159
  btn: {
5228
- padding: spacingStaticSmall,
5160
+ padding: spacingStaticSm$1,
5229
5161
  },
5230
5162
  'skip-link': {
5231
5163
  // :focus must be used in this case, because :focus-visible is just matched on the focusable element itself, not on the host element.
@@ -5431,9 +5363,9 @@ const cssVarInternalCheckboxScaling = '--__p-checkbox-scaling';
5431
5363
  const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5432
5364
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
5433
5365
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
5434
- const checkboxBorderWidth = borderWidthThin;
5366
+ const checkboxBorderWidth = '1px';
5435
5367
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
5436
- const checkboxMarginBlock = `max(0px, calc((${fontLineHeight} - ${checkboxDimension}) / 2))`;
5368
+ const checkboxMarginBlock = `max(0px, calc((${leadingNormal$1} - ${checkboxDimension}) / 2))`;
5437
5369
  const checkboxTouchInset = `calc(-${checkboxBorderWidth} - max(0px, calc(24px - ${checkboxDimension}) / 2))`;
5438
5370
  return {
5439
5371
  all: 'unset',
@@ -5442,7 +5374,7 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
5442
5374
  height: checkboxDimension,
5443
5375
  marginBlock: checkboxMarginBlock,
5444
5376
  boxSizing: 'border-box',
5445
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
5377
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
5446
5378
  background: `var(${cssVarCheckboxBackgroundColor},${formStateBackgroundColor})`,
5447
5379
  transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
5448
5380
  border: `${checkboxBorderWidth} solid var(${cssVarCheckboxBorderColor},${formStateBorderColor})`,
@@ -5536,8 +5468,8 @@ const getFunctionalComponentLabelAfterStyles = () => {
5536
5468
  verticalAlign: 'top',
5537
5469
  '&::slotted(*)': {
5538
5470
  ...addImportantToEachRule({
5539
- marginInlineStart: spacingStaticXs$2,
5540
- })
5471
+ marginInlineStart: spacingStaticXs$1,
5472
+ }),
5541
5473
  },
5542
5474
  },
5543
5475
  };
@@ -5553,7 +5485,7 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
5553
5485
  ...additionalLabelWrapperJssStyle,
5554
5486
  },
5555
5487
  label: {
5556
- ...proseTextSmStyle,
5488
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5557
5489
  cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
5558
5490
  color: colorPrimary,
5559
5491
  ...(isDisabledOrLoading && {
@@ -5570,10 +5502,10 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
5570
5502
  // styling for the description
5571
5503
  '&:is(span)': {
5572
5504
  cursor: 'unset',
5573
- fontSize: typescaleXs,
5505
+ fontSize: typescaleXs$1,
5574
5506
  color: colorContrastHigh,
5575
- ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `-${spacingStaticXs$2}` })),
5576
- marginTop: `-${spacingStaticXs$2}`,
5507
+ ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `calc(-1 * ${spacingStaticXs$1})` })),
5508
+ marginTop: `calc(-1 * ${spacingStaticXs$1})`,
5577
5509
  },
5578
5510
  ...additionalDefaultJssStyle,
5579
5511
  },
@@ -5586,8 +5518,8 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5586
5518
  return {
5587
5519
  message: {
5588
5520
  display: 'flex',
5589
- gap: spacingStaticXSmall,
5590
- ...textSmallStyle,
5521
+ gap: spacingStaticXs$1,
5522
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5591
5523
  color: getThemedFormStateColors(state).formStateColor,
5592
5524
  transition: `${getTransition('color')}, ${getTransition('opacity')}`,
5593
5525
  ...additionalDefaultJssStyle,
@@ -5608,7 +5540,7 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5608
5540
  const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact) => {
5609
5541
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
5610
5542
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
5611
- const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${fontLineHeight}) / 2))`;
5543
+ const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
5612
5544
  const labelPaddingInlineStart = `calc(11.2px * (var(${cssVarInternalCheckboxScaling}) - 0.64285714) + 4px)`;
5613
5545
  return getCss({
5614
5546
  '@global': {
@@ -5630,7 +5562,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5630
5562
  },
5631
5563
  root: {
5632
5564
  display: 'grid',
5633
- rowGap: spacingStaticXSmall,
5565
+ rowGap: spacingStaticXs$1,
5634
5566
  },
5635
5567
  wrapper: {
5636
5568
  position: 'relative',
@@ -5642,7 +5574,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5642
5574
  alignItems: 'center',
5643
5575
  display: 'grid',
5644
5576
  alignSelf: 'flex-start',
5645
- minHeight: fontLineHeight, // necessary for compact mode
5577
+ minHeight: leadingNormal$1, // necessary for compact mode
5646
5578
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
5647
5579
  ...(isDisabled && getDisabledBaseStyles()),
5648
5580
  },
@@ -5679,7 +5611,7 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
5679
5611
  const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
5680
5612
  const cssVarInternalInputBaseScaling = '--p-internal-input-base-scaling';
5681
5613
  const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel, state, isCompact, readOnly, additionalInputJssStyle, additionalHostJssStyle) => {
5682
- const wrapperBorderWidth = borderWidthThin;
5614
+ const wrapperBorderWidth = '1px';
5683
5615
  const wrapperHeight = `calc(var(${cssVarInternalInputBaseScaling}) * 3.5rem)`;
5684
5616
  const wrapperPaddingInline = `calc(22.4px * (var(${cssVarInternalInputBaseScaling}) - 0.64285714) + 8px)`;
5685
5617
  const wrapperGap = `calc(22.4px * (var(${cssVarInternalInputBaseScaling}) - 0.64285714) + 4px)`;
@@ -5712,14 +5644,14 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
5712
5644
  alignItems: 'center',
5713
5645
  width: 'max(100%, 2ch)', // show at least 2 characters in very narrow containers
5714
5646
  height: '100%',
5715
- font: textSmallStyle.font.replace('ex', 'ex + 6px'), // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
5647
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / calc(${leadingNormal$1} + 6px) ${fontPorscheNext$1}`, // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
5716
5648
  textOverflow: 'ellipsis',
5717
5649
  ...additionalInputJssStyle,
5718
5650
  },
5719
5651
  },
5720
5652
  root: {
5721
5653
  display: 'grid',
5722
- gap: spacingStaticXSmall,
5654
+ gap: spacingStaticXs$1,
5723
5655
  },
5724
5656
  wrapper: {
5725
5657
  display: 'flex',
@@ -5779,7 +5711,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
5779
5711
  const cssVarTextColor = `--p-${componentName}-text-color`;
5780
5712
  const cssVarBorderColor = `--p-${componentName}-border-color`;
5781
5713
  const { formStateBorderColor, formStateBorderHoverColor, formStateBackgroundColor } = getThemedFormStateColors(state);
5782
- const borderWidth = borderWidthThin;
5714
+ const borderWidth = '1px';
5783
5715
  const height = `calc(var(${cssVarScalingName}) * 3.5rem)`;
5784
5716
  const paddingInline = `calc(22.4px * (var(${cssVarScalingName}) - 0.64285714) + 8px)`;
5785
5717
  const gap = `calc(22.4px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
@@ -5795,7 +5727,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
5795
5727
  border: `${borderWidth} solid var(${cssVarBorderColor}, ${isOpen ? formStateBorderHoverColor : formStateBorderColor})`,
5796
5728
  borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
5797
5729
  background: `var(${cssVarBackgroundColor}, ${formStateBackgroundColor})`,
5798
- font: textSmallStyle.font,
5730
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5799
5731
  color: `var(${cssVarTextColor}, ${colorPrimary})`,
5800
5732
  cursor: isDisabled ? 'not-allowed' : 'pointer',
5801
5733
  ...(isDisabled && getDisabledBaseStyles()),
@@ -5812,9 +5744,9 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
5812
5744
  };
5813
5745
 
5814
5746
  const getButtonImageJssStyle = {
5815
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct calculations based on ex-unit
5747
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct calculations based on ex-unit
5816
5748
  width: 'auto',
5817
- height: fontLineHeight,
5749
+ height: leadingNormal$1,
5818
5750
  borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
5819
5751
  };
5820
5752
 
@@ -5857,8 +5789,8 @@ const getOptionJssStyle = (componentName, cssVarScalingName) => {
5857
5789
  gap,
5858
5790
  paddingBlock,
5859
5791
  paddingInline,
5860
- minHeight: fontLineHeight, // preserves height for empty option
5861
- ...textSmallStyle,
5792
+ minHeight: leadingNormal$1, // preserves height for empty option
5793
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
5862
5794
  color: colorContrastHigh,
5863
5795
  cursor: 'pointer',
5864
5796
  textAlign: 'start',
@@ -5926,7 +5858,7 @@ const getPopoverJssStyle = (isOpen, cssVarScalingName, optionHeight) => {
5926
5858
  overflow: 'hidden auto',
5927
5859
  scrollbarWidth: 'thin', // firefox
5928
5860
  scrollbarColor: 'auto', // firefox
5929
- animation: `var(${cssVariableAnimationDuration}, ${motionDurationShort}) ${keyframesName} ${motionEasingBase} forwards`,
5861
+ animation: `var(${cssVariableAnimationDuration}, ${durationSm}) ${keyframesName} ${easeInOut} forwards`,
5930
5862
  filter: 'drop-shadow(0 0 8px rgba(0,0,0,0.15))',
5931
5863
  background: colorCanvas,
5932
5864
  border: `1px solid ${colorContrastLow}`,
@@ -6040,7 +5972,7 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
6040
5972
  root: {
6041
5973
  all: 'unset',
6042
5974
  display: 'block',
6043
- font: `${fontWeightNormal} ${typescale5Xl}/${leadingNormal} ${fontPorscheNext}`,
5975
+ font: `${fontWeightNormal$1} ${typescale5Xl}/${leadingNormal$1} ${fontPorscheNext$1}`,
6044
5976
  ...buildResponsiveStyles(size, (v) => ({
6045
5977
  fontSize: sizeMap[v],
6046
5978
  })),
@@ -6106,14 +6038,14 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6106
6038
  return getCss({
6107
6039
  '@global': {
6108
6040
  '@keyframes slide-up-mobile': {
6109
- from: { transform: `translate3d(0,${spacingFluidMedium},0)` },
6041
+ from: { transform: `translate3d(0,${spacingFluidMd$1},0)` },
6110
6042
  to: { transform: 'translate3d(0,0,0)' },
6111
6043
  },
6112
6044
  // unfortunately, it's not possible to use transform animation like in mobile view
6113
6045
  // because then a new stacking context within scroll container would be initialized
6114
6046
  // causing the slotted scroll container to become invisible
6115
6047
  '@keyframes slide-up-desktop': {
6116
- from: { marginBlockStart: spacingFluidMedium },
6048
+ from: { marginBlockStart: spacingFluidMd$1 },
6117
6049
  to: { marginBlockStart: '0px' },
6118
6050
  },
6119
6051
  ':host': {
@@ -6131,7 +6063,7 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6131
6063
  ...preventFoucOfNestedElementsStyles,
6132
6064
  '::slotted(*)': {
6133
6065
  [cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
6134
- [cssVariableGap]: spacingFluidXSmall, // reset css variable to prevent inheritance
6066
+ [cssVariableGap]: spacingFluidXs, // reset css variable to prevent inheritance
6135
6067
  },
6136
6068
  dialog: {
6137
6069
  all: 'unset',
@@ -6142,7 +6074,8 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6142
6074
  ...(isOpen
6143
6075
  ? {
6144
6076
  visibility: 'inherit',
6145
- ...frostedGlassStyle,
6077
+ WebkitBackdropFilter: blurFrosted,
6078
+ backdropFilter: blurFrosted,
6146
6079
  background: `var(${cssVarColorBackgroundShading})`,
6147
6080
  transition: `${getTransition('background', backdropDurationOpen, easingOpen)}, ${getTransition('backdrop-filter', backdropDurationOpen, easingOpen)}, ${getTransition('-webkit-backdrop-filter', backdropDurationOpen, easingOpen)}`,
6148
6081
  }
@@ -6162,13 +6095,13 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6162
6095
  zIndex: 0,
6163
6096
  display: 'grid',
6164
6097
  gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
6165
- gap: `var(${cssVariableGap},${spacingFluidXSmall})`,
6098
+ gap: `var(${cssVariableGap},${spacingFluidXs})`,
6166
6099
  alignContent: 'start',
6167
6100
  alignItems: 'start',
6168
6101
  boxSizing: 'border-box',
6169
6102
  minHeight: '100%',
6170
6103
  height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
6171
- paddingBlockEnd: spacingFluidLarge,
6104
+ paddingBlockEnd: spacingFluidLg,
6172
6105
  ...(isPrimary && {
6173
6106
  animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
6174
6107
  }),
@@ -6179,13 +6112,13 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6179
6112
  gridArea: '3/2/auto/-2',
6180
6113
  display: 'grid',
6181
6114
  gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
6182
- gap: `var(${cssVariableGap},${isPrimary ? spacingFluidXSmall : spacingFluidMedium})`,
6115
+ gap: `var(${cssVariableGap},${isPrimary ? spacingFluidXs : spacingFluidMd$1})`,
6183
6116
  alignContent: 'start',
6184
6117
  alignItems: 'start',
6185
6118
  boxSizing: 'border-box',
6186
6119
  minHeight: '100%',
6187
6120
  height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
6188
- paddingBlockEnd: spacingFluidLarge,
6121
+ paddingBlockEnd: spacingFluidLg,
6189
6122
  animation: getAnimation('slide-up-desktop', 'moderate', 'base'),
6190
6123
  }),
6191
6124
  },
@@ -6224,12 +6157,12 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6224
6157
  },
6225
6158
  }),
6226
6159
  [mediaQueryMobile]: {
6227
- gridTemplate: `${spacingFluidMedium} auto ${spacingFluidLarge} minmax(0, 1fr)/${spacingFluidLarge} auto minmax(0, 1fr) auto ${spacingFluidLarge}`,
6160
+ gridTemplate: `${spacingFluidMd$1} auto ${spacingFluidLg} minmax(0, 1fr)/${spacingFluidLg} auto minmax(0, 1fr) auto ${spacingFluidLg}`,
6228
6161
  background: `var(${cssVarColorBackgroundBase})`,
6229
6162
  },
6230
6163
  [mediaQueryDesktop]: {
6231
6164
  width: isSecondaryScrollerVisible ? `calc(${scrollerWidthDesktop} * 2)` : scrollerWidthDesktop,
6232
- gridTemplate: `${spacingFluidMedium} auto minmax(0, 1fr)/repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${spacingFluidLarge} minmax(0, 1fr) ${spacingFluidLarge})`,
6165
+ gridTemplate: `${spacingFluidMd$1} auto minmax(0, 1fr)/repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${spacingFluidLg} minmax(0, 1fr) ${spacingFluidLg})`,
6233
6166
  background: `var(${cssVarColorBackgroundBase})`,
6234
6167
  ...(isSecondaryScrollerVisible && {
6235
6168
  background: `linear-gradient(90deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 50%,var(${cssVarColorBackgroundSurface}) 50%,var(${cssVarColorBackgroundSurface}) 100%)`,
@@ -6319,9 +6252,9 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6319
6252
  '--p-color-frosted': colorFrostedDark,
6320
6253
  '--p-color-frosted-soft': colorFrostedSoftDark,
6321
6254
  position: 'absolute',
6322
- insetInlineStart: `calc(100% + ${spacingFluidSmall})`,
6323
- insetBlockStart: spacingFluidSmall,
6324
- padding: spacingStaticSmall,
6255
+ insetInlineStart: `calc(100% + ${spacingFluidSm})`,
6256
+ insetBlockStart: spacingFluidSm,
6257
+ padding: spacingStaticSm$1,
6325
6258
  },
6326
6259
  },
6327
6260
  back: {
@@ -6330,11 +6263,10 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6330
6263
  isPrimary && {
6331
6264
  [mediaQueryMobile]: {
6332
6265
  display: 'block',
6333
- marginTop: '2px', // compensate negative margin of ::pseudo background of button-pure
6334
6266
  gridArea: '2/2',
6335
6267
  width: 'fit-content',
6336
6268
  height: 'fit-content',
6337
- placeSelf: 'start',
6269
+ placeSelf: 'center',
6338
6270
  zIndex: 2,
6339
6271
  },
6340
6272
  }),
@@ -6346,15 +6278,15 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6346
6278
  return getCss({
6347
6279
  '@global': {
6348
6280
  '@keyframes slide-up-mobile': {
6349
- from: { transform: `translate3d(0,${spacingFluidMedium},0)` },
6281
+ from: { transform: `translate3d(0,${spacingFluidMd$1},0)` },
6350
6282
  to: { transform: 'translate3d(0,0,0)' },
6351
6283
  },
6352
6284
  '@keyframes slide-up-desktop-primary': {
6353
- from: { marginBlockStart: spacingFluidMedium },
6285
+ from: { marginBlockStart: spacingFluidMd$1 },
6354
6286
  to: { marginBlockStart: '0px' },
6355
6287
  },
6356
6288
  '@keyframes slide-up-desktop-secondary': {
6357
- from: { marginBlockStart: spacingFluidMedium },
6289
+ from: { marginBlockStart: spacingFluidMd$1 },
6358
6290
  to: { marginBlockStart: '0px' },
6359
6291
  },
6360
6292
  ':host': {
@@ -6394,13 +6326,13 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6394
6326
  zIndex: 0,
6395
6327
  display: 'grid',
6396
6328
  gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
6397
- gap: `var(${cssVariableGap},${spacingFluidXSmall})`,
6329
+ gap: `var(${cssVariableGap},${spacingFluidXs})`,
6398
6330
  alignContent: 'start',
6399
6331
  alignItems: 'start',
6400
6332
  boxSizing: 'border-box',
6401
6333
  minHeight: '100%',
6402
6334
  height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
6403
- paddingBlockEnd: spacingFluidLarge,
6335
+ paddingBlockEnd: spacingFluidLg,
6404
6336
  animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
6405
6337
  }),
6406
6338
  ...((isPrimary || isCascade) && {
@@ -6412,18 +6344,18 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6412
6344
  gridArea: '3/2/auto/-2',
6413
6345
  display: 'grid',
6414
6346
  gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
6415
- gap: `var(${cssVariableGap},${spacingFluidXSmall})`,
6347
+ gap: `var(${cssVariableGap},${spacingFluidXs})`,
6416
6348
  alignContent: 'start',
6417
6349
  alignItems: 'start',
6418
6350
  boxSizing: 'border-box',
6419
6351
  minHeight: '100%',
6420
6352
  height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
6421
- paddingBlockEnd: spacingFluidLarge,
6353
+ paddingBlockEnd: spacingFluidLg,
6422
6354
  animation: getAnimation(`slide-up-desktop-${isPrimary ? 'primary' : 'secondary'}`, 'moderate', 'base'),
6423
6355
  }),
6424
6356
  ...(isSecondary && {
6425
6357
  gridArea: '2/2/auto/-2',
6426
- paddingBlockEnd: spacingFluidLarge,
6358
+ paddingBlockEnd: spacingFluidLg,
6427
6359
  }),
6428
6360
  ...(isCascade && {
6429
6361
  display: 'contents',
@@ -6435,13 +6367,13 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6435
6367
  display: 'none',
6436
6368
  [mediaQueryMobile]: {
6437
6369
  ...(isSecondary && {
6438
- ...headingSmallStyle,
6370
+ font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
6439
6371
  display: 'block',
6440
6372
  gridArea: '2/3',
6441
6373
  placeSelf: 'center',
6442
6374
  zIndex: 2,
6443
6375
  margin: 0,
6444
- paddingInline: spacingStaticMedium,
6376
+ paddingInline: spacingStaticMd,
6445
6377
  maxWidth: '100%',
6446
6378
  boxSizing: 'border-box',
6447
6379
  whiteSpace: 'nowrap',
@@ -6466,7 +6398,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6466
6398
  }),
6467
6399
  '::slotted(*)': {
6468
6400
  [cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
6469
- [cssVariableGap]: spacingFluidXSmall, // reset css variable to prevent inheritance
6401
+ [cssVariableGap]: spacingFluidXs, // reset css variable to prevent inheritance
6470
6402
  },
6471
6403
  },
6472
6404
  // drawer subgrid in combination with scroller grid ensures no content squeezing during slide up animation, potentially caused by scrollbar
@@ -6484,7 +6416,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6484
6416
  inset: 0,
6485
6417
  insetInlineStart: scrollerWidthDesktop,
6486
6418
  display: 'grid',
6487
- gridTemplate: `${spacingFluidMedium} minmax(0, 1fr)/${spacingFluidLarge} minmax(0, 1fr) ${spacingFluidLarge}`,
6419
+ gridTemplate: `${spacingFluidMd$1} minmax(0, 1fr)/${spacingFluidLg} minmax(0, 1fr) ${spacingFluidLg}`,
6488
6420
  }),
6489
6421
  ...((isPrimary || isCascade) && {
6490
6422
  display: 'contents',
@@ -6543,8 +6475,8 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6543
6475
  // TODO: not sure if this is ideal, since the consumer won't be able to change it when used with a custom
6544
6476
  // grid-template, maybe <p-drilldown-button slot="button" /> would be an option, similar to <p-drilldown-link />
6545
6477
  gridColumn: '1/-1',
6546
- padding: spacingFluidSmall,
6547
- margin: `0 calc(${spacingFluidSmall} * -1)`,
6478
+ padding: spacingFluidSm,
6479
+ margin: `0 calc(${spacingFluidSm} * -1)`,
6548
6480
  }),
6549
6481
  },
6550
6482
  back: {
@@ -6562,7 +6494,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
6562
6494
  },
6563
6495
  [mediaQueryDesktop]: {
6564
6496
  gridArea: '2/2',
6565
- marginBottom: spacingFluidMedium,
6497
+ marginBottom: spacingFluidMd$1,
6566
6498
  width: 'fit-content',
6567
6499
  height: 'fit-content',
6568
6500
  marginInlineStart: '-4px', // improve visual alignment and compensate white space of arrow-left icon
@@ -6578,10 +6510,10 @@ const anchorHoverJssStyle = {
6578
6510
  const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
6579
6511
  const anchorJssStyle = {
6580
6512
  all: 'unset',
6581
- padding: `calc(${spacingFluidSmall} + 2px) calc(${spacingFluidSmall} + 4px)`, // aligned with link-pure
6582
- margin: `-2px calc(${spacingFluidSmall} * -1 - 4px)`, // aligned with link-pure
6513
+ padding: `calc(${spacingFluidSm} + 2px) calc(${spacingFluidSm} + 4px)`, // aligned with link-pure
6514
+ margin: `-2px calc(${spacingFluidSm} * -1 - 4px)`, // aligned with link-pure
6583
6515
  borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`, // needed for focus outline
6584
- font: textMediumStyle.font,
6516
+ font: `${fontWeightNormal$1} ${typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
6585
6517
  color: `var(${cssVarColorPrimary})`,
6586
6518
  textDecoration: 'underline',
6587
6519
  textDecorationColor: isActive ? 'inherit' : 'transparent',
@@ -6637,16 +6569,16 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
6637
6569
  ...(hasLabel && {
6638
6570
  legend: {
6639
6571
  all: 'unset',
6640
- marginBottom: spacingStaticMedium,
6572
+ marginBottom: spacingStaticMd,
6641
6573
  color: colorPrimary,
6642
- ...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
6574
+ font: `${labelSize === 'small' ? fontWeightSemibold : fontWeightNormal$1} ${labelSize === 'small' ? typescaleSm$1 : typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
6643
6575
  },
6644
6576
  }),
6645
6577
  },
6646
6578
  ...getFunctionalComponentRequiredStyles(),
6647
6579
  ...mergeDeep(getFunctionalComponentStateMessageStyles(state), {
6648
6580
  message: {
6649
- marginTop: spacingStaticMedium,
6581
+ marginTop: spacingStaticMd,
6650
6582
  },
6651
6583
  }),
6652
6584
  });
@@ -6657,7 +6589,7 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
6657
6589
  */
6658
6590
  const cssVarSize$2 = '--p-flag-size';
6659
6591
  const getComponentCss$W = (size) => {
6660
- const dimension = `var(${cssVarSize$2},${leadingNormal})`;
6592
+ const dimension = `var(${cssVarSize$2},${leadingNormal$1})`;
6661
6593
  return getCss({
6662
6594
  '@global': {
6663
6595
  ':host': {
@@ -6678,7 +6610,7 @@ const getComponentCss$W = (size) => {
6678
6610
  pointerEvents: 'none', // disable dragging/ghosting of images
6679
6611
  width: dimension,
6680
6612
  height: dimension,
6681
- fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
6613
+ fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
6682
6614
  ...buildResponsiveStyles(size, (s) => ({
6683
6615
  fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
6684
6616
  })),
@@ -6690,8 +6622,8 @@ const getComponentCss$W = (size) => {
6690
6622
  const cssVarBackgroundColor = '--_a';
6691
6623
  const dialogHostJssStyle = (background) => {
6692
6624
  return {
6693
- '--pds-internal-grid-outer-column': `calc(${spacingFluidLarge} - ${gridGap})`,
6694
- '--pds-internal-grid-margin': `calc(${spacingFluidLarge} * -1)`,
6625
+ '--pds-internal-grid-outer-column': `calc(${spacingFluidLg} - ${gridGap})`,
6626
+ '--pds-internal-grid-margin': `calc(${spacingFluidLg} * -1)`,
6695
6627
  '--pds-internal-grid-width-min': 'auto',
6696
6628
  '--pds-internal-grid-width-max': 'none',
6697
6629
  [cssVarBackgroundColor]: background === 'surface' ? colorSurface : colorCanvas,
@@ -6733,7 +6665,10 @@ const getDialogBackdropTransitionJssStyle = (isVisible, backdrop = 'blur') => {
6733
6665
  visibility: 'inherit',
6734
6666
  pointerEvents: 'auto',
6735
6667
  background: colorBackdrop,
6736
- ...(isBackdropBlur && frostedGlassStyle),
6668
+ ...(isBackdropBlur && {
6669
+ WebkitBackdropFilter: blurFrosted,
6670
+ backdropFilter: blurFrosted,
6671
+ }),
6737
6672
  }
6738
6673
  : {
6739
6674
  visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
@@ -6772,18 +6707,19 @@ const getScrollerJssStyle = (position) => {
6772
6707
  };
6773
6708
  };
6774
6709
  const dialogBorderRadius = `var(${legacyRadiusLarge}, ${radiusXl})`;
6775
- const dialogPaddingTop = spacingFluidMedium;
6776
- const dialogPaddingBottom = `calc(${spacingFluidSmall} + ${spacingFluidMedium})`;
6777
- const dialogPaddingInline = spacingFluidLarge;
6710
+ const dialogPaddingTop = spacingFluidMd$1;
6711
+ const dialogPaddingBottom = `calc(${spacingFluidSm} + ${spacingFluidMd$1})`;
6712
+ const dialogPaddingInline = spacingFluidLg;
6778
6713
  const dialogGridJssStyle = () => {
6779
6714
  return {
6780
6715
  position: 'relative',
6781
6716
  display: 'grid',
6782
- gridTemplate: `auto/${spacingFluidSmall} minmax(0,1fr) ${spacingFluidSmall}`,
6783
- gap: `${spacingFluidMedium} calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
6717
+ gridTemplate: `auto/${spacingFluidSm} minmax(0,1fr) ${spacingFluidSm}`,
6718
+ gap: `${spacingFluidMd$1} calc(${spacingFluidLg} - ${spacingFluidSm})`,
6784
6719
  paddingTop: dialogPaddingTop,
6785
6720
  paddingBottom: dialogPaddingBottom,
6786
6721
  alignContent: 'flex-start',
6722
+ overflow: 'clip',
6787
6723
  };
6788
6724
  };
6789
6725
  const getDialogColorJssStyle = () => {
@@ -6818,18 +6754,17 @@ const getDialogDismissButtonJssStyle = () => {
6818
6754
  gridArea: '1/3',
6819
6755
  zIndex: 5, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
6820
6756
  position: 'sticky',
6821
- top: spacingFluidSmall,
6822
- marginTop: `calc(-1 * ${dialogPaddingTop} + ${spacingFluidSmall})`,
6823
- marginInlineEnd: spacingFluidSmall,
6757
+ top: spacingFluidSm,
6758
+ marginTop: `calc(-1 * ${dialogPaddingTop} + ${spacingFluidSm})`,
6759
+ marginInlineEnd: spacingFluidSm,
6824
6760
  placeSelf: 'flex-start flex-end',
6825
6761
  '&::after': {
6826
6762
  content: '""',
6827
6763
  display: 'block',
6828
6764
  position: 'absolute',
6829
- inset: `calc(-1 * ${spacingFluidSmall}) calc(-1 * ${spacingFluidSmall}) -50px -50px`,
6765
+ inset: `calc(-1 * ${spacingFluidSm}) calc(-1 * ${spacingFluidSm}) -50px -50px`,
6830
6766
  pointerEvents: 'none',
6831
6767
  zIndex: -1,
6832
- borderRadius: dialogBorderRadius,
6833
6768
  background: `radial-gradient(circle at top right, hsla(from var(${cssVarBackgroundColor}) h s l / 0.35) 0%, transparent 70%)`,
6834
6769
  },
6835
6770
  };
@@ -6844,7 +6779,7 @@ const getSlotJssStyle = () => {
6844
6779
  };
6845
6780
  const getSlotHeaderJssStyle = () => {
6846
6781
  const paddingTop = dialogPaddingTop;
6847
- const paddingBottom = spacingStaticMedium;
6782
+ const paddingBottom = spacingStaticMd;
6848
6783
  return {
6849
6784
  gridColumn: '1/-1',
6850
6785
  zIndex: 1, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
@@ -6879,7 +6814,8 @@ const getSlotFooterJssStyle = () => {
6879
6814
  inset: `calc(${paddingBlock} - ${offset}) calc(${dialogPaddingInline} - ${offset})`,
6880
6815
  background: colorFrosted,
6881
6816
  borderRadius: radius3Xl,
6882
- ...frostedGlassStyle,
6817
+ WebkitBackdropFilter: blurFrosted,
6818
+ backdropFilter: blurFrosted,
6883
6819
  },
6884
6820
  };
6885
6821
  };
@@ -6999,14 +6935,14 @@ const getComponentCss$U = (size, weight, align, color, hyphens, ellipsis) => {
6999
6935
  ...hostHiddenStyles,
7000
6936
  }),
7001
6937
  },
7002
- [`::slotted(:is(${HEADING_TAGS.join()}))`]: addImportantToEachRule({
6938
+ [`::slotted(:is(${HEADING_TAGS.join()}))`]: {
7003
6939
  all: 'unset',
7004
- }),
6940
+ },
7005
6941
  },
7006
6942
  root: {
7007
6943
  all: 'unset',
7008
6944
  display: 'block',
7009
- font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal} ${fontPorscheNext}`,
6945
+ font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal$1} ${fontPorscheNext$1}`,
7010
6946
  ...buildResponsiveStyles(size, (v) => ({
7011
6947
  fontSize: sizeMap$1[v],
7012
6948
  })),
@@ -7073,7 +7009,7 @@ const isFlippableIcon = (name, source) => {
7073
7009
  name === 'send'));
7074
7010
  };
7075
7011
  const getComponentCss$T = (name, source, color, size) => {
7076
- const dimension = `var(${cssVarSize$1},${leadingNormal})`;
7012
+ const dimension = `var(${cssVarSize$1},${leadingNormal$1})`;
7077
7013
  const mask = `url("${buildIconUrl(source || name)}") center/contain no-repeat`;
7078
7014
  return getCss({
7079
7015
  '@global': {
@@ -7096,7 +7032,7 @@ const getComponentCss$T = (name, source, color, size) => {
7096
7032
  pointerEvents: 'none', // disable dragging/ghosting of images
7097
7033
  width: dimension,
7098
7034
  height: dimension,
7099
- fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
7035
+ fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
7100
7036
  ...buildResponsiveStyles(size, (s) => ({
7101
7037
  fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
7102
7038
  })),
@@ -7116,96 +7052,80 @@ const getComponentCss$T = (name, source, color, size) => {
7116
7052
  });
7117
7053
  };
7118
7054
 
7119
- const mediaQueryMinS$1 = getMediaQueryMin('s');
7120
- const mediaQueryMaxS$2 = getMediaQueryMax('s');
7121
- const getBackgroundColor = (state) => {
7122
- const colorMap = {
7123
- info: colorInfoFrosted,
7124
- warning: colorWarningFrosted,
7125
- success: colorSuccessFrosted,
7126
- error: colorErrorFrosted,
7127
- };
7128
- return colorMap[state];
7129
- };
7130
- const getNotificationRootJssStyle = (state, hasAction, hasClose) => {
7131
- return {
7132
- // display: 'grid', // NOTE: display property is moved into component styled to not apply !important keyword
7133
- // 2 columns for content and optional close button
7134
- gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
7135
- gap: spacingStaticMedium,
7136
- placeItems: 'start',
7137
- padding: spacingStaticMedium,
7138
- ...frostedGlassStyle,
7139
- background: getBackgroundColor(state),
7140
- borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
7141
- [mediaQueryMinS$1]: {
7142
- // 4 columns are for icon, content, optional action button and optional close button
7143
- gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
7144
- },
7145
- ...forcedColorsMediaQuery({
7146
- outline: '2px solid CanvasText',
7147
- outlineOffset: '-2px',
7148
- }),
7149
- };
7150
- };
7151
- const getNotificationIconJssStyle = () => ({
7152
- marginTop: '2px', // To be center aligned with close button
7153
- [mediaQueryMaxS$2]: {
7154
- display: 'none',
7155
- },
7156
- });
7157
- const getNotificationContentJssStyle = () => ({
7158
- display: 'grid',
7159
- gap: spacingStaticXSmall,
7160
- marginTop: '2px', // To be center aligned with close button
7161
- [mediaQueryMinS$1]: {
7162
- marginLeft: `-${spacingStaticSmall}`,
7163
- },
7164
- });
7165
-
7166
- const INLINE_NOTIFICATION_HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
7167
-
7168
- const mediaQueryMaxS$1 = getMediaQueryMax('s');
7169
- const getTextJssStyle = {
7170
- margin: 0,
7171
- color: colorPrimary,
7172
- };
7173
- const getHeadingJssStyle = {
7174
- ...headingSmallStyle,
7175
- ...getTextJssStyle,
7176
- };
7177
- const getComponentCss$S = (state, hasAction, hasClose) => {
7055
+ const getComponentCss$S = (state, hasAction, hasDismissButton) => {
7178
7056
  return getCss({
7179
7057
  '@global': {
7180
7058
  ':host': {
7181
- display: 'grid',
7059
+ display: 'block',
7182
7060
  ...addImportantToEachRule({
7183
- ...getNotificationRootJssStyle(state, hasAction, hasClose),
7184
7061
  ...hostHiddenStyles,
7185
7062
  }),
7186
7063
  },
7187
7064
  ...preventFoucOfNestedElementsStyles,
7188
- [`::slotted(:is(${INLINE_NOTIFICATION_HEADING_TAGS.join()}))`]: addImportantToEachRule({
7065
+ 'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
7189
7066
  all: 'unset',
7190
- }),
7191
- 'slot[name="heading"]': getHeadingJssStyle,
7067
+ display: 'block',
7068
+ gridArea: '1/2',
7069
+ font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7070
+ color: colorPrimary,
7071
+ },
7072
+ 'slot:not([name]),p': {
7073
+ all: 'unset',
7074
+ display: 'block',
7075
+ gridArea: '2/2',
7076
+ marginTop: spacingStaticXs$1,
7077
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7078
+ color: colorPrimary,
7079
+ },
7192
7080
  },
7193
- heading: getHeadingJssStyle,
7194
- description: {
7195
- ...textSmallStyle,
7196
- ...getTextJssStyle,
7081
+ notification: {
7082
+ display: 'grid',
7083
+ gridTemplateColumns: `auto minmax(0, 1fr) auto auto`,
7084
+ padding: spacingStaticMd,
7085
+ borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
7086
+ background: notificationBackgroundMap[state],
7087
+ WebkitBackdropFilter: blurFrosted,
7088
+ backdropFilter: blurFrosted,
7089
+ ...forcedColorsMediaQuery({
7090
+ outline: '2px solid CanvasText',
7091
+ outlineOffset: '-2px',
7092
+ }),
7093
+ '&::before': {
7094
+ [getMediaQueryMin('s')]: {
7095
+ gridArea: '1/1',
7096
+ placeSelf: 'center',
7097
+ content: '""',
7098
+ width: '1.5rem',
7099
+ height: '1.5rem',
7100
+ marginInlineEnd: spacingStaticSm$1,
7101
+ background: notificationColorMap[state],
7102
+ WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
7103
+ mask: `${notificationIconMap[state]} center/contain no-repeat`,
7104
+ ...forcedColorsMediaQuery({
7105
+ background: 'CanvasText',
7106
+ }),
7107
+ },
7108
+ },
7197
7109
  },
7198
- icon: getNotificationIconJssStyle(),
7199
- content: getNotificationContentJssStyle(),
7110
+ ...(hasDismissButton && {
7111
+ dismiss: {
7112
+ gridArea: `1/4/3`,
7113
+ marginTop: `calc(-1 * ${spacingStaticXs$1})`,
7114
+ marginInlineEnd: `calc(-1 * ${spacingStaticXs$1})`,
7115
+ marginInlineStart: spacingStaticMd,
7116
+ },
7117
+ }),
7200
7118
  ...(hasAction && {
7201
7119
  action: {
7202
- marginTop: borderWidthBase, // To visually align with close button
7203
- [mediaQueryMaxS$1]: {
7204
- gridRowStart: 2,
7120
+ gridArea: '3/1/auto/-1',
7121
+ marginTop: spacingStaticMd,
7122
+ [getMediaQueryMin('s')]: {
7123
+ gridArea: '1/3',
7124
+ marginTop: 0,
7125
+ marginInlineStart: spacingStaticMd,
7205
7126
  },
7206
7127
  },
7207
7128
  }),
7208
- close: dismissButtonJssStyle,
7209
7129
  });
7210
7130
  };
7211
7131
 
@@ -7359,16 +7279,16 @@ const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnl
7359
7279
 
7360
7280
  const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
7361
7281
  // TODO: basic button/icon padding can already be set within style function instead of on component style level
7362
- const formButtonOrIconPadding = spacingStaticXSmall;
7282
+ const formButtonOrIconPadding = spacingStaticXs$1;
7363
7283
  // TODO: if we'd use 12px instead, it wouldn't be necessary for textarea to have a custom vertical padding,
7364
7284
  // unfortunately line-height alignment breaks for a select element for some reasons then
7365
7285
  // TODO: basic form element padding can already be set within style function instead of on component style level
7366
- const formElementPaddingVertical = spacingStaticSmall;
7286
+ const formElementPaddingVertical = spacingStaticSm$1;
7367
7287
  // TODO: basic form element padding can already be set within style function instead of on component style level
7368
- const formElementPaddingHorizontal = spacingStaticMedium;
7288
+ const formElementPaddingHorizontal = spacingStaticMd;
7369
7289
  const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
7370
7290
  // when applied, font-family and font-size needs to be set too for correct calculation of ex-unit ($fontLineHeight)
7371
- return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${fontLineHeight} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
7291
+ return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${leadingNormal$1} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
7372
7292
  };
7373
7293
  const getUnitCounterJssStyle = () => {
7374
7294
  return {
@@ -7378,7 +7298,7 @@ const getUnitCounterJssStyle = () => {
7378
7298
  whiteSpace: 'nowrap',
7379
7299
  overflow: 'hidden',
7380
7300
  textOverflow: 'ellipsis',
7381
- font: textSmallStyle.font,
7301
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7382
7302
  color: colorContrastHigh,
7383
7303
  };
7384
7304
  };
@@ -7530,7 +7450,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7530
7450
  [`&([slot="${headerSlot}"])`]: {
7531
7451
  display: 'flex',
7532
7452
  flexWrap: 'wrap',
7533
- gap: spacingFluidXSmall,
7453
+ gap: spacingFluidXs,
7534
7454
  },
7535
7455
  },
7536
7456
  '::slotted(:is(img,picture))': {
@@ -7555,7 +7475,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7555
7475
  overflow: 'hidden', // TODO: discussable if we should prevent text to overflow .root, – e.g. it also prevents a popover from being shown correctly
7556
7476
  boxSizing: 'border-box',
7557
7477
  borderRadius: `var(${legacyRadiusLarge}, ${radius4Xl})`,
7558
- padding: spacingFluidSmall,
7478
+ padding: spacingFluidSm,
7559
7479
  color: colorPrimary,
7560
7480
  backgroundColor: colorSurface,
7561
7481
  ...buildResponsiveStyles(aspectRatio, (ratio) => ({
@@ -7570,7 +7490,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7570
7490
  }),
7571
7491
  header: {
7572
7492
  display: 'flex',
7573
- gap: spacingFluidSmall,
7493
+ gap: spacingFluidSm,
7574
7494
  justifyContent: 'space-between',
7575
7495
  alignItems: 'flex-start',
7576
7496
  },
@@ -7582,11 +7502,11 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7582
7502
  }),
7583
7503
  image: {
7584
7504
  aspectRatio: '8/9',
7585
- margin: `${spacingFluidSmall} auto ${spacingFluidXSmall}`,
7505
+ margin: `${spacingFluidSm} auto ${spacingFluidXs}`,
7586
7506
  overflow: 'hidden',
7587
7507
  transition: getTransition('transform', 'moderate'),
7588
7508
  [getMediaQueryMin('s')]: {
7589
- padding: `0 ${spacingFluidMedium}`, // ensures image is not getting to large
7509
+ padding: `0 ${spacingFluidMd$1}`, // ensures image is not getting to large
7590
7510
  },
7591
7511
  ...hoverMediaQuery({
7592
7512
  '.root:hover &': {
@@ -7602,25 +7522,25 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
7602
7522
  },
7603
7523
  heading: {
7604
7524
  margin: '0 0 2px', // ua-style reset
7605
- ...headingSmallStyle,
7525
+ font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7606
7526
  ...getMultilineEllipsis(3),
7607
7527
  },
7608
7528
  price: {
7609
7529
  margin: 0, // ua-style reset
7610
- ...textXSmallStyle,
7530
+ font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7611
7531
  ...(hasPriceOriginal && {
7612
7532
  display: 'flex',
7613
7533
  flexWrap: 'wrap',
7614
7534
  justifyContent: 'center',
7615
- columnGap: spacingFluidXSmall,
7535
+ columnGap: spacingFluidXs,
7616
7536
  }),
7617
7537
  },
7618
7538
  ...(hasDescription && {
7619
7539
  description: {
7620
7540
  margin: 0, // ua-style reset
7621
- ...textXXSmallStyle,
7622
- ...getMultilineEllipsis(2),
7541
+ font: `${fontWeightNormal$1} ${typescale2Xs} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7623
7542
  color: colorContrastHigh,
7543
+ ...getMultilineEllipsis(2),
7624
7544
  },
7625
7545
  }),
7626
7546
  ...(hasPriceOriginal && {
@@ -7680,7 +7600,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7680
7600
  all: 'unset',
7681
7601
  zIndex: 3,
7682
7602
  maxWidth: '34.375rem',
7683
- ...textMediumStyle,
7603
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7684
7604
  color: colorPrimary,
7685
7605
  hyphens: 'inherit',
7686
7606
  ...mergeDeep(buildResponsiveStyles(size, (v) => ({
@@ -7692,7 +7612,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7692
7612
  },
7693
7613
  root: {
7694
7614
  display: 'grid',
7695
- gridTemplate: `${spacingFluidMedium} auto minmax(0px, 1fr) auto ${spacingFluidMedium}/${spacingFluidMedium} minmax(0px, 1fr) ${spacingFluidMedium}`,
7615
+ gridTemplate: `${spacingFluidMd$1} auto minmax(0px, 1fr) auto ${spacingFluidMd$1}/${spacingFluidMd$1} minmax(0px, 1fr) ${spacingFluidMd$1}`,
7696
7616
  width: '100%', // necessary in case tile content overflows in grid or flex context
7697
7617
  // Safari workaround to scale the tile properly
7698
7618
  '@supports (-webkit-hyphens: auto)': {
@@ -7710,14 +7630,14 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7710
7630
  ? {
7711
7631
  gridArea: '1/1/3/-1',
7712
7632
  background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
7713
- marginBottom: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
7633
+ marginBottom: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
7714
7634
  borderStartStartRadius: 'inherit',
7715
7635
  borderStartEndRadius: 'inherit',
7716
7636
  }
7717
7637
  : {
7718
7638
  gridArea: '4/1/6/-1',
7719
7639
  background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
7720
- marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
7640
+ marginTop: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
7721
7641
  borderEndStartRadius: 'inherit',
7722
7642
  borderEndEndRadius: 'inherit',
7723
7643
  }),
@@ -7742,7 +7662,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7742
7662
  ? {
7743
7663
  display: 'grid',
7744
7664
  gridTemplateColumns: 'minmax(0,1fr) auto',
7745
- columnGap: spacingStaticMedium,
7665
+ columnGap: spacingStaticMd,
7746
7666
  }
7747
7667
  : {
7748
7668
  display: 'flex',
@@ -7762,7 +7682,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
7762
7682
  'link-or-button': {
7763
7683
  minHeight: '54px', // prevent content shift
7764
7684
  zIndex: 5,
7765
- marginTop: spacingStaticMedium,
7685
+ marginTop: spacingStaticMd,
7766
7686
  ...buildResponsiveStyles(compact, (compactValue) => ({
7767
7687
  display: compactValue ? 'none' : 'inline-block',
7768
7688
  })),
@@ -7894,7 +7814,7 @@ const colorMap = {
7894
7814
  'contrast-low': colorContrastLow,
7895
7815
  'contrast-medium': colorContrastMedium,
7896
7816
  'contrast-high': colorContrastHigh,
7897
- inherit: 'inherit',
7817
+ inherit: 'currentcolor',
7898
7818
  };
7899
7819
  const getComponentCss$B = (model, safeZone, size, color) => {
7900
7820
  const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
@@ -7909,11 +7829,10 @@ const getComponentCss$B = (model, safeZone, size, color) => {
7909
7829
  // width + height style can't be !important atm to be backwards compatible with e.g. `<p-model-signature size="inherit" style="height: 50px"/>`
7910
7830
  width: `var(${cssVariableWidth},${isSizeInherit ? 'auto' : `${width}px`})`,
7911
7831
  height: `var(${cssVariableHeight},auto)`,
7912
- color: `var(${cssVariableColor},${colorMap[color]})`,
7913
7832
  ...addImportantToEachRule({
7914
7833
  mask: `url(${getSvgUrl(model)}) no-repeat left top / contain`,
7915
7834
  aspectRatio: `${width} / ${safeZone ? 36 : height}`, // 36px is the max-height for SVG model signature creation
7916
- background: 'currentcolor', // necessary for proper color inheritance
7835
+ background: `var(${cssVariableColor},${colorMap[color]})`, // color="inherit" will use currentcolor for inheritance
7917
7836
  ...forcedColorsMediaQuery({
7918
7837
  background: 'CanvasText',
7919
7838
  }),
@@ -7940,7 +7859,7 @@ const getComponentCss$B = (model, safeZone, size, color) => {
7940
7859
  const cssVarInternalMultiSelectOptionScaling = '--p-internal-multi-select-option-scaling';
7941
7860
  const getComponentCss$A = (isDisabled, selected) => {
7942
7861
  const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
7943
- const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${fontLineHeight}) / 2))`;
7862
+ const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
7944
7863
  return getCss({
7945
7864
  '@global': {
7946
7865
  ':host': {
@@ -7988,7 +7907,7 @@ const getComponentCss$z = (isDisabled) => {
7988
7907
  '[role="presentation"]': {
7989
7908
  paddingBlock,
7990
7909
  paddingInline,
7991
- font: textXSmallStyle.font.replace(' 400 ', ` ${fontWeightSemiBold} `),
7910
+ font: `${fontWeightSemibold} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
7992
7911
  color: colorPrimary,
7993
7912
  ...(isDisabled && getDisabledBaseStyles()),
7994
7913
  },
@@ -8023,9 +7942,9 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8023
7942
  },
8024
7943
  root: {
8025
7944
  display: 'grid',
8026
- gap: spacingStaticXSmall,
7945
+ gap: spacingStaticXs$1,
8027
7946
  // min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
8028
- minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
7947
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
8029
7948
  },
8030
7949
  filter: getFilterJssStyle(cssVarInternalMultiSelectScaling),
8031
7950
  options: getOptionsJssStyle(cssVarInternalMultiSelectScaling),
@@ -8039,8 +7958,8 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8039
7958
  });
8040
7959
  };
8041
7960
 
8042
- const mediaQueryMinS = getMediaQueryMin('s');
8043
- const mediaQueryMaxS = getMediaQueryMax('s');
7961
+ const mediaQueryMinS$1 = getMediaQueryMin('s');
7962
+ const mediaQueryMaxS$1 = getMediaQueryMax('s');
8044
7963
  const disabledCursorStyle = {
8045
7964
  cursor: 'default',
8046
7965
  pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
@@ -8063,18 +7982,18 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8063
7982
  },
8064
7983
  ul: {
8065
7984
  display: 'flex',
8066
- gap: spacingStaticXSmall,
7985
+ gap: spacingStaticXs$1,
8067
7986
  margin: 0,
8068
7987
  padding: 0,
8069
- [mediaQueryMinS]: {
8070
- gap: spacingStaticSmall,
7988
+ [mediaQueryMinS$1]: {
7989
+ gap: spacingStaticSm$1,
8071
7990
  },
8072
7991
  },
8073
7992
  li: {
8074
7993
  listStyleType: 'none',
8075
7994
  ...(pageTotal > 5 && {
8076
7995
  // max 5 items including ellipsis at the same time on mobile
8077
- [mediaQueryMaxS]: {
7996
+ [mediaQueryMaxS$1]: {
8078
7997
  [activePage < 4
8079
7998
  ? // we are at the start, so let's hide start ellipsis and 2 items before end ellipsis
8080
7999
  '&.ellip-start,&:nth-child(6),&:nth-child(7),&:not(.ellip):nth-child(8)'
@@ -8093,7 +8012,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8093
8012
  })),
8094
8013
  },
8095
8014
  }),
8096
- [mediaQueryMinS]: {
8015
+ [mediaQueryMinS$1]: {
8097
8016
  ...(pageTotal < 8
8098
8017
  ? { '&.ellip': hiddenStyle }
8099
8018
  : // max 7 items including ellipsis at the same time on tablet
@@ -8117,7 +8036,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8117
8036
  minWidth: '2.25rem',
8118
8037
  height: '2.25rem',
8119
8038
  boxSizing: 'border-box',
8120
- ...textSmallStyle,
8039
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
8121
8040
  whiteSpace: 'nowrap',
8122
8041
  cursor: 'pointer',
8123
8042
  backgroundColor: 'transparent',
@@ -8127,7 +8046,8 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8127
8046
  outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style
8128
8047
  ...hoverMediaQuery({
8129
8048
  '&:not([aria-disabled]):not(.ellipsis):hover': {
8130
- ...frostedGlassStyle,
8049
+ WebkitBackdropFilter: blurFrosted,
8050
+ backdropFilter: blurFrosted,
8131
8051
  background: colorFrosted,
8132
8052
  ...forcedColorsMediaQuery({
8133
8053
  outline: '2px solid CanvasText',
@@ -8163,7 +8083,7 @@ const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
8163
8083
  const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCompact) => {
8164
8084
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8165
8085
  const gap = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
8166
- const inputBorderWidth = borderWidthThin;
8086
+ const inputBorderWidth = '1px';
8167
8087
  const inputDimension = `calc(var(${cssVarInternalPinCodeScaling}) * 3.5rem)`;
8168
8088
  const inputPadding = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
8169
8089
  const inputMinWidth = `calc(1ch + ${inputPadding} * 2 + ${inputBorderWidth} * 2)`;
@@ -8190,7 +8110,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8190
8110
  border: `${inputBorderWidth} solid ${formStateBorderColor}`,
8191
8111
  borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
8192
8112
  background: formStateBackgroundColor,
8193
- font: textSmallStyle.font.replace('ex', 'ex + 6px'), // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
8113
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / calc(${leadingNormal$1} + 6px) ${fontPorscheNext$1}`, // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
8194
8114
  color: colorPrimary,
8195
8115
  transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
8196
8116
  textOverflow: 'ellipsis',
@@ -8212,7 +8132,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8212
8132
  root: {
8213
8133
  all: 'unset',
8214
8134
  display: 'grid',
8215
- gap: spacingStaticXSmall,
8135
+ gap: spacingStaticXs$1,
8216
8136
  },
8217
8137
  wrapper: {
8218
8138
  position: 'relative',
@@ -8266,20 +8186,21 @@ const getComponentCss$v = () => {
8266
8186
  },
8267
8187
  ...preventFoucOfNestedElementsStyles,
8268
8188
  p: {
8269
- ...textSmallStyle,
8189
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
8270
8190
  margin: 0,
8271
8191
  },
8272
8192
  button: {
8273
8193
  all: 'unset',
8274
8194
  display: 'block',
8275
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width/height definition based on ex-unit
8276
- width: fontLineHeight, // width needed to improve ssr support
8277
- height: fontLineHeight, // height needed to improve ssr support
8195
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width/height definition based on ex-unit
8196
+ width: leadingNormal$1, // width needed to improve ssr support
8197
+ height: leadingNormal$1, // height needed to improve ssr support
8278
8198
  borderRadius: radiusFull,
8279
8199
  cursor: 'pointer',
8280
8200
  backgroundColor: colorFrosted,
8281
8201
  transition: getTransition('background-color'),
8282
- ...frostedGlassStyle,
8202
+ WebkitBackdropFilter: blurFrosted,
8203
+ backdropFilter: blurFrosted,
8283
8204
  ...hoverMediaQuery({
8284
8205
  '&:hover': {
8285
8206
  backgroundColor: colorFrostedSoft,
@@ -8293,7 +8214,7 @@ const getComponentCss$v = () => {
8293
8214
  pointerEvents: 'none',
8294
8215
  filter: `drop-shadow(0 0 16px ${shadowColor})`,
8295
8216
  backdropFilter: 'drop-shadow(0 0 transparent)', // workaround for Firefox bug not rendering PDS frosted glass correctly when nested inside CSS filter: https://bugzilla.mozilla.org/show_bug.cgi?id=1797051
8296
- animation: `var(${cssVariableAnimationDuration}, ${motionDurationShort}) fade-in ${motionEasingBase} forwards`,
8217
+ animation: `var(${cssVariableAnimationDuration}, ${durationSm}) fade-in ${easeInOut} forwards`,
8297
8218
  '&:not(:popover-open)': {
8298
8219
  display: 'none', // ensures popover is not flickering when closed in some situations
8299
8220
  },
@@ -8317,11 +8238,11 @@ const getComponentCss$v = () => {
8317
8238
  maxWidth: `min(calc(100dvw - ${POPOVER_SAFE_ZONE * 2}px), 48ch)`,
8318
8239
  width: 'max-content', // ensures in older browsers correct width
8319
8240
  boxSizing: 'border-box',
8320
- padding: `${spacingStaticSmall} ${spacingStaticMedium}`,
8241
+ padding: `${spacingStaticSm$1} ${spacingStaticMd}`,
8321
8242
  pointerEvents: 'auto',
8322
8243
  borderRadius: `var(${legacyRadiusSmall}, ${radiusLg})`,
8323
- ...textSmallStyle,
8324
8244
  background: colorCanvas,
8245
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
8325
8246
  color: colorPrimary,
8326
8247
  ...forcedColorsMediaQuery({
8327
8248
  outline: '2px solid CanvasText',
@@ -8336,11 +8257,11 @@ const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>
8336
8257
  const getComponentCss$u = (disabled, loading, state) => {
8337
8258
  const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
8338
8259
  const disabledOrLoading = isDisabledOrLoading(disabled, loading);
8339
- const radioBorderWidth = borderWidthThin;
8260
+ const radioBorderWidth = '1px';
8340
8261
  const radioDimension = `calc(var(${cssVarInternalRadioGroupOptionScaling}) * 1.75rem)`;
8341
- const radioMarginBlock = `max(0px, calc((${fontLineHeight} - ${radioDimension}) / 2))`;
8262
+ const radioMarginBlock = `max(0px, calc((${leadingNormal$1} - ${radioDimension}) / 2))`;
8342
8263
  const radioTouchInset = `calc(-${radioBorderWidth} - max(0px, calc(24px - ${radioDimension}) / 2))`;
8343
- const labelPaddingTop = `max(0px, calc((${radioDimension} - ${fontLineHeight}) / 2))`;
8264
+ const labelPaddingTop = `max(0px, calc((${radioDimension} - ${leadingNormal$1}) / 2))`;
8344
8265
  const labelPaddingInlineStart = `calc(11.2px * (var(${cssVarInternalRadioGroupOptionScaling}) - 0.64285714) + 4px)`;
8345
8266
  return getCss({
8346
8267
  '@global': {
@@ -8359,7 +8280,7 @@ const getComponentCss$u = (disabled, loading, state) => {
8359
8280
  height: radioDimension,
8360
8281
  marginBlock: radioMarginBlock,
8361
8282
  boxSizing: 'border-box',
8362
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
8283
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
8363
8284
  background: formStateBackgroundColor,
8364
8285
  transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
8365
8286
  border: `${radioBorderWidth} solid ${formStateBorderColor}`,
@@ -8405,14 +8326,14 @@ const getComponentCss$u = (disabled, loading, state) => {
8405
8326
  root: {
8406
8327
  display: 'grid',
8407
8328
  gridTemplateColumns: 'auto minmax(0, 1fr)',
8408
- rowGap: spacingStaticXSmall,
8329
+ rowGap: spacingStaticXs$1,
8409
8330
  },
8410
8331
  wrapper: {
8411
8332
  position: 'relative',
8412
8333
  display: 'flex',
8413
8334
  alignItems: 'center',
8414
8335
  alignSelf: 'flex-start',
8415
- minHeight: fontLineHeight, // necessary for compact mode
8336
+ minHeight: leadingNormal$1, // necessary for compact mode
8416
8337
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
8417
8338
  ...(disabled && getDisabledBaseStyles()),
8418
8339
  },
@@ -8473,7 +8394,7 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
8473
8394
  all: 'unset',
8474
8395
  display: 'grid',
8475
8396
  justifySelf: 'flex-start',
8476
- rowGap: spacingStaticXSmall,
8397
+ rowGap: spacingStaticXs$1,
8477
8398
  },
8478
8399
  wrapper: {
8479
8400
  alignItems: 'start',
@@ -8567,6 +8488,10 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
8567
8488
  ...(hasScrollbar && {
8568
8489
  marginTop: `calc(-1 * ${scrollbarWidth})`,
8569
8490
  }),
8491
+ ...(hasScrollbar &&
8492
+ pointerCoarseMediaQuery({
8493
+ marginTop: 0,
8494
+ })),
8570
8495
  display: 'grid',
8571
8496
  alignSelf: 'center',
8572
8497
  width: '1.5rem',
@@ -8610,7 +8535,8 @@ isSticky, hasScrollbar, isCompact) => {
8610
8535
  : !isIndicatorNextVisible
8611
8536
  ? 'left'
8612
8537
  : 'both';
8613
- const mask = `${getSmoothMask(fadeEdges)} 0 0/auto no-repeat${hasScrollbar ? `,linear-gradient(black,black) 0 bottom/auto ${scrollbarWidth} no-repeat` : ''}`;
8538
+ const mask = `${getSmoothMask(fadeEdges)} 0 0/auto no-repeat`;
8539
+ const scrollbarMask = `linear-gradient(black,black) 0 bottom/auto ${scrollbarWidth} no-repeat`;
8614
8540
  return getCss({
8615
8541
  '@global': {
8616
8542
  ':host': {
@@ -8641,13 +8567,25 @@ isSticky, hasScrollbar, isCompact) => {
8641
8567
  gridTemplateColumns: `${safeZone} minmax(auto,1fr) ${safeZone}`,
8642
8568
  margin: `calc(-1 * ${safeZone})`, // compensate padding to ensure that `:host` is aligned with other elements
8643
8569
  padding: `${safeZone} 0px${hasScrollbar ? ` calc(${safeZone} + ${scrollbarWidth})` : ''}`, // ensure enough space is available for focus ring of slotted elements (horizontal space is given by `.sentinel`)
8570
+ scrollbarWidth: hasScrollbar ? 'thin' : 'none',
8571
+ // Override for touch devices to avoid issues with ios not rendering mask at all when using multiple mask layers
8572
+ ...(hasScrollbar &&
8573
+ pointerCoarseMediaQuery({
8574
+ padding: `${safeZone} 0px`,
8575
+ })),
8644
8576
  outline: 'none', // focus ring is applied to `.root`, it would be cut off by the mask if applied to `.scroll`
8645
8577
  overflow: 'auto hidden',
8646
8578
  ...(fadeEdges !== 'none' && {
8647
- WebkitMask: mask, // necessary for Sogou browser support :-)
8648
- mask,
8579
+ WebkitMask: hasScrollbar ? `${mask},${scrollbarMask}` : mask, // necessary for Sogou browser support :-)
8580
+ mask: hasScrollbar ? `${mask},${scrollbarMask}` : mask,
8649
8581
  }),
8650
- scrollbarWidth: hasScrollbar ? 'thin' : 'none',
8582
+ // Override for touch devices to avoid issues with ios not rendering mask at all when using multiple mask layers
8583
+ ...(fadeEdges !== 'none' &&
8584
+ hasScrollbar &&
8585
+ pointerCoarseMediaQuery({
8586
+ WebkitMask: mask,
8587
+ mask: mask,
8588
+ })),
8651
8589
  },
8652
8590
  // as soon as `@container scroll-state(scrollable: left)` has better browser support we can get rid of sentinel and IntersectionObserver
8653
8591
  sentinel: {
@@ -8677,7 +8615,7 @@ const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
8677
8615
  const padding = hasIconAndSlottedContent
8678
8616
  ? `${verticalPadding} ${horizontalPadding} ${verticalPadding} ${verticalPadding}`
8679
8617
  : `${verticalPadding} ${horizontalPadding}`;
8680
- const dimension = `calc(max(${fontLineHeight}, ${scalingVar} * (${fontLineHeight} + 10px)) + (${verticalPadding} + ${borderWidthBase}) * 2)`;
8618
+ const dimension = `calc(max(${leadingNormal$1}, ${scalingVar} * (${leadingNormal$1} + 10px)) + (${verticalPadding} + 1px) * 2)`;
8681
8619
  return { padding, dimension };
8682
8620
  };
8683
8621
  const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, hasSlottedContent) => {
@@ -8702,7 +8640,7 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
8702
8640
  minHeight: dimension,
8703
8641
  minWidth: dimension,
8704
8642
  padding: padding,
8705
- border: `${borderWidthThin} solid ${isSelected ? formStateBorderHoverColor : formStateBorderColor}`,
8643
+ border: `1px solid ${isSelected ? formStateBorderHoverColor : formStateBorderColor}`,
8706
8644
  borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
8707
8645
  background: formStateBackgroundColor,
8708
8646
  color: colorPrimary,
@@ -8774,7 +8712,7 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8774
8712
  root: {
8775
8713
  all: 'unset',
8776
8714
  display: 'grid',
8777
- gap: spacingStaticXSmall,
8715
+ gap: spacingStaticXs$1,
8778
8716
  },
8779
8717
  // .label / .required
8780
8718
  ...getFunctionalComponentLabelStyles(disabled, false, hideLabel, {
@@ -8838,9 +8776,9 @@ const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8838
8776
  },
8839
8777
  root: {
8840
8778
  display: 'grid',
8841
- gap: spacingStaticXSmall,
8779
+ gap: spacingStaticXs$1,
8842
8780
  // min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
8843
- minWidth: `calc(1rem + ${formElementPaddingHorizontal} + ${borderWidthBase} * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
8781
+ minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
8844
8782
  },
8845
8783
  filter: getFilterJssStyle(cssVarInternalSelectScaling),
8846
8784
  options: getOptionsJssStyle(cssVarInternalSelectScaling),
@@ -8897,7 +8835,7 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
8897
8835
  ...getDialogTransitionJssStyle(isOpen, '^'),
8898
8836
  width: '100%',
8899
8837
  alignSelf: 'flex-end',
8900
- marginBlockStart: spacingFluidLarge, // ensures minimal space at the top to visualize paper sheet like border top radius in case sheet becomes scrollable
8838
+ marginBlockStart: spacingFluidLg, // ensures minimal space at the top to visualize paper sheet like border top radius in case sheet becomes scrollable
8901
8839
  borderTopLeftRadius: dialogBorderRadius,
8902
8840
  borderTopRightRadius: dialogBorderRadius,
8903
8841
  ...forcedColorsMediaQuery({
@@ -8923,7 +8861,7 @@ const cssVarColor = '--p-spinner-color';
8923
8861
  */
8924
8862
  const cssVarTrackColor = '--p-spinner-track-color';
8925
8863
  const getComponentCss$m = (color, size) => {
8926
- const dimension = `var(${cssVarSize},${leadingNormal})`;
8864
+ const dimension = `var(${cssVarSize},${leadingNormal$1})`;
8927
8865
  const strokeDasharray = '69'; // C = 2πR
8928
8866
  const animationDuration = `var(${cssVariableAnimationDuration}, ${durationXl})`;
8929
8867
  return getCss({
@@ -8960,7 +8898,7 @@ const getComponentCss$m = (color, size) => {
8960
8898
  div: {
8961
8899
  width: dimension,
8962
8900
  height: dimension,
8963
- fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
8901
+ fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
8964
8902
  ...buildResponsiveStyles(size, (s) => ({
8965
8903
  fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
8966
8904
  })),
@@ -9032,18 +8970,19 @@ const getComponentCss$l = (state, disabled) => {
9032
8970
  paddingBlock: '6px',
9033
8971
  width: 'max-content',
9034
8972
  cursor: isDisabled ? 'not-allowed' : 'pointer',
9035
- font: textSmallStyle.font,
9036
- fontSize: 'inherit', // necessary because of all: unset
8973
+ font: `${fontWeightNormal$1} inherit / ${leadingNormal$1} ${fontPorscheNext$1}`,
9037
8974
  borderRadius: `var(${legacyRadiusSmall}, ${radiusFull})`,
9038
8975
  ...(isStateCurrent && {
9039
- ...frostedGlassStyle,
8976
+ WebkitBackdropFilter: blurFrosted,
8977
+ backdropFilter: blurFrosted,
9040
8978
  background: colorFrosted,
9041
8979
  }),
9042
8980
  ...(!isDisabled &&
9043
8981
  hoverMediaQuery({
9044
8982
  transition: getTransition('background-color'),
9045
8983
  '&:hover': {
9046
- ...frostedGlassStyle,
8984
+ WebkitBackdropFilter: blurFrosted,
8985
+ backdropFilter: blurFrosted,
9047
8986
  background: colorFrosted,
9048
8987
  },
9049
8988
  })),
@@ -9060,10 +8999,9 @@ const getComponentCss$l = (state, disabled) => {
9060
8999
  },
9061
9000
  },
9062
9001
  icon: {
9063
- font: textSmallStyle.font,
9064
- fontSize: 'inherit', // necessary because of all: unset
9065
- width: fontLineHeight,
9066
- height: fontLineHeight,
9002
+ font: `inherit ${fontPorscheNext$1}`, // necessary because of all: unset and to correctly calculate width/height based on ex-unit
9003
+ width: leadingNormal$1,
9004
+ height: leadingNormal$1,
9067
9005
  forcedColorAdjust: 'none',
9068
9006
  ...(isStateCurrentOrUndefined && {
9069
9007
  display: 'grid',
@@ -9103,8 +9041,8 @@ const getComponentCss$k = (size) => {
9103
9041
  },
9104
9042
  scroller: {
9105
9043
  placeSelf: 'flex-start', // ensures scroller doesn't get stretched in x- or y-axis in case the stepper-horizontal is taller than the scroller (e.g. when placed in flex or grid context)
9106
- ...textSmallStyle,
9107
- ...buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText$1[s] })),
9044
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9045
+ ...buildResponsiveStyles(size, (s) => ({ fontSize: sizeMap$1[s] })),
9108
9046
  },
9109
9047
  });
9110
9048
  };
@@ -9123,12 +9061,12 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9123
9061
  const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, toggleBackgroundColor, textColor } = getColors$1(isChecked, isLoading);
9124
9062
  const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
9125
9063
  const gap = `calc(11.2px * (var(${cssVarInternalSwitchScaling}) - 0.64285714) + 4px)`;
9126
- const buttonBorderWidth = borderWidthThin;
9064
+ const buttonBorderWidth = '1px';
9127
9065
  const buttonWidth = `calc(var(${cssVarInternalSwitchScaling}) * 3rem)`;
9128
9066
  const buttonHeight = `calc(var(${cssVarInternalSwitchScaling}) * 1.75rem)`;
9129
- const buttonMarginBlock = `max(0px, calc((${fontLineHeight} - ${buttonHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
9067
+ const buttonMarginBlock = `max(0px, calc((${leadingNormal$1} - ${buttonHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
9130
9068
  const buttonTouchInset = `calc(-${buttonBorderWidth} - max(0px, calc(24px - ${buttonHeight}) / 2))`; // Positions the switch ::before pseudo-element with a negative offset to align it with the touch target.
9131
- const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${fontLineHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
9069
+ const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${leadingNormal$1}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
9132
9070
  const toggleDimension = `calc(var(${cssVarInternalSwitchScaling}) * 1.25rem)`;
9133
9071
  const toggleTranslateX = `calc(var(${cssVarInternalSwitchScaling}) * .1875rem)`;
9134
9072
  return getCss({
@@ -9141,7 +9079,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9141
9079
  ...addImportantToEachRule({
9142
9080
  ...(isDisabled && getDisabledBaseStyles()),
9143
9081
  outline: 0, // custom element is able to delegate the focus
9144
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct gap definition based on ex-unit
9082
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct gap definition based on ex-unit
9145
9083
  gap,
9146
9084
  ...hostHiddenStyles,
9147
9085
  ...buildResponsiveStyles(isStretched, (stretchValue) => ({
@@ -9162,7 +9100,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9162
9100
  width: buttonWidth,
9163
9101
  height: buttonHeight,
9164
9102
  marginBlock: buttonMarginBlock,
9165
- font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
9103
+ font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
9166
9104
  border: `${buttonBorderWidth} solid ${buttonBorderColor}`,
9167
9105
  borderRadius: radiusFull,
9168
9106
  background: buttonBackgroundColor,
@@ -9188,7 +9126,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
9188
9126
  },
9189
9127
  },
9190
9128
  label: {
9191
- ...textSmallStyle,
9129
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9192
9130
  minWidth: 0, // prevents flex child to overflow max available parent size
9193
9131
  minHeight: 0, // prevents flex child to overflow max available parent size
9194
9132
  cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
@@ -9265,10 +9203,10 @@ const getComponentCss$h = (isCompact, layout) => {
9265
9203
  [cssVariableTableHoverColor]: colorFrosted,
9266
9204
  [cssVariableTableBorderColor]: colorContrastLow,
9267
9205
  ...(isCompact && {
9268
- [cssVariableTablePadding]: spacingStaticSmall,
9206
+ [cssVariableTablePadding]: spacingStaticSm$1,
9269
9207
  }),
9270
9208
  ...hostHiddenStyles,
9271
- ...textSmallStyle,
9209
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9272
9210
  color: colorPrimary,
9273
9211
  textAlign: 'start',
9274
9212
  }),
@@ -9276,7 +9214,7 @@ const getComponentCss$h = (isCompact, layout) => {
9276
9214
  ...preventFoucOfNestedElementsStyles,
9277
9215
  },
9278
9216
  caption: {
9279
- marginBottom: spacingFluidMedium,
9217
+ marginBottom: spacingFluidMd$1,
9280
9218
  },
9281
9219
  table: {
9282
9220
  display: 'table',
@@ -9301,7 +9239,7 @@ const getComponentCss$g = (multiline) => {
9301
9239
  display: 'table-cell',
9302
9240
  verticalAlign: 'middle',
9303
9241
  ...addImportantToEachRule({
9304
- padding: `var(${cssVariableTablePadding}, ${spacingFluidSmall})`,
9242
+ padding: `var(${cssVariableTablePadding}, ${spacingFluidSm})`,
9305
9243
  margin: 0,
9306
9244
  whiteSpace: multiline ? 'normal' : 'nowrap',
9307
9245
  ...hostHiddenStyles,
@@ -9325,7 +9263,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
9325
9263
  ':host': {
9326
9264
  display: 'table-cell',
9327
9265
  ...addImportantToEachRule({
9328
- padding: `2px var(${cssVariableTablePadding}, ${spacingFluidSmall}) var(${cssVariableTablePadding}, ${spacingFluidSmall})`,
9266
+ padding: `2px var(${cssVariableTablePadding}, ${spacingFluidSm}) var(${cssVariableTablePadding}, ${spacingFluidSm})`,
9329
9267
  verticalAlign: 'bottom',
9330
9268
  whiteSpace: multiline ? 'normal' : 'nowrap',
9331
9269
  ...hostHiddenStyles,
@@ -9337,7 +9275,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
9337
9275
  button: {
9338
9276
  position: 'relative',
9339
9277
  display: 'flex',
9340
- gap: spacingStaticXSmall,
9278
+ gap: spacingStaticXs$1,
9341
9279
  width: 'auto',
9342
9280
  margin: 0, // Removes default button margin on safari 15
9343
9281
  padding: 0,
@@ -9351,6 +9289,9 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
9351
9289
  border: 0,
9352
9290
  zIndex: 0,
9353
9291
  cursor: 'pointer',
9292
+ '&:focus, &:focus-visible': {
9293
+ outline: 'none',
9294
+ },
9354
9295
  // TODO: re-think if ::before is still needed
9355
9296
  '&::before': {
9356
9297
  content: '""',
@@ -9367,7 +9308,8 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
9367
9308
  },
9368
9309
  },
9369
9310
  '&:hover::before': {
9370
- ...frostedGlassStyle,
9311
+ WebkitBackdropFilter: blurFrosted,
9312
+ backdropFilter: blurFrosted,
9371
9313
  backgroundColor: colorFrosted,
9372
9314
  },
9373
9315
  }),
@@ -9410,9 +9352,7 @@ const getComponentCss$d = () => {
9410
9352
  ':host': {
9411
9353
  display: 'table-header-group',
9412
9354
  ...addImportantToEachRule({
9413
- fontSize: fontSizeTextXSmall,
9414
- lineHeight: fontLineHeight,
9415
- fontWeight: fontWeightSemiBold,
9355
+ font: `${fontWeightSemibold} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9416
9356
  borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
9417
9357
  ...hostHiddenStyles,
9418
9358
  }),
@@ -9446,13 +9386,14 @@ const getComponentCss$c = () => {
9446
9386
  });
9447
9387
  };
9448
9388
 
9389
+ const delayTabStyleAttribute = 'data-delay';
9449
9390
  const backgroundMap = {
9450
9391
  canvas: colorCanvas,
9451
9392
  surface: colorSurface,
9452
9393
  frosted: colorFrosted,
9453
9394
  };
9454
9395
  const fontSizeText = {
9455
- small: typescaleSm,
9396
+ small: typescaleSm$1,
9456
9397
  medium: typescaleMd,
9457
9398
  };
9458
9399
  const getComponentCss$b = (background, size, isCompact) => {
@@ -9477,23 +9418,27 @@ const getComponentCss$b = (background, size, isCompact) => {
9477
9418
  ...(background === 'none' && {
9478
9419
  background: colorFrosted,
9479
9420
  }),
9480
- font: `${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`,
9421
+ font: `${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9481
9422
  ...buildResponsiveStyles(size, (sizeValue) => ({
9482
9423
  fontSize: fontSizeText[sizeValue],
9483
9424
  })),
9484
9425
  color: colorPrimary,
9485
- transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
9486
9426
  },
9487
9427
  '&(a:focus-visible),&(button:focus-visible)': getFocusBaseStyles(),
9488
9428
  ...hoverMediaQuery({
9489
9429
  '&(a:not([aria-current="true"]):hover),&(button:not([aria-selected="true"]):hover)': {
9430
+ // Only applied on hover since applying it globally causes the active tab to visually flash when navigating in SPAs (where the tabs-bar persist across routes but the children tabs change).
9431
+ transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
9490
9432
  background: colorFrostedStrong,
9491
9433
  },
9492
9434
  }),
9435
+ // The data attribute is applied before the tabs switching animation runs in the utils to delay the selected tab styles until the animation is finished
9436
+ [`&(a[${delayTabStyleAttribute}]),&(button[${delayTabStyleAttribute}])`]: {
9437
+ transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd$1}`, // the background shall be changed immediately after the bar transition has finished
9438
+ },
9493
9439
  '&(a[aria-current="true"]),&(button[aria-selected="true"])': {
9494
9440
  color: colorCanvas,
9495
9441
  background: colorPrimary,
9496
- transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd}`, // the background shall be changed immediately after the bar transition has finished
9497
9442
  },
9498
9443
  ...forcedColorsMediaQuery({
9499
9444
  '&(a),&(button)': {
@@ -9609,7 +9554,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
9609
9554
  background: colorFrosted,
9610
9555
  color: colorPrimary,
9611
9556
  textAlign: 'start',
9612
- ...textSmallStyle,
9557
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9613
9558
  ...hoverMediaQuery({
9614
9559
  '&:hover > .icon': {
9615
9560
  backgroundColor: colorFrosted,
@@ -9627,7 +9572,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
9627
9572
  display: 'block',
9628
9573
  marginBottom: '-4px',
9629
9574
  color: colorContrastHigh,
9630
- fontSize: fontSizeTextXSmall,
9575
+ fontSize: typescaleXs$1,
9631
9576
  },
9632
9577
  }),
9633
9578
  icon: {
@@ -9688,9 +9633,9 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
9688
9633
  position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
9689
9634
  display: 'flex',
9690
9635
  gap: '2px',
9691
- padding: compact ? '1px 6px' : `${spacingStaticXSmall} 9px`,
9692
- borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXSmall} + (${fontLineHeight} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
9693
- font: textXSmallStyle.font,
9636
+ padding: compact ? '1px 6px' : `${spacingStaticXs} 9px`,
9637
+ borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXs} + (${leadingNormal$1} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
9638
+ font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9694
9639
  ...(variant === 'secondary' && {
9695
9640
  WebkitBackdropFilter: blurFrosted,
9696
9641
  backdropFilter: blurFrosted,
@@ -9766,7 +9711,7 @@ const getComponentCss$6 = (type) => {
9766
9711
  }),
9767
9712
  },
9768
9713
  'ol,ul': {
9769
- ...textSmallStyle,
9714
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9770
9715
  margin: 0,
9771
9716
  padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) 0`,
9772
9717
  listStyleType: 'none',
@@ -9774,8 +9719,8 @@ const getComponentCss$6 = (type) => {
9774
9719
  },
9775
9720
  // css selector for text-list-item
9776
9721
  '::slotted(*)': addImportantToEachRule({
9777
- [cssVariablePaddingTop]: spacingStaticXSmall, // padding top for nested list
9778
- [cssVariablePaddingBottom]: spacingStaticMedium, // padding bottom for nested list, TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
9722
+ [cssVariablePaddingTop]: spacingStaticXs$1, // padding top for nested list
9723
+ [cssVariablePaddingBottom]: spacingStaticMd, // padding bottom for nested list, TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
9779
9724
  [cssVariablePseudoSpace]: isOrderedList
9780
9725
  ? `var(${cssVariableOrderedGridColumn},1.5rem)`
9781
9726
  : `var(${cssVariableUnorderedGridColumn},.375rem)`,
@@ -9801,7 +9746,7 @@ const getComponentCss$5 = () => {
9801
9746
  display: 'grid',
9802
9747
  ...addImportantToEachRule({
9803
9748
  gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
9804
- columnGap: spacingStaticMedium,
9749
+ columnGap: spacingStaticMd,
9805
9750
  font: 'inherit', // ensures style can't be overwritten from outside
9806
9751
  color: 'inherit', // ensures style can't be overwritten from outside
9807
9752
  ...hostHiddenStyles,
@@ -9836,14 +9781,14 @@ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
9836
9781
  ...hostHiddenStyles,
9837
9782
  }),
9838
9783
  },
9839
- [`::slotted(:is(${TEXT_TAGS.join()}))`]: addImportantToEachRule({
9784
+ [`::slotted(:is(${TEXT_TAGS.join()}))`]: {
9840
9785
  all: 'unset',
9841
- }),
9786
+ },
9842
9787
  },
9843
9788
  root: {
9844
9789
  all: 'unset',
9845
9790
  display: 'block',
9846
- font: `${weightMap[weight]} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
9791
+ font: `${weightMap[weight]} ${typescaleSm$1}/${leadingNormal$1} ${fontPorscheNext$1}`,
9847
9792
  ...buildResponsiveStyles(size, (v) => ({
9848
9793
  fontSize: sizeMap$1[v],
9849
9794
  })),
@@ -9875,7 +9820,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
9875
9820
  const textareaMinHeight = `calc(var(${cssVarInternalTextareaScaling}) * 3.5rem)`;
9876
9821
  const textareaPaddingBlock = `calc(28px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 5px)`;
9877
9822
  const textareaPaddingInline = `calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 8px)`;
9878
- const textareaPaddingBottom = `calc(${fontLineHeight} + calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px))`;
9823
+ const textareaPaddingBottom = `calc(${leadingNormal$1} + calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px))`;
9879
9824
  const counterMarginBottom = `calc(11.2px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px)`;
9880
9825
  const { formStateBorderColor, formStateBackgroundColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
9881
9826
  return getCss({
@@ -9899,14 +9844,14 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
9899
9844
  maxWidth: 'var(--p-textarea-max-width, unset)',
9900
9845
  minHeight: `var(--p-textarea-min-height, ${textareaMinHeight})`,
9901
9846
  maxHeight: 'var(--p-textarea-max-height, unset)',
9902
- border: `${borderWidthThin} solid ${formStateBorderColor}`,
9847
+ border: `1px solid ${formStateBorderColor}`,
9903
9848
  borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
9904
9849
  background: formStateBackgroundColor,
9905
9850
  color: colorPrimary,
9906
9851
  // min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character.
9907
9852
  boxSizing: 'border-box',
9908
9853
  transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
9909
- font: textSmallStyle.font,
9854
+ font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
9910
9855
  padding: hasCounter
9911
9856
  ? `${textareaPaddingBlock} ${textareaPaddingInline} ${textareaPaddingBottom}`
9912
9857
  : `${textareaPaddingBlock} ${textareaPaddingInline}`,
@@ -9930,7 +9875,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
9930
9875
  },
9931
9876
  root: {
9932
9877
  display: 'grid',
9933
- gap: spacingStaticXSmall,
9878
+ gap: spacingStaticXs$1,
9934
9879
  },
9935
9880
  wrapper: {
9936
9881
  display: 'grid',
@@ -9953,6 +9898,9 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
9953
9898
  });
9954
9899
  };
9955
9900
 
9901
+ getMediaQueryMin('s');
9902
+ getMediaQueryMax('s');
9903
+
9956
9904
  /**
9957
9905
  * @css-variable {"name": "--p-toast-position-bottom", "description": "Defines the spacing between the toast and the bottom edge of its container.", "defaultValue": "56px"}
9958
9906
  */