@ethlete/components 1.0.0-next.85 → 1.0.0-next.87
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 +35 -0
- package/design/anchored-dialog.ts +1 -0
- package/design/sdk/components/action-sheet/action-sheet.css +124 -0
- package/design/sdk/components/action-sheet/action-sheet.ts +93 -0
- package/design/sdk/components/empty-state/empty-state.css +24 -0
- package/design/sdk/components/empty-state/empty-state.ts +1 -1
- package/design/sdk/components/input/input.css +0 -18
- package/design/sdk/components/textarea/textarea.css +0 -17
- package/design/sdk/components/textarea/textarea.ts +1 -1
- package/design/sdk/ready.json +154 -44
- package/design/tooltip.ts +5 -3
- package/fesm2022/ethlete-components-testing.mjs +1 -0
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +379 -81
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +23 -10
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +16 -0
- package/src/lib/menu/menu-item-shortcut.component.css +16 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +10 -0
- package/src/lib/pagination/pagination.component.css +3 -2
- package/src/lib/skeleton/skeleton.component.css +2 -1
- package/src/lib/table/table.component.css +16 -0
- package/types/ethlete-components.d.ts +205 -106
package/package.json
CHANGED
|
@@ -60,6 +60,10 @@
|
|
|
60
60
|
)
|
|
61
61
|
);
|
|
62
62
|
--_et-form-field-frame-focus: var(
|
|
63
|
+
--et-form-field-control-border-color-focus,
|
|
64
|
+
var(--et-theme-color-primary-solid, currentColor)
|
|
65
|
+
);
|
|
66
|
+
--_et-form-field-frame-focus-readonly: var(
|
|
63
67
|
--et-form-field-control-border-color-focus,
|
|
64
68
|
var(--et-surface-color-solid, currentColor)
|
|
65
69
|
);
|
|
@@ -90,6 +94,7 @@
|
|
|
90
94
|
)
|
|
91
95
|
);
|
|
92
96
|
--_et-form-field-frame-focus: var(--et-theme-color-ink-solid);
|
|
97
|
+
--_et-form-field-frame-focus-readonly: var(--et-theme-color-ink-solid);
|
|
93
98
|
--_et-form-field-label-color: var(--et-theme-color-ink-solid);
|
|
94
99
|
--_et-form-field-label-color-active: var(--et-theme-color-ink-solid);
|
|
95
100
|
}
|
|
@@ -280,12 +285,16 @@
|
|
|
280
285
|
}
|
|
281
286
|
}
|
|
282
287
|
|
|
283
|
-
&:where(:has(:focus-visible)
|
|
288
|
+
&:where(:has(:focus-visible)) .et-form-field-control-frame,
|
|
284
289
|
&:where([data-expanded]:not([data-readonly])) .et-form-field-control-frame,
|
|
285
|
-
&:where([data-focused]
|
|
290
|
+
&:where([data-focused]) .et-form-field-control-frame {
|
|
286
291
|
border-color: var(--_et-form-field-frame-focus);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&[data-readonly]:where([data-focused], :has(:focus-visible)) .et-form-field-control-frame {
|
|
295
|
+
border-color: var(--_et-form-field-frame-focus-readonly);
|
|
287
296
|
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);
|
|
297
|
+
var(--_et-form-field-frame-focus-readonly);
|
|
289
298
|
}
|
|
290
299
|
|
|
291
300
|
&:where(:has(:focus-visible):not([data-readonly])) .et-form-field-control-slot,
|
|
@@ -310,18 +319,22 @@
|
|
|
310
319
|
}
|
|
311
320
|
|
|
312
321
|
.et-form-field-control-frame {
|
|
313
|
-
border-style: dashed;
|
|
314
322
|
cursor: default;
|
|
315
323
|
}
|
|
316
324
|
|
|
317
|
-
&:
|
|
318
|
-
border-color: var(
|
|
325
|
+
&:where(:not([data-error]):not([data-focused]):not(:has(:focus-visible))) .et-form-field-control-frame {
|
|
326
|
+
border-color: var(
|
|
327
|
+
--et-form-field-control-border-color-readonly,
|
|
328
|
+
var(--et-surface-border-solid, color-mix(in srgb, var(--_et-form-field-frame-border) 50%, transparent))
|
|
329
|
+
);
|
|
319
330
|
}
|
|
320
331
|
|
|
321
|
-
&:not([data-appearance='underline'])
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
332
|
+
&:where(:not([data-appearance='underline'])) .et-form-field-control-frame {
|
|
333
|
+
background: color-mix(
|
|
334
|
+
in srgb,
|
|
335
|
+
var(--et-surface-interaction-solid, currentColor) 6%,
|
|
336
|
+
var(--_et-form-field-control-background)
|
|
337
|
+
);
|
|
325
338
|
}
|
|
326
339
|
|
|
327
340
|
.et-form-field-label-area {
|
package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css
CHANGED
|
@@ -47,6 +47,12 @@
|
|
|
47
47
|
initial-value: 10px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
@property --et-segmented-button-group-segment-min-width {
|
|
51
|
+
syntax: '<length>';
|
|
52
|
+
inherits: true;
|
|
53
|
+
initial-value: 0px;
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
et-segmented-button-group {
|
|
51
57
|
display: flex;
|
|
52
58
|
flex-direction: column;
|
|
@@ -116,6 +122,16 @@
|
|
|
116
122
|
background-color: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 8%, transparent);
|
|
117
123
|
}
|
|
118
124
|
|
|
125
|
+
&:where([data-stretch]) .et-segmented-button-group-buttons {
|
|
126
|
+
display: grid;
|
|
127
|
+
grid-auto-columns: minmax(var(--et-segmented-button-group-segment-min-width), 1fr);
|
|
128
|
+
align-self: stretch;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:where([data-stretch]) et-segmented-button {
|
|
132
|
+
min-width: var(--et-segmented-button-group-segment-min-width);
|
|
133
|
+
}
|
|
134
|
+
|
|
119
135
|
&[data-error] .et-segmented-button-group-buttons {
|
|
120
136
|
box-shadow: inset 0 0 0 1px var(--et-theme-color-primary-solid);
|
|
121
137
|
}
|
|
@@ -7,4 +7,20 @@
|
|
|
7
7
|
font-variant-numeric: tabular-nums;
|
|
8
8
|
letter-spacing: 0.04em;
|
|
9
9
|
}
|
|
10
|
+
|
|
11
|
+
.et-menu-item {
|
|
12
|
+
&[data-active]:where([data-active-source='keyboard']:focus-visible),
|
|
13
|
+
&[data-highlight-held],
|
|
14
|
+
&[data-menu-open] {
|
|
15
|
+
.et-menu-item-shortcut {
|
|
16
|
+
color: var(--_et-menu-color);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (hover: hover) {
|
|
21
|
+
&[data-active]:where(:hover) .et-menu-item-shortcut {
|
|
22
|
+
color: var(--_et-menu-color);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
10
26
|
}
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
initial-value: 14px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
@property --et-alert-dialog-slot-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
@property --et-alert-dialog-actions-gap {
|
|
15
21
|
syntax: '<length>';
|
|
16
22
|
inherits: true;
|
|
@@ -35,6 +41,10 @@
|
|
|
35
41
|
white-space: pre-line;
|
|
36
42
|
}
|
|
37
43
|
|
|
44
|
+
.et-alert-dialog-message + .et-alert-dialog-slot {
|
|
45
|
+
margin-block-start: var(--et-alert-dialog-slot-gap);
|
|
46
|
+
}
|
|
47
|
+
|
|
38
48
|
.et-alert-dialog-actions {
|
|
39
49
|
display: flex;
|
|
40
50
|
flex-wrap: wrap;
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
gap: var(--et-pagination-gap);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/* The fit measures the host. Sized to its trimmed content, a flex item would never see room return.
|
|
27
|
+
/* The fit measures the host. Sized to its trimmed content, a flex item would never see room return. A full inline
|
|
28
|
+
size instead of flex-grow, so a column flex parent does not stretch the height. */
|
|
28
29
|
:where(.et-pagination-host[data-fit-width]) {
|
|
29
|
-
|
|
30
|
+
inline-size: 100%;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
/* Touch gets the comfortable 44px target. `:where()` holds this at zero specificity so the `sm` and
|
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
position: relative;
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
inline-size: 100%;
|
|
57
|
+
inline-size: -webkit-fill-available;
|
|
58
|
+
inline-size: stretch;
|
|
57
59
|
block-size: var(--et-skeleton-size, 1em);
|
|
58
60
|
border-radius: var(--et-skeleton-radius);
|
|
59
61
|
background: var(
|
|
@@ -85,7 +87,6 @@
|
|
|
85
87
|
/* The 1em default is content height, not block-size, so a consumer aspect-ratio (or block-size) wins.
|
|
86
88
|
overflow: hidden on the item drops the content-based minimum an aspect-ratio would otherwise keep. */
|
|
87
89
|
.et-skeleton-item:where([data-shape='rect']) {
|
|
88
|
-
align-self: start;
|
|
89
90
|
block-size: auto;
|
|
90
91
|
border-radius: var(--et-skeleton-radius);
|
|
91
92
|
|
|
@@ -353,6 +353,22 @@
|
|
|
353
353
|
);
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
/* The element selector outweighs the sticky-column and page-sticky-header rules, which set
|
|
357
|
+
`position` on these cells from sheets with no fixed order against this one. */
|
|
358
|
+
et-table.et-table-host--header-hidden :is(.et-table-header-strip, .et-table-header-cell, .et-table-group-cell) {
|
|
359
|
+
position: absolute;
|
|
360
|
+
inline-size: 1px;
|
|
361
|
+
min-inline-size: 0;
|
|
362
|
+
block-size: 1px;
|
|
363
|
+
min-block-size: 0;
|
|
364
|
+
margin: -1px;
|
|
365
|
+
padding: 0;
|
|
366
|
+
overflow: hidden;
|
|
367
|
+
clip-path: inset(50%);
|
|
368
|
+
white-space: nowrap;
|
|
369
|
+
border: 0;
|
|
370
|
+
}
|
|
371
|
+
|
|
356
372
|
.et-table-cell {
|
|
357
373
|
min-block-size: var(--et-table-row-min-block-size, auto);
|
|
358
374
|
border-block-end: 1px solid var(--_et-table-row-divider);
|