@ethlete/components 1.0.0-next.94 → 1.0.0-next.96
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 +22 -0
- package/design/sdk/ready.json +7 -7
- package/design/select.ts +2 -2
- package/fesm2022/ethlete-components.mjs +217 -76
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/forms/cascader/cascader-panel.component.css +3 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +40 -2
- package/src/lib/forms/select/select-option-styles.component.css +1 -1
- package/src/lib/forms/select/select-panel.component.css +3 -4
- package/src/lib/match/match-card.component.css +10 -1
- package/src/lib/match/match-participant.component.css +36 -0
- package/src/lib/overlay/floating-panel-styles.component.css +57 -2
- package/src/lib/overlay/floating-tip-styles.component.css +3 -0
- package/src/lib/picture/picture.component.css +15 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +8 -3
- package/src/lib/scrollable/headless/scrollable-masks.component.css +18 -3
- package/src/lib/scrollable/scrollable.component.css +0 -1
- package/types/ethlete-components.d.ts +82 -14
package/package.json
CHANGED
|
@@ -6,11 +6,49 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&.et-animation-enter-active {
|
|
9
|
-
transition:
|
|
9
|
+
transition:
|
|
10
|
+
transform 140ms ease,
|
|
11
|
+
opacity 140ms ease;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
&.et-animation-leave-active {
|
|
13
|
-
transition:
|
|
15
|
+
transition:
|
|
16
|
+
transform 100ms ease,
|
|
17
|
+
opacity 100ms ease;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.et-overlay--date-picker[data-overlay-placement^='top'] {
|
|
22
|
+
&.et-animation-enter-from,
|
|
23
|
+
&.et-animation-leave-to {
|
|
24
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) translateY(0.3rem) !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.et-overlay--date-picker[data-overlay-placement^='bottom'] {
|
|
29
|
+
&.et-animation-enter-from,
|
|
30
|
+
&.et-animation-leave-to {
|
|
31
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
32
|
+
translateY(-0.3rem) !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@media (prefers-reduced-motion: reduce) {
|
|
37
|
+
.et-overlay.et-with-default-animation.et-overlay--date-picker {
|
|
38
|
+
&.et-animation-enter-active {
|
|
39
|
+
transition: opacity 140ms ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.et-animation-leave-active {
|
|
43
|
+
transition: opacity 100ms ease;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.et-overlay--date-picker[data-overlay-placement] {
|
|
48
|
+
&.et-animation-enter-from,
|
|
49
|
+
&.et-animation-leave-to {
|
|
50
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) !important;
|
|
51
|
+
}
|
|
14
52
|
}
|
|
15
53
|
}
|
|
16
54
|
|
|
@@ -12,10 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.et-overlay--select {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) !important;
|
|
15
|
+
--et-floating-panel-enter-duration: 140ms;
|
|
16
|
+
--et-floating-panel-leave-duration: 100ms;
|
|
17
|
+
--et-floating-panel-distance: 0.3rem;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
.et-select-panel {
|
|
@@ -187,6 +187,13 @@
|
|
|
187
187
|
border-radius: inherit;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
/* Brings back the kick-off alone: the meta row returns, but its label and badges stay out. */
|
|
191
|
+
.et-match-card:where([data-show-start-time]) .et-match-card-content {
|
|
192
|
+
--_et-match-card-meta-display: flex;
|
|
193
|
+
--_et-match-card-time-display: block;
|
|
194
|
+
--_et-match-card-badges-display: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
190
197
|
/* Past the first threshold the card is the featured one; past the second the two sides stop stacking
|
|
191
198
|
and face each other across the middle. The thresholds are constants, not tokens: a container query
|
|
192
199
|
condition may not contain `var()`, so there is nothing to point a custom property at. Pin the layout
|
|
@@ -220,6 +227,7 @@
|
|
|
220
227
|
--_et-match-card-label-display: block;
|
|
221
228
|
--_et-match-card-meta-display: flex;
|
|
222
229
|
--_et-match-card-time-display: block;
|
|
230
|
+
--_et-match-card-badges-display: flex;
|
|
223
231
|
}
|
|
224
232
|
}
|
|
225
233
|
|
|
@@ -250,6 +258,7 @@
|
|
|
250
258
|
--_et-match-card-label-display: block;
|
|
251
259
|
--_et-match-card-meta-display: flex;
|
|
252
260
|
--_et-match-card-time-display: block;
|
|
261
|
+
--_et-match-card-badges-display: flex;
|
|
253
262
|
}
|
|
254
263
|
|
|
255
264
|
/* The dense row is two rows and nothing else — its round is named by the column it sits in and its
|
|
@@ -293,7 +302,7 @@
|
|
|
293
302
|
}
|
|
294
303
|
|
|
295
304
|
.et-match-card-badges {
|
|
296
|
-
display: flex;
|
|
305
|
+
display: var(--_et-match-card-badges-display, flex);
|
|
297
306
|
flex: none;
|
|
298
307
|
align-items: center;
|
|
299
308
|
gap: 4px;
|
|
@@ -107,6 +107,42 @@
|
|
|
107
107
|
content: attr(data-mark);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
.et-match-participant-emblem:has(> .et-match-participant-emblem-mark[data-fallback='shield']),
|
|
111
|
+
.et-match-participant-emblem:has(
|
|
112
|
+
> .et-match-participant-picture .et-match-participant-emblem-mark[data-fallback='shield']
|
|
113
|
+
) {
|
|
114
|
+
border-color: transparent;
|
|
115
|
+
background: none;
|
|
116
|
+
border-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.et-match-participant-emblem-mark[data-fallback='shield'] {
|
|
120
|
+
position: relative;
|
|
121
|
+
display: grid;
|
|
122
|
+
place-items: center;
|
|
123
|
+
inline-size: 100%;
|
|
124
|
+
block-size: 100%;
|
|
125
|
+
padding-block-end: 6%;
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
font-size: calc(var(--et-match-participant-emblem-size) * 0.38);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.et-match-participant-shield {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0;
|
|
133
|
+
inline-size: 100%;
|
|
134
|
+
block-size: 100%;
|
|
135
|
+
overflow: visible;
|
|
136
|
+
fill: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 10%, transparent);
|
|
137
|
+
stroke: var(--et-surface-border-solid, currentColor);
|
|
138
|
+
stroke-width: 1.5;
|
|
139
|
+
stroke-linejoin: round;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.et-match-participant-emblem-mark[data-fallback='shield']::before {
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
145
|
+
|
|
110
146
|
.et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
|
|
111
147
|
.et-match-participant-names,
|
|
112
148
|
.et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
|
|
@@ -6,11 +6,66 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
&.et-animation-enter-active {
|
|
9
|
-
transition:
|
|
9
|
+
transition:
|
|
10
|
+
transform var(--et-floating-panel-enter-duration, 200ms) ease,
|
|
11
|
+
opacity var(--et-floating-panel-enter-duration, 200ms) ease;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
&.et-animation-leave-active {
|
|
13
|
-
transition:
|
|
15
|
+
transition:
|
|
16
|
+
transform var(--et-floating-panel-leave-duration, 140ms) ease,
|
|
17
|
+
opacity var(--et-floating-panel-leave-duration, 140ms) ease;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.et-floating-panel[data-overlay-placement^='top'] {
|
|
22
|
+
&.et-animation-enter-from,
|
|
23
|
+
&.et-animation-leave-to {
|
|
24
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
25
|
+
translateY(var(--et-floating-panel-distance, 0.4rem)) !important;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.et-floating-panel[data-overlay-placement^='right'] {
|
|
30
|
+
&.et-animation-enter-from,
|
|
31
|
+
&.et-animation-leave-to {
|
|
32
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
33
|
+
translateX(calc(var(--et-floating-panel-distance, 0.4rem) * -1)) !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.et-floating-panel[data-overlay-placement^='bottom'] {
|
|
38
|
+
&.et-animation-enter-from,
|
|
39
|
+
&.et-animation-leave-to {
|
|
40
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
41
|
+
translateY(calc(var(--et-floating-panel-distance, 0.4rem) * -1)) !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.et-floating-panel[data-overlay-placement^='left'] {
|
|
46
|
+
&.et-animation-enter-from,
|
|
47
|
+
&.et-animation-leave-to {
|
|
48
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0)
|
|
49
|
+
translateX(var(--et-floating-panel-distance, 0.4rem)) !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (prefers-reduced-motion: reduce) {
|
|
54
|
+
.et-overlay.et-with-default-animation.et-floating-panel {
|
|
55
|
+
&.et-animation-enter-active {
|
|
56
|
+
transition: opacity var(--et-floating-panel-enter-duration, 200ms) ease;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.et-animation-leave-active {
|
|
60
|
+
transition: opacity var(--et-floating-panel-leave-duration, 140ms) ease;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.et-floating-panel[data-overlay-placement] {
|
|
65
|
+
&.et-animation-enter-from,
|
|
66
|
+
&.et-animation-leave-to {
|
|
67
|
+
transform: translate3d(var(--et-overlay-anchored-x, 0px), var(--et-overlay-anchored-y, 0px), 0) !important;
|
|
68
|
+
}
|
|
14
69
|
}
|
|
15
70
|
}
|
|
16
71
|
}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
@property --et-picture-img-transform {
|
|
3
|
+
syntax: '*';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-picture-img-transition {
|
|
9
|
+
syntax: '*';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
2
14
|
.et-picture {
|
|
3
15
|
display: block;
|
|
4
16
|
|
|
@@ -12,6 +24,7 @@
|
|
|
12
24
|
display: block;
|
|
13
25
|
/* The containing block for the placeholder / error slots. */
|
|
14
26
|
position: relative;
|
|
27
|
+
overflow: hidden;
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
.et-picture-img {
|
|
@@ -19,6 +32,8 @@
|
|
|
19
32
|
max-inline-size: 100%;
|
|
20
33
|
/* Given `width`/`height` for CLS, the intrinsic ratio has to be kept once CSS resizes the box. */
|
|
21
34
|
block-size: auto;
|
|
35
|
+
transform: var(--et-picture-img-transform);
|
|
36
|
+
transition: var(--et-picture-img-transition);
|
|
22
37
|
}
|
|
23
38
|
|
|
24
39
|
&:where([data-aspect-ratio]) {
|
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
initial-value: 0px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
@property --et-scrollable-buttons-extent {
|
|
15
|
+
syntax: '*';
|
|
16
|
+
inherits: true;
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
.et-scrollable-buttons {
|
|
15
20
|
grid-row: 1 / 1;
|
|
16
21
|
grid-column: 1 / 1;
|
|
@@ -18,7 +23,7 @@
|
|
|
18
23
|
|
|
19
24
|
.et-scrollable-button {
|
|
20
25
|
position: absolute;
|
|
21
|
-
--_et-scrollable-button-extent: calc(var(--_et-icon-button-size) + 0.4rem);
|
|
26
|
+
--_et-scrollable-button-extent: var(--et-scrollable-buttons-extent, calc(var(--_et-icon-button-size) + 0.4rem));
|
|
22
27
|
opacity: 0;
|
|
23
28
|
}
|
|
24
29
|
}
|
|
@@ -69,7 +74,7 @@
|
|
|
69
74
|
}
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
& .et-scrollable-button {
|
|
77
|
+
& .et-scrollable-button:where(:not([data-variant='filled'])) {
|
|
73
78
|
color: var(--et-surface-interaction-solid, currentColor);
|
|
74
79
|
}
|
|
75
80
|
|
|
@@ -97,7 +102,7 @@
|
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
|
|
100
|
-
|
|
105
|
+
&.et-scrollable--can-scroll:not(.et-scrollable--is-at-end):has(.et-scrollable-buttons--inside) {
|
|
101
106
|
&[direction='horizontal'] > .et-scrollable-wrapper > .et-scrollable-container,
|
|
102
107
|
&:not([direction]) > .et-scrollable-wrapper > .et-scrollable-container {
|
|
103
108
|
padding-inline-end: var(--et-scrollable-buttons-end-space);
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
@property --et-scrollable-mask-size {
|
|
3
|
+
syntax: '*';
|
|
4
|
+
inherits: true;
|
|
5
|
+
}
|
|
6
|
+
|
|
2
7
|
@property --_et-scrollable-mask-start {
|
|
3
8
|
syntax: '<length>';
|
|
4
9
|
inherits: false;
|
|
@@ -11,6 +16,13 @@
|
|
|
11
16
|
initial-value: 0px;
|
|
12
17
|
}
|
|
13
18
|
|
|
19
|
+
:where(.et-scrollable) {
|
|
20
|
+
--_et-scrollable-mask-length: var(
|
|
21
|
+
--et-scrollable-mask-size,
|
|
22
|
+
var(--mask-size, var(--_et-scrollable-config-mask-size, 25px))
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
.et-scrollable-masks {
|
|
15
27
|
grid-row: 1 / 1;
|
|
16
28
|
grid-column: 1 / 1;
|
|
@@ -81,7 +93,7 @@
|
|
|
81
93
|
|
|
82
94
|
.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-start) {
|
|
83
95
|
& > .et-scrollable-wrapper > .et-scrollable-container {
|
|
84
|
-
--_et-scrollable-mask-start: var(--mask-
|
|
96
|
+
--_et-scrollable-mask-start: var(--_et-scrollable-mask-length);
|
|
85
97
|
}
|
|
86
98
|
|
|
87
99
|
& > .et-scrollable-wrapper > .et-scrollable-masks .et-scrollable-mask--start {
|
|
@@ -91,7 +103,7 @@
|
|
|
91
103
|
|
|
92
104
|
.et-scrollable.et-scrollable--can-scroll.et-scrollable--has-partial-items:not(.et-scrollable--is-at-end) {
|
|
93
105
|
& > .et-scrollable-wrapper > .et-scrollable-container {
|
|
94
|
-
--_et-scrollable-mask-end: var(--mask-
|
|
106
|
+
--_et-scrollable-mask-end: var(--_et-scrollable-mask-length);
|
|
95
107
|
}
|
|
96
108
|
|
|
97
109
|
& > .et-scrollable-wrapper > .et-scrollable-masks .et-scrollable-mask--end {
|
|
@@ -112,7 +124,10 @@
|
|
|
112
124
|
}
|
|
113
125
|
|
|
114
126
|
.et-scrollable[mask-variant='border'] {
|
|
115
|
-
--mask-
|
|
127
|
+
--_et-scrollable-mask-length: var(
|
|
128
|
+
--et-scrollable-mask-size,
|
|
129
|
+
var(--mask-size, var(--_et-scrollable-config-mask-size, 32px))
|
|
130
|
+
);
|
|
116
131
|
|
|
117
132
|
&[direction='horizontal'],
|
|
118
133
|
&:not([direction]) {
|