Licence
MIT
Version
0.2.0-pre.0
Deps
0
Size
560 kB
Vulns
0
Weekly
0
@noy-db/ui
Framework-agnostic base of the noy-db UI family. Pure TypeScript + CSS, no framework binding.
It holds the two portable layers every binding (@noy-db/ui-nuxt, future @noy-db/ui-next, …) imports:
- Engine (
.) — the schema-driven search/list logic: the query AST (tokenize → parse → resolve → evaluate → group/summary/pills),schemaFromDescribe+ cross-collection joins, thedetail/formfield resolvers, column model, formatting/aggregation, and theuseCollectionListcomposable. All domain-free — it consumes a collection'sdescribe()metadata, never hard-coded fields. - Design tokens (
./tokens.css) — the--nui-*CSS variables + light/dark themes. A consuming app overrides any of them on:root.
import { useCollectionList, schemaFromDescribe, parse, resolve } from '@noy-db/ui'
import '@noy-db/ui/tokens.css'A framework binding adds the components on top; this package never renders anything itself.
Docs
- Introduction — the family, its principles, the package map
- Schema-driven —
describe()→ columns / filters / widgets / joins - Search engine — the query AST/DSL pipeline +
useCollectionList - Design tokens — the
--nui-*variables - Architecture — the two-axis / three-tier model
Naming: bare = base, suffix = binding.
@noy-db/uiis the agnostic core;@noy-db/ui-<framework>packages are thin adapters that depend on it.