@ethlete/components 1.0.0-next.82 → 1.0.0-next.84
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 +70 -0
- package/design/loader.ts +1 -0
- package/design/sdk/components/switch/switch.css +1 -1
- package/fesm2022/ethlete-components-testing.mjs +5 -1
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +2816 -473
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/icons/generator.js +10 -3
- package/package.json +1 -1
- package/src/lib/avatar/avatar.component.css +12 -7
- package/src/lib/badge/badge.component.css +2 -3
- package/src/lib/banner/banner.component.css +7 -1
- package/src/lib/breadcrumb/breadcrumb.component.css +7 -4
- package/src/lib/button/button-properties-styles.component.css +6 -0
- package/src/lib/button/button.component.css +15 -1
- package/src/lib/carousel/carousel-autoplay-styles.component.css +8 -2
- package/src/lib/carousel/carousel.component.css +62 -4
- package/src/lib/collapse/collapse.component.css +43 -0
- package/src/lib/command-palette/command-palette.component.css +4 -4
- package/src/lib/empty-state/empty-state.component.css +3 -1
- package/src/lib/forms/cascader/cascader-panel.component.css +1 -1
- package/src/lib/forms/choice-field/choice-field.component.css +39 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +1 -1
- package/src/lib/forms/dropzone/dropzone-crop.component.css +114 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +16 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +17 -1
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +31 -7
- package/src/lib/forms/form-field/form-field.component.css +45 -11
- package/src/lib/forms/form-field/hint.component.css +1 -3
- package/src/lib/forms/select/select-extras-styles.component.css +9 -3
- package/src/lib/forms/select/select-option-styles.component.css +26 -3
- package/src/lib/forms/select/select-panel.component.css +4 -4
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +5 -1
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +13 -1
- package/src/lib/loader/progress-bar/progress-bar.component.css +9 -0
- package/src/lib/loader/spinner/spinner-styles.component.css +1 -7
- package/src/lib/match/match-card.component.css +106 -12
- package/src/lib/match/match-participant.component.css +31 -0
- package/src/lib/menu/menu-item.component.css +4 -0
- package/src/lib/menu/menu-search-styles.component.css +1 -1
- package/src/lib/menu/menu-selection-item.component.css +4 -0
- package/src/lib/menu/menu.component.css +20 -10
- package/src/lib/overlay/floating-tip-styles.component.css +11 -5
- package/src/lib/overlay/overlay-container.component.css +2 -3
- package/src/lib/picture/picture.component.css +1 -0
- package/src/lib/progress-steps/progress-step.component.css +26 -6
- package/src/lib/skeleton/skeleton.component.css +33 -4
- package/src/lib/standings/standings.component.css +119 -0
- package/src/lib/stat-tile/stat-tile.component.css +23 -0
- package/src/lib/table/table-row-box-styles.component.css +15 -3
- package/src/lib/table/table-sticky-columns-styles.component.css +2 -2
- package/src/lib/table/table.component.css +10 -4
- package/src/lib/timeline/timeline-item.component.css +10 -0
- package/src/lib/toggletip/toggletip.component.css +2 -2
- package/src/lib/tooltip/tooltip.component.css +12 -6
- package/types/ethlete-components-testing.d.ts +2 -0
- package/types/ethlete-components.d.ts +928 -90
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-dropzone-row-height {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 56px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
et-dropzone:where([data-layout='row']) {
|
|
9
|
+
.et-dropzone-area {
|
|
10
|
+
grid-template-columns: minmax(0, 1fr);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.et-dropzone-trigger {
|
|
14
|
+
place-items: center start;
|
|
15
|
+
min-block-size: var(--et-dropzone-row-height);
|
|
16
|
+
padding-block: 8px;
|
|
17
|
+
padding-inline: 14px;
|
|
18
|
+
border-radius: calc(var(--et-dropzone-border-radius) / 1.5);
|
|
19
|
+
text-align: start;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.et-dropzone-prompt {
|
|
23
|
+
flex-direction: row;
|
|
24
|
+
gap: 10px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.et-dropzone-prompt-icon {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
inline-size: 20px;
|
|
30
|
+
block-size: 20px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.et-dropzone-area > .et-dropzone-item {
|
|
34
|
+
position: relative;
|
|
35
|
+
grid-area: 1 / 1;
|
|
36
|
+
min-block-size: var(--et-dropzone-row-height);
|
|
37
|
+
padding-block: 6px;
|
|
38
|
+
border-width: var(--et-dropzone-border-width);
|
|
39
|
+
border-radius: calc(var(--et-dropzone-border-radius) / 1.5);
|
|
40
|
+
|
|
41
|
+
.et-dropzone-item-thumbnail {
|
|
42
|
+
inline-size: calc(var(--et-dropzone-row-height) - 20px);
|
|
43
|
+
block-size: calc(var(--et-dropzone-row-height) - 20px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.et-dropzone-file-icon {
|
|
47
|
+
inline-size: 20px;
|
|
48
|
+
block-size: 20px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[data-status='error'] .et-dropzone-entry-meta {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.et-dropzone-entry-progress {
|
|
56
|
+
position: absolute;
|
|
57
|
+
inset-block-end: 3px;
|
|
58
|
+
inset-inline: 10px;
|
|
59
|
+
|
|
60
|
+
et-progress-bar {
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
et-dropzone[data-readonly][data-layout='row'] {
|
|
68
|
+
.et-dropzone-area:not([data-has-preview]) .et-dropzone-trigger {
|
|
69
|
+
min-block-size: var(--et-dropzone-row-height);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.et-dropzone-empty {
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
et-dropzone[data-drag-over]:where([data-layout='row']) .et-dropzone-area > .et-dropzone-item {
|
|
78
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
79
|
+
background-color: color-mix(
|
|
80
|
+
in srgb,
|
|
81
|
+
var(--et-theme-color-primary-solid, currentColor) 8%,
|
|
82
|
+
var(--et-surface-background-solid, transparent)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -47,13 +47,22 @@
|
|
|
47
47
|
injected by the control, so a control instantiated before any form-field would inject it
|
|
48
48
|
*before* the base sheet and lose every source-order tie against the base frame/label rules. */
|
|
49
49
|
&[data-text-shell] {
|
|
50
|
-
--_et-form-field-frame-border: var(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
--_et-form-field-frame-border: var(
|
|
51
|
+
--et-form-field-control-border-color,
|
|
52
|
+
var(--et-surface-interaction-solid, currentColor)
|
|
53
|
+
);
|
|
54
|
+
--_et-form-field-frame-border-hover: var(
|
|
55
|
+
--et-form-field-control-border-color-hover,
|
|
56
|
+
color-mix(
|
|
57
|
+
in srgb,
|
|
58
|
+
var(--et-surface-interaction-solid, currentColor) 75%,
|
|
59
|
+
var(--et-surface-color-solid, currentColor)
|
|
60
|
+
)
|
|
61
|
+
);
|
|
62
|
+
--_et-form-field-frame-focus: var(
|
|
63
|
+
--et-form-field-control-border-color-focus,
|
|
54
64
|
var(--et-surface-color-solid, currentColor)
|
|
55
65
|
);
|
|
56
|
-
--_et-form-field-frame-focus: var(--et-surface-color-solid, currentColor);
|
|
57
66
|
--_et-form-field-label-color: var(--et-surface-color-muted-solid, currentColor);
|
|
58
67
|
--_et-form-field-label-color-active: var(--et-surface-color-solid, currentColor);
|
|
59
68
|
|
|
@@ -93,6 +102,10 @@
|
|
|
93
102
|
border-color: var(--_et-form-field-frame-border);
|
|
94
103
|
}
|
|
95
104
|
|
|
105
|
+
.et-form-field-control-slot {
|
|
106
|
+
color: var(--et-form-field-value-color);
|
|
107
|
+
}
|
|
108
|
+
|
|
96
109
|
.et-form-field-prefix {
|
|
97
110
|
margin-inline-end: calc(
|
|
98
111
|
var(--_et-form-field-prefix-gap, var(--et-form-field-control-affix-gap)) -
|
|
@@ -116,7 +129,7 @@
|
|
|
116
129
|
.et-form-field-label-area {
|
|
117
130
|
position: absolute;
|
|
118
131
|
inset-block-start: 0;
|
|
119
|
-
inset-inline-start: var(--et-form-field-control-
|
|
132
|
+
inset-inline-start: calc(var(--_et-form-field-supporting-inset) - var(--et-form-field-control-border-width));
|
|
120
133
|
transform: translateY(calc(-100% - var(--et-form-field-gap) - var(--et-form-field-control-border-width)));
|
|
121
134
|
}
|
|
122
135
|
|
|
@@ -255,6 +268,10 @@
|
|
|
255
268
|
border-color: var(--_et-form-field-frame-border-hover);
|
|
256
269
|
}
|
|
257
270
|
|
|
271
|
+
.et-form-field-control-slot {
|
|
272
|
+
color: var(--et-form-field-value-color-active, var(--et-form-field-value-color));
|
|
273
|
+
}
|
|
274
|
+
|
|
258
275
|
.et-form-field-label-area,
|
|
259
276
|
.et-form-field-affix {
|
|
260
277
|
color: var(--_et-form-field-label-color-active);
|
|
@@ -267,7 +284,14 @@
|
|
|
267
284
|
&:where([data-expanded]:not([data-readonly])) .et-form-field-control-frame,
|
|
268
285
|
&:where([data-focused]:not([data-readonly])) .et-form-field-control-frame {
|
|
269
286
|
border-color: var(--_et-form-field-frame-focus);
|
|
270
|
-
box-shadow: inset 0 0 0 var(--et-form-field-control-
|
|
287
|
+
box-shadow: inset 0 0 0 var(--et-form-field-control-focus-ring-width, var(--et-form-field-control-border-width))
|
|
288
|
+
var(--_et-form-field-frame-focus);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:where(:has(:focus-visible):not([data-readonly])) .et-form-field-control-slot,
|
|
292
|
+
&:where([data-expanded]:not([data-readonly])) .et-form-field-control-slot,
|
|
293
|
+
&:where([data-focused]:not([data-readonly])) .et-form-field-control-slot {
|
|
294
|
+
color: var(--et-form-field-value-color-active, var(--et-form-field-value-color));
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
&:where(:has(:focus-visible):not([data-readonly])) .et-form-field-label-area,
|
|
@@ -65,6 +65,12 @@
|
|
|
65
65
|
initial-value: 14px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
@property --et-form-field-label-gap {
|
|
69
|
+
syntax: '<length>';
|
|
70
|
+
inherits: true;
|
|
71
|
+
initial-value: 12px;
|
|
72
|
+
}
|
|
73
|
+
|
|
68
74
|
@property --et-form-field-error-font-size {
|
|
69
75
|
syntax: '<length>';
|
|
70
76
|
inherits: true;
|
|
@@ -94,6 +100,10 @@
|
|
|
94
100
|
--_et-form-field-control-background: transparent;
|
|
95
101
|
--_et-form-field-control-focus-ring: color-mix(in srgb, var(--et-theme-color-primary-solid) 18%, transparent);
|
|
96
102
|
--_et-form-field-floating-label-scale: 0.75;
|
|
103
|
+
--_et-form-field-supporting-inset: var(
|
|
104
|
+
--et-form-field-supporting-inset,
|
|
105
|
+
calc(var(--et-form-field-control-padding-inline) + var(--et-form-field-control-border-width))
|
|
106
|
+
);
|
|
97
107
|
|
|
98
108
|
display: flex;
|
|
99
109
|
flex-direction: column;
|
|
@@ -112,9 +122,9 @@
|
|
|
112
122
|
display: flex;
|
|
113
123
|
align-items: center;
|
|
114
124
|
font-size: var(--et-form-field-label-font-size);
|
|
115
|
-
font-weight: 500;
|
|
125
|
+
font-weight: var(--et-form-field-label-font-weight, 500);
|
|
116
126
|
line-height: 1.2;
|
|
117
|
-
letter-spacing: -0.01em;
|
|
127
|
+
letter-spacing: var(--et-form-field-label-letter-spacing, -0.01em);
|
|
118
128
|
color: var(--et-surface-color-muted-solid, currentColor);
|
|
119
129
|
cursor: text;
|
|
120
130
|
-webkit-user-select: none;
|
|
@@ -130,6 +140,31 @@
|
|
|
130
140
|
}
|
|
131
141
|
}
|
|
132
142
|
|
|
143
|
+
&:where([data-label-position='start']) {
|
|
144
|
+
display: grid;
|
|
145
|
+
grid-template-columns: var(--et-form-field-label-column, auto) var(--et-form-field-control-column, minmax(0, 1fr));
|
|
146
|
+
column-gap: var(--et-form-field-label-gap);
|
|
147
|
+
align-items: center;
|
|
148
|
+
|
|
149
|
+
.et-form-field-shell {
|
|
150
|
+
display: contents;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.et-form-field-label-area--start {
|
|
154
|
+
grid-column: 1;
|
|
155
|
+
align-self: center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.et-form-field-control-frame {
|
|
159
|
+
grid-column: 2;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
> et-description,
|
|
163
|
+
.et-form-field-support {
|
|
164
|
+
grid-column: 2;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
133
168
|
.et-form-field-label-area--floating {
|
|
134
169
|
position: absolute;
|
|
135
170
|
inset-block-start: 50%;
|
|
@@ -248,6 +283,11 @@
|
|
|
248
283
|
align-items: center;
|
|
249
284
|
flex: 1;
|
|
250
285
|
min-inline-size: 0;
|
|
286
|
+
letter-spacing: var(--et-form-field-letter-spacing);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.et-form-field-control-slot :where(input, textarea) {
|
|
290
|
+
letter-spacing: var(--et-form-field-letter-spacing, revert-layer);
|
|
251
291
|
}
|
|
252
292
|
|
|
253
293
|
.et-form-field-support {
|
|
@@ -289,9 +329,7 @@
|
|
|
289
329
|
gap: 2px;
|
|
290
330
|
font-size: var(--et-form-field-error-font-size);
|
|
291
331
|
color: var(--et-theme-color-ink-solid);
|
|
292
|
-
padding-inline-start:
|
|
293
|
-
var(--et-form-field-control-padding-inline) + var(--et-form-field-control-border-width)
|
|
294
|
-
);
|
|
332
|
+
padding-inline-start: var(--_et-form-field-supporting-inset);
|
|
295
333
|
}
|
|
296
334
|
|
|
297
335
|
.et-form-field-warnings {
|
|
@@ -300,15 +338,11 @@
|
|
|
300
338
|
gap: 2px;
|
|
301
339
|
font-size: var(--et-form-field-warning-font-size);
|
|
302
340
|
color: var(--et-theme-color-ink-solid);
|
|
303
|
-
padding-inline-start:
|
|
304
|
-
var(--et-form-field-control-padding-inline) + var(--et-form-field-control-border-width)
|
|
305
|
-
);
|
|
341
|
+
padding-inline-start: var(--_et-form-field-supporting-inset);
|
|
306
342
|
}
|
|
307
343
|
|
|
308
344
|
> et-description {
|
|
309
|
-
padding-inline-start:
|
|
310
|
-
var(--et-form-field-control-padding-inline) + var(--et-form-field-control-border-width)
|
|
311
|
-
);
|
|
345
|
+
padding-inline-start: var(--_et-form-field-supporting-inset);
|
|
312
346
|
}
|
|
313
347
|
|
|
314
348
|
.et-form-field-support[data-can-animate] {
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
.et-form-field-hint {
|
|
4
4
|
font-size: var(--et-form-field-hint-font-size);
|
|
5
5
|
color: var(--et-surface-color-muted-solid, currentColor);
|
|
6
|
-
padding-inline-start:
|
|
7
|
-
var(--et-form-field-control-padding-inline) + var(--et-form-field-control-border-width)
|
|
8
|
-
);
|
|
6
|
+
padding-inline-start: var(--_et-form-field-supporting-inset);
|
|
9
7
|
transition: color 150ms ease;
|
|
10
8
|
|
|
11
9
|
&:empty {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
font: inherit;
|
|
77
77
|
font-size: var(--et-select-option-font-size, 14px);
|
|
78
78
|
text-align: start;
|
|
79
|
-
color: var(--et-theme-color-ink-solid, currentColor);
|
|
79
|
+
color: var(--et-select-panel-action-color, var(--et-theme-color-ink-solid, currentColor));
|
|
80
80
|
cursor: pointer;
|
|
81
81
|
appearance: none;
|
|
82
82
|
transition: background 120ms ease;
|
|
@@ -87,12 +87,18 @@
|
|
|
87
87
|
inset-inline: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
88
88
|
inset-block-start: -4px;
|
|
89
89
|
block-size: 1px;
|
|
90
|
-
background: var(
|
|
90
|
+
background: var(
|
|
91
|
+
--et-select-panel-action-separator-color,
|
|
92
|
+
var(--et-surface-border-solid, rgb(255 255 255 / 0.1))
|
|
93
|
+
);
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
@media (hover: hover) {
|
|
94
97
|
&:not(:disabled):hover {
|
|
95
|
-
background:
|
|
98
|
+
background: var(
|
|
99
|
+
--et-select-panel-action-background-hover,
|
|
100
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 12%, transparent)
|
|
101
|
+
);
|
|
96
102
|
}
|
|
97
103
|
}
|
|
98
104
|
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
initial-value: 16px;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
@property --et-select-option-divider-width {
|
|
39
|
+
syntax: '<length>';
|
|
40
|
+
inherits: true;
|
|
41
|
+
initial-value: 0px;
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
.et-select-option {
|
|
39
45
|
&[data-filtered] {
|
|
40
46
|
display: none;
|
|
@@ -60,14 +66,30 @@
|
|
|
60
66
|
color 120ms ease,
|
|
61
67
|
opacity 120ms ease;
|
|
62
68
|
|
|
69
|
+
& + .et-select-option {
|
|
70
|
+
border-block-start: var(--et-select-option-divider-width) solid
|
|
71
|
+
var(--et-select-option-divider-color, var(--et-surface-border-solid, currentColor));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:where([data-selected]) {
|
|
75
|
+
--_et-select-option-color-rest: var(--et-select-option-color-selected);
|
|
76
|
+
color: var(--_et-select-option-color-rest);
|
|
77
|
+
}
|
|
78
|
+
|
|
63
79
|
&:where([data-active][data-active-source='keyboard']) {
|
|
64
|
-
outline: 2px solid var(--et-theme-color-ink-solid, currentColor);
|
|
80
|
+
outline: 2px solid var(--et-select-option-outline-color-active, var(--et-theme-color-ink-solid, currentColor));
|
|
65
81
|
outline-offset: -2px;
|
|
82
|
+
background: var(--et-select-option-background-active, transparent);
|
|
83
|
+
color: var(--et-select-option-color-active, var(--_et-select-option-color-rest));
|
|
66
84
|
}
|
|
67
85
|
|
|
68
86
|
@media (hover: hover) {
|
|
69
87
|
&:where([data-active]:hover) {
|
|
70
|
-
background:
|
|
88
|
+
background: var(
|
|
89
|
+
--et-select-option-background-hover,
|
|
90
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 12%, transparent)
|
|
91
|
+
);
|
|
92
|
+
color: var(--et-select-option-color-hover, var(--_et-select-option-color-rest));
|
|
71
93
|
}
|
|
72
94
|
}
|
|
73
95
|
|
|
@@ -91,7 +113,8 @@
|
|
|
91
113
|
flex: none;
|
|
92
114
|
inline-size: var(--et-select-option-check-size);
|
|
93
115
|
block-size: var(--et-select-option-check-size);
|
|
94
|
-
|
|
116
|
+
order: var(--et-select-option-check-order);
|
|
117
|
+
color: var(--et-select-option-check-color, var(--et-theme-color-ink-solid, currentColor));
|
|
95
118
|
/* hidden via opacity, NOT visibility — an explicit `visibility: visible` would punch
|
|
96
119
|
through the pane's positioning phase (`visibility: hidden`) and paint the check
|
|
97
120
|
before the panel itself becomes visible */
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
overflow: clip;
|
|
59
59
|
}
|
|
60
60
|
border-radius: var(--_et-overlay-surface-radius, 10px);
|
|
61
|
-
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
62
|
-
background: var(--et-surface-background-solid, rgb(32 32 32));
|
|
63
|
-
color: var(--et-surface-color-solid, rgb(244 244 245));
|
|
61
|
+
border: 1px solid var(--et-select-panel-border-color, var(--et-surface-border-solid, rgb(255 255 255 / 0.1)));
|
|
62
|
+
background: var(--et-select-panel-background, var(--et-surface-background-solid, rgb(32 32 32)));
|
|
63
|
+
color: var(--et-select-panel-color, var(--et-surface-color-solid, rgb(244 244 245)));
|
|
64
64
|
/* base font size for panel content beyond the options themselves (custom search inputs
|
|
65
65
|
etc.) — the detached pane would otherwise inherit the root font size (10px here) */
|
|
66
66
|
font-size: var(--et-select-option-font-size, 14px);
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
margin-block-start: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
90
90
|
margin-inline: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
91
91
|
padding: var(--et-select-panel-padding, 6px);
|
|
92
|
-
background: var(--et-surface-background-solid, rgb(32 32 32));
|
|
92
|
+
background: var(--et-select-panel-background, var(--et-surface-background-solid, rgb(32 32 32)));
|
|
93
93
|
z-index: 1;
|
|
94
94
|
|
|
95
95
|
input[etselectsearch] {
|
package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css
CHANGED
|
@@ -104,8 +104,12 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.et-segmented-button-group-buttons {
|
|
107
|
-
display: inline-
|
|
107
|
+
display: inline-grid;
|
|
108
|
+
grid-auto-flow: column;
|
|
109
|
+
grid-auto-columns: minmax(0, max-content);
|
|
108
110
|
align-self: flex-start;
|
|
111
|
+
min-width: 0;
|
|
112
|
+
max-width: 100%;
|
|
109
113
|
gap: 2px;
|
|
110
114
|
padding: var(--et-segmented-button-group-track-padding);
|
|
111
115
|
border-radius: var(--et-segmented-button-group-track-radius);
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
display: inline-flex;
|
|
66
66
|
align-items: center;
|
|
67
67
|
justify-content: center;
|
|
68
|
+
min-width: 0;
|
|
68
69
|
gap: var(--et-segmented-button-gap);
|
|
69
70
|
block-size: var(--et-segmented-button-height);
|
|
70
71
|
padding: var(--et-segmented-button-padding-y) var(--et-segmented-button-padding-x);
|
|
@@ -85,7 +86,18 @@
|
|
|
85
86
|
user-select: none;
|
|
86
87
|
|
|
87
88
|
.et-segmented-button-label {
|
|
88
|
-
display:
|
|
89
|
+
display: block;
|
|
90
|
+
min-width: 0;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
|
|
94
|
+
> :where(:not(:last-child)) {
|
|
95
|
+
margin-inline-end: var(--et-segmented-button-gap);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
> :where(*) {
|
|
99
|
+
vertical-align: middle;
|
|
100
|
+
}
|
|
89
101
|
}
|
|
90
102
|
|
|
91
103
|
.et-segmented-button-bg {
|
|
@@ -171,6 +171,15 @@
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
.et-progress-bar:where(.et-progress-bar--rounded-end):not(.et-progress-bar--indeterminate)
|
|
175
|
+
.et-progress-bar__bar--primary {
|
|
176
|
+
left: 0;
|
|
177
|
+
transform: none;
|
|
178
|
+
overflow: hidden;
|
|
179
|
+
border-radius: var(--et-progress-bar-border-radius);
|
|
180
|
+
transition: width 200ms linear;
|
|
181
|
+
}
|
|
182
|
+
|
|
174
183
|
.et-progress-bar:where(.et-progress-bar--themed) {
|
|
175
184
|
--et-progress-bar-indicator-color: var(--et-theme-color-ink-solid);
|
|
176
185
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
2
|
@property --et-spinner-size {
|
|
3
3
|
syntax: '<length>';
|
|
4
|
-
inherits:
|
|
4
|
+
inherits: true;
|
|
5
5
|
initial-value: 18px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
@property --et-spinner-stroke-width {
|
|
9
|
-
syntax: '<length>';
|
|
10
|
-
inherits: false;
|
|
11
|
-
initial-value: 2.25px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
8
|
@property --et-spinner-color {
|
|
15
9
|
syntax: '<color>';
|
|
16
10
|
inherits: true;
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
/* One token per density, rather than one token the density rules overwrite: the card only ever *reads*
|
|
18
18
|
these, so a value set from outside survives the mode switch instead of being clobbered by it. */
|
|
19
19
|
@property --et-match-card-compact-padding {
|
|
20
|
-
syntax: '<length
|
|
20
|
+
syntax: '<length>+';
|
|
21
21
|
inherits: true;
|
|
22
22
|
initial-value: 10px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@property --et-match-card-expanded-padding {
|
|
26
|
-
syntax: '<length
|
|
26
|
+
syntax: '<length>+';
|
|
27
27
|
inherits: true;
|
|
28
28
|
initial-value: 16px;
|
|
29
29
|
}
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
/* The third density, below the dense row: a code and a number. See the minimal threshold below. */
|
|
80
80
|
@property --et-match-card-minimal-padding {
|
|
81
|
-
syntax: '<length
|
|
81
|
+
syntax: '<length>+';
|
|
82
82
|
inherits: true;
|
|
83
83
|
initial-value: 6px;
|
|
84
84
|
}
|
|
@@ -101,6 +101,54 @@
|
|
|
101
101
|
initial-value: 12px;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
@property --et-match-card-meta-font-size {
|
|
105
|
+
syntax: '<length>';
|
|
106
|
+
inherits: true;
|
|
107
|
+
initial-value: 11px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@property --et-match-card-versus-font-size {
|
|
111
|
+
syntax: '<length>';
|
|
112
|
+
inherits: true;
|
|
113
|
+
initial-value: 11px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@property --et-match-card-games-font-size {
|
|
117
|
+
syntax: '<length>';
|
|
118
|
+
inherits: true;
|
|
119
|
+
initial-value: 11px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@property --et-match-card-name-font-weight {
|
|
123
|
+
syntax: '<number>';
|
|
124
|
+
inherits: true;
|
|
125
|
+
initial-value: 400;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@property --et-match-card-winner-name-font-weight {
|
|
129
|
+
syntax: '<number>';
|
|
130
|
+
inherits: true;
|
|
131
|
+
initial-value: 600;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@property --et-match-card-score-font-weight {
|
|
135
|
+
syntax: '<number>';
|
|
136
|
+
inherits: true;
|
|
137
|
+
initial-value: 600;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@property --et-match-card-outcome-font-weight {
|
|
141
|
+
syntax: '<number>';
|
|
142
|
+
inherits: true;
|
|
143
|
+
initial-value: 700;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@property --et-match-card-status-font-weight {
|
|
147
|
+
syntax: '<number>';
|
|
148
|
+
inherits: true;
|
|
149
|
+
initial-value: 600;
|
|
150
|
+
}
|
|
151
|
+
|
|
104
152
|
.et-match-card {
|
|
105
153
|
container-type: inline-size;
|
|
106
154
|
container-name: et-match-card;
|
|
@@ -135,6 +183,7 @@
|
|
|
135
183
|
padding: var(--_et-match-card-padding);
|
|
136
184
|
background: var(--et-surface-background-solid, transparent);
|
|
137
185
|
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
186
|
+
font-family: var(--et-match-card-font-family, inherit);
|
|
138
187
|
border-radius: inherit;
|
|
139
188
|
}
|
|
140
189
|
|
|
@@ -204,7 +253,7 @@
|
|
|
204
253
|
/* The dense row is two rows and nothing else — its round is named by the column it sits in and its
|
|
205
254
|
kick-off by the list around it. The one exception is a live badge, which is the whole reason someone
|
|
206
255
|
is looking at the thing. */
|
|
207
|
-
.et-match-card:where([data-status='live']) .et-match-card-content {
|
|
256
|
+
.et-match-card:where([data-status='live'], [data-status='cancelled']) .et-match-card-content {
|
|
208
257
|
--_et-match-card-meta-display: flex;
|
|
209
258
|
}
|
|
210
259
|
|
|
@@ -229,7 +278,7 @@
|
|
|
229
278
|
justify-content: space-between;
|
|
230
279
|
gap: 8px;
|
|
231
280
|
min-inline-size: 0;
|
|
232
|
-
font-size:
|
|
281
|
+
font-size: var(--et-match-card-meta-font-size);
|
|
233
282
|
line-height: 1.4;
|
|
234
283
|
color: var(--et-surface-color-muted-solid, currentColor);
|
|
235
284
|
}
|
|
@@ -241,6 +290,14 @@
|
|
|
241
290
|
white-space: nowrap;
|
|
242
291
|
}
|
|
243
292
|
|
|
293
|
+
.et-match-card-badges {
|
|
294
|
+
display: flex;
|
|
295
|
+
flex: none;
|
|
296
|
+
align-items: center;
|
|
297
|
+
gap: 4px;
|
|
298
|
+
margin-inline-start: auto;
|
|
299
|
+
}
|
|
300
|
+
|
|
244
301
|
.et-match-card-time {
|
|
245
302
|
display: var(--_et-match-card-time-display, block);
|
|
246
303
|
flex: none;
|
|
@@ -255,7 +312,7 @@
|
|
|
255
312
|
align-items: center;
|
|
256
313
|
gap: 5px;
|
|
257
314
|
padding-inline: 6px;
|
|
258
|
-
font-weight:
|
|
315
|
+
font-weight: var(--et-match-card-status-font-weight);
|
|
259
316
|
letter-spacing: 0.04em;
|
|
260
317
|
text-transform: uppercase;
|
|
261
318
|
color: var(--et-theme-color-ink-solid, currentColor);
|
|
@@ -263,6 +320,21 @@
|
|
|
263
320
|
border-radius: 4px;
|
|
264
321
|
}
|
|
265
322
|
|
|
323
|
+
.et-match-card-cancelled {
|
|
324
|
+
flex: none;
|
|
325
|
+
margin-inline-start: auto;
|
|
326
|
+
padding-inline: 6px;
|
|
327
|
+
font-weight: var(--et-match-card-status-font-weight);
|
|
328
|
+
letter-spacing: 0.04em;
|
|
329
|
+
text-transform: uppercase;
|
|
330
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 12%, transparent);
|
|
331
|
+
border-radius: 4px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.et-match-card-badges ~ .et-match-card-cancelled {
|
|
335
|
+
margin-inline-start: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
266
338
|
.et-match-card-live-dot {
|
|
267
339
|
flex: none;
|
|
268
340
|
inline-size: 6px;
|
|
@@ -339,7 +411,7 @@
|
|
|
339
411
|
display: var(--_et-match-card-versus-display, none);
|
|
340
412
|
flex: none;
|
|
341
413
|
padding-inline: 4px;
|
|
342
|
-
font-size:
|
|
414
|
+
font-size: var(--et-match-card-versus-font-size);
|
|
343
415
|
font-weight: 600;
|
|
344
416
|
letter-spacing: 0.06em;
|
|
345
417
|
text-transform: uppercase;
|
|
@@ -350,8 +422,9 @@
|
|
|
350
422
|
.et-match-card-outcome {
|
|
351
423
|
flex: none;
|
|
352
424
|
min-inline-size: 1.2em;
|
|
425
|
+
font-family: var(--et-match-card-score-font-family, inherit);
|
|
353
426
|
font-size: var(--_et-match-card-score-font-size);
|
|
354
|
-
font-weight:
|
|
427
|
+
font-weight: var(--et-match-card-outcome-font-weight);
|
|
355
428
|
line-height: 1.2;
|
|
356
429
|
color: var(--_et-match-card-side-color);
|
|
357
430
|
text-align: center;
|
|
@@ -371,14 +444,20 @@
|
|
|
371
444
|
/* A participant's second line is the first thing a dense row has no space for — it would make every row
|
|
372
445
|
two lines tall, which is the whole point of the dense row gone. Off by default here, back on in the
|
|
373
446
|
roomier layouts. The primitive keeps showing it when used standalone. */
|
|
374
|
-
.et-match-card-content .et-match-participant-subtitle
|
|
447
|
+
.et-match-card-content .et-match-participant-subtitle,
|
|
448
|
+
.et-match-card-content .et-match-participant-country {
|
|
375
449
|
display: var(--_et-match-card-subtitle-display, none);
|
|
376
450
|
}
|
|
377
451
|
|
|
452
|
+
.et-match-card-content .et-match-participant-name {
|
|
453
|
+
font-weight: var(--et-match-card-name-font-weight);
|
|
454
|
+
}
|
|
455
|
+
|
|
378
456
|
.et-match-card-score {
|
|
379
457
|
flex: none;
|
|
458
|
+
font-family: var(--et-match-card-score-font-family, inherit);
|
|
380
459
|
font-size: var(--_et-match-card-score-font-size);
|
|
381
|
-
font-weight:
|
|
460
|
+
font-weight: var(--et-match-card-score-font-weight);
|
|
382
461
|
font-variant-numeric: tabular-nums;
|
|
383
462
|
line-height: 1.2;
|
|
384
463
|
color: var(--_et-match-card-side-color);
|
|
@@ -402,17 +481,32 @@
|
|
|
402
481
|
--_et-match-card-side-marker-display: block;
|
|
403
482
|
|
|
404
483
|
.et-match-participant-name {
|
|
405
|
-
font-weight:
|
|
484
|
+
font-weight: var(--et-match-card-winner-name-font-weight);
|
|
406
485
|
}
|
|
407
486
|
}
|
|
408
487
|
|
|
488
|
+
/* Called off: no result to emphasize, so both sides step back and neither gets a bar. */
|
|
489
|
+
.et-match-card:where([data-status='cancelled']) .et-match-card-side {
|
|
490
|
+
--_et-match-card-side-color: var(--et-surface-color-muted-solid, currentColor);
|
|
491
|
+
--_et-match-card-side-marker-display: none;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.et-match-card:where([data-status='cancelled']) .et-match-participant-emblem {
|
|
495
|
+
opacity: 0.6;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.et-match-card-content .et-match-card-skeleton {
|
|
499
|
+
display: grid;
|
|
500
|
+
gap: var(--_et-match-card-gap);
|
|
501
|
+
}
|
|
502
|
+
|
|
409
503
|
.et-match-card-games {
|
|
410
504
|
display: var(--_et-match-card-games-display);
|
|
411
505
|
flex-wrap: wrap;
|
|
412
506
|
gap: 4px;
|
|
413
507
|
margin: 0;
|
|
414
508
|
padding: 0;
|
|
415
|
-
font-size:
|
|
509
|
+
font-size: var(--et-match-card-games-font-size);
|
|
416
510
|
color: var(--et-surface-color-muted-solid, currentColor);
|
|
417
511
|
list-style: none;
|
|
418
512
|
}
|