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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/app-frame/app-frame.css +36 -92
  2. package/dist/app-frame/control/control.d.ts +1 -0
  3. package/dist/app-frame/control/control.d.ts.map +1 -1
  4. package/dist/app-frame/control/control.js +3 -2
  5. package/dist/app-frame/control/control.js.map +1 -1
  6. package/dist/app-frame/launcher/launcher.d.ts +6 -2
  7. package/dist/app-frame/launcher/launcher.d.ts.map +1 -1
  8. package/dist/app-frame/launcher/launcher.js +12 -11
  9. package/dist/app-frame/launcher/launcher.js.map +1 -1
  10. package/dist/app-frame/main-menu/main-menu.js +7 -3
  11. package/dist/app-frame/main-menu/main-menu.js.map +1 -1
  12. package/dist/app-frame/menu/menu.d.ts +1 -0
  13. package/dist/app-frame/menu/menu.d.ts.map +1 -1
  14. package/dist/app-frame/menu/menu.js +3 -1
  15. package/dist/app-frame/menu/menu.js.map +1 -1
  16. package/dist/app-frame/parts.d.ts +7 -1
  17. package/dist/app-frame/parts.d.ts.map +1 -1
  18. package/dist/app-frame/parts.js +14 -5
  19. package/dist/app-frame/parts.js.map +1 -1
  20. package/dist/ask-button/ask-button.css +43 -0
  21. package/dist/ask-button/ask-button.d.ts +24 -0
  22. package/dist/ask-button/ask-button.d.ts.map +1 -0
  23. package/dist/ask-button/ask-button.js +19 -0
  24. package/dist/ask-button/ask-button.js.map +1 -0
  25. package/dist/ask-button/index.d.ts +3 -0
  26. package/dist/ask-button/index.d.ts.map +1 -0
  27. package/dist/ask-button/index.js +2 -0
  28. package/dist/ask-button/index.js.map +1 -0
  29. package/dist/badge/badge.css +44 -0
  30. package/dist/badge/badge.d.ts +16 -0
  31. package/dist/badge/badge.d.ts.map +1 -0
  32. package/dist/badge/badge.js +15 -0
  33. package/dist/badge/badge.js.map +1 -0
  34. package/dist/badge/index.d.ts +3 -0
  35. package/dist/badge/index.d.ts.map +1 -0
  36. package/dist/badge/index.js +2 -0
  37. package/dist/badge/index.js.map +1 -0
  38. package/dist/below/below.css +8 -10
  39. package/dist/below/below.d.ts +3 -4
  40. package/dist/below/below.d.ts.map +1 -1
  41. package/dist/below/below.js +10 -52
  42. package/dist/below/below.js.map +1 -1
  43. package/dist/below/grip.d.ts +20 -0
  44. package/dist/below/grip.d.ts.map +1 -0
  45. package/dist/below/grip.js +78 -0
  46. package/dist/below/grip.js.map +1 -0
  47. package/dist/button/button.css +14 -4
  48. package/dist/button/button.d.ts +12 -1
  49. package/dist/button/button.d.ts.map +1 -1
  50. package/dist/button/button.js +49 -3
  51. package/dist/button/button.js.map +1 -1
  52. package/dist/canvas/box/box.d.ts +9 -2
  53. package/dist/canvas/box/box.d.ts.map +1 -1
  54. package/dist/canvas/box/box.js +2 -2
  55. package/dist/canvas/box/box.js.map +1 -1
  56. package/dist/canvas/canvas.css +114 -28
  57. package/dist/canvas/canvas.d.ts +9 -2
  58. package/dist/canvas/canvas.d.ts.map +1 -1
  59. package/dist/canvas/canvas.js +19 -6
  60. package/dist/canvas/canvas.js.map +1 -1
  61. package/dist/canvas/cells/cells.d.ts +15 -4
  62. package/dist/canvas/cells/cells.d.ts.map +1 -1
  63. package/dist/canvas/cells/cells.js +25 -10
  64. package/dist/canvas/cells/cells.js.map +1 -1
  65. package/dist/canvas/cells/grid.d.ts +40 -2
  66. package/dist/canvas/cells/grid.d.ts.map +1 -1
  67. package/dist/canvas/cells/grid.js +101 -6
  68. package/dist/canvas/cells/grid.js.map +1 -1
  69. package/dist/canvas/dock/dock.d.ts +6 -1
  70. package/dist/canvas/dock/dock.d.ts.map +1 -1
  71. package/dist/canvas/dock/dock.js +19 -3
  72. package/dist/canvas/dock/dock.js.map +1 -1
  73. package/dist/canvas/frame/frame.d.ts.map +1 -1
  74. package/dist/canvas/frame/frame.js +1 -7
  75. package/dist/canvas/frame/frame.js.map +1 -1
  76. package/dist/canvas/index.d.ts +2 -1
  77. package/dist/canvas/index.d.ts.map +1 -1
  78. package/dist/canvas/index.js.map +1 -1
  79. package/dist/canvas/insert/insert.d.ts +18 -0
  80. package/dist/canvas/insert/insert.d.ts.map +1 -0
  81. package/dist/canvas/insert/insert.js +40 -0
  82. package/dist/canvas/insert/insert.js.map +1 -0
  83. package/dist/canvas/pin/pin.d.ts.map +1 -1
  84. package/dist/canvas/pin/pin.js +2 -1
  85. package/dist/canvas/pin/pin.js.map +1 -1
  86. package/dist/chat/chat.css +2 -7
  87. package/dist/chat/chat.d.ts +5 -3
  88. package/dist/chat/chat.d.ts.map +1 -1
  89. package/dist/chat/chat.js +17 -24
  90. package/dist/chat/chat.js.map +1 -1
  91. package/dist/data-grid/data-grid.css +128 -0
  92. package/dist/data-grid/data-grid.d.ts +45 -0
  93. package/dist/data-grid/data-grid.d.ts.map +1 -0
  94. package/dist/data-grid/data-grid.js +50 -0
  95. package/dist/data-grid/data-grid.js.map +1 -0
  96. package/dist/data-grid/index.d.ts +3 -0
  97. package/dist/data-grid/index.d.ts.map +1 -0
  98. package/dist/data-grid/index.js +2 -0
  99. package/dist/data-grid/index.js.map +1 -0
  100. package/dist/discover/discover.css +60 -0
  101. package/dist/discover/discover.d.ts +33 -0
  102. package/dist/discover/discover.d.ts.map +1 -0
  103. package/dist/discover/discover.js +13 -0
  104. package/dist/discover/discover.js.map +1 -0
  105. package/dist/discover/index.d.ts +4 -0
  106. package/dist/discover/index.d.ts.map +1 -0
  107. package/dist/discover/index.js +3 -0
  108. package/dist/discover/index.js.map +1 -0
  109. package/dist/file-grid/file-grid.css +5 -0
  110. package/dist/file-grid/file-grid.d.ts +10 -3
  111. package/dist/file-grid/file-grid.d.ts.map +1 -1
  112. package/dist/file-grid/file-grid.js +6 -5
  113. package/dist/file-grid/file-grid.js.map +1 -1
  114. package/dist/floating-bar/floating-bar.css +104 -17
  115. package/dist/floating-bar/floating-bar.d.ts +21 -2
  116. package/dist/floating-bar/floating-bar.d.ts.map +1 -1
  117. package/dist/floating-bar/floating-bar.js +53 -47
  118. package/dist/floating-bar/floating-bar.js.map +1 -1
  119. package/dist/font-picker/font-picker.css +41 -0
  120. package/dist/font-picker/font-picker.d.ts +59 -0
  121. package/dist/font-picker/font-picker.d.ts.map +1 -0
  122. package/dist/font-picker/font-picker.js +155 -0
  123. package/dist/font-picker/font-picker.js.map +1 -0
  124. package/dist/font-picker/index.d.ts +3 -0
  125. package/dist/font-picker/index.d.ts.map +1 -0
  126. package/dist/font-picker/index.js +2 -0
  127. package/dist/font-picker/index.js.map +1 -0
  128. package/dist/hint/hint.css +51 -0
  129. package/dist/hint/hint.d.ts +33 -0
  130. package/dist/hint/hint.d.ts.map +1 -0
  131. package/dist/hint/hint.js +80 -0
  132. package/dist/hint/hint.js.map +1 -0
  133. package/dist/hint/index.d.ts +4 -0
  134. package/dist/hint/index.d.ts.map +1 -0
  135. package/dist/hint/index.js +3 -0
  136. package/dist/hint/index.js.map +1 -0
  137. package/dist/icon/glyphs.d.ts +18 -0
  138. package/dist/icon/glyphs.d.ts.map +1 -0
  139. package/dist/icon/glyphs.js +17 -0
  140. package/dist/icon/glyphs.js.map +1 -0
  141. package/dist/icon/index.d.ts +2 -0
  142. package/dist/icon/index.d.ts.map +1 -1
  143. package/dist/icon/index.js +1 -0
  144. package/dist/icon/index.js.map +1 -1
  145. package/dist/index.d.ts +44 -12
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +17 -1
  148. package/dist/index.js.map +1 -1
  149. package/dist/inspector/index.d.ts +1 -1
  150. package/dist/inspector/index.d.ts.map +1 -1
  151. package/dist/inspector/inspector.css +197 -2
  152. package/dist/inspector/inspector.d.ts +83 -5
  153. package/dist/inspector/inspector.d.ts.map +1 -1
  154. package/dist/inspector/inspector.js +41 -8
  155. package/dist/inspector/inspector.js.map +1 -1
  156. package/dist/look-picker/index.d.ts +3 -0
  157. package/dist/look-picker/index.d.ts.map +1 -0
  158. package/dist/look-picker/index.js +2 -0
  159. package/dist/look-picker/index.js.map +1 -0
  160. package/dist/look-picker/look-picker.css +150 -0
  161. package/dist/look-picker/look-picker.d.ts +72 -0
  162. package/dist/look-picker/look-picker.d.ts.map +1 -0
  163. package/dist/look-picker/look-picker.js +91 -0
  164. package/dist/look-picker/look-picker.js.map +1 -0
  165. package/dist/look-thumb/index.d.ts +3 -0
  166. package/dist/look-thumb/index.d.ts.map +1 -0
  167. package/dist/look-thumb/index.js +2 -0
  168. package/dist/look-thumb/index.js.map +1 -0
  169. package/dist/look-thumb/look-thumb.css +7 -0
  170. package/dist/look-thumb/look-thumb.d.ts +27 -0
  171. package/dist/look-thumb/look-thumb.d.ts.map +1 -0
  172. package/dist/look-thumb/look-thumb.js +15 -0
  173. package/dist/look-thumb/look-thumb.js.map +1 -0
  174. package/dist/material/index.d.ts +3 -0
  175. package/dist/material/index.d.ts.map +1 -0
  176. package/dist/material/index.js +2 -0
  177. package/dist/material/index.js.map +1 -0
  178. package/dist/material/material.css +371 -0
  179. package/dist/material/material.d.ts +43 -0
  180. package/dist/material/material.d.ts.map +1 -0
  181. package/dist/material/material.js +27 -0
  182. package/dist/material/material.js.map +1 -0
  183. package/dist/number-field/number-field.css +21 -0
  184. package/dist/number-field/number-field.d.ts +24 -3
  185. package/dist/number-field/number-field.d.ts.map +1 -1
  186. package/dist/number-field/number-field.js +52 -9
  187. package/dist/number-field/number-field.js.map +1 -1
  188. package/dist/on-media/on-media.css +6 -6
  189. package/dist/page-editor/page-editor.css +2 -6
  190. package/dist/picker/picker.css +42 -0
  191. package/dist/picker/picker.d.ts +10 -1
  192. package/dist/picker/picker.d.ts.map +1 -1
  193. package/dist/picker/picker.js +40 -5
  194. package/dist/picker/picker.js.map +1 -1
  195. package/dist/pop-menu/index.d.ts +7 -0
  196. package/dist/pop-menu/index.d.ts.map +1 -0
  197. package/dist/pop-menu/index.js +6 -0
  198. package/dist/pop-menu/index.js.map +1 -0
  199. package/dist/{floating-bar/menu.d.ts → pop-menu/pop-menu.d.ts} +8 -2
  200. package/dist/pop-menu/pop-menu.d.ts.map +1 -0
  201. package/dist/{floating-bar/menu.js → pop-menu/pop-menu.js} +39 -11
  202. package/dist/pop-menu/pop-menu.js.map +1 -0
  203. package/dist/prompt-field/index.d.ts +3 -0
  204. package/dist/prompt-field/index.d.ts.map +1 -0
  205. package/dist/prompt-field/index.js +2 -0
  206. package/dist/prompt-field/index.js.map +1 -0
  207. package/dist/prompt-field/prompt-field.css +203 -0
  208. package/dist/prompt-field/prompt-field.d.ts +72 -0
  209. package/dist/prompt-field/prompt-field.d.ts.map +1 -0
  210. package/dist/prompt-field/prompt-field.js +91 -0
  211. package/dist/prompt-field/prompt-field.js.map +1 -0
  212. package/dist/quick-action/index.d.ts +1 -1
  213. package/dist/quick-action/index.d.ts.map +1 -1
  214. package/dist/quick-action/quick-action.css +60 -17
  215. package/dist/quick-action/quick-action.d.ts +34 -28
  216. package/dist/quick-action/quick-action.d.ts.map +1 -1
  217. package/dist/quick-action/quick-action.js +25 -21
  218. package/dist/quick-action/quick-action.js.map +1 -1
  219. package/dist/row-list/row-list.css +3 -0
  220. package/dist/seed-color-field/index.d.ts +3 -0
  221. package/dist/seed-color-field/index.d.ts.map +1 -0
  222. package/dist/seed-color-field/index.js +2 -0
  223. package/dist/seed-color-field/index.js.map +1 -0
  224. package/dist/seed-color-field/seed-color-field.css +103 -0
  225. package/dist/seed-color-field/seed-color-field.d.ts +45 -0
  226. package/dist/seed-color-field/seed-color-field.d.ts.map +1 -0
  227. package/dist/seed-color-field/seed-color-field.js +130 -0
  228. package/dist/seed-color-field/seed-color-field.js.map +1 -0
  229. package/dist/seed-dark-limit-field/index.d.ts +3 -0
  230. package/dist/seed-dark-limit-field/index.d.ts.map +1 -0
  231. package/dist/seed-dark-limit-field/index.js +2 -0
  232. package/dist/seed-dark-limit-field/index.js.map +1 -0
  233. package/dist/seed-dark-limit-field/seed-dark-limit-field.css +10 -0
  234. package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts +36 -0
  235. package/dist/seed-dark-limit-field/seed-dark-limit-field.d.ts.map +1 -0
  236. package/dist/seed-dark-limit-field/seed-dark-limit-field.js +18 -0
  237. package/dist/seed-dark-limit-field/seed-dark-limit-field.js.map +1 -0
  238. package/dist/seed-roundness-field/index.d.ts +3 -0
  239. package/dist/seed-roundness-field/index.d.ts.map +1 -0
  240. package/dist/seed-roundness-field/index.js +2 -0
  241. package/dist/seed-roundness-field/index.js.map +1 -0
  242. package/dist/seed-roundness-field/seed-roundness-field.css +23 -0
  243. package/dist/seed-roundness-field/seed-roundness-field.d.ts +39 -0
  244. package/dist/seed-roundness-field/seed-roundness-field.d.ts.map +1 -0
  245. package/dist/seed-roundness-field/seed-roundness-field.js +15 -0
  246. package/dist/seed-roundness-field/seed-roundness-field.js.map +1 -0
  247. package/dist/seed-steps/index.d.ts +8 -0
  248. package/dist/seed-steps/index.d.ts.map +1 -0
  249. package/dist/seed-steps/index.js +7 -0
  250. package/dist/seed-steps/index.js.map +1 -0
  251. package/dist/seed-steps/reset-focus.d.ts +16 -0
  252. package/dist/seed-steps/reset-focus.d.ts.map +1 -0
  253. package/dist/seed-steps/reset-focus.js +53 -0
  254. package/dist/seed-steps/reset-focus.js.map +1 -0
  255. package/dist/seed-steps/seed-steps.css +83 -0
  256. package/dist/seed-steps/seed-steps.d.ts +47 -0
  257. package/dist/seed-steps/seed-steps.d.ts.map +1 -0
  258. package/dist/seed-steps/seed-steps.js +95 -0
  259. package/dist/seed-steps/seed-steps.js.map +1 -0
  260. package/dist/shell/shell.css +1 -13
  261. package/dist/skeleton/index.d.ts +3 -0
  262. package/dist/skeleton/index.d.ts.map +1 -0
  263. package/dist/skeleton/index.js +2 -0
  264. package/dist/skeleton/index.js.map +1 -0
  265. package/dist/skeleton/skeleton.css +84 -0
  266. package/dist/skeleton/skeleton.d.ts +50 -0
  267. package/dist/skeleton/skeleton.d.ts.map +1 -0
  268. package/dist/skeleton/skeleton.js +25 -0
  269. package/dist/skeleton/skeleton.js.map +1 -0
  270. package/dist/slide-list/index.d.ts +1 -1
  271. package/dist/slide-list/index.d.ts.map +1 -1
  272. package/dist/slide-list/slide-list.css +281 -23
  273. package/dist/slide-list/slide-list.d.ts +87 -1
  274. package/dist/slide-list/slide-list.d.ts.map +1 -1
  275. package/dist/slide-list/slide-list.js +265 -19
  276. package/dist/slide-list/slide-list.js.map +1 -1
  277. package/dist/split/split.css +10 -12
  278. package/dist/split/split.d.ts +2 -0
  279. package/dist/split/split.d.ts.map +1 -1
  280. package/dist/split/split.js +21 -3
  281. package/dist/split/split.js.map +1 -1
  282. package/dist/stage/stage.d.ts +11 -4
  283. package/dist/stage/stage.d.ts.map +1 -1
  284. package/dist/stage/stage.js +30 -9
  285. package/dist/stage/stage.js.map +1 -1
  286. package/dist/step-list/index.d.ts +3 -0
  287. package/dist/step-list/index.d.ts.map +1 -0
  288. package/dist/step-list/index.js +2 -0
  289. package/dist/step-list/index.js.map +1 -0
  290. package/dist/step-list/step-list.css +151 -0
  291. package/dist/step-list/step-list.d.ts +101 -0
  292. package/dist/step-list/step-list.d.ts.map +1 -0
  293. package/dist/step-list/step-list.js +76 -0
  294. package/dist/step-list/step-list.js.map +1 -0
  295. package/dist/suggestion/index.d.ts +3 -0
  296. package/dist/suggestion/index.d.ts.map +1 -0
  297. package/dist/suggestion/index.js +2 -0
  298. package/dist/suggestion/index.js.map +1 -0
  299. package/dist/suggestion/suggestion.css +45 -0
  300. package/dist/suggestion/suggestion.d.ts +23 -0
  301. package/dist/suggestion/suggestion.d.ts.map +1 -0
  302. package/dist/suggestion/suggestion.js +45 -0
  303. package/dist/suggestion/suggestion.js.map +1 -0
  304. package/dist/switch/switch.css +1 -6
  305. package/dist/text-field/text-field.css +11 -2
  306. package/dist/thread/thread.css +9 -49
  307. package/dist/thread/thread.d.ts.map +1 -1
  308. package/dist/thread/thread.js +45 -46
  309. package/dist/thread/thread.js.map +1 -1
  310. package/dist/tile-picker/index.d.ts +1 -1
  311. package/dist/tile-picker/index.d.ts.map +1 -1
  312. package/dist/tile-picker/tile-picker.css +74 -10
  313. package/dist/tile-picker/tile-picker.d.ts +74 -7
  314. package/dist/tile-picker/tile-picker.d.ts.map +1 -1
  315. package/dist/tile-picker/tile-picker.js +82 -35
  316. package/dist/tile-picker/tile-picker.js.map +1 -1
  317. package/dist/tile-search/index.d.ts +7 -0
  318. package/dist/tile-search/index.d.ts.map +1 -0
  319. package/dist/tile-search/index.js +7 -0
  320. package/dist/tile-search/index.js.map +1 -0
  321. package/dist/tile-search/narrow.d.ts +22 -0
  322. package/dist/tile-search/narrow.d.ts.map +1 -0
  323. package/dist/tile-search/narrow.js +62 -0
  324. package/dist/tile-search/narrow.js.map +1 -0
  325. package/dist/tile-search/search-box.d.ts +19 -0
  326. package/dist/tile-search/search-box.d.ts.map +1 -0
  327. package/dist/tile-search/search-box.js +47 -0
  328. package/dist/tile-search/search-box.js.map +1 -0
  329. package/dist/tooltip/tooltip.css +13 -20
  330. package/dist/tooltip/tooltip.d.ts +2 -2
  331. package/dist/tooltip/tooltip.d.ts.map +1 -1
  332. package/dist/tooltip/tooltip.js +15 -2
  333. package/dist/tooltip/tooltip.js.map +1 -1
  334. package/dist/workbench/workbench.css +129 -16
  335. package/dist/workbench/workbench.d.ts +10 -2
  336. package/dist/workbench/workbench.d.ts.map +1 -1
  337. package/dist/workbench/workbench.js +8 -2
  338. package/dist/workbench/workbench.js.map +1 -1
  339. package/package.json +81 -1
  340. package/dist/floating-bar/menu.d.ts.map +0 -1
  341. package/dist/floating-bar/menu.js.map +0 -1
@@ -0,0 +1,371 @@
1
+ /* Material -- blueprint components/material.md, contract contracts/material.md. What a part is made of (Joshua
2
+ * 2026-11-11): glass, the translucent control layer; crystal, the inset screen content sits on; solid, the default.
3
+ *
4
+ * THIS IS THE ONLY SHEET THAT NAMES `material.*`, `blur.*`, `shadow.*` OR `backdrop-filter`
5
+ * (on-media keeps its own vocabulary for photographs). A part never draws glass itself: it wears a recipe class, and
6
+ * the class does nothing outside a glass boundary.
7
+ *
8
+ * WHERE IT APPLIES IS SET BY THE BOUNDARY, NOT BY WHERE A PART SITS. A boundary is `data-newtone-material` on an
9
+ * element (`<Material>`, or a part that is one by what it is: Canvas.Dock, a Workbench foot). Every glass rule sits in
10
+ * one `@scope` from a glass boundary down to the next boundary of another material, so the nearest one wins and a
11
+ * `solid` one (an Inspector, a FloatingBar.Panel) ends the glass above it. `:where(:scope, *)` lets a rule match the
12
+ * boundary itself as well as what is under it, at no specificity of its own.
13
+ *
14
+ * THE FOUR RECIPES (Joshua 2026-11-11):
15
+ * --bar a FloatingBar pill: glass.regular (surface.secondary at 72%), blur.regular (16px), the lit edge, close
16
+ * --menu a menu over the glass: glass.thick (surface.primary at 84%), blur.thick (24px), the lit edge, close + far
17
+ * --field the prompt field: glass.regular, no edge, no shadow; solid while focused
18
+ * --action the raised primary: glass.accent (the primary fill at 88%), blur.regular, the lit edge, close
19
+ * A QuickAction on the glass is raised: `primary` wears --action; `neutral` the bar's wash, edge and shadow, with the
20
+ * glass's veils for hover and press (Joshua 2026-11-11).
21
+ *
22
+ * Private properties are spelled --_material-*. */
23
+
24
+ .newtone-material {
25
+ display: contents;
26
+ }
27
+ /* A crystal boundary is a screen, so it has a box to draw on (Joshua 2026-11-11): the bezel, the ground and the inset
28
+ * shadow need one. Glass and solid stay boxless, safe in a flex row. The consumer sizes it. */
29
+ .newtone-material[data-newtone-material='crystal'] {
30
+ display: block;
31
+ }
32
+
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],
42
+ [data-newtone-material],
43
+ .newtone-material-cast-close {
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);
60
+ --_material-lit: linear-gradient(180deg, var(--newtone-material-edge-top-border), var(--newtone-material-edge-foot-border));
61
+ }
62
+ /* The slide (Canvas.Frame `card`) stands off what it is on: low (Joshua 2026-11-11). */
63
+ .newtone-material-cast-close {
64
+ box-shadow: var(--_shadow-low);
65
+ }
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;
80
+ }
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]) {
85
+ box-shadow:
86
+ 1px 0 0 0 var(--newtone-role-divider-secondary),
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);
103
+ }
104
+ /* A slide or section being dragged: the accent ring, then high, as a menu stands (Joshua 2026-11-11). */
105
+ .newtone-slide-list-ghost:is([data-what='slide'], [data-what='section']) {
106
+ box-shadow:
107
+ 0 0 0 2px var(--newtone-role-text-accent),
108
+ var(--_shadow-high);
109
+ }
110
+
111
+ /* ---- Glass ---------------------------------------------------------------------------------------------------- */
112
+ @scope ([data-newtone-material='glass']) to ([data-newtone-material]:not([data-newtone-material='glass'])) {
113
+ /* What an item on the glass wears (a bar's tool, a menu's row, a quiet button): the regular glass's ink and veils
114
+ * unless a menu under it says the thick one's. */
115
+ :scope {
116
+ --_material-item-ink: var(--newtone-material-glass-regular-text);
117
+ --_material-item-hover: var(--newtone-material-glass-regular-item-hover-fill);
118
+ --_material-item-pressed: var(--newtone-material-glass-regular-item-pressed-fill);
119
+ }
120
+
121
+ /* The recipe, once. A Button or Action `primary` wears the raised form without a class: both stay server
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) {
125
+ --_material-paint: var(--_material-wash);
126
+ border-color: transparent;
127
+ background:
128
+ linear-gradient(var(--_material-paint), var(--_material-paint)) padding-box,
129
+ var(--_material-edge) border-box;
130
+ -webkit-backdrop-filter: blur(var(--_material-blur));
131
+ backdrop-filter: blur(var(--_material-blur));
132
+ box-shadow: var(--_material-shadow);
133
+ color: var(--_material-ink);
134
+ }
135
+ :where(:scope, *).newtone-glass--bar {
136
+ --_material-wash: var(--newtone-material-glass-regular-fill);
137
+ --_material-blur: var(--newtone-blur-regular);
138
+ --_material-edge: var(--_material-lit);
139
+ --_material-shadow: var(--_shadow-low);
140
+ --_material-ink: var(--newtone-material-glass-regular-text);
141
+ }
142
+ /* Rows of words sit on a menu, so its frost is denser than a bar's (Joshua 2026-11-10). */
143
+ :where(:scope, *).newtone-glass--menu {
144
+ --_material-wash: var(--newtone-material-glass-thick-fill);
145
+ --_material-blur: var(--newtone-blur-thick);
146
+ --_material-edge: var(--_material-lit);
147
+ --_material-shadow: var(--_shadow-high);
148
+ --_material-ink: var(--newtone-material-glass-thick-text);
149
+ --_material-item-ink: var(--newtone-material-glass-thick-text);
150
+ --_material-item-hover: var(--newtone-material-glass-thick-item-hover-fill);
151
+ --_material-item-pressed: var(--newtone-material-glass-thick-item-pressed-fill);
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
+ }
184
+ /* The words at rest are quieter than pure ink (75%); solid while focused, so what is typed is plain. */
185
+ :where(:scope, *).newtone-glass--field {
186
+ --_material-wash: var(--newtone-material-glass-regular-fill);
187
+ --_material-blur: var(--newtone-blur-regular);
188
+ --_material-edge: linear-gradient(var(--_material-paint), var(--_material-paint));
189
+ --_material-shadow: none;
190
+ --_material-ink: var(--newtone-material-glass-regular-rest-text);
191
+ }
192
+ :where(:scope, *).newtone-glass--field:focus-within {
193
+ --_material-paint: var(--newtone-role-surface-secondary);
194
+ --_material-blur: 0px;
195
+ --_material-ink: var(--newtone-role-text-primary);
196
+ }
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) {
198
+ --_material-wash: var(--newtone-material-glass-accent-rest-fill);
199
+ --_material-blur: var(--newtone-blur-regular);
200
+ --_material-edge: var(--_material-lit);
201
+ --_material-shadow: var(--_shadow-low);
202
+ --_material-ink: var(--newtone-button-primary-rest-text);
203
+ }
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 {
205
+ --_material-wash: var(--newtone-material-glass-accent-hover-fill);
206
+ --_material-ink: var(--newtone-button-primary-hover-text);
207
+ }
208
+ /* Pressed, it sits down: the contact shadow only. */
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']) {
210
+ --_material-wash: var(--newtone-material-glass-accent-pressed-fill);
211
+ --_material-shadow: var(--_shadow-low-contact);
212
+ --_material-ink: var(--newtone-button-primary-pressed-text);
213
+ }
214
+
215
+ /* A neutral QuickAction on the glass: raised as a bar is (its wash, the lit edge, close), the glass's ink, and the
216
+ * glass's veils laid over the wash for hover and press. Pressed, it sits down to the contact shadow. */
217
+ :where(:scope, *).newtone-quick-action:not(.newtone-quick-action--primary) {
218
+ --_material-wash: var(--newtone-material-glass-regular-fill);
219
+ --_material-blur: var(--newtone-blur-regular);
220
+ --_material-edge: var(--_material-lit);
221
+ --_material-shadow: var(--_shadow-low);
222
+ --_material-ink: var(--newtone-material-glass-regular-text);
223
+ --_material-veil: transparent;
224
+ background:
225
+ linear-gradient(var(--_material-veil), var(--_material-veil)) padding-box,
226
+ linear-gradient(var(--_material-paint), var(--_material-paint)) padding-box,
227
+ var(--_material-edge) border-box;
228
+ }
229
+ :where(:scope, *).newtone-quick-action:not(.newtone-quick-action--primary):hover {
230
+ --_material-veil: var(--newtone-material-glass-regular-item-hover-fill);
231
+ }
232
+ :where(:scope, *).newtone-quick-action:not(.newtone-quick-action--primary):is(:active, [aria-pressed='true']) {
233
+ --_material-veil: var(--newtone-material-glass-regular-item-pressed-fill);
234
+ --_material-shadow: var(--_shadow-low-contact);
235
+ }
236
+
237
+ /* A prompt field's hint and its glyphs on the glass: quieter than its words (hint.text, 50%). Focused, it is solid,
238
+ * and they take the secondary text role. */
239
+ :where(:scope, *).newtone-glass--field:not(:focus-within) :is(.newtone-prompt-field-hint, .newtone-prompt-field-slot),
240
+ :where(:scope, *).newtone-glass--field:not(:focus-within) .newtone-prompt-field-input::placeholder {
241
+ color: var(--newtone-material-glass-regular-hint-text);
242
+ }
243
+
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'])) {
248
+ color: var(--_material-item-ink);
249
+ }
250
+ :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):not(:where(.newtone-button[aria-disabled='true'])):hover {
251
+ background: var(--_material-item-hover);
252
+ color: var(--_material-item-ink);
253
+ }
254
+ :where(:scope, *):is(.newtone-button--secondary, .newtone-button--tertiary, .newtone-action--secondary):not(:disabled):not(:where(.newtone-button[aria-disabled='true'])):active {
255
+ background: var(--_material-item-pressed);
256
+ color: var(--_material-item-ink);
257
+ }
258
+
259
+ /* FloatingBar's tools on the glass: the glass's ink, its veils for hover and press. A tool drawn as a Button
260
+ * (`variant`) keeps the Button's own colours. */
261
+ .newtone-floating-bar-tool:not([data-variant]) {
262
+ color: var(--_material-item-ink);
263
+ }
264
+ .newtone-floating-bar-tool:not([data-variant], :disabled):where(:hover, [data-open]) {
265
+ background: var(--_material-item-hover);
266
+ }
267
+ .newtone-floating-bar-tool:not([data-variant], :disabled):where(:active) {
268
+ background: var(--_material-item-pressed);
269
+ }
270
+ /* The current or chosen tool: a dome (Joshua 2026-11-10), its own fill shaded from dark at the top to light at the
271
+ * foot: the selection's fill with 12% black at the top and 24% white at the foot, as Joshua drew it (2026-11-10;
272
+ * kept over palette steps on the tuning page, 2026-11-11). The component draws the mix, so no token holds it. Ringed in the divider's colour, as the gap between
273
+ * the window's panels, so it reads as set into the bar. Inset, so the tool keeps its size. A `neutral` current one
274
+ * (a view) is the secondary surface's dome. */
275
+ .newtone-floating-bar-tool[aria-pressed='true'] {
276
+ --_dome: var(--newtone-selection-fill);
277
+ background: linear-gradient(180deg, color-mix(in oklab, var(--_dome), black 12%), color-mix(in oklab, var(--_dome), white 24%));
278
+ box-shadow: inset 0 0 0 1px var(--newtone-role-divider-secondary);
279
+ }
280
+ .newtone-floating-bar-tool[aria-pressed='true'][data-neutral] {
281
+ --_dome: var(--newtone-role-surface-secondary);
282
+ }
283
+ /* The chosen tool's glyph (Joshua 2026-11-10): filled, in the accent's words colour, so the tool in use reads at a
284
+ * glance. A `neutral` current one keeps its outline and its ink. Icon writes FILL on the element itself, so the axes
285
+ * are restated with FILL at 1, the others as icon.css sets them. */
286
+ .newtone-floating-bar-tool[aria-pressed='true']:not([data-neutral]) .newtone-icon {
287
+ color: var(--newtone-role-text-accent);
288
+ font-variation-settings:
289
+ 'FILL' 1,
290
+ 'wght' var(--newtone-icon-weight),
291
+ 'GRAD' 0,
292
+ 'opsz' clamp(var(--newtone-icon-opsz-min), var(--newtone-icon-px), var(--newtone-icon-opsz-max));
293
+ }
294
+
295
+ /* A menu's rows on the glass: the menu's veil under the one pointed at, kept or opened. `danger` keeps its colour. */
296
+ .newtone-pop-menu-row:not(:disabled):where(:hover, :focus-visible) {
297
+ background: var(--_material-item-hover);
298
+ }
299
+ .newtone-pop-menu-row:not(:disabled):where(:active) {
300
+ background: var(--_material-item-pressed);
301
+ }
302
+ .newtone-app-frame-menu-item:is(:hover, :focus-visible),
303
+ .newtone-app-frame-menu-item.newtone-app-frame-main-menu-row[data-open] {
304
+ background: var(--_material-item-hover);
305
+ }
306
+ }
307
+
308
+ /* Where the glass cannot be seen through (no backdrop-filter) or should not be (reduced transparency), each recipe
309
+ * is its own wash at full strength and nothing is blurred: the same colour, opaque. With more contrast asked for, also
310
+ * the quieter ink goes to pure ink. */
311
+ @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
312
+ @scope ([data-newtone-material='glass']) to ([data-newtone-material]:not([data-newtone-material='glass'])) {
313
+ :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) {
314
+ --_material-paint: oklch(from var(--_material-wash) l c h / 1);
315
+ --_material-blur: 0px;
316
+ }
317
+ }
318
+ }
319
+ @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
320
+ @scope ([data-newtone-material='glass']) to ([data-newtone-material]:not([data-newtone-material='glass'])) {
321
+ :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) {
322
+ --_material-paint: oklch(from var(--_material-wash) l c h / 1);
323
+ --_material-blur: 0px;
324
+ }
325
+ }
326
+ }
327
+ @media (prefers-contrast: more) {
328
+ @scope ([data-newtone-material='glass']) to ([data-newtone-material]:not([data-newtone-material='glass'])) {
329
+ :where(:scope, *).newtone-glass--field {
330
+ --_material-ink: var(--newtone-material-glass-regular-text);
331
+ }
332
+ }
333
+ }
334
+
335
+ /* ---- Crystal -------------------------------------------------------------------------------------------------- */
336
+ /* An inset screen with bezels (Joshua 2026-11-11), what content sits on: Show's slide area. Its ground is the deep
337
+ * rung's primary surface, what C2 stood on before (a role, so no token of its own; not the secondary: glass mixes
338
+ * the secondary, so a PromptField on it vanished, Joshua 2026-11-11); its bezel the lit edge reversed, dark at the
339
+ * top and light at the foot, so it reads as set in; and the low shadow cast inward, over what is on it.
340
+ * 1px the bezel
341
+ * radius.md its corners */
342
+ [data-newtone-material='crystal'] {
343
+ position: relative;
344
+ box-sizing: border-box;
345
+ border: 1px solid transparent;
346
+ border-radius: var(--newtone-radius-md);
347
+ background:
348
+ linear-gradient(var(--newtone-role-surface-primary), var(--newtone-role-surface-primary)) padding-box,
349
+ linear-gradient(180deg, var(--newtone-material-crystal-bezel-top-border), var(--newtone-material-crystal-bezel-foot-border)) border-box;
350
+ }
351
+ /* The inset shadow over what is on the screen (a canvas paints its own ground over the screen's background), under the
352
+ * bars that float on it, and never in the way of a press. */
353
+ [data-newtone-material='crystal']::after {
354
+ content: '';
355
+ position: absolute;
356
+ inset: 0;
357
+ z-index: 4;
358
+ border-radius: calc(var(--newtone-radius-md) - 1px);
359
+ box-shadow:
360
+ inset 0 var(--newtone-shadow-low-ambient-y) var(--newtone-shadow-low-ambient-blur) var(--newtone-shadow-low-ambient-spread)
361
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-low-strength-ambient), transparent),
362
+ inset 0 var(--newtone-shadow-low-contact-y) var(--newtone-shadow-low-contact-blur) var(--newtone-shadow-low-contact-spread)
363
+ color-mix(in oklab, var(--newtone-material-cast-fill) var(--newtone-shadow-low-strength-contact), transparent);
364
+ pointer-events: none;
365
+ }
366
+ @scope ([data-newtone-material='crystal']) to ([data-newtone-material]:not([data-newtone-material='crystal'])) {
367
+ /* A canvas with no ground of its own shows the screen's, and dims outside its frame with it. */
368
+ .newtone-canvas:where([data-ground='none']) {
369
+ --_canvas-ground: var(--newtone-role-surface-primary);
370
+ }
371
+ }
@@ -0,0 +1,43 @@
1
+ import { type ReactNode } from 'react';
2
+ /**
3
+ * What a part is made of (Joshua 2026-11-11). Three materials:
4
+ * glass the translucent control layer: bars, menus, the prompt field, the raised primary button
5
+ * crystal an inset screen with bezels that content sits on (Show's slide area, Workbench C2)
6
+ * solid plain, the default: no boundary above means solid
7
+ */
8
+ export type MaterialKind = 'glass' | 'crystal' | 'solid';
9
+ export type MaterialProps = ({
10
+ glass: true;
11
+ crystal?: never;
12
+ solid?: never;
13
+ } | {
14
+ crystal: true;
15
+ glass?: never;
16
+ solid?: never;
17
+ } | {
18
+ solid: true;
19
+ glass?: never;
20
+ crystal?: never;
21
+ }) & {
22
+ children?: ReactNode;
23
+ className?: string;
24
+ };
25
+ /** The nearest material boundary's kind: for client parts, for native and for anything moved out of the DOM tree. */
26
+ export declare const MaterialContext: import("react").Context<MaterialKind | null>;
27
+ /**
28
+ * The material its contents wear. Like Surface it is an attribute (`data-newtone-material`) the stylesheet reads, and
29
+ * unlike Surface it is also a React context, so a part rendered elsewhere still knows. The wrapper takes no room
30
+ * (`display: contents`), so it is safe in a flex row. The nearest boundary wins; a `solid` one ends the glass above
31
+ * it. Blueprint components/material.md.
32
+ */
33
+ export declare function Material(props: MaterialProps): import("react").JSX.Element;
34
+ /** The material of the nearest boundary above, or null when there is none (solid). */
35
+ export declare function useMaterial(): MaterialKind | null;
36
+ /**
37
+ * For a part that is a boundary by what it is (Canvas.Dock, a Workbench foot): the attribute it stamps on its own root.
38
+ * Internal: not exported from the index.
39
+ */
40
+ export declare function materialRoot(kind: MaterialKind | null): {
41
+ 'data-newtone-material'?: MaterialKind;
42
+ };
43
+ //# sourceMappingURL=material.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.d.ts","sourceRoot":"","sources":["../../src/material/material.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAExD,MAAM,MAAM,aAAa,GAAG,CACtB;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAC/C;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAC/C;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CACpD,GAAG;IACA,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,qHAAqH;AACrH,eAAO,MAAM,eAAe,8CAA2C,CAAA;AAEvE;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,+BAS5C;AAED,sFAAsF;AACtF,wBAAgB,WAAW,IAAI,YAAY,GAAG,IAAI,CAEjD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,GAAG;IAAE,uBAAuB,CAAC,EAAE,YAAY,CAAA;CAAE,CAElG"}
@@ -0,0 +1,27 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext } from 'react';
4
+ /** The nearest material boundary's kind: for client parts, for native and for anything moved out of the DOM tree. */
5
+ export const MaterialContext = createContext(null);
6
+ /**
7
+ * The material its contents wear. Like Surface it is an attribute (`data-newtone-material`) the stylesheet reads, and
8
+ * unlike Surface it is also a React context, so a part rendered elsewhere still knows. The wrapper takes no room
9
+ * (`display: contents`), so it is safe in a flex row. The nearest boundary wins; a `solid` one ends the glass above
10
+ * it. Blueprint components/material.md.
11
+ */
12
+ export function Material(props) {
13
+ const kind = props.glass ? 'glass' : props.crystal ? 'crystal' : 'solid';
14
+ return (_jsx(MaterialContext.Provider, { value: kind, children: _jsx("div", { className: ['newtone-material', props.className].filter(Boolean).join(' '), "data-newtone-material": kind, children: props.children }) }));
15
+ }
16
+ /** The material of the nearest boundary above, or null when there is none (solid). */
17
+ export function useMaterial() {
18
+ return useContext(MaterialContext);
19
+ }
20
+ /**
21
+ * For a part that is a boundary by what it is (Canvas.Dock, a Workbench foot): the attribute it stamps on its own root.
22
+ * Internal: not exported from the index.
23
+ */
24
+ export function materialRoot(kind) {
25
+ return kind ? { 'data-newtone-material': kind } : {};
26
+ }
27
+ //# sourceMappingURL=material.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"material.js","sourceRoot":"","sources":["../../src/material/material.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AAmBjE,qHAAqH;AACrH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAsB,IAAI,CAAC,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAoB;IACzC,MAAM,IAAI,GAAiB,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAA;IACtF,OAAO,CACH,KAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YACjC,cAAK,SAAS,EAAE,CAAC,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,2BAAyB,IAAI,YACvG,KAAK,CAAC,QAAQ,GACb,GACiB,CAC9B,CAAA;AACL,CAAC;AAED,sFAAsF;AACtF,MAAM,UAAU,WAAW;IACvB,OAAO,UAAU,CAAC,eAAe,CAAC,CAAA;AACtC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,IAAyB;IAClD,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;AACxD,CAAC"}
@@ -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,14 +60,23 @@
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);
@@ -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,30 @@ 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
+ /** Native disabled: out of the Tab order, and a focus it holds drops to the page. Inspector's rows use it. */
18
32
  disabled?: boolean;
33
+ /**
34
+ * Disabled, keeping the focus (2026-11-13, the style rows): the input is `readOnly` and `aria-disabled`, still
35
+ * focusable and in the Tab order, and still a spinbutton whose value is heard where it is bounded; nothing is typed,
36
+ * no key steps it and its label does not scrub. Drawn as `disabled`. The prop is Button's, the same name. For a
37
+ * field disabled while it may hold the focus; `disabled` given too, the native state wins.
38
+ */
39
+ disabledFocusable?: boolean;
19
40
  /** Told the new number once it is settled, and as the label is dragged. */
20
41
  onChange?: (value: number) => void;
21
42
  /** A change ended (typed and settled, a step, a drag let go): one change, for the consumer's history. */
@@ -26,5 +47,5 @@ export interface NumberFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, '
26
47
  onExpression?: (text: string) => boolean;
27
48
  }
28
49
  /** 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;
50
+ export declare function NumberField({ label, name, value, mixed, unit, icon, align, min, max, step, precision, disabled, disabledFocusable, onChange, onCommit, expression, onExpression, className, ...rest }: NumberFieldProps): import("react").JSX.Element;
30
51
  //# 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;IACZ,gDAAgD;IAChD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,sHAAsH;IACtH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qFAAqF;IACrF,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAC3C;AAKD,+HAA+H;AAC/H,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAU,EACV,IAAI,EACJ,GAAe,EACf,GAAc,EACd,IAAQ,EACR,SAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,SAAS,EACT,GAAG,IAAI,EACV,EAAE,gBAAgB,+BA4HlB"}
1
+ {"version":3,"file":"number-field.d.ts","sourceRoot":"","sources":["../../src/number-field/number-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIH,KAAK,cAAc,EAGtB,MAAM,OAAO,CAAA;AAGd,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAC1C,cAAc,CAAC,cAAc,CAAC,EAC9B,UAAU,GAAG,UAAU,CAC1B;IACG;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,sHAAsH;IACtH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,qFAAqF;IACrF,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAC3C;AAKD,+HAA+H;AAC/H,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,IAAI,EACJ,KAAK,EACL,KAAU,EACV,IAAI,EACJ,IAAI,EACJ,KAAe,EACf,GAAe,EACf,GAAc,EACd,IAAQ,EACR,SAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,SAAS,EACT,GAAG,IAAI,EACV,EAAE,gBAAgB,+BAwLlB"}