@porsche-design-system/components-react 4.0.0-beta.4 → 4.0.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 +72 -4
- package/cjs/lib/components/banner.wrapper.cjs +3 -3
- package/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/esm/lib/components/banner.wrapper.mjs +3 -3
- package/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/esm/lib/components/button.wrapper.d.ts +14 -0
- package/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/esm/lib/components/display.wrapper.d.ts +8 -0
- package/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/esm/lib/components/link.wrapper.d.ts +10 -0
- package/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
- package/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/esm/lib/components/select.wrapper.d.ts +20 -0
- package/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/esm/lib/components/table.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +14 -0
- package/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/esm/lib/types.d.ts +5 -0
- package/global-styles/cn/index.css +1 -0
- package/global-styles/index.css +1 -0
- package/global-styles/variables.css +1 -0
- package/package.json +4 -2
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +723 -775
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +16 -77
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.cjs +4 -5
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +11 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +4 -6
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.cjs +1 -4
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +723 -775
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +15 -76
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/banner.wrapper.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +11 -6
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +5 -7
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/state-message.mjs +2 -5
- package/ssr/esm/lib/components/accordion.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/banner.wrapper.d.ts +37 -15
- package/ssr/esm/lib/components/button-pure.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/button-tile.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/button.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/carousel.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/checkbox.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/crest.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/display.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/divider.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown-item.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/drilldown-link.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/drilldown.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/fieldset.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/flag.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/flyout.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/heading.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/icon.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/inline-notification.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/input-date.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-email.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-month.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-number.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-password.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-search.wrapper.d.ts +28 -0
- package/ssr/esm/lib/components/input-tel.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-text.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-time.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/input-url.wrapper.d.ts +26 -0
- package/ssr/esm/lib/components/input-week.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/link-pure.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/link-tile-product.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/link-tile.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/link.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/modal.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/model-signature.wrapper.d.ts +12 -0
- package/ssr/esm/lib/components/multi-select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/multi-select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/optgroup.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/pagination.wrapper.d.ts +10 -0
- package/ssr/esm/lib/components/pin-code.wrapper.d.ts +24 -0
- package/ssr/esm/lib/components/popover.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/radio-group.wrapper.d.ts +22 -0
- package/ssr/esm/lib/components/scroller.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/segmented-control-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/segmented-control.wrapper.d.ts +18 -0
- package/ssr/esm/lib/components/select-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/select.wrapper.d.ts +20 -0
- package/ssr/esm/lib/components/sheet.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/spinner.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/stepper-horizontal-item.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/stepper-horizontal.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/switch.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/table-cell.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/table-head-cell.wrapper.d.ts +4 -0
- package/ssr/esm/lib/components/table.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs-bar.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/tabs.wrapper.d.ts +8 -0
- package/ssr/esm/lib/components/tag-dismissible.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/tag.wrapper.d.ts +6 -0
- package/ssr/esm/lib/components/text-list.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +14 -0
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +30 -0
- package/ssr/esm/lib/components/wordmark.wrapper.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/banner.d.ts +2 -2
- package/ssr/esm/lib/types.d.ts +5 -0
- package/tailwindcss/index.css +73 -14
|
@@ -1,358 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const blurFrosted$1 = 'blur(32px)';
|
|
4
|
-
|
|
5
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use backdropFilter: blurFrosted instead */
|
|
6
|
-
const frostedGlassStyle = {
|
|
7
|
-
WebkitBackdropFilter: blurFrosted$1,
|
|
8
|
-
backdropFilter: blurFrosted$1,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 2px instead. */
|
|
12
|
-
const borderWidthBase = '2px';
|
|
13
|
-
|
|
14
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 1px instead. */
|
|
15
|
-
const borderWidthThin = '1px';
|
|
16
|
-
|
|
17
|
-
const fontPorscheNext$1 = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
18
|
-
|
|
19
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
|
|
20
|
-
const fontFamily = fontPorscheNext$1;
|
|
21
|
-
|
|
22
|
-
const leadingNormal$1 = 'calc(6px + 2.125ex)';
|
|
23
|
-
|
|
24
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
|
|
25
|
-
const fontLineHeight = leadingNormal$1;
|
|
26
|
-
|
|
27
|
-
const typescaleLg$1 = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
|
|
28
|
-
|
|
29
|
-
const typescaleMd$1 = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
|
|
30
|
-
|
|
31
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
|
|
32
|
-
const fontSizeHeadingMedium = typescaleMd$1;
|
|
33
|
-
|
|
34
|
-
const typescaleSm$1 = '1rem';
|
|
35
|
-
|
|
36
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
37
|
-
const fontSizeHeadingSmall = typescaleSm$1;
|
|
38
|
-
|
|
39
|
-
const typescaleXl$1 = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
|
|
40
|
-
|
|
41
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
|
|
42
|
-
const fontSizeHeadingXLarge = typescaleXl$1;
|
|
43
|
-
|
|
44
|
-
const typescale2Xl$1 = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
|
|
45
|
-
|
|
46
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xl instead. */
|
|
47
|
-
const fontSizeHeadingXXLarge = typescale2Xl$1;
|
|
48
|
-
|
|
49
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
|
|
50
|
-
const fontSizeTextLarge = typescaleLg$1;
|
|
51
|
-
|
|
52
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
|
|
53
|
-
const fontSizeTextMedium = typescaleMd$1;
|
|
54
|
-
|
|
55
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
56
|
-
const fontSizeTextSmall = typescaleSm$1;
|
|
57
|
-
|
|
58
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
|
|
59
|
-
const fontSizeTextXLarge = typescaleXl$1;
|
|
60
|
-
|
|
61
|
-
const typescaleXs$2 = '.875rem';
|
|
62
|
-
|
|
63
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
|
|
64
|
-
const fontSizeTextXSmall = typescaleXs$2;
|
|
65
|
-
|
|
66
|
-
const typescale2Xs$1 = '.75rem';
|
|
67
|
-
|
|
68
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xs instead. */
|
|
69
|
-
const fontSizeTextXXSmall = typescale2Xs$1;
|
|
70
|
-
|
|
71
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale variables instead. */
|
|
72
|
-
const fontSizeText$1 = {
|
|
73
|
-
xxSmall: fontSizeTextXXSmall,
|
|
74
|
-
xSmall: fontSizeTextXSmall,
|
|
75
|
-
small: fontSizeTextSmall,
|
|
76
|
-
medium: fontSizeTextMedium,
|
|
77
|
-
large: fontSizeTextLarge,
|
|
78
|
-
xLarge: fontSizeTextXLarge,
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
82
|
-
const fontStyleNormal = 'normal';
|
|
83
|
-
|
|
84
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
85
|
-
const fontVariant = 'normal';
|
|
86
|
-
|
|
87
|
-
const fontWeightNormal$1 = 400;
|
|
88
|
-
|
|
89
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
|
|
90
|
-
const fontWeightRegular = fontWeightNormal$1;
|
|
91
|
-
|
|
92
|
-
const fontWeightSemibold$1 = 600;
|
|
93
|
-
|
|
94
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightSemibold instead. */
|
|
95
|
-
const fontWeightSemiBold = fontWeightSemibold$1;
|
|
96
|
-
|
|
97
|
-
const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
|
|
98
|
-
'hsla(0,0%,0%,.8) 8.1%,' +
|
|
99
|
-
'hsla(0,0%,0%,.8) 15.5%,' +
|
|
100
|
-
'hsla(0,0%,0%,.8) 22.5%,' +
|
|
101
|
-
'hsla(0,0%,0%,.78) 29%,' +
|
|
102
|
-
'hsla(0,0%,0%,.73) 35.3%,' +
|
|
103
|
-
'hsla(0,0%,0%,.67) 41.2%,' +
|
|
104
|
-
'hsla(0,0%,0%,.6) 47.1%,' +
|
|
105
|
-
'hsla(0,0%,0%,.52) 52.9%,' +
|
|
106
|
-
'hsla(0,0%,0%,.44) 58.8%,' +
|
|
107
|
-
'hsla(0,0%,0%,.33) 64.7%,' +
|
|
108
|
-
'hsla(0,0%,0%,.22) 71%,' +
|
|
109
|
-
'hsla(0,0%,0%,.12) 77.5%,' +
|
|
110
|
-
'hsla(0,0%,0%,.05) 84.5%,' +
|
|
111
|
-
'hsla(0,0%,0%,.011) 91.9%,' +
|
|
112
|
-
'hsla(0,0%,0%,0) 100%';
|
|
113
|
-
|
|
114
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
|
|
115
|
-
const gradientToBottomStyle = {
|
|
116
|
-
background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
/** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
|
|
120
|
-
const gradientToTopStyle = {
|
|
121
|
-
background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const breakpointBase = 0;
|
|
125
|
-
|
|
126
|
-
const breakpointLg = 1300;
|
|
127
|
-
|
|
128
|
-
const breakpointL = breakpointLg;
|
|
129
|
-
|
|
130
|
-
const breakpointMd = 1000;
|
|
131
|
-
|
|
132
|
-
const breakpointM = breakpointMd;
|
|
133
|
-
|
|
134
|
-
const breakpointSm = 760;
|
|
135
|
-
|
|
136
|
-
const breakpointS = breakpointSm;
|
|
137
|
-
|
|
138
|
-
const breakpointXl = 1760;
|
|
139
|
-
|
|
140
|
-
const breakpointXL = breakpointXl;
|
|
141
|
-
|
|
142
|
-
const breakpointXs = 480;
|
|
143
|
-
|
|
144
|
-
const breakpointXS = breakpointXs;
|
|
145
|
-
|
|
146
|
-
const breakpoint2Xl = 1920;
|
|
147
|
-
|
|
148
|
-
const breakpointXXL = breakpoint2Xl;
|
|
149
|
-
|
|
150
|
-
const breakpoint = {
|
|
151
|
-
base: breakpointBase,
|
|
152
|
-
xs: breakpointXS,
|
|
153
|
-
s: breakpointS,
|
|
154
|
-
m: breakpointM,
|
|
155
|
-
l: breakpointL,
|
|
156
|
-
xl: breakpointXL,
|
|
157
|
-
xxl: breakpointXXL,
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
function getMediaQueryMin(min) {
|
|
161
|
-
return `@media(min-width:${breakpoint[min]}px)`;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
165
|
-
|
|
166
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
|
|
167
|
-
const spacingFluidMedium = spacingFluidMd;
|
|
168
|
-
|
|
169
|
-
const gridGap = spacingFluidMedium;
|
|
170
|
-
|
|
171
|
-
const _gridWidthMax = '2560px';
|
|
172
|
-
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
173
|
-
const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
|
|
174
|
-
const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
|
|
175
|
-
const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
|
|
176
|
-
|
|
177
|
-
const columnMap = {
|
|
178
|
-
narrow: 4,
|
|
179
|
-
basic: 2,
|
|
180
|
-
extended: 1,
|
|
181
|
-
};
|
|
182
|
-
const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
|
|
183
|
-
const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
|
|
184
|
-
const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
|
|
185
|
-
const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
|
|
186
|
-
const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
|
|
187
|
-
|
|
188
|
-
const gridFullOffset = _gridPadding;
|
|
189
|
-
|
|
190
|
-
const gridWideOffsetBase = _gridSafeZoneBase;
|
|
191
|
-
|
|
192
|
-
const gridWideOffsetS = _gridSafeZoneS;
|
|
193
|
-
|
|
194
|
-
const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
|
|
195
|
-
|
|
196
|
-
const gridWideOffset = {
|
|
197
|
-
base: gridWideOffsetBase,
|
|
198
|
-
s: gridWideOffsetS,
|
|
199
|
-
xxl: gridWideOffsetXXL,
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
const gridExtendedOffsetBase = _gridSafeZoneBase;
|
|
203
|
-
|
|
204
|
-
const gridExtendedOffsetS = _getGridOffsetS('extended');
|
|
205
|
-
|
|
206
|
-
const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
|
|
207
|
-
|
|
208
|
-
const gridExtendedOffset = {
|
|
209
|
-
base: gridExtendedOffsetBase,
|
|
210
|
-
s: gridExtendedOffsetS,
|
|
211
|
-
xxl: gridExtendedOffsetXXL,
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
const gridBasicOffsetBase = _gridSafeZoneBase;
|
|
215
|
-
|
|
216
|
-
const gridBasicOffsetS = _getGridOffsetS('basic');
|
|
217
|
-
|
|
218
|
-
const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
|
|
219
|
-
|
|
220
|
-
const gridBasicOffset = {
|
|
221
|
-
base: gridBasicOffsetBase,
|
|
222
|
-
s: gridBasicOffsetS,
|
|
223
|
-
xxl: gridBasicOffsetXXL,
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
227
|
-
|
|
228
|
-
function getMediaQueryMax(max) {
|
|
229
|
-
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
const durationLg = '.6s';
|
|
233
|
-
|
|
234
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationLg instead. */
|
|
235
|
-
const motionDurationLong = durationLg;
|
|
236
|
-
|
|
237
|
-
const durationMd$1 = '.4s';
|
|
238
|
-
|
|
239
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
|
|
240
|
-
const motionDurationModerate = durationMd$1;
|
|
241
|
-
|
|
242
|
-
const durationSm$1 = '.25s';
|
|
243
|
-
|
|
244
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationSm instead. */
|
|
245
|
-
const motionDurationShort = durationSm$1;
|
|
246
|
-
|
|
247
|
-
const durationXl$1 = '1.2s';
|
|
248
|
-
|
|
249
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use durationXl instead. */
|
|
250
|
-
const motionDurationVeryLong = durationXl$1;
|
|
251
|
-
|
|
252
|
-
const easeInOut = 'cubic-bezier(.25,.1,.25,1)';
|
|
253
|
-
|
|
254
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use easeInOut instead. */
|
|
255
|
-
const motionEasingBase = easeInOut;
|
|
256
|
-
|
|
257
|
-
const easeIn = 'cubic-bezier(0,0,.2,1)';
|
|
258
|
-
|
|
259
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
|
|
260
|
-
const motionEasingIn = easeIn;
|
|
261
|
-
|
|
262
|
-
const easeOut = 'cubic-bezier(.4,0,.5,1)';
|
|
263
|
-
|
|
264
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
|
|
265
|
-
const motionEasingOut = easeOut;
|
|
266
|
-
|
|
267
|
-
const shadowLg = '0px 8px 40px rgba(0,0,0,.16)';
|
|
268
|
-
|
|
269
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use boxShadow: shadowLg instead. */
|
|
270
|
-
const dropShadowHighStyle = {
|
|
271
|
-
boxShadow: shadowLg,
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
const spacingFluidLg = 'clamp(32px, 2.75vw + 23px, 76px)';
|
|
275
|
-
|
|
276
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidLg instead. */
|
|
277
|
-
const spacingFluidLarge = spacingFluidLg;
|
|
278
|
-
|
|
279
|
-
const spacingFluidSm = 'clamp(8px, 0.5vw + 6px, 16px)';
|
|
280
|
-
|
|
281
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidSm instead. */
|
|
282
|
-
const spacingFluidSmall = spacingFluidSm;
|
|
283
|
-
|
|
284
|
-
const spacingFluidXs = 'clamp(4px, 0.25vw + 3px, 8px)';
|
|
285
|
-
|
|
286
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidXs instead. */
|
|
287
|
-
const spacingFluidXSmall = spacingFluidXs;
|
|
288
|
-
|
|
289
|
-
const spacingStaticMd$1 = '16px';
|
|
290
|
-
|
|
291
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticMd instead. */
|
|
292
|
-
const spacingStaticMedium = spacingStaticMd$1;
|
|
293
|
-
|
|
294
|
-
const spacingStaticSm$2 = '8px';
|
|
295
|
-
|
|
296
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticSm instead. */
|
|
297
|
-
const spacingStaticSmall = spacingStaticSm$2;
|
|
298
|
-
|
|
299
|
-
const spacingStaticXs$3 = '4px';
|
|
300
|
-
|
|
301
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticXs instead. */
|
|
302
|
-
const spacingStaticXSmall = spacingStaticXs$3;
|
|
303
|
-
|
|
304
|
-
const spacingStaticXs$2 = spacingStaticXs$3;
|
|
305
|
-
|
|
306
|
-
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
307
|
-
const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
308
|
-
|
|
309
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingSm instead. */
|
|
310
|
-
const headingSmallStyle = {
|
|
311
|
-
font: `${_headingFontPartA}${fontSizeHeadingSmall}${_headingFontPartB}`,
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingMd instead. */
|
|
315
|
-
const headingMediumStyle = {
|
|
316
|
-
font: `${_headingFontPartA}${fontSizeHeadingMedium}${_headingFontPartB}`,
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingXl instead. */
|
|
320
|
-
const headingXLargeStyle = {
|
|
321
|
-
font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeading2Xl instead. */
|
|
325
|
-
const headingXXLargeStyle = {
|
|
326
|
-
font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
330
|
-
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
331
|
-
|
|
332
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseText2Xs instead. */
|
|
333
|
-
const textXXSmallStyle = {
|
|
334
|
-
font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
|
|
338
|
-
const textXSmallStyle = {
|
|
339
|
-
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
|
|
343
|
-
const textSmallStyle = {
|
|
344
|
-
font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextMd instead. */
|
|
348
|
-
const textMediumStyle = {
|
|
349
|
-
font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
const proseTextSmStyle = {
|
|
353
|
-
font: `normal normal ${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
354
|
-
};
|
|
355
|
-
|
|
356
3
|
const alphaDisabled = 0.4;
|
|
357
4
|
|
|
358
5
|
const blurFrosted = 'var(--p-blur-frosted)';
|
|
@@ -435,9 +82,9 @@ const colorWarningFrosted = 'var(--p-color-warning-frosted)';
|
|
|
435
82
|
|
|
436
83
|
const colorWarningMedium = 'var(--p-color-warning-medium)';
|
|
437
84
|
|
|
438
|
-
const fontPorscheNext = 'var(--p-font-porsche-next)';
|
|
85
|
+
const fontPorscheNext$1 = 'var(--p-font-porsche-next)';
|
|
439
86
|
|
|
440
|
-
const leadingNormal = 'var(--p-leading-normal)';
|
|
87
|
+
const leadingNormal$1 = 'var(--p-leading-normal)';
|
|
441
88
|
|
|
442
89
|
const typescale2Xl = 'var(--p-typescale-2xl)';
|
|
443
90
|
|
|
@@ -453,7 +100,7 @@ const typescaleLg = 'var(--p-typescale-lg)';
|
|
|
453
100
|
|
|
454
101
|
const typescaleMd = 'var(--p-typescale-md)';
|
|
455
102
|
|
|
456
|
-
const typescaleSm = 'var(--p-typescale-sm)';
|
|
103
|
+
const typescaleSm$1 = 'var(--p-typescale-sm)';
|
|
457
104
|
|
|
458
105
|
const typescaleXl = 'var(--p-typescale-xl)';
|
|
459
106
|
|
|
@@ -461,16 +108,34 @@ const typescaleXs$1 = 'var(--p-typescale-xs)';
|
|
|
461
108
|
|
|
462
109
|
const fontWeightBold = 'var(--p-font-weight-bold)';
|
|
463
110
|
|
|
464
|
-
const fontWeightNormal = 'var(--p-font-weight-normal)';
|
|
111
|
+
const fontWeightNormal$1 = 'var(--p-font-weight-normal)';
|
|
465
112
|
|
|
466
113
|
const fontWeightSemibold = 'var(--p-font-weight-semibold)';
|
|
467
114
|
|
|
468
|
-
const
|
|
115
|
+
const durationLg = 'var(--p-duration-lg)';
|
|
116
|
+
|
|
117
|
+
const durationMd$1 = 'var(--p-duration-md)';
|
|
469
118
|
|
|
470
119
|
const durationSm = 'var(--p-duration-sm)';
|
|
471
120
|
|
|
472
121
|
const durationXl = 'var(--p-duration-xl)';
|
|
473
122
|
|
|
123
|
+
const easeIn$1 = 'var(--p-ease-in)';
|
|
124
|
+
|
|
125
|
+
const easeInOut = 'var(--p-ease-in-out)';
|
|
126
|
+
|
|
127
|
+
const easeOut$1 = 'var(--p-ease-out)';
|
|
128
|
+
|
|
129
|
+
const shadowLg = 'var(--p-shadow-lg)';
|
|
130
|
+
|
|
131
|
+
const spacingFluidLg = 'var(--p-spacing-fluid-lg)';
|
|
132
|
+
|
|
133
|
+
const spacingFluidMd$1 = 'var(--p-spacing-fluid-md)';
|
|
134
|
+
|
|
135
|
+
const spacingFluidSm = 'var(--p-spacing-fluid-sm)';
|
|
136
|
+
|
|
137
|
+
const spacingFluidXs = 'var(--p-spacing-fluid-xs)';
|
|
138
|
+
|
|
474
139
|
const spacingStaticMd = 'var(--p-spacing-static-md)';
|
|
475
140
|
|
|
476
141
|
const spacingStaticSm$1 = 'var(--p-spacing-static-sm)';
|
|
@@ -482,20 +147,17 @@ const forcedColorsMediaQuery = (style) => {
|
|
|
482
147
|
};
|
|
483
148
|
|
|
484
149
|
const motionDurationMap = {
|
|
485
|
-
short:
|
|
486
|
-
moderate:
|
|
487
|
-
long:
|
|
488
|
-
veryLong:
|
|
150
|
+
short: durationSm,
|
|
151
|
+
moderate: durationMd$1,
|
|
152
|
+
long: durationLg,
|
|
153
|
+
veryLong: durationXl,
|
|
489
154
|
};
|
|
490
155
|
const motionEasingMap = {
|
|
491
|
-
base:
|
|
492
|
-
in:
|
|
493
|
-
out:
|
|
156
|
+
base: easeInOut,
|
|
157
|
+
in: easeIn$1,
|
|
158
|
+
out: easeOut$1,
|
|
494
159
|
linear: 'linear',
|
|
495
160
|
};
|
|
496
|
-
const dismissButtonJssStyle = {
|
|
497
|
-
'--p-internal-button-scaling': 0.5,
|
|
498
|
-
};
|
|
499
161
|
const cssVariableTransitionDuration = '--p-transition-duration';
|
|
500
162
|
const cssVariableAnimationDuration = '--p-animation-duration';
|
|
501
163
|
const getAnimation = (name, duration = 'short', easing = 'base') => {
|
|
@@ -516,7 +178,7 @@ const addImportantToEachRule = (input) => {
|
|
|
516
178
|
};
|
|
517
179
|
const getFocusBaseStyles = (offset = 2) => {
|
|
518
180
|
return {
|
|
519
|
-
outline:
|
|
181
|
+
outline: `2px solid ${colorFocus}`,
|
|
520
182
|
outlineOffset: `${offset}px`,
|
|
521
183
|
...forcedColorsMediaQuery({
|
|
522
184
|
outlineColor: 'Highlight',
|
|
@@ -584,6 +246,14 @@ const hoverMediaQuery = (style) => {
|
|
|
584
246
|
return { '@media(hover:hover)': style };
|
|
585
247
|
};
|
|
586
248
|
|
|
249
|
+
/**
|
|
250
|
+
* Utility to wrap JSS styles in `@media (pointer: coarse)`,
|
|
251
|
+
* which targets touch devices with an imprecise pointer.
|
|
252
|
+
*/
|
|
253
|
+
const pointerCoarseMediaQuery = (style) => {
|
|
254
|
+
return { '@media(pointer:coarse)': style };
|
|
255
|
+
};
|
|
256
|
+
|
|
587
257
|
function _extends() {
|
|
588
258
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
589
259
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -3759,15 +3429,209 @@ function requireDist () {
|
|
|
3759
3429
|
};
|
|
3760
3430
|
}
|
|
3761
3431
|
|
|
3762
|
-
dist = jssCombineAndSortMQ;
|
|
3763
|
-
return dist;
|
|
3432
|
+
dist = jssCombineAndSortMQ;
|
|
3433
|
+
return dist;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
var distExports = requireDist();
|
|
3437
|
+
var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
3438
|
+
|
|
3439
|
+
const isDisabledOrLoading = (disabled, loading) => {
|
|
3440
|
+
return disabled || loading;
|
|
3441
|
+
};
|
|
3442
|
+
|
|
3443
|
+
const fontPorscheNext = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
3444
|
+
|
|
3445
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
|
|
3446
|
+
const fontFamily = fontPorscheNext;
|
|
3447
|
+
|
|
3448
|
+
const leadingNormal = 'calc(6px + 2.125ex)';
|
|
3449
|
+
|
|
3450
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
|
|
3451
|
+
const fontLineHeight = leadingNormal;
|
|
3452
|
+
|
|
3453
|
+
const typescaleSm = '1rem';
|
|
3454
|
+
|
|
3455
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
3456
|
+
const fontSizeTextSmall = typescaleSm;
|
|
3457
|
+
|
|
3458
|
+
const typescaleXs = '.875rem';
|
|
3459
|
+
|
|
3460
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
|
|
3461
|
+
const fontSizeTextXSmall = typescaleXs;
|
|
3462
|
+
|
|
3463
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
3464
|
+
const fontStyleNormal = 'normal';
|
|
3465
|
+
|
|
3466
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
3467
|
+
const fontVariant = 'normal';
|
|
3468
|
+
|
|
3469
|
+
const fontWeightNormal = 400;
|
|
3470
|
+
|
|
3471
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
|
|
3472
|
+
const fontWeightRegular = fontWeightNormal;
|
|
3473
|
+
|
|
3474
|
+
const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
|
|
3475
|
+
'hsla(0,0%,0%,.8) 8.1%,' +
|
|
3476
|
+
'hsla(0,0%,0%,.8) 15.5%,' +
|
|
3477
|
+
'hsla(0,0%,0%,.8) 22.5%,' +
|
|
3478
|
+
'hsla(0,0%,0%,.78) 29%,' +
|
|
3479
|
+
'hsla(0,0%,0%,.73) 35.3%,' +
|
|
3480
|
+
'hsla(0,0%,0%,.67) 41.2%,' +
|
|
3481
|
+
'hsla(0,0%,0%,.6) 47.1%,' +
|
|
3482
|
+
'hsla(0,0%,0%,.52) 52.9%,' +
|
|
3483
|
+
'hsla(0,0%,0%,.44) 58.8%,' +
|
|
3484
|
+
'hsla(0,0%,0%,.33) 64.7%,' +
|
|
3485
|
+
'hsla(0,0%,0%,.22) 71%,' +
|
|
3486
|
+
'hsla(0,0%,0%,.12) 77.5%,' +
|
|
3487
|
+
'hsla(0,0%,0%,.05) 84.5%,' +
|
|
3488
|
+
'hsla(0,0%,0%,.011) 91.9%,' +
|
|
3489
|
+
'hsla(0,0%,0%,0) 100%';
|
|
3490
|
+
|
|
3491
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
|
|
3492
|
+
const gradientToBottomStyle = {
|
|
3493
|
+
background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
|
|
3494
|
+
};
|
|
3495
|
+
|
|
3496
|
+
/** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
|
|
3497
|
+
const gradientToTopStyle = {
|
|
3498
|
+
background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
const breakpointBase = 0;
|
|
3502
|
+
|
|
3503
|
+
const breakpointLg = 1300;
|
|
3504
|
+
|
|
3505
|
+
const breakpointL = breakpointLg;
|
|
3506
|
+
|
|
3507
|
+
const breakpointMd = 1000;
|
|
3508
|
+
|
|
3509
|
+
const breakpointM = breakpointMd;
|
|
3510
|
+
|
|
3511
|
+
const breakpointSm = 760;
|
|
3512
|
+
|
|
3513
|
+
const breakpointS = breakpointSm;
|
|
3514
|
+
|
|
3515
|
+
const breakpointXl = 1760;
|
|
3516
|
+
|
|
3517
|
+
const breakpointXL = breakpointXl;
|
|
3518
|
+
|
|
3519
|
+
const breakpointXs = 480;
|
|
3520
|
+
|
|
3521
|
+
const breakpointXS = breakpointXs;
|
|
3522
|
+
|
|
3523
|
+
const breakpoint2Xl = 1920;
|
|
3524
|
+
|
|
3525
|
+
const breakpointXXL = breakpoint2Xl;
|
|
3526
|
+
|
|
3527
|
+
const breakpoint = {
|
|
3528
|
+
base: breakpointBase,
|
|
3529
|
+
xs: breakpointXS,
|
|
3530
|
+
s: breakpointS,
|
|
3531
|
+
m: breakpointM,
|
|
3532
|
+
l: breakpointL,
|
|
3533
|
+
xl: breakpointXL,
|
|
3534
|
+
xxl: breakpointXXL,
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
function getMediaQueryMin(min) {
|
|
3538
|
+
return `@media(min-width:${breakpoint[min]}px)`;
|
|
3539
|
+
}
|
|
3540
|
+
|
|
3541
|
+
const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
3542
|
+
|
|
3543
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
|
|
3544
|
+
const spacingFluidMedium = spacingFluidMd;
|
|
3545
|
+
|
|
3546
|
+
const gridGap = spacingFluidMedium;
|
|
3547
|
+
|
|
3548
|
+
const _gridWidthMax = '2560px';
|
|
3549
|
+
// fluid sizing calculated by https://fluidtypography.com/#app-get-started
|
|
3550
|
+
const _gridSafeZoneBase = 'max(22px, 10.625vw - 12px)'; // viewport-width range = 320 - 760px / size range = 22 - 68.75px
|
|
3551
|
+
const _gridSafeZoneS = 'calc(5vw - 16px)'; // viewport-width range = 760 - 1920px / size range = 22(22.75) - 80(79.71)px
|
|
3552
|
+
const _gridSafeZoneXXL = 'min(50vw - 880px, 400px)'; // viewport-width range = 1920 - 2560px / size range = 80(79.71)px - 400(399.71)px
|
|
3553
|
+
|
|
3554
|
+
const columnMap = {
|
|
3555
|
+
narrow: 4,
|
|
3556
|
+
basic: 2,
|
|
3557
|
+
extended: 1,
|
|
3558
|
+
};
|
|
3559
|
+
const gridColumnWidthS = `calc((100vw - ${_gridSafeZoneS} * 2 - ${gridGap} * 15) / 16)`;
|
|
3560
|
+
const gridColumnWidthXXL = `calc((min(100vw, ${_gridWidthMax}) - ${_gridSafeZoneXXL} * 2 - ${gridGap} * 15) / 16)`;
|
|
3561
|
+
const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
|
|
3562
|
+
const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
|
|
3563
|
+
const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
|
|
3564
|
+
|
|
3565
|
+
const gridFullOffset = _gridPadding;
|
|
3566
|
+
|
|
3567
|
+
const gridWideOffsetBase = _gridSafeZoneBase;
|
|
3568
|
+
|
|
3569
|
+
const gridWideOffsetS = _gridSafeZoneS;
|
|
3570
|
+
|
|
3571
|
+
const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
|
|
3572
|
+
|
|
3573
|
+
const gridWideOffset = {
|
|
3574
|
+
base: gridWideOffsetBase,
|
|
3575
|
+
s: gridWideOffsetS,
|
|
3576
|
+
xxl: gridWideOffsetXXL,
|
|
3577
|
+
};
|
|
3578
|
+
|
|
3579
|
+
const gridExtendedOffsetBase = _gridSafeZoneBase;
|
|
3580
|
+
|
|
3581
|
+
const gridExtendedOffsetS = _getGridOffsetS('extended');
|
|
3582
|
+
|
|
3583
|
+
const gridExtendedOffsetXXL = _getGridOffsetXXL('extended');
|
|
3584
|
+
|
|
3585
|
+
const gridExtendedOffset = {
|
|
3586
|
+
base: gridExtendedOffsetBase,
|
|
3587
|
+
s: gridExtendedOffsetS,
|
|
3588
|
+
xxl: gridExtendedOffsetXXL,
|
|
3589
|
+
};
|
|
3590
|
+
|
|
3591
|
+
const gridBasicOffsetBase = _gridSafeZoneBase;
|
|
3592
|
+
|
|
3593
|
+
const gridBasicOffsetS = _getGridOffsetS('basic');
|
|
3594
|
+
|
|
3595
|
+
const gridBasicOffsetXXL = _getGridOffsetXXL('basic');
|
|
3596
|
+
|
|
3597
|
+
const gridBasicOffset = {
|
|
3598
|
+
base: gridBasicOffsetBase,
|
|
3599
|
+
s: gridBasicOffsetS,
|
|
3600
|
+
xxl: gridBasicOffsetXXL,
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
3604
|
+
|
|
3605
|
+
function getMediaQueryMax(max) {
|
|
3606
|
+
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
3764
3607
|
}
|
|
3765
3608
|
|
|
3766
|
-
|
|
3767
|
-
var jssPluginSortMediaQueries = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
3609
|
+
const durationMd = '.4s';
|
|
3768
3610
|
|
|
3769
|
-
|
|
3770
|
-
|
|
3611
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
|
|
3612
|
+
const motionDurationModerate = durationMd;
|
|
3613
|
+
|
|
3614
|
+
const easeIn = 'cubic-bezier(0,0,.2,1)';
|
|
3615
|
+
|
|
3616
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
|
|
3617
|
+
const motionEasingIn = easeIn;
|
|
3618
|
+
|
|
3619
|
+
const easeOut = 'cubic-bezier(.4,0,.5,1)';
|
|
3620
|
+
|
|
3621
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
|
|
3622
|
+
const motionEasingOut = easeOut;
|
|
3623
|
+
|
|
3624
|
+
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
3625
|
+
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
3626
|
+
|
|
3627
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
|
|
3628
|
+
const textXSmallStyle = {
|
|
3629
|
+
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
3630
|
+
};
|
|
3631
|
+
|
|
3632
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
|
|
3633
|
+
const textSmallStyle = {
|
|
3634
|
+
font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
|
|
3771
3635
|
};
|
|
3772
3636
|
|
|
3773
3637
|
const parseJSON = (prop) => {
|
|
@@ -3905,7 +3769,7 @@ const OPTION_LIST_SAFE_ZONE = 6;
|
|
|
3905
3769
|
|
|
3906
3770
|
const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
|
|
3907
3771
|
|
|
3908
|
-
const prefix = `[Porsche Design System v${"4.0.0-
|
|
3772
|
+
const prefix = `[Porsche Design System v${"4.0.0-rc.1"}]` // this part isn't covered by unit tests
|
|
3909
3773
|
;
|
|
3910
3774
|
const consoleError = (...messages) => {
|
|
3911
3775
|
console.error(prefix, ...messages);
|
|
@@ -4044,7 +3908,7 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4044
3908
|
const paddingBlock = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
|
|
4045
3909
|
const paddingInline = `calc(11.2px * (${compactFactor} - 0.64285714) + 12px)`;
|
|
4046
3910
|
const gap = `calc(11.2px * (${compactFactor} - 0.64285714) + 4px)`;
|
|
4047
|
-
const
|
|
3911
|
+
const paddingTop = `calc(28px * (${compactFactor} - 0.64285714) + 6px)`;
|
|
4048
3912
|
const isIconAlignedStart = alignMarker === 'start';
|
|
4049
3913
|
return getCss({
|
|
4050
3914
|
'@global': {
|
|
@@ -4093,12 +3957,12 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4093
3957
|
font: 'inherit',
|
|
4094
3958
|
fontWeight: fontWeightSemibold,
|
|
4095
3959
|
...buildResponsiveStyles(size, (sizeValue) => ({
|
|
4096
|
-
fontSize: sizeValue === 'medium' ? typescaleMd : typescaleSm,
|
|
3960
|
+
fontSize: sizeValue === 'medium' ? typescaleMd : typescaleSm$1,
|
|
4097
3961
|
})),
|
|
4098
3962
|
},
|
|
4099
3963
|
details: {
|
|
4100
3964
|
all: 'unset',
|
|
4101
|
-
font: `${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`, // enables font inheritance for slotted content
|
|
3965
|
+
font: `${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`, // enables font inheritance for slotted content
|
|
4102
3966
|
color: colorPrimary, // enables color inheritance for slotted content
|
|
4103
3967
|
display: 'grid',
|
|
4104
3968
|
gridTemplate: `repeat(2, auto) / ${hasSummaryBefore ? 'auto ' : ''}${isIconAlignedStart ? 'auto minmax(0, 1fr)' : 'minmax(0, 1fr) auto'}${hasSummaryAfter ? ' auto ' : ''}`,
|
|
@@ -4106,7 +3970,10 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4106
3970
|
alignItems: 'center',
|
|
4107
3971
|
padding: `var(${cssVarPaddingBlock}, ${background === 'none' ? '0' : paddingBlock}) var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline})`,
|
|
4108
3972
|
background: backgroundMap$1[background],
|
|
4109
|
-
...(background === 'frosted' &&
|
|
3973
|
+
...(background === 'frosted' && {
|
|
3974
|
+
WebkitBackdropFilter: blurFrosted,
|
|
3975
|
+
backdropFilter: blurFrosted,
|
|
3976
|
+
}),
|
|
4110
3977
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusXl})`,
|
|
4111
3978
|
...forcedColorsMediaQuery({
|
|
4112
3979
|
outline: '1px solid CanvasText',
|
|
@@ -4126,12 +3993,15 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4126
3993
|
gridTemplateRows: '0fr',
|
|
4127
3994
|
visibility: 'hidden', // since `::details-content` and `allow-discrete` transition doesn't work in Safari we need to take care ourselves for visibility state to be a11y compliant
|
|
4128
3995
|
// as soon as all browsers are supporting `allow-discrete` reliable, visibility transition shouldn't be necessary anymore
|
|
4129
|
-
transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationMap[duration]}), ${getTransition('grid-template-rows', duration, easing)}, ${getTransition('
|
|
3996
|
+
transition: `visibility 0s linear var(${cssVariableTransitionDuration}, ${motionDurationMap[duration]}), ${getTransition('grid-template-rows', duration, easing)}, ${getTransition('padding-top', duration, easing)}, ${getTransition('opacity', duration, easing)}`,
|
|
4130
3997
|
},
|
|
4131
3998
|
'&[open]': {
|
|
4132
3999
|
'& > div': {
|
|
4133
4000
|
opacity: 1,
|
|
4134
|
-
|
|
4001
|
+
paddingTop,
|
|
4002
|
+
zIndex: 2, // Ensure details are above summary when using custom padding
|
|
4003
|
+
paddingInline: `var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline})`,
|
|
4004
|
+
marginInline: `calc(-1 * var(${cssVarPaddingInline$1}, ${background === 'none' ? '0' : paddingInline}))`,
|
|
4135
4005
|
// as soon as all browsers support calc-size(auto) to be transitionable, we can remove the grid-template-rows rule and animation
|
|
4136
4006
|
gridTemplateRows: '1fr',
|
|
4137
4007
|
visibility: 'inherit', // since `::details-content` and `allow-discrete` transition doesn't work in Safari we need to take care ourselves for visibility state to be a11y compliant
|
|
@@ -4201,93 +4071,6 @@ const getComponentCss$19 = (alignMarker, background, isCompact, isOpen, isSticky
|
|
|
4201
4071
|
const TOAST_Z_INDEX = 999999;
|
|
4202
4072
|
const BANNER_Z_INDEX = 99;
|
|
4203
4073
|
|
|
4204
|
-
const getBannerPopoverResetStyles = () => {
|
|
4205
|
-
return {
|
|
4206
|
-
position: 'fixed',
|
|
4207
|
-
margin: 0,
|
|
4208
|
-
padding: 0,
|
|
4209
|
-
inset: 'auto', // ua popover reset
|
|
4210
|
-
width: 'auto', // ua popover reset
|
|
4211
|
-
height: 'auto', // ua popover reset
|
|
4212
|
-
maxWidth: '100%', // If component is wrapped in container with maxWidth
|
|
4213
|
-
border: '0', // ua popover reset
|
|
4214
|
-
outline: '0', // ua popover reset
|
|
4215
|
-
overflow: 'visible', // ua popover reset
|
|
4216
|
-
};
|
|
4217
|
-
};
|
|
4218
|
-
|
|
4219
|
-
/**
|
|
4220
|
-
* @css-variable {"name": "--p-banner-position-top", "description": "Position top of banner", "defaultValue": "56px"}
|
|
4221
|
-
* @css-variable {"name": "--p-banner-position-bottom", "description": "Position bottom of banner. Only has an effect below breakpoint 's'.", "defaultValue": "56px"}
|
|
4222
|
-
*/
|
|
4223
|
-
const cssVariableTop = '--p-banner-position-top';
|
|
4224
|
-
const cssVariableBottom = '--p-banner-position-bottom';
|
|
4225
|
-
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4226
|
-
const topBottomFallback = '56px';
|
|
4227
|
-
const getComponentCss$18 = (isOpen) => {
|
|
4228
|
-
const easing = isOpen ? 'in' : 'out';
|
|
4229
|
-
const transition = `visibility 0s linear var(${cssVariableTransitionDuration}, ${isOpen ? '0s' : motionDurationLong}), ${getTransition('transform', 'moderate', easing)}`;
|
|
4230
|
-
const transitionChild = `${getTransition('opacity', 'moderate', easing)}`;
|
|
4231
|
-
return getCss({
|
|
4232
|
-
'@global': {
|
|
4233
|
-
':host': {
|
|
4234
|
-
display: 'block',
|
|
4235
|
-
...addImportantToEachRule({
|
|
4236
|
-
all: 'unset',
|
|
4237
|
-
...getBannerPopoverResetStyles(),
|
|
4238
|
-
inset: `auto ${gridExtendedOffsetBase} var(${cssVariableBottom},${topBottomFallback})`,
|
|
4239
|
-
zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`,
|
|
4240
|
-
borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`, // needed for rounded box-shadow
|
|
4241
|
-
'&::backdrop': {
|
|
4242
|
-
display: 'none',
|
|
4243
|
-
},
|
|
4244
|
-
'& > :first-child': {
|
|
4245
|
-
opacity: 0,
|
|
4246
|
-
...dropShadowHighStyle,
|
|
4247
|
-
...(isOpen
|
|
4248
|
-
? {
|
|
4249
|
-
opacity: 1,
|
|
4250
|
-
}
|
|
4251
|
-
: {
|
|
4252
|
-
opacity: 0,
|
|
4253
|
-
}),
|
|
4254
|
-
transition: transitionChild,
|
|
4255
|
-
// // during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
|
|
4256
|
-
'@supports (transition-behavior: allow-discrete)': {
|
|
4257
|
-
transition: `${transitionChild}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
|
|
4258
|
-
},
|
|
4259
|
-
},
|
|
4260
|
-
...(isOpen
|
|
4261
|
-
? {
|
|
4262
|
-
visibility: 'inherit',
|
|
4263
|
-
pointerEvents: 'inherit',
|
|
4264
|
-
transform: 'translate3d(0,0,0)',
|
|
4265
|
-
}
|
|
4266
|
-
: {
|
|
4267
|
-
visibility: 'hidden',
|
|
4268
|
-
pointerEvents: 'none',
|
|
4269
|
-
transform: `translate3d(0,calc(var(${cssVariableBottom},${topBottomFallback}) + 100%),0)`,
|
|
4270
|
-
}),
|
|
4271
|
-
transition,
|
|
4272
|
-
// during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
|
|
4273
|
-
'@supports (transition-behavior: allow-discrete)': {
|
|
4274
|
-
transition: `${transition}, overlay var(${cssVariableTransitionDuration}, ${motionDurationModerate}) ${motionEasingOut} allow-discrete`,
|
|
4275
|
-
},
|
|
4276
|
-
[getMediaQueryMin('s')]: {
|
|
4277
|
-
inset: `var(${cssVariableTop},${topBottomFallback}) ${gridExtendedOffsetS} auto`,
|
|
4278
|
-
...(!isOpen && { transform: `translate3d(0,calc(-100% - var(${cssVariableTop},${topBottomFallback})),0)` }),
|
|
4279
|
-
},
|
|
4280
|
-
[getMediaQueryMin('xxl')]: {
|
|
4281
|
-
insetInline: gridExtendedOffsetXXL,
|
|
4282
|
-
},
|
|
4283
|
-
...hostHiddenStyles,
|
|
4284
|
-
}),
|
|
4285
|
-
},
|
|
4286
|
-
...preventFoucOfNestedElementsStyles,
|
|
4287
|
-
},
|
|
4288
|
-
});
|
|
4289
|
-
};
|
|
4290
|
-
|
|
4291
4074
|
const colorMap$3 = {
|
|
4292
4075
|
primary: colorPrimary,
|
|
4293
4076
|
'contrast-higher': colorContrastHigher,
|
|
@@ -4302,17 +4085,38 @@ const colorMap$3 = {
|
|
|
4302
4085
|
inherit: 'currentcolor',
|
|
4303
4086
|
};
|
|
4304
4087
|
|
|
4088
|
+
const notificationBackgroundMap = {
|
|
4089
|
+
info: colorInfoFrosted,
|
|
4090
|
+
warning: colorWarningFrosted,
|
|
4091
|
+
success: colorSuccessFrosted,
|
|
4092
|
+
error: colorErrorFrosted,
|
|
4093
|
+
};
|
|
4094
|
+
|
|
4095
|
+
const notificationColorMap = {
|
|
4096
|
+
info: colorInfo,
|
|
4097
|
+
warning: colorWarning,
|
|
4098
|
+
success: colorSuccess,
|
|
4099
|
+
error: colorError,
|
|
4100
|
+
};
|
|
4101
|
+
|
|
4102
|
+
const notificationIconMap = {
|
|
4103
|
+
info: getInlineSVGBackgroundImage('<path d="M12 3c-4.95 0-9 4.05-9 9s4.05 9 9 9 9-4.05 9-9-4.05-9-9-9m-.75 4.5h1.5V9h-1.5zm1.5 8.5h-1.5v-6h1.5z"/>'),
|
|
4104
|
+
warning: getInlineSVGBackgroundImage('<path d="M21.58 18.26 13.3 3.75A1.5 1.5 0 0 0 12 3a1.5 1.5 0 0 0-1.3.75l-8.28 14.5a1.5 1.5 0 0 0 0 1.5c.28.47.76.75 1.3.75h16.56a1.5 1.5 0 0 0 1.3-2.25M13 17.5h-2v-2h2zm-.4-3.5h-1.2L11 8.5h2z"/>'),
|
|
4105
|
+
success: getInlineSVGBackgroundImage('<path d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18m-1.26 12.69-3.8-3.8 1.07-1.05 2.73 2.73 5.25-5.26 1.06 1.06z"/>'),
|
|
4106
|
+
error: getInlineSVGBackgroundImage('<path d="M18 3H6a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h4l2 2 2-2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5 3.5-.4 5.5h-1.2L11 6.5zm-2 7h2v2h-2z"/>'),
|
|
4107
|
+
};
|
|
4108
|
+
|
|
4305
4109
|
const sizeMap$1 = {
|
|
4306
4110
|
'xx-small': typescale2Xs, // deprecated (alias)
|
|
4307
4111
|
'x-small': typescaleXs$1, // deprecated (alias)
|
|
4308
|
-
small: typescaleSm, // deprecated (alias)
|
|
4112
|
+
small: typescaleSm$1, // deprecated (alias)
|
|
4309
4113
|
medium: typescaleMd, // deprecated (alias)
|
|
4310
4114
|
large: typescaleLg, // deprecated (alias)
|
|
4311
4115
|
'x-large': typescaleXl, // deprecated (alias)
|
|
4312
4116
|
'xx-large': typescale2Xl, // deprecated (alias)
|
|
4313
4117
|
'2xs': typescale2Xs,
|
|
4314
4118
|
xs: typescaleXs$1,
|
|
4315
|
-
sm: typescaleSm,
|
|
4119
|
+
sm: typescaleSm$1,
|
|
4316
4120
|
md: typescaleMd,
|
|
4317
4121
|
lg: typescaleLg,
|
|
4318
4122
|
xl: typescaleXl,
|
|
@@ -4324,13 +4128,144 @@ const sizeMap$1 = {
|
|
|
4324
4128
|
};
|
|
4325
4129
|
|
|
4326
4130
|
const weightMap = {
|
|
4327
|
-
regular: fontWeightNormal, // deprecated
|
|
4131
|
+
regular: fontWeightNormal$1, // deprecated
|
|
4328
4132
|
'semi-bold': fontWeightSemibold, // deprecated
|
|
4329
|
-
normal: fontWeightNormal,
|
|
4133
|
+
normal: fontWeightNormal$1,
|
|
4330
4134
|
semibold: fontWeightSemibold,
|
|
4331
4135
|
bold: fontWeightBold,
|
|
4332
4136
|
};
|
|
4333
4137
|
|
|
4138
|
+
/**
|
|
4139
|
+
* @css-variable {"name": "--p-banner-max-w", "description": "Defines the maximum width of the Banner.", "defaultValue": "100ch"}
|
|
4140
|
+
*/
|
|
4141
|
+
const cssVarMaxWidth = '--p-banner-max-w';
|
|
4142
|
+
/**
|
|
4143
|
+
* @css-variable {"name": "--p-banner-top", "description": "Defines the distance from the top of the viewport. Only takes effect when the `position` property is set to `top` (at the respective breakpoint).", "defaultValue": "56px"}
|
|
4144
|
+
*/
|
|
4145
|
+
const cssVarTop = '--p-banner-top';
|
|
4146
|
+
/**
|
|
4147
|
+
* @css-variable {"name": "--p-banner-bottom", "description": "Defines the distance from the bottom of the viewport. Only takes effect when the `position` property is set to `bottom` (at the respective breakpoint).", "defaultValue": "56px"}
|
|
4148
|
+
*/
|
|
4149
|
+
const cssVarBottom = '--p-banner-bottom';
|
|
4150
|
+
/**
|
|
4151
|
+
* @css-variable {"name": "--p-banner-inset-x", "description": "Defines the horizontal offset of the Banner from the edges of the viewport.", "defaultValue": "max(22px, 10.625vw - 12px)"}
|
|
4152
|
+
*/
|
|
4153
|
+
const cssVarInsetX = '--p-banner-inset-x';
|
|
4154
|
+
const cssVarPositionTop = '--p-banner-position-top'; // deprecated (aliased)
|
|
4155
|
+
const cssVarPositionBottom = '--p-banner-position-bottom'; // deprecated (aliased)
|
|
4156
|
+
const topBottomFallback = '56px';
|
|
4157
|
+
const cssVariableZIndex = '--p-internal-banner-z-index';
|
|
4158
|
+
const getComponentCss$18 = (isOpen, position, state, hasDismissButton) => {
|
|
4159
|
+
const duration = isOpen ? 'moderate' : 'short';
|
|
4160
|
+
const easing = isOpen ? 'in' : 'out';
|
|
4161
|
+
const transition = `visibility 0s linear var(${cssVariableTransitionDuration},${isOpen ? '0s' : motionDurationMap[duration]}),${getTransition('transform', duration, easing)}`;
|
|
4162
|
+
return getCss({
|
|
4163
|
+
'@global': {
|
|
4164
|
+
':host': {
|
|
4165
|
+
display: 'contents',
|
|
4166
|
+
...addImportantToEachRule({
|
|
4167
|
+
...hostHiddenStyles,
|
|
4168
|
+
}),
|
|
4169
|
+
},
|
|
4170
|
+
...preventFoucOfNestedElementsStyles,
|
|
4171
|
+
'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
|
|
4172
|
+
all: 'unset',
|
|
4173
|
+
display: 'block',
|
|
4174
|
+
gridArea: '1/2',
|
|
4175
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4176
|
+
color: colorPrimary,
|
|
4177
|
+
},
|
|
4178
|
+
'slot[name="description"],p': {
|
|
4179
|
+
all: 'unset',
|
|
4180
|
+
display: 'block',
|
|
4181
|
+
gridArea: '2/2',
|
|
4182
|
+
marginTop: spacingStaticXs$1,
|
|
4183
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4184
|
+
color: colorPrimary,
|
|
4185
|
+
},
|
|
4186
|
+
'[popover]': {
|
|
4187
|
+
all: 'unset',
|
|
4188
|
+
position: 'fixed',
|
|
4189
|
+
zIndex: `var(${cssVariableZIndex},${BANNER_Z_INDEX})`, // Fallback for browsers lacking `transition-behavior: allow-discrete` — keeps the banner visible during fade-out after leaving the top layer.
|
|
4190
|
+
...buildResponsiveStyles(position, (v) => ({
|
|
4191
|
+
...(v === 'top' && {
|
|
4192
|
+
insetBlock: `var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback})) auto`,
|
|
4193
|
+
...(!isOpen && {
|
|
4194
|
+
transform: `translate3d(-50%,calc(-100% - var(${cssVarTop},var(${cssVarPositionTop},${topBottomFallback}))),0)`,
|
|
4195
|
+
}),
|
|
4196
|
+
}),
|
|
4197
|
+
...(v === 'bottom' && {
|
|
4198
|
+
insetBlock: `auto var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback}))`,
|
|
4199
|
+
...(!isOpen && {
|
|
4200
|
+
transform: `translate3d(-50%,calc(var(${cssVarBottom},var(${cssVarPositionBottom},${topBottomFallback})) + 100%),0)`,
|
|
4201
|
+
}),
|
|
4202
|
+
}),
|
|
4203
|
+
})),
|
|
4204
|
+
left: '50vw',
|
|
4205
|
+
width: `min(calc(100vw - 2 * var(${cssVarInsetX},${gridExtendedOffsetBase})),var(${cssVarMaxWidth},100ch))`,
|
|
4206
|
+
'&:popover-open': {
|
|
4207
|
+
overlay: 'auto',
|
|
4208
|
+
},
|
|
4209
|
+
'&::backdrop': {
|
|
4210
|
+
display: 'none',
|
|
4211
|
+
},
|
|
4212
|
+
visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
|
|
4213
|
+
pointerEvents: 'none', // element can't be interacted with mouse
|
|
4214
|
+
...(isOpen && {
|
|
4215
|
+
visibility: 'inherit',
|
|
4216
|
+
pointerEvents: 'inherit',
|
|
4217
|
+
transform: 'translate3d(-50%,0,0)',
|
|
4218
|
+
}),
|
|
4219
|
+
transition,
|
|
4220
|
+
// during transition the element will be removed from top-layer immediately, resulting in other elements laying over (as of Mai 2024 only Chrome is fixed by this)
|
|
4221
|
+
'@supports (transition-behavior: allow-discrete)': {
|
|
4222
|
+
transition: `${transition},${getTransition('overlay', duration, easing)} allow-discrete`,
|
|
4223
|
+
},
|
|
4224
|
+
},
|
|
4225
|
+
},
|
|
4226
|
+
banner: {
|
|
4227
|
+
display: 'grid',
|
|
4228
|
+
gridTemplateColumns: `auto minmax(0, 1fr) auto auto`,
|
|
4229
|
+
padding: spacingStaticMd,
|
|
4230
|
+
borderRadius: `var(${legacyRadiusMedium}, ${radius2Xl})`,
|
|
4231
|
+
background: notificationBackgroundMap[state],
|
|
4232
|
+
WebkitBackdropFilter: blurFrosted,
|
|
4233
|
+
backdropFilter: blurFrosted,
|
|
4234
|
+
boxShadow: shadowLg,
|
|
4235
|
+
opacity: isOpen ? 1 : 0, // it's necessary to spit up opacity transition from [popover], otherwise frosted effect won't render
|
|
4236
|
+
transition: getTransition('opacity', duration, easing),
|
|
4237
|
+
...forcedColorsMediaQuery({
|
|
4238
|
+
outline: '2px solid CanvasText',
|
|
4239
|
+
outlineOffset: '-2px',
|
|
4240
|
+
}),
|
|
4241
|
+
'&::before': {
|
|
4242
|
+
[getMediaQueryMin('s')]: {
|
|
4243
|
+
gridArea: '1/1',
|
|
4244
|
+
placeSelf: 'center',
|
|
4245
|
+
content: '""',
|
|
4246
|
+
width: '1.5rem',
|
|
4247
|
+
height: '1.5rem',
|
|
4248
|
+
marginInlineEnd: spacingStaticSm$1,
|
|
4249
|
+
background: notificationColorMap[state],
|
|
4250
|
+
WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
4251
|
+
mask: `${notificationIconMap[state]} center/contain no-repeat`,
|
|
4252
|
+
...forcedColorsMediaQuery({
|
|
4253
|
+
background: 'CanvasText',
|
|
4254
|
+
}),
|
|
4255
|
+
},
|
|
4256
|
+
},
|
|
4257
|
+
},
|
|
4258
|
+
...(hasDismissButton && {
|
|
4259
|
+
dismiss: {
|
|
4260
|
+
gridArea: `1/4/3`,
|
|
4261
|
+
marginTop: `calc(-1 * ${spacingStaticXs$1})`,
|
|
4262
|
+
marginInlineEnd: `calc(-1 * ${spacingStaticXs$1})`,
|
|
4263
|
+
marginInlineStart: spacingStaticMd,
|
|
4264
|
+
},
|
|
4265
|
+
}),
|
|
4266
|
+
});
|
|
4267
|
+
};
|
|
4268
|
+
|
|
4334
4269
|
// Needed for slotted anchor and hidden label, which then enlarges the hidden label to equal host size and indents the text to be visually hidden.
|
|
4335
4270
|
const getVisibilityJssStyle = (hideLabel) => {
|
|
4336
4271
|
return hideLabel
|
|
@@ -4371,7 +4306,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4371
4306
|
cursor: 'pointer',
|
|
4372
4307
|
color: colorMap$3[color],
|
|
4373
4308
|
textDecoration: underline ? 'underline' : 'none',
|
|
4374
|
-
font: `${fontWeightNormal} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
|
|
4309
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4375
4310
|
...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
|
|
4376
4311
|
gap: hidelabelValue ? 0 : spacingStaticXs$1,
|
|
4377
4312
|
})), buildResponsiveStyles(stretch, (stretchValue) => ({
|
|
@@ -4459,7 +4394,7 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
|
|
|
4459
4394
|
icon: {
|
|
4460
4395
|
position: 'absolute',
|
|
4461
4396
|
top: 0,
|
|
4462
|
-
left: `calc(50% - ${leadingNormal} / 2)`,
|
|
4397
|
+
left: `calc(50% - ${leadingNormal$1} / 2)`,
|
|
4463
4398
|
},
|
|
4464
4399
|
}),
|
|
4465
4400
|
// .loading
|
|
@@ -4518,7 +4453,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4518
4453
|
all: 'unset',
|
|
4519
4454
|
zIndex: 3,
|
|
4520
4455
|
maxWidth: '34.375rem',
|
|
4521
|
-
|
|
4456
|
+
font: `${fontWeightNormal$1} ${typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4522
4457
|
color: colorPrimary,
|
|
4523
4458
|
hyphens: 'inherit',
|
|
4524
4459
|
...mergeDeep(buildResponsiveStyles(size, (v) => ({
|
|
@@ -4530,7 +4465,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4530
4465
|
},
|
|
4531
4466
|
root: {
|
|
4532
4467
|
display: 'grid',
|
|
4533
|
-
gridTemplate: `${
|
|
4468
|
+
gridTemplate: `${spacingFluidMd$1} auto minmax(0px, 1fr) auto ${spacingFluidMd$1}/${spacingFluidMd$1} minmax(0px, 1fr) ${spacingFluidMd$1}`,
|
|
4534
4469
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
4535
4470
|
// Safari workaround to scale the tile properly
|
|
4536
4471
|
'@supports (-webkit-hyphens: auto)': {
|
|
@@ -4549,14 +4484,14 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4549
4484
|
? {
|
|
4550
4485
|
gridArea: '1/1/3/-1',
|
|
4551
4486
|
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
4552
|
-
marginBottom: `calc(${
|
|
4487
|
+
marginBottom: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4553
4488
|
borderStartStartRadius: 'inherit',
|
|
4554
4489
|
borderStartEndRadius: 'inherit',
|
|
4555
4490
|
}
|
|
4556
4491
|
: {
|
|
4557
4492
|
gridArea: '4/1/6/-1',
|
|
4558
4493
|
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
4559
|
-
marginTop: `calc(${
|
|
4494
|
+
marginTop: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4560
4495
|
borderEndStartRadius: 'inherit',
|
|
4561
4496
|
borderEndEndRadius: 'inherit',
|
|
4562
4497
|
}),
|
|
@@ -4582,7 +4517,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4582
4517
|
? {
|
|
4583
4518
|
display: 'grid',
|
|
4584
4519
|
gridTemplateColumns: 'minmax(0,1fr) auto',
|
|
4585
|
-
columnGap:
|
|
4520
|
+
columnGap: spacingStaticMd,
|
|
4586
4521
|
}
|
|
4587
4522
|
: {
|
|
4588
4523
|
display: 'flex',
|
|
@@ -4602,7 +4537,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4602
4537
|
'link-or-button': {
|
|
4603
4538
|
minHeight: '54px', // prevent content shift
|
|
4604
4539
|
zIndex: 5,
|
|
4605
|
-
marginTop:
|
|
4540
|
+
marginTop: spacingStaticMd,
|
|
4606
4541
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4607
4542
|
display: compactValue ? 'none' : 'inline-block',
|
|
4608
4543
|
})),
|
|
@@ -4656,8 +4591,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4656
4591
|
width: '100%', // Allows for setting a width on the host
|
|
4657
4592
|
minWidth: 'min-content', // Do not shrink beyond icon size + padding + border + label
|
|
4658
4593
|
boxSizing: 'border-box',
|
|
4659
|
-
|
|
4660
|
-
|
|
4594
|
+
WebkitBackdropFilter: blurFrosted,
|
|
4595
|
+
backdropFilter: blurFrosted,
|
|
4596
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4661
4597
|
borderRadius: 'inherit',
|
|
4662
4598
|
transform: 'translate3d(0,0,0)', // creates new stacking context (for slotted anchor + focus)
|
|
4663
4599
|
backgroundColor,
|
|
@@ -4694,8 +4630,9 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4694
4630
|
label: buildResponsiveStyles(hideLabel, getHiddenTextJssStyle),
|
|
4695
4631
|
...(hasIcon && {
|
|
4696
4632
|
icon: {
|
|
4697
|
-
|
|
4698
|
-
|
|
4633
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width/height definition based on ex-unit
|
|
4634
|
+
width: leadingNormal$1, // ensure space is already reserved until icon component is loaded (ssr)
|
|
4635
|
+
height: leadingNormal$1, // ensure space is already reserved until icon component is loaded (ssr)
|
|
4699
4636
|
...buildResponsiveStyles(hideLabel, (hideLabelValue) => ({
|
|
4700
4637
|
marginInlineStart: hideLabelValue ? 0 : iconMarginInlineStart, // compensate white space of svg icon and optimize visual alignment
|
|
4701
4638
|
})),
|
|
@@ -4722,9 +4659,6 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
|
|
|
4722
4659
|
},
|
|
4723
4660
|
...(isLoading && {
|
|
4724
4661
|
spinner: {
|
|
4725
|
-
width: fontLineHeight,
|
|
4726
|
-
height: fontLineHeight,
|
|
4727
|
-
pointerEvents: 'none',
|
|
4728
4662
|
position: 'absolute',
|
|
4729
4663
|
top: '50%',
|
|
4730
4664
|
left: '50%',
|
|
@@ -4772,8 +4706,6 @@ const colorFrostedSoftDark = palette.dark.grey['100a'];
|
|
|
4772
4706
|
|
|
4773
4707
|
const colorPrimaryDark = palette.dark.grey["950"];
|
|
4774
4708
|
|
|
4775
|
-
const typescaleXs = '.875rem';
|
|
4776
|
-
|
|
4777
4709
|
const spacingStaticSm = '8px';
|
|
4778
4710
|
|
|
4779
4711
|
const spacingStaticXs = '4px';
|
|
@@ -4857,7 +4789,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
4857
4789
|
h2: {
|
|
4858
4790
|
all: 'unset',
|
|
4859
4791
|
padding: spacingStaticXs, // preserve enough spacing for focus state
|
|
4860
|
-
font:
|
|
4792
|
+
font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
4861
4793
|
color: colorPrimary,
|
|
4862
4794
|
textOverflow: 'ellipsis',
|
|
4863
4795
|
overflow: 'hidden',
|
|
@@ -4904,13 +4836,13 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
4904
4836
|
gridTemplateColumns: 'minmax(0,1fr) auto minmax(0,1fr)',
|
|
4905
4837
|
gap: spacingBase,
|
|
4906
4838
|
alignItems: 'center',
|
|
4907
|
-
padding: `${
|
|
4839
|
+
padding: `${spacingStaticSm$1} ${spacingBase}`,
|
|
4908
4840
|
'&:focus-visible': {
|
|
4909
4841
|
outline: 'none',
|
|
4910
4842
|
},
|
|
4911
4843
|
'&__area': {
|
|
4912
4844
|
display: 'flex',
|
|
4913
|
-
gap:
|
|
4845
|
+
gap: spacingStaticSm$1,
|
|
4914
4846
|
alignItems: 'center',
|
|
4915
4847
|
'&--start': {
|
|
4916
4848
|
justifyContent: 'flex-start',
|
|
@@ -5008,7 +4940,7 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
5008
4940
|
footer: {
|
|
5009
4941
|
zIndex: 5,
|
|
5010
4942
|
gridArea: 'footer',
|
|
5011
|
-
padding: `${spacingBase} ${spacingBase} ${
|
|
4943
|
+
padding: `${spacingBase} ${spacingBase} ${spacingFluidSm}`,
|
|
5012
4944
|
position: 'sticky',
|
|
5013
4945
|
bottom: 0,
|
|
5014
4946
|
'&::before': {
|
|
@@ -5056,12 +4988,12 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) =>
|
|
|
5056
4988
|
'&__header': {
|
|
5057
4989
|
zIndex: 9999999,
|
|
5058
4990
|
display: 'flex',
|
|
5059
|
-
gap:
|
|
4991
|
+
gap: spacingStaticSm$1,
|
|
5060
4992
|
alignItems: 'center',
|
|
5061
4993
|
position: 'sticky',
|
|
5062
4994
|
top: `calc(-1 * ${spacingBase})`,
|
|
5063
4995
|
margin: `calc(-1 * ${spacingBase}) calc(-1 * ${spacingBase}) ${spacingBase}`,
|
|
5064
|
-
padding: `${
|
|
4996
|
+
padding: `${spacingStaticSm$1} ${spacingBase}`,
|
|
5065
4997
|
minHeight: '56px',
|
|
5066
4998
|
boxSizing: 'border-box',
|
|
5067
4999
|
'&--start': {
|
|
@@ -5142,7 +5074,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5142
5074
|
':host': {
|
|
5143
5075
|
display: 'flex',
|
|
5144
5076
|
...addImportantToEachRule({
|
|
5145
|
-
gap:
|
|
5077
|
+
gap: spacingFluidMd$1, // TODO: maybe it's better to style by margin on .splide, then styles would be part of shadow dom
|
|
5146
5078
|
flexDirection: 'column',
|
|
5147
5079
|
boxSizing: 'content-box', // ensures padding is added to host instead of subtracted
|
|
5148
5080
|
...hostHiddenStyles,
|
|
@@ -5183,20 +5115,20 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5183
5115
|
...(hasHeading && {
|
|
5184
5116
|
[selectorHeading]: {
|
|
5185
5117
|
maxWidth: '56.25rem',
|
|
5186
|
-
margin: `0 0 ${hasDescription ? 0 :
|
|
5187
|
-
|
|
5118
|
+
margin: `0 0 ${hasDescription ? 0 : spacingFluidMd$1}`,
|
|
5119
|
+
font: `${fontWeightNormal$1} ${headingSize === 'xx-large' ? typescale2Xl : typescaleXl} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5188
5120
|
},
|
|
5189
5121
|
'::slotted([slot=heading])': {
|
|
5190
5122
|
margin: 0, // reset ua-style
|
|
5191
|
-
|
|
5123
|
+
font: `${fontWeightNormal$1} ${headingSize === 'xx-large' ? typescale2Xl : typescaleXl} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5192
5124
|
},
|
|
5193
5125
|
}),
|
|
5194
5126
|
// p,::slotted([slot=description])
|
|
5195
5127
|
...(hasDescription && {
|
|
5196
5128
|
[selectorDescription]: {
|
|
5197
5129
|
maxWidth: '34.375rem',
|
|
5198
|
-
margin: `${
|
|
5199
|
-
|
|
5130
|
+
margin: `${spacingFluidSm} 0 ${spacingFluidMd$1}`,
|
|
5131
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5200
5132
|
},
|
|
5201
5133
|
}),
|
|
5202
5134
|
}),
|
|
@@ -5209,7 +5141,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5209
5141
|
gridTemplateColumns: 'minmax(0px,1fr) auto',
|
|
5210
5142
|
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5211
5143
|
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5212
|
-
...(hasNavigation && { columnGap:
|
|
5144
|
+
...(hasNavigation && { columnGap: spacingStaticMd }),
|
|
5213
5145
|
},
|
|
5214
5146
|
[mediaQueryXXL]: {
|
|
5215
5147
|
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
|
|
@@ -5222,12 +5154,12 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5222
5154
|
gridRowStart: '3',
|
|
5223
5155
|
gridColumnEnd: '-1',
|
|
5224
5156
|
display: 'flex',
|
|
5225
|
-
gap:
|
|
5157
|
+
gap: spacingStaticXs$1,
|
|
5226
5158
|
alignSelf: 'flex-start', // relevant in case slot="header" becomes higher than nav group
|
|
5227
5159
|
},
|
|
5228
5160
|
},
|
|
5229
5161
|
btn: {
|
|
5230
|
-
padding:
|
|
5162
|
+
padding: spacingStaticSm$1,
|
|
5231
5163
|
},
|
|
5232
5164
|
'skip-link': {
|
|
5233
5165
|
// :focus must be used in this case, because :focus-visible is just matched on the focusable element itself, not on the host element.
|
|
@@ -5433,9 +5365,9 @@ const cssVarInternalCheckboxScaling = '--__p-checkbox-scaling';
|
|
|
5433
5365
|
const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
|
|
5434
5366
|
const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
5435
5367
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
5436
|
-
const checkboxBorderWidth =
|
|
5368
|
+
const checkboxBorderWidth = '1px';
|
|
5437
5369
|
const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
|
|
5438
|
-
const checkboxMarginBlock = `max(0px, calc((${
|
|
5370
|
+
const checkboxMarginBlock = `max(0px, calc((${leadingNormal$1} - ${checkboxDimension}) / 2))`;
|
|
5439
5371
|
const checkboxTouchInset = `calc(-${checkboxBorderWidth} - max(0px, calc(24px - ${checkboxDimension}) / 2))`;
|
|
5440
5372
|
return {
|
|
5441
5373
|
all: 'unset',
|
|
@@ -5444,7 +5376,7 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
|
|
|
5444
5376
|
height: checkboxDimension,
|
|
5445
5377
|
marginBlock: checkboxMarginBlock,
|
|
5446
5378
|
boxSizing: 'border-box',
|
|
5447
|
-
font: `${
|
|
5379
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
|
|
5448
5380
|
background: `var(${cssVarCheckboxBackgroundColor},${formStateBackgroundColor})`,
|
|
5449
5381
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
5450
5382
|
border: `${checkboxBorderWidth} solid var(${cssVarCheckboxBorderColor},${formStateBorderColor})`,
|
|
@@ -5538,8 +5470,8 @@ const getFunctionalComponentLabelAfterStyles = () => {
|
|
|
5538
5470
|
verticalAlign: 'top',
|
|
5539
5471
|
'&::slotted(*)': {
|
|
5540
5472
|
...addImportantToEachRule({
|
|
5541
|
-
marginInlineStart: spacingStaticXs$
|
|
5542
|
-
})
|
|
5473
|
+
marginInlineStart: spacingStaticXs$1,
|
|
5474
|
+
}),
|
|
5543
5475
|
},
|
|
5544
5476
|
},
|
|
5545
5477
|
};
|
|
@@ -5555,7 +5487,7 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
|
|
|
5555
5487
|
...additionalLabelWrapperJssStyle,
|
|
5556
5488
|
},
|
|
5557
5489
|
label: {
|
|
5558
|
-
|
|
5490
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5559
5491
|
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
5560
5492
|
color: colorPrimary,
|
|
5561
5493
|
...(isDisabledOrLoading && {
|
|
@@ -5572,10 +5504,10 @@ const getFunctionalComponentLabelStyles = (isDisabled, isLoading, hideLabel, add
|
|
|
5572
5504
|
// styling for the description
|
|
5573
5505
|
'&:is(span)': {
|
|
5574
5506
|
cursor: 'unset',
|
|
5575
|
-
fontSize: typescaleXs,
|
|
5507
|
+
fontSize: typescaleXs$1,
|
|
5576
5508
|
color: colorContrastHigh,
|
|
5577
|
-
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop:
|
|
5578
|
-
marginTop:
|
|
5509
|
+
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `calc(-1 * ${spacingStaticXs$1})` })),
|
|
5510
|
+
marginTop: `calc(-1 * ${spacingStaticXs$1})`,
|
|
5579
5511
|
},
|
|
5580
5512
|
...additionalDefaultJssStyle,
|
|
5581
5513
|
},
|
|
@@ -5588,8 +5520,8 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
|
|
|
5588
5520
|
return {
|
|
5589
5521
|
message: {
|
|
5590
5522
|
display: 'flex',
|
|
5591
|
-
gap:
|
|
5592
|
-
|
|
5523
|
+
gap: spacingStaticXs$1,
|
|
5524
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5593
5525
|
color: getThemedFormStateColors(state).formStateColor,
|
|
5594
5526
|
transition: `${getTransition('color')}, ${getTransition('opacity')}`,
|
|
5595
5527
|
...additionalDefaultJssStyle,
|
|
@@ -5610,7 +5542,7 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
|
|
|
5610
5542
|
const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact) => {
|
|
5611
5543
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
5612
5544
|
const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
|
|
5613
|
-
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${
|
|
5545
|
+
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
|
|
5614
5546
|
const labelPaddingInlineStart = `calc(11.2px * (var(${cssVarInternalCheckboxScaling}) - 0.64285714) + 4px)`;
|
|
5615
5547
|
return getCss({
|
|
5616
5548
|
'@global': {
|
|
@@ -5632,7 +5564,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
|
|
|
5632
5564
|
},
|
|
5633
5565
|
root: {
|
|
5634
5566
|
display: 'grid',
|
|
5635
|
-
rowGap:
|
|
5567
|
+
rowGap: spacingStaticXs$1,
|
|
5636
5568
|
},
|
|
5637
5569
|
wrapper: {
|
|
5638
5570
|
position: 'relative',
|
|
@@ -5644,7 +5576,7 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
|
|
|
5644
5576
|
alignItems: 'center',
|
|
5645
5577
|
display: 'grid',
|
|
5646
5578
|
alignSelf: 'flex-start',
|
|
5647
|
-
minHeight:
|
|
5579
|
+
minHeight: leadingNormal$1, // necessary for compact mode
|
|
5648
5580
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
5649
5581
|
...(isDisabled && getDisabledBaseStyles()),
|
|
5650
5582
|
},
|
|
@@ -5681,7 +5613,7 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
|
|
|
5681
5613
|
const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
|
|
5682
5614
|
const cssVarInternalInputBaseScaling = '--p-internal-input-base-scaling';
|
|
5683
5615
|
const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel, state, isCompact, readOnly, additionalInputJssStyle, additionalHostJssStyle) => {
|
|
5684
|
-
const wrapperBorderWidth =
|
|
5616
|
+
const wrapperBorderWidth = '1px';
|
|
5685
5617
|
const wrapperHeight = `calc(var(${cssVarInternalInputBaseScaling}) * 3.5rem)`;
|
|
5686
5618
|
const wrapperPaddingInline = `calc(22.4px * (var(${cssVarInternalInputBaseScaling}) - 0.64285714) + 8px)`;
|
|
5687
5619
|
const wrapperGap = `calc(22.4px * (var(${cssVarInternalInputBaseScaling}) - 0.64285714) + 4px)`;
|
|
@@ -5714,14 +5646,14 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
|
|
|
5714
5646
|
alignItems: 'center',
|
|
5715
5647
|
width: 'max(100%, 2ch)', // show at least 2 characters in very narrow containers
|
|
5716
5648
|
height: '100%',
|
|
5717
|
-
font:
|
|
5649
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / calc(${leadingNormal$1} + 6px) ${fontPorscheNext$1}`, // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
5718
5650
|
textOverflow: 'ellipsis',
|
|
5719
5651
|
...additionalInputJssStyle,
|
|
5720
5652
|
},
|
|
5721
5653
|
},
|
|
5722
5654
|
root: {
|
|
5723
5655
|
display: 'grid',
|
|
5724
|
-
gap:
|
|
5656
|
+
gap: spacingStaticXs$1,
|
|
5725
5657
|
},
|
|
5726
5658
|
wrapper: {
|
|
5727
5659
|
display: 'flex',
|
|
@@ -5781,7 +5713,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5781
5713
|
const cssVarTextColor = `--p-${componentName}-text-color`;
|
|
5782
5714
|
const cssVarBorderColor = `--p-${componentName}-border-color`;
|
|
5783
5715
|
const { formStateBorderColor, formStateBorderHoverColor, formStateBackgroundColor } = getThemedFormStateColors(state);
|
|
5784
|
-
const borderWidth =
|
|
5716
|
+
const borderWidth = '1px';
|
|
5785
5717
|
const height = `calc(var(${cssVarScalingName}) * 3.5rem)`;
|
|
5786
5718
|
const paddingInline = `calc(22.4px * (var(${cssVarScalingName}) - 0.64285714) + 8px)`;
|
|
5787
5719
|
const gap = `calc(22.4px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
@@ -5797,7 +5729,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5797
5729
|
border: `${borderWidth} solid var(${cssVarBorderColor}, ${isOpen ? formStateBorderHoverColor : formStateBorderColor})`,
|
|
5798
5730
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
5799
5731
|
background: `var(${cssVarBackgroundColor}, ${formStateBackgroundColor})`,
|
|
5800
|
-
font:
|
|
5732
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5801
5733
|
color: `var(${cssVarTextColor}, ${colorPrimary})`,
|
|
5802
5734
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
5803
5735
|
...(isDisabled && getDisabledBaseStyles()),
|
|
@@ -5814,9 +5746,9 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5814
5746
|
};
|
|
5815
5747
|
|
|
5816
5748
|
const getButtonImageJssStyle = {
|
|
5817
|
-
font: `${
|
|
5749
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct calculations based on ex-unit
|
|
5818
5750
|
width: 'auto',
|
|
5819
|
-
height:
|
|
5751
|
+
height: leadingNormal$1,
|
|
5820
5752
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
5821
5753
|
};
|
|
5822
5754
|
|
|
@@ -5859,8 +5791,8 @@ const getOptionJssStyle = (componentName, cssVarScalingName) => {
|
|
|
5859
5791
|
gap,
|
|
5860
5792
|
paddingBlock,
|
|
5861
5793
|
paddingInline,
|
|
5862
|
-
minHeight:
|
|
5863
|
-
|
|
5794
|
+
minHeight: leadingNormal$1, // preserves height for empty option
|
|
5795
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
5864
5796
|
color: colorContrastHigh,
|
|
5865
5797
|
cursor: 'pointer',
|
|
5866
5798
|
textAlign: 'start',
|
|
@@ -5928,7 +5860,7 @@ const getPopoverJssStyle = (isOpen, cssVarScalingName, optionHeight) => {
|
|
|
5928
5860
|
overflow: 'hidden auto',
|
|
5929
5861
|
scrollbarWidth: 'thin', // firefox
|
|
5930
5862
|
scrollbarColor: 'auto', // firefox
|
|
5931
|
-
animation: `var(${cssVariableAnimationDuration}, ${
|
|
5863
|
+
animation: `var(${cssVariableAnimationDuration}, ${durationSm}) ${keyframesName} ${easeInOut} forwards`,
|
|
5932
5864
|
filter: 'drop-shadow(0 0 8px rgba(0,0,0,0.15))',
|
|
5933
5865
|
background: colorCanvas,
|
|
5934
5866
|
border: `1px solid ${colorContrastLow}`,
|
|
@@ -6042,7 +5974,7 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
|
|
|
6042
5974
|
root: {
|
|
6043
5975
|
all: 'unset',
|
|
6044
5976
|
display: 'block',
|
|
6045
|
-
font: `${fontWeightNormal} ${typescale5Xl}/${leadingNormal} ${fontPorscheNext}`,
|
|
5977
|
+
font: `${fontWeightNormal$1} ${typescale5Xl}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6046
5978
|
...buildResponsiveStyles(size, (v) => ({
|
|
6047
5979
|
fontSize: sizeMap[v],
|
|
6048
5980
|
})),
|
|
@@ -6108,14 +6040,14 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6108
6040
|
return getCss({
|
|
6109
6041
|
'@global': {
|
|
6110
6042
|
'@keyframes slide-up-mobile': {
|
|
6111
|
-
from: { transform: `translate3d(0,${
|
|
6043
|
+
from: { transform: `translate3d(0,${spacingFluidMd$1},0)` },
|
|
6112
6044
|
to: { transform: 'translate3d(0,0,0)' },
|
|
6113
6045
|
},
|
|
6114
6046
|
// unfortunately, it's not possible to use transform animation like in mobile view
|
|
6115
6047
|
// because then a new stacking context within scroll container would be initialized
|
|
6116
6048
|
// causing the slotted scroll container to become invisible
|
|
6117
6049
|
'@keyframes slide-up-desktop': {
|
|
6118
|
-
from: { marginBlockStart:
|
|
6050
|
+
from: { marginBlockStart: spacingFluidMd$1 },
|
|
6119
6051
|
to: { marginBlockStart: '0px' },
|
|
6120
6052
|
},
|
|
6121
6053
|
':host': {
|
|
@@ -6133,7 +6065,7 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6133
6065
|
...preventFoucOfNestedElementsStyles,
|
|
6134
6066
|
'::slotted(*)': {
|
|
6135
6067
|
[cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
|
|
6136
|
-
[cssVariableGap]:
|
|
6068
|
+
[cssVariableGap]: spacingFluidXs, // reset css variable to prevent inheritance
|
|
6137
6069
|
},
|
|
6138
6070
|
dialog: {
|
|
6139
6071
|
all: 'unset',
|
|
@@ -6144,7 +6076,8 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6144
6076
|
...(isOpen
|
|
6145
6077
|
? {
|
|
6146
6078
|
visibility: 'inherit',
|
|
6147
|
-
|
|
6079
|
+
WebkitBackdropFilter: blurFrosted,
|
|
6080
|
+
backdropFilter: blurFrosted,
|
|
6148
6081
|
background: `var(${cssVarColorBackgroundShading})`,
|
|
6149
6082
|
transition: `${getTransition('background', backdropDurationOpen, easingOpen)}, ${getTransition('backdrop-filter', backdropDurationOpen, easingOpen)}, ${getTransition('-webkit-backdrop-filter', backdropDurationOpen, easingOpen)}`,
|
|
6150
6083
|
}
|
|
@@ -6164,13 +6097,13 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6164
6097
|
zIndex: 0,
|
|
6165
6098
|
display: 'grid',
|
|
6166
6099
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6167
|
-
gap: `var(${cssVariableGap},${
|
|
6100
|
+
gap: `var(${cssVariableGap},${spacingFluidXs})`,
|
|
6168
6101
|
alignContent: 'start',
|
|
6169
6102
|
alignItems: 'start',
|
|
6170
6103
|
boxSizing: 'border-box',
|
|
6171
6104
|
minHeight: '100%',
|
|
6172
6105
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6173
|
-
paddingBlockEnd:
|
|
6106
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6174
6107
|
...(isPrimary && {
|
|
6175
6108
|
animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
|
|
6176
6109
|
}),
|
|
@@ -6181,13 +6114,13 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6181
6114
|
gridArea: '3/2/auto/-2',
|
|
6182
6115
|
display: 'grid',
|
|
6183
6116
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6184
|
-
gap: `var(${cssVariableGap},${isPrimary ?
|
|
6117
|
+
gap: `var(${cssVariableGap},${isPrimary ? spacingFluidXs : spacingFluidMd$1})`,
|
|
6185
6118
|
alignContent: 'start',
|
|
6186
6119
|
alignItems: 'start',
|
|
6187
6120
|
boxSizing: 'border-box',
|
|
6188
6121
|
minHeight: '100%',
|
|
6189
6122
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6190
|
-
paddingBlockEnd:
|
|
6123
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6191
6124
|
animation: getAnimation('slide-up-desktop', 'moderate', 'base'),
|
|
6192
6125
|
}),
|
|
6193
6126
|
},
|
|
@@ -6226,12 +6159,12 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6226
6159
|
},
|
|
6227
6160
|
}),
|
|
6228
6161
|
[mediaQueryMobile]: {
|
|
6229
|
-
gridTemplate: `${
|
|
6162
|
+
gridTemplate: `${spacingFluidMd$1} auto ${spacingFluidLg} minmax(0, 1fr)/${spacingFluidLg} auto minmax(0, 1fr) auto ${spacingFluidLg}`,
|
|
6230
6163
|
background: `var(${cssVarColorBackgroundBase})`,
|
|
6231
6164
|
},
|
|
6232
6165
|
[mediaQueryDesktop]: {
|
|
6233
6166
|
width: isSecondaryScrollerVisible ? `calc(${scrollerWidthDesktop} * 2)` : scrollerWidthDesktop,
|
|
6234
|
-
gridTemplate: `${
|
|
6167
|
+
gridTemplate: `${spacingFluidMd$1} auto minmax(0, 1fr)/repeat(${isSecondaryScrollerVisible ? 2 : 1}, ${spacingFluidLg} minmax(0, 1fr) ${spacingFluidLg})`,
|
|
6235
6168
|
background: `var(${cssVarColorBackgroundBase})`,
|
|
6236
6169
|
...(isSecondaryScrollerVisible && {
|
|
6237
6170
|
background: `linear-gradient(90deg,var(${cssVarColorBackgroundBase}) 0%,var(${cssVarColorBackgroundBase}) 50%,var(${cssVarColorBackgroundSurface}) 50%,var(${cssVarColorBackgroundSurface}) 100%)`,
|
|
@@ -6321,9 +6254,9 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6321
6254
|
'--p-color-frosted': colorFrostedDark,
|
|
6322
6255
|
'--p-color-frosted-soft': colorFrostedSoftDark,
|
|
6323
6256
|
position: 'absolute',
|
|
6324
|
-
insetInlineStart: `calc(100% + ${
|
|
6325
|
-
insetBlockStart:
|
|
6326
|
-
padding:
|
|
6257
|
+
insetInlineStart: `calc(100% + ${spacingFluidSm})`,
|
|
6258
|
+
insetBlockStart: spacingFluidSm,
|
|
6259
|
+
padding: spacingStaticSm$1,
|
|
6327
6260
|
},
|
|
6328
6261
|
},
|
|
6329
6262
|
back: {
|
|
@@ -6332,11 +6265,10 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
6332
6265
|
isPrimary && {
|
|
6333
6266
|
[mediaQueryMobile]: {
|
|
6334
6267
|
display: 'block',
|
|
6335
|
-
marginTop: '2px', // compensate negative margin of ::pseudo background of button-pure
|
|
6336
6268
|
gridArea: '2/2',
|
|
6337
6269
|
width: 'fit-content',
|
|
6338
6270
|
height: 'fit-content',
|
|
6339
|
-
placeSelf: '
|
|
6271
|
+
placeSelf: 'center',
|
|
6340
6272
|
zIndex: 2,
|
|
6341
6273
|
},
|
|
6342
6274
|
}),
|
|
@@ -6348,15 +6280,15 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6348
6280
|
return getCss({
|
|
6349
6281
|
'@global': {
|
|
6350
6282
|
'@keyframes slide-up-mobile': {
|
|
6351
|
-
from: { transform: `translate3d(0,${
|
|
6283
|
+
from: { transform: `translate3d(0,${spacingFluidMd$1},0)` },
|
|
6352
6284
|
to: { transform: 'translate3d(0,0,0)' },
|
|
6353
6285
|
},
|
|
6354
6286
|
'@keyframes slide-up-desktop-primary': {
|
|
6355
|
-
from: { marginBlockStart:
|
|
6287
|
+
from: { marginBlockStart: spacingFluidMd$1 },
|
|
6356
6288
|
to: { marginBlockStart: '0px' },
|
|
6357
6289
|
},
|
|
6358
6290
|
'@keyframes slide-up-desktop-secondary': {
|
|
6359
|
-
from: { marginBlockStart:
|
|
6291
|
+
from: { marginBlockStart: spacingFluidMd$1 },
|
|
6360
6292
|
to: { marginBlockStart: '0px' },
|
|
6361
6293
|
},
|
|
6362
6294
|
':host': {
|
|
@@ -6396,13 +6328,13 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6396
6328
|
zIndex: 0,
|
|
6397
6329
|
display: 'grid',
|
|
6398
6330
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6399
|
-
gap: `var(${cssVariableGap},${
|
|
6331
|
+
gap: `var(${cssVariableGap},${spacingFluidXs})`,
|
|
6400
6332
|
alignContent: 'start',
|
|
6401
6333
|
alignItems: 'start',
|
|
6402
6334
|
boxSizing: 'border-box',
|
|
6403
6335
|
minHeight: '100%',
|
|
6404
6336
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6405
|
-
paddingBlockEnd:
|
|
6337
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6406
6338
|
animation: getAnimation('slide-up-mobile', 'moderate', 'base'),
|
|
6407
6339
|
}),
|
|
6408
6340
|
...((isPrimary || isCascade) && {
|
|
@@ -6414,18 +6346,18 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6414
6346
|
gridArea: '3/2/auto/-2',
|
|
6415
6347
|
display: 'grid',
|
|
6416
6348
|
gridTemplate: `var(${cssVariableGridTemplate},auto/auto)`,
|
|
6417
|
-
gap: `var(${cssVariableGap},${
|
|
6349
|
+
gap: `var(${cssVariableGap},${spacingFluidXs})`,
|
|
6418
6350
|
alignContent: 'start',
|
|
6419
6351
|
alignItems: 'start',
|
|
6420
6352
|
boxSizing: 'border-box',
|
|
6421
6353
|
minHeight: '100%',
|
|
6422
6354
|
height: 'fit-content', // ensures padding bottom is added instead of subtracted because of grid context
|
|
6423
|
-
paddingBlockEnd:
|
|
6355
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6424
6356
|
animation: getAnimation(`slide-up-desktop-${isPrimary ? 'primary' : 'secondary'}`, 'moderate', 'base'),
|
|
6425
6357
|
}),
|
|
6426
6358
|
...(isSecondary && {
|
|
6427
6359
|
gridArea: '2/2/auto/-2',
|
|
6428
|
-
paddingBlockEnd:
|
|
6360
|
+
paddingBlockEnd: spacingFluidLg,
|
|
6429
6361
|
}),
|
|
6430
6362
|
...(isCascade && {
|
|
6431
6363
|
display: 'contents',
|
|
@@ -6437,13 +6369,13 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6437
6369
|
display: 'none',
|
|
6438
6370
|
[mediaQueryMobile]: {
|
|
6439
6371
|
...(isSecondary && {
|
|
6440
|
-
|
|
6372
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6441
6373
|
display: 'block',
|
|
6442
6374
|
gridArea: '2/3',
|
|
6443
6375
|
placeSelf: 'center',
|
|
6444
6376
|
zIndex: 2,
|
|
6445
6377
|
margin: 0,
|
|
6446
|
-
paddingInline:
|
|
6378
|
+
paddingInline: spacingStaticMd,
|
|
6447
6379
|
maxWidth: '100%',
|
|
6448
6380
|
boxSizing: 'border-box',
|
|
6449
6381
|
whiteSpace: 'nowrap',
|
|
@@ -6468,7 +6400,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6468
6400
|
}),
|
|
6469
6401
|
'::slotted(*)': {
|
|
6470
6402
|
[cssVariableGridTemplate]: 'auto/auto', // reset css variable to prevent inheritance
|
|
6471
|
-
[cssVariableGap]:
|
|
6403
|
+
[cssVariableGap]: spacingFluidXs, // reset css variable to prevent inheritance
|
|
6472
6404
|
},
|
|
6473
6405
|
},
|
|
6474
6406
|
// drawer subgrid in combination with scroller grid ensures no content squeezing during slide up animation, potentially caused by scrollbar
|
|
@@ -6486,7 +6418,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6486
6418
|
inset: 0,
|
|
6487
6419
|
insetInlineStart: scrollerWidthDesktop,
|
|
6488
6420
|
display: 'grid',
|
|
6489
|
-
gridTemplate: `${
|
|
6421
|
+
gridTemplate: `${spacingFluidMd$1} minmax(0, 1fr)/${spacingFluidLg} minmax(0, 1fr) ${spacingFluidLg}`,
|
|
6490
6422
|
}),
|
|
6491
6423
|
...((isPrimary || isCascade) && {
|
|
6492
6424
|
display: 'contents',
|
|
@@ -6545,8 +6477,8 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6545
6477
|
// TODO: not sure if this is ideal, since the consumer won't be able to change it when used with a custom
|
|
6546
6478
|
// grid-template, maybe <p-drilldown-button slot="button" /> would be an option, similar to <p-drilldown-link />
|
|
6547
6479
|
gridColumn: '1/-1',
|
|
6548
|
-
padding:
|
|
6549
|
-
margin: `0 calc(${
|
|
6480
|
+
padding: spacingFluidSm,
|
|
6481
|
+
margin: `0 calc(${spacingFluidSm} * -1)`,
|
|
6550
6482
|
}),
|
|
6551
6483
|
},
|
|
6552
6484
|
back: {
|
|
@@ -6564,7 +6496,7 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6564
6496
|
},
|
|
6565
6497
|
[mediaQueryDesktop]: {
|
|
6566
6498
|
gridArea: '2/2',
|
|
6567
|
-
marginBottom:
|
|
6499
|
+
marginBottom: spacingFluidMd$1,
|
|
6568
6500
|
width: 'fit-content',
|
|
6569
6501
|
height: 'fit-content',
|
|
6570
6502
|
marginInlineStart: '-4px', // improve visual alignment and compensate white space of arrow-left icon
|
|
@@ -6580,10 +6512,10 @@ const anchorHoverJssStyle = {
|
|
|
6580
6512
|
const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
6581
6513
|
const anchorJssStyle = {
|
|
6582
6514
|
all: 'unset',
|
|
6583
|
-
padding: `calc(${
|
|
6584
|
-
margin: `-2px calc(${
|
|
6515
|
+
padding: `calc(${spacingFluidSm} + 2px) calc(${spacingFluidSm} + 4px)`, // aligned with link-pure
|
|
6516
|
+
margin: `-2px calc(${spacingFluidSm} * -1 - 4px)`, // aligned with link-pure
|
|
6585
6517
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`, // needed for focus outline
|
|
6586
|
-
font:
|
|
6518
|
+
font: `${fontWeightNormal$1} ${typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6587
6519
|
color: `var(${cssVarColorPrimary})`,
|
|
6588
6520
|
textDecoration: 'underline',
|
|
6589
6521
|
textDecorationColor: isActive ? 'inherit' : 'transparent',
|
|
@@ -6639,16 +6571,16 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
6639
6571
|
...(hasLabel && {
|
|
6640
6572
|
legend: {
|
|
6641
6573
|
all: 'unset',
|
|
6642
|
-
marginBottom:
|
|
6574
|
+
marginBottom: spacingStaticMd,
|
|
6643
6575
|
color: colorPrimary,
|
|
6644
|
-
|
|
6576
|
+
font: `${labelSize === 'small' ? fontWeightSemibold : fontWeightNormal$1} ${labelSize === 'small' ? typescaleSm$1 : typescaleMd} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
6645
6577
|
},
|
|
6646
6578
|
}),
|
|
6647
6579
|
},
|
|
6648
6580
|
...getFunctionalComponentRequiredStyles(),
|
|
6649
6581
|
...mergeDeep(getFunctionalComponentStateMessageStyles(state), {
|
|
6650
6582
|
message: {
|
|
6651
|
-
marginTop:
|
|
6583
|
+
marginTop: spacingStaticMd,
|
|
6652
6584
|
},
|
|
6653
6585
|
}),
|
|
6654
6586
|
});
|
|
@@ -6659,7 +6591,7 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
6659
6591
|
*/
|
|
6660
6592
|
const cssVarSize$2 = '--p-flag-size';
|
|
6661
6593
|
const getComponentCss$W = (size) => {
|
|
6662
|
-
const dimension = `var(${cssVarSize$2},${leadingNormal})`;
|
|
6594
|
+
const dimension = `var(${cssVarSize$2},${leadingNormal$1})`;
|
|
6663
6595
|
return getCss({
|
|
6664
6596
|
'@global': {
|
|
6665
6597
|
':host': {
|
|
@@ -6680,7 +6612,7 @@ const getComponentCss$W = (size) => {
|
|
|
6680
6612
|
pointerEvents: 'none', // disable dragging/ghosting of images
|
|
6681
6613
|
width: dimension,
|
|
6682
6614
|
height: dimension,
|
|
6683
|
-
fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
|
|
6615
|
+
fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
|
|
6684
6616
|
...buildResponsiveStyles(size, (s) => ({
|
|
6685
6617
|
fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
|
|
6686
6618
|
})),
|
|
@@ -6692,8 +6624,8 @@ const getComponentCss$W = (size) => {
|
|
|
6692
6624
|
const cssVarBackgroundColor = '--_a';
|
|
6693
6625
|
const dialogHostJssStyle = (background) => {
|
|
6694
6626
|
return {
|
|
6695
|
-
'--pds-internal-grid-outer-column': `calc(${
|
|
6696
|
-
'--pds-internal-grid-margin': `calc(${
|
|
6627
|
+
'--pds-internal-grid-outer-column': `calc(${spacingFluidLg} - ${gridGap})`,
|
|
6628
|
+
'--pds-internal-grid-margin': `calc(${spacingFluidLg} * -1)`,
|
|
6697
6629
|
'--pds-internal-grid-width-min': 'auto',
|
|
6698
6630
|
'--pds-internal-grid-width-max': 'none',
|
|
6699
6631
|
[cssVarBackgroundColor]: background === 'surface' ? colorSurface : colorCanvas,
|
|
@@ -6735,7 +6667,10 @@ const getDialogBackdropTransitionJssStyle = (isVisible, backdrop = 'blur') => {
|
|
|
6735
6667
|
visibility: 'inherit',
|
|
6736
6668
|
pointerEvents: 'auto',
|
|
6737
6669
|
background: colorBackdrop,
|
|
6738
|
-
...(isBackdropBlur &&
|
|
6670
|
+
...(isBackdropBlur && {
|
|
6671
|
+
WebkitBackdropFilter: blurFrosted,
|
|
6672
|
+
backdropFilter: blurFrosted,
|
|
6673
|
+
}),
|
|
6739
6674
|
}
|
|
6740
6675
|
: {
|
|
6741
6676
|
visibility: 'hidden', // element shall not be tabbable with keyboard after fade out transition has finished
|
|
@@ -6774,18 +6709,19 @@ const getScrollerJssStyle = (position) => {
|
|
|
6774
6709
|
};
|
|
6775
6710
|
};
|
|
6776
6711
|
const dialogBorderRadius = `var(${legacyRadiusLarge}, ${radiusXl})`;
|
|
6777
|
-
const dialogPaddingTop =
|
|
6778
|
-
const dialogPaddingBottom = `calc(${
|
|
6779
|
-
const dialogPaddingInline =
|
|
6712
|
+
const dialogPaddingTop = spacingFluidMd$1;
|
|
6713
|
+
const dialogPaddingBottom = `calc(${spacingFluidSm} + ${spacingFluidMd$1})`;
|
|
6714
|
+
const dialogPaddingInline = spacingFluidLg;
|
|
6780
6715
|
const dialogGridJssStyle = () => {
|
|
6781
6716
|
return {
|
|
6782
6717
|
position: 'relative',
|
|
6783
6718
|
display: 'grid',
|
|
6784
|
-
gridTemplate: `auto/${
|
|
6785
|
-
gap: `${
|
|
6719
|
+
gridTemplate: `auto/${spacingFluidSm} minmax(0,1fr) ${spacingFluidSm}`,
|
|
6720
|
+
gap: `${spacingFluidMd$1} calc(${spacingFluidLg} - ${spacingFluidSm})`,
|
|
6786
6721
|
paddingTop: dialogPaddingTop,
|
|
6787
6722
|
paddingBottom: dialogPaddingBottom,
|
|
6788
6723
|
alignContent: 'flex-start',
|
|
6724
|
+
overflow: 'clip',
|
|
6789
6725
|
};
|
|
6790
6726
|
};
|
|
6791
6727
|
const getDialogColorJssStyle = () => {
|
|
@@ -6820,18 +6756,17 @@ const getDialogDismissButtonJssStyle = () => {
|
|
|
6820
6756
|
gridArea: '1/3',
|
|
6821
6757
|
zIndex: 5, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
|
|
6822
6758
|
position: 'sticky',
|
|
6823
|
-
top:
|
|
6824
|
-
marginTop: `calc(-1 * ${dialogPaddingTop} + ${
|
|
6825
|
-
marginInlineEnd:
|
|
6759
|
+
top: spacingFluidSm,
|
|
6760
|
+
marginTop: `calc(-1 * ${dialogPaddingTop} + ${spacingFluidSm})`,
|
|
6761
|
+
marginInlineEnd: spacingFluidSm,
|
|
6826
6762
|
placeSelf: 'flex-start flex-end',
|
|
6827
6763
|
'&::after': {
|
|
6828
6764
|
content: '""',
|
|
6829
6765
|
display: 'block',
|
|
6830
6766
|
position: 'absolute',
|
|
6831
|
-
inset: `calc(-1 * ${
|
|
6767
|
+
inset: `calc(-1 * ${spacingFluidSm}) calc(-1 * ${spacingFluidSm}) -50px -50px`,
|
|
6832
6768
|
pointerEvents: 'none',
|
|
6833
6769
|
zIndex: -1,
|
|
6834
|
-
borderRadius: dialogBorderRadius,
|
|
6835
6770
|
background: `radial-gradient(circle at top right, hsla(from var(${cssVarBackgroundColor}) h s l / 0.35) 0%, transparent 70%)`,
|
|
6836
6771
|
},
|
|
6837
6772
|
};
|
|
@@ -6846,7 +6781,7 @@ const getSlotJssStyle = () => {
|
|
|
6846
6781
|
};
|
|
6847
6782
|
const getSlotHeaderJssStyle = () => {
|
|
6848
6783
|
const paddingTop = dialogPaddingTop;
|
|
6849
|
-
const paddingBottom =
|
|
6784
|
+
const paddingBottom = spacingStaticMd;
|
|
6850
6785
|
return {
|
|
6851
6786
|
gridColumn: '1/-1',
|
|
6852
6787
|
zIndex: 1, // controls layering + creates new stacking context (prevents content within to be above other dialog areas)
|
|
@@ -6881,7 +6816,8 @@ const getSlotFooterJssStyle = () => {
|
|
|
6881
6816
|
inset: `calc(${paddingBlock} - ${offset}) calc(${dialogPaddingInline} - ${offset})`,
|
|
6882
6817
|
background: colorFrosted,
|
|
6883
6818
|
borderRadius: radius3Xl,
|
|
6884
|
-
|
|
6819
|
+
WebkitBackdropFilter: blurFrosted,
|
|
6820
|
+
backdropFilter: blurFrosted,
|
|
6885
6821
|
},
|
|
6886
6822
|
};
|
|
6887
6823
|
};
|
|
@@ -7001,14 +6937,14 @@ const getComponentCss$U = (size, weight, align, color, hyphens, ellipsis) => {
|
|
|
7001
6937
|
...hostHiddenStyles,
|
|
7002
6938
|
}),
|
|
7003
6939
|
},
|
|
7004
|
-
[`::slotted(:is(${HEADING_TAGS.join()}))`]:
|
|
6940
|
+
[`::slotted(:is(${HEADING_TAGS.join()}))`]: {
|
|
7005
6941
|
all: 'unset',
|
|
7006
|
-
}
|
|
6942
|
+
},
|
|
7007
6943
|
},
|
|
7008
6944
|
root: {
|
|
7009
6945
|
all: 'unset',
|
|
7010
6946
|
display: 'block',
|
|
7011
|
-
font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal} ${fontPorscheNext}`,
|
|
6947
|
+
font: `${weightMap[weight]} ${typescale2Xl}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7012
6948
|
...buildResponsiveStyles(size, (v) => ({
|
|
7013
6949
|
fontSize: sizeMap$1[v],
|
|
7014
6950
|
})),
|
|
@@ -7075,7 +7011,7 @@ const isFlippableIcon = (name, source) => {
|
|
|
7075
7011
|
name === 'send'));
|
|
7076
7012
|
};
|
|
7077
7013
|
const getComponentCss$T = (name, source, color, size) => {
|
|
7078
|
-
const dimension = `var(${cssVarSize$1},${leadingNormal})`;
|
|
7014
|
+
const dimension = `var(${cssVarSize$1},${leadingNormal$1})`;
|
|
7079
7015
|
const mask = `url("${buildIconUrl(source || name)}") center/contain no-repeat`;
|
|
7080
7016
|
return getCss({
|
|
7081
7017
|
'@global': {
|
|
@@ -7098,7 +7034,7 @@ const getComponentCss$T = (name, source, color, size) => {
|
|
|
7098
7034
|
pointerEvents: 'none', // disable dragging/ghosting of images
|
|
7099
7035
|
width: dimension,
|
|
7100
7036
|
height: dimension,
|
|
7101
|
-
fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
|
|
7037
|
+
fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
|
|
7102
7038
|
...buildResponsiveStyles(size, (s) => ({
|
|
7103
7039
|
fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
|
|
7104
7040
|
})),
|
|
@@ -7118,96 +7054,80 @@ const getComponentCss$T = (name, source, color, size) => {
|
|
|
7118
7054
|
});
|
|
7119
7055
|
};
|
|
7120
7056
|
|
|
7121
|
-
const
|
|
7122
|
-
const mediaQueryMaxS$2 = getMediaQueryMax('s');
|
|
7123
|
-
const getBackgroundColor = (state) => {
|
|
7124
|
-
const colorMap = {
|
|
7125
|
-
info: colorInfoFrosted,
|
|
7126
|
-
warning: colorWarningFrosted,
|
|
7127
|
-
success: colorSuccessFrosted,
|
|
7128
|
-
error: colorErrorFrosted,
|
|
7129
|
-
};
|
|
7130
|
-
return colorMap[state];
|
|
7131
|
-
};
|
|
7132
|
-
const getNotificationRootJssStyle = (state, hasAction, hasClose) => {
|
|
7133
|
-
return {
|
|
7134
|
-
// display: 'grid', // NOTE: display property is moved into component styled to not apply !important keyword
|
|
7135
|
-
// 2 columns for content and optional close button
|
|
7136
|
-
gridTemplateColumns: `minmax(auto, 1fr)${hasClose ? ' auto' : ''}`,
|
|
7137
|
-
gap: spacingStaticMedium,
|
|
7138
|
-
placeItems: 'start',
|
|
7139
|
-
padding: spacingStaticMedium,
|
|
7140
|
-
...frostedGlassStyle,
|
|
7141
|
-
background: getBackgroundColor(state),
|
|
7142
|
-
borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
|
|
7143
|
-
[mediaQueryMinS$1]: {
|
|
7144
|
-
// 4 columns are for icon, content, optional action button and optional close button
|
|
7145
|
-
gridTemplateColumns: `auto minmax(auto, 1fr)${hasAction ? ' auto' : ''}${hasClose ? ' auto' : ''}`,
|
|
7146
|
-
},
|
|
7147
|
-
...forcedColorsMediaQuery({
|
|
7148
|
-
outline: '2px solid CanvasText',
|
|
7149
|
-
outlineOffset: '-2px',
|
|
7150
|
-
}),
|
|
7151
|
-
};
|
|
7152
|
-
};
|
|
7153
|
-
const getNotificationIconJssStyle = () => ({
|
|
7154
|
-
marginTop: '2px', // To be center aligned with close button
|
|
7155
|
-
[mediaQueryMaxS$2]: {
|
|
7156
|
-
display: 'none',
|
|
7157
|
-
},
|
|
7158
|
-
});
|
|
7159
|
-
const getNotificationContentJssStyle = () => ({
|
|
7160
|
-
display: 'grid',
|
|
7161
|
-
gap: spacingStaticXSmall,
|
|
7162
|
-
marginTop: '2px', // To be center aligned with close button
|
|
7163
|
-
[mediaQueryMinS$1]: {
|
|
7164
|
-
marginLeft: `-${spacingStaticSmall}`,
|
|
7165
|
-
},
|
|
7166
|
-
});
|
|
7167
|
-
|
|
7168
|
-
const INLINE_NOTIFICATION_HEADING_TAGS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
7169
|
-
|
|
7170
|
-
const mediaQueryMaxS$1 = getMediaQueryMax('s');
|
|
7171
|
-
const getTextJssStyle = {
|
|
7172
|
-
margin: 0,
|
|
7173
|
-
color: colorPrimary,
|
|
7174
|
-
};
|
|
7175
|
-
const getHeadingJssStyle = {
|
|
7176
|
-
...headingSmallStyle,
|
|
7177
|
-
...getTextJssStyle,
|
|
7178
|
-
};
|
|
7179
|
-
const getComponentCss$S = (state, hasAction, hasClose) => {
|
|
7057
|
+
const getComponentCss$S = (state, hasAction, hasDismissButton) => {
|
|
7180
7058
|
return getCss({
|
|
7181
7059
|
'@global': {
|
|
7182
7060
|
':host': {
|
|
7183
|
-
display: '
|
|
7061
|
+
display: 'block',
|
|
7184
7062
|
...addImportantToEachRule({
|
|
7185
|
-
...getNotificationRootJssStyle(state, hasAction, hasClose),
|
|
7186
7063
|
...hostHiddenStyles,
|
|
7187
7064
|
}),
|
|
7188
7065
|
},
|
|
7189
7066
|
...preventFoucOfNestedElementsStyles,
|
|
7190
|
-
[
|
|
7067
|
+
'slot[name="heading"],h1,h2,h3,h4,h5,h6': {
|
|
7191
7068
|
all: 'unset',
|
|
7192
|
-
|
|
7193
|
-
|
|
7069
|
+
display: 'block',
|
|
7070
|
+
gridArea: '1/2',
|
|
7071
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7072
|
+
color: colorPrimary,
|
|
7073
|
+
},
|
|
7074
|
+
'slot:not([name]),p': {
|
|
7075
|
+
all: 'unset',
|
|
7076
|
+
display: 'block',
|
|
7077
|
+
gridArea: '2/2',
|
|
7078
|
+
marginTop: spacingStaticXs$1,
|
|
7079
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7080
|
+
color: colorPrimary,
|
|
7081
|
+
},
|
|
7194
7082
|
},
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7083
|
+
notification: {
|
|
7084
|
+
display: 'grid',
|
|
7085
|
+
gridTemplateColumns: `auto minmax(0, 1fr) auto auto`,
|
|
7086
|
+
padding: spacingStaticMd,
|
|
7087
|
+
borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
|
|
7088
|
+
background: notificationBackgroundMap[state],
|
|
7089
|
+
WebkitBackdropFilter: blurFrosted,
|
|
7090
|
+
backdropFilter: blurFrosted,
|
|
7091
|
+
...forcedColorsMediaQuery({
|
|
7092
|
+
outline: '2px solid CanvasText',
|
|
7093
|
+
outlineOffset: '-2px',
|
|
7094
|
+
}),
|
|
7095
|
+
'&::before': {
|
|
7096
|
+
[getMediaQueryMin('s')]: {
|
|
7097
|
+
gridArea: '1/1',
|
|
7098
|
+
placeSelf: 'center',
|
|
7099
|
+
content: '""',
|
|
7100
|
+
width: '1.5rem',
|
|
7101
|
+
height: '1.5rem',
|
|
7102
|
+
marginInlineEnd: spacingStaticSm$1,
|
|
7103
|
+
background: notificationColorMap[state],
|
|
7104
|
+
WebkitMask: `${notificationIconMap[state]} center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
7105
|
+
mask: `${notificationIconMap[state]} center/contain no-repeat`,
|
|
7106
|
+
...forcedColorsMediaQuery({
|
|
7107
|
+
background: 'CanvasText',
|
|
7108
|
+
}),
|
|
7109
|
+
},
|
|
7110
|
+
},
|
|
7199
7111
|
},
|
|
7200
|
-
|
|
7201
|
-
|
|
7112
|
+
...(hasDismissButton && {
|
|
7113
|
+
dismiss: {
|
|
7114
|
+
gridArea: `1/4/3`,
|
|
7115
|
+
marginTop: `calc(-1 * ${spacingStaticXs$1})`,
|
|
7116
|
+
marginInlineEnd: `calc(-1 * ${spacingStaticXs$1})`,
|
|
7117
|
+
marginInlineStart: spacingStaticMd,
|
|
7118
|
+
},
|
|
7119
|
+
}),
|
|
7202
7120
|
...(hasAction && {
|
|
7203
7121
|
action: {
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7122
|
+
gridArea: '3/1/auto/-1',
|
|
7123
|
+
marginTop: spacingStaticMd,
|
|
7124
|
+
[getMediaQueryMin('s')]: {
|
|
7125
|
+
gridArea: '1/3',
|
|
7126
|
+
marginTop: 0,
|
|
7127
|
+
marginInlineStart: spacingStaticMd,
|
|
7207
7128
|
},
|
|
7208
7129
|
},
|
|
7209
7130
|
}),
|
|
7210
|
-
close: dismissButtonJssStyle,
|
|
7211
7131
|
});
|
|
7212
7132
|
};
|
|
7213
7133
|
|
|
@@ -7361,16 +7281,16 @@ const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
7361
7281
|
|
|
7362
7282
|
const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
|
|
7363
7283
|
// TODO: basic button/icon padding can already be set within style function instead of on component style level
|
|
7364
|
-
const formButtonOrIconPadding =
|
|
7284
|
+
const formButtonOrIconPadding = spacingStaticXs$1;
|
|
7365
7285
|
// TODO: if we'd use 12px instead, it wouldn't be necessary for textarea to have a custom vertical padding,
|
|
7366
7286
|
// unfortunately line-height alignment breaks for a select element for some reasons then
|
|
7367
7287
|
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
7368
|
-
const formElementPaddingVertical =
|
|
7288
|
+
const formElementPaddingVertical = spacingStaticSm$1;
|
|
7369
7289
|
// TODO: basic form element padding can already be set within style function instead of on component style level
|
|
7370
|
-
const formElementPaddingHorizontal =
|
|
7290
|
+
const formElementPaddingHorizontal = spacingStaticMd;
|
|
7371
7291
|
const getCalculatedFormElementPaddingHorizontal = (buttonOrIconAmount) => {
|
|
7372
7292
|
// when applied, font-family and font-size needs to be set too for correct calculation of ex-unit ($fontLineHeight)
|
|
7373
|
-
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${
|
|
7293
|
+
return `calc(${formElementLayeredGap} + ${formElementPaddingHorizontal} / 2 + (${leadingNormal$1} + ${formButtonOrIconPadding} * 2) * ${buttonOrIconAmount})`;
|
|
7374
7294
|
};
|
|
7375
7295
|
const getUnitCounterJssStyle = () => {
|
|
7376
7296
|
return {
|
|
@@ -7380,7 +7300,7 @@ const getUnitCounterJssStyle = () => {
|
|
|
7380
7300
|
whiteSpace: 'nowrap',
|
|
7381
7301
|
overflow: 'hidden',
|
|
7382
7302
|
textOverflow: 'ellipsis',
|
|
7383
|
-
font:
|
|
7303
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7384
7304
|
color: colorContrastHigh,
|
|
7385
7305
|
};
|
|
7386
7306
|
};
|
|
@@ -7532,7 +7452,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7532
7452
|
[`&([slot="${headerSlot}"])`]: {
|
|
7533
7453
|
display: 'flex',
|
|
7534
7454
|
flexWrap: 'wrap',
|
|
7535
|
-
gap:
|
|
7455
|
+
gap: spacingFluidXs,
|
|
7536
7456
|
},
|
|
7537
7457
|
},
|
|
7538
7458
|
'::slotted(:is(img,picture))': {
|
|
@@ -7557,7 +7477,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7557
7477
|
overflow: 'hidden', // TODO: discussable if we should prevent text to overflow .root, – e.g. it also prevents a popover from being shown correctly
|
|
7558
7478
|
boxSizing: 'border-box',
|
|
7559
7479
|
borderRadius: `var(${legacyRadiusLarge}, ${radius4Xl})`,
|
|
7560
|
-
padding:
|
|
7480
|
+
padding: spacingFluidSm,
|
|
7561
7481
|
color: colorPrimary,
|
|
7562
7482
|
backgroundColor: colorSurface,
|
|
7563
7483
|
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
@@ -7572,7 +7492,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7572
7492
|
}),
|
|
7573
7493
|
header: {
|
|
7574
7494
|
display: 'flex',
|
|
7575
|
-
gap:
|
|
7495
|
+
gap: spacingFluidSm,
|
|
7576
7496
|
justifyContent: 'space-between',
|
|
7577
7497
|
alignItems: 'flex-start',
|
|
7578
7498
|
},
|
|
@@ -7584,11 +7504,11 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7584
7504
|
}),
|
|
7585
7505
|
image: {
|
|
7586
7506
|
aspectRatio: '8/9',
|
|
7587
|
-
margin: `${
|
|
7507
|
+
margin: `${spacingFluidSm} auto ${spacingFluidXs}`,
|
|
7588
7508
|
overflow: 'hidden',
|
|
7589
7509
|
transition: getTransition('transform', 'moderate'),
|
|
7590
7510
|
[getMediaQueryMin('s')]: {
|
|
7591
|
-
padding: `0 ${
|
|
7511
|
+
padding: `0 ${spacingFluidMd$1}`, // ensures image is not getting to large
|
|
7592
7512
|
},
|
|
7593
7513
|
...hoverMediaQuery({
|
|
7594
7514
|
'.root:hover &': {
|
|
@@ -7604,25 +7524,25 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7604
7524
|
},
|
|
7605
7525
|
heading: {
|
|
7606
7526
|
margin: '0 0 2px', // ua-style reset
|
|
7607
|
-
|
|
7527
|
+
font: `${fontWeightSemibold} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7608
7528
|
...getMultilineEllipsis(3),
|
|
7609
7529
|
},
|
|
7610
7530
|
price: {
|
|
7611
7531
|
margin: 0, // ua-style reset
|
|
7612
|
-
|
|
7532
|
+
font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7613
7533
|
...(hasPriceOriginal && {
|
|
7614
7534
|
display: 'flex',
|
|
7615
7535
|
flexWrap: 'wrap',
|
|
7616
7536
|
justifyContent: 'center',
|
|
7617
|
-
columnGap:
|
|
7537
|
+
columnGap: spacingFluidXs,
|
|
7618
7538
|
}),
|
|
7619
7539
|
},
|
|
7620
7540
|
...(hasDescription && {
|
|
7621
7541
|
description: {
|
|
7622
7542
|
margin: 0, // ua-style reset
|
|
7623
|
-
|
|
7624
|
-
...getMultilineEllipsis(2),
|
|
7543
|
+
font: `${fontWeightNormal$1} ${typescale2Xs} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7625
7544
|
color: colorContrastHigh,
|
|
7545
|
+
...getMultilineEllipsis(2),
|
|
7626
7546
|
},
|
|
7627
7547
|
}),
|
|
7628
7548
|
...(hasPriceOriginal && {
|
|
@@ -7682,7 +7602,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7682
7602
|
all: 'unset',
|
|
7683
7603
|
zIndex: 3,
|
|
7684
7604
|
maxWidth: '34.375rem',
|
|
7685
|
-
|
|
7605
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7686
7606
|
color: colorPrimary,
|
|
7687
7607
|
hyphens: 'inherit',
|
|
7688
7608
|
...mergeDeep(buildResponsiveStyles(size, (v) => ({
|
|
@@ -7694,7 +7614,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7694
7614
|
},
|
|
7695
7615
|
root: {
|
|
7696
7616
|
display: 'grid',
|
|
7697
|
-
gridTemplate: `${
|
|
7617
|
+
gridTemplate: `${spacingFluidMd$1} auto minmax(0px, 1fr) auto ${spacingFluidMd$1}/${spacingFluidMd$1} minmax(0px, 1fr) ${spacingFluidMd$1}`,
|
|
7698
7618
|
width: '100%', // necessary in case tile content overflows in grid or flex context
|
|
7699
7619
|
// Safari workaround to scale the tile properly
|
|
7700
7620
|
'@supports (-webkit-hyphens: auto)': {
|
|
@@ -7712,14 +7632,14 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7712
7632
|
? {
|
|
7713
7633
|
gridArea: '1/1/3/-1',
|
|
7714
7634
|
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
7715
|
-
marginBottom: `calc(${
|
|
7635
|
+
marginBottom: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7716
7636
|
borderStartStartRadius: 'inherit',
|
|
7717
7637
|
borderStartEndRadius: 'inherit',
|
|
7718
7638
|
}
|
|
7719
7639
|
: {
|
|
7720
7640
|
gridArea: '4/1/6/-1',
|
|
7721
7641
|
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
7722
|
-
marginTop: `calc(${
|
|
7642
|
+
marginTop: `calc(${spacingFluidLg} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7723
7643
|
borderEndStartRadius: 'inherit',
|
|
7724
7644
|
borderEndEndRadius: 'inherit',
|
|
7725
7645
|
}),
|
|
@@ -7744,7 +7664,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7744
7664
|
? {
|
|
7745
7665
|
display: 'grid',
|
|
7746
7666
|
gridTemplateColumns: 'minmax(0,1fr) auto',
|
|
7747
|
-
columnGap:
|
|
7667
|
+
columnGap: spacingStaticMd,
|
|
7748
7668
|
}
|
|
7749
7669
|
: {
|
|
7750
7670
|
display: 'flex',
|
|
@@ -7764,7 +7684,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7764
7684
|
'link-or-button': {
|
|
7765
7685
|
minHeight: '54px', // prevent content shift
|
|
7766
7686
|
zIndex: 5,
|
|
7767
|
-
marginTop:
|
|
7687
|
+
marginTop: spacingStaticMd,
|
|
7768
7688
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
7769
7689
|
display: compactValue ? 'none' : 'inline-block',
|
|
7770
7690
|
})),
|
|
@@ -7896,7 +7816,7 @@ const colorMap = {
|
|
|
7896
7816
|
'contrast-low': colorContrastLow,
|
|
7897
7817
|
'contrast-medium': colorContrastMedium,
|
|
7898
7818
|
'contrast-high': colorContrastHigh,
|
|
7899
|
-
inherit: '
|
|
7819
|
+
inherit: 'currentcolor',
|
|
7900
7820
|
};
|
|
7901
7821
|
const getComponentCss$B = (model, safeZone, size, color) => {
|
|
7902
7822
|
const { width, height } = MODEL_SIGNATURES_MANIFEST[model];
|
|
@@ -7911,11 +7831,10 @@ const getComponentCss$B = (model, safeZone, size, color) => {
|
|
|
7911
7831
|
// width + height style can't be !important atm to be backwards compatible with e.g. `<p-model-signature size="inherit" style="height: 50px"/>`
|
|
7912
7832
|
width: `var(${cssVariableWidth},${isSizeInherit ? 'auto' : `${width}px`})`,
|
|
7913
7833
|
height: `var(${cssVariableHeight},auto)`,
|
|
7914
|
-
color: `var(${cssVariableColor},${colorMap[color]})`,
|
|
7915
7834
|
...addImportantToEachRule({
|
|
7916
7835
|
mask: `url(${getSvgUrl(model)}) no-repeat left top / contain`,
|
|
7917
7836
|
aspectRatio: `${width} / ${safeZone ? 36 : height}`, // 36px is the max-height for SVG model signature creation
|
|
7918
|
-
background:
|
|
7837
|
+
background: `var(${cssVariableColor},${colorMap[color]})`, // color="inherit" will use currentcolor for inheritance
|
|
7919
7838
|
...forcedColorsMediaQuery({
|
|
7920
7839
|
background: 'CanvasText',
|
|
7921
7840
|
}),
|
|
@@ -7942,7 +7861,7 @@ const getComponentCss$B = (model, safeZone, size, color) => {
|
|
|
7942
7861
|
const cssVarInternalMultiSelectOptionScaling = '--p-internal-multi-select-option-scaling';
|
|
7943
7862
|
const getComponentCss$A = (isDisabled, selected) => {
|
|
7944
7863
|
const checkboxDimension = `calc(var(${cssVarInternalCheckboxScaling}) * 1.75rem)`;
|
|
7945
|
-
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${
|
|
7864
|
+
const labelPaddingTop = `max(0px, calc((${checkboxDimension} - ${leadingNormal$1}) / 2))`;
|
|
7946
7865
|
return getCss({
|
|
7947
7866
|
'@global': {
|
|
7948
7867
|
':host': {
|
|
@@ -7990,7 +7909,7 @@ const getComponentCss$z = (isDisabled) => {
|
|
|
7990
7909
|
'[role="presentation"]': {
|
|
7991
7910
|
paddingBlock,
|
|
7992
7911
|
paddingInline,
|
|
7993
|
-
font:
|
|
7912
|
+
font: `${fontWeightSemibold} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
7994
7913
|
color: colorPrimary,
|
|
7995
7914
|
...(isDisabled && getDisabledBaseStyles()),
|
|
7996
7915
|
},
|
|
@@ -8025,9 +7944,9 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
8025
7944
|
},
|
|
8026
7945
|
root: {
|
|
8027
7946
|
display: 'grid',
|
|
8028
|
-
gap:
|
|
7947
|
+
gap: spacingStaticXs$1,
|
|
8029
7948
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
|
|
8030
|
-
minWidth: `calc(1rem + ${formElementPaddingHorizontal} +
|
|
7949
|
+
minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(2)})`,
|
|
8031
7950
|
},
|
|
8032
7951
|
filter: getFilterJssStyle(cssVarInternalMultiSelectScaling),
|
|
8033
7952
|
options: getOptionsJssStyle(cssVarInternalMultiSelectScaling),
|
|
@@ -8041,8 +7960,8 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
8041
7960
|
});
|
|
8042
7961
|
};
|
|
8043
7962
|
|
|
8044
|
-
const mediaQueryMinS = getMediaQueryMin('s');
|
|
8045
|
-
const mediaQueryMaxS = getMediaQueryMax('s');
|
|
7963
|
+
const mediaQueryMinS$1 = getMediaQueryMin('s');
|
|
7964
|
+
const mediaQueryMaxS$1 = getMediaQueryMax('s');
|
|
8046
7965
|
const disabledCursorStyle = {
|
|
8047
7966
|
cursor: 'default',
|
|
8048
7967
|
pointerEvents: 'none', // prevents :hover (has no effect when forced), maybe we can remove it since CSS selectors already cover desired behavior
|
|
@@ -8065,18 +7984,18 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8065
7984
|
},
|
|
8066
7985
|
ul: {
|
|
8067
7986
|
display: 'flex',
|
|
8068
|
-
gap:
|
|
7987
|
+
gap: spacingStaticXs$1,
|
|
8069
7988
|
margin: 0,
|
|
8070
7989
|
padding: 0,
|
|
8071
|
-
[mediaQueryMinS]: {
|
|
8072
|
-
gap:
|
|
7990
|
+
[mediaQueryMinS$1]: {
|
|
7991
|
+
gap: spacingStaticSm$1,
|
|
8073
7992
|
},
|
|
8074
7993
|
},
|
|
8075
7994
|
li: {
|
|
8076
7995
|
listStyleType: 'none',
|
|
8077
7996
|
...(pageTotal > 5 && {
|
|
8078
7997
|
// max 5 items including ellipsis at the same time on mobile
|
|
8079
|
-
[mediaQueryMaxS]: {
|
|
7998
|
+
[mediaQueryMaxS$1]: {
|
|
8080
7999
|
[activePage < 4
|
|
8081
8000
|
? // we are at the start, so let's hide start ellipsis and 2 items before end ellipsis
|
|
8082
8001
|
'&.ellip-start,&:nth-child(6),&:nth-child(7),&:not(.ellip):nth-child(8)'
|
|
@@ -8095,7 +8014,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8095
8014
|
})),
|
|
8096
8015
|
},
|
|
8097
8016
|
}),
|
|
8098
|
-
[mediaQueryMinS]: {
|
|
8017
|
+
[mediaQueryMinS$1]: {
|
|
8099
8018
|
...(pageTotal < 8
|
|
8100
8019
|
? { '&.ellip': hiddenStyle }
|
|
8101
8020
|
: // max 7 items including ellipsis at the same time on tablet
|
|
@@ -8119,7 +8038,7 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8119
8038
|
minWidth: '2.25rem',
|
|
8120
8039
|
height: '2.25rem',
|
|
8121
8040
|
boxSizing: 'border-box',
|
|
8122
|
-
|
|
8041
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
8123
8042
|
whiteSpace: 'nowrap',
|
|
8124
8043
|
cursor: 'pointer',
|
|
8125
8044
|
backgroundColor: 'transparent',
|
|
@@ -8129,7 +8048,8 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
8129
8048
|
outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style
|
|
8130
8049
|
...hoverMediaQuery({
|
|
8131
8050
|
'&:not([aria-disabled]):not(.ellipsis):hover': {
|
|
8132
|
-
|
|
8051
|
+
WebkitBackdropFilter: blurFrosted,
|
|
8052
|
+
backdropFilter: blurFrosted,
|
|
8133
8053
|
background: colorFrosted,
|
|
8134
8054
|
...forcedColorsMediaQuery({
|
|
8135
8055
|
outline: '2px solid CanvasText',
|
|
@@ -8165,7 +8085,7 @@ const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
|
|
|
8165
8085
|
const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCompact) => {
|
|
8166
8086
|
const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
8167
8087
|
const gap = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
|
|
8168
|
-
const inputBorderWidth =
|
|
8088
|
+
const inputBorderWidth = '1px';
|
|
8169
8089
|
const inputDimension = `calc(var(${cssVarInternalPinCodeScaling}) * 3.5rem)`;
|
|
8170
8090
|
const inputPadding = `calc(11.2px * (var(${cssVarInternalPinCodeScaling}) - 0.64285714) + 4px)`;
|
|
8171
8091
|
const inputMinWidth = `calc(1ch + ${inputPadding} * 2 + ${inputBorderWidth} * 2)`;
|
|
@@ -8192,7 +8112,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
|
|
|
8192
8112
|
border: `${inputBorderWidth} solid ${formStateBorderColor}`,
|
|
8193
8113
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
8194
8114
|
background: formStateBackgroundColor,
|
|
8195
|
-
font:
|
|
8115
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / calc(${leadingNormal$1} + 6px) ${fontPorscheNext$1}`, // a minimum line-height is needed for input, otherwise value is scrollable in Chrome, +6px is aligned with how Safari visualize date/time input highlighting
|
|
8196
8116
|
color: colorPrimary,
|
|
8197
8117
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
8198
8118
|
textOverflow: 'ellipsis',
|
|
@@ -8214,7 +8134,7 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
|
|
|
8214
8134
|
root: {
|
|
8215
8135
|
all: 'unset',
|
|
8216
8136
|
display: 'grid',
|
|
8217
|
-
gap:
|
|
8137
|
+
gap: spacingStaticXs$1,
|
|
8218
8138
|
},
|
|
8219
8139
|
wrapper: {
|
|
8220
8140
|
position: 'relative',
|
|
@@ -8268,20 +8188,21 @@ const getComponentCss$v = () => {
|
|
|
8268
8188
|
},
|
|
8269
8189
|
...preventFoucOfNestedElementsStyles,
|
|
8270
8190
|
p: {
|
|
8271
|
-
|
|
8191
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
8272
8192
|
margin: 0,
|
|
8273
8193
|
},
|
|
8274
8194
|
button: {
|
|
8275
8195
|
all: 'unset',
|
|
8276
8196
|
display: 'block',
|
|
8277
|
-
font: `${
|
|
8278
|
-
width:
|
|
8279
|
-
height:
|
|
8197
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width/height definition based on ex-unit
|
|
8198
|
+
width: leadingNormal$1, // width needed to improve ssr support
|
|
8199
|
+
height: leadingNormal$1, // height needed to improve ssr support
|
|
8280
8200
|
borderRadius: radiusFull,
|
|
8281
8201
|
cursor: 'pointer',
|
|
8282
8202
|
backgroundColor: colorFrosted,
|
|
8283
8203
|
transition: getTransition('background-color'),
|
|
8284
|
-
|
|
8204
|
+
WebkitBackdropFilter: blurFrosted,
|
|
8205
|
+
backdropFilter: blurFrosted,
|
|
8285
8206
|
...hoverMediaQuery({
|
|
8286
8207
|
'&:hover': {
|
|
8287
8208
|
backgroundColor: colorFrostedSoft,
|
|
@@ -8295,7 +8216,7 @@ const getComponentCss$v = () => {
|
|
|
8295
8216
|
pointerEvents: 'none',
|
|
8296
8217
|
filter: `drop-shadow(0 0 16px ${shadowColor})`,
|
|
8297
8218
|
backdropFilter: 'drop-shadow(0 0 transparent)', // workaround for Firefox bug not rendering PDS frosted glass correctly when nested inside CSS filter: https://bugzilla.mozilla.org/show_bug.cgi?id=1797051
|
|
8298
|
-
animation: `var(${cssVariableAnimationDuration}, ${
|
|
8219
|
+
animation: `var(${cssVariableAnimationDuration}, ${durationSm}) fade-in ${easeInOut} forwards`,
|
|
8299
8220
|
'&:not(:popover-open)': {
|
|
8300
8221
|
display: 'none', // ensures popover is not flickering when closed in some situations
|
|
8301
8222
|
},
|
|
@@ -8319,11 +8240,11 @@ const getComponentCss$v = () => {
|
|
|
8319
8240
|
maxWidth: `min(calc(100dvw - ${POPOVER_SAFE_ZONE * 2}px), 48ch)`,
|
|
8320
8241
|
width: 'max-content', // ensures in older browsers correct width
|
|
8321
8242
|
boxSizing: 'border-box',
|
|
8322
|
-
padding: `${
|
|
8243
|
+
padding: `${spacingStaticSm$1} ${spacingStaticMd}`,
|
|
8323
8244
|
pointerEvents: 'auto',
|
|
8324
8245
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusLg})`,
|
|
8325
|
-
...textSmallStyle,
|
|
8326
8246
|
background: colorCanvas,
|
|
8247
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
8327
8248
|
color: colorPrimary,
|
|
8328
8249
|
...forcedColorsMediaQuery({
|
|
8329
8250
|
outline: '2px solid CanvasText',
|
|
@@ -8338,11 +8259,11 @@ const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>
|
|
|
8338
8259
|
const getComponentCss$u = (disabled, loading, state) => {
|
|
8339
8260
|
const { formStateBackgroundColor, formStateBorderColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
8340
8261
|
const disabledOrLoading = isDisabledOrLoading(disabled, loading);
|
|
8341
|
-
const radioBorderWidth =
|
|
8262
|
+
const radioBorderWidth = '1px';
|
|
8342
8263
|
const radioDimension = `calc(var(${cssVarInternalRadioGroupOptionScaling}) * 1.75rem)`;
|
|
8343
|
-
const radioMarginBlock = `max(0px, calc((${
|
|
8264
|
+
const radioMarginBlock = `max(0px, calc((${leadingNormal$1} - ${radioDimension}) / 2))`;
|
|
8344
8265
|
const radioTouchInset = `calc(-${radioBorderWidth} - max(0px, calc(24px - ${radioDimension}) / 2))`;
|
|
8345
|
-
const labelPaddingTop = `max(0px, calc((${radioDimension} - ${
|
|
8266
|
+
const labelPaddingTop = `max(0px, calc((${radioDimension} - ${leadingNormal$1}) / 2))`;
|
|
8346
8267
|
const labelPaddingInlineStart = `calc(11.2px * (var(${cssVarInternalRadioGroupOptionScaling}) - 0.64285714) + 4px)`;
|
|
8347
8268
|
return getCss({
|
|
8348
8269
|
'@global': {
|
|
@@ -8361,7 +8282,7 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8361
8282
|
height: radioDimension,
|
|
8362
8283
|
marginBlock: radioMarginBlock,
|
|
8363
8284
|
boxSizing: 'border-box',
|
|
8364
|
-
font: `${
|
|
8285
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
|
|
8365
8286
|
background: formStateBackgroundColor,
|
|
8366
8287
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
8367
8288
|
border: `${radioBorderWidth} solid ${formStateBorderColor}`,
|
|
@@ -8407,14 +8328,14 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8407
8328
|
root: {
|
|
8408
8329
|
display: 'grid',
|
|
8409
8330
|
gridTemplateColumns: 'auto minmax(0, 1fr)',
|
|
8410
|
-
rowGap:
|
|
8331
|
+
rowGap: spacingStaticXs$1,
|
|
8411
8332
|
},
|
|
8412
8333
|
wrapper: {
|
|
8413
8334
|
position: 'relative',
|
|
8414
8335
|
display: 'flex',
|
|
8415
8336
|
alignItems: 'center',
|
|
8416
8337
|
alignSelf: 'flex-start',
|
|
8417
|
-
minHeight:
|
|
8338
|
+
minHeight: leadingNormal$1, // necessary for compact mode
|
|
8418
8339
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
8419
8340
|
...(disabled && getDisabledBaseStyles()),
|
|
8420
8341
|
},
|
|
@@ -8475,7 +8396,7 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
|
|
|
8475
8396
|
all: 'unset',
|
|
8476
8397
|
display: 'grid',
|
|
8477
8398
|
justifySelf: 'flex-start',
|
|
8478
|
-
rowGap:
|
|
8399
|
+
rowGap: spacingStaticXs$1,
|
|
8479
8400
|
},
|
|
8480
8401
|
wrapper: {
|
|
8481
8402
|
alignItems: 'start',
|
|
@@ -8569,6 +8490,10 @@ const getScrollIndicatorStyles = (direction, isVisible, isSticky, hasScrollbar,
|
|
|
8569
8490
|
...(hasScrollbar && {
|
|
8570
8491
|
marginTop: `calc(-1 * ${scrollbarWidth})`,
|
|
8571
8492
|
}),
|
|
8493
|
+
...(hasScrollbar &&
|
|
8494
|
+
pointerCoarseMediaQuery({
|
|
8495
|
+
marginTop: 0,
|
|
8496
|
+
})),
|
|
8572
8497
|
display: 'grid',
|
|
8573
8498
|
alignSelf: 'center',
|
|
8574
8499
|
width: '1.5rem',
|
|
@@ -8612,7 +8537,8 @@ isSticky, hasScrollbar, isCompact) => {
|
|
|
8612
8537
|
: !isIndicatorNextVisible
|
|
8613
8538
|
? 'left'
|
|
8614
8539
|
: 'both';
|
|
8615
|
-
const mask = `${getSmoothMask(fadeEdges)} 0 0/auto no-repeat
|
|
8540
|
+
const mask = `${getSmoothMask(fadeEdges)} 0 0/auto no-repeat`;
|
|
8541
|
+
const scrollbarMask = `linear-gradient(black,black) 0 bottom/auto ${scrollbarWidth} no-repeat`;
|
|
8616
8542
|
return getCss({
|
|
8617
8543
|
'@global': {
|
|
8618
8544
|
':host': {
|
|
@@ -8643,13 +8569,25 @@ isSticky, hasScrollbar, isCompact) => {
|
|
|
8643
8569
|
gridTemplateColumns: `${safeZone} minmax(auto,1fr) ${safeZone}`,
|
|
8644
8570
|
margin: `calc(-1 * ${safeZone})`, // compensate padding to ensure that `:host` is aligned with other elements
|
|
8645
8571
|
padding: `${safeZone} 0px${hasScrollbar ? ` calc(${safeZone} + ${scrollbarWidth})` : ''}`, // ensure enough space is available for focus ring of slotted elements (horizontal space is given by `.sentinel`)
|
|
8572
|
+
scrollbarWidth: hasScrollbar ? 'thin' : 'none',
|
|
8573
|
+
// Override for touch devices to avoid issues with ios not rendering mask at all when using multiple mask layers
|
|
8574
|
+
...(hasScrollbar &&
|
|
8575
|
+
pointerCoarseMediaQuery({
|
|
8576
|
+
padding: `${safeZone} 0px`,
|
|
8577
|
+
})),
|
|
8646
8578
|
outline: 'none', // focus ring is applied to `.root`, it would be cut off by the mask if applied to `.scroll`
|
|
8647
8579
|
overflow: 'auto hidden',
|
|
8648
8580
|
...(fadeEdges !== 'none' && {
|
|
8649
|
-
WebkitMask: mask, // necessary for Sogou browser support :-)
|
|
8650
|
-
mask,
|
|
8581
|
+
WebkitMask: hasScrollbar ? `${mask},${scrollbarMask}` : mask, // necessary for Sogou browser support :-)
|
|
8582
|
+
mask: hasScrollbar ? `${mask},${scrollbarMask}` : mask,
|
|
8651
8583
|
}),
|
|
8652
|
-
|
|
8584
|
+
// Override for touch devices to avoid issues with ios not rendering mask at all when using multiple mask layers
|
|
8585
|
+
...(fadeEdges !== 'none' &&
|
|
8586
|
+
hasScrollbar &&
|
|
8587
|
+
pointerCoarseMediaQuery({
|
|
8588
|
+
WebkitMask: mask,
|
|
8589
|
+
mask: mask,
|
|
8590
|
+
})),
|
|
8653
8591
|
},
|
|
8654
8592
|
// as soon as `@container scroll-state(scrollable: left)` has better browser support we can get rid of sentinel and IntersectionObserver
|
|
8655
8593
|
sentinel: {
|
|
@@ -8679,7 +8617,7 @@ const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
|
|
|
8679
8617
|
const padding = hasIconAndSlottedContent
|
|
8680
8618
|
? `${verticalPadding} ${horizontalPadding} ${verticalPadding} ${verticalPadding}`
|
|
8681
8619
|
: `${verticalPadding} ${horizontalPadding}`;
|
|
8682
|
-
const dimension = `calc(max(${
|
|
8620
|
+
const dimension = `calc(max(${leadingNormal$1}, ${scalingVar} * (${leadingNormal$1} + 10px)) + (${verticalPadding} + 1px) * 2)`;
|
|
8683
8621
|
return { padding, dimension };
|
|
8684
8622
|
};
|
|
8685
8623
|
const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, hasSlottedContent) => {
|
|
@@ -8704,7 +8642,7 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
|
|
|
8704
8642
|
minHeight: dimension,
|
|
8705
8643
|
minWidth: dimension,
|
|
8706
8644
|
padding: padding,
|
|
8707
|
-
border:
|
|
8645
|
+
border: `1px solid ${isSelected ? formStateBorderHoverColor : formStateBorderColor}`,
|
|
8708
8646
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
8709
8647
|
background: formStateBackgroundColor,
|
|
8710
8648
|
color: colorPrimary,
|
|
@@ -8776,7 +8714,7 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
|
|
|
8776
8714
|
root: {
|
|
8777
8715
|
all: 'unset',
|
|
8778
8716
|
display: 'grid',
|
|
8779
|
-
gap:
|
|
8717
|
+
gap: spacingStaticXs$1,
|
|
8780
8718
|
},
|
|
8781
8719
|
// .label / .required
|
|
8782
8720
|
...getFunctionalComponentLabelStyles(disabled, false, hideLabel, {
|
|
@@ -8840,9 +8778,9 @@ const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
8840
8778
|
},
|
|
8841
8779
|
root: {
|
|
8842
8780
|
display: 'grid',
|
|
8843
|
-
gap:
|
|
8781
|
+
gap: spacingStaticXs$1,
|
|
8844
8782
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character plus the ellipsis dots.
|
|
8845
|
-
minWidth: `calc(1rem + ${formElementPaddingHorizontal} +
|
|
8783
|
+
minWidth: `calc(1rem + ${formElementPaddingHorizontal} + 1px * 2 + ${getCalculatedFormElementPaddingHorizontal(1)})`,
|
|
8846
8784
|
},
|
|
8847
8785
|
filter: getFilterJssStyle(cssVarInternalSelectScaling),
|
|
8848
8786
|
options: getOptionsJssStyle(cssVarInternalSelectScaling),
|
|
@@ -8899,7 +8837,7 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
|
8899
8837
|
...getDialogTransitionJssStyle(isOpen, '^'),
|
|
8900
8838
|
width: '100%',
|
|
8901
8839
|
alignSelf: 'flex-end',
|
|
8902
|
-
marginBlockStart:
|
|
8840
|
+
marginBlockStart: spacingFluidLg, // ensures minimal space at the top to visualize paper sheet like border top radius in case sheet becomes scrollable
|
|
8903
8841
|
borderTopLeftRadius: dialogBorderRadius,
|
|
8904
8842
|
borderTopRightRadius: dialogBorderRadius,
|
|
8905
8843
|
...forcedColorsMediaQuery({
|
|
@@ -8925,7 +8863,7 @@ const cssVarColor = '--p-spinner-color';
|
|
|
8925
8863
|
*/
|
|
8926
8864
|
const cssVarTrackColor = '--p-spinner-track-color';
|
|
8927
8865
|
const getComponentCss$m = (color, size) => {
|
|
8928
|
-
const dimension = `var(${cssVarSize},${leadingNormal})`;
|
|
8866
|
+
const dimension = `var(${cssVarSize},${leadingNormal$1})`;
|
|
8929
8867
|
const strokeDasharray = '69'; // C = 2πR
|
|
8930
8868
|
const animationDuration = `var(${cssVariableAnimationDuration}, ${durationXl})`;
|
|
8931
8869
|
return getCss({
|
|
@@ -8962,7 +8900,7 @@ const getComponentCss$m = (color, size) => {
|
|
|
8962
8900
|
div: {
|
|
8963
8901
|
width: dimension,
|
|
8964
8902
|
height: dimension,
|
|
8965
|
-
fontFamily: fontPorscheNext, // needed for correct width/height definition based on ex-unit
|
|
8903
|
+
fontFamily: fontPorscheNext$1, // needed for correct width/height definition based on ex-unit
|
|
8966
8904
|
...buildResponsiveStyles(size, (s) => ({
|
|
8967
8905
|
fontSize: sizeMap$1[s], // needed for correct width/height definition based on ex-unit
|
|
8968
8906
|
})),
|
|
@@ -9034,18 +8972,19 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
9034
8972
|
paddingBlock: '6px',
|
|
9035
8973
|
width: 'max-content',
|
|
9036
8974
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
9037
|
-
font:
|
|
9038
|
-
fontSize: 'inherit', // necessary because of all: unset
|
|
8975
|
+
font: `${fontWeightNormal$1} inherit / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9039
8976
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusFull})`,
|
|
9040
8977
|
...(isStateCurrent && {
|
|
9041
|
-
|
|
8978
|
+
WebkitBackdropFilter: blurFrosted,
|
|
8979
|
+
backdropFilter: blurFrosted,
|
|
9042
8980
|
background: colorFrosted,
|
|
9043
8981
|
}),
|
|
9044
8982
|
...(!isDisabled &&
|
|
9045
8983
|
hoverMediaQuery({
|
|
9046
8984
|
transition: getTransition('background-color'),
|
|
9047
8985
|
'&:hover': {
|
|
9048
|
-
|
|
8986
|
+
WebkitBackdropFilter: blurFrosted,
|
|
8987
|
+
backdropFilter: blurFrosted,
|
|
9049
8988
|
background: colorFrosted,
|
|
9050
8989
|
},
|
|
9051
8990
|
})),
|
|
@@ -9062,10 +9001,9 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
9062
9001
|
},
|
|
9063
9002
|
},
|
|
9064
9003
|
icon: {
|
|
9065
|
-
font:
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
height: fontLineHeight,
|
|
9004
|
+
font: `inherit ${fontPorscheNext$1}`, // necessary because of all: unset and to correctly calculate width/height based on ex-unit
|
|
9005
|
+
width: leadingNormal$1,
|
|
9006
|
+
height: leadingNormal$1,
|
|
9069
9007
|
forcedColorAdjust: 'none',
|
|
9070
9008
|
...(isStateCurrentOrUndefined && {
|
|
9071
9009
|
display: 'grid',
|
|
@@ -9105,8 +9043,8 @@ const getComponentCss$k = (size) => {
|
|
|
9105
9043
|
},
|
|
9106
9044
|
scroller: {
|
|
9107
9045
|
placeSelf: 'flex-start', // ensures scroller doesn't get stretched in x- or y-axis in case the stepper-horizontal is taller than the scroller (e.g. when placed in flex or grid context)
|
|
9108
|
-
|
|
9109
|
-
...buildResponsiveStyles(size, (s) => ({ fontSize:
|
|
9046
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9047
|
+
...buildResponsiveStyles(size, (s) => ({ fontSize: sizeMap$1[s] })),
|
|
9110
9048
|
},
|
|
9111
9049
|
});
|
|
9112
9050
|
};
|
|
@@ -9125,12 +9063,12 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9125
9063
|
const { buttonBorderColor, buttonBorderColorHover, buttonBackgroundColor, toggleBackgroundColor, textColor } = getColors$1(isChecked, isLoading);
|
|
9126
9064
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
9127
9065
|
const gap = `calc(11.2px * (var(${cssVarInternalSwitchScaling}) - 0.64285714) + 4px)`;
|
|
9128
|
-
const buttonBorderWidth =
|
|
9066
|
+
const buttonBorderWidth = '1px';
|
|
9129
9067
|
const buttonWidth = `calc(var(${cssVarInternalSwitchScaling}) * 3rem)`;
|
|
9130
9068
|
const buttonHeight = `calc(var(${cssVarInternalSwitchScaling}) * 1.75rem)`;
|
|
9131
|
-
const buttonMarginBlock = `max(0px, calc((${
|
|
9069
|
+
const buttonMarginBlock = `max(0px, calc((${leadingNormal$1} - ${buttonHeight}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
|
|
9132
9070
|
const buttonTouchInset = `calc(-${buttonBorderWidth} - max(0px, calc(24px - ${buttonHeight}) / 2))`; // Positions the switch ::before pseudo-element with a negative offset to align it with the touch target.
|
|
9133
|
-
const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${
|
|
9071
|
+
const labelPaddingTop = `max(0px, calc((${buttonHeight} - ${leadingNormal$1}) / 2))`; // Vertically centers the switch label relative to the switch size (depending on which is smaller).
|
|
9134
9072
|
const toggleDimension = `calc(var(${cssVarInternalSwitchScaling}) * 1.25rem)`;
|
|
9135
9073
|
const toggleTranslateX = `calc(var(${cssVarInternalSwitchScaling}) * .1875rem)`;
|
|
9136
9074
|
return getCss({
|
|
@@ -9143,7 +9081,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9143
9081
|
...addImportantToEachRule({
|
|
9144
9082
|
...(isDisabled && getDisabledBaseStyles()),
|
|
9145
9083
|
outline: 0, // custom element is able to delegate the focus
|
|
9146
|
-
font: `${
|
|
9084
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct gap definition based on ex-unit
|
|
9147
9085
|
gap,
|
|
9148
9086
|
...hostHiddenStyles,
|
|
9149
9087
|
...buildResponsiveStyles(isStretched, (stretchValue) => ({
|
|
@@ -9164,7 +9102,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9164
9102
|
width: buttonWidth,
|
|
9165
9103
|
height: buttonHeight,
|
|
9166
9104
|
marginBlock: buttonMarginBlock,
|
|
9167
|
-
font: `${
|
|
9105
|
+
font: `${typescaleSm$1} ${fontPorscheNext$1}`, // needed for correct width and height definition based on ex-unit
|
|
9168
9106
|
border: `${buttonBorderWidth} solid ${buttonBorderColor}`,
|
|
9169
9107
|
borderRadius: radiusFull,
|
|
9170
9108
|
background: buttonBackgroundColor,
|
|
@@ -9190,7 +9128,7 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
9190
9128
|
},
|
|
9191
9129
|
},
|
|
9192
9130
|
label: {
|
|
9193
|
-
|
|
9131
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9194
9132
|
minWidth: 0, // prevents flex child to overflow max available parent size
|
|
9195
9133
|
minHeight: 0, // prevents flex child to overflow max available parent size
|
|
9196
9134
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
@@ -9267,10 +9205,10 @@ const getComponentCss$h = (isCompact, layout) => {
|
|
|
9267
9205
|
[cssVariableTableHoverColor]: colorFrosted,
|
|
9268
9206
|
[cssVariableTableBorderColor]: colorContrastLow,
|
|
9269
9207
|
...(isCompact && {
|
|
9270
|
-
[cssVariableTablePadding]:
|
|
9208
|
+
[cssVariableTablePadding]: spacingStaticSm$1,
|
|
9271
9209
|
}),
|
|
9272
9210
|
...hostHiddenStyles,
|
|
9273
|
-
|
|
9211
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9274
9212
|
color: colorPrimary,
|
|
9275
9213
|
textAlign: 'start',
|
|
9276
9214
|
}),
|
|
@@ -9278,7 +9216,7 @@ const getComponentCss$h = (isCompact, layout) => {
|
|
|
9278
9216
|
...preventFoucOfNestedElementsStyles,
|
|
9279
9217
|
},
|
|
9280
9218
|
caption: {
|
|
9281
|
-
marginBottom:
|
|
9219
|
+
marginBottom: spacingFluidMd$1,
|
|
9282
9220
|
},
|
|
9283
9221
|
table: {
|
|
9284
9222
|
display: 'table',
|
|
@@ -9303,7 +9241,7 @@ const getComponentCss$g = (multiline) => {
|
|
|
9303
9241
|
display: 'table-cell',
|
|
9304
9242
|
verticalAlign: 'middle',
|
|
9305
9243
|
...addImportantToEachRule({
|
|
9306
|
-
padding: `var(${cssVariableTablePadding}, ${
|
|
9244
|
+
padding: `var(${cssVariableTablePadding}, ${spacingFluidSm})`,
|
|
9307
9245
|
margin: 0,
|
|
9308
9246
|
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
9309
9247
|
...hostHiddenStyles,
|
|
@@ -9327,7 +9265,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9327
9265
|
':host': {
|
|
9328
9266
|
display: 'table-cell',
|
|
9329
9267
|
...addImportantToEachRule({
|
|
9330
|
-
padding: `2px var(${cssVariableTablePadding}, ${
|
|
9268
|
+
padding: `2px var(${cssVariableTablePadding}, ${spacingFluidSm}) var(${cssVariableTablePadding}, ${spacingFluidSm})`,
|
|
9331
9269
|
verticalAlign: 'bottom',
|
|
9332
9270
|
whiteSpace: multiline ? 'normal' : 'nowrap',
|
|
9333
9271
|
...hostHiddenStyles,
|
|
@@ -9339,7 +9277,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9339
9277
|
button: {
|
|
9340
9278
|
position: 'relative',
|
|
9341
9279
|
display: 'flex',
|
|
9342
|
-
gap:
|
|
9280
|
+
gap: spacingStaticXs$1,
|
|
9343
9281
|
width: 'auto',
|
|
9344
9282
|
margin: 0, // Removes default button margin on safari 15
|
|
9345
9283
|
padding: 0,
|
|
@@ -9353,6 +9291,9 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9353
9291
|
border: 0,
|
|
9354
9292
|
zIndex: 0,
|
|
9355
9293
|
cursor: 'pointer',
|
|
9294
|
+
'&:focus, &:focus-visible': {
|
|
9295
|
+
outline: 'none',
|
|
9296
|
+
},
|
|
9356
9297
|
// TODO: re-think if ::before is still needed
|
|
9357
9298
|
'&::before': {
|
|
9358
9299
|
content: '""',
|
|
@@ -9369,7 +9310,8 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9369
9310
|
},
|
|
9370
9311
|
},
|
|
9371
9312
|
'&:hover::before': {
|
|
9372
|
-
|
|
9313
|
+
WebkitBackdropFilter: blurFrosted,
|
|
9314
|
+
backdropFilter: blurFrosted,
|
|
9373
9315
|
backgroundColor: colorFrosted,
|
|
9374
9316
|
},
|
|
9375
9317
|
}),
|
|
@@ -9412,9 +9354,7 @@ const getComponentCss$d = () => {
|
|
|
9412
9354
|
':host': {
|
|
9413
9355
|
display: 'table-header-group',
|
|
9414
9356
|
...addImportantToEachRule({
|
|
9415
|
-
|
|
9416
|
-
lineHeight: fontLineHeight,
|
|
9417
|
-
fontWeight: fontWeightSemiBold,
|
|
9357
|
+
font: `${fontWeightSemibold} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9418
9358
|
borderBottom: `1px solid var(${cssVariableTableBorderColor})`,
|
|
9419
9359
|
...hostHiddenStyles,
|
|
9420
9360
|
}),
|
|
@@ -9448,13 +9388,14 @@ const getComponentCss$c = () => {
|
|
|
9448
9388
|
});
|
|
9449
9389
|
};
|
|
9450
9390
|
|
|
9391
|
+
const delayTabStyleAttribute = 'data-delay';
|
|
9451
9392
|
const backgroundMap = {
|
|
9452
9393
|
canvas: colorCanvas,
|
|
9453
9394
|
surface: colorSurface,
|
|
9454
9395
|
frosted: colorFrosted,
|
|
9455
9396
|
};
|
|
9456
9397
|
const fontSizeText = {
|
|
9457
|
-
small: typescaleSm,
|
|
9398
|
+
small: typescaleSm$1,
|
|
9458
9399
|
medium: typescaleMd,
|
|
9459
9400
|
};
|
|
9460
9401
|
const getComponentCss$b = (background, size, isCompact) => {
|
|
@@ -9479,23 +9420,27 @@ const getComponentCss$b = (background, size, isCompact) => {
|
|
|
9479
9420
|
...(background === 'none' && {
|
|
9480
9421
|
background: colorFrosted,
|
|
9481
9422
|
}),
|
|
9482
|
-
font: `${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`,
|
|
9423
|
+
font: `${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9483
9424
|
...buildResponsiveStyles(size, (sizeValue) => ({
|
|
9484
9425
|
fontSize: fontSizeText[sizeValue],
|
|
9485
9426
|
})),
|
|
9486
9427
|
color: colorPrimary,
|
|
9487
|
-
transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
|
|
9488
9428
|
},
|
|
9489
9429
|
'&(a:focus-visible),&(button:focus-visible)': getFocusBaseStyles(),
|
|
9490
9430
|
...hoverMediaQuery({
|
|
9491
9431
|
'&(a:not([aria-current="true"]):hover),&(button:not([aria-selected="true"]):hover)': {
|
|
9432
|
+
// Only applied on hover since applying it globally causes the active tab to visually flash when navigating in SPAs (where the tabs-bar persist across routes but the children tabs change).
|
|
9433
|
+
transition: `${getTransition('color', 'moderate')}, ${getTransition('background-color')}`,
|
|
9492
9434
|
background: colorFrostedStrong,
|
|
9493
9435
|
},
|
|
9494
9436
|
}),
|
|
9437
|
+
// The data attribute is applied before the tabs switching animation runs in the utils to delay the selected tab styles until the animation is finished
|
|
9438
|
+
[`&(a[${delayTabStyleAttribute}]),&(button[${delayTabStyleAttribute}])`]: {
|
|
9439
|
+
transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd$1}`, // the background shall be changed immediately after the bar transition has finished
|
|
9440
|
+
},
|
|
9495
9441
|
'&(a[aria-current="true"]),&(button[aria-selected="true"])': {
|
|
9496
9442
|
color: colorCanvas,
|
|
9497
9443
|
background: colorPrimary,
|
|
9498
|
-
transition: `${getTransition('color', 'moderate')}, background-color 0s linear ${durationMd}`, // the background shall be changed immediately after the bar transition has finished
|
|
9499
9444
|
},
|
|
9500
9445
|
...forcedColorsMediaQuery({
|
|
9501
9446
|
'&(a),&(button)': {
|
|
@@ -9611,7 +9556,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9611
9556
|
background: colorFrosted,
|
|
9612
9557
|
color: colorPrimary,
|
|
9613
9558
|
textAlign: 'start',
|
|
9614
|
-
|
|
9559
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9615
9560
|
...hoverMediaQuery({
|
|
9616
9561
|
'&:hover > .icon': {
|
|
9617
9562
|
backgroundColor: colorFrosted,
|
|
@@ -9629,7 +9574,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9629
9574
|
display: 'block',
|
|
9630
9575
|
marginBottom: '-4px',
|
|
9631
9576
|
color: colorContrastHigh,
|
|
9632
|
-
fontSize:
|
|
9577
|
+
fontSize: typescaleXs$1,
|
|
9633
9578
|
},
|
|
9634
9579
|
}),
|
|
9635
9580
|
icon: {
|
|
@@ -9690,9 +9635,9 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
|
|
|
9690
9635
|
position: 'relative', // necessary as relative anchor to ensure click area of optional slotted focusable element is in sync
|
|
9691
9636
|
display: 'flex',
|
|
9692
9637
|
gap: '2px',
|
|
9693
|
-
padding: compact ? '1px 6px' : `${
|
|
9694
|
-
borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' :
|
|
9695
|
-
font:
|
|
9638
|
+
padding: compact ? '1px 6px' : `${spacingStaticXs} 9px`,
|
|
9639
|
+
borderRadius: `var(${legacyRadiusSmall}, calc(${compact ? '1px' : spacingStaticXs} + (${leadingNormal$1} / 2)))`, // ensures pill shape has a maximum border radius to support multiline.
|
|
9640
|
+
font: `${fontWeightNormal$1} ${typescaleXs$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9696
9641
|
...(variant === 'secondary' && {
|
|
9697
9642
|
WebkitBackdropFilter: blurFrosted,
|
|
9698
9643
|
backdropFilter: blurFrosted,
|
|
@@ -9768,7 +9713,7 @@ const getComponentCss$6 = (type) => {
|
|
|
9768
9713
|
}),
|
|
9769
9714
|
},
|
|
9770
9715
|
'ol,ul': {
|
|
9771
|
-
|
|
9716
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9772
9717
|
margin: 0,
|
|
9773
9718
|
padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) 0`,
|
|
9774
9719
|
listStyleType: 'none',
|
|
@@ -9776,8 +9721,8 @@ const getComponentCss$6 = (type) => {
|
|
|
9776
9721
|
},
|
|
9777
9722
|
// css selector for text-list-item
|
|
9778
9723
|
'::slotted(*)': addImportantToEachRule({
|
|
9779
|
-
[cssVariablePaddingTop]:
|
|
9780
|
-
[cssVariablePaddingBottom]:
|
|
9724
|
+
[cssVariablePaddingTop]: spacingStaticXs$1, // padding top for nested list
|
|
9725
|
+
[cssVariablePaddingBottom]: spacingStaticMd, // padding bottom for nested list, TODO: in case it's last root list item with a nested list it would result in outer spacing which is not desired
|
|
9781
9726
|
[cssVariablePseudoSpace]: isOrderedList
|
|
9782
9727
|
? `var(${cssVariableOrderedGridColumn},1.5rem)`
|
|
9783
9728
|
: `var(${cssVariableUnorderedGridColumn},.375rem)`,
|
|
@@ -9803,7 +9748,7 @@ const getComponentCss$5 = () => {
|
|
|
9803
9748
|
display: 'grid',
|
|
9804
9749
|
...addImportantToEachRule({
|
|
9805
9750
|
gridTemplateColumns: `var(${cssVariablePseudoSpace}) 1fr`,
|
|
9806
|
-
columnGap:
|
|
9751
|
+
columnGap: spacingStaticMd,
|
|
9807
9752
|
font: 'inherit', // ensures style can't be overwritten from outside
|
|
9808
9753
|
color: 'inherit', // ensures style can't be overwritten from outside
|
|
9809
9754
|
...hostHiddenStyles,
|
|
@@ -9838,14 +9783,14 @@ const getComponentCss$4 = (size, weight, align, color, hyphens, ellipsis) => {
|
|
|
9838
9783
|
...hostHiddenStyles,
|
|
9839
9784
|
}),
|
|
9840
9785
|
},
|
|
9841
|
-
[`::slotted(:is(${TEXT_TAGS.join()}))`]:
|
|
9786
|
+
[`::slotted(:is(${TEXT_TAGS.join()}))`]: {
|
|
9842
9787
|
all: 'unset',
|
|
9843
|
-
}
|
|
9788
|
+
},
|
|
9844
9789
|
},
|
|
9845
9790
|
root: {
|
|
9846
9791
|
all: 'unset',
|
|
9847
9792
|
display: 'block',
|
|
9848
|
-
font: `${weightMap[weight]} ${typescaleSm}/${leadingNormal} ${fontPorscheNext}`,
|
|
9793
|
+
font: `${weightMap[weight]} ${typescaleSm$1}/${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9849
9794
|
...buildResponsiveStyles(size, (v) => ({
|
|
9850
9795
|
fontSize: sizeMap$1[v],
|
|
9851
9796
|
})),
|
|
@@ -9877,7 +9822,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9877
9822
|
const textareaMinHeight = `calc(var(${cssVarInternalTextareaScaling}) * 3.5rem)`;
|
|
9878
9823
|
const textareaPaddingBlock = `calc(28px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 5px)`;
|
|
9879
9824
|
const textareaPaddingInline = `calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 8px)`;
|
|
9880
|
-
const textareaPaddingBottom = `calc(${
|
|
9825
|
+
const textareaPaddingBottom = `calc(${leadingNormal$1} + calc(22.4px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px))`;
|
|
9881
9826
|
const counterMarginBottom = `calc(11.2px * (var(${cssVarInternalTextareaScaling}) - 0.64285714) + 4px)`;
|
|
9882
9827
|
const { formStateBorderColor, formStateBackgroundColor, formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
9883
9828
|
return getCss({
|
|
@@ -9901,14 +9846,14 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9901
9846
|
maxWidth: 'var(--p-textarea-max-width, unset)',
|
|
9902
9847
|
minHeight: `var(--p-textarea-min-height, ${textareaMinHeight})`,
|
|
9903
9848
|
maxHeight: 'var(--p-textarea-max-height, unset)',
|
|
9904
|
-
border:
|
|
9849
|
+
border: `1px solid ${formStateBorderColor}`,
|
|
9905
9850
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
9906
9851
|
background: formStateBackgroundColor,
|
|
9907
9852
|
color: colorPrimary,
|
|
9908
9853
|
// min width is needed for showing at least 1 character in very narrow containers. The "1rem" value is the minimum safe zone to show at least 1 character.
|
|
9909
9854
|
boxSizing: 'border-box',
|
|
9910
9855
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
9911
|
-
font:
|
|
9856
|
+
font: `${fontWeightNormal$1} ${typescaleSm$1} / ${leadingNormal$1} ${fontPorscheNext$1}`,
|
|
9912
9857
|
padding: hasCounter
|
|
9913
9858
|
? `${textareaPaddingBlock} ${textareaPaddingInline} ${textareaPaddingBottom}`
|
|
9914
9859
|
: `${textareaPaddingBlock} ${textareaPaddingInline}`,
|
|
@@ -9932,7 +9877,7 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9932
9877
|
},
|
|
9933
9878
|
root: {
|
|
9934
9879
|
display: 'grid',
|
|
9935
|
-
gap:
|
|
9880
|
+
gap: spacingStaticXs$1,
|
|
9936
9881
|
},
|
|
9937
9882
|
wrapper: {
|
|
9938
9883
|
display: 'grid',
|
|
@@ -9955,6 +9900,9 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9955
9900
|
});
|
|
9956
9901
|
};
|
|
9957
9902
|
|
|
9903
|
+
getMediaQueryMin('s');
|
|
9904
|
+
getMediaQueryMax('s');
|
|
9905
|
+
|
|
9958
9906
|
/**
|
|
9959
9907
|
* @css-variable {"name": "--p-toast-position-bottom", "description": "Defines the spacing between the toast and the bottom edge of its container.", "defaultValue": "56px"}
|
|
9960
9908
|
*/
|