@poodle64/ui 2026.11.4 → 2026.11.6

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.
@@ -164,7 +164,7 @@
164
164
  brandTitle?: string;
165
165
  /** The mark beside the wordmark — an app's own logo component. */
166
166
  brandMark?: Snippet;
167
- /** A wordmark image (a URL), drawn in place of `brandTitle`'s text, which
167
+ /** A wordmark image (a URL), drawn as a mask in the rail's ink in place of `brandTitle`'s text, which
168
168
  * stays its accessible name. */
169
169
  brandWordmark?: string;
170
170
  /** Where the brand links. */
@@ -597,7 +597,18 @@
597
597
  </span>
598
598
  {/if}
599
599
  {#if brandWordmark && !railNarrow}
600
- <img src={brandWordmark} alt="" class="hidden h-6 w-auto sm:inline" />
600
+ <!--
601
+ Drawn as a mask filled with the rail's ink (`currentColor`), so a
602
+ one-colour wordmark reads on the rail in both themes. The hidden
603
+ image only gives the span its natural width.
604
+ -->
605
+ <span class="relative hidden h-6 sm:inline-block" aria-hidden="true">
606
+ <img src={brandWordmark} alt="" class="invisible h-6 w-auto max-w-none" />
607
+ <span
608
+ class="absolute inset-0 bg-current"
609
+ style="mask: url({brandWordmark}) center left / contain no-repeat; -webkit-mask: url({brandWordmark}) center left / contain no-repeat;"
610
+ ></span>
611
+ </span>
601
612
  {:else if brandTitle && !railNarrow}
602
613
  <!--
603
614
  The wordmark stands down below sm, leaving the mark alone. On a phone
@@ -647,7 +658,7 @@
647
658
  <span class="hidden truncate sm:inline">{searchLabel}</span>
648
659
  {#if searchShortcut}
649
660
  <kbd
650
- class="border-border bg-background text-shell-muted-foreground text-2xs ml-auto hidden rounded border px-1.5 py-0.5 font-mono sm:block"
661
+ class="border-shell-muted-foreground/40 bg-shell text-shell-muted-foreground text-2xs ml-auto hidden rounded border px-1.5 py-0.5 font-mono sm:block"
651
662
  >{searchShortcut}</kbd
652
663
  >
653
664
  {/if}
@@ -105,7 +105,7 @@ type $$ComponentProps = {
105
105
  brandTitle?: string;
106
106
  /** The mark beside the wordmark — an app's own logo component. */
107
107
  brandMark?: Snippet;
108
- /** A wordmark image (a URL), drawn in place of `brandTitle`'s text, which
108
+ /** A wordmark image (a URL), drawn as a mask in the rail's ink in place of `brandTitle`'s text, which
109
109
  * stays its accessible name. */
110
110
  brandWordmark?: string;
111
111
  /** Where the brand links. */
@@ -15,6 +15,7 @@
15
15
  eyebrow,
16
16
  subtitle,
17
17
  meta,
18
+ icon,
18
19
  class: className,
19
20
  ...restProps
20
21
  }: HTMLAttributes<HTMLDivElement> & {
@@ -25,6 +26,8 @@
25
26
  subtitle?: string;
26
27
  /** Facts about the answer, under it: badges, dates, a status. */
27
28
  meta?: Snippet;
29
+ /** The mark of the thing the lead is about (a record type's icon), drawn beside the lead. */
30
+ icon?: Snippet;
28
31
  } = $props();
29
32
  </script>
30
33
 
@@ -32,7 +35,14 @@
32
35
  {#if eyebrow}
33
36
  <div class="text-primary text-2xs tracking-eyebrow mb-1 font-medium uppercase">{eyebrow}</div>
34
37
  {/if}
35
- <h2 class="font-display max-w-3xl text-xl leading-snug font-semibold" data-answer>{lead}</h2>
38
+ <div class="flex min-w-0 items-center gap-2.5">
39
+ {#if icon}
40
+ <span class="text-muted-foreground grid size-6 flex-none place-items-center" data-slot="page-lead-icon">
41
+ {@render icon()}
42
+ </span>
43
+ {/if}
44
+ <h2 class="font-display max-w-3xl text-xl leading-snug font-semibold" data-answer>{lead}</h2>
45
+ </div>
36
46
  {#if subtitle}
37
47
  <p class="text-muted-foreground mt-1.5 max-w-4xl text-sm">{subtitle}</p>
38
48
  {/if}
@@ -15,6 +15,8 @@ type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
15
15
  subtitle?: string;
16
16
  /** Facts about the answer, under it: badges, dates, a status. */
17
17
  meta?: Snippet;
18
+ /** The mark of the thing the lead is about (a record type's icon), drawn beside the lead. */
19
+ icon?: Snippet;
18
20
  };
19
21
  declare const PageLead: import("svelte").Component<$$ComponentProps, {}, "">;
20
22
  type PageLead = ReturnType<typeof PageLead>;
package/dist/styles.css CHANGED
@@ -1663,4 +1663,29 @@
1663
1663
  transition: none;
1664
1664
  }
1665
1665
  }
1666
+
1667
+ /* Paper: the shell steps out of the way. The page is one flow, not a clipped
1668
+ viewport with a rail beside it; body is cleared too, as an app paints its
1669
+ ground there. */
1670
+ @media print {
1671
+ body,
1672
+ .ds-shell {
1673
+ background: none !important;
1674
+ }
1675
+ .ds-shell {
1676
+ display: block !important;
1677
+ height: auto !important;
1678
+ overflow: visible !important;
1679
+ }
1680
+ .ds-shell-rail,
1681
+ .ds-shell-bar,
1682
+ .ds-skip-link {
1683
+ display: none !important;
1684
+ }
1685
+ .ds-shell-main {
1686
+ display: block !important;
1687
+ overflow: visible !important;
1688
+ background: none !important;
1689
+ }
1690
+ }
1666
1691
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poodle64/ui",
3
- "version": "2026.11.4",
3
+ "version": "2026.11.6",
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
  {
2
2
  "meta": {
3
3
  "package": "@poodle64/ui",
4
- "version": "2026.11.4",
4
+ "version": "2026.11.6",
5
5
  "generatedBy": "scripts/generate-registry.mjs",
6
6
  "source": "scripts/situations.json + package source (DO NOT EDIT the outputs by hand)",
7
7
  "componentCount": 76,
@@ -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.4`. 76 components, 20 situations.
4
+ Generated from `@poodle64/ui@2026.11.6`. 76 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 [`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