lib.cockpit-kit-native
Native lane for cockpit primitives — React Native implementations with cockpit-kit type contracts
@lssm-tech/lib.cockpit-kit-nativebun add @lssm-tech/lib.cockpit-kit-nativeManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Native lane (React Native / Expo) for cockpit primitives. Implements the CockpitFrame, NavRail, GraphCanvas, and MetricPanel contracts from @lssm-tech/lib.cockpit-kit using React Native primitives.
Overview
cockpit-kit-native → cockpit-kit (type contracts + variant unions)Variant unions (Density, Expansion) are owned by cockpit-kit and re-exported here for convenience.
Usage
import { CockpitFrame } from "@lssm-tech/lib.cockpit-kit-native/ui/CockpitFrame";
function MyCockpit() {
const [active, setActive] = React.useState("dashboard");
return (
<CockpitFrame density="comfortable" expansion="expanded">
<CockpitFrame.Nav>
{/* NavRailNative goes here */}
</CockpitFrame.Nav>
{active === "dashboard" && (
<CockpitFrame.Screen for="dashboard">
<DashboardScreen />
</CockpitFrame.Screen>
)}
<CockpitFrame.Footer>
<StatusBar />
</CockpitFrame.Footer>
</CockpitFrame>
);
}Subpath exports
| Import | Contents |
|---|---|
@lssm-tech/lib.cockpit-kit-native | Type contracts + variant unions |
@lssm-tech/lib.cockpit-kit-native/variants | Density + Expansion re-exports |
@lssm-tech/lib.cockpit-kit-native/types | Prop interface re-exports |
@lssm-tech/lib.cockpit-kit-native/ui/CockpitFrame | Compound layout container |
Rules
- Do NOT import from
@lssm-tech/lib.personalized-presentation(cycle prevention) - Do NOT use web-only APIs (
div,className,cva,clsx) - Use
StyleSheet.createfor all styles - Variant types MUST come from
@lssm-tech/lib.cockpit-kit/variants
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
3 declarations
@lssm-tech/lib.cockpit-kitworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗lucide-react-nativecatalog:ui
Declared capabilities
Native lane for cockpit primitives — React Native implementations with cockpit-kit type contracts
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 .testbun test --pass-with-no-testsprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit