@newtone-dev/ui-react-web 0.44.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 (300) hide show
  1. package/README.md +5 -3
  2. package/dist/app-frame/app-frame.css +77 -25
  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/main-menu/main-menu.js +5 -1
  13. package/dist/app-frame/main-menu/main-menu.js.map +1 -1
  14. package/dist/app-frame/parts.d.ts +26 -1
  15. package/dist/app-frame/parts.d.ts.map +1 -1
  16. package/dist/app-frame/parts.js +17 -3
  17. package/dist/app-frame/parts.js.map +1 -1
  18. package/dist/ask-button/ask-button.css +7 -1
  19. package/dist/beside/beside.css +4 -0
  20. package/dist/button/button.css +14 -4
  21. package/dist/button/button.d.ts +12 -1
  22. package/dist/button/button.d.ts.map +1 -1
  23. package/dist/button/button.js +49 -3
  24. package/dist/button/button.js.map +1 -1
  25. package/dist/canvas/canvas.css +20 -5
  26. package/dist/canvas/cells/cells.d.ts +12 -1
  27. package/dist/canvas/cells/cells.d.ts.map +1 -1
  28. package/dist/canvas/cells/cells.js +16 -2
  29. package/dist/canvas/cells/cells.js.map +1 -1
  30. package/dist/canvas/cells/grid.d.ts +8 -2
  31. package/dist/canvas/cells/grid.d.ts.map +1 -1
  32. package/dist/canvas/cells/grid.js +8 -5
  33. package/dist/canvas/cells/grid.js.map +1 -1
  34. package/dist/canvas/dock/dock.d.ts +2 -2
  35. package/dist/canvas/dock/dock.js +2 -2
  36. package/dist/canvas/dock/dock.js.map +1 -1
  37. package/dist/card-box/card-box.css +8 -2
  38. package/dist/card-box/card-box.d.ts.map +1 -1
  39. package/dist/card-box/card-box.js +1 -1
  40. package/dist/card-box/card-box.js.map +1 -1
  41. package/dist/color/index.d.ts +4 -4
  42. package/dist/color/index.d.ts.map +1 -1
  43. package/dist/color/index.js +17 -15
  44. package/dist/color/index.js.map +1 -1
  45. package/dist/color/oklch.d.ts +6 -27
  46. package/dist/color/oklch.d.ts.map +1 -1
  47. package/dist/color/oklch.js +23 -61
  48. package/dist/color/oklch.js.map +1 -1
  49. package/dist/color/scale.d.ts +3 -18
  50. package/dist/color/scale.d.ts.map +1 -1
  51. package/dist/color/scale.js +13 -70
  52. package/dist/color/scale.js.map +1 -1
  53. package/dist/color/seeds.d.ts +51 -11
  54. package/dist/color/seeds.d.ts.map +1 -1
  55. package/dist/color/seeds.js +127 -41
  56. package/dist/color/seeds.js.map +1 -1
  57. package/dist/curve-field/curve-field.css +280 -0
  58. package/dist/curve-field/curve-field.d.ts +105 -0
  59. package/dist/curve-field/curve-field.d.ts.map +1 -0
  60. package/dist/curve-field/curve-field.js +532 -0
  61. package/dist/curve-field/curve-field.js.map +1 -0
  62. package/dist/curve-field/index.d.ts +3 -0
  63. package/dist/curve-field/index.d.ts.map +1 -0
  64. package/dist/curve-field/index.js +2 -0
  65. package/dist/curve-field/index.js.map +1 -0
  66. package/dist/diagram/diagram.css +63 -0
  67. package/dist/diagram/diagram.d.ts +63 -0
  68. package/dist/diagram/diagram.d.ts.map +1 -0
  69. package/dist/diagram/diagram.js +73 -0
  70. package/dist/diagram/diagram.js.map +1 -0
  71. package/dist/diagram/geometry.d.ts +60 -0
  72. package/dist/diagram/geometry.d.ts.map +1 -0
  73. package/dist/diagram/geometry.js +93 -0
  74. package/dist/diagram/geometry.js.map +1 -0
  75. package/dist/diagram/index.d.ts +7 -0
  76. package/dist/diagram/index.d.ts.map +1 -0
  77. package/dist/diagram/index.js +4 -0
  78. package/dist/diagram/index.js.map +1 -0
  79. package/dist/diagram/layout.d.ts +41 -0
  80. package/dist/diagram/layout.d.ts.map +1 -0
  81. package/dist/diagram/layout.js +157 -0
  82. package/dist/diagram/layout.js.map +1 -0
  83. package/dist/document/document.d.ts +7 -2
  84. package/dist/document/document.d.ts.map +1 -1
  85. package/dist/document/document.js +22 -4
  86. package/dist/document/document.js.map +1 -1
  87. package/dist/dynamic-range/dynamic-range.css +100 -0
  88. package/dist/dynamic-range/dynamic-range.d.ts +27 -0
  89. package/dist/dynamic-range/dynamic-range.d.ts.map +1 -0
  90. package/dist/dynamic-range/dynamic-range.js +20 -0
  91. package/dist/dynamic-range/dynamic-range.js.map +1 -0
  92. package/dist/dynamic-range/index.d.ts +3 -0
  93. package/dist/dynamic-range/index.d.ts.map +1 -0
  94. package/dist/dynamic-range/index.js +2 -0
  95. package/dist/dynamic-range/index.js.map +1 -0
  96. package/dist/file-grid/file-grid.css +65 -0
  97. package/dist/file-grid/file-grid.d.ts +35 -2
  98. package/dist/file-grid/file-grid.d.ts.map +1 -1
  99. package/dist/file-grid/file-grid.js +64 -3
  100. package/dist/file-grid/file-grid.js.map +1 -1
  101. package/dist/file-grid/index.d.ts +2 -2
  102. package/dist/file-grid/index.d.ts.map +1 -1
  103. package/dist/file-grid/index.js +1 -1
  104. package/dist/file-grid/index.js.map +1 -1
  105. package/dist/floating-bar/floating-bar.css +122 -32
  106. package/dist/floating-bar/floating-bar.d.ts +21 -2
  107. package/dist/floating-bar/floating-bar.d.ts.map +1 -1
  108. package/dist/floating-bar/floating-bar.js +64 -20
  109. package/dist/floating-bar/floating-bar.js.map +1 -1
  110. package/dist/floating-bar/index.d.ts +1 -1
  111. package/dist/floating-bar/index.d.ts.map +1 -1
  112. package/dist/font-picker/font-picker.css +4 -2
  113. package/dist/font-picker/font-picker.d.ts +34 -4
  114. package/dist/font-picker/font-picker.d.ts.map +1 -1
  115. package/dist/font-picker/font-picker.js +45 -9
  116. package/dist/font-picker/font-picker.js.map +1 -1
  117. package/dist/font-picker/index.d.ts +2 -2
  118. package/dist/font-picker/index.d.ts.map +1 -1
  119. package/dist/font-picker/index.js +1 -1
  120. package/dist/font-picker/index.js.map +1 -1
  121. package/dist/hint/hint.css +2 -6
  122. package/dist/icon/glyphs.d.ts +18 -0
  123. package/dist/icon/glyphs.d.ts.map +1 -0
  124. package/dist/icon/glyphs.js +17 -0
  125. package/dist/icon/glyphs.js.map +1 -0
  126. package/dist/icon/index.d.ts +2 -0
  127. package/dist/icon/index.d.ts.map +1 -1
  128. package/dist/icon/index.js +1 -0
  129. package/dist/icon/index.js.map +1 -1
  130. package/dist/identity/identity.d.ts +11 -3
  131. package/dist/identity/identity.d.ts.map +1 -1
  132. package/dist/identity/identity.js +8 -4
  133. package/dist/identity/identity.js.map +1 -1
  134. package/dist/index.d.ts +33 -17
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +11 -3
  137. package/dist/index.js.map +1 -1
  138. package/dist/inspector/index.d.ts +1 -1
  139. package/dist/inspector/index.d.ts.map +1 -1
  140. package/dist/inspector/inspector.css +368 -7
  141. package/dist/inspector/inspector.d.ts +182 -5
  142. package/dist/inspector/inspector.d.ts.map +1 -1
  143. package/dist/inspector/inspector.js +85 -7
  144. package/dist/inspector/inspector.js.map +1 -1
  145. package/dist/look-picker/look-picker.css +62 -2
  146. package/dist/look-picker/look-picker.d.ts +34 -2
  147. package/dist/look-picker/look-picker.d.ts.map +1 -1
  148. package/dist/look-picker/look-picker.js +51 -42
  149. package/dist/look-picker/look-picker.js.map +1 -1
  150. package/dist/material/material.css +128 -57
  151. package/dist/number-field/number-field.css +34 -0
  152. package/dist/number-field/number-field.d.ts +29 -3
  153. package/dist/number-field/number-field.d.ts.map +1 -1
  154. package/dist/number-field/number-field.js +61 -10
  155. package/dist/number-field/number-field.js.map +1 -1
  156. package/dist/page-editor/page-editor.css +2 -6
  157. package/dist/picker/picker.css +42 -0
  158. package/dist/picker/picker.d.ts +10 -1
  159. package/dist/picker/picker.d.ts.map +1 -1
  160. package/dist/picker/picker.js +40 -5
  161. package/dist/picker/picker.js.map +1 -1
  162. package/dist/pop-menu/index.d.ts +7 -0
  163. package/dist/pop-menu/index.d.ts.map +1 -0
  164. package/dist/pop-menu/index.js +6 -0
  165. package/dist/pop-menu/index.js.map +1 -0
  166. package/dist/{floating-bar/menu.d.ts → pop-menu/pop-menu.d.ts} +10 -2
  167. package/dist/pop-menu/pop-menu.d.ts.map +1 -0
  168. package/dist/{floating-bar/menu.js → pop-menu/pop-menu.js} +35 -12
  169. package/dist/pop-menu/pop-menu.js.map +1 -0
  170. package/dist/prompt-field/prompt-field.css +3 -3
  171. package/dist/prompt-field/prompt-field.d.ts +3 -3
  172. package/dist/prompt-field/prompt-field.d.ts.map +1 -1
  173. package/dist/prompt-field/prompt-field.js +10 -4
  174. package/dist/prompt-field/prompt-field.js.map +1 -1
  175. package/dist/quick-action/quick-action.css +1 -1
  176. package/dist/seed-color-field/seed-color-field.css +8 -10
  177. package/dist/seed-color-field/seed-color-field.d.ts +9 -0
  178. package/dist/seed-color-field/seed-color-field.d.ts.map +1 -1
  179. package/dist/seed-color-field/seed-color-field.js +37 -10
  180. package/dist/seed-color-field/seed-color-field.js.map +1 -1
  181. package/dist/seed-contrast-field/index.d.ts +5 -0
  182. package/dist/seed-contrast-field/index.d.ts.map +1 -0
  183. package/dist/seed-contrast-field/index.js +3 -0
  184. package/dist/seed-contrast-field/index.js.map +1 -0
  185. package/dist/seed-contrast-field/seed-contrast-field.css +11 -0
  186. package/dist/seed-contrast-field/seed-contrast-field.d.ts +36 -0
  187. package/dist/seed-contrast-field/seed-contrast-field.d.ts.map +1 -0
  188. package/dist/seed-contrast-field/seed-contrast-field.js +18 -0
  189. package/dist/seed-contrast-field/seed-contrast-field.js.map +1 -0
  190. package/dist/seed-contrast-field/seed-contrast-slider.css +112 -0
  191. package/dist/seed-contrast-field/seed-contrast-slider.d.ts +22 -0
  192. package/dist/seed-contrast-field/seed-contrast-slider.d.ts.map +1 -0
  193. package/dist/seed-contrast-field/seed-contrast-slider.js +75 -0
  194. package/dist/seed-contrast-field/seed-contrast-slider.js.map +1 -0
  195. package/dist/seed-roundness-field/index.d.ts +3 -0
  196. package/dist/seed-roundness-field/index.d.ts.map +1 -0
  197. package/dist/seed-roundness-field/index.js +2 -0
  198. package/dist/seed-roundness-field/index.js.map +1 -0
  199. package/dist/seed-roundness-field/seed-roundness-field.css +23 -0
  200. package/dist/seed-roundness-field/seed-roundness-field.d.ts +39 -0
  201. package/dist/seed-roundness-field/seed-roundness-field.d.ts.map +1 -0
  202. package/dist/seed-roundness-field/seed-roundness-field.js +15 -0
  203. package/dist/seed-roundness-field/seed-roundness-field.js.map +1 -0
  204. package/dist/seed-steps/index.d.ts +8 -0
  205. package/dist/seed-steps/index.d.ts.map +1 -0
  206. package/dist/seed-steps/index.js +7 -0
  207. package/dist/seed-steps/index.js.map +1 -0
  208. package/dist/seed-steps/reset-focus.d.ts +16 -0
  209. package/dist/seed-steps/reset-focus.d.ts.map +1 -0
  210. package/dist/seed-steps/reset-focus.js +53 -0
  211. package/dist/seed-steps/reset-focus.js.map +1 -0
  212. package/dist/seed-steps/seed-steps.css +83 -0
  213. package/dist/seed-steps/seed-steps.d.ts +47 -0
  214. package/dist/seed-steps/seed-steps.d.ts.map +1 -0
  215. package/dist/seed-steps/seed-steps.js +95 -0
  216. package/dist/seed-steps/seed-steps.js.map +1 -0
  217. package/dist/shell/shell.css +31 -33
  218. package/dist/slide-list/slide-list.css +23 -2
  219. package/dist/slide-list/slide-list.d.ts +11 -2
  220. package/dist/slide-list/slide-list.d.ts.map +1 -1
  221. package/dist/slide-list/slide-list.js +6 -6
  222. package/dist/slide-list/slide-list.js.map +1 -1
  223. package/dist/split/split.css +11 -8
  224. package/dist/split/split.d.ts +2 -0
  225. package/dist/split/split.d.ts.map +1 -1
  226. package/dist/split/split.js +21 -3
  227. package/dist/split/split.js.map +1 -1
  228. package/dist/stage/stage.d.ts +11 -4
  229. package/dist/stage/stage.d.ts.map +1 -1
  230. package/dist/stage/stage.js +30 -9
  231. package/dist/stage/stage.js.map +1 -1
  232. package/dist/step-list/index.d.ts +3 -0
  233. package/dist/step-list/index.d.ts.map +1 -0
  234. package/dist/step-list/index.js +2 -0
  235. package/dist/step-list/index.js.map +1 -0
  236. package/dist/step-list/step-list.css +224 -0
  237. package/dist/step-list/step-list.d.ts +211 -0
  238. package/dist/step-list/step-list.d.ts.map +1 -0
  239. package/dist/step-list/step-list.js +242 -0
  240. package/dist/step-list/step-list.js.map +1 -0
  241. package/dist/step-strip/index.d.ts +3 -0
  242. package/dist/step-strip/index.d.ts.map +1 -0
  243. package/dist/step-strip/index.js +2 -0
  244. package/dist/step-strip/index.js.map +1 -0
  245. package/dist/step-strip/step-strip.css +118 -0
  246. package/dist/step-strip/step-strip.d.ts +52 -0
  247. package/dist/step-strip/step-strip.d.ts.map +1 -0
  248. package/dist/step-strip/step-strip.js +47 -0
  249. package/dist/step-strip/step-strip.js.map +1 -0
  250. package/dist/suggestion/index.d.ts +3 -0
  251. package/dist/suggestion/index.d.ts.map +1 -0
  252. package/dist/suggestion/index.js +2 -0
  253. package/dist/suggestion/index.js.map +1 -0
  254. package/dist/suggestion/suggestion.css +45 -0
  255. package/dist/suggestion/suggestion.d.ts +23 -0
  256. package/dist/suggestion/suggestion.d.ts.map +1 -0
  257. package/dist/suggestion/suggestion.js +45 -0
  258. package/dist/suggestion/suggestion.js.map +1 -0
  259. package/dist/surface/surface.css +112 -0
  260. package/dist/switch/switch.css +1 -6
  261. package/dist/text-field/text-field.css +11 -2
  262. package/dist/thread/thread.css +2 -10
  263. package/dist/thread/thread.js +1 -1
  264. package/dist/thread/thread.js.map +1 -1
  265. package/dist/tile-picker/index.d.ts +1 -1
  266. package/dist/tile-picker/index.d.ts.map +1 -1
  267. package/dist/tile-picker/tile-picker.css +56 -10
  268. package/dist/tile-picker/tile-picker.d.ts +64 -7
  269. package/dist/tile-picker/tile-picker.d.ts.map +1 -1
  270. package/dist/tile-picker/tile-picker.js +79 -47
  271. package/dist/tile-picker/tile-picker.js.map +1 -1
  272. package/dist/tile-search/index.d.ts +7 -0
  273. package/dist/tile-search/index.d.ts.map +1 -0
  274. package/dist/tile-search/index.js +7 -0
  275. package/dist/tile-search/index.js.map +1 -0
  276. package/dist/tile-search/narrow.d.ts +22 -0
  277. package/dist/tile-search/narrow.d.ts.map +1 -0
  278. package/dist/tile-search/narrow.js +62 -0
  279. package/dist/tile-search/narrow.js.map +1 -0
  280. package/dist/tile-search/search-box.d.ts +19 -0
  281. package/dist/tile-search/search-box.d.ts.map +1 -0
  282. package/dist/tile-search/search-box.js +47 -0
  283. package/dist/tile-search/search-box.js.map +1 -0
  284. package/dist/tooltip/tooltip.css +13 -20
  285. package/dist/tooltip/tooltip.d.ts +2 -2
  286. package/dist/tooltip/tooltip.d.ts.map +1 -1
  287. package/dist/tooltip/tooltip.js +15 -2
  288. package/dist/tooltip/tooltip.js.map +1 -1
  289. package/dist/workbench/workbench.css +128 -4
  290. package/dist/workbench/workbench.d.ts +28 -1
  291. package/dist/workbench/workbench.d.ts.map +1 -1
  292. package/dist/workbench/workbench.js +13 -4
  293. package/dist/workbench/workbench.js.map +1 -1
  294. package/package.json +43 -1
  295. package/dist/color/gamut.d.ts +0 -20
  296. package/dist/color/gamut.d.ts.map +0 -1
  297. package/dist/color/gamut.js +0 -72
  298. package/dist/color/gamut.js.map +0 -1
  299. package/dist/floating-bar/menu.d.ts.map +0 -1
  300. package/dist/floating-bar/menu.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /* Material -- blueprint components/material.md, contract contracts/material.md. What a part is made of (Joshua
2
2
  * 2026-11-11): glass, the translucent control layer; crystal, the inset screen content sits on; solid, the default.
3
3
  *
4
- * THIS IS THE ONLY SHEET THAT NAMES `material.*`, `blur.*`, `shadow.close`, `shadow.far` OR `backdrop-filter`
4
+ * THIS IS THE ONLY SHEET THAT NAMES `material.*`, `blur.*`, `shadow.*` OR `backdrop-filter`
5
5
  * (on-media keeps its own vocabulary for photographs). A part never draws glass itself: it wears a recipe class, and
6
6
  * the class does nothing outside a glass boundary.
7
7
  *
@@ -30,51 +30,82 @@
30
30
  display: block;
31
31
  }
32
32
 
33
- /* The shadows, cast in black (material.cast, Joshua 2026-11-11), so they read as shadows in dark mode too, where the
34
- * ink-tinted `raised` read as a glow. Written where a boundary is, and inherited.
35
- * close the contact (y1 b2 s1 at 10%) under the ambient (y2 b4 s2 at 5%): the bars' and the slide's
36
- * far y12 b32 at 12%: what a menu adds, standing further off */
33
+ /* The shadows, three steps (Joshua 2026-11-11), each a contact under an ambient, cast in black (material.cast) so they
34
+ * read as shadows in dark mode too. Composed here, the only sheet that names shadow.*, written wherever a surface or a
35
+ * boundary is (so the cast colour is that scope's) and inherited. Every part that casts one wears one of these:
36
+ * low y1 b2 s1 at 10% under y2 b4 s2 at 5%: the slide, the bars and tools, a switch's knob, a card on a page
37
+ * medium y2 b4 s2 at 10% under y3 b6 s3 at 5%: the primary navigation opened over what is beside it
38
+ * high y3 b6 s3 at 10% under y4 b8 s4 at 5%: menus, modals, tooltips, hints, popovers, what is being dragged
39
+ * `--_shadow-low-contact` is low's contact alone: a raised tool pressed, sitting down. */
40
+ :root,
41
+ [data-newtone-surface],
37
42
  [data-newtone-material],
38
43
  .newtone-material-cast-close {
39
- --_material-contact: 0 var(--newtone-shadow-close-contact-y) var(--newtone-shadow-close-contact-blur) var(--newtone-shadow-close-contact-spread)
40
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-close-strength-contact), transparent);
41
- --_material-close:
42
- 0 var(--newtone-shadow-close-ambient-y) var(--newtone-shadow-close-ambient-blur) var(--newtone-shadow-close-ambient-spread)
43
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-close-strength-ambient), transparent),
44
- var(--_material-contact);
45
- --_material-far: 0 var(--newtone-shadow-far-ambient-y) var(--newtone-shadow-far-ambient-blur) var(--newtone-shadow-far-ambient-spread)
46
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-far-strength-ambient), transparent);
44
+ --_shadow-low-contact: 0 var(--newtone-shadow-low-contact-y) var(--newtone-shadow-low-contact-blur) var(--newtone-shadow-low-contact-spread)
45
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-low-strength-contact), transparent);
46
+ --_shadow-low:
47
+ 0 var(--newtone-shadow-low-ambient-y) var(--newtone-shadow-low-ambient-blur) var(--newtone-shadow-low-ambient-spread)
48
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-low-strength-ambient), transparent),
49
+ var(--_shadow-low-contact);
50
+ --_shadow-medium:
51
+ 0 var(--newtone-shadow-medium-ambient-y) var(--newtone-shadow-medium-ambient-blur) var(--newtone-shadow-medium-ambient-spread)
52
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-medium-strength-ambient), transparent),
53
+ 0 var(--newtone-shadow-medium-contact-y) var(--newtone-shadow-medium-contact-blur) var(--newtone-shadow-medium-contact-spread)
54
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-medium-strength-contact), transparent);
55
+ --_shadow-high:
56
+ 0 var(--newtone-shadow-high-ambient-y) var(--newtone-shadow-high-ambient-blur) var(--newtone-shadow-high-ambient-spread)
57
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-high-strength-ambient), transparent),
58
+ 0 var(--newtone-shadow-high-contact-y) var(--newtone-shadow-high-contact-blur) var(--newtone-shadow-high-contact-spread)
59
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-high-strength-contact), transparent);
47
60
  --_material-lit: linear-gradient(180deg, var(--newtone-material-edge-top-border), var(--newtone-material-edge-foot-border));
48
61
  }
49
- /* The close shadow for a solid part that stands off what it is on (Canvas.Frame `card`, the slide; Joshua 2026-11-09). */
62
+ /* The slide (Canvas.Frame `card`) stands off what it is on: low (Joshua 2026-11-11). */
50
63
  .newtone-material-cast-close {
51
- box-shadow: var(--_material-close);
64
+ box-shadow: var(--_shadow-low);
52
65
  }
53
- /* Solid parts that stand off what they are on, cast here because this is the only sheet that names the close and far
54
- * shadows (Joshua 2026-11-11: every shadow from one place). Their own sheets keep everything else and point here. */
55
- .newtone-split-rail-list[data-expand='hover']:is(:hover, :has(:focus-visible)),
56
- .newtone-slide-list-ghost {
57
- --_material-contact: 0 var(--newtone-shadow-close-contact-y) var(--newtone-shadow-close-contact-blur) var(--newtone-shadow-close-contact-spread)
58
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-close-strength-contact), transparent);
59
- --_material-close:
60
- 0 var(--newtone-shadow-close-ambient-y) var(--newtone-shadow-close-ambient-blur) var(--newtone-shadow-close-ambient-spread)
61
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-close-strength-ambient), transparent),
62
- var(--_material-contact);
63
- --_material-far: 0 var(--newtone-shadow-far-ambient-y) var(--newtone-shadow-far-ambient-blur) var(--newtone-shadow-far-ambient-spread)
64
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-far-strength-ambient), transparent);
66
+ /* The slide as a card floating over the main area (Joshua 2026-11-11): the low shadow above, and the lit edge, light
67
+ * at the top to dark at the foot, as a 1px ring over the slide's own edge. Drawn on its own layer so the ring's mask
68
+ * never clips the shadow. */
69
+ .newtone-canvas-frame-shadow.newtone-material-cast-close::after {
70
+ content: '';
71
+ position: absolute;
72
+ inset: 0;
73
+ padding: 1px;
74
+ border-radius: inherit;
75
+ background: var(--_material-lit) border-box;
76
+ mask:
77
+ linear-gradient(#000 0 0) content-box exclude,
78
+ linear-gradient(#000 0 0);
79
+ pointer-events: none;
65
80
  }
66
- /* The widened rail: its divider's hairline just outside it, then the close shadow (was twice close, hand-drawn). */
67
- .newtone-split-rail-list[data-expand='hover']:is(:hover, :has(:focus-visible)) {
81
+ /* The widened rail: its divider's hairline just outside it, then the medium shadow (Joshua 2026-11-11). It is
82
+ * glass while open (Joshua 2026-11-11): the menu's recipe, its rows of words over the slides passing under it, so the
83
+ * thick frost (glass.thick, blur.thick) and the thick glass's veils for a row pointed at or current. Narrow it is solid. */
84
+ .newtone-split-rail-list[data-expand='hover']:is(:hover, :has(:focus-visible)):not([data-shut]) {
68
85
  box-shadow:
69
86
  1px 0 0 0 var(--newtone-role-divider-secondary),
70
- var(--_material-close);
87
+ var(--_shadow-medium);
88
+ background: var(--newtone-material-glass-thick-fill);
89
+ -webkit-backdrop-filter: blur(var(--newtone-blur-thick));
90
+ backdrop-filter: blur(var(--newtone-blur-thick));
91
+ color: var(--newtone-material-glass-thick-text);
92
+ }
93
+ .newtone-split-rail-list[data-expand='hover']:is(:hover, :has(:focus-visible)):not([data-shut]) .newtone-split-rail-divider {
94
+ background: var(--newtone-material-glass-thick-divider-border);
95
+ }
96
+ .newtone-split-rail-list[data-expand='hover']:is(:hover, :has(:focus-visible)):not([data-shut]) .newtone-split-rail-item:hover {
97
+ background: var(--newtone-material-glass-thick-item-hover-fill);
98
+ color: var(--newtone-material-glass-thick-text);
99
+ }
100
+ .newtone-split-rail-list[data-expand='hover']:is(:hover, :has(:focus-visible)):not([data-shut]) .newtone-split-rail-item[aria-pressed='true'] {
101
+ background: var(--newtone-material-glass-thick-item-pressed-fill);
102
+ color: var(--newtone-material-glass-thick-text);
71
103
  }
72
- /* A slide or section being dragged: the accent ring, then close + far, as a menu stands (was 0 4px 12px 15%). */
104
+ /* A slide or section being dragged: the accent ring, then high, as a menu stands (Joshua 2026-11-11). */
73
105
  .newtone-slide-list-ghost:is([data-what='slide'], [data-what='section']) {
74
106
  box-shadow:
75
107
  0 0 0 2px var(--newtone-role-text-accent),
76
- var(--_material-close),
77
- var(--_material-far);
108
+ var(--_shadow-high);
78
109
  }
79
110
 
80
111
  /* ---- Glass ---------------------------------------------------------------------------------------------------- */
@@ -88,8 +119,9 @@
88
119
  }
89
120
 
90
121
  /* The recipe, once. A Button or Action `primary` wears the raised form without a class: both stay server
91
- * components, and the boundary reaches them. */
92
- :where(:scope, *):is(.newtone-glass--bar, .newtone-glass--menu, .newtone-glass--field, .newtone-glass--action, .newtone-button--primary:not(:disabled), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action) {
122
+ * components, and the boundary reaches them. A disabled Button, native or waiting (`aria-disabled`, 2026-11-13),
123
+ * does not: it keeps button.css's disabled. */
124
+ :where(:scope, *):is(.newtone-glass--bar, .newtone-glass--menu, .newtone-glass--field, .newtone-glass--action, .newtone-button--primary:not(:disabled, [aria-disabled='true']), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action) {
93
125
  --_material-paint: var(--_material-wash);
94
126
  border-color: transparent;
95
127
  background:
@@ -104,7 +136,7 @@
104
136
  --_material-wash: var(--newtone-material-glass-regular-fill);
105
137
  --_material-blur: var(--newtone-blur-regular);
106
138
  --_material-edge: var(--_material-lit);
107
- --_material-shadow: var(--_material-close);
139
+ --_material-shadow: var(--_shadow-low);
108
140
  --_material-ink: var(--newtone-material-glass-regular-text);
109
141
  }
110
142
  /* Rows of words sit on a menu, so its frost is denser than a bar's (Joshua 2026-11-10). */
@@ -112,12 +144,43 @@
112
144
  --_material-wash: var(--newtone-material-glass-thick-fill);
113
145
  --_material-blur: var(--newtone-blur-thick);
114
146
  --_material-edge: var(--_material-lit);
115
- --_material-shadow: var(--_material-close), var(--_material-far);
147
+ --_material-shadow: var(--_shadow-high);
116
148
  --_material-ink: var(--newtone-material-glass-thick-text);
117
149
  --_material-item-ink: var(--newtone-material-glass-thick-text);
118
150
  --_material-item-hover: var(--newtone-material-glass-thick-item-hover-fill);
119
151
  --_material-item-pressed: var(--newtone-material-glass-thick-item-pressed-fill);
120
152
  }
153
+ /* A menu is flat (Joshua 2026-11-11): its wash alone. The lit edge painted under the whole box showed through the
154
+ * translucent wash as the menu darkening to its foot, where a divider is lost; so it is drawn on the edge only.
155
+ * The lit gradient stays the tools' at the bottom (bars, raised actions), so they stand out the more. */
156
+ :where(:scope, *).newtone-glass--menu.newtone-glass--menu {
157
+ border-width: 0;
158
+ background: linear-gradient(var(--_material-paint), var(--_material-paint)) padding-box;
159
+ }
160
+ /* Its outer edge a bezel (Joshua 2026-11-11): the lit edge, light at the top to dark at the foot, as a 1px ring on the
161
+ * border alone, so it never shows through the wash. The menu has no border of its own (its sheet adds the 1px to its
162
+ * padding), so the ring lies on the box's edge and never overflows it into a scrollbar. Its dividers stay solid. */
163
+ :where(:scope, *).newtone-glass--menu.newtone-glass--menu::after {
164
+ content: '';
165
+ position: absolute;
166
+ inset: 0;
167
+ padding: 1px;
168
+ border-radius: inherit;
169
+ background: var(--_material-lit) border-box;
170
+ mask:
171
+ linear-gradient(#000 0 0) content-box exclude,
172
+ linear-gradient(#000 0 0);
173
+ pointer-events: none;
174
+ }
175
+ /* Dividers on the glass (Joshua 2026-11-11): the glass's own, its ink at 10% in light and 15% in dark, so they hold
176
+ * on whatever passes under the wash in either mode; a solid divider colour sank in dark mode. A menu's rows and a
177
+ * bar's gaps on the regular glass; a menu's on the thick. */
178
+ :where(:scope, *) .newtone-floating-bar-gap {
179
+ background: var(--newtone-material-glass-regular-divider-border);
180
+ }
181
+ :where(:scope, *):is(.newtone-glass--menu) :is(.newtone-app-frame-main-menu-row, .newtone-pop-menu-row)[data-divided]::before {
182
+ background: var(--newtone-material-glass-thick-divider-border);
183
+ }
121
184
  /* The words at rest are quieter than pure ink (75%); solid while focused, so what is typed is plain. */
122
185
  :where(:scope, *).newtone-glass--field {
123
186
  --_material-wash: var(--newtone-material-glass-regular-fill);
@@ -131,21 +194,21 @@
131
194
  --_material-blur: 0px;
132
195
  --_material-ink: var(--newtone-role-text-primary);
133
196
  }
134
- :where(:scope, *):is(.newtone-glass--action, .newtone-button--primary:not(:disabled), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action--primary) {
197
+ :where(:scope, *):is(.newtone-glass--action, .newtone-button--primary:not(:disabled, [aria-disabled='true']), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action--primary) {
135
198
  --_material-wash: var(--newtone-material-glass-accent-rest-fill);
136
199
  --_material-blur: var(--newtone-blur-regular);
137
200
  --_material-edge: var(--_material-lit);
138
- --_material-shadow: var(--_material-close);
201
+ --_material-shadow: var(--_shadow-low);
139
202
  --_material-ink: var(--newtone-button-primary-rest-text);
140
203
  }
141
- :where(:scope, *):is(.newtone-glass--action, .newtone-button--primary:not(:disabled), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action--primary):hover {
204
+ :where(:scope, *):is(.newtone-glass--action, .newtone-button--primary:not(:disabled, [aria-disabled='true']), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action--primary):hover {
142
205
  --_material-wash: var(--newtone-material-glass-accent-hover-fill);
143
206
  --_material-ink: var(--newtone-button-primary-hover-text);
144
207
  }
145
208
  /* Pressed, it sits down: the contact shadow only. */
146
- :where(:scope, *):is(.newtone-glass--action, .newtone-button--primary:not(:disabled), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action--primary):is(:active, [aria-pressed='true']) {
209
+ :where(:scope, *):is(.newtone-glass--action, .newtone-button--primary:not(:disabled, [aria-disabled='true']), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action--primary):is(:active, [aria-pressed='true']) {
147
210
  --_material-wash: var(--newtone-material-glass-accent-pressed-fill);
148
- --_material-shadow: var(--_material-contact);
211
+ --_material-shadow: var(--_shadow-low-contact);
149
212
  --_material-ink: var(--newtone-button-primary-pressed-text);
150
213
  }
151
214
 
@@ -155,7 +218,7 @@
155
218
  --_material-wash: var(--newtone-material-glass-regular-fill);
156
219
  --_material-blur: var(--newtone-blur-regular);
157
220
  --_material-edge: var(--_material-lit);
158
- --_material-shadow: var(--_material-close);
221
+ --_material-shadow: var(--_shadow-low);
159
222
  --_material-ink: var(--newtone-material-glass-regular-text);
160
223
  --_material-veil: transparent;
161
224
  background:
@@ -168,7 +231,7 @@
168
231
  }
169
232
  :where(:scope, *).newtone-quick-action:not(.newtone-quick-action--primary):is(:active, [aria-pressed='true']) {
170
233
  --_material-veil: var(--newtone-material-glass-regular-item-pressed-fill);
171
- --_material-shadow: var(--_material-contact);
234
+ --_material-shadow: var(--_shadow-low-contact);
172
235
  }
173
236
 
174
237
  /* A prompt field's hint and its glyphs on the glass: quieter than its words (hint.text, 50%). Focused, it is solid,
@@ -178,19 +241,26 @@
178
241
  color: var(--newtone-material-glass-regular-hint-text);
179
242
  }
180
243
 
181
- /* A quiet button on the glass (Button `secondary` and `tertiary`, Action `secondary`): the glass's ink and veils. */
182
- :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled) {
244
+ /* A quiet button on the glass (Button `secondary` and `tertiary`, Action `secondary`): the glass's ink and veils.
245
+ * Never on a disabled Button, native or waiting (`aria-disabled`, 2026-11-13): it keeps button.css's disabled. The
246
+ * waiting one is left out in a :where, so these rules keep their weight against the rest. */
247
+ :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):not(:where(.newtone-button[aria-disabled='true'])) {
183
248
  color: var(--_material-item-ink);
184
249
  }
185
- :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):hover {
250
+ :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):not(:where(.newtone-button[aria-disabled='true'])):hover {
186
251
  background: var(--_material-item-hover);
187
252
  color: var(--_material-item-ink);
188
253
  }
189
- :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):active {
254
+ :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):not(:where(.newtone-button[aria-disabled='true'])):active {
190
255
  background: var(--_material-item-pressed);
191
256
  color: var(--_material-item-ink);
192
257
  }
193
258
 
259
+ /* FloatingBar.Note on the glass (2026-11-13): the glass's quieter ink, as a prompt field's words at rest. */
260
+ :where(:scope, *).newtone-glass--bar .newtone-floating-bar-note {
261
+ color: var(--newtone-material-glass-regular-rest-text);
262
+ }
263
+
194
264
  /* FloatingBar's tools on the glass: the glass's ink, its veils for hover and press. A tool drawn as a Button
195
265
  * (`variant`) keeps the Button's own colours. */
196
266
  .newtone-floating-bar-tool:not([data-variant]) {
@@ -228,10 +298,11 @@
228
298
  }
229
299
 
230
300
  /* A menu's rows on the glass: the menu's veil under the one pointed at, kept or opened. `danger` keeps its colour. */
231
- .newtone-pop-menu-row:not(:disabled):where(:hover, :focus-visible) {
301
+ .newtone-pop-menu-row:not([aria-disabled='true']):where(:hover, :focus-visible),
302
+ .newtone-pop-menu-row[aria-disabled='true']:where(:focus-visible) {
232
303
  background: var(--_material-item-hover);
233
304
  }
234
- .newtone-pop-menu-row:not(:disabled):where(:active) {
305
+ .newtone-pop-menu-row:not([aria-disabled='true']):where(:active) {
235
306
  background: var(--_material-item-pressed);
236
307
  }
237
308
  .newtone-app-frame-menu-item:is(:hover, :focus-visible),
@@ -245,7 +316,7 @@
245
316
  * the quieter ink goes to pure ink. */
246
317
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
247
318
  @scope ([data-newtone-material='glass']) to ([data-newtone-material]:not([data-newtone-material='glass'])) {
248
- :where(:scope, *):is(.newtone-glass--bar, .newtone-glass--menu, .newtone-glass--field, .newtone-glass--action, .newtone-button--primary:not(:disabled), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action) {
319
+ :where(:scope, *):is(.newtone-glass--bar, .newtone-glass--menu, .newtone-glass--field, .newtone-glass--action, .newtone-button--primary:not(:disabled, [aria-disabled='true']), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action) {
249
320
  --_material-paint: oklch(from var(--_material-wash) l c h / 1);
250
321
  --_material-blur: 0px;
251
322
  }
@@ -253,7 +324,7 @@
253
324
  }
254
325
  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
255
326
  @scope ([data-newtone-material='glass']) to ([data-newtone-material]:not([data-newtone-material='glass'])) {
256
- :where(:scope, *):is(.newtone-glass--bar, .newtone-glass--menu, .newtone-glass--field, .newtone-glass--action, .newtone-button--primary:not(:disabled), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action) {
327
+ :where(:scope, *):is(.newtone-glass--bar, .newtone-glass--menu, .newtone-glass--field, .newtone-glass--action, .newtone-button--primary:not(:disabled, [aria-disabled='true']), .newtone-action:not(.newtone-action--secondary), .newtone-quick-action) {
257
328
  --_material-paint: oklch(from var(--_material-wash) l c h / 1);
258
329
  --_material-blur: 0px;
259
330
  }
@@ -271,7 +342,7 @@
271
342
  /* An inset screen with bezels (Joshua 2026-11-11), what content sits on: Show's slide area. Its ground is the deep
272
343
  * rung's primary surface, what C2 stood on before (a role, so no token of its own; not the secondary: glass mixes
273
344
  * the secondary, so a PromptField on it vanished, Joshua 2026-11-11); its bezel the lit edge reversed, dark at the
274
- * top and light at the foot, so it reads as set in; and the close shadow cast inward, over what is on it.
345
+ * top and light at the foot, so it reads as set in; and the low shadow cast inward, over what is on it.
275
346
  * 1px the bezel
276
347
  * radius.md its corners */
277
348
  [data-newtone-material='crystal'] {
@@ -292,10 +363,10 @@
292
363
  z-index: 4;
293
364
  border-radius: calc(var(--newtone-radius-md) - 1px);
294
365
  box-shadow:
295
- inset 0 var(--newtone-shadow-close-ambient-y) var(--newtone-shadow-close-ambient-blur) var(--newtone-shadow-close-ambient-spread)
296
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-close-strength-ambient), transparent),
297
- inset 0 var(--newtone-shadow-close-contact-y) var(--newtone-shadow-close-contact-blur) var(--newtone-shadow-close-contact-spread)
298
- color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-close-strength-contact), transparent);
366
+ inset 0 var(--newtone-shadow-low-ambient-y) var(--newtone-shadow-low-ambient-blur) var(--newtone-shadow-low-ambient-spread)
367
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-low-strength-ambient), transparent),
368
+ inset 0 var(--newtone-shadow-low-contact-y) var(--newtone-shadow-low-contact-blur) var(--newtone-shadow-low-contact-spread)
369
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-low-strength-contact), transparent);
299
370
  pointer-events: none;
300
371
  }
301
372
  @scope ([data-newtone-material='crystal']) to ([data-newtone-material]:not([data-newtone-material='crystal'])) {
@@ -26,9 +26,21 @@
26
26
  outline: 2px solid var(--newtone-role-text-accent);
27
27
  outline-offset: 1px;
28
28
  }
29
+ /* Disabled, native or waiting (`disabledFocusable`, 2026-11-13: read-only and focusable): drawn alike. The ring above
30
+ * still shows while a waiting field holds the focus. */
29
31
  .newtone-number-field:where([data-disabled]) {
30
32
  color: var(--newtone-role-text-disabled);
31
33
  }
34
+ /* A user agent's own fade on a natively disabled input (WebKit on iOS: its opacity and its text fill) is taken away,
35
+ * in both forms, so the native and the waiting ones are the same pixels, on every device (CHARTER non-negotiable 8).
36
+ * The placeholder keeps its own ink: it says its fill itself rather than take the input's. */
37
+ .newtone-number-field-input:where([data-disabled] *) {
38
+ opacity: 1;
39
+ -webkit-text-fill-color: currentColor;
40
+ }
41
+ .newtone-number-field-icon {
42
+ flex: none;
43
+ }
32
44
  .newtone-number-field-label {
33
45
  flex: none;
34
46
  min-inline-size: 1ch;
@@ -48,15 +60,37 @@
48
60
  font: inherit;
49
61
  outline: none;
50
62
  }
63
+ .newtone-number-field-input:where([data-align='end'] *) {
64
+ text-align: end;
65
+ }
51
66
  .newtone-number-field-input::placeholder {
52
67
  color: var(--newtone-role-text-secondary);
68
+ -webkit-text-fill-color: currentColor;
53
69
  }
54
70
  .newtone-number-field-unit {
55
71
  flex: none;
56
72
  color: var(--newtone-role-text-secondary);
57
73
  }
58
74
 
75
+ /* Disabled, its label does not scrub, so it does not offer to. */
76
+ .newtone-number-field-label:where([data-disabled] *) {
77
+ cursor: default;
78
+ }
79
+
59
80
  /* A value that follows an expression: its label in the accent. */
60
81
  .newtone-number-field-label:where([data-expression] *) {
61
82
  color: var(--newtone-role-text-accent);
62
83
  }
84
+
85
+ /* Disabled, it dims as a whole (Joshua 2026-11-13), native or waiting alike: the label, the icon, the number, its
86
+ * placeholder and the unit all take the disabled ink, where the label, the icon and the unit kept the secondary one
87
+ * (and an expression's label the accent) and read as still usable. Heavier than the inks above and than Icon's tone,
88
+ * so it holds whichever sheet comes last. */
89
+ .newtone-number-field[data-disabled] .newtone-number-field-icon,
90
+ .newtone-number-field[data-disabled] .newtone-number-field-label,
91
+ .newtone-number-field[data-disabled] .newtone-number-field-unit {
92
+ color: var(--newtone-role-text-disabled);
93
+ }
94
+ .newtone-number-field[data-disabled] .newtone-number-field-input::placeholder {
95
+ color: var(--newtone-role-text-disabled);
96
+ }
@@ -1,7 +1,10 @@
1
1
  import { type HTMLAttributes } from 'react';
2
2
  export interface NumberFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'children'> {
3
- /** The short label at the start: a letter or two. */
4
- label: string;
3
+ /**
4
+ * The short label at the start: a letter or two. Left out (2026-11-11), the field is the number and its unit
5
+ * alone, for a row that names it (Inspector.Row): the number then stands at the end, beside the unit.
6
+ */
7
+ label?: string;
5
8
  /** The field's full name, as a screen reader says it. */
6
9
  name: string;
7
10
  /** The number, or null where several differ. */
@@ -10,12 +13,35 @@ export interface NumberFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, '
10
13
  mixed?: string;
11
14
  /** The unit at the end. */
12
15
  unit?: string;
16
+ /**
17
+ * An `Icon` name at the start, before the label or the number (2026-11-11, Show's margins and gaps: `width`,
18
+ * `height`, `horizontal_distribute`, `vertical_distribute`): what the number measures, at a glance.
19
+ */
20
+ icon?: string;
21
+ /**
22
+ * Where the number stands (2026-11-11, Show's Size & grid): `start`, the default, just after the label; `end`, at
23
+ * the field's end beside its unit, the label alone at the start.
24
+ */
25
+ align?: 'start' | 'end';
13
26
  min?: number;
14
27
  max?: number;
15
28
  step?: number;
16
29
  /** How many decimals it shows. */
17
30
  precision?: number;
31
+ /**
32
+ * Where the number turns round (2026-11-14, CurveField's hue: 360): typed, stepped or scrubbed past it, it comes
33
+ * round into [0, wrap) and never stops at `min` or `max`, which then only say its range to assistive tech.
34
+ */
35
+ wrap?: number;
36
+ /** Native disabled: out of the Tab order, and a focus it holds drops to the page. Inspector's rows use it. */
18
37
  disabled?: boolean;
38
+ /**
39
+ * Disabled, keeping the focus (2026-11-13, the style rows): the input is `readOnly` and `aria-disabled`, still
40
+ * focusable and in the Tab order, and still a spinbutton whose value is heard where it is bounded; nothing is typed,
41
+ * no key steps it and its label does not scrub. Drawn as `disabled`. The prop is Button's, the same name. For a
42
+ * field disabled while it may hold the focus; `disabled` given too, the native state wins.
43
+ */
44
+ disabledFocusable?: boolean;
19
45
  /** Told the new number once it is settled, and as the label is dragged. */
20
46
  onChange?: (value: number) => void;
21
47
  /** A change ended (typed and settled, a step, a drag let go): one change, for the consumer's history. */
@@ -26,5 +52,5 @@ export interface NumberFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, '
26
52
  onExpression?: (text: string) => boolean;
27
53
  }
28
54
  /** A number with its label and unit: typed, stepped with the arrow keys, or scrubbed. Blueprint components/number-field.md. */
29
- export declare function NumberField({ label, name, value, mixed, unit, min, max, step, precision, disabled, onChange, onCommit, expression, onExpression, className, ...rest }: NumberFieldProps): import("react").JSX.Element;
55
+ export declare function NumberField({ label, name, value, mixed, unit, icon, align, min, max, step, precision, wrap, disabled, disabledFocusable, onChange, onCommit, expression, onExpression, className, ...rest }: NumberFieldProps): import("react").JSX.Element;
30
56
  //# sourceMappingURL=number-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../src/number-field/number-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,cAAc,EAAkD,MAAM,OAAO,CAAA;AAExH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACnG,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAA;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x-runtime";
3
- import { useEffect, useRef, useState } from 'react';
3
+ import { useEffect, useRef, useState, } from 'react';
4
+ import { Icon } from '../icon/index.js';
4
5
  // How far the label is dragged for one step, in CSS pixels.
5
6
  const PER_STEP = 2;
6
7
  /** A number with its label and unit: typed, stepped with the arrow keys, or scrubbed. Blueprint components/number-field.md. */
7
- export function NumberField({ label, name, value, mixed = '', unit, min = -Infinity, max = Infinity, step = 1, precision = 0, disabled, onChange, onCommit, expression, onExpression, className, ...rest }) {
8
+ export function NumberField({ label, name, value, mixed = '', unit, icon, align = 'start', min = -Infinity, max = Infinity, step = 1, precision = 0, wrap, disabled, disabledFocusable, onChange, onCommit, expression, onExpression, className, ...rest }) {
8
9
  const shown = (v) => (v === null ? '' : String(Number(v.toFixed(precision))));
10
+ // What is typed, as a number: a comma for a point, a true minus for a hyphen.
11
+ const read = (raw) => Number(raw
12
+ .trim()
13
+ .replace(',', '.')
14
+ .replace(/\u2212/g, '-'));
9
15
  const [text, setText] = useState(shown(value));
10
16
  const editing = useRef(false);
17
+ // Waiting (`disabledFocusable`): read-only, focusable, nothing it does changes the value.
18
+ const waits = disabledFocusable === true && !disabled;
11
19
  // The value from outside shows, unless the person is typing.
12
20
  useEffect(() => {
13
21
  if (!editing.current)
14
22
  setText(shown(value));
15
23
  // eslint-disable-next-line react-hooks/exhaustive-deps
16
24
  }, [value, precision]);
17
- const clamp = (v) => Math.min(max, Math.max(min, Number(v.toFixed(precision))));
25
+ // Made to wait while something was typed: what was typed goes, unsettled, and the value shows again.
26
+ useEffect(() => {
27
+ if (!waits)
28
+ return;
29
+ editing.current = false;
30
+ setText(shown(value));
31
+ // eslint-disable-next-line react-hooks/exhaustive-deps
32
+ }, [waits]);
33
+ // Bounded both ways, it is a spinbutton to assistive tech (2026-11-13): its range and its value said as shown, the
34
+ // unit with it; Up and Down already step it.
35
+ const bounded = Number.isFinite(min) && Number.isFinite(max);
36
+ // Kept in its bounds; with `wrap`, brought round into [0, wrap) instead (`+ 0`: never a negative zero).
37
+ const turn = wrap !== undefined && Number.isFinite(wrap) && wrap > 0 ? wrap : undefined;
38
+ const clamp = (v) => {
39
+ const n = Number(v.toFixed(precision));
40
+ if (turn === undefined)
41
+ return Math.min(max, Math.max(min, n));
42
+ const t = Number((((n % turn) + turn) % turn).toFixed(precision)) + 0;
43
+ return t >= turn ? 0 : t;
44
+ };
18
45
  const [focused, setFocused] = useState(false);
19
46
  const settle = (raw) => {
20
47
  editing.current = false;
21
- const n = Number(raw.trim().replace(',', '.'));
48
+ const n = read(raw);
22
49
  if (onExpression && raw.trim() !== '' && !Number.isFinite(n)) {
23
50
  // The consumer's own words: taken, it says the value; else it is put back.
24
51
  const taken = raw.trim() === expression || onExpression(raw.trim());
@@ -36,6 +63,14 @@ export function NumberField({ label, name, value, mixed = '', unit, min = -Infin
36
63
  }
37
64
  };
38
65
  const keys = (e) => {
66
+ // Waiting, no key steps, settles or leaves it: Up and Down are kept from the page too, as a spinbutton's, and
67
+ // Enter from a form around it (a read-only field would still submit it; a natively disabled one never held the
68
+ // focus to).
69
+ if (waits) {
70
+ if (e.key === 'ArrowUp' || e.key === 'ArrowDown' || e.key === 'Enter')
71
+ e.preventDefault();
72
+ return;
73
+ }
39
74
  if (e.key === 'Enter') {
40
75
  settle(e.currentTarget.value);
41
76
  e.currentTarget.select();
@@ -47,8 +82,8 @@ export function NumberField({ label, name, value, mixed = '', unit, min = -Infin
47
82
  }
48
83
  else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
49
84
  e.preventDefault();
50
- const base = Number(e.currentTarget.value);
51
- const from = Number.isFinite(base) && e.currentTarget.value.trim() !== '' ? base : value ?? 0;
85
+ const base = read(e.currentTarget.value);
86
+ const from = Number.isFinite(base) && e.currentTarget.value.trim() !== '' ? base : (value ?? 0);
52
87
  const v = clamp(from + (e.key === 'ArrowUp' ? 1 : -1) * step * (e.shiftKey ? 10 : 1));
53
88
  editing.current = false;
54
89
  setText(shown(v));
@@ -60,7 +95,7 @@ export function NumberField({ label, name, value, mixed = '', unit, min = -Infin
60
95
  const scrub = useRef(null);
61
96
  const [scrubbing, setScrubbing] = useState(false);
62
97
  const take = (e) => {
63
- if (disabled || e.button !== 0)
98
+ if (disabled || waits || e.button !== 0)
64
99
  return;
65
100
  e.preventDefault();
66
101
  e.currentTarget.setPointerCapture(e.pointerId);
@@ -69,7 +104,8 @@ export function NumberField({ label, name, value, mixed = '', unit, min = -Infin
69
104
  };
70
105
  const drag = (e) => {
71
106
  const s = scrub.current;
72
- if (!s || s.id !== e.pointerId)
107
+ // Made to wait mid-drag, it stops changing; letting go still ends the change made before.
108
+ if (!s || s.id !== e.pointerId || waits)
73
109
  return;
74
110
  const steps = Math.round((e.clientX - s.x) / PER_STEP);
75
111
  const v = clamp(s.from + steps * step * (e.shiftKey ? 10 : 1));
@@ -84,12 +120,27 @@ export function NumberField({ label, name, value, mixed = '', unit, min = -Infin
84
120
  setScrubbing(false);
85
121
  onCommit?.();
86
122
  };
87
- return (_jsxs("div", { className: ['newtone-number-field', className].filter(Boolean).join(' '), "data-scrubbing": scrubbing ? '' : undefined, "data-disabled": disabled ? '' : undefined, "data-expression": expression ? '' : undefined, title: expression, ...rest, children: [_jsx("span", { className: "newtone-number-field-label", "aria-hidden": "true", onPointerDown: take, onPointerMove: drag, onPointerUp: release, onPointerCancel: release, children: label }), _jsx("input", { className: "newtone-number-field-input", inputMode: "decimal", "aria-label": name, value: text, placeholder: value === null ? mixed : undefined, disabled: disabled, onChange: (e) => {
123
+ return (_jsxs("div", { className: ['newtone-number-field', className].filter(Boolean).join(' '), "data-scrubbing": scrubbing ? '' : undefined, "data-disabled": disabled || waits ? '' : undefined, "data-expression": expression ? '' : undefined, "data-align": align === 'end' || !label ? 'end' : undefined, title: expression, ...rest, children: [icon ? (_jsx(Icon, { name: icon, size: "sm", tone: "secondary", className: "newtone-number-field-icon" })) : null, label ? (_jsx("span", { className: "newtone-number-field-label", "aria-hidden": "true", onPointerDown: take, onPointerMove: drag, onPointerUp: release, onPointerCancel: release, children: label })) : null, _jsx("input", { className: "newtone-number-field-input", inputMode: "decimal", "aria-label": name, ...(bounded
124
+ ? {
125
+ role: 'spinbutton',
126
+ 'aria-valuemin': min,
127
+ 'aria-valuemax': max,
128
+ 'aria-valuenow': value ?? undefined,
129
+ 'aria-valuetext': value === null
130
+ ? mixed || undefined
131
+ : unit
132
+ ? `${shown(value)} ${unit}`
133
+ : shown(value),
134
+ }
135
+ : {}), value: text, placeholder: value === null ? mixed : undefined, disabled: disabled, readOnly: waits || undefined, "aria-disabled": waits || undefined, onChange: (e) => {
88
136
  editing.current = true;
89
137
  setText(e.currentTarget.value);
90
138
  }, onBlur: (e) => {
91
139
  setFocused(false);
92
- settle(e.currentTarget.value);
140
+ if (!waits)
141
+ settle(e.currentTarget.value);
142
+ else
143
+ editing.current = false;
93
144
  setText(shown(value));
94
145
  }, onKeyDown: keys, onFocus: (e) => {
95
146
  setFocused(true);
@@ -1 +1 @@
1
- {"version":3,"file":"number-field.js","sourceRoot":"","sources":["../../src/number-field/number-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAuE,MAAM,OAAO,CAAA;AA6BxH,4DAA4D;AAC5D,MAAM,QAAQ,GAAG,CAAC,CAAA;AAElB,+HAA+H;AAC/H,MAAM,UAAU,WAAW,CAAC,EACxB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAK,GAAG,EAAE,EACV,IAAI,EACJ,GAAG,GAAG,CAAC,QAAQ,EACf,GAAG,GAAG,QAAQ,EACd,IAAI,GAAG,CAAC,EACR,SAAS,GAAG,CAAC,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,SAAS,EACT,GAAG,IAAI,EACQ;IACf,MAAM,KAAK,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC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