@porsche-design-system/components-react 3.9.0 → 3.10.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/cjs/lib/components/flyout-navigation-item.wrapper.cjs +25 -0
- package/cjs/lib/components/flyout-navigation.wrapper.cjs +27 -0
- package/cjs/lib/components/link-tile-product.wrapper.cjs +26 -0
- package/cjs/lib/components/pagination.wrapper.cjs +1 -1
- package/cjs/lib/components/text-field-wrapper.wrapper.cjs +3 -3
- package/cjs/public-api.cjs +6 -0
- package/esm/lib/components/flyout-navigation-item.wrapper.d.ts +11 -0
- package/esm/lib/components/flyout-navigation-item.wrapper.mjs +23 -0
- package/esm/lib/components/flyout-navigation.wrapper.d.ts +56 -0
- package/esm/lib/components/flyout-navigation.wrapper.mjs +25 -0
- package/esm/lib/components/index.d.ts +3 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +96 -0
- package/esm/lib/components/link-tile-product.wrapper.mjs +24 -0
- package/esm/lib/components/pagination.wrapper.d.ts +4 -2
- package/esm/lib/components/pagination.wrapper.mjs +1 -1
- package/esm/lib/components/text-field-wrapper.wrapper.d.ts +8 -0
- package/esm/lib/components/text-field-wrapper.wrapper.mjs +3 -3
- package/esm/lib/types.d.ts +18 -0
- package/esm/public-api.mjs +3 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +1056 -425
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +84 -69
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation-item.wrapper.cjs +39 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation.wrapper.cjs +41 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-product.wrapper.cjs +40 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +4 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.cjs +95 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.cjs +94 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +92 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +17 -11
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +3 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +5 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/minifyCss.cjs +7 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +6 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +1027 -399
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +82 -69
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation-item.wrapper.mjs +37 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/flyout-navigation.wrapper.mjs +39 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/link-tile-product.wrapper.mjs +38 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/pagination.wrapper.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/text-field-wrapper.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +6 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/content-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset-wrapper.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flex.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.mjs +93 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.mjs +92 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/grid.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/headline.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +90 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +18 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +7 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +3 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +5 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/minifyCss.mjs +7 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +3 -0
- package/ssr/esm/lib/components/flyout-navigation-item.wrapper.d.ts +11 -0
- package/ssr/esm/lib/components/flyout-navigation.wrapper.d.ts +56 -0
- package/ssr/esm/lib/components/index.d.ts +3 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +96 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +4 -2
- package/ssr/esm/lib/components/text-field-wrapper.wrapper.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/flyout-navigation-item.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/flyout-navigation.d.ts +8 -0
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +6 -0
- package/ssr/esm/lib/dsr-components/pagination.d.ts +0 -2
- package/ssr/esm/lib/dsr-components/select-wrapper-dropdown.d.ts +3 -0
- package/ssr/esm/lib/types.d.ts +18 -0
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
const isDisabledOrLoading = (disabled, loading) => {
|
|
2
|
-
return disabled || loading;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
1
|
function _extends() {
|
|
6
2
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
7
3
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -2354,18 +2350,18 @@ function getDynamicStyles(styles) {
|
|
|
2354
2350
|
var index = createJss();
|
|
2355
2351
|
|
|
2356
2352
|
var jss_esm = /*#__PURE__*/Object.freeze({
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2353
|
+
__proto__: null,
|
|
2354
|
+
RuleList: RuleList,
|
|
2355
|
+
SheetsManager: SheetsManager,
|
|
2356
|
+
SheetsRegistry: SheetsRegistry,
|
|
2357
|
+
create: createJss,
|
|
2358
|
+
createGenerateId: createGenerateId,
|
|
2359
|
+
createRule: createRule,
|
|
2360
|
+
default: index,
|
|
2361
|
+
getDynamicStyles: getDynamicStyles,
|
|
2362
|
+
hasCSSTOMSupport: hasCSSTOMSupport,
|
|
2363
|
+
sheets: sheets,
|
|
2364
|
+
toCssValue: toCssValue
|
|
2369
2365
|
});
|
|
2370
2366
|
|
|
2371
2367
|
var at = '@global';
|
|
@@ -3155,6 +3151,10 @@ var dist = jssCombineAndSortMQ;
|
|
|
3155
3151
|
|
|
3156
3152
|
var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(dist);
|
|
3157
3153
|
|
|
3154
|
+
const isDisabledOrLoading = (disabled, loading) => {
|
|
3155
|
+
return disabled || loading;
|
|
3156
|
+
};
|
|
3157
|
+
|
|
3158
3158
|
const hasWindow = typeof window !== 'undefined';
|
|
3159
3159
|
|
|
3160
3160
|
const isHighContrastMode = hasWindow && window.matchMedia?.('(forced-colors: active)').matches;
|
|
@@ -3210,6 +3210,27 @@ const dropShadowHighStyle = {
|
|
|
3210
3210
|
|
|
3211
3211
|
const themeLightStateFocus = '#1A44EA';
|
|
3212
3212
|
|
|
3213
|
+
const getFocusStyle = (opts) => {
|
|
3214
|
+
const { borderRadius = 'small', offset = '2px' } = opts || {};
|
|
3215
|
+
const outlineOffset = offset === 'small' ? '2px' : offset === 'none' ? 0 : offset || '2px';
|
|
3216
|
+
const borderRadiusValue = borderRadius === 'small'
|
|
3217
|
+
? borderRadiusSmall
|
|
3218
|
+
: borderRadius === 'medium'
|
|
3219
|
+
? borderRadiusMedium
|
|
3220
|
+
: borderRadius || borderRadiusSmall;
|
|
3221
|
+
return {
|
|
3222
|
+
borderRadius: borderRadiusValue,
|
|
3223
|
+
'&:focus': {
|
|
3224
|
+
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
3225
|
+
outlineOffset,
|
|
3226
|
+
},
|
|
3227
|
+
// why? have a look at this article https://www.tpgi.com/focus-visible-and-backwards-compatibility/
|
|
3228
|
+
'&:focus:not(:focus-visible)': {
|
|
3229
|
+
outlineColor: 'transparent',
|
|
3230
|
+
},
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3213
3234
|
const fontFamily = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
3214
3235
|
|
|
3215
3236
|
const fontHyphenationStyle = {
|
|
@@ -3457,6 +3478,11 @@ const headingXXLargeStyle = {
|
|
|
3457
3478
|
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
3458
3479
|
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
3459
3480
|
|
|
3481
|
+
const textXXSmallStyle = {
|
|
3482
|
+
font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
|
|
3483
|
+
...fontHyphenationStyle,
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3460
3486
|
const textXSmallStyle = {
|
|
3461
3487
|
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
3462
3488
|
...fontHyphenationStyle,
|
|
@@ -3833,10 +3859,13 @@ const getResetInitialStylesForSlottedAnchor = {
|
|
|
3833
3859
|
};
|
|
3834
3860
|
const focusPseudoJssStyle = {
|
|
3835
3861
|
outline: 0,
|
|
3836
|
-
'
|
|
3862
|
+
'&::before': {
|
|
3863
|
+
// needs to be defined always to have correct custom click area
|
|
3837
3864
|
content: '""',
|
|
3838
3865
|
position: 'absolute',
|
|
3839
3866
|
...getInsetJssStyle(),
|
|
3867
|
+
},
|
|
3868
|
+
'&:focus::before': {
|
|
3840
3869
|
borderRadius: '1px',
|
|
3841
3870
|
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
3842
3871
|
outlineOffset: '2px',
|
|
@@ -4044,6 +4073,9 @@ const isThemeDark = (theme) => {
|
|
|
4044
4073
|
return theme === 'dark';
|
|
4045
4074
|
};
|
|
4046
4075
|
|
|
4076
|
+
const headerSlot = 'header';
|
|
4077
|
+
const anchorSlot = 'anchor';
|
|
4078
|
+
|
|
4047
4079
|
const formatObjectOutput = (value) => {
|
|
4048
4080
|
return JSON.stringify(value)
|
|
4049
4081
|
.replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
|
|
@@ -4056,22 +4088,25 @@ const formatObjectOutput = (value) => {
|
|
|
4056
4088
|
|
|
4057
4089
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4058
4090
|
|
|
4059
|
-
const getComponentCss$
|
|
4091
|
+
const getComponentCss$13 = (size, compact, open, theme) => {
|
|
4060
4092
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
4061
4093
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4062
4094
|
return getCss({
|
|
4063
4095
|
'@global': {
|
|
4064
|
-
':host':
|
|
4096
|
+
':host': {
|
|
4065
4097
|
display: 'block',
|
|
4066
|
-
...(
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4098
|
+
...addImportantToEachRule({
|
|
4099
|
+
...(!compact && {
|
|
4100
|
+
borderBottom: `1px solid ${contrastLowColor}`,
|
|
4101
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
4102
|
+
borderColor: contrastLowColorDark,
|
|
4103
|
+
}),
|
|
4070
4104
|
}),
|
|
4105
|
+
'&(:only-of-type)': { borderBottom: 0 },
|
|
4106
|
+
...colorSchemeStyles,
|
|
4107
|
+
...hostHiddenStyles,
|
|
4071
4108
|
}),
|
|
4072
|
-
|
|
4073
|
-
...hostHiddenStyles,
|
|
4074
|
-
}),
|
|
4109
|
+
},
|
|
4075
4110
|
button: {
|
|
4076
4111
|
display: 'flex',
|
|
4077
4112
|
position: 'relative',
|
|
@@ -4196,7 +4231,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4196
4231
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4197
4232
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4198
4233
|
const topBottomFallback = '56px';
|
|
4199
|
-
const getComponentCss
|
|
4234
|
+
const getComponentCss$12 = (isOpen) => {
|
|
4200
4235
|
return getCss({
|
|
4201
4236
|
'@global': {
|
|
4202
4237
|
':host': addImportantToEachRule({
|
|
@@ -4259,7 +4294,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4259
4294
|
return groupDirectionJssStyles[direction];
|
|
4260
4295
|
};
|
|
4261
4296
|
|
|
4262
|
-
const getComponentCss$
|
|
4297
|
+
const getComponentCss$11 = (direction) => {
|
|
4263
4298
|
return getCss({
|
|
4264
4299
|
'@global': {
|
|
4265
4300
|
':host': {
|
|
@@ -4413,7 +4448,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4413
4448
|
};
|
|
4414
4449
|
};
|
|
4415
4450
|
|
|
4416
|
-
const getComponentCss$
|
|
4451
|
+
const getComponentCss$10 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
4417
4452
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4418
4453
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), {
|
|
4419
4454
|
root: {
|
|
@@ -4590,7 +4625,7 @@ background, align, compact, hasGradient, isDisabled) => {
|
|
|
4590
4625
|
});
|
|
4591
4626
|
};
|
|
4592
4627
|
|
|
4593
|
-
const getComponentCss
|
|
4628
|
+
const getComponentCss$$ = (isDisabledOrLoading, ...args) => {
|
|
4594
4629
|
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4595
4630
|
return getCss({
|
|
4596
4631
|
...buttonLinkTileStyles,
|
|
@@ -4726,7 +4761,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4726
4761
|
};
|
|
4727
4762
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4728
4763
|
};
|
|
4729
|
-
const getComponentCss$
|
|
4764
|
+
const getComponentCss$_ = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
4730
4765
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4731
4766
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4732
4767
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4798,53 +4833,57 @@ const spacingMap = {
|
|
|
4798
4833
|
basic: gridBasicOffset,
|
|
4799
4834
|
extended: gridExtendedOffset,
|
|
4800
4835
|
};
|
|
4801
|
-
const getComponentCss$
|
|
4836
|
+
const getComponentCss$Z = (width, hasPagination, isInfinitePagination, alignHeader, theme) => {
|
|
4802
4837
|
const { primaryColor, contrastMediumColor, focusColor } = getThemedColors(theme);
|
|
4803
4838
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
4804
4839
|
const { canvasTextColor } = getHighContrastColors();
|
|
4805
4840
|
const isHeaderAlignCenter = alignHeader === 'center';
|
|
4806
4841
|
return getCss({
|
|
4807
4842
|
'@global': {
|
|
4808
|
-
':host':
|
|
4843
|
+
':host': {
|
|
4809
4844
|
display: 'flex',
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
'::slotted(*)': {
|
|
4817
|
-
borderRadius: addImportantToRule(`var(--p-carousel-border-radius, ${borderRadiusLarge})`),
|
|
4818
|
-
},
|
|
4819
|
-
'::slotted(*:focus-visible)': addImportantToEachRule({
|
|
4820
|
-
outline: `${borderWidthBase} solid ${focusColor}`,
|
|
4821
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
4822
|
-
outlineColor: focusColorDark,
|
|
4823
|
-
}),
|
|
4824
|
-
outlineOffset: '2px',
|
|
4825
|
-
}),
|
|
4826
|
-
[selectorHeading]: addImportantToEachRule({
|
|
4827
|
-
...headingXLargeStyle,
|
|
4828
|
-
maxWidth: '56.25rem',
|
|
4829
|
-
margin: 0,
|
|
4830
|
-
}),
|
|
4831
|
-
[selectorDescription]: addImportantToEachRule({
|
|
4832
|
-
...textSmallStyle,
|
|
4833
|
-
maxWidth: '34.375rem',
|
|
4834
|
-
margin: `${spacingFluidXSmall} 0 0`,
|
|
4835
|
-
}),
|
|
4836
|
-
[`${selectorHeading},${selectorDescription}`]: addImportantToEachRule({
|
|
4837
|
-
color: primaryColor,
|
|
4838
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
4839
|
-
color: primaryColorDark,
|
|
4845
|
+
...addImportantToEachRule({
|
|
4846
|
+
gap: spacingFluidMedium,
|
|
4847
|
+
flexDirection: 'column',
|
|
4848
|
+
boxSizing: 'content-box',
|
|
4849
|
+
...colorSchemeStyles,
|
|
4850
|
+
...hostHiddenStyles,
|
|
4840
4851
|
}),
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
}
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
}
|
|
4852
|
+
},
|
|
4853
|
+
...addImportantToEachRule({
|
|
4854
|
+
'::slotted(*)': {
|
|
4855
|
+
borderRadius: `var(--p-carousel-border-radius, ${borderRadiusLarge})`,
|
|
4856
|
+
},
|
|
4857
|
+
'::slotted(*:focus-visible)': {
|
|
4858
|
+
outline: `${borderWidthBase} solid ${focusColor}`,
|
|
4859
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
4860
|
+
outlineColor: focusColorDark,
|
|
4861
|
+
}),
|
|
4862
|
+
outlineOffset: '2px',
|
|
4863
|
+
},
|
|
4864
|
+
[selectorHeading]: {
|
|
4865
|
+
...headingXLargeStyle,
|
|
4866
|
+
maxWidth: '56.25rem',
|
|
4867
|
+
margin: 0,
|
|
4868
|
+
},
|
|
4869
|
+
[selectorDescription]: {
|
|
4870
|
+
...textSmallStyle,
|
|
4871
|
+
maxWidth: '34.375rem',
|
|
4872
|
+
margin: `${spacingFluidXSmall} 0 0`,
|
|
4873
|
+
},
|
|
4874
|
+
[`${selectorHeading},${selectorDescription}`]: {
|
|
4875
|
+
color: primaryColor,
|
|
4876
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
4877
|
+
color: primaryColorDark,
|
|
4878
|
+
}),
|
|
4879
|
+
[mediaQueryS]: isHeaderAlignCenter
|
|
4880
|
+
? {
|
|
4881
|
+
gridColumn: 2,
|
|
4882
|
+
}
|
|
4883
|
+
: {
|
|
4884
|
+
gridColumn: '1 / 3',
|
|
4885
|
+
},
|
|
4886
|
+
},
|
|
4848
4887
|
}),
|
|
4849
4888
|
},
|
|
4850
4889
|
header: {
|
|
@@ -5202,7 +5241,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
|
|
|
5202
5241
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5203
5242
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5204
5243
|
};
|
|
5205
|
-
const getComponentCss$
|
|
5244
|
+
const getComponentCss$Y = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5206
5245
|
const { canvasColor } = getHighContrastColors();
|
|
5207
5246
|
const checkedIconColor = isHighContrastMode
|
|
5208
5247
|
? canvasColor
|
|
@@ -5300,7 +5339,7 @@ const widthMap = {
|
|
|
5300
5339
|
basic: gridBasicOffset,
|
|
5301
5340
|
extended: gridExtendedOffset,
|
|
5302
5341
|
};
|
|
5303
|
-
const getComponentCss$
|
|
5342
|
+
const getComponentCss$X = (width) => {
|
|
5304
5343
|
return getCss({
|
|
5305
5344
|
'@global': {
|
|
5306
5345
|
':host': {
|
|
@@ -5342,7 +5381,7 @@ const getDimensionStyle = {
|
|
|
5342
5381
|
width: 'inherit',
|
|
5343
5382
|
height: 'inherit',
|
|
5344
5383
|
};
|
|
5345
|
-
const getComponentCss$
|
|
5384
|
+
const getComponentCss$W = () => {
|
|
5346
5385
|
return getCss({
|
|
5347
5386
|
'@global': {
|
|
5348
5387
|
':host': {
|
|
@@ -5430,7 +5469,7 @@ const sizeMap$4 = {
|
|
|
5430
5469
|
medium: fontSizeDisplayMedium,
|
|
5431
5470
|
large: fontSizeDisplayLarge,
|
|
5432
5471
|
};
|
|
5433
|
-
const getComponentCss$
|
|
5472
|
+
const getComponentCss$V = (size, align, color, ellipsis, theme) => {
|
|
5434
5473
|
return getCss({
|
|
5435
5474
|
'@global': {
|
|
5436
5475
|
':host': {
|
|
@@ -5450,7 +5489,7 @@ const getComponentCss$S = (size, align, color, ellipsis, theme) => {
|
|
|
5450
5489
|
});
|
|
5451
5490
|
};
|
|
5452
5491
|
|
|
5453
|
-
const getComponentCss$
|
|
5492
|
+
const getComponentCss$U = (color, orientation, theme) => {
|
|
5454
5493
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
5455
5494
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
5456
5495
|
const colorMap = {
|
|
@@ -5493,14 +5532,16 @@ const getComponentCss$R = (color, orientation, theme) => {
|
|
|
5493
5532
|
});
|
|
5494
5533
|
};
|
|
5495
5534
|
|
|
5496
|
-
const getComponentCss$
|
|
5535
|
+
const getComponentCss$T = (state, labelSize, hasLabel, theme) => {
|
|
5497
5536
|
return getCss({
|
|
5498
5537
|
'@global': {
|
|
5499
|
-
':host':
|
|
5538
|
+
':host': {
|
|
5500
5539
|
display: 'block',
|
|
5501
|
-
...
|
|
5502
|
-
|
|
5503
|
-
|
|
5540
|
+
...addImportantToEachRule({
|
|
5541
|
+
...colorSchemeStyles,
|
|
5542
|
+
...hostHiddenStyles,
|
|
5543
|
+
}),
|
|
5544
|
+
},
|
|
5504
5545
|
fieldset: {
|
|
5505
5546
|
margin: 0,
|
|
5506
5547
|
padding: 0,
|
|
@@ -5527,14 +5568,16 @@ const getComponentCss$Q = (state, labelSize, hasLabel, theme) => {
|
|
|
5527
5568
|
});
|
|
5528
5569
|
};
|
|
5529
5570
|
|
|
5530
|
-
const getComponentCss$
|
|
5571
|
+
const getComponentCss$S = (state, labelSize, hasLabel, theme) => {
|
|
5531
5572
|
return getCss({
|
|
5532
5573
|
'@global': {
|
|
5533
|
-
':host':
|
|
5574
|
+
':host': {
|
|
5534
5575
|
display: 'block',
|
|
5535
|
-
...
|
|
5536
|
-
|
|
5537
|
-
|
|
5576
|
+
...addImportantToEachRule({
|
|
5577
|
+
...colorSchemeStyles,
|
|
5578
|
+
...hostHiddenStyles,
|
|
5579
|
+
}),
|
|
5580
|
+
},
|
|
5538
5581
|
fieldset: {
|
|
5539
5582
|
margin: 0,
|
|
5540
5583
|
padding: 0,
|
|
@@ -5571,7 +5614,7 @@ const flexItemWidths = {
|
|
|
5571
5614
|
full: 100,
|
|
5572
5615
|
auto: 'auto',
|
|
5573
5616
|
};
|
|
5574
|
-
const getComponentCss$
|
|
5617
|
+
const getComponentCss$R = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
5575
5618
|
return getCss({
|
|
5576
5619
|
'@global': {
|
|
5577
5620
|
':host': addImportantToEachRule({
|
|
@@ -5593,162 +5636,532 @@ const getComponentCss$O = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
5593
5636
|
});
|
|
5594
5637
|
};
|
|
5595
5638
|
|
|
5596
|
-
const getComponentCss$
|
|
5639
|
+
const getComponentCss$Q = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
5597
5640
|
return getCss({
|
|
5598
5641
|
'@global': {
|
|
5599
|
-
':host':
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5642
|
+
':host': {
|
|
5643
|
+
...buildResponsiveStyles(inline, (inlineResponsive) => ({
|
|
5644
|
+
display: inlineResponsive ? 'inline-flex' : 'flex',
|
|
5645
|
+
})),
|
|
5646
|
+
...addImportantToEachRule(mergeDeep(colorSchemeStyles, hostHiddenStyles, buildResponsiveStyles(wrap, (flexWrapResponsive) => ({ flexWrap: flexWrapResponsive })), buildResponsiveStyles(direction, (flexDirectionResponsive) => ({
|
|
5647
|
+
flexDirection: flexDirectionResponsive,
|
|
5648
|
+
})), buildResponsiveStyles(justifyContent, (justifyContentResponsive) => ({
|
|
5649
|
+
justifyContent: justifyContentResponsive,
|
|
5650
|
+
})), buildResponsiveStyles(alignItems, (alignItemsResponsive) => ({
|
|
5651
|
+
alignItems: alignItemsResponsive,
|
|
5652
|
+
})), buildResponsiveStyles(alignContent, (alignContentResponsive) => ({
|
|
5653
|
+
alignContent: alignContentResponsive,
|
|
5654
|
+
})))),
|
|
5655
|
+
},
|
|
5610
5656
|
},
|
|
5611
5657
|
});
|
|
5612
5658
|
};
|
|
5613
5659
|
|
|
5614
|
-
const
|
|
5615
|
-
const
|
|
5616
|
-
const
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
const
|
|
5623
|
-
const
|
|
5624
|
-
const
|
|
5660
|
+
const cssVariableVisibility = '--p-internal-flyout-navigation-visibility';
|
|
5661
|
+
const cssVariableVisibilityTransitionDuration = '--p-internal-flyout-navigation-visibility-transition-duration';
|
|
5662
|
+
const frostedGlassHeaderHeight = '4rem';
|
|
5663
|
+
const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
|
|
5664
|
+
const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
|
|
5665
|
+
const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
|
|
5666
|
+
const mediaQueryEnhancedView = getMediaQueryMin('s');
|
|
5667
|
+
const getComponentCss$P = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
|
|
5668
|
+
const { backgroundColor } = getThemedColors(theme);
|
|
5669
|
+
const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
5670
|
+
const frostedGlassBackgroundColor = isThemeDark(theme)
|
|
5671
|
+
? frostedGlassBackgroundColorDark$1
|
|
5672
|
+
: frostedGlassBackgroundColorLight$1;
|
|
5625
5673
|
return getCss({
|
|
5626
5674
|
'@global': {
|
|
5627
5675
|
':host': {
|
|
5628
|
-
display: '
|
|
5676
|
+
display: 'block',
|
|
5629
5677
|
...addImportantToEachRule({
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
justifyContent: isPositionStart ? 'flex-start' : 'flex-end',
|
|
5636
|
-
...(isOpen
|
|
5637
|
-
? {
|
|
5638
|
-
visibility: 'inherit',
|
|
5639
|
-
}
|
|
5640
|
-
: {
|
|
5641
|
-
visibility: 'hidden',
|
|
5642
|
-
transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationLong})`,
|
|
5643
|
-
}),
|
|
5644
|
-
...getInsetJssStyle(),
|
|
5645
|
-
...getFrostedGlassBackgroundJssStyles(isOpen, 'long', theme),
|
|
5678
|
+
...(!isPrimaryScrollerVisible && {
|
|
5679
|
+
[cssVariableVisibility]: 'hidden',
|
|
5680
|
+
[cssVariableVisibilityTransitionDuration]: motionDurationLong,
|
|
5681
|
+
}),
|
|
5682
|
+
...getBackdropJssStyle(isPrimaryScrollerVisible, 'long', theme),
|
|
5646
5683
|
...colorSchemeStyles,
|
|
5647
5684
|
...hostHiddenStyles,
|
|
5648
5685
|
}),
|
|
5649
5686
|
},
|
|
5687
|
+
dialog: {
|
|
5688
|
+
position: 'fixed',
|
|
5689
|
+
...getInsetJssStyle(),
|
|
5690
|
+
display: 'grid',
|
|
5691
|
+
width: 'auto',
|
|
5692
|
+
height: '100vh',
|
|
5693
|
+
maxWidth: '100vw',
|
|
5694
|
+
maxHeight: '100vh',
|
|
5695
|
+
margin: 0,
|
|
5696
|
+
padding: 0,
|
|
5697
|
+
border: 0,
|
|
5698
|
+
visibility: 'inherit',
|
|
5699
|
+
background: 'none',
|
|
5700
|
+
overflow: 'hidden',
|
|
5701
|
+
...(isPrimaryScrollerVisible
|
|
5702
|
+
? {
|
|
5703
|
+
transform: 'translate3d(0, 0, 0)',
|
|
5704
|
+
transition: `${getTransition('transform', 'long', 'in')}`,
|
|
5705
|
+
}
|
|
5706
|
+
: {
|
|
5707
|
+
transform: 'translate3d(-100%, 0, 0)',
|
|
5708
|
+
transition: `${getTransition('transform', 'long', 'out')}`,
|
|
5709
|
+
}),
|
|
5710
|
+
[mediaQueryEnhancedView]: {
|
|
5711
|
+
gridTemplateColumns: `repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${scrollerWidthEnhancedView}) auto`,
|
|
5712
|
+
gridTemplateRows: '100vh',
|
|
5713
|
+
insetInlineEnd: 'auto', // to have correct dialog dimensions for ideal transitions
|
|
5714
|
+
},
|
|
5715
|
+
'&:dir(rtl)': {
|
|
5716
|
+
...(!isPrimaryScrollerVisible && {
|
|
5717
|
+
transform: 'translate3d(100%, 0, 0)', // use correct transitions in rtl mode
|
|
5718
|
+
}),
|
|
5719
|
+
},
|
|
5720
|
+
'&:focus-visible': {
|
|
5721
|
+
outline: 'none', // ua-style reset
|
|
5722
|
+
},
|
|
5723
|
+
'&::backdrop': {
|
|
5724
|
+
// to improve browser backwards compatibility we visually style the backdrop on the :host,
|
|
5725
|
+
// although it's not on the #top-layer like it would be for modern browsers supporting ::backdrop
|
|
5726
|
+
opacity: 0, // to support backdrop click for modern browsers supporting ::backdrop
|
|
5727
|
+
},
|
|
5728
|
+
},
|
|
5650
5729
|
},
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
}),
|
|
5660
|
-
width: 'var(--p-flyout-width, auto)',
|
|
5661
|
-
height: '100%',
|
|
5662
|
-
minWidth: '320px',
|
|
5663
|
-
maxWidth: 'var(--p-flyout-max-width, 1180px)',
|
|
5664
|
-
color: primaryColor,
|
|
5665
|
-
background: backgroundColor,
|
|
5666
|
-
...(isOpen
|
|
5667
|
-
? {
|
|
5668
|
-
opacity: 1,
|
|
5669
|
-
transform: 'initial',
|
|
5670
|
-
transition: `${getTransition('opacity', 'long', 'in')}, ${getTransition('transform', 'long', 'in')}`,
|
|
5671
|
-
}
|
|
5672
|
-
: {
|
|
5673
|
-
opacity: 0,
|
|
5674
|
-
transform: `translate3d(${isPositionStart ? '-100%' : '100%'}, 0, 0)`,
|
|
5675
|
-
transition: `${getTransition('opacity', 'short', 'out', 'long')}, ${getTransition('transform', 'long', 'out')}`,
|
|
5676
|
-
}),
|
|
5677
|
-
boxShadow: `${isPositionStart ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)`,
|
|
5678
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5679
|
-
color: primaryColorDark,
|
|
5680
|
-
background: backgroundColorDark,
|
|
5681
|
-
}),
|
|
5682
|
-
},
|
|
5683
|
-
header: {
|
|
5684
|
-
position: 'sticky',
|
|
5685
|
-
top: 0,
|
|
5686
|
-
zIndex: 2,
|
|
5687
|
-
display: 'grid',
|
|
5688
|
-
gridTemplateColumns: `minmax(0, 1fr) ${spacingFluidLarge}`,
|
|
5689
|
-
alignItems: 'flex-start',
|
|
5690
|
-
padding: `${spacingStaticMedium} 0`,
|
|
5691
|
-
paddingInlineStart: spacingFluidLarge,
|
|
5692
|
-
background: backgroundColor,
|
|
5693
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5694
|
-
background: backgroundColorDark,
|
|
5695
|
-
}),
|
|
5696
|
-
},
|
|
5697
|
-
[headerShadowClass]: {
|
|
5698
|
-
boxShadow: `${isDark ? scrollShadowColorDark : scrollShadowColor} 0px 5px 10px`,
|
|
5699
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5700
|
-
boxShadow: `${scrollShadowColorDark} 0px 5px 10px`,
|
|
5701
|
-
}),
|
|
5702
|
-
},
|
|
5703
|
-
dismiss: {
|
|
5704
|
-
gridArea: '1 / 2',
|
|
5705
|
-
justifySelf: 'center',
|
|
5706
|
-
},
|
|
5707
|
-
content: {
|
|
5708
|
-
padding: contentPadding,
|
|
5709
|
-
position: 'relative',
|
|
5710
|
-
zIndex: 0,
|
|
5730
|
+
scroller: {
|
|
5731
|
+
gridArea: '1/1',
|
|
5732
|
+
overflow: 'auto',
|
|
5733
|
+
// cssVariableVisibility ensures secondary scroller is not tabbable when whole flyout-navigation is closed
|
|
5734
|
+
// on mobile we need to decide if secondary scroller needs to be visible or not, on desktop it's not necessary but also doesn't harm
|
|
5735
|
+
visibility: `var(${cssVariableVisibility},${isSecondaryScrollerVisible ? 'hidden' : 'visible'})`,
|
|
5736
|
+
transition: `${getTransition('left', 'long', isSecondaryScrollerVisible ? 'in' : 'out')}, visibility 0s linear var(${cssVariableTransitionDuration}, ${!isPrimaryScrollerVisible || isSecondaryScrollerVisible ? motionDurationLong : '0s'})`,
|
|
5737
|
+
// it's important to define background-color for each scroller to have correct scrollbar coloring
|
|
5711
5738
|
backgroundColor,
|
|
5712
5739
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5713
|
-
backgroundColor: backgroundColorDark,
|
|
5714
|
-
}),
|
|
5715
|
-
// If sub-footer is used scroll shadows have to be done via JS
|
|
5716
|
-
...(!hasSubFooter && {
|
|
5717
|
-
overflowY: 'auto',
|
|
5718
|
-
WebkitOverflowScrolling: 'touch',
|
|
5719
|
-
backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
|
|
5720
|
-
backgroundPosition: 'bottom center, top center, bottom center, top center',
|
|
5721
|
-
backgroundRepeat: 'no-repeat',
|
|
5722
|
-
backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
|
|
5723
|
-
backgroundAttachment: 'local, local, scroll, scroll',
|
|
5724
|
-
overscrollBehaviorY: 'none',
|
|
5725
|
-
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5726
|
-
backgroundImage: `linear-gradient(to top, ${backgroundColorDark}, ${backgroundColorDark}), linear-gradient(to top, ${backgroundColorDark}, ${backgroundColorDark}), linear-gradient(to top, ${scrollShadowColorDark}, ${transparentColorDark}), linear-gradient(to bottom, ${scrollShadowColorDark}, ${transparentColorDark})`,
|
|
5727
|
-
backgroundColor: backgroundColorDark, // to ensure scrollbar coloring is optimal for dark theme
|
|
5728
|
-
}),
|
|
5740
|
+
backgroundColor: backgroundColorDark,
|
|
5729
5741
|
}),
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5742
|
+
[mediaQueryEnhancedView]: {
|
|
5743
|
+
visibility: 'inherit',
|
|
5744
|
+
transition: 'initial',
|
|
5745
|
+
},
|
|
5746
|
+
// simulates frosted glass header, to be visually in sync with header of secondary scroller
|
|
5747
|
+
'&::before': {
|
|
5748
|
+
content: '""',
|
|
5749
|
+
display: 'block',
|
|
5733
5750
|
position: 'sticky',
|
|
5734
|
-
|
|
5751
|
+
top: 0,
|
|
5735
5752
|
zIndex: 1,
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
}),
|
|
5741
|
-
},
|
|
5742
|
-
[footerShadowClass$1]: {
|
|
5743
|
-
boxShadow: `${isDark ? scrollShadowColorDark : scrollShadowColor} 0px -5px 10px`,
|
|
5753
|
+
height: frostedGlassHeaderHeight,
|
|
5754
|
+
backgroundColor: frostedGlassBackgroundColor,
|
|
5755
|
+
WebkitBackdropFilter: 'blur(8px)',
|
|
5756
|
+
backdropFilter: 'blur(8px)',
|
|
5744
5757
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5745
|
-
|
|
5758
|
+
backgroundColor: frostedGlassBackgroundColorDark$1,
|
|
5746
5759
|
}),
|
|
5760
|
+
[mediaQueryEnhancedView]: {
|
|
5761
|
+
display: 'none',
|
|
5762
|
+
},
|
|
5747
5763
|
},
|
|
5748
|
-
}
|
|
5749
|
-
|
|
5750
|
-
'
|
|
5751
|
-
|
|
5764
|
+
},
|
|
5765
|
+
content: {
|
|
5766
|
+
display: 'flex',
|
|
5767
|
+
flexDirection: 'column',
|
|
5768
|
+
gap: spacingFluidXSmall,
|
|
5769
|
+
padding: `${spacingFluidSmall} ${spacingFluidLarge} ${spacingFluidLarge}`,
|
|
5770
|
+
[mediaQueryEnhancedView]: {
|
|
5771
|
+
padding: `${spacingFluidMedium} ${spacingFluidLarge} ${spacingFluidLarge}`,
|
|
5772
|
+
},
|
|
5773
|
+
},
|
|
5774
|
+
// header is needed to keep position of dismiss button in sync with header of secondary scroller
|
|
5775
|
+
header: {
|
|
5776
|
+
position: 'relative',
|
|
5777
|
+
zIndex: 3,
|
|
5778
|
+
gridArea: '1/1',
|
|
5779
|
+
alignSelf: 'flex-start',
|
|
5780
|
+
justifySelf: 'flex-end',
|
|
5781
|
+
marginInlineEnd: `calc(${spacingFluidLarge} - ${spacingFluidSmall})`,
|
|
5782
|
+
height: frostedGlassHeaderHeight,
|
|
5783
|
+
display: 'flex',
|
|
5784
|
+
alignItems: 'center',
|
|
5785
|
+
[mediaQueryEnhancedView]: {
|
|
5786
|
+
marginInlineEnd: 0,
|
|
5787
|
+
gridArea: '1/-1',
|
|
5788
|
+
placeSelf: 'flex-start',
|
|
5789
|
+
},
|
|
5790
|
+
},
|
|
5791
|
+
dismiss: {
|
|
5792
|
+
padding: spacingFluidSmall,
|
|
5793
|
+
[mediaQueryEnhancedView]: {
|
|
5794
|
+
'--p-internal-icon-filter': 'invert(1)',
|
|
5795
|
+
margin: spacingFluidSmall,
|
|
5796
|
+
padding: spacingStaticSmall,
|
|
5797
|
+
},
|
|
5798
|
+
},
|
|
5799
|
+
});
|
|
5800
|
+
};
|
|
5801
|
+
// TODO: getBackdropJssStyle can be shared with flyout and modal
|
|
5802
|
+
/**
|
|
5803
|
+
* Generates JSS styles for a frosted glass background.
|
|
5804
|
+
* @param {boolean} isVisible - Determines if the frosted glass effect is visible.
|
|
5805
|
+
* @param {string} duration - The duration of the transition animation.
|
|
5806
|
+
* @param {Theme} theme - The theme to be used
|
|
5807
|
+
* @returns {JssStyle} - The JSS styles for the frosted glass backdrop.
|
|
5808
|
+
*/
|
|
5809
|
+
const getBackdropJssStyle = (isVisible, duration, theme) => {
|
|
5810
|
+
return {
|
|
5811
|
+
position: 'fixed',
|
|
5812
|
+
...getInsetJssStyle(),
|
|
5813
|
+
zIndex: FLYOUT_Z_INDEX,
|
|
5814
|
+
...(isVisible
|
|
5815
|
+
? {
|
|
5816
|
+
visibility: 'visible',
|
|
5817
|
+
pointerEvents: 'auto',
|
|
5818
|
+
...frostedGlassStyle,
|
|
5819
|
+
// TODO: background shading is missing in getThemedColors(theme).backgroundShading
|
|
5820
|
+
background: isThemeDark(theme) ? themeDarkBackgroundShading : themeLightBackgroundShading,
|
|
5821
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5822
|
+
background: themeDarkBackgroundShading,
|
|
5823
|
+
}),
|
|
5824
|
+
}
|
|
5825
|
+
: {
|
|
5826
|
+
visibility: 'hidden',
|
|
5827
|
+
pointerEvents: 'none',
|
|
5828
|
+
WebkitBackdropFilter: 'blur(0px)',
|
|
5829
|
+
backdropFilter: 'blur(0px)',
|
|
5830
|
+
background: 'none',
|
|
5831
|
+
}),
|
|
5832
|
+
transition: `${getTransition('background', duration, 'base')}, ${getTransition('backdrop-filter', duration, 'base')}, ${getTransition('-webkit-backdrop-filter', duration, 'base')}, visibility 0s linear var(${cssVariableTransitionDuration}, ${isVisible ? '0s' : motionDurationLong})`,
|
|
5833
|
+
};
|
|
5834
|
+
};
|
|
5835
|
+
const getContentJssStyle = () => {
|
|
5836
|
+
return {
|
|
5837
|
+
display: 'flex',
|
|
5838
|
+
flexDirection: 'column',
|
|
5839
|
+
gap: spacingFluidXSmall,
|
|
5840
|
+
padding: `${spacingFluidSmall} ${spacingFluidLarge} ${spacingFluidLarge}`,
|
|
5841
|
+
[mediaQueryEnhancedView]: {
|
|
5842
|
+
padding: `${spacingFluidMedium} ${spacingFluidLarge} ${spacingFluidLarge}`,
|
|
5843
|
+
},
|
|
5844
|
+
};
|
|
5845
|
+
};
|
|
5846
|
+
|
|
5847
|
+
const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
|
|
5848
|
+
const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
|
|
5849
|
+
const getComponentCss$O = (isSecondaryScrollerVisible, theme) => {
|
|
5850
|
+
const { primaryColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
|
|
5851
|
+
const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, focusColor: focusColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
5852
|
+
const frostedGlassBackgroundColor = isThemeDark(theme)
|
|
5853
|
+
? frostedGlassBackgroundColorDark
|
|
5854
|
+
: frostedGlassBackgroundColorLight;
|
|
5855
|
+
const fadeInOutTransition = isSecondaryScrollerVisible
|
|
5856
|
+
? {
|
|
5857
|
+
opacity: 1,
|
|
5858
|
+
transition: `${getTransition('opacity', 'veryLong', 'in', 'short')}`,
|
|
5859
|
+
[mediaQueryEnhancedView]: {
|
|
5860
|
+
transition: `${getTransition('opacity', 'veryLong', 'in')}`,
|
|
5861
|
+
},
|
|
5862
|
+
}
|
|
5863
|
+
: {
|
|
5864
|
+
opacity: 0,
|
|
5865
|
+
transition: `${getTransition('opacity', 'short', 'out')}`,
|
|
5866
|
+
};
|
|
5867
|
+
return getCss({
|
|
5868
|
+
'@global': {
|
|
5869
|
+
':host': {
|
|
5870
|
+
display: 'block',
|
|
5871
|
+
...addImportantToEachRule({
|
|
5872
|
+
...colorSchemeStyles,
|
|
5873
|
+
...hostHiddenStyles,
|
|
5874
|
+
}),
|
|
5875
|
+
},
|
|
5876
|
+
'::slotted(:is(h1, h2, h3, h4, h5, h6))': addImportantToEachRule({
|
|
5877
|
+
...headingSmallStyle,
|
|
5878
|
+
margin: 0,
|
|
5879
|
+
color: primaryColor,
|
|
5880
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5881
|
+
color: primaryColorDark,
|
|
5882
|
+
}),
|
|
5883
|
+
}),
|
|
5884
|
+
'::slotted(:is(h1, h2, h3, h4, h5, h6):not(:first-child))': addImportantToEachRule({
|
|
5885
|
+
margin: `${spacingFluidSmall} 0 0`,
|
|
5886
|
+
}),
|
|
5887
|
+
'::slotted(p)': addImportantToEachRule({
|
|
5888
|
+
...textSmallStyle,
|
|
5889
|
+
margin: 0,
|
|
5890
|
+
color: primaryColor,
|
|
5891
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5892
|
+
color: primaryColorDark,
|
|
5893
|
+
}),
|
|
5894
|
+
}),
|
|
5895
|
+
// TODO: how can we easily re-use getHoverStyle() and getFocusStyle() with ::slotted(a) selector?
|
|
5896
|
+
'::slotted(a)': {
|
|
5897
|
+
...addImportantToEachRule({
|
|
5898
|
+
...textSmallStyle,
|
|
5899
|
+
display: 'block',
|
|
5900
|
+
textDecoration: 'none',
|
|
5901
|
+
cursor: 'pointer',
|
|
5902
|
+
color: primaryColor,
|
|
5903
|
+
borderRadius: borderRadiusSmall,
|
|
5904
|
+
marginLeft: `-${spacingStaticXSmall}`,
|
|
5905
|
+
marginRight: `-${spacingStaticXSmall}`,
|
|
5906
|
+
padding: `2px ${spacingStaticXSmall}`,
|
|
5907
|
+
transition: `background var(${cssVariableTransitionDuration}, ${motionDurationShort}) ${motionEasingBase}`,
|
|
5908
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5909
|
+
color: primaryColorDark,
|
|
5910
|
+
}),
|
|
5911
|
+
}),
|
|
5912
|
+
},
|
|
5913
|
+
...hoverMediaQuery({
|
|
5914
|
+
'::slotted(a:hover)': addImportantToEachRule({
|
|
5915
|
+
background: hoverColor,
|
|
5916
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5917
|
+
background: hoverColorDark,
|
|
5918
|
+
}),
|
|
5919
|
+
}),
|
|
5920
|
+
}),
|
|
5921
|
+
'::slotted(a[aria-current])': addImportantToEachRule({
|
|
5922
|
+
background: hoverColor,
|
|
5923
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5924
|
+
background: hoverColorDark,
|
|
5925
|
+
}),
|
|
5926
|
+
}),
|
|
5927
|
+
'::slotted(a:focus)': addImportantToEachRule({
|
|
5928
|
+
outline: `${borderWidthBase} solid ${focusColor}`,
|
|
5929
|
+
outlineOffset: '-2px',
|
|
5930
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5931
|
+
outlineColor: focusColorDark,
|
|
5932
|
+
}),
|
|
5933
|
+
}),
|
|
5934
|
+
'::slotted(a:focus:not(:focus-visible))': addImportantToEachRule({
|
|
5935
|
+
outlineColor: 'transparent',
|
|
5936
|
+
}),
|
|
5937
|
+
},
|
|
5938
|
+
button: {
|
|
5939
|
+
width: 'auto',
|
|
5940
|
+
padding: spacingFluidSmall,
|
|
5941
|
+
margin: `0 calc(${spacingFluidSmall} * -1)`,
|
|
5942
|
+
},
|
|
5943
|
+
scroller: {
|
|
5944
|
+
position: 'fixed',
|
|
5945
|
+
...getInsetJssStyle(),
|
|
5946
|
+
// "cssVariableTransitionDuration" ensures closing animation of secondary scroller is given when whole flyout-navigation gets closed
|
|
5947
|
+
// "cssVariableVisibility" ensures secondary scroller is not tabbable when whole flyout-navigation is closed
|
|
5948
|
+
...(isSecondaryScrollerVisible
|
|
5949
|
+
? {
|
|
5950
|
+
zIndex: 2,
|
|
5951
|
+
transform: 'translate3d(0, 0, 0)',
|
|
5952
|
+
visibility: `var(${cssVariableVisibility},visible)`,
|
|
5953
|
+
transition: `${getTransition('transform', 'long', 'in')}, visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},0s))`,
|
|
5954
|
+
}
|
|
5955
|
+
: {
|
|
5956
|
+
zIndex: 1,
|
|
5957
|
+
transform: 'translate3d(100%, 0, 0)',
|
|
5958
|
+
visibility: `var(${cssVariableVisibility},hidden)`,
|
|
5959
|
+
transition: `${getTransition('transform', 'long', 'out')}, visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},${motionDurationLong}))`,
|
|
5960
|
+
}),
|
|
5961
|
+
width: '100vw',
|
|
5962
|
+
boxSizing: 'border-box',
|
|
5963
|
+
overflow: 'auto',
|
|
5964
|
+
...dropShadowHighStyle,
|
|
5965
|
+
// it's important to define background-color for each scroller to have correct scrollbar coloring
|
|
5966
|
+
backgroundColor: backgroundSurfaceColor,
|
|
5967
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5968
|
+
backgroundColor: backgroundSurfaceColorDark,
|
|
5969
|
+
}),
|
|
5970
|
+
[mediaQueryEnhancedView]: {
|
|
5971
|
+
boxShadow: 'none',
|
|
5972
|
+
insetInlineStart: `calc(${scrollerWidthEnhancedView} - 1px)`,
|
|
5973
|
+
width: scrollerWidthEnhancedView,
|
|
5974
|
+
transform: addImportantToRule('initial'),
|
|
5975
|
+
transition: `visibility 0s linear var(${cssVariableTransitionDuration},var(${cssVariableVisibilityTransitionDuration},0s))`,
|
|
5976
|
+
},
|
|
5977
|
+
'&:dir(rtl)': {
|
|
5978
|
+
...(!isSecondaryScrollerVisible && {
|
|
5979
|
+
transform: 'translate3d(-100%, 0, 0)', // use correct transitions in rtl mode for mobile view
|
|
5980
|
+
}),
|
|
5981
|
+
},
|
|
5982
|
+
},
|
|
5983
|
+
// header needs to be placed within scroller to ensure scrollbars are fully visible
|
|
5984
|
+
header: {
|
|
5985
|
+
position: 'sticky',
|
|
5986
|
+
top: 0,
|
|
5987
|
+
zIndex: 1,
|
|
5988
|
+
height: frostedGlassHeaderHeight,
|
|
5989
|
+
padding: `0 ${spacingFluidLarge}`,
|
|
5990
|
+
display: 'grid',
|
|
5991
|
+
gridTemplateColumns: '4rem minmax(0, 1fr) 4rem',
|
|
5992
|
+
alignItems: 'center',
|
|
5993
|
+
gap: spacingFluidSmall,
|
|
5994
|
+
WebkitBackdropFilter: 'blur(8px)',
|
|
5995
|
+
backdropFilter: 'blur(8px)',
|
|
5996
|
+
backgroundColor: frostedGlassBackgroundColor,
|
|
5997
|
+
...fadeInOutTransition,
|
|
5998
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5999
|
+
backgroundColor: frostedGlassBackgroundColorDark,
|
|
6000
|
+
}),
|
|
6001
|
+
[mediaQueryEnhancedView]: {
|
|
6002
|
+
display: 'none',
|
|
6003
|
+
},
|
|
6004
|
+
},
|
|
6005
|
+
back: {
|
|
6006
|
+
justifySelf: 'flex-start',
|
|
6007
|
+
padding: spacingFluidSmall,
|
|
6008
|
+
marginInlineStart: `calc(${spacingFluidSmall} * -1)`,
|
|
6009
|
+
},
|
|
6010
|
+
heading: {
|
|
6011
|
+
...headingMediumStyle,
|
|
6012
|
+
margin: 0,
|
|
6013
|
+
padding: 0,
|
|
6014
|
+
overflow: 'hidden',
|
|
6015
|
+
textAlign: 'center',
|
|
6016
|
+
whiteSpace: 'nowrap',
|
|
6017
|
+
textOverflow: 'ellipsis',
|
|
6018
|
+
color: primaryColor,
|
|
6019
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6020
|
+
color: primaryColorDark,
|
|
6021
|
+
}),
|
|
6022
|
+
},
|
|
6023
|
+
content: mergeDeep(getContentJssStyle(), fadeInOutTransition),
|
|
6024
|
+
});
|
|
6025
|
+
};
|
|
6026
|
+
|
|
6027
|
+
const headerShadowClass = 'header--shadow';
|
|
6028
|
+
const footerShadowClass$1 = 'footer--shadow';
|
|
6029
|
+
const getComponentCss$N = (isOpen, position, hasFooter, hasSubFooter, theme) => {
|
|
6030
|
+
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
6031
|
+
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
6032
|
+
const isPositionStart = position === 'start';
|
|
6033
|
+
const contentPadding = `${spacingStaticMedium} ${spacingFluidLarge}`;
|
|
6034
|
+
const isDark = isThemeDark(theme);
|
|
6035
|
+
const shadowColor = isDark ? scrollShadowColorDark : scrollShadowColor;
|
|
6036
|
+
const transparentColorDark = 'rgba(14, 14, 18, 0)';
|
|
6037
|
+
const transparentColor = isDark ? transparentColorDark : 'rgba(255, 255, 255, 0)';
|
|
6038
|
+
return getCss({
|
|
6039
|
+
'@global': {
|
|
6040
|
+
':host': {
|
|
6041
|
+
display: 'flex',
|
|
6042
|
+
...addImportantToEachRule({
|
|
6043
|
+
// needed for correct alignment of the Porsche Grid within the Flyout
|
|
6044
|
+
'--pds-internal-grid-outer-column': `calc(${spacingFluidLarge} - ${gridGap})`,
|
|
6045
|
+
'--pds-internal-grid-margin': `calc(${spacingFluidLarge} * -1)`,
|
|
6046
|
+
position: 'fixed',
|
|
6047
|
+
zIndex: FLYOUT_Z_INDEX,
|
|
6048
|
+
justifyContent: isPositionStart ? 'flex-start' : 'flex-end',
|
|
6049
|
+
...(isOpen
|
|
6050
|
+
? {
|
|
6051
|
+
visibility: 'inherit',
|
|
6052
|
+
}
|
|
6053
|
+
: {
|
|
6054
|
+
visibility: 'hidden',
|
|
6055
|
+
transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationLong})`,
|
|
6056
|
+
}),
|
|
6057
|
+
...getInsetJssStyle(),
|
|
6058
|
+
...getFrostedGlassBackgroundJssStyles(isOpen, 'long', theme),
|
|
6059
|
+
...colorSchemeStyles,
|
|
6060
|
+
...hostHiddenStyles,
|
|
6061
|
+
}),
|
|
6062
|
+
},
|
|
6063
|
+
},
|
|
6064
|
+
root: {
|
|
6065
|
+
position: 'relative',
|
|
6066
|
+
display: 'flex',
|
|
6067
|
+
flexDirection: 'column',
|
|
6068
|
+
boxSizing: 'border-box',
|
|
6069
|
+
...(hasSubFooter && {
|
|
6070
|
+
overflowY: 'auto',
|
|
6071
|
+
overscrollBehaviorY: 'none',
|
|
6072
|
+
}),
|
|
6073
|
+
width: 'var(--p-flyout-width, auto)',
|
|
6074
|
+
height: '100%',
|
|
6075
|
+
minWidth: '320px',
|
|
6076
|
+
maxWidth: 'var(--p-flyout-max-width, 1180px)',
|
|
6077
|
+
color: primaryColor,
|
|
6078
|
+
background: backgroundColor,
|
|
6079
|
+
...(isOpen
|
|
6080
|
+
? {
|
|
6081
|
+
opacity: 1,
|
|
6082
|
+
transform: 'initial',
|
|
6083
|
+
transition: `${getTransition('opacity', 'long', 'in')}, ${getTransition('transform', 'long', 'in')}`,
|
|
6084
|
+
}
|
|
6085
|
+
: {
|
|
6086
|
+
opacity: 0,
|
|
6087
|
+
transform: `translate3d(${isPositionStart ? '-100%' : '100%'}, 0, 0)`,
|
|
6088
|
+
transition: `${getTransition('opacity', 'short', 'out', 'long')}, ${getTransition('transform', 'long', 'out')}`,
|
|
6089
|
+
}),
|
|
6090
|
+
boxShadow: `${isPositionStart ? '3px' : '-3px'} 0px 30px rgba(0, 0, 0, 0.25)`,
|
|
6091
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6092
|
+
color: primaryColorDark,
|
|
6093
|
+
background: backgroundColorDark,
|
|
6094
|
+
}),
|
|
6095
|
+
},
|
|
6096
|
+
header: {
|
|
6097
|
+
position: 'sticky',
|
|
6098
|
+
top: 0,
|
|
6099
|
+
zIndex: 2,
|
|
6100
|
+
display: 'grid',
|
|
6101
|
+
gridTemplateColumns: `minmax(0, 1fr) ${spacingFluidLarge}`,
|
|
6102
|
+
alignItems: 'flex-start',
|
|
6103
|
+
padding: `${spacingStaticMedium} 0`,
|
|
6104
|
+
paddingInlineStart: spacingFluidLarge,
|
|
6105
|
+
background: backgroundColor,
|
|
6106
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6107
|
+
background: backgroundColorDark,
|
|
6108
|
+
}),
|
|
6109
|
+
},
|
|
6110
|
+
[headerShadowClass]: {
|
|
6111
|
+
boxShadow: `${isDark ? scrollShadowColorDark : scrollShadowColor} 0px 5px 10px`,
|
|
6112
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6113
|
+
boxShadow: `${scrollShadowColorDark} 0px 5px 10px`,
|
|
6114
|
+
}),
|
|
6115
|
+
},
|
|
6116
|
+
dismiss: {
|
|
6117
|
+
gridArea: '1 / 2',
|
|
6118
|
+
justifySelf: 'center',
|
|
6119
|
+
},
|
|
6120
|
+
content: {
|
|
6121
|
+
padding: contentPadding,
|
|
6122
|
+
position: 'relative',
|
|
6123
|
+
zIndex: 0,
|
|
6124
|
+
backgroundColor,
|
|
6125
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6126
|
+
backgroundColor: backgroundColorDark, // to ensure scrollbar coloring is optimal for dark theme
|
|
6127
|
+
}),
|
|
6128
|
+
// If sub-footer is used scroll shadows have to be done via JS
|
|
6129
|
+
...(!hasSubFooter && {
|
|
6130
|
+
overflowY: 'auto',
|
|
6131
|
+
WebkitOverflowScrolling: 'touch',
|
|
6132
|
+
backgroundImage: `linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${backgroundColor}, ${backgroundColor}), linear-gradient(to top, ${shadowColor}, ${transparentColor}), linear-gradient(to bottom, ${shadowColor}, ${transparentColor})`,
|
|
6133
|
+
backgroundPosition: 'bottom center, top center, bottom center, top center',
|
|
6134
|
+
backgroundRepeat: 'no-repeat',
|
|
6135
|
+
backgroundSize: '100% 20px, 100% 20px, 100% 10px, 100% 10px',
|
|
6136
|
+
backgroundAttachment: 'local, local, scroll, scroll',
|
|
6137
|
+
overscrollBehaviorY: 'none',
|
|
6138
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6139
|
+
backgroundImage: `linear-gradient(to top, ${backgroundColorDark}, ${backgroundColorDark}), linear-gradient(to top, ${backgroundColorDark}, ${backgroundColorDark}), linear-gradient(to top, ${scrollShadowColorDark}, ${transparentColorDark}), linear-gradient(to bottom, ${scrollShadowColorDark}, ${transparentColorDark})`,
|
|
6140
|
+
backgroundColor: backgroundColorDark, // to ensure scrollbar coloring is optimal for dark theme
|
|
6141
|
+
}),
|
|
6142
|
+
}),
|
|
6143
|
+
},
|
|
6144
|
+
...(hasFooter && {
|
|
6145
|
+
footer: {
|
|
6146
|
+
position: 'sticky',
|
|
6147
|
+
bottom: 0,
|
|
6148
|
+
zIndex: 1,
|
|
6149
|
+
padding: contentPadding,
|
|
6150
|
+
background: backgroundColor,
|
|
6151
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6152
|
+
background: backgroundColorDark,
|
|
6153
|
+
}),
|
|
6154
|
+
},
|
|
6155
|
+
[footerShadowClass$1]: {
|
|
6156
|
+
boxShadow: `${isDark ? scrollShadowColorDark : scrollShadowColor} 0px -5px 10px`,
|
|
6157
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6158
|
+
boxShadow: `${scrollShadowColorDark} 0px -5px 10px`,
|
|
6159
|
+
}),
|
|
6160
|
+
},
|
|
6161
|
+
}),
|
|
6162
|
+
...(hasSubFooter && {
|
|
6163
|
+
'sub-footer': {
|
|
6164
|
+
padding: contentPadding,
|
|
5752
6165
|
},
|
|
5753
6166
|
}),
|
|
5754
6167
|
});
|
|
@@ -5758,7 +6171,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
5758
6171
|
const gridItemWidths = [
|
|
5759
6172
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
5760
6173
|
];
|
|
5761
|
-
const getComponentCss$
|
|
6174
|
+
const getComponentCss$M = (size, offset) => {
|
|
5762
6175
|
return getCss({
|
|
5763
6176
|
'@global': {
|
|
5764
6177
|
':host': addImportantToEachRule({
|
|
@@ -5778,19 +6191,21 @@ const getComponentCss$L = (size, offset) => {
|
|
|
5778
6191
|
};
|
|
5779
6192
|
|
|
5780
6193
|
const gutter = `calc(${gridGap} / -2)`;
|
|
5781
|
-
const getComponentCss$
|
|
6194
|
+
const getComponentCss$L = (direction, wrap) => {
|
|
5782
6195
|
return getCss({
|
|
5783
6196
|
'@global': {
|
|
5784
|
-
':host':
|
|
6197
|
+
':host': {
|
|
5785
6198
|
display: 'flex',
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
6199
|
+
...addImportantToEachRule({
|
|
6200
|
+
flex: 'auto',
|
|
6201
|
+
width: 'auto',
|
|
6202
|
+
marginLeft: gutter,
|
|
6203
|
+
marginRight: gutter,
|
|
6204
|
+
...colorSchemeStyles,
|
|
6205
|
+
...hostHiddenStyles,
|
|
6206
|
+
...mergeDeep(buildResponsiveStyles(direction, (flexDirection) => ({ flexDirection })), buildResponsiveStyles(wrap, (flexWrap) => ({ flexWrap }))),
|
|
6207
|
+
}),
|
|
6208
|
+
},
|
|
5794
6209
|
},
|
|
5795
6210
|
});
|
|
5796
6211
|
};
|
|
@@ -5802,7 +6217,7 @@ const sizeMap$3 = {
|
|
|
5802
6217
|
'x-large': fontSizeHeadingXLarge,
|
|
5803
6218
|
'xx-large': fontSizeHeadingXXLarge,
|
|
5804
6219
|
};
|
|
5805
|
-
const getComponentCss$
|
|
6220
|
+
const getComponentCss$K = (size, align, color, ellipsis, theme) => {
|
|
5806
6221
|
return getCss({
|
|
5807
6222
|
'@global': {
|
|
5808
6223
|
':host': {
|
|
@@ -5864,7 +6279,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
5864
6279
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
5865
6280
|
};
|
|
5866
6281
|
};
|
|
5867
|
-
const getComponentCss$
|
|
6282
|
+
const getComponentCss$J = (variant, align, color, ellipsis, theme) => {
|
|
5868
6283
|
return getCss({
|
|
5869
6284
|
'@global': {
|
|
5870
6285
|
':host': {
|
|
@@ -5953,7 +6368,8 @@ const forceRerenderAnimationStyle = {
|
|
|
5953
6368
|
};
|
|
5954
6369
|
const keyFramesLight = 'rerender-light';
|
|
5955
6370
|
const keyFramesDark = 'rerender-dark';
|
|
5956
|
-
const
|
|
6371
|
+
const cssVariableFilter = '--p-internal-icon-filter';
|
|
6372
|
+
const getComponentCss$I = (color, size, theme) => {
|
|
5957
6373
|
const isColorInherit = color === 'inherit';
|
|
5958
6374
|
const isSizeInherit = size === 'inherit';
|
|
5959
6375
|
const isDark = isThemeDark(theme);
|
|
@@ -5973,9 +6389,9 @@ const getComponentCss$H = (color, size, theme) => {
|
|
|
5973
6389
|
padding: 0,
|
|
5974
6390
|
pointerEvents: 'none',
|
|
5975
6391
|
...(!isColorInherit && {
|
|
5976
|
-
filter: filterMap[theme][color]
|
|
6392
|
+
filter: `var(${cssVariableFilter},${filterMap[theme][color]})`,
|
|
5977
6393
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
5978
|
-
filter: filterMap.dark[color]
|
|
6394
|
+
filter: `var(${cssVariableFilter},${filterMap.dark[color]})`,
|
|
5979
6395
|
}),
|
|
5980
6396
|
...(isHighContrastMode &&
|
|
5981
6397
|
getSchemedHighContrastMediaQuery({
|
|
@@ -6004,7 +6420,7 @@ const getComponentCss$H = (color, size, theme) => {
|
|
|
6004
6420
|
};
|
|
6005
6421
|
|
|
6006
6422
|
const mediaQueryMinS$1 = getMediaQueryMin('s');
|
|
6007
|
-
const mediaQueryMaxS$
|
|
6423
|
+
const mediaQueryMaxS$2 = getMediaQueryMax('s');
|
|
6008
6424
|
const getBackgroundColor = (state, theme) => {
|
|
6009
6425
|
const { infoSoftColor, successSoftColor, errorSoftColor, warningSoftColor } = getThemedColors(theme);
|
|
6010
6426
|
const colorMap = {
|
|
@@ -6018,7 +6434,7 @@ const getBackgroundColor = (state, theme) => {
|
|
|
6018
6434
|
};
|
|
6019
6435
|
const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
|
|
6020
6436
|
return {
|
|
6021
|
-
display: 'grid',
|
|
6437
|
+
// display: 'grid', // NOTE: display property is moved into component styled to not apply !important keyword
|
|
6022
6438
|
// 2 columns for content and optional close button
|
|
6023
6439
|
gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
|
|
6024
6440
|
gap: spacingStaticMedium,
|
|
@@ -6039,7 +6455,7 @@ const getNotificationRootJssStyle = (state, hasAction, hasClose, theme) => {
|
|
|
6039
6455
|
};
|
|
6040
6456
|
};
|
|
6041
6457
|
const getNotificationIconJssStyle = () => ({
|
|
6042
|
-
[mediaQueryMaxS$
|
|
6458
|
+
[mediaQueryMaxS$2]: {
|
|
6043
6459
|
display: 'none',
|
|
6044
6460
|
},
|
|
6045
6461
|
});
|
|
@@ -6052,15 +6468,18 @@ const getNotificationContentJssStyle = () => ({
|
|
|
6052
6468
|
},
|
|
6053
6469
|
});
|
|
6054
6470
|
|
|
6055
|
-
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
6056
|
-
const getComponentCss$
|
|
6471
|
+
const mediaQueryMaxS$1 = getMediaQueryMax('s');
|
|
6472
|
+
const getComponentCss$H = (state, hasAction, hasClose, theme) => {
|
|
6057
6473
|
return getCss({
|
|
6058
6474
|
'@global': {
|
|
6059
|
-
':host':
|
|
6060
|
-
|
|
6061
|
-
...
|
|
6062
|
-
|
|
6063
|
-
|
|
6475
|
+
':host': {
|
|
6476
|
+
display: 'grid',
|
|
6477
|
+
...addImportantToEachRule({
|
|
6478
|
+
...getNotificationRootJssStyle(state, hasAction, hasClose, theme),
|
|
6479
|
+
...colorSchemeStyles,
|
|
6480
|
+
...hostHiddenStyles,
|
|
6481
|
+
}),
|
|
6482
|
+
},
|
|
6064
6483
|
h5: headingSmallStyle,
|
|
6065
6484
|
p: textSmallStyle,
|
|
6066
6485
|
'h5,p': {
|
|
@@ -6075,7 +6494,7 @@ const getComponentCss$G = (state, hasAction, hasClose, theme) => {
|
|
|
6075
6494
|
content: getNotificationContentJssStyle(),
|
|
6076
6495
|
...(hasAction && {
|
|
6077
6496
|
action: {
|
|
6078
|
-
[mediaQueryMaxS]: {
|
|
6497
|
+
[mediaQueryMaxS$1]: {
|
|
6079
6498
|
gridRowStart: 2,
|
|
6080
6499
|
},
|
|
6081
6500
|
},
|
|
@@ -6083,7 +6502,7 @@ const getComponentCss$G = (state, hasAction, hasClose, theme) => {
|
|
|
6083
6502
|
});
|
|
6084
6503
|
};
|
|
6085
6504
|
|
|
6086
|
-
const getComponentCss$
|
|
6505
|
+
const getComponentCss$G = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
6087
6506
|
const { focusColor } = getThemedColors(theme);
|
|
6088
6507
|
const { focusColor: focusColorDark } = getThemedColors('dark');
|
|
6089
6508
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), {
|
|
@@ -6127,7 +6546,7 @@ const getComponentCss$F = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
6127
6546
|
}));
|
|
6128
6547
|
};
|
|
6129
6548
|
|
|
6130
|
-
const getComponentCss$
|
|
6549
|
+
const getComponentCss$F = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
6131
6550
|
const { focusColor } = getThemedColors(theme);
|
|
6132
6551
|
const { focusColor: focusColorDark } = getThemedColors('dark');
|
|
6133
6552
|
const { linkColor } = getHighContrastColors();
|
|
@@ -6187,7 +6606,7 @@ const getComponentCss$E = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
6187
6606
|
// because it is created via Object.keys(MODEL_SIGNATURES_MANIFEST) would bundle the entire manifest into both chunks
|
|
6188
6607
|
const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
6189
6608
|
|
|
6190
|
-
const getComponentCss$
|
|
6609
|
+
const getComponentCss$E = (aspectRatio, weight, direction, hasDescription) => {
|
|
6191
6610
|
const tileBaseStyles = getTileBaseStyles(aspectRatio);
|
|
6192
6611
|
return getCss({
|
|
6193
6612
|
...tileBaseStyles,
|
|
@@ -6196,44 +6615,183 @@ const getComponentCss$D = (aspectRatio, weight, direction, hasDescription) => {
|
|
|
6196
6615
|
[LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS.join(',')]: {
|
|
6197
6616
|
margin: addImportantToRule(0),
|
|
6198
6617
|
},
|
|
6199
|
-
},
|
|
6200
|
-
content: {
|
|
6201
|
-
...tileBaseStyles.content,
|
|
6618
|
+
},
|
|
6619
|
+
content: {
|
|
6620
|
+
...tileBaseStyles.content,
|
|
6621
|
+
flexDirection: 'column',
|
|
6622
|
+
bottom: 0,
|
|
6623
|
+
padding: `${spacingFluidLarge} ${spacingFluidMedium} ${spacingFluidMedium}`,
|
|
6624
|
+
...gradientToTopStyle,
|
|
6625
|
+
},
|
|
6626
|
+
signature: {
|
|
6627
|
+
position: 'absolute',
|
|
6628
|
+
top: spacingFluidMedium,
|
|
6629
|
+
left: spacingFluidMedium,
|
|
6630
|
+
right: spacingFluidMedium,
|
|
6631
|
+
display: 'flex',
|
|
6632
|
+
},
|
|
6633
|
+
heading: {
|
|
6634
|
+
margin: 0,
|
|
6635
|
+
...textLargeStyle,
|
|
6636
|
+
hyphens: 'inherit',
|
|
6637
|
+
...buildResponsiveStyles(weight, (w) => ({ fontWeight: getFontWeight(w) })),
|
|
6638
|
+
},
|
|
6639
|
+
...(hasDescription && {
|
|
6640
|
+
description: {
|
|
6641
|
+
margin: '-12px 0 0 ',
|
|
6642
|
+
...textSmallStyle,
|
|
6643
|
+
hyphens: 'inherit',
|
|
6644
|
+
},
|
|
6645
|
+
}),
|
|
6646
|
+
'link-group': {
|
|
6647
|
+
display: 'flex',
|
|
6648
|
+
width: '100%',
|
|
6649
|
+
gap: spacingFluidSmall,
|
|
6650
|
+
...buildResponsiveStyles(direction, getGroupDirectionJssStyles),
|
|
6651
|
+
},
|
|
6652
|
+
'link-overlay': {
|
|
6653
|
+
// covers entire tile, used for expanded click-area only
|
|
6654
|
+
position: 'fixed',
|
|
6655
|
+
...getInsetJssStyle(),
|
|
6656
|
+
},
|
|
6657
|
+
});
|
|
6658
|
+
};
|
|
6659
|
+
|
|
6660
|
+
const slottedAnchorSelector = `a[slot='${anchorSlot}']`;
|
|
6661
|
+
const getComponentCss$D = (hasLikeButton, hasSlottedAnchor, aspectRatio, theme) => {
|
|
6662
|
+
const { primaryColor, contrastHighColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
6663
|
+
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
6664
|
+
return getCss({
|
|
6665
|
+
'@global': {
|
|
6666
|
+
':host': {
|
|
6667
|
+
display: 'block',
|
|
6668
|
+
position: 'relative',
|
|
6669
|
+
...addImportantToEachRule({
|
|
6670
|
+
...colorSchemeStyles,
|
|
6671
|
+
...hostHiddenStyles,
|
|
6672
|
+
}),
|
|
6673
|
+
},
|
|
6674
|
+
...addImportantToEachRule({
|
|
6675
|
+
'::slotted': {
|
|
6676
|
+
'&(img), &(picture)': {
|
|
6677
|
+
display: 'block',
|
|
6678
|
+
width: '100%',
|
|
6679
|
+
height: '100%',
|
|
6680
|
+
objectFit: 'cover',
|
|
6681
|
+
overflow: 'hidden',
|
|
6682
|
+
borderRadius: borderRadiusLarge,
|
|
6683
|
+
},
|
|
6684
|
+
...(hasSlottedAnchor && {
|
|
6685
|
+
[`&(${slottedAnchorSelector})`]: {
|
|
6686
|
+
position: 'absolute',
|
|
6687
|
+
borderRadius: borderRadiusMedium,
|
|
6688
|
+
...getInsetJssStyle(),
|
|
6689
|
+
zIndex: 1,
|
|
6690
|
+
textIndent: '-999999px', // Hide anchor label visually but still usable for a11y
|
|
6691
|
+
},
|
|
6692
|
+
// TODO: Refactor getFocusStyles to support slotted selector
|
|
6693
|
+
[`&(${slottedAnchorSelector}:focus)`]: {
|
|
6694
|
+
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
6695
|
+
outlineOffset: '2px',
|
|
6696
|
+
},
|
|
6697
|
+
[`&(${slottedAnchorSelector}:focus:not(:focus-visible))`]: {
|
|
6698
|
+
outlineColor: 'transparent',
|
|
6699
|
+
},
|
|
6700
|
+
}),
|
|
6701
|
+
},
|
|
6702
|
+
}),
|
|
6703
|
+
},
|
|
6704
|
+
...(!hasSlottedAnchor && {
|
|
6705
|
+
'link-overlay': {
|
|
6706
|
+
position: 'absolute',
|
|
6707
|
+
...getInsetJssStyle(),
|
|
6708
|
+
...getFocusStyle({ borderRadius: 'medium' }),
|
|
6709
|
+
},
|
|
6710
|
+
}),
|
|
6711
|
+
root: {
|
|
6712
|
+
display: 'flex',
|
|
6202
6713
|
flexDirection: 'column',
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6714
|
+
aspectRatio: '3 / 4',
|
|
6715
|
+
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
6716
|
+
aspectRatio: ratio.replace(':', ' / '),
|
|
6717
|
+
})),
|
|
6718
|
+
overflow: 'hidden',
|
|
6719
|
+
boxSizing: 'border-box',
|
|
6720
|
+
borderRadius: borderRadiusMedium,
|
|
6721
|
+
padding: spacingFluidSmall,
|
|
6722
|
+
color: primaryColor,
|
|
6723
|
+
backgroundColor: backgroundSurfaceColor,
|
|
6724
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6725
|
+
color: primaryColorDark,
|
|
6726
|
+
backgroundColor: backgroundSurfaceColorDark,
|
|
6727
|
+
}),
|
|
6728
|
+
...hoverMediaQuery({
|
|
6729
|
+
'&:hover .image-container': {
|
|
6730
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
6731
|
+
},
|
|
6732
|
+
}),
|
|
6206
6733
|
},
|
|
6207
|
-
|
|
6208
|
-
position: 'absolute',
|
|
6209
|
-
top: spacingFluidMedium,
|
|
6210
|
-
left: spacingFluidMedium,
|
|
6211
|
-
right: spacingFluidMedium,
|
|
6734
|
+
header: {
|
|
6212
6735
|
display: 'flex',
|
|
6736
|
+
justifyContent: 'space-between',
|
|
6737
|
+
fontSize: fontSizeTextXSmall,
|
|
6738
|
+
[`& slot[name="${headerSlot}"]`]: {
|
|
6739
|
+
display: 'block', // To ensure button positioning when slot is unused
|
|
6740
|
+
},
|
|
6213
6741
|
},
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
hyphens: 'inherit',
|
|
6742
|
+
...(hasLikeButton && {
|
|
6743
|
+
'like-button': {
|
|
6744
|
+
height: 'fit-content',
|
|
6745
|
+
position: 'relative',
|
|
6746
|
+
zIndex: 2,
|
|
6747
|
+
...hoverMediaQuery({
|
|
6748
|
+
'&:hover': {
|
|
6749
|
+
cursor: 'pointer',
|
|
6750
|
+
},
|
|
6751
|
+
}),
|
|
6225
6752
|
},
|
|
6226
6753
|
}),
|
|
6227
|
-
'
|
|
6754
|
+
'text-container': {
|
|
6228
6755
|
display: 'flex',
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6756
|
+
justifyContent: 'center',
|
|
6757
|
+
flexDirection: 'column',
|
|
6758
|
+
margin: 'auto',
|
|
6232
6759
|
},
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6760
|
+
text: {
|
|
6761
|
+
textAlign: 'center',
|
|
6762
|
+
margin: 0,
|
|
6763
|
+
'&__heading': {
|
|
6764
|
+
...headingSmallStyle,
|
|
6765
|
+
paddingBottom: '2px',
|
|
6766
|
+
minHeight: `calc(${fontLineHeight} * 2)`,
|
|
6767
|
+
display: 'flex',
|
|
6768
|
+
justifyContent: 'center',
|
|
6769
|
+
alignItems: 'flex-end',
|
|
6770
|
+
},
|
|
6771
|
+
'&__price, &__description': {
|
|
6772
|
+
fontWeight: fontWeightRegular,
|
|
6773
|
+
},
|
|
6774
|
+
'&__price': {
|
|
6775
|
+
...textXSmallStyle,
|
|
6776
|
+
},
|
|
6777
|
+
'&__description': {
|
|
6778
|
+
...textXXSmallStyle,
|
|
6779
|
+
color: contrastHighColor,
|
|
6780
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6781
|
+
color: contrastHighColorDark,
|
|
6782
|
+
}),
|
|
6783
|
+
},
|
|
6784
|
+
},
|
|
6785
|
+
'image-container': {
|
|
6786
|
+
margin: `${spacingFluidSmall} auto ${spacingFluidXSmall} auto`,
|
|
6787
|
+
padding: 0,
|
|
6788
|
+
[getMediaQueryMin('s')]: {
|
|
6789
|
+
padding: `0 ${spacingFluidMedium}`,
|
|
6790
|
+
},
|
|
6791
|
+
overflow: 'hidden',
|
|
6792
|
+
aspectRatio: '8 / 9',
|
|
6793
|
+
transition: getTransition('transform', 'moderate'),
|
|
6794
|
+
maxHeight: '100%',
|
|
6237
6795
|
},
|
|
6238
6796
|
});
|
|
6239
6797
|
};
|
|
@@ -6356,11 +6914,12 @@ const getComponentCss$A = (isOpen, isFullscreen, hasDismissButton, hasHeader, ha
|
|
|
6356
6914
|
return getCss({
|
|
6357
6915
|
'@global': {
|
|
6358
6916
|
':host': {
|
|
6917
|
+
display: 'flex',
|
|
6918
|
+
overflowY: 'auto',
|
|
6359
6919
|
...addImportantToEachRule({
|
|
6360
6920
|
position: 'fixed',
|
|
6361
6921
|
...getInsetJssStyle(),
|
|
6362
6922
|
zIndex: MODAL_Z_INDEX,
|
|
6363
|
-
display: 'flex',
|
|
6364
6923
|
alignItems: 'center',
|
|
6365
6924
|
justifyContent: 'center',
|
|
6366
6925
|
flexWrap: 'wrap',
|
|
@@ -6376,7 +6935,6 @@ const getComponentCss$A = (isOpen, isFullscreen, hasDismissButton, hasHeader, ha
|
|
|
6376
6935
|
...hostHiddenStyles,
|
|
6377
6936
|
...getFrostedGlassBackgroundJssStyles(isOpen, duration, theme),
|
|
6378
6937
|
}),
|
|
6379
|
-
overflowY: 'auto', // overrideable
|
|
6380
6938
|
},
|
|
6381
6939
|
'::slotted': addImportantToEachRule(mergeDeep(getSlottedJssStyle(32, hasHeader, hasDismissButton), buildResponsiveStyles(isFullscreen, (fullscreenValue) => ({
|
|
6382
6940
|
[`&(.${stretchToFullModalWidthClassName}`]: {
|
|
@@ -6939,6 +7497,7 @@ const getListStyles$1 = (isOpen, direction, theme) => {
|
|
|
6939
7497
|
};
|
|
6940
7498
|
|
|
6941
7499
|
const mediaQueryMinS = getMediaQueryMin('s');
|
|
7500
|
+
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
6942
7501
|
// button size needs to be fluid between 320px and 360px viewport width, so that the pagination fits into 320px viewport
|
|
6943
7502
|
// and text scale 200% works (almost) on mobile viewports too
|
|
6944
7503
|
const buttonSize = `clamp(36px, calc(${fontLineHeight} + 10vw - 20px), 40px)`;
|
|
@@ -6946,7 +7505,8 @@ const disabledCursorStyle = {
|
|
|
6946
7505
|
cursor: 'default',
|
|
6947
7506
|
pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
|
|
6948
7507
|
};
|
|
6949
|
-
const
|
|
7508
|
+
const hiddenStyle = { display: 'none' };
|
|
7509
|
+
const getComponentCss$w = (activePage, pageTotal, showLastPage, theme) => {
|
|
6950
7510
|
const { primaryColor, disabledColor, hoverColor, focusColor } = getThemedColors(theme);
|
|
6951
7511
|
const { primaryColor: primaryColorDark, disabledColor: disabledColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
6952
7512
|
return getCss({
|
|
@@ -6962,9 +7522,6 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
|
|
|
6962
7522
|
display: 'flex',
|
|
6963
7523
|
justifyContent: 'center',
|
|
6964
7524
|
userSelect: 'none',
|
|
6965
|
-
...buildResponsiveStyles(maxNumberOfPageLinks, (n) => ({
|
|
6966
|
-
counterReset: `size ${n}`,
|
|
6967
|
-
})),
|
|
6968
7525
|
},
|
|
6969
7526
|
ul: {
|
|
6970
7527
|
display: 'flex',
|
|
@@ -6977,13 +7534,43 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
|
|
|
6977
7534
|
},
|
|
6978
7535
|
li: {
|
|
6979
7536
|
listStyleType: 'none',
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
7537
|
+
...(pageTotal > 5 && {
|
|
7538
|
+
// max 5 items including ellipsis at the same time on mobile
|
|
7539
|
+
[mediaQueryMaxS]: {
|
|
7540
|
+
[activePage < 4
|
|
7541
|
+
? // we are at the start, so let's hide start ellipsis and 2 items before end ellipsis
|
|
7542
|
+
'&.ellip-start,&:nth-child(6),&:nth-child(7),&:not(.ellip):nth-child(8)'
|
|
7543
|
+
: pageTotal - activePage < 3
|
|
7544
|
+
? // we are at the end, so let's hide end ellipsis and 2 items after start ellipsis
|
|
7545
|
+
'&.ellip-end, &.ellip-start + &:not(.current), &.ellip-start + &:not(.current) + &:not(.current)'
|
|
7546
|
+
: // we are at in the middle, so let's hide elements after start and before end ellipsis
|
|
7547
|
+
'&.ellip-start + &:not(.current), &.current-1, &.current\\+1, &.current\\+1 + &:not(.ellip)']: hiddenStyle,
|
|
7548
|
+
// without last page we need to adjust end page handling
|
|
7549
|
+
...(!showLastPage &&
|
|
7550
|
+
(pageTotal - activePage < 2
|
|
7551
|
+
? { [`&.current-2${pageTotal - activePage === 1 ? ',&.current-1' : ''}`]: hiddenStyle }
|
|
7552
|
+
: activePage > 2 && {
|
|
7553
|
+
'&.current\\+1,&.current\\+2': hiddenStyle,
|
|
7554
|
+
'&.ellip-end': { display: 'initial' },
|
|
7555
|
+
})),
|
|
6986
7556
|
},
|
|
7557
|
+
}),
|
|
7558
|
+
[mediaQueryMinS]: {
|
|
7559
|
+
// prev
|
|
7560
|
+
'&:first-child': { marginInlineEnd: spacingStaticSmall },
|
|
7561
|
+
// next
|
|
7562
|
+
'&:last-child': { marginInlineStart: spacingStaticSmall },
|
|
7563
|
+
...(pageTotal < 8
|
|
7564
|
+
? { '&.ellip': hiddenStyle }
|
|
7565
|
+
: // max 7 items including ellipsis at the same time on tablet
|
|
7566
|
+
{
|
|
7567
|
+
// we are at the start, so let's hide start ellipsis
|
|
7568
|
+
...(activePage <= 4 && { '&.ellip-start': hiddenStyle }),
|
|
7569
|
+
// we are at the end, so let's hide end ellipsis
|
|
7570
|
+
...(pageTotal - activePage < 4 && { '&.ellip-end:nth-last-child(3)': hiddenStyle }),
|
|
7571
|
+
// we are at the end without last page, so let's hide end ellipsis
|
|
7572
|
+
...(pageTotal - activePage < 3 && { '&.ellip-end:nth-last-child(2)': hiddenStyle }),
|
|
7573
|
+
}),
|
|
6987
7574
|
},
|
|
6988
7575
|
},
|
|
6989
7576
|
span: {
|
|
@@ -7032,7 +7619,7 @@ const getComponentCss$w = (maxNumberOfPageLinks, theme) => {
|
|
|
7032
7619
|
color: primaryColorDark,
|
|
7033
7620
|
borderColor: primaryColorDark,
|
|
7034
7621
|
}),
|
|
7035
|
-
'&:not(.ellipsis):focus::before': getInsetJssStyle(-6),
|
|
7622
|
+
'&:not(.ellipsis):focus::before': getInsetJssStyle(-6), // adjust for missing 2px border
|
|
7036
7623
|
},
|
|
7037
7624
|
'&[aria-disabled]': {
|
|
7038
7625
|
...disabledCursorStyle,
|
|
@@ -7239,13 +7826,13 @@ const getComponentCss$u = (direction, isNative, theme) => {
|
|
|
7239
7826
|
return getCss({
|
|
7240
7827
|
'@global': {
|
|
7241
7828
|
':host': {
|
|
7829
|
+
display: 'inline-block',
|
|
7830
|
+
verticalAlign: 'top',
|
|
7242
7831
|
...addImportantToEachRule({
|
|
7243
7832
|
position: 'relative',
|
|
7244
|
-
display: 'inline-block',
|
|
7245
7833
|
...colorSchemeStyles,
|
|
7246
7834
|
...hostHiddenStyles,
|
|
7247
7835
|
}),
|
|
7248
|
-
verticalAlign: 'top',
|
|
7249
7836
|
},
|
|
7250
7837
|
p: {
|
|
7251
7838
|
...textSmallStyle,
|
|
@@ -7647,11 +8234,13 @@ const getComponentCss$r = (isDisabled, isSelected, hasIcon, hasSlottedContent, t
|
|
|
7647
8234
|
const { buttonColor: buttonColorDark, labelColor: labelColorDark, borderColor: borderColorDark, hoverBorderColor: hoverBorderColorDark, } = getColors$2(isDisabled, isSelected, 'dark');
|
|
7648
8235
|
return getCss({
|
|
7649
8236
|
'@global': {
|
|
7650
|
-
':host':
|
|
8237
|
+
':host': {
|
|
7651
8238
|
display: 'block',
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
8239
|
+
...addImportantToEachRule({
|
|
8240
|
+
outline: 0,
|
|
8241
|
+
...hostHiddenStyles,
|
|
8242
|
+
}),
|
|
8243
|
+
},
|
|
7655
8244
|
// All width relevant styling has to be kept in sync with the tempDiv of the p-segmented-control utils
|
|
7656
8245
|
button: {
|
|
7657
8246
|
position: 'relative',
|
|
@@ -7733,16 +8322,18 @@ const getComponentCss$q = (maxWidth, columns) => {
|
|
|
7733
8322
|
maxWidth = (maxWidth > MAX_ITEM_WIDTH && MAX_ITEM_WIDTH) || (maxWidth < MIN_ITEM_WIDTH && MIN_ITEM_WIDTH) || maxWidth;
|
|
7734
8323
|
return getCss({
|
|
7735
8324
|
'@global': {
|
|
7736
|
-
':host':
|
|
8325
|
+
':host': {
|
|
7737
8326
|
display: 'grid',
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
8327
|
+
...addImportantToEachRule({
|
|
8328
|
+
gridAutoRows: '1fr',
|
|
8329
|
+
...buildResponsiveStyles(columns, (col) => ({
|
|
8330
|
+
gridTemplateColumns: col === 'auto' ? `repeat(auto-fit, ${maxWidth}px)` : `repeat(${col}, minmax(0, 1fr))`,
|
|
8331
|
+
})),
|
|
8332
|
+
gap: '6px',
|
|
8333
|
+
...colorSchemeStyles,
|
|
8334
|
+
...hostHiddenStyles,
|
|
8335
|
+
}),
|
|
8336
|
+
},
|
|
7746
8337
|
},
|
|
7747
8338
|
});
|
|
7748
8339
|
};
|
|
@@ -8022,7 +8613,7 @@ const getListStyles = (direction, theme) => {
|
|
|
8022
8613
|
},
|
|
8023
8614
|
};
|
|
8024
8615
|
};
|
|
8025
|
-
const getComponentCss$p = (direction, isOpen, state, disabled, filter, theme) => {
|
|
8616
|
+
const getComponentCss$p = (direction, isOpen, state, disabled, filter, isNativePopover, theme) => {
|
|
8026
8617
|
return getCss(
|
|
8027
8618
|
// merge because of global styles
|
|
8028
8619
|
mergeDeep({
|
|
@@ -8035,6 +8626,23 @@ const getComponentCss$p = (direction, isOpen, state, disabled, filter, theme) =>
|
|
|
8035
8626
|
'sr-text': {
|
|
8036
8627
|
display: 'none',
|
|
8037
8628
|
},
|
|
8629
|
+
...(isNativePopover && {
|
|
8630
|
+
popover: {
|
|
8631
|
+
position: 'absolute',
|
|
8632
|
+
bottom: 'auto',
|
|
8633
|
+
border: 'none',
|
|
8634
|
+
background: 'none',
|
|
8635
|
+
pointerEvents: 'all',
|
|
8636
|
+
padding: 0,
|
|
8637
|
+
margin: 0,
|
|
8638
|
+
overflow: 'initial',
|
|
8639
|
+
height: 'auto',
|
|
8640
|
+
maxHeight: `${8.5 * (OPTION_HEIGHT + 8) + 6 + 2}px`,
|
|
8641
|
+
'&:-internal-popover-in-top-layer::backdrop': {
|
|
8642
|
+
display: 'none',
|
|
8643
|
+
},
|
|
8644
|
+
},
|
|
8645
|
+
}),
|
|
8038
8646
|
}, filter
|
|
8039
8647
|
? getFilterStyles(direction, isOpen, state, disabled, theme)
|
|
8040
8648
|
: getButtonStyles(direction, isOpen, state, theme), isOpen && getListStyles(direction, theme)));
|
|
@@ -8114,12 +8722,14 @@ const getComponentCss$n = (size, theme) => {
|
|
|
8114
8722
|
const lastHighContrastStrokeColor = isHighContrastMode && canvasColor;
|
|
8115
8723
|
return getCss({
|
|
8116
8724
|
'@global': {
|
|
8117
|
-
':host':
|
|
8725
|
+
':host': {
|
|
8118
8726
|
display: 'inline-flex',
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8727
|
+
...addImportantToEachRule({
|
|
8728
|
+
verticalAlign: 'top',
|
|
8729
|
+
...colorSchemeStyles,
|
|
8730
|
+
...hostHiddenStyles,
|
|
8731
|
+
}),
|
|
8732
|
+
},
|
|
8123
8733
|
svg: {
|
|
8124
8734
|
display: 'block',
|
|
8125
8735
|
fill: 'none',
|
|
@@ -8358,16 +8968,20 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
|
|
|
8358
8968
|
const { focusColor: focusColorDark } = getThemedColors('dark');
|
|
8359
8969
|
return getCss({
|
|
8360
8970
|
'@global': {
|
|
8361
|
-
':host':
|
|
8362
|
-
outline: 0,
|
|
8363
|
-
...colorSchemeStyles,
|
|
8364
|
-
...hostHiddenStyles,
|
|
8971
|
+
':host': {
|
|
8365
8972
|
...buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
8366
8973
|
display: stretchValue ? 'block' : 'inline-block',
|
|
8367
|
-
width: stretchValue ? '100%' : 'auto',
|
|
8368
|
-
...(!stretchValue && { verticalAlign: 'top' }),
|
|
8369
8974
|
})),
|
|
8370
|
-
|
|
8975
|
+
...addImportantToEachRule({
|
|
8976
|
+
outline: 0,
|
|
8977
|
+
...colorSchemeStyles,
|
|
8978
|
+
...hostHiddenStyles,
|
|
8979
|
+
...buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
8980
|
+
width: stretchValue ? '100%' : 'auto',
|
|
8981
|
+
...(!stretchValue && { verticalAlign: 'top' }),
|
|
8982
|
+
})),
|
|
8983
|
+
}),
|
|
8984
|
+
},
|
|
8371
8985
|
},
|
|
8372
8986
|
root: {
|
|
8373
8987
|
display: 'flex',
|
|
@@ -8478,10 +9092,10 @@ const getComponentCss$k = (alignLabel, hideLabel, stretch, checked, disabled, lo
|
|
|
8478
9092
|
const getComponentCss$j = () => {
|
|
8479
9093
|
return getCss({
|
|
8480
9094
|
'@global': {
|
|
8481
|
-
':host':
|
|
9095
|
+
':host': {
|
|
8482
9096
|
display: 'table-row-group',
|
|
8483
|
-
...hostHiddenStyles,
|
|
8484
|
-
}
|
|
9097
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
9098
|
+
},
|
|
8485
9099
|
},
|
|
8486
9100
|
});
|
|
8487
9101
|
};
|
|
@@ -8490,14 +9104,14 @@ const getComponentCss$i = (multiline) => {
|
|
|
8490
9104
|
return getCss({
|
|
8491
9105
|
'@global': {
|
|
8492
9106
|
':host': {
|
|
9107
|
+
display: 'table-cell',
|
|
9108
|
+
verticalAlign: 'middle',
|
|
8493
9109
|
...addImportantToEachRule({
|
|
8494
|
-
display: 'table-cell',
|
|
8495
9110
|
padding: spacingFluidSmall,
|
|
8496
9111
|
margin: 0,
|
|
8497
9112
|
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
8498
9113
|
...hostHiddenStyles,
|
|
8499
9114
|
}),
|
|
8500
|
-
verticalAlign: 'middle',
|
|
8501
9115
|
},
|
|
8502
9116
|
},
|
|
8503
9117
|
});
|
|
@@ -8516,17 +9130,19 @@ const getComponentCss$h = (theme) => {
|
|
|
8516
9130
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, contrastLowColor: contrastLowColorDark, } = doGetThemedColors('dark');
|
|
8517
9131
|
return getCss({
|
|
8518
9132
|
'@global': {
|
|
8519
|
-
':host':
|
|
9133
|
+
':host': {
|
|
8520
9134
|
display: 'block',
|
|
8521
|
-
...
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
9135
|
+
...addImportantToEachRule({
|
|
9136
|
+
...textSmallStyle,
|
|
9137
|
+
color: primaryColor,
|
|
9138
|
+
textAlign: 'start',
|
|
9139
|
+
...colorSchemeStyles,
|
|
9140
|
+
...hostHiddenStyles,
|
|
9141
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9142
|
+
color: primaryColorDark,
|
|
9143
|
+
}),
|
|
8528
9144
|
}),
|
|
8529
|
-
}
|
|
9145
|
+
},
|
|
8530
9146
|
'::slotted(*)': addImportantToEachRule({
|
|
8531
9147
|
[cssVariableTableHoverColor]: hoverColor,
|
|
8532
9148
|
[cssVariableTableBorderColor]: contrastLowColor,
|
|
@@ -8563,13 +9179,15 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
|
|
|
8563
9179
|
const sortable = isSortable(active, direction);
|
|
8564
9180
|
return getCss({
|
|
8565
9181
|
'@global': {
|
|
8566
|
-
':host':
|
|
9182
|
+
':host': {
|
|
8567
9183
|
display: 'table-cell',
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
9184
|
+
...addImportantToEachRule({
|
|
9185
|
+
padding: `2px ${spacingFluidSmall} ${spacingFluidSmall}`,
|
|
9186
|
+
verticalAlign: 'bottom',
|
|
9187
|
+
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
9188
|
+
...hostHiddenStyles,
|
|
9189
|
+
}),
|
|
9190
|
+
},
|
|
8573
9191
|
...(sortable
|
|
8574
9192
|
? {
|
|
8575
9193
|
button: {
|
|
@@ -8643,10 +9261,10 @@ const getComponentCss$g = (active, direction, hideLabel, multiline) => {
|
|
|
8643
9261
|
const getComponentCss$f = () => {
|
|
8644
9262
|
return getCss({
|
|
8645
9263
|
'@global': {
|
|
8646
|
-
':host':
|
|
9264
|
+
':host': {
|
|
8647
9265
|
display: 'table-row',
|
|
8648
|
-
...hostHiddenStyles,
|
|
8649
|
-
}
|
|
9266
|
+
...addImportantToEachRule(hostHiddenStyles),
|
|
9267
|
+
},
|
|
8650
9268
|
},
|
|
8651
9269
|
});
|
|
8652
9270
|
};
|
|
@@ -8654,13 +9272,15 @@ const getComponentCss$f = () => {
|
|
|
8654
9272
|
const getComponentCss$e = () => {
|
|
8655
9273
|
return getCss({
|
|
8656
9274
|
'@global': {
|
|
8657
|
-
':host':
|
|
9275
|
+
':host': {
|
|
8658
9276
|
display: 'table-header-group',
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
9277
|
+
...addImportantToEachRule({
|
|
9278
|
+
fontSize: fontSizeTextXSmall,
|
|
9279
|
+
lineHeight: fontLineHeight,
|
|
9280
|
+
fontWeight: fontWeightSemiBold,
|
|
9281
|
+
...hostHiddenStyles,
|
|
9282
|
+
}),
|
|
9283
|
+
},
|
|
8664
9284
|
},
|
|
8665
9285
|
});
|
|
8666
9286
|
};
|
|
@@ -8668,19 +9288,21 @@ const getComponentCss$e = () => {
|
|
|
8668
9288
|
const getComponentCss$d = () => {
|
|
8669
9289
|
return getCss({
|
|
8670
9290
|
'@global': {
|
|
8671
|
-
':host':
|
|
9291
|
+
':host': {
|
|
8672
9292
|
display: 'table-row',
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
9293
|
+
...addImportantToEachRule({
|
|
9294
|
+
borderTop: `1px solid var(${cssVariableTableBorderColor})`,
|
|
9295
|
+
borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
|
|
9296
|
+
transition: getTransition('background'),
|
|
9297
|
+
...hostHiddenStyles,
|
|
9298
|
+
...hoverMediaQuery({
|
|
9299
|
+
'&(:hover)': {
|
|
9300
|
+
// ...frostedGlassStyle, // will result in not smooth transition when applied
|
|
9301
|
+
background: `var(${cssVariableTableHoverColor})`,
|
|
9302
|
+
},
|
|
9303
|
+
}),
|
|
8682
9304
|
}),
|
|
8683
|
-
}
|
|
9305
|
+
},
|
|
8684
9306
|
},
|
|
8685
9307
|
});
|
|
8686
9308
|
};
|
|
@@ -8824,26 +9446,28 @@ const getComponentCss$b = (theme) => {
|
|
|
8824
9446
|
const { primaryColor: primaryColorDark, focusColor: focusColorDark } = getThemedColors('dark');
|
|
8825
9447
|
return getCss({
|
|
8826
9448
|
'@global': {
|
|
8827
|
-
':host':
|
|
9449
|
+
':host': {
|
|
8828
9450
|
display: 'block',
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
color: primaryColorDark,
|
|
8835
|
-
}),
|
|
8836
|
-
'&(:focus:focus-visible)::before': {
|
|
8837
|
-
content: '""',
|
|
8838
|
-
position: 'absolute',
|
|
8839
|
-
...getInsetJssStyle(-4),
|
|
8840
|
-
border: `${borderWidthBase} solid ${focusColor}`,
|
|
8841
|
-
borderRadius: borderRadiusSmall,
|
|
9451
|
+
...addImportantToEachRule({
|
|
9452
|
+
position: 'relative',
|
|
9453
|
+
color: primaryColor,
|
|
9454
|
+
outline: 0,
|
|
9455
|
+
...hostHiddenStyles,
|
|
8842
9456
|
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
8843
|
-
|
|
9457
|
+
color: primaryColorDark,
|
|
8844
9458
|
}),
|
|
8845
|
-
|
|
8846
|
-
|
|
9459
|
+
'&(:focus:focus-visible)::before': {
|
|
9460
|
+
content: '""',
|
|
9461
|
+
position: 'absolute',
|
|
9462
|
+
...getInsetJssStyle(-4),
|
|
9463
|
+
border: `${borderWidthBase} solid ${focusColor}`,
|
|
9464
|
+
borderRadius: borderRadiusSmall,
|
|
9465
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
9466
|
+
borderColor: focusColorDark,
|
|
9467
|
+
}),
|
|
9468
|
+
},
|
|
9469
|
+
}),
|
|
9470
|
+
},
|
|
8847
9471
|
},
|
|
8848
9472
|
});
|
|
8849
9473
|
};
|
|
@@ -9081,14 +9705,14 @@ const showCustomCalendarOrTimeIndicator = (isCalendar, isTime) => {
|
|
|
9081
9705
|
|
|
9082
9706
|
const cssVariableInputPaddingStart = '--p-internal-text-field-input-padding-start';
|
|
9083
9707
|
const cssVariableInputPaddingEnd = '--p-internal-text-field-input-padding-end';
|
|
9084
|
-
const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, theme) => {
|
|
9708
|
+
const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter, unitPosition, inputType, showPasswordToggle, isWithinForm, hasSubmitButton, theme) => {
|
|
9085
9709
|
const isSearch = isType(inputType, 'search');
|
|
9086
9710
|
const isPassword = isType(inputType, 'password');
|
|
9087
9711
|
const isNumber = isType(inputType, 'number');
|
|
9088
9712
|
const isCalendar = isType(inputType, 'date') || isType(inputType, 'week') || isType(inputType, 'month');
|
|
9089
9713
|
const isTime = isType(inputType, 'time');
|
|
9090
9714
|
const isSearchOrPassword = isSearch || (isPassword && showPasswordToggle);
|
|
9091
|
-
const
|
|
9715
|
+
const isSearchWithoutFormOrSubmitButton = isSearch && (!isWithinForm || !hasSubmitButton);
|
|
9092
9716
|
const isSearchWithForm = isSearch && isWithinForm;
|
|
9093
9717
|
const isCalendarOrTimeWithCustomIndicator = showCustomCalendarOrTimeIndicator(isCalendar, isTime);
|
|
9094
9718
|
return getCss({
|
|
@@ -9121,11 +9745,11 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
|
|
|
9121
9745
|
}),
|
|
9122
9746
|
},
|
|
9123
9747
|
root: {
|
|
9124
|
-
[cssVariableInputPaddingStart]:
|
|
9748
|
+
[cssVariableInputPaddingStart]: isSearchWithoutFormOrSubmitButton
|
|
9125
9749
|
? getCalculatedFormElementPaddingHorizontal(1)
|
|
9126
9750
|
: formElementPaddingHorizontal,
|
|
9127
9751
|
[cssVariableInputPaddingEnd]: isSearchOrPassword || isCalendarOrTimeWithCustomIndicator
|
|
9128
|
-
? getCalculatedFormElementPaddingHorizontal(isSearchWithForm ? 2 : 1)
|
|
9752
|
+
? getCalculatedFormElementPaddingHorizontal(isSearchWithForm && hasSubmitButton ? 2 : 1)
|
|
9129
9753
|
: formElementPaddingHorizontal,
|
|
9130
9754
|
display: 'grid',
|
|
9131
9755
|
gap: spacingStaticXSmall,
|
|
@@ -9146,7 +9770,7 @@ const getComponentCss$7 = (isDisabled, hideLabel, state, hasUnitOrVisibleCounter
|
|
|
9146
9770
|
},
|
|
9147
9771
|
},
|
|
9148
9772
|
}),
|
|
9149
|
-
...(
|
|
9773
|
+
...(isSearchWithoutFormOrSubmitButton && {
|
|
9150
9774
|
// TODO: extract for multi-select, select-wrapper and text-field (not gridArea and placeSelf) like done for unit class
|
|
9151
9775
|
icon: {
|
|
9152
9776
|
gridArea: '1/2',
|
|
@@ -9233,25 +9857,29 @@ const getComponentCss$6 = (type, theme) => {
|
|
|
9233
9857
|
|
|
9234
9858
|
const getComponentCss$5 = () => {
|
|
9235
9859
|
return getCss({
|
|
9236
|
-
'@global':
|
|
9860
|
+
'@global': {
|
|
9237
9861
|
':host': {
|
|
9238
9862
|
display: 'grid',
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
[cssVariableUnorderedGridColumn]: '.625rem',
|
|
9247
|
-
[cssVariableUnorderedPseudoContent]: '"–"',
|
|
9248
|
-
[cssVariableOrderedGridColumn]: '2rem',
|
|
9249
|
-
[cssVariableOrderedPseudoSuffix]: '""', // don't show ::before suffix "." (nested ordered list)
|
|
9250
|
-
},
|
|
9251
|
-
'::slotted(*:last-child)': {
|
|
9252
|
-
gridColumn: 2,
|
|
9863
|
+
...addImportantToEachRule({
|
|
9864
|
+
gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
|
|
9865
|
+
columnGap: spacingStaticMedium,
|
|
9866
|
+
font: 'inherit',
|
|
9867
|
+
color: 'inherit',
|
|
9868
|
+
...hostHiddenStyles,
|
|
9869
|
+
}),
|
|
9253
9870
|
},
|
|
9254
|
-
|
|
9871
|
+
...addImportantToEachRule({
|
|
9872
|
+
'::slotted(*)': {
|
|
9873
|
+
[cssVariableUnorderedGridColumn]: '.625rem',
|
|
9874
|
+
[cssVariableUnorderedPseudoContent]: '"–"',
|
|
9875
|
+
[cssVariableOrderedGridColumn]: '2rem',
|
|
9876
|
+
[cssVariableOrderedPseudoSuffix]: '""', // don't show ::before suffix "." (nested ordered list)
|
|
9877
|
+
},
|
|
9878
|
+
'::slotted(*:last-child)': {
|
|
9879
|
+
gridColumn: 2,
|
|
9880
|
+
},
|
|
9881
|
+
}),
|
|
9882
|
+
},
|
|
9255
9883
|
});
|
|
9256
9884
|
};
|
|
9257
9885
|
|
|
@@ -9440,4 +10068,4 @@ const getComponentCss = (size, theme) => {
|
|
|
9440
10068
|
});
|
|
9441
10069
|
};
|
|
9442
10070
|
|
|
9443
|
-
export { getComponentCss$
|
|
10071
|
+
export { getComponentCss$13 as getAccordionCss, getComponentCss$12 as getBannerCss, getComponentCss$_ as getButtonCss, getComponentCss$11 as getButtonGroupCss, getComponentCss$10 as getButtonPureCss, getComponentCss$$ as getButtonTileCss, getComponentCss$Z as getCarouselCss, getComponentCss$Y as getCheckboxWrapperCss, getComponentCss$X as getContentWrapperCss, getComponentCss$W as getCrestCss, getComponentCss$V as getDisplayCss, getComponentCss$U as getDividerCss, getComponentCss$S as getFieldsetCss, getComponentCss$T as getFieldsetWrapperCss, getComponentCss$Q as getFlexCss, getComponentCss$R as getFlexItemCss, getComponentCss$N as getFlyoutCss, getComponentCss$P as getFlyoutNavigationCss, getComponentCss$O as getFlyoutNavigationItemCss, getFunctionalComponentLabelStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$L as getGridCss, getComponentCss$M as getGridItemCss, getComponentCss$K as getHeadingCss, getComponentCss$J as getHeadlineCss, getComponentCss$I as getIconCss, getComponentCss$H as getInlineNotificationCss, getComponentCss$F as getLinkCss, getComponentCss$G as getLinkPureCss, getComponentCss$F as getLinkSocialCss, getComponentCss$C as getLinkTileCss, getComponentCss$E as getLinkTileModelSignatureCss, getComponentCss$D as getLinkTileProductCss, getComponentCss$B as getMarqueCss, getComponentCss$A as getModalCss, getComponentCss$z as getModelSignatureCss, getComponentCss$x as getMultiSelectCss, getComponentCss$y as getMultiSelectOptionCss, getComponentCss$w as getPaginationCss, getComponentCss$v as getPinCodeCss, getComponentCss$u as getPopoverCss, getComponentCss$t as getRadioButtonWrapperCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$o as getSelectWrapperCss, getComponentCss$p as getSelectWrapperDropdownCss, getComponentCss$n as getSpinnerCss, getComponentCss$l as getStepperHorizontalCss, getComponentCss$m as getStepperHorizontalItemCss, getComponentCss$k as getSwitchCss, getComponentCss$j as getTableBodyCss, getComponentCss$i as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$g as getTableHeadCellCss, getComponentCss$e as getTableHeadCss, getComponentCss$f as getTableHeadRowCss, getComponentCss$d as getTableRowCss, getComponentCss$c as getTabsBarCss, getComponentCss$a as getTabsCss, getComponentCss$b as getTabsItemCss, getComponentCss$8 as getTagCss, getComponentCss$9 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$7 as getTextFieldWrapperCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaWrapperCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|