viewkitjs 0.23.0 → 0.24.0

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 (45) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +1 -1
  3. package/views/dist/controls/grip/grip.d.ts +14 -0
  4. package/views/dist/controls/grip/grip.js +9 -0
  5. package/views/dist/controls/index.d.ts +6 -0
  6. package/views/dist/controls/index.js +6 -0
  7. package/views/dist/controls/internal/hold.d.ts +25 -0
  8. package/views/dist/controls/internal/hold.js +81 -0
  9. package/views/dist/controls/internal/icons.d.ts +8 -0
  10. package/views/dist/controls/internal/icons.js +65 -0
  11. package/views/dist/controls/internal/read-token.d.ts +6 -0
  12. package/views/dist/controls/internal/read-token.js +11 -0
  13. package/views/dist/controls/internal/reorder.d.ts +44 -0
  14. package/views/dist/controls/internal/reorder.js +83 -0
  15. package/views/dist/controls/list/tokens.d.ts +139 -0
  16. package/views/dist/controls/list/tokens.js +37 -0
  17. package/views/dist/controls/list.css +188 -0
  18. package/views/dist/controls/menu-list/keys.d.ts +7 -0
  19. package/views/dist/controls/menu-list/keys.js +29 -0
  20. package/views/dist/controls/menu-list/looks.d.ts +4 -0
  21. package/views/dist/controls/menu-list/looks.js +20 -0
  22. package/views/dist/controls/menu-list/menu-list.d.ts +196 -0
  23. package/views/dist/controls/menu-list/menu-list.js +346 -0
  24. package/views/dist/controls/menu-list/tokens.d.ts +187 -0
  25. package/views/dist/controls/menu-list/tokens.js +49 -0
  26. package/views/dist/controls/menu-list.css +259 -0
  27. package/views/dist/controls/sheet/bottom-sheet.js +3 -0
  28. package/views/dist/controls/sheet.css +3 -0
  29. package/views/dist/controls/tokens.js +4 -0
  30. package/views/dist/grid/chrome/grid-caret-keys.d.ts +7 -0
  31. package/views/dist/grid/chrome/grid-caret-keys.js +22 -0
  32. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
  33. package/views/dist/grid/chrome/useGridFittedWidths.js +16 -3
  34. package/views/dist/grid/chrome/useGridKeyboard.js +3 -0
  35. package/views/dist/looks/index.d.ts +1 -0
  36. package/views/dist/looks/index.js +1 -0
  37. package/views/dist/looks/looks.d.ts +10 -9
  38. package/views/dist/looks/pieces.js +2 -0
  39. package/views/dist/styles.css +443 -11
  40. package/views/dist/styles.unlayered.css +443 -11
  41. package/views/docs/controls/list.md +40 -0
  42. package/views/docs/controls/menu-list.md +52 -0
  43. package/views/docs/getting-started.md +1 -1
  44. package/views/docs/reference/controls.md +40 -0
  45. package/views/docs/reference/looks.md +3 -1
@@ -0,0 +1,259 @@
1
+ /* THE MENU LIST, on a phone and then, at the end, on a computer. Every value it draws with is one of ViewKit's public names, the
2
+ Outright token each stands for listed in menu-list/tokens.ts; this file only says which each part takes. Its options, a
3
+ phone's (menu-list/looks.ts), are data attributes on the frame around it, and each one only
4
+ chooses other tokens:
5
+
6
+ data-menu-list-rows plain · card · joined · words what its rows stand on
7
+ data-menu-list-lines none · full · inset the line between two rows
8
+ data-menu-list-height 48 · 52 · 56 how tall a row is
9
+ data-menu-list-corners lg · xl · 2xl which radius a card and a tile take
10
+ data-menu-list-tiles card · wide · circle · colour how a tile stands: its name inside a card, or under a wide tile, a grey
11
+ circle or a circle in a label colour by place
12
+
13
+ A fifth, data-menu-list-close (hidden · shown), is read by the Menu, not here: a Close row over its rows.
14
+
15
+ A phone has no pointer, so a row has no hover: it shows only its press, from the finger going down until it lifts.
16
+
17
+ The rules sit in the components layer, so a utility class still wins. */
18
+ @layer components {
19
+
20
+ .o-menu-list {
21
+ --menu-list-row: calc(var(--vk-spacing) * 13); --menu-list-corners: var(--vk-radius-xl); --menu-list-inset: calc(var(--vk-spacing) * 4);
22
+ display: grid; gap: calc(var(--vk-spacing) * 3); min-width: 0;
23
+ }
24
+ [data-menu-list-height="48"] .o-menu-list { --menu-list-row: calc(var(--vk-spacing) * 12); }
25
+ [data-menu-list-height="56"] .o-menu-list { --menu-list-row: calc(var(--vk-spacing) * 14); }
26
+ [data-menu-list-corners="lg"] .o-menu-list { --menu-list-corners: var(--vk-radius-lg); }
27
+ [data-menu-list-corners="2xl"] .o-menu-list { --menu-list-corners: var(--vk-radius-2xl); }
28
+
29
+ /* ── A section: rows that belong together, on a card ─────────────────────────────────────────────────────────────── */
30
+ .o-menu-list-section { display: grid; min-width: 0; overflow: hidden; border-radius: var(--menu-list-corners); background-color: var(--vk-overlay-card); }
31
+
32
+ /* ── A group or a pick under its heading: the list's heading over its card, as on a computer, at a phone's size: 14, 4 in
33
+ from the card's edge, 6 over the card. Under Plain, where nothing marks the card's edge, it stands where its
34
+ rows' icons start. Under Words the card floats on the dim, so its heading stands on the card's own ground, over its rows, centred
35
+ as they are, a line under it, as a phone's action sheet holds its title. ─────────────────────────────────────────────────── */
36
+ .o-menu-list-group { display: grid; gap: calc(var(--vk-spacing) * 1.5); min-width: 0; }
37
+ .o-menu-list-group > .o-list-heading { padding: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
38
+ [data-menu-list-rows="plain"] .o-menu-list-group > .o-list-heading { padding-inline: calc(var(--vk-spacing) * 2); }
39
+ [data-menu-list-rows="words"] .o-menu-list-group { gap: 0; overflow: hidden; border-radius: var(--vk-radius-2xl); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-2xl); }
40
+ [data-menu-list-rows="words"] .o-menu-list-group > .o-list-heading { padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4); border-bottom: var(--vk-border-width) solid var(--vk-border); text-align: center; }
41
+ [data-menu-list-rows="words"] .o-menu-list-group > .o-menu-list-section { border-radius: 0; box-shadow: none; }
42
+
43
+ /* ── A row: an icon, its name, and on its right a value, an arrow, a tick or a switch ────────────────────────────── */
44
+ .o-menu-list-row {
45
+ --menu-list-line: var(--menu-list-inset, calc(var(--vk-spacing) * 4));
46
+ position: relative; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; width: 100%; min-width: 0; min-height: var(--menu-list-row, calc(var(--vk-spacing) * 13));
47
+ margin: 0; padding: calc(var(--vk-spacing) * 1.5) var(--menu-list-inset, calc(var(--vk-spacing) * 4)); border: 0; background: none; color: var(--vk-fg);
48
+ font: inherit; font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); text-align: start; text-decoration: none;
49
+ cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
50
+ }
51
+ .o-menu-list-row:has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 8.5); }
52
+ /* A list holding a person's 32px face (the Avatar stack's people on a phone): every row's mark is 32 wide, the face whole
53
+ in it and an icon centred at its own 22, so every name stands 12px after it and the line starts at the words. The list sits in
54
+ :where(), so each rule weighs what it overrides and Full lines, below, still wins. */
55
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row:has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 11); }
56
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark { width: calc(var(--vk-spacing) * 8); }
57
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark:has(> :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"])) { height: calc(var(--vk-spacing) * 8); }
58
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 5.5); }
59
+ .o-menu-list-row:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
60
+ .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
61
+ .o-menu-list-row.o-menu-list-danger { color: var(--vk-danger); }
62
+ .o-menu-list-row:is(:disabled, [data-disabled]) { color: var(--vk-fg-disabled); cursor: not-allowed; }
63
+
64
+ .o-menu-list-mark { flex: none; display: grid; place-items: center; width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
65
+ .o-menu-list-mark > svg { width: 100%; height: 100%; }
66
+ .o-menu-list-name { flex: 1; display: grid; min-width: 0; }
67
+ .o-menu-list-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
68
+ .o-menu-list-name > .o-menu-list-note { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: normal; color: var(--vk-fg-subtle); }
69
+ .o-menu-list-row:is(:disabled, [data-disabled]) .o-menu-list-note { color: var(--vk-fg-disabled); }
70
+ .o-menu-list-value { flex: none; max-width: calc(var(--vk-spacing) * 38); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
71
+ /* What stands on its right, a count or a Tag: a phone's value size, the Menu's count's colour and figures. */
72
+ .o-menu-list-end { flex: none; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
73
+ /* A level's detail in force: in the brand. */
74
+ .o-menu-list-end[data-on] { color: var(--vk-fg-accent); }
75
+ /* A tick as an eye, at its end: 20, open while on, crossed and quieter while off, greyed on a row that can't be used. */
76
+ .o-menu-list-eye { flex: none; display: grid; place-items: center; color: var(--vk-fg-subtle); }
77
+ .o-menu-list-eye > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
78
+ .o-menu-list-eye:not([data-on]) { color: var(--vk-fg-subtlest); }
79
+ .o-menu-list-row:is(:disabled, [data-disabled]) > .o-menu-list-eye { color: var(--vk-fg-disabled); }
80
+ .o-menu-list-more { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin-right: calc(var(--vk-spacing) * -0.5); fill: none; stroke: var(--vk-fg-subtlest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
81
+ .o-menu-list-tick { flex: none; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
82
+
83
+ /* A row with a grip: the grip's dots at its start, 16, faint, as the grip draws them; the line starts at the words,
84
+ after the grip's 16 and the gap's 12, and with a mark after its 22 and 12 more. A row is held, then dragged ("Hold, then drag",
85
+ Mihai, 18 Nov 2026): nothing stops a swipe from scrolling before it is held, and a long press never opens the phone's own
86
+ callout on it. Held, it stands over the others on the overlay's ground with the shadow, as the sort editor's held rule does. */
87
+ .o-menu-list-grip { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--vk-fg-subtlest); }
88
+ .o-menu-list [data-drag-start] { -webkit-touch-callout: none; }
89
+ /* How long a finger rests on a row before it lifts, read by the script that lifts it. */
90
+ .o-menu-list-row { --menu-list-hold: var(--vk-hold-delay); }
91
+ .o-menu-list-grip[data-room] { visibility: hidden; }
92
+ .o-menu-list-row:has(> .o-menu-list-grip) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 7); }
93
+ .o-menu-list-row:has(> .o-menu-list-grip):has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 15.5); }
94
+ .o-menu-list-row[data-lifted] { z-index: var(--vk-layer-popup); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); }
95
+ .o-menu-list-row[data-lifted]::before, .o-menu-list-row[data-lifted] + .o-menu-list-row::before { opacity: 0; }
96
+
97
+ /* The line between two rows, starting at the words, which goes under a press, so a pressed row reads as one block. */
98
+ .o-menu-list-row + .o-menu-list-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--menu-list-line); height: var(--vk-border-width); background-color: var(--vk-border-overlay-card); }
99
+ .o-menu-list-row:active:not(:disabled, [data-disabled])::before, .o-menu-list-row:active:not(:disabled, [data-disabled]) + .o-menu-list-row::before { opacity: 0; }
100
+
101
+ /* Its lines the card's whole width, or none. */
102
+ [data-menu-list-lines="none"] .o-menu-list-row::before { display: none; }
103
+
104
+ /* Plain: on the sheet, no ground. A row keeps its own padding, and its press reaches a little past the page's line. */
105
+ [data-menu-list-rows="plain"] .o-menu-list-section { margin-inline: calc(var(--vk-spacing) * -2); overflow: visible; border-radius: 0; background-color: transparent; }
106
+ [data-menu-list-rows="plain"] :where(.o-menu-list) .o-menu-list-row { border-radius: var(--vk-radius-lg); }
107
+ [data-menu-list-rows="plain"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-pressed); }
108
+
109
+ /* Joined: each row a tile, a hair apart, its section's two ends rounded. */
110
+ [data-menu-list-rows="joined"] .o-menu-list-section { gap: calc(var(--vk-spacing) * 0.75); overflow: visible; border-radius: 0; background-color: transparent; }
111
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row { border-radius: var(--vk-radius-sm); background-color: var(--vk-overlay-card); }
112
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:first-child { border-start-start-radius: var(--menu-list-corners); border-start-end-radius: var(--menu-list-corners); }
113
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:last-child { border-end-start-radius: var(--menu-list-corners); border-end-end-radius: var(--menu-list-corners); }
114
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row::before { display: none; }
115
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
116
+
117
+ /* Words: centred, no icons, each section a card of its own on the sheet's ground. It stands on nothing, clear of the home bar: the
118
+ sheet round it gives up its ground, its shadow and its handle. */
119
+ [data-menu-list-rows="words"] .o-menu-list { gap: calc(var(--vk-spacing) * 2); }
120
+ [data-menu-list-rows="words"] .o-menu-list-section { border-radius: var(--vk-radius-2xl); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-2xl); }
121
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row { justify-content: center; text-align: center; font-weight: var(--vk-font-weight-medium); }
122
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row::before { background-color: var(--vk-border); }
123
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-pressed); }
124
+ [data-menu-list-rows="words"] :where(.o-menu-list) :is(.o-menu-list-mark, .o-menu-list-more, .o-menu-list-value, .o-menu-list-end) { display: none; }
125
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-name { flex: none; }
126
+ [data-menu-list-rows="words"] .o-sheet.o-sheet:has(.o-menu-list) { background-color: transparent; box-shadow: none; }
127
+ [data-menu-list-rows="words"] .o-sheet.o-sheet:has(.o-menu-list) > .o-sheet-cut { background-color: transparent; clip-path: none; overflow: visible; }
128
+ [data-menu-list-rows="words"] .o-sheet:has(.o-menu-list) .o-sheet-handle { display: none; }
129
+ [data-menu-list-rows="words"] .o-sheet:has(.o-menu-list) .o-sheet-body { padding: 0 0 max(calc(var(--vk-spacing) * 2), var(--sheet-home)); overflow: visible; }
130
+
131
+ [data-menu-list-lines="full"] .o-menu-list-row { --menu-list-line: 0px; }
132
+
133
+ /* ── The tiles: the few done most, side by side over its rows ────────────────────────────────────────────────────── */
134
+ .o-menu-list-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(var(--vk-spacing) * 2); min-width: 0; }
135
+ .o-menu-list-tile {
136
+ display: grid; justify-items: center; align-content: center; gap: calc(var(--vk-spacing) * 1); box-sizing: border-box; min-width: 0; min-height: calc(var(--vk-spacing) * 19);
137
+ margin: 0; padding: calc(var(--vk-spacing) * 1); border: 0; border-radius: var(--menu-list-corners); background-color: var(--vk-overlay-card); color: var(--vk-fg);
138
+ font: inherit; font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-spacing) * 4); text-align: center; cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
139
+ }
140
+ .o-menu-list-tile:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
141
+ .o-menu-list-tile:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
142
+ .o-menu-list-tile:is(:disabled, [data-disabled]) { color: var(--vk-fg-disabled); cursor: not-allowed; }
143
+ /* Its other three ways (Mihai's picks, 16 Nov 2026): the tile stands clear and its mark
144
+ is its ground, the icon alone in it, the name 6 under it, two lines at most. Wide, after ClickUp: a grey tile 56 tall, as wide as its
145
+ column, at the Corners. Circle, after Google Maps: a grey circle 52. Colour, after WhatsApp's attach sheet: a circle 56 in a label colour
146
+ by place, blue, amber, purple and green, the icon in text-inverse. A press shows on the mark, each colour's own pressed shade; a tile that
147
+ can't be used stands on the neutral ground in the disabled ink. */
148
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile {
149
+ align-content: start; gap: calc(var(--vk-spacing) * 1.5); min-height: 0; padding: 0; border-radius: 0; background-color: transparent;
150
+ }
151
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:active:not(:disabled, [data-disabled]) { background-color: transparent; }
152
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:focus-visible { outline: none; }
153
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:focus-visible > .o-menu-list-mark { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
154
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile > .o-menu-list-mark { box-sizing: border-box; background-color: var(--vk-overlay-card); }
155
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
156
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-overlay-card-pressed); }
157
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile-name {
158
+ display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
159
+ }
160
+ [data-menu-list-tiles="wide"] .o-menu-list-tile > .o-menu-list-mark { width: 100%; height: calc(var(--vk-spacing) * 14); border-radius: var(--menu-list-corners); }
161
+ [data-menu-list-tiles="circle"] .o-menu-list-tile > .o-menu-list-mark { width: calc(var(--vk-spacing) * 13); height: calc(var(--vk-spacing) * 13); border-radius: var(--vk-radius-full); }
162
+ [data-menu-list-tiles="circle"] .o-menu-list-tile > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
163
+ [data-menu-list-tiles="colour"] .o-menu-list-tile > .o-menu-list-mark { width: calc(var(--vk-spacing) * 14); height: calc(var(--vk-spacing) * 14); border-radius: var(--vk-radius-full); color: var(--vk-fg-inverse); }
164
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(1) > .o-menu-list-mark { background-color: var(--vk-label-blue); }
165
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(2) > .o-menu-list-mark { background-color: var(--vk-label-amber); }
166
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(3) > .o-menu-list-mark { background-color: var(--vk-label-purple); }
167
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(4) > .o-menu-list-mark { background-color: var(--vk-label-green); }
168
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(1):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-blue-pressed); }
169
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(2):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-amber-pressed); }
170
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(3):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-purple-pressed); }
171
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(4):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-green-pressed); }
172
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:is(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-neutral); color: var(--vk-fg-disabled); }
173
+
174
+ /* ── On a computer: a menu's rows, inside a menu's panel or standing on a page. Base UI marks a row data-highlighted
175
+ under the pointer or the keyboard, a choice data-checked, a row that can't be used data-disabled, and a row whose choices are
176
+ open data-popup-open; list.css draws the row itself, this file its parts. ───────────────────── */
177
+ /* How long the pointer rests on a row one level in before its panel opens, read by the script that opens it. */
178
+ .o-menu-row { --menu-sub-wait: var(--vk-submenu-delay); }
179
+ /* ── A row: its 16px icon 8px before its name, then its keys, its value or its way further in ──────── */
180
+ .o-menu-row { white-space: nowrap; text-decoration: none; }
181
+ .o-menu-row > svg:first-child { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; stroke-linejoin: round; }
182
+ .o-menu-row:is([data-highlighted], [data-popup-open], [data-force="hover"]) > svg:first-child { stroke: var(--vk-fg); }
183
+ .o-menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
184
+ .o-menu-keys { flex: none; display: flex; gap: calc(var(--vk-spacing) * 0.75); margin-left: calc(var(--vk-spacing) * 6); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
185
+ .o-menu-keys kbd { font: inherit; }
186
+ /* How many it holds, at its end in the quietest colour; a Spinner while that loads. */
187
+ .o-menu-count { flex: none; display: flex; margin-left: auto; padding-left: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
188
+ .o-menu-value { flex: none; max-width: calc(var(--vk-spacing) * 30); margin-left: calc(var(--vk-spacing) * 4); overflow: hidden; text-overflow: ellipsis; font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
189
+ /* A choice's detail: what it reads as (a date style's sample), quiet, before its tick. */
190
+ .o-menu-detail { flex: none; margin-left: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
191
+ .o-menu-more { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); margin-right: calc(var(--vk-spacing) * -0.5); fill: none; stroke: var(--vk-fg-subtlest); stroke-linecap: round; stroke-linejoin: round; }
192
+ .o-menu-row .o-list-tick { margin-left: calc(var(--vk-spacing) * 4); }
193
+
194
+ /* ── Takes something away: in the danger colour, washed under the pointer so it warns before the click ─ */
195
+ .o-menu-row.o-menu-danger { color: var(--vk-danger); }
196
+ .o-menu-danger > svg:first-child, .o-menu-danger:is([data-highlighted], [data-force="hover"]) > svg:first-child { stroke: var(--vk-danger); }
197
+ .o-menu-danger .o-menu-keys { color: var(--vk-danger); }
198
+ .o-menu-row.o-menu-danger:is([data-highlighted], [data-force="hover"]) { background-color: var(--vk-danger-subtlest); }
199
+
200
+ /* ── Can't be used: greyed, no fill under the pointer; its tooltip says why ─────────────────────────── */
201
+ .o-menu-row[data-disabled] { color: var(--vk-fg-disabled); cursor: not-allowed; }
202
+ .o-menu-row[data-disabled] > svg:first-child { stroke: var(--vk-fg-disabled); }
203
+ .o-menu-row[data-disabled]:is([data-highlighted], [data-force="hover"]) { background-color: transparent; }
204
+
205
+ /* A tick: the Checkbox's own box before its name (CheckboxMark, checkbox.css), ticked and greyed by its row. */
206
+ /* A link that leaves the app: an arrow after its name. */
207
+ .o-menu-away { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); margin-left: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtlest); stroke-linecap: round; stroke-linejoin: round; }
208
+
209
+ /* A row alone, shown in one of its states. */
210
+ .o-list.o-menu.o-menu-state { min-width: calc(var(--vk-spacing) * 46); box-shadow: none; }
211
+
212
+ /* ── Shown open in the page: a choice row's choices beside it, their edges on one line, their first row
213
+ level with it; room kept for them. A computer's cases: on a phone the page's On the phone stands the Sheet at its step (sheet.tsx) ─ */
214
+ .o-menu-pair { padding-right: calc(var(--vk-spacing) * 52); }
215
+ .o-menu-subwrap { position: relative; }
216
+ .o-menu-subwrap > .o-menu-sub { position: absolute; z-index: 2; top: calc(-1 * var(--list-pad, var(--vk-spacing)) - var(--vk-border-width)); left: calc(100% + var(--vk-spacing)); }
217
+
218
+ /* ── What scrolls in a menu's panel (MenuScroll): its rows, alone, when the panel is taller than the room on screen. ── */
219
+ .o-menu-list-scroll { display: grid; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
220
+
221
+ /* ── In a panel that is no menu: its rows stand in their holder's panel (the Pane, a Popover), as a menu's in its: a
222
+ row's corners as the list's (list.css's .o-list .o-list-row), no panel of its own. ─────────────────────────────────── */
223
+ .o-menu-rows { --list-row-corners-in: var(--list-row-corners, var(--list-row-r, var(--list-box-r, var(--vk-radius-lg)))); display: grid; min-width: 0; outline: none; }
224
+ .o-menu-rows .o-list-row { --list-row-rad: var(--list-row-corners-in); --list-row-pill-in: var(--list-row-corners-pill, var(--list-row-pill, var(--list-box-pill, 0))); }
225
+ /* A tick as the Switch, at its end. */
226
+ .o-menu-switch > .o-switch { flex: none; margin-left: calc(var(--vk-spacing) * 4); }
227
+ /* A value in force (a filter's "1", a sort's "Amount +1"): in the brand. */
228
+ .o-menu-value[data-on] { color: var(--vk-fg-accent); }
229
+ /* A tick as an eye, at its end: open while it is on, crossed while off, quieter; greyed on a row that can't be used. */
230
+ .o-menu-eye { flex: none; display: grid; place-items: center; margin-left: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtle); }
231
+ .o-menu-eye > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
232
+ .o-menu-eye:not([data-on]) { color: var(--vk-fg-subtlest); }
233
+ .o-menu-row[data-disabled] > .o-menu-eye { color: var(--vk-fg-disabled); }
234
+
235
+ /* The eye's change, a phone's and a panel's alike: its outline stays; its slash, a path one long, is drawn across from its
236
+ top as it is crossed (arriving, ease-out) and drawn back away as it opens (leaving, ease-in, so its last dot goes at once), on
237
+ duration-fast, the band cut from the outline beside it drawn with it, the pupil's half above the slash fading, and its colour
238
+ easing. The slash is hidden only once drawn away, so no dot stands at its top. */
239
+ :is(.o-menu-eye, .o-menu-list-eye) { transition: color var(--vk-duration-fast) var(--vk-ease-out); }
240
+ :is(.o-eye-slash, .o-eye-cut) { stroke-dasharray: 1 1; stroke-dashoffset: 1; visibility: hidden;
241
+ transition: stroke-dashoffset var(--vk-duration-fast) var(--vk-ease-in), visibility var(--vk-duration-fast); }
242
+ .o-eye-upper { transition: opacity var(--vk-duration-fast) var(--vk-ease-out); }
243
+ :not([data-on]) > svg > .o-eye-slash, :not([data-on]) > svg > mask > .o-eye-cut { stroke-dashoffset: 0; visibility: visible; transition-timing-function: var(--vk-ease-out); }
244
+ :not([data-on]) > svg > .o-eye-upper { opacity: 0; }
245
+ @media (prefers-reduced-motion: reduce) { :is(.o-menu-eye, .o-menu-list-eye, .o-eye-slash, .o-eye-cut, .o-eye-upper) { transition: none; } }
246
+ /* A row with a grip: the grip at its start; held, it stands over the others on the overlay's ground, as the sort
247
+ editor's held rule does, its smooth clip let go so its shadow shows. */
248
+ .o-menu-row > .o-menu-grip { flex: none; margin-left: calc(var(--vk-spacing) * -1); touch-action: none; }
249
+ /* A row with no grip among rows that carry one keeps the grip's room (Mihai, 19 Nov 2026: "Keep the room"): the grip itself, out of
250
+ sight, standing where a grip stands, so every row's mark is in one line. */
251
+ .o-menu-grip-room { display: contents; visibility: hidden; }
252
+ .o-menu-grip-room > .o-button { flex: none; margin-left: calc(var(--vk-spacing) * -1); }
253
+ .o-menu-row[data-lifted] { position: relative; z-index: var(--vk-layer-popup); clip-path: none; background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); cursor: grabbing; }
254
+ .o-menu-row[data-lifted] > .o-menu-grip { cursor: grabbing; }
255
+ }
256
+
257
+ /* What a list of rows with a grip says to a screen reader alone: each move, as it is made. Out of sight, as the Status's
258
+ word standing alone (status.css). */
259
+ .o-menu-said { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@@ -182,6 +182,9 @@ function useSheetMotion({ on, open, form, standing, points, point, popup, viewpo
182
182
  end.style.top = `${window.scrollY + window.innerHeight}px`;
183
183
  colours.current = { sheet: getComputedStyle(popup.querySelector(".o-sheet-cut") ?? popup).backgroundColor, dim: getComputedStyle(backdrop.current ?? popup).backgroundColor };
184
184
  end.style.backgroundColor = form === "full" || form === "edge" ? colours.current.sheet : colours.current.dim;
185
+ const spring = getComputedStyle(popup);
186
+ for (const name of ["--sheet-spring-time", "--sheet-spring-ease"])
187
+ end.style.setProperty(name, spring.getPropertyValue(name).trim());
185
188
  doc.body.append(end);
186
189
  below.current = end;
187
190
  return () => { afterMotion([popup], () => { end.remove(); if (below.current === end)
@@ -146,6 +146,9 @@
146
146
  .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) { background-color: transparent; }
147
147
  .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *)::after { background-color: var(--vk-overlay); }
148
148
  .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) > .o-sheet-cut { background-color: var(--vk-overlay); clip-path: var(--sheet-outline); }
149
+ /* Its outline's bottom and foot are its own: they inherit, so what it holds (an Input, a Tag, each drawing the same outline)
150
+ would take its square bottom. --sheet-outline was worked out on the sheet, so the cut keeps it. */
151
+ .o-sheet:not([data-sheet-smoothing="round"] *) > .o-sheet-cut { --smooth-b: initial; --smooth-foot: initial; }
149
152
  }
150
153
 
151
154
  /* A sheet on a sheet: the one below steps back and stays still; only the top one is live. */
@@ -17,6 +17,8 @@ import { OPTION_PRIVATE, OPTION_TOKENS } from "./option/tokens.js";
17
17
  import { STATUS_PRIVATE, STATUS_TOKENS } from "./status/tokens.js";
18
18
  import { SWITCH_PRIVATE, SWITCH_TOKENS } from "./switch/tokens.js";
19
19
  import { TAG_PRIVATE, TAG_TOKENS } from "./tag/tokens.js";
20
+ import { LIST_PRIVATE, LIST_TOKENS } from "./list/tokens.js";
21
+ import { MENU_LIST_PRIVATE, MENU_LIST_TOKENS } from "./menu-list/tokens.js";
20
22
  const CONTROLS_OWN = {
21
23
  button: { tokens: BUTTON_TOKENS, private: BUTTON_PRIVATE },
22
24
  spinner: { tokens: SPINNER_TOKENS, private: SPINNER_PRIVATE },
@@ -37,6 +39,8 @@ const CONTROLS_OWN = {
37
39
  option: { tokens: OPTION_TOKENS, private: OPTION_PRIVATE },
38
40
  status: { tokens: STATUS_TOKENS, private: STATUS_PRIVATE },
39
41
  switch: { tokens: SWITCH_TOKENS, private: SWITCH_PRIVATE },
42
+ list: { tokens: LIST_TOKENS, private: LIST_PRIVATE },
43
+ "menu-list": { tokens: MENU_LIST_TOKENS, private: MENU_LIST_PRIVATE },
40
44
  };
41
45
  export const VK_CONTROL_TOKENS_BY_PIECE = Object.fromEntries(Object.entries(CONTROLS_OWN).map(([piece, own]) => [piece, own.tokens]));
42
46
  export const VK_CONTROL_TOKENS = Object.entries(VK_CONTROL_TOKENS_BY_PIECE)
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Home and End in a box of the grid's (a cell's editor): the caret to the start or the end of its line, ⇧ extending the
3
+ * selection, as Windows and Linux do. On a Mac a browser gives Home and End to the scroller instead (the caret moves by ⌘←
4
+ * and ⌘→), so End scrolled the whole grid to its foot and Home to its top, the cell being edited half under the header.
5
+ * Returns whether it took the key: a box with no caret (an email or a number box) leaves it alone.
6
+ */
7
+ export declare function moveCaretToLineEdge(event: KeyboardEvent): boolean;
@@ -0,0 +1,22 @@
1
+ export function moveCaretToLineEdge(event) {
2
+ const box = event.target;
3
+ if (!(box instanceof HTMLInputElement || box instanceof HTMLTextAreaElement))
4
+ return false;
5
+ if ((event.key !== "Home" && event.key !== "End") || event.metaKey || event.ctrlKey || event.altKey)
6
+ return false;
7
+ const start = box.selectionStart, end = box.selectionEnd;
8
+ if (start == null || end == null)
9
+ return false;
10
+ const back = box.selectionDirection === "backward";
11
+ const anchor = back ? end : start, focus = back ? start : end;
12
+ const value = box.value;
13
+ const next = event.key === "Home"
14
+ ? focus === 0 ? 0 : value.lastIndexOf("\n", focus - 1) + 1
15
+ : value.indexOf("\n", focus) < 0 ? value.length : value.indexOf("\n", focus);
16
+ event.preventDefault();
17
+ if (event.shiftKey)
18
+ box.setSelectionRange(Math.min(anchor, next), Math.max(anchor, next), next < anchor ? "backward" : "forward");
19
+ else
20
+ box.setSelectionRange(next, next);
21
+ return true;
22
+ }
@@ -14,6 +14,9 @@ export declare const GridFitContext: import("react").Context<(() => void) | null
14
14
  * over the grid's scale. One layout of the drawn cells, inside a layout effect, so the new widths are drawn before the
15
15
  * paint and no width is seen changing; once every visible column is fitted, a commit costs a lookup per column.
16
16
  *
17
+ * A grid drawn where nothing is laid out (under a box `hidden` or `display: none` takes out of the page) reads every
18
+ * box at 0: it keeps none of those reads, and fits once it is laid out, when its size first changes.
19
+ *
17
20
  * `skip`: columns left at their default (on a phone, the pinned ones). `fit` runs after the grid's own commits and,
18
21
  * through `GridFitContext`, after each group's.
19
22
  */
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { createContext, useCallback, useLayoutEffect, useRef, useState } from "react";
3
+ import { flushSync } from "react-dom";
3
4
  import { fittedColumnWidth } from "../../model/column-state.js";
4
5
  const NATURAL = { width: "max-content", minWidth: "0", maxWidth: "none", flex: "none" };
5
6
  export const GridFitContext = createContext(null);
@@ -31,16 +32,28 @@ export function useGridFittedWidths({ rootRef, columns, stored, scale, skip, })
31
32
  for (const box of boxes)
32
33
  Object.assign(box.style, NATURAL);
33
34
  const read = (box) => (box.offsetWidth + 1) / scale;
35
+ const laidOut = boxes.some((box) => box.offsetWidth > 0);
34
36
  const next = {};
35
- for (const { col, cells, header } of reads) {
36
- next[col.id] = fittedColumnWidth(col, Math.max(...cells.map(read)), header ? read(header) : 0);
37
- }
37
+ if (laidOut)
38
+ for (const { col, cells, header } of reads) {
39
+ next[col.id] = fittedColumnWidth(col, Math.max(...cells.map(read)), header ? read(header) : 0);
40
+ }
38
41
  boxes.forEach((box, i) => {
39
42
  box.style.cssText = kept[i];
40
43
  });
44
+ if (!laidOut)
45
+ return;
41
46
  done.current = { ...done.current, ...next };
42
47
  setFitted(done.current);
43
48
  }, [rootRef]);
44
49
  useLayoutEffect(fit);
50
+ useLayoutEffect(() => {
51
+ const root = rootRef.current;
52
+ if (!root || typeof ResizeObserver === "undefined")
53
+ return;
54
+ const sized = new ResizeObserver(() => flushSync(fit));
55
+ sized.observe(root);
56
+ return () => sized.disconnect();
57
+ }, [fit, rootRef]);
45
58
  return { fitted, fit };
46
59
  }
@@ -7,6 +7,7 @@ import { gridColumnInspectable, isWholeTextColumn } from "../../model/column-ins
7
7
  import { findGridCell, gridCellCutOff } from "./cell-cut-off.js";
8
8
  import { gridRowIdFromKey } from "../core/coordinates.js";
9
9
  import { activeRangeHead, gridNavIntent, nextCellLinear, nextCellPos, resolveNavTarget, wholeTableRect, } from "../core/nav.js";
10
+ import { moveCaretToLineEdge } from "./grid-caret-keys.js";
10
11
  import { copyCell } from "./cell-clipboard.js";
11
12
  import { GridWaitContext } from "./grid-wait.js";
12
13
  import { GRID_KEY_OWNING_SURFACES, gridFocusElement } from "./useGridFocus.js";
@@ -215,6 +216,8 @@ export function useGridKeyboard({ rootRef, focusedCell, editingCell, editingEnab
215
216
  };
216
217
  const onKeyDown = (event) => {
217
218
  const target = event.target;
219
+ if (moveCaretToLineEdge(event))
220
+ return;
218
221
  if (target?.closest?.(KEY_OWNING_SURFACES))
219
222
  return;
220
223
  if (event.key === "Escape" && bodyInnerStepFrame(target))
@@ -22,3 +22,4 @@ export { OPTION_LOOKS, optionColours, type OptionColour, type OptionLookOptionId
22
22
  export { STATUS_LOOKS, type StatusLookOptionId } from "../controls/status/looks.js";
23
23
  export { SWITCH_LOOKS, type SwitchLookOptionId } from "../controls/switch/looks.js";
24
24
  export { TAG_LOOKS, type TagLookOptionId } from "../controls/tag/looks.js";
25
+ export { MENU_LIST_LOOKS, type MenuListLookOptionId } from "../controls/menu-list/looks.js";
@@ -18,3 +18,4 @@ export { OPTION_LOOKS, optionColours } from "../controls/option/looks.js";
18
18
  export { STATUS_LOOKS } from "../controls/status/looks.js";
19
19
  export { SWITCH_LOOKS } from "../controls/switch/looks.js";
20
20
  export { TAG_LOOKS } from "../controls/tag/looks.js";
21
+ export { MENU_LIST_LOOKS } from "../controls/menu-list/looks.js";
@@ -20,28 +20,29 @@ export type LookOption<Id extends string = string> = {
20
20
  readonly demo?: false;
21
21
  readonly values: readonly LookValue[];
22
22
  };
23
- /** A named set of picks, one value for every option. */
24
- export type Look<Id extends string = string> = {
23
+ /** A named set of picks, one value for every option it picks: every option, unless the piece names fewer (`Picked`), the
24
+ * ones an app sets alone, outside any look, left out. */
25
+ export type Look<Id extends string = string, Picked extends Id = Id> = {
25
26
  readonly id: string;
26
27
  readonly name: string;
27
28
  readonly device?: LookDevice;
28
- readonly picks: Readonly<Record<Id, string>>;
29
+ readonly picks: Readonly<Record<Picked, string>>;
29
30
  };
30
31
  /** A piece's options and looks. Nothing picked wears each option's default (`def`), My preset's pick, which no look need
31
32
  * match whole. */
32
- export type PieceLooks<Id extends string = string> = {
33
+ export type PieceLooks<Id extends string = string, Picked extends Id = Id> = {
33
34
  readonly id: string;
34
35
  readonly name: string;
35
36
  readonly options: readonly LookOption<Id>[];
36
- readonly looks: readonly Look<Id>[];
37
+ readonly looks: readonly Look<Id, Picked>[];
37
38
  };
38
39
  /** Some options' picks, by option id. */
39
40
  export type LookPicks<Id extends string = string> = Partial<Record<Id, string>>;
40
41
  /** `data-<piece>-<option>` for every option: the pick when the option has that value, else its default. */
41
- export declare function lookAttrs<Id extends string>(piece: PieceLooks<Id>, picks?: LookPicks<Id>): Record<string, string>;
42
+ export declare function lookAttrs<Id extends string>(piece: PieceLooks<Id, never>, picks?: LookPicks<Id>): Record<string, string>;
42
43
  /** A look's picks by its id; undefined for an id the piece has no look by. */
43
- export declare function lookPicks<Id extends string>(piece: PieceLooks<Id>, look: string): LookPicks<Id> | undefined;
44
+ export declare function lookPicks<Id extends string>(piece: PieceLooks<Id, never>, look: string): LookPicks<Id> | undefined;
44
45
  /** The named options' values from picks, each the option's default when missing or unknown. */
45
- export declare function lookWorn<Id extends string, K extends Id>(piece: PieceLooks<Id>, picks: LookPicks<Id> | undefined, ids: readonly K[]): Record<K, string>;
46
+ export declare function lookWorn<Id extends string, K extends Id>(piece: PieceLooks<Id, never>, picks: LookPicks<Id> | undefined, ids: readonly K[]): Record<K, string>;
46
47
  /** The same, read from the closest frame round `el` carrying each `data-<piece>-<option>`; outside any frame, the defaults. */
47
- export declare function lookWornOf<Id extends string, K extends Id>(piece: PieceLooks<Id>, el: Element | null, ids: readonly K[]): Record<K, string>;
48
+ export declare function lookWornOf<Id extends string, K extends Id>(piece: PieceLooks<Id, never>, el: Element | null, ids: readonly K[]): Record<K, string>;
@@ -16,6 +16,7 @@ import { OPTION_LOOKS } from "../controls/option/looks.js";
16
16
  import { STATUS_LOOKS } from "../controls/status/looks.js";
17
17
  import { SWITCH_LOOKS } from "../controls/switch/looks.js";
18
18
  import { TAG_LOOKS } from "../controls/tag/looks.js";
19
+ import { MENU_LIST_LOOKS } from "../controls/menu-list/looks.js";
19
20
  export const LOOKS = [
20
21
  GRID_LOOKS,
21
22
  BUTTON_LOOKS,
@@ -35,4 +36,5 @@ export const LOOKS = [
35
36
  TAG_LOOKS,
36
37
  STATUS_LOOKS,
37
38
  SWITCH_LOOKS,
39
+ MENU_LIST_LOOKS,
38
40
  ];