@lotics/ui
v11.7.0
Published
Cross-platform (react-native-web) UI primitives with no Lotics domain coupling — no i18n, analytics, or domain types. Consumed by `frontend`, `browser_extension`, and custom-code apps. Lotics-specific compositions live in `frontend` or `@lotics/ui-interna
Readme
@lotics/ui
Cross-platform (react-native-web) UI primitives with no Lotics domain coupling —
no i18n, analytics, or domain types. Consumed by frontend, browser_extension,
and custom-code apps. Lotics-specific compositions live in frontend or
@lotics/ui-internal, not here.
The package ships .tsx source directly (no build step); consumers import
subpaths, e.g. import { Button } from "@lotics/ui/button".
Dev harness
A standalone Vite app for developing the primitives in isolation — no Expo app, no backend.
npm run dev # from packages/ui — serves http://localhost:5173It lives in dev/: main.tsx mounts a hash-routed sidebar, registry.ts lists
the showcase pages, and dev/pages/* are the per-primitive demos. vite.config.ts
wires the react-native-web aliases (the same ones a consuming app's bundler sets up).
To add a page: create dev/pages/<name>.tsx exporting a component (use the
Page/Section/Row helpers from dev/showcase.tsx) and add one entry to the
pages array in dev/registry.ts.
Checks
npm run typecheck # tsgo (covers src + dev)
npm run lint # oxlint
npm run test # vitest