@pipelex/mthds-ui 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -308,7 +308,7 @@ See `graphConfig.ts` for the full default palette.
|
|
|
308
308
|
| `@pipelex/mthds-ui` | Pure-TS graph logic — types, builders, layout, controllers, config |
|
|
309
309
|
| `@pipelex/mthds-ui/graph/react` | React components — `GraphViewer`, label helpers, type converters |
|
|
310
310
|
| `@pipelex/mthds-ui/form` | The form kernel's React-free surface, re-exported |
|
|
311
|
-
| `@pipelex/mthds-ui/form/brand` | The kernel's brand entry: seed colours
|
|
311
|
+
| `@pipelex/mthds-ui/form/brand` | The kernel's brand entry: seed colours and app styles into roles |
|
|
312
312
|
| `@pipelex/mthds-ui/form/generative` | The kernel's generative layer: a designed page over its controls |
|
|
313
313
|
| `@pipelex/mthds-ui/form/layout-design.mthds` | The designer method that produces such a page, as a file |
|
|
314
314
|
| `@pipelex/mthds-ui/form/react` | `RunPanel` — a pipe's input form — and the kernel's controls |
|
|
@@ -400,6 +400,8 @@ Either way, the shadcn token values are yours to supply, and each must be a **co
|
|
|
400
400
|
|
|
401
401
|
To brand the controls with a team's own colours, `@pipelex/mthds-ui/form/brand` derives colour roles from up to three colours a person picked, every text colour readable on the theme's page: a host writes `action` onto `--primary`, `accentInk` onto the optional `--link` (the accent as text) and onto `--ring` (every focus the controls draw), and `accentFill` onto the optional `--selected` (the pale fill of a selected pill, tag or step). A role the team left unset comes back absent, so the host writes no token for it and keeps its own, and a page that defines neither `--link` nor `--selected` falls back to `--primary` for both.
|
|
402
402
|
|
|
403
|
+
The same entry carries the app styles a team picks from (`quiet`, `soft`, `editorial`, `bold`) and a closed list of typefaces: `deriveStyleRoles(style, typeface)` returns the faces, heading weight and tracking, radius, panel and call-to-action treatment the choice sets, as roles a host writes onto the tokens the controls read: the body face onto `--font-sans` and the radius onto `--radius`, which the controls already read, and the rest onto optional tokens (`--font-heading`, `--heading-weight`, `--heading-tracking`, and a designed page's `--panel-*` and `--action-shadow`), each falling back to what the control painted before. `quiet` with no typeface sets nothing.
|
|
404
|
+
|
|
403
405
|
Full contract, why this package stopped loading the kernel's stylesheet itself, the `.dark` bridge, the `mthds-run-panel` token hook and the brand tokens: [docs/run-form-panel.md](./docs/run-form-panel.md).
|
|
404
406
|
|
|
405
407
|
To show a method's form or its result as a designed page, `@pipelex/mthds-ui/form/generative` carries the kernel's generative layer: `GenerativePage` renders a layout a model wrote once for the method over the same controls, after the checks that decide whether the layout can be trusted, and the kernel's plain form renders whenever it cannot. The method that designs such a page ships beside it as `@pipelex/mthds-ui/form/layout-design.mthds`, a file a producer reads and hands to a runner with the catalog and the brief the entry builds. How to import both, and what keeps the file the kernel's own: [docs/generative-layout.md](./docs/generative-layout.md).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/form/brand/index.ts"],"sourcesContent":["/**\n * The `./form/brand` entry — the form kernel's `./brand` entry, re-exported.\n *\n * A host that brands its pages reaches the kernel's colour derivation here:\n * `deriveBrandRoles` turns up to three seed colours a person picked into the\n * roles a page paints with, every text role readable at WCAG AA, and returns\n * only the roles a set colour produces, so a host keeps its own token wherever\n * the team set nothing. `resolveDarkSeeds`, `isActionFaint`, `isAccentAdjusted`\n * and `readableTextOn` are the rules around it. The same entry carries the rest
|
|
1
|
+
{"version":3,"sources":["../../../src/form/brand/index.ts"],"sourcesContent":["/**\n * The `./form/brand` entry — the form kernel's `./brand` entry, re-exported.\n *\n * A host that brands its pages reaches the kernel's colour derivation here:\n * `deriveBrandRoles` turns up to three seed colours a person picked into the\n * roles a page paints with, every text role readable at WCAG AA, and returns\n * only the roles a set colour produces, so a host keeps its own token wherever\n * the team set nothing. `resolveDarkSeeds`, `isActionFaint`, `isAccentAdjusted`\n * and `readableTextOn` are the rules around it. A team's app style and\n * typeface come through it too: `deriveStyleRoles` turns the two ids a host\n * stored into the faces, heading weight and tracking, radius, panel and\n * call-to-action treatment the choice sets, as roles rather than custom\n * property names, beside `APP_STYLES`, `TYPEFACES`, `isAppStyle`, `isTypeface`\n * and `resolveRoleColor`. The same entry carries the rest of the kernel's\n * brand surface: the theme contract, the token file's validator, and the\n * manifest, provenance and compiler a full brand goes through.\n *\n * It is its own entry rather than part of `./form` because the kernel keeps it\n * apart from its `.` entry, and for the same reason: it is isomorphic and\n * network-free, with no React and no DOM, so a settings screen, a server action\n * and a build script all import it. Re-exported wholesale, it follows the\n * kernel from release to release with nothing to edit here.\n *\n * The rule `./form` states holds here too: a host imports the kernel through\n * this package, never directly, so its tree holds one copy of it.\n *\n * Mapping the roles onto the tokens the kernel's controls read — `--primary`,\n * `--primary-foreground`, `--link`, `--selected` and `--ring` for the colours,\n * `--font-heading`, `--heading-weight`, `--heading-tracking`, `--panel-*` and\n * `--action-shadow` for a style — is described in `docs/run-form-panel.md`.\n */\n\nexport * from \"@pipelex/mthds-form/brand\";\n"],"mappings":";AAgCA,cAAc;","names":[]}
|