lib.cockpit-kit
Cross-platform type contracts and canonical variant unions for cockpit primitives
@lssm-tech/lib.cockpit-kitbun add @lssm-tech/lib.cockpit-kitManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Cross-platform type contracts and canonical variant unions for cockpit UI primitives.
Overview
cockpit-kit is the shared foundation for the four cockpit primitives:
| Primitive | Purpose |
|---|---|
CockpitFrame | Top-level layout shell for the cockpit surface |
NavRail | Vertical navigation sidebar |
GraphCanvas | Dependency/workflow graph view |
MetricPanel | Metric and KPI display panel |
This package ships type contracts only. Component implementations land in Phase 1.
Canonical variant unions
Two variant unions are defined and owned here:
import { Density, Expansion } from '@lssm-tech/lib.cockpit-kit/variants';
// Density: 'comfortable' | 'compact'
// Expansion: 'collapsed' | 'expanded'Rule: lib.personalized-presentation imports these FROM here. Never the other way around.
Subpath exports
| Import | What you get |
|---|---|
@lssm-tech/lib.cockpit-kit | All types + variants |
@lssm-tech/lib.cockpit-kit/variants | Density, Expansion + schema descriptors |
@lssm-tech/lib.cockpit-kit/variants/density | Density only |
@lssm-tech/lib.cockpit-kit/variants/expansion | Expansion only |
@lssm-tech/lib.cockpit-kit/types | Component prop interfaces |
Usage
import type { CockpitFrameProps, NavRailProps } from '@lssm-tech/lib.cockpit-kit';
import { densityVariantSchema, expansionVariantSchema } from '@lssm-tech/lib.cockpit-kit/variants';Dependency rules
- This package has no UI framework dependencies — it is purely types and constants
- Web-specific implementations live in
@lssm-tech/lib.cockpit-kit-web lib.personalized-presentationimports FROM this package, not vice versa
Standalone declaration exports keep their existing public subpath names. The shared builder preserves their original declaration suffix and copies checked source declarations into dist, without overwriting emitted implementation types.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
2 declarations
@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.ui-kit-coreworkspace:^
Read the package manual ↗
Declared capabilities
Cross-platform type contracts and canonical variant unions for cockpit primitives
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devcleanrm -rf distlintbun run lint:fixlint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .lint:checknode ../../../../scripts/biome.cjs check .prebuildcontractspec-bun-build prebuildtestbun testtypechecktsgo --noEmit