@poodle64/ui 2026.10.25 → 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.
- package/README.md +142 -182
- package/dist/components/feedback/report-widget.svelte +8 -33
- package/dist/components/ui/app-dialog/app-dialog.svelte +2 -1
- package/dist/components/ui/app-identity/app-identity.svelte +4 -2
- package/dist/components/ui/app-identity/app-identity.svelte.d.ts +1 -1
- package/dist/components/ui/app-shell/app-shell.svelte +300 -147
- package/dist/components/ui/app-shell/app-shell.svelte.d.ts +15 -37
- package/dist/components/ui/app-shell/column-scope.svelte +15 -0
- package/dist/components/ui/app-shell/column-scope.svelte.d.ts +12 -0
- package/dist/components/ui/app-shell/index.d.ts +4 -2
- package/dist/components/ui/app-shell/index.js +4 -2
- package/dist/components/ui/app-shell/page-aside.svelte +58 -0
- package/dist/components/ui/app-shell/page-aside.svelte.d.ts +30 -0
- package/dist/components/ui/app-shell/page-pane.svelte +73 -0
- package/dist/components/ui/app-shell/page-pane.svelte.d.ts +37 -0
- package/dist/components/ui/app-shell/page.d.ts +77 -0
- package/dist/components/ui/app-shell/page.js +45 -0
- package/dist/components/ui/app-shell/report.svelte.d.ts +10 -0
- package/dist/components/ui/app-shell/report.svelte.js +8 -0
- package/dist/components/ui/app-shell/types.d.ts +6 -4
- package/dist/components/ui/app-shell/types.js +7 -5
- package/dist/components/ui/collection-detail/collection-detail.svelte +1 -1
- package/dist/components/ui/content-skeleton/content-skeleton.svelte +1 -1
- package/dist/components/ui/context-column/context-column.svelte +47 -129
- package/dist/components/ui/context-column/context-column.svelte.d.ts +3 -5
- package/dist/components/ui/document-reader/document-reader.svelte +56 -24
- package/dist/components/ui/document-reader/document-reader.svelte.d.ts +5 -4
- package/dist/components/ui/page-section/page-section.svelte +1 -1
- package/dist/components/ui/panel/panel.svelte +1 -0
- package/dist/components/ui/settings-shell/settings-shell.svelte +67 -81
- package/dist/components/ui/settings-shell/settings-shell.svelte.d.ts +21 -60
- package/dist/styles.css +248 -120
- package/package.json +1 -1
- package/registry/component-map.json +22 -15
- package/registry/component-map.md +8 -7
- package/dist/components/ui/app-shell/measure.d.ts +0 -28
- package/dist/components/ui/app-shell/measure.js +0 -21
- package/dist/components/ui/app-shell/padding.d.ts +0 -26
- package/dist/components/ui/app-shell/padding.js +0 -26
- package/dist/components/ui/list-shell/index.d.ts +0 -2
- package/dist/components/ui/list-shell/index.js +0 -2
- package/dist/components/ui/list-shell/list-shell.svelte +0 -85
- package/dist/components/ui/list-shell/list-shell.svelte.d.ts +0 -39
|
@@ -11,74 +11,38 @@ export interface SettingsSectionGroup {
|
|
|
11
11
|
items: SettingsSection[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* The settings destination:
|
|
15
|
-
*
|
|
14
|
+
* The settings destination: its sections are a `panel` page's pane
|
|
15
|
+
* (`PagePane`), flush against the rail, and the section you are reading is
|
|
16
|
+
* the page beside it. The route declares `pageType: 'panel'`; this sets no
|
|
17
|
+
* width, padding or scroller of its own. Below 64rem of window the sections
|
|
18
|
+
* open as a sheet from the bar.
|
|
16
19
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* section list out of reach.
|
|
22
|
-
*
|
|
23
|
-
* The list renders through AppNav rather than a row renderer of its own, and
|
|
24
|
-
* that is the whole reason this component is small. AppNav already owns the
|
|
25
|
-
* group eyebrow, the active row's leading edge and tint and weight, the
|
|
26
|
-
* `aria-current="page"`, the segment-safe prefix match, truncation, and the
|
|
27
|
-
* density ramp — and it is exported in its own right precisely so a navigation
|
|
28
|
-
* list that belongs in a PAGE is built from the same affordance rather than
|
|
29
|
-
* hand-copied. The estate has already paid for the alternative once: one app's
|
|
30
|
-
* inner nav had reimplemented the active indicator independently of its own
|
|
31
|
-
* top bar. A second row renderer here would re-commit that drift one
|
|
32
|
-
* destination down, on the one surface every app is about to adopt at once.
|
|
20
|
+
* The list renders through AppNav rather than a row renderer of its own:
|
|
21
|
+
* AppNav already owns the group eyebrow, the active row's leading edge and
|
|
22
|
+
* tint, `aria-current="page"`, the segment-safe prefix match and truncation,
|
|
23
|
+
* so a row is the same row everywhere in the household.
|
|
33
24
|
*
|
|
34
25
|
* Grouping is by WHOSE setting it is — the person's, then the workspace's —
|
|
35
|
-
* because that is the only split a reader can predict
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* sections yet can leave the group in its list rather than stubbing a row that
|
|
39
|
-
* leads nowhere.
|
|
40
|
-
*
|
|
41
|
-
* One label per row, nothing beneath it. A description long enough to be worth
|
|
42
|
-
* reading does not fit a 240px column: every one of them truncated to an
|
|
43
|
-
* ellipsis and told the reader less than the label already did (measured
|
|
44
|
-
* 16/09/2026 in a consumer, removed there the same day). The page introduces
|
|
45
|
-
* its own sections — that is what Panel's `description` is for.
|
|
46
|
-
*
|
|
47
|
-
* No "Settings" heading. The shell's bar names the section it is on as of
|
|
48
|
-
* 2026.9.16, so a heading here is the same word twice, one above the other.
|
|
26
|
+
* because that is the only split a reader can predict. A group whose `items`
|
|
27
|
+
* is empty renders nothing (`toGroups` drops it). One label per row, nothing
|
|
28
|
+
* beneath it: the page introduces its own sections (Panel's `description`).
|
|
49
29
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* alternative and loses on the requirement it was meant to serve — every
|
|
53
|
-
* section reachable in one tap. A strip fits about two and a half rows at
|
|
54
|
-
* 375px, so the rest are behind a sideways swipe with no scrollbar to
|
|
55
|
-
* advertise them: a swipe THEN a tap, where a stack is a scroll the reader is
|
|
56
|
-
* already doing. It also has to drop the group labels for width, which throws
|
|
57
|
-
* away the one split the reader could predict, and it needs a second row
|
|
58
|
-
* renderer in a horizontal mode — the drift this component exists to avoid.
|
|
59
|
-
*
|
|
60
|
-
* USE IT WITH `padded={false}` on AppShell. The list's border and tint have to
|
|
61
|
-
* reach the content area's edges or the two panes read as a floating card, and
|
|
62
|
-
* this component pads its own content pane to the shell's own rhythm
|
|
63
|
-
* (`CONTENT_PADDING`) so the settings destination is not the one route whose
|
|
64
|
-
* text sits somewhere else.
|
|
30
|
+
* The bar names where the reader is, "Settings › Account": the rail has no
|
|
31
|
+
* row for Settings (it opens from the account menu), so the pane says it.
|
|
65
32
|
*/
|
|
66
33
|
import type { Snippet } from 'svelte';
|
|
67
|
-
import type
|
|
68
|
-
|
|
69
|
-
import { type WithElementRef } from '../../../utils.js';
|
|
70
|
-
type Shared = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
34
|
+
import { type NavSource } from '../app-shell/types.js';
|
|
35
|
+
type Shared = {
|
|
71
36
|
/** The list's accessible name. */
|
|
72
37
|
listLabel?: string;
|
|
38
|
+
/** What the destination is called, in the bar and over the sheet. */
|
|
39
|
+
title?: string;
|
|
73
40
|
children: Snippet;
|
|
74
41
|
};
|
|
75
42
|
type $$ComponentProps = Shared & ({
|
|
76
43
|
/**
|
|
77
44
|
* ROUTED: the sections, as the package's own navigation vocabulary:
|
|
78
45
|
* groups of `NavItem` (`{ heading, items }`), bare items, or a mix.
|
|
79
|
-
* The same type the rail takes, so a row is the same row everywhere
|
|
80
|
-
* in the household.
|
|
81
|
-
*
|
|
82
46
|
* A row at the settings ROOT (`/settings`) needs `exact: true`, or
|
|
83
47
|
* its prefix match keeps it lit on every section beneath it.
|
|
84
48
|
*/
|
|
@@ -91,17 +55,14 @@ type $$ComponentProps = Shared & ({
|
|
|
91
55
|
/**
|
|
92
56
|
* STATE-DRIVEN, for a single-route app whose sections swap in place
|
|
93
57
|
* (canonical-app-shape §Applicability): groups of `SettingsSection`
|
|
94
|
-
* (`{ id, label, icon? }`)
|
|
95
|
-
*
|
|
96
|
-
* `onSelect` fires with the `id` that was chosen. The app owns the
|
|
97
|
-
* state, so a deep link or a failure that opens a section just sets
|
|
98
|
-
* `selected`.
|
|
58
|
+
* (`{ id, label, icon? }`). Rows are buttons; `selected` is the
|
|
59
|
+
* current `id` and `onSelect` fires with the `id` chosen.
|
|
99
60
|
*/
|
|
100
61
|
sections: readonly (SettingsSection | SettingsSectionGroup)[];
|
|
101
62
|
selected: string;
|
|
102
63
|
onSelect: (id: string) => void;
|
|
103
64
|
currentPath?: undefined;
|
|
104
65
|
});
|
|
105
|
-
declare const SettingsShell: import("svelte").Component<$$ComponentProps, {}, "
|
|
66
|
+
declare const SettingsShell: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
106
67
|
type SettingsShell = ReturnType<typeof SettingsShell>;
|
|
107
68
|
export default SettingsShell;
|
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
|
-
/* ──
|
|
356
|
-
The
|
|
357
|
-
for the
|
|
358
|
-
declaration
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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-
|
|
368
|
-
--ds-
|
|
369
|
-
--ds-
|
|
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
|
/* ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -837,12 +840,11 @@
|
|
|
837
840
|
padding-left: calc(0.625rem + 1px);
|
|
838
841
|
}
|
|
839
842
|
|
|
840
|
-
/* The
|
|
841
|
-
Separated from the scrolling section list by a rule in the chrome's OWN
|
|
843
|
+
/* The drawer's foot: feedback, on a phone. Separated from the scrolling section list by a rule in the chrome's OWN
|
|
842
844
|
ink rather than `--border`, for the reason the group guide takes the same
|
|
843
845
|
treatment — a page-surface token cannot follow chrome an app has branded. */
|
|
844
846
|
/* `padding-inline` matches `.ds-nav`'s own `px-3`, because the foot sits
|
|
845
|
-
OUTSIDE that wrapper: without it the
|
|
847
|
+
OUTSIDE that wrapper: without it the row's icon lands 0.75rem
|
|
846
848
|
left of every icon above it and the rail reads as two lists. */
|
|
847
849
|
.ds-shell-rail-foot {
|
|
848
850
|
display: flex;
|
|
@@ -932,64 +934,6 @@
|
|
|
932
934
|
padding-inline: calc((var(--ds-shell-rail-width-collapsed) - 1.5rem - 1.125rem) / 2) 0.625rem;
|
|
933
935
|
}
|
|
934
936
|
|
|
935
|
-
/* The settings destination's two panes (SettingsShell).
|
|
936
|
-
|
|
937
|
-
Only the SHAPE is here; the list's width, tint and rule are utilities on the
|
|
938
|
-
AppNav element itself, because AppNav declares `flex-1` there and a
|
|
939
|
-
base-layer `flex: none` would lose to it by layer order rather than by
|
|
940
|
-
position — the cascade trap recorded against `.ds-nav`'s ink. What is left is
|
|
941
|
-
the axis swap and the scroll bounding, which nothing else declares.
|
|
942
|
-
|
|
943
|
-
48rem is Tailwind's own --breakpoint-md, written literally for the reason
|
|
944
|
-
`.ds-shell-rail` writes it literally: a media query cannot read a custom
|
|
945
|
-
property, so an app that retunes md retunes this with it. */
|
|
946
|
-
.ds-settings {
|
|
947
|
-
display: flex;
|
|
948
|
-
flex-direction: column;
|
|
949
|
-
flex: 1 1 auto;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
/* `min-height: 0` is what buys the two independent scrollers, and it is
|
|
953
|
-
deliberately NOT set below md. A flex item is floored at its content height
|
|
954
|
-
unless it is allowed to shrink past it, so without this neither pane ever
|
|
955
|
-
scrolls and the whole content area does instead. Below md that floor is
|
|
956
|
-
exactly what is wanted: the list stacks above the content and the page
|
|
957
|
-
scrolls as one, which is the only sane arrangement on a phone — two nested
|
|
958
|
-
scrollers at 375px is the sideways-scroll hazard this package already carries
|
|
959
|
-
a gate for. */
|
|
960
|
-
@media (min-width: 48rem) {
|
|
961
|
-
.ds-settings {
|
|
962
|
-
flex-direction: row;
|
|
963
|
-
min-height: 0;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
.ds-settings-pane {
|
|
968
|
-
flex: 1 1 auto;
|
|
969
|
-
min-width: 0;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
/* The pane stacks its sections itself, so a settings page writes a run of
|
|
973
|
-
Panels and no wrapper — the framing markup this surface exists to stop a
|
|
974
|
-
consumer writing. 1.25rem is the package's existing section rhythm, the same
|
|
975
|
-
gap `.ds-dialog-section` puts between adjacent sections.
|
|
976
|
-
|
|
977
|
-
A margin rule rather than `display: flex; gap`, because at md and up this box
|
|
978
|
-
is a height-bounded scroller: as a flex column its children carry
|
|
979
|
-
`flex-shrink: 1` and get squashed toward min-content before the scrollbar is
|
|
980
|
-
ever reached, so a tall section would compress instead of scrolling. Block
|
|
981
|
-
flow overflows, which is what a scroller wants. */
|
|
982
|
-
.ds-settings-pane > * + * {
|
|
983
|
-
margin-top: 1.25rem;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
@media (min-width: 48rem) {
|
|
987
|
-
.ds-settings-pane {
|
|
988
|
-
min-height: 0;
|
|
989
|
-
overflow-y: auto;
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
|
|
993
937
|
/* A hard ceiling on the whole shell, in the one unit that names the actual
|
|
994
938
|
drawn surface rather than a percentage of an ancestor. `.ds-shell` is
|
|
995
939
|
already `flex` with `overflow-hidden` in the component markup, which
|
|
@@ -1127,58 +1071,245 @@
|
|
|
1127
1071
|
outline: none;
|
|
1128
1072
|
}
|
|
1129
1073
|
|
|
1130
|
-
/* The
|
|
1131
|
-
|
|
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.
|
|
1132
1080
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
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
|
+
}
|
|
1139
1087
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
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
|
+
}
|
|
1144
1094
|
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
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
|
+
}
|
|
1151
1137
|
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
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
|
+
}
|
|
1159
1146
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
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;
|
|
1168
1154
|
}
|
|
1169
1155
|
|
|
1170
|
-
.ds-
|
|
1171
|
-
|
|
1172
|
-
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;
|
|
1173
1158
|
}
|
|
1174
1159
|
|
|
1175
|
-
.ds-
|
|
1176
|
-
|
|
1177
|
-
|
|
1160
|
+
.ds-page > .ds-page-aside {
|
|
1161
|
+
display: flex;
|
|
1162
|
+
flex-direction: column;
|
|
1163
|
+
gap: 1.25rem;
|
|
1164
|
+
min-width: 0;
|
|
1178
1165
|
}
|
|
1179
1166
|
|
|
1180
|
-
|
|
1181
|
-
|
|
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);
|
|
1182
1313
|
}
|
|
1183
1314
|
|
|
1184
1315
|
/* ── The prose face (design-system#32) ────────────────────────────────────
|
|
@@ -1196,10 +1327,7 @@
|
|
|
1196
1327
|
a security boundary, and a package cannot see the inputs the boundary is
|
|
1197
1328
|
protecting. The app owns the markdown-to-HTML seam and hands the result in.
|
|
1198
1329
|
|
|
1199
|
-
It carries no measure
|
|
1200
|
-
decisions, and an app composes them:
|
|
1201
|
-
|
|
1202
|
-
<div class="ds-prose ds-measure" data-measure="prose">…</div>
|
|
1330
|
+
It carries no measure: a `reading` page's column is the measure.
|
|
1203
1331
|
|
|
1204
1332
|
Nothing here reaches for a colour or a length that is not a --ds-* token,
|
|
1205
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.
|
|
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.
|
|
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":
|
|
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
|
|
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
|
|
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
|
|
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
|
{
|