Files
WRNexusJS/packages/ui/src/index.ts
T
Clintchiz 2c960fc1dc
Quality / quality (ubuntu-latest) (push) Failing after 9m49s
Quality / quality (windows-latest) (push) Canceled after 0s
refactor: migrate legacy wire namespace to wrn
2026-08-12 18:51:15 +05:30

28 lines
1.3 KiB
TypeScript

/**
* @wrnexus/ui — the WrNexus UI component library.
*
* Components are `.wrn` files under `components/`, auto-discovered by the
* framework (the router scans this directory in addition to the app's own
* `app/components`). Mount them in any page with `data-component="<name>"`,
* or reference them by tag name (`<Modal>`, `<Card>`, …) — no import needed,
* component resolution happens by directory scan, not by this module's
* exports. Their styles live in a single themeable stylesheet, `ui.css`,
* served once at `/__wrnexus/ui.css` — every class uses `var(--wrn-*)`
* theme tokens.
*
* Override, in increasing order of power:
* 1. theme tokens (change `--wrn-color-primary`, etc.)
* 2. redefine a `.wrn-*` class in your own CSS (loaded after ui.css)
* 3. pass a `class` prop (appended to the component root)
* 4. `wrnexus eject <name>` to copy the component into `app/components` and own it
*
* This entry point is intentionally free of `node:*` imports — it is the
* package's main entry, so it can end up in a browser bundle for any app
* that composes an interactive `@wrnexus/ui` component. The filesystem
* helpers that used to live here (`uiComponentsDir`, `uiCss`,
* `uiComponentPath`, etc.) now live in `@wrnexus/ui/registry`, a
* server-only subpath. Import from there instead if you need them.
*/
export {};