mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
apps/docs imported the same component library under three names — 11 files from `@hanzo/docs/ui/*` (a pure re-export shell), 10 from `@hanzo/docs-ui` (the Radix fork), plus 5 hand-copied shadcn files under components/ui. All of it now resolves to `@hanzo/docs-base-ui`. The 5 local copies are deleted. badge, hover-card, select and the container card move into base-ui on `@base-ui/react` — preview-card is the hover-card analog and Select.Value already takes `placeholder`, so the swap is 1:1 and introduces no Radix. buttonVariants gains `xs`/`md`/`lg` and `link`, purely additive, so no existing caller changes. Three Radix packages leave apps/docs; `presence` and `tooltip` stay because non-shadcn code uses them. global.css now takes base-ui's preset rather than the Radix fork's. The two are not duplicates: `neutral.css` defines the colours, `preset.css` carries base styles plus the `@source inline` safelists. Only `default-colors.css` declares a `--color-fd-*` value, and it is byte-identical across both forks, so no colour moves. `types:check` never ran. pnpm installs the mdx bin scope-stripped as `docs-mdx`, so `@hanzo/docs-mdx &&` died at `sh: no such file` and took `tsc` with it — silently, in every app, for `lint` too. Fixed in all 32 scripts. apps/docs reports 107 first-party errors; that is the real number, unchanged by this commit. Also unbreaks two undefined references in openapi's server entry that a large upstream merge left behind: PlaygroundAuthProvider was used but never imported, and pickSchema/encodeInternalRef were orphaned utilities. Both crashed the docs export. More remain in that package (renderResponse is a missing function, not an import) — noted, not guessed at. Co-authored-by: Hanzo Dev <[email protected]>