@contractspec/lib.ui-kit-core
v3.7.13
Published
Core UI primitives and utilities
Maintainers
Readme
@contractspec/lib.ui-kit-core
Website: https://contractspec.io
Core UI primitives and utilities.
What It Provides
- Layer: lib.
- Consumers: ui-kit, ui-kit-web, ui-link.
- Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/lib.ui-kit-core
or
bun add @contractspec/lib.ui-kit-core
Usage
Import the root entrypoint from @contractspec/lib.ui-kit-core, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.src/utils.tsis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./utilsresolves through./src/utils.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
cn()utility is used by every UI package — changes here affect all UI components.- This is a foundational package — keep it minimal and zero-surprise.
- Test thoroughly before changing any export signature.
