@porsche-design-system/components-react 4.2.0 → 4.3.0

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 (28) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/cjs/lib/components/tabs-bar.wrapper.cjs +3 -3
  3. package/cjs/lib/components/tabs.wrapper.cjs +3 -3
  4. package/esm/lib/components/scroller.wrapper.d.ts +2 -2
  5. package/esm/lib/components/tabs-bar.wrapper.d.ts +9 -1
  6. package/esm/lib/components/tabs-bar.wrapper.mjs +3 -3
  7. package/esm/lib/components/tabs.wrapper.d.ts +9 -1
  8. package/esm/lib/components/tabs.wrapper.mjs +3 -3
  9. package/esm/lib/types.d.ts +13 -1
  10. package/package.json +2 -2
  11. package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +121 -121
  12. package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +1 -1
  13. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.cjs +4 -4
  14. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.cjs +4 -4
  15. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -1
  16. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +6 -1
  17. package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -1
  18. package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +121 -121
  19. package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +1 -1
  20. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs-bar.wrapper.mjs +4 -4
  21. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/tabs.wrapper.mjs +4 -4
  22. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -1
  23. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +7 -2
  24. package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -1
  25. package/ssr/esm/lib/components/scroller.wrapper.d.ts +2 -2
  26. package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +9 -1
  27. package/ssr/esm/lib/components/tabs.wrapper.d.ts +9 -1
  28. package/ssr/esm/lib/types.d.ts +13 -1
@@ -1,29 +1,26 @@
1
- const palette = {
2
- dark: {
3
- grey: {
4
- '950': 'hsl(225 100% 99%)',
5
- '100a': 'hsl(240 3.7% 26.5% / 0.154)',
6
- '200a': 'hsl(240 2% 43% / 0.228)'},
7
- },
8
- };
1
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
2
+ const blurFrosted = '--p-blur-frosted';
9
3
 
10
- /** Holds the **frosted** color (dark), typically used as a background in combination with a blur effect. */
11
- const colorFrostedDark = palette.dark.grey['200a'];
4
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts do not edit by hand.
5
+ const radius2Xl = '--p-radius-2xl';
12
6
 
13
- /** Holds the **frosted-soft** color (dark), typically used as a background `:hover`. */
14
- const colorFrostedSoftDark = palette.dark.grey['100a'];
7
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts do not edit by hand.
8
+ const radius3Xl = '--p-radius-3xl';
15
9
 
16
- /** Holds the **primary** color (dark), typically used for text. */
17
- const colorPrimaryDark = palette.dark.grey["950"];
10
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts do not edit by hand.
11
+ const radiusFull = '--p-radius-full';
18
12
 
19
- /** Holds the **small static** spacing. */
20
- const spacingStaticSm$1 = '8px';
13
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts do not edit by hand.
14
+ const radiusLg = '--p-radius-lg';
21
15
 
22
- /** Holds the **x-small static** spacing. */
23
- const spacingStaticXs$1 = '4px';
16
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts do not edit by hand.
17
+ const radiusMd = '--p-radius-md';
24
18
 
25
19
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
26
- const blurFrosted = '--p-blur-frosted';
20
+ const radiusSm = '--p-radius-sm';
21
+
22
+ // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
23
+ const radiusXl = '--p-radius-xl';
27
24
 
28
25
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
29
26
  const colorFocus = '--p-color-focus';
@@ -116,118 +113,97 @@ const colorWarningFrostedSoft = '--p-color-warning-frosted-soft';
116
113
  const colorWarningMedium = '--p-color-warning-medium';
117
114
 
118
115
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
119
- const durationLg = '--p-duration-lg';
120
-
121
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
122
- const durationMd$1 = '--p-duration-md';
123
-
124
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
125
- const durationSm = '--p-duration-sm';
126
-
127
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
128
- const durationXl = '--p-duration-xl';
129
-
130
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
131
- const easeIn$1 = '--p-ease-in';
132
-
133
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
134
- const easeInOut = '--p-ease-in-out';
135
-
136
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
137
- const easeOut$1 = '--p-ease-out';
138
-
139
- // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
140
- const radius2Xl = '--p-radius-2xl';
116
+ const fontPorscheNext$1 = '--p-font-porsche-next';
141
117
 
142
118
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
143
- const radius3Xl = '--p-radius-3xl';
119
+ const leadingNormal$1 = '--p-leading-normal';
144
120
 
145
121
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
146
- const radiusFull = '--p-radius-full';
122
+ const typescale2Xl = '--p-typescale-2xl';
147
123
 
148
124
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
149
- const radiusLg = '--p-radius-lg';
125
+ const typescale2Xs = '--p-typescale-2xs';
150
126
 
151
127
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
152
- const radiusMd = '--p-radius-md';
128
+ const typescale3Xl = '--p-typescale-3xl';
153
129
 
154
130
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
155
- const radiusSm = '--p-radius-sm';
131
+ const typescale4Xl = '--p-typescale-4xl';
156
132
 
157
133
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
158
- const radiusXl = '--p-radius-xl';
134
+ const typescale5Xl = '--p-typescale-5xl';
159
135
 
160
136
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
161
- const shadowLg = '--p-shadow-lg';
137
+ const typescaleLg = '--p-typescale-lg';
162
138
 
163
139
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
164
- const spacingFluidLg = '--p-spacing-fluid-lg';
140
+ const typescaleMd = '--p-typescale-md';
165
141
 
166
142
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
167
- const spacingFluidMd$1 = '--p-spacing-fluid-md';
143
+ const typescaleSm$1 = '--p-typescale-sm';
168
144
 
169
145
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
170
- const spacingFluidSm = '--p-spacing-fluid-sm';
146
+ const typescaleXl = '--p-typescale-xl';
171
147
 
172
148
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
173
- const spacingFluidXs = '--p-spacing-fluid-xs';
149
+ const typescaleXs$1 = '--p-typescale-xs';
174
150
 
175
151
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
176
- const spacingStatic2Xs = '--p-spacing-static-2xs';
152
+ const fontWeightBold = '--p-font-weight-bold';
177
153
 
178
154
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
179
- const spacingStaticMd = '--p-spacing-static-md';
155
+ const fontWeightNormal$1 = '--p-font-weight-normal';
180
156
 
181
157
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
182
- const spacingStaticSm = '--p-spacing-static-sm';
158
+ const fontWeightSemibold = '--p-font-weight-semibold';
183
159
 
184
160
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
185
- const spacingStaticXs = '--p-spacing-static-xs';
161
+ const durationLg = '--p-duration-lg';
186
162
 
187
163
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
188
- const fontPorscheNext$1 = '--p-font-porsche-next';
164
+ const durationMd$1 = '--p-duration-md';
189
165
 
190
166
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
191
- const leadingNormal$1 = '--p-leading-normal';
167
+ const durationSm = '--p-duration-sm';
192
168
 
193
169
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
194
- const typescale2Xl = '--p-typescale-2xl';
170
+ const durationXl = '--p-duration-xl';
195
171
 
196
172
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
197
- const typescale2Xs = '--p-typescale-2xs';
173
+ const easeIn$1 = '--p-ease-in';
198
174
 
199
175
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
200
- const typescale3Xl = '--p-typescale-3xl';
176
+ const easeInOut = '--p-ease-in-out';
201
177
 
202
178
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
203
- const typescale4Xl = '--p-typescale-4xl';
179
+ const easeOut$1 = '--p-ease-out';
204
180
 
205
181
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
206
- const typescale5Xl = '--p-typescale-5xl';
182
+ const shadowLg = '--p-shadow-lg';
207
183
 
208
184
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
209
- const typescaleLg = '--p-typescale-lg';
185
+ const spacingFluidLg = '--p-spacing-fluid-lg';
210
186
 
211
187
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
212
- const typescaleMd = '--p-typescale-md';
188
+ const spacingFluidMd$1 = '--p-spacing-fluid-md';
213
189
 
214
190
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
215
- const typescaleSm$1 = '--p-typescale-sm';
191
+ const spacingFluidSm = '--p-spacing-fluid-sm';
216
192
 
217
193
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
218
- const typescaleXl = '--p-typescale-xl';
194
+ const spacingFluidXs = '--p-spacing-fluid-xs';
219
195
 
220
196
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
221
- const typescaleXs$1 = '--p-typescale-xs';
197
+ const spacingStatic2Xs = '--p-spacing-static-2xs';
222
198
 
223
199
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
224
- const fontWeightBold = '--p-font-weight-bold';
200
+ const spacingStaticMd = '--p-spacing-static-md';
225
201
 
226
202
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
227
- const fontWeightNormal$1 = '--p-font-weight-normal';
203
+ const spacingStaticSm$1 = '--p-spacing-static-sm';
228
204
 
229
205
  // AUTO-GENERATED by scripts/buildCssVariableConstants.ts — do not edit by hand.
230
- const fontWeightSemibold = '--p-font-weight-semibold';
206
+ const spacingStaticXs$1 = '--p-spacing-static-xs';
231
207
 
232
208
  // Wraps a bare CSS custom property name
233
209
  // (e.g. `--p-color-canvas`, exported as a plain literal const) into a CSS
@@ -3871,7 +3847,7 @@ const OPTION_LIST_SAFE_ZONE = 6;
3871
3847
 
3872
3848
  const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
3873
3849
 
3874
- const prefix = `[Porsche Design System v${"4.2.0"}]` // this part isn't covered by unit tests
3850
+ const prefix = `[Porsche Design System v${"4.3.0"}]` // this part isn't covered by unit tests
3875
3851
  ;
3876
3852
  const consoleError = (...messages) => {
3877
3853
  console.error(prefix, ...messages);
@@ -4217,8 +4193,8 @@ const getComponentCss$19 = () => {
4217
4193
  display: 'flex',
4218
4194
  alignItems: 'center',
4219
4195
  gap: '2px',
4220
- padding: `0 ${ref(spacingStaticSm)} 0 ${ref(spacingStaticXs)}`,
4221
- borderRadius: `calc(${ref(spacingStaticXs)} + (${ref(leadingNormal$1)} / 2))`, // ensures pill shape has a maximum border radius to support multiline.
4196
+ padding: `0 ${ref(spacingStaticSm$1)} 0 ${ref(spacingStaticXs$1)}`,
4197
+ borderRadius: `calc(${ref(spacingStaticXs$1)} + (${ref(leadingNormal$1)} / 2))`, // ensures pill shape has a maximum border radius to support multiline.
4222
4198
  fontSize: ref(typescale2Xs),
4223
4199
  color: ref(colorContrastHigh),
4224
4200
  background: ref(colorFrostedStrong),
@@ -4325,7 +4301,7 @@ const getFunctionalComponentNotificationBaseStyles = (state, hasAction, hasDismi
4325
4301
  'slot:not([name]),slot[name="description"],p': {
4326
4302
  all: 'unset',
4327
4303
  gridArea: hasHeadingOrHeadingSlot ? '2/2' : '1/2',
4328
- marginTop: hasHeadingOrHeadingSlot ? ref(spacingStaticXs) : '0px',
4304
+ marginTop: hasHeadingOrHeadingSlot ? ref(spacingStaticXs$1) : '0px',
4329
4305
  font: `${ref(fontWeightNormal$1)} ${ref(typescaleSm$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
4330
4306
  color: ref(colorPrimary),
4331
4307
  },
@@ -4333,7 +4309,7 @@ const getFunctionalComponentNotificationBaseStyles = (state, hasAction, hasDismi
4333
4309
  notification: {
4334
4310
  display: 'grid',
4335
4311
  gridTemplate: `repeat(3, auto) / auto minmax(0, 1fr) repeat(2, auto)`,
4336
- padding: `calc(${ref(spacingStaticSm)} + ${ref(spacingFluidSm)})`,
4312
+ padding: `calc(${ref(spacingStaticSm$1)} + ${ref(spacingFluidSm)})`,
4337
4313
  borderRadius: ref(radius2Xl),
4338
4314
  background: notificationBackgroundMap[state],
4339
4315
  WebkitBackdropFilter: ref(blurFrosted),
@@ -4349,7 +4325,7 @@ const getFunctionalComponentNotificationBaseStyles = (state, hasAction, hasDismi
4349
4325
  content: '""',
4350
4326
  width: '1.5rem',
4351
4327
  height: '1.5rem',
4352
- marginInlineEnd: ref(spacingStaticSm),
4328
+ marginInlineEnd: ref(spacingStaticSm$1),
4353
4329
  background: notificationColorMap[state],
4354
4330
  WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
4355
4331
  mask: `${notificationIconMap[state]} center/contain no-repeat`,
@@ -4509,7 +4485,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
4509
4485
  textDecoration: underline ? 'underline' : 'none',
4510
4486
  font: `${ref(fontWeightNormal$1)} ${ref(typescaleSm$1)}/${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
4511
4487
  ...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
4512
- gap: hidelabelValue ? 0 : ref(spacingStaticXs),
4488
+ gap: hidelabelValue ? 0 : ref(spacingStaticXs$1),
4513
4489
  })), buildResponsiveStyles(stretch, (stretchValue) => ({
4514
4490
  justifyContent: stretchValue ? 'space-between' : 'flex-start',
4515
4491
  alignItems: stretchValue ? 'center' : 'flex-start',
@@ -4892,6 +4868,30 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
4892
4868
  }));
4893
4869
  };
4894
4870
 
4871
+ const palette = {
4872
+ dark: {
4873
+ grey: {
4874
+ '950': 'hsl(225 100% 99%)',
4875
+ '100a': 'hsl(240 3.7% 26.5% / 0.154)',
4876
+ '200a': 'hsl(240 2% 43% / 0.228)'},
4877
+ },
4878
+ };
4879
+
4880
+ /** Holds the **frosted** color (dark), typically used as a background in combination with a blur effect. */
4881
+ const colorFrostedDark = palette.dark.grey['200a'];
4882
+
4883
+ /** Holds the **frosted-soft** color (dark), typically used as a background `:hover`. */
4884
+ const colorFrostedSoftDark = palette.dark.grey['100a'];
4885
+
4886
+ /** Holds the **primary** color (dark), typically used for text. */
4887
+ const colorPrimaryDark = palette.dark.grey["950"];
4888
+
4889
+ /** Holds the **small static** spacing. */
4890
+ const spacingStaticSm = '8px';
4891
+
4892
+ /** Holds the **x-small static** spacing. */
4893
+ const spacingStaticXs = '4px';
4894
+
4895
4895
  /**
4896
4896
  * @css-variable {"name": "--p-canvas-sidebar-start-width", "description": "Width of the sidebar start.", "defaultValue": "320px"}
4897
4897
  */
@@ -4970,7 +4970,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
4970
4970
  },
4971
4971
  h2: {
4972
4972
  all: 'unset',
4973
- padding: spacingStaticXs$1, // preserve enough spacing for focus state
4973
+ padding: spacingStaticXs, // preserve enough spacing for focus state
4974
4974
  font: `${ref(fontWeightNormal$1)} ${ref(typescaleXs$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
4975
4975
  color: ref(colorPrimary),
4976
4976
  textOverflow: 'ellipsis',
@@ -5018,13 +5018,13 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
5018
5018
  gridTemplateColumns: 'minmax(0,1fr) auto minmax(0,1fr)',
5019
5019
  gap: spacingBase,
5020
5020
  alignItems: 'center',
5021
- padding: `${ref(spacingStaticSm)} ${spacingBase}`,
5021
+ padding: `${ref(spacingStaticSm$1)} ${spacingBase}`,
5022
5022
  '&:focus-visible': {
5023
5023
  outline: 'none',
5024
5024
  },
5025
5025
  '&__area': {
5026
5026
  display: 'flex',
5027
- gap: ref(spacingStaticSm),
5027
+ gap: ref(spacingStaticSm$1),
5028
5028
  alignItems: 'center',
5029
5029
  '&--start': {
5030
5030
  justifyContent: 'flex-start',
@@ -5170,12 +5170,12 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
5170
5170
  '&__header': {
5171
5171
  zIndex: 9999999,
5172
5172
  display: 'flex',
5173
- gap: ref(spacingStaticSm),
5173
+ gap: ref(spacingStaticSm$1),
5174
5174
  alignItems: 'center',
5175
5175
  position: 'sticky',
5176
5176
  top: `calc(-1 * ${spacingBase})`,
5177
5177
  margin: `calc(-1 * ${spacingBase}) calc(-1 * ${spacingBase}) ${spacingBase}`,
5178
- padding: `${ref(spacingStaticSm)} ${spacingBase}`,
5178
+ padding: `${ref(spacingStaticSm$1)} ${spacingBase}`,
5179
5179
  minHeight: '56px',
5180
5180
  boxSizing: 'border-box',
5181
5181
  '&--start': {
@@ -5343,13 +5343,13 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
5343
5343
  gridRowStart: '3',
5344
5344
  gridColumnEnd: '-1',
5345
5345
  display: 'flex',
5346
- gap: ref(spacingStaticXs),
5346
+ gap: ref(spacingStaticXs$1),
5347
5347
  alignSelf: 'flex-start', // relevant in case slot="header" becomes higher than nav group
5348
5348
  },
5349
5349
  colorScheme: ref(cssVariablePrevNextColorScheme),
5350
5350
  },
5351
5351
  btn: {
5352
- padding: ref(spacingStaticSm),
5352
+ padding: ref(spacingStaticSm$1),
5353
5353
  },
5354
5354
  'skip-link': {
5355
5355
  // :focus must be used in this case, because :focus-visible is just matched on the focusable element itself, not on the host element.
@@ -5659,7 +5659,7 @@ const getFunctionalComponentLabelAfterStyles = () => {
5659
5659
  verticalAlign: 'top',
5660
5660
  '&::slotted(*)': {
5661
5661
  ...addImportantToEachRule({
5662
- marginInlineStart: ref(spacingStaticXs),
5662
+ marginInlineStart: ref(spacingStaticXs$1),
5663
5663
  }),
5664
5664
  },
5665
5665
  };
@@ -5701,8 +5701,8 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
5701
5701
  cursor: 'unset',
5702
5702
  fontSize: ref(typescaleXs$1),
5703
5703
  color: ref(colorContrastHigh),
5704
- ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `calc(-1 * ${ref(spacingStaticXs)})` })),
5705
- marginTop: `calc(-1 * ${ref(spacingStaticXs)})`,
5704
+ ...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `calc(-1 * ${ref(spacingStaticXs$1)})` })),
5705
+ marginTop: `calc(-1 * ${ref(spacingStaticXs$1)})`,
5706
5706
  },
5707
5707
  '& > slot[name="label"]::slotted(*)': {
5708
5708
  ...addImportantToEachRule({
@@ -5720,7 +5720,7 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
5720
5720
  return {
5721
5721
  message: {
5722
5722
  display: 'flex',
5723
- gap: ref(spacingStaticXs),
5723
+ gap: ref(spacingStaticXs$1),
5724
5724
  font: `${ref(fontWeightNormal$1)} ${ref(typescaleSm$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
5725
5725
  color: getThemedFormStateColors(state).formStateColor,
5726
5726
  transition: `${getTransition('color')}, ${getTransition('opacity')}`,
@@ -5764,7 +5764,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
5764
5764
  },
5765
5765
  root: {
5766
5766
  display: 'grid',
5767
- rowGap: ref(spacingStaticXs),
5767
+ rowGap: ref(spacingStaticXs$1),
5768
5768
  },
5769
5769
  wrapper: {
5770
5770
  position: 'relative',
@@ -6070,7 +6070,7 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
6070
6070
  },
6071
6071
  root: {
6072
6072
  display: 'grid',
6073
- gap: ref(spacingStaticXs),
6073
+ gap: ref(spacingStaticXs$1),
6074
6074
  },
6075
6075
  wrapper: {
6076
6076
  display: 'flex',
@@ -6676,7 +6676,7 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
6676
6676
  position: 'absolute',
6677
6677
  insetInlineStart: `calc(100% + ${ref(spacingFluidSm)})`,
6678
6678
  insetBlockStart: ref(spacingFluidSm),
6679
- padding: ref(spacingStaticSm),
6679
+ padding: ref(spacingStaticSm$1),
6680
6680
  },
6681
6681
  },
6682
6682
  back: {
@@ -7454,11 +7454,11 @@ const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnl
7454
7454
 
7455
7455
  const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
7456
7456
  // TODO: basic button/icon padding can already be set within style function instead of on component style level
7457
- const formButtonOrIconPadding = ref(spacingStaticXs);
7457
+ const formButtonOrIconPadding = ref(spacingStaticXs$1);
7458
7458
  // TODO: if we'd use 12px instead, it wouldn't be necessary for textarea to have a custom vertical padding,
7459
7459
  // unfortunately line-height alignment breaks for a select element for some reasons then
7460
7460
  // TODO: basic form element padding can already be set within style function instead of on component style level
7461
- const formElementPaddingVertical = ref(spacingStaticSm);
7461
+ const formElementPaddingVertical = ref(spacingStaticSm$1);
7462
7462
  // TODO: basic form element padding can already be set within style function instead of on component style level
7463
7463
  const formElementPaddingHorizontal = ref(spacingStaticMd);
7464
7464
  const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
@@ -8128,7 +8128,7 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8128
8128
  },
8129
8129
  root: {
8130
8130
  display: 'grid',
8131
- gap: ref(spacingStaticXs),
8131
+ gap: ref(spacingStaticXs$1),
8132
8132
  // 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.
8133
8133
  minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
8134
8134
  },
@@ -8168,11 +8168,11 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
8168
8168
  },
8169
8169
  ul: {
8170
8170
  display: 'flex',
8171
- gap: ref(spacingStaticXs),
8171
+ gap: ref(spacingStaticXs$1),
8172
8172
  margin: 0,
8173
8173
  padding: 0,
8174
8174
  [mediaQueryMinS]: {
8175
- gap: ref(spacingStaticSm),
8175
+ gap: ref(spacingStaticSm$1),
8176
8176
  },
8177
8177
  },
8178
8178
  li: {
@@ -8318,7 +8318,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
8318
8318
  root: {
8319
8319
  all: 'unset',
8320
8320
  display: 'grid',
8321
- gap: ref(spacingStaticXs),
8321
+ gap: ref(spacingStaticXs$1),
8322
8322
  },
8323
8323
  wrapper: {
8324
8324
  position: 'relative',
@@ -8424,7 +8424,7 @@ const getComponentCss$v = () => {
8424
8424
  maxWidth: `min(calc(100dvw - ${POPOVER_SAFE_ZONE * 2}px), 48ch)`,
8425
8425
  width: 'max-content', // ensures in older browsers correct width
8426
8426
  boxSizing: 'border-box',
8427
- padding: `${ref(spacingStaticSm)} ${ref(spacingStaticMd)}`,
8427
+ padding: `${ref(spacingStaticSm$1)} ${ref(spacingStaticMd)}`,
8428
8428
  pointerEvents: 'auto',
8429
8429
  borderRadius: ref(radiusXl),
8430
8430
  background: ref(colorCanvas),
@@ -8512,7 +8512,7 @@ const getComponentCss$u = (disabled, loading, state) => {
8512
8512
  root: {
8513
8513
  display: 'grid',
8514
8514
  gridTemplateColumns: 'auto minmax(0, 1fr)',
8515
- rowGap: ref(spacingStaticXs),
8515
+ rowGap: ref(spacingStaticXs$1),
8516
8516
  },
8517
8517
  wrapper: {
8518
8518
  position: 'relative',
@@ -8580,7 +8580,7 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
8580
8580
  all: 'unset',
8581
8581
  display: 'grid',
8582
8582
  justifySelf: 'flex-start',
8583
- rowGap: ref(spacingStaticXs),
8583
+ rowGap: ref(spacingStaticXs$1),
8584
8584
  },
8585
8585
  wrapper: {
8586
8586
  alignItems: 'start',
@@ -8685,12 +8685,12 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
8685
8685
  width: '1.5rem',
8686
8686
  height: '1.5rem',
8687
8687
  ...(!isCompact && {
8688
- padding: ref(spacingStaticXs),
8688
+ padding: ref(spacingStaticXs$1),
8689
8689
  }),
8690
8690
  cursor: 'pointer',
8691
8691
  opacity: isVisible ? 1 : 0,
8692
8692
  visibility: isVisible ? 'inherit' : 'hidden',
8693
- transform: `translate3d(${isVisible ? '0' : `${isPrev ? `calc(-1 * ${ref(spacingStaticSm)})` : ref(spacingStaticSm)}`},0,0)`,
8693
+ transform: `translate3d(${isVisible ? '0' : `${isPrev ? `calc(-1 * ${ref(spacingStaticSm$1)})` : ref(spacingStaticSm$1)}`},0,0)`,
8694
8694
  transition: `${getTransition('transform')},${getTransition('opacity')},visibility 0s linear ${isVisible ? '0s' : ref(cssVariableTransitionDuration, ref(durationSm))}`,
8695
8695
  '&:dir(rtl)': {
8696
8696
  gridArea: isPrev ? '1/3' : '1/1',
@@ -8698,7 +8698,7 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
8698
8698
  ...hoverMediaQuery({
8699
8699
  '&:hover::after': {
8700
8700
  // do the transform on the pseudo-element to prevent the click area from moving when hovered
8701
- transform: `translate3d(${isPrev ? `calc(-1 * ${ref(spacingStaticXs)})` : ref(spacingStaticXs)},0,0)`,
8701
+ transform: `translate3d(${isPrev ? `calc(-1 * ${ref(spacingStaticXs$1)})` : ref(spacingStaticXs$1)},0,0)`,
8702
8702
  },
8703
8703
  }),
8704
8704
  '&::after': {
@@ -8738,7 +8738,7 @@ isSticky, hasScrollbar, isCompact) => {
8738
8738
  gridArea: '1/2',
8739
8739
  position: 'relative', // necessary for tabs bar animation
8740
8740
  display: 'inline-flex',
8741
- gap: ref(cssVarGap, isCompact ? ref(spacingStaticXs) : ref(spacingStaticSm)),
8741
+ gap: ref(cssVarGap, isCompact ? ref(spacingStaticXs$1) : ref(spacingStaticSm$1)),
8742
8742
  },
8743
8743
  },
8744
8744
  root: {
@@ -8905,7 +8905,7 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8905
8905
  root: {
8906
8906
  all: 'unset',
8907
8907
  display: 'grid',
8908
- gap: ref(spacingStaticXs),
8908
+ gap: ref(spacingStaticXs$1),
8909
8909
  },
8910
8910
  // .label / .required
8911
8911
  ...getFunctionalComponentLabelStyles(disabled, false, hideLabel, {
@@ -8915,7 +8915,7 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
8915
8915
  ...getFunctionalComponentStateMessageStyles(state),
8916
8916
  ...(noWrap && {
8917
8917
  scroller: {
8918
- margin: `-${ref(spacingStaticXs)} 0`,
8918
+ margin: `-${ref(spacingStaticXs$1)} 0`,
8919
8919
  },
8920
8920
  }),
8921
8921
  });
@@ -8974,7 +8974,7 @@ const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
8974
8974
  },
8975
8975
  root: {
8976
8976
  display: 'grid',
8977
- gap: ref(spacingStaticXs),
8977
+ gap: ref(spacingStaticXs$1),
8978
8978
  // 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.
8979
8979
  minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
8980
8980
  },
@@ -9163,9 +9163,9 @@ const getComponentCss$l = (state, disabled) => {
9163
9163
  all: 'unset',
9164
9164
  display: 'grid',
9165
9165
  gridTemplateColumns: 'auto minmax(0,1fr)',
9166
- gap: spacingStaticXs$1,
9166
+ gap: spacingStaticXs,
9167
9167
  color: ref(colorPrimary),
9168
- paddingInline: `${spacingStaticSm$1} 12px`,
9168
+ paddingInline: `${spacingStaticSm} 12px`,
9169
9169
  paddingBlock: '6px',
9170
9170
  width: 'max-content',
9171
9171
  cursor: isDisabled ? 'not-allowed' : 'pointer',
@@ -9401,7 +9401,7 @@ const getComponentCss$h = (isCompact, layout) => {
9401
9401
  '--p-scroller-indicator-bottom': ref(cssVarScrollIndicatorBottom, '0px'),
9402
9402
  [cssVariableTableHoverColor]: ref(colorFrosted),
9403
9403
  [cssVariableTableBorderColor]: ref(colorContrastLow),
9404
- [cssVariableTablePadding]: isCompact ? ref(spacingStaticSm) : ref(spacingFluidSm),
9404
+ [cssVariableTablePadding]: isCompact ? ref(spacingStaticSm$1) : ref(spacingFluidSm),
9405
9405
  [cssVariableTableBorderWidth]: '1px',
9406
9406
  ...hostHiddenStyles,
9407
9407
  font: `${ref(fontWeightNormal$1)} ${ref(typescaleSm$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
@@ -9473,7 +9473,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
9473
9473
  button: {
9474
9474
  position: 'relative',
9475
9475
  display: 'flex',
9476
- gap: ref(spacingStaticXs),
9476
+ gap: ref(spacingStaticXs$1),
9477
9477
  width: 'auto',
9478
9478
  margin: 0, // Removes default button margin on safari 15
9479
9479
  padding: 0,
@@ -9616,8 +9616,8 @@ const getComponentCss$b = (background, size, isCompact, activeTabIndex) => {
9616
9616
  // padding by the same amount so the overall hit area / visual height stays stable.
9617
9617
  padding: hasBackground
9618
9618
  ? isCompact
9619
- ? `calc(7 * ${ref(spacingStatic2Xs)} - ${ref(spacingStaticXs)}) calc(${ref(spacingStaticMd)} - ${ref(spacingStaticXs)})`
9620
- : `calc(${ref(spacingStaticMd)} - ${ref(spacingStaticXs)}) calc(28 * ${ref(spacingStatic2Xs)} - ${ref(spacingStaticXs)})`
9619
+ ? `calc(7 * ${ref(spacingStatic2Xs)} - ${ref(spacingStaticXs$1)}) calc(${ref(spacingStaticMd)} - ${ref(spacingStaticXs$1)})`
9620
+ : `calc(${ref(spacingStaticMd)} - ${ref(spacingStaticXs$1)}) calc(28 * ${ref(spacingStatic2Xs)} - ${ref(spacingStaticXs$1)})`
9621
9621
  : isCompact
9622
9622
  ? `calc(6 * ${ref(spacingStatic2Xs)}) ${ref(spacingStaticMd)}`
9623
9623
  : `${ref(spacingStaticMd)} calc(28 * ${ref(spacingStatic2Xs)})`,
@@ -9675,7 +9675,7 @@ const getComponentCss$b = (background, size, isCompact, activeTabIndex) => {
9675
9675
  placeSelf: 'flex-start', // ensures scroller doesn't get stretched in x- or y-axis in case the tabs-bar is taller than the scroller (e.g. when placed in flex or grid context)
9676
9676
  ...(hasBackground && {
9677
9677
  background: backgroundMap[background],
9678
- padding: isCompact ? `calc(3 * ${ref(spacingStatic2Xs)})` : ref(spacingStaticXs),
9678
+ padding: isCompact ? `calc(3 * ${ref(spacingStatic2Xs)})` : ref(spacingStaticXs$1),
9679
9679
  borderRadius: isCompact ? ref(radiusLg) : ref(radiusXl), // radius for rail
9680
9680
  ...forcedColorsMediaQuery({
9681
9681
  forcedColorAdjust: 'none',
@@ -9731,7 +9731,7 @@ const getComponentCss$9 = () => {
9731
9731
  ...preventFoucOfNestedElementsStyles,
9732
9732
  },
9733
9733
  root: {
9734
- marginBottom: ref(spacingStaticSm),
9734
+ marginBottom: ref(spacingStaticSm$1),
9735
9735
  },
9736
9736
  });
9737
9737
  };
@@ -9860,9 +9860,9 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
9860
9860
  display: 'flex',
9861
9861
  gap: '2px',
9862
9862
  padding: compact
9863
- ? `${ref(spacingStatic2Xs)} ${ref(spacingStaticSm)}`
9864
- : `${spacingStaticXs$1} calc(12 * ${ref(spacingStatic2Xs)})`,
9865
- borderRadius: `calc(${compact ? '1px' : spacingStaticXs$1} + (${ref(leadingNormal$1)} / 2))`, // ensures pill shape has a maximum border radius to support multiline.
9863
+ ? `${ref(spacingStatic2Xs)} ${ref(spacingStaticSm$1)}`
9864
+ : `${spacingStaticXs} calc(12 * ${ref(spacingStatic2Xs)})`,
9865
+ borderRadius: `calc(${compact ? '1px' : spacingStaticXs} + (${ref(leadingNormal$1)} / 2))`, // ensures pill shape has a maximum border radius to support multiline.
9866
9866
  font: `${ref(fontWeightNormal$1)} ${ref(typescaleXs$1)} / ${ref(leadingNormal$1)} ${ref(fontPorscheNext$1)}`,
9867
9867
  ...((variant === 'secondary' ||
9868
9868
  variant === 'info-frosted' ||
@@ -9951,7 +9951,7 @@ const getComponentCss$6 = (type) => {
9951
9951
  },
9952
9952
  // css selector for text-list-item
9953
9953
  '::slotted(*)': addImportantToEachRule({
9954
- [cssVariablePaddingTop]: ref(spacingStaticXs), // padding top for nested list
9954
+ [cssVariablePaddingTop]: ref(spacingStaticXs$1), // padding top for nested list
9955
9955
  [cssVariablePaddingBottom]: ref(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
9956
9956
  [cssVariablePseudoSpace]: isOrderedList
9957
9957
  ? ref(cssVariableOrderedGridColumn, '1.5rem')
@@ -10107,7 +10107,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
10107
10107
  },
10108
10108
  root: {
10109
10109
  display: 'grid',
10110
- gap: ref(spacingStaticXs),
10110
+ gap: ref(spacingStaticXs$1),
10111
10111
  },
10112
10112
  wrapper: {
10113
10113
  display: 'grid',
@@ -3480,7 +3480,7 @@ const hasShowPickerSupport = () => (hasDocument &&
3480
3480
  'showPicker' in HTMLInputElement.prototype &&
3481
3481
  CSS.supports('selector(::-webkit-calendar-picker-indicator)'));
3482
3482
 
3483
- const prefix = `[Porsche Design System v${"4.2.0"}]` // this part isn't covered by unit tests
3483
+ const prefix = `[Porsche Design System v${"4.3.0"}]` // this part isn't covered by unit tests
3484
3484
  ;
3485
3485
  const consoleError$1 = (...messages) => {
3486
3486
  console.error(prefix, ...messages);
@@ -5,21 +5,21 @@ import { useEventCallback, usePrefix, useBrowserLayoutEffect, useMergedClass } f
5
5
  import { syncRef } from '../../utils.mjs';
6
6
  import { DSRTabsBar } from '../dsr-components/tabs-bar.mjs';
7
7
 
8
- const PTabsBar = /*#__PURE__*/ forwardRef(({ activeTabIndex, background = 'none', compact, onUpdate, size = 'small', weight = 'regular', className, children, ...rest }, ref) => {
8
+ const PTabsBar = /*#__PURE__*/ forwardRef(({ activeTabIndex, aria, background = 'none', compact, onUpdate, size = 'small', weight = 'regular', className, children, ...rest }, ref) => {
9
9
  const elementRef = useRef(undefined);
10
10
  useEventCallback(elementRef, 'update', onUpdate);
11
11
  const WebComponentTag = usePrefix('p-tabs-bar');
12
- const propsToSync = [activeTabIndex, background, compact, size, weight];
12
+ const propsToSync = [activeTabIndex, aria, background, compact, size, weight];
13
13
  useBrowserLayoutEffect(() => {
14
14
  const { current } = elementRef;
15
- ['activeTabIndex', 'background', 'compact', 'size', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
15
+ ['activeTabIndex', 'aria', 'background', 'compact', 'size', 'weight'].forEach((propName, i) => (current[propName] = propsToSync[i]));
16
16
  }, propsToSync);
17
17
  const props = {
18
18
  ...rest,
19
19
  // @ts-ignore
20
20
  ...(!process.browser
21
21
  ? {
22
- children: (jsx(DSRTabsBar, { activeTabIndex, background, compact, size, weight, children })),
22
+ children: (jsx(DSRTabsBar, { activeTabIndex, aria, background, compact, size, weight, children })),
23
23
  }
24
24
  : {
25
25
  children,