@poodle64/ui 2026.10.31 → 2026.10.32
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
|
@@ -140,9 +140,8 @@ be the same thing.
|
|
|
140
140
|
There is now exactly one shell shape, no prop to choose a different one.
|
|
141
141
|
Operator ruling, 31/07/2026: every household app renders the same composition,
|
|
142
142
|
a permanent side rail on `md`+ (an overlay drawer below it) carrying primary
|
|
143
|
-
navigation
|
|
144
|
-
|
|
145
|
-
leading/trailing slots, theme toggle, identity), always both together, with
|
|
143
|
+
navigation, the brand and the collapse toggle (in the rail's foot), **plus** a
|
|
144
|
+
real top navbar (search, leading/trailing slots, theme toggle, identity), always both together, with
|
|
146
145
|
the content laid out by the page's type (`reading`, `panel` or `tool`; see
|
|
147
146
|
[Page types](#page-types)). Apps do not choose variants, widths or spacing.
|
|
148
147
|
|
|
@@ -173,7 +172,7 @@ That is the whole minimum. Everything below is optional.
|
|
|
173
172
|
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
|
174
173
|
| `nav` | Bare `NavItem`s, `NavGroup`s, or a mix. Consecutive bare items collapse into one run; an emptied group renders nothing. |
|
|
175
174
|
| `currentPath` | Active state, and closing the mobile nav on navigation. |
|
|
176
|
-
| `collapsible`, `collapsed` |
|
|
175
|
+
| `collapsible`, `collapsed` | The collapse toggle in the rail's foot, whose state binds out so an app can persist it. `collapsible` defaults to `true`. |
|
|
177
176
|
| `brand` / `brandTitle` + `brandMark` / `homeHref` | Full control of the lockup, or the wordmark-plus-mark shorthand. |
|
|
178
177
|
| `identity` | The signed-in surface. Rendered once, at the end of the top bar. |
|
|
179
178
|
| `context`, `actions` | Leading and trailing top-bar slots: a store/tenant switcher, app-level action buttons. |
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
* always both together. Operator ruling, 31/07/2026: every household app
|
|
18
18
|
* renders one shell shape; apps do not choose variants.
|
|
19
19
|
*
|
|
20
|
-
* The collapse toggle is the
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* left to the app.
|
|
20
|
+
* The collapse toggle is the rail's own, in its foot (operator, 30/10/2026:
|
|
21
|
+
* a control that works the sidebar belongs on the sidebar, not the top bar).
|
|
22
|
+
* The rail's header holds the brand alone.
|
|
24
23
|
*
|
|
25
24
|
* Search can sit in either of two places, because it reads as a different
|
|
26
25
|
* thing depending on what is beside it. `searchPlacement` defaults to
|
|
@@ -149,7 +148,7 @@
|
|
|
149
148
|
*/
|
|
150
149
|
currentPath?: string;
|
|
151
150
|
/**
|
|
152
|
-
* Offer
|
|
151
|
+
* Offer a collapse toggle in the rail's foot.
|
|
153
152
|
*
|
|
154
153
|
* Defaults ON. It was opt-in while the control was being introduced, and
|
|
155
154
|
* two of nine household apps opted in — so seven rails could not be
|
|
@@ -720,25 +719,52 @@
|
|
|
720
719
|
/>
|
|
721
720
|
|
|
722
721
|
<!--
|
|
723
|
-
The
|
|
724
|
-
|
|
725
|
-
|
|
722
|
+
The rail's foot: the collapse toggle on md+ and, in the phone's drawer,
|
|
723
|
+
the one place feedback sits, where nothing floats over the page. The
|
|
724
|
+
toggle is the rail's own control, so it sits on the rail, as in Grafana's
|
|
725
|
+
docked menu and LiteLLM's sidebar (operator, 30/10/2026: it was "on the
|
|
726
|
+
top rail instead of the sidebar"). From md the report is the bar's icon.
|
|
727
|
+
Settings is the account menu's, never a row here. `.ds-nav` gives the
|
|
728
|
+
rows the rail's ink, its centring when collapsed and its peek padding.
|
|
726
729
|
-->
|
|
727
|
-
{#if mobileNavOpen
|
|
728
|
-
<div
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
730
|
+
{#if mobileNavOpen ? shellReport.open : collapsible}
|
|
731
|
+
<div
|
|
732
|
+
class="ds-shell-rail-foot ds-nav mt-auto"
|
|
733
|
+
data-collapsed={railCollapsed ? 'true' : undefined}
|
|
734
|
+
data-peek={peeking ? 'true' : undefined}
|
|
735
|
+
>
|
|
736
|
+
{#if mobileNavOpen}
|
|
737
|
+
<button
|
|
738
|
+
type="button"
|
|
739
|
+
class="ds-nav-item w-full"
|
|
740
|
+
data-testid="ds-shell-drawer-report"
|
|
741
|
+
onclick={() => {
|
|
742
|
+
const open = shellReport.open;
|
|
743
|
+
closeMobileNav();
|
|
744
|
+
open?.();
|
|
745
|
+
}}
|
|
746
|
+
>
|
|
747
|
+
<Bug class="ds-nav-icon size-[1.125rem] flex-none" aria-hidden="true" />
|
|
748
|
+
<span class="truncate">Report a problem</span>
|
|
749
|
+
</button>
|
|
750
|
+
{:else}
|
|
751
|
+
<button
|
|
752
|
+
type="button"
|
|
753
|
+
onclick={toggleCollapsed}
|
|
754
|
+
class="ds-nav-item w-full"
|
|
755
|
+
aria-label={collapseLabel}
|
|
756
|
+
aria-pressed={collapsed}
|
|
757
|
+
title={`${collapseLabel} (press [)`}
|
|
758
|
+
data-testid="ds-rail-collapse"
|
|
759
|
+
>
|
|
760
|
+
{#if collapsed}
|
|
761
|
+
<PanelLeftOpen class="size-[1.125rem] flex-none" aria-hidden="true" />
|
|
762
|
+
{:else}
|
|
763
|
+
<PanelLeftClose class="size-[1.125rem] flex-none" aria-hidden="true" />
|
|
764
|
+
{/if}
|
|
765
|
+
{#if !railNarrow}<span class="truncate">{collapsed ? 'Expand' : 'Collapse'}</span>{/if}
|
|
766
|
+
</button>
|
|
767
|
+
{/if}
|
|
742
768
|
</div>
|
|
743
769
|
{/if}
|
|
744
770
|
{#if collapsible && !railCollapsed && !mobileNavOpen}
|
|
@@ -788,35 +814,6 @@
|
|
|
788
814
|
</button>
|
|
789
815
|
{/if}
|
|
790
816
|
|
|
791
|
-
<!--
|
|
792
|
-
The collapse toggle is the leading edge of the bar, before the page's
|
|
793
|
-
title and a thin separator after it: where the shadcn sidebar blocks put
|
|
794
|
-
`Sidebar.Trigger`, so the rail's header holds the brand alone. `md:grid`
|
|
795
|
-
keeps it off the phone, where the drawer has its own trigger.
|
|
796
|
-
-->
|
|
797
|
-
{#if collapsible}
|
|
798
|
-
<button
|
|
799
|
-
type="button"
|
|
800
|
-
onclick={toggleCollapsed}
|
|
801
|
-
class="text-shell-muted-foreground hover:text-shell-foreground -ml-1 hidden size-8 flex-none place-items-center rounded-md transition-colors pointer-coarse:size-11 md:grid"
|
|
802
|
-
aria-label={collapseLabel}
|
|
803
|
-
aria-pressed={collapsed}
|
|
804
|
-
title={`${collapseLabel} (press [)`}
|
|
805
|
-
data-testid="ds-rail-collapse"
|
|
806
|
-
>
|
|
807
|
-
{#if collapsed}
|
|
808
|
-
<PanelLeftOpen class="size-4" />
|
|
809
|
-
{:else}
|
|
810
|
-
<PanelLeftClose class="size-4" />
|
|
811
|
-
{/if}
|
|
812
|
-
</button>
|
|
813
|
-
<span
|
|
814
|
-
class="bg-border hidden h-4 w-px flex-none md:block"
|
|
815
|
-
aria-hidden="true"
|
|
816
|
-
data-testid="ds-rail-collapse-separator"
|
|
817
|
-
></span>
|
|
818
|
-
{/if}
|
|
819
|
-
|
|
820
817
|
<!-- The rail carries the brand on md+; below md the rail is gone, so the
|
|
821
818
|
bar carries it or the app loses its identity on a phone entirely. -->
|
|
822
819
|
<span class={hasNav ? 'flex md:hidden' : 'flex'}>
|
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
* always both together. Operator ruling, 31/07/2026: every household app
|
|
17
17
|
* renders one shell shape; apps do not choose variants.
|
|
18
18
|
*
|
|
19
|
-
* The collapse toggle is the
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* left to the app.
|
|
19
|
+
* The collapse toggle is the rail's own, in its foot (operator, 30/10/2026:
|
|
20
|
+
* a control that works the sidebar belongs on the sidebar, not the top bar).
|
|
21
|
+
* The rail's header holds the brand alone.
|
|
23
22
|
*
|
|
24
23
|
* Search can sit in either of two places, because it reads as a different
|
|
25
24
|
* thing depending on what is beside it. `searchPlacement` defaults to
|
|
@@ -91,7 +90,7 @@ type $$ComponentProps = {
|
|
|
91
90
|
*/
|
|
92
91
|
currentPath?: string;
|
|
93
92
|
/**
|
|
94
|
-
* Offer
|
|
93
|
+
* Offer a collapse toggle in the rail's foot.
|
|
95
94
|
*
|
|
96
95
|
* Defaults ON. It was opt-in while the control was being introduced, and
|
|
97
96
|
* two of nine household apps opted in — so seven rails could not be
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poodle64/ui",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.32",
|
|
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,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.
|
|
4
|
+
Generated from `@poodle64/ui@2026.10.32`. 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
|
|