mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
Grid `max` — the missing half of `min`. A single auto-fill floor cannot say "2-up on a phone, 4-up on a desktop": 2-up at 390px needs a ~170px floor, and that same floor yields SIX columns at 1280. `max` raises the floor to one-Mth of the row so auto-fill cannot fit an (M+1)th track, and below that width the max() picks the min again and the grid wraps normally — so the cap costs nothing on small screens. That is why it is expressed as a floor and not a breakpoint. Proven: remove the cap and 1280px comes back FIVE columns. @hanzogui/* ranges move to the 8.1 train. The @hanzogui packages pin each other EXACTLY ([email protected] -> [email protected], no caret), so one stale range here dragged a whole second generation in beside a consumer's. Both typecheck, both build, then the config singleton lives in one copy and the components read the other, and the app dies on prerender with `Missing theme.` — hanzo.ai hit that and had to state the invariant by hand in a pnpm.overrides block. The invariant belongs in the package that caused it. The whole train moved together, including pkgs/canvas and pkgs/dashboard: bumping this package alone SPLIT the monorepo the same way, and the ~30 "prop does not exist" errors that produced were the split wearing a mask, not an API change. The consumer harness now asserts ONE copy of @hanzogui/web in the installed app, before any test runs. Mutation-proven the honest way: the first attempt "passed" because `pnpm pack` had failed and the check never ran — the real proof pins an older @hanzogui/web in the consumer and watches the diagnostic name both versions. NOT changed: `gui-config.d.ts` ending `}, "default">`. That was reported as a latent declaration defect; it is not one. `InferGuiConfig`'s eighth parameter IS `ExtractAnimationDriverKeys<E>`, so `"default"` is the correct resolution for a config whose animations object has one driver named `default`. An honest lib check (skipLibCheck off) reports zero errors in that file. Changing it would have made it wrong. Co-authored-by: Hanzo Dev <[email protected]>
54 lines
1.7 KiB
JSON
54 lines
1.7 KiB
JSON
{
|
|
"name": "@hanzo/dashboard",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"description": "Hanzo Dashboard \u2014 the reusable dashboard layer on @hanzo/gui: monochrome SVG charts, a videogame-like LivingOverview (count-up KPIs, live sparklines, streaming feed, health), the ProductLanding kit, and a RailwayPipeline deploy animation. Pure (data via props/loaders), typed, reduced-motion-guarded. Extracted from the Hanzo Cloud Console so every Hanzo app composes ONE dashboard system.",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./dashboard.css": "./src/dashboard.css"
|
|
},
|
|
"main": "./src/index.ts",
|
|
"module": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"files": [
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"tc": "tsc --noEmit",
|
|
"typecheck": "tsc --noEmit",
|
|
"build": "tsc --outDir dist --declaration --emitDeclarationOnly false --module ESNext --moduleResolution bundler --jsx react-jsx --esModuleInterop true --skipLibCheck true --sourceMap true",
|
|
"test": "bun test"
|
|
},
|
|
"peerDependencies": {
|
|
"@hanzo/gui": ">=8.0.0",
|
|
"@hanzogui/lucide-icons-2": ">=7.2.2",
|
|
"react": ">=19"
|
|
},
|
|
"devDependencies": {
|
|
"@hanzo/gui": "8.1.0",
|
|
"@hanzogui/config": "8.1.0",
|
|
"@hanzogui/core": "8.1.0",
|
|
"@hanzogui/lucide-icons-2": "8.1.0",
|
|
"@hanzogui/web": "8.1.0",
|
|
"@types/react": "^19.1.10",
|
|
"react": "^19.0.0",
|
|
"typescript": "^5.7.2"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"license": "MIT",
|
|
"author": "Hanzo AI <[email protected]>",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/hanzoai/ui.git",
|
|
"directory": "pkgs/dashboard"
|
|
}
|
|
}
|