@ethlete/components 1.0.0-next.91 → 1.0.0-next.92

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0-next.92
4
+
5
+ ### Minor Changes
6
+
7
+ - Add `CarouselDirective.hasMultipleSlides()` and a `data-single-slide` host attribute so a carousel with one slide can hide its controls. Autoplay does not run with one slide.
8
+ - Add `scrollToTopOnlyUp` to `FloatingActionDirective` (input and `provideFloatingActionConfig`): `scrollToTop()` then scrolls only when the target lies above the top edge, stopping at its `scroll-margin-top`. The default is unchanged.
9
+ - Add `provideScrollableConfig` to enable the scrollable's prev/next buttons app-wide, with `enabled` and `position` per breakpoint, and a new `'inline'` button position beside the track. `etScrollableButtons` on an instance overrides the config.
10
+ - Add `--et-scrollable-mask-inset-start` and `--et-scrollable-mask-inset-end` so a sticky child of `et-scrollable` stays fully opaque over the edge fade. Both default to `0px`, which leaves the fade unchanged.
11
+ - `et-segmented-button` registers itself as the active child of a surrounding `et-scrollable`: the checked segment is scrolled into view initially and whenever the selection changes, with no extra attribute.
12
+ - Add `provideTabsConfig` and `activeUnderline` / `underlineWidth` inputs to tab bars, plus the `--et-tab-baseline-color`, `--et-tab-active-color` and `--et-tab-inactive-color` tokens.
13
+
14
+ ### Patch Changes
15
+
16
+ - Fix the picture-in-picture window background extending below the window while the title bar is hidden.
17
+ - Fix the tab bar baseline painting over the bottom row of the active underline when a tab forms its own stacking context, so a thicker underline next to a thinner baseline shows at full size.
18
+
3
19
  ## 1.0.0-next.91
4
20
 
5
21
  ### Minor Changes
@@ -87,14 +87,7 @@ const marked = (markup: string) =>
87
87
  );
88
88
 
89
89
  const render = (props: Props) =>
90
- 'group' in props
91
- ? marked(checkboxGroup(props.group))
92
- : marked(
93
- checkbox(props.checkbox).replace(
94
- 'class="et-choice-field-label-area',
95
- 'data-et-skip="CLIPPED" class="et-choice-field-label-area',
96
- ),
97
- );
90
+ 'group' in props ? marked(checkboxGroup(props.group)) : marked(checkbox(props.checkbox));
98
91
 
99
92
  export default definePart({
100
93
  note: "The SDK checkbox (et-checkbox) in flow, first drawing, drawn by the mock from @ethlete/components/design/checkbox with the real markup and CSS: et-checkbox alone and inside et-choice-field (label, et-description, hint, error, required marker), the card variant (et-selection-card), and et-checkbox-group with et-checkbox-group-select-all and et-checkbox-option, plus the color-interactive and focus-ring sheets; the brand theme, danger as the error theme. Fixtures are fictional: a match-report preferences form (Send me the match report, One email per match, no ads., hint We send it after the final whistle.; I accept the terms of use, required, error Accept the terms to continue.; card Weekly digest, A summary of every match day, each Monday.; group Notify me about with All events over Kick-off, Goals, Half-time, Full-time; horizontal group Show matches: Home, Away, Neutral ground). Framed as a page with 16px padding at 360 and 640. States: a grid of unchecked, checked and indeterminate by rest, hover, focus-visible, active, disabled and readonly (all labelled); box-only (checked, no label); support (description and hint); invalid and invalid-focus-visible; card-rest, card-checked, card-hover, card-focus-visible, card-checked-focus-visible; group-unchecked, group-partial (2 of 4, select-all mixed), group-checked, group-option-hover, group-option-pressed (force hover and active), group-option-focus-visible, group-select-all-focus-visible and group-horizontal. Numbers (light / dark), from shot pixels at scale 2 at 360, brand mint, a: unchecked box border (surface border) vs page 1.26 / 1.73, the same for the option and select-all boxes and the card edge; hover border 10.37 / 13.07; checked and indeterminate fill (primary) vs page 1.33 / 13.50, check and dash on it 15.82; checked hover fill (-hover) 1.37 / 13.06, 1.03 from rest; active fill 2.24 / 8.01; focus-visible fill (-focus) 1.37 / 13.06; focus ring on a checked or indeterminate box (primary -focus) 1.37 / 13.06, on an unchecked box (surface text colour) 17.93 / 17.18; card checked edge and card ring (primary) 1.33 / 13.50; option and select-all ring 1.37 / 13.06; invalid box border (danger) 4.83 / 3.71, its focus ring (danger -focus) 6.47 / 2.77; disabled checked fill 2.20 / 1.70, disabled unchecked border 1.12 / 1.27 (exempt under 1.4.11). Decided rules that arise: Q88 (the checked and indeterminate ring, the invalid ring, the card ring, the option and select-all rings in ink; the unchecked ring is the surface text colour, not a primary ring, so it stays), Q99a (the card checked and focus edge and the focused option, select-all and card box borders take light-dark(ink, primary); the checked and indeterminate box, the checked option box and the checked or mixed select-all box are mint fills, so they take a 1px inset ink edge, an outline at -1px as in the table round; on the option and select-all the focus ring owns the outline, so the edge leaves while it shows) and Q101 (a filled checked or indeterminate box hovers to -active). The ink edge on a mint fill arises, so Q102 arises: b draws the edges in both schemes, c keeps dark as today (light-dark(ink, transparent)). The error border is the danger theme, not mint, and passes 3:1, so it is kept. Findings for later: (1) lib bug: .et-checkbox-box, .et-checkbox-option-box and .et-checkbox-group-select-all-box were content-box, so --et-checkbox-size 20px drew a 24px box (48 sheet px at scale 2) in an app without a global border-box reset, and the hint and error started 4px left of the label column. Fixed in the lib (box-sizing: border-box on the three boxes): every box draws 20px (40 sheet px), and the label, description and hint share one column (44 CSS px from the frame edge). (2) WCAG 1.4.11: the unchecked box border is 1.26 / 1.73 vs page, under 3:1; it is the only edge of an unchecked box (the same question as the switch off track, switch r1, open). Not drawn. (3) The required marker takes the error theme primary: 3.71:1 in dark, under 4.5:1; exempted here. (4) Focus-visible lightens the checked fill to -focus (1.37 vs page, light), so a focused checked box reads paler than at rest; the ink ring carries the state in b and c. (5) Readonly draws exactly like rest (no affordance by design); a checked readonly box cannot be told from an editable one. (6) Mock: et-description now has its own stylesheet (description.component.css, f5722a1f5), so the mock's inline copy can import it instead. Later rounds, left out here: the sizes sm and lg, the card with the control at start, a coloured (non-brand) checkbox, the group's bulk-edit mixed state (dashed option boxes, a primary mark that Q99a would reach), a disabled or readonly group, a group with error and the group card variant, long labels that wrap, RTL and the check and uncheck animation.",
@@ -195,33 +195,33 @@
195
195
  "pid": 1954846
196
196
  },
197
197
  "components/checkbox": {
198
- "hash": "9742cba358b835be",
198
+ "hash": "96646dc8c2c3db73",
199
199
  "files": {
200
200
  ".ethlete/design/sdk/components/checkbox/checkbox.css": "253ffe23f4cbbde8",
201
- ".ethlete/design/sdk/components/checkbox/checkbox.ts": "9e51c30d3b087477",
201
+ ".ethlete/design/sdk/components/checkbox/checkbox.ts": "e72b6978bda370b1",
202
202
  "libs/components/design/checkbox.ts": "e3471aa943b7b829",
203
203
  "libs/components/design/control.ts": "b0244bc4c0f922a6",
204
204
  "libs/components/src/lib/focus-ring/focus-ring-styles.component.css": "df6f86f168edd72e",
205
- "libs/components/src/lib/forms/checkbox/checkbox.component.css": "1a70555c97fc391f",
206
- "libs/components/src/lib/forms/choice-field/choice-field-card-styles.component.css": "4c3b18fe180cb96b",
205
+ "libs/components/src/lib/forms/checkbox/checkbox.component.css": "a6cf189cc5637379",
206
+ "libs/components/src/lib/forms/choice-field/choice-field-card-styles.component.css": "0b2e289e74176c77",
207
207
  "libs/components/src/lib/forms/choice-field/choice-field.component.css": "7c64ce9249466135",
208
208
  "libs/components/src/lib/forms/description/description.component.css": "3d19c0933b5da17b",
209
209
  "libs/components/src/lib/forms/form-field/form-support-styles.component.css": "0f81cadca44d8370",
210
210
  "libs/components/src/lib/forms/form-field/headless/label.directive.css": "9aceda0d26b46524",
211
- "libs/components/src/lib/forms/selection-card-styles.component.css": "190d2cb203d8058f",
212
- "libs/components/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css": "4f4f5c7a5bdeea91",
211
+ "libs/components/src/lib/forms/selection-card-styles.component.css": "fe93518f845ebdb5",
212
+ "libs/components/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css": "bfdfa636cf5eae85",
213
213
  "libs/components/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css": "598181b0bea3821a",
214
- "libs/components/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css": "65cb9b4f17584782",
214
+ "libs/components/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css": "8c612644d38bfa45",
215
215
  "libs/core/design/interactive-styles.ts": "781528322bd34499",
216
216
  "libs/core/src/lib/theming/color-interactive-styles.component.css": "86c7eef5dbeddc7f",
217
217
  "libs/core/src/lib/theming/surface-interactive-styles.component.css": "e52765c5a323da05"
218
218
  },
219
219
  "actions": [],
220
220
  "builder": "designer",
221
- "at": "2026-11-18T14:09:13.893Z",
222
- "by": "claude-opus-5-5",
221
+ "at": "2026-11-20T10:53:32.771Z",
222
+ "by": "claude-sonnet-5-5",
223
223
  "cmd": "ready",
224
- "pid": 1956826
224
+ "pid": 2836014
225
225
  },
226
226
  "components/chip": {
227
227
  "hash": "1a4d90e7c910658f",