@poodle64/ui 2026.10.9 → 2026.10.10

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.
@@ -547,7 +547,7 @@
547
547
  >
548
548
  {:else if c.cell}
549
549
  <span class={cn(CELL, through, 'flex items-center self-center')} {style}
550
- >{@render c.cell(r)}
550
+ >{@render c.cell(r, c)}
551
551
  {#if c.actions}<span class="pointer-events-auto flex flex-none items-center gap-1" data-slot="ledger-actions">{@render c.actions(r)}</span>{/if}</span
552
552
  >
553
553
  {:else}
@@ -77,8 +77,12 @@ export interface ListColumn<R> {
77
77
  /**
78
78
  * A cell of the module's own markup. On a row that opens, a click passes
79
79
  * through the cell to the row; a control inside takes `pointer-events-auto`.
80
+ * It gets the column too, so one snippet can serve columns built at runtime,
81
+ * telling them apart by `key`. Read the row's figures in the snippet's
82
+ * markup, which follows the row when it changes; a `createRawSnippet` draws
83
+ * once at mount and goes stale.
80
84
  */
81
- cell?: Snippet<[R]>;
85
+ cell?: Snippet<[R, ListColumn<R>]>;
82
86
  }
83
87
  /**
84
88
  * A column the module offers the ledger. The keys `date`, `title`, `amount`
@@ -220,7 +220,7 @@
220
220
  </script>
221
221
 
222
222
  {#snippet value(c: (typeof shown)[number], r: R)}
223
- {#if c.cell}{@render c.cell(r)}{:else}{c.text?.(r) ?? ''}{/if}
223
+ {#if c.cell}{@render c.cell(r, c)}{:else}{c.text?.(r) ?? ''}{/if}
224
224
  {/snippet}
225
225
 
226
226
  {#snippet flags(r: R, all: boolean)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poodle64/ui",
3
- "version": "2026.10.9",
3
+ "version": "2026.10.10",
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.10.9",
4
+ "version": "2026.10.10",
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": 68,
@@ -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.9`. 68 components, 19 situations.
4
+ Generated from `@poodle64/ui@2026.10.10`. 68 components, 19 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