@porsche-design-system/components-react 4.0.0-alpha.0 → 4.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +187 -1
- package/bin/patchRemixRunProcessBrowserGlobalIdentifier.js +0 -0
- package/cjs/lib/components/canvas.wrapper.cjs +3 -3
- package/{styles → emotion}/cjs/index.cjs +3 -3
- package/emotion/esm/index.d.ts +1 -0
- package/emotion/esm/index.mjs +1 -0
- package/{styles → emotion}/package.json +0 -5
- package/esm/lib/components/canvas.wrapper.d.ts +9 -1
- package/esm/lib/components/canvas.wrapper.mjs +3 -3
- package/esm/lib/components/display.wrapper.d.ts +2 -2
- package/esm/lib/components/divider.wrapper.d.ts +2 -2
- package/esm/lib/components/heading.wrapper.d.ts +2 -2
- package/esm/lib/components/icon.wrapper.d.ts +2 -2
- package/esm/lib/components/radio-group-option.wrapper.d.ts +2 -0
- package/esm/lib/components/text.wrapper.d.ts +2 -2
- package/esm/lib/components/textarea.wrapper.d.ts +2 -2
- package/esm/lib/types.d.ts +8 -1
- package/global-styles/cn/font-face.css +1 -1
- package/global-styles/cn/index.css +264 -115
- package/global-styles/color-scheme.css +135 -0
- package/global-styles/font-face.css +1 -1
- package/global-styles/index.css +264 -115
- package/global-styles/variables.css +158 -144
- package/package.json +16 -14
- package/scss/_index.scss +1 -0
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +671 -600
- package/ssr/cjs/components/dist/utils/esm/utils-entry.cjs +37 -29
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/canvas.wrapper.cjs +4 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +5 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +2 -13
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +5 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +1 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +5 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +3 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +11 -3
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +3 -4
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +1 -1
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +1 -0
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +671 -601
- package/ssr/esm/components/dist/utils/esm/utils-entry.mjs +37 -29
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/canvas.wrapper.mjs +4 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/components/radio-group-option.wrapper.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -13
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +5 -3
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +1 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/label.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +3 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +5 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +12 -4
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +4 -5
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +1 -1
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +1 -0
- package/ssr/esm/lib/components/canvas.wrapper.d.ts +9 -1
- package/ssr/esm/lib/components/display.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/divider.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/heading.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/icon.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/radio-group-option.wrapper.d.ts +2 -0
- package/ssr/esm/lib/components/text.wrapper.d.ts +2 -2
- package/ssr/esm/lib/components/textarea.wrapper.d.ts +2 -2
- package/ssr/esm/lib/dsr-components/canvas.d.ts +0 -3
- package/ssr/esm/lib/dsr-components/checkbox.d.ts +4 -2
- package/ssr/esm/lib/dsr-components/input-date.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-email.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-month.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-number.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-password.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-search.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-tel.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-text.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-time.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-url.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/input-week.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/label.d.ts +1 -0
- package/ssr/esm/lib/dsr-components/multi-select.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/pin-code.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/radio-group-option.d.ts +4 -0
- package/ssr/esm/lib/dsr-components/radio-group.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/segmented-control.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/select.d.ts +2 -1
- package/ssr/esm/lib/dsr-components/textarea.d.ts +1 -0
- package/ssr/esm/lib/types.d.ts +8 -1
- package/tailwindcss/index.css +223 -135
- package/{styles/vanilla-extract → vanilla-extract}/cjs/index.cjs +1 -1
- package/vanilla-extract/esm/index.d.ts +1 -0
- package/vanilla-extract/esm/index.mjs +1 -0
- package/vanilla-extract/package.json +13 -0
- package/ssr/esm/lib/dsr-components/legacy-label.d.ts +0 -14
- package/styles/_index.scss +0 -1
- package/styles/esm/index.d.ts +0 -1
- package/styles/esm/index.mjs +0 -1
- package/styles/vanilla-extract/esm/index.d.ts +0 -1
- package/styles/vanilla-extract/esm/index.mjs +0 -1
|
@@ -1,61 +1,81 @@
|
|
|
1
|
-
const
|
|
1
|
+
const blurFrosted = 'blur(32px)';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use backdropFilter: blurFrosted instead */
|
|
4
|
+
const frostedGlassStyle = {
|
|
5
|
+
WebkitBackdropFilter: blurFrosted,
|
|
6
|
+
backdropFilter: blurFrosted,
|
|
7
|
+
};
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 2px instead. */
|
|
10
|
+
const borderWidthBase = '2px';
|
|
6
11
|
|
|
7
|
-
|
|
12
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 1px instead. */
|
|
13
|
+
const borderWidthThin = '1px';
|
|
8
14
|
|
|
9
|
-
const
|
|
15
|
+
const fontPorscheNext = "'Porsche Next','Arial Narrow',Arial,'Heiti SC',SimHei,sans-serif";
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
17
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontPorscheNext instead. */
|
|
18
|
+
const fontFamily = fontPorscheNext;
|
|
14
19
|
|
|
15
|
-
const
|
|
20
|
+
const leadingNormal = 'calc(6px + 2.125ex)';
|
|
16
21
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use leadingNormal instead */
|
|
23
|
+
const fontLineHeight = leadingNormal;
|
|
24
|
+
|
|
25
|
+
const fontSizeDisplayLarge = 'clamp(2.28rem, 5.2vw + 1.24rem, 7.48rem)';
|
|
20
26
|
|
|
21
|
-
const
|
|
27
|
+
const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
|
|
22
28
|
|
|
23
|
-
const
|
|
29
|
+
const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
|
|
24
30
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
const typescaleLg = 'clamp(1.27rem, 0.51vw + 1.16rem, 1.78rem)';
|
|
32
|
+
|
|
33
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
|
|
34
|
+
const fontSizeHeadingLarge = typescaleLg;
|
|
35
|
+
|
|
36
|
+
const typescaleMd = 'clamp(1.13rem, 0.21vw + 1.08rem, 1.33rem)';
|
|
30
37
|
|
|
31
|
-
|
|
38
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
|
|
39
|
+
const fontSizeHeadingMedium = typescaleMd;
|
|
32
40
|
|
|
33
|
-
const
|
|
41
|
+
const typescaleSm = '1rem';
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
44
|
+
const fontSizeHeadingSmall = typescaleSm;
|
|
36
45
|
|
|
37
|
-
const
|
|
46
|
+
const typescaleXl = 'clamp(1.42rem, 0.94vw + 1.23rem, 2.37rem)';
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
|
|
49
|
+
const fontSizeHeadingXLarge = typescaleXl;
|
|
40
50
|
|
|
41
|
-
const
|
|
51
|
+
const typescale2Xl = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
|
|
42
52
|
|
|
43
|
-
|
|
53
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xl instead. */
|
|
54
|
+
const fontSizeHeadingXXLarge = typescale2Xl;
|
|
44
55
|
|
|
45
|
-
|
|
56
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleLg instead. */
|
|
57
|
+
const fontSizeTextLarge = typescaleLg;
|
|
46
58
|
|
|
47
|
-
|
|
59
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleMd instead. */
|
|
60
|
+
const fontSizeTextMedium = typescaleMd;
|
|
48
61
|
|
|
49
|
-
|
|
62
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleSm instead. */
|
|
63
|
+
const fontSizeTextSmall = typescaleSm;
|
|
50
64
|
|
|
51
|
-
|
|
65
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXl instead. */
|
|
66
|
+
const fontSizeTextXLarge = typescaleXl;
|
|
52
67
|
|
|
53
|
-
const
|
|
68
|
+
const typescaleXs$1 = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
|
|
54
69
|
|
|
55
|
-
|
|
70
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescaleXs instead. */
|
|
71
|
+
const fontSizeTextXSmall = typescaleXs$1;
|
|
56
72
|
|
|
57
|
-
const
|
|
73
|
+
const typescale2Xs = '.75rem';
|
|
58
74
|
|
|
75
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale2Xs instead. */
|
|
76
|
+
const fontSizeTextXXSmall = typescale2Xs;
|
|
77
|
+
|
|
78
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use typescale variables instead. */
|
|
59
79
|
const fontSizeText = {
|
|
60
80
|
xxSmall: fontSizeTextXXSmall,
|
|
61
81
|
xSmall: fontSizeTextXSmall,
|
|
@@ -65,48 +85,33 @@ const fontSizeText = {
|
|
|
65
85
|
xLarge: fontSizeTextXLarge,
|
|
66
86
|
};
|
|
67
87
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const fontSizeHeadingMedium = fontSizeMd;
|
|
71
|
-
|
|
72
|
-
const fontSizeHeadingLarge = fontSizeLg;
|
|
73
|
-
|
|
74
|
-
const fontSizeHeadingXLarge = fontSizeXl;
|
|
75
|
-
|
|
76
|
-
const fontSize2Xl = 'clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem)';
|
|
77
|
-
|
|
78
|
-
const fontSizeHeadingXXLarge = fontSize2Xl;
|
|
79
|
-
|
|
80
|
-
const fontSizeDisplaySmall = 'clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem)';
|
|
81
|
-
|
|
82
|
-
const fontSizeDisplayMedium = 'clamp(2.03rem, 3.58vw + 1.31rem, 5.61rem)';
|
|
88
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
89
|
+
const fontStyleNormal = 'normal';
|
|
83
90
|
|
|
84
|
-
|
|
91
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use 'normal' instead. */
|
|
92
|
+
const fontVariant = 'normal';
|
|
85
93
|
|
|
86
|
-
const
|
|
94
|
+
const fontWeightNormal = 400;
|
|
87
95
|
|
|
88
|
-
|
|
96
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightNormal instead. */
|
|
97
|
+
const fontWeightRegular = fontWeightNormal;
|
|
89
98
|
|
|
90
|
-
const
|
|
99
|
+
const fontWeightSemibold = 600;
|
|
91
100
|
|
|
92
|
-
|
|
101
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use fontWeightSemibold instead. */
|
|
102
|
+
const fontWeightSemiBold = fontWeightSemibold;
|
|
93
103
|
|
|
94
104
|
const fontWeightBold$1 = 700;
|
|
95
105
|
|
|
96
106
|
const fontWeightBold = fontWeightBold$1;
|
|
97
107
|
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const blurFrosted = 'blur(32px)';
|
|
103
|
-
|
|
104
|
-
const frostedGlassStyle = {
|
|
105
|
-
WebkitBackdropFilter: blurFrosted,
|
|
106
|
-
backdropFilter: blurFrosted,
|
|
108
|
+
const fontHyphenationStyle = {
|
|
109
|
+
overflowWrap: 'break-word',
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
hyphens: 'var(--p-hyphens, auto)',
|
|
107
112
|
};
|
|
108
113
|
|
|
109
|
-
const
|
|
114
|
+
const gradientStopsFadeDark = 'hsla(0,0%,0%,.8) 0%,' +
|
|
110
115
|
'hsla(0,0%,0%,.8) 8.1%,' +
|
|
111
116
|
'hsla(0,0%,0%,.8) 15.5%,' +
|
|
112
117
|
'hsla(0,0%,0%,.8) 22.5%,' +
|
|
@@ -123,36 +128,38 @@ const gradientFade = 'hsla(0,0%,0%,.8) 0%,' +
|
|
|
123
128
|
'hsla(0,0%,0%,.011) 91.9%,' +
|
|
124
129
|
'hsla(0,0%,0%,0) 100%';
|
|
125
130
|
|
|
131
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use background: `linear-gradient(to bottom, ${gradientStopsFadeDark});` instead */
|
|
126
132
|
const gradientToBottomStyle = {
|
|
127
|
-
background: `linear-gradient(to bottom, ${
|
|
133
|
+
background: `linear-gradient(to bottom, ${gradientStopsFadeDark});`,
|
|
128
134
|
};
|
|
129
135
|
|
|
136
|
+
/** @deprecated since v4.0.0, will be removed with next major release. background: `linear-gradient(to top, ${gradientStopsFadeDark});` instead */
|
|
130
137
|
const gradientToTopStyle = {
|
|
131
|
-
background: `linear-gradient(to top, ${
|
|
138
|
+
background: `linear-gradient(to top, ${gradientStopsFadeDark});`,
|
|
132
139
|
};
|
|
133
140
|
|
|
134
141
|
const breakpointBase = 0;
|
|
135
142
|
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
const breakpointXS = breakpointXs;
|
|
139
|
-
|
|
140
|
-
const breakpointSm = 760;
|
|
143
|
+
const breakpointLg = 1300;
|
|
141
144
|
|
|
142
|
-
const
|
|
145
|
+
const breakpointL = breakpointLg;
|
|
143
146
|
|
|
144
147
|
const breakpointMd = 1000;
|
|
145
148
|
|
|
146
149
|
const breakpointM = breakpointMd;
|
|
147
150
|
|
|
148
|
-
const
|
|
151
|
+
const breakpointSm = 760;
|
|
149
152
|
|
|
150
|
-
const
|
|
153
|
+
const breakpointS = breakpointSm;
|
|
151
154
|
|
|
152
155
|
const breakpointXl = 1760;
|
|
153
156
|
|
|
154
157
|
const breakpointXL = breakpointXl;
|
|
155
158
|
|
|
159
|
+
const breakpointXs = 480;
|
|
160
|
+
|
|
161
|
+
const breakpointXS = breakpointXs;
|
|
162
|
+
|
|
156
163
|
const breakpoint2Xl = 1920;
|
|
157
164
|
|
|
158
165
|
const breakpointXXL = breakpoint2Xl;
|
|
@@ -173,6 +180,7 @@ function getMediaQueryMin(min) {
|
|
|
173
180
|
|
|
174
181
|
const spacingFluidMd = 'clamp(16px, 1.25vw + 12px, 36px)';
|
|
175
182
|
|
|
183
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidMd instead. */
|
|
176
184
|
const spacingFluidMedium = spacingFluidMd;
|
|
177
185
|
|
|
178
186
|
const gridGap = spacingFluidMedium;
|
|
@@ -194,6 +202,20 @@ const _gridPadding = `max(0px, 50vw - ${_gridWidthMax} / 2)`;
|
|
|
194
202
|
const _getGridOffsetS = (width) => `calc(${_gridSafeZoneS} + (${gridGap} + ${gridColumnWidthS}) * ${columnMap[width]})`;
|
|
195
203
|
const _getGridOffsetXXL = (width) => `calc(${_gridPadding} + ${_gridSafeZoneXXL} + (${gridGap} + ${gridColumnWidthXXL}) * ${columnMap[width]})`;
|
|
196
204
|
|
|
205
|
+
const gridFullOffset = _gridPadding;
|
|
206
|
+
|
|
207
|
+
const gridWideOffsetBase = _gridSafeZoneBase;
|
|
208
|
+
|
|
209
|
+
const gridWideOffsetS = _gridSafeZoneS;
|
|
210
|
+
|
|
211
|
+
const gridWideOffsetXXL = `calc(${_gridPadding} + ${_gridSafeZoneXXL})`;
|
|
212
|
+
|
|
213
|
+
const gridWideOffset = {
|
|
214
|
+
base: gridWideOffsetBase,
|
|
215
|
+
s: gridWideOffsetS,
|
|
216
|
+
xxl: gridWideOffsetXXL,
|
|
217
|
+
};
|
|
218
|
+
|
|
197
219
|
const gridExtendedOffsetBase = _gridSafeZoneBase;
|
|
198
220
|
|
|
199
221
|
const gridExtendedOffsetS = _getGridOffsetS('extended');
|
|
@@ -218,67 +240,97 @@ const gridBasicOffset = {
|
|
|
218
240
|
xxl: gridBasicOffsetXXL,
|
|
219
241
|
};
|
|
220
242
|
|
|
221
|
-
const motionDurationShort$1 = '.25s';
|
|
222
|
-
|
|
223
|
-
const motionDurationShort = motionDurationShort$1;
|
|
224
|
-
|
|
225
|
-
const motionEaseInOut = 'cubic-bezier(.25,.1,.25,1)';
|
|
226
|
-
|
|
227
|
-
const motionEasingBase = motionEaseInOut;
|
|
228
|
-
|
|
229
243
|
const breakpoints = ['base', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
230
244
|
|
|
231
245
|
function getMediaQueryMax(max) {
|
|
232
246
|
return `@media(max-width:${breakpoint[max] - 1}px)`;
|
|
233
247
|
}
|
|
234
248
|
|
|
235
|
-
const
|
|
249
|
+
const durationLg = '.6s';
|
|
236
250
|
|
|
237
|
-
|
|
251
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use durationLg instead. */
|
|
252
|
+
const motionDurationLong = durationLg;
|
|
238
253
|
|
|
239
|
-
const
|
|
254
|
+
const durationMd = '.4s';
|
|
240
255
|
|
|
241
|
-
|
|
256
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use durationMd instead. */
|
|
257
|
+
const motionDurationModerate = durationMd;
|
|
242
258
|
|
|
243
|
-
const
|
|
259
|
+
const durationSm = '.25s';
|
|
244
260
|
|
|
245
|
-
|
|
261
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use durationSm instead. */
|
|
262
|
+
const motionDurationShort = durationSm;
|
|
246
263
|
|
|
247
|
-
const
|
|
264
|
+
const durationXl = '1.2s';
|
|
248
265
|
|
|
249
|
-
|
|
266
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use durationXl instead. */
|
|
267
|
+
const motionDurationVeryLong = durationXl;
|
|
250
268
|
|
|
251
|
-
const
|
|
269
|
+
const easeInOut = 'cubic-bezier(.25,.1,.25,1)';
|
|
252
270
|
|
|
253
|
-
|
|
271
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeInOut instead. */
|
|
272
|
+
const motionEasingBase = easeInOut;
|
|
254
273
|
|
|
255
|
-
const
|
|
274
|
+
const easeIn = 'cubic-bezier(0,0,.2,1)';
|
|
256
275
|
|
|
257
|
-
|
|
276
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeIn instead. */
|
|
277
|
+
const motionEasingIn = easeIn;
|
|
258
278
|
|
|
259
|
-
const
|
|
279
|
+
const easeOut = 'cubic-bezier(.4,0,.5,1)';
|
|
260
280
|
|
|
261
|
-
|
|
281
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use easeOut instead. */
|
|
282
|
+
const motionEasingOut = easeOut;
|
|
262
283
|
|
|
263
|
-
const
|
|
284
|
+
const shadowLg = '0px 8px 40px rgba(0,0,0,.16)';
|
|
264
285
|
|
|
265
|
-
|
|
286
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use boxShadow: shadowLg instead. */
|
|
287
|
+
const dropShadowHighStyle = {
|
|
288
|
+
boxShadow: shadowLg,
|
|
289
|
+
};
|
|
266
290
|
|
|
267
|
-
const
|
|
291
|
+
const shadowSm = '0px 3px 8px rgba(0,0,0,.16)';
|
|
268
292
|
|
|
269
|
-
|
|
293
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use boxShadow: shadowSm instead. */
|
|
294
|
+
const dropShadowLowStyle = {
|
|
295
|
+
boxShadow: shadowSm,
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
const spacingFluidLg = 'clamp(32px, 2.75vw + 23px, 76px)';
|
|
299
|
+
|
|
300
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidLg instead. */
|
|
301
|
+
const spacingFluidLarge = spacingFluidLg;
|
|
270
302
|
|
|
271
303
|
const spacingFluidSm = 'clamp(8px, 0.5vw + 6px, 16px)';
|
|
272
304
|
|
|
305
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidSm instead. */
|
|
273
306
|
const spacingFluidSmall = spacingFluidSm;
|
|
274
307
|
|
|
275
|
-
const
|
|
308
|
+
const spacingFluidXs = 'clamp(4px, 0.25vw + 3px, 8px)';
|
|
276
309
|
|
|
277
|
-
|
|
310
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingFluidXs instead. */
|
|
311
|
+
const spacingFluidXSmall = spacingFluidXs;
|
|
312
|
+
|
|
313
|
+
const spacingStaticMd = '16px';
|
|
314
|
+
|
|
315
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticMd instead. */
|
|
316
|
+
const spacingStaticMedium = spacingStaticMd;
|
|
317
|
+
|
|
318
|
+
const spacingStaticSm$1 = '8px';
|
|
319
|
+
|
|
320
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticSm instead. */
|
|
321
|
+
const spacingStaticSmall = spacingStaticSm$1;
|
|
322
|
+
|
|
323
|
+
const spacingStaticXs$2 = '4px';
|
|
324
|
+
|
|
325
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use spacingStaticXs instead. */
|
|
326
|
+
const spacingStaticXSmall = spacingStaticXs$2;
|
|
327
|
+
|
|
328
|
+
const spacingStaticXs$1 = spacingStaticXs$2;
|
|
278
329
|
|
|
279
330
|
const _displayFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
280
331
|
const _displayFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
281
332
|
|
|
333
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseDisplayLg instead. */
|
|
282
334
|
const displayLargeStyle = {
|
|
283
335
|
font: `${_displayFontPartA}${fontSizeDisplayLarge}${_displayFontPartB}`,
|
|
284
336
|
};
|
|
@@ -286,18 +338,22 @@ const displayLargeStyle = {
|
|
|
286
338
|
const _headingFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
287
339
|
const _headingFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
288
340
|
|
|
341
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingSm instead. */
|
|
289
342
|
const headingSmallStyle = {
|
|
290
343
|
font: `${_headingFontPartA}${fontSizeHeadingSmall}${_headingFontPartB}`,
|
|
291
344
|
};
|
|
292
345
|
|
|
346
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingMd instead. */
|
|
293
347
|
const headingMediumStyle = {
|
|
294
348
|
font: `${_headingFontPartA}${fontSizeHeadingMedium}${_headingFontPartB}`,
|
|
295
349
|
};
|
|
296
350
|
|
|
351
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeadingXl instead. */
|
|
297
352
|
const headingXLargeStyle = {
|
|
298
353
|
font: `${_headingFontPartA}${fontSizeHeadingXLarge}${_headingFontPartB}`,
|
|
299
354
|
};
|
|
300
355
|
|
|
356
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseHeading2Xl instead. */
|
|
301
357
|
const headingXXLargeStyle = {
|
|
302
358
|
font: `${_headingFontPartA}${fontSizeHeadingXXLarge}${_headingFontPartB}`,
|
|
303
359
|
};
|
|
@@ -305,53 +361,108 @@ const headingXXLargeStyle = {
|
|
|
305
361
|
const _textFontPartA = `${fontStyleNormal} ${fontVariant} ${fontWeightRegular} `;
|
|
306
362
|
const _textFontPartB = `/${fontLineHeight} ${fontFamily}`;
|
|
307
363
|
|
|
364
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseText2Xs instead. */
|
|
308
365
|
const textXXSmallStyle = {
|
|
309
366
|
font: `${_textFontPartA}${fontSizeTextXXSmall}${_textFontPartB}`,
|
|
310
367
|
...fontHyphenationStyle,
|
|
311
368
|
};
|
|
312
369
|
|
|
370
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextXs instead. */
|
|
313
371
|
const textXSmallStyle = {
|
|
314
372
|
font: `${_textFontPartA}${fontSizeTextXSmall}${_textFontPartB}`,
|
|
315
373
|
...fontHyphenationStyle,
|
|
316
374
|
};
|
|
317
375
|
|
|
376
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextSm instead. */
|
|
318
377
|
const textSmallStyle = {
|
|
319
378
|
font: `${_textFontPartA}${fontSizeTextSmall}${_textFontPartB}`,
|
|
320
379
|
...fontHyphenationStyle,
|
|
321
380
|
};
|
|
322
381
|
|
|
382
|
+
/** @deprecated since v4.0.0, will be removed with next major release. Use proseTextMd instead. */
|
|
323
383
|
const textMediumStyle = {
|
|
324
384
|
font: `${_textFontPartA}${fontSizeTextMedium}${_textFontPartB}`,
|
|
325
385
|
...fontHyphenationStyle,
|
|
326
386
|
};
|
|
327
387
|
|
|
388
|
+
const proseTextSmStyle = {
|
|
389
|
+
font: `normal normal ${fontWeightNormal} ${typescaleSm} / ${leadingNormal} ${fontPorscheNext}`,
|
|
390
|
+
...fontHyphenationStyle,
|
|
391
|
+
};
|
|
392
|
+
|
|
328
393
|
const alphaDisabled = 0.4;
|
|
329
394
|
|
|
330
|
-
const
|
|
331
|
-
dark: {
|
|
332
|
-
grey: {
|
|
333
|
-
'950': 'hsl(240, 12.5%, 96.9%)',
|
|
334
|
-
'100a': 'hsla(240, 3.7%, 26.5%, 0.154)',
|
|
335
|
-
'200a': 'hsla(240, 2.2%, 44.1%, 0.228)'},
|
|
336
|
-
},
|
|
337
|
-
};
|
|
395
|
+
const legacyRadiusLarge = '--_p-legacy-radius-large';
|
|
338
396
|
|
|
339
|
-
const
|
|
397
|
+
const legacyRadiusMedium = '--_p-legacy-radius-medium';
|
|
340
398
|
|
|
341
|
-
const
|
|
399
|
+
const legacyRadiusSmall = '--_p-legacy-radius-small';
|
|
342
400
|
|
|
343
|
-
const
|
|
401
|
+
const radius2Xl = 'var(--p-radius-2xl)';
|
|
344
402
|
|
|
345
|
-
const
|
|
403
|
+
const radius3Xl = 'var(--p-radius-3xl)';
|
|
346
404
|
|
|
347
|
-
const
|
|
405
|
+
const radius4Xl = 'var(--p-radius-4xl)';
|
|
406
|
+
|
|
407
|
+
const radiusFull = 'var(--p-radius-full)';
|
|
408
|
+
|
|
409
|
+
const radiusLg = 'var(--p-radius-lg)';
|
|
410
|
+
|
|
411
|
+
const radiusMd = 'var(--p-radius-md)';
|
|
412
|
+
|
|
413
|
+
const radiusSm = 'var(--p-radius-sm)';
|
|
414
|
+
|
|
415
|
+
const radiusXl = 'var(--p-radius-xl)';
|
|
348
416
|
|
|
349
|
-
|
|
417
|
+
const colorFocus = 'var(--p-color-focus)';
|
|
350
418
|
|
|
351
|
-
|
|
352
|
-
var cssVariables = { "focusColor": "var(--p-color-focus)", "disabledColor": "var(--p-color-disabled)", "canvasColor": "var(--p-color-canvas)", "surfaceColor": "var(--p-color-surface)", "frostedColor": "var(--p-color-frosted)", "frostedSoftColor": "var(--p-color-frosted-soft)", "backdropColor": "var(--p-color-backdrop)", "contrastLowerColor": "var(--p-color-contrast-lower)", "contrastLowColor": "var(--p-color-contrast-low)", "contrastMediumColor": "var(--p-color-contrast-medium)", "contrastHighColor": "var(--p-color-contrast-high)", "primaryColor": "var(--p-color-primary)", "successColor": "var(--p-color-success)", "successLowColor": "var(--p-color-success-low)", "successFrostedColor": "var(--p-color-success-frosted)", "successFrostedSoftColor": "var(--p-color-success-frosted-soft)", "warningColor": "var(--p-color-warning)", "warningFrostedColor": "var(--p-color-warning-frosted)", "warningFrostedSoftColor": "var(--p-color-warning-frosted-soft)", "errorColor": "var(--p-color-error)", "errorLowColor": "var(--p-color-error-low)", "errorFrostedColor": "var(--p-color-error-frosted)", "errorFrostedSoftColor": "var(--p-color-error-frosted-soft)", "infoColor": "var(--p-color-info)", "infoFrostedColor": "var(--p-color-info-frosted)", "infoFrostedSoftColor": "var(--p-color-info-frosted-soft)"};
|
|
419
|
+
const colorBackdrop = 'var(--p-color-backdrop)';
|
|
353
420
|
|
|
354
|
-
const
|
|
421
|
+
const colorCanvas = 'var(--p-color-canvas)';
|
|
422
|
+
|
|
423
|
+
const colorFrosted = 'var(--p-color-frosted)';
|
|
424
|
+
|
|
425
|
+
const colorFrostedSoft = 'var(--p-color-frosted-soft)';
|
|
426
|
+
|
|
427
|
+
const colorFrostedStrong = 'var(--p-color-frosted-strong)';
|
|
428
|
+
|
|
429
|
+
const colorSurface = 'var(--p-color-surface)';
|
|
430
|
+
|
|
431
|
+
const colorContrastHigh = 'var(--p-color-contrast-high)';
|
|
432
|
+
|
|
433
|
+
const colorContrastLow = 'var(--p-color-contrast-low)';
|
|
434
|
+
|
|
435
|
+
const colorContrastLower = 'var(--p-color-contrast-lower)';
|
|
436
|
+
|
|
437
|
+
const colorContrastMedium = 'var(--p-color-contrast-medium)';
|
|
438
|
+
|
|
439
|
+
const colorPrimary = 'var(--p-color-primary)';
|
|
440
|
+
|
|
441
|
+
const colorError = 'var(--p-color-error)';
|
|
442
|
+
|
|
443
|
+
const colorErrorFrosted = 'var(--p-color-error-frosted)';
|
|
444
|
+
|
|
445
|
+
const colorErrorFrostedSoft = 'var(--p-color-error-frosted-soft)';
|
|
446
|
+
|
|
447
|
+
const colorInfo = 'var(--p-color-info)';
|
|
448
|
+
|
|
449
|
+
const colorInfoFrosted = 'var(--p-color-info-frosted)';
|
|
450
|
+
|
|
451
|
+
const colorInfoFrostedSoft = 'var(--p-color-info-frosted-soft)';
|
|
452
|
+
|
|
453
|
+
const colorSuccess = 'var(--p-color-success)';
|
|
454
|
+
|
|
455
|
+
const colorSuccessFrosted = 'var(--p-color-success-frosted)';
|
|
456
|
+
|
|
457
|
+
const colorSuccessFrostedSoft = 'var(--p-color-success-frosted-soft)';
|
|
458
|
+
|
|
459
|
+
const colorSuccessLow = 'var(--p-color-success-low)';
|
|
460
|
+
|
|
461
|
+
const colorWarning = 'var(--p-color-warning)';
|
|
462
|
+
|
|
463
|
+
const colorWarningFrosted = 'var(--p-color-warning-frosted)';
|
|
464
|
+
|
|
465
|
+
const colorWarningFrostedSoft = 'var(--p-color-warning-frosted-soft)';
|
|
355
466
|
|
|
356
467
|
const motionDurationMap = {
|
|
357
468
|
short: motionDurationShort,
|
|
@@ -386,10 +497,9 @@ const addImportantToEachRule = (input) => {
|
|
|
386
497
|
typeof value === 'object' ? addImportantToEachRule(value) : addImportantToRule(value)),
|
|
387
498
|
result), {});
|
|
388
499
|
};
|
|
389
|
-
const { focusColor } = colors;
|
|
390
500
|
const getFocusBaseStyles = () => {
|
|
391
501
|
return {
|
|
392
|
-
outline: `${borderWidthBase} solid ${
|
|
502
|
+
outline: `${borderWidthBase} solid ${colorFocus}`,
|
|
393
503
|
outlineOffset: '2px',
|
|
394
504
|
};
|
|
395
505
|
};
|
|
@@ -429,10 +539,6 @@ const getHiddenTextJssStyle = (isHidden = true, isShownJssStyle) => {
|
|
|
429
539
|
};
|
|
430
540
|
};
|
|
431
541
|
|
|
432
|
-
const colorSchemeStyles = {
|
|
433
|
-
colorScheme: 'light dark',
|
|
434
|
-
};
|
|
435
|
-
|
|
436
542
|
const hostHiddenStyles = {
|
|
437
543
|
'&([hidden])': {
|
|
438
544
|
display: 'none',
|
|
@@ -3774,7 +3880,7 @@ const OPTION_LIST_SAFE_ZONE = 6;
|
|
|
3774
3880
|
|
|
3775
3881
|
const getCDNBaseURL = () => global.PORSCHE_DESIGN_SYSTEM_CDN_URL + "/porsche-design-system";
|
|
3776
3882
|
|
|
3777
|
-
const prefix = `[Porsche Design System v${"4.0.0-
|
|
3883
|
+
const prefix = `[Porsche Design System v${"4.0.0-beta.0"}]` // this part isn't covered by unit tests
|
|
3778
3884
|
;
|
|
3779
3885
|
const consoleError = (...messages) => {
|
|
3780
3886
|
console.error(prefix, ...messages);
|
|
@@ -3883,31 +3989,8 @@ const breakpointCustomizableTemplate = `value, ${internalValidateProps
|
|
|
3883
3989
|
.formatObjectOutput(breakpoints.reduce((prev, key) => ({ ...prev, [key + (key !== 'base' ? '?' : '')]: 'value' }), {}))
|
|
3884
3990
|
.replace(/"/g, '')}`;
|
|
3885
3991
|
|
|
3886
|
-
const legacyRadiusLarge = '--_p-legacy-radius-large';
|
|
3887
|
-
|
|
3888
|
-
const legacyRadiusMedium = '--_p-legacy-radius-medium';
|
|
3889
|
-
|
|
3890
|
-
const legacyRadiusSmall = '--_p-legacy-radius-small';
|
|
3891
|
-
|
|
3892
|
-
const radius2Xl = 'var(--p-radius-2xl)';
|
|
3893
|
-
|
|
3894
|
-
const radius3Xl = 'var(--p-radius-3xl)';
|
|
3895
|
-
|
|
3896
|
-
const radius4Xl = 'var(--p-radius-4xl)';
|
|
3897
|
-
|
|
3898
|
-
const radiusFull = 'var(--p-radius-full)';
|
|
3899
|
-
|
|
3900
|
-
const radiusLg = 'var(--p-radius-lg)';
|
|
3901
|
-
|
|
3902
|
-
const radiusMd = 'var(--p-radius-md)';
|
|
3903
|
-
|
|
3904
|
-
const radiusSm = 'var(--p-radius-sm)';
|
|
3905
|
-
|
|
3906
|
-
const radiusXl = 'var(--p-radius-xl)';
|
|
3907
|
-
|
|
3908
3992
|
const cssVariablePositionStickyTop = '--p-accordion-position-sticky-top';
|
|
3909
3993
|
const positionStickyTopFallback = '0';
|
|
3910
|
-
const { contrastLowColor: contrastLowColor$8, primaryColor: primaryColor$B, frostedSoftColor: frostedSoftColor$6, canvasColor: canvasColor$a } = colors;
|
|
3911
3994
|
// CSS Variable defined in fontHyphenationStyle
|
|
3912
3995
|
/**
|
|
3913
3996
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
@@ -3921,10 +4004,9 @@ const getComponentCss$19 = (size, compact, open, sticky) => {
|
|
|
3921
4004
|
...(compact
|
|
3922
4005
|
? { transform: 'translate3d(0,0,0)' } // relevant for custom click-area in compact variant
|
|
3923
4006
|
: {
|
|
3924
|
-
borderBottom: `1px solid ${
|
|
4007
|
+
borderBottom: `1px solid ${colorContrastLower}`,
|
|
3925
4008
|
}),
|
|
3926
4009
|
'&(:only-of-type)': { borderBottom: 0 },
|
|
3927
|
-
...colorSchemeStyles,
|
|
3928
4010
|
...hostHiddenStyles,
|
|
3929
4011
|
}),
|
|
3930
4012
|
},
|
|
@@ -3939,7 +4021,7 @@ const getComponentCss$19 = (size, compact, open, sticky) => {
|
|
|
3939
4021
|
gap: '24px',
|
|
3940
4022
|
cursor: 'pointer',
|
|
3941
4023
|
zIndex: 0,
|
|
3942
|
-
color:
|
|
4024
|
+
color: colorPrimary,
|
|
3943
4025
|
...textSmallStyle,
|
|
3944
4026
|
fontWeight: fontWeightSemiBold,
|
|
3945
4027
|
...buildResponsiveStyles(size, (s) => ({
|
|
@@ -3970,7 +4052,7 @@ const getComponentCss$19 = (size, compact, open, sticky) => {
|
|
|
3970
4052
|
},
|
|
3971
4053
|
'&:hover::before': {
|
|
3972
4054
|
...frostedGlassStyle,
|
|
3973
|
-
background:
|
|
4055
|
+
background: colorFrostedSoft,
|
|
3974
4056
|
},
|
|
3975
4057
|
})),
|
|
3976
4058
|
'&:focus-visible::before': getFocusBaseStyles(),
|
|
@@ -3982,7 +4064,7 @@ const getComponentCss$19 = (size, compact, open, sticky) => {
|
|
|
3982
4064
|
position: 'sticky',
|
|
3983
4065
|
top: `var(${cssVariablePositionStickyTop}, ${positionStickyTopFallback})`,
|
|
3984
4066
|
zIndex: 1, // to be on top of the collapsible
|
|
3985
|
-
background:
|
|
4067
|
+
background: colorCanvas,
|
|
3986
4068
|
}),
|
|
3987
4069
|
},
|
|
3988
4070
|
'icon-container': {
|
|
@@ -3998,7 +4080,7 @@ const getComponentCss$19 = (size, compact, open, sticky) => {
|
|
|
3998
4080
|
transition: getTransition('transform'),
|
|
3999
4081
|
},
|
|
4000
4082
|
collapsible: {
|
|
4001
|
-
color:
|
|
4083
|
+
color: colorPrimary, // enables color inheritance for slotted content
|
|
4002
4084
|
display: 'grid',
|
|
4003
4085
|
...(sticky && {
|
|
4004
4086
|
position: 'relative',
|
|
@@ -4104,7 +4186,6 @@ const getComponentCss$18 = (isOpen) => {
|
|
|
4104
4186
|
[getMediaQueryMin('xxl')]: {
|
|
4105
4187
|
insetInline: gridExtendedOffsetXXL,
|
|
4106
4188
|
},
|
|
4107
|
-
...colorSchemeStyles,
|
|
4108
4189
|
...hostHiddenStyles,
|
|
4109
4190
|
}),
|
|
4110
4191
|
},
|
|
@@ -4142,7 +4223,6 @@ const getVisibilityJssStyle = (hideLabel) => {
|
|
|
4142
4223
|
};
|
|
4143
4224
|
const offsetVertical = '-2px';
|
|
4144
4225
|
const offsetHorizontal = '-4px';
|
|
4145
|
-
const { primaryColor: primaryColor$A, frostedColor: frostedColor$a } = colors;
|
|
4146
4226
|
const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, hasSlottedAnchor) => {
|
|
4147
4227
|
const hasIcon = hasVisibleIcon(icon, iconSource);
|
|
4148
4228
|
return {
|
|
@@ -4150,7 +4230,6 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4150
4230
|
':host': {
|
|
4151
4231
|
...addImportantToEachRule({
|
|
4152
4232
|
transform: 'translate3d(0,0,0)', // creates new stacking context
|
|
4153
|
-
...colorSchemeStyles,
|
|
4154
4233
|
...hostHiddenStyles,
|
|
4155
4234
|
}),
|
|
4156
4235
|
...buildResponsiveStyles(stretch, (responsiveStretch) => ({
|
|
@@ -4166,7 +4245,7 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4166
4245
|
display: 'flex',
|
|
4167
4246
|
width: '100%',
|
|
4168
4247
|
cursor: 'pointer',
|
|
4169
|
-
color:
|
|
4248
|
+
color: colorPrimary,
|
|
4170
4249
|
textDecoration: underline ? 'underline' : 'none',
|
|
4171
4250
|
...textSmallStyle,
|
|
4172
4251
|
...mergeDeep(buildResponsiveStyles(hideLabel, (hidelabelValue) => ({
|
|
@@ -4190,14 +4269,14 @@ const getLinkButtonPureStyles = (icon, iconSource, active, isDisabledOrLoading,
|
|
|
4190
4269
|
transition: getTransition('background-color'),
|
|
4191
4270
|
...(active && {
|
|
4192
4271
|
...frostedGlassStyle,
|
|
4193
|
-
backgroundColor:
|
|
4272
|
+
backgroundColor: colorFrosted,
|
|
4194
4273
|
}),
|
|
4195
4274
|
},
|
|
4196
4275
|
...(!isDisabledOrLoading &&
|
|
4197
4276
|
hoverMediaQuery({
|
|
4198
4277
|
'&:hover::before': {
|
|
4199
4278
|
...frostedGlassStyle,
|
|
4200
|
-
backgroundColor:
|
|
4279
|
+
backgroundColor: colorFrostedStrong,
|
|
4201
4280
|
},
|
|
4202
4281
|
})),
|
|
4203
4282
|
...(!hasSlottedAnchor && {
|
|
@@ -4247,7 +4326,7 @@ const getComponentCss$17 = (icon, iconSource, active, isDisabled, isLoading, isD
|
|
|
4247
4326
|
return getCss(mergeDeep(getLinkButtonPureStyles(icon, iconSource, active, isDisabledOrLoading, stretch, size, hideLabel, alignLabel, underline, false), {
|
|
4248
4327
|
root: {
|
|
4249
4328
|
...(isDisabled && {
|
|
4250
|
-
color:
|
|
4329
|
+
color: colorContrastLow,
|
|
4251
4330
|
}),
|
|
4252
4331
|
...(isDisabledOrLoading && {
|
|
4253
4332
|
cursor: 'not-allowed',
|
|
@@ -4284,7 +4363,6 @@ const getFontWeight = (weight) => {
|
|
|
4284
4363
|
/**
|
|
4285
4364
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
4286
4365
|
*/
|
|
4287
|
-
const { canvasColor: canvasColor$9, primaryColor: primaryColor$z } = colors;
|
|
4288
4366
|
const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
|
|
4289
4367
|
const isTopAligned = align === 'top';
|
|
4290
4368
|
return getCss({
|
|
@@ -4292,13 +4370,13 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4292
4370
|
':host': {
|
|
4293
4371
|
display: 'flex',
|
|
4294
4372
|
alignItems: 'stretch',
|
|
4373
|
+
colorScheme: 'dark', // dark is used in 99% of the cases (it can still be overridden by the user via `color-scheme`)
|
|
4295
4374
|
// Safari workaround to scale the tile properly
|
|
4296
4375
|
'@supports (-webkit-hyphens: auto)': {
|
|
4297
4376
|
alignItems: 'baseline',
|
|
4298
4377
|
},
|
|
4299
4378
|
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
4300
4379
|
...addImportantToEachRule({
|
|
4301
|
-
...colorSchemeStyles,
|
|
4302
4380
|
...hostHiddenStyles,
|
|
4303
4381
|
}),
|
|
4304
4382
|
},
|
|
@@ -4337,7 +4415,7 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4337
4415
|
zIndex: 3,
|
|
4338
4416
|
maxWidth: '34.375rem',
|
|
4339
4417
|
...textMediumStyle,
|
|
4340
|
-
color:
|
|
4418
|
+
color: colorPrimary,
|
|
4341
4419
|
hyphens: 'inherit',
|
|
4342
4420
|
...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
|
|
4343
4421
|
fontSize: getFontSizeText(sizeValue),
|
|
@@ -4366,14 +4444,14 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4366
4444
|
...(isTopAligned
|
|
4367
4445
|
? {
|
|
4368
4446
|
gridArea: '1/1/3/-1',
|
|
4369
|
-
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${
|
|
4447
|
+
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
4370
4448
|
marginBottom: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4371
4449
|
borderStartStartRadius: 'inherit',
|
|
4372
4450
|
borderStartEndRadius: 'inherit',
|
|
4373
4451
|
}
|
|
4374
4452
|
: {
|
|
4375
4453
|
gridArea: '4/1/6/-1',
|
|
4376
|
-
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${
|
|
4454
|
+
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
4377
4455
|
marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
4378
4456
|
borderEndStartRadius: 'inherit',
|
|
4379
4457
|
borderEndEndRadius: 'inherit',
|
|
@@ -4411,8 +4489,8 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4411
4489
|
'link-or-button-pure': {
|
|
4412
4490
|
zIndex: 5,
|
|
4413
4491
|
gridColumn: 2,
|
|
4414
|
-
gridRow: hasFooterSlot
|
|
4415
|
-
alignSelf: '
|
|
4492
|
+
gridRow: `1/${hasFooterSlot ? 3 : 2}`,
|
|
4493
|
+
alignSelf: isTopAligned ? 'flex-start' : 'flex-end',
|
|
4416
4494
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
4417
4495
|
display: compactValue ? 'inline-block' : 'none',
|
|
4418
4496
|
})),
|
|
@@ -4428,18 +4506,17 @@ const getComponentCss$16 = (isDisabledOrLoading, aspectRatio, size, weight, alig
|
|
|
4428
4506
|
});
|
|
4429
4507
|
};
|
|
4430
4508
|
|
|
4431
|
-
const { primaryColor: primaryColor$y, canvasColor: canvasColor$8, contrastHighColor: contrastHighColor$9, frostedColor: frostedColor$9, frostedSoftColor: frostedSoftColor$5 } = colors;
|
|
4432
4509
|
const getVariantColors = (variant) => {
|
|
4433
4510
|
const colors = {
|
|
4434
4511
|
primary: {
|
|
4435
|
-
textColor:
|
|
4436
|
-
backgroundColor:
|
|
4437
|
-
backgroundColorHover:
|
|
4512
|
+
textColor: colorCanvas,
|
|
4513
|
+
backgroundColor: colorPrimary,
|
|
4514
|
+
backgroundColorHover: colorContrastHigh,
|
|
4438
4515
|
},
|
|
4439
4516
|
secondary: {
|
|
4440
|
-
textColor:
|
|
4441
|
-
backgroundColor:
|
|
4442
|
-
backgroundColorHover:
|
|
4517
|
+
textColor: colorPrimary,
|
|
4518
|
+
backgroundColor: colorFrostedStrong,
|
|
4519
|
+
backgroundColorHover: colorFrosted,
|
|
4443
4520
|
},
|
|
4444
4521
|
};
|
|
4445
4522
|
return colors[variant];
|
|
@@ -4465,7 +4542,6 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4465
4542
|
}),
|
|
4466
4543
|
}))),
|
|
4467
4544
|
...addImportantToEachRule({
|
|
4468
|
-
...colorSchemeStyles,
|
|
4469
4545
|
...hostHiddenStyles,
|
|
4470
4546
|
}),
|
|
4471
4547
|
},
|
|
@@ -4514,7 +4590,6 @@ const getLinkButtonStyles = (icon, iconSource, variant, hideLabel, isDisabledOrL
|
|
|
4514
4590
|
};
|
|
4515
4591
|
|
|
4516
4592
|
const cssVariableInternalButtonScaling = '--p-internal-button-scaling';
|
|
4517
|
-
const { frostedSoftColor: frostedSoftColor$4, contrastLowColor: contrastLowColor$7 } = colors;
|
|
4518
4593
|
// CSS Variable defined in fontHyphenationStyle
|
|
4519
4594
|
/**
|
|
4520
4595
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
@@ -4525,9 +4600,9 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
|
|
|
4525
4600
|
root: {
|
|
4526
4601
|
...(disabledOrLoading && {
|
|
4527
4602
|
cursor: 'not-allowed',
|
|
4528
|
-
backgroundColor:
|
|
4529
|
-
borderColor:
|
|
4530
|
-
color:
|
|
4603
|
+
backgroundColor: colorFrostedSoft,
|
|
4604
|
+
borderColor: colorFrostedSoft,
|
|
4605
|
+
color: colorContrastLow,
|
|
4531
4606
|
}),
|
|
4532
4607
|
},
|
|
4533
4608
|
...(isLoading && {
|
|
@@ -4558,126 +4633,143 @@ const getComponentCss$15 = (icon, iconSource, variant, hideLabel, isDisabled, is
|
|
|
4558
4633
|
}));
|
|
4559
4634
|
};
|
|
4560
4635
|
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4636
|
+
const palette = {
|
|
4637
|
+
dark: {
|
|
4638
|
+
grey: {
|
|
4639
|
+
'950': 'hsl(225, 100%, 99%)',
|
|
4640
|
+
'100a': 'hsla(240, 3.7%, 26.5%, 0.154)',
|
|
4641
|
+
'200a': 'hsla(240, 2%, 43%, 0.228)'},
|
|
4642
|
+
},
|
|
4643
|
+
};
|
|
4644
|
+
|
|
4645
|
+
const colorFrostedDark = palette.dark.grey['200a'];
|
|
4646
|
+
|
|
4647
|
+
const colorFrostedSoftDark = palette.dark.grey['100a'];
|
|
4648
|
+
|
|
4649
|
+
const colorPrimaryDark = palette.dark.grey["950"];
|
|
4650
|
+
|
|
4651
|
+
const typescaleXs = 'clamp(0.81rem, 0.23vw + 0.77rem, 0.88rem)';
|
|
4652
|
+
|
|
4653
|
+
const spacingStaticSm = '8px';
|
|
4654
|
+
|
|
4655
|
+
const spacingStaticXs = '4px';
|
|
4656
|
+
|
|
4657
|
+
/**
|
|
4658
|
+
* @css-variable {"name": "--p-canvas-sidebar-start-width", "description": "Width of the sidebar start.", "defaultValue": "320px"}
|
|
4659
|
+
*/
|
|
4564
4660
|
const cssVarSidebarStartWidth = '--p-canvas-sidebar-start-width';
|
|
4661
|
+
/**
|
|
4662
|
+
* @css-variable {"name": "--p-canvas-sidebar-end-width", "description": "Width of the sidebar end.", "defaultValue": "320px"}
|
|
4663
|
+
*/
|
|
4565
4664
|
const cssVarSidebarEndWidth = '--p-canvas-sidebar-end-width';
|
|
4665
|
+
// public css classes
|
|
4666
|
+
const cssClassGrid = '-p-canvas-grid';
|
|
4566
4667
|
// default values for public css variables
|
|
4567
|
-
const
|
|
4568
|
-
const
|
|
4569
|
-
|
|
4570
|
-
const
|
|
4571
|
-
const
|
|
4668
|
+
const minWidth = '320px';
|
|
4669
|
+
const sidebarStartWidthMobile = `min(100vw,var(${cssVarSidebarStartWidth},${minWidth}))`;
|
|
4670
|
+
const sidebarEndWidthMobile = `min(100vw,var(${cssVarSidebarEndWidth},${minWidth}))`;
|
|
4671
|
+
const sidebarStartWidthDesktop = `min(calc(100vw - ${minWidth}),var(${cssVarSidebarStartWidth},${minWidth}))`;
|
|
4672
|
+
const sidebarEndWidthDesktop = `min(calc(100vw - ${minWidth}),var(${cssVarSidebarEndWidth},${minWidth}))`;
|
|
4572
4673
|
// media queries
|
|
4573
|
-
const
|
|
4574
|
-
const
|
|
4674
|
+
const mediaQueryMinM = getMediaQueryMin('m');
|
|
4675
|
+
const mediaQueryMaxM = getMediaQueryMax('m');
|
|
4575
4676
|
// others
|
|
4576
4677
|
const spacingBase = gridGap.replace('36px', '24px');
|
|
4577
|
-
const
|
|
4578
|
-
const
|
|
4678
|
+
const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen, background) => {
|
|
4679
|
+
const isBackgroundSurface = background === 'surface';
|
|
4680
|
+
const primaryBackgroundColor = isBackgroundSurface ? colorSurface : colorCanvas;
|
|
4681
|
+
const secondaryBackgroundColor = isBackgroundSurface ? colorCanvas : colorSurface;
|
|
4579
4682
|
return getCss({
|
|
4580
4683
|
'@global': {
|
|
4581
4684
|
':host': {
|
|
4582
4685
|
display: 'block',
|
|
4583
4686
|
...addImportantToEachRule({
|
|
4584
|
-
|
|
4687
|
+
// prevents horizontal scroll due to sidebar transform. `overflow: clip` clips content like hidden but doesn't
|
|
4688
|
+
// establish a scrolling context, so sticky positioning still works.
|
|
4689
|
+
overflowX: 'clip',
|
|
4585
4690
|
...hostHiddenStyles,
|
|
4586
4691
|
}),
|
|
4587
4692
|
},
|
|
4588
4693
|
...preventFoucOfNestedElementsStyles,
|
|
4589
4694
|
slot: {
|
|
4590
4695
|
'&:not([name]),&[name="footer"]': {
|
|
4591
|
-
[`&::slotted(.${cssClassGrid})`]: {
|
|
4696
|
+
[`&::slotted(.${cssClassGrid})`]: addImportantToEachRule({
|
|
4592
4697
|
display: 'grid',
|
|
4593
4698
|
gridTemplateColumns: 'repeat(12,minmax(0,1fr))',
|
|
4594
4699
|
columnGap: spacingBase,
|
|
4595
4700
|
marginInline: 'auto',
|
|
4596
4701
|
containerType: 'inline-size',
|
|
4597
|
-
},
|
|
4598
|
-
},
|
|
4599
|
-
'&[name="title"]::slotted': {
|
|
4600
|
-
'&(a)': {
|
|
4601
|
-
textDecoration: 'none',
|
|
4602
|
-
color: 'inherit',
|
|
4603
|
-
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
4604
|
-
},
|
|
4605
|
-
'&(a:focus-visible)': getFocusBaseStyles(),
|
|
4702
|
+
}),
|
|
4606
4703
|
},
|
|
4607
4704
|
'&[name="sidebar-end-header"]': {
|
|
4608
4705
|
display: 'block', // ensures header section of sidebar-end area is aligned correctly
|
|
4609
4706
|
},
|
|
4610
4707
|
'&[name="background"]': {
|
|
4611
|
-
zIndex:
|
|
4708
|
+
zIndex: 1,
|
|
4612
4709
|
display: 'block',
|
|
4613
|
-
gridArea: '1/
|
|
4710
|
+
gridArea: '1/2/-1/3',
|
|
4614
4711
|
position: 'sticky',
|
|
4615
4712
|
top: 0,
|
|
4616
|
-
height: '
|
|
4713
|
+
height: '100lvh', // viewport when Safari's UI is completely hidden (maximum space)
|
|
4617
4714
|
pointerEvents: 'none',
|
|
4618
4715
|
overflow: 'hidden',
|
|
4619
4716
|
transform: 'translate3d(0,0,0)', // needed for Safari to force GPU acceleration
|
|
4620
|
-
|
|
4621
|
-
gridColumn: '2/3',
|
|
4622
|
-
},
|
|
4623
|
-
'&::slotted(video),&::slotted(img)': {
|
|
4717
|
+
'&::slotted(video),&::slotted(img)': addImportantToEachRule({
|
|
4624
4718
|
width: '100%',
|
|
4625
4719
|
height: '100%',
|
|
4626
4720
|
objectFit: 'cover',
|
|
4627
|
-
|
|
4628
|
-
pointerEvents: 'none',
|
|
4629
|
-
},
|
|
4721
|
+
}),
|
|
4630
4722
|
},
|
|
4723
|
+
'&[name="title"]::slotted': addImportantToEachRule({
|
|
4724
|
+
'&(a)': {
|
|
4725
|
+
all: 'unset',
|
|
4726
|
+
cursor: 'pointer',
|
|
4727
|
+
color: 'inherit',
|
|
4728
|
+
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
4729
|
+
},
|
|
4730
|
+
'&(a:focus-visible)': getFocusBaseStyles(),
|
|
4731
|
+
}),
|
|
4631
4732
|
},
|
|
4632
4733
|
h2: {
|
|
4734
|
+
all: 'unset',
|
|
4735
|
+
padding: spacingStaticXs, // preserve enough spacing for focus state
|
|
4633
4736
|
font: textXSmallStyle.font,
|
|
4737
|
+
color: colorPrimary,
|
|
4634
4738
|
textOverflow: 'ellipsis',
|
|
4635
4739
|
overflow: 'hidden',
|
|
4636
4740
|
whiteSpace: 'nowrap',
|
|
4637
|
-
margin: 0,
|
|
4638
|
-
padding: '4px', // preserve enough spacing for focus state
|
|
4639
4741
|
textTransform: 'uppercase',
|
|
4640
4742
|
letterSpacing: '2px',
|
|
4641
4743
|
},
|
|
4642
4744
|
},
|
|
4643
4745
|
root: {
|
|
4644
|
-
[cssVarTemplateSidebarStartWidth]: isSidebarStartOpen ? sidebarStartWidth : '0px',
|
|
4645
|
-
[cssVarTemplateSidebarEndWidth]: isSidebarEndOpen ? sidebarEndWidth : '0px',
|
|
4646
4746
|
display: 'grid',
|
|
4647
|
-
|
|
4648
|
-
gridTemplateAreas: '"header" "main" "footer"',
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
[mediaQueryS$1]: {
|
|
4656
|
-
gridTemplateColumns: `var(${cssVarTemplateSidebarStartWidth}) minmax(0,1fr)`,
|
|
4657
|
-
gridTemplateAreas: '"sidebar-start header" "sidebar-start main" "sidebar-start footer"',
|
|
4658
|
-
},
|
|
4659
|
-
[mediaQueryM]: {
|
|
4660
|
-
gridTemplateColumns: `var(${cssVarTemplateSidebarStartWidth}) minmax(0,1fr) var(${cssVarTemplateSidebarEndWidth})`,
|
|
4661
|
-
gridTemplateAreas: '"sidebar-start header sidebar-end" "sidebar-start main sidebar-end" "sidebar-start footer sidebar-end"',
|
|
4662
|
-
},
|
|
4663
|
-
'&::after': {
|
|
4664
|
-
[mediaQueryM]: {
|
|
4665
|
-
content: '""',
|
|
4666
|
-
zIndex: 2,
|
|
4667
|
-
gridArea: '1/2/-1/3',
|
|
4668
|
-
boxShadow: `1px 0 0 0 ${contrastLowerColor$3}`,
|
|
4669
|
-
background: canvasColor$7,
|
|
4670
|
-
pointerEvents: 'none',
|
|
4747
|
+
gridTemplate: `auto minmax(0,1fr) auto / ${sidebarStartWidthMobile} 100vw ${sidebarEndWidthMobile}`,
|
|
4748
|
+
gridTemplateAreas: '"sidebar-start header sidebar-end" "sidebar-start main sidebar-end" "sidebar-start footer sidebar-end"',
|
|
4749
|
+
minHeight: '100lvh', // viewport when Safari's UI is completely hidden (maximum space)
|
|
4750
|
+
[mediaQueryMaxM]: {
|
|
4751
|
+
transition: getTransition('transform'),
|
|
4752
|
+
transform: `translate3d(${isSidebarEndOpen ? `calc(-1 * ${sidebarStartWidthMobile} - ${sidebarEndWidthMobile})` : isSidebarStartOpen ? '0' : `calc(-1 * ${sidebarStartWidthMobile})`},0,0)`,
|
|
4753
|
+
'&:dir(rtl)': {
|
|
4754
|
+
transform: `translate3d(${isSidebarEndOpen ? `calc(${sidebarStartWidthMobile} + ${sidebarEndWidthMobile})` : isSidebarStartOpen ? '0' : sidebarEndWidthMobile},0,0)`,
|
|
4671
4755
|
},
|
|
4672
4756
|
},
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4757
|
+
[mediaQueryMinM]: {
|
|
4758
|
+
transition: getTransition('grid-template-columns'),
|
|
4759
|
+
gridTemplateColumns: `${isSidebarStartOpen ? sidebarStartWidthDesktop : '0px'} minmax(${minWidth},1fr) ${isSidebarEndOpen ? sidebarEndWidthDesktop : '0px'}`,
|
|
4760
|
+
},
|
|
4761
|
+
'&::before': {
|
|
4762
|
+
content: '""',
|
|
4763
|
+
zIndex: 0,
|
|
4764
|
+
gridArea: '1/2/-1/3',
|
|
4765
|
+
background: primaryBackgroundColor,
|
|
4766
|
+
pointerEvents: 'none',
|
|
4767
|
+
borderEndStartRadius: isSidebarStartOpen ? radius3Xl : 0,
|
|
4768
|
+
transition: getTransition('border-radius'),
|
|
4677
4769
|
},
|
|
4678
4770
|
},
|
|
4679
4771
|
header: {
|
|
4680
|
-
zIndex:
|
|
4772
|
+
zIndex: 4,
|
|
4681
4773
|
gridArea: 'header',
|
|
4682
4774
|
containerType: 'inline-size',
|
|
4683
4775
|
position: 'sticky',
|
|
@@ -4688,8 +4780,10 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4688
4780
|
gridTemplateColumns: 'minmax(0,1fr) auto minmax(0,1fr)',
|
|
4689
4781
|
gap: spacingBase,
|
|
4690
4782
|
alignItems: 'center',
|
|
4691
|
-
|
|
4692
|
-
|
|
4783
|
+
padding: `${spacingStaticSmall} ${spacingBase}`,
|
|
4784
|
+
'&:focus-visible': {
|
|
4785
|
+
outline: 'none',
|
|
4786
|
+
},
|
|
4693
4787
|
'&__area': {
|
|
4694
4788
|
display: 'flex',
|
|
4695
4789
|
gap: spacingStaticSmall,
|
|
@@ -4712,9 +4806,6 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4712
4806
|
display: 'none',
|
|
4713
4807
|
},
|
|
4714
4808
|
},
|
|
4715
|
-
'&:focus': {
|
|
4716
|
-
outline: 'none',
|
|
4717
|
-
},
|
|
4718
4809
|
},
|
|
4719
4810
|
blur: {
|
|
4720
4811
|
zIndex: -1,
|
|
@@ -4726,64 +4817,67 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4726
4817
|
inset: 0,
|
|
4727
4818
|
},
|
|
4728
4819
|
'& > div:nth-of-type(1)': {
|
|
4729
|
-
zIndex: 1,
|
|
4730
4820
|
WebkitBackdropFilter: 'blur(64px)',
|
|
4731
4821
|
backdropFilter: 'blur(64px)',
|
|
4732
4822
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,100%) 0%,rgba(0,0,0,1) 12.5%,rgba(0,0,0,1) 25%,rgba(0,0,0,0) 37.5%)',
|
|
4733
4823
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,100%) 0%,rgba(0,0,0,1) 12.5%,rgba(0,0,0,1) 25%,rgba(0,0,0,0) 37.5%)',
|
|
4734
4824
|
},
|
|
4735
4825
|
'& > div:nth-of-type(2)': {
|
|
4736
|
-
zIndex: 2,
|
|
4737
4826
|
WebkitBackdropFilter: 'blur(32px)',
|
|
4738
4827
|
backdropFilter: 'blur(32px)',
|
|
4739
4828
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 12.5%,rgba(0,0,0,1) 25%,rgba(0,0,0,1) 37.5%,rgba(0,0,0,0) 50%)',
|
|
4740
4829
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 12.5%,rgba(0,0,0,1) 25%,rgba(0,0,0,1) 37.5%,rgba(0,0,0,0) 50%)',
|
|
4741
4830
|
},
|
|
4742
4831
|
'& > div:nth-of-type(3)': {
|
|
4743
|
-
zIndex: 3,
|
|
4744
4832
|
WebkitBackdropFilter: 'blur(16px)',
|
|
4745
4833
|
backdropFilter: 'blur(16px)',
|
|
4746
4834
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 25%,rgba(0,0,0,1) 37.5%,rgba(0,0,0,1) 50%,rgba(0,0,0,0) 62.5%)',
|
|
4747
4835
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 25%,rgba(0,0,0,1) 37.5%,rgba(0,0,0,1) 50%,rgba(0,0,0,0) 62.5%)',
|
|
4748
4836
|
},
|
|
4749
4837
|
'& > div:nth-of-type(4)': {
|
|
4750
|
-
zIndex: 4,
|
|
4751
4838
|
WebkitBackdropFilter: 'blur(8px)',
|
|
4752
4839
|
backdropFilter: 'blur(8px)',
|
|
4753
4840
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 37.5%,rgba(0,0,0,1) 50%,rgba(0,0,0,1) 62.5%,rgba(0,0,0,0) 75%)',
|
|
4754
4841
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 37.5%,rgba(0,0,0,1) 50%,rgba(0,0,0,1) 62.5%,rgba(0,0,0,0) 75%)',
|
|
4755
4842
|
},
|
|
4756
4843
|
'& > div:nth-of-type(5)': {
|
|
4757
|
-
zIndex: 5,
|
|
4758
4844
|
WebkitBackdropFilter: 'blur(4px)',
|
|
4759
4845
|
backdropFilter: 'blur(4px)',
|
|
4760
4846
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,1) 62.5%,rgba(0,0,0,1) 75%,rgba(0,0,0,0) 87.5%)',
|
|
4761
4847
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 50%,rgba(0,0,0,1) 62.5%,rgba(0,0,0,1) 75%,rgba(0,0,0,0) 87.5%)',
|
|
4762
4848
|
},
|
|
4763
4849
|
'& > div:nth-of-type(6)': {
|
|
4764
|
-
zIndex: 6,
|
|
4765
4850
|
WebkitBackdropFilter: 'blur(2px)',
|
|
4766
4851
|
backdropFilter: 'blur(2px)',
|
|
4767
4852
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 62.5%,rgba(0,0,0,1) 75%,rgba(0,0,0,1) 87.5%,rgba(0,0,0,0) 100%)',
|
|
4768
4853
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 62.5%,rgba(0,0,0,1) 75%,rgba(0,0,0,1) 87.5%,rgba(0,0,0,0) 100%)',
|
|
4769
4854
|
},
|
|
4770
4855
|
'& > div:nth-of-type(7)': {
|
|
4771
|
-
zIndex: 7,
|
|
4772
4856
|
WebkitBackdropFilter: 'blur(1px)',
|
|
4773
4857
|
backdropFilter: 'blur(1px)',
|
|
4774
4858
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 75%,rgba(0,0,0,1) 87.5%,rgba(0,0,0,1) 100%)',
|
|
4775
4859
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 75%,rgba(0,0,0,1) 87.5%,rgba(0,0,0,1) 100%)',
|
|
4776
4860
|
},
|
|
4777
4861
|
'& > div:nth-of-type(8)': {
|
|
4778
|
-
zIndex: 8,
|
|
4779
4862
|
WebkitBackdropFilter: 'blur(.5px)',
|
|
4780
4863
|
backdropFilter: 'blur(.5px)',
|
|
4781
4864
|
WebkitMaskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 87.5%,rgba(0,0,0,1) 100%)',
|
|
4782
4865
|
maskImage: 'linear-gradient(to bottom,rgba(0,0,0,0) 87.5%,rgba(0,0,0,1) 100%)',
|
|
4783
4866
|
},
|
|
4867
|
+
'&::after': {
|
|
4868
|
+
content: '""',
|
|
4869
|
+
position: 'absolute',
|
|
4870
|
+
top: 0,
|
|
4871
|
+
insetInlineStart: 0,
|
|
4872
|
+
width: radius3Xl,
|
|
4873
|
+
height: `calc(2 * ${radius3Xl})`,
|
|
4874
|
+
borderStartStartRadius: isSidebarStartOpen ? radius3Xl : 0,
|
|
4875
|
+
boxShadow: `0 calc(-1 * ${radius3Xl}) 0 0 ${secondaryBackgroundColor}`,
|
|
4876
|
+
transition: getTransition('border-radius'),
|
|
4877
|
+
},
|
|
4784
4878
|
},
|
|
4785
4879
|
main: {
|
|
4786
|
-
zIndex:
|
|
4880
|
+
zIndex: 3,
|
|
4787
4881
|
gridArea: 'main',
|
|
4788
4882
|
padding: spacingBase,
|
|
4789
4883
|
},
|
|
@@ -4799,67 +4893,63 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4799
4893
|
position: 'absolute',
|
|
4800
4894
|
inset: '-140px 0 0',
|
|
4801
4895
|
pointerEvents: 'none',
|
|
4802
|
-
background: `linear-gradient(to bottom,hsl(from ${
|
|
4896
|
+
background: `linear-gradient(to bottom,hsl(from ${primaryBackgroundColor} h s l / 0) 0%,hsl(from ${primaryBackgroundColor} h s l / 0.013) 8.1%,hsl(from ${primaryBackgroundColor} h s l / 0.049) 15.5%,hsl(from ${primaryBackgroundColor} h s l / 0.104) 22.5%,hsl(from ${primaryBackgroundColor} h s l / 0.175) 29%,hsl(from ${primaryBackgroundColor} h s l / 0.259) 35.3%,hsl(from ${primaryBackgroundColor} h s l / 0.352) 41.2%,hsl(from ${primaryBackgroundColor} h s l / 0.45) 47.1%,hsl(from ${primaryBackgroundColor} h s l / 0.55) 52.9%,hsl(from ${primaryBackgroundColor} h s l / 0.648) 58.8%,hsl(from ${primaryBackgroundColor} h s l / 0.741) 64.7%,hsl(from ${primaryBackgroundColor} h s l / 0.825) 71%,hsl(from ${primaryBackgroundColor} h s l / 0.896) 77.5%,hsl(from ${primaryBackgroundColor} h s l / 0.951) 84.5%,hsl(from ${primaryBackgroundColor} h s l / 0.987) 91.9%,${primaryBackgroundColor} 100%)`,
|
|
4897
|
+
borderEndStartRadius: isSidebarStartOpen ? radius3Xl : 0,
|
|
4898
|
+
transition: getTransition('border-radius'),
|
|
4803
4899
|
},
|
|
4804
4900
|
},
|
|
4805
4901
|
sidebar: {
|
|
4902
|
+
zIndex: 2,
|
|
4806
4903
|
position: 'sticky',
|
|
4807
4904
|
top: 0,
|
|
4808
|
-
height: '100dvh',
|
|
4905
|
+
height: '100dvh', // transitions between svh (viewport when Safari's address bar and bottom bar are visible (~60-90px less)) and lvh (viewport when Safari's UI is completely hidden (maximum space)) as you scroll (causes reflows)
|
|
4906
|
+
padding: spacingBase,
|
|
4907
|
+
boxSizing: 'border-box',
|
|
4908
|
+
overflow: 'hidden auto',
|
|
4909
|
+
overscrollBehaviorY: 'contain',
|
|
4910
|
+
'&:focus-visible': {
|
|
4911
|
+
outline: 'none',
|
|
4912
|
+
},
|
|
4809
4913
|
'&--start': {
|
|
4810
|
-
zIndex: 7,
|
|
4811
4914
|
gridArea: 'sidebar-start',
|
|
4812
4915
|
justifySelf: 'flex-end',
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
zIndex: -1,
|
|
4818
|
-
position: 'absolute',
|
|
4819
|
-
canvasColor: 'transparent',
|
|
4820
|
-
right: '-16px',
|
|
4821
|
-
height: '32px',
|
|
4822
|
-
width: '16px',
|
|
4823
|
-
pointerEvents: 'none',
|
|
4824
|
-
top: 0,
|
|
4825
|
-
borderTopLeftRadius: '16px',
|
|
4826
|
-
boxShadow: `0 -16px 0 0 ${surfaceColor$3}`,
|
|
4916
|
+
background: secondaryBackgroundColor,
|
|
4917
|
+
width: sidebarStartWidthMobile,
|
|
4918
|
+
[mediaQueryMinM]: {
|
|
4919
|
+
width: sidebarStartWidthDesktop,
|
|
4827
4920
|
},
|
|
4828
4921
|
},
|
|
4829
4922
|
'&--end': {
|
|
4830
|
-
zIndex: 1,
|
|
4831
4923
|
gridArea: 'sidebar-end',
|
|
4832
|
-
justifySelf: 'flex-
|
|
4833
|
-
|
|
4834
|
-
background:
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
overflow: 'hidden auto',
|
|
4840
|
-
overscrollBehaviorY: 'contain',
|
|
4841
|
-
background: 'inherit', // ensures correct scrollbar coloring in light / dark mode
|
|
4924
|
+
justifySelf: 'flex-start',
|
|
4925
|
+
borderInlineStart: `1px solid ${colorContrastLower}`,
|
|
4926
|
+
background: primaryBackgroundColor,
|
|
4927
|
+
width: sidebarEndWidthMobile,
|
|
4928
|
+
[mediaQueryMinM]: {
|
|
4929
|
+
width: sidebarEndWidthDesktop,
|
|
4930
|
+
},
|
|
4842
4931
|
},
|
|
4843
4932
|
'&__header': {
|
|
4844
|
-
zIndex:
|
|
4933
|
+
zIndex: 9999999,
|
|
4845
4934
|
display: 'flex',
|
|
4846
4935
|
gap: spacingStaticSmall,
|
|
4847
4936
|
alignItems: 'center',
|
|
4848
4937
|
position: 'sticky',
|
|
4849
|
-
top:
|
|
4938
|
+
top: `calc(-1 * ${spacingBase})`,
|
|
4939
|
+
margin: `calc(-1 * ${spacingBase}) calc(-1 * ${spacingBase}) ${spacingBase}`,
|
|
4850
4940
|
padding: `${spacingStaticSmall} ${spacingBase}`,
|
|
4851
4941
|
minHeight: '56px',
|
|
4852
4942
|
boxSizing: 'border-box',
|
|
4853
4943
|
'&--start': {
|
|
4854
4944
|
justifyContent: 'flex-start',
|
|
4855
4945
|
'&::before': {
|
|
4856
|
-
background: `linear-gradient(180deg,${
|
|
4946
|
+
background: `linear-gradient(180deg,${secondaryBackgroundColor} 0%,${secondaryBackgroundColor} 65%,transparent 100%)`,
|
|
4857
4947
|
},
|
|
4858
4948
|
},
|
|
4859
4949
|
'&--end': {
|
|
4860
4950
|
justifyContent: 'space-between',
|
|
4861
4951
|
'&::before': {
|
|
4862
|
-
background: `linear-gradient(180deg,${
|
|
4952
|
+
background: `linear-gradient(180deg,${primaryBackgroundColor} 0%,${primaryBackgroundColor} 65%,transparent 100%)`,
|
|
4863
4953
|
},
|
|
4864
4954
|
},
|
|
4865
4955
|
'&::before': {
|
|
@@ -4870,27 +4960,22 @@ const getComponentCss$14 = (isSidebarStartOpen, isSidebarEndOpen) => {
|
|
|
4870
4960
|
pointerEvents: 'none',
|
|
4871
4961
|
},
|
|
4872
4962
|
},
|
|
4873
|
-
'&__content': {
|
|
4874
|
-
position: 'relative', // needed for z-index to work
|
|
4875
|
-
zIndex: 0, // ensures slotted dom nodes can't be on top of sidebar header
|
|
4876
|
-
display: 'block',
|
|
4877
|
-
padding: spacingBase,
|
|
4878
|
-
},
|
|
4879
|
-
'&:focus': {
|
|
4880
|
-
outline: 'none',
|
|
4881
|
-
},
|
|
4882
|
-
},
|
|
4883
|
-
'flyout-start': {
|
|
4884
|
-
'--p-flyout-width': '100dvw',
|
|
4885
|
-
'--p-flyout-max-width': sidebarStartWidth,
|
|
4886
|
-
},
|
|
4887
|
-
'flyout-end': {
|
|
4888
|
-
'--p-flyout-width': '100dvw',
|
|
4889
|
-
'--p-flyout-max-width': sidebarEndWidth,
|
|
4890
4963
|
},
|
|
4891
4964
|
});
|
|
4892
4965
|
};
|
|
4893
4966
|
|
|
4967
|
+
/**
|
|
4968
|
+
* @css-variable {"name": "--p-carousel-px", "description": "Defines the logical inline start and end padding of the carousel, the extra space is used to show parts of the next/previous slide. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
|
|
4969
|
+
*/
|
|
4970
|
+
const cssVarPaddingInline = '--p-carousel-px';
|
|
4971
|
+
/**
|
|
4972
|
+
* @css-variable {"name": "--p-carousel-ps", "description": "Defines the logical inline start padding of the carousel, the extra space is used to show parts of the next/previous slide. Needs to be used in combination with `--p-carousel-px` or `--p-carousel-pe`. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
|
|
4973
|
+
*/
|
|
4974
|
+
const cssVarPaddingInlineStart = '--p-carousel-ps';
|
|
4975
|
+
/**
|
|
4976
|
+
* @css-variable {"name": "--p-carousel-pe", "description": "Defines the logical inline end padding of the carousel, the extra space is used to show parts of the next/previous slide. Needs to be used in combination with `--p-carousel-px` or `--p-carousel-ps`. When used then the prop `width` has no effect anymore.", "defaultValue": ""}
|
|
4977
|
+
*/
|
|
4978
|
+
const cssVarPaddingInlineEnd = '--p-carousel-pe';
|
|
4894
4979
|
const cssVariableGradientColorWidth = '--p-gradient-color-width';
|
|
4895
4980
|
const carouselTransitionDuration = motionDurationModerate;
|
|
4896
4981
|
const paginationInfiniteStartCaseClass = 'pagination--infinite';
|
|
@@ -4914,12 +4999,17 @@ const mediaQueryPointerCoarse = '@media (pointer: coarse)';
|
|
|
4914
4999
|
const spacingMap = {
|
|
4915
5000
|
basic: gridBasicOffset,
|
|
4916
5001
|
extended: gridExtendedOffset,
|
|
5002
|
+
wide: gridWideOffset,
|
|
5003
|
+
full: {
|
|
5004
|
+
base: gridFullOffset,
|
|
5005
|
+
s: gridFullOffset,
|
|
5006
|
+
xxl: gridFullOffset,
|
|
5007
|
+
},
|
|
4917
5008
|
};
|
|
4918
5009
|
const backfaceVisibilityJssStyle = {
|
|
4919
5010
|
backfaceVisibility: 'hidden',
|
|
4920
5011
|
WebkitBackfaceVisibility: 'hidden',
|
|
4921
5012
|
};
|
|
4922
|
-
const { primaryColor: primaryColor$w, contrastMediumColor: contrastMediumColor$a } = colors;
|
|
4923
5013
|
const gradientMask = `linear-gradient(90deg,transparent 20%,#000 var(${cssVariableGradientColorWidth},33%) calc(100% - var(${cssVariableGradientColorWidth},33%)),transparent 80%)`;
|
|
4924
5014
|
// CSS Variable defined in fontHyphenationStyle
|
|
4925
5015
|
/**
|
|
@@ -4935,7 +5025,6 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
4935
5025
|
gap: spacingFluidMedium, // TODO: maybe it's better to style by margin on .splide, then styles would be part of shadow dom
|
|
4936
5026
|
flexDirection: 'column',
|
|
4937
5027
|
boxSizing: 'content-box', // ensures padding is added to host instead of subtracted
|
|
4938
|
-
...colorSchemeStyles,
|
|
4939
5028
|
...hostHiddenStyles,
|
|
4940
5029
|
}),
|
|
4941
5030
|
},
|
|
@@ -4964,7 +5053,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
4964
5053
|
...((hasHeading || hasDescription) && {
|
|
4965
5054
|
[`${selectorHeading},${selectorDescription}`]: {
|
|
4966
5055
|
gridColumn: '1/-1',
|
|
4967
|
-
color:
|
|
5056
|
+
color: colorPrimary,
|
|
4968
5057
|
...(isHeaderAlignCenter && {
|
|
4969
5058
|
textAlign: 'center', // relevant in case heading or description becomes multiline
|
|
4970
5059
|
justifySelf: 'center', // relevant for horizontal alignment of heading and description in case max-width applies
|
|
@@ -4994,14 +5083,17 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
4994
5083
|
},
|
|
4995
5084
|
header: {
|
|
4996
5085
|
display: 'grid',
|
|
4997
|
-
|
|
5086
|
+
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].base}))`,
|
|
5087
|
+
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].base}))`,
|
|
4998
5088
|
[mediaQueryS]: {
|
|
4999
|
-
gridTemplateColumns: 'minmax(0px,
|
|
5000
|
-
|
|
5089
|
+
gridTemplateColumns: 'minmax(0px,1fr) auto',
|
|
5090
|
+
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5091
|
+
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5001
5092
|
...(hasNavigation && { columnGap: spacingStaticMedium }),
|
|
5002
5093
|
},
|
|
5003
5094
|
[mediaQueryXXL]: {
|
|
5004
|
-
|
|
5095
|
+
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
|
|
5096
|
+
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
|
|
5005
5097
|
},
|
|
5006
5098
|
},
|
|
5007
5099
|
nav: {
|
|
@@ -5036,12 +5128,16 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5036
5128
|
}),
|
|
5037
5129
|
// !important is necessary to override inline styles set by splide library
|
|
5038
5130
|
...addImportantToEachRule({
|
|
5039
|
-
|
|
5131
|
+
paddingBlock: '0px',
|
|
5132
|
+
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].base}))`,
|
|
5133
|
+
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].base}))`,
|
|
5040
5134
|
[mediaQueryS]: {
|
|
5041
|
-
|
|
5135
|
+
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5136
|
+
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].s}))`,
|
|
5042
5137
|
},
|
|
5043
5138
|
[mediaQueryXXL]: {
|
|
5044
|
-
|
|
5139
|
+
paddingInlineStart: `var(${cssVarPaddingInlineStart},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
|
|
5140
|
+
paddingInlineEnd: `var(${cssVarPaddingInlineEnd},var(${cssVarPaddingInline},${spacingMap[width].xxl}))`,
|
|
5045
5141
|
},
|
|
5046
5142
|
}),
|
|
5047
5143
|
'&--draggable': {
|
|
@@ -5110,7 +5206,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5110
5206
|
position: 'relative',
|
|
5111
5207
|
},
|
|
5112
5208
|
borderRadius: radiusFull,
|
|
5113
|
-
background:
|
|
5209
|
+
background: colorContrastMedium,
|
|
5114
5210
|
...(isInfinitePagination
|
|
5115
5211
|
? {
|
|
5116
5212
|
width: '0px',
|
|
@@ -5150,7 +5246,7 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5150
5246
|
},
|
|
5151
5247
|
}),
|
|
5152
5248
|
[bulletActiveClass]: {
|
|
5153
|
-
background:
|
|
5249
|
+
background: colorPrimary,
|
|
5154
5250
|
height: paginationBulletSize,
|
|
5155
5251
|
width: addImportantToRule(paginationActiveBulletSize),
|
|
5156
5252
|
...(isInfinitePagination && {
|
|
@@ -5168,25 +5264,24 @@ const getComponentCss$13 = (gradient, hasHeading, hasDescription, hasControlsSlo
|
|
|
5168
5264
|
});
|
|
5169
5265
|
};
|
|
5170
5266
|
|
|
5171
|
-
const { successColor: successColor$3, errorColor: errorColor$2, primaryColor: primaryColor$v, successLowColor: successLowColor$1, errorLowColor, contrastLowerColor: contrastLowerColor$2, successFrostedSoftColor: successFrostedSoftColor$2, errorFrostedSoftColor: errorFrostedSoftColor$1, frostedSoftColor: frostedSoftColor$3, } = colors;
|
|
5172
5267
|
const colorBackgroundMap$1 = {
|
|
5173
|
-
success:
|
|
5174
|
-
error:
|
|
5175
|
-
none:
|
|
5268
|
+
success: colorSuccessFrostedSoft,
|
|
5269
|
+
error: colorErrorFrostedSoft,
|
|
5270
|
+
none: colorFrosted,
|
|
5176
5271
|
};
|
|
5177
5272
|
const colorBorderMap = {
|
|
5178
|
-
success:
|
|
5179
|
-
error:
|
|
5180
|
-
none:
|
|
5273
|
+
success: colorSuccess,
|
|
5274
|
+
error: colorError,
|
|
5275
|
+
none: colorContrastLower,
|
|
5181
5276
|
};
|
|
5182
5277
|
const colorBorderHoverMap = {
|
|
5183
|
-
success:
|
|
5184
|
-
error:
|
|
5185
|
-
none:
|
|
5278
|
+
success: colorSuccess,
|
|
5279
|
+
error: colorError,
|
|
5280
|
+
none: colorPrimary,
|
|
5186
5281
|
};
|
|
5187
5282
|
const colorMap$4 = {
|
|
5188
|
-
success:
|
|
5189
|
-
error:
|
|
5283
|
+
success: colorSuccess,
|
|
5284
|
+
error: colorError,
|
|
5190
5285
|
none: undefined,
|
|
5191
5286
|
};
|
|
5192
5287
|
const getThemedFormStateColors = (state) => {
|
|
@@ -5198,7 +5293,17 @@ const getThemedFormStateColors = (state) => {
|
|
|
5198
5293
|
};
|
|
5199
5294
|
};
|
|
5200
5295
|
|
|
5201
|
-
|
|
5296
|
+
/**
|
|
5297
|
+
* External CSS variables
|
|
5298
|
+
*/
|
|
5299
|
+
const cssVarCheckboxBorderColor = '--p-checkbox-border-color';
|
|
5300
|
+
const cssVarCheckboxBackgroundColor = '--p-checkbox-background-color';
|
|
5301
|
+
const cssVarCheckboxIconColor = '--p-checkbox-icon-color';
|
|
5302
|
+
/**
|
|
5303
|
+
* Internal CSS variables
|
|
5304
|
+
*/
|
|
5305
|
+
const cssVarInternalCheckboxScaling = '--__p-checkbox-scaling';
|
|
5306
|
+
|
|
5202
5307
|
const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
|
|
5203
5308
|
const { formStateBackgroundColor, formStateBorderColor } = getThemedFormStateColors(state);
|
|
5204
5309
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
@@ -5214,9 +5319,9 @@ const getCheckboxBaseStyles = (isDisabled, isLoading, isCompact, state) => {
|
|
|
5214
5319
|
marginBlock: checkboxMarginBlock,
|
|
5215
5320
|
boxSizing: 'border-box',
|
|
5216
5321
|
font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct width and height definition based on ex-unit
|
|
5217
|
-
background: formStateBackgroundColor
|
|
5322
|
+
background: `var(${cssVarCheckboxBackgroundColor},${formStateBackgroundColor})`,
|
|
5218
5323
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
5219
|
-
border: `${checkboxBorderWidth} solid ${formStateBorderColor}`,
|
|
5324
|
+
border: `${checkboxBorderWidth} solid var(${cssVarCheckboxBorderColor},${formStateBorderColor})`,
|
|
5220
5325
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusMd : radiusLg})`,
|
|
5221
5326
|
...(disabledOrLoading && {
|
|
5222
5327
|
pointerEvents: 'none', // to prevent form element becomes clickable/toggleable
|
|
@@ -5240,9 +5345,9 @@ const getInlineSVGBackgroundImage = (path) => {
|
|
|
5240
5345
|
return `url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${path}</svg>')`;
|
|
5241
5346
|
};
|
|
5242
5347
|
|
|
5243
|
-
const { primaryColor: primaryColor$u } = colors;
|
|
5244
5348
|
const checkedIcon$1 = getInlineSVGBackgroundImage(`<path d="m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z"/>`);
|
|
5245
|
-
const getCheckboxCheckedBaseStyles = (isLoading) => {
|
|
5349
|
+
const getCheckboxCheckedBaseStyles = (isLoading, state) => {
|
|
5350
|
+
const { formStateBorderColor } = getThemedFormStateColors(state);
|
|
5246
5351
|
if (isLoading) {
|
|
5247
5352
|
return {};
|
|
5248
5353
|
}
|
|
@@ -5250,14 +5355,14 @@ const getCheckboxCheckedBaseStyles = (isLoading) => {
|
|
|
5250
5355
|
'&::before': {
|
|
5251
5356
|
WebkitMask: `${checkedIcon$1} center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
5252
5357
|
mask: `${checkedIcon$1} center/contain no-repeat`,
|
|
5253
|
-
backgroundColor:
|
|
5358
|
+
backgroundColor: `var(${cssVarCheckboxIconColor}, ${state === 'none' ? colorPrimary : formStateBorderColor})`,
|
|
5254
5359
|
},
|
|
5255
5360
|
};
|
|
5256
5361
|
};
|
|
5257
5362
|
|
|
5258
|
-
const { primaryColor: primaryColor$t } = colors;
|
|
5259
5363
|
const indeterminateIcon = getInlineSVGBackgroundImage(`<path d="m20,11v2H4v-2h16Z"/>`);
|
|
5260
|
-
const getCheckboxIndeterminateBaseStyles = (isLoading) => {
|
|
5364
|
+
const getCheckboxIndeterminateBaseStyles = (isLoading, state) => {
|
|
5365
|
+
const { formStateBorderColor } = getThemedFormStateColors(state);
|
|
5261
5366
|
if (isLoading) {
|
|
5262
5367
|
return {};
|
|
5263
5368
|
}
|
|
@@ -5265,7 +5370,7 @@ const getCheckboxIndeterminateBaseStyles = (isLoading) => {
|
|
|
5265
5370
|
'&::before': {
|
|
5266
5371
|
WebkitMask: `${indeterminateIcon} center/contain no-repeat`,
|
|
5267
5372
|
mask: `${indeterminateIcon} center/contain no-repeat`,
|
|
5268
|
-
backgroundColor:
|
|
5373
|
+
backgroundColor: state === 'none' ? colorPrimary : formStateBorderColor,
|
|
5269
5374
|
},
|
|
5270
5375
|
};
|
|
5271
5376
|
};
|
|
@@ -5278,27 +5383,46 @@ const getFunctionalComponentRequiredStyles = () => {
|
|
|
5278
5383
|
};
|
|
5279
5384
|
};
|
|
5280
5385
|
|
|
5281
|
-
const
|
|
5282
|
-
const getFunctionalComponentLabelStyles = (isDisabledOrLoading, hideLabel, additionalDefaultJssStyle, additionalIsShownJssStyle) => {
|
|
5386
|
+
const getFunctionalComponentLabelAfterStyles = (isDisabledOrLoading, additionalIsDisabledJssStyle) => {
|
|
5283
5387
|
return {
|
|
5388
|
+
'slot[name="label-after"]': {
|
|
5389
|
+
display: 'inline-block',
|
|
5390
|
+
verticalAlign: 'top',
|
|
5391
|
+
...(isDisabledOrLoading && {
|
|
5392
|
+
pointerEvents: 'none',
|
|
5393
|
+
...additionalIsDisabledJssStyle,
|
|
5394
|
+
}),
|
|
5395
|
+
},
|
|
5396
|
+
};
|
|
5397
|
+
};
|
|
5398
|
+
const getFunctionalComponentLabelStyles = (isDisabledOrLoading, hideLabel, additionalDefaultJssStyle, additionalLabelWrapperJssStyle, additionalIsShownJssStyle) => {
|
|
5399
|
+
return {
|
|
5400
|
+
'label-wrapper': {
|
|
5401
|
+
...buildResponsiveStyles(hideLabel, (isHidden) => ({
|
|
5402
|
+
...(!isHidden && { minWidth: 'fit-content' }), // ensures label contents don't shrink to zero in grid containers
|
|
5403
|
+
...getHiddenTextJssStyle(isHidden, additionalIsShownJssStyle),
|
|
5404
|
+
})),
|
|
5405
|
+
...additionalLabelWrapperJssStyle,
|
|
5406
|
+
},
|
|
5284
5407
|
label: {
|
|
5285
|
-
...
|
|
5408
|
+
...proseTextSmStyle,
|
|
5286
5409
|
cursor: isDisabledOrLoading ? 'not-allowed' : 'pointer',
|
|
5287
5410
|
...(isDisabledOrLoading && {
|
|
5288
5411
|
pointerEvents: 'none', // prevents label interaction when disabled or loading
|
|
5289
5412
|
}),
|
|
5290
|
-
|
|
5291
|
-
color: primaryColor$s,
|
|
5413
|
+
color: colorPrimary,
|
|
5292
5414
|
transition: getTransition('color'), // for smooth transitions between e.g. disabled state
|
|
5293
|
-
|
|
5415
|
+
display: 'inline',
|
|
5294
5416
|
'&:empty': {
|
|
5295
5417
|
display: 'none', // prevents outer spacing caused by parents grid gap, in case no label value is defined (although it has to be set to be a11y compliant)
|
|
5296
5418
|
},
|
|
5297
|
-
|
|
5419
|
+
// styling for the description
|
|
5420
|
+
'&:is(span)': {
|
|
5298
5421
|
cursor: 'unset',
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5422
|
+
fontSize: typescaleXs,
|
|
5423
|
+
color: colorContrastHigh,
|
|
5424
|
+
...buildResponsiveStyles(hideLabel, (isHidden) => getHiddenTextJssStyle(isHidden, { marginTop: `-${spacingStaticXs$1}` })),
|
|
5425
|
+
marginTop: `-${spacingStaticXs$1}`,
|
|
5302
5426
|
},
|
|
5303
5427
|
...additionalDefaultJssStyle,
|
|
5304
5428
|
},
|
|
@@ -5328,6 +5452,12 @@ const getFunctionalComponentStateMessageStyles = (state, additionalDefaultJssSty
|
|
|
5328
5452
|
/**
|
|
5329
5453
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
5330
5454
|
*/
|
|
5455
|
+
// CSS Variables defined in checkbox-css-vars.ts
|
|
5456
|
+
/**
|
|
5457
|
+
* @css-variable {"name": "--p-checkbox-border-color", "description": "🧪Experimental: Border colors of Checkbox. Should be used to override the default border color in different states (e.g., hover, focus, error), e.g. when the Checkbox is wrapped inside a custom label."}
|
|
5458
|
+
* @css-variable {"name": "--p-checkbox-background-color", "description": "🧪Experimental: Background color of Checkbox."}
|
|
5459
|
+
* @css-variable {"name": "--p-checkbox-icon-color", "description": "🧪Experimental: Checkmark icon color of Checkbox."}
|
|
5460
|
+
*/
|
|
5331
5461
|
const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact) => {
|
|
5332
5462
|
const { formStateBorderHoverColor } = getThemedFormStateColors(state);
|
|
5333
5463
|
const disabledOrLoading = isDisabledOrLoading(isDisabled, isLoading);
|
|
@@ -5339,35 +5469,39 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
|
|
|
5339
5469
|
':host': {
|
|
5340
5470
|
display: 'block',
|
|
5341
5471
|
...addImportantToEachRule({
|
|
5342
|
-
...colorSchemeStyles,
|
|
5343
5472
|
...hostHiddenStyles,
|
|
5344
5473
|
...(isDisabled && getDisabledBaseStyles()),
|
|
5345
5474
|
}),
|
|
5346
5475
|
[`${cssVarInternalCheckboxScaling}`]: isCompact ? 0.64285714 : 1,
|
|
5347
5476
|
},
|
|
5477
|
+
...getFunctionalComponentLabelAfterStyles(disabledOrLoading),
|
|
5348
5478
|
...preventFoucOfNestedElementsStyles,
|
|
5349
5479
|
input: {
|
|
5350
5480
|
...getCheckboxBaseStyles(isDisabled, isLoading, isCompact, state),
|
|
5351
|
-
'&:checked': getCheckboxCheckedBaseStyles(isLoading),
|
|
5352
|
-
'&:indeterminate': getCheckboxIndeterminateBaseStyles(isLoading),
|
|
5481
|
+
'&:checked': getCheckboxCheckedBaseStyles(isLoading, state),
|
|
5482
|
+
'&:indeterminate': getCheckboxIndeterminateBaseStyles(isLoading, state),
|
|
5353
5483
|
'&:focus-visible': getFocusBaseStyles(),
|
|
5354
5484
|
...(!disabledOrLoading &&
|
|
5355
5485
|
hoverMediaQuery({
|
|
5356
|
-
'&:hover
|
|
5357
|
-
borderColor: formStateBorderHoverColor
|
|
5486
|
+
'&:hover': {
|
|
5487
|
+
borderColor: `var(${cssVarCheckboxBorderColor}, ${formStateBorderHoverColor})`,
|
|
5358
5488
|
},
|
|
5359
5489
|
})),
|
|
5360
5490
|
},
|
|
5361
5491
|
},
|
|
5362
5492
|
root: {
|
|
5363
5493
|
display: 'grid',
|
|
5364
|
-
gridTemplateColumns: 'auto minmax(0, 1fr)',
|
|
5365
5494
|
rowGap: spacingStaticXSmall,
|
|
5366
5495
|
},
|
|
5367
5496
|
wrapper: {
|
|
5368
5497
|
position: 'relative',
|
|
5369
|
-
display: '
|
|
5498
|
+
display: 'grid',
|
|
5499
|
+
gridTemplateColumns: 'auto minmax(0, 1fr)',
|
|
5500
|
+
},
|
|
5501
|
+
'input-wrapper': {
|
|
5502
|
+
position: 'relative',
|
|
5370
5503
|
alignItems: 'center',
|
|
5504
|
+
display: 'grid',
|
|
5371
5505
|
alignSelf: 'flex-start',
|
|
5372
5506
|
minHeight: fontLineHeight, // necessary for compact mode
|
|
5373
5507
|
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
@@ -5385,15 +5519,13 @@ const getComponentCss$12 = (hideLabel, state, isDisabled, isLoading, isCompact)
|
|
|
5385
5519
|
}),
|
|
5386
5520
|
// .label / .required
|
|
5387
5521
|
...getFunctionalComponentLabelStyles(isDisabled || isLoading, hideLabel, {
|
|
5388
|
-
|
|
5389
|
-
}, {
|
|
5522
|
+
cursor: disabledOrLoading ? 'not-allowed' : 'pointer',
|
|
5523
|
+
}, null, {
|
|
5390
5524
|
paddingTop: labelPaddingTop,
|
|
5391
5525
|
paddingInlineStart: labelPaddingInlineStart,
|
|
5392
5526
|
}),
|
|
5393
5527
|
// .message
|
|
5394
|
-
...getFunctionalComponentStateMessageStyles(state,
|
|
5395
|
-
gridColumn: '1/-1',
|
|
5396
|
-
}),
|
|
5528
|
+
...getFunctionalComponentStateMessageStyles(state),
|
|
5397
5529
|
// .loading
|
|
5398
5530
|
...getFunctionalComponentLoadingMessageStyles(),
|
|
5399
5531
|
});
|
|
@@ -5408,7 +5540,6 @@ const cssVarButtonPurePadding = '--ref-p-input-slotted-padding';
|
|
|
5408
5540
|
*/
|
|
5409
5541
|
const cssVarButtonPureMargin = '--ref-p-input-slotted-margin';
|
|
5410
5542
|
const cssVarInternalInputBaseScaling = '--p-internal-input-base-scaling';
|
|
5411
|
-
const { primaryColor: primaryColor$r, contrastMediumColor: contrastMediumColor$9, frostedColor: frostedColor$8 } = colors;
|
|
5412
5543
|
const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel, state, isCompact, readOnly, additionalInputJssStyle) => {
|
|
5413
5544
|
const wrapperBorderWidth = borderWidthThin;
|
|
5414
5545
|
const wrapperHeight = `calc(var(${cssVarInternalInputBaseScaling}) * 3.5rem)`;
|
|
@@ -5425,11 +5556,11 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
|
|
|
5425
5556
|
...addImportantToEachRule({
|
|
5426
5557
|
[`${cssVarButtonPurePadding}`]: buttonPadding,
|
|
5427
5558
|
[`${cssVarButtonPureMargin}`]: buttonMargin,
|
|
5428
|
-
...colorSchemeStyles,
|
|
5429
5559
|
...hostHiddenStyles,
|
|
5430
5560
|
...(isDisabled && getDisabledBaseStyles()),
|
|
5431
5561
|
}),
|
|
5432
5562
|
},
|
|
5563
|
+
...getFunctionalComponentLabelAfterStyles(isDisabled),
|
|
5433
5564
|
...preventFoucOfNestedElementsStyles,
|
|
5434
5565
|
input: {
|
|
5435
5566
|
all: 'unset',
|
|
@@ -5455,13 +5586,13 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
|
|
|
5455
5586
|
border: `${wrapperBorderWidth} solid ${formStateBorderColor}`,
|
|
5456
5587
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
5457
5588
|
background: formStateBackgroundColor,
|
|
5458
|
-
color:
|
|
5589
|
+
color: colorPrimary,
|
|
5459
5590
|
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
5460
5591
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
5461
5592
|
...(readOnly && {
|
|
5462
5593
|
borderColor: 'transparent',
|
|
5463
|
-
background:
|
|
5464
|
-
color:
|
|
5594
|
+
background: colorFrosted,
|
|
5595
|
+
color: colorContrastMedium,
|
|
5465
5596
|
}),
|
|
5466
5597
|
'&:focus-within': {
|
|
5467
5598
|
borderColor: formStateBorderHoverColor,
|
|
@@ -5470,7 +5601,7 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
|
|
|
5470
5601
|
!readOnly &&
|
|
5471
5602
|
!isLoading &&
|
|
5472
5603
|
hoverMediaQuery({
|
|
5473
|
-
'&:hover:not(.button:hover)
|
|
5604
|
+
'&:hover:not(.button:hover),.label-wrapper:hover~&': {
|
|
5474
5605
|
borderColor: formStateBorderHoverColor,
|
|
5475
5606
|
},
|
|
5476
5607
|
})),
|
|
@@ -5491,7 +5622,6 @@ const getFunctionalComponentInputBaseStyles = (isDisabled, isLoading, hideLabel,
|
|
|
5491
5622
|
};
|
|
5492
5623
|
};
|
|
5493
5624
|
|
|
5494
|
-
const { primaryColor: primaryColor$q } = colors;
|
|
5495
5625
|
const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact, cssVarScalingName) => {
|
|
5496
5626
|
const cssVarBackgroundColor = `--p-${componentName}-background-color`;
|
|
5497
5627
|
const cssVarTextColor = `--p-${componentName}-text-color`;
|
|
@@ -5514,7 +5644,7 @@ const getButtonJssStyle = (componentName, isOpen, isDisabled, state, isCompact,
|
|
|
5514
5644
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
5515
5645
|
background: `var(${cssVarBackgroundColor}, ${formStateBackgroundColor})`,
|
|
5516
5646
|
font: textSmallStyle.font,
|
|
5517
|
-
color: `var(${cssVarTextColor}, ${
|
|
5647
|
+
color: `var(${cssVarTextColor}, ${colorPrimary})`,
|
|
5518
5648
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
5519
5649
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}, ${getTransition('color')}`, // for smooth transitions between e.g. disabled states
|
|
5520
5650
|
...(!isDisabled && {
|
|
@@ -5542,7 +5672,6 @@ const getButtonLabelJssStyle = {
|
|
|
5542
5672
|
whiteSpace: 'nowrap',
|
|
5543
5673
|
};
|
|
5544
5674
|
|
|
5545
|
-
const { canvasColor: canvasColor$6 } = colors;
|
|
5546
5675
|
const getFilterJssStyle = (scalingVarName) => {
|
|
5547
5676
|
const padding = `calc(11.2px * (var(${scalingVarName}) - 0.64285714) + 4px)`;
|
|
5548
5677
|
const margin = `calc(${padding} * -1)`;
|
|
@@ -5552,7 +5681,7 @@ const getFilterJssStyle = (scalingVarName) => {
|
|
|
5552
5681
|
top,
|
|
5553
5682
|
padding,
|
|
5554
5683
|
margin,
|
|
5555
|
-
background:
|
|
5684
|
+
background: colorCanvas,
|
|
5556
5685
|
zIndex: 1,
|
|
5557
5686
|
};
|
|
5558
5687
|
};
|
|
@@ -5566,7 +5695,6 @@ const getIconJssStyle = (isOpen) => {
|
|
|
5566
5695
|
};
|
|
5567
5696
|
};
|
|
5568
5697
|
|
|
5569
|
-
const { primaryColor: primaryColor$p, frostedSoftColor: frostedSoftColor$2, contrastHighColor: contrastHighColor$7 } = colors;
|
|
5570
5698
|
const getOptionJssStyle = (componentName, cssVarScalingName) => {
|
|
5571
5699
|
const gap = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
5572
5700
|
const paddingBlock = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
@@ -5578,7 +5706,7 @@ const getOptionJssStyle = (componentName, cssVarScalingName) => {
|
|
|
5578
5706
|
paddingInline,
|
|
5579
5707
|
minHeight: fontLineHeight, // preserves height for empty option
|
|
5580
5708
|
...textSmallStyle,
|
|
5581
|
-
color:
|
|
5709
|
+
color: colorContrastHigh,
|
|
5582
5710
|
cursor: 'pointer',
|
|
5583
5711
|
textAlign: 'start',
|
|
5584
5712
|
wordBreak: 'break-word',
|
|
@@ -5586,10 +5714,10 @@ const getOptionJssStyle = (componentName, cssVarScalingName) => {
|
|
|
5586
5714
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
5587
5715
|
transition: `${getTransition('background-color')}, ${getTransition('color')}`,
|
|
5588
5716
|
'&--highlighted': {
|
|
5589
|
-
background:
|
|
5717
|
+
background: colorFrosted,
|
|
5590
5718
|
},
|
|
5591
5719
|
'&--highlighted, &--selected': {
|
|
5592
|
-
color:
|
|
5720
|
+
color: colorPrimary,
|
|
5593
5721
|
},
|
|
5594
5722
|
'&--disabled': {
|
|
5595
5723
|
cursor: 'not-allowed',
|
|
@@ -5620,7 +5748,6 @@ const getPopoverKeyframesStyles = {
|
|
|
5620
5748
|
},
|
|
5621
5749
|
},
|
|
5622
5750
|
};
|
|
5623
|
-
const { contrastLowColor: contrastLowColor$6, canvasColor: canvasColor$5 } = colors;
|
|
5624
5751
|
const getPopoverJssStyle = (isOpen, cssVarScalingName, optionHeight) => {
|
|
5625
5752
|
const minHeightOptionList = `calc(${4.5 * (optionHeight + 8) + 6 + 2}px)`; // 4.5 options * option height + 8px gap + additional spacing (6px = padding, 2px = border)
|
|
5626
5753
|
const padding = `calc(11.2px * (var(${cssVarScalingName}) - 0.64285714) + 4px)`;
|
|
@@ -5640,8 +5767,8 @@ const getPopoverJssStyle = (isOpen, cssVarScalingName, optionHeight) => {
|
|
|
5640
5767
|
scrollbarColor: 'auto', // firefox
|
|
5641
5768
|
animation: `var(${cssVariableAnimationDuration}, ${motionDurationShort}) ${keyframesName} ${motionEasingBase} forwards`,
|
|
5642
5769
|
filter: 'drop-shadow(0 0 8px rgba(0,0,0,0.15))',
|
|
5643
|
-
background:
|
|
5644
|
-
border: `1px solid ${
|
|
5770
|
+
background: colorCanvas,
|
|
5771
|
+
border: `1px solid ${colorContrastLow}`,
|
|
5645
5772
|
borderRadius: `var(${legacyRadiusMedium}, ${radiusXl})`,
|
|
5646
5773
|
'&:not(:popover-open)': {
|
|
5647
5774
|
display: 'none',
|
|
@@ -5656,7 +5783,6 @@ const getSelectedSlotJssStyle = {
|
|
|
5656
5783
|
overflow: 'hidden',
|
|
5657
5784
|
};
|
|
5658
5785
|
|
|
5659
|
-
const { contrastMediumColor: contrastMediumColor$8 } = colors;
|
|
5660
5786
|
const getFunctionalComponentNoResultsOptionStyles = (componentName, cssVarScalingName) => {
|
|
5661
5787
|
return {
|
|
5662
5788
|
'no-results': {
|
|
@@ -5664,7 +5790,7 @@ const getFunctionalComponentNoResultsOptionStyles = (componentName, cssVarScalin
|
|
|
5664
5790
|
'&[role=option]': {
|
|
5665
5791
|
cursor: 'not-allowed',
|
|
5666
5792
|
},
|
|
5667
|
-
color:
|
|
5793
|
+
color: colorContrastMedium,
|
|
5668
5794
|
},
|
|
5669
5795
|
'sr-only': getHiddenTextJssStyle(),
|
|
5670
5796
|
};
|
|
@@ -5698,7 +5824,6 @@ const getComponentCss$11 = () => {
|
|
|
5698
5824
|
...addImportantToEachRule({
|
|
5699
5825
|
boxSizing: 'content-box', // needed for correct height calculation when padding is set on host (e.g. custom click area)
|
|
5700
5826
|
...getDimensionStyle,
|
|
5701
|
-
...colorSchemeStyles,
|
|
5702
5827
|
...hostHiddenStyles,
|
|
5703
5828
|
}),
|
|
5704
5829
|
},
|
|
@@ -5730,16 +5855,15 @@ const getComponentCss$11 = () => {
|
|
|
5730
5855
|
});
|
|
5731
5856
|
};
|
|
5732
5857
|
|
|
5733
|
-
const { primaryColor: primaryColor$o, contrastLowColor: contrastLowColor$5, contrastMediumColor: contrastMediumColor$7, contrastHighColor: contrastHighColor$6, successColor: successColor$2, warningColor: warningColor$1, errorColor: errorColor$1, infoColor: infoColor$1, } = colors;
|
|
5734
5858
|
const colorMap$3 = {
|
|
5735
|
-
primary:
|
|
5736
|
-
'contrast-high':
|
|
5737
|
-
'contrast-medium':
|
|
5738
|
-
'contrast-low':
|
|
5739
|
-
success:
|
|
5740
|
-
warning:
|
|
5741
|
-
error:
|
|
5742
|
-
info:
|
|
5859
|
+
primary: colorPrimary,
|
|
5860
|
+
'contrast-high': colorContrastHigh,
|
|
5861
|
+
'contrast-medium': colorContrastMedium,
|
|
5862
|
+
'contrast-low': colorContrastLow,
|
|
5863
|
+
success: colorSuccess,
|
|
5864
|
+
warning: colorWarning,
|
|
5865
|
+
error: colorError,
|
|
5866
|
+
info: colorInfo,
|
|
5743
5867
|
inherit: 'currentColor',
|
|
5744
5868
|
};
|
|
5745
5869
|
const getThemedTypographyColor = (textColor) => {
|
|
@@ -5786,7 +5910,6 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
|
|
|
5786
5910
|
':host': {
|
|
5787
5911
|
display: 'block',
|
|
5788
5912
|
...addImportantToEachRule({
|
|
5789
|
-
...colorSchemeStyles,
|
|
5790
5913
|
...hostHiddenStyles,
|
|
5791
5914
|
}),
|
|
5792
5915
|
},
|
|
@@ -5798,12 +5921,11 @@ const getComponentCss$10 = (size, align, color, ellipsis) => {
|
|
|
5798
5921
|
});
|
|
5799
5922
|
};
|
|
5800
5923
|
|
|
5801
|
-
const { contrastLowerColor: contrastLowerColor$1, contrastLowColor: contrastLowColor$4, contrastMediumColor: contrastMediumColor$6, contrastHighColor: contrastHighColor$5 } = colors;
|
|
5802
5924
|
const colorMap$2 = {
|
|
5803
|
-
'contrast-lower':
|
|
5804
|
-
'contrast-low':
|
|
5805
|
-
'contrast-medium':
|
|
5806
|
-
'contrast-high':
|
|
5925
|
+
'contrast-lower': colorContrastLower,
|
|
5926
|
+
'contrast-low': colorContrastLow,
|
|
5927
|
+
'contrast-medium': colorContrastMedium,
|
|
5928
|
+
'contrast-high': colorContrastHigh,
|
|
5807
5929
|
};
|
|
5808
5930
|
const getComponentCss$$ = (color, orientation) => {
|
|
5809
5931
|
return getCss({
|
|
@@ -5811,7 +5933,6 @@ const getComponentCss$$ = (color, orientation) => {
|
|
|
5811
5933
|
':host': {
|
|
5812
5934
|
display: 'block',
|
|
5813
5935
|
...addImportantToEachRule({
|
|
5814
|
-
...colorSchemeStyles,
|
|
5815
5936
|
...hostHiddenStyles,
|
|
5816
5937
|
}),
|
|
5817
5938
|
},
|
|
@@ -5843,7 +5964,6 @@ const easingOpen = 'in';
|
|
|
5843
5964
|
const dialogDurationClose = 'short';
|
|
5844
5965
|
const backdropDurationClose = 'moderate';
|
|
5845
5966
|
const easingClose = 'out';
|
|
5846
|
-
const { primaryColor: primaryColor$n, canvasColor: canvasColor$4, surfaceColor: surfaceColor$2, backdropColor: backdropColor$1 } = colors;
|
|
5847
5967
|
const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
5848
5968
|
return getCss({
|
|
5849
5969
|
'@global': {
|
|
@@ -5861,13 +5981,12 @@ const getComponentCss$_ = (isOpen, isPrimary, isSecondaryScrollerVisible) => {
|
|
|
5861
5981
|
':host': {
|
|
5862
5982
|
display: 'block',
|
|
5863
5983
|
...addImportantToEachRule({
|
|
5864
|
-
[cssVarColorPrimary]:
|
|
5865
|
-
[cssVarColorBackgroundBase]:
|
|
5866
|
-
[cssVarColorBackgroundSurface]:
|
|
5867
|
-
[cssVarColorBackgroundShading]:
|
|
5984
|
+
[cssVarColorPrimary]: colorPrimary,
|
|
5985
|
+
[cssVarColorBackgroundBase]: colorCanvas,
|
|
5986
|
+
[cssVarColorBackgroundSurface]: colorSurface,
|
|
5987
|
+
[cssVarColorBackgroundShading]: colorBackdrop,
|
|
5868
5988
|
// [cssVarColorBackgroundScroller]: theme === 'dark' ? 'rgba(0,0,0,.01)' : 'rgba(255,255,255,.01)', // ensures that the scrollbar color is mostly set correctly
|
|
5869
5989
|
[cssVarColorBackgroundScroller]: 'rgba(255,255,255,.01)', // ensures that the scrollbar color is mostly set correctly
|
|
5870
|
-
...colorSchemeStyles,
|
|
5871
5990
|
...hostHiddenStyles,
|
|
5872
5991
|
}),
|
|
5873
5992
|
},
|
|
@@ -6103,7 +6222,6 @@ const getComponentCss$Z = (isPrimary, isSecondary, isCascade) => {
|
|
|
6103
6222
|
':host': {
|
|
6104
6223
|
display: 'contents',
|
|
6105
6224
|
...addImportantToEachRule({
|
|
6106
|
-
...colorSchemeStyles,
|
|
6107
6225
|
...hostHiddenStyles,
|
|
6108
6226
|
}),
|
|
6109
6227
|
},
|
|
@@ -6337,7 +6455,6 @@ const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
|
6337
6455
|
':host': {
|
|
6338
6456
|
display: 'grid',
|
|
6339
6457
|
...addImportantToEachRule({
|
|
6340
|
-
...colorSchemeStyles,
|
|
6341
6458
|
...hostHiddenStyles,
|
|
6342
6459
|
}),
|
|
6343
6460
|
},
|
|
@@ -6365,14 +6482,12 @@ const getComponentCss$Y = (hasSlottedAnchor, isActive) => {
|
|
|
6365
6482
|
});
|
|
6366
6483
|
};
|
|
6367
6484
|
|
|
6368
|
-
const { primaryColor: primaryColor$m } = colors;
|
|
6369
6485
|
const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
6370
6486
|
return getCss({
|
|
6371
6487
|
'@global': {
|
|
6372
6488
|
':host': {
|
|
6373
6489
|
display: 'block',
|
|
6374
6490
|
...addImportantToEachRule({
|
|
6375
|
-
...colorSchemeStyles,
|
|
6376
6491
|
...hostHiddenStyles,
|
|
6377
6492
|
}),
|
|
6378
6493
|
},
|
|
@@ -6385,7 +6500,7 @@ const getComponentCss$X = (state, labelSize, hasLabel) => {
|
|
|
6385
6500
|
legend: {
|
|
6386
6501
|
all: 'unset',
|
|
6387
6502
|
marginBottom: spacingStaticMedium,
|
|
6388
|
-
color:
|
|
6503
|
+
color: colorPrimary,
|
|
6389
6504
|
...(labelSize === 'small' ? headingSmallStyle : headingMediumStyle),
|
|
6390
6505
|
},
|
|
6391
6506
|
}),
|
|
@@ -6414,7 +6529,6 @@ const getComponentCss$W = (size) => {
|
|
|
6414
6529
|
display: 'inline-block',
|
|
6415
6530
|
verticalAlign: 'top',
|
|
6416
6531
|
...addImportantToEachRule({
|
|
6417
|
-
...colorSchemeStyles,
|
|
6418
6532
|
...hostHiddenStyles,
|
|
6419
6533
|
}),
|
|
6420
6534
|
},
|
|
@@ -6439,7 +6553,6 @@ const getComponentCss$W = (size) => {
|
|
|
6439
6553
|
});
|
|
6440
6554
|
};
|
|
6441
6555
|
|
|
6442
|
-
const { backdropColor, primaryColor: primaryColor$l, canvasColor: canvasColor$3, surfaceColor: surfaceColor$1, frostedColor: frostedColor$7 } = colors;
|
|
6443
6556
|
const cssVarBackgroundColor = '--_a';
|
|
6444
6557
|
const dialogHostJssStyle = (background) => {
|
|
6445
6558
|
return {
|
|
@@ -6447,7 +6560,7 @@ const dialogHostJssStyle = (background) => {
|
|
|
6447
6560
|
'--pds-internal-grid-margin': `calc(${spacingFluidLarge} * -1)`,
|
|
6448
6561
|
'--pds-internal-grid-width-min': 'auto',
|
|
6449
6562
|
'--pds-internal-grid-width-max': 'none',
|
|
6450
|
-
[cssVarBackgroundColor]: background === 'surface' ?
|
|
6563
|
+
[cssVarBackgroundColor]: background === 'surface' ? colorSurface : colorCanvas,
|
|
6451
6564
|
};
|
|
6452
6565
|
};
|
|
6453
6566
|
const getDialogJssStyle = (isVisible, backdrop = 'blur') => {
|
|
@@ -6485,7 +6598,7 @@ const getDialogBackdropTransitionJssStyle = (isVisible, backdrop = 'blur') => {
|
|
|
6485
6598
|
? {
|
|
6486
6599
|
visibility: 'inherit',
|
|
6487
6600
|
pointerEvents: 'auto',
|
|
6488
|
-
background:
|
|
6601
|
+
background: colorBackdrop,
|
|
6489
6602
|
...(isBackdropBlur && frostedGlassStyle),
|
|
6490
6603
|
}
|
|
6491
6604
|
: {
|
|
@@ -6541,7 +6654,7 @@ const dialogGridJssStyle = () => {
|
|
|
6541
6654
|
};
|
|
6542
6655
|
const getDialogColorJssStyle = () => {
|
|
6543
6656
|
return {
|
|
6544
|
-
color:
|
|
6657
|
+
color: colorPrimary, // enables color inheritance for slots
|
|
6545
6658
|
background: `var(${cssVarBackgroundColor})`,
|
|
6546
6659
|
};
|
|
6547
6660
|
};
|
|
@@ -6630,7 +6743,7 @@ const getSlotFooterJssStyle = () => {
|
|
|
6630
6743
|
zIndex: -1,
|
|
6631
6744
|
position: 'absolute',
|
|
6632
6745
|
inset: `calc(${paddingBlock} - ${offset}) calc(${dialogPaddingInline} - ${offset})`,
|
|
6633
|
-
background:
|
|
6746
|
+
background: colorFrosted,
|
|
6634
6747
|
borderRadius: radius3Xl,
|
|
6635
6748
|
...frostedGlassStyle,
|
|
6636
6749
|
},
|
|
@@ -6673,7 +6786,6 @@ const getComponentCss$V = (isOpen, background, backdrop, position, hasHeader, ha
|
|
|
6673
6786
|
[`${cssVarRefPaddingBottom$2}`]: dialogPaddingBottom,
|
|
6674
6787
|
[`${cssVarRefPaddingInline$2}`]: dialogPaddingInline,
|
|
6675
6788
|
...dialogHostJssStyle(background),
|
|
6676
|
-
...colorSchemeStyles,
|
|
6677
6789
|
...hostHiddenStyles,
|
|
6678
6790
|
}),
|
|
6679
6791
|
},
|
|
@@ -6748,7 +6860,6 @@ const getComponentCss$U = (size, align, color, ellipsis) => {
|
|
|
6748
6860
|
':host': {
|
|
6749
6861
|
display: 'block',
|
|
6750
6862
|
...addImportantToEachRule({
|
|
6751
|
-
...colorSchemeStyles,
|
|
6752
6863
|
...hostHiddenStyles,
|
|
6753
6864
|
}),
|
|
6754
6865
|
},
|
|
@@ -6756,7 +6867,7 @@ const getComponentCss$U = (size, align, color, ellipsis) => {
|
|
|
6756
6867
|
},
|
|
6757
6868
|
root: getTypographyRootJssStyle(headingXXLargeStyle, buildResponsiveStyles(size, (sizeValue) => ({
|
|
6758
6869
|
fontSize: sizeValue === 'inherit' ? sizeValue : sizeMap$3[sizeValue],
|
|
6759
|
-
fontWeight: sizeValue === 'small' ? fontWeightSemiBold : fontWeightRegular
|
|
6870
|
+
fontWeight: sizeValue === 'small' ? fontWeightSemiBold : fontWeightRegular,
|
|
6760
6871
|
})), align, color, ellipsis),
|
|
6761
6872
|
});
|
|
6762
6873
|
};
|
|
@@ -6777,16 +6888,15 @@ const buildIconUrl = (iconNameOrSource = DEFAULT_ICON_NAME) => {
|
|
|
6777
6888
|
return buildIconUrl(DEFAULT_ICON_NAME);
|
|
6778
6889
|
};
|
|
6779
6890
|
|
|
6780
|
-
const { primaryColor: primaryColor$k, contrastLowColor: contrastLowColor$3, contrastMediumColor: contrastMediumColor$5, contrastHighColor: contrastHighColor$4, successColor: successColor$1, errorColor, warningColor, infoColor, } = colors;
|
|
6781
6891
|
const colorMap$1 = {
|
|
6782
|
-
primary:
|
|
6783
|
-
'contrast-high':
|
|
6784
|
-
'contrast-medium':
|
|
6785
|
-
'contrast-low':
|
|
6786
|
-
success:
|
|
6787
|
-
warning:
|
|
6788
|
-
error:
|
|
6789
|
-
info:
|
|
6892
|
+
primary: colorPrimary,
|
|
6893
|
+
'contrast-high': colorContrastHigh,
|
|
6894
|
+
'contrast-medium': colorContrastMedium,
|
|
6895
|
+
'contrast-low': colorContrastLow,
|
|
6896
|
+
success: colorSuccess,
|
|
6897
|
+
warning: colorWarning,
|
|
6898
|
+
error: colorError,
|
|
6899
|
+
info: colorInfo,
|
|
6790
6900
|
inherit: 'inherit',
|
|
6791
6901
|
};
|
|
6792
6902
|
const sizeMap$2 = {
|
|
@@ -6834,16 +6944,15 @@ const getComponentCss$T = (name, source, color, size) => {
|
|
|
6834
6944
|
font: `${isSizeInherit ? sizeMap$2.small : sizeMap$2[size]} ${fontFamily}`,
|
|
6835
6945
|
color: colorMap$1[color],
|
|
6836
6946
|
...addImportantToEachRule({
|
|
6837
|
-
WebkitMask: `url(${buildIconUrl(source || name)}) center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
6838
|
-
mask: `url(${buildIconUrl(source || name)}) center/contain no-repeat`,
|
|
6947
|
+
WebkitMask: `url("${buildIconUrl(source || name)}") center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
6948
|
+
mask: `url("${buildIconUrl(source || name)}") center/contain no-repeat`,
|
|
6839
6949
|
aspectRatio: '1/1',
|
|
6840
6950
|
background: 'currentcolor', // necessary for proper color inheritance
|
|
6841
6951
|
...(isFlippableIcon(name, source) && {
|
|
6842
|
-
'
|
|
6952
|
+
'&(:dir(rtl))': {
|
|
6843
6953
|
transform: 'scaleX(-1)',
|
|
6844
6954
|
},
|
|
6845
6955
|
}),
|
|
6846
|
-
...colorSchemeStyles,
|
|
6847
6956
|
...hostHiddenStyles,
|
|
6848
6957
|
}),
|
|
6849
6958
|
},
|
|
@@ -6862,13 +6971,12 @@ const getComponentCss$T = (name, source, color, size) => {
|
|
|
6862
6971
|
|
|
6863
6972
|
const mediaQueryMinS$1 = getMediaQueryMin('s');
|
|
6864
6973
|
const mediaQueryMaxS$2 = getMediaQueryMax('s');
|
|
6865
|
-
const { infoFrostedColor: infoFrostedColor$1, successFrostedColor: successFrostedColor$1, errorFrostedColor: errorFrostedColor$1, warningFrostedColor: warningFrostedColor$1 } = colors;
|
|
6866
6974
|
const getBackgroundColor = (state) => {
|
|
6867
6975
|
const colorMap = {
|
|
6868
|
-
info:
|
|
6869
|
-
warning:
|
|
6870
|
-
success:
|
|
6871
|
-
error:
|
|
6976
|
+
info: colorInfoFrosted,
|
|
6977
|
+
warning: colorWarningFrosted,
|
|
6978
|
+
success: colorSuccessFrosted,
|
|
6979
|
+
error: colorErrorFrosted,
|
|
6872
6980
|
};
|
|
6873
6981
|
return colorMap[state];
|
|
6874
6982
|
};
|
|
@@ -6905,10 +7013,9 @@ const getNotificationContentJssStyle = () => ({
|
|
|
6905
7013
|
});
|
|
6906
7014
|
|
|
6907
7015
|
const mediaQueryMaxS$1 = getMediaQueryMax('s');
|
|
6908
|
-
const { primaryColor: primaryColor$j } = colors;
|
|
6909
7016
|
const getTextJssStyle = {
|
|
6910
7017
|
margin: 0,
|
|
6911
|
-
color:
|
|
7018
|
+
color: colorPrimary,
|
|
6912
7019
|
};
|
|
6913
7020
|
const getHeadingJssStyle = {
|
|
6914
7021
|
...headingSmallStyle,
|
|
@@ -6925,7 +7032,6 @@ const getComponentCss$S = (state, hasAction, hasClose) => {
|
|
|
6925
7032
|
display: 'grid',
|
|
6926
7033
|
...addImportantToEachRule({
|
|
6927
7034
|
...getNotificationRootJssStyle(state, hasAction, hasClose),
|
|
6928
|
-
...colorSchemeStyles,
|
|
6929
7035
|
...hostHiddenStyles,
|
|
6930
7036
|
}),
|
|
6931
7037
|
},
|
|
@@ -7112,7 +7218,6 @@ const getComponentCss$L = (disabled, loading, hideLabel, state, compact, readOnl
|
|
|
7112
7218
|
return getCss(getFunctionalComponentInputBaseStyles(disabled, loading, hideLabel, state, compact, readOnly));
|
|
7113
7219
|
};
|
|
7114
7220
|
|
|
7115
|
-
const { contrastMediumColor: contrastMediumColor$4 } = colors;
|
|
7116
7221
|
const formElementLayeredGap = '9px'; // to have same distance vertically and horizontally for e.g. button/icon within form element
|
|
7117
7222
|
// TODO: basic button/icon padding can already be set within style function instead of on component style level
|
|
7118
7223
|
const formButtonOrIconPadding = spacingStaticXSmall;
|
|
@@ -7135,7 +7240,7 @@ const getUnitCounterJssStyle = () => {
|
|
|
7135
7240
|
overflow: 'hidden',
|
|
7136
7241
|
textOverflow: 'ellipsis',
|
|
7137
7242
|
font: textSmallStyle.font,
|
|
7138
|
-
color:
|
|
7243
|
+
color: colorContrastHigh,
|
|
7139
7244
|
};
|
|
7140
7245
|
};
|
|
7141
7246
|
|
|
@@ -7272,7 +7377,6 @@ const getMultilineEllipsis = (lineClamp) => {
|
|
|
7272
7377
|
/**
|
|
7273
7378
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
7274
7379
|
*/
|
|
7275
|
-
const { primaryColor: primaryColor$i, contrastHighColor: contrastHighColor$3, contrastMediumColor: contrastMediumColor$3, surfaceColor } = colors;
|
|
7276
7380
|
const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, hasDescription, aspectRatio) => {
|
|
7277
7381
|
return getCss({
|
|
7278
7382
|
'@global': {
|
|
@@ -7280,7 +7384,6 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7280
7384
|
display: 'block',
|
|
7281
7385
|
position: 'relative', // needed for ::slotted(a) to overlay correctly
|
|
7282
7386
|
...addImportantToEachRule({
|
|
7283
|
-
...colorSchemeStyles,
|
|
7284
7387
|
...hostHiddenStyles,
|
|
7285
7388
|
}),
|
|
7286
7389
|
},
|
|
@@ -7314,7 +7417,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7314
7417
|
}),
|
|
7315
7418
|
...(hasPriceOriginal && {
|
|
7316
7419
|
s: {
|
|
7317
|
-
color:
|
|
7420
|
+
color: colorContrastMedium,
|
|
7318
7421
|
},
|
|
7319
7422
|
}),
|
|
7320
7423
|
},
|
|
@@ -7326,8 +7429,8 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7326
7429
|
boxSizing: 'border-box',
|
|
7327
7430
|
borderRadius: `var(${legacyRadiusLarge}, ${radius4Xl})`,
|
|
7328
7431
|
padding: spacingFluidSmall,
|
|
7329
|
-
color:
|
|
7330
|
-
backgroundColor:
|
|
7432
|
+
color: colorPrimary,
|
|
7433
|
+
backgroundColor: colorSurface,
|
|
7331
7434
|
...buildResponsiveStyles(aspectRatio, (ratio) => ({
|
|
7332
7435
|
aspectRatio: ratio,
|
|
7333
7436
|
})),
|
|
@@ -7391,7 +7494,7 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7391
7494
|
margin: 0, // ua-style reset
|
|
7392
7495
|
...textXXSmallStyle,
|
|
7393
7496
|
...getMultilineEllipsis(2),
|
|
7394
|
-
color:
|
|
7497
|
+
color: colorContrastHigh,
|
|
7395
7498
|
},
|
|
7396
7499
|
}),
|
|
7397
7500
|
...(hasPriceOriginal && {
|
|
@@ -7404,7 +7507,6 @@ const getComponentCss$F = (hasLikeButton, hasSlottedAnchor, hasPriceOriginal, ha
|
|
|
7404
7507
|
/**
|
|
7405
7508
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
7406
7509
|
*/
|
|
7407
|
-
const { canvasColor: canvasColor$2, primaryColor: primaryColor$h } = colors;
|
|
7408
7510
|
const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradient, hasFooterSlot, isDisabled) => {
|
|
7409
7511
|
const isTopAligned = align === 'top';
|
|
7410
7512
|
return getCss({
|
|
@@ -7412,13 +7514,13 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7412
7514
|
':host': {
|
|
7413
7515
|
display: 'flex',
|
|
7414
7516
|
alignItems: 'stretch',
|
|
7517
|
+
colorScheme: 'dark', // dark is used in 99% of the cases (it can still be overridden by the user via `color-scheme`)
|
|
7415
7518
|
// Safari workaround to scale the tile properly
|
|
7416
7519
|
'@supports (-webkit-hyphens: auto)': {
|
|
7417
7520
|
alignItems: 'baseline',
|
|
7418
7521
|
},
|
|
7419
7522
|
hyphens: 'auto', // TODO: shouldn't we expose a CSS variable instead?
|
|
7420
7523
|
...addImportantToEachRule({
|
|
7421
|
-
...colorSchemeStyles,
|
|
7422
7524
|
...hostHiddenStyles,
|
|
7423
7525
|
}),
|
|
7424
7526
|
},
|
|
@@ -7457,7 +7559,7 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7457
7559
|
zIndex: 3,
|
|
7458
7560
|
maxWidth: '34.375rem',
|
|
7459
7561
|
...textMediumStyle,
|
|
7460
|
-
color:
|
|
7562
|
+
color: colorPrimary,
|
|
7461
7563
|
hyphens: 'inherit',
|
|
7462
7564
|
...mergeDeep(buildResponsiveStyles(size, (sizeValue) => ({
|
|
7463
7565
|
fontSize: getFontSizeText(sizeValue),
|
|
@@ -7485,14 +7587,14 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7485
7587
|
...(isTopAligned
|
|
7486
7588
|
? {
|
|
7487
7589
|
gridArea: '1/1/3/-1',
|
|
7488
|
-
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${
|
|
7590
|
+
background: gradientToBottomStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
7489
7591
|
marginBottom: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7490
7592
|
borderStartStartRadius: 'inherit',
|
|
7491
7593
|
borderStartEndRadius: 'inherit',
|
|
7492
7594
|
}
|
|
7493
7595
|
: {
|
|
7494
7596
|
gridArea: '4/1/6/-1',
|
|
7495
|
-
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${
|
|
7597
|
+
background: gradientToTopStyle.background.replaceAll('0,0%,0%,', `from ${colorCanvas} h s l / `),
|
|
7496
7598
|
marginTop: `calc(${spacingFluidLarge} * -1)`, // to increase the gradient area without reserving additional layout space
|
|
7497
7599
|
borderEndStartRadius: 'inherit',
|
|
7498
7600
|
borderEndEndRadius: 'inherit',
|
|
@@ -7529,8 +7631,8 @@ const getComponentCss$E = (aspectRatio, size, weight, align, compact, hasGradien
|
|
|
7529
7631
|
'link-or-button-pure': {
|
|
7530
7632
|
zIndex: 5,
|
|
7531
7633
|
gridColumn: 2,
|
|
7532
|
-
gridRow: hasFooterSlot
|
|
7533
|
-
alignSelf: '
|
|
7634
|
+
gridRow: `1/${hasFooterSlot ? 3 : 2}`,
|
|
7635
|
+
alignSelf: isTopAligned ? 'flex-start' : 'flex-end',
|
|
7534
7636
|
...buildResponsiveStyles(compact, (compactValue) => ({
|
|
7535
7637
|
display: compactValue ? 'inline-block' : 'none',
|
|
7536
7638
|
})),
|
|
@@ -7610,7 +7712,6 @@ const getComponentCss$C = (isOpen, background, backdrop, fullscreen, hasDismissB
|
|
|
7610
7712
|
[`${cssVarRefPaddingBottom$1}`]: dialogPaddingBottom,
|
|
7611
7713
|
[`${cssVarRefPaddingInline$1}`]: dialogPaddingInline,
|
|
7612
7714
|
...dialogHostJssStyle(background),
|
|
7613
|
-
...colorSchemeStyles,
|
|
7614
7715
|
...hostHiddenStyles,
|
|
7615
7716
|
}),
|
|
7616
7717
|
},
|
|
@@ -7666,12 +7767,11 @@ const getSvgUrl = (model) => {
|
|
|
7666
7767
|
const cssVariableWidth = '--p-model-signature-width';
|
|
7667
7768
|
const cssVariableHeight = '--p-model-signature-height';
|
|
7668
7769
|
const cssVariableColor = '--p-model-signature-color';
|
|
7669
|
-
const { primaryColor: primaryColor$g, contrastLowColor: contrastLowColor$2, contrastMediumColor: contrastMediumColor$2, contrastHighColor: contrastHighColor$2 } = colors;
|
|
7670
7770
|
const colorMap = {
|
|
7671
|
-
primary:
|
|
7672
|
-
'contrast-low':
|
|
7673
|
-
'contrast-medium':
|
|
7674
|
-
'contrast-high':
|
|
7771
|
+
primary: colorPrimary,
|
|
7772
|
+
'contrast-low': colorContrastLow,
|
|
7773
|
+
'contrast-medium': colorContrastMedium,
|
|
7774
|
+
'contrast-high': colorContrastHigh,
|
|
7675
7775
|
inherit: 'inherit',
|
|
7676
7776
|
};
|
|
7677
7777
|
const getComponentCss$B = (model, safeZone, size, color) => {
|
|
@@ -7692,7 +7792,6 @@ const getComponentCss$B = (model, safeZone, size, color) => {
|
|
|
7692
7792
|
mask: `url(${getSvgUrl(model)}) no-repeat left top / contain`,
|
|
7693
7793
|
aspectRatio: `${width} / ${safeZone ? 36 : height}`, // 36px is the max-height for SVG model signature creation
|
|
7694
7794
|
background: 'currentcolor', // necessary for proper color inheritance
|
|
7695
|
-
...colorSchemeStyles,
|
|
7696
7795
|
...hostHiddenStyles,
|
|
7697
7796
|
}),
|
|
7698
7797
|
},
|
|
@@ -7739,7 +7838,7 @@ const getComponentCss$A = (isDisabled, selected) => {
|
|
|
7739
7838
|
},
|
|
7740
7839
|
},
|
|
7741
7840
|
option: getOptionJssStyle('multi-select-option', cssVarInternalMultiSelectOptionScaling),
|
|
7742
|
-
checkbox: mergeDeep(getCheckboxBaseStyles(isDisabled, false, true, 'none'), selected ? getCheckboxCheckedBaseStyles(false) : {}),
|
|
7841
|
+
checkbox: mergeDeep(getCheckboxBaseStyles(isDisabled, false, true, 'none'), selected ? getCheckboxCheckedBaseStyles(false, 'none') : {}),
|
|
7743
7842
|
});
|
|
7744
7843
|
};
|
|
7745
7844
|
|
|
@@ -7748,12 +7847,10 @@ const paddingBlock = `calc(11.2px * (var(${cssVarInternalOptgroupScaling}) - 0.6
|
|
|
7748
7847
|
const paddingInline = `calc(16.8px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 6px)`;
|
|
7749
7848
|
const gap = `calc(11.2px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 4px)`;
|
|
7750
7849
|
const paddingSlottedInlineStart = `calc(44.8px * (var(${cssVarInternalOptgroupScaling}) - 0.64285714) + 12px)`;
|
|
7751
|
-
const { primaryColor: primaryColor$f } = colors;
|
|
7752
7850
|
const getComponentCss$z = (isDisabled) => {
|
|
7753
7851
|
return getCss({
|
|
7754
7852
|
'@global': {
|
|
7755
7853
|
':host': addImportantToEachRule({
|
|
7756
|
-
...colorSchemeStyles,
|
|
7757
7854
|
...hostHiddenStyles,
|
|
7758
7855
|
...(isDisabled && getDisabledBaseStyles()),
|
|
7759
7856
|
}),
|
|
@@ -7770,7 +7867,7 @@ const getComponentCss$z = (isDisabled) => {
|
|
|
7770
7867
|
paddingBlock,
|
|
7771
7868
|
paddingInline,
|
|
7772
7869
|
font: textXSmallStyle.font.replace(' 400 ', ` ${fontWeightSemiBold} `),
|
|
7773
|
-
color:
|
|
7870
|
+
color: colorPrimary,
|
|
7774
7871
|
},
|
|
7775
7872
|
},
|
|
7776
7873
|
});
|
|
@@ -7792,11 +7889,11 @@ const getComponentCss$y = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
7792
7889
|
[`${cssVarInternalMultiSelectScaling}`]: isCompact ? 0.64285714 : 1,
|
|
7793
7890
|
[`${cssVarInternalMultiSelectOptionScaling}`]: isCompact ? 0.64285714 : 1,
|
|
7794
7891
|
[`${cssVarInternalOptgroupScaling}`]: isCompact ? 0.64285714 : 1,
|
|
7795
|
-
...colorSchemeStyles,
|
|
7796
7892
|
...hostHiddenStyles,
|
|
7797
7893
|
...(isDisabled && getDisabledBaseStyles()),
|
|
7798
7894
|
}),
|
|
7799
7895
|
},
|
|
7896
|
+
...getFunctionalComponentLabelAfterStyles(isDisabled),
|
|
7800
7897
|
...preventFoucOfNestedElementsStyles,
|
|
7801
7898
|
button: {
|
|
7802
7899
|
...getButtonJssStyle('multi-select', isOpen, isDisabled, state, isCompact, cssVarInternalMultiSelectScaling),
|
|
@@ -7835,13 +7932,11 @@ const disabledCursorStyle = {
|
|
|
7835
7932
|
};
|
|
7836
7933
|
const hiddenStyle = { display: 'none' };
|
|
7837
7934
|
const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
7838
|
-
const { primaryColor, disabledColor, frostedColor } = colors;
|
|
7839
7935
|
return getCss({
|
|
7840
7936
|
'@global': {
|
|
7841
7937
|
':host': {
|
|
7842
7938
|
display: 'block',
|
|
7843
7939
|
...addImportantToEachRule({
|
|
7844
|
-
...colorSchemeStyles,
|
|
7845
7940
|
...hostHiddenStyles,
|
|
7846
7941
|
}),
|
|
7847
7942
|
},
|
|
@@ -7913,24 +8008,24 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
7913
8008
|
...textSmallStyle,
|
|
7914
8009
|
whiteSpace: 'nowrap',
|
|
7915
8010
|
cursor: 'pointer',
|
|
7916
|
-
color:
|
|
8011
|
+
color: colorPrimary,
|
|
7917
8012
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
7918
8013
|
borderColor: 'transparent', // default value is needed for smooth transition
|
|
7919
8014
|
outline: 0, // TODO: only relevant for VRT testing with forced states - prevents :focus style
|
|
7920
8015
|
...hoverMediaQuery({
|
|
7921
8016
|
'&:not([aria-disabled]):not(.ellipsis):hover': {
|
|
7922
8017
|
...frostedGlassStyle,
|
|
7923
|
-
background:
|
|
8018
|
+
background: colorFrosted,
|
|
7924
8019
|
},
|
|
7925
8020
|
}),
|
|
7926
8021
|
'&[aria-current]': {
|
|
7927
8022
|
...disabledCursorStyle,
|
|
7928
|
-
color:
|
|
7929
|
-
border: `${borderWidthBase} solid ${
|
|
8023
|
+
color: colorPrimary,
|
|
8024
|
+
border: `${borderWidthBase} solid ${colorPrimary}`,
|
|
7930
8025
|
},
|
|
7931
8026
|
'&[aria-disabled]': {
|
|
8027
|
+
...getDisabledBaseStyles(),
|
|
7932
8028
|
...disabledCursorStyle,
|
|
7933
|
-
color: disabledColor,
|
|
7934
8029
|
},
|
|
7935
8030
|
// TODO :not(.ellipsis) is only needed for VRT states tests to work properly
|
|
7936
8031
|
'&:not(.ellipsis):focus-visible': getFocusBaseStyles(),
|
|
@@ -7946,7 +8041,6 @@ const getComponentCss$x = (activePage, pageTotal, showLastPage) => {
|
|
|
7946
8041
|
};
|
|
7947
8042
|
|
|
7948
8043
|
const cssVarInternalPinCodeScaling = '--p-internal-pin-code-scaling';
|
|
7949
|
-
const { primaryColor: primaryColor$e } = colors;
|
|
7950
8044
|
// CSS Variable defined in fontHyphenationStyle
|
|
7951
8045
|
/**
|
|
7952
8046
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
@@ -7964,11 +8058,11 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
|
|
|
7964
8058
|
display: 'block',
|
|
7965
8059
|
[`${cssVarInternalPinCodeScaling}`]: isCompact ? 0.64285714 : 1,
|
|
7966
8060
|
...addImportantToEachRule({
|
|
7967
|
-
...colorSchemeStyles,
|
|
7968
8061
|
...hostHiddenStyles,
|
|
7969
8062
|
...(isDisabled && getDisabledBaseStyles()),
|
|
7970
8063
|
}),
|
|
7971
8064
|
},
|
|
8065
|
+
...getFunctionalComponentLabelAfterStyles(isDisabled),
|
|
7972
8066
|
...preventFoucOfNestedElementsStyles,
|
|
7973
8067
|
input: {
|
|
7974
8068
|
all: 'unset',
|
|
@@ -7983,28 +8077,26 @@ const getComponentCss$w = (hideLabel, state, isDisabled, isLoading, length, isCo
|
|
|
7983
8077
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
7984
8078
|
background: formStateBackgroundColor,
|
|
7985
8079
|
font: textSmallStyle.font.replace('ex', 'ex + 6px'), // 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
|
|
7986
|
-
color:
|
|
8080
|
+
color: colorPrimary,
|
|
7987
8081
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
7988
8082
|
textOverflow: 'ellipsis',
|
|
7989
|
-
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
8083
|
+
cursor: isDisabled || isLoading ? 'not-allowed' : 'text',
|
|
7990
8084
|
textAlign: 'center',
|
|
7991
|
-
...(isLoading &&
|
|
7992
|
-
opacity: 0.2, // TODO: not in sync with e.g. checkbox/radio-button loading style
|
|
7993
|
-
cursor: 'not-allowed',
|
|
7994
|
-
}),
|
|
8085
|
+
...(isLoading && getDisabledBaseStyles()),
|
|
7995
8086
|
'&:focus-visible': {
|
|
7996
8087
|
borderColor: formStateBorderHoverColor,
|
|
7997
8088
|
},
|
|
7998
8089
|
...(!isLoading &&
|
|
7999
8090
|
!isDisabled &&
|
|
8000
8091
|
hoverMediaQuery({
|
|
8001
|
-
'&:hover
|
|
8092
|
+
'&:hover': {
|
|
8002
8093
|
borderColor: formStateBorderHoverColor,
|
|
8003
8094
|
},
|
|
8004
8095
|
})),
|
|
8005
8096
|
},
|
|
8006
8097
|
},
|
|
8007
8098
|
root: {
|
|
8099
|
+
all: 'unset',
|
|
8008
8100
|
display: 'grid',
|
|
8009
8101
|
gap: spacingStaticXSmall,
|
|
8010
8102
|
},
|
|
@@ -8042,7 +8134,6 @@ const POPOVER_SAFE_ZONE = 8;
|
|
|
8042
8134
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
8043
8135
|
*/
|
|
8044
8136
|
const getComponentCss$v = () => {
|
|
8045
|
-
const { frostedSoftColor, frostedColor, canvasColor, primaryColor } = colors;
|
|
8046
8137
|
const shadowColor = 'rgba(0,0,0,0.3)';
|
|
8047
8138
|
return getCss({
|
|
8048
8139
|
'@global': {
|
|
@@ -8059,7 +8150,6 @@ const getComponentCss$v = () => {
|
|
|
8059
8150
|
display: 'inline-block',
|
|
8060
8151
|
verticalAlign: 'top',
|
|
8061
8152
|
...addImportantToEachRule({
|
|
8062
|
-
...colorSchemeStyles,
|
|
8063
8153
|
...hostHiddenStyles,
|
|
8064
8154
|
}),
|
|
8065
8155
|
},
|
|
@@ -8079,12 +8169,12 @@ const getComponentCss$v = () => {
|
|
|
8079
8169
|
height: fontLineHeight, // height needed to improve ssr support
|
|
8080
8170
|
borderRadius: radiusFull,
|
|
8081
8171
|
cursor: 'pointer',
|
|
8082
|
-
backgroundColor:
|
|
8172
|
+
backgroundColor: colorFrosted,
|
|
8083
8173
|
transition: getTransition('background-color'),
|
|
8084
8174
|
...frostedGlassStyle,
|
|
8085
8175
|
...hoverMediaQuery({
|
|
8086
8176
|
'&:hover': {
|
|
8087
|
-
backgroundColor:
|
|
8177
|
+
backgroundColor: colorFrostedSoft,
|
|
8088
8178
|
},
|
|
8089
8179
|
}),
|
|
8090
8180
|
'&:focus-visible': getFocusBaseStyles(),
|
|
@@ -8110,7 +8200,7 @@ const getComponentCss$v = () => {
|
|
|
8110
8200
|
width: '24px',
|
|
8111
8201
|
height: '12px',
|
|
8112
8202
|
clipPath: 'polygon(50% 0, 100% 110%, 0 110%)',
|
|
8113
|
-
background:
|
|
8203
|
+
background: colorCanvas,
|
|
8114
8204
|
},
|
|
8115
8205
|
content: {
|
|
8116
8206
|
maxWidth: `min(calc(100dvw - ${POPOVER_SAFE_ZONE * 2}px), 48ch)`,
|
|
@@ -8120,15 +8210,14 @@ const getComponentCss$v = () => {
|
|
|
8120
8210
|
pointerEvents: 'auto',
|
|
8121
8211
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusLg})`,
|
|
8122
8212
|
...textSmallStyle,
|
|
8123
|
-
background:
|
|
8124
|
-
color:
|
|
8213
|
+
background: colorCanvas,
|
|
8214
|
+
color: colorPrimary,
|
|
8125
8215
|
},
|
|
8126
8216
|
});
|
|
8127
8217
|
};
|
|
8128
8218
|
|
|
8129
8219
|
const cssVarInternalRadioGroupOptionScaling = '--p-internal-radio-group-option-scaling';
|
|
8130
8220
|
const checkedIcon = getInlineSVGBackgroundImage(`<circle cx="12" cy="12" r="6"/>`);
|
|
8131
|
-
const { primaryColor: primaryColor$d } = colors;
|
|
8132
8221
|
// CSS Variable defined in fontHyphenationStyle
|
|
8133
8222
|
/**
|
|
8134
8223
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
@@ -8147,11 +8236,11 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8147
8236
|
':host': {
|
|
8148
8237
|
display: 'block',
|
|
8149
8238
|
...addImportantToEachRule({
|
|
8150
|
-
...colorSchemeStyles,
|
|
8151
8239
|
...hostHiddenStyles,
|
|
8152
|
-
...(
|
|
8240
|
+
...(disabledOrLoading && getDisabledBaseStyles()),
|
|
8153
8241
|
}),
|
|
8154
8242
|
},
|
|
8243
|
+
...getFunctionalComponentLabelAfterStyles(disabledOrLoading),
|
|
8155
8244
|
...preventFoucOfNestedElementsStyles,
|
|
8156
8245
|
input: {
|
|
8157
8246
|
all: 'unset',
|
|
@@ -8171,7 +8260,7 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8171
8260
|
'&:focus-visible': getFocusBaseStyles(),
|
|
8172
8261
|
...(!disabledOrLoading &&
|
|
8173
8262
|
hoverMediaQuery({
|
|
8174
|
-
'&:hover
|
|
8263
|
+
'&:hover': {
|
|
8175
8264
|
borderColor: formStateBorderHoverColor,
|
|
8176
8265
|
},
|
|
8177
8266
|
})),
|
|
@@ -8183,7 +8272,7 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8183
8272
|
'&:checked::before': {
|
|
8184
8273
|
WebkitMask: `${checkedIcon} center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
8185
8274
|
mask: `${checkedIcon} center/contain no-repeat`,
|
|
8186
|
-
backgroundColor:
|
|
8275
|
+
backgroundColor: state === 'none' ? colorPrimary : formStateBorderColor,
|
|
8187
8276
|
},
|
|
8188
8277
|
'&::after': {
|
|
8189
8278
|
// Ensures the touch target is at least 24px, even if the checkbox is smaller than the minimum touch target size.
|
|
@@ -8219,9 +8308,7 @@ const getComponentCss$u = (disabled, loading, state) => {
|
|
|
8219
8308
|
},
|
|
8220
8309
|
}),
|
|
8221
8310
|
// .label / .required
|
|
8222
|
-
...getFunctionalComponentLabelStyles(disabled || loading, false, {
|
|
8223
|
-
gridArea: '1/2',
|
|
8224
|
-
}, {
|
|
8311
|
+
...getFunctionalComponentLabelStyles(disabled || loading, false, null, {
|
|
8225
8312
|
paddingTop: labelPaddingTop,
|
|
8226
8313
|
paddingInlineStart: labelPaddingInlineStart,
|
|
8227
8314
|
}),
|
|
@@ -8256,15 +8343,17 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
|
|
|
8256
8343
|
'@global': {
|
|
8257
8344
|
':host': {
|
|
8258
8345
|
...addImportantToEachRule({
|
|
8259
|
-
...colorSchemeStyles,
|
|
8260
8346
|
...hostHiddenStyles,
|
|
8261
8347
|
}),
|
|
8262
8348
|
[`${cssVarInternalRadioGroupScaling}`]: isCompact ? 0.64285714 : 1,
|
|
8263
8349
|
[`${cssVarInternalRadioGroupOptionScaling}`]: isCompact ? 0.64285714 : 1,
|
|
8264
8350
|
},
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8351
|
+
...getFunctionalComponentLabelAfterStyles(isDisabled, getDisabledBaseStyles()),
|
|
8352
|
+
...(isLoading && {
|
|
8353
|
+
'::slotted(*:not([slot]))': {
|
|
8354
|
+
...addImportantToEachRule(getDisabledBaseStyles()),
|
|
8355
|
+
},
|
|
8356
|
+
}),
|
|
8268
8357
|
...preventFoucOfNestedElementsStyles,
|
|
8269
8358
|
},
|
|
8270
8359
|
root: {
|
|
@@ -8294,10 +8383,7 @@ const getComponentCss$t = (isDisabled, isLoading, hideLabel, state, isCompact, d
|
|
|
8294
8383
|
}),
|
|
8295
8384
|
// .label / .required
|
|
8296
8385
|
...getFunctionalComponentLabelStyles(isDisabled, hideLabel, {
|
|
8297
|
-
cursor: 'inherit',
|
|
8298
|
-
'&:is(legend)': {
|
|
8299
|
-
marginBottom: spacingStaticXSmall, // this fixes a known layout bug of the legend element (in all browsers) when the parent fieldset is a flex or grid container
|
|
8300
|
-
},
|
|
8386
|
+
...(isDisabled ? getDisabledBaseStyles() : { cursor: 'inherit' }), // the label is not clickable
|
|
8301
8387
|
}),
|
|
8302
8388
|
// .message
|
|
8303
8389
|
...getFunctionalComponentStateMessageStyles(state),
|
|
@@ -8325,7 +8411,6 @@ const getComponentCss$s = (isNextHidden, isPrevHidden, alignScrollIndicator, has
|
|
|
8325
8411
|
display: 'block',
|
|
8326
8412
|
...addImportantToEachRule({
|
|
8327
8413
|
height: 'inherit',
|
|
8328
|
-
...colorSchemeStyles,
|
|
8329
8414
|
...hostHiddenStyles,
|
|
8330
8415
|
}),
|
|
8331
8416
|
},
|
|
@@ -8425,7 +8510,6 @@ const ICON_OFFSET = '4px';
|
|
|
8425
8510
|
const { font: BUTTON_FONT } = textSmallStyle;
|
|
8426
8511
|
const ICON_SIZE = '1.5rem';
|
|
8427
8512
|
const ICON_MARGIN = '.25rem';
|
|
8428
|
-
const { primaryColor: primaryColor$c, contrastMediumColor: contrastMediumColor$1 } = colors;
|
|
8429
8513
|
const getScalableItemStyles = (hasIconAndSlottedContent, compact) => {
|
|
8430
8514
|
const scalingVar = getScalingVar(compact);
|
|
8431
8515
|
const verticalPadding = `max(2px, ${formElementPaddingVertical} * ${scalingVar})`;
|
|
@@ -8465,7 +8549,7 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
|
|
|
8465
8549
|
border: `${borderWidthThin} solid ${isSelected ? formStateBorderHoverColor : formStateBorderColor}`,
|
|
8466
8550
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
8467
8551
|
background: formStateBackgroundColor,
|
|
8468
|
-
color:
|
|
8552
|
+
color: colorPrimary,
|
|
8469
8553
|
...textSmallStyle,
|
|
8470
8554
|
...(isDisabled
|
|
8471
8555
|
? {
|
|
@@ -8488,7 +8572,7 @@ const getComponentCss$r = (isCompact, isDisabled, isSelected, state, hasIcon, ha
|
|
|
8488
8572
|
display: 'block',
|
|
8489
8573
|
...textXSmallStyle,
|
|
8490
8574
|
overflowWrap: 'normal',
|
|
8491
|
-
color:
|
|
8575
|
+
color: colorContrastMedium,
|
|
8492
8576
|
},
|
|
8493
8577
|
},
|
|
8494
8578
|
...(hasIcon && {
|
|
@@ -8507,12 +8591,15 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
|
|
|
8507
8591
|
'@global': {
|
|
8508
8592
|
':host': {
|
|
8509
8593
|
...addImportantToEachRule({
|
|
8510
|
-
...(disabled && getDisabledBaseStyles()),
|
|
8511
|
-
...colorSchemeStyles,
|
|
8512
8594
|
...hostHiddenStyles,
|
|
8513
8595
|
}),
|
|
8514
8596
|
},
|
|
8597
|
+
...getFunctionalComponentLabelAfterStyles(disabled),
|
|
8515
8598
|
...preventFoucOfNestedElementsStyles,
|
|
8599
|
+
...getFunctionalComponentLabelAfterStyles(disabled, getDisabledBaseStyles()),
|
|
8600
|
+
...(disabled && {
|
|
8601
|
+
'::slotted(*:not([slot]))': addImportantToEachRule(getDisabledBaseStyles()),
|
|
8602
|
+
}),
|
|
8516
8603
|
'slot:not([name])': {
|
|
8517
8604
|
display: 'grid',
|
|
8518
8605
|
gridAutoRows: '1fr', // for equal height
|
|
@@ -8531,10 +8618,7 @@ const getComponentCss$q = (minWidth, maxWidth, columns, disabled, hideLabel, sta
|
|
|
8531
8618
|
},
|
|
8532
8619
|
// .label / .required
|
|
8533
8620
|
...getFunctionalComponentLabelStyles(disabled, hideLabel, {
|
|
8534
|
-
cursor: 'inherit',
|
|
8535
|
-
'&:is(legend)': {
|
|
8536
|
-
marginBottom: spacingStaticXSmall, // this fixes a known layout bug of the legend element (in all browsers) when the parent fieldset is a flex or grid container
|
|
8537
|
-
},
|
|
8621
|
+
...(disabled ? getDisabledBaseStyles() : { cursor: 'inherit' }), // the label is not clickable
|
|
8538
8622
|
}),
|
|
8539
8623
|
// .message
|
|
8540
8624
|
...getFunctionalComponentStateMessageStyles(state),
|
|
@@ -8586,10 +8670,11 @@ const getComponentCss$o = (isOpen, isDisabled, hideLabel, state, isCompact) => {
|
|
|
8586
8670
|
[`${cssVarInternalSelectScaling}`]: isCompact ? 0.64285714 : 1,
|
|
8587
8671
|
[`${cssVarInternalSelectOptionScaling}`]: isCompact ? 0.64285714 : 1,
|
|
8588
8672
|
[`${cssVarInternalOptgroupScaling}`]: isCompact ? 0.64285714 : 1,
|
|
8589
|
-
...colorSchemeStyles,
|
|
8590
8673
|
...hostHiddenStyles,
|
|
8591
8674
|
}),
|
|
8675
|
+
...(isDisabled && getDisabledBaseStyles()),
|
|
8592
8676
|
},
|
|
8677
|
+
...getFunctionalComponentLabelAfterStyles(isDisabled),
|
|
8593
8678
|
...preventFoucOfNestedElementsStyles,
|
|
8594
8679
|
button: {
|
|
8595
8680
|
...getButtonJssStyle('select', isOpen, isDisabled, state, isCompact, cssVarInternalSelectScaling),
|
|
@@ -8640,7 +8725,6 @@ const getComponentCss$n = (isOpen, background, hasDismissButton) => {
|
|
|
8640
8725
|
[`${cssVarRefPaddingBottom}`]: dialogPaddingBottom,
|
|
8641
8726
|
[`${cssVarRefPaddingInline}`]: dialogPaddingInline,
|
|
8642
8727
|
...dialogHostJssStyle(background),
|
|
8643
|
-
...colorSchemeStyles,
|
|
8644
8728
|
...hostHiddenStyles,
|
|
8645
8729
|
}),
|
|
8646
8730
|
},
|
|
@@ -8681,7 +8765,6 @@ const sizeMap$1 = {
|
|
|
8681
8765
|
large: { height: sizeLarge, width: sizeLarge },
|
|
8682
8766
|
inherit: { height: 'inherit', width: 'inherit' },
|
|
8683
8767
|
};
|
|
8684
|
-
const { primaryColor: primaryColor$b, contrastLowerColor } = colors;
|
|
8685
8768
|
const getComponentCss$m = (size) => {
|
|
8686
8769
|
const strokeDasharray = '57'; // C = 2πR
|
|
8687
8770
|
const animationDuration = `var(${cssVariableAnimationDuration}, ${motionDurationVeryLong})`;
|
|
@@ -8713,7 +8796,6 @@ const getComponentCss$m = (size) => {
|
|
|
8713
8796
|
display: 'inline-flex',
|
|
8714
8797
|
...addImportantToEachRule({
|
|
8715
8798
|
verticalAlign: 'top',
|
|
8716
|
-
...colorSchemeStyles,
|
|
8717
8799
|
...hostHiddenStyles,
|
|
8718
8800
|
}),
|
|
8719
8801
|
},
|
|
@@ -8724,11 +8806,11 @@ const getComponentCss$m = (size) => {
|
|
|
8724
8806
|
},
|
|
8725
8807
|
circle: {
|
|
8726
8808
|
'&:first-child': {
|
|
8727
|
-
stroke:
|
|
8809
|
+
stroke: colorContrastLower,
|
|
8728
8810
|
},
|
|
8729
8811
|
'&:last-child': {
|
|
8730
8812
|
animation: `$dash ${animationDuration} steps(50) infinite`,
|
|
8731
|
-
stroke:
|
|
8813
|
+
stroke: colorPrimary,
|
|
8732
8814
|
strokeDasharray: strokeDasharray
|
|
8733
8815
|
,
|
|
8734
8816
|
strokeLinecap: 'round',
|
|
@@ -8755,7 +8837,6 @@ const svgNumber = [
|
|
|
8755
8837
|
'<path d="m10.47 11.94c-.65-.33-1.13-.92-1.13-2.01 0-1.53.85-2.47 2.66-2.47s2.66.94 2.66 2.47c0 1.08-.47 1.68-1.15 2.01.92.35 1.34 1.07 1.34 2.11 0 1.73-.99 2.49-2.86 2.49s-2.86-.76-2.86-2.49c0-1.04.41-1.76 1.33-2.11zm1.53 3.78c1.27 0 1.85-.51 1.85-1.69 0-1.1-.58-1.61-1.85-1.61s-1.85.52-1.85 1.61c0 1.18.58 1.69 1.85 1.69zm1.65-5.76c0-1.1-.56-1.56-1.65-1.56s-1.65.47-1.65 1.56c0 1 .46 1.6 1.65 1.6s1.65-.6 1.65-1.6z"/>',
|
|
8756
8838
|
'<path d="m9.16 10.33c0-2.03 1.02-2.86 2.83-2.86s2.82.81 2.82 2.85c0 1.11-.3 1.82-.81 2.64l-2.18 3.44h-1.1l2.18-3.37c-.31.14-.65.2-1.01.2-1.82 0-2.74-.99-2.74-2.9zm4.65 0c0-1.23-.47-1.92-1.81-1.92s-1.81.69-1.81 1.92c0 1.37.49 2.05 1.81 2.05s1.81-.68 1.81-2.05z"/>',
|
|
8757
8839
|
];
|
|
8758
|
-
const { primaryColor: primaryColor$a, canvasColor: canvasColor$1, frostedColor: frostedColor$6 } = colors;
|
|
8759
8840
|
// CSS Variable defined in fontHyphenationStyle
|
|
8760
8841
|
/**
|
|
8761
8842
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
@@ -8782,7 +8863,7 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
8782
8863
|
display: 'grid',
|
|
8783
8864
|
gridTemplateColumns: 'auto minmax(0,1fr)',
|
|
8784
8865
|
gap: spacingStaticXs,
|
|
8785
|
-
color:
|
|
8866
|
+
color: colorPrimary,
|
|
8786
8867
|
paddingInline: `${spacingStaticSm} 12px`,
|
|
8787
8868
|
paddingBlock: '6px',
|
|
8788
8869
|
width: 'max-content',
|
|
@@ -8792,14 +8873,14 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
8792
8873
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusFull})`,
|
|
8793
8874
|
...(isStateCurrent && {
|
|
8794
8875
|
...frostedGlassStyle,
|
|
8795
|
-
background:
|
|
8876
|
+
background: colorFrosted,
|
|
8796
8877
|
}),
|
|
8797
8878
|
...(!isDisabled &&
|
|
8798
8879
|
hoverMediaQuery({
|
|
8799
8880
|
transition: getTransition('background-color'),
|
|
8800
8881
|
'&:hover': {
|
|
8801
8882
|
...frostedGlassStyle,
|
|
8802
|
-
background:
|
|
8883
|
+
background: colorFrosted,
|
|
8803
8884
|
},
|
|
8804
8885
|
})),
|
|
8805
8886
|
'&:focus-visible': getFocusBaseStyles(),
|
|
@@ -8812,7 +8893,7 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
8812
8893
|
height: fontLineHeight,
|
|
8813
8894
|
...(isStateCurrentOrUndefined && {
|
|
8814
8895
|
display: 'grid',
|
|
8815
|
-
backgroundImage: `radial-gradient(circle, ${
|
|
8896
|
+
backgroundImage: `radial-gradient(circle, ${colorPrimary} 60%, transparent 62%)`,
|
|
8816
8897
|
'&::before': {
|
|
8817
8898
|
content: '""',
|
|
8818
8899
|
...Array.from(new Array(9)).reduce((result, _, i) => ({
|
|
@@ -8820,7 +8901,7 @@ const getComponentCss$l = (state, disabled) => {
|
|
|
8820
8901
|
[`:host(:nth-of-type(${i + 1})) &`]: {
|
|
8821
8902
|
WebkitMask: `${getInlineSVGBackgroundImage(svgNumber[i])} center/contain no-repeat`, // necessary for Sogou browser support :-)
|
|
8822
8903
|
mask: `${getInlineSVGBackgroundImage(svgNumber[i])} center/contain no-repeat`,
|
|
8823
|
-
backgroundColor:
|
|
8904
|
+
backgroundColor: colorCanvas,
|
|
8824
8905
|
},
|
|
8825
8906
|
}), {}),
|
|
8826
8907
|
},
|
|
@@ -8836,7 +8917,6 @@ const getComponentCss$k = (size) => {
|
|
|
8836
8917
|
':host': {
|
|
8837
8918
|
display: 'block',
|
|
8838
8919
|
...addImportantToEachRule({
|
|
8839
|
-
...colorSchemeStyles,
|
|
8840
8920
|
...hostHiddenStyles,
|
|
8841
8921
|
}),
|
|
8842
8922
|
},
|
|
@@ -8850,14 +8930,13 @@ const getComponentCss$k = (size) => {
|
|
|
8850
8930
|
};
|
|
8851
8931
|
|
|
8852
8932
|
const cssVarInternalSwitchScaling = '--p-internal-switch-scaling';
|
|
8853
|
-
const { primaryColor: primaryColor$9, contrastLowColor: contrastLowColor$1, successColor, frostedSoftColor: frostedSoftColor$1, successFrostedSoftColor: successFrostedSoftColor$1, successLowColor } = colors;
|
|
8854
8933
|
const getColors$1 = (checked, loading) => {
|
|
8855
8934
|
return {
|
|
8856
|
-
buttonBorderColor: checked ?
|
|
8857
|
-
buttonBorderColorHover: checked ?
|
|
8858
|
-
buttonBackgroundColor: checked ?
|
|
8859
|
-
toggleBackgroundColor: loading ? 'transparent' : checked ?
|
|
8860
|
-
textColor:
|
|
8935
|
+
buttonBorderColor: checked ? colorSuccessLow : colorContrastLow,
|
|
8936
|
+
buttonBorderColorHover: checked ? colorSuccess : colorPrimary,
|
|
8937
|
+
buttonBackgroundColor: checked ? colorSuccessFrostedSoft : colorFrostedSoft,
|
|
8938
|
+
toggleBackgroundColor: loading ? 'transparent' : checked ? colorSuccess : colorPrimary,
|
|
8939
|
+
textColor: colorPrimary,
|
|
8861
8940
|
};
|
|
8862
8941
|
};
|
|
8863
8942
|
// CSS Variable defined in fontHyphenationStyle
|
|
@@ -8888,7 +8967,6 @@ const getComponentCss$j = (alignLabel, hideLabel, isStretched, isChecked, isDisa
|
|
|
8888
8967
|
outline: 0, // custom element is able to delegate the focus
|
|
8889
8968
|
font: `${fontSizeTextSmall} ${fontFamily}`, // needed for correct gap definition based on ex-unit
|
|
8890
8969
|
gap,
|
|
8891
|
-
...colorSchemeStyles,
|
|
8892
8970
|
...hostHiddenStyles,
|
|
8893
8971
|
...buildResponsiveStyles(isStretched, (stretchValue) => ({
|
|
8894
8972
|
justifyContent: stretchValue ? 'space-between' : 'flex-start',
|
|
@@ -8982,20 +9060,18 @@ const cssVariableTablePadding = '--_a';
|
|
|
8982
9060
|
const cssVariableTableHoverColor = '--_b';
|
|
8983
9061
|
const cssVariableTableBorderColor = '--_c';
|
|
8984
9062
|
const cssVariableTableBorderWidth = '--_d';
|
|
8985
|
-
const { primaryColor: primaryColor$8, frostedColor: frostedColor$5, contrastLowColor } = colors;
|
|
8986
9063
|
const getComponentCss$h = (compact, layout) => {
|
|
8987
9064
|
return getCss({
|
|
8988
9065
|
'@global': {
|
|
8989
9066
|
':host': {
|
|
8990
9067
|
display: 'block',
|
|
8991
9068
|
...addImportantToEachRule({
|
|
8992
|
-
[cssVariableTableHoverColor]:
|
|
8993
|
-
[cssVariableTableBorderColor]:
|
|
9069
|
+
[cssVariableTableHoverColor]: colorFrosted,
|
|
9070
|
+
[cssVariableTableBorderColor]: colorContrastLow,
|
|
8994
9071
|
...(compact && { [cssVariableTablePadding]: spacingStaticSmall }),
|
|
8995
|
-
...colorSchemeStyles,
|
|
8996
9072
|
...hostHiddenStyles,
|
|
8997
9073
|
...textSmallStyle,
|
|
8998
|
-
color:
|
|
9074
|
+
color: colorPrimary,
|
|
8999
9075
|
textAlign: 'start',
|
|
9000
9076
|
}),
|
|
9001
9077
|
},
|
|
@@ -9042,7 +9118,6 @@ const isSortable = (active, direction) => {
|
|
|
9042
9118
|
return active !== undefined && direction !== undefined;
|
|
9043
9119
|
};
|
|
9044
9120
|
|
|
9045
|
-
const { frostedColor: frostedColor$4 } = colors;
|
|
9046
9121
|
const buttonBeforeOffsetVertical = '-2px';
|
|
9047
9122
|
const buttonBeforeOffsetHorizontal = '-4px';
|
|
9048
9123
|
const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
@@ -9095,7 +9170,7 @@ const getComponentCss$f = (active, direction, hideLabel, multiline) => {
|
|
|
9095
9170
|
},
|
|
9096
9171
|
'&:hover::before': {
|
|
9097
9172
|
...frostedGlassStyle,
|
|
9098
|
-
backgroundColor:
|
|
9173
|
+
backgroundColor: colorFrosted,
|
|
9099
9174
|
},
|
|
9100
9175
|
}),
|
|
9101
9176
|
'&:focus-visible::before': getFocusBaseStyles(),
|
|
@@ -9176,12 +9251,11 @@ const getComponentCss$c = () => {
|
|
|
9176
9251
|
const scrollerAnimatedCssClass = 'scroller--animated';
|
|
9177
9252
|
const targetSelectors = ['a', 'button'];
|
|
9178
9253
|
const transformSelector = (selector) => targetSelectors.map((tag) => selector.replace(/\[role]/g, tag)).join();
|
|
9179
|
-
const { primaryColor: primaryColor$7, frostedColor: frostedColor$3 } = colors;
|
|
9180
9254
|
const barJssStyle = {
|
|
9181
9255
|
position: 'absolute',
|
|
9182
9256
|
height: '2px',
|
|
9183
9257
|
left: 0,
|
|
9184
|
-
background:
|
|
9258
|
+
background: colorPrimary,
|
|
9185
9259
|
};
|
|
9186
9260
|
const getComponentCss$b = (size, weight) => {
|
|
9187
9261
|
return getCss({
|
|
@@ -9190,7 +9264,6 @@ const getComponentCss$b = (size, weight) => {
|
|
|
9190
9264
|
display: 'block',
|
|
9191
9265
|
...addImportantToEachRule({
|
|
9192
9266
|
position: 'relative',
|
|
9193
|
-
...colorSchemeStyles,
|
|
9194
9267
|
...hostHiddenStyles,
|
|
9195
9268
|
}),
|
|
9196
9269
|
},
|
|
@@ -9209,7 +9282,7 @@ const getComponentCss$b = (size, weight) => {
|
|
|
9209
9282
|
whiteSpace: 'nowrap',
|
|
9210
9283
|
boxSizing: 'border-box',
|
|
9211
9284
|
textAlign: 'start',
|
|
9212
|
-
color:
|
|
9285
|
+
color: colorPrimary,
|
|
9213
9286
|
cursor: 'pointer',
|
|
9214
9287
|
borderRadius: `var(${legacyRadiusSmall}, ${radiusSm})`,
|
|
9215
9288
|
zIndex: 0, // needed for ::before pseudo-element to be visible
|
|
@@ -9227,7 +9300,7 @@ const getComponentCss$b = (size, weight) => {
|
|
|
9227
9300
|
...hoverMediaQuery({
|
|
9228
9301
|
[transformSelector('::slotted([role]:hover)::before')]: {
|
|
9229
9302
|
...frostedGlassStyle,
|
|
9230
|
-
background:
|
|
9303
|
+
background: colorFrosted,
|
|
9231
9304
|
},
|
|
9232
9305
|
}),
|
|
9233
9306
|
// basic invisible bar, that will be delayed via transition: visibility
|
|
@@ -9275,14 +9348,13 @@ const getComponentCss$b = (size, weight) => {
|
|
|
9275
9348
|
});
|
|
9276
9349
|
};
|
|
9277
9350
|
|
|
9278
|
-
const { primaryColor: primaryColor$6 } = colors;
|
|
9279
9351
|
const getComponentCss$a = () => {
|
|
9280
9352
|
return getCss({
|
|
9281
9353
|
'@global': {
|
|
9282
9354
|
':host': {
|
|
9283
9355
|
display: 'block',
|
|
9284
9356
|
...addImportantToEachRule({
|
|
9285
|
-
color:
|
|
9357
|
+
color: colorPrimary, // enables color inheritance for e.g. slotted anchor
|
|
9286
9358
|
borderRadius: '2px',
|
|
9287
9359
|
...hostHiddenStyles,
|
|
9288
9360
|
'&(:focus-visible)': getFocusBaseStyles(),
|
|
@@ -9298,7 +9370,6 @@ const getComponentCss$9 = () => {
|
|
|
9298
9370
|
':host': {
|
|
9299
9371
|
display: 'block',
|
|
9300
9372
|
...addImportantToEachRule({
|
|
9301
|
-
...colorSchemeStyles,
|
|
9302
9373
|
...hostHiddenStyles,
|
|
9303
9374
|
}),
|
|
9304
9375
|
},
|
|
@@ -9310,7 +9381,6 @@ const getComponentCss$9 = () => {
|
|
|
9310
9381
|
});
|
|
9311
9382
|
};
|
|
9312
9383
|
|
|
9313
|
-
const { primaryColor: primaryColor$5, frostedColor: frostedColor$2, contrastHighColor: contrastHighColor$1 } = colors;
|
|
9314
9384
|
const cssVarInternalTagDismissibleScaling = '--p-internal-tag-dismissible-scaling';
|
|
9315
9385
|
// CSS Variable defined in fontHyphenationStyle
|
|
9316
9386
|
/**
|
|
@@ -9331,7 +9401,6 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9331
9401
|
display: 'inline-block',
|
|
9332
9402
|
verticalAlign: 'top',
|
|
9333
9403
|
...addImportantToEachRule({
|
|
9334
|
-
...colorSchemeStyles,
|
|
9335
9404
|
...hostHiddenStyles,
|
|
9336
9405
|
}),
|
|
9337
9406
|
},
|
|
@@ -9345,13 +9414,13 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9345
9414
|
padding: `${buttonPaddingBlock} ${buttonPaddingInline}`,
|
|
9346
9415
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
9347
9416
|
cursor: 'pointer',
|
|
9348
|
-
background:
|
|
9349
|
-
color:
|
|
9417
|
+
background: colorFrosted,
|
|
9418
|
+
color: colorPrimary,
|
|
9350
9419
|
textAlign: 'start',
|
|
9351
9420
|
...textSmallStyle,
|
|
9352
9421
|
...hoverMediaQuery({
|
|
9353
9422
|
'&:hover > .icon': {
|
|
9354
|
-
backgroundColor:
|
|
9423
|
+
backgroundColor: colorFrosted,
|
|
9355
9424
|
},
|
|
9356
9425
|
}),
|
|
9357
9426
|
'&:focus-visible': getFocusBaseStyles(),
|
|
@@ -9361,7 +9430,7 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9361
9430
|
label: {
|
|
9362
9431
|
display: 'block',
|
|
9363
9432
|
marginBottom: '-4px',
|
|
9364
|
-
color:
|
|
9433
|
+
color: colorContrastHigh,
|
|
9365
9434
|
fontSize: fontSizeTextXSmall,
|
|
9366
9435
|
},
|
|
9367
9436
|
}),
|
|
@@ -9375,30 +9444,29 @@ const getComponentCss$8 = (hasLabel, isCompact) => {
|
|
|
9375
9444
|
});
|
|
9376
9445
|
};
|
|
9377
9446
|
|
|
9378
|
-
const { canvasColor, frostedColor: frostedColor$1, frostedSoftColor, primaryColor: primaryColor$4, infoFrostedColor, contrastHighColor, infoFrostedSoftColor, successFrostedColor, successFrostedSoftColor, errorFrostedColor, errorFrostedSoftColor, warningFrostedColor, warningFrostedSoftColor, } = colors;
|
|
9379
9447
|
const colorTextMap = {
|
|
9380
|
-
primary:
|
|
9381
|
-
secondary:
|
|
9382
|
-
info:
|
|
9383
|
-
success:
|
|
9384
|
-
warning:
|
|
9385
|
-
error:
|
|
9448
|
+
primary: colorCanvas,
|
|
9449
|
+
secondary: colorPrimary,
|
|
9450
|
+
info: colorPrimary,
|
|
9451
|
+
success: colorPrimary,
|
|
9452
|
+
warning: colorPrimary,
|
|
9453
|
+
error: colorPrimary,
|
|
9386
9454
|
};
|
|
9387
9455
|
const colorBackgroundMap = {
|
|
9388
|
-
primary:
|
|
9389
|
-
secondary:
|
|
9390
|
-
info:
|
|
9391
|
-
success:
|
|
9392
|
-
warning:
|
|
9393
|
-
error:
|
|
9456
|
+
primary: colorPrimary,
|
|
9457
|
+
secondary: colorFrostedStrong,
|
|
9458
|
+
info: colorInfoFrosted,
|
|
9459
|
+
success: colorSuccessFrosted,
|
|
9460
|
+
warning: colorWarningFrosted,
|
|
9461
|
+
error: colorErrorFrosted,
|
|
9394
9462
|
};
|
|
9395
9463
|
const colorBackgroundHoverMap = {
|
|
9396
|
-
primary:
|
|
9397
|
-
secondary:
|
|
9398
|
-
info:
|
|
9399
|
-
success:
|
|
9400
|
-
warning:
|
|
9401
|
-
error:
|
|
9464
|
+
primary: colorContrastHigh,
|
|
9465
|
+
secondary: colorFrosted,
|
|
9466
|
+
info: colorInfoFrostedSoft,
|
|
9467
|
+
success: colorSuccessFrostedSoft,
|
|
9468
|
+
warning: colorWarningFrostedSoft,
|
|
9469
|
+
error: colorErrorFrostedSoft,
|
|
9402
9470
|
};
|
|
9403
9471
|
const getColors = (variant) => {
|
|
9404
9472
|
return {
|
|
@@ -9416,7 +9484,6 @@ const getComponentCss$7 = (variant, compact, isFocusable, hasIcon) => {
|
|
|
9416
9484
|
verticalAlign: 'top', // TODO: should we set this CSS style at all?
|
|
9417
9485
|
whiteSpace: 'nowrap', // TODO: should either be exposed by a controlled CSS variable or a component prop or whitelist as supported custom styles
|
|
9418
9486
|
...addImportantToEachRule({
|
|
9419
|
-
...colorSchemeStyles,
|
|
9420
9487
|
...hostHiddenStyles,
|
|
9421
9488
|
}),
|
|
9422
9489
|
},
|
|
@@ -9482,7 +9549,6 @@ const cssVariableUnorderedPseudoContent = '--p-internal-text-list-unordered-pseu
|
|
|
9482
9549
|
const cssVariableOrderedGridColumn = '--p-internal-text-list-ordered-grid-column';
|
|
9483
9550
|
const cssVariableOrderedPseudoSuffix = '--p-internal-text-list-ordered-pseudo-suffix';
|
|
9484
9551
|
const counter = 'p-text-list-counter';
|
|
9485
|
-
const { primaryColor: primaryColor$3 } = colors;
|
|
9486
9552
|
const getComponentCss$6 = (type) => {
|
|
9487
9553
|
const isOrderedList = isListTypeOrdered(type);
|
|
9488
9554
|
return getCss({
|
|
@@ -9491,7 +9557,6 @@ const getComponentCss$6 = (type) => {
|
|
|
9491
9557
|
display: 'block',
|
|
9492
9558
|
...addImportantToEachRule({
|
|
9493
9559
|
counterReset: counter,
|
|
9494
|
-
...colorSchemeStyles,
|
|
9495
9560
|
...hostHiddenStyles,
|
|
9496
9561
|
}),
|
|
9497
9562
|
},
|
|
@@ -9500,7 +9565,7 @@ const getComponentCss$6 = (type) => {
|
|
|
9500
9565
|
margin: 0,
|
|
9501
9566
|
padding: `var(${cssVariablePaddingTop},0) 0 var(${cssVariablePaddingBottom},0) 0`,
|
|
9502
9567
|
listStyleType: 'none',
|
|
9503
|
-
color:
|
|
9568
|
+
color: colorPrimary,
|
|
9504
9569
|
},
|
|
9505
9570
|
// css selector for text-list-item
|
|
9506
9571
|
'::slotted(*)': addImportantToEachRule({
|
|
@@ -9575,7 +9640,6 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis) => {
|
|
|
9575
9640
|
':host': {
|
|
9576
9641
|
display: 'block',
|
|
9577
9642
|
...addImportantToEachRule({
|
|
9578
|
-
...colorSchemeStyles,
|
|
9579
9643
|
...hostHiddenStyles,
|
|
9580
9644
|
}),
|
|
9581
9645
|
},
|
|
@@ -9588,11 +9652,15 @@ const getComponentCss$4 = (size, weight, align, color, ellipsis) => {
|
|
|
9588
9652
|
});
|
|
9589
9653
|
};
|
|
9590
9654
|
|
|
9591
|
-
const { primaryColor: primaryColor$2, contrastMediumColor, frostedColor } = colors;
|
|
9592
9655
|
const cssVarInternalTextareaScaling = '--p-internal-textarea-scaling';
|
|
9593
9656
|
// CSS Variable defined in fontHyphenationStyle
|
|
9594
9657
|
/**
|
|
9595
9658
|
* @css-variable {"name": "--p-hyphens", "description": "Sets the CSS `hyphens` property for text elements, controlling whether words can break and hyphenate automatically.", "defaultValue": "auto"}
|
|
9659
|
+
* @css-variable {"name":"--p-textarea-field-sizing","description":"Controls CSS `field-sizing` for textarea.","defaultValue":"unset"}
|
|
9660
|
+
* @css-variable {"name":"--p-textarea-min-width","description":"Minimum width of the textarea.","defaultValue":"52px"}
|
|
9661
|
+
* @css-variable {"name":"--p-textarea-max-width","description":"Maximum width of the textarea.","defaultValue":"unset"}
|
|
9662
|
+
* @css-variable {"name":"--p-textarea-min-height","description":"Minimum height of the textarea.","defaultValue":"unset"}
|
|
9663
|
+
* @css-variable {"name":"--p-textarea-max-height","description":"Maximum height of the textarea.","defaultValue":"unset"}
|
|
9596
9664
|
*/
|
|
9597
9665
|
const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact, hasCounter, resize) => {
|
|
9598
9666
|
const textareaMinHeight = `calc(var(${cssVarInternalTextareaScaling}) * 3.5rem)`;
|
|
@@ -9607,24 +9675,27 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9607
9675
|
display: 'block',
|
|
9608
9676
|
[`${cssVarInternalTextareaScaling}`]: isCompact ? 0.64285714 : 1,
|
|
9609
9677
|
...addImportantToEachRule({
|
|
9610
|
-
...colorSchemeStyles,
|
|
9611
9678
|
...hostHiddenStyles,
|
|
9612
9679
|
...(isDisabled && getDisabledBaseStyles()),
|
|
9613
9680
|
}),
|
|
9614
9681
|
},
|
|
9682
|
+
...getFunctionalComponentLabelAfterStyles(isDisabled),
|
|
9615
9683
|
...preventFoucOfNestedElementsStyles,
|
|
9616
9684
|
textarea: {
|
|
9617
9685
|
all: 'unset',
|
|
9618
9686
|
gridArea: '1/1',
|
|
9619
9687
|
display: 'block',
|
|
9620
9688
|
resize,
|
|
9689
|
+
fieldSizing: 'var(--p-textarea-field-sizing, unset)',
|
|
9690
|
+
minWidth: `var(--p-textarea-min-width, 2ch)`, // to show at least 2 characters in very narrow containers
|
|
9691
|
+
maxWidth: 'var(--p-textarea-max-width, unset)',
|
|
9692
|
+
minHeight: `var(--p-textarea-min-height, ${textareaMinHeight})`,
|
|
9693
|
+
maxHeight: 'var(--p-textarea-max-height, unset)',
|
|
9621
9694
|
border: `${borderWidthThin} solid ${formStateBorderColor}`,
|
|
9622
9695
|
borderRadius: `var(${legacyRadiusSmall}, ${isCompact ? radiusLg : radiusXl})`,
|
|
9623
9696
|
background: formStateBackgroundColor,
|
|
9624
|
-
color:
|
|
9697
|
+
color: colorPrimary,
|
|
9625
9698
|
// 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.
|
|
9626
|
-
minWidth: '2ch', // to show at least 2 characters in very narrow containers
|
|
9627
|
-
minHeight: textareaMinHeight,
|
|
9628
9699
|
boxSizing: 'border-box',
|
|
9629
9700
|
transition: `${getTransition('background-color')}, ${getTransition('border-color')}`,
|
|
9630
9701
|
font: textSmallStyle.font,
|
|
@@ -9637,13 +9708,13 @@ const getComponentCss$3 = (isDisabled, isReadonly, hideLabel, state, isCompact,
|
|
|
9637
9708
|
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
9638
9709
|
...(isReadonly && {
|
|
9639
9710
|
borderColor: 'transparent',
|
|
9640
|
-
background:
|
|
9641
|
-
color:
|
|
9711
|
+
background: colorFrosted,
|
|
9712
|
+
color: colorContrastMedium,
|
|
9642
9713
|
}),
|
|
9643
9714
|
...(!isDisabled &&
|
|
9644
9715
|
!isReadonly &&
|
|
9645
9716
|
hoverMediaQuery({
|
|
9646
|
-
'&:hover
|
|
9717
|
+
'&:hover,.label-wrapper:hover~&': {
|
|
9647
9718
|
borderColor: formStateBorderHoverColor,
|
|
9648
9719
|
},
|
|
9649
9720
|
})),
|
|
@@ -9716,7 +9787,6 @@ const getComponentCss$1 = () => {
|
|
|
9716
9787
|
inset: `auto auto var(${cssVariablePositionBottomInternal}) 64px`,
|
|
9717
9788
|
maxWidth: 'min(42rem, calc(100vw - 64px * 2))',
|
|
9718
9789
|
},
|
|
9719
|
-
...colorSchemeStyles,
|
|
9720
9790
|
...hostHiddenStyles,
|
|
9721
9791
|
}),
|
|
9722
9792
|
...preventFoucOfNestedElementsStyles,
|
|
@@ -9732,8 +9802,13 @@ const getComponentCss$1 = () => {
|
|
|
9732
9802
|
});
|
|
9733
9803
|
};
|
|
9734
9804
|
|
|
9735
|
-
const { primaryColor } = colors;
|
|
9736
9805
|
const getComponentCss = (size) => {
|
|
9806
|
+
const sizingStyles = {
|
|
9807
|
+
display: 'block',
|
|
9808
|
+
maxWidth: '100%',
|
|
9809
|
+
maxHeight: '100%',
|
|
9810
|
+
height: 'inherit',
|
|
9811
|
+
};
|
|
9737
9812
|
return getCss({
|
|
9738
9813
|
'@global': {
|
|
9739
9814
|
':host': {
|
|
@@ -9751,18 +9826,12 @@ const getComponentCss = (size) => {
|
|
|
9751
9826
|
height: 'round(down, clamp(0.63rem, 0.42vw + 0.5rem, 1rem), 1px)',
|
|
9752
9827
|
},
|
|
9753
9828
|
}),
|
|
9754
|
-
...colorSchemeStyles,
|
|
9755
9829
|
...hostHiddenStyles,
|
|
9756
9830
|
}),
|
|
9757
9831
|
},
|
|
9758
|
-
'a, svg': {
|
|
9759
|
-
display: 'block',
|
|
9760
|
-
maxWidth: '100%',
|
|
9761
|
-
maxHeight: '100%',
|
|
9762
|
-
height: 'inherit',
|
|
9763
|
-
},
|
|
9764
9832
|
a: {
|
|
9765
9833
|
all: 'unset',
|
|
9834
|
+
...sizingStyles,
|
|
9766
9835
|
cursor: 'pointer',
|
|
9767
9836
|
'&::before': {
|
|
9768
9837
|
// needs to be defined always to have correct custom click area
|
|
@@ -9774,10 +9843,11 @@ const getComponentCss = (size) => {
|
|
|
9774
9843
|
'&:focus-visible::before': getFocusBaseStyles(),
|
|
9775
9844
|
},
|
|
9776
9845
|
svg: {
|
|
9777
|
-
|
|
9846
|
+
...sizingStyles,
|
|
9847
|
+
fill: colorPrimary,
|
|
9778
9848
|
},
|
|
9779
9849
|
},
|
|
9780
9850
|
});
|
|
9781
9851
|
};
|
|
9782
9852
|
|
|
9783
|
-
export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$19 as getAccordionCss, getComponentCss$18 as getBannerCss, getComponentCss$15 as getButtonCss, getComponentCss$17 as getButtonPureCss, getComponentCss$16 as getButtonTileCss, getComponentCss$14 as getCanvasCss, getComponentCss$13 as getCarouselCss, getComponentCss$12 as getCheckboxCss, getComponentCss$11 as getCrestCss, getComponentCss$10 as getDisplayCss, getComponentCss$$ as getDividerCss, getComponentCss$_ as getDrilldownCss, getComponentCss$Z as getDrilldownItemCss, getComponentCss$Y as getDrilldownLinkCss, getComponentCss$X as getFieldsetCss, getComponentCss$W as getFlagCss, getComponentCss$V as getFlyoutCss, getFunctionalComponentInputBaseStyles, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentNoResultsOptionStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$U as getHeadingCss, getComponentCss$T as getIconCss, getComponentCss$S as getInlineNotificationCss, getComponentCss$R as getInputDateCss, getComponentCss$Q as getInputEmailCss, getComponentCss$P as getInputMonthCss, getComponentCss$O as getInputNumberCss, getComponentCss$N as getInputPasswordCss, getComponentCss$M as getInputSearchCss, getComponentCss$L as getInputTelCss, getComponentCss$K as getInputTextCss, getComponentCss$J as getInputTimeCss, getComponentCss$I as getInputUrlCss, getComponentCss$H as getInputWeekCss, getComponentCss$D as getLinkCss, getComponentCss$G as getLinkPureCss, getComponentCss$E as getLinkTileCss, getComponentCss$F as getLinkTileProductCss, getComponentCss$C as getModalCss, getComponentCss$B as getModelSignatureCss, getComponentCss$y as getMultiSelectCss, getComponentCss$A as getMultiSelectOptionCss, getComponentCss$z as getOptgroupCss, getComponentCss$x as getPaginationCss, getComponentCss$w as getPinCodeCss, getComponentCss$v as getPopoverCss, getComponentCss$t as getRadioGroupCss, getComponentCss$u as getRadioGroupOptionCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$o as getSelectCss, getComponentCss$p as getSelectOptionCss, getComponentCss$n as getSheetCss, getComponentCss$m as getSpinnerCss, getComponentCss$k as getStepperHorizontalCss, getComponentCss$l as getStepperHorizontalItemCss, getComponentCss$j as getSwitchCss, getComponentCss$i as getTableBodyCss, getComponentCss$g as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$f as getTableHeadCellCss, getComponentCss$d as getTableHeadCss, getComponentCss$e as getTableHeadRowCss, getComponentCss$c as getTableRowCss, getComponentCss$b as getTabsBarCss, getComponentCss$9 as getTabsCss, getComponentCss$a as getTabsItemCss, getComponentCss$7 as getTagCss, getComponentCss$8 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|
|
9853
|
+
export { cssVarButtonPureMargin, cssVarButtonPurePadding, cssVarInternalInputBaseScaling, getComponentCss$19 as getAccordionCss, getComponentCss$18 as getBannerCss, getComponentCss$15 as getButtonCss, getComponentCss$17 as getButtonPureCss, getComponentCss$16 as getButtonTileCss, getComponentCss$14 as getCanvasCss, getComponentCss$13 as getCarouselCss, getComponentCss$12 as getCheckboxCss, getComponentCss$11 as getCrestCss, getComponentCss$10 as getDisplayCss, getComponentCss$$ as getDividerCss, getComponentCss$_ as getDrilldownCss, getComponentCss$Z as getDrilldownItemCss, getComponentCss$Y as getDrilldownLinkCss, getComponentCss$X as getFieldsetCss, getComponentCss$W as getFlagCss, getComponentCss$V as getFlyoutCss, getFunctionalComponentInputBaseStyles, getFunctionalComponentLabelAfterStyles, getFunctionalComponentLabelStyles, getFunctionalComponentLoadingMessageStyles, getFunctionalComponentNoResultsOptionStyles, getFunctionalComponentRequiredStyles, getFunctionalComponentStateMessageStyles, getComponentCss$U as getHeadingCss, getComponentCss$T as getIconCss, getComponentCss$S as getInlineNotificationCss, getComponentCss$R as getInputDateCss, getComponentCss$Q as getInputEmailCss, getComponentCss$P as getInputMonthCss, getComponentCss$O as getInputNumberCss, getComponentCss$N as getInputPasswordCss, getComponentCss$M as getInputSearchCss, getComponentCss$L as getInputTelCss, getComponentCss$K as getInputTextCss, getComponentCss$J as getInputTimeCss, getComponentCss$I as getInputUrlCss, getComponentCss$H as getInputWeekCss, getComponentCss$D as getLinkCss, getComponentCss$G as getLinkPureCss, getComponentCss$E as getLinkTileCss, getComponentCss$F as getLinkTileProductCss, getComponentCss$C as getModalCss, getComponentCss$B as getModelSignatureCss, getComponentCss$y as getMultiSelectCss, getComponentCss$A as getMultiSelectOptionCss, getComponentCss$z as getOptgroupCss, getComponentCss$x as getPaginationCss, getComponentCss$w as getPinCodeCss, getComponentCss$v as getPopoverCss, getComponentCss$t as getRadioGroupCss, getComponentCss$u as getRadioGroupOptionCss, getComponentCss$s as getScrollerCss, getComponentCss$q as getSegmentedControlCss, getComponentCss$r as getSegmentedControlItemCss, getComponentCss$o as getSelectCss, getComponentCss$p as getSelectOptionCss, getComponentCss$n as getSheetCss, getComponentCss$m as getSpinnerCss, getComponentCss$k as getStepperHorizontalCss, getComponentCss$l as getStepperHorizontalItemCss, getComponentCss$j as getSwitchCss, getComponentCss$i as getTableBodyCss, getComponentCss$g as getTableCellCss, getComponentCss$h as getTableCss, getComponentCss$f as getTableHeadCellCss, getComponentCss$d as getTableHeadCss, getComponentCss$e as getTableHeadRowCss, getComponentCss$c as getTableRowCss, getComponentCss$b as getTabsBarCss, getComponentCss$9 as getTabsCss, getComponentCss$a as getTabsItemCss, getComponentCss$7 as getTagCss, getComponentCss$8 as getTagDismissibleCss, getComponentCss$4 as getTextCss, getComponentCss$6 as getTextListCss, getComponentCss$5 as getTextListItemCss, getComponentCss$3 as getTextareaCss, getComponentCss$1 as getToastCss, getComponentCss as getWordmarkCss };
|