@pega/cosmos-react-work 10.0.0-build.9.17 → 10.0.0-build.9.18
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/lib/components/CaseView/CaseView.styles.d.ts.map +1 -1
- package/lib/components/CaseView/CaseView.styles.js +4 -8
- package/lib/components/CaseView/CaseView.styles.js.map +1 -1
- package/lib/components/Stages/Stages.d.ts +1 -1
- package/lib/components/Stages/Stages.d.ts.map +1 -1
- package/lib/components/Stages/Stages.js +33 -30
- package/lib/components/Stages/Stages.js.map +1 -1
- package/lib/components/Stages/Stages.styles.d.ts +10 -4
- package/lib/components/Stages/Stages.styles.d.ts.map +1 -1
- package/lib/components/Stages/Stages.styles.js +100 -147
- package/lib/components/Stages/Stages.styles.js.map +1 -1
- package/lib/components/Stages/Stages.test-ids.d.ts +1 -1
- package/lib/components/Stages/Stages.test-ids.d.ts.map +1 -1
- package/lib/components/Stages/Stages.test-ids.js +5 -1
- package/lib/components/Stages/Stages.test-ids.js.map +1 -1
- package/lib/components/Stages/useStagesScrollbar.d.ts +21 -0
- package/lib/components/Stages/useStagesScrollbar.d.ts.map +1 -0
- package/lib/components/Stages/useStagesScrollbar.js +152 -0
- package/lib/components/Stages/useStagesScrollbar.js.map +1 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stages.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Stages/Stages.styles.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Stages.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Stages/Stages.styles.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAsInD,2FAA2F;AAC3F,eAAO,MAAM,gBAAgB,6NAY5B,CAAC;AAIF,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,6NAsE9B,CAAC;AAIH;;;;GAIG;AACH,eAAO,MAAM,YAAY;aAAwB,YAAY;YAgD3D,CAAC;AAIH,eAAO,MAAM,qBAAqB;kBAA8B,OAAO;YA2BtE,CAAC;AAIF,eAAO,MAAM,0BAA0B;WAC9B,MAAM;aACJ,MAAM;YAUhB,CAAC;AAIF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,6NA6B1B,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,gBAAgB;eAA4B,OAAO;YAe9D,CAAC;AAoDH;;;GAGG;AACH,eAAO,MAAM,WAAW;YACd,WAAW,GAAG,SAAS,GAAG,SAAS;eAChC,OAAO;aACT,YAAY;YAyEtB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,uBAAuB,kaAiBlC,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,eAAe;;;gBAA8B,OAAO;kLAIhE,CAAC;AAkYF;;;GAGG;AACH,eAAO,MAAM,oBAAoB;eACpB,OAAO;aACT,YAAY;YAyDtB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mOAS/B,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,UAAU;eAA0B,OAAO;YAoBtD,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;oMAMhC,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,kBAAkB,6NAI7B,CAAC;AAaH,eAAO,MAAM,oBAAoB,+NAS/B,CAAC;AAIH;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B;YAChC,WAAW,GAAG,SAAS,GAAG,SAAS;qBAC1B,OAAO;eACb,OAAO;YA4ElB,CAAC;AAIH,eAAO,MAAM,qBAAqB;YACxB,WAAW,GAAG,SAAS,GAAG,SAAS;eAChC,OAAO;YAoHlB,CAAC;AAIH;;;GAGG;AACH,eAAO,MAAM,uBAAuB,yOAEnC,CAAC"}
|
|
@@ -47,33 +47,20 @@ const segmentedClipPath = (leftCut, rightCut, mirrored = false) => {
|
|
|
47
47
|
// === Chevron Configuration ===
|
|
48
48
|
// Centralizes spacing and border thickness via CSS custom properties set at StyledStages
|
|
49
49
|
const chevronConfig = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
// Same horizontal projection for coarse/touch pointer (larger square, proportionally wider point).
|
|
55
|
-
coarseWidth: 'calc(1.797 * var(--chevron-spacing))',
|
|
56
|
-
// Side length of the rotated border-square forming the chevron (fine pointer: 3.75× base spacing).
|
|
57
|
-
squareSize: 'calc(3.75 * var(--chevron-spacing))',
|
|
58
|
-
// Side length of the rotated border-square for coarse/touch pointer (5× base spacing).
|
|
59
|
-
coarseSquareSize: 'calc(5 * var(--chevron-spacing))',
|
|
60
|
-
// Distance to inset the ::before notch from the left edge of the stage (fine pointer).
|
|
61
|
-
// 0.86 ≈ width − half-border-overlap, keeps the notch flush with the preceding chevron point.
|
|
62
|
-
offsetLeft: 'calc(0.86 * var(--chevron-spacing))',
|
|
63
|
-
// Distance to inset the ::after point from the right edge of the stage (fine pointer).
|
|
64
|
-
// Equal to `width` so the point extends exactly one chevron-width beyond the stage boundary.
|
|
65
|
-
offsetRight: 'calc(1.445 * var(--chevron-spacing))',
|
|
66
|
-
// Coarse-pointer equivalents of offsetLeft/offsetRight, scaled to match coarseWidth/coarseSquareSize.
|
|
67
|
-
// coarseOffsetLeft must satisfy: coarseSquareSize = 2 × coarseWidth + coarseOffsetLeft
|
|
68
|
-
// (5 = 2 × 1.797 + 1.406) so that ::before and ::after co-locate on coarse devices.
|
|
69
|
-
coarseOffsetLeft: 'calc(1.406 * var(--chevron-spacing))',
|
|
70
|
-
coarseOffsetRight: 'calc(1.797 * var(--chevron-spacing))',
|
|
71
|
-
// Pre-computed flat positions for ::before notch and ::after point.
|
|
72
|
-
notchInsetStart: 'calc(-2.305 * var(--chevron-spacing))',
|
|
73
|
-
// 3.203 = exact alignment (coarseSquareSize - coarseWidth); slightly overdone default clears sub-pixel rounding on 3× displays.
|
|
74
|
-
coarseNotchInsetStart: 'calc(-1 * var(--stages-coarse-notch-correction) * var(--chevron-spacing))',
|
|
50
|
+
blockSize: 'calc(4 * var(--chevron-spacing))',
|
|
51
|
+
width: 'var(--stages-chevron-width)',
|
|
52
|
+
squareSize: 'var(--stages-chevron-square-size)',
|
|
53
|
+
notchInsetStart: 'var(--stages-chevron-notch-inset-start)',
|
|
75
54
|
pointInsetEnd: '0'
|
|
76
55
|
};
|
|
56
|
+
const chevronGeometryScale = {
|
|
57
|
+
fine: {
|
|
58
|
+
width: '0.289',
|
|
59
|
+
square: '0.75',
|
|
60
|
+
notchInsetStart: '-0.461'
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const scaleByChevronBlockSize = (scale) => `calc(${scale} * var(--stages-chevron-block-size))`;
|
|
77
64
|
// === Chevron Helpers ===
|
|
78
65
|
// After team discussion we decided to use logical properties throughout — `inset-block-start`
|
|
79
66
|
// instead of `top`, and `border-block-start/end-width` instead of `border-top/bottom-width` —
|
|
@@ -126,16 +113,25 @@ const createChevronInteractiveStates = (config, borderThicknessVar, includeHover
|
|
|
126
113
|
border-block-start-width: calc(2 * ${borderThicknessVar});
|
|
127
114
|
}
|
|
128
115
|
`;
|
|
129
|
-
/**
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
/** Outer card-colored positioning context for the masked stages viewport and scrollbar. */
|
|
117
|
+
export const StyledStagesRoot = styled.div(({ theme }) => css `
|
|
118
|
+
position: relative;
|
|
119
|
+
display: grid;
|
|
120
|
+
grid-template-columns: minmax(0, 1fr);
|
|
121
|
+
grid-template-rows: auto auto;
|
|
122
|
+
width: 100%;
|
|
123
|
+
overflow: visible;
|
|
124
|
+
border-start-start-radius: ${theme.components.card['border-radius']};
|
|
125
|
+
border-start-end-radius: ${theme.components.card['border-radius']};
|
|
126
|
+
background: ${theme.components.card.background};
|
|
127
|
+
`);
|
|
128
|
+
StyledStagesRoot.defaultProps = defaultThemeProp;
|
|
129
|
+
/** Applies the scroll-fade mask and clips the stages viewport. */
|
|
133
130
|
export const StyledStagesWrapper = styled.div(({ theme }) => {
|
|
134
131
|
return css `
|
|
135
132
|
--stages-fade-width: calc(${theme.base.spacing} * 2);
|
|
136
133
|
--stages-fade-start: 0;
|
|
137
134
|
--stages-fade-end: 0;
|
|
138
|
-
--stages-scrollbar-reserve: calc(${theme.base.spacing} * 0.25);
|
|
139
135
|
|
|
140
136
|
/* Places gradient stops one physical pixel outside the element boundary,
|
|
141
137
|
* preventing browser anti-aliasing from creating a semi-transparent seam
|
|
@@ -158,47 +154,39 @@ export const StyledStagesWrapper = styled.div(({ theme }) => {
|
|
|
158
154
|
--stages-wrapper-bottom-radius,
|
|
159
155
|
${theme.components.card['border-radius']}
|
|
160
156
|
);
|
|
161
|
-
-webkit-mask-image: linear-gradient(
|
|
162
|
-
|
|
157
|
+
-webkit-mask-image: linear-gradient(
|
|
158
|
+
to right,
|
|
159
|
+
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
160
|
+
black var(--stages-fade-start),
|
|
161
|
+
black calc(100% - var(--stages-fade-end)),
|
|
162
|
+
transparent calc(100% + var(--mask-edge-overhang))
|
|
163
|
+
);
|
|
164
|
+
mask-image: linear-gradient(
|
|
165
|
+
to right,
|
|
166
|
+
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
167
|
+
black var(--stages-fade-start),
|
|
168
|
+
black calc(100% - var(--stages-fade-end)),
|
|
169
|
+
transparent calc(100% + var(--mask-edge-overhang))
|
|
170
|
+
);
|
|
171
|
+
mask-size: 100% 100%;
|
|
172
|
+
mask-position: 0 0;
|
|
173
|
+
mask-repeat: no-repeat;
|
|
174
|
+
|
|
175
|
+
[dir='rtl'] & {
|
|
176
|
+
-webkit-mask-image: linear-gradient(
|
|
163
177
|
to right,
|
|
164
178
|
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
165
|
-
black var(--stages-fade-
|
|
166
|
-
black calc(100% - var(--stages-fade-
|
|
179
|
+
black var(--stages-fade-end),
|
|
180
|
+
black calc(100% - var(--stages-fade-start)),
|
|
167
181
|
transparent calc(100% + var(--mask-edge-overhang))
|
|
168
182
|
);
|
|
169
|
-
|
|
170
|
-
linear-gradient(
|
|
183
|
+
mask-image: linear-gradient(
|
|
171
184
|
to right,
|
|
172
185
|
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
173
|
-
black var(--stages-fade-
|
|
174
|
-
black calc(100% - var(--stages-fade-
|
|
186
|
+
black var(--stages-fade-end),
|
|
187
|
+
black calc(100% - var(--stages-fade-start)),
|
|
175
188
|
transparent calc(100% + var(--mask-edge-overhang))
|
|
176
189
|
);
|
|
177
|
-
mask-size:
|
|
178
|
-
100% var(--stages-scrollbar-reserve),
|
|
179
|
-
100% calc(100% - var(--stages-scrollbar-reserve));
|
|
180
|
-
mask-position:
|
|
181
|
-
0 100%,
|
|
182
|
-
0 0;
|
|
183
|
-
mask-repeat: no-repeat, no-repeat;
|
|
184
|
-
|
|
185
|
-
[dir='rtl'] & {
|
|
186
|
-
-webkit-mask-image: linear-gradient(black, black),
|
|
187
|
-
linear-gradient(
|
|
188
|
-
to right,
|
|
189
|
-
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
190
|
-
black var(--stages-fade-end),
|
|
191
|
-
black calc(100% - var(--stages-fade-start)),
|
|
192
|
-
transparent calc(100% + var(--mask-edge-overhang))
|
|
193
|
-
);
|
|
194
|
-
mask-image: linear-gradient(black, black),
|
|
195
|
-
linear-gradient(
|
|
196
|
-
to right,
|
|
197
|
-
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
198
|
-
black var(--stages-fade-end),
|
|
199
|
-
black calc(100% - var(--stages-fade-start)),
|
|
200
|
-
transparent calc(100% + var(--mask-edge-overhang))
|
|
201
|
-
);
|
|
202
190
|
}
|
|
203
191
|
|
|
204
192
|
&:has(:focus-visible) {
|
|
@@ -207,40 +195,6 @@ export const StyledStagesWrapper = styled.div(({ theme }) => {
|
|
|
207
195
|
|
|
208
196
|
@media (pointer: coarse) {
|
|
209
197
|
--stages-fade-width: calc(${theme.base.spacing} * 3);
|
|
210
|
-
-webkit-mask-image: linear-gradient(
|
|
211
|
-
to right,
|
|
212
|
-
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
213
|
-
black var(--stages-fade-start),
|
|
214
|
-
black calc(100% - var(--stages-fade-end)),
|
|
215
|
-
transparent calc(100% + var(--mask-edge-overhang))
|
|
216
|
-
);
|
|
217
|
-
mask-image: linear-gradient(
|
|
218
|
-
to right,
|
|
219
|
-
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
220
|
-
black var(--stages-fade-start),
|
|
221
|
-
black calc(100% - var(--stages-fade-end)),
|
|
222
|
-
transparent calc(100% + var(--mask-edge-overhang))
|
|
223
|
-
);
|
|
224
|
-
mask-size: 100% 100%;
|
|
225
|
-
mask-position: 0 0;
|
|
226
|
-
mask-repeat: no-repeat;
|
|
227
|
-
|
|
228
|
-
[dir='rtl'] & {
|
|
229
|
-
-webkit-mask-image: linear-gradient(
|
|
230
|
-
to right,
|
|
231
|
-
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
232
|
-
black var(--stages-fade-end),
|
|
233
|
-
black calc(100% - var(--stages-fade-start)),
|
|
234
|
-
transparent calc(100% + var(--mask-edge-overhang))
|
|
235
|
-
);
|
|
236
|
-
mask-image: linear-gradient(
|
|
237
|
-
to right,
|
|
238
|
-
transparent calc(-1 * var(--mask-edge-overhang)),
|
|
239
|
-
black var(--stages-fade-end),
|
|
240
|
-
black calc(100% - var(--stages-fade-start)),
|
|
241
|
-
transparent calc(100% + var(--mask-edge-overhang))
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
198
|
}
|
|
245
199
|
`;
|
|
246
200
|
});
|
|
@@ -254,6 +208,10 @@ export const StyledStages = styled.ol(({ theme, variant }) => {
|
|
|
254
208
|
const isMilestone = variant === 'milestone';
|
|
255
209
|
return css `
|
|
256
210
|
--chevron-spacing: ${theme.base.spacing};
|
|
211
|
+
--stages-chevron-block-size: ${chevronConfig.blockSize};
|
|
212
|
+
--stages-chevron-width: ${scaleByChevronBlockSize(chevronGeometryScale.fine.width)};
|
|
213
|
+
--stages-chevron-square-size: ${scaleByChevronBlockSize(chevronGeometryScale.fine.square)};
|
|
214
|
+
--stages-chevron-notch-inset-start: ${scaleByChevronBlockSize(chevronGeometryScale.fine.notchInsetStart)};
|
|
257
215
|
--chevron-border-thickness: ${theme.components.button['border-width']};
|
|
258
216
|
--segmented-border-thickness: calc(2 * ${theme.components.button['border-width']});
|
|
259
217
|
--segmented-width: ${segmentedConfig.width};
|
|
@@ -265,8 +223,7 @@ export const StyledStages = styled.ol(({ theme, variant }) => {
|
|
|
265
223
|
overflow-x: auto;
|
|
266
224
|
overflow-y: hidden;
|
|
267
225
|
list-style: none;
|
|
268
|
-
scrollbar-width:
|
|
269
|
-
scrollbar-color: transparent transparent;
|
|
226
|
+
scrollbar-width: none;
|
|
270
227
|
|
|
271
228
|
${isMilestone &&
|
|
272
229
|
css `
|
|
@@ -279,31 +236,55 @@ export const StyledStages = styled.ol(({ theme, variant }) => {
|
|
|
279
236
|
padding-inline: calc(var(--milestone-size) * 0.25);
|
|
280
237
|
`}
|
|
281
238
|
|
|
282
|
-
&:hover,
|
|
283
|
-
&:focus-within {
|
|
284
|
-
scrollbar-color: var(
|
|
285
|
-
--stages-scrollbar-thumb,
|
|
286
|
-
${transparentize(0.4, theme.base.palette['border-line'])}
|
|
287
|
-
)
|
|
288
|
-
var(--stages-scrollbar-track, transparent);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
239
|
&::-webkit-scrollbar {
|
|
292
|
-
|
|
240
|
+
display: none;
|
|
293
241
|
}
|
|
294
242
|
|
|
295
243
|
@media (pointer: coarse) {
|
|
296
|
-
|
|
297
|
-
--stages-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
&::-webkit-scrollbar {
|
|
301
|
-
display: none;
|
|
302
|
-
}
|
|
244
|
+
--stages-chevron-block-size: ${theme.base['hit-area']['finger-min']};
|
|
245
|
+
--stages-chevron-width: ${scaleByChevronBlockSize(chevronGeometryScale.fine.width)};
|
|
246
|
+
--stages-chevron-square-size: ${scaleByChevronBlockSize(chevronGeometryScale.fine.square)};
|
|
247
|
+
--stages-chevron-notch-inset-start: ${scaleByChevronBlockSize(chevronGeometryScale.fine.notchInsetStart)};
|
|
303
248
|
}
|
|
304
249
|
`;
|
|
305
250
|
});
|
|
306
251
|
StyledStages.defaultProps = defaultThemeProp;
|
|
252
|
+
export const StyledStagesScrollbar = styled.div(({ theme, $hasOverflow }) => css `
|
|
253
|
+
position: relative;
|
|
254
|
+
height: ${theme.base.spacing};
|
|
255
|
+
cursor: grab;
|
|
256
|
+
touch-action: none;
|
|
257
|
+
opacity: 0;
|
|
258
|
+
visibility: hidden;
|
|
259
|
+
pointer-events: none;
|
|
260
|
+
|
|
261
|
+
${$hasOverflow &&
|
|
262
|
+
css `
|
|
263
|
+
${StyledStagesRoot}:hover & {
|
|
264
|
+
opacity: 1;
|
|
265
|
+
visibility: visible;
|
|
266
|
+
pointer-events: auto;
|
|
267
|
+
}
|
|
268
|
+
`}
|
|
269
|
+
|
|
270
|
+
&:active {
|
|
271
|
+
cursor: grabbing;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@media (pointer: coarse) {
|
|
275
|
+
display: none;
|
|
276
|
+
}
|
|
277
|
+
`);
|
|
278
|
+
StyledStagesScrollbar.defaultProps = defaultThemeProp;
|
|
279
|
+
export const StyledStagesScrollbarThumb = styled.div(({ theme, $size, $offset }) => css `
|
|
280
|
+
position: absolute;
|
|
281
|
+
inset-block: 0;
|
|
282
|
+
inset-inline-start: ${$offset * 100}%;
|
|
283
|
+
width: ${$size * 100}%;
|
|
284
|
+
border-radius: ${theme.components.card['border-radius']};
|
|
285
|
+
background: ${transparentize(0.4, theme.base.palette['border-line'])};
|
|
286
|
+
`);
|
|
287
|
+
StyledStagesScrollbarThumb.defaultProps = defaultThemeProp;
|
|
307
288
|
/**
|
|
308
289
|
* A sentinel is an invisible 1 px <li> placed at each end of the scrollable stage list.
|
|
309
290
|
* It is observed by an IntersectionObserver; when it scrolls out of view, the component sets
|
|
@@ -391,8 +372,6 @@ const stageButtonChevronStyles = (theme) => css `
|
|
|
391
372
|
|
|
392
373
|
@media (pointer: coarse) {
|
|
393
374
|
padding-inline-start: calc(2.25 * var(--chevron-spacing));
|
|
394
|
-
width: calc(100% + ${chevronConfig.coarseWidth});
|
|
395
|
-
--stage-chevron-width: ${chevronConfig.coarseWidth};
|
|
396
375
|
}
|
|
397
376
|
`;
|
|
398
377
|
const stageButtonSegmentedStyles = (theme) => css `
|
|
@@ -419,7 +398,7 @@ const stageButtonVariants = {
|
|
|
419
398
|
* Clickable `<button>` for a single stage. Renders the chevron clip-path shape and
|
|
420
399
|
* applies status-based background and foreground colours.
|
|
421
400
|
*/
|
|
422
|
-
export const StyledStage = styled.button(({ theme, theme: { base: { palette,
|
|
401
|
+
export const StyledStage = styled.button(({ theme, theme: { base: { palette, transparency, 'font-weight': fontWeight }, components: { 'case-view': { stages } } }, status, readOnly, variant: shape }) => {
|
|
423
402
|
const stageForeground = calculateForegroundColor(stages.status[status].background, stages.status[status]['foreground-color']);
|
|
424
403
|
return css `
|
|
425
404
|
background: ${stages.status[status].background};
|
|
@@ -429,11 +408,7 @@ export const StyledStage = styled.button(({ theme, theme: { base: { palette, 'hi
|
|
|
429
408
|
border-width: calc(2 * var(--chevron-border-thickness)) 0;
|
|
430
409
|
border-style: solid;
|
|
431
410
|
position: relative;
|
|
432
|
-
|
|
433
|
-
/* Browsers do not reliably apply flex align-items: stretch to <button> elements.
|
|
434
|
-
* Adding 0.0625rem (1px at default font size) to min-height compensates so the button fills its <li> container,
|
|
435
|
-
* keeping the clipped chevron background flush with the top and bottom borders. */
|
|
436
|
-
min-height: calc(5 * var(--chevron-spacing) + 0.0625rem);
|
|
411
|
+
height: var(--stages-chevron-block-size);
|
|
437
412
|
margin-inline-start: 0;
|
|
438
413
|
margin-inline-end: 0;
|
|
439
414
|
|
|
@@ -475,7 +450,7 @@ export const StyledStage = styled.button(({ theme, theme: { base: { palette, 'hi
|
|
|
475
450
|
}
|
|
476
451
|
|
|
477
452
|
@media (pointer: coarse) {
|
|
478
|
-
min-height:
|
|
453
|
+
min-height: var(--stages-chevron-block-size);
|
|
479
454
|
}
|
|
480
455
|
`;
|
|
481
456
|
});
|
|
@@ -590,7 +565,6 @@ const stageContainerChevronStyles = (theme, readOnly) => {
|
|
|
590
565
|
}
|
|
591
566
|
|
|
592
567
|
@media (pointer: coarse) {
|
|
593
|
-
--stage-chevron-width: ${chevronConfig.coarseWidth};
|
|
594
568
|
width: calc(100% + (2 * var(--stage-chevron-width)));
|
|
595
569
|
}
|
|
596
570
|
}
|
|
@@ -626,10 +600,6 @@ const stageContainerChevronStyles = (theme, readOnly) => {
|
|
|
626
600
|
${theme.base.palette.interactive};
|
|
627
601
|
}
|
|
628
602
|
}
|
|
629
|
-
|
|
630
|
-
@media (pointer: coarse) {
|
|
631
|
-
--stage-chevron-width: ${chevronConfig.coarseWidth};
|
|
632
|
-
}
|
|
633
603
|
}
|
|
634
604
|
|
|
635
605
|
/* RTL: flip clip-paths for first and last stages */
|
|
@@ -663,31 +633,14 @@ const stageContainerChevronStyles = (theme, readOnly) => {
|
|
|
663
633
|
inset calc(2 * var(--chevron-border-thickness)) 0 0 ${theme.base.palette.interactive},
|
|
664
634
|
inset calc(-2 * var(--chevron-border-thickness)) 0 0 ${theme.base.palette.interactive};
|
|
665
635
|
}
|
|
666
|
-
|
|
667
|
-
@media (pointer: coarse) {
|
|
668
|
-
--stage-chevron-width: ${chevronConfig.coarseWidth};
|
|
669
|
-
}
|
|
670
636
|
}
|
|
671
637
|
|
|
672
638
|
@media (pointer: coarse) {
|
|
673
|
-
margin-inline-start: calc(-1 * ${chevronConfig.coarseWidth});
|
|
674
|
-
|
|
675
639
|
&:not(:nth-of-type(-n + 2))::before,
|
|
676
640
|
&:not(:nth-last-of-type(-n + 2))::after {
|
|
677
|
-
inset-block-start: calc(50% - ${chevronConfig.coarseSquareSize} / 2);
|
|
678
|
-
width: ${chevronConfig.coarseSquareSize};
|
|
679
|
-
height: ${chevronConfig.coarseSquareSize};
|
|
680
641
|
border-inline-end-width: calc(2 * var(--chevron-border-thickness));
|
|
681
642
|
border-block-start-width: calc(2 * var(--chevron-border-thickness));
|
|
682
643
|
}
|
|
683
|
-
|
|
684
|
-
&:not(:nth-of-type(-n + 2))::before {
|
|
685
|
-
inset-inline-start: ${chevronConfig.coarseNotchInsetStart};
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
&:not(:nth-last-of-type(-n + 2))::after {
|
|
689
|
-
inset-inline-end: 0;
|
|
690
|
-
}
|
|
691
644
|
}
|
|
692
645
|
`;
|
|
693
646
|
};
|