@ethlete/components 1.0.0-next.104 → 1.0.0-next.106
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 +27 -0
- package/design/bracket.ts +2 -2
- package/design/dialog.ts +5 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.ts +4 -2
- package/design/sdk/components/bracket/bracket.ts +2 -2
- package/design/sdk/components/dialog/dialog.ts +12 -38
- package/design/sdk/ready.json +48 -14
- package/design/table.ts +7 -3
- package/fesm2022/ethlete-components-bracket.mjs +3498 -0
- package/fesm2022/ethlete-components-bracket.mjs.map +1 -0
- package/fesm2022/ethlete-components.mjs +40 -16
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/generators.json +5 -0
- package/generators/migrate-bracket-entry-point/bracket-entry-point.js +27 -0
- package/generators/migrate-bracket-entry-point/migration.js +60 -0
- package/generators/migrate-bracket-entry-point/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/migration.js +6 -8
- package/generators/migrate-overlay-and-column-api/overlay-result.js +47 -0
- package/migrations.json +9 -0
- package/package.json +9 -6
- package/src/lib/bracket/bracket.component.css +3 -1
- package/src/lib/button/button.component.css +1 -0
- package/src/lib/button/window-control-button.component.css +2 -2
- package/src/lib/overlay/overlay-main-styles.component.css +6 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +3 -1
- package/src/lib/scrollable/headless/scrollable-masks.component.css +2 -0
- package/types/ethlete-components-bracket.d.ts +1177 -0
- package/types/ethlete-components.d.ts +21 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-next.106
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Bracket section titles no longer shift or fade when the bracket starts to scroll; the new `sectionTitleGap` input spaces a title from its part.
|
|
8
|
+
- Add the `@ethlete/components/bracket` entry point, which replaces the no longer published `@ethlete/bracket`; the `bracket-entry-point` migration rewrites its imports and drops it from `package.json`.
|
|
9
|
+
- Add the full value as a `title` on a table cell's default text, so a value clipped by the ellipsis stays readable.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Open the open-points popover centred above its chip with the arrow from its centre. The anchored-dialog design part accepts the centred placements `top` and `bottom`.
|
|
14
|
+
- Extra-small buttons draw their focus ring 1px from the edge instead of 3px, so it fits a 32px bar; set `--et-focus-ring-offset` on the button to change it.
|
|
15
|
+
- Window control buttons draw their focus ring inside the button in every shape, so a tight title bar no longer clips it; the Studio title search ring sits 1px from the field.
|
|
16
|
+
- The design drawing of the table's select checkbox now carries the focus ring and interactive classes and stylesheets of the real checkbox, so its focus-visible state draws the ring.
|
|
17
|
+
- `@ethlete/components/bracket` no longer exports the internal `sectionTitleSpace` helper.
|
|
18
|
+
- The `overlay-and-column-api` migration lists the places it cannot rewrite as a WARN and exits 0, so the later migrations still run.
|
|
19
|
+
- A dialog without a footer keeps `--et-overlay-padding-block` below its body, also when the body
|
|
20
|
+
scrolls to its end; the last row no longer sits on the pane's bottom edge.
|
|
21
|
+
- The overlay-and-column-api migration now rewrites a `T | null` callback field that an `afterClosed` result is forwarded to, instead of leaving a type error.
|
|
22
|
+
- `definePart` takes `viewports` to draw a state in a short window, and a product's `minWindow` sets the lowest one.
|
|
23
|
+
|
|
24
|
+
## 1.0.0-next.105
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Restore soft edge fades when scrolling with inside buttons and a button gutter.
|
|
29
|
+
|
|
3
30
|
## 1.0.0-next.104
|
|
4
31
|
|
|
5
32
|
### Major Changes
|
package/design/bracket.ts
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
FinalizedBracketElement,
|
|
17
17
|
SINGLE_ELIMINATION_BRACKET_ROUND_TYPE,
|
|
18
18
|
TOURNAMENT_MODE,
|
|
19
|
-
} from '@ethlete/bracket';
|
|
19
|
+
} from '@ethlete/components/bracket';
|
|
20
20
|
import continueBase from '../src/lib/bracket/bracket-default-continue.component.css?inline';
|
|
21
21
|
import finalMatchBase from '../src/lib/bracket/bracket-default-final-match.component.css?inline';
|
|
22
22
|
import defaultMatchBase from '../src/lib/bracket/bracket-default-match.component.css?inline';
|
|
@@ -348,7 +348,7 @@ const matchCellOf = (
|
|
|
348
348
|
return `<et-bracket-default-match class="et-bracket-default-match-host">${marked(matchCard({ ...card, size: 'compact', className: 'et-bracket-default-match-card', attributes: 'size="compact"' }))}</et-bracket-default-match>`;
|
|
349
349
|
};
|
|
350
350
|
|
|
351
|
-
/** Draws `et-bracket` with its round headers, default match and final cards, continue cells and connectors, as HTML; the cell positions and connector paths come from `@ethlete/bracket`, as in the lib. */
|
|
351
|
+
/** Draws `et-bracket` with its round headers, default match and final cards, continue cells and connectors, as HTML; the cell positions and connector paths come from `@ethlete/components/bracket`, as in the lib. */
|
|
352
352
|
export const bracket = (options: BracketMockOptions) => {
|
|
353
353
|
const settings = settingsOf(options.settings);
|
|
354
354
|
const labels = options.labels ?? DEFAULT_LABELS;
|
package/design/dialog.ts
CHANGED
|
@@ -86,8 +86,13 @@ export const dialogStyles = /* @__PURE__ */ [
|
|
|
86
86
|
position: relative;
|
|
87
87
|
display: grid;
|
|
88
88
|
place-items: center;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
min-block-size: var(--et-design-window-height, auto);
|
|
89
91
|
padding: 4rem 2.4rem;
|
|
90
92
|
}
|
|
93
|
+
.et-dialog-mock-scene > .et-overlay--dialog {
|
|
94
|
+
max-block-size: calc(var(--et-design-window-height) * 0.8);
|
|
95
|
+
}
|
|
91
96
|
.et-dialog-mock-scene > .et-overlay-runtime-backdrop {
|
|
92
97
|
position: absolute;
|
|
93
98
|
inset: 0;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
kind?: 'open-points' | 'filter';
|
|
10
10
|
content?: string;
|
|
11
11
|
label?: string;
|
|
12
|
-
placement?: 'bottom-end' | 'bottom-start' | 'top-end' | 'top-start';
|
|
12
|
+
placement?: 'bottom' | 'bottom-end' | 'bottom-start' | 'top' | 'top-end' | 'top-start';
|
|
13
13
|
arrow?: boolean;
|
|
14
14
|
anchor?: string;
|
|
15
15
|
modal?: boolean;
|
|
@@ -45,6 +45,7 @@ export default definePart({
|
|
|
45
45
|
filter: { kind: 'filter', placement: 'bottom-start' },
|
|
46
46
|
'no-arrow': { kind: 'filter', placement: 'bottom-start', arrow: false },
|
|
47
47
|
'top-start': { kind: 'open-points', placement: 'top-start', modal: false },
|
|
48
|
+
top: { kind: 'open-points', placement: 'top', modal: false },
|
|
48
49
|
},
|
|
49
50
|
describe: {
|
|
50
51
|
'open-points':
|
|
@@ -54,6 +55,7 @@ export default definePart({
|
|
|
54
55
|
'no-arrow': 'The filter popover without its arrow; check that the pane keeps its gap to the trigger.',
|
|
55
56
|
'top-start':
|
|
56
57
|
'The open points popover above its trigger, start-aligned; check that the arrow flips to the bottom edge and points at the trigger.',
|
|
58
|
+
top: 'The open points popover centred above its trigger; check that the arrow leaves the pane centre.',
|
|
57
59
|
},
|
|
58
60
|
widths: [480],
|
|
59
61
|
controls: {
|
|
@@ -61,7 +63,7 @@ export default definePart({
|
|
|
61
63
|
apply: { kind: 'button', part: 'components/button' },
|
|
62
64
|
},
|
|
63
65
|
frame: (body, { placement = 'bottom-end' }) =>
|
|
64
|
-
`<div class="anchored-dialog-frame" style="--anchored-dialog-justify:${placement.endsWith('start') ? 'flex-start' : 'flex-end'}"><div data-et-anchor>${body}</div></div>`,
|
|
66
|
+
`<div class="anchored-dialog-frame" style="--anchored-dialog-justify:${placement.endsWith('start') ? 'flex-start' : placement.endsWith('end') ? 'flex-end' : 'center'}"><div data-et-anchor>${body}</div></div>`,
|
|
65
67
|
render: async ({
|
|
66
68
|
kind = 'open-points',
|
|
67
69
|
content,
|
|
@@ -128,9 +128,9 @@ const render = (props: Props) => {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
export default definePart({
|
|
131
|
-
note: "The SDK bracket (et-bracket) in flow, first drawing, drawn by the mock from @ethlete/components/design/bracket with the real markup and CSS: the bracket, its default round header, default match cell (et-match-card at compact), default final card (trophy, round name, champion line), continue cell and participants legend sheets, plus the match card, icon and button sheets; cell positions and connector paths come from @ethlete/bracket (createBracket, the single elimination grid, drawMan) as in the lib; default settings and labels, en-US kick-off. Emblems are the participant's letter fallback; the move transitions at rest. Fixtures are fictional: an eight-club single elimination knockout (Northbridge Rovers NBR 1, Harbor City HBC 2, Eastvale United EVU 3, Millbrook Athletic MBA 4, Riverside Wanderers RSW 5, Stonegate FC SGF 6, Westport Albion WPA 7, Lakeside Town LST 8) over Quarter-finals, Semi-finals and Final; the brand theme only. Framed as a page with 16px padding at 1040 and 1680 (the default bracket is 980px wide, the grid does not follow the frame width). States: in-progress (quarter-finals and one semi-final finished, the other semi-final live 1 : 1 with the LIVE badge, the final with Northbridge Rovers against TBD and the kick-off, champion not decided), decided (Westport Albion beat Northbridge Rovers 2 : 1, the champion line), journey-hover (the hover journey of Riverside Wanderers: the rest at half opacity, the semi-final where they went out dashed and their row struck through), journey-pinned (the pinned journey of the champion with the participants legend, its toggle pressed; the rest at a quarter opacity), legend-focus-visible (the Eastvale United toggle forced), compact (density compact, in-progress), continue (quarter-finals and semi-finals with the continue cell, 2 winners advance, dashed connectors) and mirrored (decided, folded in half, compact, so it fits 1040). Numbers (light / dark), from shot pixels at scale 2 at 1040, brand mint, a: winner bar (primary) vs card 1.33 / 13.50; live dot (primary) vs its badge tint 1.24 / 9.67, vs card 1.33 / 13.28; badge tint vs card 1.07 / 1.37; final frame edge (45 % mint) vs page 1.22 / 3.90, vs the glow beside it 1.15 / 2.98, vs its own tint 1.18 / 3.50; the final tint (6 %) vs page 1.03 / 1.11; pressed legend toggle (mint fill) vs page 1.33 / 13.50, its label 15.82 / 15.82; legend toggle focus ring (primary) vs page 1.37 / 13.06; outline toggle edge and label (ink) 7.68 light. Q98 numbers only: connectors, card edges, the continue cell's dashed edge and the journey endpoint's dashed outline vs page 1.26 / 1.73. The journey dimming lowers text under 4.5:1 by design: at half opacity the check reports a dimmed winner code at 3.41 / 2.68 and the dimmed Final label at 2.14 / 3.93, at a quarter opacity 1.73 / 2.21, the struck-through row that went out (0.55 opacity) 2.62 / 2.98; exempted with contrast exceptions, an open point, no decided rule. Decided rules that arise: Q88 (the legend toggle focus ring; the default cells are not links, so no card ring) and Q99a (the winner bar, the live dot and the final frame edge take ink in light; the pressed legend toggle is a mint fill, so it takes a 1px inset ink edge). The ink edge on a mint fill arises, so Q102 arises: b draws the edge in both schemes, c keeps dark as today (light-dark(ink, transparent)). The badge tint and the final tint are band tints, not fills, so they are kept, and the final glow is kept. Q101 does not arise: the only filled button is a pressed toggle, whose hover keeps the fill in the lib. Findings for later: (1) lib bug: the live meta row grows the bracket's compact card past matchHeight: the live semi-final is 87px tall in its 75px cell (65 in 52 at compact), so it hangs 12px (13px) below its cell, the incoming connector meets it 6px above its centre and the gap to the card below shrinks. Drawn as is in every variant. (2) In the mirrored compact layout the final card in its 200px column shows full names and cuts the loser ('Northbridge Rove…') next to the score, where every other compact cell shows codes. (3) The eliminated row's line-through also strikes the emblem letter and the score. (4) The lit journey path keeps the grey connector colour (1.26 / 1.73), so it reads only by the rest fading; the dimmed text is under 4.5:1 (numbers above). (5) In dark the final glow lightens the page beside the frame edge, so the edge drops from 3.90 against the bare page to 2.98 against the glow. Later rounds, left out here: double elimination, swiss and round robin layouts, the third-place match, the mirrored layout at default density, the rounds list and adaptive layout, the skeleton, the prediction pick card, a custom match component on a link (card hover and focus ring), emblems as images, scheduled cells with kick-off times, long names, RTL and the move transitions. Omitted option value (Q182): alignRoundHeaders center draws the same pixels as start, because the default round header fills its column and is already centred.",
|
|
131
|
+
note: "The SDK bracket (et-bracket) in flow, first drawing, drawn by the mock from @ethlete/components/design/bracket with the real markup and CSS: the bracket, its default round header, default match cell (et-match-card at compact), default final card (trophy, round name, champion line), continue cell and participants legend sheets, plus the match card, icon and button sheets; cell positions and connector paths come from @ethlete/components/bracket (createBracket, the single elimination grid, drawMan) as in the lib; default settings and labels, en-US kick-off. Emblems are the participant's letter fallback; the move transitions at rest. Fixtures are fictional: an eight-club single elimination knockout (Northbridge Rovers NBR 1, Harbor City HBC 2, Eastvale United EVU 3, Millbrook Athletic MBA 4, Riverside Wanderers RSW 5, Stonegate FC SGF 6, Westport Albion WPA 7, Lakeside Town LST 8) over Quarter-finals, Semi-finals and Final; the brand theme only. Framed as a page with 16px padding at 1040 and 1680 (the default bracket is 980px wide, the grid does not follow the frame width). States: in-progress (quarter-finals and one semi-final finished, the other semi-final live 1 : 1 with the LIVE badge, the final with Northbridge Rovers against TBD and the kick-off, champion not decided), decided (Westport Albion beat Northbridge Rovers 2 : 1, the champion line), journey-hover (the hover journey of Riverside Wanderers: the rest at half opacity, the semi-final where they went out dashed and their row struck through), journey-pinned (the pinned journey of the champion with the participants legend, its toggle pressed; the rest at a quarter opacity), legend-focus-visible (the Eastvale United toggle forced), compact (density compact, in-progress), continue (quarter-finals and semi-finals with the continue cell, 2 winners advance, dashed connectors) and mirrored (decided, folded in half, compact, so it fits 1040). Numbers (light / dark), from shot pixels at scale 2 at 1040, brand mint, a: winner bar (primary) vs card 1.33 / 13.50; live dot (primary) vs its badge tint 1.24 / 9.67, vs card 1.33 / 13.28; badge tint vs card 1.07 / 1.37; final frame edge (45 % mint) vs page 1.22 / 3.90, vs the glow beside it 1.15 / 2.98, vs its own tint 1.18 / 3.50; the final tint (6 %) vs page 1.03 / 1.11; pressed legend toggle (mint fill) vs page 1.33 / 13.50, its label 15.82 / 15.82; legend toggle focus ring (primary) vs page 1.37 / 13.06; outline toggle edge and label (ink) 7.68 light. Q98 numbers only: connectors, card edges, the continue cell's dashed edge and the journey endpoint's dashed outline vs page 1.26 / 1.73. The journey dimming lowers text under 4.5:1 by design: at half opacity the check reports a dimmed winner code at 3.41 / 2.68 and the dimmed Final label at 2.14 / 3.93, at a quarter opacity 1.73 / 2.21, the struck-through row that went out (0.55 opacity) 2.62 / 2.98; exempted with contrast exceptions, an open point, no decided rule. Decided rules that arise: Q88 (the legend toggle focus ring; the default cells are not links, so no card ring) and Q99a (the winner bar, the live dot and the final frame edge take ink in light; the pressed legend toggle is a mint fill, so it takes a 1px inset ink edge). The ink edge on a mint fill arises, so Q102 arises: b draws the edge in both schemes, c keeps dark as today (light-dark(ink, transparent)). The badge tint and the final tint are band tints, not fills, so they are kept, and the final glow is kept. Q101 does not arise: the only filled button is a pressed toggle, whose hover keeps the fill in the lib. Findings for later: (1) lib bug: the live meta row grows the bracket's compact card past matchHeight: the live semi-final is 87px tall in its 75px cell (65 in 52 at compact), so it hangs 12px (13px) below its cell, the incoming connector meets it 6px above its centre and the gap to the card below shrinks. Drawn as is in every variant. (2) In the mirrored compact layout the final card in its 200px column shows full names and cuts the loser ('Northbridge Rove…') next to the score, where every other compact cell shows codes. (3) The eliminated row's line-through also strikes the emblem letter and the score. (4) The lit journey path keeps the grey connector colour (1.26 / 1.73), so it reads only by the rest fading; the dimmed text is under 4.5:1 (numbers above). (5) In dark the final glow lightens the page beside the frame edge, so the edge drops from 3.90 against the bare page to 2.98 against the glow. Later rounds, left out here: double elimination, swiss and round robin layouts, the third-place match, the mirrored layout at default density, the rounds list and adaptive layout, the skeleton, the prediction pick card, a custom match component on a link (card hover and focus ring), emblems as images, scheduled cells with kick-off times, long names, RTL and the move transitions. Omitted option value (Q182): alignRoundHeaders center draws the same pixels as start, because the default round header fills its column and is already centred.",
|
|
132
132
|
consumerAction: 'a press on a team runs the handler the consumer binds',
|
|
133
|
-
madeBy: ['claude-opus-5-5', 'design check'],
|
|
133
|
+
madeBy: ['claude-opus-5-5', 'design check', 'claude-sonnet-5-5'],
|
|
134
134
|
states: {
|
|
135
135
|
'in-progress': { stage: 'in-progress' },
|
|
136
136
|
decided: { stage: 'decided' },
|
|
@@ -7,7 +7,6 @@ type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
|
7
7
|
type Props = {
|
|
8
8
|
kind: 'dialog' | 'alert';
|
|
9
9
|
long?: boolean;
|
|
10
|
-
close?: Interaction;
|
|
11
10
|
confirm?: Interaction;
|
|
12
11
|
cancel?: Interaction;
|
|
13
12
|
};
|
|
@@ -27,7 +26,7 @@ const LONG = Array.from(
|
|
|
27
26
|
`<p>Round ${index + 1}: every match of this round moves by one week. Teams that already confirmed get asked again, and open predictions stay open until the new kick-off.</p>`,
|
|
28
27
|
).join('');
|
|
29
28
|
|
|
30
|
-
const render = ({ kind, long,
|
|
29
|
+
const render = ({ kind, long, confirm, cancel }: Props) =>
|
|
31
30
|
kind === 'alert'
|
|
32
31
|
? alertDialog({
|
|
33
32
|
kind: 'confirm',
|
|
@@ -41,7 +40,7 @@ const render = ({ kind, long, close, confirm, cancel }: Props) =>
|
|
|
41
40
|
: dialog({
|
|
42
41
|
title: long ? 'Move the season' : 'Move kick-off',
|
|
43
42
|
body: long ? LONG : SHORT,
|
|
44
|
-
close: mark('close'
|
|
43
|
+
close: mark('close'),
|
|
45
44
|
dividers: long ? 'dynamic' : false,
|
|
46
45
|
actions: [
|
|
47
46
|
{ label: 'Cancel', variant: 'outline', attributes: mark('cancel', cancel) },
|
|
@@ -57,14 +56,11 @@ export default definePart({
|
|
|
57
56
|
groups: [
|
|
58
57
|
{
|
|
59
58
|
label: 'Rest',
|
|
60
|
-
states: ['default', '
|
|
59
|
+
states: ['default', 'long-body'],
|
|
61
60
|
},
|
|
62
61
|
{
|
|
63
62
|
label: 'Interaction',
|
|
64
63
|
states: [
|
|
65
|
-
'close-hover',
|
|
66
|
-
'close-active',
|
|
67
|
-
'close-focus-visible',
|
|
68
64
|
'confirm-hover',
|
|
69
65
|
'confirm-active',
|
|
70
66
|
'confirm-focus-visible',
|
|
@@ -80,11 +76,6 @@ export default definePart({
|
|
|
80
76
|
],
|
|
81
77
|
states: {
|
|
82
78
|
default: { kind: 'dialog' },
|
|
83
|
-
cancel: { kind: 'dialog' },
|
|
84
|
-
confirm: { kind: 'dialog' },
|
|
85
|
-
'close-hover': { kind: 'dialog', close: 'hover' },
|
|
86
|
-
'close-active': { kind: 'dialog', close: 'active' },
|
|
87
|
-
'close-focus-visible': { kind: 'dialog', close: 'focus-visible' },
|
|
88
79
|
'confirm-hover': { kind: 'dialog', confirm: 'hover' },
|
|
89
80
|
'confirm-active': { kind: 'dialog', confirm: 'active' },
|
|
90
81
|
'confirm-focus-visible': { kind: 'dialog', confirm: 'focus-visible' },
|
|
@@ -99,11 +90,6 @@ export default definePart({
|
|
|
99
90
|
describe: {
|
|
100
91
|
default:
|
|
101
92
|
'Move kick-off over the backdrop with text, close, Cancel and Save; check the title row and the actions at the end.',
|
|
102
|
-
cancel: 'Move kick-off at rest as the Cancel row of the grid; check Cancel at rest.',
|
|
103
|
-
confirm: 'Move kick-off at rest as the Save row of the grid; check Save at rest.',
|
|
104
|
-
'close-hover': 'The close button hovered; check its round hover tint.',
|
|
105
|
-
'close-active': 'The close button pressed; check that the round tint goes a step past hover.',
|
|
106
|
-
'close-focus-visible': 'The close button with keyboard focus; check the focus ring around it.',
|
|
107
93
|
'confirm-hover': 'Save hovered; check that the filled button takes its hover fill.',
|
|
108
94
|
'confirm-active': 'Save pressed; check that the fill goes a step past hover.',
|
|
109
95
|
'confirm-focus-visible': 'Save with keyboard focus; check the focus ring around the filled button.',
|
|
@@ -117,40 +103,29 @@ export default definePart({
|
|
|
117
103
|
'Move the season with eight paragraphs; check that the body scrolls and the dividers show above and below it.',
|
|
118
104
|
},
|
|
119
105
|
motions: {
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
'close-press': { from: 'close-hover', to: 'close-active' },
|
|
123
|
-
'close-release': { from: 'close-active', to: 'close-hover' },
|
|
124
|
-
'cancel-hover-in': { from: 'cancel', to: 'cancel-hover' },
|
|
125
|
-
'cancel-hover-out': { from: 'cancel-hover', to: 'cancel' },
|
|
106
|
+
'cancel-hover-in': { from: 'default', to: 'cancel-hover' },
|
|
107
|
+
'cancel-hover-out': { from: 'cancel-hover', to: 'default' },
|
|
126
108
|
'cancel-press': { from: 'cancel-hover', to: 'cancel-active' },
|
|
127
109
|
'cancel-release': { from: 'cancel-active', to: 'cancel-hover' },
|
|
128
|
-
'cancel-tap': { from: '
|
|
129
|
-
'cancel-lift': { from: 'cancel-active', to: '
|
|
130
|
-
'confirm-hover-in': { from: '
|
|
131
|
-
'confirm-hover-out': { from: 'confirm-hover', to: '
|
|
110
|
+
'cancel-tap': { from: 'default', to: 'cancel-active' },
|
|
111
|
+
'cancel-lift': { from: 'cancel-active', to: 'default' },
|
|
112
|
+
'confirm-hover-in': { from: 'default', to: 'confirm-hover' },
|
|
113
|
+
'confirm-hover-out': { from: 'confirm-hover', to: 'default' },
|
|
132
114
|
'confirm-press': { from: 'confirm-hover', to: 'confirm-active' },
|
|
133
115
|
'confirm-release': { from: 'confirm-active', to: 'confirm-hover' },
|
|
134
|
-
'confirm-tap': { from: '
|
|
135
|
-
'confirm-lift': { from: 'confirm-active', to: '
|
|
116
|
+
'confirm-tap': { from: 'default', to: 'confirm-active' },
|
|
117
|
+
'confirm-lift': { from: 'confirm-active', to: 'default' },
|
|
136
118
|
},
|
|
137
119
|
grid: {
|
|
138
120
|
columns: ['rest', 'hover', 'active', 'focus-visible'] as const,
|
|
139
121
|
rows: {
|
|
140
|
-
close: {
|
|
141
|
-
rest: 'default',
|
|
142
|
-
hover: 'close-hover',
|
|
143
|
-
active: 'close-active',
|
|
144
|
-
'focus-visible': 'close-focus-visible',
|
|
145
|
-
},
|
|
146
122
|
cancel: {
|
|
147
|
-
rest: '
|
|
123
|
+
rest: 'default',
|
|
148
124
|
hover: 'cancel-hover',
|
|
149
125
|
active: 'cancel-active',
|
|
150
126
|
'focus-visible': 'cancel-focus-visible',
|
|
151
127
|
},
|
|
152
128
|
confirm: {
|
|
153
|
-
rest: 'confirm',
|
|
154
129
|
hover: 'confirm-hover',
|
|
155
130
|
active: 'confirm-active',
|
|
156
131
|
'focus-visible': 'confirm-focus-visible',
|
|
@@ -159,7 +134,6 @@ export default definePart({
|
|
|
159
134
|
},
|
|
160
135
|
widths: [480],
|
|
161
136
|
controls: {
|
|
162
|
-
close: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
163
137
|
cancel: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
164
138
|
confirm: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
165
139
|
},
|
package/design/sdk/ready.json
CHANGED
|
@@ -182,8 +182,39 @@
|
|
|
182
182
|
"pid": 1959033
|
|
183
183
|
},
|
|
184
184
|
"components/dialog": {
|
|
185
|
+
"hash": "624ad01b4a828ac4",
|
|
186
|
+
"files": {
|
|
187
|
+
".ethlete/design/sdk/components/dialog/dialog.css": "5e6d3ef414019fca",
|
|
188
|
+
".ethlete/design/sdk/components/dialog/dialog.ts": "2d1c06ec36192e33",
|
|
189
|
+
"libs/components/design/button.ts": "ddfea10eec42b627",
|
|
190
|
+
"libs/components/design/dialog.ts": "de8b5d9eb2801768",
|
|
191
|
+
"libs/components/design/icon.ts": "829a95253b948ba9",
|
|
192
|
+
"libs/components/design/loader.ts": "a8538f112abe508b",
|
|
193
|
+
"libs/components/src/lib/button/button-properties-styles.component.css": "2cac12648ab9b67a",
|
|
194
|
+
"libs/components/src/lib/button/button.component.css": "c4cb03596f1b1ad0",
|
|
195
|
+
"libs/components/src/lib/button/button.types.ts": "acca1b3657e54715",
|
|
196
|
+
"libs/components/src/lib/button/icon-button.component.css": "69b01a20ae1e4597",
|
|
197
|
+
"libs/components/src/lib/focus-ring/focus-ring-styles.component.css": "d74e1e85f4956e05",
|
|
198
|
+
"libs/components/src/lib/icon/headless/icon-definition.ts": "180b7ea77305a404",
|
|
199
|
+
"libs/components/src/lib/icon/headless/icon-styles.component.css": "95703f321e08a70b",
|
|
200
|
+
"libs/components/src/lib/icon/headless/times-icon.ts": "52047c20b1cf421d",
|
|
201
|
+
"libs/components/src/lib/loader/brand-loader/brand-loader.component.css": "51c3eb538255ba5e",
|
|
202
|
+
"libs/components/src/lib/loader/progress-bar/progress-bar.component.css": "cdaa4e40d8700f48",
|
|
203
|
+
"libs/components/src/lib/loader/spinner/spinner-styles.component.css": "371d1f29b06f24e9",
|
|
204
|
+
"libs/components/src/lib/loader/spinner/spinner-sweep-dashes.ts": "bf8174b68972079b",
|
|
205
|
+
"libs/components/src/lib/overlay/alert-dialog/alert-dialog.component.css": "bd5705bcee2c6364",
|
|
206
|
+
"libs/components/src/lib/overlay/overlay-container.component.css": "6d491dad8b7d85be",
|
|
207
|
+
"libs/components/src/lib/overlay/overlay-main-styles.component.css": "4b8ecd5413495906",
|
|
208
|
+
"libs/components/src/lib/overlay/strategies/dialog-styles.component.css": "19d93f189828f7d2",
|
|
209
|
+
"libs/core/design/interactive-styles.ts": "62c11c5abadb2d61",
|
|
210
|
+
"libs/core/src/lib/theming/color-interactive-styles.component.css": "0c7745ec4a306be7"
|
|
211
|
+
},
|
|
185
212
|
"actions": [],
|
|
186
|
-
"
|
|
213
|
+
"builder": "designer",
|
|
214
|
+
"at": "2026-11-29T13:10:42.308Z",
|
|
215
|
+
"by": "claude-opus-5-5",
|
|
216
|
+
"cmd": "ready",
|
|
217
|
+
"pid": 40500
|
|
187
218
|
},
|
|
188
219
|
"components/form-field": {
|
|
189
220
|
"hash": "61b6966b6745c572",
|
|
@@ -350,27 +381,30 @@
|
|
|
350
381
|
"pid": 1834543
|
|
351
382
|
},
|
|
352
383
|
"components/table": {
|
|
353
|
-
"hash": "
|
|
384
|
+
"hash": "ba13029d7775e74b",
|
|
354
385
|
"files": {
|
|
355
|
-
".ethlete/design/sdk/components/table/table.css": "
|
|
386
|
+
".ethlete/design/sdk/components/table/table.css": "176b2470e6ff182f",
|
|
356
387
|
".ethlete/design/sdk/components/table/table.ts": "f4ef9ffeae6831e7",
|
|
357
388
|
"libs/components/design/icon.ts": "829a95253b948ba9",
|
|
358
389
|
"libs/components/design/skeleton.ts": "8330c3e1c77089c0",
|
|
359
|
-
"libs/components/design/table.ts": "
|
|
360
|
-
"libs/components/src/lib/
|
|
390
|
+
"libs/components/design/table.ts": "737cd729eb731cba",
|
|
391
|
+
"libs/components/src/lib/focus-ring/focus-ring-styles.component.css": "d74e1e85f4956e05",
|
|
392
|
+
"libs/components/src/lib/forms/checkbox/checkbox.component.css": "30c68a19f364e637",
|
|
361
393
|
"libs/components/src/lib/icon/headless/arrow-up-icon.ts": "cbe5a98c211f9eac",
|
|
362
394
|
"libs/components/src/lib/icon/headless/chevron-icon.ts": "d2c88d30d687a8bf",
|
|
363
395
|
"libs/components/src/lib/icon/headless/icon-definition.ts": "180b7ea77305a404",
|
|
364
396
|
"libs/components/src/lib/icon/headless/icon-styles.component.css": "95703f321e08a70b",
|
|
365
397
|
"libs/components/src/lib/icon/headless/triangle-exclamation-icon.ts": "2ddf3400138f653a",
|
|
366
|
-
"libs/components/src/lib/skeleton/skeleton.component.css": "
|
|
398
|
+
"libs/components/src/lib/skeleton/skeleton.component.css": "c343624293bf85e8",
|
|
367
399
|
"libs/components/src/lib/table/table-detail-styles.component.css": "3ea67163eceb1653",
|
|
368
|
-
"libs/components/src/lib/table/table-expander-cell.component.css": "
|
|
369
|
-
"libs/components/src/lib/table/table-group-header-row.component.css": "
|
|
370
|
-
"libs/components/src/lib/table/table-select-cell.component.css": "
|
|
400
|
+
"libs/components/src/lib/table/table-expander-cell.component.css": "be6384c8211de6fe",
|
|
401
|
+
"libs/components/src/lib/table/table-group-header-row.component.css": "0bc1a3a53ac2713f",
|
|
402
|
+
"libs/components/src/lib/table/table-select-cell.component.css": "cefc563db463f8d5",
|
|
371
403
|
"libs/components/src/lib/table/table-skeleton-rows.component.css": "8b984dc0d06fae6d",
|
|
372
|
-
"libs/components/src/lib/table/table-sticky-columns-styles.component.css": "
|
|
373
|
-
"libs/components/src/lib/table/table.component.css": "
|
|
404
|
+
"libs/components/src/lib/table/table-sticky-columns-styles.component.css": "b95e2babaa647ec1",
|
|
405
|
+
"libs/components/src/lib/table/table.component.css": "97bd10a19c98b64d",
|
|
406
|
+
"libs/core/design/interactive-styles.ts": "62c11c5abadb2d61",
|
|
407
|
+
"libs/core/src/lib/theming/color-interactive-styles.component.css": "0c7745ec4a306be7"
|
|
374
408
|
},
|
|
375
409
|
"actions": [
|
|
376
410
|
"collapsed",
|
|
@@ -382,10 +416,10 @@
|
|
|
382
416
|
"selection-removed"
|
|
383
417
|
],
|
|
384
418
|
"builder": "designer",
|
|
385
|
-
"at": "2026-11-
|
|
386
|
-
"by": "claude-
|
|
419
|
+
"at": "2026-11-29T17:22:29.844Z",
|
|
420
|
+
"by": "claude-opus-5-5",
|
|
387
421
|
"cmd": "ready",
|
|
388
|
-
"pid":
|
|
422
|
+
"pid": 2928159
|
|
389
423
|
},
|
|
390
424
|
"components/textarea": {
|
|
391
425
|
"hash": "4636f13b0558fcd2",
|
package/design/table.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { interactiveStyles } from '@ethlete/core/design/interactive-styles';
|
|
2
|
+
import focusRing from '../src/lib/focus-ring/focus-ring-styles.component.css?inline';
|
|
1
3
|
import checkboxBase from '../src/lib/forms/checkbox/checkbox.component.css?inline';
|
|
2
4
|
import { ARROW_UP_ICON } from '../src/lib/icon/headless/arrow-up-icon';
|
|
3
5
|
import { CHEVRON_ICON } from '../src/lib/icon/headless/chevron-icon';
|
|
@@ -90,9 +92,11 @@ export type TableMockOptions = {
|
|
|
90
92
|
attributes?: string;
|
|
91
93
|
};
|
|
92
94
|
|
|
93
|
-
/** The stylesheets `table()` draws with: the real table, feature, checkbox, skeleton and icon CSS. */
|
|
95
|
+
/** The stylesheets `table()` draws with: the real table, feature, checkbox, focus ring, skeleton and icon CSS. */
|
|
94
96
|
export const tableStyles = /* @__PURE__ */ [
|
|
95
97
|
iconBase,
|
|
98
|
+
interactiveStyles,
|
|
99
|
+
focusRing,
|
|
96
100
|
checkboxBase,
|
|
97
101
|
skeletonStyles,
|
|
98
102
|
tableBase,
|
|
@@ -118,7 +122,7 @@ const checkbox = (
|
|
|
118
122
|
const checked = state === 'checked' ? 'true' : state === 'mixed' ? 'mixed' : 'false';
|
|
119
123
|
|
|
120
124
|
return (
|
|
121
|
-
`<et-checkbox class="et-checkbox" role="checkbox" aria-checked="${checked}" aria-label="${label}" tabindex="0"${attributes ? ` ${attributes}` : ''}>` +
|
|
125
|
+
`<et-checkbox class="et-color-interactive et-checkbox et-focus-ring" role="checkbox" aria-checked="${checked}" aria-label="${label}" tabindex="0"${attributes ? ` ${attributes}` : ''}>` +
|
|
122
126
|
`<div class="et-checkbox-box">` +
|
|
123
127
|
`<svg class="et-checkbox-checkmark" viewBox="0 0 16 16" aria-hidden="true"><polyline class="et-checkbox-checkmark-path" points="3.5 8 6.5 11 12.5 5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></polyline></svg>` +
|
|
124
128
|
`<svg class="et-checkbox-indeterminate" viewBox="0 0 16 16" aria-hidden="true"><line class="et-checkbox-indeterminate-path" x1="4" y1="8" x2="12" y2="8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line></svg>` +
|
|
@@ -166,7 +170,7 @@ const bodyCell = (options: TableMockOptions, column: number) => (cell: TableCell
|
|
|
166
170
|
: '';
|
|
167
171
|
const extra = resolved.attributes ? ` ${resolved.attributes}` : '';
|
|
168
172
|
|
|
169
|
-
return `<div class="et-table-cell${sticky.className}" role="cell"${attr('data-align', options.columns[column]?.align)}${attr('data-state', resolved.state)}${attr('tabindex', options.cellNavigation ? -1 : undefined)}${sticky.style}${extra}>${mark}<span class="et-table-cell-text">${resolved.value}</span></div>`;
|
|
173
|
+
return `<div class="et-table-cell${sticky.className}" role="cell"${attr('data-align', options.columns[column]?.align)}${attr('data-state', resolved.state)}${attr('tabindex', options.cellNavigation ? -1 : undefined)}${sticky.style}${extra}>${mark}<span class="et-table-cell-text" title="${resolved.value}" data-et-skip="TRUNCATED">${resolved.value}</span></div>`;
|
|
170
174
|
};
|
|
171
175
|
|
|
172
176
|
const leadHeaderCells = (options: TableMockOptions) =>
|