viewkitjs 0.27.0 → 0.29.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 (469) hide show
  1. package/CHANGELOG.md +178 -0
  2. package/MIGRATION.md +123 -5
  3. package/fields/dist/derived.d.ts +2 -1
  4. package/fields/dist/derived.js +9 -3
  5. package/fields/dist/entities.js +41 -3
  6. package/fields/dist/index.d.ts +1 -1
  7. package/fields/dist/index.js +1 -1
  8. package/fields/dist/messages.d.ts +8 -2
  9. package/fields/dist/messages.js +3 -0
  10. package/fields/dist/range.d.ts +6 -0
  11. package/fields/dist/range.js +8 -0
  12. package/fields/dist/registry.js +11 -1
  13. package/fields/dist/spec-changes.js +1 -0
  14. package/fields/dist/types.d.ts +23 -1
  15. package/fields/docs/guides/derived-fields.md +7 -5
  16. package/fields/docs/guides/field-types.md +2 -2
  17. package/fields/docs/guides/the-index.md +1 -1
  18. package/fields/docs/reference/fields.md +3 -1
  19. package/fields/docs/reference/types.md +3 -1
  20. package/fields/skills/viewkit/SKILL.md +1 -1
  21. package/package.json +2 -1
  22. package/postgres/dist/definitions/build.js +29 -5
  23. package/postgres/dist/definitions/label.d.ts +7 -0
  24. package/postgres/dist/definitions/label.js +9 -1
  25. package/postgres/dist/definitions/lookup.js +6 -2
  26. package/postgres/dist/definitions/place.d.ts +6 -3
  27. package/postgres/dist/definitions/rollup.js +5 -1
  28. package/postgres/dist/definitions/storage.d.ts +15 -0
  29. package/postgres/dist/definitions/storage.js +52 -1
  30. package/postgres/dist/definitions/stored.js +21 -0
  31. package/postgres/dist/phone.d.ts +13 -1
  32. package/postgres/dist/phone.js +23 -3
  33. package/postgres/dist/search-indexes.d.ts +6 -1
  34. package/postgres/dist/search-indexes.js +71 -25
  35. package/postgres/dist/search.js +3 -3
  36. package/postgres/docs/guides/definitions.md +22 -5
  37. package/postgres/docs/guides/field-map.md +5 -4
  38. package/postgres/docs/reference/definitions.md +3 -3
  39. package/postgres/docs/reference/postgres.md +1 -1
  40. package/views/dist/cells/cell-format.d.ts +3 -1
  41. package/views/dist/cells/cell-format.js +3 -3
  42. package/views/dist/cells/cell-values.js +9 -10
  43. package/views/dist/cells/use-cell-format.d.ts +8 -1
  44. package/views/dist/cells/use-cell-format.js +13 -2
  45. package/views/dist/contract.d.ts +218 -5
  46. package/views/dist/contract.js +233 -1
  47. package/views/dist/controls/alert/alert.d.ts +46 -0
  48. package/views/dist/controls/alert/alert.js +11 -0
  49. package/views/dist/controls/alert/looks.d.ts +4 -0
  50. package/views/dist/controls/alert/looks.js +19 -0
  51. package/views/dist/controls/alert/tokens.d.ts +92 -0
  52. package/views/dist/controls/alert/tokens.js +25 -0
  53. package/views/dist/controls/alert-dialog/alert-dialog.d.ts +50 -0
  54. package/views/dist/controls/alert-dialog/alert-dialog.js +67 -0
  55. package/views/dist/controls/alert-dialog/confirm.d.ts +13 -0
  56. package/views/dist/controls/alert-dialog/confirm.js +11 -0
  57. package/views/dist/controls/alert-dialog/looks.d.ts +4 -0
  58. package/views/dist/controls/alert-dialog/looks.js +17 -0
  59. package/views/dist/controls/alert-dialog/tokens.d.ts +119 -0
  60. package/views/dist/controls/alert-dialog/tokens.js +32 -0
  61. package/views/dist/controls/alert-dialog.css +95 -0
  62. package/views/dist/controls/alert.css +51 -0
  63. package/views/dist/controls/bulk-bar/bulk-bar-of.d.ts +66 -0
  64. package/views/dist/controls/bulk-bar/bulk-bar-of.js +22 -0
  65. package/views/dist/controls/bulk-bar/bulk-bar.d.ts +40 -0
  66. package/views/dist/controls/bulk-bar/bulk-bar.js +278 -0
  67. package/views/dist/controls/bulk-bar/looks.d.ts +10 -0
  68. package/views/dist/controls/bulk-bar/looks.js +14 -0
  69. package/views/dist/controls/bulk-bar/map-selection-bar.d.ts +19 -0
  70. package/views/dist/controls/bulk-bar/map-selection-bar.js +57 -0
  71. package/views/dist/controls/bulk-bar/tokens.d.ts +136 -0
  72. package/views/dist/controls/bulk-bar/tokens.js +36 -0
  73. package/views/dist/controls/bulk-bar/words.d.ts +50 -0
  74. package/views/dist/controls/bulk-bar/words.js +19 -0
  75. package/views/dist/controls/bulk-bar.css +96 -0
  76. package/views/dist/controls/button/button.js +3 -1
  77. package/views/dist/controls/button.css +5 -4
  78. package/views/dist/controls/checkbox/checkbox.js +3 -1
  79. package/views/dist/controls/checkbox.css +1 -1
  80. package/views/dist/controls/choice/tokens.d.ts +79 -0
  81. package/views/dist/controls/choice/tokens.js +22 -0
  82. package/views/dist/controls/choice.css +31 -0
  83. package/views/dist/controls/collapsible/collapsible.d.ts +39 -0
  84. package/views/dist/controls/collapsible/collapsible.js +18 -0
  85. package/views/dist/controls/collapsible/looks.d.ts +4 -0
  86. package/views/dist/controls/collapsible/looks.js +5 -0
  87. package/views/dist/controls/collapsible/map-collapse.d.ts +2 -0
  88. package/views/dist/controls/collapsible/map-collapse.js +6 -0
  89. package/views/dist/controls/collapsible/tokens.d.ts +68 -0
  90. package/views/dist/controls/collapsible/tokens.js +19 -0
  91. package/views/dist/controls/collapsible.css +83 -0
  92. package/views/dist/controls/compound-editor/looks.js +1 -1
  93. package/views/dist/controls/compound-editor/place-parts.js +5 -1
  94. package/views/dist/controls/controls.d.ts +19 -0
  95. package/views/dist/controls/controls.js +17 -0
  96. package/views/dist/controls/customize/customize.d.ts +125 -0
  97. package/views/dist/controls/customize/customize.js +243 -0
  98. package/views/dist/controls/customize/glide.d.ts +10 -0
  99. package/views/dist/controls/customize/glide.js +55 -0
  100. package/views/dist/controls/customize/looks.d.ts +13 -0
  101. package/views/dist/controls/customize/looks.js +11 -0
  102. package/views/dist/controls/customize/map-customize-body.d.ts +18 -0
  103. package/views/dist/controls/customize/map-customize-body.js +160 -0
  104. package/views/dist/controls/customize/rules.d.ts +23 -0
  105. package/views/dist/controls/customize/rules.js +19 -0
  106. package/views/dist/controls/customize/tokens.d.ts +40 -0
  107. package/views/dist/controls/customize/tokens.js +12 -0
  108. package/views/dist/controls/customize/words.d.ts +58 -0
  109. package/views/dist/controls/customize/words.js +37 -0
  110. package/views/dist/controls/customize.css +54 -0
  111. package/views/dist/controls/date-editor/date-editor.d.ts +2 -1
  112. package/views/dist/controls/date-editor/looks.js +1 -1
  113. package/views/dist/controls/date-editor/map-calendar.js +3 -1
  114. package/views/dist/controls/filter-editor/block.d.ts +31 -0
  115. package/views/dist/controls/filter-editor/block.js +27 -0
  116. package/views/dist/controls/filter-editor/filter-editor.d.ts +58 -0
  117. package/views/dist/controls/filter-editor/filter-editor.js +250 -0
  118. package/views/dist/controls/filter-editor/how.d.ts +23 -0
  119. package/views/dist/controls/filter-editor/how.js +14 -0
  120. package/views/dist/controls/filter-editor/map-filter-body.d.ts +33 -0
  121. package/views/dist/controls/filter-editor/map-filter-body.js +190 -0
  122. package/views/dist/controls/filter-editor/map-rules.d.ts +101 -0
  123. package/views/dist/controls/filter-editor/map-rules.js +304 -0
  124. package/views/dist/controls/filter-editor/parts.d.ts +46 -0
  125. package/views/dist/controls/filter-editor/parts.js +75 -0
  126. package/views/dist/controls/filter-editor/rules.d.ts +142 -0
  127. package/views/dist/controls/filter-editor/rules.js +201 -0
  128. package/views/dist/controls/filter-editor/tokens.d.ts +83 -0
  129. package/views/dist/controls/filter-editor/tokens.js +23 -0
  130. package/views/dist/controls/filter-editor/words.d.ts +74 -0
  131. package/views/dist/controls/filter-editor/words.js +46 -0
  132. package/views/dist/controls/filter-editor.css +142 -0
  133. package/views/dist/controls/group-editor/group-editor.d.ts +56 -0
  134. package/views/dist/controls/group-editor/group-editor.js +126 -0
  135. package/views/dist/controls/group-editor/map-group-body.d.ts +19 -0
  136. package/views/dist/controls/group-editor/map-group-body.js +106 -0
  137. package/views/dist/controls/group-editor/rules.d.ts +48 -0
  138. package/views/dist/controls/group-editor/rules.js +41 -0
  139. package/views/dist/controls/group-editor/tokens.d.ts +15 -0
  140. package/views/dist/controls/group-editor/tokens.js +6 -0
  141. package/views/dist/controls/group-editor/words.d.ts +39 -0
  142. package/views/dist/controls/group-editor/words.js +21 -0
  143. package/views/dist/controls/group-editor.css +20 -0
  144. package/views/dist/controls/index.d.ts +45 -3
  145. package/views/dist/controls/index.js +44 -3
  146. package/views/dist/controls/inline-input/looks.js +1 -1
  147. package/views/dist/controls/input/input.js +10 -4
  148. package/views/dist/controls/internal/editor-parts.d.ts +8 -1
  149. package/views/dist/controls/internal/editor-parts.js +5 -0
  150. package/views/dist/controls/internal/phone.d.ts +5 -4
  151. package/views/dist/controls/internal/phone.js +7 -7
  152. package/views/dist/controls/internal/scroll.js +5 -1
  153. package/views/dist/controls/internal/step-return.d.ts +9 -0
  154. package/views/dist/controls/internal/step-return.js +27 -0
  155. package/views/dist/controls/internal/typed-run.d.ts +2 -0
  156. package/views/dist/controls/internal/typed-run.js +5 -0
  157. package/views/dist/controls/links-editor/links-editor.d.ts +5 -3
  158. package/views/dist/controls/links-editor/links-editor.js +38 -17
  159. package/views/dist/controls/links-editor/map-links-body.js +4 -1
  160. package/views/dist/controls/links-editor.css +1 -1
  161. package/views/dist/controls/menu/map-menu.js +2 -2
  162. package/views/dist/controls/menu-list/menu-list.d.ts +17 -2
  163. package/views/dist/controls/menu-list/menu-list.js +25 -16
  164. package/views/dist/controls/modal/looks.d.ts +4 -0
  165. package/views/dist/controls/modal/looks.js +25 -0
  166. package/views/dist/controls/modal/modal.d.ts +69 -0
  167. package/views/dist/controls/modal/modal.js +62 -0
  168. package/views/dist/controls/modal/tokens.d.ts +192 -0
  169. package/views/dist/controls/modal/tokens.js +50 -0
  170. package/views/dist/controls/modal.css +130 -0
  171. package/views/dist/controls/notice/notice.d.ts +49 -0
  172. package/views/dist/controls/notice/notice.js +35 -0
  173. package/views/dist/controls/notice/tokens.d.ts +99 -0
  174. package/views/dist/controls/notice/tokens.js +27 -0
  175. package/views/dist/controls/notice.css +100 -0
  176. package/views/dist/controls/number-editor/looks.js +1 -1
  177. package/views/dist/controls/number-editor/number-editor.js +1 -1
  178. package/views/dist/controls/option/option.js +3 -1
  179. package/views/dist/controls/option.css +1 -1
  180. package/views/dist/controls/pane/looks.d.ts +4 -0
  181. package/views/dist/controls/pane/looks.js +11 -0
  182. package/views/dist/controls/pane/pane.d.ts +67 -0
  183. package/views/dist/controls/pane/pane.js +99 -0
  184. package/views/dist/controls/pane/state.d.ts +14 -0
  185. package/views/dist/controls/pane/state.js +7 -0
  186. package/views/dist/controls/pane/tokens.d.ts +79 -0
  187. package/views/dist/controls/pane/tokens.js +22 -0
  188. package/views/dist/controls/pane.css +104 -0
  189. package/views/dist/controls/picker/looks.js +1 -1
  190. package/views/dist/controls/picker/map-picker.d.ts +6 -2
  191. package/views/dist/controls/picker/map-picker.js +4 -2
  192. package/views/dist/controls/picker/picker.d.ts +7 -0
  193. package/views/dist/controls/picker/picker.js +57 -8
  194. package/views/dist/controls/picker/rows.d.ts +4 -2
  195. package/views/dist/controls/picker/rows.js +4 -3
  196. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  197. package/views/dist/controls/popover/map-popover.js +2 -2
  198. package/views/dist/controls/popover/popover.js +2 -1
  199. package/views/dist/controls/popover.css +3 -0
  200. package/views/dist/controls/ports-host/map-ports-host.d.ts +7 -0
  201. package/views/dist/controls/ports-host/map-ports-host.js +43 -0
  202. package/views/dist/controls/press/tokens.d.ts +8 -0
  203. package/views/dist/controls/press/tokens.js +4 -0
  204. package/views/dist/controls/press.css +44 -0
  205. package/views/dist/controls/quick-filters/looks.d.ts +11 -0
  206. package/views/dist/controls/quick-filters/looks.js +9 -0
  207. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +31 -0
  208. package/views/dist/controls/quick-filters/map-quick-filters-body.js +56 -0
  209. package/views/dist/controls/quick-filters/quick-filters.d.ts +37 -0
  210. package/views/dist/controls/quick-filters/quick-filters.js +89 -0
  211. package/views/dist/controls/quick-filters/reminder.d.ts +18 -0
  212. package/views/dist/controls/quick-filters/reminder.js +41 -0
  213. package/views/dist/controls/quick-filters/rules.d.ts +89 -0
  214. package/views/dist/controls/quick-filters/rules.js +52 -0
  215. package/views/dist/controls/quick-filters/tokens.d.ts +112 -0
  216. package/views/dist/controls/quick-filters/tokens.js +30 -0
  217. package/views/dist/controls/quick-filters/words.d.ts +25 -0
  218. package/views/dist/controls/quick-filters/words.js +13 -0
  219. package/views/dist/controls/quick-filters.css +118 -0
  220. package/views/dist/controls/sheet/bottom-sheet.d.ts +9 -4
  221. package/views/dist/controls/sheet/bottom-sheet.js +4 -4
  222. package/views/dist/controls/sheet/map-sheet.d.ts +4 -1
  223. package/views/dist/controls/sheet/map-sheet.js +19 -6
  224. package/views/dist/controls/sheet/sheet-parts.d.ts +10 -0
  225. package/views/dist/controls/sheet/sheet-parts.js +2 -0
  226. package/views/dist/controls/sort-editor/map-sort-body.d.ts +9 -0
  227. package/views/dist/controls/sort-editor/map-sort-body.js +81 -0
  228. package/views/dist/controls/sort-editor/rules.d.ts +48 -0
  229. package/views/dist/controls/sort-editor/rules.js +24 -0
  230. package/views/dist/controls/sort-editor/sort-editor.d.ts +58 -0
  231. package/views/dist/controls/sort-editor/sort-editor.js +180 -0
  232. package/views/dist/controls/sort-editor/tokens.d.ts +79 -0
  233. package/views/dist/controls/sort-editor/tokens.js +22 -0
  234. package/views/dist/controls/sort-editor/words.d.ts +48 -0
  235. package/views/dist/controls/sort-editor/words.js +25 -0
  236. package/views/dist/controls/sort-editor.css +96 -0
  237. package/views/dist/controls/switch-row/switch-row.d.ts +15 -0
  238. package/views/dist/controls/switch-row/switch-row.js +9 -0
  239. package/views/dist/controls/switch-row/tokens.d.ts +51 -0
  240. package/views/dist/controls/switch-row/tokens.js +15 -0
  241. package/views/dist/controls/switch-row.css +39 -0
  242. package/views/dist/controls/switch.css +1 -1
  243. package/views/dist/controls/tag/tag.js +3 -1
  244. package/views/dist/controls/tag-field/tag-field.d.ts +20 -0
  245. package/views/dist/controls/tag-field/tag-field.js +19 -0
  246. package/views/dist/controls/tag-field/tokens.d.ts +7 -0
  247. package/views/dist/controls/tag-field/tokens.js +4 -0
  248. package/views/dist/controls/tag-field.css +13 -0
  249. package/views/dist/controls/text-editor/looks.js +1 -1
  250. package/views/dist/controls/text-editor/text-editor.js +1 -5
  251. package/views/dist/controls/toast/toast.d.ts +79 -0
  252. package/views/dist/controls/toast/toast.js +101 -0
  253. package/views/dist/controls/toast/tokens.d.ts +100 -0
  254. package/views/dist/controls/toast/tokens.js +27 -0
  255. package/views/dist/controls/toast.css +93 -0
  256. package/views/dist/controls/tokens.js +38 -0
  257. package/views/dist/controls/toolbar/keys.d.ts +3 -0
  258. package/views/dist/controls/toolbar/keys.js +11 -0
  259. package/views/dist/controls/toolbar/looks.d.ts +10 -0
  260. package/views/dist/controls/toolbar/looks.js +40 -0
  261. package/views/dist/controls/toolbar/tokens.d.ts +28 -0
  262. package/views/dist/controls/toolbar/tokens.js +9 -0
  263. package/views/dist/controls/toolbar/toolbar.d.ts +111 -0
  264. package/views/dist/controls/toolbar/toolbar.js +370 -0
  265. package/views/dist/controls/toolbar/words.d.ts +28 -0
  266. package/views/dist/controls/toolbar/words.js +17 -0
  267. package/views/dist/controls/toolbar-button/looks.d.ts +4 -0
  268. package/views/dist/controls/toolbar-button/looks.js +21 -0
  269. package/views/dist/controls/toolbar-button/tokens.d.ts +103 -0
  270. package/views/dist/controls/toolbar-button/tokens.js +28 -0
  271. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +66 -0
  272. package/views/dist/controls/toolbar-button/toolbar-button.js +51 -0
  273. package/views/dist/controls/toolbar-button.css +75 -0
  274. package/views/dist/controls/toolbar.css +65 -0
  275. package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
  276. package/views/dist/controls/tooltip/map-tooltip.js +2 -2
  277. package/views/dist/controls/tooltip/tooltip.d.ts +3 -1
  278. package/views/dist/controls/tooltip/tooltip.js +2 -2
  279. package/views/dist/controls/values-editor/looks.js +1 -1
  280. package/views/dist/controls/values-editor/values-editor.js +7 -1
  281. package/views/dist/controls/views-list/map-views-list-body.d.ts +4 -1
  282. package/views/dist/controls/views-list/map-views-list-body.js +128 -4
  283. package/views/dist/controls/views-list/rules.d.ts +26 -0
  284. package/views/dist/controls/views-list/rules.js +63 -0
  285. package/views/dist/controls/views-list/view-menu.d.ts +84 -0
  286. package/views/dist/controls/views-list/view-menu.js +201 -0
  287. package/views/dist/controls/views-list/views-list.d.ts +8 -1
  288. package/views/dist/controls/views-list/views-list.js +18 -3
  289. package/views/dist/controls/views-list/words.d.ts +54 -0
  290. package/views/dist/controls/views-list/words.js +10 -1
  291. package/views/dist/controls/views-list.css +5 -1
  292. package/views/dist/display/date.js +5 -5
  293. package/views/dist/display/format.d.ts +6 -0
  294. package/views/dist/display/format.js +13 -2
  295. package/views/dist/display/index.d.ts +1 -1
  296. package/views/dist/display/index.js +1 -1
  297. package/views/dist/display/options.d.ts +3 -1
  298. package/views/dist/display/range.d.ts +2 -1
  299. package/views/dist/display/range.js +4 -1
  300. package/views/dist/display/use-display-options.d.ts +3 -0
  301. package/views/dist/display/use-display-options.js +10 -2
  302. package/views/dist/display/viewer.d.ts +1 -1
  303. package/views/dist/display/viewer.js +1 -1
  304. package/views/dist/editors/DateEditor.js +11 -9
  305. package/views/dist/editors/relation-panel.js +7 -1
  306. package/views/dist/editors/relation-picker.d.ts +2 -1
  307. package/views/dist/editors/relation-picker.js +4 -3
  308. package/views/dist/editors/relation-source.d.ts +4 -1
  309. package/views/dist/editors/relation-source.js +5 -2
  310. package/views/dist/field-row/editors/RowNumberEditor.js +2 -2
  311. package/views/dist/fields/number-edit.d.ts +6 -0
  312. package/views/dist/fields/number-edit.js +8 -1
  313. package/views/dist/grid/chrome/GridCellEditors.js +2 -2
  314. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +4 -3
  315. package/views/dist/grid/chrome/GridColumnDateSection.js +4 -4
  316. package/views/dist/grid/chrome/GridColumnDurationSection.js +2 -2
  317. package/views/dist/grid/chrome/GridColumnMenu.js +6 -4
  318. package/views/dist/grid/chrome/GridFooter.js +2 -2
  319. package/views/dist/grid/chrome/GridHeader.js +2 -1
  320. package/views/dist/grid/chrome/GridNumberEditor.js +2 -2
  321. package/views/dist/grid/chrome/GridRowCells.js +2 -1
  322. package/views/dist/grid/chrome/GridTextEditor.js +2 -2
  323. package/views/dist/grid/chrome/grid-column-menu-items.js +4 -2
  324. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -1
  325. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  326. package/views/dist/grid/chrome/grid-fitted-box.d.ts +7 -1
  327. package/views/dist/grid/chrome/grid-fitted-box.js +4 -4
  328. package/views/dist/grid/chrome/useGridBandFigures.js +2 -2
  329. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
  330. package/views/dist/grid/chrome/useGridFittedWidths.js +9 -3
  331. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
  332. package/views/dist/grid/chrome/useGridKeyboard.js +5 -2
  333. package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -1
  334. package/views/dist/grid/core/clipboard-model.js +9 -4
  335. package/views/dist/grid/core/commit-model.d.ts +7 -0
  336. package/views/dist/grid/core/commit-model.js +5 -1
  337. package/views/dist/grid/core/editing-controller.js +10 -2
  338. package/views/dist/grid/core/editing-model.js +3 -7
  339. package/views/dist/grid/core/undo-owner.d.ts +6 -0
  340. package/views/dist/grid/core/undo-owner.js +13 -0
  341. package/views/dist/grid/core/useGridEditing.d.ts +2 -0
  342. package/views/dist/grid/core/useGridEditing.js +4 -0
  343. package/views/dist/grid/grid.css +240 -0
  344. package/views/dist/grid/looks.d.ts +5 -1
  345. package/views/dist/grid/looks.js +20 -12
  346. package/views/dist/grid-tokens.d.ts +109 -0
  347. package/views/dist/grid-tokens.js +29 -0
  348. package/views/dist/looks/index.d.ts +10 -0
  349. package/views/dist/looks/index.js +10 -0
  350. package/views/dist/looks/pieces.js +20 -0
  351. package/views/dist/model/column-capabilities.d.ts +2 -0
  352. package/views/dist/model/column-filters.d.ts +2 -1
  353. package/views/dist/model/column-from.js +2 -2
  354. package/views/dist/model/relation-filters.d.ts +2 -0
  355. package/views/dist/panels/index.d.ts +2 -2
  356. package/views/dist/panels/index.js +2 -2
  357. package/views/dist/panels/labels.d.ts +4 -0
  358. package/views/dist/panels/labels.js +8 -0
  359. package/views/dist/panels/model.d.ts +14 -1
  360. package/views/dist/panels/quick/model.d.ts +4 -0
  361. package/views/dist/panels/react/customize-body.d.ts +12 -5
  362. package/views/dist/panels/react/customize-body.js +41 -13
  363. package/views/dist/panels/react/customize.d.ts +8 -1
  364. package/views/dist/panels/react/customize.js +11 -6
  365. package/views/dist/panels/react/filter/FilterEditor.js +6 -6
  366. package/views/dist/panels/react/filter/FilterFieldList.js +10 -2
  367. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +8 -2
  368. package/views/dist/panels/react/filter/PhoneFilterEditor.js +12 -9
  369. package/views/dist/panels/react/filter/filter-body.d.ts +8 -5
  370. package/views/dist/panels/react/filter/filter-body.js +21 -7
  371. package/views/dist/panels/react/filter/filter-part-body.d.ts +4 -1
  372. package/views/dist/panels/react/filter/filter-part-body.js +3 -1
  373. package/views/dist/panels/react/panel-sheet.d.ts +5 -1
  374. package/views/dist/panels/react/panel-sheet.js +6 -2
  375. package/views/dist/panels/react/panel-step.d.ts +15 -0
  376. package/views/dist/panels/react/panel-step.js +27 -0
  377. package/views/dist/panels/react/quick/QuickFiltersPanel.js +1 -0
  378. package/views/dist/panels/react/sort/SortEditor.d.ts +4 -0
  379. package/views/dist/panels/react/sort/SortEditor.js +5 -2
  380. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +18 -0
  381. package/views/dist/panels/react/toolbar/ReadyToolbar.js +93 -4
  382. package/views/dist/panels/react/toolbar/Toolbar.js +1 -1
  383. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  384. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +15 -5
  385. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +16 -0
  386. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +50 -0
  387. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +3 -1
  388. package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +4 -1
  389. package/views/dist/panels/react/toolbar/ToolbarFilters.js +38 -23
  390. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +12 -4
  391. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -2
  392. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +4 -1
  393. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +2 -2
  394. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
  395. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +15 -6
  396. package/views/dist/panels/react/toolbar/panel-part.d.ts +5 -1
  397. package/views/dist/panels/react/toolbar/panel-part.js +2 -2
  398. package/views/dist/panels/react/toolbar/use-filter-add.d.ts +16 -0
  399. package/views/dist/panels/react/toolbar/use-filter-add.js +32 -0
  400. package/views/dist/panels/react/view-footer.d.ts +1 -1
  401. package/views/dist/panels/react/views-row/ViewPicker.js +25 -4
  402. package/views/dist/panels/react.d.ts +1 -0
  403. package/views/dist/panels/react.js +1 -0
  404. package/views/dist/panels/settings/filter-groups.d.ts +3 -0
  405. package/views/dist/panels/settings/filter-groups.js +72 -7
  406. package/views/dist/panels/settings/filters.d.ts +5 -0
  407. package/views/dist/panels/settings/filters.js +12 -6
  408. package/views/dist/panels/settings/group-buckets.js +1 -0
  409. package/views/dist/panels/views-row/model.d.ts +10 -1
  410. package/views/dist/provider/ViewsProvider.d.ts +7 -1
  411. package/views/dist/provider/ViewsProvider.js +50 -6
  412. package/views/dist/provider/components.d.ts +178 -11
  413. package/views/dist/provider/context.d.ts +6 -0
  414. package/views/dist/provider/moment.d.ts +6 -0
  415. package/views/dist/provider/moment.js +10 -0
  416. package/views/dist/provider/ports.d.ts +18 -6
  417. package/views/dist/provider/ports.js +2 -1
  418. package/views/dist/react.d.ts +2 -2
  419. package/views/dist/react.js +1 -1
  420. package/views/dist/selection/SelectionBar.d.ts +2 -16
  421. package/views/dist/selection/SelectionBar.js +4 -1
  422. package/views/dist/selection/bar-props.d.ts +26 -0
  423. package/views/dist/selection/bar-props.js +1 -0
  424. package/views/dist/selection/index.d.ts +1 -1
  425. package/views/dist/selection/verbs.d.ts +32 -5
  426. package/views/dist/styles.css +1499 -73
  427. package/views/dist/styles.unlayered.css +1497 -70
  428. package/views/docs/contract.md +56 -23
  429. package/views/docs/controls/alert-dialog.md +37 -0
  430. package/views/docs/controls/alert.md +30 -0
  431. package/views/docs/controls/bulk-bar.md +41 -0
  432. package/views/docs/controls/choice.md +25 -0
  433. package/views/docs/controls/collapsible.md +22 -0
  434. package/views/docs/controls/customize.md +17 -0
  435. package/views/docs/controls/filter-editor.md +28 -0
  436. package/views/docs/controls/group-editor.md +11 -0
  437. package/views/docs/controls/modal.md +55 -0
  438. package/views/docs/controls/notice.md +32 -0
  439. package/views/docs/controls/pane.md +25 -0
  440. package/views/docs/controls/popover.md +2 -0
  441. package/views/docs/controls/press.md +9 -0
  442. package/views/docs/controls/quick-filters.md +35 -0
  443. package/views/docs/controls/radio.md +1 -1
  444. package/views/docs/controls/sort-editor.md +27 -0
  445. package/views/docs/controls/switch-row.md +18 -0
  446. package/views/docs/controls/tag-field.md +7 -0
  447. package/views/docs/controls/toast.md +32 -0
  448. package/views/docs/controls/toolbar-button.md +31 -0
  449. package/views/docs/controls/toolbar.md +14 -0
  450. package/views/docs/guides/atoms.md +2 -2
  451. package/views/docs/guides/cells.md +3 -3
  452. package/views/docs/guides/display.md +3 -3
  453. package/views/docs/guides/looks.md +8 -2
  454. package/views/docs/guides/ports.md +6 -6
  455. package/views/docs/guides/selection.md +5 -1
  456. package/views/docs/guides/the-grid.md +2 -2
  457. package/views/docs/guides/the-provider.md +21 -2
  458. package/views/docs/install.md +4 -1
  459. package/views/docs/reference/cells.md +3 -3
  460. package/views/docs/reference/controls.md +403 -16
  461. package/views/docs/reference/display.md +3 -2
  462. package/views/docs/reference/editors-relation.md +1 -1
  463. package/views/docs/reference/looks.md +35 -11
  464. package/views/docs/reference/panels-react.md +11 -10
  465. package/views/docs/reference/panels.md +9 -7
  466. package/views/docs/reference/react.md +20 -13
  467. package/views/docs/reference/selection.md +4 -2
  468. package/views/docs/reference/views.md +8 -6
  469. package/views/skills/views/SKILL.md +2 -2
@@ -49,7 +49,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
49
49
 
50
50
  ## The Tooltip
51
51
 
52
- - `Tooltip` — the name of a button that shows only an icon, or why something can't be used (`reason`): on hover after its wait, at once on keyboard focus, and on a touch screen a reason on a tap on what's off. What it names is its one child, which takes a ref, with no element round it. `keys` adds a shortcut's keys after the words. Its wait is `--vk-tooltip-delay`, read off what it names (a look set round it reaches it), or `delay` in ms. What it names wears the class `o-tooltip-trigger`. `CONTROLS.Tooltip` draws ViewKit's tooltips with it; it doesn't read a tooltip's `align`, `delayMs` or `className` yet.
52
+ - `Tooltip` — the name of a button that shows only an icon, or why something can't be used (`reason`): on hover after its wait, at once on keyboard focus, and on a touch screen a reason on a tap on what's off. What it names is its one child, which takes a ref, with no element round it. `keys` adds a shortcut's keys after the words. Its wait is `--vk-tooltip-delay`, read off what it names (a look set round it reaches it), or `delay` in ms. What it names wears the class `o-tooltip-trigger`. `CONTROLS.Tooltip` draws ViewKit's tooltips with it, at the `side` and `align` asked, after `delayMs` where one is handed (0 opens it at once), `className` on the tooltip itself; `className` is a prop of the Tooltip too.
53
53
  - `TooltipProps` — its props.
54
54
  - `TooltipGroup` — tooltips side by side (a toolbar): once one has shown, the next shows at once for its warm time, `--vk-tooltip-warm` read off its first tooltip, or `warm` in ms.
55
55
  - `TooltipGroupProps` — its props.
@@ -65,7 +65,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
65
65
 
66
66
  ## The Popover
67
67
 
68
- - `Popover` — what opens from what it belongs to on a computer: a shell that knows nothing of what it holds. It opens from its `trigger`, or from an `anchor` when it is set `open` from outside (an element, a ref to one, or a point on the page); it stands on its `side` and flips or shifts to stay on the screen; a press outside, Escape or focus leaving it closes it and gives focus back, and `onOutsidePress` or `onEscape` returning false keeps it open; it follows what opened it through a scroll and closes once that has scrolled out of the view that clips it. It says why it closed. `CONTROLS.Popover` draws ViewKit's popups with it, `panelData` and `onPanelClick` on its own element; it doesn't read a popup's `chrome` yet.
68
+ - `Popover` — what opens from what it belongs to on a computer: a shell that knows nothing of what it holds. It opens from its `trigger`, or from an `anchor` when it is set `open` from outside (an element, a ref to one, or a point on the page); it stands on its `side` and flips or shifts to stay on the screen; a press outside, Escape or focus leaving it closes it and gives focus back, and `onOutsidePress` or `onEscape` returning false keeps it open; it follows what opened it through a scroll and closes once that has scrolled out of the view that clips it. It says why it closed. `CONTROLS.Popover` draws ViewKit's popups with it, `panelData` and `onPanelClick` on its own element; a popup that holds a list (`chrome` `menu`) is marked `data-popover-chrome="menu"`, which your styles may draw otherwise, and the Outright look draws it as its card.
69
69
  - `PopoverProps` — its props.
70
70
  - `PopoverAnchor` — where it opens from when it has no trigger.
71
71
  - `PopoverChangeDetails` — why it opened or closed, and the event that did it.
@@ -82,7 +82,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
82
82
 
83
83
  ## The bottom Sheet
84
84
 
85
- - `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; it doesn't read a sheet's `snap`, a title that isn't words, `description` or `className` yet.
85
+ - `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; its height is the `snap` asked (`auto` the `edge` form, as tall as its content; `half` the `blend` form, opening at half; `peek` opening at the small stop; `full`, and none, to the top), a title that isn't words is drawn as handed (its name to screen readers still the label), `description` under the title and `className` on the sheet itself, a prop of the Sheet too.
86
86
  - `SheetProps` — its props.
87
87
  - `SheetChangeDetails` — why it opened or closed.
88
88
  - `SheetForm` — `full`, `floating`, `blend` or `edge`.
@@ -103,7 +103,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
103
103
 
104
104
  `CONTROLS` fills two slots of the map with them: its `Input` draws ViewKit's text boxes as the Input, bare unless ViewKit asks for its field, sized by its place, its digits lined up for a number's keyboard and autofill off; its `Checkbox` draws ViewKit's tick boxes as the Checkbox, handing on the press that changed it.
105
105
 
106
- - `Input` — what a person types into, on Base UI's input: in its field (`chrome` `soft`: in the Soft look) unless `chrome` says `bare`, at `size` (`2xs` to `lg`, `md` 36 the default), `multiline` long text that may `grow` to `maxLines`, start at `minLines` or show `lines`, `numeric` digits, `autofill` on unless said, and `look`, its own look. `combobox` puts it as the box of a Base UI combobox's list.
106
+ - `Input` — what a person types into, on Base UI's input: in its field (`chrome` `soft`: in the Soft look) unless `chrome` says `bare`, at `size` (`2xs` to `lg`, `md` 36 the default), `multiline` long text that may `grow` to `maxLines`, start at `minLines` or show `lines`, `numeric` digits, `autofill` on unless said, and `look`, its own look. `combobox` puts it as the box of a Base UI combobox's list. Long text keeps a typed run whole: one ⌘Z takes it back, a value handed to it or not.
107
107
  - `InputProps` — its props.
108
108
  - `InputComboboxProps` — its props as a combobox's box.
109
109
  - `InputSize` — `2xs`, `xs`, `sm`, `md`, `lg`.
@@ -148,7 +148,7 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
148
148
  - `CheckboxList` — checkboxes in rows in a bordered box, Base UI's checkbox group.
149
149
  - `CheckboxListProps` — its props.
150
150
 
151
- Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`, `number-field.css` and `checkbox.css`; the Checkbox's words (`o-choice-*`) and the phone's larger press area are drawn by the app's own styles for now. Their phone rules hold on an element marked `data-vk-phone` and inside it: each control marks its own root on a phone, by the line the app hands the provider (`desktopQuery`), a PhoneHost screen or a ComputerHost, and an app marks a box it shows as a phone's screen the same way. A control told its `form` changes only its layout; its sizes stay the device's. On the server and before the page comes alive a control draws the computer's form. `input.css` keeps one Outright Showcase hook, `[data-computer-host]`: a box marked so keeps typable words at 16px, so iOS never zooms into a field drawn at a computer's size on a phone.
151
+ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`, `number-field.css` and `checkbox.css`; the Checkbox's words (`o-choice-*`) are drawn by `choice.css` and the phone's larger pressing area by `press.css` (below). Their phone rules hold on an element marked `data-vk-phone` and inside it: each control marks its own root on a phone, by the line the app hands the provider (`desktopQuery`), a PhoneHost screen or a ComputerHost, and an app marks a box it shows as a phone's screen the same way. A control told its `form` changes only its layout; its sizes stay the device's. On the server and before the page comes alive a control draws the computer's form. `input.css` keeps one Outright Showcase hook, `[data-computer-host]`: a box marked so keeps typable words at 16px, so iOS never zooms into a field drawn at a computer's size on a phone.
152
152
 
153
153
 
154
154
  <!-- The rows: the Option, the Tag, the Status, the Switch, the menu list -->
@@ -204,6 +204,8 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
204
204
  - `MenuListShown` — the same rows standing still on a page: `open` shows a level's rows beside it, `on` a row as under the pointer.
205
205
  - `MenuListPanelRows` — a menu's rows in a panel that is no menu (a pane, a popover): one tab stop, ↑ ↓ wrapping, Home, End and a typed letter, Enter and Space press, → presses a row one level in, which `onOpen` hands its holder; `ticks` `box`, `switch` or `eye`; rows with a `grip` moved by it, the pointer or ↑ ↓ on it.
206
206
  - `MenuListPanelRowsProps` — its props.
207
+ - `MenuListWords` — the words its rows with a grip and its Switches say: a grip's name, how the rows move on a computer and on a phone, a move said, a Switch's two words; handed as `words` to `MenuList` and `MenuListPanelRows`.
208
+ - `MENU_LIST_WORDS` — those words in English.
207
209
  - `MenuListRow` — a name and its value as one row standing alone, at the list's own height and inset.
208
210
  - `MenuScroll` — what scrolls in a menu's panel: its rows alone, the Scrollbar over them.
209
211
  - `MenuEntry` — a row of a menu: an action, a link, a tick, a choice or actions one level in, a pick under a heading, a group, a separator.
@@ -288,7 +290,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
288
290
 
289
291
  ## The Picker's core
290
292
 
291
- - `usePicker` — `usePicker(props)`: the Picker's parts for a shell to pour in, its body and on a phone the Sheet head's buttons: a list to pick from, with its search, the empty row, Create, several held, a row's own menu (on a phone in a frame of its own by `menuFrame`), levels one in and rows put in order. Its options are read off the frame round it (`pickerWornOf`).
293
+ - `usePicker` — `usePicker(props)`: the Picker's parts for a shell to pour in, its body and on a phone the Sheet head's buttons: a list to pick from, with its search, the empty row, Create, several held, a row's own menu (on a phone in a frame of its own by `menuFrame`; its words, and the ⋯'s beside a phone's search, by `menuWords`), levels one in and rows put in order. Its options are read off the frame round it (`pickerWornOf`). ↓ and ↑ pass a greyed row by.
292
294
  - `Picker` — the Picker's body alone.
293
295
  - `PickerUnder` — the Picker under a box that opens it, on a computer (the Select's): its root round the box, its list in the box's panel.
294
296
  - `PickerProps` — its props.
@@ -300,7 +302,7 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
300
302
  - `PickerDoing` — what its list is doing: `searching` or `failed`.
301
303
  - `PickerLead` — the row that leads, where its field leads several.
302
304
  - `PickerBoxSearch` — what a box that is its search is handed: its keys and what it holds.
303
- - `PickerItem` — a row handed to it: its value, words, second line, group, level, menu, count.
305
+ - `PickerItem` — a row handed to it: its value, words, second line, group, level, menu, count, and the words its search also finds (`also`).
304
306
  - `PickerAs` — what a row is drawn as: an Option, a Status, an Avatar, a sign or a mark.
305
307
  - `PickerRow` — a row its list shows.
306
308
  - `RowsInput` — what its rows are worked out from.
@@ -331,17 +333,77 @@ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`
331
333
  - `chipsThatFit` — how many chips stand on its one line.
332
334
  - `filledMatch` — the choice a browser's fill names.
333
335
 
334
- <!-- The panels' block: the Pane, the toolbar button, the Radio, the sort editor, the views list, the Modal, the alert dialog, the Toast, the Collapsible, the Alert, the Notice -->
336
+ <!-- The panels' block: the Pane, the toolbar button, the Radio, the sort editor, the views list, the filter editor, the group editor, Customize, the Modal, the alert dialog, the Toast, the Collapsible, the Alert, the Notice -->
337
+
338
+ ## The Pane
339
+
340
+ A list's panel at its right edge, on a computer, on Base UI's dialog, not modal: nothing is dimmed, the list stays in use beside it, and a press outside or the focus leaving never closes it. Escape closes it, unless it was pressed inside another popup over the list (a Menu, a Popover, a Select's list), or a control took the key; with two Panes open, an Escape outside both closes the one nearest the focus, else the one opened last. The focus lands on it as it opens and goes back to what opened it as it closes. Its stylesheet is `viewkitjs/views/controls/pane.css`; its options are `PANE_LOOKS`.
341
+
342
+ - `Pane` — the shell: `open`, `onOpenChange` (with `PaneChangeDetails`), `container` (the list's box it stands in: positioned, never scrolling; nothing is drawn while it is null), `opener`, `initialFocus`, `aria-label`, `className`, and what stands in it.
343
+ - `PaneProps` — its props.
344
+ - `PaneChangeDetails` — why it closed (`reason`) and the event.
345
+ - `PaneCloseReason` — `escape-key`, `close-press` or `none`.
346
+ - `PaneHead` — its head, at its top: what stands in it draws its title and ✕.
347
+ - `PaneBody` — what it holds, scrolling between its head and its foot, with its scrollbar.
348
+ - `PaneFoot` — its foot, under a line across the whole Pane.
349
+ - `PaneTitle` — its title, which names it to a screen reader.
350
+ - `PaneClose` — what closes it from inside (`render`, a Button), with the reason `close-press`.
351
+ - `usePane` — its holder: one thing in it at a time, `opens(key)` spread on each opener, `pane` spread on the Pane, `shown`, `close`.
352
+ - `paneAfter` — the holder's state after a press: an opener's key, or a close.
353
+ - `PaneState` — what stands in it, by its key, and what opened it last.
354
+ - `PanePress` — a press on an opener, or a close from inside.
355
+
356
+ ## The toolbar button
357
+
358
+ What stands in a toolbar: the view switcher, View settings, the sort, each filter on the filter bar, a phone's round buttons. It is the Button, on Base UI's Toolbar button inside a toolbar: its ground picks the Button's kind (ghost the quiet, bordered the outline, filled the soft), its size the Button's height, its words whether it is icon-only, so every Button option an app sets reaches it. Its own options are read off the frame around it (`data-toolbar-button-<option>`), a computer's or a phone's, and change as the frame's attributes change; what it holds can say otherwise for itself. Nothing set, it is bordered, 32, its icon and word on a computer, and filled, 36, round, its icon alone on a phone. Its stylesheet is `viewkitjs/views/controls/toolbar-button.css`, after the Button's; its options and looks are `TOOLBAR_BUTTON_LOOKS`. ViewKit's own toolbar still draws its `ToolbarButton` atom: an app hands this control through its own atom.
359
+
360
+ Its name here is `ToolbarButtonControl`: `viewkitjs/views/panels/react` already names the toolbar's part `ToolbarButton`, and one package holds no two public names alike.
361
+
362
+ - `ToolbarButtonControl` — the button: `label` (its word and, its icon alone, its name to a screen reader), `icon`, `iconEnd`, `children` (what it says in place of its name), `count` (at its end, said after its name when its icon stands alone), `dot`, `empty`, `lit`, `aside`, `joined` (`start`, `middle` or `end`), `current` (a view tab, `true` the open one), `ground`, `words`, `size`, `corners`, `smoothing` and `form` (each over what the frame picks), `filter` and `stays` (what a folding toolbar reads), `focusableWhenDisabled`, and the Button's own props.
363
+ - `ToolbarButtonProps` — its props.
364
+ - `ToolbarButtonGround` — `ghost`, `bordered` or `filled`.
365
+ - `ToolbarButtonWords` — `both`, `icon` or `word`.
366
+ - `ToolbarButtonSize` — `28`, `32`, `36` or `44`.
367
+ - `ToolbarButtonSmoothing` — `app`, `smooth` or `round`.
368
+ - `InToolbar` — the toolbar it stands in: `{ size, form }`, which it takes unless it says its own, and inside which it is one of the toolbar's stops.
369
+ - `useToolbarButtonWorn(el, phone)` — its options as worn around `el`, kept up to date: what a toolbar reads for its row's height.
335
370
 
336
371
  ## The Radio
337
372
 
338
- One of a few choices, all of them in sight, on Base UI's radio group: the arrow keys move the choice, a hidden input carries it in a form, and the label round a ring presses it. Its stylesheet is `viewkitjs/views/controls/radio.css`; the words beside a choice and a card's edge and ground (`o-choice-*`) are the app's own choice styles, as the Checkbox's are. Its group marks a phone from the device (`data-vk-phone`), where marked cards stand one under another and tiles on one card. The Links editor draws a link's lead with it.
373
+ One of a few choices, all of them in sight, on Base UI's radio group: the arrow keys move the choice, a hidden input carries it in a form, and the label round a ring presses it. Its stylesheet is `viewkitjs/views/controls/radio.css`; the words beside a choice and a card's edge and ground (`o-choice-*`) are drawn by `choice.css`, as the Checkbox's are, and its ring's pressing area by `press.css`. Its group marks a phone from the device (`data-vk-phone`), where marked cards stand one under another and tiles on one card. The Links editor draws a link's lead with it.
339
374
 
340
375
  - `RadioGroup` — its choices, one under another: its `label` (the group a FieldSet, its name the legend; without one, give it an `aria-label`), `row` for two to four side by side, `tiles` for marked cards three across, and Base UI's group props (`value`, `defaultValue`, `onValueChange`, `disabled`).
341
376
  - `RadioGroupProps` — its props.
342
377
  - `Radio` — one choice: its `value`, its `label` and `note` beside it, `card` drawn as a card, `mark` a mark in place of the ring on a marked card.
343
378
  - `RadioProps` — its props.
344
379
 
380
+ ## The sort editor
381
+
382
+ What a list's sort opens, Attio's: the view's rules in order, the first sorting first, three at most, one per field (a place by one of its parts). Every change is handed on as it is made, so the list sorts again at once. Its stylesheet is `viewkitjs/views/controls/sort-editor.css`; its root marks a phone from the device (`data-vk-phone`).
383
+
384
+ - `useSortEditorParts` — the editor's state and its parts (`SortEditorParts`): the `body`, and on a phone the Sheet head's ✕ and ✓, or on a step its Back (`head.onBack`) and its `title`. Its props (`SortEditorProps`): `label`, the `fields` (Picker rows, each with its mark; one leading one level in holds its own), the `rules`, `onRulesChange` (the whole rules, and the set-aside sorts left when one of them is written), `max`, `form` (`computer`, `phone`, or `narrow`: the phone's structure at a computer's sizes, for a narrow place), `onDone`, the fields' `search` words, `aside` (the sorts set aside, `SortAside`s), `fieldOf` (the field a sort key sorts, so a place sorts once by one of its parts), `addSort` (Add sort at a computer's foot, true unless said), `words`, and for a page standing still `lifted`, `opens` (`SortEditorOpens`) and `level`. On a computer each rule is its grip, its field's and its direction's Select, and ×, with Add sort and Clear all sorts at the foot; the set-aside sorts follow, each its field's box dashed in the warning colour with why, its direction greyed, ⋯ holding why, Put back and Delete. On a phone each rule is a card row, its direction under its name; a press turns the body to its direction, Add sort to the fields, a set-aside sort's row to the fields to point it at one: steps of the same sheet, never a sheet on top. The body answers no Escape: its holder's sheet does. Its hook joins this door as `useSortEditor`, and the body alone as `SortEditor`, once VK-727 retires the panels' older sort editor of those names.
385
+ - `SortEditorProps` — its props.
386
+ - `SortEditorParts` — its parts: the body, the head's buttons, and on a phone's step its title and Back.
387
+ - `SortEditorOpens` — what a page shows standing open: a rule's field or direction, by its place.
388
+ - `sortableFields` — the fields as the list's Sort offers them to add a rule: those another rule sorts greyed with "Sorted", one level in too.
389
+ - `SORT_MAX` — how many rules a view sorts by, at most: three.
390
+ - `addSort` — the rules with one more at their end, sorting by a field, ascending.
391
+ - `canAddSort` — whether another rule can be added: fewer than its `max`.
392
+ - `sortedFields` — the fields the rules sort by already, each as `fieldOf` names it.
393
+ - `takenBy` — whether another rule than the one on `own` already sorts a field.
394
+ - `sortLabel` — the sort as the bar names it: its first rule's field, by its path ("Company › Region"), and how many follow.
395
+ - `SortAside` — a sort set aside: its stored field key, its words, its direction, why in words, and the key it sorts by once put back.
396
+ - `openPlaces` — how many rules fit: `max` less the sorts set aside.
397
+ - `repoint` — a set-aside sort pointed at a field: a rule on it, in its direction, at the end; null where another rule sorts that field.
398
+ - `putBack` — a set-aside sort put back on its own field; null while it doesn't fit.
399
+ - `dropAside` — the sorts set aside without one.
400
+ - `FieldOf` — the field a sort key sorts: a place's part key sorts its place.
401
+ - `SORT_EDITOR_WORDS` — its words in English.
402
+ - `sortWords` — its words: the handed ones over the English.
403
+ - `SortEditorWords` — its words' shape.
404
+
405
+ `CONTROLS.SortBody` draws ViewKit's sort body with it: the rules as data, every change handed back whole, the set-aside sorts as rows of their own, `addSort` honoured, a place's parts sorted once, a phone's step told to the sheet (`onStepChange`), and under `sheetActions: "bar"` its own head (✕, the title, ✓; on a step Back and the step's title). Every word is the app's, from its messages.
406
+
345
407
  ## The views list
346
408
 
347
409
  What the view switcher opens: the Picker over a list's views, each its layout's mark, its name and its count where handed, the open one held (in its place on a phone too), ↓ and ↑ going on from it. A press opens a view and closes the list; a press and drag (on a phone after a hold) or ⌥↑ ⌥↓ moves one among the views under its heading. Its holder hands each view's menu and New view. Where private views are on, Shared and Just me head the views and a private view wears a lock. Its stylesheet is `viewkitjs/views/controls/views-list.css`; its root marks a phone from the device (`data-vk-phone`). Its options are on `viewkitjs/views/looks` (`VIEWS_LIST_LOOKS`). Its props, `ViewsListProps`, stay inside the controls part until VK-727: `viewkitjs/views/react` already exports an atom by that name.
@@ -364,8 +426,308 @@ What the view switcher opens: the Picker over a list's views, each its layout's
364
426
  - `VIEWS_LIST_WORDS` — their English.
365
427
  - `viewsListWords` — the words handed over the English.
366
428
 
429
+ A view's menu and what it opens (VK-823), for an app that draws its own menu or holds its views in its page:
430
+
431
+ - `useViewMenu` — a view's menu's state, its entries and what it opens (`ViewMenuParts`): `entries` (a view's menu, by its id), `startNew` (New view's Modal; from a view, Save as new view), `dialogs` (the Modals and the question, drawn beside the list), `asking`, and on a phone with `steps` `openMenu` and `step`. Its props (`ViewMenuProps`): `views`, `open`, `layouts`, `columns`, `records`, `onChange`, `onDone`, `form`, `shows`, `container` and `standing` for a page that shows one standing, `words`, and `ask` (the delete question asked there, an app's `confirm`), `report` (the deletion said there, an app's toast `success` with its `undo`) and `steps` (on a phone, the menu, Rename, New view and the delete question as steps of its holder's one Sheet). With neither `ask` nor `report` it draws its own alert dialog and says the deletion through `useToast` where a `Toast` stands round it.
432
+ - `ViewMenuShows` — what a page shows standing open: Rename, New view, or the delete question.
433
+ - `ViewMenuProps` — its props, as `useViewMenu` above lists them.
434
+ - `ViewMenuParts` — what it hands back, as `useViewMenu` above lists them.
435
+ - `ViewMenuAsk` — the delete question as it asks it through `ask`: `message`, `confirmLabel`, `subject`, `detail` and `destructive`, the `confirm` port's request.
436
+ - `ViewMenuStep` — a phone's step: its `title`, `body` and `onBack`.
437
+ - `ViewMenuWords` — its words.
438
+ - `VIEW_MENU_WORDS` — its words in English.
439
+ - `ViewsState` — the views and the one open.
440
+ - `viewsAfter` — the views and the open one after a change: a new view last and open, a duplicate after its view, the last view kept, an open one deleted opening the first listed, a restore back at its place.
441
+ - `copyName` — a copy's name, "Copy of …", counting on while it's taken.
442
+ - `canDelete` — whether a view can be deleted: a list keeps one.
443
+ - `deleteLine` — the delete question's line.
444
+ - `DeleteLineWords` — its words: the records staying, given their noun, and the view going for everyone.
445
+ - `columnsLabel` — the label of the field a board's columns follow.
446
+
447
+ `CONTROLS.ViewsListBody`, handed the axis's `verbs`, draws a view's menu through `useViewMenu`: on a computer the delete question goes to your `confirm` port and the deletion to your `toast` port; on a phone a view's ⋯ turns the one Sheet into its menu, with Back, and what it opens turns it again. Without `verbs` a view's menu is its `menu` rows, on a phone a step of the one Sheet too.
448
+
367
449
  `CONTROLS.ViewsListBody` draws it where the view switcher opens: the axis's views, each its glyph by your `AppIcon`, its count and its menu rows as the Menu's (a row with no reason it can't be used says your `views.menus.not-now`), New view from `onCreate` in the axis's word, an order handed to `onReorder` as one whole block and never one that moves a view `canDrag` refuses, Shared and the reader's own wherever a view is private, and every word your messages'. It is internal: `CONTROLS` is the way in.
368
450
 
451
+ ## The filter editor
452
+
453
+ What an advanced filter opens on a computer and Filter on a phone, Attio's: the view's rules, each Where or its level's join, its field, how it compares and its value in its type's own box, joined by And or Or, in groups three deep; a relation rule's block (its relation, Any, None or Every where, its rules on that relation's fields inside, Add filter and Delete condition), which a rule on a related field's ⋮ makes with None or Every, Every waiting until a rule in it narrows; a group's ⋮ with Exclude matches (a group joined by And), an excluded group saying so; and the filter part, what a filter's way and value open on the bar. A body, as the sort editor is: the Popover holds it on a computer and the Sheet on a phone. Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/filter-editor.css`; its root marks a phone from the device (`data-vk-phone`).
454
+
455
+ - `useFilterEditorParts` — the editor's state and its parts (`FilterEditorParts`): the `body`, and on a phone the Sheet head's ✕ and ✓, or on a step its Back (`head.onBack`) and its `title`. Its props (`FilterEditorProps`): `label`, the `fields` (each typed, a choice's values with it; one leading one level in holds its own), the `filter`, `onFilterChange`, `at`, `ids`, `levels`, `form` (`computer`, `phone`, or `narrow`), `onDone`, `standing`, `own` (ViewKit's own words and value body for a rule the kit has no box for), `excludable` (whether the filter itself may exclude its matches: an advanced filter's own group, its foot then holding a group's ⋮ too) and `words`. On a phone each box's list, a date, a value ViewKit draws, Add filter, a block's quantifier and a rule's or a group's ⋯ turn the body to a step of the same sheet, never a sheet on top; the body answers no Escape: its holder's sheet does. Its hook joins this door as `useFilterEditor`, and the body alone as `FilterEditor`, once VK-727 retires the panels' older filter editor of that name.
456
+ - `FilterEditorProps` — its props.
457
+ - `FilterEditorParts` — its parts: the body, the head's buttons, and on a phone's step its title and Back.
458
+ - `FilterOwn` — ViewKit's own words and value body for a rule: its field's words, its way's word, its value's words, its value body.
459
+ - `FilterPartBody` — what a part of a filter on the bar opens: the fields, its type's ways, or its value in its type's own.
460
+ - `FilterPartProps` — its props: `part`, `rule`, `label`, `fields`, `filter`, `onFilterChange`, `onDone`, `own`, `form` and `words`.
461
+ - `FilterPart` — which part was pressed: `field`, `how` or `value`.
462
+ - `PairValue` — a range's From and To: two Number fields, an en dash between.
463
+ - `valuePlaceholder` — what a filter's value says while it has none, by its field's type.
464
+ - `FILTER_SEARCH` — the fields' search, in English.
465
+ - `HOW` — each type's ways, in the order they are offered, the first a new rule's.
466
+ - `CHECKED` — a yes/no's two values, Checked and Unchecked.
467
+ - `wayOf` — a type's way by its value.
468
+ - `FilterField` — a field a list filters by: a Picker row with its type, a choice's values, a related record's fields one level in.
469
+ - `FilterWay` — one way a type compares: its value, its words, what it takes.
470
+ - `Takes` — what a way takes: one value, several, two, or none.
471
+ - `FILTER_DEPTH` — how many levels deep rules stand at most: three.
472
+ - `NO_FILTER` — the filter with nothing in it.
473
+ - `OWN_WAY` — the prefix of a way only ViewKit words (`vk:<operator>`).
474
+ - `isOwnWay` — whether a rule's way is one only ViewKit words.
475
+ - `addRule` — a rule on a field, its type's first way and no value, added at a group's end.
476
+ - `removeRule` — the filter with a rule or group taken away, any group left empty with it.
477
+ - `changeRule` — a rule changed: its field, its way, or its value.
478
+ - `clearAll` — the filter with nothing in it, its id and join kept.
479
+ - `setJoin` — a level's join, which is every join at its level.
480
+ - `toGroup` — a rule turned into a group of its own.
481
+ - `canGroup` — whether a rule can become a group.
482
+ - `depthOf` — how many levels hold an item.
483
+ - `idsOf` — every id in the filter.
484
+ - `itemOf` — a rule or group by its id.
485
+ - `fieldOf` — the field a rule reads.
486
+ - `rulesOf` — every rule, in order, groups opened.
487
+ - `takesOf` — what a rule's way takes.
488
+ - `isWhole` — whether a rule narrows the list.
489
+ - `isSetAside` — whether a rule is set aside.
490
+ - `isPair` — whether a value is a range's From and To.
491
+ - `isGroup` — whether an item is a group.
492
+ - `isAdvanced` — whether the filter is advanced: an Or between its rules, or a group in it.
493
+ - `barOf` — the filter as the bar reads it: each rule at its own level plain, each group there advanced.
494
+ - `BarFilter` — a filter as the bar shows it.
495
+ - `toAdvanced` — a plain filter turned advanced.
496
+ - `setGroup` — an advanced filter put back, as its editor changed it.
497
+ - `valueText` — a rule's value in words.
498
+ - `ruleText` — a rule in words.
499
+ - `FilterAside` — a rule ViewKit set aside, in words: its field's name, why, and whether it can be put back.
500
+ - `FILTER_EDITOR_WORDS` — its words in English.
501
+ - `filterWords` — its words: the handed ones over the English.
502
+ - `FilterEditorWords` — its words' shape.
503
+
504
+ `CONTROLS.FilterBody` draws ViewKit's filter body with it: the level as data, every change handed back whole, a choice's values from each field's `options`, a set-aside rule in its place saying why, ViewKit's own words and value body for a way the kit has no word for, a field it has no type for or a choice with no values; a `not` group as a group that excludes its matches, and a relation rule other than Any with one plain far rule as its block, one set aside or on a relation the list no longer lists as one row in its words (open on a relation's where, the same head over the rules, the quantifier handed back with the level), so nothing a person's filter holds is out of sight; Created by as a person, a long text by its four ways, and a place's Country (with `parts: true`) as a choice of country names; a phone's step told to the sheet (`onStepChange`), and under `sheetActions: "bar"` its own head (✕, the title, ✓; on a step Back and the step's title). `CONTROLS.FilterPartBody` draws a filter's way and value with the filter part, ViewKit's ways and own value body for a rule the kit draws no part of. Every word is the app's, from its messages. Both are internal: `CONTROLS` is the way in.
505
+
506
+ ## The group editor
507
+
508
+ What Customize's Group opens: the list's group as the Menu list's rows. Group by, Order, Direction, a date field's Date step and Hide empty groups, each saying what it is and opening its choices in place; then the groups under their heading, each its grip, its name and its Switch, dragged into your own order, Hide all (Show all once none shows) at the heading; Remove grouping at its foot. A body: Customize holds it, a screen in its panel on a computer and a step of its sheet on a phone. A setting's choices stand in place of the settings, and the editor hands their name and the way back to its holder (`level`), whose head shows them. Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/group-editor.css`; its root marks a phone from the device (`data-vk-phone`).
509
+
510
+ - `useGroupEditor` — the editor's state and its parts (`GroupEditorParts`): the `body`, and the `level` it stands on. Its props (`GroupEditorProps`): `label`, the `fields` (Picker rows; one leading one level in holds its own), `ownOrders` (a field's own order, in its words), `orders` (the orders each field offers), `manualOrder` (whether Your own may be picked), `steps` (each date field's steps), the `group`, the groups as `values` (each with its count), `onGroupChange` (the whole group, null once taken off), `search`, `form`, `words`, and for a page standing still `opens` and `opensLevel`. The body alone, `GroupEditor`, joins this door with VK-727, beside the other panels' bodies.
511
+ - `GroupEditorProps` — its props.
512
+ - `GroupEditorParts` — its parts: the body, and the level it stands on (its name and the way back), null at the settings.
513
+ - `GroupEditorValue` — a group as the editor draws it: its value, its name, its mark, its count.
514
+ - `GroupEditorLevel` — a setting's choices: Group by's fields, Order's, Direction's or a date's steps.
515
+ - `GroupOrder` — an order: the field's own, by name, by count, your own.
516
+ - `GroupDirection` — ascending or descending.
517
+ - `GroupValue` — a group: its value, its name, how many records it holds.
518
+ - `startGroup` — a new group by a field: its own order where it has one, else by name; ascending; a date's step held.
519
+ - `groupOrders` — the orders a field offers: its own first, then Name, Count and Your own; only those offered.
520
+ - `orderedGroups` — the groups in the order the list shows them.
521
+ - `moveGroup` — a group moved among the groups as the list shows them: the order becomes your own.
522
+ - `setGroupShown` — a group shown or hidden by its Switch.
523
+ - `hideAllGroups` — every group hidden.
524
+ - `showAllGroups` — every group shown.
525
+ - `noneShown` — whether no group shows.
526
+ - `directionTurns` — whether Direction turns the order: every order but your own.
527
+ - `groupLabel` — the group as its row names it: its field, one level in by its path; none, None.
528
+ - `GROUP_EDITOR_WORDS` — its words in English.
529
+ - `groupWords` — its words: the handed ones over the English.
530
+ - `GroupEditorWords` — its words' shape.
531
+
532
+ `CONTROLS.GroupBody` draws ViewKit's group body with it: the group as one value, every change handed back as one write, the orders each field offers, Your own where the list offers it, a date field's steps, each group's count (`ViewsGroupEntry.count`) for its Count order, and its level told to what holds it (`onStepChange`), which ViewKit's Customize shows in its head. Every word is the app's, from its messages. It is internal: `CONTROLS` is the way in.
533
+
534
+ ## Customize
535
+
536
+ What View settings opens: the view's sections as the Menu list's rows, Layout, Columns, then each of Filter, Sort and Group it is handed, each saying where it stands and opening its screen in place, then its toggles (Show counts among them). Layout is the layout cards and the layout's own settings: its pick-one settings (a density, a board's field) each opening its choices in place, its toggles under their sections with a toggle's way back, and For you with its own. Columns is a search, the shown columns, each its grip, its mark, its name and its Switch, dragged into place, the first one locked, the hidden ones under Hidden, Hide all, Reset columns and Show all at the headings. Its head is the view's name renamed in place, or a title, as its options say; its footer, Copy link and Export CSV, each where handed; Reset and Save over it once something changed, with the shared view's stale note. A body: on a computer the Pane holds it where an app hands a Pane, and elsewhere (the toolbar's popover) it draws the same head, body and foot in a frame of its own; on a phone it hands the Sheet its head and foot, each section's step under that one head. Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/customize.css`; its options are `CUSTOMIZE_LOOKS`; its root marks a phone from the device (`data-vk-phone`).
537
+
538
+ - `useCustomize` — its state and its parts (`CustomizeParts`): the `body`, and on a phone the Sheet's `title`, `head` (Back and ✕) and `foot`. Its props (`CustomizeProps`): the `view`, `onViewChange` (the whole view, each change as it is made), the `layouts`, the `filter`, `sort` and `group` sections, `changed` with `onReset` and `onSave`, `pending`, `stale`, `exportCount` with `onCopyLink` and `onExport`, `toggles`, `layoutSettings`, `columnsReset`, `onClose` (outside a Pane, the title head's ✕), `onScreenChange`, `words`, `form`, and for a page standing still `screen`. The body alone, `Customize`, joins this door with VK-727, beside the other panels' bodies.
539
+ - `useCustomizeWorn` — its options as the frame round it wears them, kept up to date as they change.
540
+ - `layoutMark` — a layout's mark by its id: table, board, list, calendar, timeline.
541
+ - `CustomizeProps` — its props.
542
+ - `CustomizeParts` — its parts.
543
+ - `CustomizeView` — the view it sets: its name, its layout, its columns, and a table's own settings as its page draws them.
544
+ - `CustomizeColumn` — a column: its id, its name, whether it shows, whether it is locked, its mark.
545
+ - `CustomizeLayout` — a layout it offers: its id, its name, its mark; one still to come can't be picked.
546
+ - `CustomizeSection` — a section it is handed: what it says, whether that is in force, what its screen holds, and the level that screen stands on.
547
+ - `CustomizeScreen` — where it stands: its list, or a section's screen.
548
+ - `CustomizeToggle` — a setting turned on or off: its words, its value, its write, its way back and its section.
549
+ - `CustomizeChoice` — a setting picked from a few: its words, its value, its choices, its write.
550
+ - `CustomizeLayoutSettings` — Layout's own settings: its pick-one settings, its toggles, For you.
551
+ - `columnsSay` — what Columns says: how many show.
552
+ - `setShown` — a column shown or hidden, in its place; the locked one stays shown.
553
+ - `hideAll` — every column hidden but the locked one.
554
+ - `showAll` — every column shown.
555
+ - `moveColumn` — a column moved to another's place in the whole order; the locked one never moves.
556
+ - `findColumns` — the columns whose name holds the words.
557
+ - `reduced` — whether the person asked for less motion.
558
+ - `slideTime` — how long a column's tick takes to show its new state.
559
+ - `useGlide` — a change that glides: each row slides from where it stood.
560
+ - `customizeWornOf` — its options worn round an element; outside any frame, the defaults.
561
+ - `CUSTOMIZE_ATTRS` — the attributes it watches.
562
+ - `CustomizeWorn` — its options as it reads them.
563
+ - `CUSTOMIZE_WORDS` — its words in English.
564
+ - `customizeWords` — its words: the handed ones over the English.
565
+ - `CustomizeWords` — its words' shape.
566
+ - `CustomizeBodyOwn` — the view's name and its rename, Copy link, and Export CSV with its count, as `ViewsCustomizeBodyProps` carries them (`name`, `onRename`, `onCopyLink`, `onExport`, `exportCount`): what the toolbar hands Customize's body, each drawn only where handed.
567
+ - `SheetPartsFrom` — what a Sheet holds for a body that heads it: the body hands its title, Back, ✕ and foot, drawn in place of the Sheet's head. The controls' Sheet holds it; an app's own may too.
568
+ - `SheetParts` — what a body hands its Sheet.
569
+
570
+ `CONTROLS.CustomizeBody` draws ViewKit's Customize body with it: the view's columns and layout, each change handed back as one write; the layout's own settings, its toggles, Columns' own Reset and the shared view's foot (Reset and Save for everyone; under the kit's foot, Clear and Save; with no shared view, the foot's Clear); its Filter, Sort and Group through the filter, sort and group editors, narrow on a computer, each step a level under its head on a phone. It steps aside (`stepsAside`) for a column with its own settings, your field editor's rows and a card layout's line breaks, where ViewKit draws its own Customize. The view's name, Copy link and Export come through the toolbar (`ToolbarOptions`' and `ReadyToolbar`'s `viewName`, `onRenameView`, `onCopyLink`, `onExport`, `exportCount`), each drawn only where handed, and on a phone the level a section stands on (Group by's fields, Add sort's) is told as its step (`onStepChange`), so the sheet's Escape goes back a level. An app that wraps `CONTROLS.CustomizeBody` copies `stepsAside` onto its wrapper (`Object.assign(Wrapper, { stepsAside: CONTROLS.CustomizeBody.stepsAside })`), or ViewKit asks nothing and the wrapper draws, and loses, what it can't. Every word is the app's, from its messages. It is internal: `CONTROLS` is the way in.
571
+
572
+ ## The Modal
573
+
574
+ What holds a form, a quick create or a long read in the middle of the screen, on Base UI's dialog: it traps the focus, which starts on the first box it holds, and Escape, its X, Cancel and a press outside are its ways out. With unsaved changes every way out asks first, in an alert dialog over it; while its action works nothing closes it, and if the work throws it stays open and says what went wrong in a Notice. Opened from inside a Popover, it stands over it. On a phone it is the Sheet at full height, Cancel and its action in the head. Its stylesheet is `viewkitjs/views/controls/modal.css`; its options and looks are `MODAL_LOOKS`.
575
+
576
+ - `Modal` — `open`, `onOpenChange`, `title`, `mark`, `path`, `onOpenAsPage`, `size` (`sm`, `md`, `lg` or `xl`), `foot` (`both`, `action` or `none`), `action` (`ModalAction`), `cancel` ("Cancel" unless said), `footStart`, `dirty`, `state` and `failed` (shown as they stand, on a page that shows one), `container`, `standing`, what it holds, and `words`.
577
+ - `ModalProps` — its props.
578
+ - `ModalAction` — what its foot confirms: `label`, `kind` (`primary` or `danger`), `disabled`, and the work it starts (`run`).
579
+ - `ModalSize` — how wide it stands.
580
+ - `ModalFoot` — what its foot holds.
581
+ - `ModalState` — `rest`, `saving` or `failed`.
582
+ - `MODAL_WORDS` — its words in English: its head's Close and Open as a page, what a failure says when its work threw no words, and the discard question's title, line and answers.
583
+ - `ModalWords` — its words' shape.
584
+
585
+ ## The alert dialog
586
+
587
+ The panel an Alert stands in, over the page, on Base UI's alert dialog: it traps the focus, which starts on Cancel; a press outside does nothing; Escape is its way out, answering no; only the Alert's action confirms. While its action's work runs nothing else can be pressed; if it throws, it stays open and says what went wrong. On a phone it is its panel, with an X of its own where the frame shows one, or a Sheet where the Alert's Opens as is `sheet` (`data-alert-phone`). Its stylesheet is `viewkitjs/views/controls/alert-dialog.css`; its options are `ALERT_DIALOG_LOOKS`.
588
+
589
+ - `AlertDialog` — what it asks (an `AlertAsk`), `open`, `onAnswer` (true for the action, false for every way out), `state` and `failed` (shown as they stand, on a page that shows one), `container`, `standing`, and `words`.
590
+ - `AlertDialogProps` — its props.
591
+ - `AlertDialogPanel` — the panel alone, round what it holds: what's behind it, the panel in the middle of the screen, and its X on a phone, named by its `close` ("Close" unless said).
592
+ - `AlertDialogPanelProps` — its props.
593
+ - `confirm` — asks from anywhere, through the one `AlertDialogHost`: a promise, true for its action, false for every way out. One question at a time: a newer one takes the place of the open one, whose asker hears false.
594
+ - `AlertDialogHost` — where `confirm()` shows: put it in the app once. Its `words`.
595
+ - `ALERT_DIALOG_WORDS` — its words in English: Close, what a failure says when its work threw no words, and Try again.
596
+ - `AlertDialogWords` — its words' shape.
597
+
598
+ ## The Toast
599
+
600
+ What just happened, said for a moment at the bottom of the screen, on Base UI's toast: announced without taking the focus, it leaves after its time (`--vk-toast-duration`, four seconds where nothing declares it), and the pointer or the keyboard on it holds the time. One at a time: a new toast takes the place of the one showing, and a working one turns into its result where it stands. Undo puts the thing back and closes it at once; ⌘Z does the same while it shows, unless the keys are typing into a field; Escape closes it. Its stylesheet is `viewkitjs/views/controls/toast.css`.
601
+
602
+ - `Toast` — where toasts are made and rise: put it round the app once. `inside` (at the bottom of the element round it instead), `manager` (show what a `ToastManager` sends), `stack` (several, the newest in front), and `words`.
603
+ - `useToast` — shows a toast (`ToastOptions`), and hands back its id.
604
+ - `ToastOptions` — `words` (what just happened), `title`, `undo`, `action` with `onAction`, `working`, `failed`, `meaning` (a Notice's), `closable` and `duration`.
605
+ - `createToastManager` — toasts called from anywhere, outside React: `show`, `update`, `close`, `promise`; give it to the `Toast` that shows them. It takes the words too.
606
+ - `ToastManager` — its shape.
607
+ - `ToastShown` — a toast standing still on a page that shows how it looks: it never times out or moves. Its words are its `said`, since its `words` are what it says.
608
+ - `TOAST_WORDS` — its words in English: Undo, Close.
609
+ - `ToastWords` — its words' shape.
610
+
611
+ `CONTROLS.PortsHost` answers the ports an app leaves out (VK-844): a `toast` shown in this Toast, Undo where `success` hands one, and a `confirm` asked in the alert dialog, held in its own state, so an app's own `AlertDialogHost` never shows the same question twice. The provider mounts it once in the browser, only for the ports the app left out; every word is your messages'. It is internal: `CONTROLS` is the way in.
612
+
613
+ ## The Collapsible
614
+
615
+ One part that opens and closes in place, under its trigger or set open from outside, on Base UI's collapsible: the trigger says whether its part is open and which part it opens, Enter and Space press it, and a closed part leaves the page unless it is kept for the browser's find. Its height moves from nothing to what it holds, easing out both ways, its time following its height; under reduced motion it opens and closes at once. Its stylesheet is `viewkitjs/views/controls/collapsible.css`; its root marks a phone from the device (`data-vk-phone`), where its trigger is 44 high; its options are `COLLAPSIBLE_LOOKS`.
616
+
617
+ - `Collapsible` — the part and its trigger: `open` with `onOpenChange` when set from outside, `defaultOpen` when it keeps its own state, `disabled`, `className`.
618
+ - `CollapsibleProps` — its props.
619
+ - `CollapsibleTrigger` — what opens and closes it, plain: its name after a chevron, which turns down while the part is open; `render` hands your own element, which keeps its look and gains the behaviour.
620
+ - `CollapsibleTriggerProps` — its props.
621
+ - `CollapsiblePanel` — the part: the box that crops it while its height moves (`clipClassName`), and what it holds inside (`className`); `durationMs` an app's own time, both ways; `hiddenUntilFound` keeps it on the page for the browser's find.
622
+ - `CollapsiblePanelProps` — its props.
623
+
624
+ `CONTROLS.Collapse` draws ViewKit's folds (a grid's group, a field's note, the selection sheet's groups) as the Collapsible's part, set open from outside, so an app that spreads `CONTROLS` hands no `Collapse`.
625
+
626
+ ## The Alert
627
+
628
+ What an app asks before something happens: its title says what it asks, a line what follows, and its two answers are the way out and the action, the only one that confirms. It knows no shell: the alert dialog stands it in its panel, or on a phone in a Sheet. Its stylesheet is `viewkitjs/views/controls/alert.css`; its options are `ALERT_LOOKS`.
629
+
630
+ - `Alert` — `title`, `line`, `action` (its word), `kind` (its colour: `primary`, `information`, `success`, `warning` or `danger`), `cancel` ("Cancel" unless said), `icon`, `onAnswer` (true for the action, false for the way out), `state`, `failed` (what went wrong, in its line's place), `phone`, `shell` (`panel` or `sheet`), `cancelRef`, `Title` and `Line` (the elements its title and line are drawn as), and `words`.
631
+ - `AlertProps` — its props.
632
+ - `AlertAsk` — what one asks: its title, line, action, kind, cancel, icon and the work its action starts (`run`).
633
+ - `AlertKind` — its action's colour.
634
+ - `AlertState` — `rest`, `working` (nothing else can be pressed) or `failed` (it stays open and says so).
635
+ - `ALERT_WORDS` — its words in English: Try again.
636
+ - `AlertWords` — its words' shape.
637
+
638
+ ## The Notice
639
+
640
+ A sentence set into the page on its meaning's ground: worth knowing, done, careful, wrong, or a plain fact with no colour of its own. It is part of the page, there when the page is, fading in only when it arrives because of something just done; put away or resolved, it fades out and its space closes. Its stylesheet is `viewkitjs/views/controls/notice.css`; its root marks a phone from the device (`data-vk-phone`), where its actions drop under the sentence.
641
+
642
+ - `Notice` — `meaning` (`information`, the default, `success`, `warning`, `danger` or `neutral`), `icon` (its own, or false for none), `title`, the sentence as its children, `actions` (at most two: `{ label, onClick }` for the text Button, or any element), `onRetry` (Retry first among them, Retrying… while it works, the notice going once it does), `dismissible` with `onDismiss` (× at its end), `urgent` (read out at once, `role="alert"`), `arrived` (it fades in), `className`, and `words`.
643
+ - `NoticeProps` — its props.
644
+ - `NoticeMeaning` — `information`, `success`, `warning` or `danger`.
645
+ - `NoticeAction` — an action drawn from its words: `{ label, onClick }`.
646
+ - `NOTICE_ICONS` — each meaning's icon, as its paths: the Alert and the Toast draw their marks with them too.
647
+ - `NOTICE_WORDS` — its words in English: Retry, Retrying…, Dismiss.
648
+ - `NoticeWords` — its words' shape.
649
+
650
+ <!-- The toolbar's block: the quick filters (VK-724), the Toolbar (VK-858), the bulk bar (VK-725) -->
651
+
652
+ ## The quick filters
653
+
654
+ What the quick filters' button opens, the Outright kit's (after Linear's): a strip of the fields offered, three across, one open (the first holding a value); past 8 values a search under it; the open field's values as plain rows, each its mark (a status's step or a face, its option's), its words and its count, the most first, a held one on a quiet ground saying Clear filter while the field's others go quiet. A press holds a value, a second lets it go; one at a time in all, or several, as its option Holds says. The values are one Tab stop: ↑ ↓, Home and End between them, Enter or Space holds or lets go, ↓ from the search reaches the first and ↑ from the first goes back. A body: the Pane holds it on a computer and the one Sheet on a phone, where it takes the phone's sizes and, holding one at a time, a press closes the Sheet (`onDone`). Every word is handed (`words`). Its stylesheet is `viewkitjs/views/controls/quick-filters.css` ([its tokens](../controls/quick-filters.md)).
655
+
656
+ `CONTROLS.QuickFiltersBody` draws ViewKit's quick filters' body with it: ViewKit's hold turned to its holds and back, each value's mark from its field's `options`, its words the app's messages. It is internal: `CONTROLS` is the way in.
657
+
658
+ - `QuickFilters` — the body. Its props, `QuickFiltersProps`: the `fields` (`QuickField`s: an id, a name, the values, a search's words), the `holds` (`QuickHolds`: each field's held values by its id), `onHoldsChange` (the holds after each press, and the press), `open` and `onOpenChange` (the field open in the strip, where its holder keeps it), `counts`, `form`, `onDone` and `words`.
659
+ - `QuickFiltersProps` — its props.
660
+ - `QuickField` — a field it offers: its id, its name in the strip, its values, what its search says.
661
+ - `QuickValue` — a value: its key, its words, its mark, its count.
662
+ - `QuickMark` — a value's mark: a status's place (a step between at its quarters), or a person's or a company's face.
663
+ - `QuickHolds` — what is held: each field's held values by its id.
664
+ - `QuickHolding` — one at a time in all, or several.
665
+ - `QuickPress` — a press: the field and the value held or let go.
666
+ - `QUICK_FILTERS_RULES` — its rules, as one object: `holdAfter`, `heldIn`, `holdCount`, `valuesShown`, `valuesFound`, `firstOpen`, `SEARCH_PAST`, `narrowed`, `countValues`, `heldNames`, `reminderWords`, `pressCloses`. The panels' own quick filters' rules (`viewkitjs/views/panels`) keep ViewKit's hold's shape.
667
+ - `quickFiltersFieldsOf` — ViewKit's fields as the body takes them, each value with its option's mark.
668
+ - `QuickFiltersFieldIn` — a field as `quickFiltersFieldsOf` reads it: its key, its words, its search's words, its values and its `options`.
669
+ - `quickHoldsOf` — ViewKit's hold as the body's holds.
670
+ - `quickListHoldOf` — the body's holds as ViewKit's hold, the fields still held in ViewKit's order, then the new ones.
671
+ - `quickFiltersWornOf` — its option as the frame round it wears it.
672
+ - `QUICK_FILTERS_ATTRS` — the attribute it watches, so an option changed while it is open reaches it.
673
+ - `QUICK_FILTERS_WORDS` — its English words.
674
+ - `quickFiltersWords` — the words handed, each left out the English.
675
+ - `QuickFiltersWords` — its words: the strip's name, a field's search, Clear filter, and what a search that finds nothing says.
676
+
677
+ ### The reminder
678
+
679
+ On a phone, a pill at the list's foot naming what quick filters hold while they are closed, the Outright kit's: the first held value's mark and the first two names, "+N" for the rest, which opens quick filters; a hairline; and ✕, letting every hold go. It is one Toolbar (one Tab stop, the arrows across it), shows while a held value is named and leaves with the last, handing the focus to its holder when it leaves holding it. It stands at the centre of its holder's foot and hands its holder the room it takes (`--quick-filters-room`); while a bulk bar shows in the same holder it steps aside. Its holder places it and holds quick filters' open state. Its rules sit in `quick-filters.css`.
680
+
681
+ - `QuickFiltersReminderControl` — the reminder. Its props, `QuickFiltersReminderProps`: the `fields` (as the body takes them), the `holds`, `onOpen`, `onClear`, `words` and `className`. Its name ends in `Control`: `viewkitjs/views/panels/react` already names the ready toolbar's own reminder `QuickFiltersReminder`.
682
+ - `QuickFiltersReminderProps` — its props.
683
+ - `QUICK_FILTERS_REMINDER_WORDS` — its English words.
684
+ - `quickFiltersReminderWords` — the words handed, each left out the English.
685
+ - `QuickFiltersReminderWords` — its words: its name, its press's name over the held names, and its ✕'s.
686
+
687
+ ## The Toolbar
688
+
689
+ The Outright kit's Toolbar, on Base UI's toolbar: the row and, under it, the filter bar, a step smaller; on a phone one line. Tab reaches the whole of it once, the arrows run through its lines and loop, Home and End reach its ends; in a text box the arrows move the caret and step out at its ends. Handed a list's places (`views`, `settings`, `search`, `add`, `sort`, `filter`, `filters`, `quick`, `save`), it stands each where its options pick (`TOOLBAR_LOOKS`, worn as `data-toolbar-*` on the frame round it): View settings beside the views or on the row's right, the sort and Filter on the bar or on the row's right, the filter bar always or once something is added (`added`), lines across or none, Clear and Save on the bar or in View settings, New in its form, the quick filters' button or none; on a phone the sort, Filter, the quick filters' icon and View settings beside the views or on the right, the search a button or its own line. A place may be a function of where it stands (`ToolbarAt`: `row`, `right`, `bar`, `phone`). Handed no places, it is its `children` (the row) and `bar` (the filter bar), as any row of controls. What doesn't fit gives way, each line on its own, from its end: words to icons, then the view tabs into "+N", the filters into "+N filters", then the rest into ⋯, a Menu; a line holds while a Menu holding what folded stands open, or while its holder says `holds`. What never folds: a toolbar button marked `stays`, and the Button (New). Each line's height is its toolbar buttons' (the toolbar button's Size, a phone's its own), given to the Buttons, the Toggle group and the text box in it. Every word it says of its own is handed (`words`). Its stylesheet is `viewkitjs/views/controls/toolbar.css` ([its tokens](../controls/toolbar.md)).
690
+
691
+ Its frame and its separator are `ToolbarControl` and `ToolbarSeparatorControl`: `viewkitjs/views/panels/react` already names the ready toolbar's frame `Toolbar` and its separator `ToolbarSeparator`, and one package holds no two public names alike. The ready toolbar keeps its own frame.
692
+
693
+ - `ToolbarControl` — the Toolbar. Its props, `ToolbarProps`: `label` (its name to a screen reader), `children` and `bar`, the places above, `added`, `picks` (its options over the frame's), `barLabel`, `size` and `barSize` (`28`, `32` or `36`), `spacing` (in spacing steps), `fold` (default on), `holds`, `form` (`computer` or `phone`; by default a phone's in a phone's window or a `PhoneHost`), `onMoreViews` and `moreViewsOpen` (where its holder opens what "+N" opens), `words`, `className`, `style`, and Base UI's toolbar's own. Its width is its holder's to give: sized from what it holds in a pill (the bulk bar, the quick filters' reminder), so a holder that draws it as a list's toolbar gives it its width (a flex item with `min-width: 0`), or its row never runs out of room to fold.
694
+ - `ToolbarProps` — its props.
695
+ - `ToolbarPlace` — a place: what it draws, or a function of where it stands.
696
+ - `ToolbarAt` — where a place stands: `row`, `right`, `bar` or `phone`.
697
+ - `ToolbarSeparatorControl` — a line between what belongs together and what doesn't.
698
+ - `ToolbarSpacer` — room that pushes what follows to its line's far end.
699
+ - `ToolbarInput` — the text box in a line, one of its stops, at its line's height (`icon` at its start side). In the search's place, a button the Toolbar opens: pressed, its box with the caret in it and a ✕; the ✕, Escape or leaving it empty closes it, and Escape brings the focus back to the button.
700
+ - `ToolbarInputProps` — its props: the Input's, and `icon`.
701
+ - `ToolbarFolds` — filters or view tabs a holder draws itself, standing in a line: the line folds them one at a time among its own (`kind`, `filters` or `tabs`; `count`) and hands `children` how many are folded.
702
+ - `ToolbarFoldsProps` — its props.
703
+ - `toolbarSteps` — the steps a line takes as it narrows, in order, for a holder's test.
704
+ - `useToolbarWorn` — its options as worn round an element, kept up to date as they change.
705
+ - `toolbarWornOf` — its options as the frame round an element wears them, each its default where nothing sets it.
706
+ - `TOOLBAR_ATTRS` — the attributes it watches.
707
+ - `TOOLBAR_WORDS` — its English words.
708
+ - `toolbarWords` — the words handed, each left out the English.
709
+ - `ToolbarWords` — its words: the filter bar's name, the search's, the open search's ✕, ⋯ and its Menu, "+N" and its Menu, "+N filters", its name and its Menu, and why a folded item can't be used.
710
+
711
+ ## The bulk bar
712
+
713
+ What picked rows bring, the Outright kit's (after Attio's): on a computer a surface floating at the foot of the box that holds it, centred: the count (the number on the brand, Selected, ×; a press clears), a hairline, the verbs as outlined buttons, Delete in More or its own red button, and More, holding the verbs kept off the bar, then those that don't fit, then Delete; on a phone the tray, its verbs at 44 with Delete among them and ⋯ for the rest, or the pill (the count, ✕, Actions opening every verb). It is one Toolbar (one Tab stop, the arrows, Home and End). Escape from the box that holds it clears the selection, never while something it opened is open. A field set opens the Picker, in a Popover on a computer and in the one Sheet on a phone; a group opens a Menu; Delete asks in the alert dialog first, then runs, and a press that hands back `{ words, undo }` is said in its own Toast, just above it, with Undo; one that throws, as a press that didn't go through. It comes with the first picked row and leaves with the last, reading its last words as it goes, and hands the focus back to where it was in the list when it leaves holding it. It stands absolute in its nearest placed box, its holder, and hands it the room it takes (`--bulk-bar-room`), so a list that scrolls there pads its foot by it. Its rules sit in `bulk-bar.css`; its options are `BULK_BAR_LOOKS`.
714
+
715
+ `CONTROLS.SelectionBar` draws ViewKit's `SelectionBar` with it, wherever an app calls it, its words the app's messages and an options verb's values the Picker's rows. It is internal: `CONTROLS` is the way in.
716
+
717
+ - `BulkBar` — the bar. Its props, `BulkBarProps`: `count` (at 0 it leaves), `noun` (what a row is, one and many), `onClear`, `verbs` (`BulkVerb`s, in order), `onDelete` (asked first; left out, no Delete), `deleteLine` (the line under its question), `deleteLabel`, `busy`, `form` (`computer` or `phone`; by default the phone's below the line or in a `PhoneHost` screen), `standing` (on a page that shows it), `className` and `words`.
718
+ - `BulkBarProps` — its props.
719
+ - `BulkVerb` — a verb: an `action`, a `group` of actions behind one word, or `options`, a field set on every picked row, its values the Picker's rows, `value` (what every picked row holds), `empty` and `search`; any of them `more`, kept off the bar.
720
+ - `BulkVerbItem` — an action, or a group's row.
721
+ - `BulkDone` — what a press hands back: what the Toast says, and how it is taken back.
722
+ - `BulkRun` — a press: done at once or once its promise settles.
723
+ - `BulkNoun` — what a row is, one and many.
724
+ - `useBulkBarWorn` — its options as the frame round an element wears them, kept up to date.
725
+ - `bulkBarWornOf` — its options as the frame round an element wears them, read once.
726
+ - `BULK_BAR_ATTRS` — the attributes it watches, so an option changed while it stands reaches it.
727
+ - `BULK_BAR_WORDS` — its English words.
728
+ - `bulkBarWords` — the words handed, each left out the English.
729
+ - `BulkBarWords` — its words: how many are picked, its name, Delete's name and question, the noun where none is handed, the count, the pill's, Clear, More, Actions, Delete, Cancel, the failed Toast, why a verb can't be used, and the words of its Picker, Menus, Toast, question and Sheet.
730
+
369
731
  <!-- The editors' block: the Text editor, the Picker, the Date editor, the Compound editor, the Number editor, the Values editor, the Links editor -->
370
732
 
371
733
  ## The Text editor
@@ -445,7 +807,7 @@ Its stylesheet is `viewkitjs/views/controls/text-editor.css`, beside the inline
445
807
  - `addDays` — a day moved by a number of days.
446
808
  - `addMonths` — a day moved by a number of months, kept inside the month it lands in.
447
809
  - `weekday` — 0 for Monday to 6 for Sunday.
448
- - `todayOf` — today, in the browser's own day.
810
+ - `todayOf` — today, in the browser's own day, or at the moment handed.
449
811
  - `DateSegment` — a part: `day`, `month`, `year`, `hour`, `minute`.
450
812
  - `DateSegments` — the parts' values, each a number or null.
451
813
  - `segmentRange` — a part's least and greatest.
@@ -460,7 +822,7 @@ Its stylesheet is `viewkitjs/views/controls/text-editor.css`, beside the inline
460
822
  - `dateEditorWornOf` — its options as worn round an element.
461
823
  - `DATE_EDITOR_ATTRS` — the attributes it watches, so a look changed while it is open reaches it.
462
824
  - `DATE_EDITOR_ATTIO` — Attio's look: every option's default.
463
- - `DATE_EDITOR_MIHAI` — Mihai's look.
825
+ - `DATE_EDITOR_MIHAI` — the Outright look's picks (the look `mihai`).
464
826
  - `DateEditorWorn` — its options as worn.
465
827
 
466
828
  Its stylesheet is `viewkitjs/views/controls/date-editor.css`, beside the Button's, the Input's, the Select's, the menu list's, the popup line's and the Popover's or the Sheet's; its names are on [its page](../controls/date-editor.md).
@@ -512,7 +874,7 @@ A name's `NameValue` and `sameName`, and a range's `rangeText`, stay inside the
512
874
 
513
875
  ## The Number editor
514
876
 
515
- `CONTROLS` fills its `NumberBody` with the Number editor: ViewKit's number, money and percent bodies, held as a shell that keeps the draft. A number types into the number field inline, over its cell, its up and down arrows at its end while it is edited; money's code stands before the amount, a press away from a searchable list of each currency's sign and name in the conventions' language, ↓ there going on from the currency held; a number's unit the same; a percent shows its %. Home and End move the cursor. On a phone the Sheet holds the number field with the number pad, the currencies a step of the Sheet (`onStepChange`). ViewKit's number editor keeps the draft, the rounding to the field's decimals, Escape, Tab, the check, the empty rule and the save; a refusal is the host's to show. A duration keeps ViewKit's own box.
877
+ `CONTROLS` fills its `NumberBody` with the Number editor: ViewKit's number, money and percent bodies, held as a shell that keeps the draft. A number types into the number field inline, over its cell, its up and down arrows at its end while it is edited; money's code stands before the amount, a press away from a list of each currency's sign and name in the conventions' language, found by its name or its code, ↓ there going on from the currency held; a number's unit the same; a percent shows its %. Home and End move the cursor. On a phone the Sheet holds the number field with the number pad, the currencies a step of the Sheet (`onStepChange`). ViewKit's number editor keeps the draft, the rounding to the field's decimals, Escape, Tab, the check, the empty rule and the save; a refusal is the host's to show. A duration keeps ViewKit's own box.
516
878
 
517
879
  - `useNumberEditor` — the Number editor, as the parts a shell pours in: its `body`, and on a phone the Sheet head's buttons (`head`) and the currencies' step `title`. Standing alone (`draft: "own"`, the default) it keeps on Enter or a press elsewhere and leaves on Escape, and on a phone hands its head ✕ and ✓; held (`draft: "shell"`) it hands every change as it is read and keeps nothing.
518
880
  - `useNumberEditorWorn` — the options worn round the body, read again as they change: a ref for its root, and what it wears.
@@ -563,12 +925,12 @@ The body alone, as `NumberEditor`, stays inside the editor until the editors' ol
563
925
  The grip's `moved` and `dragAt`, the list a shell is handed (`handedList`) and the shapes of the label words and the line's read stay inside it. Its stylesheet is `viewkitjs/views/controls/values-editor.css`, beside those of the controls it draws with; its names are on [its page](../controls/values-editor.md).
564
926
  ## The Links editor
565
927
 
566
- `CONTROLS` fills its `LinksBody` with the Links editor: ViewKit's links body, for a relation holding several records whose field declares `links`. On a computer the search stands on top, the linked records under the field's name, Roles and Lead (a link's roles in a short button opening the Picker to tick them, the lead a radio, ✕ to unlink), then a line and the records to add under Add, ↑ ↓ lighting one and Enter linking it last; on a phone a card per link (its roles a row opening them on top, its ⋯ making it the lead or unlinking it), the records to add in a card under it and the search at the Sheet's foot. ViewKit keeps the set, the lead first on save, Escape, Tab, the save on close and the phone's ✕ and ✓; the editor hands every change as it is made, every query back to ViewKit (which filters or fetches), and draws its searching and failed lines, more records as the list's end comes into sight, and the create rows. A field that declares no roles has no Roles column. Its stylesheet is `viewkitjs/views/controls/links-editor.css`; its words are the app's, from its messages. With several fields on a link (an app's own use of the body), each column reads as words and a link's fields open as a step on a computer, and in the Sheet on a phone.
928
+ `CONTROLS` fills its `LinksBody` with the Links editor: ViewKit's links body, for a relation holding several records whose field declares `links`. On a computer the search stands on top, the linked records under the field's name, Roles and Lead (a link's roles in a short button opening the Picker to tick them, the lead a radio, ✕ to unlink), then a line and the records to add under Add, ↑ ↓ lighting one and Enter linking it last; on a phone a card per link (its roles a row opening them as a step of the Sheet, with Back, told to ViewKit as `onStepChange`, its ⋯ making it the lead or unlinking it), the records to add in a card under it and the search at the Sheet's foot. ViewKit keeps the set, the lead first on save, Escape, Tab, the save on close and the phone's ✕ and ✓; the editor hands every change as it is made, every query back to ViewKit (which filters or fetches), and draws its searching and failed lines, more records as the list's end comes into sight, and the create rows. A field that declares no roles has no Roles column. Its stylesheet is `viewkitjs/views/controls/links-editor.css`; its words are the app's, from its messages. With several fields on a link (an app's own use of the body), each column reads as words and a link's fields open as a step on a computer, and as a step of the Sheet on a phone.
567
929
 
568
930
  - `LinksEditor` — the body alone, for a shell that holds only a body.
569
- - `useLinksEditor` — its state and the parts a shell pours in: the body, and on a phone the Sheet head's ✕ and ✓.
931
+ - `useLinksEditor` — its state and the parts a shell pours in: the body, and on a phone the Sheet head's ✕ and ✓, or a step's Back, and a step's `title`; a shell that draws its own Sheet takes Escape on a step as Back (`head.onBack`).
570
932
  - `LinksEditorProps` — its props (a link's own type, `Link`, stays inside the editor, named `LinksEditorProps["links"][number]`): the field's name (`label`), its records' kind (`kind`, the first column's name), the records (`records`, Picker rows), the fields a link holds (`fields`), the links (`links`), each change (`onLinksChange`), the lead (`lead`), the search's words (`search`), `form`, `onDone`, `autoFocus`, a page's state (`typed`, `opens`), its `words`, and a list its editor finds (`onSearch`, `doing`, `onRetry`, `onMore`, `actions`).
571
- - `LinksEditorParts` — what it hands a shell.
933
+ - `LinksEditorParts` — what it hands a shell: its `body`, its phone `head` and a step's `title`.
572
934
  - `LinksEditorLead` — which link leads, a way to set it, and its column's name.
573
935
  - `LinksEditorOpens` — what a page shows standing open: a field's list on a link, or a link's fields.
574
936
  - `LinksEditorAction` — a row that does something rather than link: its key, its words, a mark, and what it does.
@@ -589,8 +951,33 @@ The grip's `moved` and `dragAt`, the list a shell is handed (`handedList`) and t
589
951
  - `LinksEditorWords` — those words, and its roles list's own (`picker`).
590
952
  - `linksWords` — the words handed, over the English.
591
953
 
954
+ <!-- The press and the choice: press.css, choice.css, the TagField, the SwitchRow -->
955
+
956
+ ## The pressing area
957
+
958
+ On a phone a small target keeps the size it draws and takes taps from an invisible area round it, 44px each way, its `::after`: every Button under 44px, the Checkbox's box, the Radio's ring, the Tag's ×, the Switch and an Option drawn as a link. On a computer the Switch, the Checkbox's box and the Radio's ring take 12px either side and 8px above and below. Its stylesheet is `viewkitjs/views/controls/press.css`, in the ready stylesheet. Its phone rule holds on an element marked `data-vk-phone` and inside it: the Button, the Checkbox, the Tag's × and a link Option mark themselves on a phone, as the Switch and the Radio do, so a target outside any panel takes it too. A control that packs targets closer than 44px sets `--pressing-room-x` and `--pressing-room-y` on them, half the room between, so two areas never overlap; those two are the controls' own machinery, not public. Its names are on [its page](../controls/press.md).
959
+
960
+ ## The words beside a choice
961
+
962
+ The label beside a Checkbox, a Radio or a Switch in a settings row (`o-choice-label`, the small text in the text colour), the line under it (`o-choice-note`, the extra-small text in the subtle colour), and a choice drawn as a card (`o-choice-card`: an edge round it, the hovered ground under the pointer, the selected edge and ground when chosen, a softer edge when off, a red edge in error). Its stylesheet is `viewkitjs/views/controls/choice.css`, in the ready stylesheet. Its names are on [its page](../controls/choice.md).
963
+
964
+ ## The TagField
965
+
966
+ Tags inside the Input's field, before the caret, in a Field with its label, its note and its error: typing and Enter (or a comma) adds one, a tag already there is not added again, Backspace in an empty box takes the last one off, and each tag has its remove button; disabled, nothing is typed in and the tags have none. The field is an InputGroup, so every state and option of the Input draws it, and on a phone it takes the phone's 44. Its stylesheet is `viewkitjs/views/controls/tag-field.css`, in the ready stylesheet; it stands on the Field's, the Input's and the Tag's. Its names are on [its page](../controls/tag-field.md).
967
+
968
+ - `TagField` — the field. Its words are its props: `placeholder` says "Add a tag" when none is handed, and each tag's remove button "Remove <tag>", as the Tag's does.
969
+ - `TagFieldProps` — `label`, `note`, `error`, `disabled`, `defaultValue`, `onValueChange`, `placeholder`, `className`.
970
+
971
+ ## The SwitchRow and SwitchRows
972
+
973
+ A setting in a settings list: its name and a line under it on the left (the words beside a choice), the Switch on the right, the whole row pressing it, the hovered ground under the pointer; a disabled one is not pressed. SwitchRows draws them in a bordered box, a line between each, its corners smooth where the browser can draw them. Its stylesheet is `viewkitjs/views/controls/switch-row.css`, in the ready stylesheet; it stands on `choice.css` and the Switch's. Its names are on [its page](../controls/switch-row.md).
974
+
975
+ - `SwitchRow` — one row; every prop of the Switch, and its `label` and `note`.
976
+ - `SwitchRowProps` — those props.
977
+ - `SwitchRows` — the box round the rows.
978
+
592
979
  ## The stylesheets
593
980
 
594
- The ready stylesheet (`viewkitjs/views/styles.css`) carries the controls, every token they read declared at the Outright look's value ([the controls' tokens](../contract.md#the-controls-tokens)). An app on the Outright tokens imports them one by one instead, and declares each token as its own: `viewkitjs/views/controls/smooth.css` first (the smooth corner every control's outline stands on), then each control's own, `viewkitjs/views/controls/<piece>.css` (the Button's `button.css`, the Spinner's `spinner.css`); each control's names are on its page under `docs/controls/`. Their options and looks are on [`viewkitjs/views/looks`](looks.md).
981
+ The ready stylesheet (`viewkitjs/views/styles.css`) carries the controls, every token they read declared at the Outright look's value ([the controls' tokens](../contract.md#the-controls-tokens)). An app on the Outright tokens imports them one by one instead, and declares each token as its own: `viewkitjs/views/controls/smooth.css` first (the smooth corner every control's outline stands on), then each control's own, `viewkitjs/views/controls/<piece>.css` (the Button's `button.css`, the Spinner's `spinner.css`), with `press.css` and `choice.css` for the pressing area and the words beside a choice; each control's names are on its page under `docs/controls/`. Their options and looks are on [`viewkitjs/views/looks`](looks.md).
595
982
 
596
983
  The class names (`o-button`, `o-spinner` and the rest) and the selectors other pieces use to style a Button they hold stay as the Outright kit named them until those pieces move into ViewKit; they are not public.