@porsche-design-system/components-react 3.10.0-rc.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 +12 -0
- package/cjs/lib/components/link-tile-product.wrapper.cjs +26 -0
- package/cjs/public-api.cjs +2 -0
- package/esm/lib/components/index.d.ts +1 -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/types.d.ts +9 -0
- package/esm/public-api.mjs +1 -0
- package/package.json +2 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +230 -58
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +4 -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/dsr-components/accordion.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.cjs +2 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.cjs +1 -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 +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/public-api.cjs +2 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +201 -30
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +3 -1
- 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/dsr-components/accordion.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +3 -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 +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox-wrapper.mjs +3 -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 +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout-navigation.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +3 -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 +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-social.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-model-signature.mjs +3 -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 +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-button-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper-dropdown.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-field-wrapper.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/public-api.mjs +1 -0
- package/ssr/esm/lib/components/index.d.ts +1 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +96 -0
- package/ssr/esm/lib/dsr-components/flyout-navigation.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/link-tile-product.d.ts +6 -0
- package/ssr/esm/lib/types.d.ts +9 -0
|
@@ -3212,6 +3212,27 @@ const dropShadowHighStyle = {
|
|
|
3212
3212
|
|
|
3213
3213
|
const themeLightStateFocus = '#1A44EA';
|
|
3214
3214
|
|
|
3215
|
+
const getFocusStyle = (opts) => {
|
|
3216
|
+
const { borderRadius = 'small', offset = '2px' } = opts || {};
|
|
3217
|
+
const outlineOffset = offset === 'small' ? '2px' : offset === 'none' ? 0 : offset || '2px';
|
|
3218
|
+
const borderRadiusValue = borderRadius === 'small'
|
|
3219
|
+
? borderRadiusSmall
|
|
3220
|
+
: borderRadius === 'medium'
|
|
3221
|
+
? borderRadiusMedium
|
|
3222
|
+
: borderRadius || borderRadiusSmall;
|
|
3223
|
+
return {
|
|
3224
|
+
borderRadius: borderRadiusValue,
|
|
3225
|
+
'&:focus': {
|
|
3226
|
+
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
3227
|
+
outlineOffset,
|
|
3228
|
+
},
|
|
3229
|
+
// why? have a look at this article https://www.tpgi.com/focus-visible-and-backwards-compatibility/
|
|
3230
|
+
'&:focus:not(:focus-visible)': {
|
|
3231
|
+
outlineColor: 'transparent',
|
|
3232
|
+
},
|
|
3233
|
+
};
|
|
3234
|
+
};
|
|
3235
|
+
|
|
3215
3236
|
const fontFamily = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
3216
3237
|
|
|
3217
3238
|
const fontHyphenationStyle = {
|
|
@@ -3459,6 +3480,11 @@ const headingXXLargeStyle = {
|
|
|
3459
3480
|
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
3460
3481
|
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
3461
3482
|
|
|
3483
|
+
const textXXSmallStyle = {
|
|
3484
|
+
font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
|
|
3485
|
+
...fontHyphenationStyle,
|
|
3486
|
+
};
|
|
3487
|
+
|
|
3462
3488
|
const textXSmallStyle = {
|
|
3463
3489
|
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
3464
3490
|
...fontHyphenationStyle,
|
|
@@ -3835,10 +3861,13 @@ const getResetInitialStylesForSlottedAnchor = {
|
|
|
3835
3861
|
};
|
|
3836
3862
|
const focusPseudoJssStyle = {
|
|
3837
3863
|
outline: 0,
|
|
3838
|
-
'
|
|
3864
|
+
'&::before': {
|
|
3865
|
+
// needs to be defined always to have correct custom click area
|
|
3839
3866
|
content: '""',
|
|
3840
3867
|
position: 'absolute',
|
|
3841
3868
|
...getInsetJssStyle(),
|
|
3869
|
+
},
|
|
3870
|
+
'&:focus::before': {
|
|
3842
3871
|
borderRadius: '1px',
|
|
3843
3872
|
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
3844
3873
|
outlineOffset: '2px',
|
|
@@ -4046,6 +4075,9 @@ const isThemeDark = (theme) => {
|
|
|
4046
4075
|
return theme === 'dark';
|
|
4047
4076
|
};
|
|
4048
4077
|
|
|
4078
|
+
const headerSlot = 'header';
|
|
4079
|
+
const anchorSlot = 'anchor';
|
|
4080
|
+
|
|
4049
4081
|
const formatObjectOutput = (value) => {
|
|
4050
4082
|
return JSON.stringify(value)
|
|
4051
4083
|
.replace(/"([a-zA-Z?]+)":/g, '$1:') // remove double quotes from keys
|
|
@@ -4058,7 +4090,7 @@ const formatObjectOutput = (value) => {
|
|
|
4058
4090
|
|
|
4059
4091
|
const HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
4060
4092
|
|
|
4061
|
-
const getComponentCss$
|
|
4093
|
+
const getComponentCss$13 = (size, compact, open, theme) => {
|
|
4062
4094
|
const { primaryColor, hoverColor, focusColor, contrastLowColor } = getThemedColors(theme);
|
|
4063
4095
|
const { primaryColor: primaryColorDark, hoverColor: hoverColorDark, focusColor: focusColorDark, contrastLowColor: contrastLowColorDark, } = getThemedColors('dark');
|
|
4064
4096
|
return getCss({
|
|
@@ -4201,7 +4233,7 @@ const cssVariableTop = '--p-banner-position-top';
|
|
|
4201
4233
|
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4202
4234
|
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4203
4235
|
const topBottomFallback = '56px';
|
|
4204
|
-
const getComponentCss$
|
|
4236
|
+
const getComponentCss$12 = (isOpen) => {
|
|
4205
4237
|
return getCss({
|
|
4206
4238
|
'@global': {
|
|
4207
4239
|
':host': addImportantToEachRule({
|
|
@@ -4264,7 +4296,7 @@ const getGroupDirectionJssStyles = (direction) => {
|
|
|
4264
4296
|
return groupDirectionJssStyles[direction];
|
|
4265
4297
|
};
|
|
4266
4298
|
|
|
4267
|
-
const getComponentCss$
|
|
4299
|
+
const getComponentCss$11 = (direction) => {
|
|
4268
4300
|
return getCss({
|
|
4269
4301
|
'@global': {
|
|
4270
4302
|
':host': {
|
|
@@ -4418,7 +4450,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4418
4450
|
};
|
|
4419
4451
|
};
|
|
4420
4452
|
|
|
4421
|
-
const getComponentCss
|
|
4453
|
+
const getComponentCss$10 = (icon, iconSource, active, isLoading, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, theme) => {
|
|
4422
4454
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4423
4455
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, false, theme), {
|
|
4424
4456
|
root: {
|
|
@@ -4595,7 +4627,7 @@ background, align, compact, hasGradient, isDisabled) => {
|
|
|
4595
4627
|
});
|
|
4596
4628
|
};
|
|
4597
4629
|
|
|
4598
|
-
const getComponentCss
|
|
4630
|
+
const getComponentCss$$ = (isDisabledOrLoading, ...args) => {
|
|
4599
4631
|
const buttonLinkTileStyles = getButtonLinkTileStyles(...args);
|
|
4600
4632
|
return getCss({
|
|
4601
4633
|
...buttonLinkTileStyles,
|
|
@@ -4731,7 +4763,7 @@ const getDisabledColors = (variant, loading, theme) => {
|
|
|
4731
4763
|
};
|
|
4732
4764
|
return colors[variant === 'tertiary' ? 'secondary' : variant];
|
|
4733
4765
|
};
|
|
4734
|
-
const getComponentCss$
|
|
4766
|
+
const getComponentCss$_ = (icon, iconSource, variant, hideLabel, disabled, loading, theme) => {
|
|
4735
4767
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
4736
4768
|
const { textColor, borderColor, backgroundColor } = getDisabledColors(variant, loading, theme);
|
|
4737
4769
|
const { textColor: textColorDark, borderColor: borderColorDark, backgroundColor: backgroundColorDark, } = getDisabledColors(variant, loading, 'dark');
|
|
@@ -4803,7 +4835,7 @@ const spacingMap = {
|
|
|
4803
4835
|
basic: gridBasicOffset,
|
|
4804
4836
|
extended: gridExtendedOffset,
|
|
4805
4837
|
};
|
|
4806
|
-
const getComponentCss$
|
|
4838
|
+
const getComponentCss$Z = (width, hasPagination, isInfinitePagination, alignHeader, theme) => {
|
|
4807
4839
|
const { primaryColor, contrastMediumColor, focusColor } = getThemedColors(theme);
|
|
4808
4840
|
const { primaryColor: primaryColorDark, contrastMediumColor: contrastMediumColorDark, focusColor: focusColorDark, } = getThemedColors('dark');
|
|
4809
4841
|
const { canvasTextColor } = getHighContrastColors();
|
|
@@ -5211,7 +5243,7 @@ const getCheckedSVGBackgroundImage$1 = (fill) => {
|
|
|
5211
5243
|
const getIndeterminateSVGBackgroundImage = (fill) => {
|
|
5212
5244
|
return getInlineSVGBackgroundImage(`<path fill="${fill}" d="m20,11v2H4v-2h16Z"/>`);
|
|
5213
5245
|
};
|
|
5214
|
-
const getComponentCss$
|
|
5246
|
+
const getComponentCss$Y = (hideLabel, state, isDisabled, isLoading, theme) => {
|
|
5215
5247
|
const { canvasColor } = getHighContrastColors();
|
|
5216
5248
|
const checkedIconColor = isHighContrastMode
|
|
5217
5249
|
? canvasColor
|
|
@@ -5309,7 +5341,7 @@ const widthMap = {
|
|
|
5309
5341
|
basic: gridBasicOffset,
|
|
5310
5342
|
extended: gridExtendedOffset,
|
|
5311
5343
|
};
|
|
5312
|
-
const getComponentCss$
|
|
5344
|
+
const getComponentCss$X = (width) => {
|
|
5313
5345
|
return getCss({
|
|
5314
5346
|
'@global': {
|
|
5315
5347
|
':host': {
|
|
@@ -5351,7 +5383,7 @@ const getDimensionStyle = {
|
|
|
5351
5383
|
width: 'inherit',
|
|
5352
5384
|
height: 'inherit',
|
|
5353
5385
|
};
|
|
5354
|
-
const getComponentCss$
|
|
5386
|
+
const getComponentCss$W = () => {
|
|
5355
5387
|
return getCss({
|
|
5356
5388
|
'@global': {
|
|
5357
5389
|
':host': {
|
|
@@ -5439,7 +5471,7 @@ const sizeMap$4 = {
|
|
|
5439
5471
|
medium: fontSizeDisplayMedium,
|
|
5440
5472
|
large: fontSizeDisplayLarge,
|
|
5441
5473
|
};
|
|
5442
|
-
const getComponentCss$
|
|
5474
|
+
const getComponentCss$V = (size, align, color, ellipsis, theme) => {
|
|
5443
5475
|
return getCss({
|
|
5444
5476
|
'@global': {
|
|
5445
5477
|
':host': {
|
|
@@ -5459,7 +5491,7 @@ const getComponentCss$U = (size, align, color, ellipsis, theme) => {
|
|
|
5459
5491
|
});
|
|
5460
5492
|
};
|
|
5461
5493
|
|
|
5462
|
-
const getComponentCss$
|
|
5494
|
+
const getComponentCss$U = (color, orientation, theme) => {
|
|
5463
5495
|
const { contrastLowColor, contrastMediumColor, contrastHighColor } = getThemedColors(theme);
|
|
5464
5496
|
const { contrastLowColor: contrastLowColorDark, contrastMediumColor: contrastMediumColorDark, contrastHighColor: contrastHighColorDark, } = getThemedColors('dark');
|
|
5465
5497
|
const colorMap = {
|
|
@@ -5502,7 +5534,7 @@ const getComponentCss$T = (color, orientation, theme) => {
|
|
|
5502
5534
|
});
|
|
5503
5535
|
};
|
|
5504
5536
|
|
|
5505
|
-
const getComponentCss$
|
|
5537
|
+
const getComponentCss$T = (state, labelSize, hasLabel, theme) => {
|
|
5506
5538
|
return getCss({
|
|
5507
5539
|
'@global': {
|
|
5508
5540
|
':host': {
|
|
@@ -5538,7 +5570,7 @@ const getComponentCss$S = (state, labelSize, hasLabel, theme) => {
|
|
|
5538
5570
|
});
|
|
5539
5571
|
};
|
|
5540
5572
|
|
|
5541
|
-
const getComponentCss$
|
|
5573
|
+
const getComponentCss$S = (state, labelSize, hasLabel, theme) => {
|
|
5542
5574
|
return getCss({
|
|
5543
5575
|
'@global': {
|
|
5544
5576
|
':host': {
|
|
@@ -5584,7 +5616,7 @@ const flexItemWidths = {
|
|
|
5584
5616
|
full: 100,
|
|
5585
5617
|
auto: 'auto',
|
|
5586
5618
|
};
|
|
5587
|
-
const getComponentCss$
|
|
5619
|
+
const getComponentCss$R = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
5588
5620
|
return getCss({
|
|
5589
5621
|
'@global': {
|
|
5590
5622
|
':host': addImportantToEachRule({
|
|
@@ -5606,7 +5638,7 @@ const getComponentCss$Q = (width, offset, alignSelf, grow, shrink, flex) => {
|
|
|
5606
5638
|
});
|
|
5607
5639
|
};
|
|
5608
5640
|
|
|
5609
|
-
const getComponentCss$
|
|
5641
|
+
const getComponentCss$Q = (inline, wrap, direction, justifyContent, alignItems, alignContent) => {
|
|
5610
5642
|
return getCss({
|
|
5611
5643
|
'@global': {
|
|
5612
5644
|
':host': {
|
|
@@ -5634,7 +5666,7 @@ const frostedGlassBackgroundColorLight$1 = 'rgba(255, 255, 255, 0.79)';
|
|
|
5634
5666
|
const frostedGlassBackgroundColorDark$1 = 'rgba(14, 14, 18, 0.79)';
|
|
5635
5667
|
const scrollerWidthEnhancedView = 'clamp(338px, 10.52vw + 258px, 460px)';
|
|
5636
5668
|
const mediaQueryEnhancedView = getMediaQueryMin('s');
|
|
5637
|
-
const getComponentCss$
|
|
5669
|
+
const getComponentCss$P = (isPrimaryScrollerVisible, isSecondaryScrollerVisible, theme) => {
|
|
5638
5670
|
const { backgroundColor } = getThemedColors(theme);
|
|
5639
5671
|
const { backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
5640
5672
|
const frostedGlassBackgroundColor = isThemeDark(theme)
|
|
@@ -5816,7 +5848,7 @@ const getContentJssStyle = () => {
|
|
|
5816
5848
|
|
|
5817
5849
|
const frostedGlassBackgroundColorLight = 'rgba(238, 239, 242, 0.79)';
|
|
5818
5850
|
const frostedGlassBackgroundColorDark = 'rgba(33, 34, 37, 0.79)';
|
|
5819
|
-
const getComponentCss$
|
|
5851
|
+
const getComponentCss$O = (isSecondaryScrollerVisible, theme) => {
|
|
5820
5852
|
const { primaryColor, backgroundSurfaceColor, focusColor, hoverColor } = getThemedColors(theme);
|
|
5821
5853
|
const { primaryColor: primaryColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, focusColor: focusColorDark, hoverColor: hoverColorDark, } = getThemedColors('dark');
|
|
5822
5854
|
const frostedGlassBackgroundColor = isThemeDark(theme)
|
|
@@ -5996,7 +6028,7 @@ const getComponentCss$N = (isSecondaryScrollerVisible, theme) => {
|
|
|
5996
6028
|
|
|
5997
6029
|
const headerShadowClass = 'header--shadow';
|
|
5998
6030
|
const footerShadowClass$1 = 'footer--shadow';
|
|
5999
|
-
const getComponentCss$
|
|
6031
|
+
const getComponentCss$N = (isOpen, position, hasFooter, hasSubFooter, theme) => {
|
|
6000
6032
|
const { primaryColor, backgroundColor } = getThemedColors(theme);
|
|
6001
6033
|
const { primaryColor: primaryColorDark, backgroundColor: backgroundColorDark } = getThemedColors('dark');
|
|
6002
6034
|
const isPositionStart = position === 'start';
|
|
@@ -6141,7 +6173,7 @@ const gutter$1 = `calc(${gridGap} / 2)`;
|
|
|
6141
6173
|
const gridItemWidths = [
|
|
6142
6174
|
0, 8.333333, 16.666667, 25, 33.333333, 41.666667, 50, 58.333333, 66.666667, 75, 83.333333, 91.666667, 100,
|
|
6143
6175
|
];
|
|
6144
|
-
const getComponentCss$
|
|
6176
|
+
const getComponentCss$M = (size, offset) => {
|
|
6145
6177
|
return getCss({
|
|
6146
6178
|
'@global': {
|
|
6147
6179
|
':host': addImportantToEachRule({
|
|
@@ -6161,7 +6193,7 @@ const getComponentCss$L = (size, offset) => {
|
|
|
6161
6193
|
};
|
|
6162
6194
|
|
|
6163
6195
|
const gutter = `calc(${gridGap} / -2)`;
|
|
6164
|
-
const getComponentCss$
|
|
6196
|
+
const getComponentCss$L = (direction, wrap) => {
|
|
6165
6197
|
return getCss({
|
|
6166
6198
|
'@global': {
|
|
6167
6199
|
':host': {
|
|
@@ -6187,7 +6219,7 @@ const sizeMap$3 = {
|
|
|
6187
6219
|
'x-large': fontSizeHeadingXLarge,
|
|
6188
6220
|
'xx-large': fontSizeHeadingXXLarge,
|
|
6189
6221
|
};
|
|
6190
|
-
const getComponentCss$
|
|
6222
|
+
const getComponentCss$K = (size, align, color, ellipsis, theme) => {
|
|
6191
6223
|
return getCss({
|
|
6192
6224
|
'@global': {
|
|
6193
6225
|
':host': {
|
|
@@ -6249,7 +6281,7 @@ const getTextSizeJssStyle = (textSize) => {
|
|
|
6249
6281
|
fontSize: textSize === 'inherit' ? textSize : textSizeMap[textSize],
|
|
6250
6282
|
};
|
|
6251
6283
|
};
|
|
6252
|
-
const getComponentCss$
|
|
6284
|
+
const getComponentCss$J = (variant, align, color, ellipsis, theme) => {
|
|
6253
6285
|
return getCss({
|
|
6254
6286
|
'@global': {
|
|
6255
6287
|
':host': {
|
|
@@ -6339,7 +6371,7 @@ const forceRerenderAnimationStyle = {
|
|
|
6339
6371
|
const keyFramesLight = 'rerender-light';
|
|
6340
6372
|
const keyFramesDark = 'rerender-dark';
|
|
6341
6373
|
const cssVariableFilter = '--p-internal-icon-filter';
|
|
6342
|
-
const getComponentCss$
|
|
6374
|
+
const getComponentCss$I = (color, size, theme) => {
|
|
6343
6375
|
const isColorInherit = color === 'inherit';
|
|
6344
6376
|
const isSizeInherit = size === 'inherit';
|
|
6345
6377
|
const isDark = isThemeDark(theme);
|
|
@@ -6439,7 +6471,7 @@ const getNotificationContentJssStyle = () => ({
|
|
|
6439
6471
|
});
|
|
6440
6472
|
|
|
6441
6473
|
const mediaQueryMaxS$1 = getMediaQueryMax('s');
|
|
6442
|
-
const getComponentCss$
|
|
6474
|
+
const getComponentCss$H = (state, hasAction, hasClose, theme) => {
|
|
6443
6475
|
return getCss({
|
|
6444
6476
|
'@global': {
|
|
6445
6477
|
':host': {
|
|
@@ -6472,7 +6504,7 @@ const getComponentCss$G = (state, hasAction, hasClose, theme) => {
|
|
|
6472
6504
|
});
|
|
6473
6505
|
};
|
|
6474
6506
|
|
|
6475
|
-
const getComponentCss$
|
|
6507
|
+
const getComponentCss$G = (icon, iconSource, active, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor, theme) => {
|
|
6476
6508
|
const { focusColor } = getThemedColors(theme);
|
|
6477
6509
|
const { focusColor: focusColorDark } = getThemedColors('dark');
|
|
6478
6510
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, false, stretch, size, hideLabel, alignLabel, hasSlottedAnchor, theme), {
|
|
@@ -6516,7 +6548,7 @@ const getComponentCss$F = (icon, iconSource, active, stretch, size, hideLabel, a
|
|
|
6516
6548
|
}));
|
|
6517
6549
|
};
|
|
6518
6550
|
|
|
6519
|
-
const getComponentCss$
|
|
6551
|
+
const getComponentCss$F = (icon, iconSource, variant, hideLabel, hasSlottedAnchor, theme) => {
|
|
6520
6552
|
const { focusColor } = getThemedColors(theme);
|
|
6521
6553
|
const { focusColor: focusColorDark } = getThemedColors('dark');
|
|
6522
6554
|
const { linkColor } = getHighContrastColors();
|
|
@@ -6576,7 +6608,7 @@ const getComponentCss$E = (icon, iconSource, variant, hideLabel, hasSlottedAncho
|
|
|
6576
6608
|
// because it is created via Object.keys(MODEL_SIGNATURES_MANIFEST) would bundle the entire manifest into both chunks
|
|
6577
6609
|
const LINK_TILE_MODEL_SIGNATURE_HEADING_TAGS = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
6578
6610
|
|
|
6579
|
-
const getComponentCss$
|
|
6611
|
+
const getComponentCss$E = (aspectRatio, weight, direction, hasDescription) => {
|
|
6580
6612
|
const tileBaseStyles = getTileBaseStyles(aspectRatio);
|
|
6581
6613
|
return getCss({
|
|
6582
6614
|
...tileBaseStyles,
|
|
@@ -6627,6 +6659,145 @@ const getComponentCss$D = (aspectRatio, weight, direction, hasDescription) => {
|
|
|
6627
6659
|
});
|
|
6628
6660
|
};
|
|
6629
6661
|
|
|
6662
|
+
const slottedAnchorSelector = `a[slot='${anchorSlot}']`;
|
|
6663
|
+
const getComponentCss$D = (hasLikeButton, hasSlottedAnchor, aspectRatio, theme) => {
|
|
6664
|
+
const { primaryColor, contrastHighColor, backgroundSurfaceColor } = getThemedColors(theme);
|
|
6665
|
+
const { primaryColor: primaryColorDark, contrastHighColor: contrastHighColorDark, backgroundSurfaceColor: backgroundSurfaceColorDark, } = getThemedColors('dark');
|
|
6666
|
+
return getCss({
|
|
6667
|
+
'@global': {
|
|
6668
|
+
':host': {
|
|
6669
|
+
display: 'block',
|
|
6670
|
+
position: 'relative',
|
|
6671
|
+
...addImportantToEachRule({
|
|
6672
|
+
...colorSchemeStyles,
|
|
6673
|
+
...hostHiddenStyles,
|
|
6674
|
+
}),
|
|
6675
|
+
},
|
|
6676
|
+
...addImportantToEachRule({
|
|
6677
|
+
'::slotted': {
|
|
6678
|
+
'&(img), &(picture)': {
|
|
6679
|
+
display: 'block',
|
|
6680
|
+
width: '100%',
|
|
6681
|
+
height: '100%',
|
|
6682
|
+
objectFit: 'cover',
|
|
6683
|
+
overflow: 'hidden',
|
|
6684
|
+
borderRadius: borderRadiusLarge,
|
|
6685
|
+
},
|
|
6686
|
+
...(hasSlottedAnchor && {
|
|
6687
|
+
[`&(${slottedAnchorSelector})`]: {
|
|
6688
|
+
position: 'absolute',
|
|
6689
|
+
borderRadius: borderRadiusMedium,
|
|
6690
|
+
...getInsetJssStyle(),
|
|
6691
|
+
zIndex: 1,
|
|
6692
|
+
textIndent: '-999999px', // Hide anchor label visually but still usable for a11y
|
|
6693
|
+
},
|
|
6694
|
+
// TODO: Refactor getFocusStyles to support slotted selector
|
|
6695
|
+
[`&(${slottedAnchorSelector}:focus)`]: {
|
|
6696
|
+
outline: `${borderWidthBase} solid ${themeLightStateFocus}`,
|
|
6697
|
+
outlineOffset: '2px',
|
|
6698
|
+
},
|
|
6699
|
+
[`&(${slottedAnchorSelector}:focus:not(:focus-visible))`]: {
|
|
6700
|
+
outlineColor: 'transparent',
|
|
6701
|
+
},
|
|
6702
|
+
}),
|
|
6703
|
+
},
|
|
6704
|
+
}),
|
|
6705
|
+
},
|
|
6706
|
+
...(!hasSlottedAnchor && {
|
|
6707
|
+
'link-overlay': {
|
|
6708
|
+
position: 'absolute',
|
|
6709
|
+
...getInsetJssStyle(),
|
|
6710
|
+
...getFocusStyle({ borderRadius: 'medium' }),
|
|
6711
|
+
},
|
|
6712
|
+
}),
|
|
6713
|
+
root: {
|
|
6714
|
+
display: 'flex',
|
|
6715
|
+
flexDirection: 'column',
|
|
6716
|
+
aspectRatio: '3 / 4',
|
|
6717
|
+
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
6718
|
+
aspectRatio: ratio.replace(':', ' / '),
|
|
6719
|
+
})),
|
|
6720
|
+
overflow: 'hidden',
|
|
6721
|
+
boxSizing: 'border-box',
|
|
6722
|
+
borderRadius: borderRadiusMedium,
|
|
6723
|
+
padding: spacingFluidSmall,
|
|
6724
|
+
color: primaryColor,
|
|
6725
|
+
backgroundColor: backgroundSurfaceColor,
|
|
6726
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6727
|
+
color: primaryColorDark,
|
|
6728
|
+
backgroundColor: backgroundSurfaceColorDark,
|
|
6729
|
+
}),
|
|
6730
|
+
...hoverMediaQuery({
|
|
6731
|
+
'&:hover .image-container': {
|
|
6732
|
+
transform: 'scale3d(1.05,1.05,1.05)',
|
|
6733
|
+
},
|
|
6734
|
+
}),
|
|
6735
|
+
},
|
|
6736
|
+
header: {
|
|
6737
|
+
display: 'flex',
|
|
6738
|
+
justifyContent: 'space-between',
|
|
6739
|
+
fontSize: fontSizeTextXSmall,
|
|
6740
|
+
[`& slot[name="${headerSlot}"]`]: {
|
|
6741
|
+
display: 'block', // To ensure button positioning when slot is unused
|
|
6742
|
+
},
|
|
6743
|
+
},
|
|
6744
|
+
...(hasLikeButton && {
|
|
6745
|
+
'like-button': {
|
|
6746
|
+
height: 'fit-content',
|
|
6747
|
+
position: 'relative',
|
|
6748
|
+
zIndex: 2,
|
|
6749
|
+
...hoverMediaQuery({
|
|
6750
|
+
'&:hover': {
|
|
6751
|
+
cursor: 'pointer',
|
|
6752
|
+
},
|
|
6753
|
+
}),
|
|
6754
|
+
},
|
|
6755
|
+
}),
|
|
6756
|
+
'text-container': {
|
|
6757
|
+
display: 'flex',
|
|
6758
|
+
justifyContent: 'center',
|
|
6759
|
+
flexDirection: 'column',
|
|
6760
|
+
margin: 'auto',
|
|
6761
|
+
},
|
|
6762
|
+
text: {
|
|
6763
|
+
textAlign: 'center',
|
|
6764
|
+
margin: 0,
|
|
6765
|
+
'&__heading': {
|
|
6766
|
+
...headingSmallStyle,
|
|
6767
|
+
paddingBottom: '2px',
|
|
6768
|
+
minHeight: `calc(${fontLineHeight} * 2)`,
|
|
6769
|
+
display: 'flex',
|
|
6770
|
+
justifyContent: 'center',
|
|
6771
|
+
alignItems: 'flex-end',
|
|
6772
|
+
},
|
|
6773
|
+
'&__price, &__description': {
|
|
6774
|
+
fontWeight: fontWeightRegular,
|
|
6775
|
+
},
|
|
6776
|
+
'&__price': {
|
|
6777
|
+
...textXSmallStyle,
|
|
6778
|
+
},
|
|
6779
|
+
'&__description': {
|
|
6780
|
+
...textXXSmallStyle,
|
|
6781
|
+
color: contrastHighColor,
|
|
6782
|
+
...prefersColorSchemeDarkMediaQuery(theme, {
|
|
6783
|
+
color: contrastHighColorDark,
|
|
6784
|
+
}),
|
|
6785
|
+
},
|
|
6786
|
+
},
|
|
6787
|
+
'image-container': {
|
|
6788
|
+
margin: `${spacingFluidSmall} auto ${spacingFluidXSmall} auto`,
|
|
6789
|
+
padding: 0,
|
|
6790
|
+
[getMediaQueryMin('s')]: {
|
|
6791
|
+
padding: `0 ${spacingFluidMedium}`,
|
|
6792
|
+
},
|
|
6793
|
+
overflow: 'hidden',
|
|
6794
|
+
aspectRatio: '8 / 9',
|
|
6795
|
+
transition: getTransition('transform', 'moderate'),
|
|
6796
|
+
maxHeight: '100%',
|
|
6797
|
+
},
|
|
6798
|
+
});
|
|
6799
|
+
};
|
|
6800
|
+
|
|
6630
6801
|
const getComponentCss$C = (...args) => {
|
|
6631
6802
|
return getCss({
|
|
6632
6803
|
...getButtonLinkTileStyles(...args),
|
|
@@ -9899,39 +10070,40 @@ const getComponentCss = (size, theme) => {
|
|
|
9899
10070
|
});
|
|
9900
10071
|
};
|
|
9901
10072
|
|
|
9902
|
-
exports.getAccordionCss = getComponentCss$
|
|
9903
|
-
exports.getBannerCss = getComponentCss$
|
|
9904
|
-
exports.getButtonCss = getComponentCss$
|
|
9905
|
-
exports.getButtonGroupCss = getComponentCss$
|
|
9906
|
-
exports.getButtonPureCss = getComponentCss
|
|
9907
|
-
exports.getButtonTileCss = getComponentCss
|
|
9908
|
-
exports.getCarouselCss = getComponentCss$
|
|
9909
|
-
exports.getCheckboxWrapperCss = getComponentCss$
|
|
9910
|
-
exports.getContentWrapperCss = getComponentCss$
|
|
9911
|
-
exports.getCrestCss = getComponentCss$
|
|
9912
|
-
exports.getDisplayCss = getComponentCss$
|
|
9913
|
-
exports.getDividerCss = getComponentCss$
|
|
9914
|
-
exports.getFieldsetCss = getComponentCss$
|
|
9915
|
-
exports.getFieldsetWrapperCss = getComponentCss$
|
|
9916
|
-
exports.getFlexCss = getComponentCss$
|
|
9917
|
-
exports.getFlexItemCss = getComponentCss$
|
|
9918
|
-
exports.getFlyoutCss = getComponentCss$
|
|
9919
|
-
exports.getFlyoutNavigationCss = getComponentCss$
|
|
9920
|
-
exports.getFlyoutNavigationItemCss = getComponentCss$
|
|
10073
|
+
exports.getAccordionCss = getComponentCss$13;
|
|
10074
|
+
exports.getBannerCss = getComponentCss$12;
|
|
10075
|
+
exports.getButtonCss = getComponentCss$_;
|
|
10076
|
+
exports.getButtonGroupCss = getComponentCss$11;
|
|
10077
|
+
exports.getButtonPureCss = getComponentCss$10;
|
|
10078
|
+
exports.getButtonTileCss = getComponentCss$$;
|
|
10079
|
+
exports.getCarouselCss = getComponentCss$Z;
|
|
10080
|
+
exports.getCheckboxWrapperCss = getComponentCss$Y;
|
|
10081
|
+
exports.getContentWrapperCss = getComponentCss$X;
|
|
10082
|
+
exports.getCrestCss = getComponentCss$W;
|
|
10083
|
+
exports.getDisplayCss = getComponentCss$V;
|
|
10084
|
+
exports.getDividerCss = getComponentCss$U;
|
|
10085
|
+
exports.getFieldsetCss = getComponentCss$S;
|
|
10086
|
+
exports.getFieldsetWrapperCss = getComponentCss$T;
|
|
10087
|
+
exports.getFlexCss = getComponentCss$Q;
|
|
10088
|
+
exports.getFlexItemCss = getComponentCss$R;
|
|
10089
|
+
exports.getFlyoutCss = getComponentCss$N;
|
|
10090
|
+
exports.getFlyoutNavigationCss = getComponentCss$P;
|
|
10091
|
+
exports.getFlyoutNavigationItemCss = getComponentCss$O;
|
|
9921
10092
|
exports.getFunctionalComponentLabelStyles = getFunctionalComponentLabelStyles;
|
|
9922
10093
|
exports.getFunctionalComponentRequiredStyles = getFunctionalComponentRequiredStyles;
|
|
9923
10094
|
exports.getFunctionalComponentStateMessageStyles = getFunctionalComponentStateMessageStyles;
|
|
9924
|
-
exports.getGridCss = getComponentCss$
|
|
9925
|
-
exports.getGridItemCss = getComponentCss$
|
|
9926
|
-
exports.getHeadingCss = getComponentCss$
|
|
9927
|
-
exports.getHeadlineCss = getComponentCss$
|
|
9928
|
-
exports.getIconCss = getComponentCss$
|
|
9929
|
-
exports.getInlineNotificationCss = getComponentCss$
|
|
9930
|
-
exports.getLinkCss = getComponentCss$
|
|
9931
|
-
exports.getLinkPureCss = getComponentCss$
|
|
9932
|
-
exports.getLinkSocialCss = getComponentCss$
|
|
10095
|
+
exports.getGridCss = getComponentCss$L;
|
|
10096
|
+
exports.getGridItemCss = getComponentCss$M;
|
|
10097
|
+
exports.getHeadingCss = getComponentCss$K;
|
|
10098
|
+
exports.getHeadlineCss = getComponentCss$J;
|
|
10099
|
+
exports.getIconCss = getComponentCss$I;
|
|
10100
|
+
exports.getInlineNotificationCss = getComponentCss$H;
|
|
10101
|
+
exports.getLinkCss = getComponentCss$F;
|
|
10102
|
+
exports.getLinkPureCss = getComponentCss$G;
|
|
10103
|
+
exports.getLinkSocialCss = getComponentCss$F;
|
|
9933
10104
|
exports.getLinkTileCss = getComponentCss$C;
|
|
9934
|
-
exports.getLinkTileModelSignatureCss = getComponentCss$
|
|
10105
|
+
exports.getLinkTileModelSignatureCss = getComponentCss$E;
|
|
10106
|
+
exports.getLinkTileProductCss = getComponentCss$D;
|
|
9935
10107
|
exports.getMarqueCss = getComponentCss$B;
|
|
9936
10108
|
exports.getModalCss = getComponentCss$A;
|
|
9937
10109
|
exports.getModelSignatureCss = getComponentCss$z;
|
|
@@ -3566,6 +3566,8 @@ const hasDocument = typeof document !== 'undefined';
|
|
|
3566
3566
|
const isThemeDark = (theme) => {
|
|
3567
3567
|
return theme === 'dark';
|
|
3568
3568
|
};
|
|
3569
|
+
const headerSlot = 'header';
|
|
3570
|
+
const anchorSlot = 'anchor';
|
|
3569
3571
|
|
|
3570
3572
|
const formatObjectOutput = (value) => {
|
|
3571
3573
|
return JSON.stringify(value)
|
|
@@ -3918,6 +3920,7 @@ exports.HEADING_TAGS = HEADING_TAGS;
|
|
|
3918
3920
|
exports.HEADLINE_TAGS = HEADLINE_TAGS;
|
|
3919
3921
|
exports.TEXT_TAGS = TEXT_TAGS;
|
|
3920
3922
|
exports._hasShowPickerSupport = _hasShowPickerSupport;
|
|
3923
|
+
exports.anchorSlot = anchorSlot;
|
|
3921
3924
|
exports.attributeMutationMap = attributeMutationMap;
|
|
3922
3925
|
exports.buildCrestImgSrc = buildCrestImgSrc;
|
|
3923
3926
|
exports.buildCrestSrcSet = buildCrestSrcSet;
|
|
@@ -3959,6 +3962,7 @@ exports.hasLocateAction = hasLocateAction;
|
|
|
3959
3962
|
exports.hasSpecificSlottedTag = hasSpecificSlottedTag;
|
|
3960
3963
|
exports.hasVisibleIcon = hasVisibleIcon;
|
|
3961
3964
|
exports.hasWindow = hasWindow;
|
|
3965
|
+
exports.headerSlot = headerSlot;
|
|
3962
3966
|
exports.isCustomDropdown = isCustomDropdown;
|
|
3963
3967
|
exports.isDisabledOrLoading = isDisabledOrLoading;
|
|
3964
3968
|
exports.isInfinitePagination = isInfinitePagination;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
var hooks = require('../../hooks.cjs');
|
|
7
|
+
var utils = require('../../utils.cjs');
|
|
8
|
+
var linkTileProduct = require('../dsr-components/link-tile-product.cjs');
|
|
9
|
+
|
|
10
|
+
const PLinkTileProduct = react.forwardRef(({ aspectRatio = '3:4', description, heading, href, likeButton = true, liked = false, onLike, price, rel, target = '_self', theme, className, children, ...rest }, ref) => {
|
|
11
|
+
const elementRef = react.useRef();
|
|
12
|
+
hooks.useEventCallback(elementRef, 'like', onLike);
|
|
13
|
+
const WebComponentTag = hooks.usePrefix('p-link-tile-product');
|
|
14
|
+
const propsToSync = [aspectRatio, description, heading, href, likeButton, liked, price, rel, target, theme || hooks.useTheme()];
|
|
15
|
+
hooks.useBrowserLayoutEffect(() => {
|
|
16
|
+
const { current } = elementRef;
|
|
17
|
+
['aspectRatio', 'description', 'heading', 'href', 'likeButton', 'liked', 'price', 'rel', 'target', 'theme'].forEach((propName, i) => (current[propName] = propsToSync[i]));
|
|
18
|
+
}, propsToSync);
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
if (!process.browser) {
|
|
21
|
+
className = className ? `${className} ssr` : 'ssr';
|
|
22
|
+
}
|
|
23
|
+
const props = {
|
|
24
|
+
...rest,
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
...(!process.browser
|
|
27
|
+
? {
|
|
28
|
+
children: (jsxRuntime.jsx(linkTileProduct.DSRLinkTileProduct, { aspectRatio, description, heading, href, likeButton, liked, price, rel, target, theme: theme || hooks.useTheme(), children })),
|
|
29
|
+
}
|
|
30
|
+
: {
|
|
31
|
+
children,
|
|
32
|
+
suppressHydrationWarning: true,
|
|
33
|
+
}),
|
|
34
|
+
class: hooks.useMergedClass(elementRef, className),
|
|
35
|
+
ref: utils.syncRef(elementRef, ref)
|
|
36
|
+
};
|
|
37
|
+
return jsxRuntime.jsx(WebComponentTag, { ...props });
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
exports.PLinkTileProduct = PLinkTileProduct;
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs
CHANGED
|
@@ -31,6 +31,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs
CHANGED
|
@@ -31,6 +31,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs
CHANGED
|
@@ -31,6 +31,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs
CHANGED
|
@@ -32,6 +32,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
32
32
|
require('../components/link-social.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile.wrapper.cjs');
|
|
34
34
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
35
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
35
36
|
require('../components/marque.wrapper.cjs');
|
|
36
37
|
require('../components/modal.wrapper.cjs');
|
|
37
38
|
require('../components/model-signature.wrapper.cjs');
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs
CHANGED
|
@@ -31,6 +31,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|
package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs
CHANGED
|
@@ -31,6 +31,7 @@ var linkPure_wrapper = require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|
|
@@ -31,6 +31,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|
|
@@ -31,6 +31,7 @@ require('../components/link-pure.wrapper.cjs');
|
|
|
31
31
|
require('../components/link-social.wrapper.cjs');
|
|
32
32
|
require('../components/link-tile.wrapper.cjs');
|
|
33
33
|
require('../components/link-tile-model-signature.wrapper.cjs');
|
|
34
|
+
require('../components/link-tile-product.wrapper.cjs');
|
|
34
35
|
require('../components/marque.wrapper.cjs');
|
|
35
36
|
require('../components/modal.wrapper.cjs');
|
|
36
37
|
require('../components/model-signature.wrapper.cjs');
|