@poodle64/ui 2026.11.4 → 2026.11.5
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/dist/components/ui/app-shell/app-shell.svelte +13 -2
- package/dist/components/ui/app-shell/app-shell.svelte.d.ts +1 -1
- package/dist/components/ui/page-lead/page-lead.svelte +11 -1
- package/dist/components/ui/page-lead/page-lead.svelte.d.ts +2 -0
- package/package.json +1 -1
- package/registry/component-map.json +1 -1
- package/registry/component-map.md +1 -1
|
@@ -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
|
-
|
|
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
|
|
@@ -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
|
-
<
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poodle64/ui",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.5",
|
|
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.11.
|
|
4
|
+
Generated from `@poodle64/ui@2026.11.5`. 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
|
|