mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
One screen, mounted wherever a product keeps settings, because the alternative is each surface growing its own and three near-identical panels is how "the same product" stops looking like it. hanzo.app, hanzo.chat and the console mount THIS. The split is deliberate: @hanzo/design owns the pure transform (vars() — three knobs every ramp multiplies by), and this package owns only the two things a pure function cannot, storage and the document. No React in state.ts, because a server render, a browser extension and an embedded preview all need to apply a preference and only one of them has hooks. Two failure modes it is built against. Clearing an axis REMOVES the property rather than writing a neutral value — writing `1` looks identical and silently outranks a brand that set its own. And bootScript() applies type and density before first paint, because a page that paints at the defaults and jumps when JS runs reads as a bug on every load; state.test.ts checks the script and apply() agree on the same stored value rather than trusting two implementations of one rule. Steps, not a slider: the knob is continuous and the API takes any number, but a person choosing their reading size wants three answers, and a named step can be described in support, tested and restored. NOT on main yet — the suite cannot run until @hanzo/design 0.4.12 is on npm (0.4.10/0.4.11 ship an unimportable barrel), and a push to main publishes. Co-authored-by: Hanzo Dev <[email protected]>
20 lines
478 B
JSON
20 lines
478 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "Bundler",
|
|
"jsx": "react-jsx",
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"types": ["react"]
|
|
},
|
|
"include": ["src"],
|
|
"exclude": ["node_modules", "dist", "types"]
|
|
}
|