@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,2 @@
1
+ export { PromptField } from './prompt-field.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompt-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,203 @@
1
+ /* PromptField -- blueprint components/prompt-field.md, contract contracts/prompt-field.md. The major input (Joshua
2
+ * 2026-11-11): a pill one line tall that grows into a rounded panel, its words, then its send.
3
+ *
4
+ * THIS SHEET DRAWS THE SOLID FIELD. On glass (the default) material.css paints it: the regular glass at rest, solid
5
+ * while focused, its words at rest.text and its hint and glyphs at hint.text. Solid, it is a recess: the secondary
6
+ * surface, the primary text role.
7
+ *
8
+ * THE HEIGHT COMES FROM THE SEND. The send stands in the pill's end as a disc concentric with it, so the room round
9
+ * it is the same on every side; the words' line is centred on the send's height. One line is the rung exactly, with or
10
+ * without a send.
11
+ *
12
+ * LENGTHS IT DECIDES:
13
+ * 40px / 32px `sm`, the pill and its send (Show's notes)
14
+ * 44px / 36px `md` (a thread's comment box)
15
+ * 48px / 36px `lg` (a chat's composer)
16
+ * 56px / 40px `xl` (the launcher's field)
17
+ * 1px the edge, transparent unless glass paints it
18
+ * half the rung its corners, kept as it grows, so one line is a pill and many a rounded panel
19
+ * 12px the grip's strip across the top (`resize`), and in it a 2.5rem by 4px bar, 4px down: above the
20
+ * first line's words on the smallest rung */
21
+
22
+ .newtone-prompt-field {
23
+ --_prompt-field-box: 48px;
24
+ --_prompt-field-send: 36px;
25
+ /* The room round the send, inside the 1px edge. */
26
+ --_prompt-field-pad: calc((var(--_prompt-field-box) - var(--_prompt-field-send)) / 2 - 1px);
27
+ position: relative;
28
+ display: flex;
29
+ align-items: flex-end;
30
+ gap: var(--newtone-space-1);
31
+ box-sizing: border-box;
32
+ inline-size: 100%;
33
+ min-inline-size: 0;
34
+ min-block-size: var(--_prompt-field-box);
35
+ padding: var(--_prompt-field-pad);
36
+ border: 1px solid transparent;
37
+ border-radius: calc(var(--_prompt-field-box) / 2);
38
+ background: var(--newtone-role-surface-secondary);
39
+ color: var(--newtone-role-text-primary);
40
+ font-family: var(--newtone-text-scale-body-family);
41
+ font-variation-settings: var(--newtone-text-scale-body-variation);
42
+ font-size: var(--newtone-text-scale-body-size);
43
+ line-height: var(--newtone-text-scale-body-leading);
44
+ letter-spacing: var(--newtone-text-scale-body-tracking);
45
+ }
46
+ .newtone-prompt-field[data-size='sm'],
47
+ .newtone-prompt-field[data-size='md'] {
48
+ font-family: var(--newtone-text-scale-body-sm-family);
49
+ font-variation-settings: var(--newtone-text-scale-body-sm-variation);
50
+ font-size: var(--newtone-text-scale-body-sm-size);
51
+ line-height: var(--newtone-text-scale-body-sm-leading);
52
+ letter-spacing: var(--newtone-text-scale-body-sm-tracking);
53
+ }
54
+ .newtone-prompt-field[data-size='sm'] {
55
+ --_prompt-field-box: 40px;
56
+ --_prompt-field-send: 32px;
57
+ }
58
+ .newtone-prompt-field[data-size='md'] {
59
+ --_prompt-field-box: 44px;
60
+ --_prompt-field-send: 36px;
61
+ }
62
+ .newtone-prompt-field[data-size='xl'] {
63
+ --_prompt-field-box: 56px;
64
+ --_prompt-field-send: 40px;
65
+ }
66
+
67
+ /* The words: one line centred on the send's height; multiline, growing to `lines` (and no taller than its room), then
68
+ * scrolling. */
69
+ .newtone-prompt-field-input {
70
+ flex: 1 1 auto;
71
+ box-sizing: border-box;
72
+ min-inline-size: 0;
73
+ min-block-size: var(--_prompt-field-send);
74
+ margin: 0;
75
+ padding: calc((var(--_prompt-field-send) - 1lh) / 2) var(--newtone-space-2);
76
+ border: 0;
77
+ outline: none;
78
+ resize: none;
79
+ background: transparent;
80
+ color: inherit;
81
+ font: inherit;
82
+ letter-spacing: inherit;
83
+ }
84
+ textarea.newtone-prompt-field-input {
85
+ field-sizing: content;
86
+ max-block-size: min(
87
+ calc(var(--_prompt-field-lines, 8) * 1lh + var(--_prompt-field-send) - 1lh),
88
+ calc(var(--_prompt-field-room, 100vh) - var(--_prompt-field-box) + var(--_prompt-field-send))
89
+ );
90
+ overflow-y: auto;
91
+ }
92
+ /* Dragged to a height: the words fill it and scroll. */
93
+ textarea.newtone-prompt-field-input[data-sized] {
94
+ align-self: stretch;
95
+ field-sizing: fixed;
96
+ block-size: auto;
97
+ max-block-size: none;
98
+ }
99
+ .newtone-prompt-field-input::placeholder,
100
+ .newtone-prompt-field-hint {
101
+ color: var(--newtone-role-text-secondary);
102
+ }
103
+
104
+ /* Folded (`fold`): its first line, cut with an ellipsis, as a button that opens it. */
105
+ .newtone-prompt-field-folded {
106
+ all: unset;
107
+ flex: 1 1 auto;
108
+ box-sizing: border-box;
109
+ display: flex;
110
+ align-items: center;
111
+ min-inline-size: 0;
112
+ min-block-size: var(--_prompt-field-send);
113
+ padding-inline: var(--newtone-space-2);
114
+ cursor: text;
115
+ }
116
+ .newtone-prompt-field-folded:focus-visible {
117
+ outline: 2px solid var(--newtone-role-text-accent);
118
+ outline-offset: -2px;
119
+ border-radius: calc(var(--_prompt-field-send) / 2);
120
+ }
121
+ .newtone-prompt-field-words {
122
+ display: block;
123
+ min-inline-size: 0;
124
+ overflow: hidden;
125
+ text-overflow: ellipsis;
126
+ white-space: nowrap;
127
+ }
128
+
129
+ /* What stands before and after the words: centred on the send's height, so they stay on the last line's level. */
130
+ .newtone-prompt-field-slot {
131
+ display: inline-flex;
132
+ align-items: center;
133
+ flex: none;
134
+ gap: var(--newtone-space-1);
135
+ min-block-size: var(--_prompt-field-send);
136
+ color: var(--newtone-role-text-secondary);
137
+ }
138
+ .newtone-prompt-field-end {
139
+ color: inherit;
140
+ }
141
+
142
+ /* The built-in send: a disc the send's size. With words, a primary Button's fill (on glass, raised: material.css);
143
+ * empty or working, no fill and the disabled ink. Hover and press are written under `:where` so the glass, when it
144
+ * raises it, wins. */
145
+ .newtone-prompt-field-send {
146
+ all: unset;
147
+ flex: none;
148
+ box-sizing: border-box;
149
+ display: inline-grid;
150
+ place-items: center;
151
+ inline-size: var(--_prompt-field-send);
152
+ block-size: var(--_prompt-field-send);
153
+ border: 1px solid transparent;
154
+ border-radius: 50%;
155
+ background: var(--newtone-button-primary-rest-fill);
156
+ color: var(--newtone-button-primary-rest-text);
157
+ cursor: pointer;
158
+ }
159
+ .newtone-prompt-field-send:where(:hover) {
160
+ background: var(--newtone-button-primary-hover-fill);
161
+ }
162
+ .newtone-prompt-field-send:where(:active) {
163
+ background: var(--newtone-button-primary-pressed-fill);
164
+ }
165
+ .newtone-prompt-field-send:where(:disabled) {
166
+ background: transparent;
167
+ color: var(--newtone-role-text-disabled);
168
+ cursor: default;
169
+ }
170
+ .newtone-prompt-field-send:focus-visible {
171
+ outline: 2px solid var(--newtone-role-text-accent);
172
+ outline-offset: 2px;
173
+ }
174
+
175
+ /* `resize`: the grip across its top, always shown. */
176
+ .newtone-prompt-field-grip {
177
+ position: absolute;
178
+ inset-block-start: 0;
179
+ inset-inline: 0;
180
+ z-index: 1;
181
+ block-size: 12px;
182
+ cursor: ns-resize;
183
+ touch-action: none;
184
+ outline: none;
185
+ }
186
+ .newtone-prompt-field-grip::after {
187
+ content: '';
188
+ position: absolute;
189
+ inset-block-start: 4px;
190
+ inset-inline-start: 50%;
191
+ inline-size: 2.5rem;
192
+ block-size: 4px;
193
+ margin-inline-start: -1.25rem;
194
+ border-radius: 999px;
195
+ background: var(--newtone-role-divider-primary);
196
+ }
197
+ .newtone-prompt-field-grip:hover::after,
198
+ .newtone-prompt-field-grip[data-dragging]::after {
199
+ background: var(--newtone-role-text-secondary);
200
+ }
201
+ .newtone-prompt-field-grip:focus-visible::after {
202
+ background: var(--newtone-role-text-accent);
203
+ }
@@ -0,0 +1,72 @@
1
+ import { type KeyboardEvent, type ReactNode, type Ref, type TextareaHTMLAttributes } from 'react';
2
+ /**
3
+ * Four rungs (Joshua 2026-11-11), each the height one line of it keeps today: `sm` 40 (Show's notes), `md` 44 (a
4
+ * thread's comment box), `lg` 48 (a chat's composer), `xl` 56 (the launcher's field).
5
+ */
6
+ export type PromptFieldSize = 'sm' | 'md' | 'lg' | 'xl';
7
+ /** The built-in send: a round button with an arrow, named. */
8
+ export interface PromptFieldSend {
9
+ /** Its accessible name: "Send". */
10
+ label: string;
11
+ /** An `Icon` name in place of the arrow (`arrow_upward`). */
12
+ icon?: string;
13
+ }
14
+ export interface PromptFieldProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'defaultValue' | 'onChange' | 'onSubmit' | 'onKeyDown' | 'children' | 'rows' | 'cols' | 'wrap' | 'placeholder' | 'aria-label'> {
15
+ /** Its accessible name, always: the field has no visible label. */
16
+ label: string;
17
+ value: string;
18
+ /** Each change, with where the caret stands after it (a mention list reads the words before it). */
19
+ onValueChange: (value: string, caret: number) => void;
20
+ /**
21
+ * Enter (not with Shift, not while an input method composes, not on a touch screen's return key in a multiline
22
+ * field) and the built-in send: the words trimmed. Empty words, or `busy`, send nothing. Left out, Enter is a new
23
+ * line in a multiline field.
24
+ */
25
+ onSubmit?: (value: string) => void;
26
+ placeholder?: string;
27
+ /** A field that grows from one line to `lines`, then scrolls. Left out, one line (an `<input>`). */
28
+ multiline?: boolean;
29
+ /** How many lines a multiline field grows to before it scrolls. 8 by default. */
30
+ lines?: number;
31
+ /** `lg` (48) by default. */
32
+ size?: PromptFieldSize;
33
+ /** Before the words: a glyph, an attach button, chips. */
34
+ leading?: ReactNode;
35
+ /** After the words, before the send: other controls. */
36
+ trailing?: ReactNode;
37
+ /**
38
+ * The send at its end. An object gives the built-in round send; a node is used as given (an `AskButton`, whose
39
+ * `onClick` the caller wires).
40
+ */
41
+ send?: PromptFieldSend | ReactNode;
42
+ /** Working: the send waits and Enter sends nothing; the words stay editable. */
43
+ busy?: boolean;
44
+ /** Multiline: at rest its first line only, cut with an ellipsis; pressed or focused, it opens. */
45
+ fold?: boolean;
46
+ /** Multiline: a grip on its top to drag its height (below/grip.ts). Its words: the grip's name ("Resize notes"). */
47
+ resize?: {
48
+ label: string;
49
+ };
50
+ /** The height dragged to, in px, or null (one line). Left out, the field keeps its own. */
51
+ height?: number | null;
52
+ onHeight?: (px: number | null) => void;
53
+ /** The `<input>` or `<textarea>`. */
54
+ inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
55
+ /**
56
+ * Runs first. `e.preventDefault()` skips the field's own Enter (a mention list, a launcher's listbox that takes the
57
+ * key itself).
58
+ */
59
+ onKeyDown?: (e: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
60
+ }
61
+ /**
62
+ * The major input (Joshua 2026-11-11): the sentence a person came to say, to the assistant, a thread, a chat. **Glass at
63
+ * rest and solid while focused**, so what passes behind it softens to colour and what is typed reads on a plain fill.
64
+ * Its words on glass are pure black or white, quieter at rest (75%), the hint and glyphs at 50%. A property value
65
+ * ("4px") goes in a TextField or NumberField, never here. It is not a `<form>`, so it sits inside one.
66
+ *
67
+ * It wears the material above it (`useMaterial()`): solid inside a solid boundary (a thread card that holds comments),
68
+ * glass anywhere else, crystal included (a field over the screen is on the glass). Blueprint components/prompt-field.md,
69
+ * contract contracts/prompt-field.md.
70
+ */
71
+ export declare function PromptField({ label, value, onValueChange, onSubmit, placeholder, multiline, lines, size, leading, trailing, send, busy, fold, resize, height, onHeight, inputRef, onKeyDown, onBlur, className, style, readOnly, ...rest }: PromptFieldProps): import("react").JSX.Element;
72
+ //# sourceMappingURL=prompt-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-field.d.ts","sourceRoot":"","sources":["../../src/prompt-field/prompt-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAUH,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,sBAAsB,EAC9B,MAAM,OAAO,CAAA;AAMd;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,8DAA8D;AAC9D,MAAM,WAAW,eAAe;IAC5B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,gBACb,SAAQ,IAAI,CACR,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,YAAY,CAC1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WAAW,EACX,SAAiB,EACjB,KAAS,EACT,IAAW,EACX,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,IAAY,EACZ,IAAY,EACZ,MAAM,EACN,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,gBAAgB,+BA6HlB"}
@@ -0,0 +1,91 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { isValidElement, useContext, useEffect, useLayoutEffect, useRef, useState, } from 'react';
4
+ import { Icon } from '../icon/icon.js';
5
+ import { MaterialContext, useMaterial } from '../material/material.js';
6
+ import { BelowRoom } from '../below/room.js';
7
+ import { useGrip } from '../below/grip.js';
8
+ const SEND_GLYPH = 'arrow_upward';
9
+ /**
10
+ * The major input (Joshua 2026-11-11): the sentence a person came to say, to the assistant, a thread, a chat. **Glass at
11
+ * rest and solid while focused**, so what passes behind it softens to colour and what is typed reads on a plain fill.
12
+ * Its words on glass are pure black or white, quieter at rest (75%), the hint and glyphs at 50%. A property value
13
+ * ("4px") goes in a TextField or NumberField, never here. It is not a `<form>`, so it sits inside one.
14
+ *
15
+ * It wears the material above it (`useMaterial()`): solid inside a solid boundary (a thread card that holds comments),
16
+ * glass anywhere else, crystal included (a field over the screen is on the glass). Blueprint components/prompt-field.md,
17
+ * contract contracts/prompt-field.md.
18
+ */
19
+ export function PromptField({ label, value, onValueChange, onSubmit, placeholder, multiline = false, lines = 8, size = 'lg', leading, trailing, send, busy = false, fold = false, resize, height, onHeight, inputRef, onKeyDown, onBlur, className, style, readOnly, ...rest }) {
20
+ const material = useMaterial() === 'solid' ? 'solid' : 'glass';
21
+ const root = useRef(null);
22
+ const own = useRef(null);
23
+ const room = useContext(BelowRoom);
24
+ const g = useGrip({ size: height, onSize: onHeight, box: root });
25
+ const sized = multiline && resize ? g.sized : null;
26
+ const [open, setOpen] = useState(false);
27
+ // Folded: one quiet line until pressed or focused, unless dragged open.
28
+ const folded = multiline && fold && !open && sized === null;
29
+ const words = value.trim();
30
+ const setRef = (el) => {
31
+ own.current = el;
32
+ if (typeof inputRef === 'function')
33
+ inputRef(el);
34
+ else if (inputRef)
35
+ inputRef.current = el;
36
+ };
37
+ // Opened from its folded line, the field takes the focus.
38
+ useEffect(() => {
39
+ if (open)
40
+ own.current?.focus({ preventScroll: true });
41
+ }, [open]);
42
+ // A browser without `field-sizing` grows the field by its scroll height, as Thread's field did.
43
+ useLayoutEffect(() => {
44
+ const t = own.current;
45
+ if (!multiline || sized !== null || !t || typeof CSS === 'undefined' || CSS.supports('field-sizing', 'content'))
46
+ return;
47
+ t.style.blockSize = 'auto';
48
+ t.style.blockSize = `${t.scrollHeight}px`;
49
+ }, [value, multiline, sized, folded]);
50
+ const submit = () => {
51
+ if (!words || busy || readOnly)
52
+ return;
53
+ onSubmit?.(words);
54
+ };
55
+ const keys = (e) => {
56
+ onKeyDown?.(e);
57
+ // With nothing to send to (Show's notes), Enter is a new line, as in any field of words.
58
+ if (!onSubmit || e.defaultPrevented || e.key !== 'Enter' || e.shiftKey || e.nativeEvent.isComposing || e.keyCode === 229)
59
+ return;
60
+ // On a touch screen a multiline field's return key is a new line, and the send sends.
61
+ if (multiline && typeof window !== 'undefined' && window.matchMedia?.('(hover: none) and (pointer: coarse)').matches)
62
+ return;
63
+ e.preventDefault();
64
+ submit();
65
+ };
66
+ const builtIn = send != null && typeof send === 'object' && !isValidElement(send) && 'label' in send;
67
+ const sendEl = builtIn ? (_jsx("button", { type: "button", className: ['newtone-prompt-field-send', words && !busy && !readOnly ? 'newtone-glass--action' : null].filter(Boolean).join(' '), "aria-label": send.label, title: send.label, disabled: !words || busy || readOnly, onClick: submit, children: _jsx(Icon, { name: send.icon ?? SEND_GLYPH, size: "sm" }) })) : send != null && send !== false ? (_jsx("span", { className: "newtone-prompt-field-slot newtone-prompt-field-end", children: send })) : null;
68
+ const first = value.split('\n').find((l) => l.trim()) ?? '';
69
+ const common = {
70
+ ...rest,
71
+ className: 'newtone-prompt-field-input',
72
+ 'aria-label': label,
73
+ value,
74
+ placeholder,
75
+ readOnly,
76
+ onKeyDown: keys,
77
+ onBlur: (e) => {
78
+ setOpen(false);
79
+ onBlur?.(e);
80
+ },
81
+ };
82
+ const field = folded ? (_jsx("button", { type: "button", className: "newtone-prompt-field-folded", "aria-label": first ? `${label}: ${first}` : label, onClick: () => setOpen(true), children: _jsx("span", { className: first ? 'newtone-prompt-field-words' : 'newtone-prompt-field-words newtone-prompt-field-hint', children: first || placeholder }) })) : multiline ? (_jsx("textarea", { ...common, ref: setRef, rows: 1, "data-sized": sized !== null ? '' : undefined, onChange: (e) => onValueChange(e.target.value, e.target.selectionStart) })) : (_jsx("input", { ...common, ref: setRef, type: "text", onChange: (e) => onValueChange(e.target.value, e.target.selectionStart ?? e.target.value.length) }));
83
+ const vars = {
84
+ '--_prompt-field-lines': lines,
85
+ ...(room != null ? { '--_prompt-field-room': `${room}px` } : {}),
86
+ ...(sized !== null ? { blockSize: sized } : {}),
87
+ ...style,
88
+ };
89
+ return (_jsx(MaterialContext.Provider, { value: material, children: _jsxs("div", { ref: root, className: ['newtone-prompt-field', 'newtone-glass--field', className].filter(Boolean).join(' '), "data-newtone-material": material, "data-size": size, "data-multiline": multiline ? '' : undefined, "data-folded": folded ? '' : undefined, "data-sized": sized !== null ? '' : undefined, "data-resizable": multiline && resize ? '' : undefined, "data-busy": busy ? '' : undefined, style: vars, children: [multiline && resize ? _jsx("div", { className: "newtone-prompt-field-grip", "aria-label": resize.label, ...g.props }) : null, leading ? _jsx("span", { className: "newtone-prompt-field-slot", children: leading }) : null, field, trailing ? _jsx("span", { className: "newtone-prompt-field-slot", children: trailing }) : null, sendEl] }) }));
90
+ }
91
+ //# sourceMappingURL=prompt-field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-field.js","sourceRoot":"","sources":["../../src/prompt-field/prompt-field.tsx"],"names":[],"mappings":"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AAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,eACzC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAChC,KAAK,EAAE,IAAI,aAEV,SAAS,IAAI,MAAM,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,2BAA2B,gBAAa,MAAM,CAAC,KAAK,KAAM,CAAC,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACjH,OAAO,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,2BAA2B,YAAE,OAAO,GAAQ,CAAC,CAAC,CAAC,IAAI,EAC7E,KAAK,EACL,QAAQ,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,2BAA2B,YAAE,QAAQ,GAAQ,CAAC,CAAC,CAAC,IAAI,EAC/E,MAAM,IACL,GACiB,CAC9B,CAAA;AACL,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** The door. See the repo blueprint, section 4.1. */
2
2
  export { QuickAction } from './quick-action.js';
3
- export type { QuickActionProps } from './quick-action.js';
3
+ export type { QuickActionProps, QuickActionSize, QuickActionVariant } from './quick-action.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quick-action/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quick-action/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
@@ -3,7 +3,8 @@
3
3
  *
4
4
  * ---- the size is a ladder now, and the knob it replaced is deleted -------
5
5
  *
6
- * TWO RUNGS, 48 AND 56, `lg` BY DEFAULT -- which is the 3.5rem the deleted knob already held.
6
+ * FOUR RUNGS, 36, 40, 48 AND 56, `lg` (48) BY DEFAULT (Joshua 2026-11-11). Before that it had two,
7
+ * 48 and 56, and the default was 56, the 3.5rem the deleted knob already held.
7
8
  * `--newtone-quick-action-size` was one custom property a caller retuned in its own scope, taken
8
9
  * from `Avatar` rather than re-derived, on the reasoning that *a ladder sized from the call sites a
9
10
  * library happens to know about leaves the next one off every rung*.
@@ -12,7 +13,7 @@
12
13
  * sized from call sites: four components in this library had reached 44 and 56 on 14/20 and 16/24
13
14
  * separately, THIS ONE AMONG THEM, before there was a ladder to be a rung of. The knob is deleted
14
15
  * rather than kept beside `size` because two ways to say one thing is the shape this library
15
- * refuses, and it had no call sites at all -- issues/open/154, issues/open/201.
16
+ * refuses, and it had no call sites at all -- issues/done/154, issues/open/201.
16
17
  *
17
18
  * The reference narrows its circle on a phone inside the media query that hands its dock back,
18
19
  * which is a fact about that shell and not about this component: whatever pins the circle owns
@@ -32,18 +33,29 @@
32
33
  * follow the circle's ink through every state without the caller painting it -- the same three
33
34
  * lines `icon-link.css` spends for the same reason.
34
35
  *
35
- * ---- THERE IS NO SHADOW, and the component is weaker for it --------------
36
+ * ---- the lift is the glass's, and this sheet draws only the flat disc ----
36
37
  *
37
- * The reference lifts this circle on `--shadow-l` at rest and further on hover, on the argument
38
- * that a control on screen for a whole visit must separate itself by depth rather than by hue.
39
- * **Newtone has no shadow vocabulary and no motion vocabulary**, so the lift and the 2px translate
40
- * are both gone rather than hard-coded here. What separates the disc instead is a 1px rim, present
41
- * in every state so the box never changes size. On a busy ground that is genuinely less separation
42
- * than the reference achieves, and the fix is a token group rather than a declaration in this file. */
38
+ * Inside glass the disc is raised (Joshua 2026-11-11): the wash, the lit edge and the low shadow
39
+ * cast in black, written once in material.css, the only sheet that names them. Outside glass it
40
+ * is this sheet's flat disc, separated by a 1px rim present in every state so the box never
41
+ * changes size. `primary` takes a primary Button's fills.
42
+ *
43
+ * LENGTHS IT DECIDES:
44
+ * 36px `sm`, 40px `md`: two rungs the quick-action slice has no token for (its own two are 48
45
+ * and 56, Action's), so they are written here; contracts/button.md, *Sizes*
46
+ * 20px the mark on 36 and 40, 24px on 48 and 56: the glyph that pairs with each half of the
47
+ * ladder (14/20 and 16/24)
48
+ * 14.6% where a badge's centre stands in from the box's corner: on the outline at 45 degrees */
49
+
50
+ /* Its badge comes with it. */
51
+ @import '../badge/badge.css';
43
52
 
44
53
  .newtone-quick-action {
54
+ position: relative;
45
55
  display: inline-grid;
46
56
  place-items: center;
57
+ box-sizing: border-box;
58
+ --_badge-inset: 14.6%;
47
59
  /* THE RUNG SETS `--newtone-quick-action-box` BELOW and this reads it, so the disc is one
48
60
  * declaration per rung rather than a copy of the block. contracts/button.md, *Sizes*. */
49
61
  inline-size: var(--newtone-quick-action-box);
@@ -64,20 +76,34 @@
64
76
 
65
77
  /* ---- the rungs ----------------------------------------------------------
66
78
  *
67
- * 48 and 56, the same two `Action` takes. `--newtone-quick-action-size` was one knob a consumer
68
- * retuned and is deleted rather than kept beside these -- issues/open/201, and it had no call
69
- * sites. contracts/button.md, *Sizes*. */
79
+ * 36, 40, 48 and 56 (Joshua 2026-11-11). The token slice's `size.sm` (48) and `size.lg` (56) are
80
+ * this component's `lg` and `xl`; `--newtone-quick-action-size` was one knob a consumer retuned and
81
+ * is deleted rather than kept beside these -- issues/open/201. contracts/button.md, *Sizes*. */
70
82
  .newtone-quick-action--sm {
71
- --newtone-quick-action-box: var(--newtone-quick-action-size-sm);
83
+ --newtone-quick-action-box: 36px;
84
+ --_quick-action-mark: 20px;
85
+ }
86
+
87
+ .newtone-quick-action--md {
88
+ --newtone-quick-action-box: 40px;
89
+ --_quick-action-mark: 20px;
72
90
  }
73
91
 
74
92
  .newtone-quick-action--lg {
93
+ --newtone-quick-action-box: var(--newtone-quick-action-size-sm);
94
+ --_quick-action-mark: 24px;
95
+ }
96
+
97
+ .newtone-quick-action--xl {
75
98
  --newtone-quick-action-box: var(--newtone-quick-action-size-lg);
99
+ --_quick-action-mark: 24px;
76
100
  }
77
101
 
78
- .newtone-quick-action > * {
79
- inline-size: 1.5rem;
80
- block-size: 1.5rem;
102
+ /* The mark, whatever arrives: an `Icon` sizes itself (its `size` prop), anything else (a vendored svg) takes the
103
+ * rung's glyph. The badge is not the mark. */
104
+ .newtone-quick-action > :not(.newtone-badge, .newtone-icon) {
105
+ inline-size: var(--_quick-action-mark);
106
+ block-size: var(--_quick-action-mark);
81
107
  fill: currentColor;
82
108
  }
83
109
 
@@ -87,12 +113,29 @@
87
113
  border-color: var(--newtone-quick-action-hover-border);
88
114
  }
89
115
 
90
- .newtone-quick-action:active {
116
+ .newtone-quick-action:is(:active, [aria-pressed='true']) {
91
117
  background: var(--newtone-quick-action-pressed-fill);
92
118
  color: var(--newtone-quick-action-pressed-text);
93
119
  border-color: var(--newtone-quick-action-pressed-border);
94
120
  }
95
121
 
122
+ /* `primary`: a primary Button's fills, flat. */
123
+ .newtone-quick-action--primary {
124
+ background: var(--newtone-button-primary-rest-fill);
125
+ color: var(--newtone-button-primary-rest-text);
126
+ border-color: var(--newtone-button-primary-rest-border);
127
+ }
128
+ .newtone-quick-action--primary:hover {
129
+ background: var(--newtone-button-primary-hover-fill);
130
+ color: var(--newtone-button-primary-hover-text);
131
+ border-color: var(--newtone-button-primary-hover-border);
132
+ }
133
+ .newtone-quick-action--primary:is(:active, [aria-pressed='true']) {
134
+ background: var(--newtone-button-primary-pressed-fill);
135
+ color: var(--newtone-button-primary-pressed-text);
136
+ border-color: var(--newtone-button-primary-pressed-border);
137
+ }
138
+
96
139
  .newtone-quick-action:focus-visible {
97
140
  outline: 2px solid var(--newtone-quick-action-focus-ring);
98
141
  outline-offset: 2px;
@@ -1,17 +1,18 @@
1
1
  import type { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  /**
3
- * Two rungs of the ladder's five: **48 and 56**, the same two `Action` takes.
3
+ * Four rungs of the ladder's five: **36, 40, 48 and 56** (Joshua 2026-11-11, when it was revived as the general round
4
+ * action). Before, it had two, 48 and 56, the two `Action` takes; Action keeps those. Nothing rendered one, so the
5
+ * names moved for free: what was `sm` (48) is now `lg`, what was `lg` (56) is `xl`. contracts/button.md, *Sizes*.
4
6
  *
5
7
  * THIS COMPONENT ARGUED AGAINST A LADDER AND THE ARGUMENT WAS RIGHT. It shipped a single
6
8
  * `--newtone-quick-action-size` knob instead, on `Avatar`'s reasoning: *a ladder sized from the
7
- * call sites a library happens to know about leaves the next one off every rung.*
8
- *
9
- * WHAT CHANGED ON 2026-09-21 IS NOT THE ARGUMENT. It is that the ladder stopped being sized from
10
- * call sites -- four components in this library had reached 44 and 56 on 14/20 and 16/24
11
- * separately, **this one among them at 3.5rem, before there was a ladder to be a rung of**. Joining
12
- * costs no prediction. governance/code/a-controls-size-is-one-rung-and-the-rung-carries-everything.md.
9
+ * call sites a library happens to know about leaves the next one off every rung.* What changed on
10
+ * 2026-09-21 is that the ladder stopped being sized from call sites.
11
+ * governance/code/a-controls-size-is-one-rung-and-the-rung-carries-everything.md.
13
12
  */
14
- export type QuickActionSize = 'sm' | 'lg';
13
+ export type QuickActionSize = 'sm' | 'md' | 'lg' | 'xl';
14
+ /** `neutral` takes the ground's own colours; `primary` is the accent fill, a primary Button's. */
15
+ export type QuickActionVariant = 'neutral' | 'primary';
15
16
  interface QuickActionCommon {
16
17
  /**
17
18
  * The accessible name, and the only name this control has. **Never rendered** -- the mark is
@@ -25,11 +26,19 @@ interface QuickActionCommon {
25
26
  * ligature. A slot renders both; a name prop renders one.
26
27
  */
27
28
  children: ReactNode;
29
+ /** Which rung: 36, 40, 48 or 56. Defaults to `lg`, 48. */
30
+ size?: QuickActionSize;
31
+ /** `neutral` by default. */
32
+ variant?: QuickActionVariant;
28
33
  /**
29
- * Which rung: 48 or 56. Defaults to `lg`, which is 56 -- the value the deleted knob already
30
- * had, so nothing that renders one would move. Nothing renders one.
34
+ * On, it stays pressed (`aria-pressed`): what it opens is open. Left out, it is not a toggle. A link takes none.
31
35
  */
32
- size?: QuickActionSize;
36
+ pressed?: boolean;
37
+ /**
38
+ * Something waits behind it: `true` a dot, a number a count (99+ past 99), 0 or false nothing. A `Badge` on its
39
+ * outline at 45 degrees. Hidden from a screen reader, so `label` says the count ("Ask, 2 replies").
40
+ */
41
+ badge?: number | boolean;
33
42
  }
34
43
  export type QuickActionProps = QuickActionCommon & ((Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'aria-label'> & {
35
44
  href?: undefined;
@@ -52,17 +61,14 @@ export type QuickActionProps = QuickActionCommon & ((Omit<ButtonHTMLAttributes<H
52
61
  * That is issues/open/201 arriving early: a consumer writes no Newtone property, and what replaces
53
62
  * one is a prop.
54
63
  *
55
- * ---- NOTHING RENDERS ONE, and that is recorded rather than smoothed over --
64
+ * ---- it sat two months with nothing rendering it --------------------------
56
65
  *
57
66
  * **Ported 2026-09-16 from `~/Projects/Harbour Space/-harbour-space-design-system` with zero call
58
- * sites anywhere in this house.** It is the only component in this library in that position, and
59
- * the only one whose shape was settled by reading a reference rather than by a consumer pushing on
60
- * it -- which is the thing the preamble refuses, built anyway on an explicit decision after the
61
- * cost was put on the table. `production/newtone/ui_react-web/_issues/open/154-the-round-action-nothing-presses.md`.
62
- *
63
- * **So every refusal below is argued from the reference and from sibling components, and none of
64
- * them has been tested.** They may all be right. Whoever gives this a consumer should expect to
65
- * change some of them, which is what happened to `Control` within hours of it landing.
67
+ * sites anywhere in this house**, its shape settled by reading a reference rather than by a consumer
68
+ * pushing on it. `production/newtone/ui_react-web/_issues/done/154-the-round-action-nothing-presses.md`.
69
+ * Revived 2026-11-11 (Joshua) as the general round action: AskButton is one, and HuevOS People's
70
+ * "+" renders one. The refusals below were argued from the reference before any of that; expect a
71
+ * consumer to change some of them.
66
72
  *
67
73
  * ---- no brand variant ----------------------------------------------------
68
74
  *
@@ -71,18 +77,18 @@ export type QuickActionProps = QuickActionCommon & ((Omit<ButtonHTMLAttributes<H
71
77
  * a client, and a licensed asset lives with its licence holder -- *the library learns to express a
72
78
  * thing, it never carries it.* The slot above is what replaces it.
73
79
  *
74
- * ---- no `disabled`, and no shadow ----------------------------------------
80
+ * ---- no `disabled`; raised on glass, flat off it --------------------------
75
81
  *
76
82
  * `disabled` is absent for `Action`'s reason, which is stronger here: an unavailable action that is
77
83
  * on screen for the entire visit is worse than one that is not there.
78
84
  *
79
- * **The shadow is the one thing this visibly lost.** The reference's whole colour argument is that
80
- * the circle takes the surface's own ground and is lifted by depth rather than by hue, because it
81
- * must not compete with the page for a whole scroll. Newtone has no shadow vocabulary, so the lift
82
- * is dropped rather than hard-coded, and a rim does the separating instead. On a busy ground this
83
- * is genuinely weaker than the component it came from, and the fix is a vocabulary rather than
84
- * anything in this folder -- `newtone_ui_tokens.md` section 8, *Shadows, blur, spread*.
85
+ * **Inside glass it is raised** (Joshua 2026-11-11): the glass wash, the lit edge and the close
86
+ * shadow cast in black, which is the lift the reference had and this lost while Newtone had no
87
+ * shadow vocabulary. `primary` wears the accent glass; pressed, it sits down to the contact shadow.
88
+ * **Outside glass it is a flat disc** with a 1px rim. It reads the material from the DOM attribute
89
+ * (material.css), so it stays a server component. AskButton is this, `primary`, always on glass.
90
+ * Revived 2026-11-11, closing issues/done/154.
85
91
  */
86
- export declare function QuickAction({ label, children, size, className, ...rest }: QuickActionProps): import("react").JSX.Element;
92
+ export declare function QuickAction({ label, children, size, variant, pressed, badge, className, ...rest }: QuickActionProps): import("react").JSX.Element;
87
93
  export {};
88
94
  //# sourceMappingURL=quick-action.d.ts.map