@poodle64/ui 2026.11.14 → 2026.11.16

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/README.md CHANGED
@@ -124,6 +124,7 @@ rather than rebuilding it:
124
124
  | `dialog-section` | One section of a dialogue body; adjacent sections are divided automatically. |
125
125
  | `stat-card` | A single metric that earns its space (label, value, unit, sub, status glyph, and `valueTone` to colour the figure itself). |
126
126
  | `stat-list` | A route's low-context integers as a label→value list. Zero-aware: `muted` keeps a healthy zero quiet. |
127
+ | `key-figures` | A page's key figures in one row under its lead: each a `stat-card`, as wide as its figure, a hairline between two, no icon of its own; crowded, it wraps and a line starts on a figure. |
127
128
  | `arc-gauge` | A radial capacity/percentage ring for a single 0–100 metric, in a footprint too compact for a `stat-card`. |
128
129
  | `bar-row` | A labelled horizontal bar with a trailing tabular value, for a ranked list (usage, rank, token burn). |
129
130
  | `scorecard` | A compact 0/1/2 dot-row health strip for several independent checks read at a glance. |
@@ -612,8 +613,8 @@ own and composes the component that owns the role:
612
613
  | Role | Utility | Size | Face | Owned by |
613
614
  | --- | --- | --- | --- | --- |
614
615
  | Page title | `text-display` | 1.75rem | display, semibold | PageHeader |
615
- | Section | `text-section` | 1.25rem | display, semibold | PageSection `level={2}` |
616
- | Panel title, subsection | `text-body` | 0.9375rem | body, semibold | Panel, PageSection `level={3}` |
616
+ | Section, a list's title | `text-section` | 1.25rem | display, semibold | PageSection `level={2}`, ListToolbar |
617
+ | Panel title, subsection, a list's group | `text-body` | 0.9375rem | body, semibold | Panel, PageSection `level={3}`, a RecordList's and a Ledger's groups |
617
618
  | Readout | `text-stat` | 1.0625rem | body | StatList |
618
619
  | Reading text | `text-base` | 1rem | body | DocumentReader |
619
620
  | Body | `text-sm` | 0.875rem | body | the default |
@@ -1090,11 +1091,11 @@ stays for a dense grid of data; a module's own records are a RecordList.
1090
1091
  | `columns` | The module's columns after the title, the Ledger's `ListColumn` shape plus `total`. List `title` to rename, resize or draw it with `cell`. `on: 'wide'` ticks a column only on a wide list (1200px of list), so extra width shows more columns and the viewer can tick it back. |
1091
1092
  | `preferences`, `onPreferencesChange`, `preferencesNote` | The viewer's `{ columns, group }` from the Columns menu, which the bar carries while the list has heads or offers groupings. Missing or stale fields take the module's defaults; `group` exists only where the list offers `groupings`. The list stores nothing. |
1092
1093
  | `title`, `meta`, `leading`, `toolbar`, `tools`, `action` | The `ListToolbar`. No title, no bar. |
1093
- | `group` | A row's group label: groups show in the order their first rows come, each label on the ground with its count and each column's `total` over its rows. |
1094
- | `groupings` | The ways the viewer may group, in place of `group`: `{ key, label, group, order, hint }`, offered in the Columns menu's Group by with None after the last, the first the default. `order: 'label'` lists the groups A to Z (numerals as numbers) rather than in the order their first rows come; `hint` says what it does under the choice. |
1094
+ | `group` | A row's group label: groups show in the order their first rows come, each heading on the ground with its count and each column's `total` over its rows. A group that is a kind of thing returns `{ label, icon, tone }`: the kind's mark before its heading, in the accent's tone, or in a status ink where the kind means one (money in, money out). |
1095
+ | `groupings` | The ways the viewer may group, in place of `group`: `{ key, label, group, order, hint }`, whose `group` returns a label or a heading as `group` does, offered in the Columns menu's Group by with None after the last, the first the default. `order: 'label'` lists the groups A to Z (numerals as numbers) rather than in the order their first rows come; `hint` says what it does under the choice. |
1095
1096
  | `totalLabel` | A card after the rows with each column's `total` over every row: "All three". |
1096
1097
  | `head` | `false` drops the head card (and the Columns menu): a tools list. |
1097
- | `icon` | The quiet tile a row without a photo or its own `icon` shows; with it every row has a thumbnail. |
1098
+ | `icon` | The quiet tile a row without a photo or its own `icon` shows, in a list of photos; with it every row has a thumbnail. A list with no photos marks its kinds on its groups instead: one tile repeated down every row is the generated look the layout gate's judge refuses. |
1098
1099
  | `href`, `onOpen`, `open` | A row is a link, or a button that opens a detail beside the list; `open` marks that row. A control in a `cell` takes its own click. |
1099
1100
  | `noun`, `empty`, `footer`, `layout` | As the Ledger's. |
1100
1101
 
@@ -1112,6 +1113,8 @@ heads'; Find (search, filters, views) stays the module's.
1112
1113
  ]} />
1113
1114
  ```
1114
1115
 
1116
+ The list's title is a section's heading, a group's a subsection's, and the rows' text a step under that, so the three never read as one size. A tool page whose last block is the list runs it to the frame's foot, so the window's edge cuts the rows that wait below.
1117
+
1115
1118
  A sort orders rows inside their groups, largest first (words from A), then
1116
1119
  reversed, then the list's own order. On a phone (below 480px of list) a row is its thumbnail, title
1117
1120
  and lines, with the first end-aligned column's value beside the title. Measured
@@ -38,6 +38,6 @@ type $$ComponentProps = {
38
38
  /** Draws one page at the size it is handed, and reports its own size once known. */
39
39
  page: Snippet<[pageNumber: number, info: PageCanvasRenderInfo]>;
40
40
  });
41
- declare const DocumentPane: import("svelte").Component<$$ComponentProps, {}, "currentPage" | "zoom">;
41
+ declare const DocumentPane: import("svelte").Component<$$ComponentProps, {}, "zoom" | "currentPage">;
42
42
  type DocumentPane = ReturnType<typeof DocumentPane>;
43
43
  export default DocumentPane;
@@ -2,7 +2,7 @@ declare const InputGroupInput: import("svelte").Component<(Omit<import("svelte/e
2
2
  type: "file";
3
3
  files?: FileList;
4
4
  } | {
5
- type?: "number" | "submit" | "reset" | "button" | "search" | "checkbox" | "radio" | (string & {}) | "text" | "tel" | "url" | "email" | "hidden" | "color" | "password" | "date" | "time" | "datetime-local" | "image" | "month" | "range" | "week";
5
+ type?: "number" | "color" | "text" | "search" | "submit" | "reset" | "button" | "checkbox" | "radio" | (string & {}) | "tel" | "url" | "email" | "hidden" | "password" | "date" | "time" | "datetime-local" | "image" | "month" | "range" | "week";
6
6
  files?: undefined;
7
7
  })) & {
8
8
  ref?: HTMLElement | null | undefined;
@@ -0,0 +1,3 @@
1
+ export { default as KeyFigures } from './key-figures.svelte';
2
+ export { default } from './key-figures.svelte';
3
+ export type { KeyFigure } from './key-figures.svelte';
@@ -0,0 +1,2 @@
1
+ export { default as KeyFigures } from './key-figures.svelte';
2
+ export { default } from './key-figures.svelte';
@@ -0,0 +1,57 @@
1
+ <script lang="ts" module>
2
+ import type { Status } from '../status/index.js';
3
+
4
+ /** One of a page's key figures: a StatCard's label, value, unit, sub and states. */
5
+ export interface KeyFigure {
6
+ label: string;
7
+ value: string | number;
8
+ unit?: string;
9
+ /** Under the figure: what it is measured against, or what changed. */
10
+ sub?: string;
11
+ /** The state of what is measured: its glyph beside the label. */
12
+ status?: Status;
13
+ /** The figure's own ink, its sign; `neutral` keeps a healthy zero quiet. */
14
+ valueTone?: Status;
15
+ }
16
+ </script>
17
+
18
+ <script lang="ts">
19
+ /**
20
+ * A page's key figures in one row, under its lead: each a StatCard, open,
21
+ * as wide as its figure, with a hairline between two, so three numbers read
22
+ * as three numbers and not three tiles. Crowded, the row wraps and a line
23
+ * starts without a rule. No icon on a figure: its label names it.
24
+ */
25
+ import type { HTMLAttributes } from 'svelte/elements';
26
+ import StatCard from '../stat-card/stat-card.svelte';
27
+ import { cn } from '../../../utils.js';
28
+
29
+ let {
30
+ figures,
31
+ label = 'Key figures',
32
+ class: className,
33
+ ...restProps
34
+ }: HTMLAttributes<HTMLDivElement> & {
35
+ figures: readonly KeyFigure[];
36
+ /** The row's accessible name. */
37
+ label?: string;
38
+ } = $props();
39
+ </script>
40
+
41
+ <!-- The rule sits in the gap, left of each figure; the row clips the one left of a line's first. -->
42
+ <div
43
+ role="list"
44
+ aria-label={label}
45
+ data-slot="key-figures"
46
+ class={cn('flex min-w-0 flex-wrap gap-x-12 gap-y-6 overflow-hidden', className)}
47
+ {...restProps}
48
+ >
49
+ {#each figures as figure (figure.label)}
50
+ <div
51
+ role="listitem"
52
+ class="before:bg-border relative min-w-28 before:absolute before:inset-y-0 before:-left-6 before:w-px"
53
+ >
54
+ <StatCard {...figure} />
55
+ </div>
56
+ {/each}
57
+ </div>
@@ -0,0 +1,28 @@
1
+ import type { Status } from '../status/index.js';
2
+ /** One of a page's key figures: a StatCard's label, value, unit, sub and states. */
3
+ export interface KeyFigure {
4
+ label: string;
5
+ value: string | number;
6
+ unit?: string;
7
+ /** Under the figure: what it is measured against, or what changed. */
8
+ sub?: string;
9
+ /** The state of what is measured: its glyph beside the label. */
10
+ status?: Status;
11
+ /** The figure's own ink, its sign; `neutral` keeps a healthy zero quiet. */
12
+ valueTone?: Status;
13
+ }
14
+ /**
15
+ * A page's key figures in one row, under its lead: each a StatCard, open,
16
+ * as wide as its figure, with a hairline between two, so three numbers read
17
+ * as three numbers and not three tiles. Crowded, the row wraps and a line
18
+ * starts without a rule. No icon on a figure: its label names it.
19
+ */
20
+ import type { HTMLAttributes } from 'svelte/elements';
21
+ type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
22
+ figures: readonly KeyFigure[];
23
+ /** The row's accessible name. */
24
+ label?: string;
25
+ };
26
+ declare const KeyFigures: import("svelte").Component<$$ComponentProps, {}, "">;
27
+ type KeyFigures = ReturnType<typeof KeyFigures>;
28
+ export default KeyFigures;
@@ -27,8 +27,9 @@ export declare const HEAD_GROUND = "bg-background sticky top-0 z-3 pb-3";
27
27
  export declare const HEAD = "bg-card border-border grid h-9 items-center rounded-lg border";
28
28
  export declare const HEAD_TEXT = "ds-label";
29
29
  /** A group's label line on the ground; the spacing is padding, so a measured height is the height it takes. */
30
- export declare const GROUP = "text-muted-foreground h-6.5 text-xs";
31
- export declare const GROUP_LABEL = "text-[0.8125rem] font-semibold";
30
+ export declare const GROUP = "text-muted-foreground h-7 text-xs";
31
+ /** A group's heading, a subsection's on the type scale: a step over the rows, a step under the list's title. */
32
+ export declare const GROUP_LABEL = "text-foreground text-body font-semibold";
32
33
  export declare const groupSpacing: (index: number) => "pt-4.5 pb-1.5" | "pb-1.5";
33
34
  /** The house focus ring, and the same ring drawn inside a control that fills a clipped card. */
34
35
  export declare const RING = "focus-visible:ring-ring/50 focus-visible:ring-3 focus-visible:outline-none";
@@ -29,8 +29,9 @@ export const HEAD_GROUND = 'bg-background sticky top-0 z-3 pb-3';
29
29
  export const HEAD = 'bg-card border-border grid h-9 items-center rounded-lg border';
30
30
  export const HEAD_TEXT = 'ds-label';
31
31
  /** A group's label line on the ground; the spacing is padding, so a measured height is the height it takes. */
32
- export const GROUP = 'text-muted-foreground h-6.5 text-xs';
33
- export const GROUP_LABEL = 'text-[0.8125rem] font-semibold';
32
+ export const GROUP = 'text-muted-foreground h-7 text-xs';
33
+ /** A group's heading, a subsection's on the type scale: a step over the rows, a step under the list's title. */
34
+ export const GROUP_LABEL = 'text-foreground text-body font-semibold';
34
35
  export const groupSpacing = (index) => (index > 0 ? 'pt-4.5 pb-1.5' : 'pb-1.5');
35
36
  /** The house focus ring, and the same ring drawn inside a control that fills a clipped card. */
36
37
  export const RING = 'focus-visible:ring-ring/50 focus-visible:ring-3 focus-visible:outline-none';
@@ -62,7 +62,9 @@
62
62
  -->
63
63
  {#if title || meta}
64
64
  <div class="flex min-w-0 flex-wrap items-baseline gap-x-2.5">
65
- {#if title}<h2 class="text-body min-w-0 font-semibold break-words">{title}</h2>{/if}
65
+ {#if title}<h2
66
+ class="font-display text-section min-w-0 font-semibold tracking-[var(--ds-font-display-tracking,-0.015em)] break-words"
67
+ >{title}</h2>{/if}
66
68
  {#if meta}<span class="text-muted-foreground min-w-0 text-sm break-words">{meta}</span>{/if}
67
69
  </div>
68
70
  {/if}
@@ -18,6 +18,6 @@ type $$ComponentProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
18
18
  focusedRegionId?: string | null;
19
19
  zoom?: number;
20
20
  };
21
- declare const PageCanvas: import("svelte").Component<$$ComponentProps, {}, "ref" | "currentPage" | "activeRegionId" | "focusedRegionId" | "zoom">;
21
+ declare const PageCanvas: import("svelte").Component<$$ComponentProps, {}, "zoom" | "ref" | "currentPage" | "activeRegionId" | "focusedRegionId">;
22
22
  type PageCanvas = ReturnType<typeof PageCanvas>;
23
23
  export default PageCanvas;
@@ -35,14 +35,14 @@
35
35
  {#if eyebrow}
36
36
  <div class="ds-label mb-1.5">{eyebrow}</div>
37
37
  {/if}
38
- <div class="flex min-w-0 items-center gap-2.5">
38
+ <div class="flex min-w-0 items-start gap-2.5">
39
39
  {#if icon}
40
- <span class="ds-icon-accent text-muted-foreground grid size-6 flex-none place-items-center" data-slot="page-lead-icon">
40
+ <span class="ds-icon-accent text-muted-foreground mt-1.25 grid size-6 flex-none place-items-center" data-slot="page-lead-icon">
41
41
  {@render icon()}
42
42
  </span>
43
43
  {/if}
44
44
  <h2
45
- class="font-display text-display max-w-3xl font-semibold tracking-[var(--ds-font-display-tracking,-0.02em)]"
45
+ class="font-display text-display max-w-3xl font-semibold tracking-[var(--ds-font-display-tracking,-0.02em)] text-balance"
46
46
  data-answer
47
47
  >
48
48
  {lead}
@@ -135,7 +135,15 @@
135
135
  {/if}
136
136
  </header>
137
137
  {/if}
138
- <div class={cn(pad && 'pt-4', scroll && 'min-h-0 flex-1 overflow-y-auto')} data-slot="panel-body">
138
+ <div
139
+ class={cn(
140
+ pad && 'pt-4',
141
+ // A flush table has no padding to end it, and its last row carries no rule of its own.
142
+ !pad && 'border-border border-b',
143
+ scroll && 'min-h-0 flex-1 overflow-y-auto'
144
+ )}
145
+ data-slot="panel-body"
146
+ >
139
147
  {@render children()}
140
148
  </div>
141
149
  {#if footer}
@@ -1,3 +1,3 @@
1
1
  export { default as RecordList } from './record-list.svelte';
2
2
  export { default } from './record-list.svelte';
3
- export type { RecordFlag, RecordListColumn, RecordListGrouping, RecordListPreferences, RecordListRow } from './types.js';
3
+ export type { RecordFlag, RecordListColumn, RecordListGroup, RecordListGrouping, RecordListPreferences, RecordListRow } from './types.js';
@@ -52,6 +52,7 @@
52
52
  import { cn } from '../../../utils.js';
53
53
  import type {
54
54
  RecordListColumn,
55
+ RecordListGroup,
55
56
  RecordListGrouping,
56
57
  RecordListPreferences,
57
58
  RecordListRow
@@ -107,8 +108,12 @@
107
108
  tools?: ListIconAction[];
108
109
  /** The bar's one labelled action, last. */
109
110
  action?: ListAction;
110
- /** A row's group, by its label: groups show in the order their first rows come. */
111
- group?: (row: R) => string;
111
+ /**
112
+ * A row's group, by its label: groups show in the order their first rows
113
+ * come. A group that is a kind of thing returns its heading with the
114
+ * kind's mark (`{ label, icon, tone }`).
115
+ */
116
+ group?: (row: R) => string | RecordListGroup;
112
117
  /**
113
118
  * The ways the viewer can group, in the Columns menu with None after
114
119
  * them; the first is the default. In place of `group`.
@@ -239,23 +244,24 @@
239
244
 
240
245
  // ── Groups, in the order their first rows come or by label; a sort orders rows inside them ──
241
246
  const groups = $derived.by(() => {
242
- const out: { key: string; rows: R[] }[] = [];
247
+ const out: { key: string; mark?: RecordListGroup; rows: R[] }[] = [];
243
248
  const byKey = new Map<string, R[]>();
244
249
  for (const r of rows) {
245
- const key = grouping ? grouping.group(r) : '';
250
+ const heading = grouping ? grouping.group(r) : '';
251
+ const key = typeof heading === 'string' ? heading : heading.label;
246
252
  const g = byKey.get(key);
247
253
  if (g) g.push(r);
248
254
  else {
249
255
  const fresh = [r];
250
256
  byKey.set(key, fresh);
251
- out.push({ key, rows: fresh });
257
+ out.push({ key, mark: typeof heading === 'string' ? undefined : heading, rows: fresh });
252
258
  }
253
259
  }
254
260
  if (grouping?.order === 'label')
255
261
  out.sort((a, b) => a.key.localeCompare(b.key, undefined, { numeric: true, sensitivity: 'base' }));
256
262
  const col = activeSort && shown.find((c) => c.key === activeSort.key);
257
263
  const by = col && sorter(col);
258
- return by ? out.map((g) => ({ key: g.key, rows: orderBy(g.rows, by, activeSort!.dir) })) : out;
264
+ return by ? out.map((g) => ({ ...g, rows: orderBy(g.rows, by, activeSort!.dir) })) : out;
259
265
  });
260
266
 
261
267
  const thumbs = $derived(!!icon || rows.some((r) => r.image || r.icon));
@@ -268,6 +274,20 @@
268
274
  {#if c.cell}{@render c.cell(r, c)}{:else}{c.text?.(r) ?? ''}{/if}
269
275
  {/snippet}
270
276
 
277
+ {#snippet mark(m: RecordListGroup | undefined)}
278
+ {#if m?.icon}
279
+ <span
280
+ class={cn(
281
+ 'grid flex-none place-items-center self-center',
282
+ m.tone ? `ds-ink-${m.tone}` : 'ds-icon-accent text-foreground'
283
+ )}
284
+ data-slot="record-group-mark"
285
+ >
286
+ <m.icon class="size-4.5" />
287
+ </span>
288
+ {/if}
289
+ {/snippet}
290
+
271
291
  {#snippet flags(r: R, all: boolean)}
272
292
  {@const fs = r.flags ?? []}
273
293
  {#each all ? fs : fs.slice(0, 1) as f, i (i)}
@@ -491,6 +511,7 @@
491
511
  data-slot="record-group"
492
512
  >
493
513
  {#if PHONE}
514
+ {@render mark(g.mark)}
494
515
  <h3 class={cn(GROUP_LABEL, 'whitespace-nowrap')}>{g.key}</h3>
495
516
  <span class="min-w-0 flex-1 truncate">{g.rows.length.toLocaleString()}</span>
496
517
  {:else}
@@ -498,6 +519,7 @@
498
519
  class="flex min-w-0 items-baseline gap-3 overflow-hidden pl-3 whitespace-nowrap"
499
520
  style="grid-column: 1;"
500
521
  >
522
+ {@render mark(g.mark)}
501
523
  <h3 class={GROUP_LABEL}>{g.key}</h3>
502
524
  <span class="min-w-0 truncate">{count(g.rows.length)}</span>
503
525
  </div>
@@ -25,7 +25,7 @@ import type { Snippet } from 'svelte';
25
25
  import type { HTMLAttributes } from 'svelte/elements';
26
26
  import type { ListAction, ListIconAction } from '../list-toolbar/types.js';
27
27
  import type { IconComponent } from '../app-shell/types.js';
28
- import type { RecordListColumn, RecordListGrouping, RecordListPreferences, RecordListRow } from './types.js';
28
+ import type { RecordListColumn, RecordListGroup, RecordListGrouping, RecordListPreferences, RecordListRow } from './types.js';
29
29
  declare function $$render<R extends RecordListRow>(): {
30
30
  props: Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
31
31
  rows: readonly R[];
@@ -49,8 +49,12 @@ declare function $$render<R extends RecordListRow>(): {
49
49
  tools?: ListIconAction[];
50
50
  /** The bar's one labelled action, last. */
51
51
  action?: ListAction;
52
- /** A row's group, by its label: groups show in the order their first rows come. */
53
- group?: (row: R) => string;
52
+ /**
53
+ * A row's group, by its label: groups show in the order their first rows
54
+ * come. A group that is a kind of thing returns its heading with the
55
+ * kind's mark (`{ label, icon, tone }`).
56
+ */
57
+ group?: (row: R) => string | RecordListGroup;
54
58
  /**
55
59
  * The ways the viewer can group, in the Columns menu with None after
56
60
  * them; the first is the default. In place of `group`.
@@ -33,6 +33,18 @@ export interface RecordListColumn<R extends RecordListRow = RecordListRow> exten
33
33
  /** The column's total over some rows: each group's on its label, all rows' in the total card. */
34
34
  total?: (rows: readonly R[]) => string;
35
35
  }
36
+ /**
37
+ * A group's heading where the group is a kind of thing: its label, and the
38
+ * kind's mark before it. A group function returns one in place of a bare
39
+ * label; groups still key by `label`.
40
+ */
41
+ export interface RecordListGroup {
42
+ label: string;
43
+ /** The kind's mark, a household icon, its tone in the accent. */
44
+ icon?: IconComponent;
45
+ /** The mark in a status ink instead, where the kind means one (money in, money out). */
46
+ tone?: Status;
47
+ }
36
48
  /**
37
49
  * A way the viewer can group the list, offered in its Columns menu with None
38
50
  * after the last: the first letter, a status, every word that becomes the same
@@ -43,8 +55,8 @@ export interface RecordListGrouping<R extends RecordListRow = RecordListRow> {
43
55
  key: string;
44
56
  /** Its name in the menu. */
45
57
  label: string;
46
- /** A row's group, by its label. */
47
- group: (row: R) => string;
58
+ /** A row's group, by its label, or a heading with the kind's mark. */
59
+ group: (row: R) => string | RecordListGroup;
48
60
  /**
49
61
  * The groups' order: `rows`, the order their first rows come (the
50
62
  * default); `label`, A to Z by label, numerals as numbers.
package/dist/styles.css CHANGED
@@ -1277,6 +1277,16 @@
1277
1277
  min-height: 0;
1278
1278
  }
1279
1279
 
1280
+ /* A tool whose last block is a list that scrolls its own rows (a RecordList,
1281
+ a Ledger) runs the list to the frame's foot: a row the window's edge cuts
1282
+ reads as more to come, where one cut over a band of ground read as clipped,
1283
+ and a phone's or a Mac's scroll bar shows only while scrolling. */
1284
+ .ds-page[data-page='tool'] > .ds-page-main:has(> :last-child:is([data-slot='record-list'], [data-slot='ledger'])),
1285
+ .ds-page[data-page='tool']
1286
+ > .ds-page-main:has(> [data-slot='page-container']:last-child > :last-child:is([data-slot='record-list'], [data-slot='ledger'])) {
1287
+ padding-bottom: env(safe-area-inset-bottom);
1288
+ }
1289
+
1280
1290
  /* Panel: the content beside the pane is left-aligned to it, each block at
1281
1291
  the panel measure; `fill` content (a transcript) takes the whole frame and
1282
1292
  keeps its own gutters. */
@@ -1284,6 +1294,13 @@
1284
1294
  max-width: var(--ds-page-panel);
1285
1295
  }
1286
1296
 
1297
+ /* A block that holds a table is tabular, not prose: its measure is the frame's,
1298
+ so a list of people does not stop at the width a paragraph reads at and leave
1299
+ an empty band beside it. Prose and forms keep the panel measure. */
1300
+ .ds-page[data-page='panel']:not([data-fill]) > .ds-page-main > :has([data-slot='table']) {
1301
+ max-width: none;
1302
+ }
1303
+
1287
1304
  .ds-page[data-page='panel'][data-fill] > .ds-page-main {
1288
1305
  padding: 0;
1289
1306
  overflow: hidden;
package/dist/utils.js CHANGED
@@ -1,5 +1,10 @@
1
1
  import { clsx } from 'clsx';
2
- import { twMerge } from 'tailwind-merge';
2
+ import { extendTailwindMerge } from 'tailwind-merge';
3
+ // The type scale's keys (styles.css `@theme`) are sizes. Unknown to tailwind-merge, `text-body`
4
+ // reads as a colour, and a `text-foreground` beside it is dropped.
5
+ const twMerge = extendTailwindMerge({
6
+ extend: { classGroups: { 'font-size': [{ text: ['display', 'section', 'heading', 'body', 'stat'] }] } }
7
+ });
3
8
  export function cn(...inputs) {
4
9
  return twMerge(clsx(inputs));
5
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poodle64/ui",
3
- "version": "2026.11.14",
3
+ "version": "2026.11.16",
4
4
  "description": "Household shared component layer: shadcn-svelte primitives (bits-ui) plus the composed page chrome every app builds its routes from, restyled by each app's @poodle64/design-tokens alias layer. One fix reaches every app.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "meta": {
3
3
  "package": "@poodle64/ui",
4
- "version": "2026.11.14",
4
+ "version": "2026.11.16",
5
5
  "generatedBy": "scripts/generate-registry.mjs",
6
6
  "source": "scripts/situations.json + package source (DO NOT EDIT the outputs by hand)",
7
- "componentCount": 76,
8
- "situationCount": 20
7
+ "componentCount": 77,
8
+ "situationCount": 21
9
9
  },
10
10
  "situations": [
11
11
  {
@@ -36,6 +36,20 @@
36
36
  }
37
37
  ]
38
38
  },
39
+ {
40
+ "key": "key-figures",
41
+ "title": "A page's key figures",
42
+ "description": "The two to five figures a page leads with, read across in one row under its lead: each figure as wide as its number, a hairline between two.",
43
+ "components": [
44
+ {
45
+ "name": "KeyFigures",
46
+ "dir": "key-figures",
47
+ "import": "@poodle64/ui/key-figures",
48
+ "props": "figures, label?",
49
+ "insteadOf": "a grid of Cards or StatCards, a tile and an icon per figure, mostly empty at a wide screen"
50
+ }
51
+ ]
52
+ },
39
53
  {
40
54
  "key": "compact-figures",
41
55
  "title": "Several bare figures together",
@@ -1,7 +1,7 @@
1
1
  # @poodle64/ui — situation → component map
2
2
 
3
3
  <!-- GENERATED by scripts/generate-registry.mjs from scripts/situations.json + package source. DO NOT EDIT. -->
4
- Generated from `@poodle64/ui@2026.11.14`. 76 components, 20 situations.
4
+ Generated from `@poodle64/ui@2026.11.16`. 77 components, 21 situations.
5
5
 
6
6
  **Read this before writing a `<div>`.** Find the SITUATION you are in below, then compose the component named for it — do not hand-build it from raw `Card` or utility classes. Import is `import { Name } from '<import path>'`. Props marked `?` are optional. This map is the retrieval step the [`design-frontend` skill] makes mandatory; the [CHI 2026 study] measured composing-from-a-registry at 95% design-system compliance against 71% for writing the CSS from a prose style guide.
7
7
 
@@ -24,6 +24,14 @@ _One headline metric that earns a tile — a figure with a label, an optional un
24
24
  | --- | --- | --- | --- |
25
25
  | `StatCard` | `@poodle64/ui/stat-card` | `label, value, unit?, sub?, status?, valueTone?, icon?` | a Card you hand-build with a label over a big number |
26
26
 
27
+ ## A page's key figures
28
+
29
+ _The two to five figures a page leads with, read across in one row under its lead: each figure as wide as its number, a hairline between two._
30
+
31
+ | Component | Import | Key props | Reach for it instead of |
32
+ | --- | --- | --- | --- |
33
+ | `KeyFigures` | `@poodle64/ui/key-figures` | `figures, label?` | a grid of Cards or StatCards, a tile and an icon per figure, mostly empty at a wide screen |
34
+
27
35
  ## Several bare figures together
28
36
 
29
37
  _A block of plain figures read at a glance — an 'at a glance' strip — where each number is too small to earn its own StatCard._