@fusion.dev/helix-templates 0.139.0 → 0.140.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 (57) hide show
  1. package/package.json +1 -1
  2. package/templates/angular/src/app/data.ts +17 -17
  3. package/templates/angular/src/app/docs.ts +9 -9
  4. package/templates/angular/src/app/landing.html +36 -71
  5. package/templates/angular/src/app/landing.ts +0 -2
  6. package/templates/angular/src/app/overview.html +2 -2
  7. package/templates/angular/src/app/pathname.ts +1 -1
  8. package/templates/angular/src/app/signup-form.html +9 -10
  9. package/templates/angular/src/app/site-footer.html +1 -1
  10. package/templates/angular/src/app/site-header.ts +2 -3
  11. package/templates/angular/src/app.css +144 -152
  12. package/templates/react-nextjs/app/app.css +144 -152
  13. package/templates/react-nextjs/app/data.ts +17 -17
  14. package/templates/react-nextjs/app/docs.ts +9 -9
  15. package/templates/react-nextjs/app/landing.tsx +63 -121
  16. package/templates/react-nextjs/app/overview.tsx +24 -26
  17. package/templates/react-nextjs/app/signup-form.tsx +36 -39
  18. package/templates/react-nextjs/app/site-footer.tsx +7 -10
  19. package/templates/react-nextjs/app/site-header.tsx +17 -21
  20. package/templates/react-nextjs/helix-jsx.d.ts +5 -7
  21. package/templates/react-vite/helix-jsx.d.ts +5 -7
  22. package/templates/react-vite/src/app.css +144 -152
  23. package/templates/react-vite/src/data.ts +17 -17
  24. package/templates/react-vite/src/docs.ts +9 -9
  25. package/templates/react-vite/src/landing.tsx +63 -121
  26. package/templates/react-vite/src/overview.tsx +24 -26
  27. package/templates/react-vite/src/routes.tsx +11 -13
  28. package/templates/react-vite/src/signup-form.tsx +36 -39
  29. package/templates/react-vite/src/site-footer.tsx +7 -10
  30. package/templates/react-vite/src/site-header.tsx +15 -19
  31. package/templates/solid-vite/src/app.css +144 -152
  32. package/templates/solid-vite/src/data.ts +17 -17
  33. package/templates/solid-vite/src/docs.ts +9 -9
  34. package/templates/solid-vite/src/landing.tsx +51 -98
  35. package/templates/solid-vite/src/overview.tsx +2 -2
  36. package/templates/solid-vite/src/routes.ts +6 -6
  37. package/templates/solid-vite/src/signup-form.tsx +10 -10
  38. package/templates/solid-vite/src/site-footer.tsx +1 -1
  39. package/templates/solid-vite/src/site-header.tsx +2 -3
  40. package/templates/svelte-vite/src/Landing.svelte +36 -73
  41. package/templates/svelte-vite/src/Overview.svelte +2 -2
  42. package/templates/svelte-vite/src/SignupForm.svelte +9 -10
  43. package/templates/svelte-vite/src/SiteFooter.svelte +1 -1
  44. package/templates/svelte-vite/src/SiteHeader.svelte +2 -3
  45. package/templates/svelte-vite/src/app.css +144 -152
  46. package/templates/svelte-vite/src/data.ts +17 -17
  47. package/templates/svelte-vite/src/docs.ts +9 -9
  48. package/templates/svelte-vite/src/routes.svelte.ts +5 -5
  49. package/templates/vue-vite/src/LandingPage.vue +36 -73
  50. package/templates/vue-vite/src/OverviewPage.vue +2 -2
  51. package/templates/vue-vite/src/SignupForm.vue +10 -10
  52. package/templates/vue-vite/src/SiteFooter.vue +1 -1
  53. package/templates/vue-vite/src/SiteHeader.vue +2 -3
  54. package/templates/vue-vite/src/app.css +144 -152
  55. package/templates/vue-vite/src/data.ts +17 -17
  56. package/templates/vue-vite/src/docs.ts +9 -9
  57. package/templates/vue-vite/src/routes.ts +6 -6
@@ -1,30 +1,28 @@
1
1
  /*
2
2
  * The page around the components.
3
3
  *
4
- * Helix draws its own insides, so what is left to an app stylesheet is the
5
- * measure, the rhythm between blocks, and the few things a component
6
- * deliberately leaves open. Everything below is a Helix token or a documented
7
- * hook, so a theme moves it and both color modes follow without a second copy
8
- * of anything.
4
+ * Helix draws the inside of each component, so an app stylesheet holds the
5
+ * measure, the rhythm between blocks, and the few decisions a component leaves
6
+ * open. Everything below is a Helix token or a documented hook, so a theme
7
+ * changes it, and both color modes follow from one copy.
9
8
  *
10
- * **Color appears twice and both places are named.** The wordmark takes
11
- * `--helix-color-brand-mark`, which is the token for the brand as a graphic
12
- * rather than as a word, and a chosen row takes `--helix-color-primary-subtle`
13
- * through the parts the table publishes. Everywhere else this page is ink on the
14
- * background and the components carry their own.
9
+ * **Color appears in two places, and both are named.** The wordmark takes
10
+ * `--helix-color-brand-mark`, the token for the brand as a graphic, and a
11
+ * chosen row takes `--helix-color-primary-subtle` through the parts the table
12
+ * publishes. Everywhere else the page is ink on the background, and the
13
+ * components carry their own color.
15
14
  */
16
15
 
17
16
  /*
18
- * **The shell, and what stops a short route ending in a void.** The overview is
19
- * a header, a table and a caption, which on a 1280 by 900 window left something
20
- * like four hundred pixels of nothing under it: a page that stopped rather than
21
- * a page that finished. A column the height of the window with the footer at the
22
- * end of it puts a floor under every route.
17
+ * **The shell: a column the height of the window, with the footer at its end.**
18
+ * The overview is a header, a table, and a caption, which on a 1280 by 900
19
+ * window left about four hundred empty pixels under it. The column puts a floor
20
+ * under every route.
23
21
  *
24
- * **Flex and not grid, because the bar is sticky.** A grid item's containing
25
- * block is its own grid area, which is one row as tall as the bar, so a sticky
26
- * header in a grid row sticks for nothing. A flex item's containing block is the
27
- * flex container, which is the whole document.
22
+ * **A flex column, because the bar is sticky.** A grid item's containing block
23
+ * is its own grid area, one row as tall as the bar, so a sticky header in a
24
+ * grid row has nowhere to stick. A flex item's containing block is the flex
25
+ * container, which here is the whole document.
28
26
  */
29
27
  .shell {
30
28
  display: flex;
@@ -33,14 +31,13 @@
33
31
  }
34
32
 
35
33
  /*
36
- * **56rem, which is a measure rather than a maximum.** A page is as wide as its
37
- * widest block can be read at, and the widest block here is a four-column table:
38
- * given the whole of a 1280 window its first column came out 448 pixels across
39
- * to hold a name, which reads as a table that has been stretched rather than
40
- * laid out. The bar and the footer are centered in the same width, so the
41
- * wordmark sits over the first column of the page rather than near it.
34
+ * **56rem, the width the widest block reads well at.** The widest block here is
35
+ * a four-column table: given the whole of a 1280 window, its first column came
36
+ * out 448 pixels across to hold a name, which reads as a stretched table. The
37
+ * bar and the footer are centered in the same width, so the wordmark sits over
38
+ * the first column of the page.
42
39
  *
43
- * `flex-grow` is what hands the slack to the page rather than to the footer.
40
+ * `flex-grow` gives the spare height to the page, and the footer keeps its own.
44
41
  */
45
42
  .page {
46
43
  flex-grow: 1;
@@ -51,23 +48,21 @@
51
48
  }
52
49
 
53
50
  /*
54
- * Two documented hooks, and both are about agreeing with the page. The bar
55
- * centers its row in the page's measure, so the wordmark sits over the first
56
- * column rather than near it. And it draws no line under itself by default,
57
- * because a header over a page that already has a surface does not need one:
58
- * this page has no such surface, so it asks for one. A token rather than a
59
- * color, so it follows the theme.
51
+ * Two documented hooks, both to match the page. The bar centers its row in the
52
+ * page's measure, so the wordmark sits over the first column. And the bar draws
53
+ * no line under itself by default, since a header over a page with its own
54
+ * surface needs none: this page has no such surface, so it sets one. The line
55
+ * is a token, so it follows the theme.
60
56
  */
61
57
  helix-app-header {
62
58
  --app-header-border-color: var(--helix-color-border);
63
59
  --app-header-max-inline-size: 56rem;
64
60
  }
65
61
 
66
- /* The mark beside the project's name, which is the one graphic on the page and
67
- the reason `--helix-color-brand-mark` exists: a mark answers to the 3:1 WCAG
68
- asks of a graphic rather than to the 4.5 a word does, so it may sit closer to
69
- the brand a theme was seeded with than any text color can. Swap the glyph, or
70
- replace the whole element with your own logo. */
62
+ /* The mark beside the project's name, the one graphic on the page and the
63
+ reason `--helix-color-brand-mark` exists. WCAG asks 3:1 of a graphic and 4.5:1
64
+ of text, so a mark can sit closer to a theme's brand color than any text
65
+ color can. Swap the glyph, or replace the whole element with your own logo. */
71
66
  .wordmark {
72
67
  align-items: center;
73
68
  display: inline-flex;
@@ -79,72 +74,102 @@ helix-app-header {
79
74
  }
80
75
 
81
76
  /*
82
- * One rhythm between the blocks of a page, so no page states its own.
77
+ * One rhythm between the blocks of a page, so no page sets its own.
83
78
  *
84
- * **`minmax(0, 1fr)` and never a bare column, which is the trap in every grid
85
- * here.** An implicit track is `auto`, and an `auto` track's minimum is its
86
- * content's min-content size, so a child that would rather scroll itself widens
87
- * the track instead and takes the page with it. Measured at 320: the table's
88
- * columns floor at 344, the column it sits in should have been 288, and
89
- * `documentElement.scrollWidth` came back 360 against a 320 viewport. The whole
90
- * page scrolled sideways so that a table with its own scrollport would not have
91
- * to. Zero as the minimum hands the overflow back to whoever is equipped for it.
79
+ * **`minmax(0, 1fr)` for every column, the guard every grid here needs.** An
80
+ * implicit track is `auto`, and an `auto` track's minimum is its content's
81
+ * min-content size, so a child that scrolls itself widens the track and takes
82
+ * the page with it. Measured at 320: the table's columns floor at 344, the
83
+ * column it sits in should have been 288, and `documentElement.scrollWidth`
84
+ * came back 360 against a 320 viewport, so the whole page scrolled sideways. A
85
+ * minimum of zero leaves the overflow to the table, which scrolls its own box.
92
86
  */
93
87
  .stack,
94
88
  .section,
95
89
  .hero,
96
90
  .first-screen,
97
- .fact,
98
- .facts,
91
+ .features,
99
92
  .notes,
100
93
  .split {
101
94
  grid-template-columns: minmax(0, 1fr);
102
95
  }
103
96
 
104
97
  /* One step between the blocks of a page and a smaller one inside them, which is
105
- the whole of the rhythm: `3xl` here against the `md` a section puts between
106
- its heading and its block, so a reader sees three groups rather than six
107
- evenly spaced things. */
98
+ the whole of the rhythm: `3xl` here, and the `md` a section puts between its
99
+ heading and its block. */
108
100
  .stack {
109
101
  display: grid;
110
102
  gap: var(--helix-space-3xl);
111
103
  }
112
104
 
113
105
  /*
114
- * **The first screen is two things at once**, which is what makes it a screen
115
- * rather than a stack: what this is, on the left, and the library doing it, on
116
- * the right. Below 60rem there is no room for two columns that are both worth
117
- * reading, so they become one and the panel reads as the thing the words were
118
- * about.
106
+ * **The first screen: one lit panel, with what the starter is on the left and
107
+ * the library at work on the right.** Below 60rem two readable columns do not
108
+ * fit, so they become one, and the glass card follows the words.
119
109
  *
120
- * `start`, because a grid column stretches to its tallest sibling: the panel
121
- * beside a taller block of words would otherwise grow to match it and spread its
122
- * own regions out to fill the difference.
110
+ * `isolation` makes the panel its own stacking context, so the light behind it
111
+ * sits under the content and above the page, and `overflow: clip` keeps the
112
+ * light inside the rounded corners.
123
113
  */
124
114
  .first-screen {
125
- align-items: start;
115
+ align-items: center;
116
+ border: var(--helix-border-thin) solid var(--helix-color-border);
117
+ border-radius: var(--helix-radii-lg);
126
118
  display: grid;
127
- gap: var(--helix-space-xl);
119
+ gap: var(--helix-space-2xl);
120
+ isolation: isolate;
121
+ overflow: clip;
122
+ padding: var(--helix-space-3xl) var(--helix-space-2xl);
123
+ position: relative;
128
124
  }
129
125
 
130
126
  @media (width >= 60rem) {
131
127
  .first-screen {
132
- grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
128
+ grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
129
+ }
130
+ }
131
+
132
+ /* The light, under everything in the panel and out of the way of the pointer,
133
+ and faded out behind the words so they keep their contrast: it is at full
134
+ strength only behind the card, which is below the words in one column and
135
+ beside them in two. */
136
+ .first-light {
137
+ block-size: auto;
138
+ inset: 0;
139
+ mask-image: linear-gradient(to bottom, transparent 40%, black 80%);
140
+ pointer-events: none;
141
+ position: absolute;
142
+ z-index: var(--helix-layer-beneath);
143
+ }
144
+
145
+ @media (width >= 60rem) {
146
+ .first-light {
147
+ mask-image: linear-gradient(to right, transparent 35%, black 70%);
133
148
  }
134
149
  }
135
150
 
136
- /* A heading and the lines around it are one block, and the gap between them is
137
- not the gap between blocks. Every route opens with one. */
151
+ /* A heading and the lines around it are one block, with a smaller gap than the
152
+ one between blocks. Every route opens with one. */
138
153
  .hero {
139
154
  display: grid;
140
155
  gap: var(--helix-space-xs);
141
156
  justify-items: start;
142
157
  }
143
158
 
144
- /* **A measure for the lede, which the page's own is too wide to be.** A line of
145
- prose across 56rem is around 110 characters, and the readable range tops out
146
- near 75. The heading above it is exempt: a heading is scanned rather than
147
- read along. */
159
+ /* The first screen's heading takes more room around it than a route's, and
160
+ its lede a step more size, wrapped to even lines. */
161
+ .first-screen .hero {
162
+ gap: var(--helix-space-md);
163
+ }
164
+
165
+ .first-screen .lede {
166
+ font-size: var(--helix-text-lg);
167
+ text-wrap: balance;
168
+ }
169
+
170
+ /* **A measure for the lede, narrower than the page's.** A line of prose across
171
+ 56rem is around 110 characters, and the readable range tops out near 75. The
172
+ heading above it keeps the page's measure, since a heading is scanned. */
148
173
  .lede {
149
174
  max-inline-size: 42rem;
150
175
  }
@@ -157,12 +182,11 @@ helix-app-header {
157
182
  }
158
183
 
159
184
  /*
160
- * **The panel is the library rather than a picture of it**, so the only thing it
161
- * needs from here is room. Two documented hooks: the figures come down a step
162
- * from the display size, which is set for a figure on its own and is too loud
163
- * for three of them in a 20rem column, and the rule between them comes in from
164
- * `2xl`, which `divided` doubles and which would leave no column to put a
165
- * number in.
185
+ * **The panel is the library at work**, so all it needs from here is room. Two
186
+ * documented hooks: the figures come down a step from the display size, which
187
+ * suits one figure on its own and is too loud for three in an 18rem column, and
188
+ * the gap around the rule between them comes in from `2xl`, which `divided`
189
+ * doubles, leaving no room for a number.
166
190
  */
167
191
  .specimen {
168
192
  --stat-group-gap: var(--helix-space-md);
@@ -176,71 +200,37 @@ helix-app-header {
176
200
  gap: var(--helix-space-md);
177
201
  }
178
202
 
179
- /*
180
- * **Three facts about the library, and deliberately not three cards.** A row of
181
- * identical outlined boxes is the shape a generated page takes, and it is also a
182
- * claim: a box says each of these is its own object, when they are three
183
- * paragraphs about the same installed thing. A rule over each column groups them
184
- * at a fraction of the weight, and leaves the cards below to mean something,
185
- * which is that they go somewhere.
186
- *
187
- * `border-thick` in the foreground rather than a hairline in the border color:
188
- * this is a heading device rather than a container edge, and it is the one place
189
- * the page draws in ink.
190
- */
191
- .facts {
203
+ /* Three tiles, side by side where there is room for three. */
204
+ .features {
192
205
  display: grid;
193
206
  gap: var(--helix-space-lg);
194
207
  }
195
208
 
196
209
  @media (width >= 48rem) {
197
- .facts {
210
+ .features {
198
211
  grid-template-columns: repeat(3, minmax(0, 1fr));
199
212
  }
200
213
  }
201
214
 
202
- .fact {
203
- align-content: start;
204
- border-block-start: var(--helix-border-thick) solid var(--helix-color-foreground);
205
- display: grid;
206
- gap: var(--helix-space-xs);
207
- justify-items: start;
208
- padding-block-start: var(--helix-space-sm);
209
- }
210
-
211
- /*
212
- * **The one departure the grids state.** `helix-grid` takes a fixed count as
213
- * plain CSS, which is what keeps a server-rendered row of cards correct before
214
- * any JavaScript arrives. Below this width there is only ever room for one
215
- * column, and `--grid-columns` is the documented way to say so from outside the
216
- * shadow root.
217
- */
218
- @media (width < 48rem) {
219
- helix-grid {
220
- --grid-columns: minmax(0, 1fr);
221
- }
222
- }
223
-
224
- /*
225
- * **The cards keep `start`, which is `--card-align`'s resting value, and the
226
- * alternative is worth naming because it looks right and is not.**
227
- * `space-between` puts the last line of each card on its bottom edge, so a row
228
- * of cards ends in a straight line. It gets there by sharing the slack out
229
- * between every region, and the first thing that moves is the body: three cards
230
- * of six, five and seven lines had their opening lines 50 pixels apart under
231
- * headings that were level. A reader scans the first line of each, so that is
232
- * the alignment worth keeping.
233
- */
234
-
235
- /* The card fills the link that wraps it, so a row of destinations ends level:
236
- the anchor is the grid item and stretches, and the card inside it does not.
237
- The regions stay packed at the top, per `--card-align` above. */
215
+ /* The card fills the link that wraps it, so the row of tiles ends level: the
216
+ anchor is the grid item, which stretches, and the card takes its full height. */
238
217
  [data-card] > helix-card {
239
218
  block-size: 100%;
240
219
  }
241
220
 
242
- /* A form is read straight down, and a field wider than about this stops being
243
- scannable however much room the window has. */
221
+ /* Each tile's icon, on a tint of the brand. */
222
+ .feature-mark {
223
+ --icon-size: 1.25rem;
224
+ background-color: var(--helix-color-primary-subtle);
225
+ border-radius: var(--helix-radii-md);
226
+ color: var(--helix-color-primary);
227
+ display: inline-flex;
228
+ inline-size: fit-content;
229
+ padding: var(--helix-space-xs);
230
+ }
231
+
232
+ /* A form is read straight down, and a field wider than about 28rem is hard to
233
+ scan, however much room the window has. */
244
234
  .form {
245
235
  align-content: start;
246
236
  display: grid;
@@ -255,11 +245,10 @@ helix-app-header {
255
245
  }
256
246
 
257
247
  /*
258
- * **The form takes a column and the notes take the rest.** A 28rem form on a
259
- * 1280 window is a third of a page and two thirds of nothing, which is what the
260
- * measure above cannot fix on its own: the form has a right width and the page
261
- * does not shrink to it. Narrow, the two stack and the notes read as a
262
- * postscript, which is the order they are written in.
248
+ * **The form takes a column and the notes take the rest.** A 28rem form alone
249
+ * on a 1280 window fills a third of the page and leaves two thirds empty: the
250
+ * form has a right width, and the page keeps its own. Narrow, the two stack,
251
+ * and the notes read as a postscript, the order they are written in.
263
252
  */
264
253
  .split {
265
254
  display: grid;
@@ -291,10 +280,10 @@ helix-app-header {
291
280
  }
292
281
 
293
282
  /*
294
- * **The counterpart to the bar, and the reason every route now ends rather than
295
- * stops.** The rule runs the window while its contents keep the page's measure,
296
- * which is what a footer under a centered page looks like; the shell above is
297
- * what holds it to the bottom of a window a route does not fill.
283
+ * **The counterpart to the bar, which gives every route an end.** The rule runs
284
+ * the width of the window while its contents keep the page's measure, as a
285
+ * footer under a centered page does. The shell above holds it to the bottom of a
286
+ * window a route does not fill.
298
287
  */
299
288
  .site-footer {
300
289
  border-block-start: var(--helix-border-thin) solid var(--helix-color-border);
@@ -318,12 +307,16 @@ helix-app-header {
318
307
  }
319
308
 
320
309
  /*
321
- * **Narrow, the gutter gives before the content does.** 24 pixels either side of
322
- * a 390 window is 48 of 390 spent on margin, and the table needs 355 of what is
323
- * left. At `md` it has 358 and fits; at `lg` it was 13 pixels short and the last
324
- * column sat outside the box until the reader scrolled the table sideways.
310
+ * **Narrow, the gutter gives first.** 24 pixels either side of a 390 window
311
+ * spend 48 of 390 on margin, and the table needs 355 of what is left. At `md` it
312
+ * has 358 and fits; at `lg` it was 13 pixels short, and the last column sat
313
+ * outside the box until you scrolled the table sideways.
325
314
  */
326
315
  @media (width < 40rem) {
316
+ .first-screen {
317
+ padding: var(--helix-space-2xl) var(--helix-space-lg);
318
+ }
319
+
327
320
  .page {
328
321
  padding-block: var(--helix-space-xl) var(--helix-space-2xl);
329
322
  padding-inline: var(--helix-space-md);
@@ -336,22 +329,21 @@ helix-app-header {
336
329
 
337
330
  /*
338
331
  * **The escape hatch, and the reason a component names its parts.** The table
339
- * washes a chosen row at the strength `Tag` rests at; this page wants a row
340
- * somebody has ticked to be findable from across the screen, and there is no
341
- * token for "more than that". `::part` reaches the boxes the component drew
342
- * without forking it, and a rule written out here beats the component's own
343
- * however specific that one is.
332
+ * tints a chosen row at the strength `Tag` rests at, and this page wants a
333
+ * ticked row easy to find from across the screen, a step past any token.
334
+ * `::part` reaches the boxes the component drew, with no fork, and a rule
335
+ * written out here beats the component's own, however specific that one is.
344
336
  *
345
- * **Two parts and not one, because a row has no box.** The row is
346
- * `display: contents` so that one grid can align every column across every row,
347
- * which leaves the cells as the only thing a selection can be painted on. The
348
- * table names both: the data cells and the cell holding the checkbox. Naming
349
- * only the first leaves a pale stripe down the left of every chosen row.
337
+ * **Two parts, because a row has no box.** The row is `display: contents`, so
338
+ * one grid can align every column across every row, and the cells are what a
339
+ * selection is painted on. The table names both: the data cells and the cell
340
+ * holding the checkbox. Naming only the first leaves a pale stripe down the
341
+ * left of every chosen row.
350
342
  *
351
343
  * The values are still the library's, so a theme carries them like everything
352
- * else. `primary-subtle` and not `primary-surface`: the second is the solid
353
- * accent a button stands on and expects white on top of it, so a row painted
354
- * with it puts the table's own ink on a saturated fill.
344
+ * else. `primary-subtle`, because `primary-surface` is the solid accent a
345
+ * button stands on, made for white text, so a row painted with it would put the
346
+ * table's own ink on a saturated fill.
355
347
  */
356
348
  helix-data-table::part(cell-selected),
357
349
  helix-data-table::part(select-selected) {
@@ -2,39 +2,40 @@
2
2
  * The rows the overview draws.
3
3
  *
4
4
  * A local module and no network, so the starter runs with nothing behind it.
5
- * Point `rows` at whatever you fetch and the table does not change: it takes the
6
- * whole result and does the sorting, the filtering and the paging itself. Past
7
- * the size a browser can hold, `mode="server"` inverts that and the table asks
8
- * you for a page instead.
5
+ * Point `rows` at whatever you fetch and the table stays the same: it takes the
6
+ * whole result and does the sorting, the filtering, and the paging itself. Past
7
+ * the size a browser can hold, `mode="server"` hands the paging to you, one page
8
+ * at a time.
9
9
  */
10
10
 
11
11
  /**
12
12
  * One person on the roster.
13
13
  *
14
- * **A type alias and not an interface**, which TypeScript makes load-bearing
15
- * here: `rows` takes `Readonly<Record<string, unknown>>`, an interface has no
16
- * implicit index signature, and so an interface of exactly these fields is not
17
- * assignable to it. The error names the index signature and not the shape, so
18
- * it reads as though the data were wrong.
14
+ * **A type alias, which TypeScript makes load-bearing here.** `rows` takes
15
+ * `Readonly<Record<string, unknown>>`, and an interface has no implicit index
16
+ * signature, so an interface of exactly these fields is not assignable to it.
17
+ * The error names the index signature, so it reads as though the data were
18
+ * wrong.
19
19
  */
20
20
  export type Member = {
21
21
  /**
22
22
  * A stable identity, which is what `row-key` names.
23
23
  *
24
- * Sorting moves a row's element rather than rewriting every cell in it, so
25
- * without one a sort throws away focus and anything attached to a row.
24
+ * With one, a sort moves each row's element whole, so focus and anything
25
+ * attached to a row go with it. Without one, a sort rewrites the cells in
26
+ * place and loses both.
26
27
  */
27
28
  readonly id: string
28
29
  /**
29
- * What the reader is here to find.
30
+ * The name a row is found by.
30
31
  */
31
32
  readonly name: string
32
33
  /**
33
- * A number rather than a formatted string, so the column sorts by size.
34
+ * A number, so the column sorts by size.
34
35
  *
35
36
  * A cell showing `2.4k` sorts as text unless the column's `compare` says what
36
- * the value underneath is, which is the one thing here that is cheap to get
37
- * right now and expensive to add later.
37
+ * the value underneath is, which is cheap to get right now and expensive to
38
+ * add later.
38
39
  */
39
40
  readonly reviews: number
40
41
  /**
@@ -68,8 +69,7 @@ export const teams: readonly string[] = [...new Set(members.map((one) => one.tea
68
69
  /**
69
70
  * The same roster as three figures, for the panel on the first screen.
70
71
  *
71
- * Derived rather than written out, so the panel cannot claim a number the table
72
- * does not show.
72
+ * Derived from the rows, so the panel and the table always agree.
73
73
  */
74
74
  export const roster = {
75
75
  /** How many rows the data view has. */
@@ -1,22 +1,22 @@
1
1
  /**
2
- * The documentation this starter links to.
2
+ * The documentation the starter links to.
3
3
  *
4
- * **One module, because a link is the thing in a starter most likely to rot.**
5
- * A page that composes its own URLs ships a plausible-looking 404 to every
6
- * project scaffolded from it, and nobody finds out until a reader clicks one.
7
- * Here they are in a list somebody can open and check, and pointing the starter
8
- * at a mirror or an internal copy is one edit.
4
+ * **One module, because links are what rots first in a starter.** A page that
5
+ * composes its own URLs ships a plausible-looking 404 to every project
6
+ * scaffolded from it, and it shows only when the link is followed. Here they
7
+ * are in one list you can open and check, and pointing the starter at a mirror
8
+ * or an internal copy is one edit.
9
9
  *
10
- * Checked 16 Sep 2026: every entry answers 200.
10
+ * Checked October 4, 2026: every entry answers 200.
11
11
  */
12
12
  export const DOCS = {
13
13
  /** How the elements are registered and written, which is the first page to read. */
14
14
  elements: 'https://fusion.dev/helix/docs/using-the-elements',
15
15
  /** What a `<form>` does with these controls, and what it cannot do. */
16
16
  forms: 'https://fusion.dev/helix/docs/forms',
17
- /** Every component, with its API, its parts and its examples. */
17
+ /** Every component, with its API, its parts, and its examples. */
18
18
  gallery: 'https://fusion.dev/helix/components',
19
- /** The light and dark pair, and the attribute that chooses between them. */
19
+ /** The light and dark pair, and the attribute that sets which one shows. */
20
20
  modes: 'https://fusion.dev/helix/docs/color-modes',
21
21
  /** Reaching a component's parts from a page, which `app.css` does once. */
22
22
  parts: 'https://fusion.dev/helix/docs/overriding-a-component',
@@ -1,14 +1,14 @@
1
1
  /* **The whole router, which is a hash and a listener.**
2
2
 
3
- A starter should not pick your router for you, and three pages need
4
- `location.hash` and one event. Swap this file for the router you want.
3
+ Three pages need `location.hash` and one event, so the starter leaves the
4
+ router to you. Swap this file for the router you want.
5
5
 
6
6
  A hash, because the History API wants a server that answers every path with
7
7
  the same document, and `vite preview` and wherever you deploy each have to be
8
- told to. A hash asks nothing of either. Each link in the app is a plain anchor
9
- to `#/` and a path. */
8
+ told to. A hash asks nothing of either. Each link in the app is a plain
9
+ anchor to `#/` and a path. */
10
10
 
11
- /** Where the reader is, as a path, so the first page is `/`. */
11
+ /** The current path, read from the hash, so the first page is `/`. */
12
12
  const read = (): string => window.location.hash.slice(1) || '/'
13
13
 
14
14
  /** The current path, kept current as the hash changes. */