@newtone-dev/ui-react-web 0.45.0 → 0.46.1

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.
Files changed (177) hide show
  1. package/README.md +5 -3
  2. package/dist/app-frame/app-frame.css +57 -0
  3. package/dist/app-frame/app-frame.d.ts +2 -1
  4. package/dist/app-frame/app-frame.d.ts.map +1 -1
  5. package/dist/app-frame/app-frame.js +2 -1
  6. package/dist/app-frame/app-frame.js.map +1 -1
  7. package/dist/app-frame/index.d.ts +1 -1
  8. package/dist/app-frame/index.d.ts.map +1 -1
  9. package/dist/app-frame/launcher/launcher.d.ts.map +1 -1
  10. package/dist/app-frame/launcher/launcher.js +5 -3
  11. package/dist/app-frame/launcher/launcher.js.map +1 -1
  12. package/dist/app-frame/parts.d.ts +22 -1
  13. package/dist/app-frame/parts.d.ts.map +1 -1
  14. package/dist/app-frame/parts.js +15 -2
  15. package/dist/app-frame/parts.js.map +1 -1
  16. package/dist/beside/beside.css +4 -0
  17. package/dist/card-box/card-box.css +8 -2
  18. package/dist/card-box/card-box.d.ts.map +1 -1
  19. package/dist/card-box/card-box.js +1 -1
  20. package/dist/card-box/card-box.js.map +1 -1
  21. package/dist/color/index.d.ts +4 -4
  22. package/dist/color/index.d.ts.map +1 -1
  23. package/dist/color/index.js +17 -15
  24. package/dist/color/index.js.map +1 -1
  25. package/dist/color/oklch.d.ts +6 -27
  26. package/dist/color/oklch.d.ts.map +1 -1
  27. package/dist/color/oklch.js +23 -61
  28. package/dist/color/oklch.js.map +1 -1
  29. package/dist/color/scale.d.ts +3 -18
  30. package/dist/color/scale.d.ts.map +1 -1
  31. package/dist/color/scale.js +13 -70
  32. package/dist/color/scale.js.map +1 -1
  33. package/dist/color/seeds.d.ts +51 -11
  34. package/dist/color/seeds.d.ts.map +1 -1
  35. package/dist/color/seeds.js +127 -41
  36. package/dist/color/seeds.js.map +1 -1
  37. package/dist/curve-field/curve-field.css +280 -0
  38. package/dist/curve-field/curve-field.d.ts +105 -0
  39. package/dist/curve-field/curve-field.d.ts.map +1 -0
  40. package/dist/curve-field/curve-field.js +532 -0
  41. package/dist/curve-field/curve-field.js.map +1 -0
  42. package/dist/curve-field/index.d.ts +3 -0
  43. package/dist/curve-field/index.d.ts.map +1 -0
  44. package/dist/curve-field/index.js +2 -0
  45. package/dist/curve-field/index.js.map +1 -0
  46. package/dist/diagram/diagram.css +63 -0
  47. package/dist/diagram/diagram.d.ts +63 -0
  48. package/dist/diagram/diagram.d.ts.map +1 -0
  49. package/dist/diagram/diagram.js +73 -0
  50. package/dist/diagram/diagram.js.map +1 -0
  51. package/dist/diagram/geometry.d.ts +60 -0
  52. package/dist/diagram/geometry.d.ts.map +1 -0
  53. package/dist/diagram/geometry.js +93 -0
  54. package/dist/diagram/geometry.js.map +1 -0
  55. package/dist/diagram/index.d.ts +7 -0
  56. package/dist/diagram/index.d.ts.map +1 -0
  57. package/dist/diagram/index.js +4 -0
  58. package/dist/diagram/index.js.map +1 -0
  59. package/dist/diagram/layout.d.ts +41 -0
  60. package/dist/diagram/layout.d.ts.map +1 -0
  61. package/dist/diagram/layout.js +157 -0
  62. package/dist/diagram/layout.js.map +1 -0
  63. package/dist/document/document.d.ts +7 -2
  64. package/dist/document/document.d.ts.map +1 -1
  65. package/dist/document/document.js +22 -4
  66. package/dist/document/document.js.map +1 -1
  67. package/dist/dynamic-range/dynamic-range.css +100 -0
  68. package/dist/dynamic-range/dynamic-range.d.ts +27 -0
  69. package/dist/dynamic-range/dynamic-range.d.ts.map +1 -0
  70. package/dist/dynamic-range/dynamic-range.js +20 -0
  71. package/dist/dynamic-range/dynamic-range.js.map +1 -0
  72. package/dist/dynamic-range/index.d.ts +3 -0
  73. package/dist/dynamic-range/index.d.ts.map +1 -0
  74. package/dist/dynamic-range/index.js +2 -0
  75. package/dist/dynamic-range/index.js.map +1 -0
  76. package/dist/file-grid/file-grid.css +65 -0
  77. package/dist/file-grid/file-grid.d.ts +34 -1
  78. package/dist/file-grid/file-grid.d.ts.map +1 -1
  79. package/dist/file-grid/file-grid.js +63 -2
  80. package/dist/file-grid/file-grid.js.map +1 -1
  81. package/dist/file-grid/index.d.ts +2 -2
  82. package/dist/file-grid/index.d.ts.map +1 -1
  83. package/dist/file-grid/index.js +1 -1
  84. package/dist/file-grid/index.js.map +1 -1
  85. package/dist/floating-bar/floating-bar.css +37 -15
  86. package/dist/floating-bar/floating-bar.d.ts +16 -1
  87. package/dist/floating-bar/floating-bar.d.ts.map +1 -1
  88. package/dist/floating-bar/floating-bar.js +58 -15
  89. package/dist/floating-bar/floating-bar.js.map +1 -1
  90. package/dist/floating-bar/index.d.ts +1 -1
  91. package/dist/floating-bar/index.d.ts.map +1 -1
  92. package/dist/identity/identity.d.ts +11 -3
  93. package/dist/identity/identity.d.ts.map +1 -1
  94. package/dist/identity/identity.js +8 -4
  95. package/dist/identity/identity.js.map +1 -1
  96. package/dist/index.d.ts +16 -8
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +6 -2
  99. package/dist/index.js.map +1 -1
  100. package/dist/inspector/index.d.ts +1 -1
  101. package/dist/inspector/index.d.ts.map +1 -1
  102. package/dist/inspector/inspector.css +199 -6
  103. package/dist/inspector/inspector.d.ts +113 -3
  104. package/dist/inspector/inspector.d.ts.map +1 -1
  105. package/dist/inspector/inspector.js +53 -5
  106. package/dist/inspector/inspector.js.map +1 -1
  107. package/dist/material/material.css +8 -2
  108. package/dist/number-field/number-field.css +13 -0
  109. package/dist/number-field/number-field.d.ts +6 -1
  110. package/dist/number-field/number-field.d.ts.map +1 -1
  111. package/dist/number-field/number-field.js +10 -2
  112. package/dist/number-field/number-field.js.map +1 -1
  113. package/dist/pop-menu/pop-menu.d.ts +3 -0
  114. package/dist/pop-menu/pop-menu.d.ts.map +1 -1
  115. package/dist/pop-menu/pop-menu.js +12 -6
  116. package/dist/pop-menu/pop-menu.js.map +1 -1
  117. package/dist/prompt-field/prompt-field.css +3 -3
  118. package/dist/prompt-field/prompt-field.d.ts +3 -3
  119. package/dist/prompt-field/prompt-field.d.ts.map +1 -1
  120. package/dist/prompt-field/prompt-field.js +10 -4
  121. package/dist/prompt-field/prompt-field.js.map +1 -1
  122. package/dist/seed-contrast-field/index.d.ts +5 -0
  123. package/dist/seed-contrast-field/index.d.ts.map +1 -0
  124. package/dist/seed-contrast-field/index.js +3 -0
  125. package/dist/seed-contrast-field/index.js.map +1 -0
  126. package/dist/seed-contrast-field/seed-contrast-field.css +11 -0
  127. package/dist/{seed-dark-limit-field/seed-dark-limit-field.d.ts → seed-contrast-field/seed-contrast-field.d.ts} +14 -14
  128. package/dist/seed-contrast-field/seed-contrast-field.d.ts.map +1 -0
  129. package/dist/seed-contrast-field/seed-contrast-field.js +18 -0
  130. package/dist/seed-contrast-field/seed-contrast-field.js.map +1 -0
  131. package/dist/seed-contrast-field/seed-contrast-slider.css +112 -0
  132. package/dist/seed-contrast-field/seed-contrast-slider.d.ts +22 -0
  133. package/dist/seed-contrast-field/seed-contrast-slider.d.ts.map +1 -0
  134. package/dist/seed-contrast-field/seed-contrast-slider.js +75 -0
  135. package/dist/seed-contrast-field/seed-contrast-slider.js.map +1 -0
  136. package/dist/seed-steps/index.d.ts +1 -1
  137. package/dist/seed-steps/index.js +1 -1
  138. package/dist/seed-steps/seed-steps.css +1 -1
  139. package/dist/seed-steps/seed-steps.js +1 -1
  140. package/dist/seed-steps/seed-steps.js.map +1 -1
  141. package/dist/shell/shell.css +31 -21
  142. package/dist/split/split.css +8 -5
  143. package/dist/step-list/index.d.ts +1 -1
  144. package/dist/step-list/index.d.ts.map +1 -1
  145. package/dist/step-list/step-list.css +75 -2
  146. package/dist/step-list/step-list.d.ts +121 -11
  147. package/dist/step-list/step-list.d.ts.map +1 -1
  148. package/dist/step-list/step-list.js +203 -37
  149. package/dist/step-list/step-list.js.map +1 -1
  150. package/dist/step-strip/index.d.ts +3 -0
  151. package/dist/step-strip/index.d.ts.map +1 -0
  152. package/dist/step-strip/index.js +2 -0
  153. package/dist/step-strip/index.js.map +1 -0
  154. package/dist/step-strip/step-strip.css +118 -0
  155. package/dist/step-strip/step-strip.d.ts +52 -0
  156. package/dist/step-strip/step-strip.d.ts.map +1 -0
  157. package/dist/step-strip/step-strip.js +47 -0
  158. package/dist/step-strip/step-strip.js.map +1 -0
  159. package/dist/surface/surface.css +112 -0
  160. package/dist/workbench/workbench.css +50 -0
  161. package/dist/workbench/workbench.d.ts +25 -1
  162. package/dist/workbench/workbench.d.ts.map +1 -1
  163. package/dist/workbench/workbench.js +11 -2
  164. package/dist/workbench/workbench.js.map +1 -1
  165. package/package.json +27 -5
  166. package/dist/color/gamut.d.ts +0 -20
  167. package/dist/color/gamut.d.ts.map +0 -1
  168. package/dist/color/gamut.js +0 -72
  169. package/dist/color/gamut.js.map +0 -1
  170. package/dist/seed-dark-limit-field/index.d.ts +0 -3
  171. package/dist/seed-dark-limit-field/index.d.ts.map +0 -1
  172. package/dist/seed-dark-limit-field/index.js +0 -2
  173. package/dist/seed-dark-limit-field/index.js.map +0 -1
  174. package/dist/seed-dark-limit-field/seed-dark-limit-field.css +0 -10
  175. package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts.map +0 -1
  176. package/dist/seed-dark-limit-field/seed-dark-limit-field.js +0 -18
  177. package/dist/seed-dark-limit-field/seed-dark-limit-field.js.map +0 -1
@@ -0,0 +1,118 @@
1
+ /* StepStrip -- blueprint components/step-strip.md. A row of colours painted from data, one swatch per step: the numbers
2
+ * under it, the consumer's markers over it. The colours are data, not the interface's: each swatch's paint is written on
3
+ * it in step-strip.tsx (--_step-strip-color, private), never a role or a --newtone-color-… property. The steps run left
4
+ * to right in any writing direction, as a ladder does.
5
+ *
6
+ * LENGTHS IT DECIDES:
7
+ * 24px the strip; 1px its hairline (divider.secondary, Joshua 2026-11-14: quiet beside the panel's fields) and radius.sm corners
8
+ * 1px a marker's tick, 6px long, down to the middle of its step
9
+ * The rows of numbers and markers are one caption line high: each holds a zero-width line of its own, its words
10
+ * standing over it, so their height is the type's and no length is written for it. */
11
+ .newtone-step-strip {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: var(--newtone-space-1);
15
+ min-inline-size: 0;
16
+ color: var(--newtone-role-text-primary);
17
+ }
18
+ .newtone-step-strip-list {
19
+ display: flex;
20
+ direction: ltr;
21
+ box-sizing: border-box;
22
+ block-size: 24px;
23
+ min-inline-size: 0;
24
+ margin: 0;
25
+ padding: 0;
26
+ list-style: none;
27
+ overflow: hidden;
28
+ border: 1px solid var(--newtone-role-divider-secondary);
29
+ border-radius: var(--newtone-radius-sm);
30
+ }
31
+ .newtone-step-strip-step {
32
+ display: flex;
33
+ flex: 1 1 0;
34
+ min-inline-size: 0;
35
+ }
36
+ .newtone-step-strip-swatch {
37
+ flex: 1;
38
+ background: var(--_step-strip-color);
39
+ }
40
+
41
+ /* The numbers and the markers: each word at its step's middle, centred, or from the step near the strip's ends. */
42
+ .newtone-step-strip-numbers,
43
+ .newtone-step-strip-marks {
44
+ position: relative;
45
+ direction: ltr;
46
+ }
47
+ .newtone-step-strip-numbers::before,
48
+ .newtone-step-strip-marks::before {
49
+ content: '\200b';
50
+ }
51
+ .newtone-step-strip-marks {
52
+ padding-block-end: 6px;
53
+ }
54
+ .newtone-step-strip-number,
55
+ .newtone-step-strip-mark {
56
+ position: absolute;
57
+ left: calc(var(--_step-strip-at) * 100%);
58
+ transform: translateX(-50%);
59
+ white-space: nowrap;
60
+ }
61
+ .newtone-step-strip-number {
62
+ inset-block-start: 0;
63
+ }
64
+ .newtone-step-strip-mark {
65
+ inset-block-end: 0;
66
+ display: flex;
67
+ flex-direction: column;
68
+ align-items: center;
69
+ }
70
+ .newtone-step-strip-mark::after {
71
+ content: '';
72
+ inline-size: 1px;
73
+ block-size: 6px;
74
+ background: var(--newtone-role-text-primary);
75
+ }
76
+ .newtone-step-strip-number:where([data-edge='start']),
77
+ .newtone-step-strip-mark:where([data-edge='start']) {
78
+ align-items: flex-start;
79
+ transform: none;
80
+ }
81
+ .newtone-step-strip-number:where([data-edge='end']),
82
+ .newtone-step-strip-mark:where([data-edge='end']) {
83
+ align-items: flex-end;
84
+ transform: translateX(-100%);
85
+ }
86
+
87
+ /* `card` (2026-11-14, Style Book): as Slides' slide on its screen. Taller, radius.md, no hairline: the low shadow
88
+ * (material.css's --_shadow-low) and the lit edge, light at the top to dark at the foot, a 1px ring drawn on its own layer
89
+ * over the swatches, edge it. Its swatches stay clipped to the corners; the shadow falls outside, unclipped. */
90
+ .newtone-step-strip[data-look='card'] > .newtone-step-strip-list {
91
+ position: relative;
92
+ block-size: 64px;
93
+ border: 0;
94
+ border-radius: var(--newtone-radius-md);
95
+ box-shadow: var(--_shadow-low);
96
+ transition: block-size 200ms ease;
97
+ }
98
+ /* In focus (2026-11-14, Style Book: the palette being edited): taller, as a focus mode. */
99
+ .newtone-step-strip[data-look='card'][data-focused] > .newtone-step-strip-list {
100
+ block-size: 160px;
101
+ }
102
+ @media (prefers-reduced-motion: reduce) {
103
+ .newtone-step-strip[data-look='card'] > .newtone-step-strip-list {
104
+ transition: none;
105
+ }
106
+ }
107
+ .newtone-step-strip[data-look='card'] > .newtone-step-strip-list::after {
108
+ content: '';
109
+ position: absolute;
110
+ inset: 0;
111
+ padding: 1px;
112
+ border-radius: inherit;
113
+ background: var(--_material-lit) border-box;
114
+ mask:
115
+ linear-gradient(#000 0 0) content-box exclude,
116
+ linear-gradient(#000 0 0);
117
+ pointer-events: none;
118
+ }
@@ -0,0 +1,52 @@
1
+ import { type HTMLAttributes } from 'react';
2
+ /** One step's colour, as an engine gives it (`deriveScale`'s steps): its OKLCH (`l` 0 to 1) and its sRGB hex. */
3
+ export interface StepStripStep {
4
+ oklch: {
5
+ l: number;
6
+ c: number;
7
+ h: number;
8
+ };
9
+ srgb: string;
10
+ }
11
+ /** A few words over a step, with a tick down to it: where a key lands. */
12
+ export interface StepStripMarker {
13
+ step: number;
14
+ label: string;
15
+ }
16
+ /** Which of each step's two colours is painted: `auto`, the OKLCH where the browser paints `oklch()`, else the hex. */
17
+ export type StepStripChannel = 'auto' | 'oklch' | 'srgb';
18
+ export interface StepStripLabels {
19
+ /** Each swatch's name, as assistive tech says it, given the step and its colour: "Step 25, #7a6ff0". */
20
+ stepLabel: (step: number, color: StepStripStep) => string;
21
+ /**
22
+ * The words a shown number says (2026-11-14, HuevOS's Style Book names steps by their lightness: "92"); left out,
23
+ * the step's index. Display only: it is aria-hidden, as the numbers are; `stepLabel` is what is said.
24
+ */
25
+ number?: (step: number) => string;
26
+ }
27
+ export interface StepStripProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
28
+ /** The strip's name, as assistive tech says it (its list's name); not drawn. */
29
+ label: string;
30
+ /** The colours, step 0 first; any count. */
31
+ steps: StepStripStep[];
32
+ /** Which colour each swatch paints: `auto` (the default), `oklch` or `srgb`. */
33
+ channel?: StepStripChannel;
34
+ /** Every how many steps a number stands under the strip: 5. The first and the last always; 0 for none. */
35
+ numbers?: number;
36
+ /** Words over steps, each with a tick down to its step. */
37
+ markers?: StepStripMarker[];
38
+ /**
39
+ * `card` (2026-11-14, HuevOS's Style Book): the strip as Slides' slide stands on its screen, taller (64px), rounded at
40
+ * radius.md, raised by the low shadow and the lit edge (material.css), no hairline. For a palette shown for itself.
41
+ */
42
+ look?: 'plain' | 'card';
43
+ /**
44
+ * A `card` in focus (2026-11-14, HuevOS's Style Book: the palette being edited): it grows taller, 64px to 160px, eased
45
+ * (none under reduced motion), as a focus mode. Ignored on a `plain` strip.
46
+ */
47
+ focused?: boolean;
48
+ labels: StepStripLabels;
49
+ }
50
+ /** A row of colours painted from data. Blueprint components/step-strip.md. */
51
+ export declare function StepStrip({ label, steps, channel, numbers, markers, look, focused, labels, className, ...rest }: StepStripProps): import("react").JSX.Element;
52
+ //# sourceMappingURL=step-strip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-strip.d.ts","sourceRoot":"","sources":["../../src/step-strip/step-strip.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAmD,KAA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ACd,OAAe,EACf,MAAM,EACN,SAAS,EACT,GAAG,IAAI,EACV,EAAE,cAAc,+BAqEhB"}
@@ -0,0 +1,47 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ // A row of colours painted from data, one swatch per step, step 0 at the left (2026-11-14): what an engine produced for
4
+ // a palette's steps, before it reaches a token. Each colour is the consumer's, as the engine gives it (its OKLCH and its
5
+ // hex), so the strip never takes a palette's name and never reads a `--newtone-color-…` property: it shows what a seed
6
+ // would paint, not what the page already wears. Heard as an ordered list of pictures, each named in the consumer's
7
+ // words. Blueprint components/step-strip.md; contract _blueprint/contracts/step-strip.md.
8
+ import { useId, useSyncExternalStore } from 'react';
9
+ import { cssNumber } from '../color/index.js';
10
+ import { Text } from '../text/index.js';
11
+ // Whether the browser paints `oklch()`, asked as seedProperties asks it (color/seeds.ts, prefersOklch). A server has
12
+ // no CSS to ask and paints the hex; hydrating, React renders the server's answer first and then the browser's.
13
+ const unchanging = () => () => { };
14
+ const oklchHere = () => typeof CSS !== 'undefined' && CSS.supports?.('color', 'oklch(0% 0 0)') === true;
15
+ const onServer = () => false;
16
+ /** A step's paint, OKLCH written as seedProperties writes it. */
17
+ const paint = (c, wide) => wide ? `oklch(${cssNumber(c.oklch.l * 100)}% ${cssNumber(c.oklch.c)} ${cssNumber(c.oklch.h)})` : c.srgb;
18
+ /** The steps numbered: every `every`th, the first and the last always, leaving out one that would crowd the last. */
19
+ function numbered(count, every) {
20
+ if (!(every > 0) || count < 1)
21
+ return [];
22
+ const last = count - 1;
23
+ const out = [];
24
+ for (let i = 0; i < last; i += every)
25
+ if (i === 0 || last - i >= every / 2)
26
+ out.push(i);
27
+ out.push(last);
28
+ return out;
29
+ }
30
+ /** A row of colours painted from data. Blueprint components/step-strip.md. */
31
+ export function StepStrip({ label, steps, channel = 'auto', numbers = 5, markers, look = 'plain', focused = false, labels, className, ...rest }) {
32
+ const id = useId();
33
+ const here = useSyncExternalStore(unchanging, oklchHere, onServer);
34
+ const wide = channel === 'oklch' || (channel === 'auto' && here);
35
+ const count = steps.length;
36
+ // Where a step's middle stands along the strip, 0 to 1; near an end, words start or end there rather than centre.
37
+ const at = (i) => (i + 0.5) / count;
38
+ const edge = (f) => (f < 0.1 ? 'start' : f > 0.9 ? 'end' : undefined);
39
+ const marks = (markers ?? []).filter((m) => Number.isInteger(m.step) && m.step >= 0 && m.step < count);
40
+ const markId = (k) => `${id}mark${k}`;
41
+ const shown = numbered(count, Math.round(numbers));
42
+ return (_jsxs("div", { ...rest, className: ['newtone-step-strip', className].filter(Boolean).join(' '), "data-look": look === 'card' ? 'card' : undefined, "data-focused": look === 'card' && focused ? '' : undefined, children: [marks.length ? (_jsx(Text, { as: "div", scale: "caption", measure: "none", className: "newtone-step-strip-marks", "aria-hidden": "true", children: marks.map((m, k) => (_jsx("span", { id: markId(k), className: "newtone-step-strip-mark", "data-edge": edge(at(m.step)), style: { '--_step-strip-at': at(m.step) }, children: m.label }, k))) })) : null, _jsx("ol", { className: "newtone-step-strip-list", "aria-label": label, children: steps.map((c, i) => {
43
+ const described = marks.flatMap((m, k) => (m.step === i ? [markId(k)] : []));
44
+ return (_jsx("li", { className: "newtone-step-strip-step", children: _jsx("span", { role: "img", className: "newtone-step-strip-swatch", "aria-label": labels.stepLabel(i, c), "aria-describedby": described.length ? described.join(' ') : undefined, style: { '--_step-strip-color': paint(c, wide) } }) }, i));
45
+ }) }), shown.length ? (_jsx(Text, { as: "div", scale: "caption", tone: "secondary", figures: "tabular", measure: "none", className: "newtone-step-strip-numbers", "aria-hidden": "true", children: shown.map((i) => (_jsx("span", { className: "newtone-step-strip-number", "data-edge": i === 0 ? 'start' : i === count - 1 ? 'end' : undefined, style: { '--_step-strip-at': at(i) }, children: labels.number ? labels.number(i) : i }, i))) })) : null] }));
46
+ }
47
+ //# sourceMappingURL=step-strip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-strip.js","sourceRoot":"","sources":["../../src/step-strip/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AAC,CAAC,CAAC,IAAI,IACN,CACT,CAAA;AACL,CAAC"}
@@ -0,0 +1,112 @@
1
+ /* A surface that stands on another (Joshua 2026-11-15): a card, a container, a banner -- any element written
2
+ * `data-newtone-stands` beside its own `data-newtone-surface`. Blueprint components/surface.md, *Borders*.
3
+ *
4
+ * Two custom properties, set on that element and read by its own stylesheet for its border:
5
+ *
6
+ * --newtone-stands-edge its border colour: the secondary divider when it wears the same theme AND elevation as the
7
+ * nearest surface under it, else the seed's Borders (`options.surface.edge.borders`:
8
+ * "needed", transparent, the default; "always", the secondary divider).
9
+ * --newtone-stands-same the secondary divider when it matches what it stands on, else not set: a part that never
10
+ * draws a ring (CardBox outlined={false}) still marks a match with it.
11
+ *
12
+ * Same-on-same is bordered whatever the seed says: two equal grounds would read as one.
13
+ *
14
+ * WHY @scope. "The nearest surface under it" is a proximity question, and CSS has none outside @scope. Each block below
15
+ * roots at one surface and stops at any surface nested inside a surface inside it, so the stander it matches is one
16
+ * whose nearest surface ancestor is that root. A theme or elevation left unwritten is Default or Base, exactly as the
17
+ * token blocks resolve it (ui_tokens build.mjs surfaceElement). A stander with no surface above it stands on the page
18
+ * ground, Default Base. Generated: twelve pairs, one block each. */
19
+
20
+ [data-newtone-stands] {
21
+ --newtone-stands-same: initial;
22
+ --newtone-stands-edge: var(--newtone-stands-same, var(--newtone-surface-edge-border, transparent));
23
+ }
24
+
25
+ /* On the page ground, with no surface above: Default Base. */
26
+ [data-newtone-stands][data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme])):where([data-newtone-elevation="base"], :not([data-newtone-elevation])):not([data-newtone-surface] *) {
27
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
28
+ }
29
+
30
+ /* default high on default high */
31
+ @scope ([data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme]))[data-newtone-elevation="high"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
32
+ [data-newtone-stands][data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme]))[data-newtone-elevation="high"]:not(:scope) {
33
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
34
+ }
35
+ }
36
+
37
+ /* default base on default base */
38
+ @scope ([data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme])):where([data-newtone-elevation="base"], :not([data-newtone-elevation]))) to (:scope [data-newtone-surface] [data-newtone-surface]) {
39
+ [data-newtone-stands][data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme])):where([data-newtone-elevation="base"], :not([data-newtone-elevation])):not(:scope) {
40
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
41
+ }
42
+ }
43
+
44
+ /* default deep on default deep */
45
+ @scope ([data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme]))[data-newtone-elevation="deep"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
46
+ [data-newtone-stands][data-newtone-surface]:where([data-newtone-theme="default"], :not([data-newtone-theme]))[data-newtone-elevation="deep"]:not(:scope) {
47
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
48
+ }
49
+ }
50
+
51
+ /* tinted high on tinted high */
52
+ @scope ([data-newtone-surface][data-newtone-theme="tinted"][data-newtone-elevation="high"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
53
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="tinted"][data-newtone-elevation="high"]:not(:scope) {
54
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
55
+ }
56
+ }
57
+
58
+ /* tinted base on tinted base */
59
+ @scope ([data-newtone-surface][data-newtone-theme="tinted"]:where([data-newtone-elevation="base"], :not([data-newtone-elevation]))) to (:scope [data-newtone-surface] [data-newtone-surface]) {
60
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="tinted"]:where([data-newtone-elevation="base"], :not([data-newtone-elevation])):not(:scope) {
61
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
62
+ }
63
+ }
64
+
65
+ /* tinted deep on tinted deep */
66
+ @scope ([data-newtone-surface][data-newtone-theme="tinted"][data-newtone-elevation="deep"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
67
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="tinted"][data-newtone-elevation="deep"]:not(:scope) {
68
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
69
+ }
70
+ }
71
+
72
+ /* emphasis high on emphasis high */
73
+ @scope ([data-newtone-surface][data-newtone-theme="emphasis"][data-newtone-elevation="high"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
74
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="emphasis"][data-newtone-elevation="high"]:not(:scope) {
75
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
76
+ }
77
+ }
78
+
79
+ /* emphasis base on emphasis base */
80
+ @scope ([data-newtone-surface][data-newtone-theme="emphasis"]:where([data-newtone-elevation="base"], :not([data-newtone-elevation]))) to (:scope [data-newtone-surface] [data-newtone-surface]) {
81
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="emphasis"]:where([data-newtone-elevation="base"], :not([data-newtone-elevation])):not(:scope) {
82
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
83
+ }
84
+ }
85
+
86
+ /* emphasis deep on emphasis deep */
87
+ @scope ([data-newtone-surface][data-newtone-theme="emphasis"][data-newtone-elevation="deep"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
88
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="emphasis"][data-newtone-elevation="deep"]:not(:scope) {
89
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
90
+ }
91
+ }
92
+
93
+ /* strong high on strong high */
94
+ @scope ([data-newtone-surface][data-newtone-theme="strong"][data-newtone-elevation="high"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
95
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="strong"][data-newtone-elevation="high"]:not(:scope) {
96
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
97
+ }
98
+ }
99
+
100
+ /* strong base on strong base */
101
+ @scope ([data-newtone-surface][data-newtone-theme="strong"]:where([data-newtone-elevation="base"], :not([data-newtone-elevation]))) to (:scope [data-newtone-surface] [data-newtone-surface]) {
102
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="strong"]:where([data-newtone-elevation="base"], :not([data-newtone-elevation])):not(:scope) {
103
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
104
+ }
105
+ }
106
+
107
+ /* strong deep on strong deep */
108
+ @scope ([data-newtone-surface][data-newtone-theme="strong"][data-newtone-elevation="deep"]) to (:scope [data-newtone-surface] [data-newtone-surface]) {
109
+ [data-newtone-stands][data-newtone-surface][data-newtone-theme="strong"][data-newtone-elevation="deep"]:not(:scope) {
110
+ --newtone-stands-same: var(--newtone-role-divider-secondary);
111
+ }
112
+ }
@@ -201,6 +201,32 @@
201
201
  .newtone-workbench[data-newtone-workbench-folded] > [data-cell='c2'] {
202
202
  grid-column: 2 / 4;
203
203
  }
204
+ /* `dock` (Joshua 2026-11-14, Style Book's variant tabs): a bar centred at C2's foot, space.2 up, and `dockEnd`'s pill
205
+ * space.2 after it, the two centred together as Canvas.Dock's are. Only they take presses: the page scrolls under the
206
+ * rest. A page on the screen ends the bar's room (46px + 2 × space.2) higher, so its last row clears it. */
207
+ .newtone-workbench-dock {
208
+ position: absolute;
209
+ inset-inline: var(--newtone-space-2);
210
+ inset-block-end: var(--newtone-space-2);
211
+ z-index: 4;
212
+ display: flex;
213
+ justify-content: center;
214
+ align-items: center;
215
+ gap: var(--newtone-space-2);
216
+ pointer-events: none;
217
+ }
218
+ .newtone-workbench-dock > * {
219
+ pointer-events: auto;
220
+ min-inline-size: 0;
221
+ }
222
+ .newtone-workbench-dock-end {
223
+ display: flex;
224
+ align-items: center;
225
+ flex: none;
226
+ }
227
+ .newtone-workbench-screen[data-dock] > .newtone-workbench-page > .newtone-workbench-page-column {
228
+ padding-block-end: calc(46px + 2 * var(--newtone-space-2) + var(--newtone-space-8));
229
+ }
204
230
  .newtone-workbench-corner {
205
231
  position: absolute;
206
232
  inset-block-end: var(--newtone-space-2);
@@ -320,3 +346,27 @@
320
346
  margin-top: var(--_track-start);
321
347
  margin-bottom: var(--_track-end);
322
348
  }
349
+
350
+ /* Workbench.Page (2026-11-14, Style Book): a page on the deep screen that scrolls on its own, its content centered. */
351
+ .newtone-workbench-screen > .newtone-workbench-page {
352
+ flex: 1 1 0;
353
+ min-block-size: 0;
354
+ overflow-y: auto;
355
+ overscroll-behavior: contain;
356
+ }
357
+ .newtone-workbench-page-column {
358
+ box-sizing: border-box;
359
+ max-inline-size: 48rem;
360
+ margin-inline: auto;
361
+ padding: var(--newtone-space-8) var(--newtone-space-6) var(--newtone-space-16);
362
+ }
363
+ .newtone-workbench-page-column[data-wide] {
364
+ max-inline-size: 72rem;
365
+ }
366
+ /* `fill` (2026-11-14): at least the screen's height, padding inside it, its children a column; one may grow. */
367
+ .newtone-workbench-page-column[data-fill] {
368
+ display: flex;
369
+ flex-direction: column;
370
+ gap: var(--newtone-space-6);
371
+ min-block-size: 100%;
372
+ }
@@ -34,6 +34,13 @@ export interface WorkbenchProps {
34
34
  folded?: boolean;
35
35
  /** A small bar in C2's bottom-left corner, `space.2` in (Slides' views): glass. */
36
36
  corner?: ReactNode;
37
+ /**
38
+ * A bar centred at C2's foot, `space.2` up, for a screen that is not a `Canvas` (Joshua 2026-11-14, Style Book: the
39
+ * variants as tabs, + at the bar's end): what `Canvas.Dock` is on a canvas. Glass; the page scrolls under it.
40
+ */
41
+ dock?: ReactNode;
42
+ /** A pill of its own `space.2` after the dock's bar, the two centred together (Style Book's Ask, as Slides'). */
43
+ dockEnd?: ReactNode;
37
44
  /** A bar at B2's foot, its slides passing under it (Slides' adds, Joshua 2026-11-10): as tall as the corner's bar and
38
45
  * as far in, and glass, as the corner's is (Joshua 2026-11-11). Give its `FloatingBar` `fill` to span the panel. */
39
46
  b2Foot?: ReactNode;
@@ -50,5 +57,22 @@ export interface WorkbenchProps {
50
57
  };
51
58
  className?: string;
52
59
  }
53
- export declare function Workbench({ a1, b1, c1, c1End, d1, d1End, a2, b2, b2Head, b2Foot, c2, d2, d2Foot, folded, corner, labels, className }: WorkbenchProps): import("react").JSX.Element;
60
+ declare function WorkbenchRoot({ a1, b1, c1, c1End, d1, d1End, a2, b2, b2Head, b2Foot, c2, d2, d2Foot, folded, corner, dock, dockEnd, labels, className }: WorkbenchProps): import("react").JSX.Element;
61
+ /**
62
+ * A page on C2's deep screen (2026-11-14, HuevOS's Style Book: palettes, forms): it scrolls on its own, its content
63
+ * centered in a reading column (`wide`: 72rem, else 48rem), as a slide is centered on the screen. For anything that is
64
+ * not a canvas.
65
+ */
66
+ declare function WorkbenchPage({ wide, fill, label, children }: {
67
+ wide?: boolean;
68
+ /** Its column as tall as the screen at least, its children a column `space.6` apart, so one of them can take the
69
+ * height left (Joshua 2026-11-14, Style Book's All palettes: DynamicRange `fill`). */
70
+ fill?: boolean;
71
+ label?: string;
72
+ children?: ReactNode;
73
+ }): import("react").JSX.Element;
74
+ export declare const Workbench: typeof WorkbenchRoot & {
75
+ Page: typeof WorkbenchPage;
76
+ };
77
+ export {};
54
78
  //# sourceMappingURL=workbench.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workbench.d.ts","sourceRoot":"","sources":["../../src/workbench/workbench.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AActC;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,cAAc;IAC3B,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,iFAAiF;IACjF,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,yDAAyD;IACzD,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,6CAA6C;IAC7C,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,qDAAqD;IACrD,EAAE,CAAC,EAAE,SAAS,CAAA;IACd,iDAAiD;IACjD,EAAE,CAAC,E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,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB,+BAMA;AAED,eAAO,MAAM,SAAS;;CAAwD,CAAA"}
@@ -7,7 +7,16 @@ import { MaterialContext } from '../material/material.js';
7
7
  function Glass({ className, children }) {
8
8
  return (_jsx("div", { className: className, "data-newtone-material": "glass", children: _jsx(MaterialContext.Provider, { value: "glass", children: children }) }));
9
9
  }
10
- export function Workbench({ a1, b1, c1, c1End, d1, d1End, a2, b2, b2Head, b2Foot, c2, d2, d2Foot, folded, corner, labels = {}, className }) {
11
- return (_jsxs("div", { className: ['newtone-workbench', className].filter(Boolean).join(' '), "data-newtone-surface": "", "data-newtone-elevation": "base", "data-newtone-workbench-folded": folded ? '' : undefined, children: [_jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "abc1", children: [a1 ? _jsx("span", { className: "newtone-workbench-home", children: a1 }) : null, b1, b1 && c1 ? _jsx(AppFrameDivider, {}) : null, c1, c1End ? _jsx("div", { className: "newtone-workbench-end", children: c1End }) : null] }), _jsx("span", { className: "newtone-workbench-seam", "aria-hidden": "true" }), _jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "d1", children: [d1, d1End ? _jsx("div", { className: "newtone-workbench-end", children: d1End }) : null] }), _jsx("nav", { className: "newtone-workbench-cell", "data-cell": "a2", "aria-label": labels.a2, children: a2 }), folded ? null : b2Foot || b2Head ? (_jsxs("div", { className: "newtone-workbench-cell", "data-cell": "b2", "data-foot": b2Foot ? '' : undefined, "data-head": b2Head ? '' : undefined, role: "region", "aria-label": labels.b2, children: [_jsx("div", { className: "newtone-workbench-scroll", children: b2 }), b2Head ? _jsx(Glass, { className: "newtone-workbench-head", children: b2Head }) : null, b2Foot ? _jsx(Glass, { className: "newtone-workbench-foot", children: b2Foot }) : null] })) : (_jsx("div", { className: "newtone-workbench-cell", "data-cell": "b2", role: "region", "aria-label": labels.b2, children: b2 })), _jsx("main", { className: "newtone-workbench-cell", "data-cell": "c2", children: _jsxs("div", { className: "newtone-workbench-screen", "data-newtone-surface": "", "data-newtone-elevation": "deep", children: [c2, corner ? _jsx(Glass, { className: "newtone-workbench-corner", children: corner }) : null] }) }), _jsxs("aside", { className: "newtone-workbench-cell", "data-cell": "d2", "data-foot": d2Foot ? '' : undefined, "aria-label": labels.d2, children: [d2, d2Foot ? _jsx(Glass, { className: "newtone-workbench-foot", children: d2Foot }) : null] })] }));
10
+ function WorkbenchRoot({ a1, b1, c1, c1End, d1, d1End, a2, b2, b2Head, b2Foot, c2, d2, d2Foot, folded, corner, dock, dockEnd, labels = {}, className }) {
11
+ return (_jsxs("div", { className: ['newtone-workbench', className].filter(Boolean).join(' '), "data-newtone-surface": "", "data-newtone-elevation": "base", "data-newtone-workbench-folded": folded ? '' : undefined, children: [_jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "abc1", children: [a1 ? _jsx("span", { className: "newtone-workbench-home", children: a1 }) : null, b1, b1 && c1 ? _jsx(AppFrameDivider, {}) : null, c1, c1End ? _jsx("div", { className: "newtone-workbench-end", children: c1End }) : null] }), _jsx("span", { className: "newtone-workbench-seam", "aria-hidden": "true" }), _jsxs("div", { className: "newtone-workbench-cell newtone-workbench-top", "data-cell": "d1", children: [d1, d1End ? _jsx("div", { className: "newtone-workbench-end", children: d1End }) : null] }), _jsx("nav", { className: "newtone-workbench-cell", "data-cell": "a2", "aria-label": labels.a2, children: a2 }), folded ? null : b2Foot || b2Head ? (_jsxs("div", { className: "newtone-workbench-cell", "data-cell": "b2", "data-foot": b2Foot ? '' : undefined, "data-head": b2Head ? '' : undefined, role: "region", "aria-label": labels.b2, children: [_jsx("div", { className: "newtone-workbench-scroll", children: b2 }), b2Head ? _jsx(Glass, { className: "newtone-workbench-head", children: b2Head }) : null, b2Foot ? _jsx(Glass, { className: "newtone-workbench-foot", children: b2Foot }) : null] })) : (_jsx("div", { className: "newtone-workbench-cell", "data-cell": "b2", role: "region", "aria-label": labels.b2, children: b2 })), _jsx("main", { className: "newtone-workbench-cell", "data-cell": "c2", children: _jsxs("div", { className: "newtone-workbench-screen", "data-newtone-surface": "", "data-newtone-elevation": "deep", "data-dock": dock || dockEnd ? '' : undefined, children: [c2, dock || dockEnd ? (_jsxs(Glass, { className: "newtone-workbench-dock", children: [dock, dockEnd ? _jsx("div", { className: "newtone-workbench-dock-end", children: dockEnd }) : null] })) : null, corner ? _jsx(Glass, { className: "newtone-workbench-corner", children: corner }) : null] }) }), _jsxs("aside", { className: "newtone-workbench-cell", "data-cell": "d2", "data-foot": d2Foot ? '' : undefined, "aria-label": labels.d2, children: [d2, d2Foot ? _jsx(Glass, { className: "newtone-workbench-foot", children: d2Foot }) : null] })] }));
12
12
  }
13
+ /**
14
+ * A page on C2's deep screen (2026-11-14, HuevOS's Style Book: palettes, forms): it scrolls on its own, its content
15
+ * centered in a reading column (`wide`: 72rem, else 48rem), as a slide is centered on the screen. For anything that is
16
+ * not a canvas.
17
+ */
18
+ function WorkbenchPage({ wide = false, fill = false, label, children }) {
19
+ return (_jsx("div", { className: "newtone-workbench-page", role: label ? 'region' : undefined, "aria-label": label, children: _jsx("div", { className: "newtone-workbench-page-column", "data-wide": wide ? '' : undefined, "data-fill": fill ? '' : undefined, children: children }) }));
20
+ }
21
+ export const Workbench = Object.assign(WorkbenchRoot, { Page: WorkbenchPage });
13
22
  //# sourceMappingURL=workbench.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workbench.js","sourceRoot":"","sources":["../../src/workbench/workbench.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAGZ,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzD,oHAAoH;AACpH,2HAA2H;AAC3H,SAAS,KAAK,CAAC,EAAE,SAAS,EAAE,QAAQ,EAA8C;IAC9E,OAAO,CACH,cAAK,SAAS,EAAE,SAAS,2BAAw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,EAAE,aAAa,EAAE,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtone-dev/ui-react-web",
3
- "version": "0.45.0",
3
+ "version": "0.46.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -286,6 +286,10 @@
286
286
  "types": "./dist/dot/index.d.ts",
287
287
  "default": "./dist/dot/index.js"
288
288
  },
289
+ "./dynamic-range": {
290
+ "types": "./dist/dynamic-range/index.d.ts",
291
+ "default": "./dist/dynamic-range/index.js"
292
+ },
289
293
  "./edged": {
290
294
  "types": "./dist/edged/index.d.ts",
291
295
  "default": "./dist/edged/index.js"
@@ -358,9 +362,17 @@
358
362
  "types": "./dist/seed-roundness-field/index.d.ts",
359
363
  "default": "./dist/seed-roundness-field/index.js"
360
364
  },
361
- "./seed-dark-limit-field": {
362
- "types": "./dist/seed-dark-limit-field/index.d.ts",
363
- "default": "./dist/seed-dark-limit-field/index.js"
365
+ "./seed-contrast-field": {
366
+ "types": "./dist/seed-contrast-field/index.d.ts",
367
+ "default": "./dist/seed-contrast-field/index.js"
368
+ },
369
+ "./curve-field": {
370
+ "types": "./dist/curve-field/index.d.ts",
371
+ "default": "./dist/curve-field/index.js"
372
+ },
373
+ "./step-strip": {
374
+ "types": "./dist/step-strip/index.d.ts",
375
+ "default": "./dist/step-strip/index.js"
364
376
  },
365
377
  "./step-list": {
366
378
  "types": "./dist/step-list/index.d.ts",
@@ -402,6 +414,10 @@
402
414
  "types": "./dist/node-map/index.d.ts",
403
415
  "default": "./dist/node-map/index.js"
404
416
  },
417
+ "./diagram": {
418
+ "types": "./dist/diagram/index.d.ts",
419
+ "default": "./dist/diagram/index.js"
420
+ },
405
421
  "./file-grid": {
406
422
  "types": "./dist/file-grid/index.d.ts",
407
423
  "default": "./dist/file-grid/index.js"
@@ -444,6 +460,7 @@
444
460
  "./faces.css": "./dist/faces/faces.css",
445
461
  "./button.css": "./dist/button/button.css",
446
462
  "./card-box.css": "./dist/card-box/card-box.css",
463
+ "./surface.css": "./dist/surface/surface.css",
447
464
  "./card-grid.css": "./dist/card-grid/card-grid.css",
448
465
  "./tooltip.css": "./dist/tooltip/tooltip.css",
449
466
  "./control.css": "./dist/control/control.css",
@@ -509,6 +526,7 @@
509
526
  "./thread.css": "./dist/thread/thread.css",
510
527
  "./beside.css": "./dist/beside/beside.css",
511
528
  "./dot.css": "./dist/dot/dot.css",
529
+ "./dynamic-range.css": "./dist/dynamic-range/dynamic-range.css",
512
530
  "./edged.css": "./dist/edged/edged.css",
513
531
  "./divided.css": "./dist/divided/divided.css",
514
532
  "./gate.css": "./dist/gate/gate.css",
@@ -527,7 +545,9 @@
527
545
  "./seed-color-field.css": "./dist/seed-color-field/seed-color-field.css",
528
546
  "./font-picker.css": "./dist/font-picker/font-picker.css",
529
547
  "./seed-roundness-field.css": "./dist/seed-roundness-field/seed-roundness-field.css",
530
- "./seed-dark-limit-field.css": "./dist/seed-dark-limit-field/seed-dark-limit-field.css",
548
+ "./seed-contrast-field.css": "./dist/seed-contrast-field/seed-contrast-field.css",
549
+ "./curve-field.css": "./dist/curve-field/curve-field.css",
550
+ "./step-strip.css": "./dist/step-strip/step-strip.css",
531
551
  "./step-list.css": "./dist/step-list/step-list.css",
532
552
  "./suggestion.css": "./dist/suggestion/suggestion.css",
533
553
  "./discover.css": "./dist/discover/discover.css",
@@ -538,6 +558,7 @@
538
558
  "./color-field.css": "./dist/color-field/color-field.css",
539
559
  "./number-field.css": "./dist/number-field/number-field.css",
540
560
  "./node-map.css": "./dist/node-map/node-map.css",
561
+ "./diagram.css": "./dist/diagram/diagram.css",
541
562
  "./file-grid.css": "./dist/file-grid/file-grid.css",
542
563
  "./crumbs.css": "./dist/crumbs/crumbs.css",
543
564
  "./drop-zone.css": "./dist/drop-zone/drop-zone.css",
@@ -549,6 +570,7 @@
549
570
  "./text-diff.css": "./dist/text-diff/text-diff.css"
550
571
  },
551
572
  "peerDependencies": {
573
+ "@newtone-dev/ui-tokens": ">=0.47.0 <1",
552
574
  "react": "^18 || ^19"
553
575
  },
554
576
  "scripts": {
@@ -1,20 +0,0 @@
1
- import type { Oklch, Gamut } from './oklch.js';
2
- /**
3
- * The largest chroma that fits, at this lightness and hue, in this gamut. Section 6.6.
4
- *
5
- * `0.5` is above the largest chroma any real hue reaches in either gamut, so it is a safe
6
- * upper bracket, and the early return costs one check and saves twenty. The endpoints
7
- * return 0 because the gamut narrows to a point at black and white -- which is what pins
8
- * step 0 to pure white.
9
- */
10
- export declare function maxChroma(lightness: number, hue: number, gamut: Gamut): number;
11
- /**
12
- * The colour at a lightness on a palette's vector. Section 6.6.
13
- *
14
- * The ratio is applied against the P3 ceiling and then clamped to the target gamut, so a
15
- * colour that fits inside sRGB is the SAME colour on both -- `min` is a no-op until P3 is
16
- * genuinely wider. This is a ceiling, not a mapping: nothing overflows, so there is
17
- * nothing to map back down, and L and H are preserved by construction.
18
- */
19
- export declare function colorAt(hue: number, chroma: number, gamut: Gamut, lightness: number): Oklch;
20
- //# sourceMappingURL=gamut.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gamut.d.ts","sourceRoot":"","sources":["../../src/color/gamut.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAK,MAAM,YAAY,CAAA;AAkCjD;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,CAiB9E;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,KAAK,CAM3F"}