@porsche-design-system/components-react 3.0.0-alpha.0 → 3.0.0-alpha.2
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 +65 -2
- package/OSS_NOTICE +65234 -2280
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +58 -0
- package/esm/lib/components/carousel.wrapper.js +3 -3
- package/esm/lib/components/content-wrapper.wrapper.js +1 -1
- package/esm/lib/components/divider.wrapper.js +1 -1
- package/esm/lib/components/model-signature.wrapper.js +22 -0
- package/esm/public-api.js +1 -0
- package/lib/components/carousel.wrapper.d.ts +21 -3
- package/lib/components/carousel.wrapper.js +3 -3
- package/lib/components/content-wrapper.wrapper.js +1 -1
- package/lib/components/divider.wrapper.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/model-signature.wrapper.d.ts +38 -0
- package/lib/components/model-signature.wrapper.js +24 -0
- package/lib/components/text-list.wrapper.d.ts +6 -6
- package/lib/types.d.ts +89 -32
- package/package.json +6 -3
- package/public-api.js +2 -0
- package/ssr/components/dist/styles/esm/styles-entry.js +346 -296
- package/ssr/components/dist/utils/esm/utils-entry.js +48 -32
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +4 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +37 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +2 -4
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +3 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +17 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +3 -2
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +2 -1
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +1 -3
- package/ssr/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +5 -7
- package/ssr/components-react/projects/react-ssr-wrapper/src/public-api.js +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.js +319 -270
- package/ssr/esm/components/dist/utils/esm/utils-entry.js +46 -33
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/carousel.wrapper.js +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/content-wrapper.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/divider.wrapper.js +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/model-signature.wrapper.js +35 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-list-item.wrapper.js +2 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.js +4 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.js +4 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.js +4 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/marque.js +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.js +15 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.js +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.js +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.js +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.js +2 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.js +6 -8
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.js +1 -0
- package/ssr/lib/components/carousel.wrapper.d.ts +21 -3
- package/ssr/lib/components/index.d.ts +1 -0
- package/ssr/lib/components/model-signature.wrapper.d.ts +38 -0
- package/ssr/lib/components/text-list.wrapper.d.ts +6 -6
- package/ssr/lib/dsr-components/model-signature.d.ts +5 -0
- package/ssr/lib/dsr-components/text-list-item.d.ts +1 -2
- package/ssr/lib/types.d.ts +89 -32
|
@@ -58,15 +58,15 @@ const fontHyphenationStyle = {
|
|
|
58
58
|
|
|
59
59
|
const fontLineHeight = 'calc(6px + 2.125ex)';
|
|
60
60
|
|
|
61
|
-
const fontSizeTextXSmall = '.
|
|
61
|
+
const fontSizeTextXSmall = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
|
|
62
62
|
|
|
63
63
|
const fontSizeTextSmall = '1rem';
|
|
64
64
|
|
|
65
|
-
const fontSizeTextMedium = 'clamp(1.
|
|
65
|
+
const fontSizeTextMedium = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
|
|
66
66
|
|
|
67
|
-
const fontSizeTextLarge = 'clamp(1.
|
|
67
|
+
const fontSizeTextLarge = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
|
|
68
68
|
|
|
69
|
-
const fontSizeTextXLarge = 'clamp(1.
|
|
69
|
+
const fontSizeTextXLarge = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
|
|
70
70
|
|
|
71
71
|
const fontSizeText = {
|
|
72
72
|
xSmall: fontSizeTextXSmall,
|
|
@@ -84,13 +84,13 @@ const fontSizeHeadingLarge = fontSizeTextLarge;
|
|
|
84
84
|
|
|
85
85
|
const fontSizeHeadingXLarge = fontSizeTextXLarge;
|
|
86
86
|
|
|
87
|
-
const fontSizeHeadingXXLarge = 'clamp(
|
|
87
|
+
const fontSizeHeadingXXLarge = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
|
|
88
88
|
|
|
89
|
-
const fontSizeHeadingXXXLarge = 'clamp(
|
|
89
|
+
const fontSizeHeadingXXXLarge = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
|
|
90
90
|
|
|
91
|
-
const fontSizeDisplayMedium = 'clamp(2.
|
|
91
|
+
const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
|
|
92
92
|
|
|
93
|
-
const fontSizeDisplayLarge = 'clamp(2.
|
|
93
|
+
const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
|
|
94
94
|
|
|
95
95
|
const fontWeightRegular = 400;
|
|
96
96
|
|
|
@@ -144,7 +144,9 @@ function getMediaQueryMin(min) {
|
|
|
144
144
|
return `@media(min-width:${breakpoint[min]})`;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
const
|
|
147
|
+
const spacingFluidMedium = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
148
|
+
|
|
149
|
+
const gridGap = spacingFluidMedium;
|
|
148
150
|
|
|
149
151
|
const gridWidthMin = '320px';
|
|
150
152
|
|
|
@@ -179,43 +181,40 @@ const _cssVariableGridBasicSpanOneHalf = '--pds-grid-basic-span-one-half';
|
|
|
179
181
|
const _cssVariableGridBasicSpanOneThird = '--pds-grid-basic-span-one-third';
|
|
180
182
|
const _cssVariableGridBasicSpanTwoThirds = '--pds-grid-basic-span-two-thirds';
|
|
181
183
|
const _cssVariableGridNarrowSpanOneHalf = '--pds-grid-narrow-span-one-half';
|
|
184
|
+
const _cssVariableGridSafeZone = '--pds-internal-grid-safe-zone';
|
|
182
185
|
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
const getColumns = (repeat) => `repeat(${repeat},
|
|
186
|
-
const
|
|
186
|
+
const outerColumn = `minmax(0, calc(var(${_cssVariableGridSafeZone}) - ${gridGap}))`;
|
|
187
|
+
const column = 'minmax(0, 1fr)';
|
|
188
|
+
const getColumns = (repeat) => (repeat > 1 ? `repeat(${repeat}, ${column})` : column);
|
|
189
|
+
const getColumnSpan = (span) => `span ${span}`;
|
|
187
190
|
const getGridTemplateColumns = (layout) => layout === 'mobile'
|
|
188
|
-
? `[${gridFullColumnStart}] ${
|
|
189
|
-
: `[${gridFullColumnStart}] ${
|
|
191
|
+
? `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart} ${gridBasicColumnStart} ${gridNarrowColumnStart}] ${getColumns(6)} [${gridNarrowColumnEnd} ${gridBasicColumnEnd} ${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`
|
|
192
|
+
: `[${gridFullColumnStart}] ${outerColumn} [${gridExtendedColumnStart}] ${getColumns(1)} [${gridBasicColumnStart}] ${getColumns(2)} [${gridNarrowColumnStart}] ${getColumns(8)} [${gridNarrowColumnEnd}] ${getColumns(2)} [${gridBasicColumnEnd}] ${getColumns(1)} [${gridExtendedColumnEnd}] ${outerColumn} [${gridFullColumnEnd}]`;
|
|
190
193
|
({
|
|
191
|
-
[
|
|
192
|
-
[_cssVariableGridExtendedSpanOneHalf]:
|
|
193
|
-
[_cssVariableGridBasicSpanOneHalf]:
|
|
194
|
-
[_cssVariableGridBasicSpanOneThird]:
|
|
195
|
-
[_cssVariableGridBasicSpanTwoThirds]:
|
|
196
|
-
[_cssVariableGridNarrowSpanOneHalf]:
|
|
194
|
+
[_cssVariableGridSafeZone]: gridSafeZoneBase,
|
|
195
|
+
[_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(3),
|
|
196
|
+
[_cssVariableGridBasicSpanOneHalf]: getColumnSpan(3),
|
|
197
|
+
[_cssVariableGridBasicSpanOneThird]: getColumnSpan(2),
|
|
198
|
+
[_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(4),
|
|
199
|
+
[_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(3),
|
|
197
200
|
display: 'grid',
|
|
198
201
|
gridGap,
|
|
199
202
|
gridTemplateColumns: getGridTemplateColumns('mobile'),
|
|
200
203
|
minWidth: gridWidthMin,
|
|
201
204
|
maxWidth: gridWidthMax,
|
|
202
205
|
margin: 0,
|
|
203
|
-
padding: `0
|
|
206
|
+
padding: `0 calc(50% - ${gridWidthMax} / 2)`,
|
|
204
207
|
boxSizing: 'content-box',
|
|
205
208
|
[getMediaQueryMin('s')]: {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
[
|
|
211
|
-
[_cssVariableGridBasicSpanOneHalf]: `${_gridColumnSpan} 6`,
|
|
212
|
-
[_cssVariableGridBasicSpanOneThird]: `${_gridColumnSpan} 4`,
|
|
213
|
-
[_cssVariableGridBasicSpanTwoThirds]: `${_gridColumnSpan} 8`,
|
|
214
|
-
[_cssVariableGridNarrowSpanOneHalf]: `${_gridColumnSpan} 4`,
|
|
209
|
+
[_cssVariableGridExtendedSpanOneHalf]: getColumnSpan(7),
|
|
210
|
+
[_cssVariableGridBasicSpanOneHalf]: getColumnSpan(6),
|
|
211
|
+
[_cssVariableGridBasicSpanOneThird]: getColumnSpan(4),
|
|
212
|
+
[_cssVariableGridBasicSpanTwoThirds]: getColumnSpan(8),
|
|
213
|
+
[_cssVariableGridNarrowSpanOneHalf]: getColumnSpan(4),
|
|
215
214
|
gridTemplateColumns: getGridTemplateColumns('desktop'),
|
|
216
215
|
},
|
|
217
216
|
[getMediaQueryMin('xxl')]: {
|
|
218
|
-
[
|
|
217
|
+
[_cssVariableGridSafeZone]: gridSafeZoneXXL,
|
|
219
218
|
},
|
|
220
219
|
});
|
|
221
220
|
|
|
@@ -235,6 +234,10 @@ const spacingStaticMedium = '16px';
|
|
|
235
234
|
|
|
236
235
|
const spacingStaticLarge = '32px';
|
|
237
236
|
|
|
237
|
+
const spacingFluidXSmall = 'clamp(4px, 0.25vw + 3px, 8px)';
|
|
238
|
+
|
|
239
|
+
const spacingFluidSmall = 'clamp(8px, 0.5vw + 6px, 16px)';
|
|
240
|
+
|
|
238
241
|
const themeDarkBackgroundShading = 'rgba(1, 2, 5, 0.67)';
|
|
239
242
|
|
|
240
243
|
const _displayFontPartA = `${fontStyleItalic} ${fontVariant} ${fontWeightSemiBold$1} `;
|
|
@@ -263,6 +266,10 @@ const headingLargeStyle = {
|
|
|
263
266
|
font: `${_headingFontPartA}${fontSizeHeadingLarge}${_headingFontPartB}`,
|
|
264
267
|
};
|
|
265
268
|
|
|
269
|
+
const headingXLargeStyle = {
|
|
270
|
+
font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
|
|
271
|
+
};
|
|
272
|
+
|
|
266
273
|
const headingXXLargeStyle = {
|
|
267
274
|
font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
|
|
268
275
|
};
|
|
@@ -3737,7 +3744,7 @@ const themeDark = {
|
|
|
3737
3744
|
hoverColor: 'rgba(126, 127, 130, 0.20)',
|
|
3738
3745
|
hoverColorDarken: '#606163',
|
|
3739
3746
|
activeColor: 'rgba(126, 127, 130, 0.20)',
|
|
3740
|
-
focusColor: '#
|
|
3747
|
+
focusColor: '#1E5BEB',
|
|
3741
3748
|
disabledColor: '#7E7F82',
|
|
3742
3749
|
errorColor: '#CB3333',
|
|
3743
3750
|
errorColorDarken: '#9A2727',
|
|
@@ -5785,7 +5792,7 @@ const formatObjectOutput = (value) => {
|
|
|
5785
5792
|
|
|
5786
5793
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
5787
5794
|
|
|
5788
|
-
const getComponentCss$
|
|
5795
|
+
const getComponentCss$T = (size, compact, open, theme) => {
|
|
5789
5796
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
5790
5797
|
const border = `1px solid ${contrastLowColor}`;
|
|
5791
5798
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
@@ -5941,12 +5948,12 @@ const widthMap = {
|
|
|
5941
5948
|
extended: 'extended',
|
|
5942
5949
|
basic: 'basic',
|
|
5943
5950
|
};
|
|
5944
|
-
const getComponentCss$
|
|
5951
|
+
const getComponentCss$S = (width) => {
|
|
5945
5952
|
return getCss({
|
|
5946
5953
|
'@global': {
|
|
5947
5954
|
':host': Object.assign(Object.assign({
|
|
5948
5955
|
// TODO: Why is nothing set as important here?
|
|
5949
|
-
[bannerPositionTopVar]: bannerOffset, [bannerPositionBottomVar]: bannerOffset,
|
|
5956
|
+
[bannerPositionTopVar]: bannerOffset, [bannerPositionBottomVar]: bannerOffset, position: `var(${bannerPositionTypeVar},fixed)`, zIndex: `var(${bannerZIndexVar},${BANNER_Z_INDEX})`, opacity: 0, left: 0, right: 0, willChange: 'opacity,transform' }, mergeDeep(addImportantToEachRule(Object.assign(Object.assign({}, getContentWrapperStyle(widthMap[width])), hostHiddenStyles)), {
|
|
5950
5957
|
[mediaQueryBase]: {
|
|
5951
5958
|
bottom: `var(${bannerPositionBottomVar})`,
|
|
5952
5959
|
},
|
|
@@ -5974,37 +5981,19 @@ const getDirectionJssStyle = (direction) => {
|
|
|
5974
5981
|
column: {
|
|
5975
5982
|
flexFlow: 'column nowrap',
|
|
5976
5983
|
alignItems: 'stretch',
|
|
5977
|
-
marginRight: 0,
|
|
5978
|
-
marginLeft: 0,
|
|
5979
5984
|
},
|
|
5980
5985
|
row: {
|
|
5981
5986
|
flexFlow: 'row wrap',
|
|
5982
5987
|
alignItems: 'center',
|
|
5983
|
-
marginRight: `-${spacingStaticSmall}`,
|
|
5984
|
-
marginLeft: `-${spacingStaticSmall}`,
|
|
5985
|
-
},
|
|
5986
|
-
};
|
|
5987
|
-
return style[direction];
|
|
5988
|
-
};
|
|
5989
|
-
const getDirectionSlottedJssStyle = (direction) => {
|
|
5990
|
-
const style = {
|
|
5991
|
-
column: {
|
|
5992
|
-
marginRight: 0,
|
|
5993
|
-
marginLeft: 0,
|
|
5994
|
-
},
|
|
5995
|
-
row: {
|
|
5996
|
-
marginRight: spacingStaticSmall,
|
|
5997
|
-
marginLeft: spacingStaticSmall,
|
|
5998
5988
|
},
|
|
5999
5989
|
};
|
|
6000
5990
|
return style[direction];
|
|
6001
5991
|
};
|
|
6002
|
-
const getComponentCss$
|
|
5992
|
+
const getComponentCss$R = (direction) => {
|
|
6003
5993
|
return getCss({
|
|
6004
5994
|
'@global': {
|
|
6005
5995
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
6006
|
-
div: Object.assign({ display: 'flex',
|
|
6007
|
-
'::slotted(*)': addImportantToEachRule(Object.assign({ marginTop: spacingStaticMedium }, buildResponsiveStyles(direction, getDirectionSlottedJssStyle))),
|
|
5996
|
+
div: Object.assign({ display: 'flex', gap: spacingFluidSmall }, buildResponsiveStyles(direction, getDirectionJssStyle)),
|
|
6008
5997
|
},
|
|
6009
5998
|
});
|
|
6010
5999
|
};
|
|
@@ -6038,7 +6027,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
6038
6027
|
alignItems: stretchValue ? 'center' : 'flex-start',
|
|
6039
6028
|
})), buildResponsiveStyles(size, (sizeValue) => ({
|
|
6040
6029
|
fontSize: getFontSizeText(sizeValue),
|
|
6041
|
-
})))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: '
|
|
6030
|
+
})))), { '&::before': Object.assign(Object.assign(Object.assign({ content: '""', position: 'absolute', top: offsetVertical, bottom: offsetVertical }, buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
6042
6031
|
right: hideLabelValue ? offsetVertical : offsetHorizontal,
|
|
6043
6032
|
left: hideLabelValue || hasIcon ? offsetVertical : offsetHorizontal,
|
|
6044
6033
|
}))), { borderRadius: borderRadiusSmall, transition: getTransition('background-color') }), (active && Object.assign(Object.assign({}, frostedGlassStyle), { backgroundColor: hoverColor }))) }), (!isDisabledOrLoading &&
|
|
@@ -6066,7 +6055,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
6066
6055
|
}));
|
|
6067
6056
|
};
|
|
6068
6057
|
|
|
6069
|
-
const getComponentCss$
|
|
6058
|
+
const getComponentCss$Q = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
6070
6059
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
6071
6060
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), Object.assign({ root: {
|
|
6072
6061
|
appearance: 'none',
|
|
@@ -6164,7 +6153,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
6164
6153
|
};
|
|
6165
6154
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
6166
6155
|
};
|
|
6167
|
-
const getComponentCss$
|
|
6156
|
+
const getComponentCss$P = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
6168
6157
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
6169
6158
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
6170
6159
|
const isPrimary = variant === 'primary';
|
|
@@ -6189,28 +6178,76 @@ const getComponentCss$O = (icon, iconSource, variant, hideLabel, disabled, loadi
|
|
|
6189
6178
|
})) })));
|
|
6190
6179
|
};
|
|
6191
6180
|
|
|
6181
|
+
const carouselTransitionDuration = 400;
|
|
6192
6182
|
const bulletActiveClass = 'bullet--active';
|
|
6183
|
+
const selectorHeading = 'h2,::slotted([slot=heading])';
|
|
6184
|
+
const selectorDescription = 'p,::slotted([slot=description])';
|
|
6193
6185
|
const mediaQueryS = getMediaQueryMin('s');
|
|
6194
|
-
const
|
|
6195
|
-
|
|
6196
|
-
|
|
6186
|
+
const mediaQueryXXL = getMediaQueryMin('xxl');
|
|
6187
|
+
// we need an explicit grid template, therefor we need to calculate the button group width
|
|
6188
|
+
const buttonSize$1 = `calc(${spacingStaticSmall} * 2 + ${fontLineHeight})`;
|
|
6189
|
+
// + 2px, compensates hover offset of button-pure
|
|
6190
|
+
const buttonGroupWidth = `calc(${buttonSize$1} * 2 + ${spacingStaticXSmall} + 2px)`;
|
|
6191
|
+
// we don't need to abstract spacing definitions since component content-wrapper is deprecated and will be removed soon
|
|
6192
|
+
const gridColumn1FrS = `calc((100% - ${gridSafeZoneBase} * 2 - ${gridGap} * 13) / 14)`;
|
|
6193
|
+
const gridColumn1FrXXL = `calc((min(100%, ${gridWidthMax}) - ${gridSafeZoneXXL} * 2 - ${gridGap} * 13) / 14)`;
|
|
6194
|
+
const spacingMap = {
|
|
6195
|
+
basic: {
|
|
6196
|
+
padding: `0 ${gridSafeZoneBase}`,
|
|
6197
|
+
[mediaQueryS]: {
|
|
6198
|
+
padding: `0 calc(${gridSafeZoneBase} + ${gridGap} + ${gridColumn1FrS})`,
|
|
6199
|
+
},
|
|
6200
|
+
[mediaQueryXXL]: {
|
|
6201
|
+
padding: `0 calc(${gridSafeZoneXXL} + ${gridGap} + ${gridColumn1FrXXL})`,
|
|
6202
|
+
},
|
|
6203
|
+
},
|
|
6204
|
+
extended: {
|
|
6205
|
+
padding: `0 ${gridSafeZoneBase}`,
|
|
6206
|
+
[mediaQueryXXL]: {
|
|
6207
|
+
padding: `0 ${gridSafeZoneXXL}`,
|
|
6208
|
+
},
|
|
6209
|
+
},
|
|
6210
|
+
};
|
|
6211
|
+
const getComponentCss$O = (width, disablePagination, alignHeader, theme) => {
|
|
6212
|
+
const { primaryColor, contrastMediumColor } = getThemedColors(theme);
|
|
6213
|
+
const isHeaderAlignCenter = alignHeader === 'center';
|
|
6197
6214
|
return getCss(Object.assign({ '@global': {
|
|
6198
|
-
':host': addImportantToEachRule(Object.assign({ display: '
|
|
6199
|
-
|
|
6200
|
-
} }, hostHiddenStyles)),
|
|
6201
|
-
|
|
6202
|
-
|
|
6215
|
+
':host': addImportantToEachRule(Object.assign({ display: 'flex', gap: spacingFluidMedium, flexDirection: 'column', maxWidth: gridWidthMax,
|
|
6216
|
+
// relevant for viewport width > 2560px
|
|
6217
|
+
paddingLeft: `calc(50% - ${gridWidthMax} / 2)`, paddingRight: `calc(50% - ${gridWidthMax} / 2)`, boxSizing: 'content-box' }, hostHiddenStyles)),
|
|
6218
|
+
[selectorHeading]: addImportantToEachRule(Object.assign(Object.assign({}, headingXLargeStyle), { maxWidth: '56.25rem', margin: 0 })),
|
|
6219
|
+
[selectorDescription]: addImportantToEachRule(Object.assign(Object.assign({}, textSmallStyle), { maxWidth: '34.375rem', margin: `${spacingFluidXSmall} 0 0` })),
|
|
6220
|
+
[`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
|
|
6221
|
+
color: primaryColor,
|
|
6222
|
+
[mediaQueryS]: isHeaderAlignCenter
|
|
6223
|
+
? {
|
|
6224
|
+
gridColumn: 2,
|
|
6225
|
+
textAlign: 'center', // relevant when text becomes multiline
|
|
6226
|
+
}
|
|
6227
|
+
: {
|
|
6228
|
+
gridColumn: '1 / 3',
|
|
6229
|
+
},
|
|
6230
|
+
}),
|
|
6231
|
+
}, header: Object.assign({ display: 'grid' }, mergeDeep(spacingMap[width], {
|
|
6232
|
+
[mediaQueryS]: Object.assign({ fontFamily, fontSize: fontSizeTextSmall, columnGap: spacingStaticMedium, gridTemplateColumns: `${buttonGroupWidth} minmax(0px, 1fr) ${buttonGroupWidth}` }, (isHeaderAlignCenter && {
|
|
6233
|
+
justifyItems: 'center', // relevant when max-width of heading or description is reached
|
|
6234
|
+
})),
|
|
6235
|
+
})), nav: {
|
|
6236
|
+
display: 'none',
|
|
6237
|
+
[mediaQueryS]: {
|
|
6238
|
+
display: 'flex',
|
|
6239
|
+
gap: spacingStaticXSmall,
|
|
6240
|
+
gridArea: '1 / 3 / 3 / auto',
|
|
6241
|
+
alignItems: 'end',
|
|
6242
|
+
},
|
|
6243
|
+
}, btn: {
|
|
6244
|
+
padding: spacingStaticSmall,
|
|
6203
6245
|
}, splide: {
|
|
6204
6246
|
overflow: 'hidden',
|
|
6205
6247
|
// visibility: 'hidden',
|
|
6206
|
-
'&__track': Object.assign(Object.assign({ cursor: 'grab' }, (
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
|
|
6210
|
-
[mediaQueryXl$1]: {
|
|
6211
|
-
padding: `0 calc(${gridSafeZoneBase} + 7%) 0 ${gridSafeZoneBase}`,
|
|
6212
|
-
},
|
|
6213
|
-
}))), { '&--draggable': {
|
|
6248
|
+
'&__track': Object.assign(Object.assign({ cursor: 'grab' }, addImportantToEachRule(Object.assign(Object.assign({}, spacingMap[width]), { [getMediaQueryMax('xs')]: {
|
|
6249
|
+
paddingRight: `calc(${gridSafeZoneBase} + ${gridGap})`, // we need to give cut off slides a bit more space on mobile views
|
|
6250
|
+
} }))), { '&--draggable': {
|
|
6214
6251
|
userSelect: 'none',
|
|
6215
6252
|
WebkitUserSelect: 'none',
|
|
6216
6253
|
WebkitTouchCallout: 'none',
|
|
@@ -6218,42 +6255,21 @@ const getComponentCss$N = (wrapContent, disablePagination, theme) => {
|
|
|
6218
6255
|
'&__list': Object.assign({ display: 'flex', height: '100%' }, getBackfaceVisibilityJssStyle()),
|
|
6219
6256
|
'&__slide': Object.assign(Object.assign({ position: 'relative', flexShrink: 0 }, getBackfaceVisibilityJssStyle()), { transform: 'translateZ(0)' }),
|
|
6220
6257
|
'&__sr': getScreenReaderOnlyJssStyle(), // appears in the DOM when sliding
|
|
6221
|
-
},
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
// }
|
|
6226
|
-
// .splide.is-initialized:not(.is-active) .splide__list {
|
|
6227
|
-
// display: block,
|
|
6228
|
-
// }
|
|
6229
|
-
header: {
|
|
6230
|
-
display: 'grid',
|
|
6231
|
-
gap: gridGap,
|
|
6232
|
-
padding: wrapContent ? `0 ${gridSafeZoneBase}` : null,
|
|
6233
|
-
[mediaQueryS]: {
|
|
6234
|
-
gridTemplateColumns: `minmax(0px, 1fr) ${pxToRemWithUnit(80)}`,
|
|
6235
|
-
position: 'relative',
|
|
6236
|
-
minHeight: pxToRemWithUnit(40), // actual height of prev/next buttons
|
|
6237
|
-
},
|
|
6238
|
-
}, nav: {
|
|
6239
|
-
display: 'none',
|
|
6240
|
-
[mediaQueryS]: {
|
|
6241
|
-
display: 'grid',
|
|
6242
|
-
gridAutoFlow: 'column',
|
|
6243
|
-
position: 'absolute',
|
|
6244
|
-
right: wrapContent ? gridSafeZoneBase : 0,
|
|
6245
|
-
bottom: 0,
|
|
6246
|
-
},
|
|
6247
|
-
}, btn: {
|
|
6248
|
-
padding: pxToRemWithUnit(8),
|
|
6249
|
-
} }, (disablePagination !== true && {
|
|
6250
|
-
pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (value) => ({ display: value ? 'none' : 'grid' }))), { gridAutoColumns: pxToRemWithUnit(8), gridAutoFlow: 'column', justifyContent: 'center', gap: pxToRemWithUnit(8), height: pxToRemWithUnit(8) }),
|
|
6258
|
+
} }, (!disablePagination && {
|
|
6259
|
+
pagination: Object.assign(Object.assign({}, buildResponsiveStyles(disablePagination, (disablePaginationValue) => ({
|
|
6260
|
+
display: disablePaginationValue ? 'none' : 'flex',
|
|
6261
|
+
}))), { justifyContent: 'center', gap: spacingStaticSmall }),
|
|
6251
6262
|
bullet: {
|
|
6252
|
-
borderRadius:
|
|
6253
|
-
background:
|
|
6263
|
+
borderRadius: borderRadiusSmall,
|
|
6264
|
+
background: contrastMediumColor,
|
|
6265
|
+
// set transition to have the same speed as switching slides in splide
|
|
6266
|
+
transition: `background-color ${carouselTransitionDuration}ms, width ${carouselTransitionDuration}ms`,
|
|
6267
|
+
width: '8px',
|
|
6268
|
+
height: '8px',
|
|
6254
6269
|
},
|
|
6255
6270
|
[bulletActiveClass]: {
|
|
6256
6271
|
background: primaryColor,
|
|
6272
|
+
width: '20px',
|
|
6257
6273
|
},
|
|
6258
6274
|
})));
|
|
6259
6275
|
};
|
|
@@ -6334,7 +6350,7 @@ const getInlineSVGBackgroundImage = (path) => {
|
|
|
6334
6350
|
return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
|
|
6335
6351
|
};
|
|
6336
6352
|
|
|
6337
|
-
const getComponentCss$
|
|
6353
|
+
const getComponentCss$N = (hideLabel, state, isDisabled, theme) => {
|
|
6338
6354
|
const checkedIconColor = getThemedColors(theme === 'light' ? 'dark' : 'light').primaryColor.replace(/#/g, '%23');
|
|
6339
6355
|
const indeterminateIconColor = getThemedColors(theme).primaryColor.replace(/#/g, '%23');
|
|
6340
6356
|
return getCss(mergeDeep(getCheckboxRadioJssStyle(hideLabel, state, isDisabled, theme), {
|
|
@@ -6354,7 +6370,7 @@ const getComponentCss$M = (hideLabel, state, isDisabled, theme) => {
|
|
|
6354
6370
|
}));
|
|
6355
6371
|
};
|
|
6356
6372
|
|
|
6357
|
-
const getComponentCss$
|
|
6373
|
+
const getComponentCss$M = (width) => {
|
|
6358
6374
|
return getCss({
|
|
6359
6375
|
'@global': {
|
|
6360
6376
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -6419,7 +6435,7 @@ const sizeMap$5 = {
|
|
|
6419
6435
|
medium: fontSizeDisplayMedium,
|
|
6420
6436
|
large: fontSizeDisplayLarge,
|
|
6421
6437
|
};
|
|
6422
|
-
const getComponentCss$
|
|
6438
|
+
const getComponentCss$L = (size, align, color, ellipsis, theme) => {
|
|
6423
6439
|
return getCss({
|
|
6424
6440
|
'@global': {
|
|
6425
6441
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -6433,12 +6449,15 @@ const getComponentCss$K = (size, align, color, ellipsis, theme) => {
|
|
|
6433
6449
|
});
|
|
6434
6450
|
};
|
|
6435
6451
|
|
|
6436
|
-
const getComponentCss$
|
|
6452
|
+
const getComponentCss$K = (color, orientation, theme) => {
|
|
6437
6453
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
6438
6454
|
const colorMap = {
|
|
6439
6455
|
'neutral-contrast-low': contrastLowColor,
|
|
6440
6456
|
'neutral-contrast-medium': contrastMediumColor,
|
|
6441
6457
|
'neutral-contrast-high': contrastHighColor,
|
|
6458
|
+
'contrast-low': contrastLowColor,
|
|
6459
|
+
'contrast-medium': contrastMediumColor,
|
|
6460
|
+
'contrast-high': contrastHighColor,
|
|
6442
6461
|
};
|
|
6443
6462
|
return getCss({
|
|
6444
6463
|
'@global': {
|
|
@@ -6448,7 +6467,7 @@ const getComponentCss$J = (color, orientation, theme) => {
|
|
|
6448
6467
|
});
|
|
6449
6468
|
};
|
|
6450
6469
|
|
|
6451
|
-
const getComponentCss$
|
|
6470
|
+
const getComponentCss$J = (state, labelSize, hasLabel, theme) => {
|
|
6452
6471
|
return getCss(Object.assign(Object.assign({ '@global': Object.assign({ ':host': addImportantToEachRule(Object.assign({ display: 'block' }, hostHiddenStyles)), fieldset: {
|
|
6453
6472
|
margin: 0,
|
|
6454
6473
|
padding: 0,
|
|
@@ -6472,7 +6491,7 @@ const flexItemWidths = {
|
|
|
6472
6491
|
full: 100,
|
|
6473
6492
|
auto: 'auto',
|
|
6474
6493
|
};
|
|
6475
|
-
const getComponentCss$
|
|
6494
|
+
const getComponentCss$I = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
6476
6495
|
return getCss({
|
|
6477
6496
|
'@global': {
|
|
6478
6497
|
':host': addImportantToEachRule(Object.assign(Object.assign({ boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(width, (widthResponsive) => ({
|
|
@@ -6490,7 +6509,7 @@ const getComponentCss$H = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
6490
6509
|
});
|
|
6491
6510
|
};
|
|
6492
6511
|
|
|
6493
|
-
const getComponentCss$
|
|
6512
|
+
const getComponentCss$H = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
6494
6513
|
return getCss({
|
|
6495
6514
|
'@global': {
|
|
6496
6515
|
':host': addImportantToEachRule(mergeDeep(hostHiddenStyles, buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
@@ -6512,7 +6531,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
6512
6531
|
const gridItemWidths = [
|
|
6513
6532
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
6514
6533
|
];
|
|
6515
|
-
const getComponentCss$
|
|
6534
|
+
const getComponentCss$G = (size, offset) => {
|
|
6516
6535
|
return getCss({
|
|
6517
6536
|
'@global': {
|
|
6518
6537
|
':host': addImportantToEachRule(Object.assign(Object.assign({ paddingLeft: gutter$1, paddingRight: gutter$1, boxSizing: 'border-box' }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(size, (sizeResponsive) => ({
|
|
@@ -6526,7 +6545,7 @@ const getComponentCss$F = (size, offset) => {
|
|
|
6526
6545
|
};
|
|
6527
6546
|
|
|
6528
6547
|
const gutter = `calc(${gridGap} / -2)`;
|
|
6529
|
-
const getComponentCss$
|
|
6548
|
+
const getComponentCss$F = (direction, wrap) => {
|
|
6530
6549
|
return getCss({
|
|
6531
6550
|
'@global': {
|
|
6532
6551
|
':host': addImportantToEachRule(Object.assign(Object.assign({ display: 'flex', flex: 'auto', width: 'auto', marginLeft: gutter, marginRight: gutter }, hostHiddenStyles), mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))))),
|
|
@@ -6542,7 +6561,7 @@ const sizeMap$4 = {
|
|
|
6542
6561
|
'xx-large': fontSizeHeadingXXLarge,
|
|
6543
6562
|
'xxx-large': fontSizeHeadingXXXLarge,
|
|
6544
6563
|
};
|
|
6545
|
-
const getComponentCss$
|
|
6564
|
+
const getComponentCss$E = (size, align, color, ellipsis, theme) => {
|
|
6546
6565
|
return getCss({
|
|
6547
6566
|
'@global': {
|
|
6548
6567
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -6595,7 +6614,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
6595
6614
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
6596
6615
|
};
|
|
6597
6616
|
};
|
|
6598
|
-
const getComponentCss$
|
|
6617
|
+
const getComponentCss$D = (variant, align, color, ellipsis, theme) => {
|
|
6599
6618
|
return getCss({
|
|
6600
6619
|
'@global': {
|
|
6601
6620
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
@@ -6617,34 +6636,34 @@ const sizeMap$3 = {
|
|
|
6617
6636
|
'x-large': fontSizeTextXLarge,
|
|
6618
6637
|
};
|
|
6619
6638
|
// TODO, use Tuple to reduce chunk size
|
|
6620
|
-
|
|
6621
|
-
const
|
|
6622
|
-
const
|
|
6623
|
-
const
|
|
6624
|
-
const filterLightContrastHigh = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
|
|
6639
|
+
const filterLightPrimary$1 = 'invert(3%) sepia(7%) saturate(2930%) hue-rotate(188deg) brightness(91%) contrast(103%)';
|
|
6640
|
+
const filterLightContrastLow$1 = 'invert(93%) sepia(11%) saturate(36%) hue-rotate(201deg) brightness(89%) contrast(102%)';
|
|
6641
|
+
const filterLightContrastMedium$1 = 'invert(65%) sepia(6%) saturate(119%) hue-rotate(187deg) brightness(90%) contrast(92%)';
|
|
6642
|
+
const filterLightContrastHigh$1 = 'invert(40%) sepia(2%) saturate(686%) hue-rotate(187deg) brightness(80%) contrast(94%)';
|
|
6625
6643
|
const filterLightNotificationSuccess = 'invert(62%) sepia(61%) saturate(551%) hue-rotate(86deg) brightness(86%) contrast(80%)';
|
|
6626
6644
|
const filterLightNotificationWarning = 'invert(74%) sepia(91%) saturate(343%) hue-rotate(348deg) brightness(92%) contrast(86%)';
|
|
6627
6645
|
const filterLightNotificationError = 'invert(25%) sepia(62%) saturate(2003%) hue-rotate(335deg) brightness(100%) contrast(97%)';
|
|
6628
6646
|
const filterLightNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
|
|
6629
|
-
const filterDarkPrimary = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
|
|
6630
|
-
const filterDarkContrastLow = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
|
|
6631
|
-
const filterDarkContrastMedium = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
|
|
6632
|
-
const filterDarkContrastHigh = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
|
|
6647
|
+
const filterDarkPrimary$1 = 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)';
|
|
6648
|
+
const filterDarkContrastLow$1 = 'invert(20%) sepia(7%) saturate(421%) hue-rotate(202deg) brightness(97%) contrast(82%)';
|
|
6649
|
+
const filterDarkContrastMedium$1 = 'invert(54%) sepia(4%) saturate(229%) hue-rotate(187deg) brightness(91%) contrast(84%)';
|
|
6650
|
+
const filterDarkContrastHigh$1 = 'invert(68%) sepia(6%) saturate(108%) hue-rotate(187deg) brightness(104%) contrast(88%)';
|
|
6633
6651
|
const filterDarkNotificationSuccess = 'invert(59%) sepia(22%) saturate(1342%) hue-rotate(86deg) brightness(96%) contrast(88%)';
|
|
6634
6652
|
const filterDarkNotificationWarning = 'invert(72%) sepia(94%) saturate(303%) hue-rotate(354deg) brightness(89%) contrast(94%)';
|
|
6635
6653
|
const filterDarkNotificationError = 'invert(28%) sepia(34%) saturate(3133%) hue-rotate(333deg) brightness(95%) contrast(100%)';
|
|
6636
6654
|
const filterDarkNotificationInfo = 'invert(31%) sepia(32%) saturate(5493%) hue-rotate(216deg) brightness(90%) contrast(107%)';
|
|
6637
6655
|
const filter = {
|
|
6638
6656
|
light: {
|
|
6639
|
-
primary: filterLightPrimary,
|
|
6640
|
-
brand: filterLightPrimary,
|
|
6641
|
-
default: filterLightPrimary,
|
|
6642
|
-
|
|
6643
|
-
'
|
|
6644
|
-
'contrast-
|
|
6645
|
-
'
|
|
6646
|
-
'contrast-
|
|
6647
|
-
'
|
|
6657
|
+
primary: filterLightPrimary$1,
|
|
6658
|
+
brand: filterLightPrimary$1,
|
|
6659
|
+
default: filterLightPrimary$1,
|
|
6660
|
+
disabled: filterLightContrastMedium$1,
|
|
6661
|
+
'contrast-low': filterLightContrastLow$1,
|
|
6662
|
+
'neutral-contrast-low': filterLightContrastLow$1,
|
|
6663
|
+
'contrast-medium': filterLightContrastMedium$1,
|
|
6664
|
+
'neutral-contrast-medium': filterLightContrastMedium$1,
|
|
6665
|
+
'contrast-high': filterLightContrastHigh$1,
|
|
6666
|
+
'neutral-contrast-high': filterLightContrastHigh$1,
|
|
6648
6667
|
'notification-success': filterLightNotificationSuccess,
|
|
6649
6668
|
'notification-warning': filterLightNotificationWarning,
|
|
6650
6669
|
'notification-error': filterLightNotificationError,
|
|
@@ -6652,15 +6671,16 @@ const filter = {
|
|
|
6652
6671
|
'notification-neutral': filterLightNotificationInfo, // deprecated
|
|
6653
6672
|
},
|
|
6654
6673
|
dark: {
|
|
6655
|
-
primary: filterDarkPrimary,
|
|
6656
|
-
brand: filterDarkPrimary,
|
|
6657
|
-
default: filterDarkPrimary,
|
|
6658
|
-
|
|
6659
|
-
'
|
|
6660
|
-
'contrast-
|
|
6661
|
-
'
|
|
6662
|
-
'contrast-
|
|
6663
|
-
'
|
|
6674
|
+
primary: filterDarkPrimary$1,
|
|
6675
|
+
brand: filterDarkPrimary$1,
|
|
6676
|
+
default: filterDarkPrimary$1,
|
|
6677
|
+
disabled: filterDarkContrastMedium$1,
|
|
6678
|
+
'contrast-low': filterDarkContrastLow$1,
|
|
6679
|
+
'neutral-contrast-low': filterDarkContrastLow$1,
|
|
6680
|
+
'contrast-medium': filterDarkContrastMedium$1,
|
|
6681
|
+
'neutral-contrast-medium': filterDarkContrastMedium$1,
|
|
6682
|
+
'contrast-high': filterDarkContrastHigh$1,
|
|
6683
|
+
'neutral-contrast-high': filterDarkContrastHigh$1,
|
|
6664
6684
|
'notification-success': filterDarkNotificationSuccess,
|
|
6665
6685
|
'notification-warning': filterDarkNotificationWarning,
|
|
6666
6686
|
'notification-error': filterDarkNotificationError,
|
|
@@ -6678,7 +6698,7 @@ const forceRerenderAnimationStyle = {
|
|
|
6678
6698
|
};
|
|
6679
6699
|
const keyFramesLight = 'rerender-light';
|
|
6680
6700
|
const keyFramesDark = 'rerender-dark';
|
|
6681
|
-
const getComponentCss$
|
|
6701
|
+
const getComponentCss$C = (color, size, theme) => {
|
|
6682
6702
|
const isColorInherit = color === 'inherit';
|
|
6683
6703
|
const isSizeInherit = size === 'inherit';
|
|
6684
6704
|
return getCss({
|
|
@@ -6744,7 +6764,7 @@ const getNotificationContentJssStyle = () => ({
|
|
|
6744
6764
|
});
|
|
6745
6765
|
|
|
6746
6766
|
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
6747
|
-
const getComponentCss$
|
|
6767
|
+
const getComponentCss$B = (state, hasAction, hasClose, theme) => {
|
|
6748
6768
|
return getCss(Object.assign({ '@global': {
|
|
6749
6769
|
':host': addImportantToEachRule(Object.assign(Object.assign({}, getNotificationRootJssStyle(state, hasAction, hasClose, theme)), hostHiddenStyles)),
|
|
6750
6770
|
h5: headingSmallStyle,
|
|
@@ -6762,7 +6782,7 @@ const getComponentCss$A = (state, hasAction, hasClose, theme) => {
|
|
|
6762
6782
|
})));
|
|
6763
6783
|
};
|
|
6764
6784
|
|
|
6765
|
-
const getComponentCss$
|
|
6785
|
+
const getComponentCss$A = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
6766
6786
|
const { focusColor } = getThemedColors(theme);
|
|
6767
6787
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
6768
6788
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), Object.assign(Object.assign({}, (hasSlottedAnchor && {
|
|
@@ -6794,7 +6814,7 @@ const getComponentCss$z = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
6794
6814
|
} })));
|
|
6795
6815
|
};
|
|
6796
6816
|
|
|
6797
|
-
const getComponentCss$
|
|
6817
|
+
const getComponentCss$z = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
6798
6818
|
const { focusColor } = getThemedColors(theme);
|
|
6799
6819
|
return getCss(mergeDeep(getLinkButtonStyles(icon, iconSource, variant, hideLabel, false, hasSlottedAnchor, theme), Object.assign({}, (hasSlottedAnchor && {
|
|
6800
6820
|
'@global': addImportantToEachRule({
|
|
@@ -6867,7 +6887,7 @@ const sizeMap$2 = {
|
|
|
6867
6887
|
},
|
|
6868
6888
|
default: { fontSize: '1.25rem' },
|
|
6869
6889
|
};
|
|
6870
|
-
const getComponentCss$
|
|
6890
|
+
const getComponentCss$y = (aspectRatio, size, weight, align, compact, hasGradient) => {
|
|
6871
6891
|
const isTopAligned = align === 'top';
|
|
6872
6892
|
const paddingSizeXS = pxToRemWithUnit(24);
|
|
6873
6893
|
const gradientPadding = pxToRemWithUnit(72);
|
|
@@ -6921,7 +6941,7 @@ const baseSizes = {
|
|
|
6921
6941
|
height: '72px',
|
|
6922
6942
|
},
|
|
6923
6943
|
};
|
|
6924
|
-
const getComponentCss$
|
|
6944
|
+
const getComponentCss$x = (size) => {
|
|
6925
6945
|
return getCss({
|
|
6926
6946
|
'@global': {
|
|
6927
6947
|
':host': Object.assign({ position: 'relative', display: 'inline-flex', verticalAlign: 'top' }, addImportantToEachRule(Object.assign({ outline: 0 }, hostHiddenStyles))),
|
|
@@ -6989,7 +7009,7 @@ const getSlottedJssStyle = (marginValue, hasHeader, disableCloseButton) => {
|
|
|
6989
7009
|
marginBottom: marginPx,
|
|
6990
7010
|
} });
|
|
6991
7011
|
};
|
|
6992
|
-
const getComponentCss$
|
|
7012
|
+
const getComponentCss$w = (open, fullscreen, disableCloseButton, hasHeader) => {
|
|
6993
7013
|
const isFullscreenForXlAndXxl = isFullscreenForXl(fullscreen);
|
|
6994
7014
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
6995
7015
|
':host': Object.assign(Object.assign({}, addImportantToEachRule(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ position: 'fixed' }, getInsetJssStyle()), { zIndex: MODAL_Z_INDEX, display: 'flex', alignItems: 'center', justifyContent: 'center', flexWrap: 'wrap' }), (open
|
|
@@ -7047,6 +7067,41 @@ const getComponentCss$v = (open, fullscreen, disableCloseButton, hasHeader) => {
|
|
|
7047
7067
|
} }));
|
|
7048
7068
|
};
|
|
7049
7069
|
|
|
7070
|
+
const toFilter = (values) => `invert(${values[0]}%) sepia(${values[1]}%) saturate(${values[2]}%) hue-rotate(${values[3]}deg) brightness(${values[4]}%) contrast(${values[5]}%)`;
|
|
7071
|
+
// copied from icon-styles
|
|
7072
|
+
const filterLightPrimary = toFilter([3, 7, 2930, 188, 91, 103]);
|
|
7073
|
+
const filterLightContrastLow = toFilter([93, 11, 36, 201, 89, 102]);
|
|
7074
|
+
const filterLightContrastMedium = toFilter([65, 6, 119, 187, 90, 92]);
|
|
7075
|
+
const filterLightContrastHigh = toFilter([40, 2, 686, 187, 80, 94]);
|
|
7076
|
+
const filterDarkPrimary = toFilter([97, 55, 2840, 180, 114, 103]);
|
|
7077
|
+
const filterDarkContrastLow = toFilter([20, 7, 421, 202, 97, 82]);
|
|
7078
|
+
const filterDarkContrastMedium = toFilter([54, 4, 229, 187, 91, 84]);
|
|
7079
|
+
const filterDarkContrastHigh = toFilter([68, 6, 108, 187, 104, 88]);
|
|
7080
|
+
const colorToFilterMap = {
|
|
7081
|
+
light: {
|
|
7082
|
+
primary: filterLightPrimary,
|
|
7083
|
+
'contrast-low': filterLightContrastLow,
|
|
7084
|
+
'contrast-medium': filterLightContrastMedium,
|
|
7085
|
+
'contrast-high': filterLightContrastHigh,
|
|
7086
|
+
},
|
|
7087
|
+
dark: {
|
|
7088
|
+
primary: filterDarkPrimary,
|
|
7089
|
+
'contrast-low': filterDarkContrastLow,
|
|
7090
|
+
'contrast-medium': filterDarkContrastMedium,
|
|
7091
|
+
'contrast-high': filterDarkContrastHigh,
|
|
7092
|
+
},
|
|
7093
|
+
};
|
|
7094
|
+
const getComponentCss$v = (size, color, theme) => {
|
|
7095
|
+
const isSizeInherit = size === 'inherit';
|
|
7096
|
+
const isColorInherit = color === 'inherit';
|
|
7097
|
+
return getCss({
|
|
7098
|
+
'@global': {
|
|
7099
|
+
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
7100
|
+
img: Object.assign(Object.assign({ display: 'block', pointerEvents: 'none' }, (!isColorInherit && { filter: colorToFilterMap[theme][color] })), (isSizeInherit && { height: size })),
|
|
7101
|
+
},
|
|
7102
|
+
});
|
|
7103
|
+
};
|
|
7104
|
+
|
|
7050
7105
|
const mediaQueryMinS = getMediaQueryMin('s');
|
|
7051
7106
|
// button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
|
|
7052
7107
|
// and text scale 200% works (almost) on mobile viewports too
|
|
@@ -7250,17 +7305,24 @@ const gradientColorMap = {
|
|
|
7250
7305
|
};
|
|
7251
7306
|
const getGradient = (theme, gradientColorTheme) => {
|
|
7252
7307
|
const gradientColor = gradientColorMap[theme][gradientColorTheme];
|
|
7253
|
-
return (`rgba(${gradientColor},1)
|
|
7254
|
-
`rgba(${gradientColor},0.
|
|
7255
|
-
`rgba(${gradientColor},0.
|
|
7256
|
-
`rgba(${gradientColor},0.331884) 60%,` +
|
|
7257
|
-
`rgba(${gradientColor},0.0816599) 80%,` +
|
|
7308
|
+
return (`rgba(${gradientColor},1) 20%,` +
|
|
7309
|
+
`rgba(${gradientColor},0.6) 48%,` +
|
|
7310
|
+
`rgba(${gradientColor},0.3) 68%,` +
|
|
7258
7311
|
`rgba(${gradientColor},0)`);
|
|
7259
7312
|
};
|
|
7260
7313
|
const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrollIndicatorPosition, theme) => {
|
|
7261
|
-
const { backgroundColor, backgroundSurfaceColor, focusColor } = getThemedColors(
|
|
7262
|
-
const { hoverColor } = getThemedColors(theme);
|
|
7314
|
+
const { backgroundColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
|
|
7263
7315
|
const isDarkTheme = isThemeDark(theme);
|
|
7316
|
+
const backgroundColorMap = {
|
|
7317
|
+
dark: {
|
|
7318
|
+
default: backgroundSurfaceColor,
|
|
7319
|
+
surface: backgroundColor,
|
|
7320
|
+
},
|
|
7321
|
+
light: {
|
|
7322
|
+
default: backgroundColor,
|
|
7323
|
+
surface: backgroundSurfaceColor,
|
|
7324
|
+
},
|
|
7325
|
+
};
|
|
7264
7326
|
const actionPrevNextStyles = {
|
|
7265
7327
|
position: 'relative',
|
|
7266
7328
|
padding: '4px 0',
|
|
@@ -7271,19 +7333,17 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
|
|
|
7271
7333
|
return getCss({
|
|
7272
7334
|
'@global': {
|
|
7273
7335
|
':host': addImportantToEachRule(Object.assign({ display: 'block', height: 'inherit' }, hostHiddenStyles)),
|
|
7274
|
-
button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: gradientColorTheme
|
|
7336
|
+
button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', pointerEvents: 'auto', alignItems: 'center', justifyContent: 'center' }, textSmallStyle), { height: `calc(${fontLineHeight} + 4px)`, width: `calc(${fontLineHeight} + 4px)`, border: 0, outline: 0, cursor: 'pointer', background: backgroundColorMap[theme][gradientColorTheme], borderRadius: borderRadiusSmall }), frostedGlassStyle), { visibility: 'hidden' }), (!isDarkTheme && dropShadowLowStyle)), hoverMediaQuery({
|
|
7275
7337
|
transition: getTransition('background-color'),
|
|
7276
|
-
'&:hover': Object.assign({ background: hoverColor },
|
|
7277
|
-
'& > .icon': {
|
|
7278
|
-
filter: 'invert(97%) sepia(55%) saturate(2840%) hue-rotate(180deg) brightness(114%) contrast(103%)', // TODO: this is not shared from icon?
|
|
7279
|
-
},
|
|
7280
|
-
})),
|
|
7338
|
+
'&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
|
|
7281
7339
|
})),
|
|
7282
7340
|
},
|
|
7283
|
-
root:
|
|
7284
|
-
|
|
7285
|
-
gridTemplateColumns:
|
|
7286
|
-
|
|
7341
|
+
root: {
|
|
7342
|
+
display: 'grid',
|
|
7343
|
+
gridTemplateColumns: `calc(${fontLineHeight} + 24px) minmax(0, 1fr) calc(${fontLineHeight} + 24px)`,
|
|
7344
|
+
margin: '0 -4px',
|
|
7345
|
+
height: 'inherit',
|
|
7346
|
+
},
|
|
7287
7347
|
'scroll-area': {
|
|
7288
7348
|
gridArea: '1 / 1 / 1 / -1',
|
|
7289
7349
|
padding: '4px',
|
|
@@ -7336,7 +7396,7 @@ const getComponentCss$r = (gradientColorTheme, isNextHidden, isPrevHidden, scrol
|
|
|
7336
7396
|
const ITEM_PADDING = '17px';
|
|
7337
7397
|
const ICON_SIZE = pxToRemWithUnit(24);
|
|
7338
7398
|
const ICON_MARGIN = pxToRemWithUnit(4);
|
|
7339
|
-
const getColors$
|
|
7399
|
+
const getColors$2 = (isDisabled, isSelected, theme) => {
|
|
7340
7400
|
const { primaryColor, contrastMediumColor, disabledColor, contrastLowColor } = getThemedColors(theme);
|
|
7341
7401
|
return {
|
|
7342
7402
|
buttonColor: isDisabled ? disabledColor : primaryColor,
|
|
@@ -7347,7 +7407,7 @@ const getColors$3 = (isDisabled, isSelected, theme) => {
|
|
|
7347
7407
|
};
|
|
7348
7408
|
const getComponentCss$q = (isDisabled, isSelected, hasIcon, theme) => {
|
|
7349
7409
|
const { focusColor } = getThemedColors(theme);
|
|
7350
|
-
const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$
|
|
7410
|
+
const { buttonColor, labelColor, borderColor, hoverBorderColor } = getColors$2(isDisabled, isSelected, theme);
|
|
7351
7411
|
return getCss({
|
|
7352
7412
|
'@global': {
|
|
7353
7413
|
':host': addImportantToEachRule(Object.assign({ display: 'block', outline: 0 }, hostHiddenStyles)),
|
|
@@ -7524,90 +7584,63 @@ const getComponentCss$m = (size, theme) => {
|
|
|
7524
7584
|
});
|
|
7525
7585
|
};
|
|
7526
7586
|
|
|
7527
|
-
|
|
7528
|
-
//
|
|
7529
|
-
|
|
7530
|
-
const
|
|
7531
|
-
const
|
|
7532
|
-
const
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7587
|
+
const getSVGPath = (stepCount, numberedCircleColors, isStateCurrent) => {
|
|
7588
|
+
// # of the hexcolor starts a fragment identifier in URLs, so we have to replace it with the escaped value of # = %23
|
|
7589
|
+
numberedCircleColors = Object.entries(numberedCircleColors).reduce((result, [key, value]) => (Object.assign(Object.assign({}, result), { [key]: value.replace(/#/g, '%23') })), {});
|
|
7590
|
+
const { disabledColor, invertedBaseColor, primaryColor } = numberedCircleColors;
|
|
7591
|
+
const fillColor = isStateCurrent ? invertedBaseColor : disabledColor;
|
|
7592
|
+
const svgCirclePath = `<circle fill="${isStateCurrent ? primaryColor : 'none'}"${isStateCurrent ? '' : ` stroke="${fillColor}"`} stroke-width="1px" cx="12" cy="12" r="9"/>`;
|
|
7593
|
+
// Full SVG is provided by design (./numbers_raw.svg), created with illustrator and optimized with ImageOptim.
|
|
7594
|
+
// The optimized file can be found in ./numbers_optim.svg.
|
|
7595
|
+
const svgNumberedCirclePaths = [
|
|
7596
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m12.33 8.67-2.43.91v-.94l2.6-1.03h.85v8.78h-1.02z"/>`,
|
|
7597
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m9.46 15.58c0-1.35.73-2.07 1.7-2.72l.95-.63c.78-.52 1.57-1.05 1.57-2.24 0-1.12-.62-1.58-1.7-1.58s-1.68.48-1.78 1.97h-.96c.06-1.82.78-2.91 2.74-2.91s2.72.92 2.72 2.52-.92 2.23-1.79 2.8l-.95.63c-1.11.75-1.52 1.18-1.52 2.01v.16h4.17v.81h-5.15v-.81z"/>`,
|
|
7598
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m10.1 13.73c.1 1.43.63 2 1.92 2 1.2 0 1.8-.49 1.8-1.68 0-1.08-.51-1.66-1.8-1.66h-.89v-.9h.83c1.12 0 1.66-.56 1.66-1.53 0-1.08-.64-1.55-1.73-1.55s-1.69.49-1.79 1.97h-.97c.1-1.79.84-2.91 2.76-2.91s2.74.92 2.74 2.49c0 .79-.38 1.54-1.16 1.9.84.28 1.36.92 1.36 2.19 0 1.54-.97 2.49-2.81 2.49-1.96 0-2.8-.9-2.88-2.81z"/>`,
|
|
7599
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m8.87 13.6 3.54-5.99h1.43v5.89h1.25v.86h-1.25v2.02h-.99v-2.02h-3.98zm3.98-.1v-4.98l-2.91 4.98z"/>`,
|
|
7600
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m9.34 12.45.42-4.83h4.71v.94h-3.9l-.26 2.95c.38-.43 1-.68 1.79-.68 1.86 0 2.76.9 2.76 2.81 0 2.06-1.03 2.91-2.86 2.91s-2.74-.84-2.81-2.51h.97c.06 1.13.57 1.7 1.84 1.7 1.39 0 1.85-.68 1.85-2.06s-.48-2-1.85-2c-1.07 0-1.54.42-1.75 1.17h-.91v-.39z"/>`,
|
|
7601
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m9.97 11.02 2.22-3.4h1.1l-2.27 3.44c.33-.16.69-.23 1.1-.23 1.84 0 2.76.9 2.76 2.81 0 2.06-1.04 2.91-2.86 2.91s-2.87-.85-2.87-2.91c0-1.08.3-1.8.83-2.61zm2.05 4.71c1.38 0 1.84-.68 1.84-2.05s-.47-2.01-1.84-2.01-1.85.64-1.85 2.01.46 2.05 1.85 2.05z"/>`,
|
|
7602
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m9.21 7.61h5.57v.74l-3.58 8.04h-1.05l3.54-7.84h-4.49v-.94z"/>`,
|
|
7603
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m10.47 11.94c-.65-.33-1.13-.92-1.13-2.01 0-1.53.85-2.47 2.66-2.47s2.66.94 2.66 2.47c0 1.08-.47 1.68-1.15 2.01.92.35 1.34 1.07 1.34 2.11 0 1.73-.99 2.49-2.86 2.49s-2.86-.76-2.86-2.49c0-1.04.41-1.76 1.33-2.11zm1.53 3.78c1.27 0 1.85-.51 1.85-1.69 0-1.1-.58-1.61-1.85-1.61s-1.85.52-1.85 1.61c0 1.18.58 1.69 1.85 1.69zm1.65-5.76c0-1.1-.56-1.56-1.65-1.56s-1.65.47-1.65 1.56c0 1 .46 1.6 1.65 1.6s1.65-.6 1.65-1.6z"/>`,
|
|
7604
|
+
`${svgCirclePath}<path fill="${fillColor}" d="m9.16 10.33c0-2.03 1.02-2.86 2.83-2.86s2.82.81 2.82 2.85c0 1.11-.3 1.82-.81 2.64l-2.18 3.44h-1.1l2.18-3.37c-.31.14-.65.2-1.01.2-1.82 0-2.74-.99-2.74-2.9zm4.65 0c0-1.23-.47-1.92-1.81-1.92s-1.81.69-1.81 1.92c0 1.37.49 2.05 1.81 2.05s1.81-.68 1.81-2.05z"/>`,
|
|
7605
|
+
];
|
|
7606
|
+
return svgNumberedCirclePaths[stepCount];
|
|
7544
7607
|
};
|
|
7545
|
-
// following constants are defined in em to ensure proportional size based on parents font size
|
|
7546
|
-
// TODO: to be sure counter sizing and positioning is in sync with icon, then we need to use a svg instead
|
|
7547
|
-
// TODO: simplify calculation of positioning by using css grid and/or svg
|
|
7548
|
-
const spriteStepSize = 0.625; // 10px / font size in px
|
|
7549
|
-
const spriteWidth = `${9 * spriteStepSize}em`; // 9 steps
|
|
7550
|
-
const spriteHeight = `${spriteStepSize}em`; // height of sprite / font size in px
|
|
7551
|
-
const counterCirclePosition = '0.171875em'; // 2.75px
|
|
7552
|
-
const counterCircleSize = `calc(${fontLineHeight} - ${counterCirclePosition} * 2)`;
|
|
7553
|
-
const counterValuePosition = `calc((${fontLineHeight} - ${spriteStepSize}em) / 2)`;
|
|
7554
|
-
const counterValueSize = spriteHeight;
|
|
7555
7608
|
const getComponentCss$l = (state, disabled, theme) => {
|
|
7556
|
-
const { primaryColor, hoverColor,
|
|
7557
|
-
const
|
|
7609
|
+
const { primaryColor, hoverColor, disabledColor, focusColor } = getThemedColors(theme);
|
|
7610
|
+
const isStateCurrent = state === 'current';
|
|
7611
|
+
const isStateCurrentOrUndefined = !state || isStateCurrent;
|
|
7558
7612
|
const isDisabled = !state || disabled;
|
|
7559
7613
|
return getCss(Object.assign(Object.assign({ '@global': {
|
|
7560
7614
|
':host': Object.assign(Object.assign({}, (isStateCurrentOrUndefined &&
|
|
7561
|
-
Array.from(Array(9)).reduce((result, _, i) => (Object.assign(Object.assign({}, result), { [`&(:nth-of-type(${i + 1})) $button::
|
|
7562
|
-
|
|
7615
|
+
Array.from(Array(9)).reduce((result, _, i) => (Object.assign(Object.assign({}, result), { [`&(:nth-of-type(${i + 1})) $button::before`]: {
|
|
7616
|
+
backgroundImage: getInlineSVGBackgroundImage(getSVGPath(i, {
|
|
7617
|
+
primaryColor,
|
|
7618
|
+
invertedBaseColor: getInvertedThemedColors(theme).primaryColor,
|
|
7619
|
+
disabledColor,
|
|
7620
|
+
}, isStateCurrent)),
|
|
7563
7621
|
} })), {}))), addImportantToEachRule(Object.assign(Object.assign({ fontSize: 'inherit' }, hostHiddenStyles), { '&(:not(:last-of-type))': {
|
|
7564
|
-
|
|
7622
|
+
margin: `0 ${spacingFluidXSmall} 0 0`,
|
|
7565
7623
|
} }))),
|
|
7566
|
-
button: Object.assign(Object.assign(Object.assign(Object.assign({ position: 'relative', color: isDisabled ? disabledColor : primaryColor,
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
'&::after': {
|
|
7582
|
-
// value of counter element
|
|
7583
|
-
content: '""',
|
|
7584
|
-
position: 'absolute',
|
|
7585
|
-
top: '50%',
|
|
7586
|
-
transform: 'translateY(-50%)',
|
|
7587
|
-
left: counterValuePosition,
|
|
7588
|
-
width: counterValueSize,
|
|
7589
|
-
height: counterValueSize,
|
|
7590
|
-
background: `${getSvg(isDisabled ? disabledColor : invertedBaseColor)} 0 50% / ${spriteWidth} ${spriteHeight} no-repeat`,
|
|
7591
|
-
},
|
|
7592
|
-
}
|
|
7593
|
-
: // other icons via icon component
|
|
7594
|
-
isDisabled
|
|
7595
|
-
? {
|
|
7596
|
-
cursor: 'not-allowed',
|
|
7597
|
-
textDecoration: 'none',
|
|
7598
|
-
}
|
|
7599
|
-
: Object.assign({ cursor: 'pointer', textDecoration: 'underline' }, hoverMediaQuery(Object.assign(Object.assign({}, getHoverJssStyle()), { '&:hover .icon': {
|
|
7600
|
-
color: hoverColor,
|
|
7601
|
-
} }))))),
|
|
7624
|
+
button: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ display: 'flex', position: 'relative', gap: '3px', color: isDisabled ? disabledColor : primaryColor, padding: '4px 10px 4px 6px', background: 0, border: 0, outline: 0 }, textSmallStyle), { fontSize: 'inherit', width: 'max-content', cursor: isDisabled ? 'not-allowed' : 'pointer', borderRadius: borderRadiusSmall }), (isStateCurrent && Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }))), (!isDisabled &&
|
|
7625
|
+
hoverMediaQuery({
|
|
7626
|
+
transition: getTransition('background-color'),
|
|
7627
|
+
'&:hover': Object.assign(Object.assign({}, frostedGlassStyle), { background: hoverColor }),
|
|
7628
|
+
}))), (isStateCurrentOrUndefined && {
|
|
7629
|
+
// counter
|
|
7630
|
+
// Pseudo element is needed to center the counter to the text, as it is not working optimal directly on the button
|
|
7631
|
+
'&::before': {
|
|
7632
|
+
content: '""',
|
|
7633
|
+
height: fontLineHeight,
|
|
7634
|
+
width: fontLineHeight,
|
|
7635
|
+
},
|
|
7636
|
+
})), { '&:focus::after': Object.assign(Object.assign({ content: '""', position: 'absolute' }, getInsetJssStyle(0)), { border: `${borderWidthBase} solid ${focusColor}`, borderRadius: borderRadiusSmall }), '&:focus:not(:focus-visible)::after': {
|
|
7637
|
+
borderColor: 'transparent',
|
|
7638
|
+
} }),
|
|
7602
7639
|
} }, (!isStateCurrentOrUndefined && {
|
|
7603
|
-
//
|
|
7640
|
+
// complete / warning icons via icon component
|
|
7604
7641
|
icon: {
|
|
7605
|
-
position: 'absolute',
|
|
7606
|
-
left: 0,
|
|
7607
7642
|
height: fontLineHeight,
|
|
7608
7643
|
width: fontLineHeight,
|
|
7609
|
-
color: isDisabled ? disabledColor : iconColor,
|
|
7610
|
-
transition: getTransition('color'),
|
|
7611
7644
|
},
|
|
7612
7645
|
})), { 'sr-only': getScreenReaderOnlyJssStyle() }));
|
|
7613
7646
|
};
|
|
@@ -7617,7 +7650,7 @@ const getComponentCss$k = (size) => {
|
|
|
7617
7650
|
'@global': {
|
|
7618
7651
|
':host': Object.assign({ display: 'block' }, addImportantToEachRule(hostHiddenStyles)),
|
|
7619
7652
|
},
|
|
7620
|
-
scroller: Object.assign(Object.assign({
|
|
7653
|
+
scroller: Object.assign(Object.assign({}, textSmallStyle), buildResponsiveStyles(size, (s) => ({ fontSize: fontSizeText[s] }))),
|
|
7621
7654
|
});
|
|
7622
7655
|
};
|
|
7623
7656
|
|
|
@@ -7822,7 +7855,9 @@ const transformSelector = (selector) => ['a', 'button'].map((tag) => selector.re
|
|
|
7822
7855
|
const getComponentCss$b = (size, weight, theme) => {
|
|
7823
7856
|
const { primaryColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
7824
7857
|
return getCss({
|
|
7825
|
-
'@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
|
|
7858
|
+
'@global': Object.assign({ ':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ position: 'relative',
|
|
7859
|
+
// TODO: probably not needed because there is no style with position: fixed
|
|
7860
|
+
transform: 'translate3d(0,0,0)' }, hostHiddenStyles))) }, addImportantToEachRule(Object.assign(Object.assign({
|
|
7826
7861
|
// would be nice to use shared selector like '::slotted([role])'
|
|
7827
7862
|
// but this doesn't work reliably when rendering in browser
|
|
7828
7863
|
[transformSelector('::slotted([role])')]: {
|
|
@@ -8101,36 +8136,50 @@ const getComponentCss$6 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
|
|
|
8101
8136
|
'sr-only': Object.assign(Object.assign({}, getScreenReaderOnlyJssStyle()), { padding: 0 }) }));
|
|
8102
8137
|
};
|
|
8103
8138
|
|
|
8104
|
-
const
|
|
8105
|
-
const
|
|
8106
|
-
|
|
8107
|
-
const
|
|
8108
|
-
const
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8139
|
+
const isListTypeOrdered = (listType) => listType === 'ordered';
|
|
8140
|
+
const isOrderTypeNumbered = (orderType) => orderType === 'numbered';
|
|
8141
|
+
|
|
8142
|
+
const cssVariablePseudoSuffix = '--p-internal-text-list-pseudo-suffix';
|
|
8143
|
+
const cssVariablePaddingTop = '--p-internal-text-list-padding-top';
|
|
8144
|
+
const cssVariablePaddingBottom = '--p-internal-text-list-padding-bottom';
|
|
8145
|
+
const cssVariableUnorderedPaddingLeft = '--p-internal-text-list-unordered-padding-left';
|
|
8146
|
+
const cssVariableOrderedPaddingLeft = '--p-internal-text-list-ordered-padding-left';
|
|
8147
|
+
const cssVariableListStyleType = '--p-internal-text-list-list-style-type';
|
|
8148
|
+
const counter = 'p-text-list-counter';
|
|
8149
|
+
const getComponentCss$5 = (listType, orderType, theme) => {
|
|
8150
|
+
const isOrderedList = isListTypeOrdered(listType);
|
|
8114
8151
|
return getCss({
|
|
8115
8152
|
'@global': {
|
|
8116
|
-
':host':
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8153
|
+
':host': Object.assign({ display: 'block' }, addImportantToEachRule(Object.assign({ counterReset: counter }, hostHiddenStyles))),
|
|
8154
|
+
'ol,ul': Object.assign(Object.assign({}, textSmallStyle), { color: getThemedColors(theme).primaryColor, margin: 0, padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) ${isOrderedList
|
|
8155
|
+
? `var(${cssVariableOrderedPaddingLeft},1.5rem)` // reserves space for ::before (root ordered list)
|
|
8156
|
+
: `var(${cssVariableUnorderedPaddingLeft},.375rem)` // reserves space for ::marker "•" (root unordered list)
|
|
8157
|
+
}`, listStyleType: isOrderedList ? 'none' : `var(${cssVariableListStyleType},'•')` }),
|
|
8158
|
+
// css selector for text-list-item
|
|
8159
|
+
'::slotted(*)': addImportantToEachRule(Object.assign({ [cssVariablePaddingTop]: spacingStaticXSmall,
|
|
8160
|
+
// TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
|
|
8161
|
+
[cssVariablePaddingBottom]: spacingStaticMedium, [cssVariableOrderedPaddingLeft]: '2rem', [cssVariableUnorderedPaddingLeft]: '.625rem', [cssVariableListStyleType]: '"–"' }, (isOrderedList && {
|
|
8162
|
+
'&::before': {
|
|
8163
|
+
content: `counters(${counter},'.',${isOrderTypeNumbered(orderType) ? 'decimal' : 'lower-latin'}) var(${cssVariablePseudoSuffix},'.')`,
|
|
8164
|
+
counterIncrement: counter,
|
|
8165
|
+
position: 'absolute',
|
|
8166
|
+
top: 0,
|
|
8167
|
+
left: 0,
|
|
8168
|
+
transform: 'translate(-100%,0)',
|
|
8169
|
+
},
|
|
8170
|
+
}))),
|
|
8124
8171
|
},
|
|
8125
8172
|
});
|
|
8126
8173
|
};
|
|
8127
8174
|
|
|
8128
|
-
const getComponentCss$4 = (
|
|
8175
|
+
const getComponentCss$4 = () => {
|
|
8129
8176
|
return getCss({
|
|
8130
|
-
'@global': {
|
|
8131
|
-
':host': Object.assign({ display: '
|
|
8132
|
-
'
|
|
8133
|
-
|
|
8177
|
+
'@global': addImportantToEachRule({
|
|
8178
|
+
':host': Object.assign({ display: 'list-item', position: 'relative', font: 'inherit', color: 'inherit', listStyleType: 'inherit', paddingLeft: spacingStaticMedium }, hostHiddenStyles),
|
|
8179
|
+
'::slotted(*)': {
|
|
8180
|
+
[cssVariablePseudoSuffix]: '""', // don't show suffix "." for nested ordered list
|
|
8181
|
+
},
|
|
8182
|
+
}),
|
|
8134
8183
|
});
|
|
8135
8184
|
};
|
|
8136
8185
|
|
|
@@ -8206,4 +8255,4 @@ const getComponentCss = () => {
|
|
|
8206
8255
|
});
|
|
8207
8256
|
};
|
|
8208
8257
|
|
|
8209
|
-
export { getComponentCss$
|
|
8258
|
+
export { getComponentCss$T as getAccordionCss, getComponentCss$S as getBannerCss, getComponentCss$P as getButtonCss, getComponentCss$R as getButtonGroupCss, getComponentCss$Q as getButtonPureCss, getComponentCss$O as getCarouselCss, getComponentCss$N as getCheckboxWrapperCss, getComponentCss$M as getContentWrapperCss, getComponentCss$L as getDisplayCss, getComponentCss$K as getDividerCss, getComponentCss$J as getFieldsetWrapperCss, getComponentCss$H as getFlexCss, getComponentCss$I as getFlexItemCss, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$F as getGridCss, getComponentCss$G as getGridItemCss, getComponentCss$E as getHeadingCss, getComponentCss$D as getHeadlineCss, getComponentCss$C as getIconCss, getComponentCss$B as getInlineNotificationCss, getComponentCss$z as getLinkCss, getComponentCss$A as getLinkPureCss, getComponentCss$z as getLinkSocialCss, getComponentCss$y as getLinkTileCss, getComponentCss$x as getMarqueCss, getComponentCss$w as getModalCss, getComponentCss$v as getModelSignatureCss, getComponentCss$u as getPaginationCss, getComponentCss$t as getPopoverCss, getComponentCss$s as getRadioButtonWrapperCss, getComponentCss$r as getScrollerCss, getComponentCss$p as getSegmentedControlCss, getComponentCss$q as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$m as getSpinnerCss, getComponentCss$k as getStepperHorizontalCss, getComponentCss$l as getStepperHorizontalItemCss, getComponentCss$j as getSwitchCss, getComponentCss$i as getTableBodyCss, getComponentCss$h as getTableCellCss, getComponentCss$c as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$b as getTabsBarCss, getComponentCss$9 as getTabsCss, getComponentCss$a as getTabsItemCss, getComponentCss$7 as getTagCss, getComponentCss$8 as getTagDismissibleCss, getComponentCss$3 as getTextCss, getComponentCss$6 as getTextFieldWrapperCss, getComponentCss$5 as getTextListCss, getComponentCss$4 as getTextListItemCss, getComponentCss$2 as getTextareaWrapperCss, getComponentCss as getToastCss };
|