Nychthemeron/packages/library
Matthew L McPeak 8c830438d5 fix: unwrap Fragment vnodes in Slot before cloning
<slot /> used as a passthrough outlet inside an SFC template (e.g.
DialogTrigger.vue's <Primitive as-child><slot /></Primitive>) resolves
through Vue's renderSlot() helper, which always wraps the forwarded
content in a Fragment vnode -- even when there's exactly one real
child. Slot was cloning that inert Fragment wrapper instead of the
real child, so attrs merged onto asChild-forwarded elements (data-slot,
aria-*, the click handler) silently vanished. Found via manual
Storybook verification: the Dialog trigger rendered but never opened
the dialog on click.

Unwrap single-child Fragments before merging/cloning, and add a
regression test through a real SFC fixture (a raw h()-based test
doesn't reproduce this, since it never goes through renderSlot()).
2026-07-13 18:37:50 -04:00
..
src fix: unwrap Fragment vnodes in Slot before cloning 2026-07-13 18:37:50 -04:00
tests fix: unwrap Fragment vnodes in Slot before cloning 2026-07-13 18:37:50 -04:00
components.json feat: wire up Tailwind v4 and shadcn-vue token mapping alongside PrimeVue 2026-07-11 14:15:37 -04:00
package.json chore: drop the reka-ui dependency 2026-07-13 18:18:55 -04:00
tsconfig.json Inital Commit 2026-06-14 14:50:44 -04:00
vite.config.ts chore: drop the reka-ui dependency 2026-07-13 18:18:55 -04:00
vitest.config.ts feat: wire up Tailwind v4 and shadcn-vue token mapping alongside PrimeVue 2026-07-11 14:15:37 -04:00