@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.
Files changed (58) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/design/loader.ts +1 -0
  3. package/design/sdk/components/switch/switch.css +1 -1
  4. package/fesm2022/ethlete-components-testing.mjs +5 -1
  5. package/fesm2022/ethlete-components-testing.mjs.map +1 -1
  6. package/fesm2022/ethlete-components.mjs +2816 -473
  7. package/fesm2022/ethlete-components.mjs.map +1 -1
  8. package/generators/icons/generator.js +10 -3
  9. package/package.json +1 -1
  10. package/src/lib/avatar/avatar.component.css +12 -7
  11. package/src/lib/badge/badge.component.css +2 -3
  12. package/src/lib/banner/banner.component.css +7 -1
  13. package/src/lib/breadcrumb/breadcrumb.component.css +7 -4
  14. package/src/lib/button/button-properties-styles.component.css +6 -0
  15. package/src/lib/button/button.component.css +15 -1
  16. package/src/lib/carousel/carousel-autoplay-styles.component.css +8 -2
  17. package/src/lib/carousel/carousel.component.css +62 -4
  18. package/src/lib/collapse/collapse.component.css +43 -0
  19. package/src/lib/command-palette/command-palette.component.css +4 -4
  20. package/src/lib/empty-state/empty-state.component.css +3 -1
  21. package/src/lib/forms/cascader/cascader-panel.component.css +1 -1
  22. package/src/lib/forms/choice-field/choice-field.component.css +39 -0
  23. package/src/lib/forms/date-time/date-range-presets.component.css +1 -1
  24. package/src/lib/forms/dropzone/dropzone-crop.component.css +114 -0
  25. package/src/lib/forms/dropzone/dropzone-item.component.css +16 -0
  26. package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +17 -1
  27. package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
  28. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +31 -7
  29. package/src/lib/forms/form-field/form-field.component.css +45 -11
  30. package/src/lib/forms/form-field/hint.component.css +1 -3
  31. package/src/lib/forms/select/select-extras-styles.component.css +9 -3
  32. package/src/lib/forms/select/select-option-styles.component.css +26 -3
  33. package/src/lib/forms/select/select-panel.component.css +4 -4
  34. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +5 -1
  35. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +13 -1
  36. package/src/lib/loader/progress-bar/progress-bar.component.css +9 -0
  37. package/src/lib/loader/spinner/spinner-styles.component.css +1 -7
  38. package/src/lib/match/match-card.component.css +106 -12
  39. package/src/lib/match/match-participant.component.css +31 -0
  40. package/src/lib/menu/menu-item.component.css +4 -0
  41. package/src/lib/menu/menu-search-styles.component.css +1 -1
  42. package/src/lib/menu/menu-selection-item.component.css +4 -0
  43. package/src/lib/menu/menu.component.css +20 -10
  44. package/src/lib/overlay/floating-tip-styles.component.css +11 -5
  45. package/src/lib/overlay/overlay-container.component.css +2 -3
  46. package/src/lib/picture/picture.component.css +1 -0
  47. package/src/lib/progress-steps/progress-step.component.css +26 -6
  48. package/src/lib/skeleton/skeleton.component.css +33 -4
  49. package/src/lib/standings/standings.component.css +119 -0
  50. package/src/lib/stat-tile/stat-tile.component.css +23 -0
  51. package/src/lib/table/table-row-box-styles.component.css +15 -3
  52. package/src/lib/table/table-sticky-columns-styles.component.css +2 -2
  53. package/src/lib/table/table.component.css +10 -4
  54. package/src/lib/timeline/timeline-item.component.css +10 -0
  55. package/src/lib/toggletip/toggletip.component.css +2 -2
  56. package/src/lib/tooltip/tooltip.component.css +12 -6
  57. package/types/ethlete-components-testing.d.ts +2 -0
  58. package/types/ethlete-components.d.ts +928 -90
@@ -17,6 +17,12 @@
17
17
  initial-value: 14px;
18
18
  }
19
19
 
20
+ @property --et-match-participant-flag-size {
21
+ syntax: '<length>';
22
+ inherits: true;
23
+ initial-value: 16px;
24
+ }
25
+
20
26
  .et-match-participant {
21
27
  display: flex;
22
28
  align-items: center;
@@ -109,6 +115,31 @@
109
115
  white-space: nowrap;
110
116
  }
111
117
 
118
+ .et-match-participant-country {
119
+ display: flex;
120
+ align-items: center;
121
+ gap: 4px;
122
+ min-inline-size: 0;
123
+ font-size: max(10px, calc(var(--et-match-participant-font-size) - 3px));
124
+ line-height: 1.3;
125
+ color: var(--et-surface-color-muted-solid, currentColor);
126
+ }
127
+
128
+ .et-match-participant-flag {
129
+ flex: none;
130
+ inline-size: var(--et-match-participant-flag-size);
131
+ block-size: calc(var(--et-match-participant-flag-size) * 0.75);
132
+ overflow: hidden;
133
+ border-radius: 2px;
134
+ }
135
+
136
+ .et-match-participant-country-name {
137
+ min-inline-size: 0;
138
+ overflow: hidden;
139
+ text-overflow: ellipsis;
140
+ white-space: nowrap;
141
+ }
142
+
112
143
  /* A slot waiting to be filled reads as secondary — it is not the name of anything yet. */
113
144
  .et-match-participant-name--tbd {
114
145
  color: var(--et-surface-color-muted-solid, currentColor);
@@ -28,5 +28,9 @@
28
28
  display: none;
29
29
  }
30
30
  }
31
+
32
+ .et-menu-item-loader {
33
+ display: inline-flex;
34
+ }
31
35
  }
32
36
  }
@@ -1,7 +1,7 @@
1
1
  @layer components.sdk {
2
2
  @property --et-menu-search-height {
3
3
  syntax: '<length>';
4
- inherits: false;
4
+ inherits: true;
5
5
  initial-value: 36px;
6
6
  }
7
7
 
@@ -13,6 +13,10 @@
13
13
  color: var(--et-theme-color-ink-solid, currentColor);
14
14
  }
15
15
 
16
+ &[data-loading] .et-menu-item-check::before {
17
+ display: none;
18
+ }
19
+
16
20
  &.et-menu-radio-item .et-menu-item-check::before {
17
21
  content: '';
18
22
  inline-size: 6px;
@@ -1,28 +1,34 @@
1
1
  @layer components.sdk {
2
2
  @property --et-menu-min-width {
3
3
  syntax: '<length>';
4
- inherits: false;
4
+ inherits: true;
5
5
  initial-value: 180px;
6
6
  }
7
7
 
8
8
  @property --et-menu-max-height {
9
9
  syntax: '<length-percentage>';
10
- inherits: false;
10
+ inherits: true;
11
11
  initial-value: 40vh;
12
12
  }
13
13
 
14
14
  @property --et-menu-padding-block {
15
15
  syntax: '<length>';
16
- inherits: false;
16
+ inherits: true;
17
17
  initial-value: 6px;
18
18
  }
19
19
 
20
20
  @property --et-menu-padding-inline {
21
21
  syntax: '<length>';
22
- inherits: false;
22
+ inherits: true;
23
23
  initial-value: 6px;
24
24
  }
25
25
 
26
+ @property --et-menu-border-radius {
27
+ syntax: '<length>';
28
+ inherits: true;
29
+ initial-value: 10px;
30
+ }
31
+
26
32
  @property --et-menu-item-height {
27
33
  syntax: '<length>';
28
34
  inherits: true;
@@ -67,19 +73,19 @@
67
73
 
68
74
  @property --et-menu-separator-margin-block {
69
75
  syntax: '<length>';
70
- inherits: false;
76
+ inherits: true;
71
77
  initial-value: 6px;
72
78
  }
73
79
 
74
80
  @property --et-menu-group-label-font-size {
75
81
  syntax: '<length>';
76
- inherits: false;
82
+ inherits: true;
77
83
  initial-value: 12px;
78
84
  }
79
85
 
80
86
  @property --et-menu-scroll-fade-size {
81
87
  syntax: '<length>';
82
- inherits: false;
88
+ inherits: true;
83
89
  initial-value: 12px;
84
90
  }
85
91
 
@@ -122,7 +128,6 @@
122
128
  --_et-menu-color: var(--et-surface-color-solid, rgb(244 244 245));
123
129
  --_et-menu-border: var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
124
130
  --_et-menu-shadow: var(--et-anchored-panel-shadow, 0 10px 24px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.16));
125
- --_et-menu-radius: 10px;
126
131
  --_et-menu-item-active-background: color-mix(
127
132
  in srgb,
128
133
  var(--et-surface-interaction-solid, rgb(255 255 255)) 12%,
@@ -143,7 +148,7 @@
143
148
  /* an anchored pane does not clip, so dropping the pane's own cap here lets a menu taller than
144
149
  the room next to the trigger hang out of the pane and past the viewport edge */
145
150
  max-block-size: min(var(--et-menu-max-height), var(--et-overlay-max-height, 100vh));
146
- border-radius: var(--_et-menu-radius);
151
+ border-radius: var(--et-menu-border-radius);
147
152
  border: 1px solid var(--_et-menu-border);
148
153
  background: var(--_et-menu-background);
149
154
  color: var(--_et-menu-color);
@@ -234,6 +239,7 @@
234
239
  background: transparent;
235
240
  color: inherit;
236
241
  font: inherit;
242
+ font-weight: var(--et-menu-item-font-weight);
237
243
  text-align: start;
238
244
  text-decoration: none;
239
245
  cursor: pointer;
@@ -270,11 +276,15 @@
270
276
  background: var(--_et-menu-item-pressed-background);
271
277
  }
272
278
 
273
- &[aria-disabled='true'] {
279
+ &[aria-disabled='true']:not([data-loading]) {
274
280
  opacity: 0.4;
275
281
  cursor: default;
276
282
  }
277
283
 
284
+ &[data-loading] {
285
+ cursor: progress;
286
+ }
287
+
278
288
  &[data-variant='destructive'] {
279
289
  /* the item forces the error color theme onto itself while destructive */
280
290
  color: var(--et-theme-color-ink-solid, rgb(248 113 113));
@@ -1,4 +1,10 @@
1
1
  @layer components.sdk {
2
+ @property --et-floating-tip-radius {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 16px;
6
+ }
7
+
2
8
  .et-overlay.et-overlay--tooltip,
3
9
  .et-overlay.et-overlay--toggletip {
4
10
  overflow: visible;
@@ -12,15 +18,15 @@
12
18
 
13
19
  .et-tooltip,
14
20
  .et-toggletip {
15
- --_et-floating-tip-background: var(--et-surface-background-solid, rgb(32 32 32));
16
- --_et-floating-tip-color: var(--et-surface-color-solid, rgb(244 244 245));
17
- --_et-floating-tip-border: var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
21
+ --_et-floating-tip-background: var(--et-floating-tip-background, var(--et-surface-background-solid, rgb(32 32 32)));
22
+ --_et-floating-tip-color: var(--et-floating-tip-color, var(--et-surface-color-solid, rgb(244 244 245)));
23
+ --_et-floating-tip-border: var(--et-floating-tip-border, var(--et-surface-border-solid, rgb(255 255 255 / 0.1)));
18
24
  --_et-floating-tip-shadow: var(
19
25
  --et-anchored-panel-shadow,
20
26
  0 10px 24px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.16)
21
27
  );
22
- --_et-floating-tip-radius: 16px;
23
- --_et-floating-tip-max-width: min(34ch, calc(100vw - 24px));
28
+ --_et-floating-tip-radius: var(--et-floating-tip-radius);
29
+ --_et-floating-tip-max-width: var(--et-floating-tip-max-width, min(34ch, calc(100vw - 24px)));
24
30
 
25
31
  position: relative;
26
32
  display: block;
@@ -146,9 +146,8 @@
146
146
  }
147
147
 
148
148
  .et-overlay-runtime-backdrop {
149
- --et-overlay-backdrop-color: rgb(var(--et-scrim-color-rgb, 0 0 0) / 0.32);
150
-
151
- background-color: var(--et-overlay-backdrop-color);
149
+ background-color: var(--et-overlay-backdrop-color, rgb(var(--et-scrim-color-rgb, 0 0 0) / 0.32));
150
+ backdrop-filter: var(--et-overlay-backdrop-filter, none);
152
151
  opacity: 0;
153
152
  transition: opacity 200ms linear;
154
153
 
@@ -53,6 +53,7 @@
53
53
  inline-size: 100%;
54
54
  block-size: 100%;
55
55
  object-fit: var(--_et-picture-fit);
56
+ object-position: var(--_et-picture-position, 50% 50%);
56
57
  }
57
58
  }
58
59
 
@@ -5,6 +5,12 @@
5
5
  initial-value: 24px;
6
6
  }
7
7
 
8
+ @property --et-progress-step-marker-ring-width {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 2px;
12
+ }
13
+
8
14
  @property --et-progress-step-label-font-size {
9
15
  syntax: '<length>';
10
16
  inherits: true;
@@ -44,9 +50,13 @@
44
50
 
45
51
  /* Every resolved state fills its connector. The color comes from the step's own forced theme, so
46
52
  a failed step's segment is red with no per-state rule here. */
47
- &:is([data-state='complete'], [data-state='success'], [data-state='warning'], [data-state='error']):not(
48
- :last-child
49
- )::after {
53
+ &:is(
54
+ [data-state='complete'],
55
+ [data-state='success'],
56
+ [data-state='warning'],
57
+ [data-state='error'],
58
+ [data-state='skipped']
59
+ ):not(:last-child)::after {
50
60
  background: var(--et-theme-color-ink-solid);
51
61
  }
52
62
 
@@ -59,7 +69,8 @@
59
69
  inline-size: var(--et-progress-step-marker-size);
60
70
  block-size: var(--et-progress-step-marker-size);
61
71
  border-radius: 50%;
62
- border: 2px solid var(--et-surface-border-solid, currentColor);
72
+ border: var(--et-progress-step-marker-ring-width) solid
73
+ var(--et-progress-step-marker-ring-color, var(--et-surface-border-solid, currentColor));
63
74
  background: var(--et-surface-background-solid, Canvas);
64
75
  color: var(--et-surface-color-muted-solid, currentColor);
65
76
  font-size: calc(var(--et-progress-step-marker-size) * 0.5);
@@ -83,17 +94,21 @@
83
94
  }
84
95
 
85
96
  &[data-state='current'] .et-progress-step-marker {
86
- border-color: var(--et-theme-color-ink-solid);
97
+ border-color: var(--et-progress-step-marker-ring-color, var(--et-theme-color-ink-solid));
87
98
  color: var(--et-theme-color-ink-solid, currentColor);
88
99
  }
89
100
 
90
101
  &:is([data-state='complete'], [data-state='success'], [data-state='warning'], [data-state='error'])
91
102
  .et-progress-step-marker {
92
- border-color: var(--et-theme-color-ink-solid);
103
+ border-color: var(--et-progress-step-marker-ring-color, var(--et-theme-color-ink-solid));
93
104
  background: var(--et-theme-color-primary-solid, currentColor);
94
105
  color: var(--et-theme-color-on-primary-solid, white);
95
106
  }
96
107
 
108
+ &[data-state='skipped'] .et-progress-step-marker {
109
+ border-style: dashed;
110
+ }
111
+
97
112
  .et-progress-step-marker-number::before {
98
113
  content: counter(et-progress-step);
99
114
  }
@@ -108,6 +123,7 @@
108
123
  min-inline-size: 0;
109
124
  font-size: var(--et-progress-step-label-font-size);
110
125
  text-align: center;
126
+ overflow-wrap: anywhere;
111
127
  }
112
128
 
113
129
  .et-progress-step-label {
@@ -121,6 +137,10 @@
121
137
  color: var(--et-surface-color-muted-solid, currentColor);
122
138
  }
123
139
 
140
+ [etProgressStepContent] {
141
+ margin-block-start: 4px;
142
+ }
143
+
124
144
  &[data-state='current'] .et-progress-step-label {
125
145
  color: var(--et-surface-color-solid, currentColor);
126
146
  font-weight: 600;
@@ -26,9 +26,22 @@
26
26
  initial-value: 1400ms;
27
27
  }
28
28
 
29
+ /* Not inheriting: a nested skeleton must not pick up its outer container's layout. */
30
+ @property --et-skeleton-display {
31
+ syntax: '<custom-ident>+';
32
+ inherits: false;
33
+ initial-value: flex;
34
+ }
35
+
36
+ @property --et-skeleton-direction {
37
+ syntax: 'row | row-reverse | column | column-reverse';
38
+ inherits: false;
39
+ initial-value: column;
40
+ }
41
+
29
42
  .et-skeleton {
30
- display: flex;
31
- flex-direction: column;
43
+ display: var(--et-skeleton-display);
44
+ flex-direction: var(--et-skeleton-direction);
32
45
  gap: var(--et-skeleton-gap);
33
46
  /* The pointer says "not yet" too, which is cheaper than disabling everything inside. */
34
47
  cursor: progress;
@@ -43,7 +56,10 @@
43
56
  inline-size: 100%;
44
57
  block-size: var(--et-skeleton-size, 1em);
45
58
  border-radius: var(--et-skeleton-radius);
46
- background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 12%, transparent);
59
+ background: var(
60
+ --et-skeleton-color,
61
+ color-mix(in srgb, var(--et-surface-interaction-solid, gray) 12%, transparent)
62
+ );
47
63
  }
48
64
 
49
65
  /* `text` is a line of text's height rather than a fixed px, so a bar sits in running copy without
@@ -66,8 +82,18 @@
66
82
  border-radius: 50%;
67
83
  }
68
84
 
85
+ /* The 1em default is content height, not block-size, so a consumer aspect-ratio (or block-size) wins.
86
+ overflow: hidden on the item drops the content-based minimum an aspect-ratio would otherwise keep. */
69
87
  .et-skeleton-item:where([data-shape='rect']) {
88
+ align-self: start;
89
+ block-size: auto;
70
90
  border-radius: var(--et-skeleton-radius);
91
+
92
+ &::before {
93
+ content: '';
94
+ display: block;
95
+ block-size: var(--et-skeleton-size, 1em);
96
+ }
71
97
  }
72
98
 
73
99
  .et-skeleton-text {
@@ -89,7 +115,10 @@
89
115
  background: linear-gradient(
90
116
  90deg,
91
117
  transparent,
92
- color-mix(in srgb, var(--et-surface-interaction-solid, gray) 16%, transparent),
118
+ var(
119
+ --et-skeleton-highlight-color,
120
+ color-mix(in srgb, var(--et-surface-interaction-solid, gray) 16%, transparent)
121
+ ),
93
122
  transparent
94
123
  );
95
124
  animation: et-skeleton-sweep var(--et-skeleton-duration) ease-in-out infinite;
@@ -23,6 +23,24 @@
23
23
  initial-value: 13px;
24
24
  }
25
25
 
26
+ @property --et-standings-expand-toggle-size {
27
+ syntax: '<length>';
28
+ inherits: true;
29
+ initial-value: 28px;
30
+ }
31
+
32
+ @property --et-standings-expand-chevron-size {
33
+ syntax: '<length>';
34
+ inherits: true;
35
+ initial-value: 16px;
36
+ }
37
+
38
+ @property --et-standings-expand-duration {
39
+ syntax: '<time>';
40
+ inherits: true;
41
+ initial-value: 180ms;
42
+ }
43
+
26
44
  .et-standings {
27
45
  container-type: inline-size;
28
46
  container-name: et-standings;
@@ -94,6 +112,11 @@
94
112
  font-variant-numeric: tabular-nums;
95
113
  }
96
114
 
115
+ .et-standings-cell:where([data-column='expand']) {
116
+ inline-size: 1px;
117
+ padding-inline: 0 calc(var(--et-standings-cell-padding-inline) / 2);
118
+ }
119
+
97
120
  .et-standings-head-row .et-standings-cell {
98
121
  block-size: var(--et-standings-row-height);
99
122
  color: var(--et-surface-color-muted-solid, currentColor);
@@ -124,6 +147,102 @@
124
147
  }
125
148
  }
126
149
 
150
+ .et-standings-detail:where([data-zone]) {
151
+ background: color-mix(in srgb, var(--et-theme-color-primary-solid, transparent) 7%, transparent);
152
+ }
153
+
154
+ .et-standings-detail:where([data-zone]) > tr > :first-child {
155
+ box-shadow: inset var(--et-standings-zone-bar-width) 0 0
156
+ light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
157
+
158
+ &:dir(rtl) {
159
+ box-shadow: inset calc(var(--et-standings-zone-bar-width) * -1) 0 0
160
+ light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
161
+ }
162
+ }
163
+
164
+ .et-standings-detail {
165
+ &.et-standings-detail--enter {
166
+ animation: et-standings-detail-in var(--et-standings-expand-duration) ease-out;
167
+ }
168
+
169
+ &.et-standings-detail--leave {
170
+ animation: et-standings-detail-out var(--et-standings-expand-duration) ease-in forwards;
171
+ }
172
+
173
+ @media (prefers-reduced-motion: reduce) {
174
+ &.et-standings-detail--enter,
175
+ &.et-standings-detail--leave {
176
+ animation: none;
177
+ }
178
+ }
179
+ }
180
+
181
+ @keyframes et-standings-detail-in {
182
+ from {
183
+ opacity: 0;
184
+ translate: 0 -6px;
185
+ }
186
+ }
187
+
188
+ @keyframes et-standings-detail-out {
189
+ to {
190
+ opacity: 0;
191
+ translate: 0 -6px;
192
+ }
193
+ }
194
+
195
+ .et-standings-expand-toggle {
196
+ display: inline-grid;
197
+ place-items: center;
198
+ inline-size: var(--et-standings-expand-toggle-size);
199
+ block-size: var(--et-standings-expand-toggle-size);
200
+ padding: 0;
201
+ border: 0;
202
+ border-radius: 6px;
203
+ background: transparent;
204
+ color: var(--et-surface-color-muted-solid, currentColor);
205
+ cursor: pointer;
206
+ vertical-align: middle;
207
+
208
+ @media (hover: hover) {
209
+ &:hover {
210
+ background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 10%, transparent);
211
+ color: var(--et-surface-color-solid, currentColor);
212
+ }
213
+ }
214
+
215
+ &:active {
216
+ background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 18%, transparent);
217
+ }
218
+
219
+ &:focus-visible {
220
+ outline: 2px solid
221
+ light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor));
222
+ outline-offset: -2px;
223
+ }
224
+
225
+ .et-standings-expand-chevron {
226
+ inline-size: var(--et-standings-expand-chevron-size);
227
+ block-size: var(--et-standings-expand-chevron-size);
228
+ rotate: 180deg;
229
+ }
230
+
231
+ &[aria-expanded='true'] .et-standings-expand-chevron {
232
+ rotate: 0deg;
233
+ }
234
+
235
+ @media (prefers-reduced-motion: no-preference) {
236
+ transition:
237
+ background-color var(--et-standings-expand-duration) ease,
238
+ color var(--et-standings-expand-duration) ease;
239
+
240
+ .et-standings-expand-chevron {
241
+ transition: rotate var(--et-standings-expand-duration) ease;
242
+ }
243
+ }
244
+ }
245
+
127
246
  .et-standings-row:where([data-highlighted]) {
128
247
  background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 12%, transparent);
129
248
  }
@@ -11,6 +11,12 @@
11
11
  initial-value: 14px;
12
12
  }
13
13
 
14
+ @property --et-stat-tile-label-letter-spacing {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 0;
18
+ }
19
+
14
20
  @property --et-stat-tile-value-font-size {
15
21
  syntax: '<length>';
16
22
  inherits: true;
@@ -50,11 +56,28 @@
50
56
  &:where([aria-busy='true']) > .et-stat-tile-sparkline {
51
57
  visibility: hidden;
52
58
  }
59
+
60
+ &:where([data-align='center']) {
61
+ text-align: center;
62
+ }
63
+
64
+ &:where([data-label-position='below']) {
65
+ > .et-stat-tile-label {
66
+ order: 1;
67
+ }
68
+
69
+ > .et-stat-tile-footer,
70
+ > .et-stat-tile-sparkline {
71
+ order: 2;
72
+ }
73
+ }
53
74
  }
54
75
 
55
76
  .et-stat-tile-label {
56
77
  font-size: var(--et-stat-tile-label-font-size);
57
78
  color: var(--et-surface-color-muted-solid, currentColor);
79
+ text-transform: var(--et-stat-tile-label-text-transform, none);
80
+ letter-spacing: var(--et-stat-tile-label-letter-spacing);
58
81
  }
59
82
 
60
83
  .et-stat-tile-value {
@@ -22,7 +22,7 @@
22
22
  corner, whichever column happens to be first after a reorder or a hidden column. */
23
23
  .et-table-row {
24
24
  margin-block-end: var(--_et-table-row-gap-block);
25
- background: var(--_et-table-row-paint);
25
+ background: var(--et-table-row-background, var(--_et-table-row-paint));
26
26
  border-radius: var(--_et-table-row-corner);
27
27
  }
28
28
 
@@ -31,7 +31,7 @@
31
31
  has to be declared here rather than in the appearance block - a `var()` in the block would resolve
32
32
  against the host, which is the surface the card is meant to stand off. */
33
33
  .et-table-row--card {
34
- --_et-table-row-paint: var(--et-surface-background-solid, Canvas);
34
+ --_et-table-row-paint: var(--et-table-row-background, var(--et-surface-background-solid, Canvas));
35
35
  --_et-table-row-surface: var(--_et-table-row-paint);
36
36
  --_et-table-stripe-solid: var(--_et-table-row-paint);
37
37
  --_et-table-row-hover-solid: color-mix(
@@ -52,7 +52,7 @@
52
52
  top of the ladder (see etTableCardSurface). Back to a tint, so the card is still marked off from the
53
53
  table under it. Only the paint needs saying: every knob above reads it. */
54
54
  .et-table-row--card:where(.et-table-row--card-tint) {
55
- --_et-table-row-paint: var(--_et-table-band);
55
+ --_et-table-row-paint: var(--et-table-row-background, var(--_et-table-band));
56
56
  }
57
57
 
58
58
  /* The card's 1px ring, drawn out of flow instead of as a border on the row, and that is load-bearing: a
@@ -106,6 +106,18 @@
106
106
  border-end-end-radius: inherit;
107
107
  }
108
108
 
109
+ @media (hover: hover) {
110
+ .et-table-row:hover > :first-child {
111
+ border-start-start-radius: var(--et-table-row-hover-radius, inherit);
112
+ border-end-start-radius: var(--et-table-row-hover-radius, inherit);
113
+ }
114
+
115
+ .et-table-row:hover > .et-table-cell:nth-last-child(1 of .et-table-cell) {
116
+ border-start-end-radius: var(--et-table-row-hover-radius, inherit);
117
+ border-end-end-radius: var(--et-table-row-hover-radius, inherit);
118
+ }
119
+ }
120
+
109
121
  /* A card's leading and trailing corners belong to whichever box is holding that edge, which stops
110
122
  being the row's own end as soon as a column is pinned: the row's box - its radius and its ring -
111
123
  scrolls away with the columns, and the pinned cell left at the edge squares the card off against the
@@ -34,7 +34,7 @@
34
34
  real `.et-table-sticky-*` classes (not `:where`) give these the specificity to win over the
35
35
  translucent stripe/hover rules. */
36
36
  .et-table-cell:where(.et-table-sticky-start, .et-table-sticky-end) {
37
- background: var(--_et-table-row-surface);
37
+ background: var(--et-table-row-background, var(--_et-table-row-surface));
38
38
  }
39
39
 
40
40
  .et-table-row--stripe .et-table-cell.et-table-sticky-start,
@@ -46,7 +46,7 @@
46
46
  @media (hover: hover) {
47
47
  .et-table-row:hover .et-table-cell.et-table-sticky-start,
48
48
  .et-table-row:hover .et-table-cell.et-table-sticky-end {
49
- background: var(--_et-table-row-hover-solid);
49
+ background: var(--et-table-row-hover-background, var(--_et-table-row-hover-solid));
50
50
  }
51
51
  }
52
52
 
@@ -304,7 +304,12 @@
304
304
  is taken out of the label's own width, and a wider one truncates a narrow header. */
305
305
  gap: 4px;
306
306
  z-index: 1;
307
- font-weight: 600;
307
+ font-size: var(--et-table-header-font-size);
308
+ font-weight: var(--et-table-header-font-weight, 600);
309
+ line-height: var(--et-table-header-line-height);
310
+ letter-spacing: var(--et-table-header-letter-spacing);
311
+ text-transform: var(--et-table-header-text-transform);
312
+ min-block-size: var(--et-table-header-row-min-height, auto);
308
313
  color: var(--et-table-header-color, var(--et-surface-color-muted-solid, CanvasText));
309
314
  /* Opaque (band or plain surface) so scrolling rows pass behind the pinned header. */
310
315
  background: var(--_et-table-header-bg);
@@ -342,8 +347,9 @@
342
347
  Reserve its box on every header cell instead. `max()` and the `+ 1px` mirror the rule above: the
343
348
  button never goes under 24px, and the block-end border counts towards a border-box height. */
344
349
  .et-table-host--header-adornments .et-table-header-cell {
345
- min-block-size: calc(
346
- max(var(--_et-table-header-adornment-size), 24px) + 2 * var(--et-table-cell-padding-block) + 1px
350
+ min-block-size: max(
351
+ calc(max(var(--_et-table-header-adornment-size), 24px) + 2 * var(--et-table-cell-padding-block) + 1px),
352
+ var(--et-table-header-row-min-height, 0px)
347
353
  );
348
354
  }
349
355
 
@@ -529,7 +535,7 @@
529
535
  (A hovered *selected* row keeps its accent instead — see the selection feature's styles.) */
530
536
  @media (hover: hover) {
531
537
  .et-table-row:hover .et-table-cell {
532
- background: var(--_et-table-row-hover);
538
+ background: var(--et-table-row-hover-background, var(--_et-table-row-hover));
533
539
  }
534
540
  }
535
541
 
@@ -110,6 +110,16 @@
110
110
  }
111
111
  }
112
112
 
113
+ .et-timeline-item:where([data-status='upcoming'], [data-status='skipped']) .et-timeline-item-marker {
114
+ color: var(--et-timeline-marker-color, var(--et-surface-color-muted-solid, currentColor));
115
+ }
116
+
117
+ .et-timeline-item[data-status='current'] .et-timeline-item-marker {
118
+ box-shadow:
119
+ 0 0 0 var(--et-timeline-line-thickness) var(--et-surface-background-solid, Canvas),
120
+ 0 0 0 calc(var(--et-timeline-line-thickness) * 2) currentColor;
121
+ }
122
+
113
123
  .et-timeline-item:last-child .et-timeline-item-rail::before {
114
124
  display: none;
115
125
  }