Commit graph

19 commits

Author SHA1 Message Date
f69a3b0c65 refactor: rewrite the Select root family without reka-ui
Root/Value/Label/Group/Separator/ItemText now share a small
provide/inject context. SelectValue's label lookup is backed by an
itemLabels map that SelectItem populates on mount (next commit) --
matching the existing behavior where the trigger's displayed label
only resolves once the dropdown has opened at least once.
2026-07-13 18:16:17 -04:00
e7d96cc3ba refactor: rewrite DialogContent/DialogScrollContent without reka-ui
Uses Teleport + Transition + useFocusTrap + useDismissableLayer +
useScrollLock. The Dialog family no longer imports reka-ui at all.
2026-07-13 18:15:30 -04:00
3d8bdaa903 refactor: rewrite the Dialog root family without reka-ui
Root/Trigger/Overlay/Close/Title/Description now share a small
provide/inject context instead of reka-ui's Dialog primitives.
DialogContent/DialogScrollContent follow in the next commit since they
need the focus-trap and dismissable-layer composables.
2026-07-13 18:14:52 -04:00
07b44f6de4 refactor: rewrite RadioGroup without reka-ui
Uses a small provide/inject context plus useRovingFocus for arrow-key
selection. data-state/aria-checked contract is unchanged.
2026-07-13 18:13:23 -04:00
8175db2cde refactor: rewrite Checkbox and Switch without reka-ui
Both become plain role="checkbox"/role="switch" buttons driven by
useVModel, matching the existing Input.vue controlled-value pattern.
Classes and data-state/aria-checked contract are unchanged.
2026-07-13 18:12:38 -04:00
2341ceebe0 refactor: rewrite Button on the local Primitive utility
Drops the reka-ui Primitive import; behavior and classes are unchanged.
2026-07-13 18:11:58 -04:00
23cb57420d fix: alert title contrast, and make Storybook dev serve live library source
Two independent fixes:

1. Alert titles used text-<severity> directly on a bg-<severity>/15 tinted
   background. For danger (a very dark base hue) this reads as near-invisible
   text-on-tinted-background. The original PrimeVue-era Message design kept
   body/title text neutral and only accented the icon/left-border with the
   severity color -- restore that: alert text stays text-foreground, severity
   shows via a border-l-4 accent stripe instead of tinted text.

2. Root-caused why none of the last several fixes were showing up without a
   full `bun run build`: @nychthemeron/library's package.json exports its "."
   entry as ./dist/index.js unconditionally, and every story imports from the
   bare package specifier. So Storybook's dev server was always resolving to
   whatever the dist bundle looked like at last build time, never live
   source -- editing packages/library/src and restarting `bun run dev` (even
   with caches cleared) never picked up changes. Vite auto-injects a
   "development" resolution condition during `vite dev`/serve (and
   "production" during build), which is the standard fix for exactly this
   monorepo dev-vs-published split: added a "development" condition to the
   "." export pointing at src/index.ts, matching the pattern the "./components"
   sub-export already used. Also added the matching "@" alias to
   packages/playground/vite.config.ts, since resolving straight to library
   source pulls in its "@/lib/utils"-style internal imports, which playground's
   own Vite instance didn't previously know how to resolve.

   Verified both paths: dev server now reflects source edits without a
   library rebuild, and `bun run build` still produces a correct dist bundle
   with the same fix baked in.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 15:23:13 -04:00
5d6d647373 fix: restore visible borders and heading font on Card/Dialog/Select
The CLI's default style uses a very subtle ring-foreground/10 (10%-opacity
ring) instead of a real border for Card, DialogContent, and SelectContent,
which reads as invisible against our dark Hades theme. Swap to a real
border-border + shadow, matching the original PrimeVue-era design's
visible borders.

Also: CardTitle/DialogTitle/AlertTitle referenced a `cn-font-heading`
class that is never defined anywhere (dead weight from the CLI's default
style template), so titles silently fell back to the body font instead of
our --font-serif (Cinzel) heading font. Replaced with the real `font-serif`
utility. Also drops another dead class, `cn-menu-translucent`, from
SelectContent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 15:15:28 -04:00
7bb554aeb0 feat: migrate Dialog to shadcn-vue compound API
Also: fixes DialogContent/DialogFooter's close/action buttons to use our
actual Button variant set (secondary) instead of the CLI's default
ghost/outline variants, which don't exist on our re-themed Button.
Adds an eslint override so shadcn-vue's single-word ui/ component names
(Button.vue, Dialog.vue, ...) aren't flagged by vue/multi-word-component-names.
This was the last PrimeVue-wrapped component, so lib/index.ts no longer
imports anything from primevue or uses the ptThemeable helper.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:57:06 -04:00
4755f9ab6e feat: migrate Select to shadcn-vue compound API
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:50:36 -04:00
5d840fcc16 feat: migrate Message to shadcn-vue Alert
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:45:45 -04:00
fed19667f7 feat: migrate Card to shadcn-vue compound API
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:41:58 -04:00
d999cd95f6 feat: migrate RadioButton/RadioButtonGroup to shadcn-vue RadioGroup
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:39:22 -04:00
2eb438932b feat: migrate Checkbox and CheckboxGroup to shadcn-vue
CheckboxGroup is hand-built (no shadcn-vue stock equivalent) as a simple
name/layout provider via provide/inject, matching RadioGroup's pattern --
it does not coordinate an array modelValue across children the way
PrimeVue's did, since each Checkbox now owns its own boolean v-model.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:35:36 -04:00
5238d61f24 feat: migrate Tag to shadcn-vue Badge
Also fixes Card.stories.ts, which imported the now-removed Tag export.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:32:18 -04:00
7a4ae9ff6a feat: migrate ToggleSwitch to shadcn-vue Switch
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:28:51 -04:00
382d76c2d7 feat: migrate Textarea to shadcn-vue
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:24:29 -04:00
f3002c7eb1 feat: migrate InputText to shadcn-vue Input
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:22:14 -04:00
3a8dd109bb feat: migrate Button from PrimeVue to shadcn-vue
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-11 14:19:39 -04:00