@poodle64/ui 2026.10.26 → 2026.10.27

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 (36) hide show
  1. package/README.md +123 -169
  2. package/dist/components/ui/app-dialog/app-dialog.svelte +2 -1
  3. package/dist/components/ui/app-shell/app-shell.svelte +251 -97
  4. package/dist/components/ui/app-shell/app-shell.svelte.d.ts +15 -27
  5. package/dist/components/ui/app-shell/column-scope.svelte +15 -0
  6. package/dist/components/ui/app-shell/column-scope.svelte.d.ts +12 -0
  7. package/dist/components/ui/app-shell/index.d.ts +3 -1
  8. package/dist/components/ui/app-shell/index.js +3 -1
  9. package/dist/components/ui/app-shell/page-aside.svelte +58 -0
  10. package/dist/components/ui/app-shell/page-aside.svelte.d.ts +30 -0
  11. package/dist/components/ui/app-shell/page-pane.svelte +73 -0
  12. package/dist/components/ui/app-shell/page-pane.svelte.d.ts +37 -0
  13. package/dist/components/ui/app-shell/page.d.ts +77 -0
  14. package/dist/components/ui/app-shell/page.js +45 -0
  15. package/dist/components/ui/collection-detail/collection-detail.svelte +1 -1
  16. package/dist/components/ui/content-skeleton/content-skeleton.svelte +1 -1
  17. package/dist/components/ui/context-column/context-column.svelte +47 -146
  18. package/dist/components/ui/context-column/context-column.svelte.d.ts +3 -5
  19. package/dist/components/ui/document-reader/document-reader.svelte +56 -24
  20. package/dist/components/ui/document-reader/document-reader.svelte.d.ts +5 -4
  21. package/dist/components/ui/page-section/page-section.svelte +1 -1
  22. package/dist/components/ui/panel/panel.svelte +1 -0
  23. package/dist/components/ui/settings-shell/settings-shell.svelte +67 -81
  24. package/dist/components/ui/settings-shell/settings-shell.svelte.d.ts +21 -60
  25. package/dist/styles.css +246 -117
  26. package/package.json +1 -1
  27. package/registry/component-map.json +22 -15
  28. package/registry/component-map.md +8 -7
  29. package/dist/components/ui/app-shell/measure.d.ts +0 -28
  30. package/dist/components/ui/app-shell/measure.js +0 -21
  31. package/dist/components/ui/app-shell/padding.d.ts +0 -27
  32. package/dist/components/ui/app-shell/padding.js +0 -27
  33. package/dist/components/ui/list-shell/index.d.ts +0 -2
  34. package/dist/components/ui/list-shell/index.js +0 -2
  35. package/dist/components/ui/list-shell/list-shell.svelte +0 -85
  36. package/dist/components/ui/list-shell/list-shell.svelte.d.ts +0 -39
package/dist/styles.css CHANGED
@@ -352,21 +352,24 @@
352
352
  --ds-shell-rail-width: 15.5rem;
353
353
  --ds-shell-rail-width-collapsed: 3.5rem;
354
354
 
355
- /* ── Content measure ──────────────────────────────────────────────────────
356
- The scale AppShell's `measure` prop selects between, as custom properties
357
- for the same reason the rail width is one: an app retunes a tier in one
358
- declaration instead of waiting on a release of this package.
359
-
360
- `prose` is in `rem`, like the other two, though it is a reading measure.
361
- `ch` resolves against each element's OWN font size, so blocks of 20, 16
362
- and 14px in one column stopped at three different right edges (982, 770
363
- and 674px measured). A root-relative length gives them one edge. 40rem
364
- is about 70 characters of body text in the household face; a caller that
365
- wants a different count retunes the property.
355
+ /* ── Page types ───────────────────────────────────────────────────────────
356
+ The widths a route's page type (AppShell `pageType`) lays its page out
357
+ with, as custom properties for the reason the rail's width is one: an app
358
+ retunes one in one declaration, and never writes a width of its own.
359
+
360
+ The reading column is in `rem`, not `ch`: `ch` resolves against each
361
+ element's own font size, so blocks of 20, 16 and 14px in one column ended
362
+ at three right edges. 44rem is about 75 characters of body text in the
363
+ household face. The pane is the rail's own width, open and folded, so the
364
+ two columns at the left edge read as one system.
366
365
  ──────────────────────────────────────────────────────────────────────── */
367
- --ds-shell-measure-prose: 40rem;
368
- --ds-shell-measure-page: 80rem;
369
- --ds-shell-measure-wide: 120rem;
366
+ --ds-page-reading: 44rem;
367
+ --ds-page-aside: 20rem;
368
+ --ds-page-aside-tool: clamp(20rem, 24cqi, 28rem);
369
+ --ds-page-aside-gap: 3rem;
370
+ --ds-page-pane: var(--ds-shell-rail-width);
371
+ --ds-page-pane-folded: var(--ds-shell-rail-width-collapsed);
372
+ --ds-page-panel: 52rem;
370
373
  }
371
374
 
372
375
  /* ─────────────────────────────────────────────────────────────────────────────
@@ -931,64 +934,6 @@
931
934
  padding-inline: calc((var(--ds-shell-rail-width-collapsed) - 1.5rem - 1.125rem) / 2) 0.625rem;
932
935
  }
933
936
 
934
- /* The settings destination's two panes (SettingsShell).
935
-
936
- Only the SHAPE is here; the list's width, tint and rule are utilities on the
937
- AppNav element itself, because AppNav declares `flex-1` there and a
938
- base-layer `flex: none` would lose to it by layer order rather than by
939
- position — the cascade trap recorded against `.ds-nav`'s ink. What is left is
940
- the axis swap and the scroll bounding, which nothing else declares.
941
-
942
- 48rem is Tailwind's own --breakpoint-md, written literally for the reason
943
- `.ds-shell-rail` writes it literally: a media query cannot read a custom
944
- property, so an app that retunes md retunes this with it. */
945
- .ds-settings {
946
- display: flex;
947
- flex-direction: column;
948
- flex: 1 1 auto;
949
- }
950
-
951
- /* `min-height: 0` is what buys the two independent scrollers, and it is
952
- deliberately NOT set below md. A flex item is floored at its content height
953
- unless it is allowed to shrink past it, so without this neither pane ever
954
- scrolls and the whole content area does instead. Below md that floor is
955
- exactly what is wanted: the list stacks above the content and the page
956
- scrolls as one, which is the only sane arrangement on a phone — two nested
957
- scrollers at 375px is the sideways-scroll hazard this package already carries
958
- a gate for. */
959
- @media (min-width: 48rem) {
960
- .ds-settings {
961
- flex-direction: row;
962
- min-height: 0;
963
- }
964
- }
965
-
966
- .ds-settings-pane {
967
- flex: 1 1 auto;
968
- min-width: 0;
969
- }
970
-
971
- /* The pane stacks its sections itself, so a settings page writes a run of
972
- Panels and no wrapper — the framing markup this surface exists to stop a
973
- consumer writing. 1.25rem is the package's existing section rhythm, the same
974
- gap `.ds-dialog-section` puts between adjacent sections.
975
-
976
- A margin rule rather than `display: flex; gap`, because at md and up this box
977
- is a height-bounded scroller: as a flex column its children carry
978
- `flex-shrink: 1` and get squashed toward min-content before the scrollbar is
979
- ever reached, so a tall section would compress instead of scrolling. Block
980
- flow overflows, which is what a scroller wants. */
981
- .ds-settings-pane > * + * {
982
- margin-top: 1.25rem;
983
- }
984
-
985
- @media (min-width: 48rem) {
986
- .ds-settings-pane {
987
- min-height: 0;
988
- overflow-y: auto;
989
- }
990
- }
991
-
992
937
  /* A hard ceiling on the whole shell, in the one unit that names the actual
993
938
  drawn surface rather than a percentage of an ancestor. `.ds-shell` is
994
939
  already `flex` with `overflow-hidden` in the component markup, which
@@ -1126,58 +1071,245 @@
1126
1071
  outline: none;
1127
1072
  }
1128
1073
 
1129
- /* The content measure: the shell's content box is ONE element in four
1130
- states, the same shape as the rail above it.
1074
+ /* ── The page frame (AppShell `pageType`, page.ts) ─────────────────────────
1075
+ One element, `.ds-page`, inside the scrolling content region, laid out by
1076
+ the type its route declared; nothing on a page sets a width, a gutter or
1077
+ a scroller of its own. The content region is the container every rule
1078
+ here queries, so a folded rail or a narrow window is read as the room the
1079
+ page actually has, never the window's.
1131
1080
 
1132
- Real declarations here rather than a `max-w-[var(--ds-shell-measure-page)]`
1133
- utility on the component, for the reason the rail's width is here too: an
1134
- arbitrary utility only exists if the CONSUMER's Tailwind build happened to
1135
- scan the file that spells it, whereas this stylesheet is imported by every
1136
- consumer as a condition of using the package at all. Whoever writes the
1137
- utility owns whatever makes it real.
1081
+ Gutters: one scale for every type, so a page's first column starts on the
1082
+ same line whatever it is. A reading page breathes more above and below
1083
+ than a tool, which spends its height on the thing it shows. */
1084
+ .ds-shell-main {
1085
+ container: ds-page / inline-size;
1086
+ }
1138
1087
 
1139
- `full` writes no attribute and matches nothing here, so a shell that never
1140
- asked for a measure carries no class, no attribute and no declaration —
1141
- which is what makes the prop additive rather than a default anyone has to
1142
- opt out of.
1088
+ .ds-page {
1089
+ --ds-page-gutter: 1rem;
1090
+ --ds-page-block: 1.5rem;
1091
+ --ds-page-tool-block: 1rem;
1092
+ min-width: 0;
1093
+ }
1143
1094
 
1144
- The cap is the BORDER box, so `padded` spends its inline padding inside
1145
- the measure rather than outside it. That is the same arithmetic as the
1146
- `mx-auto max-w-4xl px-6` idiom this replaces, and keeping it means one
1147
- element rather than a second wrapper nobody asked for. */
1148
- /* Two classes, because the MEASURE and the CENTRING are two decisions and
1149
- only the shell's content box wants both (design-system#22).
1095
+ @container ds-page (min-width: 40rem) {
1096
+ .ds-page {
1097
+ --ds-page-gutter: 2rem;
1098
+ --ds-page-block: 2.5rem;
1099
+ --ds-page-tool-block: 1.5rem;
1100
+ }
1101
+ }
1102
+
1103
+ @container ds-page (min-width: 64rem) {
1104
+ .ds-page {
1105
+ --ds-page-gutter: 3rem;
1106
+ --ds-page-block: 3.5rem;
1107
+ --ds-page-tool-block: 1.75rem;
1108
+ }
1109
+ }
1110
+
1111
+ @container ds-page (min-width: 100rem) {
1112
+ .ds-page {
1113
+ --ds-page-block: 4.5rem;
1114
+ }
1115
+ }
1116
+
1117
+ /* Reading: one centred column, and the aside beside it with the PAIR
1118
+ centred, so neither is pinned to an edge. Every block in the column ends
1119
+ at the column's one right edge. Below 66rem of region the aside follows
1120
+ the column; from there it stands beside it, and stays in view as the page
1121
+ scrolls. */
1122
+ .ds-page[data-page='reading'] {
1123
+ display: grid;
1124
+ grid-template-columns: minmax(0, var(--ds-page-reading));
1125
+ justify-content: center;
1126
+ align-content: start;
1127
+ row-gap: 2.5rem;
1128
+ column-gap: var(--ds-page-aside-gap);
1129
+ padding: var(--ds-page-block) var(--ds-page-gutter)
1130
+ calc(var(--ds-page-block) + env(safe-area-inset-bottom));
1131
+ }
1132
+
1133
+ @container ds-page (min-width: 66rem) {
1134
+ .ds-page[data-page='reading'][data-aside] {
1135
+ grid-template-columns: minmax(0, var(--ds-page-reading)) var(--ds-page-aside);
1136
+ }
1150
1137
 
1151
- `.ds-measure` caps the width and nothing else. It is for a block INSIDE a
1152
- page — the paragraph of explanatory prose on a route legitimately set to
1153
- `wide`, which would otherwise inherit a 120rem measure and run to ~123
1154
- characters a line. `.ds-shell-measure` is that plus `margin-inline: auto`,
1155
- which is right for the content box and wrong for a block within a page:
1156
- applied to a set of left-anchored paragraphs it indented them ~207px away
1157
- from their own label, measured in a consumer and reverted.
1138
+ .ds-page[data-page='reading'] > .ds-page-aside {
1139
+ position: sticky;
1140
+ top: var(--ds-page-block);
1141
+ align-self: start;
1142
+ max-height: calc(100dvh - 3.5rem - 2 * var(--ds-page-block));
1143
+ overflow-y: auto;
1144
+ }
1145
+ }
1158
1146
 
1159
- Same attribute, same custom properties, so a block retunes with the shell
1160
- rather than drifting from it. That is the whole point: the alternative an
1161
- app reaches for is a local `max-w-prose` or `max-w-[72ch]`, which is a
1162
- number typed once that never hears about a retune — four apps had written
1163
- ten of them between them, and not one matched this package's own measure. */
1164
- .ds-measure[data-measure='prose'],
1165
- .ds-shell-measure[data-measure='prose'] {
1166
- max-width: var(--ds-shell-measure-prose);
1147
+ /* A page's own top-level blocks stack at the page rhythm, by margin rather
1148
+ than flex gap: where this box is a height-bounded scroller (a panel's
1149
+ content), flex children carry `flex-shrink: 1` and a tall one would
1150
+ compress instead of scrolling. */
1151
+ .ds-page:is([data-page='reading'], [data-page='panel']:not([data-fill])) > .ds-page-main {
1152
+ display: flow-root;
1153
+ min-width: 0;
1167
1154
  }
1168
1155
 
1169
- .ds-measure[data-measure='page'],
1170
- .ds-shell-measure[data-measure='page'] {
1171
- max-width: var(--ds-shell-measure-page);
1156
+ .ds-page:is([data-page='reading'], [data-page='panel']:not([data-fill])) > .ds-page-main > * + * {
1157
+ margin-top: 1.5rem;
1172
1158
  }
1173
1159
 
1174
- .ds-measure[data-measure='wide'],
1175
- .ds-shell-measure[data-measure='wide'] {
1176
- max-width: var(--ds-shell-measure-wide);
1160
+ .ds-page > .ds-page-aside {
1161
+ display: flex;
1162
+ flex-direction: column;
1163
+ gap: 1.25rem;
1164
+ min-width: 0;
1177
1165
  }
1178
1166
 
1179
- .ds-shell-measure {
1180
- margin-inline: auto;
1167
+ /* Tool and panel: the frame is exactly the content region, so the page
1168
+ itself never scrolls. What scrolls is the content (and the pane, and the
1169
+ aside, each on its own), padded inside its own scroller so the scrollbar
1170
+ sits at the frame's edge. */
1171
+ .ds-page:is([data-page='tool'], [data-page='panel']) {
1172
+ display: flex;
1173
+ flex: 1 1 0%;
1174
+ min-height: 0;
1175
+ }
1176
+
1177
+ .ds-page:is([data-page='tool'], [data-page='panel']) > .ds-page-main {
1178
+ flex: 1 1 0%;
1179
+ min-width: 0;
1180
+ min-height: 0;
1181
+ overflow-y: auto;
1182
+ padding: var(--ds-page-tool-block) var(--ds-page-gutter)
1183
+ calc(var(--ds-page-tool-block) + env(safe-area-inset-bottom));
1184
+ }
1185
+
1186
+ /* A tool's blocks keep their own height, so a page taller than the frame
1187
+ (a dashboard) scrolls in its own box with nothing squeezed. Its fill — a
1188
+ block that says so (`data-fill`: a Panel that scrolls, a graph, a table,
1189
+ an embedded library), or the PageContainer holding one — takes the rest of
1190
+ the frame's height and scrolls inside itself, never shorter than 24rem.
1191
+ A panel page's `fill` content is its one block, filling the frame. */
1192
+ .ds-page[data-page='tool'] > .ds-page-main,
1193
+ .ds-page[data-page='panel'][data-fill] > .ds-page-main {
1194
+ display: flex;
1195
+ flex-direction: column;
1196
+ gap: 1.5rem;
1197
+ }
1198
+
1199
+ .ds-page[data-page='tool'] :is(.ds-page-main, [data-slot='page-container']) > * {
1200
+ flex-shrink: 0;
1201
+ }
1202
+
1203
+ .ds-page[data-page='tool'] :is(.ds-page-main, [data-slot='page-container']) > :is([data-fill], [data-slot='page-container']:has([data-fill])) {
1204
+ flex: 1 1 0%;
1205
+ min-height: min(100%, 24rem);
1206
+ }
1207
+
1208
+ .ds-page[data-page='panel'][data-fill] > .ds-page-main > :last-child {
1209
+ flex: 1 1 0%;
1210
+ min-height: 0;
1211
+ }
1212
+
1213
+ /* Panel: the content beside the pane is left-aligned to it, each block at
1214
+ the panel measure; `fill` content (a transcript) takes the whole frame and
1215
+ keeps its own gutters. */
1216
+ .ds-page[data-page='panel']:not([data-fill]) > .ds-page-main > * {
1217
+ max-width: var(--ds-page-panel);
1218
+ }
1219
+
1220
+ .ds-page[data-page='panel'][data-fill] > .ds-page-main {
1221
+ padding: 0;
1222
+ overflow: hidden;
1223
+ }
1224
+
1225
+ /* A tool's aside is a column of the frame, the pane's mirror: flush against
1226
+ the frame's right edge behind its own rule, so a short card in it reads as
1227
+ the column's head rather than a card stranded at the edge. */
1228
+ .ds-page:is([data-page='tool'], [data-page='panel']) > .ds-page-aside {
1229
+ flex: none;
1230
+ width: var(--ds-page-aside-tool);
1231
+ min-height: 0;
1232
+ overflow-y: auto;
1233
+ border-inline-start: 1px solid var(--border);
1234
+ padding: var(--ds-page-tool-block) 1rem
1235
+ calc(var(--ds-page-tool-block) + env(safe-area-inset-bottom));
1236
+ }
1237
+
1238
+ /* The pane: flush against the rail, as wide as the rail and folded as
1239
+ narrow as it, its body scrolling above a pinned foot. The same body and
1240
+ foot fill the sheet below 64rem of window. */
1241
+ .ds-page-pane {
1242
+ display: flex;
1243
+ flex: none;
1244
+ flex-direction: column;
1245
+ width: var(--ds-page-pane);
1246
+ min-height: 0;
1247
+ border-inline-end: 1px solid var(--border);
1248
+ }
1249
+
1250
+ .ds-page-pane[data-folded='true'] {
1251
+ width: var(--ds-page-pane-folded);
1252
+ }
1253
+
1254
+ .ds-page-pane-body {
1255
+ flex: 1 1 auto;
1256
+ min-height: 0;
1257
+ overflow-y: auto;
1258
+ }
1259
+
1260
+ .ds-page-pane-foot {
1261
+ flex: none;
1262
+ border-top: 1px solid var(--border);
1263
+ padding: 0.5rem;
1264
+ }
1265
+
1266
+ .ds-page-pane-foot:empty {
1267
+ display: none;
1268
+ }
1269
+
1270
+ .ds-page-aside-sheet {
1271
+ display: flex;
1272
+ flex: 1 1 auto;
1273
+ flex-direction: column;
1274
+ gap: 1.25rem;
1275
+ min-height: 0;
1276
+ overflow-y: auto;
1277
+ padding: 1rem;
1278
+ }
1279
+
1280
+ /* DocumentReader in a shell: its contents list is the page's aside, and the
1281
+ disclosure above the body stands in for it wherever that aside is not
1282
+ beside the column. */
1283
+ .ds-page [data-slot='document-reader-contents'] {
1284
+ display: flex;
1285
+ flex-direction: column;
1286
+ gap: 0.5rem;
1287
+ }
1288
+
1289
+ .ds-page[data-aside='column'] [data-slot='document-reader-disclosure'] {
1290
+ display: none;
1291
+ }
1292
+
1293
+ @container ds-page (min-width: 66rem) {
1294
+ .ds-page[data-page='reading'][data-aside] [data-slot='document-reader-disclosure'] {
1295
+ display: none;
1296
+ }
1297
+ }
1298
+
1299
+ @container ds-page not (min-width: 66rem) {
1300
+ .ds-page[data-page='reading'] > .ds-page-aside [data-slot='document-reader-contents'] {
1301
+ display: none;
1302
+ }
1303
+
1304
+ .ds-page[data-page='reading'] > .ds-page-aside:has(> [data-only-contents]) {
1305
+ display: none;
1306
+ }
1307
+ }
1308
+
1309
+ /* A line of explanation a component sets (a section's description) keeps a
1310
+ reading length where its frame is wider than the reading column. */
1311
+ .ds-page:is([data-page='tool'], [data-page='panel'][data-fill]) [data-prose] {
1312
+ max-width: var(--ds-page-reading);
1181
1313
  }
1182
1314
 
1183
1315
  /* ── The prose face (design-system#32) ────────────────────────────────────
@@ -1195,10 +1327,7 @@
1195
1327
  a security boundary, and a package cannot see the inputs the boundary is
1196
1328
  protecting. The app owns the markdown-to-HTML seam and hands the result in.
1197
1329
 
1198
- It carries no measure. A reading measure and a reading face are two
1199
- decisions, and an app composes them:
1200
-
1201
- <div class="ds-prose ds-measure" data-measure="prose">…</div>
1330
+ It carries no measure: a `reading` page's column is the measure.
1202
1331
 
1203
1332
  Nothing here reaches for a colour or a length that is not a --ds-* token,
1204
1333
  so a palette or a retune moves the whole face with it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poodle64/ui",
3
- "version": "2026.10.26",
3
+ "version": "2026.10.27",
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,10 +1,10 @@
1
1
  {
2
2
  "meta": {
3
3
  "package": "@poodle64/ui",
4
- "version": "2026.10.26",
4
+ "version": "2026.10.27",
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,
7
+ "componentCount": 75,
8
8
  "situationCount": 20
9
9
  },
10
10
  "situations": [
@@ -368,14 +368,14 @@
368
368
  {
369
369
  "key": "page-frame",
370
370
  "title": "The frame every route shares",
371
- "description": "The standing chrome — the app shell and its nav, the one page-title treatment and its trail, the page's own container and sections, the persistent right-hand context column, a foldable working list beside the page's own content.",
371
+ "description": "The standing chrome — the app shell and its nav, the one page-title treatment and its trail, the page's own container and sections — and the page type a route declares (`pageType`: reading, panel or tool), which decides every width, gutter and second column so a page writes none.",
372
372
  "components": [
373
373
  {
374
374
  "name": "AppShell",
375
375
  "dir": "app-shell",
376
376
  "import": "@poodle64/ui/app-shell",
377
- "props": "nav, currentPath, brandTitle?, actions?, context?, children",
378
- "insteadOf": "a bespoke nav rail + header layout per app"
377
+ "props": "nav, currentPath, pageType?, title?, brandTitle?, actions?, context?, children",
378
+ "insteadOf": "a bespoke nav rail + header layout per app, and any width, padding or measure a page sets for itself"
379
379
  },
380
380
  {
381
381
  "name": "ShellControls",
@@ -426,19 +426,26 @@
426
426
  "props": "name, groups, current?, noun?, placeholder?, icon?, all?, pages?, separator?",
427
427
  "insteadOf": "a bare record name beside a small chevrons button in the top bar, and a dropdown of names with no search, groups or thumbnails; the record's own page tabs come with it"
428
428
  },
429
+ {
430
+ "name": "PagePane",
431
+ "dir": "app-shell",
432
+ "import": "@poodle64/ui/app-shell",
433
+ "props": "label, body, icon?, location?, remember?, fill?, foot?, folded?",
434
+ "insteadOf": "a module hand-rolling a second column flush against the rail (past questions, a queue, a working list), its width, fold and phone sheet"
435
+ },
436
+ {
437
+ "name": "PageAside",
438
+ "dir": "app-shell",
439
+ "import": "@poodle64/ui/app-shell",
440
+ "props": "label, children?, body?, icon?",
441
+ "insteadOf": "a hand-placed right-hand column or a sticky sidebar beside a page's content, with its own width and breakpoint"
442
+ },
429
443
  {
430
444
  "name": "ContextColumn",
431
445
  "dir": "context-column",
432
446
  "import": "@poodle64/ui/context-column",
433
447
  "props": "stats?, statsTitle?, statsInfo?, detail?, title?, subtitle?, onClose?, children?, documentPane?, ariaLabel?",
434
- "insteadOf": "a hand-built right-hand <aside> with a stat card and a detail pane; on a record page, the one opened item (title, close, an inner scroll) and its DocumentPane, in the column's place or beside it once the page's row has room"
435
- },
436
- {
437
- "name": "ListShell",
438
- "dir": "list-shell",
439
- "import": "@poodle64/ui/list-shell",
440
- "props": "title, children, label?, open?, actions?",
441
- "insteadOf": "a module hand-rolling its own foldable second column beside the rail — a queue, an inbox, a working list"
448
+ "insteadOf": "a hand-built right-hand <aside> with a stat card and a detail pane; on a record page, the one opened item (title, close, an inner scroll) and its DocumentPane; the page aside places it"
442
449
  },
443
450
  {
444
451
  "name": "AppIdentity",
@@ -452,13 +459,13 @@
452
459
  {
453
460
  "key": "settings-destination",
454
461
  "title": "The settings destination",
455
- "description": "The one settings surface: a grouped section list beside the section you are reading, inside AppShell’s content area (give AppShell padded={false}). Sections are grouped by whose setting it is — the person’s, then the workspace’s. The sections themselves are Panels.",
462
+ "description": "The one settings surface: a grouped section list as a panel page's pane beside the section you are reading (the route declares pageType 'panel'). Sections are grouped by whose setting it is — the person's, then the workspace's. The sections themselves are Panels.",
456
463
  "components": [
457
464
  {
458
465
  "name": "SettingsShell",
459
466
  "dir": "settings-shell",
460
467
  "import": "@poodle64/ui/settings-shell",
461
- "props": "sections, children, currentPath?, selected?, onSelect?, listLabel?",
468
+ "props": "sections, children, currentPath?, selected?, onSelect?, listLabel?, title?",
462
469
  "insteadOf": "a hand-built two-pane settings layout, or a card of tab links in a grid, per app"
463
470
  },
464
471
  {
@@ -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.10.26`. 76 components, 20 situations.
4
+ Generated from `@poodle64/ui@2026.10.27`. 75 components, 20 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 [`frontend-design` 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
 
@@ -157,11 +157,11 @@ _People, organisations, sources or any entities as nodes and their relations as
157
157
 
158
158
  ## The frame every route shares
159
159
 
160
- _The standing chrome — the app shell and its nav, the one page-title treatment and its trail, the page's own container and sections, the persistent right-hand context column, a foldable working list beside the page's own content._
160
+ _The standing chrome — the app shell and its nav, the one page-title treatment and its trail, the page's own container and sections — and the page type a route declares (`pageType`: reading, panel or tool), which decides every width, gutter and second column so a page writes none._
161
161
 
162
162
  | Component | Import | Key props | Reach for it instead of |
163
163
  | --- | --- | --- | --- |
164
- | `AppShell` | `@poodle64/ui/app-shell` | `nav, currentPath, brandTitle?, actions?, context?, children` | a bespoke nav rail + header layout per app |
164
+ | `AppShell` | `@poodle64/ui/app-shell` | `nav, currentPath, pageType?, title?, brandTitle?, actions?, context?, children` | a bespoke nav rail + header layout per app, and any width, padding or measure a page sets for itself |
165
165
  | `ShellControls` | `@poodle64/ui/app-shell` | `children` | a scope row (entity, financial year, chart/table) hand-placed above the page body; the shell's top bar carries it |
166
166
  | `Segmented` | `@poodle64/ui/segmented` | `value, options, label, size?` | a hand-built row of aria-pressed buttons for a small fixed choice |
167
167
  | `PageHeader` | `@poodle64/ui/page-header` | `title?, eyebrow?, breadcrumbs?, icon?, subtitle?, info?, meta?, actions?` | a hand-written <h1> and title bar (the drift gate fails this) |
@@ -169,17 +169,18 @@ _The standing chrome — the app shell and its nav, the one page-title treatment
169
169
  | `PageContainer` | `@poodle64/ui/page-container` | `children` | a per-page wrapper picking its own vertical rhythm (space-y-6, gap-10, …) |
170
170
  | `PageSection` | `@poodle64/ui/page-section` | `title, level?, description?, count?, actions?, children?, id?` | a hand-styled section heading (an uppercase kicker, text-lg font-semibold, a display h2) and its own gap to the content under it |
171
171
  | `RecordSwitcher` | `@poodle64/ui/record-switcher` | `name, groups, current?, noun?, placeholder?, icon?, all?, pages?, separator?` | a bare record name beside a small chevrons button in the top bar, and a dropdown of names with no search, groups or thumbnails; the record's own page tabs come with it |
172
- | `ContextColumn` | `@poodle64/ui/context-column` | `stats?, statsTitle?, statsInfo?, detail?, title?, subtitle?, onClose?, children?, documentPane?, ariaLabel?` | a hand-built right-hand <aside> with a stat card and a detail pane; on a record page, the one opened item (title, close, an inner scroll) and its DocumentPane, in the column's place or beside it once the page's row has room |
173
- | `ListShell` | `@poodle64/ui/list-shell` | `title, children, label?, open?, actions?` | a module hand-rolling its own foldable second column beside the rail — a queue, an inbox, a working list |
172
+ | `PagePane` | `@poodle64/ui/app-shell` | `label, body, icon?, location?, remember?, fill?, foot?, folded?` | a module hand-rolling a second column flush against the rail (past questions, a queue, a working list), its width, fold and phone sheet |
173
+ | `PageAside` | `@poodle64/ui/app-shell` | `label, children?, body?, icon?` | a hand-placed right-hand column or a sticky sidebar beside a page's content, with its own width and breakpoint |
174
+ | `ContextColumn` | `@poodle64/ui/context-column` | `stats?, statsTitle?, statsInfo?, detail?, title?, subtitle?, onClose?, children?, documentPane?, ariaLabel?` | a hand-built right-hand <aside> with a stat card and a detail pane; on a record page, the one opened item (title, close, an inner scroll) and its DocumentPane; the page aside places it |
174
175
  | `AppIdentity` | `@poodle64/ui/app-identity` | `user, workspace?, role?, entitlements?, onSignOut, onAccountSettings?, onSwitchTheme?` | a hand-rolled account/avatar dropdown wired to raw DropdownMenu.* + Avatar.* |
175
176
 
176
177
  ## The settings destination
177
178
 
178
- _The one settings surface: a grouped section list beside the section you are reading, inside AppShell’s content area (give AppShell padded={false}). Sections are grouped by whose setting it is — the person’s, then the workspace’s. The sections themselves are Panels._
179
+ _The one settings surface: a grouped section list as a panel page's pane beside the section you are reading (the route declares pageType 'panel'). Sections are grouped by whose setting it is — the person's, then the workspace's. The sections themselves are Panels._
179
180
 
180
181
  | Component | Import | Key props | Reach for it instead of |
181
182
  | --- | --- | --- | --- |
182
- | `SettingsShell` | `@poodle64/ui/settings-shell` | `sections, children, currentPath?, selected?, onSelect?, listLabel?` | a hand-built two-pane settings layout, or a card of tab links in a grid, per app |
183
+ | `SettingsShell` | `@poodle64/ui/settings-shell` | `sections, children, currentPath?, selected?, onSelect?, listLabel?, title?` | a hand-built two-pane settings layout, or a card of tab links in a grid, per app |
183
184
  | `SettingsRow` | `@poodle64/ui/settings-row` | `label, description?, controlId?, children` | a hand-built label + description + control row inside a settings Panel (use Panel pad={false}) |
184
185
  | `About` | `@poodle64/ui/about` | `name, version, description?, brand?, links?, diagnostics?, writeClipboard?` | a per-app About page or dialogue with duplicated version, links and diagnostic copying |
185
186
 
@@ -1,28 +0,0 @@
1
- /**
2
- * The content measure: how wide the page body is allowed to get.
3
- *
4
- * A named scale rather than a width, because a width at the call site is the
5
- * problem this exists to solve. Surveyed at 2560px, one consumer had six
6
- * distinct caps across nine routes — `max-w-4xl` here, `max-w-[1600px]` there,
7
- * a `max-w-md` form somewhere else — each written by whoever built that page,
8
- * none of them wrong on its own, and no two agreeing. Between them they used
9
- * 15% to 79% of the width available. A scale with four names cannot drift like
10
- * that: it is one decision, taken once, in the layout.
11
- *
12
- * The tiers resolve through `--ds-shell-measure-*` custom properties (see
13
- * `styles.css`), so an app retunes any of them in one declaration.
14
- */
15
- /**
16
- * - `prose` — a genuine reading measure (`40rem`, about 70 characters) for long-form running text.
17
- * - `page` — everyday pages: forms, detail views, settings (`80rem`).
18
- * - `wide` — indexes, card grids, tables, dashboards (`120rem`).
19
- * - `full` — no cap. The default, so omitting `measure` changes nothing.
20
- *
21
- * The 80rem tier is `page` rather than `default` on purpose. The prop's default
22
- * is `full`, and a value literally named `default` that you do NOT get by
23
- * default is a trap a reader falls into once each. It is also not `standard`,
24
- * which this package already retired for being a name that says nothing.
25
- */
26
- export type ShellMeasure = 'prose' | 'page' | 'wide' | 'full';
27
- /** Every measure, narrowest first — the order the scale is documented in. */
28
- export declare const SHELL_MEASURES: readonly ["prose", "page", "wide", "full"];
@@ -1,21 +0,0 @@
1
- /**
2
- * The content measure: how wide the page body is allowed to get.
3
- *
4
- * A named scale rather than a width, because a width at the call site is the
5
- * problem this exists to solve. Surveyed at 2560px, one consumer had six
6
- * distinct caps across nine routes — `max-w-4xl` here, `max-w-[1600px]` there,
7
- * a `max-w-md` form somewhere else — each written by whoever built that page,
8
- * none of them wrong on its own, and no two agreeing. Between them they used
9
- * 15% to 79% of the width available. A scale with four names cannot drift like
10
- * that: it is one decision, taken once, in the layout.
11
- *
12
- * The tiers resolve through `--ds-shell-measure-*` custom properties (see
13
- * `styles.css`), so an app retunes any of them in one declaration.
14
- */
15
- /** Every measure, narrowest first — the order the scale is documented in. */
16
- export const SHELL_MEASURES = [
17
- 'prose',
18
- 'page',
19
- 'wide',
20
- 'full'
21
- ];
@@ -1,27 +0,0 @@
1
- /**
2
- * The page padding the shell gives its content area.
3
- *
4
- * A constant rather than a literal in app-shell.svelte, because it is no longer
5
- * declared in one place: SettingsShell runs inside an UNPADDED content area (its
6
- * section list has to reach the area's edges to read as a pane rather than a
7
- * floating card) and then pads its own content pane, which must land on the same
8
- * rhythm as every other page or the settings destination is the one route whose
9
- * text sits somewhere else.
10
- *
11
- * Utilities rather than a class in styles.css, deliberately: both consumers pass
12
- * this through `cn()`, so an app overriding the padding — `mainClass="px-0"`, a
13
- * flush table — still resolves through tailwind-merge. A base-layer class would
14
- * be invisible to it, and the utility would win by layer order instead of by
15
- * being last, which is the cascade trap recorded against `.ds-nav`'s ink.
16
- *
17
- * The bottom pad carries `env(safe-area-inset-bottom)` so the last row of a page
18
- * clears a home-indicator gesture bar.
19
- *
20
- * The trailing `::after` is `--ds-float-reserve`, the room a page's own floating
21
- * control (ContextColumn's opener) declares, so its last row can scroll clear.
22
- * Nothing of the shell's floats: feedback is the bar's and the drawer's. An
23
- * element rather than padding: a page taller than the content area overflows
24
- * this box, which leaves its padding behind at the area's foot, while a last
25
- * flex item follows the overflow to its end.
26
- */
27
- export declare const CONTENT_PADDING = "px-4 pt-5 pb-[calc(1.25rem+env(safe-area-inset-bottom))] sm:px-6 md:px-8 md:pt-7 md:pb-[calc(1.75rem+env(safe-area-inset-bottom))] 2xl:px-12 after:block after:flex-none after:h-[var(--ds-float-reserve,0px)]";