You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(version14_ui): wire component styles.css, add missing ark-ui dep
Scaffolded projects installed @version14/ui and typechecked fine, but
nothing ever imported the package's precompiled CSS, so every component
rendered unstyled. Now injected directly by version14_ui into the app's
real entry point (src/main.tsx or src/app/layout.tsx), independent of
which styling engine is chosen, since panda_css previously only wired
fonts.css and only when Panda was picked.
Also adds the missing @ark-ui/react dependency (required by every
component, previously relying on implicit peer auto-install), bumps
@version14/ui to 0.8.0 (which fixes the published package itself missing
dist/styles.css) and @pandacss/dev to ^1.11.4, replaces the inert
V14Example.tsx placeholder with a real Button import, and adds test-flow
fixtures for Next.js and non-Panda styling — the combination that exposed
this bug was never covered before.
`@ark-ui/react` is a required peer of `@version14/ui` (every component wraps an Ark UI primitive), so it's added explicitly here rather than relying on the package manager to auto-install peers.
44
+
45
+
Also injects `import "@version14/ui/styles.css";` into the app's real entry point — `src/main.tsx` when `react_app` ran, `src/app/layout.tsx` when `nextjs_base` ran. This is done here rather than in `panda_css` because the component stylesheet is required no matter which styling engine (Tailwind, CSS Modules, Panda, or none) the project uses; `panda_css`'s own `injectV14Fonts`/`injectV14Preset` only run when Panda is picked as the styling engine, and only wire the optional font faces and preset, not the component CSS itself.
42
46
43
47
---
44
48
45
49
## Validators
46
50
47
51
| Check | Type | Passes when |
48
52
|-------|------|-------------|
49
-
|`src/components/V14Example.tsx`|`file_exists`| File is present after generation |
53
+
|`dependencies.@version14/ui`|`json_key_exists`| Key is present in `package.json`|
54
+
|`dependencies.@ark-ui/react`|`json_key_exists`| Key is present in `package.json`|
0 commit comments