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

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/design/notification.ts +1 -1
  3. package/design/sdk/components/accent-on-light/accent-on-light.ts +1 -0
  4. package/design/sdk/components/action-sheet/action-sheet.ts +25 -1
  5. package/design/sdk/components/anchored-dialog/anchored-dialog.css +2 -5
  6. package/design/sdk/components/anchored-dialog/anchored-dialog.ts +13 -8
  7. package/design/sdk/components/badge/badge.css +18 -0
  8. package/design/sdk/components/badge/badge.ts +27 -3
  9. package/design/sdk/components/banner/banner.ts +32 -1
  10. package/design/sdk/components/bracket/bracket.ts +1 -0
  11. package/design/sdk/components/breadcrumb/breadcrumb.ts +1 -1
  12. package/design/sdk/components/button/button.ts +1 -0
  13. package/design/sdk/components/calendar/calendar.ts +31 -4
  14. package/design/sdk/components/card/card.ts +41 -1
  15. package/design/sdk/components/carousel/carousel.ts +35 -6
  16. package/design/sdk/components/chart/chart.ts +8 -2
  17. package/design/sdk/components/checkbox/checkbox.ts +11 -2
  18. package/design/sdk/components/chip/chip.ts +2 -9
  19. package/design/sdk/components/copy-button/copy-button.ts +4 -1
  20. package/design/sdk/components/dialog/dialog.ts +58 -1
  21. package/design/sdk/components/empty-state/empty-state.ts +1 -0
  22. package/design/sdk/components/floating-action/floating-action.ts +1 -0
  23. package/design/sdk/components/form-field/form-field.ts +9 -16
  24. package/design/sdk/components/grid/grid.ts +4 -1
  25. package/design/sdk/components/input/input.css +5 -5
  26. package/design/sdk/components/input/input.ts +1 -1
  27. package/design/sdk/components/loader/loader.ts +0 -1
  28. package/design/sdk/components/match/match.ts +1 -0
  29. package/design/sdk/components/menu/menu.ts +1 -0
  30. package/design/sdk/components/notification/notification.ts +1 -0
  31. package/design/sdk/components/otp-input/otp-input.css +1 -1
  32. package/design/sdk/components/otp-input/otp-input.ts +1 -1
  33. package/design/sdk/components/pagination/pagination.ts +1 -1
  34. package/design/sdk/components/progress-steps/progress-steps.ts +1 -0
  35. package/design/sdk/components/query-error/query-error.ts +4 -1
  36. package/design/sdk/components/radio-group/radio-group.ts +1 -0
  37. package/design/sdk/components/scheduler/scheduler.ts +22 -7
  38. package/design/sdk/components/scrollable/scrollable.ts +30 -9
  39. package/design/sdk/components/scrollbar/scrollbar.css +1 -1
  40. package/design/sdk/components/scrollbar/scrollbar.ts +16 -3
  41. package/design/sdk/components/select/select.ts +9 -0
  42. package/design/sdk/components/select/shared/select-part.ts +4 -12
  43. package/design/sdk/components/select-panel/select-panel.ts +1 -0
  44. package/design/sdk/components/standings/standings.ts +4 -1
  45. package/design/sdk/components/stream/stream.ts +13 -4
  46. package/design/sdk/components/switch/switch.ts +13 -4
  47. package/design/sdk/components/table/table.ts +94 -12
  48. package/design/sdk/components/tabs/tabs.ts +1 -1
  49. package/design/sdk/components/textarea/textarea.css +5 -5
  50. package/design/sdk/components/textarea/textarea.ts +27 -3
  51. package/design/sdk/components/toolbar/toolbar.ts +1 -0
  52. package/design/sdk/components/tree/tree.ts +8 -1
  53. package/design/sdk/foundations/colors/colors.css +2 -2
  54. package/design/sdk/foundations/elevation/elevation.ts +1 -0
  55. package/design/sdk/ready.json +309 -87
  56. package/design/sdk/rule-baseline.json +48 -0
  57. package/design/table.ts +11 -4
  58. package/design/tooltip.ts +7 -1
  59. package/fesm2022/ethlete-components.mjs +843 -177
  60. package/fesm2022/ethlete-components.mjs.map +1 -1
  61. package/generators/icons/generator.js +35 -1
  62. package/package.json +1 -1
  63. package/src/lib/accordion/accordion.component.css +26 -5
  64. package/src/lib/bracket/bracket.component.css +4 -1
  65. package/src/lib/forms/checkbox/checkbox.component.css +8 -3
  66. package/src/lib/forms/choice-field/choice-field-card-styles.component.css +7 -0
  67. package/src/lib/forms/choice-field/choice-field.component.css +4 -2
  68. package/src/lib/forms/dropzone/dropzone-crop.component.css +21 -0
  69. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +11 -8
  70. package/src/lib/forms/otp-input/otp-input.component.css +11 -2
  71. package/src/lib/forms/select/select-option-styles.component.css +1 -0
  72. package/src/lib/forms/selection-card-styles.component.css +15 -3
  73. package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +7 -2
  74. package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +9 -2
  75. package/src/lib/forms/selection-list/radio-group/radio.component.css +9 -2
  76. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +47 -3
  77. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +8 -2
  78. package/src/lib/match/match-card.component.css +8 -2
  79. package/src/lib/match/match-participant.component.css +21 -1
  80. package/src/lib/progress-steps/progress-step.component.css +51 -7
  81. package/src/lib/standings/standings.component.css +40 -7
  82. package/src/lib/stream/consent/stream-consent.component.css +1 -0
  83. package/src/lib/stream/error/stream-player-error.component.css +1 -0
  84. package/src/lib/stream/stream-overlay-card-styles.component.css +9 -3
  85. package/src/lib/table/table.component.css +1 -0
  86. package/types/ethlete-components.d.ts +195 -16
  87. package/design/sdk/components/switch/switch.css +0 -37
@@ -57,11 +57,12 @@ const EVENTS = ['Kick-off', 'Goals', 'Half-time', 'Full-time'];
57
57
 
58
58
  const eventsGroup = (
59
59
  checked: number,
60
- extra: { force?: CheckboxMockForce[]; selectAllForce?: CheckboxMockForce[] } = {},
60
+ extra: { force?: CheckboxMockForce[]; selectAllForce?: CheckboxMockForce[]; disabled?: boolean } = {},
61
61
  ): CheckboxGroupMockOptions => ({
62
62
  id: 'events',
63
63
  label: 'Notify me about',
64
64
  selectAll: 'All events',
65
+ disabled: extra.disabled,
65
66
  selectAllForce: extra.selectAllForce,
66
67
  options: EVENTS.map((label, index): CheckboxGroupMockOption => ({
67
68
  label,
@@ -97,7 +98,8 @@ const render = (props: Props) =>
97
98
 
98
99
  export default definePart({
99
100
  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.",
100
- madeBy: ['claude-opus-5-5'],
101
+ consumerAction: 'a form control whose value the consumer binds',
102
+ madeBy: ['claude-opus-5-5', 'design check'],
101
103
  states: {
102
104
  ...gridStates,
103
105
  'box-only': { checkbox: { id: 'box-only', checked: true } },
@@ -139,7 +141,10 @@ export default definePart({
139
141
  'group-option-hover': { group: eventsGroup(0, { force: ['hover'] }) },
140
142
  'group-option-pressed': { group: eventsGroup(0, { force: ['hover', 'active'] }) },
141
143
  'group-option-focus-visible': { group: eventsGroup(2, { force: ['focus-visible'] }) },
144
+ 'group-select-all-hover': { group: eventsGroup(2, { selectAllForce: ['hover'] }) },
145
+ 'group-select-all-pressed': { group: eventsGroup(2, { selectAllForce: ['hover', 'active'] }) },
142
146
  'group-select-all-focus-visible': { group: eventsGroup(2, { selectAllForce: ['focus-visible'] }) },
147
+ 'group-disabled': { group: eventsGroup(2, { disabled: true }) },
143
148
  'group-horizontal': { group: venueGroup },
144
149
  },
145
150
  describe: {
@@ -179,8 +184,12 @@ export default definePart({
179
184
  'group-option-hover': 'The Goals option hovered; check its hover tint.',
180
185
  'group-option-pressed': 'The Goals option pressed; check that the press goes past hover.',
181
186
  'group-option-focus-visible': 'The Goals option with keyboard focus; check the focus ring around its box.',
187
+ 'group-select-all-hover': 'All events hovered over a partial group; check the hover tint around the mixed box.',
188
+ 'group-select-all-pressed': 'All events pressed over a partial group; check that the press goes past hover.',
182
189
  'group-select-all-focus-visible':
183
190
  'All events with keyboard focus over a partial group; check the ring around the mixed box.',
191
+ 'group-disabled':
192
+ 'The partial group disabled; check that All events and every option fade together and show no pointer state.',
184
193
  'group-horizontal': 'The Show matches group in one row; check the gaps between Home, Away and Neutral ground.',
185
194
  },
186
195
  grid: {
@@ -44,18 +44,11 @@ const disabledRows = {
44
44
  } satisfies Record<string, Props>;
45
45
 
46
46
  export const rows = { ...interactive.states, ...disabledRows };
47
- export const grid = {
48
- columns: interactive.grid.columns,
49
- rows: {
50
- ...interactive.grid.rows,
51
- disabled: { rest: 'disabled' as const },
52
- 'disabled-selected': { rest: 'disabled-selected' as const },
53
- 'disabled-removable': { rest: 'disabled-removable' as const },
54
- },
55
- };
47
+ export const grid = interactive.grid;
56
48
 
57
49
  export default definePart({
58
50
  note: 'Decided rules only',
51
+ consumerAction: 'a chip whose press and removal the consumer binds',
59
52
  madeBy: ['claude-opus-5-5'],
60
53
  states: {
61
54
  ...rows,
@@ -12,7 +12,10 @@ type Props = {
12
12
  };
13
13
 
14
14
  const mark = (control: 'icon' | 'text', interaction?: Interaction) =>
15
- [`data-et-control="${control}" data-can-animate`, interaction && `data-et-force="${interaction}"`]
15
+ [
16
+ `data-et-control="${control}" data-et-action="emit:copySucceed" data-can-animate`,
17
+ interaction && `data-et-force="${interaction}"`,
18
+ ]
16
19
  .filter(Boolean)
17
20
  .join(' ');
18
21
 
@@ -52,12 +52,20 @@ const render = ({ kind, long, close, confirm, cancel }: Props) =>
52
52
 
53
53
  export default definePart({
54
54
  note: 'Decided rules only',
55
- madeBy: ['claude-opus-5-5'],
55
+ consumerAction: 'its buttons are actions the consumer projects',
56
+ madeBy: ['claude-opus-5-5', 'design check'],
56
57
  states: {
57
58
  default: { kind: 'dialog' },
59
+ cancel: { kind: 'dialog' },
60
+ confirm: { kind: 'dialog' },
58
61
  'close-hover': { kind: 'dialog', close: 'hover' },
62
+ 'close-active': { kind: 'dialog', close: 'active' },
59
63
  'close-focus-visible': { kind: 'dialog', close: 'focus-visible' },
64
+ 'confirm-hover': { kind: 'dialog', confirm: 'hover' },
65
+ 'confirm-active': { kind: 'dialog', confirm: 'active' },
60
66
  'confirm-focus-visible': { kind: 'dialog', confirm: 'focus-visible' },
67
+ 'cancel-hover': { kind: 'dialog', cancel: 'hover' },
68
+ 'cancel-active': { kind: 'dialog', cancel: 'active' },
61
69
  'cancel-focus-visible': { kind: 'dialog', cancel: 'focus-visible' },
62
70
  alert: { kind: 'alert' },
63
71
  'alert-cancel-focus-visible': { kind: 'alert', cancel: 'focus-visible' },
@@ -67,9 +75,16 @@ export default definePart({
67
75
  describe: {
68
76
  default:
69
77
  'Move kick-off over the backdrop with text, close, Cancel and Save; check the title row and the actions at the end.',
78
+ cancel: 'Move kick-off at rest as the Cancel row of the grid; check Cancel at rest.',
79
+ confirm: 'Move kick-off at rest as the Save row of the grid; check Save at rest.',
70
80
  'close-hover': 'The close button hovered; check its round hover tint.',
81
+ 'close-active': 'The close button pressed; check that the round tint goes a step past hover.',
71
82
  'close-focus-visible': 'The close button with keyboard focus; check the focus ring around it.',
83
+ 'confirm-hover': 'Save hovered; check that the filled button takes its hover fill.',
84
+ 'confirm-active': 'Save pressed; check that the fill goes a step past hover.',
72
85
  'confirm-focus-visible': 'Save with keyboard focus; check the focus ring around the filled button.',
86
+ 'cancel-hover': 'Cancel hovered; check that the outline button takes its hover tint.',
87
+ 'cancel-active': 'Cancel pressed; check that the tint goes a step past hover.',
73
88
  'cancel-focus-visible': 'Cancel with keyboard focus; check the focus ring around the outline button.',
74
89
  alert: 'The Delete this match? alert with Cancel and Delete; check the message and the two actions.',
75
90
  'alert-cancel-focus-visible': 'The alert Cancel with keyboard focus; check the focus ring around it.',
@@ -77,6 +92,47 @@ export default definePart({
77
92
  'long-body':
78
93
  'Move the season with eight paragraphs; check that the body scrolls and the dividers show above and below it.',
79
94
  },
95
+ motions: {
96
+ 'close-hover-in': { from: 'default', to: 'close-hover' },
97
+ 'close-hover-out': { from: 'close-hover', to: 'default' },
98
+ 'close-press': { from: 'close-hover', to: 'close-active' },
99
+ 'close-release': { from: 'close-active', to: 'close-hover' },
100
+ 'cancel-hover-in': { from: 'cancel', to: 'cancel-hover' },
101
+ 'cancel-hover-out': { from: 'cancel-hover', to: 'cancel' },
102
+ 'cancel-press': { from: 'cancel-hover', to: 'cancel-active' },
103
+ 'cancel-release': { from: 'cancel-active', to: 'cancel-hover' },
104
+ 'cancel-tap': { from: 'cancel', to: 'cancel-active' },
105
+ 'cancel-lift': { from: 'cancel-active', to: 'cancel' },
106
+ 'confirm-hover-in': { from: 'confirm', to: 'confirm-hover' },
107
+ 'confirm-hover-out': { from: 'confirm-hover', to: 'confirm' },
108
+ 'confirm-press': { from: 'confirm-hover', to: 'confirm-active' },
109
+ 'confirm-release': { from: 'confirm-active', to: 'confirm-hover' },
110
+ 'confirm-tap': { from: 'confirm', to: 'confirm-active' },
111
+ 'confirm-lift': { from: 'confirm-active', to: 'confirm' },
112
+ },
113
+ grid: {
114
+ columns: ['rest', 'hover', 'active', 'focus-visible'] as const,
115
+ rows: {
116
+ close: {
117
+ rest: 'default',
118
+ hover: 'close-hover',
119
+ active: 'close-active',
120
+ 'focus-visible': 'close-focus-visible',
121
+ },
122
+ cancel: {
123
+ rest: 'cancel',
124
+ hover: 'cancel-hover',
125
+ active: 'cancel-active',
126
+ 'focus-visible': 'cancel-focus-visible',
127
+ },
128
+ confirm: {
129
+ rest: 'confirm',
130
+ hover: 'confirm-hover',
131
+ active: 'confirm-active',
132
+ 'focus-visible': 'confirm-focus-visible',
133
+ },
134
+ },
135
+ },
80
136
  widths: [480],
81
137
  controls: {
82
138
  close: { kind: 'button', input: ['pointer', 'keyboard'] },
@@ -84,6 +140,7 @@ export default definePart({
84
140
  confirm: { kind: 'button', input: ['pointer', 'keyboard'] },
85
141
  },
86
142
  frame: (body) => `<div class="dialog-frame">${body}</div>`,
143
+ scrolls: ['long-body'],
87
144
  render: (props: Props) =>
88
145
  drawing({
89
146
  body: overlayBackdrop(render(props)),
@@ -34,6 +34,7 @@ const render = ({ form, action }: Props) => emptyState({ ...COPY[form], actionAt
34
34
 
35
35
  export default definePart({
36
36
  note: 'Decided rules only',
37
+ consumerAction: 'its buttons are actions the consumer projects',
37
38
  madeBy: ['claude-opus-5-5', 'claude-sonnet-5-5'],
38
39
  states: {
39
40
  default: { form: 'default' },
@@ -39,6 +39,7 @@ const render = ({ state = 'inline', interaction, filterIcon, color, inset }: Pro
39
39
 
40
40
  export default definePart({
41
41
  note: 'Q138: the floating trigger gets the Q99a 1px inset ink edge in light only, so it reaches 3:1 on a light grey row (4.68) and the page (5.48); dark unchanged.',
42
+ consumerAction: 'its button runs the action the consumer binds',
42
43
  madeBy: ['claude-opus-5-5'],
43
44
  states: {
44
45
  inline: {},
@@ -41,6 +41,12 @@ const axisRows = Object.fromEntries(
41
41
  ),
42
42
  ) as Record<string, Props>;
43
43
 
44
+ const ALIGNMENTS = ['center', 'end'] as const;
45
+
46
+ const alignRows = Object.fromEntries(
47
+ ALIGNMENTS.map((textAlign) => [`text-align-${textAlign}`, { ...axisRow, textAlign }]),
48
+ ) as Record<`text-align-${(typeof ALIGNMENTS)[number]}`, Props>;
49
+
44
50
  const interactive = interactionRows(
45
51
  {
46
52
  empty: { hint: 'Shown on your profile' },
@@ -50,6 +56,7 @@ const interactive = interactionRows(
50
56
  'textarea-filled': { control: 'textarea', value: multiLine },
51
57
  'textarea-error': { control: 'textarea', error: 'This field is required' },
52
58
  ...axisRows,
59
+ ...alignRows,
53
60
  } satisfies Record<string, Props>,
54
61
  {
55
62
  interactions: ['hover', 'focus-visible'],
@@ -57,22 +64,8 @@ const interactive = interactionRows(
57
64
  },
58
65
  );
59
66
 
60
- const ALIGNMENTS = ['center', 'end'] as const;
61
-
62
- const alignStates = Object.fromEntries(
63
- ALIGNMENTS.map((textAlign) => [`text-align-${textAlign}`, { ...axisRow, textAlign }]),
64
- ) as Record<`text-align-${(typeof ALIGNMENTS)[number]}`, Props>;
65
-
66
- const states = { ...interactive.states, ...alignStates };
67
- const grid = {
68
- columns: interactive.grid.columns,
69
- rows: {
70
- ...interactive.grid.rows,
71
- ...Object.fromEntries(
72
- ALIGNMENTS.map((textAlign) => [`textAlign ${textAlign}`, { rest: `text-align-${textAlign}` as const }]),
73
- ),
74
- },
75
- };
67
+ const states = interactive.states;
68
+ const grid = interactive.grid;
76
69
 
77
70
  const markControl = (markup: string, control: FieldControl, interaction: FieldInteraction | undefined) => {
78
71
  const frame = ['data-et-control-part', interaction && `data-et-force="${interaction}"`].filter(Boolean);
@@ -87,7 +87,10 @@ export default definePart({
87
87
  items: itemsOf(props),
88
88
  actions: props.actions,
89
89
  ghost: props.drag ? { col: 1, row: 1, colSpan: 1, rowSpan: 1 } : undefined,
90
- }),
90
+ }).replaceAll(
91
+ 'class="et-grid-item-default-actions__remove',
92
+ 'data-et-action="emit:remove" class="et-grid-item-default-actions__remove',
93
+ ),
91
94
  styles: [gridStyles, frame].join('\n'),
92
95
  }),
93
96
  });
@@ -10,12 +10,12 @@
10
10
 
11
11
  @layer components {
12
12
  et-form-field[data-text-shell] {
13
- --_et-form-field-frame-border: var(--et-surface-interaction-solid);
14
- --_et-form-field-frame-border-hover: color-mix(
15
- in srgb,
16
- var(--et-surface-interaction-solid) 75%,
17
- var(--et-surface-color-solid)
13
+ --_et-form-field-frame-border: color-mix(
14
+ in oklab,
15
+ var(--et-surface-color-solid) 43%,
16
+ var(--et-surface-background-solid)
18
17
  );
18
+ --_et-form-field-frame-border-hover: var(--et-surface-color-solid);
19
19
  }
20
20
 
21
21
  et-form-field[data-text-shell][data-error] {
@@ -19,7 +19,7 @@ const INVALID = {
19
19
 
20
20
  export default definePart({
21
21
  note: 'scale of the decided shape, Q182, lead merge',
22
- madeBy: ['claude-opus-5-5'],
22
+ madeBy: ['claude-opus-5-5', 'design check'],
23
23
  states: {
24
24
  empty: email({ placeholder: undefined }),
25
25
  placeholder: email(),
@@ -69,7 +69,6 @@ export default definePart({
69
69
  'Progress bars in brand, danger and warning; check that each fill and track takes its theme color.',
70
70
  'brand-loader': 'The brand loader; check that the mark shows whole and centered in the frame.',
71
71
  },
72
- checks: { skip: ['CLIPPED'] },
73
72
  widths: [480],
74
73
  frame: (body) => `<div class="loader-frame">${body}</div>`,
75
74
  render: (props: Props) =>
@@ -20,6 +20,7 @@ const finished: MatchMockOptions = {
20
20
 
21
21
  export default definePart({
22
22
  note: 'scale of the decided shape, Q182, lead merge',
23
+ consumerAction: 'its link goes where the consumer points it',
23
24
  madeBy: ['claude-opus-5-5'],
24
25
  states: {
25
26
  finished: { card: finished },
@@ -82,6 +82,7 @@ const { states, grid } = interactionRows(
82
82
 
83
83
  export default definePart({
84
84
  note: 'Decided rules only',
85
+ consumerAction: 'its items are actions the consumer passes in',
85
86
  madeBy: ['claude-opus-5-5'],
86
87
  states: {
87
88
  menu: { rows: FULL },
@@ -69,6 +69,7 @@ const render = ({ status, ...interactions }: Props) =>
69
69
 
70
70
  export default definePart({
71
71
  note: 'The SDK notification (et-notification), drawn by its mock from @ethlete/components/design: one notification per status with title, message, dismiss icon button and, where the status has them, a primary and a secondary text-button action; the four statuses in the stack column. The pane sits one surface level above the page, as the component forces elevation 1. Error takes the danger theme (the semantic error theme); success, info and loading take the theme around them, since the design product registers no success theme.',
72
+ consumerAction: 'its buttons are actions the consumer projects',
72
73
  madeBy: ['claude-opus-5-5'],
73
74
  states: {
74
75
  success: { status: 'success' },
@@ -25,7 +25,7 @@
25
25
 
26
26
  @media (hover: hover) {
27
27
  et-otp-input:not(:has(.et-otp-input-native:read-only)):hover .et-otp-input-segment:not([data-caret]) {
28
- border-color: var(--et-surface-interaction-hover-solid);
28
+ border-color: var(--et-surface-color-solid);
29
29
  }
30
30
 
31
31
  et-otp-input[data-error]:not(:has(.et-otp-input-native:read-only)):hover .et-otp-input-segment:not([data-caret]) {
@@ -20,7 +20,7 @@ const INVALID = {
20
20
 
21
21
  export default definePart({
22
22
  note: 'The SDK otp input (et-otp-input), first drawing, drawn by the mock from @ethlete/components/design/otp-input with the real markup and CSS: et-label with the required marker, the segment row, the invisible native input over it, et-form-support with hint and error; the brand theme, danger as the error theme. The field has no :focus or :hover CSS of its own: focus is the data-caret segment (a 1px border plus a 1px inset outline in primary, and a blinking 2px caret bar in an empty one), which the mock draws with focused. Fixtures are fictional: Verification code, 6 digits 482193, hint We sent it to +49 151 0000 0000., required with error Enter the code from the SMS.; a 4-digit masked PIN. Framed as a page with 16px padding at 320, 360 and 640. States: empty, partial, filled, hover, focus-empty, focus-partial, focus-filled, hint, required, invalid, invalid-partial, invalid-focus, disabled, disabled-filled, readonly, readonly-focus, pin-partial and pin-focus. Numbers (light / dark), from shot pixels at scale 2 at 360, brand mint, a: segment 44px outer (border-box, fixed in 00072d935), gap 8px, row 304px, digits 19.8px; empty and filled segment border (surface border) vs page 1.26 / 1.73, the only edge of a segment; caret segment edge and caret bar (primary) 1.33 / 13.50; required marker (brand primary) 1.33 / 13.50; invalid border (danger) 4.83 / 3.71; label (muted) 7.81 / 6.94; disabled digits 2.55 / 3.72 (opacity 0.4, exempt). Decided rules that arise: Q88 (focus in ink: the caret segment edge and the caret bar take ink, the invalid one the danger ink) and Q99a (a mint mark on light takes ink: the required marker light-dark(ink, primary)). Hover follows the text field (form-field-text-shell: the frame border to surface-interaction-hover, the error frame to ink, none when readonly or disabled), on the host since the host is the click target (otp.activate()). The filled segment edge in c is my proposal, not a decided rule (Q103). Findings for later, lib bugs apart: (L1) a 6-digit field needed 304px and never shrank; at 320 with 16px page padding it overflowed by 16px (drawn at 320). Now fixed: the segments shrink, 41.3px at 320, and the render at 640 is unchanged. (L2) a readonly field showed the focus caret segment and, when not full, the blinking caret bar, though nothing can be typed (readonly-focus). Now fixed: no caret when readonly. Design: (1) WCAG 1.4.11: the segment border 1.26 / 1.73 is the only edge of an empty segment, as with the checkbox box and the radio circle. Not drawn. (2) A filled segment looks like an empty one apart from its digit; c answers it. (3) The error border is the full danger primary, while the text field draws its error frame at 50 % danger; kept, it passes 3:1. (4) Hover (10.37 / 13.07) outshines the focus edge (5.48 / 13.50) in b and c, as it does on the text field. (5) The masked dot is a 19.8px bullet, about 5px wide. (6) The error marker 3.71 in dark, exempted as in checkbox r1. Later rounds, left out here: data-warning (no CSS of its own), a coloured field, alphanumeric codes, other lengths and segment sizes via the custom properties, RTL and the pop-in animation.',
23
- madeBy: ['claude-opus-5-5'],
23
+ madeBy: ['claude-opus-5-5', 'design check'],
24
24
  states: {
25
25
  empty: code(),
26
26
  partial: code({ value: '482' }),
@@ -17,7 +17,7 @@ type Props = Omit<PaginationMockOptions, 'items'> & {
17
17
  forced?: ItemInteraction;
18
18
  };
19
19
 
20
- const MARK = 'data-et-control="item" data-can-animate';
20
+ const MARK = 'data-et-control="item" data-et-action="emit:pageChange" data-can-animate';
21
21
 
22
22
  const items = ({ page, pages, total, target, forced }: Props): PaginationMockItem[] => {
23
23
  const attributes = (entry: number) => (forced && entry === target ? `${MARK} data-et-force="${forced}"` : MARK);
@@ -65,6 +65,7 @@ const steps = (props: Props) => {
65
65
 
66
66
  export default definePart({
67
67
  note: 'Decided rules only',
68
+ consumerAction: 'its steps link where the consumer points them',
68
69
  madeBy: ['claude-opus-5-5'],
69
70
  states: {
70
71
  default: {},
@@ -64,7 +64,10 @@ const SHAPES: Record<Shape, { status: number; title: string; messages: string[];
64
64
  };
65
65
 
66
66
  const mark = (control: string, interaction?: Interaction) =>
67
- [`data-et-control="${control}" data-can-animate`, interaction && `data-et-force="${interaction}"`]
67
+ [
68
+ `data-et-control="${control}" data-et-action="emit:retryRequest" data-can-animate`,
69
+ interaction && `data-et-force="${interaction}"`,
70
+ ]
68
71
  .filter(Boolean)
69
72
  .join(' ');
70
73
 
@@ -88,6 +88,7 @@ const INVALID = {
88
88
 
89
89
  export default definePart({
90
90
  note: 'The SDK radio group (et-radio-group with et-radio) in flow, first drawing, drawn by the mock from @ethlete/components/design/radio-group with the real markup and CSS: et-label, et-radio in the plain and the card variant (et-selection-card), et-description, et-form-support with hint and error, the required marker, plus the color-interactive sheet; the brand theme, danger as the error theme. Fixtures are fictional: a match reminder form (Kick-off reminder: One hour before, Fifteen minutes before, At kick-off; hint We send it as a push notification.; required with error Pick a reminder to continue.; mixed hint The selected matches disagree.; card group Match report format: Short, The score and the scorers. / Full, Every event, with the line-ups.; horizontal group Show matches at: Home, Away, Neutral ground; grid label Remind me one hour before). Framed as a page with 16px padding at 360 and 640. States: a grid of unchecked and checked by rest, hover, focus-visible, active, disabled and readonly (one-option groups); group-none, group-checked, group-support (descriptions and hint), group-option-hover, group-option-pressed, group-option-focus-visible, group-mixed (bulk edit, dashed circles), group-disabled, group-readonly, invalid, invalid-focus-visible, invalid-checked, group-horizontal, card-rest, card-checked, card-hover, card-focus-visible and card-checked-focus-visible. Numbers (light / dark), from shot pixels at scale 2 at 360, brand mint, a: circle 20px with a 2px border and a 10px dot (border-box, fixed in 00072d935); unchecked circle border (surface border) vs page 1.26 / 1.73; checked ring and dot (primary) 1.33 / 13.50; checked hover dot and ring (-hover via color-interactive; the lib hover rule skips a checked radio) 1.37 / 13.06, 1.03 from rest; active 2.24 / 8.01; focus ring and focused border (primary -focus), checked or unchecked, 1.37 / 13.06; card checked edge and ring (primary) 1.33 / 13.50; mixed dashed border (primary) 1.33 / 13.50; invalid circle border (danger) 4.83 / 3.71; disabled checked ring 2.12 / 1.65, disabled label 1.41 / 1.65 (exempt under 1.4.11). Decided rules that arise: Q88 (every radio focus ring in ink, the unchecked one too, since unlike the checkbox it is primary, not the surface text colour; the invalid ring takes the danger ink; the card ring in ink), Q99a (the checked circle border, the focused circle border, the mixed dashed border and the card checked and focus edge take light-dark(ink, primary); the checked dot is a mint fill, so it takes a 1px inset ink edge, an outline at -1px) and Q101 (a checked radio hovers to -active). The ink edge on a mint fill arises, so Q102 arises: b draws the dot edge 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: no new lib CSS bug; the radio circle box-sizing bug is fixed (00072d935, measured 40 sheet px = 20px). (1) WCAG 1.4.11: the unchecked circle border is 1.26 / 1.73 vs page, under 3:1, the only edge of an unchecked radio (the same open question as the checkbox box and the switch off track). Not drawn. (2) The required marker takes the error theme primary: 3.71:1 in dark, under 4.5:1; exempted here as in checkbox r1. (3) A checked radio has no hover rule of its own; only color-interactive shifts it to -hover, 1.03 from rest, so hover on a checked radio is invisible in a; Q101 fixes it in b and c. (4) Readonly draws exactly like rest, as with the checkbox. (5) A disabled group dims its options (opacity 0.5 and the disabled label colour, both at once) but not the group label, which keeps 7.81 in light; the same holds for the checkbox group. Later rounds, left out here: the sizes sm and lg, the card with the control at start and the card slots, a coloured (non-brand) radio, the warning state, a disabled option inside an enabled group, a pending (aria-busy) group, long labels that wrap, RTL and the check animation.',
91
+ consumerAction: 'a form control whose value the consumer binds',
91
92
  madeBy: ['claude-opus-5-5'],
92
93
  states: {
93
94
  ...gridStates,
@@ -210,14 +210,29 @@ const render = (props: Props) => {
210
210
  return scheduler({ view: props.view, headerLabel: HEADER_LABELS[props.view], addAction: true, body });
211
211
  };
212
212
 
213
- const skipClipped = (markup: string) =>
214
- markup.replaceAll(
215
- 'class="et-scheduler-time-grid-block',
216
- 'data-et-skip="CLIPPED" class="et-scheduler-time-grid-block',
217
- );
213
+ const action = (key: string) => `data-et-action="${key}"`;
214
+
215
+ const BUTTON_ACTIONS: [string, string][] = [
216
+ ['et-scheduler-today-button', 'emit:focusedDateChange'],
217
+ ['et-scheduler-nav-button--previous', 'emit:focusedDateChange'],
218
+ ['et-scheduler-nav-button--next', 'emit:focusedDateChange'],
219
+ ['et-scheduler-month-view-overflow-trigger', 'opens:components/menu'],
220
+ ];
221
+
222
+ const declareActions = (markup: string) =>
223
+ BUTTON_ACTIONS.reduce(
224
+ (html, [name, key]) => html.replace(new RegExp(`<button ([^>]*\\b${name}\\b)`), `<button ${action(key)} $1`),
225
+ markup,
226
+ )
227
+ .replaceAll('<et-segmented-button value=', `<et-segmented-button ${action('emit:viewChange')} value=`)
228
+ .replace(/<button [^>]*class="et-scheduler-(appointment|time-grid-block)[^>]*>/g, (appointment) =>
229
+ appointment.includes('data-selected')
230
+ ? appointment
231
+ : appointment.replace('<button ', `<button ${action('emit:selectedAppointmentIdChange')} `),
232
+ );
218
233
 
219
234
  export default definePart({
220
- note: "The SDK scheduler (et-scheduler) in flow, first drawing, drawn by the mock from @ethlete/components/design/scheduler with the real markup and CSS: the wide header (outline Today button, filled Add appointment, previous and next icon buttons, the range label, the tabs view switch), et-scheduler-time-grid-view (week and day), et-scheduler-month-view and et-scheduler-agenda-view, the appointment badges (color dot, title, time range, location, chain count) and the resize handles; default labels, en-US times. Fixtures are fictional: one week (Mon March 2 to Sun March 8, 2026, today Wed March 4) with a daily sync, an overlapping parent and nested child (Roadmap planning / Budget check), a selected appointment (Design review, brand), a two-day all-day Conference, Hiring panel and Retro; the colors are the sdk product's registered themes brand (default), warning and danger. The time grid draws 8:00 to 18:00 as if the scrolling body sat on that window, with business hours 9 to 17 on weekdays and the weekend outside them; the current time line sits on today at 11:15. Framed as a page with 16px padding. Widths 560, 800 and 1200 (all above the 480px container width where the header switches to floating action buttons). States: week, week-dragging (Retro lifted, with the drag shadow), appointment-hover, appointment-focus-visible (Daily sync on Monday forced), slot-focus-visible (Thursday 11:00 forced), day, month (outside-month days, today, a +3 more trigger, the selected appointment), month-cell-focus-visible, agenda (a month heading, today, nested rows with tree guides, the selected appointment). Numbers (light / dark), from shot pixels at scale 2 at 800, brand mint, a: appointment tint (14 %) vs page 1.07 / 1.37, its title ink on it 5.12 / 9.84; selected appointment (mint fill) vs page 1.33 / 13.50, its text 15.82 / 15.82; today date circle (mint fill) vs page 1.33 / 13.50, its digit 15.82; current time line and its dot vs the today column 1.29 / 12.14; focus ring (primary) vs page 1.35 / 13.50, vs the appointment tint 1.26 / 9.84; Add appointment fill vs page 1.33 / 13.50, its label 15.82. Q98 numbers only: grid lines (hour rows, day columns, header and all-day edges, month cells) vs page 1.26 / 1.73; the non-business band 1.07 / 1.08; the today column tint is 6 % mint. Decided rules that arise: Q88 (every focus ring: slots, all-day cells, month cells, appointments, the overflow trigger, the view switch, the header buttons), Q99a (the current time line and its dot, the appointment color dot; the selected appointment, the today date circles and the filled Add appointment button are mint fills, so they take a 1px inset ink edge) and Q101 (the filled button hover = -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 32 / 38 / 44 % selection step does not arise: a selected appointment is a solid mint fill, not a tint. Findings for later: (1) lib bug: the badge pieces render inside their component hosts (et-scheduler-badge-color-dot, -title, -time-range, -location, -chain-count), which are inline, so the flex rules on the inner spans never apply: the color dot is 0 x 0 and never shows (also in Storybook), the title does not take flex: 1 or ellipsis, and the time range and location are cut hard at the block edge (the agenda location shrinks to one letter while the title has room). Fixed in the lib (display: contents on the five hosts; the time range and location shrink with an ellipsis before the title). Narrow week blocks still clip, because the gaps, the dot and the chain count alone are wider than the block (31 px at 560), so data-et-skip CLIPPED stays on every time grid block; the month cell skip is gone. (2) The first hour label sat half above the scroll body (translateY(-50%)) and was clipped by its overflow; fixed in the lib with a top padding of half the label line height. (3) Outside-month dates read nearly like in-month ones. (4) The selected appointment edge and the drag shadow share box-shadow, so a selected appointment being dragged would lose one (not drawn); the lib has no selected edge yet, so whoever merges b or c must list the edge and the drag shadow in one rule on [data-selected][data-dragging]. (5) The Add appointment hover (Q101) is not forced here; it is the same et-button as in the stream round (hover 1.69 from rest). Later rounds, left out here: the edit surface (scheduler-edit-surface and its parts, an overlay), the month +n more menu, the narrow header with floating action buttons, the drag-to-create draft and committed blocks, month draft and drop-target cells, the scrollbar, custom badge adornments, the read-only scheduler, RTL and long labels.",
235
+ note: "The SDK scheduler (et-scheduler) in flow, first drawing, drawn by the mock from @ethlete/components/design/scheduler with the real markup and CSS: the wide header (outline Today button, filled Add appointment, previous and next icon buttons, the range label, the tabs view switch), et-scheduler-time-grid-view (week and day), et-scheduler-month-view and et-scheduler-agenda-view, the appointment badges (color dot, title, time range, location, chain count) and the resize handles; default labels, en-US times. Fixtures are fictional: one week (Mon March 2 to Sun March 8, 2026, today Wed March 4) with a daily sync, an overlapping parent and nested child (Roadmap planning / Budget check), a selected appointment (Design review, brand), a two-day all-day Conference, Hiring panel and Retro; the colors are the sdk product's registered themes brand (default), warning and danger. The time grid draws 8:00 to 18:00 as if the scrolling body sat on that window, with business hours 9 to 17 on weekdays and the weekend outside them; the current time line sits on today at 11:15. Framed as a page with 16px padding. Widths 560, 800 and 1200 (all above the 480px container width where the header switches to floating action buttons). States: week, week-dragging (Retro lifted, with the drag shadow), appointment-hover, appointment-focus-visible (Daily sync on Monday forced), slot-focus-visible (Thursday 11:00 forced), day, month (outside-month days, today, a +3 more trigger, the selected appointment), month-cell-focus-visible, agenda (a month heading, today, nested rows with tree guides, the selected appointment). Numbers (light / dark), from shot pixels at scale 2 at 800, brand mint, a: appointment tint (14 %) vs page 1.07 / 1.37, its title ink on it 5.12 / 9.84; selected appointment (mint fill) vs page 1.33 / 13.50, its text 15.82 / 15.82; today date circle (mint fill) vs page 1.33 / 13.50, its digit 15.82; current time line and its dot vs the today column 1.29 / 12.14; focus ring (primary) vs page 1.35 / 13.50, vs the appointment tint 1.26 / 9.84; Add appointment fill vs page 1.33 / 13.50, its label 15.82. Q98 numbers only: grid lines (hour rows, day columns, header and all-day edges, month cells) vs page 1.26 / 1.73; the non-business band 1.07 / 1.08; the today column tint is 6 % mint. Decided rules that arise: Q88 (every focus ring: slots, all-day cells, month cells, appointments, the overflow trigger, the view switch, the header buttons), Q99a (the current time line and its dot, the appointment color dot; the selected appointment, the today date circles and the filled Add appointment button are mint fills, so they take a 1px inset ink edge) and Q101 (the filled button hover = -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 32 / 38 / 44 % selection step does not arise: a selected appointment is a solid mint fill, not a tint. Findings for later: (1) lib bug: the badge pieces render inside their component hosts (et-scheduler-badge-color-dot, -title, -time-range, -location, -chain-count), which are inline, so the flex rules on the inner spans never apply: the color dot is 0 x 0 and never shows (also in Storybook), the title does not take flex: 1 or ellipsis, and the time range and location are cut hard at the block edge (the agenda location shrinks to one letter while the title has room). Fixed in the lib (display: contents on the five hosts; the time range and location shrink with an ellipsis before the title). Narrow week blocks still clip, because the gaps, the dot and the chain count alone are wider than the block (31 px at 560), and the check finds no clipped block, so no skip is needed; the month cell skip is gone. (2) The first hour label sat half above the scroll body (translateY(-50%)) and was clipped by its overflow; fixed in the lib with a top padding of half the label line height. (3) Outside-month dates read nearly like in-month ones. (4) The selected appointment edge and the drag shadow share box-shadow, so a selected appointment being dragged would lose one (not drawn); the lib has no selected edge yet, so whoever merges b or c must list the edge and the drag shadow in one rule on [data-selected][data-dragging]. (5) The Add appointment hover (Q101) is not forced here; it is the same et-button as in the stream round (hover 1.69 from rest). Later rounds, left out here: the edit surface (scheduler-edit-surface and its parts, an overlay), the month +n more menu, the narrow header with floating action buttons, the drag-to-create draft and committed blocks, month draft and drop-target cells, the scrollbar, custom badge adornments, the read-only scheduler, RTL and long labels.",
221
236
  madeBy: ['claude-opus-5-5'],
222
237
  states: {
223
238
  week: { view: 'week' },
@@ -246,7 +261,7 @@ export default definePart({
246
261
  frame: (body) => `<div class="t-frame">${body}</div>`,
247
262
  render: (props: Props) =>
248
263
  drawing({
249
- body: skipClipped(render(props)),
264
+ body: declareActions(render(props)),
250
265
  styles: [schedulerStyles, frame].join('\n'),
251
266
  }),
252
267
  });
@@ -59,7 +59,7 @@ const render = (props: Props) => {
59
59
  const active = position === 'end' ? items - 1 : position === 'start' ? 0 : best;
60
60
  const buttons = props.buttons ?? 'inside';
61
61
 
62
- const markup = scrollable({
62
+ return scrollable({
63
63
  direction,
64
64
  canScroll,
65
65
  position,
@@ -68,10 +68,10 @@ const render = (props: Props) => {
68
68
  navigationActive: props.navigation ? active : undefined,
69
69
  darken: props.darken,
70
70
  itemSize: props.itemSize,
71
- itemGap: props.itemSize ? GAP : undefined,
71
+ itemGap: GAP,
72
72
  color: props.color,
73
73
  endButtonAttributes: props.endButton ? `data-et-force="${props.endButton}"` : undefined,
74
- containerAttributes: `data-et-skip="CLIPPED" style="--scrollable-offset: -${offset}px"`,
74
+ containerAttributes: `style="--scrollable-offset: -${offset}px"`,
75
75
  items: Array.from({ length: items }, (_, index) => ({
76
76
  tag: 'button',
77
77
  content: `Item ${index}`,
@@ -85,16 +85,12 @@ const render = (props: Props) => {
85
85
  .join(' '),
86
86
  })),
87
87
  });
88
-
89
- return markup.replace(
90
- 'class="et-scrollable-progress-bar"',
91
- 'data-et-skip="CLIPPED" class="et-scrollable-progress-bar"',
92
- );
93
88
  };
94
89
 
95
90
  export default definePart({
96
91
  note: 'scale of the decided shape, Q182, lead merge',
97
- madeBy: ['claude-opus-5-5', 'claude-sonnet-5-5'],
92
+ consumerAction: 'the buttons inside are content the consumer projects',
93
+ madeBy: ['claude-opus-5-5', 'claude-sonnet-5-5', 'design check'],
98
94
  states: {
99
95
  'horizontal-start': {},
100
96
  'horizontal-middle': { position: 'middle' },
@@ -155,6 +151,31 @@ export default definePart({
155
151
  'item-size-quarter': 'Items at a quarter; check that four items fill the viewport with three gaps.',
156
152
  },
157
153
  widths: [480],
154
+ scrolls: [
155
+ 'horizontal-start',
156
+ 'horizontal-middle',
157
+ 'horizontal-end',
158
+ 'vertical-start',
159
+ 'vertical-middle',
160
+ 'vertical-end',
161
+ 'button-hover',
162
+ 'button-active',
163
+ 'border-mask',
164
+ 'vertical-border-mask',
165
+ 'navigation-start',
166
+ 'navigation-middle',
167
+ 'navigation-end',
168
+ 'vertical-navigation',
169
+ 'footer-buttons',
170
+ 'footer-button-hover',
171
+ 'danger-navigation',
172
+ 'darken',
173
+ 'item-focus-visible',
174
+ 'item-size-full',
175
+ 'item-size-half',
176
+ 'item-size-third',
177
+ 'item-size-quarter',
178
+ ],
158
179
  render: (props: Props) =>
159
180
  drawing({
160
181
  body: `<div class="scrollable-frame ${props.itemSize ? 'scrollable-frame--sized' : ''}">${render(props)}</div>`,
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .scrollbar-viewport {
12
- overflow: hidden;
12
+ overflow: auto;
13
13
  }
14
14
 
15
15
  .scrollbar-viewport[data-layout='vertical'] {
@@ -65,7 +65,7 @@ const render = (props: Props) => {
65
65
  const count = props.items ?? 24;
66
66
 
67
67
  return (
68
- `<div class="${scrollbarHostClass} scrollbar-viewport" data-et-skip="CLIPPED" data-layout="vertical">` +
68
+ `<div class="${scrollbarHostClass} scrollbar-viewport" data-layout="vertical">` +
69
69
  `<div class="scrollbar-content" style="margin-block-start: -${scroll}px">${items(count, 'Row')}</div></div>` +
70
70
  bar('vertical', VIEWPORT_BLOCK, extent(count, ROW), scroll, props)
71
71
  );
@@ -81,7 +81,7 @@ const render = (props: Props) => {
81
81
  ).join('');
82
82
 
83
83
  return (
84
- `<div class="${scrollbarHostClass} scrollbar-viewport" data-et-skip="CLIPPED" data-layout="both">` +
84
+ `<div class="${scrollbarHostClass} scrollbar-viewport" data-layout="both">` +
85
85
  `<div class="scrollbar-content" style="margin-block-start: -${scroll}px; margin-inline-start: -${scrollInline}px">${grid}</div></div>` +
86
86
  bar('vertical', VIEWPORT_BLOCK, extent(rows, CELL_BLOCK), scroll, props) +
87
87
  bar('horizontal', VIEWPORT_INLINE, extent(columns, CELL_INLINE), scrollInline, props)
@@ -91,7 +91,7 @@ const render = (props: Props) => {
91
91
  const count = props.items ?? 14;
92
92
 
93
93
  return (
94
- `<div class="${scrollbarHostClass} scrollbar-viewport" data-et-skip="CLIPPED" data-layout="horizontal">` +
94
+ `<div class="${scrollbarHostClass} scrollbar-viewport" data-layout="horizontal">` +
95
95
  `<div class="scrollbar-content" style="margin-inline-start: -${scrollInline}px">${items(count, 'Card')}</div></div>` +
96
96
  bar('horizontal', VIEWPORT_INLINE, extent(count, CARD), scrollInline, props)
97
97
  );
@@ -131,6 +131,19 @@ export default definePart({
131
131
  },
132
132
  widths: [480],
133
133
  frame: (body, props) => `<div class="scrollbar-frame"${props.layout === 'rtl' ? ' dir="rtl"' : ''}>${body}</div>`,
134
+ scrolls: [
135
+ 'vertical',
136
+ 'vertical-scrolled',
137
+ 'horizontal',
138
+ 'horizontal-scrolled',
139
+ 'both-axes',
140
+ 'rtl',
141
+ 'short-content',
142
+ 'long-content',
143
+ 'thumb-hover',
144
+ 'dragging',
145
+ 'auto-hidden',
146
+ ],
134
147
  render: (props: Props) =>
135
148
  drawing({
136
149
  body: `<div class="scrollbar-wrapper">${render(props)}</div>`,
@@ -5,6 +5,7 @@ import { grid, moreStates, selectBody, SelectProps, states } from './shared/sele
5
5
 
6
6
  export default definePart<SelectProps>({
7
7
  note: 'scale of the decided shape, Q182, lead merge',
8
+ consumerAction: 'a form control whose value the consumer binds',
8
9
  madeBy: ['claude-opus-5-5', 'claude-sonnet-5-5'],
9
10
  states: { ...states, ...moreStates },
10
11
  describe: {
@@ -22,7 +23,15 @@ export default definePart<SelectProps>({
22
23
  'open-option-hover':
23
24
  'The open select with Drafts under the pointer; check that the pointer highlight shows on Drafts.',
24
25
  'size-sm': 'The filled select at size sm; check that field and text shrink together.',
26
+ 'size-sm-hover': 'The size sm select hovered; check that the border darkens at the smaller field height.',
27
+ 'size-sm-active': 'The size sm select pressed; check the press look on the smaller field frame.',
28
+ 'size-sm-focus-visible':
29
+ 'The size sm select focused by keyboard; check that the focus ring wraps the smaller field.',
25
30
  'size-lg': 'The filled select at size lg; check that field and text grow together.',
31
+ 'size-lg-hover': 'The size lg select hovered; check that the border darkens at the larger field height.',
32
+ 'size-lg-active': 'The size lg select pressed; check the press look on the larger field frame.',
33
+ 'size-lg-focus-visible':
34
+ 'The size lg select focused by keyboard; check that the focus ring wraps the larger field.',
26
35
  },
27
36
  grid,
28
37
  widths: [320],