@ethlete/components 1.0.0-next.91 → 1.0.0-next.93
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/components/checkbox/checkbox.ts +1 -8
- package/design/sdk/ready.json +10 -10
- package/fesm2022/ethlete-components.mjs +434 -51
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/match/match-participant.component.css +12 -0
- package/src/lib/match/match-scoreline.component.css +53 -0
- package/src/lib/match/match-time.component.css +5 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +65 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +17 -7
- package/src/lib/stream/pip/pip-window.component.css +3 -4
- package/src/lib/tabs/tab-bar-styles.component.css +34 -4
- package/types/ethlete-components.d.ts +192 -14
package/package.json
CHANGED
|
@@ -107,6 +107,18 @@
|
|
|
107
107
|
content: attr(data-mark);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
.et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
|
|
111
|
+
.et-match-participant-names,
|
|
112
|
+
.et-match-participant:has(> [etMatchParticipantEdit]:not([etMatchParticipantEdit='beside']))
|
|
113
|
+
.et-match-participant-name-bone {
|
|
114
|
+
display: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.et-match-participant > [etMatchParticipantEdit] {
|
|
118
|
+
flex: 1;
|
|
119
|
+
min-inline-size: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
110
122
|
/* One column for the two lines, so the emblem stays centred against both of them. */
|
|
111
123
|
.et-match-participant-names {
|
|
112
124
|
display: flex;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-match-scoreline-score-font-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-match-scoreline-score-font-weight {
|
|
9
|
+
syntax: '<number>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 700;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-match-scoreline-time-font-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-match-scoreline-gap {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 2px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-match-scoreline {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: var(--et-match-scoreline-gap);
|
|
31
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.et-match-scoreline-scores {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 4px;
|
|
38
|
+
font-size: var(--et-match-scoreline-score-font-size);
|
|
39
|
+
font-weight: var(--et-match-scoreline-score-font-weight);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.et-match-scoreline-separator {
|
|
43
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.et-match-scoreline-time {
|
|
47
|
+
font-size: var(--et-match-scoreline-time-font-size);
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
letter-spacing: 0.03em;
|
|
50
|
+
text-transform: uppercase;
|
|
51
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -112,6 +112,71 @@
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
&.et-scrollable--inline-buttons.et-scrollable--can-scroll {
|
|
116
|
+
& > .et-scrollable-wrapper {
|
|
117
|
+
align-items: center;
|
|
118
|
+
gap: 4px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
& .et-scrollable-buttons {
|
|
122
|
+
display: contents;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
& .et-scrollable-button {
|
|
126
|
+
position: static;
|
|
127
|
+
opacity: 1;
|
|
128
|
+
pointer-events: all;
|
|
129
|
+
transform: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&[direction='horizontal'],
|
|
133
|
+
&:not([direction]) {
|
|
134
|
+
& > .et-scrollable-wrapper {
|
|
135
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
136
|
+
|
|
137
|
+
& > .et-scrollable-container,
|
|
138
|
+
& > .et-scrollable-masks {
|
|
139
|
+
grid-column: 2;
|
|
140
|
+
grid-row: 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
& .et-scrollable-button--start {
|
|
144
|
+
grid-column: 1;
|
|
145
|
+
grid-row: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
& .et-scrollable-button--end {
|
|
149
|
+
grid-column: 3;
|
|
150
|
+
grid-row: 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&[direction='vertical'] {
|
|
156
|
+
& > .et-scrollable-wrapper {
|
|
157
|
+
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
158
|
+
justify-items: center;
|
|
159
|
+
|
|
160
|
+
& > .et-scrollable-container,
|
|
161
|
+
& > .et-scrollable-masks {
|
|
162
|
+
grid-row: 2;
|
|
163
|
+
grid-column: 1;
|
|
164
|
+
justify-self: stretch;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
& .et-scrollable-button--start {
|
|
168
|
+
grid-row: 1;
|
|
169
|
+
grid-column: 1;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
& .et-scrollable-button--end {
|
|
173
|
+
grid-row: 3;
|
|
174
|
+
grid-column: 1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
115
180
|
/* Wins the equal-weight tie with the direction rules above only by coming after them - keep the
|
|
116
181
|
footer overrides in this file, below them. */
|
|
117
182
|
& .et-scrollable-footer {
|
|
@@ -33,13 +33,17 @@
|
|
|
33
33
|
#000 calc(100% - var(--_et-scrollable-mask-end)),
|
|
34
34
|
transparent 100%
|
|
35
35
|
),
|
|
36
|
-
linear-gradient(#000 0 0);
|
|
36
|
+
linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
|
|
37
37
|
mask-size:
|
|
38
38
|
100% calc(100% - var(--_et-scrollable-scrollbar-size, 0px)),
|
|
39
|
-
100% var(--_et-scrollable-scrollbar-size, 0px)
|
|
39
|
+
100% var(--_et-scrollable-scrollbar-size, 0px),
|
|
40
|
+
var(--et-scrollable-mask-inset-start, 0px) 100%,
|
|
41
|
+
var(--et-scrollable-mask-inset-end, 0px) 100%;
|
|
40
42
|
mask-position:
|
|
41
43
|
left top,
|
|
42
|
-
left bottom
|
|
44
|
+
left bottom,
|
|
45
|
+
left top,
|
|
46
|
+
right top;
|
|
43
47
|
mask-repeat: no-repeat;
|
|
44
48
|
}
|
|
45
49
|
|
|
@@ -54,18 +58,24 @@
|
|
|
54
58
|
#000 calc(100% - var(--_et-scrollable-mask-end)),
|
|
55
59
|
transparent 100%
|
|
56
60
|
),
|
|
57
|
-
linear-gradient(#000 0 0);
|
|
61
|
+
linear-gradient(#000 0 0), linear-gradient(#000 0 0), linear-gradient(#000 0 0);
|
|
58
62
|
mask-size:
|
|
59
63
|
calc(100% - var(--_et-scrollable-scrollbar-size, 0px)) 100%,
|
|
60
|
-
var(--_et-scrollable-scrollbar-size, 0px) 100
|
|
64
|
+
var(--_et-scrollable-scrollbar-size, 0px) 100%,
|
|
65
|
+
100% var(--et-scrollable-mask-inset-start, 0px),
|
|
66
|
+
100% var(--et-scrollable-mask-inset-end, 0px);
|
|
61
67
|
mask-position:
|
|
62
68
|
left top,
|
|
63
|
-
right top
|
|
69
|
+
right top,
|
|
70
|
+
left top,
|
|
71
|
+
left bottom;
|
|
64
72
|
|
|
65
73
|
&:dir(rtl) {
|
|
66
74
|
mask-position:
|
|
67
75
|
right top,
|
|
68
|
-
left top
|
|
76
|
+
left top,
|
|
77
|
+
right top,
|
|
78
|
+
right bottom;
|
|
69
79
|
}
|
|
70
80
|
}
|
|
71
81
|
|
|
@@ -32,12 +32,11 @@
|
|
|
32
32
|
content: '';
|
|
33
33
|
display: block;
|
|
34
34
|
position: absolute;
|
|
35
|
-
inset: 0;
|
|
35
|
+
inset: var(--et-pip-title-bar-h) 0 0;
|
|
36
36
|
background: var(--et-pip-bg, color-mix(in srgb, var(--et-surface-background-solid, rgb(0 0 0)) 60%, transparent));
|
|
37
37
|
backdrop-filter: blur(var(--et-pip-backdrop-blur));
|
|
38
38
|
z-index: -1;
|
|
39
|
-
|
|
40
|
-
transition: transform 0.2s ease;
|
|
39
|
+
transition: inset 0.2s ease;
|
|
41
40
|
pointer-events: none;
|
|
42
41
|
border-radius: var(--et-pip-border-radius);
|
|
43
42
|
}
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
}
|
|
86
85
|
|
|
87
86
|
&::after {
|
|
88
|
-
|
|
87
|
+
inset: 0;
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
display: inline-flex;
|
|
35
35
|
align-items: center;
|
|
36
36
|
justify-content: center;
|
|
37
|
-
color: var(--et-surface-interaction-solid, inherit);
|
|
37
|
+
color: var(--et-tab-inactive-color, var(--et-surface-interaction-solid, inherit));
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
position: relative;
|
|
40
40
|
white-space: nowrap;
|
|
@@ -67,11 +67,17 @@
|
|
|
67
67
|
gap: 4px;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
.et-tab-group__header-scrollable > .et-scrollable-wrapper,
|
|
71
|
+
.et-nav-tabs__scrollable > .et-scrollable-wrapper {
|
|
72
|
+
isolation: isolate;
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
.et-tab-group__header-scrollable > .et-scrollable-wrapper::after,
|
|
71
76
|
.et-nav-tabs__scrollable > .et-scrollable-wrapper::after {
|
|
72
77
|
content: '';
|
|
73
78
|
position: absolute;
|
|
74
|
-
|
|
79
|
+
z-index: -1;
|
|
80
|
+
background: var(--et-tab-baseline-color, var(--et-surface-border-solid, currentColor));
|
|
75
81
|
opacity: var(--et-tab-baseline-opacity);
|
|
76
82
|
pointer-events: none;
|
|
77
83
|
}
|
|
@@ -150,10 +156,34 @@
|
|
|
150
156
|
border-radius: 0 var(--et-tab-bar-underline-size) var(--et-tab-bar-underline-size) 0;
|
|
151
157
|
}
|
|
152
158
|
|
|
159
|
+
[data-active-underline='false'] .et-tab-bar-underline--active {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[data-underline-width='label'][data-orientation='horizontal'] .et-tab-group__trigger .et-tab-bar-underline {
|
|
164
|
+
left: var(--et-tab-group-trigger-padding-inline);
|
|
165
|
+
right: var(--et-tab-group-trigger-padding-inline);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-underline-width='label'][data-orientation='horizontal'] .et-nav-tab-link .et-tab-bar-underline {
|
|
169
|
+
left: var(--et-nav-tab-link-padding-inline);
|
|
170
|
+
right: var(--et-nav-tab-link-padding-inline);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
[data-underline-width='label'][data-orientation='vertical'] .et-tab-group__trigger .et-tab-bar-underline {
|
|
174
|
+
top: var(--et-tab-group-trigger-padding-block);
|
|
175
|
+
bottom: var(--et-tab-group-trigger-padding-block);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
[data-underline-width='label'][data-orientation='vertical'] .et-nav-tab-link .et-tab-bar-underline {
|
|
179
|
+
top: var(--et-nav-tab-link-padding-block);
|
|
180
|
+
bottom: var(--et-nav-tab-link-padding-block);
|
|
181
|
+
}
|
|
182
|
+
|
|
153
183
|
@media (hover: hover) {
|
|
154
184
|
.et-tab-group__trigger:not(.et-tab-group__trigger--active):not(:disabled):hover,
|
|
155
185
|
.et-nav-tab-link:not(.et-nav-tab-link--active):not(.et-nav-tab-link--disabled):hover {
|
|
156
|
-
color: var(--et-tab-hover-color, var(--et-surface-interaction-solid, inherit));
|
|
186
|
+
color: var(--et-tab-hover-color, var(--et-tab-inactive-color, var(--et-surface-interaction-solid, inherit)));
|
|
157
187
|
|
|
158
188
|
.et-tab-bar-underline {
|
|
159
189
|
opacity: var(--et-tab-hover-underline-opacity, 0);
|
|
@@ -178,7 +208,7 @@
|
|
|
178
208
|
|
|
179
209
|
.et-tab-group__trigger.et-tab-group__trigger--active,
|
|
180
210
|
.et-nav-tab-link.et-nav-tab-link--active {
|
|
181
|
-
color: var(--et-surface-color-solid, inherit);
|
|
211
|
+
color: var(--et-tab-active-color, var(--et-surface-color-solid, inherit));
|
|
182
212
|
}
|
|
183
213
|
|
|
184
214
|
.et-tab-group__trigger.et-tab-bar-trigger--no-initial-transition,
|