@pipelex/mthds-ui 0.58.3 → 0.59.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,6 @@ 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 and app styles into roles |
312
311
  | `@pipelex/mthds-ui/form/generative` | The kernel's generative layer: a designed page over its controls |
313
312
  | `@pipelex/mthds-ui/form/generative/headless` | The same layer's producer and checks, for a server: no React |
314
313
  | `@pipelex/mthds-ui/form/layout-design.mthds` | The designer method that produces such a page, as a file |
@@ -403,9 +402,9 @@ Tailwind 3 hosts and Tailwind 4 hosts that configure a prefix are not supported:
403
402
 
404
403
  Either way, the shadcn token values are yours to supply, and each must be a **complete colour** — `hsl(240 10% 3.9%)`, `#0a0711`, `oklch(…)` — never a bare HSL triplet. Since kernel `0.8.0` the sheet emits `background-color: var(--background)` rather than `hsl(var(--background))`, so a triplet computes to something that is not a colour and the browser discards the declaration instead of overriding with it: green build, token inspectable, style silently absent.
405
404
 
406
- 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.
405
+ To brand the controls with a team's own colours, a host derives them into roles itself and writes the button colour onto `--primary`, an accent ink that reads on the page onto the optional `--link` (the accent as text) and onto `--ring` (every focus the controls draw), and the accent's pale fill onto the optional `--selected` (the pale fill of a selected pill, tag or step). A role the team left unset gets no token, so the host keeps its own, and a page that defines neither `--link` nor `--selected` falls back to `--primary` for both.
407
406
 
408
- 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.
407
+ A team's app style reaches the controls the same way, through tokens the host writes: 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.
409
408
 
410
409
  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).
411
410
 
@@ -1,4 +1,3 @@
1
1
  export * from '@pipelex/mthds-form';
2
- import '@pipelex/mthds-form/brand';
3
2
  import '@pipelex/mthds-form/generative';
4
3
  import '@pipelex/mthds-form/generative/headless';
@@ -70,13 +70,6 @@ import {
70
70
  resolveGraphStyle,
71
71
  resolveStyleMenu
72
72
  } from "../chunk-XMTXWXFO.js";
73
- import {
74
- DARK_PALETTE_COLORS,
75
- DEFAULT_GRAPH_CONFIG,
76
- LIGHT_PALETTE_COLORS,
77
- getPaletteColors,
78
- getPaletteForTheme
79
- } from "../chunk-S4UMMHLE.js";
80
73
  import {
81
74
  makePipeRef,
82
75
  parsePipeRef
@@ -91,6 +84,13 @@ import {
91
84
  sentenceCase,
92
85
  stripDomain
93
86
  } from "../chunk-P6IGZVWE.js";
87
+ import {
88
+ DARK_PALETTE_COLORS,
89
+ DEFAULT_GRAPH_CONFIG,
90
+ LIGHT_PALETTE_COLORS,
91
+ getPaletteColors,
92
+ getPaletteForTheme
93
+ } from "../chunk-S4UMMHLE.js";
94
94
  import {
95
95
  ARROW_CLOSED_MARKER,
96
96
  BINDING_STEP_TYPE,
@@ -34,14 +34,14 @@ import {
34
34
  resolveGraphStyle,
35
35
  resolveStyleMenu
36
36
  } from "../../chunk-XMTXWXFO.js";
37
- import {
38
- DEFAULT_GRAPH_CONFIG,
39
- getPaletteForTheme
40
- } from "../../chunk-S4UMMHLE.js";
41
37
  import {
42
38
  parsePipeRef
43
39
  } from "../../chunk-2N65P32H.js";
44
40
  import "../../chunk-P6IGZVWE.js";
41
+ import {
42
+ DEFAULT_GRAPH_CONFIG,
43
+ getPaletteForTheme
44
+ } from "../../chunk-S4UMMHLE.js";
45
45
  import {
46
46
  BINDING_STEP_TYPE,
47
47
  EDGE_TYPE,
package/dist/index.js CHANGED
@@ -70,13 +70,6 @@ import {
70
70
  resolveGraphStyle,
71
71
  resolveStyleMenu
72
72
  } from "./chunk-XMTXWXFO.js";
73
- import {
74
- DARK_PALETTE_COLORS,
75
- DEFAULT_GRAPH_CONFIG,
76
- LIGHT_PALETTE_COLORS,
77
- getPaletteColors,
78
- getPaletteForTheme
79
- } from "./chunk-S4UMMHLE.js";
80
73
  import {
81
74
  makePipeRef,
82
75
  parsePipeRef
@@ -91,6 +84,13 @@ import {
91
84
  sentenceCase,
92
85
  stripDomain
93
86
  } from "./chunk-P6IGZVWE.js";
87
+ import {
88
+ DARK_PALETTE_COLORS,
89
+ DEFAULT_GRAPH_CONFIG,
90
+ LIGHT_PALETTE_COLORS,
91
+ getPaletteColors,
92
+ getPaletteForTheme
93
+ } from "./chunk-S4UMMHLE.js";
94
94
  import {
95
95
  ARROW_CLOSED_MARKER,
96
96
  BINDING_STEP_TYPE,
@@ -4,9 +4,6 @@ import {
4
4
  useSystemTheme
5
5
  } from "../../chunk-ZRSFFUHA.js";
6
6
  import "../../chunk-XMTXWXFO.js";
7
- import {
8
- getPaletteForTheme
9
- } from "../../chunk-S4UMMHLE.js";
10
7
  import {
11
8
  INVOCATION_STATUS,
12
9
  KEPT_VISIBLE_REASON,
@@ -40,6 +37,9 @@ import {
40
37
  import {
41
38
  outcomeLabel
42
39
  } from "../../chunk-P6IGZVWE.js";
40
+ import {
41
+ getPaletteForTheme
42
+ } from "../../chunk-S4UMMHLE.js";
43
43
  import {
44
44
  GRAPH_THEME_MODE
45
45
  } from "../../chunk-6KWNAU4F.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipelex/mthds-ui",
3
- "version": "0.58.3",
3
+ "version": "0.59.0",
4
4
  "description": "Shared graph rendering logic for MTHDS method visualization",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,10 +42,6 @@
42
42
  "import": "./dist/form/index.js",
43
43
  "types": "./dist/form/index.d.ts"
44
44
  },
45
- "./form/brand": {
46
- "import": "./dist/form/brand/index.js",
47
- "types": "./dist/form/brand/index.d.ts"
48
- },
49
45
  "./form/generative": {
50
46
  "import": "./dist/form/generative/index.js",
51
47
  "types": "./dist/form/generative/index.d.ts"
@@ -106,7 +102,7 @@
106
102
  "build-storybook": "storybook build"
107
103
  },
108
104
  "dependencies": {
109
- "@pipelex/mthds-form": "^0.42.3",
105
+ "@pipelex/mthds-form": "^0.43.0",
110
106
  "@xyflow/react": "^12",
111
107
  "elkjs": "^0.11.1",
112
108
  "mthds": "^0.34.0",
@@ -1 +0,0 @@
1
- export * from '@pipelex/mthds-form/brand';
@@ -1,3 +0,0 @@
1
- // src/form/brand/index.ts
2
- export * from "@pipelex/mthds-form/brand";
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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":[]}