@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formatFiles, logger, workspaceRoot } from '@nx/devkit';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
|
-
import { dirname, join } from 'node:path';
|
|
3
|
+
import { dirname, join, relative } from 'node:path';
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region Constants
|
|
6
6
|
// Known SVG sources, tried in order during auto-detection. All use a `svgs/<variant>/<name>.svg` layout.
|
|
@@ -65,7 +65,7 @@ export default async function generate(tree, schema) {
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
// Step 4: Write the IconDefinition constants.
|
|
68
|
-
tree.write(outputPath, generateIconsFile(resolved, schema, source.package));
|
|
68
|
+
tree.write(outputPath, generateIconsFile(resolved, schema, source.package, typesImportSpecifier(outputPath, typesOutputPath)));
|
|
69
69
|
logger.log(`✅ Generated ${resolved.length} icon(s) at: ${outputPath}`);
|
|
70
70
|
// Step 5: Write the type augmentation so `etIcon`/`variant` are checked against these names.
|
|
71
71
|
tree.write(typesOutputPath, generateTypesFile(resolved, schema));
|
|
@@ -134,7 +134,13 @@ function regenerateCommand(schema) {
|
|
|
134
134
|
parts.push(`--source=${schema.source}`);
|
|
135
135
|
return parts.join(' ');
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function typesImportSpecifier(outputPath, typesOutputPath) {
|
|
138
|
+
const path = relative(dirname(outputPath), typesOutputPath)
|
|
139
|
+
.replace(/\\/g, '/')
|
|
140
|
+
.replace(/(\.d)?\.ts$/, '');
|
|
141
|
+
return path.startsWith('.') ? path : `./${path}`;
|
|
142
|
+
}
|
|
143
|
+
function generateIconsFile(icons, schema, source, typesSpecifier) {
|
|
138
144
|
const header = `/* eslint-disable */
|
|
139
145
|
/*
|
|
140
146
|
* Auto-generated by @ethlete/components:icons from "${source}"
|
|
@@ -144,6 +150,7 @@ function generateIconsFile(icons, schema, source) {
|
|
|
144
150
|
* ${regenerateCommand(schema)}
|
|
145
151
|
*/
|
|
146
152
|
import type { IconDefinition } from '@ethlete/components';
|
|
153
|
+
import type {} from '${typesSpecifier}';
|
|
147
154
|
`;
|
|
148
155
|
// Deliberately no aggregate "all icons" export: importing one would register every icon
|
|
149
156
|
// and defeat tree shaking. Icons are meant to be imported and provided individually.
|
package/package.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
|
+
@property --et-avatar-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 40px;
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
@property --et-avatar-font-size {
|
|
3
9
|
syntax: '<length>';
|
|
4
10
|
inherits: true;
|
|
@@ -18,15 +24,14 @@
|
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
.et-avatar {
|
|
21
|
-
--_et-avatar-size: 40px;
|
|
22
27
|
--_et-avatar-icon-size: 2rem;
|
|
23
28
|
--et-theme-color-primary-opacity: 1;
|
|
24
29
|
|
|
25
30
|
display: inline-flex;
|
|
26
31
|
align-items: center;
|
|
27
32
|
justify-content: center;
|
|
28
|
-
inline-size: var(--
|
|
29
|
-
block-size: var(--
|
|
33
|
+
inline-size: var(--et-avatar-size);
|
|
34
|
+
block-size: var(--et-avatar-size);
|
|
30
35
|
flex-shrink: 0;
|
|
31
36
|
box-sizing: border-box;
|
|
32
37
|
border-radius: var(--et-avatar-border-radius);
|
|
@@ -43,25 +48,25 @@
|
|
|
43
48
|
user-select: none;
|
|
44
49
|
|
|
45
50
|
&:where([data-size='xs']) {
|
|
46
|
-
--
|
|
51
|
+
--et-avatar-size: 24px;
|
|
47
52
|
--_et-avatar-icon-size: 1.4rem;
|
|
48
53
|
--et-avatar-font-size: 10px;
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
&:where([data-size='sm']) {
|
|
52
|
-
--
|
|
57
|
+
--et-avatar-size: 32px;
|
|
53
58
|
--_et-avatar-icon-size: 1.8rem;
|
|
54
59
|
--et-avatar-font-size: 12px;
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
&:where([data-size='lg']) {
|
|
58
|
-
--
|
|
63
|
+
--et-avatar-size: 48px;
|
|
59
64
|
--_et-avatar-icon-size: 2.4rem;
|
|
60
65
|
--et-avatar-font-size: 16px;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
&:where([data-size='xl']) {
|
|
64
|
-
--
|
|
69
|
+
--et-avatar-size: 64px;
|
|
65
70
|
--_et-avatar-icon-size: 2.8rem;
|
|
66
71
|
--et-avatar-font-size: 20px;
|
|
67
72
|
}
|
|
@@ -41,8 +41,6 @@
|
|
|
41
41
|
--_et-badge-border-color: transparent;
|
|
42
42
|
|
|
43
43
|
display: inline-flex;
|
|
44
|
-
align-self: start;
|
|
45
|
-
justify-self: start;
|
|
46
44
|
align-items: center;
|
|
47
45
|
justify-content: center;
|
|
48
46
|
gap: var(--et-badge-gap);
|
|
@@ -51,9 +49,10 @@
|
|
|
51
49
|
border-radius: var(--et-badge-border-radius);
|
|
52
50
|
font-size: var(--et-badge-font-size);
|
|
53
51
|
font-weight: var(--et-badge-font-weight);
|
|
52
|
+
letter-spacing: var(--et-badge-letter-spacing, inherit);
|
|
54
53
|
line-height: 1.4;
|
|
55
54
|
box-sizing: border-box;
|
|
56
|
-
max-inline-size: 100
|
|
55
|
+
max-inline-size: var(--et-badge-max-width, 100%);
|
|
57
56
|
background: var(--_et-badge-background);
|
|
58
57
|
color: var(--_et-badge-color);
|
|
59
58
|
border: 1px solid var(--_et-badge-border-color);
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
initial-value: 12px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
@property --et-banner-border-width {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 1px;
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
@property --et-banner-icon-size {
|
|
21
27
|
syntax: '<length>';
|
|
22
28
|
inherits: true;
|
|
@@ -50,7 +56,7 @@
|
|
|
50
56
|
/* The tint is whatever type/color resolved onto this host's color scope, so the banner reads as its
|
|
51
57
|
type without a hardcoded color - including a neutral `currentColor` tint for `info` with nothing forced. */
|
|
52
58
|
background: color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 8%, transparent);
|
|
53
|
-
border:
|
|
59
|
+
border: var(--et-banner-border-width) solid var(--et-theme-color-ink-solid);
|
|
54
60
|
|
|
55
61
|
> .et-icon {
|
|
56
62
|
flex-shrink: 0;
|
|
@@ -31,7 +31,10 @@
|
|
|
31
31
|
/* Room for the focus ring (the overflow trigger's 2px outline + 3px offset) inside the clip; the negative margin keeps the layout height. */
|
|
32
32
|
padding-block: 5px;
|
|
33
33
|
margin-block: -5px;
|
|
34
|
-
color: var(--et-surface-color-muted-solid, GrayText);
|
|
34
|
+
color: var(--et-breadcrumb-item-color, var(--et-surface-color-muted-solid, GrayText));
|
|
35
|
+
font-size: var(--et-breadcrumb-font-size);
|
|
36
|
+
line-height: var(--et-breadcrumb-line-height);
|
|
37
|
+
letter-spacing: var(--et-breadcrumb-letter-spacing);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.et-breadcrumb-list {
|
|
@@ -89,7 +92,7 @@
|
|
|
89
92
|
text-decoration-color 120ms ease;
|
|
90
93
|
|
|
91
94
|
&:where(a, button):hover {
|
|
92
|
-
color: var(--et-surface-color-solid, CanvasText);
|
|
95
|
+
color: var(--et-breadcrumb-item-hover-color, var(--et-surface-color-solid, CanvasText));
|
|
93
96
|
text-decoration-color: currentColor;
|
|
94
97
|
}
|
|
95
98
|
|
|
@@ -100,7 +103,7 @@
|
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
&:where([aria-current='page']) {
|
|
103
|
-
color: var(--et-surface-color-solid, CanvasText);
|
|
106
|
+
color: var(--et-breadcrumb-current-color, var(--et-surface-color-solid, CanvasText));
|
|
104
107
|
font-weight: 500;
|
|
105
108
|
}
|
|
106
109
|
}
|
|
@@ -109,7 +112,7 @@
|
|
|
109
112
|
display: inline-flex;
|
|
110
113
|
align-items: center;
|
|
111
114
|
flex: none;
|
|
112
|
-
color: var(--et-surface-color-subtle-solid, GrayText);
|
|
115
|
+
color: var(--et-breadcrumb-separator-color, var(--et-surface-color-subtle-solid, GrayText));
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
.et-breadcrumb-chevron {
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
position: relative;
|
|
13
|
-
align-items:
|
|
13
|
+
align-items: baseline;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
gap: var(--et-button-gap);
|
|
16
|
+
--_et-button-cap-middle: 0.5cap;
|
|
16
17
|
background: var(--_et-button-background);
|
|
17
18
|
color: var(--_et-button-color);
|
|
18
19
|
border-radius: var(--_et-button-border-radius);
|
|
@@ -190,6 +191,10 @@
|
|
|
190
191
|
flex-shrink: 0;
|
|
191
192
|
font-size: var(--et-button-icon-size, 1em);
|
|
192
193
|
transition: opacity 120ms ease;
|
|
194
|
+
/* baseline alignment puts the icon's bottom edge on the label baseline; this moves its centre to the
|
|
195
|
+
label's cap-height middle, so it does not depend on the font's ascent and descent */
|
|
196
|
+
translate: 0 calc(0.5em - var(--_et-button-cap-middle));
|
|
197
|
+
margin-block-start: calc(var(--_et-button-cap-middle) - 0.5em);
|
|
193
198
|
|
|
194
199
|
&:empty {
|
|
195
200
|
display: none;
|
|
@@ -201,6 +206,15 @@
|
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
208
|
|
|
209
|
+
&:has(> .et-button-contents:empty) {
|
|
210
|
+
align-items: center;
|
|
211
|
+
|
|
212
|
+
.et-button-icon {
|
|
213
|
+
translate: none;
|
|
214
|
+
margin-block-start: 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
204
218
|
.et-button-contents {
|
|
205
219
|
display: inline-flex;
|
|
206
220
|
align-items: center;
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
content: '';
|
|
52
52
|
position: absolute;
|
|
53
53
|
inset: 0;
|
|
54
|
-
background:
|
|
54
|
+
background: var(
|
|
55
|
+
--et-carousel-dot-active-color,
|
|
56
|
+
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
57
|
+
);
|
|
55
58
|
rotate: -180deg;
|
|
56
59
|
/* At -180deg the flat edge lies on this half's clip edge, and at a fractional device pixel ratio the
|
|
57
60
|
anti-aliasing of the two leaks a one-pixel line. The sweep keyframes show it again. */
|
|
@@ -98,7 +101,10 @@
|
|
|
98
101
|
inline-size: var(--et-carousel-dot-ring-size);
|
|
99
102
|
block-size: var(--et-carousel-dot-ring-size);
|
|
100
103
|
border: var(--et-carousel-dot-ring-width) solid
|
|
101
|
-
|
|
104
|
+
var(
|
|
105
|
+
--et-carousel-dot-ring-track-color,
|
|
106
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 30%, transparent)
|
|
107
|
+
);
|
|
102
108
|
border-radius: 50%;
|
|
103
109
|
opacity: 0;
|
|
104
110
|
scale: 0.55;
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
initial-value: 32px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
@property --et-carousel-controls-inset {
|
|
35
|
+
syntax: '<length>';
|
|
36
|
+
inherits: true;
|
|
37
|
+
initial-value: 12px;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
.et-carousel {
|
|
35
41
|
display: flex;
|
|
36
42
|
flex-direction: column;
|
|
@@ -91,6 +97,46 @@
|
|
|
91
97
|
align-items: center;
|
|
92
98
|
justify-content: center;
|
|
93
99
|
gap: 4px;
|
|
100
|
+
background: var(--et-carousel-controls-background, transparent);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.et-carousel:where([data-controls-position='overlay'], [data-pause-toggle-position^='top-']) {
|
|
104
|
+
position: relative;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.et-carousel:where([data-controls-position='overlay']) .et-carousel-controls,
|
|
108
|
+
.et-carousel-play-toggle-corner {
|
|
109
|
+
position: absolute;
|
|
110
|
+
border-radius: var(--et-carousel-controls-radius, 999px);
|
|
111
|
+
background: var(
|
|
112
|
+
--et-carousel-controls-background,
|
|
113
|
+
color-mix(in srgb, var(--et-surface-background-solid, white) 80%, transparent)
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.et-carousel:where([data-controls-position='overlay']) .et-carousel-controls {
|
|
118
|
+
inset-inline: var(--et-carousel-controls-inset);
|
|
119
|
+
inset-block-end: var(--et-carousel-controls-inset);
|
|
120
|
+
inline-size: fit-content;
|
|
121
|
+
margin-inline: auto;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.et-carousel-play-toggle-corner {
|
|
125
|
+
display: flex;
|
|
126
|
+
inset-block-start: var(--et-carousel-controls-inset);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.et-carousel:where([data-pause-toggle-position='top-start']) .et-carousel-play-toggle-corner {
|
|
130
|
+
inset-inline-start: var(--et-carousel-controls-inset);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.et-carousel:where([data-pause-toggle-position='top-end']) .et-carousel-play-toggle-corner {
|
|
134
|
+
inset-inline-end: var(--et-carousel-controls-inset);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Two classes deep: the icon button's own colour rule is one class deep and injected at runtime. */
|
|
138
|
+
.et-carousel .et-carousel-control {
|
|
139
|
+
color: var(--et-carousel-control-color, var(--et-theme-color-ink-solid));
|
|
94
140
|
}
|
|
95
141
|
|
|
96
142
|
.et-carousel-control {
|
|
@@ -136,21 +182,33 @@
|
|
|
136
182
|
inline-size: var(--et-carousel-dot-size);
|
|
137
183
|
block-size: var(--et-carousel-dot-size);
|
|
138
184
|
border-radius: 50%;
|
|
139
|
-
background:
|
|
185
|
+
background: var(
|
|
186
|
+
--et-carousel-dot-color,
|
|
187
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 35%, transparent)
|
|
188
|
+
);
|
|
140
189
|
}
|
|
141
190
|
|
|
142
191
|
&:hover::before {
|
|
143
|
-
background:
|
|
192
|
+
background: var(
|
|
193
|
+
--et-carousel-dot-hover-color,
|
|
194
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 55%, transparent)
|
|
195
|
+
);
|
|
144
196
|
}
|
|
145
197
|
|
|
146
198
|
&:where([data-active])::before {
|
|
147
|
-
background:
|
|
199
|
+
background: var(
|
|
200
|
+
--et-carousel-dot-active-color,
|
|
201
|
+
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
202
|
+
);
|
|
148
203
|
}
|
|
149
204
|
|
|
150
205
|
/* Spelled out because the plain `:hover` above outranks a `:where()`-flattened selector, so without this
|
|
151
206
|
the accent dot went grey under the pointer — the one dot that must never look unselected. */
|
|
152
207
|
&:where([data-active]):hover::before {
|
|
153
|
-
background:
|
|
208
|
+
background: var(
|
|
209
|
+
--et-carousel-dot-active-color,
|
|
210
|
+
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
211
|
+
);
|
|
154
212
|
}
|
|
155
213
|
}
|
|
156
214
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-collapse-duration {
|
|
3
|
+
syntax: '<time>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 240ms;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-collapse-easing {
|
|
9
|
+
syntax: '*';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: cubic-bezier(0.25, 0, 0.1, 1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-collapse {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-rows: 0fr;
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
|
|
19
|
+
&:where([data-open]) {
|
|
20
|
+
grid-template-rows: 1fr;
|
|
21
|
+
visibility: visible;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
26
|
+
.et-collapse:where([data-can-animate]) {
|
|
27
|
+
transition:
|
|
28
|
+
grid-template-rows var(--et-collapse-duration) var(--et-collapse-easing),
|
|
29
|
+
visibility 0s linear var(--et-collapse-duration);
|
|
30
|
+
|
|
31
|
+
&:where([data-open]) {
|
|
32
|
+
transition:
|
|
33
|
+
grid-template-rows var(--et-collapse-duration) var(--et-collapse-easing),
|
|
34
|
+
visibility 0s linear 0s;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.et-collapse-clip {
|
|
40
|
+
min-block-size: 0;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
@layer components.sdk {
|
|
2
2
|
@property --et-command-palette-max-height {
|
|
3
3
|
syntax: '<length-percentage>';
|
|
4
|
-
inherits:
|
|
4
|
+
inherits: true;
|
|
5
5
|
initial-value: 60vh;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@property --et-command-palette-padding {
|
|
9
9
|
syntax: '<length>';
|
|
10
|
-
inherits:
|
|
10
|
+
inherits: true;
|
|
11
11
|
initial-value: 8px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@property --et-command-palette-search-height {
|
|
15
15
|
syntax: '<length>';
|
|
16
|
-
inherits:
|
|
16
|
+
inherits: true;
|
|
17
17
|
initial-value: 48px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
@property --et-command-palette-search-font-size {
|
|
21
21
|
syntax: '<length>';
|
|
22
|
-
inherits:
|
|
22
|
+
inherits: true;
|
|
23
23
|
initial-value: 15px;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
width: var(--et-empty-state-icon-size);
|
|
53
53
|
height: var(--et-empty-state-icon-size);
|
|
54
|
-
|
|
54
|
+
/* `--et-empty-state-icon-color` must stay unregistered: an `@property` initial value cannot hold `var()`,
|
|
55
|
+
and a registered token always has a value, so this surface fallback would never apply. */
|
|
56
|
+
color: var(--et-empty-state-icon-color, var(--et-surface-color-muted-solid, currentColor));
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
> [etEmptyStateAction] {
|
|
@@ -174,6 +174,45 @@
|
|
|
174
174
|
padding-inline-start: calc(var(--et-choice-field-gap) + var(--et-checkbox-size, 20px));
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
&:where([data-label-position='start']) {
|
|
178
|
+
.et-choice-field-label-area {
|
|
179
|
+
order: -1;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.et-form-support-errors,
|
|
183
|
+
.et-form-support-warnings,
|
|
184
|
+
.et-form-support-hint {
|
|
185
|
+
padding-inline-start: 0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&:where([data-layout='subgrid']) {
|
|
190
|
+
display: grid;
|
|
191
|
+
grid-template-columns: subgrid;
|
|
192
|
+
grid-column: span 2;
|
|
193
|
+
align-items: center;
|
|
194
|
+
column-gap: normal;
|
|
195
|
+
width: auto;
|
|
196
|
+
|
|
197
|
+
.et-choice-field-control {
|
|
198
|
+
display: contents;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.et-form-support {
|
|
202
|
+
grid-column: 2 / -1;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&:where([data-label-position='start']) .et-form-support {
|
|
206
|
+
grid-column: 1 / -1;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.et-form-support-errors,
|
|
210
|
+
.et-form-support-warnings,
|
|
211
|
+
.et-form-support-hint {
|
|
212
|
+
padding-inline-start: 0;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
177
216
|
/* Must stay after the rule above: same specificity, so source order is what makes it win. */
|
|
178
217
|
&:where([data-variant='card']) {
|
|
179
218
|
.et-form-support-errors,
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-dropzone-crop-max-height {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 320px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-dropzone-crop-handle-size {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 14px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-dropzone-crop {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: var(--et-dropzone-gap, 10px);
|
|
18
|
+
padding: var(--et-dropzone-gap, 10px);
|
|
19
|
+
border: var(--et-dropzone-border-width, 2px) solid var(--et-surface-border-solid, currentColor);
|
|
20
|
+
border-radius: var(--et-dropzone-border-radius, 12px);
|
|
21
|
+
background-color: var(--et-surface-background-solid, transparent);
|
|
22
|
+
color: var(--et-surface-color-solid, inherit);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.et-dropzone-crop-viewport {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.et-dropzone-crop-stage {
|
|
31
|
+
position: relative;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
touch-action: none;
|
|
34
|
+
-webkit-user-select: none;
|
|
35
|
+
user-select: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-dropzone-crop-image {
|
|
39
|
+
display: block;
|
|
40
|
+
max-inline-size: 100%;
|
|
41
|
+
max-block-size: var(--et-dropzone-crop-max-height);
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.et-dropzone-crop-shade {
|
|
46
|
+
position: absolute;
|
|
47
|
+
inset: 0;
|
|
48
|
+
background-color: color-mix(in srgb, var(--et-surface-background-solid, transparent) 65%, transparent);
|
|
49
|
+
clip-path: polygon(
|
|
50
|
+
evenodd,
|
|
51
|
+
0 0,
|
|
52
|
+
100% 0,
|
|
53
|
+
100% 100%,
|
|
54
|
+
0 100%,
|
|
55
|
+
0 0,
|
|
56
|
+
var(--_et-dropzone-crop-left) var(--_et-dropzone-crop-top),
|
|
57
|
+
var(--_et-dropzone-crop-right) var(--_et-dropzone-crop-top),
|
|
58
|
+
var(--_et-dropzone-crop-right) var(--_et-dropzone-crop-bottom),
|
|
59
|
+
var(--_et-dropzone-crop-left) var(--_et-dropzone-crop-bottom),
|
|
60
|
+
var(--_et-dropzone-crop-left) var(--_et-dropzone-crop-top)
|
|
61
|
+
);
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.et-dropzone-crop-rect {
|
|
66
|
+
position: absolute;
|
|
67
|
+
inset: var(--_et-dropzone-crop-top) calc(100% - var(--_et-dropzone-crop-right))
|
|
68
|
+
calc(100% - var(--_et-dropzone-crop-bottom)) var(--_et-dropzone-crop-left);
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
border: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
71
|
+
cursor: move;
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.et-dropzone-crop-handle {
|
|
76
|
+
position: absolute;
|
|
77
|
+
inline-size: var(--et-dropzone-crop-handle-size);
|
|
78
|
+
block-size: var(--et-dropzone-crop-handle-size);
|
|
79
|
+
border: 2px solid var(--et-surface-background-solid, transparent);
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
background-color: var(--et-theme-color-primary-solid, currentColor);
|
|
82
|
+
translate: -50% -50%;
|
|
83
|
+
|
|
84
|
+
&[data-corner='nw'] {
|
|
85
|
+
top: 0;
|
|
86
|
+
left: 0;
|
|
87
|
+
cursor: nwse-resize;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-corner='ne'] {
|
|
91
|
+
top: 0;
|
|
92
|
+
left: 100%;
|
|
93
|
+
cursor: nesw-resize;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&[data-corner='sw'] {
|
|
97
|
+
top: 100%;
|
|
98
|
+
left: 0;
|
|
99
|
+
cursor: nesw-resize;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[data-corner='se'] {
|
|
103
|
+
top: 100%;
|
|
104
|
+
left: 100%;
|
|
105
|
+
cursor: nwse-resize;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.et-dropzone-crop-actions {
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: flex-end;
|
|
112
|
+
gap: var(--et-dropzone-gap, 10px);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -47,5 +47,21 @@
|
|
|
47
47
|
min-inline-size: 0;
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
.et-dropzone-entry-meta {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: 0 8px;
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.et-dropzone-entry-error {
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
65
|
+
}
|
|
50
66
|
}
|
|
51
67
|
}
|
|
@@ -35,9 +35,25 @@
|
|
|
35
35
|
color: rgb(var(--et-on-scrim-color-rgb, 255 255 255));
|
|
36
36
|
transition: translate var(--et-dropzone-transition-duration) ease;
|
|
37
37
|
|
|
38
|
-
.et-dropzone-entry-
|
|
38
|
+
.et-dropzone-entry-meta {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
gap: 0 8px;
|
|
42
|
+
font-size: 12px;
|
|
39
43
|
color: rgb(var(--et-on-scrim-color-rgb, 255 255 255) / 0.7);
|
|
40
44
|
}
|
|
45
|
+
|
|
46
|
+
.et-dropzone-entry-size {
|
|
47
|
+
color: inherit;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.et-dropzone-entry-error {
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
41
57
|
}
|
|
42
58
|
|
|
43
59
|
@media (hover: hover) {
|