@ethlete/components 1.0.0-next.84 → 1.0.0-next.86

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/components",
3
- "version": "1.0.0-next.84",
3
+ "version": "1.0.0-next.86",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -111,4 +111,8 @@
111
111
  justify-content: flex-end;
112
112
  gap: var(--et-dropzone-gap, 10px);
113
113
  }
114
+
115
+ .et-dropzone-crop-step {
116
+ display: contents;
117
+ }
114
118
  }
@@ -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):not([data-readonly])) .et-form-field-control-frame,
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]:not([data-readonly])) .et-form-field-control-frame {
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
- &:is([data-focused], :has(:focus-visible)) .et-form-field-control-frame {
318
- border-color: var(--_et-form-field-frame-focus);
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']):is([data-focused], :has(:focus-visible)) .et-form-field-control-frame {
322
- border-color: transparent;
323
- outline: calc(2 * var(--et-form-field-control-border-width)) dashed var(--_et-form-field-frame-focus);
324
- outline-offset: calc(-2 * var(--et-form-field-control-border-width));
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 {
@@ -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
- flex-grow: 1;
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