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