viewkitjs 0.26.0 → 0.28.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 (294) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/MIGRATION.md +122 -7
  3. package/package.json +1 -1
  4. package/views/dist/cells/cell-format.d.ts +3 -1
  5. package/views/dist/cells/cell-format.js +2 -2
  6. package/views/dist/cells/use-cell-format.d.ts +8 -1
  7. package/views/dist/cells/use-cell-format.js +13 -2
  8. package/views/dist/contract.d.ts +240 -3
  9. package/views/dist/contract.js +238 -0
  10. package/views/dist/controls/alert/alert.d.ts +46 -0
  11. package/views/dist/controls/alert/alert.js +11 -0
  12. package/views/dist/controls/alert/looks.d.ts +4 -0
  13. package/views/dist/controls/alert/looks.js +19 -0
  14. package/views/dist/controls/alert/tokens.d.ts +92 -0
  15. package/views/dist/controls/alert/tokens.js +25 -0
  16. package/views/dist/controls/alert-dialog/alert-dialog.d.ts +50 -0
  17. package/views/dist/controls/alert-dialog/alert-dialog.js +67 -0
  18. package/views/dist/controls/alert-dialog/confirm.d.ts +13 -0
  19. package/views/dist/controls/alert-dialog/confirm.js +11 -0
  20. package/views/dist/controls/alert-dialog/looks.d.ts +4 -0
  21. package/views/dist/controls/alert-dialog/looks.js +17 -0
  22. package/views/dist/controls/alert-dialog/tokens.d.ts +119 -0
  23. package/views/dist/controls/alert-dialog/tokens.js +32 -0
  24. package/views/dist/controls/alert-dialog.css +95 -0
  25. package/views/dist/controls/alert.css +51 -0
  26. package/views/dist/controls/collapsible/collapsible.d.ts +39 -0
  27. package/views/dist/controls/collapsible/collapsible.js +18 -0
  28. package/views/dist/controls/collapsible/looks.d.ts +4 -0
  29. package/views/dist/controls/collapsible/looks.js +5 -0
  30. package/views/dist/controls/collapsible/map-collapse.d.ts +2 -0
  31. package/views/dist/controls/collapsible/map-collapse.js +6 -0
  32. package/views/dist/controls/collapsible/tokens.d.ts +68 -0
  33. package/views/dist/controls/collapsible/tokens.js +19 -0
  34. package/views/dist/controls/collapsible.css +83 -0
  35. package/views/dist/controls/compound-editor/map-parts-body.js +2 -1
  36. package/views/dist/controls/compound-editor/name-parts.js +10 -2
  37. package/views/dist/controls/compound-editor/place-parts.js +5 -1
  38. package/views/dist/controls/compound-editor/place.d.ts +2 -1
  39. package/views/dist/controls/compound-editor/place.js +2 -0
  40. package/views/dist/controls/controls.d.ts +17 -0
  41. package/views/dist/controls/controls.js +17 -0
  42. package/views/dist/controls/date-editor/date-editor.d.ts +2 -1
  43. package/views/dist/controls/date-editor/map-calendar.js +3 -1
  44. package/views/dist/controls/filter-editor/filter-editor.d.ts +56 -0
  45. package/views/dist/controls/filter-editor/filter-editor.js +208 -0
  46. package/views/dist/controls/filter-editor/how.d.ts +23 -0
  47. package/views/dist/controls/filter-editor/how.js +13 -0
  48. package/views/dist/controls/filter-editor/map-filter-body.d.ts +18 -0
  49. package/views/dist/controls/filter-editor/map-filter-body.js +164 -0
  50. package/views/dist/controls/filter-editor/map-rules.d.ts +85 -0
  51. package/views/dist/controls/filter-editor/map-rules.js +273 -0
  52. package/views/dist/controls/filter-editor/parts.d.ts +46 -0
  53. package/views/dist/controls/filter-editor/parts.js +75 -0
  54. package/views/dist/controls/filter-editor/rules.d.ts +104 -0
  55. package/views/dist/controls/filter-editor/rules.js +148 -0
  56. package/views/dist/controls/filter-editor/tokens.d.ts +83 -0
  57. package/views/dist/controls/filter-editor/tokens.js +23 -0
  58. package/views/dist/controls/filter-editor/words.d.ts +59 -0
  59. package/views/dist/controls/filter-editor/words.js +40 -0
  60. package/views/dist/controls/filter-editor.css +124 -0
  61. package/views/dist/controls/group-editor/group-editor.d.ts +56 -0
  62. package/views/dist/controls/group-editor/group-editor.js +126 -0
  63. package/views/dist/controls/group-editor/map-group-body.d.ts +19 -0
  64. package/views/dist/controls/group-editor/map-group-body.js +106 -0
  65. package/views/dist/controls/group-editor/rules.d.ts +48 -0
  66. package/views/dist/controls/group-editor/rules.js +41 -0
  67. package/views/dist/controls/group-editor/tokens.d.ts +15 -0
  68. package/views/dist/controls/group-editor/tokens.js +6 -0
  69. package/views/dist/controls/group-editor/words.d.ts +39 -0
  70. package/views/dist/controls/group-editor/words.js +21 -0
  71. package/views/dist/controls/group-editor.css +20 -0
  72. package/views/dist/controls/index.d.ts +35 -1
  73. package/views/dist/controls/index.js +35 -1
  74. package/views/dist/controls/internal/editor-parts.d.ts +47 -0
  75. package/views/dist/controls/internal/editor-parts.js +48 -0
  76. package/views/dist/controls/internal/step-return.d.ts +9 -0
  77. package/views/dist/controls/internal/step-return.js +27 -0
  78. package/views/dist/controls/links-editor/links-editor.d.ts +80 -0
  79. package/views/dist/controls/links-editor/links-editor.js +329 -0
  80. package/views/dist/controls/links-editor/links.d.ts +62 -0
  81. package/views/dist/controls/links-editor/links.js +50 -0
  82. package/views/dist/controls/links-editor/map-links-body.d.ts +10 -0
  83. package/views/dist/controls/links-editor/map-links-body.js +74 -0
  84. package/views/dist/controls/links-editor/tokens.d.ts +71 -0
  85. package/views/dist/controls/links-editor/tokens.js +20 -0
  86. package/views/dist/controls/links-editor/words.d.ts +56 -0
  87. package/views/dist/controls/links-editor/words.js +33 -0
  88. package/views/dist/controls/links-editor.css +132 -0
  89. package/views/dist/controls/menu-list/menu-list.d.ts +17 -2
  90. package/views/dist/controls/menu-list/menu-list.js +25 -16
  91. package/views/dist/controls/modal/looks.d.ts +4 -0
  92. package/views/dist/controls/modal/looks.js +25 -0
  93. package/views/dist/controls/modal/modal.d.ts +69 -0
  94. package/views/dist/controls/modal/modal.js +62 -0
  95. package/views/dist/controls/modal/tokens.d.ts +192 -0
  96. package/views/dist/controls/modal/tokens.js +50 -0
  97. package/views/dist/controls/modal.css +130 -0
  98. package/views/dist/controls/notice/notice.d.ts +49 -0
  99. package/views/dist/controls/notice/notice.js +35 -0
  100. package/views/dist/controls/notice/tokens.d.ts +99 -0
  101. package/views/dist/controls/notice/tokens.js +27 -0
  102. package/views/dist/controls/notice.css +100 -0
  103. package/views/dist/controls/number-editor/format.d.ts +31 -0
  104. package/views/dist/controls/number-editor/format.js +79 -0
  105. package/views/dist/controls/number-editor/looks.d.ts +14 -0
  106. package/views/dist/controls/number-editor/looks.js +17 -0
  107. package/views/dist/controls/number-editor/map-number-body.d.ts +16 -0
  108. package/views/dist/controls/number-editor/map-number-body.js +57 -0
  109. package/views/dist/controls/number-editor/number-editor.d.ts +72 -0
  110. package/views/dist/controls/number-editor/number-editor.js +202 -0
  111. package/views/dist/controls/number-editor/tokens.d.ts +28 -0
  112. package/views/dist/controls/number-editor/tokens.js +9 -0
  113. package/views/dist/controls/number-editor/words.d.ts +23 -0
  114. package/views/dist/controls/number-editor/words.js +13 -0
  115. package/views/dist/controls/number-editor.css +37 -0
  116. package/views/dist/controls/number-field/number-field.js +57 -5
  117. package/views/dist/controls/pane/looks.d.ts +4 -0
  118. package/views/dist/controls/pane/looks.js +11 -0
  119. package/views/dist/controls/pane/pane.d.ts +63 -0
  120. package/views/dist/controls/pane/pane.js +98 -0
  121. package/views/dist/controls/pane/state.d.ts +14 -0
  122. package/views/dist/controls/pane/state.js +7 -0
  123. package/views/dist/controls/pane/tokens.d.ts +79 -0
  124. package/views/dist/controls/pane/tokens.js +22 -0
  125. package/views/dist/controls/pane.css +104 -0
  126. package/views/dist/controls/picker/rows.d.ts +4 -2
  127. package/views/dist/controls/picker/rows.js +4 -3
  128. package/views/dist/controls/radio/radio.d.ts +33 -0
  129. package/views/dist/controls/radio/radio.js +19 -0
  130. package/views/dist/controls/radio/tokens.d.ts +127 -0
  131. package/views/dist/controls/radio/tokens.js +34 -0
  132. package/views/dist/controls/radio.css +104 -0
  133. package/views/dist/controls/sort-editor/map-sort-body.d.ts +9 -0
  134. package/views/dist/controls/sort-editor/map-sort-body.js +81 -0
  135. package/views/dist/controls/sort-editor/rules.d.ts +48 -0
  136. package/views/dist/controls/sort-editor/rules.js +24 -0
  137. package/views/dist/controls/sort-editor/sort-editor.d.ts +58 -0
  138. package/views/dist/controls/sort-editor/sort-editor.js +180 -0
  139. package/views/dist/controls/sort-editor/tokens.d.ts +79 -0
  140. package/views/dist/controls/sort-editor/tokens.js +22 -0
  141. package/views/dist/controls/sort-editor/words.d.ts +48 -0
  142. package/views/dist/controls/sort-editor/words.js +25 -0
  143. package/views/dist/controls/sort-editor.css +96 -0
  144. package/views/dist/controls/text-editor/phone-number.d.ts +4 -0
  145. package/views/dist/controls/text-editor/phone-number.js +20 -0
  146. package/views/dist/controls/text-editor/text-editor.js +2 -19
  147. package/views/dist/controls/toast/toast.d.ts +75 -0
  148. package/views/dist/controls/toast/toast.js +99 -0
  149. package/views/dist/controls/toast/tokens.d.ts +100 -0
  150. package/views/dist/controls/toast/tokens.js +27 -0
  151. package/views/dist/controls/toast.css +93 -0
  152. package/views/dist/controls/tokens.js +30 -0
  153. package/views/dist/controls/values-editor/looks.d.ts +16 -0
  154. package/views/dist/controls/values-editor/looks.js +19 -0
  155. package/views/dist/controls/values-editor/map-values-body.d.ts +12 -0
  156. package/views/dist/controls/values-editor/map-values-body.js +71 -0
  157. package/views/dist/controls/values-editor/tokens.d.ts +132 -0
  158. package/views/dist/controls/values-editor/tokens.js +35 -0
  159. package/views/dist/controls/values-editor/values-editor.d.ts +62 -0
  160. package/views/dist/controls/values-editor/values-editor.js +441 -0
  161. package/views/dist/controls/values-editor/values.d.ts +71 -0
  162. package/views/dist/controls/values-editor/values.js +59 -0
  163. package/views/dist/controls/values-editor/words.d.ts +50 -0
  164. package/views/dist/controls/values-editor/words.js +29 -0
  165. package/views/dist/controls/values-editor.css +207 -0
  166. package/views/dist/controls/views-list/looks.d.ts +13 -0
  167. package/views/dist/controls/views-list/looks.js +12 -0
  168. package/views/dist/controls/views-list/map-views-list-body.d.ts +19 -0
  169. package/views/dist/controls/views-list/map-views-list-body.js +65 -0
  170. package/views/dist/controls/views-list/rules.d.ts +72 -0
  171. package/views/dist/controls/views-list/rules.js +4 -0
  172. package/views/dist/controls/views-list/tokens.d.ts +11 -0
  173. package/views/dist/controls/views-list/tokens.js +5 -0
  174. package/views/dist/controls/views-list/views-list.d.ts +44 -0
  175. package/views/dist/controls/views-list/views-list.js +57 -0
  176. package/views/dist/controls/views-list/words.d.ts +22 -0
  177. package/views/dist/controls/views-list/words.js +3 -0
  178. package/views/dist/controls/views-list.css +8 -0
  179. package/views/dist/display/date.js +2 -2
  180. package/views/dist/display/format.js +10 -2
  181. package/views/dist/display/options.d.ts +3 -1
  182. package/views/dist/display/use-display-options.d.ts +3 -0
  183. package/views/dist/display/use-display-options.js +10 -2
  184. package/views/dist/display/viewer.d.ts +1 -1
  185. package/views/dist/display/viewer.js +1 -1
  186. package/views/dist/editors/DateEditor.js +11 -9
  187. package/views/dist/editors/NumberEditor.js +3 -1
  188. package/views/dist/editors/relation-panel.js +7 -1
  189. package/views/dist/editors/relation-picker.d.ts +2 -1
  190. package/views/dist/editors/relation-picker.js +4 -3
  191. package/views/dist/editors/relation-source.d.ts +4 -1
  192. package/views/dist/editors/relation-source.js +5 -2
  193. package/views/dist/field-row/editors/RowNumberEditor.js +2 -2
  194. package/views/dist/fields/number-edit.d.ts +6 -0
  195. package/views/dist/fields/number-edit.js +8 -1
  196. package/views/dist/grid/chrome/GridCellEditors.js +3 -3
  197. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +4 -3
  198. package/views/dist/grid/chrome/GridColumnDateSection.js +4 -4
  199. package/views/dist/grid/chrome/GridColumnDurationSection.js +2 -2
  200. package/views/dist/grid/chrome/GridColumnMenu.js +6 -4
  201. package/views/dist/grid/chrome/GridDateEditor.d.ts +3 -1
  202. package/views/dist/grid/chrome/GridDateEditor.js +2 -1
  203. package/views/dist/grid/chrome/GridFooter.js +2 -2
  204. package/views/dist/grid/chrome/grid-column-menu-items.js +4 -2
  205. package/views/dist/grid/chrome/useGridBandFigures.js +2 -2
  206. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
  207. package/views/dist/grid/chrome/useGridFittedWidths.js +9 -3
  208. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -1
  209. package/views/dist/grid/chrome/useGridKeyboard.js +5 -2
  210. package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -1
  211. package/views/dist/grid/core/commit-model.d.ts +7 -0
  212. package/views/dist/grid/core/commit-model.js +5 -1
  213. package/views/dist/grid/core/editing-controller.js +10 -2
  214. package/views/dist/grid/core/editing-model.js +3 -7
  215. package/views/dist/grid/core/undo-owner.d.ts +6 -0
  216. package/views/dist/grid/core/undo-owner.js +13 -0
  217. package/views/dist/grid/core/useGridEditing.d.ts +2 -0
  218. package/views/dist/grid/core/useGridEditing.js +4 -0
  219. package/views/dist/looks/index.d.ts +8 -0
  220. package/views/dist/looks/index.js +8 -0
  221. package/views/dist/looks/pieces.js +16 -0
  222. package/views/dist/panels/model.d.ts +6 -1
  223. package/views/dist/panels/react/customize-body.d.ts +4 -2
  224. package/views/dist/panels/react/customize-body.js +3 -3
  225. package/views/dist/panels/react/customize.js +4 -2
  226. package/views/dist/panels/react/filter/FilterEditor.js +2 -2
  227. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +8 -2
  228. package/views/dist/panels/react/filter/PhoneFilterEditor.js +9 -6
  229. package/views/dist/panels/react/filter/filter-body.d.ts +8 -5
  230. package/views/dist/panels/react/filter/filter-body.js +17 -6
  231. package/views/dist/panels/react/filter/filter-part-body.d.ts +4 -1
  232. package/views/dist/panels/react/filter/filter-part-body.js +3 -1
  233. package/views/dist/panels/react/panel-sheet.d.ts +5 -1
  234. package/views/dist/panels/react/panel-sheet.js +6 -2
  235. package/views/dist/panels/react/panel-step.d.ts +12 -0
  236. package/views/dist/panels/react/panel-step.js +26 -0
  237. package/views/dist/panels/react/sort/SortEditor.d.ts +4 -0
  238. package/views/dist/panels/react/sort/SortEditor.js +5 -2
  239. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +8 -0
  240. package/views/dist/panels/react/toolbar/ReadyToolbar.js +84 -2
  241. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +2 -2
  242. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.d.ts +16 -0
  243. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +49 -0
  244. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +3 -1
  245. package/views/dist/panels/react/toolbar/ToolbarFilters.d.ts +4 -1
  246. package/views/dist/panels/react/toolbar/ToolbarFilters.js +36 -21
  247. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +4 -1
  248. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +2 -2
  249. package/views/dist/panels/react/toolbar/ToolbarSortPill.d.ts +5 -0
  250. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +15 -6
  251. package/views/dist/panels/react/toolbar/panel-part.d.ts +5 -1
  252. package/views/dist/panels/react/toolbar/panel-part.js +2 -2
  253. package/views/dist/panels/react/toolbar/use-filter-add.d.ts +16 -0
  254. package/views/dist/panels/react/toolbar/use-filter-add.js +32 -0
  255. package/views/dist/panels/react.d.ts +1 -0
  256. package/views/dist/panels/react.js +1 -0
  257. package/views/dist/panels/settings/filter-groups.js +35 -1
  258. package/views/dist/panels/settings/group-buckets.js +1 -0
  259. package/views/dist/provider/ViewsProvider.d.ts +7 -1
  260. package/views/dist/provider/ViewsProvider.js +23 -3
  261. package/views/dist/provider/components.d.ts +34 -4
  262. package/views/dist/provider/moment.d.ts +6 -0
  263. package/views/dist/provider/moment.js +10 -0
  264. package/views/dist/styles.css +1276 -51
  265. package/views/dist/styles.unlayered.css +1277 -51
  266. package/views/docs/contract.md +23 -15
  267. package/views/docs/controls/alert-dialog.md +37 -0
  268. package/views/docs/controls/alert.md +30 -0
  269. package/views/docs/controls/collapsible.md +22 -0
  270. package/views/docs/controls/filter-editor.md +28 -0
  271. package/views/docs/controls/group-editor.md +11 -0
  272. package/views/docs/controls/links-editor.md +25 -0
  273. package/views/docs/controls/modal.md +55 -0
  274. package/views/docs/controls/notice.md +32 -0
  275. package/views/docs/controls/number-editor.md +12 -0
  276. package/views/docs/controls/pane.md +25 -0
  277. package/views/docs/controls/radio.md +39 -0
  278. package/views/docs/controls/sort-editor.md +27 -0
  279. package/views/docs/controls/toast.md +32 -0
  280. package/views/docs/controls/values-editor.md +40 -0
  281. package/views/docs/controls/views-list.md +8 -0
  282. package/views/docs/guides/cells.md +1 -1
  283. package/views/docs/guides/display.md +1 -1
  284. package/views/docs/guides/the-grid.md +1 -1
  285. package/views/docs/guides/the-provider.md +19 -0
  286. package/views/docs/reference/cells.md +2 -2
  287. package/views/docs/reference/controls.md +326 -8
  288. package/views/docs/reference/display.md +2 -2
  289. package/views/docs/reference/editors-relation.md +1 -1
  290. package/views/docs/reference/looks.md +20 -3
  291. package/views/docs/reference/panels-react.md +7 -6
  292. package/views/docs/reference/panels.md +1 -1
  293. package/views/docs/reference/react.md +8 -8
  294. package/views/docs/reference/views.md +1 -0
@@ -419,7 +419,7 @@ grid's editors and menus use, each in Base UI's shape, and an adapter on Radix a
419
419
  both fill every one.
420
420
 
421
421
  **Defaults for an app that hands none:** `CONTROLS`, from `viewkitjs/views/controls`, holds ViewKit's default controls,
422
- the Outright kit's, on Base UI: its controls (the Button, the Popover, the Sheet, the Input, the Checkbox, the Tooltip, the Menu), the Text editor as its `TextBody`, the Picker as its `Picker` and `FieldsBody`, the Date editor as its `DateBody`, the Date editor's days as its `Calendar` and the Compound editor as its `PartsBody`. An app spreads it first and its own after
422
+ the Outright kit's, on Base UI: its controls (the Button, the Popover, the Sheet, the Input, the Checkbox, the Tooltip, the Menu), the Text editor as its `TextBody`, the Picker as its `Picker` and `FieldsBody`, the Date editor as its `DateBody`, the Date editor's days as its `Calendar`, the Compound editor as its `PartsBody`, the Number editor as its `NumberBody`, the Values editor as its `ValuesBody`, the Links editor as its `LinksBody`, and of the panels the sort editor as its `SortBody`, the views list as its `ViewsListBody`, the filter editor as its `FilterBody` and `FilterPartBody` and the group editor as its `GroupBody`; and of the panels' controls the Collapsible as its `Collapse`. An app spreads it first and its own after
423
423
  (`components={{ ...CONTROLS, ...own }}`), so whatever it hands wins. That door alone needs `@base-ui/react`, an optional
424
424
  peer; the provider and every other door import neither library, so an app that hands every control never installs it.
425
425
 
@@ -433,9 +433,9 @@ peer; the provider and every other door import neither library, so an app that h
433
433
 
434
434
  `Command`, optional: the command list's parts (`ViewsCommandParts`), through which the editors' lists and the grid's menus on the `popover` route draw. A list reached without one throws an error naming it. An app that hands `Picker` and sets `menus: "menu"` needs none.
435
435
 
436
- `Picker`, optional: a whole pick list your app draws, `ViewsPickerProps`. Handed one, the select, several-values, place and relation editors open it, handed their rows as `ViewsPickerItem` data (a value, its words, a status slot or a colour, a glyph, a line, a group), what is held, the empty row's words, the search's words, create (`onCreate`, handed what was typed, returning the value it makes), and where your app adds options from a cell, the add (`onAdd`, handed what was typed, with `adding` while your app answers and `addRefused` for its refusal, and no `onCreate`), and `form`. The body hands back `onValueChange` (the pick, or the whole new list) and `onDone` (a pick of one is made). The editor keeps the draft, what each close means, Tab, Escape, the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own and hands every change as it is made. Tab is taken before your body hears it. Left out, these editors draw from `Command`; `CONTROLS.Picker` is ViewKit's own, the Picker. A status field's editor hands its active steps by value (`steps`): a row on a step between that isn't one (an archived option held) is placed nowhere, as a cell places it. A relation's list is filtered (a static source, by label) or fetched (a remote one, a page at a time) by the editor, never by your body: it hands every typed query to `onSearch` and draws `items` as handed, with `doing` (`searching` or `failed`), `onRetry` and `onMore` for a remote one. A relation's rows may carry a `badge` (a word telling kinds apart), a `glyph` (the record's own, unsized), an `avatarUrl` and the record's `kind`; its create rows come as `actions` (`ViewsPickerAction`), after the rows, and picking one closes the editor before it runs; a set whose field leads hands `lead` (which value leads, `onLead`, and its words). Held records come first while nothing is typed, and by the same search once something is. Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="picker"`.
436
+ `Picker`, optional: a whole pick list your app draws, `ViewsPickerProps`. Handed one, the select, several-values, place and relation editors open it, handed their rows as `ViewsPickerItem` data (a value, its words, a status slot or a colour, a glyph, a line, a group), what is held, the empty row's words, the search's words, create (`onCreate`, handed what was typed, returning the value it makes), and where your app adds options from a cell, the add (`onAdd`, handed what was typed, with `adding` while your app answers and `addRefused` for its refusal, and no `onCreate`), and `form`. The body hands back `onValueChange` (the pick, or the whole new list) and `onDone` (a pick of one is made). The editor keeps the draft, what each close means, Tab, Escape, the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own and hands every change as it is made. Tab is taken before your body hears it. Left out, these editors draw from `Command`; `CONTROLS.Picker` is ViewKit's own, the Picker. A status field's editor hands its active steps by value (`steps`): a row on a step between that isn't one (an archived option held) is placed nowhere, as a cell places it. A relation's list is filtered (a static source, by label) or fetched (a remote one, a page at a time) by the editor, never by your body: it hands every typed query to `onSearch` and draws `items` as handed, with `doing` (`searching` or `failed`), `onRetry` and `onMore` for a remote one; `doing` is `searching` from the keystroke until the typed query answers, and the `items` meanwhile are the held records that match it alone: no row of the last answer is handed, and none can be picked. A relation's rows may carry a `badge` (a word telling kinds apart), a `glyph` (the record's own, unsized), an `avatarUrl` and the record's `kind`; its create rows come as `actions` (`ViewsPickerAction`), after the rows, and picking one closes the editor before it runs; a set whose field leads hands `lead` (which value leads, `onLead`, and its words). Held records come first while nothing is typed, and by the same search once something is. Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="picker"`.
437
437
 
438
- `LinksBody`, optional: a whole links body your app draws, `ViewsLinksBodyProps`, for a relation holding several records whose field declares `links` (each link may carry roles, and one may lead). Handed one, the set editor opens it in the grid and in a field row, in a popover on a computer and the sheet on a phone, in place of your `Picker` or ViewKit's own list; a relation with no `links` still opens those. It hands the field's name (`label`), the records as `ViewsPickerItem` data (`items`: the linked ones first, in the links' order, then the ones to add, filtered or fetched by the editor as for `Picker`, with `search`, `onSearch`, `doing`, `onRetry`, `onMore` and the create rows as `actions`), the links (`links`: `ViewsLink`s, `{ value, roles }`, in the order they stand), the field's roles in its order (`roles`: `ViewsLinkRole`s, `{ value, label, archived? }`; an archived one is handed so a link holding it shows its words and can let it go, and you offer it on that link alone), where the field leads `lead` (which value leads, `onLead`, and its words: making another lead never moves a line), what was typed on what opened it (`typed`), `autoFocus` and `form`, and in the phone's sheet `onStepChange`. The body hands back `onLinksChange` (the whole list, every change as it is made: a record linked, last and holding no role, or unlinked, a link's roles set) and `onDone` (it closes and saves the set). The editor drops from what comes back a value it never handed, a repeated link, a role the field doesn't declare, an archived role on a link that didn't hold it as the editor opened, and a role repeated; `onLead` with a value no link holds changes nothing. Unlinking the lead passes it to the first link left. The set saves with the lead first and, on each link, its roles in the key it was stored with: a link stored with `role` keeps `role` (its first role, or null), one stored with `roles` keeps `roles`, one stored with `role` alone gains `roles` beside it once it holds two or more, and a new link writes `roles` alone; a link whose roles didn't change is written as it was stored. Escape and Tab from inside your body's element are taken before your body hears them (Escape throws the set away; Tab walks your controls and closes from either end, which saves); a key in a popup your body draws outside its element, or in a level you mark `EDITOR_INNER_ESCAPE` inside it, is your body's. Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="links"`.
438
+ `LinksBody`, optional: a whole links body your app draws, `ViewsLinksBodyProps`, for a relation holding several records whose field declares `links` (each link may carry roles, and one may lead). Handed one, the set editor opens it in the grid and in a field row, in a popover on a computer and the sheet on a phone, in place of your `Picker` or ViewKit's own list; a relation with no `links` still opens those. It hands the field's name (`label`), the records as `ViewsPickerItem` data (`items`: the linked ones first, in the links' order, then the ones to add, filtered or fetched by the editor as for `Picker`, with `search`, `onSearch`, `doing`, `onRetry`, `onMore` and the create rows as `actions`), the links (`links`: `ViewsLink`s, `{ value, roles }`, in the order they stand), the field's roles in its order (`roles`: `ViewsLinkRole`s, `{ value, label, archived? }`; an archived one is handed so a link holding it shows its words and can let it go, and you offer it on that link alone), where the field leads `lead` (which value leads, `onLead`, and its words: making another lead never moves a line), what was typed on what opened it (`typed`), `autoFocus` and `form`, and in the phone's sheet `onStepChange`. The body hands back `onLinksChange` (the whole list, every change as it is made: a record linked, last and holding no role, or unlinked, a link's roles set) and `onDone` (it closes and saves the set). The editor drops from what comes back a value it never handed, a repeated link, a role the field doesn't declare, an archived role on a link that didn't hold it as the editor opened, and a role repeated; `onLead` with a value no link holds changes nothing. Unlinking the lead passes it to the first link left. The set saves with the lead first and, on each link, its roles in the key it was stored with: a link stored with `role` keeps `role` (its first role, or null), one stored with `roles` keeps `roles`, one stored with `role` alone gains `roles` beside it once it holds two or more, and a new link writes `roles` alone; a link whose roles didn't change is written as it was stored. Escape and Tab from inside your body's element are taken before your body hears them (Escape throws the set away; Tab walks your controls and closes from either end, which saves); a key in a popup your body draws outside its element, or in a level you mark `EDITOR_INNER_ESCAPE` inside it, is your body's. Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="links"`. `CONTROLS.LinksBody` is ViewKit's own, the Links editor: the search on top, the linked records as rows under the field's name, Roles and Lead (a link's roles ticked in the Picker under its button, the lead a radio, ✕ to unlink), the records to add under Add; on a phone a card per link, its roles a step of the sheet with Back (`onStepChange`). It hands every query back (`onSearch`), draws the records as handed, and draws `doing`, `onMore` and the create rows.
439
439
 
440
440
  `Calendar`, optional: a calendar over ISO days, `ViewsCalendarProps`, which the date editor draws its month through, with its own typed line, quick days and time around it, and the default `RangeCalendar` atom draws the filter panel's month through (the date filter, its date ranges and its custom time scope). Reached without one, it throws an error naming it. Handed `DateBody`, the date editor never reaches it; the filter panel still does, unless the app hands its own `RangeCalendar` atom. `CONTROLS.Calendar` is ViewKit's own: a month of the Date editor's days, one day a press, so an app that spreads `CONTROLS` needs no `Calendar` of its own.
441
441
 
@@ -443,24 +443,24 @@ peer; the provider and every other door import neither library, so an app that h
443
443
 
444
444
  `PartsBody`, optional: a whole body for a field made of parts your app draws, `ViewsPartsBodyProps`, by `kind`: `name`, `place` or `range`; `CONTROLS.PartsBody` is ViewKit's own, the Compound editor. Handed one, the name, place and range editors open it in the grid and in a field row, in a popover under the value (or over the cell at `gridBodyPlace` `over`, in the grid) on a computer and the sheet on a phone, handed the field's name, the draft as its parts, whether it may be emptied, what was typed on what opened it (already the first part's value where it reads as one), `autoFocus` and `form`. A name is handed `{ given, family, full }`, `full` as the editor's rule shows it: hand it back as handed unless the person typed one, and the editor keeps the full name following the parts until a name of its own is typed; a full name handed back as the parts joined follows them again. A place is handed its parts (`ViewsPlaceParts`), the boxes the field takes (`parts`, `ViewsPlacePart`s), those boxes in the country's own order (`rows`), each box's words for that country (`words`), the boxes it asks for (`required`), every country by name where the field takes the country (`countries`), the country's regions once loaded (`regions`), and `opens: "countries"` where the field takes a country and the place has none as the editor opens (read once, it stays as handed); the next render hands a new country's rows, words and regions. Its `regionCode` is the editor's, read from the region: a region named in the list (by its code, its name, its Latin name or its label, in any case) takes that region's label and code, any other has none, and a new country clears both. A range is handed its ends, the `decimals` the editor rounds to as it closes, its `unit` and its `bands`, which your body draws as picks. The body hands back `onValueChange` (the whole value, every change as it is made) and `onDone` (with no argument it closes as Enter does; `onDone("pick")` closes as a pick, a band picked). The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root (from `viewkitjs/views/editors/panel`), so a popover that hears Escape on the document first leaves it to your popup. A level you draw inside your element (a list in your boxes' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="parts"`.
445
445
 
446
- `ValuesBody`, optional: a whole body for a field holding several emails, phones, links or domains, which your app draws, `ViewsValuesBodyProps`. Handed one, the value list editor opens it in the grid and in a field row, in a popover under the values (or over the cell at `gridBodyPlace` `over`, in the grid) on a computer and the sheet on a phone, handed the field's name (`label`), its type (`kind`: `email`, `phone`, `url` or `domain`), the draft as lines (`ViewsValueLine`: `{ value, label?, main }`, the main one first; `[]` when there are none, so your body draws its own line for adding one), whether a value carries a label (`labels`; false, draw none and none is saved), `holds` (`one` where the field holds one value: one line, no label, no main mark, no line to add another while it holds one), a phone's country (`region`, where a number typed without its code is read), whether it may be emptied, what was typed on what opened it (already the one line's value), `autoFocus` and `form`, and `check`, the field's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as a value is added or changed. The body hands back `onValueChange` (the whole list, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). A line handed back as it was drawn keeps what is stored, so a phone or a link is not rewritten by opening the editor. The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a label list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root. A level you draw inside your element (a list in your rows' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). Three things differ from the editor's own rows: a list the write check refuses is said once, under your body in the panel, rather than under each row; where Escape keeps, an Escape over a refused list shows the reason and a second Escape throws the edit away, where the editor's own rows hold Escape until every row reads; and focus leaving your body other than by Tab doesn't close the editor (a press outside does). Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="values"`.
446
+ `ValuesBody`, optional: a whole body for a field holding several emails, phones, links or domains, which your app draws, `ViewsValuesBodyProps`; `CONTROLS.ValuesBody` is ViewKit's own, the Values editor. Handed one, the value list editor opens it in the grid and in a field row, in a popover under the values (or over the cell at `gridBodyPlace` `over`, in the grid) on a computer and the sheet on a phone, handed the field's name (`label`), its type (`kind`: `email`, `phone`, `url` or `domain`), the draft as lines (`ViewsValueLine`: `{ value, label?, main }`, the main one first; `[]` when there are none, so your body draws its own line for adding one), whether a value carries a label (`labels`; false, draw none and none is saved), `holds` (`one` where the field holds one value: one line, no label, no main mark, no line to add another while it holds one), a phone's country (`region`, where a number typed without its code is read), whether it may be emptied, what was typed on what opened it (already the one line's value), `autoFocus` and `form`, and `check`, the field's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as a value is added or changed. The body hands back `onValueChange` (the whole list, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). A line handed back as it was drawn keeps what is stored, so a phone or a link is not rewritten by opening the editor. The editor keeps the draft, Escape's keep or throw-away by field type, the write check and the save and, on a phone, the panel's ✕ and ✓: at `form: "phone"` your body draws none of its own. Escape and Tab from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end); a key that starts in a popup your body draws outside its element (a label list in a portal) is left to your body, and that popup carries `EDITOR_INNER_ESCAPE` on its root. A level you draw inside your element (a list in your rows' place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). Enter is your body's. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`) while you stand on one, and `null` once you are back (*The sheet's head*). Three things differ from the editor's own rows: a list the write check refuses is said once, under your body in the panel, rather than under each row; where Escape keeps, an Escape over a refused list shows the reason and a second Escape throws the edit away, where the editor's own rows hold Escape until every row reads; and focus leaving your body other than by Tab doesn't close the editor (a press outside does). Its popover takes ViewKit's width and padding unless the provider's `bodyFrame` is `popover`, when it stands at your `Popover`'s own width, marked `data-vk-body="values"`.
447
447
 
448
448
  `TextBody`, optional: a whole body for a field typed as one string (a line of text, an email, a phone, a link, a domain, long text or rich text), which your app draws, `ViewsTextBodyProps`; `CONTROLS.TextBody` is ViewKit's own, the Text editor. Handed one, the grid's and a field row's text editors open it: in a grid cell on a computer, every text the person may write, long text and a line the cell cut off included (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle: open upward, or scroll inside), in the sheet on a phone, and in place in a field row at every width. A text opened only to be read keeps the editor's own panel. It is handed the field's name (`label`), its text type (`kind`: `text`, `url`, `domain`, `email`, `phone` or `rich_text`), whether it is a paragraph (`paragraph`: long text and rich text), the draft (`value`, a string), a phone's country (`region`, where a number typed without its code is read; the phone opens written out), what was typed on what opened it (`typed`, already the draft), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value: its reason in your app's words, or null when it reads, for your body to say as it is typed. The body hands back `onValueChange` (the whole text, every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). The editor keeps the draft, Escape's keep or throw-away by field type, Tab, the close's tidy (a line's line breaks become a space; a phone handed back that reads as the stored number writes nothing), the write check and the save, and it draws the reason a value is refused (under the cell, in the sheet, under a field row's box): draw none of your own at the close. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter; in place, a Tab between your controls moves the focus but your own key handlers don't hear it). Enter and Shift Enter are your body's and do what the editor's own do: on a line they call `onDone()`, in a paragraph they make a new line; a step of your own that lists choices (a phone's countries) may take Enter for its pick. A key that starts in a popup your body draws outside its element (a country list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element (a list in your box's place) may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for a phone's countries) while you stand on one, and `null` once you are back (*The sheet's head*).
449
- `NumberBody`, optional: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`. Handed one, the grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them.
449
+ `NumberBody`, optional: a whole body for a number, money or a percent, which your app draws, `ViewsNumberBodyProps`. Handed one, the grid's and a field row's number editors open it: in the grid cell on a computer (lifted over the rows below and the frozen columns as ViewKit's own grown editor is; a body growing past the scroll box at the last row is your body's to handle), in the sheet on a phone, and in place in a field row at every width. A number formatted as a duration keeps the editor's own box. It is handed the field's name (`label`), its kind (`kind`: `number`, `money` or `percent`; a percent is stored 0 to 100, the value is the percent), the draft (`value`: a number, `null` when empty, `NaN` when what is in the box reads as no number), its unit (`unit`: money's currency code or a number's unit) and the units it may be put in (`units`; absent, the unit is shown with nothing to press), the digits the field keeps (`decimals`), its limits (`min`, `max`; a percent 0 and 100 unless the field widens them), how your people write a number (`locale`, and `decimal`, the separator where your app states one), whether it may be emptied (`empty`), where the figure stands (`align`: `end` in the grid, `start` in a field row), what was typed on what opened it (`typed`; `value` is its reading, or `NaN`), `autoFocus`, `form` (`phone` in the sheet, `computer` anywhere in place), and `check`, the host's own reading of a value and its unit, asked with the value rounded to `decimals`: its reason in your app's words, or null. The body hands back `onValueChange` (a number, never text: `null` when its box is emptied, `NaN` for text that reads as no number, and the unit when it is one of `units`; every change as it is made) and `onDone` (it closes as Enter does: the grid moves one row down). Read what is typed in your box with `locale` and `decimal`; the editor rounds to `decimals`, so hand what was typed. The editor keeps the draft, the rounding, Escape's keep or throw-away by field type, Tab, the close (`NaN` writes nothing; empty clears only where it may be emptied; a value that rounds to the stored one writes nothing), the write check and the save, and it draws the reason a value is refused: draw none of your own at the close. A unit handed back that isn't one of `units` is ignored. Escape, Tab and ⌘ or Ctrl Enter from inside your body's element are taken before your body hears them (Tab walks your controls and closes from either end; ⌘ or Ctrl Enter closes as Enter). Enter, Shift Enter and Alt Enter are your body's and call `onDone()`, as the editor's own box closes on Enter with any modifier; your own unit list may take Enter for its pick. A key that starts in a popup your body draws outside its element (a unit list in a portal) is left to your body; that popup carries `EDITOR_INNER_ESCAPE` on its root, takes the focus while it is open, and hands it back to your body when it closes. A level you draw inside your element may carry `EDITOR_INNER_ESCAPE` too: its Escape is your body's, and the editor stays open. Call `preventDefault()` on that Escape as you close your level, so nothing around the editor takes it too (a list's Escape that clears its selection). In place, the focus leaving your body for anywhere else closes the editor as a press outside does; a press on your body's own surface doesn't. At `form: "phone"` your body draws no ✕, ✓ or Cancel of its own: the sheet holds them. In the phone's sheet your body is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`, as for money's currencies) while you stand on one, and `null` once you are back (*The sheet's head*).
450
450
 
451
- `SortBody`, optional: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`. Handed one, the sort pill opens it in place of ViewKit's own sort editor: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody` where you hand one, else ViewKit's own list of fields. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand.
451
+ `SortBody`, optional: the sort editor's whole body, which your app draws, `ViewsSortBodyProps`. Handed one, the sort pill opens it in place of ViewKit's own sort editor: in its popover on a computer (or your `host`, where the toolbar is handed one) and in the Sheet on a phone, and so does anything else that opens `SortEditor` or `useSortEditor`'s body. It is handed the sort's name (`label`), the fields the list sorts by (`options`, each its sort key, its words and the direction a new rule takes, and, marked as the grid's header marks its column, its field's `type`, the `part` it sorts by and the header's `glyph`, drawn with your icons; the three absent for an option your app built with no column behind it), the rules in order, the first sorting first (`rules`, each a sort key and `asc` or `desc`), the sorts set aside after them (`setAside`, each holding one of the places until it is put back or deleted; `[]` when there are none), how many rules at most (`max`, a set-aside sort holding one of the places), `form`, and `addSort`, true on a computer where what holds it has no + of its own (the dashed Sort, while only set-aside sorts stand, and a pill handed `addAfter={false}`), so Add sort stands at your body's foot; a phone's body always has one. The body hands back `onRulesChange` (the whole rules in order and, when handed, the set-aside sorts kept, any left out deleted, absent keeping every one; every change as it is made: a move, a direction, a removal, an added rule, a set-aside sort put back or deleted) and `onDone` (the job is done and what holds it closes). On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the rules and the set-aside sorts back to what they were as the sheet opened) and ✓ (`done`, which keeps them) for its own head; on a computer, and under `head`, where the sheet holds them, it is handed none. On a phone it is handed `onStepChange`: hand it a step of your own (`ViewsBodyStep`, its `title` and `onBack`: Add sort's fields, a rule's direction) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it (a swipe still closes the sheet, keeping the rules). ViewKit keeps the rest: it checks each list against the rules (each rule one of `options`, each field sorted once, each set-aside sort one the list holds, `max` at most, a set-aside sort counted) and writes nothing when one breaks them; it keeps the latest rules between renders, so two changes before the next render both land; on a computer it closes the popover when the last rule goes with no set-aside sort left; and it keeps what ✕ takes back to. The + after the pill, the empty Sort and Sort on the row's right open your `FieldsBody` where you hand one, else ViewKit's own list of fields. A body that ignores `setAside` shows an empty panel at the dashed Sort, where only set-aside sorts stand. `CONTROLS.SortBody` is ViewKit's own, the sort editor: on a computer each rule its grip, its field's and its direction's Select, and ×, then Add sort where `addSort` and Clear all sorts; the set-aside sorts after the rules, each its field's box dashed with why, re-pointed, put back or deleted; on a phone a card per rule, and Add sort, a rule's direction and a set-aside sort's field as a step of the same sheet (`onStepChange`), with its own head under `bar`.
452
452
 
453
- `FilterBody`, optional: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`. Handed one, an advanced filter's pill opens it in place of ViewKit's own filter editor on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`, `PhoneFilterEditor` or `usePhoneFilterEditor`'s body. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to.
453
+ `FilterBody`, optional: the filter editor's whole body, which your app draws, `ViewsFilterBodyProps`. Handed one, an advanced filter's pill opens it in place of ViewKit's own filter editor on a computer (in its popover, or your `host`), and Filter opens it in the Sheet on a phone, and so does anything else that opens `FilterEditor`, `PhoneFilterEditor` or `usePhoneFilterEditor`'s body. It is handed the filter's name (`label`), the fields a rule may name (`fields`, each its key, words, `fieldKey`, `part` and `type`, a relation with its `far` fields one level in), the level it is open on (`filter`, `viewkitjs/fields/query`'s `FilterGroup`: on a computer the advanced filter's own group, a top joined by Or as one group of its own; on a phone the whole filter; its items rules, groups and relation rules, a rule or relation rule set aside kept where it sits), how many levels deep its rules may stand (`levels`, its own the first: 2 for an advanced filter's group, 3 on a phone, so the view never stands more than 3 deep), whether it may exclude its matches (`excludable`, `op: "not"`: an advanced filter's own group, never a top or a where), `relation` where the level is a relation rule's where edited in place (its field key, words and quantifier; its rules name its far fields; and `gone`, present only where the list no longer lists the relation: why, in words, "Its relation is no longer in this list", for your Add filter's disabled reason), `form`, and `ruleValue`, a rule's value in ViewKit's own body for its type, for your body to place where a rule's value opens, each change handed back as the rule with its new value (null for a rule set aside or a way taking no value). The body hands back `onFilterChange` (the whole level and, at a relation edited in place, its quantifier; every change as it is made: a rule added, changed or removed, a join turned, a group made, matches excluded) and `onDone` (the job is done and what holds it closes). A rule held until whole is your body's to hold: hand it back once whole. On a phone where the sheet's head doesn't draw them (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ (`close`, which takes the filter back to what it was as the sheet opened) and ✓ (`done`, which keeps it); on a computer, and under `head`, it is handed none. ViewKit keeps the rest: it checks each level against the rules (its join `and` or `or`, `not` only where `excludable`; `levels` deep at most; 50 items at most in each container; each rule a field it may name and a way that field offers, with a value that way stores; each relation rule one of the relations, never inside another, `any`, `none` or `every`; each rule still set aside one the level held, unchanged; under a relation the list no longer lists, each rule one the level held, unchanged, so its rules may be deleted and never added or changed) and writes nothing when one breaks them; it writes through its own editor's state, so the first edit in a top joined by Or wraps it into one advanced filter and the pills' keys follow; a level handed back empty on a computer takes its advanced filter away and closes the popover, and on a phone the sheet stays on it; and it keeps what ✕ takes back to. Beside the level it is handed each choice field's values (`options` on a field, each as the Picker draws it: a status's step, a person's or a record's avatar, a record's kind), only where ViewKit holds the field's whole list as it opens (its values read on demand and not yet handed by your app, it is absent: open `ruleValue` there; `[]` is a whole list that is empty), ViewKit's own words for a rule (`ruleWords(rule, relation?)`: its field, way and value as the bar words them, for a rule your body has no words of its own for), and, on a phone, `onStepChange`: hand it a step of your own (`ViewsBodyStep`: a box's list, Add filter's fields) while you stand on one, and `null` once you are back; under `head` the sheet's head shows the step's title and Back in ✕'s place, under `bar` your own head does, and the sheet's Escape goes back a step instead of closing it. `CONTROLS.FilterBody` is ViewKit's own, the filter editor: each rule Where or its join, its field, how it compares and its value in its type's own box (a choice's values from `options`), ⋮ to make a group or delete it, groups 3 deep, Add filter and Clear all filters; a rule set aside in its place, its field's box dashed saying why, re-pointed, put back where its field is back, or deleted; ViewKit's own words and value body (`ruleWords`, `ruleValue`) for a way the kit has no word for, a field it doesn't list or a choice with no values; on a phone each box's list, a date, a value ViewKit draws and Add filter as a step of the same sheet (`onStepChange`), with its own head under `bar`. It reads neither `excludable` nor a relation rule other than `any` with one far rule, which it hands back unchanged in their place.
454
454
 
455
455
  `FieldsBody`, optional: the field list's whole body, which your app draws, `ViewsFieldsBodyProps`. Handed one, ViewKit opens it wherever it opens its own sort or filter field list, in place of its own rows: for a sort, the empty Sort, Sort on the row's right and the + after the sort pill, and, inside ViewKit's own sort editor, Add sort, a rule's field and a set-aside sort's field; for a filter, Filter and the + on the bar, a filter's field on the bar, a set-aside filter's field, and, inside ViewKit's own filter editor on a computer and on a phone, Add filter and a rule's field. It stands where ViewKit's list would: in the popover under what opened it on a computer, and on a page of the editor's sheet on a phone, under the sheet's own head, so it takes no `actions`. It is handed what the pick is for (`purpose`: `sort` or `filter`), the list's name (`label`), its search's words (`search`), the fields in order as `ViewsFieldsBodyField` data (each its `key`, its words, its field's `type`, the `part` it reads and its column's `glyph`, all three as the grid's header marks its column, and, where it can't be picked, why, in `disabled`: a field another rule sorts says "Sorted"; for a filter, each relation with its `far` fields one level in, where a rule can name one), the field being changed (`own`, absent where a pick adds) and `form`. It hands back one pick through `onPick` (the field's key, and for a far field the far field's key too), and `onDone` closes what holds it with no pick. ViewKit writes the pick as its own list's would, and writes nothing for a key it didn't hand or handed `disabled`. `CONTROLS.FieldsBody` is ViewKit's own, the Picker.
456
456
 
457
- `FilterPartBody`, optional: a filter rule's way and value, which your app draws, `ViewsFilterPartBodyProps`. Handed one, a rule's way and its value open it wherever ViewKit draws them itself, in place of its ways menu and its value body: a filter on the bar, and a rule in ViewKit's own filter editor, in a popover on a computer and on a page of the sheet on a phone (no `actions`, as `FieldsBody`). It never opens inside `FilterBody`'s `ruleValue`, which stays ViewKit's own value body. It is handed which part opened it (`part`: `way` or `value`), the part's name (`label`), the rule as data (`rule`: its field key, part, way and value; one waiting for its value holds its way's empty value), the field it names (`field`, a far field for a far rule, its `type` saying the ways and the value each stores), the ways its field offers (`ways`, each its operator and its words), ViewKit's own value body (`own`, for a type your body doesn't draw; null at `way`) and `form`. It hands back the rule changed through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not, whatever value comes with it; a value is written once its way can hold it, or emptied (the rule then waits for its value). ViewKit writes nothing for a rule naming another field or part, a way its field doesn't offer or a value its way can't hold, and keeps a rule held until whole, the Or top's wrap and the bar's keys. `onDone` closes what holds it.
457
+ `FilterPartBody`, optional: a filter rule's way and value, which your app draws, `ViewsFilterPartBodyProps`. Handed one, a rule's way and its value open it wherever ViewKit draws them itself, in place of its ways menu and its value body: a filter on the bar, and a rule in ViewKit's own filter editor, in a popover on a computer and on a page of the sheet on a phone (no `actions`, as `FieldsBody`). It never opens inside `FilterBody`'s `ruleValue`, which stays ViewKit's own value body. It is handed which part opened it (`part`: `way` or `value`), the part's name (`label`), the rule as data (`rule`: its field key, part, way and value; one waiting for its value holds its way's empty value), the field it names (`field`, a far field for a far rule, its `type` saying the ways and the value each stores), the ways its field offers (`ways`, each its operator and its words), ViewKit's own value body (`own`, for a type your body doesn't draw; null at `way`) and `form`. It hands back the rule changed through `onRuleChange`: a new way is written as ViewKit's own writes one, its value kept where it still fits and emptied where not, whatever value comes with it; a value is written once its way can hold it, or emptied (the rule then waits for its value). ViewKit writes nothing for a rule naming another field or part, a way its field doesn't offer or a value its way can't hold, and keeps a rule held until whole, the Or top's wrap and the bar's keys. `onDone` closes what holds it. Its `field` carries the field's values (`options`) as `FilterBody`'s fields do. `CONTROLS.FilterPartBody` is ViewKit's own, the filter part: a rule's way in the kit's ways, its value in its type's own (a choice's values from `options`), and ViewKit's ways and `own` for a rule the kit draws no part of.
458
458
 
459
459
  `SearchField`, optional: the toolbar's search box, which your app draws, `ViewsSearchFieldProps`. Handed one, the search opens it wherever it opens its own field, in place of its frame's glass, field and ✕, on a computer and on a phone: from its button on the row and beside the phone's views, and filling its line in the narrow panel and on a phone with no views. It is handed the value, `onChange` (every keystroke), the placeholder, its name (`label`), `searching` and its words (`searchingLabel`), the clear (`onClear`, its name in `clearLabel`, and `closes`: opened from its button, your clear stands while it is open, empty or not, and closes it; filling its line, show it only while it holds a value), `form` (`computer` or `phone`) and `fill`. ViewKit keeps its button while shut, whether it is open, the caret on a press (in the first `input` inside your box), Escape and a blur with nothing typed, caught on its frame around your box: an Escape your box keeps for itself, `preventDefault` it, and a button of your own inside the box `preventDefault`s its `mousedown`, as ViewKit's ✕ does, so the box keeps its focus (a browser that doesn't focus a button on a click gives the blur no target). Fill the frame's width; on a phone, a text of 16px keeps iOS from zooming the page.
460
460
 
461
- `ViewsListBody`, optional: the views list's whole body, which your app draws, `ViewsViewsListBodyProps`. Handed one, the view picker's chip opens it in place of ViewKit's own list of views: in its popover on a computer and in the Sheet on a phone. The row's pills and its "+N" list stay ViewKit's. It is handed the list's name (`label`), the axis's views in its order (`views`, each its `value`, its words, its `icon`, its `count` (absent while the list's counts are hidden), `private` for one of the reader's own, and `menu`, the view's own verbs as your app gave them), the view in use (`value`), `form`, and, where the axis has them, `onCreate` with its word (`createLabel`; what holds the list closes first, then the axis's own create runs) and `onReorder` with `canDrag`. The body hands back `onViewChange` (a view picked; it closes nothing, so call `onDone` after it, as ViewKit's own list closes on a pick), `onReorder` (one whole block, the shared views or the reader's own, in its new order, each once) and `onDone` (what holds it closes). On a phone where the sheet's head doesn't draw it (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ alone (`close`, which closes the list); on a computer, and under `head`, it is handed none. ViewKit checks each value before it is written: a pick that isn't one of `views`, and an order that isn't one whole block, write nothing. What creating, reordering and a view's verbs mean stays your app's, as the axis says.
461
+ `ViewsListBody`, optional: the views list's whole body, which your app draws, `ViewsViewsListBodyProps`. Handed one, the view picker's chip opens it in place of ViewKit's own list of views: in its popover on a computer and in the Sheet on a phone. The row's pills and its "+N" list stay ViewKit's. It is handed the list's name (`label`), the axis's views in its order (`views`, each its `value`, its words, its `icon`, its `count` (absent while the list's counts are hidden), `private` for one of the reader's own, and `menu`, the view's own verbs as your app gave them), the view in use (`value`), `form`, and, where the axis has them, `onCreate` with its word (`createLabel`; what holds the list closes first, then the axis's own create runs) and `onReorder` with `canDrag`. The body hands back `onViewChange` (a view picked; it closes nothing, so call `onDone` after it, as ViewKit's own list closes on a pick), `onReorder` (one whole block, the shared views or the reader's own, in its new order, each once) and `onDone` (what holds it closes). On a phone where the sheet's head doesn't draw it (the provider's `sheetActions` at `bar`), it is handed `actions`, the ✕ alone (`close`, which closes the list); on a computer, and under `head`, it is handed none. ViewKit checks each value before it is written: a pick that isn't one of `views`, and an order that isn't one whole block, write nothing. What creating, reordering and a view's verbs mean stays your app's, as the axis says. `CONTROLS.ViewsListBody` is ViewKit's own, the views list: a search over the views (at the Sheet's foot on a phone), each with its glyph, its count and its ⋮ where you hand it a menu, Shared and the reader's own under their headings with a lock on each of the reader's own, a view moved by a drag or ⌥↑ ⌥↓ within its block (never one `canDrag` refuses, nor a view dropped past one), ↓ and ↑ going on from the view in use, and New view where the axis grows. It draws no ✕ of its own: the Sheet's head draws it, and `actions` goes unread.
462
462
 
463
- `GroupBody`, optional: the group editor's whole body, which your app draws, `ViewsGroupBodyProps`. Handed one, Customize's Group opens it in place of ViewKit's own group pages (Group by, its order, its date step, the groups): on a computer and in the phone's Sheet. It is for an app that keeps ViewKit's Customize: an app that hands its own `CustomizeBody` holds its group editor inside it, handed the same props. It is handed the group's name (`label`), the fields the list can be grouped by (`dimensions`, each its `value`, its words, its `orderOptions` with the direction each opens in, its `defaultOrder`, and a date's `granularities` with its `defaultGranularity`), the group as one value (`group`, a `ViewsGroupValue`: the dimension grouped by or `none`, the active dimension's `order` (`mode` and `dir`), its date step (`granularity`), `hideEmpty` while grouped where the list offers it, and `groups` while grouped where the list hands them, in the order the list shows them, each its `key`, its words, `empty` and `hidden`; no group carries a count), `manualOrder` (your own order, `manual`, may be picked) and `form`. The body hands back `onGroupChange` (the whole group, every change as it is made) and `onDone` (inside Customize, back to its list). ViewKit makes one write for each change, in this order: a new Group by, order or date step is written alone, the rest of the value (about the old field's groups) set aside; else Hide empty groups; else the groups: the same groups in a new order (your own order), one group shown or hidden, every group hidden, or every group shown. A new Group by keeps the order and step handed with it only where the new field offers them, else takes the field's own. A value that changes two of those at once, names a field the list doesn't offer, names an order or step the field grouped by doesn't offer, or adds or loses a group writes nothing. Inside Customize, whose own head holds the ✕, it is handed no `actions`.
463
+ `GroupBody`, optional: the group editor's whole body, which your app draws, `ViewsGroupBodyProps`. Handed one, Customize's Group opens it in place of ViewKit's own group pages (Group by, its order, its date step, the groups): on a computer and in the phone's Sheet. It is for an app that keeps ViewKit's Customize: an app that hands its own `CustomizeBody` holds its group editor inside it, handed the same props. It is handed the group's name (`label`), the fields the list can be grouped by (`dimensions`, each its `value`, its words, its `orderOptions` with the direction each opens in, its `defaultOrder`, and a date's `granularities` with its `defaultGranularity`), the group as one value (`group`, a `ViewsGroupValue`: the dimension grouped by or `none`, the active dimension's `order` (`mode` and `dir`), its date step (`granularity`), `hideEmpty` while grouped where the list offers it, and `groups` while grouped where the list hands them, in the order the list shows them, each its `key`, its words, `empty`, `hidden`, and its `count` where the list counts it), `manualOrder` (your own order, `manual`, may be picked) and `form`. The body hands back `onGroupChange` (the whole group, every change as it is made) and `onDone` (inside Customize, back to its list). ViewKit makes one write for each change, in this order: a new Group by, order or date step is written alone, the rest of the value (about the old field's groups) set aside; else Hide empty groups; else the groups: the same groups in a new order (your own order), one group shown or hidden, every group hidden, or every group shown. A new Group by keeps the order and step handed with it only where the new field offers them, else takes the field's own. A value that changes two of those at once, names a field the list doesn't offer, names an order or step the field grouped by doesn't offer, or adds or loses a group writes nothing. Inside Customize, whose own head holds the ✕, it is handed no `actions`. It is handed `onStepChange`, on a computer and a phone: hand it a level of your own (`ViewsBodyStep`, its `title` and `onBack`: Group by's fields, an order's choices) while you stand on one, and `null` once you are back; ViewKit's Customize shows the level's name in its head and its Back calls `onBack`. `CONTROLS.GroupBody` is ViewKit's own, the group editor: Group by, Order, Direction, a date field's Date step and Hide empty groups, each opening its choices in place; the groups with their Switch, dragged into your own order, Hide all and Show all; Remove grouping; each change one write, Count ordered by each group's `count`, its level told through `onStepChange`.
464
464
 
465
465
  `CustomizeBody`, optional: Customize's whole body, which your app draws, `ViewsCustomizeBodyProps`. Handed one, Options opens it in place of ViewKit's own Customize, in your `host`, the map's `Popover` or, on a phone, the `Sheet`, and so does everything else that draws ViewKit's Customize (`ViewOptionsPanelContent`, the ready toolbar's Options, `ViewOptionsPopoverPanel`). One body holds the whole of Customize: its sections stand where your body puts them. It is handed Customize's name (`label`), the page it stands on (`page`: `list`, `layout`, `columns`, `filter`, `sort` or `group`, held by your app where it holds Options' page, so it survives the toolbar changing form) with `onPageChange`, and the view's settings as data: `layout` (the layouts, the one in use, those refused with their reasons, `onLayoutChange`, and the layout in use's own toggles, choices, density and the reader's own settings, offered where ViewKit's own Layout page offers them), `columns` (every column in the view's order, hidden or not, `hideable`, `fixed`, a card's `startsLine` and each column's own settings; `onColumnsChange` with every column in its order, written one change at a time, a reorder or columns shown or hidden, several at once in one write (your Hide all and Show all), a column that can't hide (fixed, not hideable) staying shown and a Hide all of every column leaving the first one shown, a reorder with a column shown or hidden writing nothing; with the panels' builder's `parts`, the table's columns include each part column the view places, so a Hide all reaches it; `onStartsLineChange`, `reset` while the columns differ from the view's, and your field editor's rows as `columnMenu` and `footer`), the sort as `SortBody` is handed it (`sort`; a list with one sort as one rule, `max` 1), the filter as `FilterBody` is handed it on a phone (`filter`: the whole filter, 3 levels deep), the group as `GroupBody` is handed it (`group`), `toggles` (Show counts among them, read from the view, each written through its own `onChange`), and, on a shared view, `view` (`changes`, `stale`, `canPublish`, `pending`, `onReset`, `onPublish`). With no shared view it is handed the foot's Clear (`onClear`) where the holder offers one and Clear all (`clearAll`) while anything is set; `foot` says the foot's words (`kit` for Clear and Save, `none` where they stand elsewhere). It hands back `onDone` (what holds it closes); on a phone where the sheet's head doesn't draw it, it is handed `actions`, the ✕ alone. The sort, filter and group are written as their own slots' are, through ViewKit's checks. A list whose Customize lists the per-field filters (a field's values, a time scope, a date range, as ViewKit's own Filter page draws them) has nothing to hand a body for them: where a list's filter is only those, with no filter tree, ViewKit draws its own Customize even with a body in your map, so they stay editable. The view's name, Copy link and Export are your app's to hand your body.
466
466
 
@@ -535,13 +535,15 @@ keeps the rules as they are, and `actions.close` takes them back to what they we
535
535
  your sheet's own (a swipe, the dim, Escape) keeps them, as ✓ does. Draw both, or the one button left throws a
536
536
  person's changes away.
537
537
 
538
- **A body's step.** While an editor's body stands on a step of its own (a `TextBody`, `PartsBody`, `ValuesBody` or `LinksBody` hands
538
+ **A body's step.** While an editor's body stands on a step of its own (a `TextBody`, `NumberBody`, `PartsBody`, `ValuesBody` or `LinksBody` hands
539
539
  one through `onStepChange`), the editor's sheet is handed the step's title as `title` and `label`, in place of the
540
540
  field's name, and, under `head`, `actions.back` too: draw Back in `actions.close`'s place, on the left, with your own back
541
541
  arrow, and keep ✓. The panel's own bar does the same under `bar`. Back and an Escape your sheet reports as `escape-key`
542
542
  go back one step; a swipe, the dim and ✕ still close the whole editor, discarding, and ✓ saves it. Once the body hands
543
543
  `null`, the head is the field's name, ✕ and ✓ again. A sheet that reports Escape with no reason, or as `none`, closes
544
- the editor on it, as before.
544
+ the editor on it, as before. The sort's `SortBody` hands its steps the same way (Add sort's fields, a rule's direction):
545
+ its sheet is handed the step's title and `actions.back` only under `head` (under `bar` your body draws its own head);
546
+ Back and an Escape reported as `escape-key` go back one step, a swipe and the dim still close the sheet, keeping the rules.
545
547
 
546
548
  **`chrome: "menu"`.** It is your menu panel's surface: no inset, because the list inside carries its
547
549
  own, and no card width: it is as wide as its list. Where your copy has only the card popover, lay your
@@ -712,6 +714,10 @@ stand), `data-slot="vk-toolbar-sort-add"` (the + after it, which opens the field
712
714
  `data-slot="vk-sort-aside"` (a set-aside sort's row after the rules, `data-aside`: its field dashed in the warning colour,
713
715
  its direction disabled with why, its ⋯ holding why, Put back once it fits, and Delete) and
714
716
  `data-slot="vk-sort-fields"` (the fields a rule is picked from, a field already sorted greyed "Sorted").
717
+ `CONTROLS.SortBody`'s own: `data-slot="vk-sort-head"` (its head under `bar`: ✕, the title, ✓, or on a step Back and the
718
+ step's title) and `data-sort-step` on `.o-sort-editor` (`add`, `direction` or `repoint`, while a phone's step stands).
719
+ `CONTROLS.FilterBody`'s own: `data-slot="vk-filter-head"` (its head under `bar`: ✕, the title, ✓, or on a step Back and the
720
+ step's title) and `data-filter-step` on `.o-filter-editor` (`field`, `how`, `value` or `add`, while a phone's step stands).
715
721
 
716
722
  The quick filters' parts (VK-563): `data-slot="vk-toolbar-quick"` (the quick filters' button, lit while a value is
717
723
  held), its popover handed `data-slot="vk-toolbar-quick-panel"`, `data-slot="vk-quick-filters"` (ViewKit's own panel),
@@ -802,7 +808,7 @@ message, read from the conventions the provider carries. The package's are a clo
802
808
  `views.editors.*`, `views.menus.*`, `views.display.*`, `views.selection.*`, `views.panels.*` and `views.field-row.*`: `views.editors.tag-remove` (`{ label }`),
803
809
  `views.editors.marker-resolve`, `views.editors.marker-no-reason`, `views.editors.range-low` and
804
810
  `views.editors.range-high` (a range editor's two boxes, "From" and "To"), and `views.editors.name-given`,
805
- `views.editors.name-family` and `views.editors.name-full` (a name editor's three boxes: "First name", "Last name" and "Full name"; the first two the default controls' Compound editor's words too); the Compound editor's own (`CONTROLS.PartsBody`): `views.editors.name-shown-as` ("Shown as", the full name's box), `views.editors.name-follows` and `views.editors.name-own` (under the full name, while it follows the parts and once it is its own), `views.editors.name-own-mark` ("Its own"), `views.editors.place-no-country` ("No country", its list's empty row), `views.editors.place-no-region` (`{ region }`, "No {region}"), `views.editors.place-search-for-region` (`{ region }`, "Search for a {region}"), `views.editors.place-pick` ("Select…", an empty country or region box), in the country-first look `views.editors.place-find-country` ("Find a country"), `views.editors.place-find-region` (`{ region }`, "Find a {region}"), `views.editors.place-choose-country` ("Choose a country") and `views.editors.place-choose-region` (`{ region }`, "Choose a {region}"), and the boxes' words while no country is held: `views.editors.place-street` ("Street address"), and in the country-first look `views.editors.place-street-number` ("Street and number", "Street" on a phone: `views.editors.place-street-short`), `views.editors.place-line2-plain` ("Line 2") and `views.editors.place-postcode` ("Postcode"), beside `views.editors.place-city-city`, `views.editors.place-postal-postal`, `views.editors.place-region-state` and `views.editors.place-region`; and its number boxes' `views.editors.number-increase` ("Increase"), `views.editors.number-decrease` ("Decrease") and `views.editors.number-field` ("Number field", what a screen reader calls one); `views.editors.values-add` ("Add"), `views.editors.values-label` ("Label"), `views.editors.values-main` ("Main", the main value's mark), `views.editors.values-make-main` (`{ value }`, "Make {value} the main one") and `views.editors.values-remove` (`{ value }`, "Remove {value}") (a value list editor's rows); `views.editors.discard` ("Discard", the editor sheet's ✕), `views.editors.save` ("Save", its ✓) and `views.editors.back` ("Back", in ✕'s place while a body stands on a step of its own); `views.editors.open-email`, `views.editors.open-phone` and `views.editors.open-link` (`{ value }`, "Email {value}", "Call {value}", "Open {value}", the open action beside a stored value in a phone's sheet); `views.editors.add-option` (`{ value }`, "Add “{value}”", the row that asks the app to add a typed word as an option), `views.editors.adding-option` (`{ value }`, "Adding “{value}”…", that row while the app answers), `views.editors.add-failed` (`{ value }`, "Couldn't add “{value}”", an add that failed with no words of its own) and `views.editors.add-not-listed` (`{ value }`, "Added “{value}”, but the list hasn't shown it yet", an added option the field's options still don't carry after five seconds); the place editor's: `views.editors.place-country` ("Country"), `views.editors.place-country-search` ("Search for a country"), `views.editors.place-change-country` ("Change country"), `views.editors.place-region-search` ("Search"), `views.editors.place-line1` ("Address line 1"), `views.editors.place-line2` ("Address line 2"), `views.editors.place-required` (`{ label }`, "{label} *", a part its country asks for), the region's words `views.editors.place-region-area`, `views.editors.place-region-county`, `views.editors.place-region-department`, `views.editors.place-region-district`, `views.editors.place-region-do-si`, `views.editors.place-region-emirate`, `views.editors.place-region-island`, `views.editors.place-region-oblast`, `views.editors.place-region-parish`, `views.editors.place-region-prefecture`, `views.editors.place-region-province` and `views.editors.place-region-state`, the city's `views.editors.place-city-city`, `views.editors.place-city-district`, `views.editors.place-city-post-town` and `views.editors.place-city-suburb`, and the postal code's `views.editors.place-postal-eircode`, `views.editors.place-postal-pin`, `views.editors.place-postal-postal` and `views.editors.place-postal-zip` (each its word in English: "County", "Do/Si", "Post town", "PIN code", "ZIP code"); `placeWordKey(kind, word)` gives the key for a word `placeFormat` names; `views.editors.place-region` ("Region") beside the place editor's `views.editors.place-country`,
811
+ `views.editors.name-family` and `views.editors.name-full` (a name editor's three boxes: "First name", "Last name" and "Full name"; the first two the default controls' Compound editor's words too); the Compound editor's own (`CONTROLS.PartsBody`): `views.editors.name-shown-as` ("Shown as", the full name's box), `views.editors.name-follows` and `views.editors.name-own` (under the full name, while it follows the parts and once it is its own), `views.editors.name-own-mark` ("Its own"), `views.editors.place-no-country` ("No country", its list's empty row), `views.editors.place-no-region` (`{ region }`, "No {region}"), `views.editors.place-search-for-region` (`{ region }`, "Search for a {region}"), `views.editors.place-pick` ("Select…", an empty country or region box), in the country-first look `views.editors.place-find-country` ("Find a country"), `views.editors.place-find-region` (`{ region }`, "Find a {region}"), `views.editors.place-choose-country` ("Choose a country") and `views.editors.place-choose-region` (`{ region }`, "Choose a {region}"), and the boxes' words while no country is held: `views.editors.place-street` ("Street address"), and in the country-first look `views.editors.place-street-number` ("Street and number", "Street" on a phone: `views.editors.place-street-short`), `views.editors.place-line2-plain` ("Line 2") and `views.editors.place-postcode` ("Postcode"), beside `views.editors.place-city-city`, `views.editors.place-postal-postal`, `views.editors.place-region-state` and `views.editors.place-region`; and its number boxes' `views.editors.number-increase` ("Increase"), `views.editors.number-decrease` ("Decrease") and `views.editors.number-field` ("Number field", what a screen reader calls one); the Number editor's own (`CONTROLS.NumberBody`): `views.editors.number-unit` ("Unit", a number's units' list, as `views.menus.currency` names money's), `views.editors.number-find-currency` ("Find a currency") and `views.editors.number-search-currency` ("Search for a currency", on a phone), `views.editors.number-find-unit` ("Find a unit") and `views.editors.number-search-unit` ("Search for a unit"), and `views.editors.number-unit-named` (`{ unit, name }`, "{unit}: {name}", the code button's name, "Currency: Euro"); `views.editors.values-add` ("Add"), `views.editors.values-label` ("Label"), `views.editors.values-main` ("Main", the main value's mark), `views.editors.values-make-main` (`{ value }`, "Make {value} the main one") and `views.editors.values-remove` (`{ value }`, "Remove {value}") (a value list editor's rows); the Values editor's own (`CONTROLS.ValuesBody`): `views.editors.values-line-email` ("Add email…"), `views.editors.values-line-link` ("Add link…"), `views.editors.values-line-domain` ("Add domain…"), `views.editors.values-card-line-email` ("Add email", on a phone's card), `views.editors.values-card-line-link` ("Add link"), `views.editors.values-card-line-domain` ("Add domain"), `views.editors.values-add-email` ("Add an email"), `views.editors.values-add-phone` ("Add a phone"), `views.editors.values-add-link` ("Add a link"), `views.editors.values-add-domain` ("Add a domain"), `views.editors.values-nth-email` (`{ n }`, "email {n}"), `views.editors.values-nth-phone` (`{ n }`, "phone {n}"), `views.editors.values-nth-link` (`{ n }`, "link {n}"), `views.editors.values-nth-domain` (`{ n }`, "domain {n}"), `views.editors.values-change` (`{ value }`, "Change {value}"), `views.editors.values-copy` (`{ value }`, "Copy {value}"), `views.editors.values-move` (`{ value }`, "Move {value}"), `views.editors.values-label-is` (`{ label }`, "Label: {label}"), `views.editors.values-no-label` ("none"), `views.editors.values-label-search` ("Search or type a label"), `views.editors.values-label-find` ("Find or type a label"), `views.editors.values-country-code` ("Country code"), `views.editors.values-country-is` (`{ country }`, "Country: {country}"), `views.editors.values-country-code-is` (`{ country }`, "Country code: {country}"), `views.editors.values-back-to` (`{ label }`, "Back to {label}"), `views.editors.values-label-work` ("Work"), `views.editors.values-label-personal` ("Personal"), `views.editors.values-label-mobile` ("Mobile"), `views.editors.values-label-other` ("Other"); `views.editors.discard` ("Discard", the editor sheet's ✕), `views.editors.save` ("Save", its ✓) and `views.editors.back` ("Back", in ✕'s place while a body stands on a step of its own); `views.editors.open-email`, `views.editors.open-phone` and `views.editors.open-link` (`{ value }`, "Email {value}", "Call {value}", "Open {value}", the open action beside a stored value in a phone's sheet); `views.editors.add-option` (`{ value }`, "Add “{value}”", the row that asks the app to add a typed word as an option), `views.editors.adding-option` (`{ value }`, "Adding “{value}”…", that row while the app answers), `views.editors.add-failed` (`{ value }`, "Couldn't add “{value}”", an add that failed with no words of its own) and `views.editors.add-not-listed` (`{ value }`, "Added “{value}”, but the list hasn't shown it yet", an added option the field's options still don't carry after five seconds); the place editor's: `views.editors.place-country` ("Country"), `views.editors.place-country-search` ("Search for a country"), `views.editors.place-change-country` ("Change country"), `views.editors.place-region-search` ("Search"), `views.editors.place-line1` ("Address line 1"), `views.editors.place-line2` ("Address line 2"), `views.editors.place-required` (`{ label }`, "{label} *", a part its country asks for), the region's words `views.editors.place-region-area`, `views.editors.place-region-county`, `views.editors.place-region-department`, `views.editors.place-region-district`, `views.editors.place-region-do-si`, `views.editors.place-region-emirate`, `views.editors.place-region-island`, `views.editors.place-region-oblast`, `views.editors.place-region-parish`, `views.editors.place-region-prefecture`, `views.editors.place-region-province` and `views.editors.place-region-state`, the city's `views.editors.place-city-city`, `views.editors.place-city-district`, `views.editors.place-city-post-town` and `views.editors.place-city-suburb`, and the postal code's `views.editors.place-postal-eircode`, `views.editors.place-postal-pin`, `views.editors.place-postal-postal` and `views.editors.place-postal-zip` (each its word in English: "County", "Do/Si", "Post town", "PIN code", "ZIP code"); `placeWordKey(kind, word)` gives the key for a word `placeFormat` names; `views.editors.place-region` ("Region") beside the place editor's `views.editors.place-country`,
806
812
  `views.editors.place-city-city` and `views.editors.place-postal-postal`, a place's parts in a panel;
807
813
  `views.menus.part-row` (`{ field, part }`, one part's row in a panel: "Location · Country");
808
814
  the grid's column menu: `views.menus.sort-asc` ("Sort ascending"), `views.menus.sort-desc`, `views.menus.sort-clear`
@@ -899,12 +905,14 @@ sort), `views.panels.group-none` ("None") and
899
905
  Wrap"), `views.panels.toggle-reset-hint` ("Back to your default") and `views.panels.search-clear` ("Clear"). The
900
906
  panels' label functions take the resolver last; each defaults to `resolveViewsMessage`.
901
907
  The Picker's own words, which `CONTROLS.Picker` and `CONTROLS.FieldsBody` hand it from these keys as its `words`: `views.picker.searching` ("Searching…"), `views.picker.failed` ("Couldn't search."), `views.picker.failed-line` ("Check the connection and try again."), `views.picker.retry` ("Try again"), `views.picker.none-typed` (`{ typed }`, "Nothing matches “Zed”."), `views.picker.nothing-matches` ("Nothing matches."), `views.picker.create` (`{ typed }`, "Create “Zed”"), `views.picker.create-button` ("Create"), `views.picker.loading-more` ("Loading more…"), `views.picker.chosen` (`{ count }`, "2 chosen"), `views.picker.clear-all` ("Clear all"), `views.picker.selected` ("Selected"), `views.picker.selected-count` (`{ count }`, "Selected · 2"), `views.picker.selected-fixed` ("Selected · can't be empty"), `views.picker.cancel` ("Cancel"), `views.picker.save` ("Save"), `views.picker.type-to-search` ("Type to look one up."), `views.picker.actions` ("Actions"), `views.picker.back` (`{ label }`, "Back to Company"), `views.picker.row-actions` (`{ label }`, "Actions for Company"), `views.picker.you` ("you").
908
+
909
+ The Links editor's own words, which `CONTROLS.LinksBody` hands it from these keys (with the Picker's where the words are the same: `views.picker.nothing-matches`, `none-typed`, `row-actions`, `back`, `save`, `searching`, `failed`, `retry` and `loading-more`, `views.panels.close`, and the slot's `lead.makeLabel` for a link's Make lead): `views.editors.links-search` ("Search…"), `views.editors.links-roles` ("Roles"), `views.editors.links-add` ("Add"), `views.editors.links-add-to` (`{ label }`, "Add to Companies"), `views.editors.links-link` (`{ label }`, "Link Acme"), `views.editors.links-unlink` ("Unlink"), `views.editors.links-unlink-record` (`{ label }`, "Unlink Acme"), `views.editors.links-is-lead` (`{ label, lead }`, "Acme is the lead"), `views.editors.links-edit` (`{ label }`, "Edit the link to Acme"), `views.editors.links-menu` (`{ label }`, "the link to Acme", a link's ⋯ menu on a phone), `views.editors.links-field-at` (`{ field, label }`, "Roles at Acme"), `views.editors.links-search-roles` ("Search roles…"), `views.editors.links-none` ("None"), `views.editors.links-no-details` ("No details"), `views.editors.links-yes` ("Yes"), `views.editors.links-no` ("No"), `views.editors.links-all-linked` ("Everything is linked."), `views.editors.links-done` ("Done").
902
910
  The views row's words: `views.panels.view-private` ("Only you", a private view's lock),
903
911
  `views.panels.view-reorder` (`{ label }`, "Reorder Board", a pill's grip), `views.panels.view-count`
904
912
  (`{ label, count }`, "Board · 12"), `views.panels.views-more` (`{ count }`, "3 more views", the "+N" chip),
905
913
  `views.panels.views-more-list` ("More views", its list), `views.panels.view-change` ("Change view", the
906
914
  picker's chip), `views.panels.view-fallback` ("View", the chip with no active view),
907
- `views.panels.views-search` ("Search views…"), `views.panels.views-list` ("Views", the picker's list),
915
+ `views.panels.views-search` ("Search views…"), `views.panels.views-find` ("Find a view", the views list's search on a phone, `CONTROLS.ViewsListBody`), `views.panels.views-list` ("Views", the picker's list),
908
916
  `views.panels.views-shared` ("Shared") and `views.panels.views-personal` ("Personal"), its two headings,
909
917
  `views.panels.views-none` ("No view matches."), `views.panels.view-create` ("New view", the +),
910
918
  `views.panels.view-create-row` (`{ label }`, "New view…", the picker's last row) and
@@ -953,7 +961,7 @@ rows' and pages' names where the list names none, `views.panels.filter` ("Filter
953
961
  changed since you started."); and its actions, `views.panels.copy-link` ("Copy link to view"),
954
962
  `views.panels.export-csv` ("Export CSV"), `views.panels.share` ("Share"), `views.panels.coming-soon` ("Coming
955
963
  soon", a parked action's hint) and `views.panels.loading` ("Loading", the export's spinner).
956
- The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) and `views.panels.phone-layout` ("On your phone"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓); the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
964
+ The words the panels' builder writes into its configs (`settingsPanels`, `/panels`): the layouts, `views.panels.layout-table` ("Table"), `views.panels.layout-list` ("List"), `views.panels.layout-board` ("Board"), `views.panels.layout-calendar` ("Calendar"), with `views.panels.layout-rows` ("Rows", the list as the phone choice names it), and the reasons one is refused, `views.panels.layout-refused-calendar` ("No date field") and `views.panels.layout-refused-board` ("No field to lay a board out by"); the look, `views.panels.look-vertical-borders` ("Vertical borders"), `views.panels.look-row-icon` ("Row icon"), `views.panels.look-freeze-identity` ("Freeze identity columns"), `views.panels.look-always-checkboxes` ("Show checkboxes always"); the densities, `views.panels.density-compact` ("Compact"), `views.panels.density-default` ("Default"), `views.panels.density-spacious` ("Spacious"); the Layout panel's choices, `views.panels.board-field` ("Board by"), `views.panels.calendar-field` ("Date field"), `views.panels.card-fields` ("Fields") (a card's Columns row) and `views.panels.phone-layout` ("On your phone"); Sort's `views.panels.sort-manual` ("Manual"); the sort pill and the sort editor's (VK-188), `views.panels.sorted-by` ("Sorted by", before the first rule's field), `views.panels.sort-more` (`{ count }`, "+{count}"), `views.panels.sort-add-one` ("Add a sort", the +'s name), `views.panels.sort-add` ("Add sort"), `views.panels.sort-clear-all` ("Clear all"), `views.panels.sort-sorted` ("Sorted", a field already sorted), `views.panels.sort-max` (`{ max }`, "Three at most"), `views.panels.sort-empty` ("No sorting set up yet") and `views.panels.sort-empty-line` ("Choose a field to sort by"), `views.panels.sort-ascending` ("Ascending") and `views.panels.sort-descending` ("Descending"), `views.panels.sort-direction` ("Direction", its menu's name), with `views.panels.sort-field-named` and `views.panels.sort-direction-named` (`{ label }`, "Field: {label}", "Direction: {label}", a rule's two boxes named with what they hold), `views.panels.sort-delete` ("Delete"), `views.panels.sort-move` (`{ label }`, "Move {label}", a rule's grip), `views.panels.sort-remove` (`{ label }`, "Remove the sort by {label}"), `views.panels.sort-actions` (`{ label }`, "Actions for the sort by {label}", a phone's ⋯), `views.panels.sort-search` ("Search fields") and `views.panels.sort-done` ("Done", the phone sheet's ✓), and `CONTROLS.SortBody`'s own (VK-721), `views.panels.sort-field` ("Field", a rule's field box), `views.panels.sort-clear-all-sorts` ("Clear all sorts", a computer's foot) and `views.panels.sort-by-named` (`{ label }`, "the sort by {label}", a rule's ⋯ menu); `CONTROLS.FilterBody`'s and `CONTROLS.FilterPartBody`'s own (VK-720), `views.panels.filter-group-list` ("Group", a group's rules to a screen reader), `views.panels.filter-rule-named` (`{ label }`, "{label}'s rule", a rule's ⋮), `views.panels.filter-way-named` (`{ label }`, "How {label} compares", a way's list and its step), `views.panels.filter-choose-date` ("Choose a date"), `views.panels.filter-type-number` ("Type a number") and `views.panels.filter-type-value` ("Type a value"), a value's placeholders, `views.panels.filter-from-named` and `views.panels.filter-to-named` (`{ label }`, "{label} from", "{label} to", a range's two ends), `views.panels.filter-checked` ("Checked") and `views.panels.filter-unchecked` ("Unchecked"), a yes/no's two values, and `views.panels.filter-kit-way` (`{ way }`, the kit's ways in their words: "is any of", "less than", "any part between"); `CONTROLS.GroupBody`'s own (VK-839), `views.panels.group-order` ("Order", the group's order setting), `views.panels.group-date-step` ("Date step", a date field's step setting), `views.panels.group-order-own` ("Your own", your own order), `views.panels.group-own-no-direction` ("Your own order has no direction", why Direction is greyed), `views.panels.group-no-value` ("No value", the empty group), and its rows' own, `views.panels.list-move-keys` ("Left arrow for its grip, then up or down arrow to move it", how a computer's rows move), `views.panels.list-move-hold` ("Hold, then drag to move it", a phone's) and `views.panels.list-moved` (`{ label, at, of }`, "{label}, {at} of {of}", a move said), a grip named by `views.panels.sort-move` and a Switch's words by `views.panels.toggle-on` and `views.panels.toggle-off`; the quick filters' (VK-563), `views.panels.quick-filters` ("Quick filters", the button and its panel), `views.panels.quick-fields` ("Fields", the strip's name), `views.panels.quick-search` (`{ field }`, "Search {field}"), `views.panels.quick-none` ("Nothing matches."), `views.panels.quick-value` (`{ label, count }`, "{label}, {count}", a value with its count to a screen reader, the count already in the reader's digits), `views.panels.quick-empty` ("No value", a held empty value no value lists), and the reminder's on a phone (VK-566), `views.panels.quick-reminder` (`{ names }`, "Quick filters: {names}", its names to a screen reader, every held value named once), `views.panels.quick-more` (`{ count }`, "+{count}", the names it doesn't show) and `views.panels.quick-clear` ("Clear quick filters", its ✕); the advanced filter and the filter editor's (VK-531), `views.panels.advanced-filter` ("Advanced filter", its pill), `views.panels.advanced-filter-set-aside` ("Its rules are set aside", why a pill whose rules are all set aside is drawn set aside), `views.panels.filter-join` (`{ join }`, "And" or "Or"), `views.panels.filter-add` ("Add filter"), `views.panels.filter-clear-all-filters` ("Clear all filters"), `views.panels.filter-to-group` ("Convert to group"), `views.panels.filter-delete-rule` ("Delete condition"), `views.panels.filter-delete-group` ("Delete group"), `views.panels.filter-exclude` ("Exclude matches"), `views.panels.filter-exclude-needs-and` ("Join by And to exclude matches"), `views.panels.filter-excluded` ("Not all of these", heading a group that excludes its matches), `views.panels.filter-to-advanced` ("Convert to advanced filter", a filter's page in the Filter panel, and a row of a filter's ⋯ on the bar), `views.panels.filter-field` ("Field"), `views.panels.filter-way` ("How it compares") and `views.panels.filter-value` ("Value"), a rule's three boxes and a bar filter's three parts, `views.panels.filter-choose` ("Choose", drawn nowhere: a value waiting says `views.panels.filter-waits`), `views.panels.filter-search` ("Filter by…"), `views.panels.filter-relation-way` (`{ quantifier }`, "any where", "none where", "every where"), `views.panels.filter-rule-actions` (`{ label }`, "Actions for the filter on {label}", a rule's ⋮), `views.panels.filter-group-actions` ("Actions for this group"), `views.panels.filter-set-aside-why` (`{ reason }`, a set-aside filter's why: "Set aside: its field is no longer in this list", "Set aside: its field no longer compares this way", "Set aside: its field no longer has this part"), `views.panels.sort-set-aside-why` (`{ reason }`, a set-aside sort's: "Set aside: its field is no longer in this list", else "Set aside: its field no longer sorts this way"), `views.panels.filter-set-aside-back` and `views.panels.sort-set-aside-back` (a set-aside filter's or sort's why once its field is listed again: "Set aside: its field is back in this list, and Put back filters by it again", "… and Put back sorts by it again"), `views.panels.put-back` ("Put back"), `views.panels.filter-or-full` ("This view's filter joins by Or and is three levels deep: change it in its advanced filter", the rows' reason), `views.panels.filter-too-deep` ("Three levels at most"), `views.panels.filter-too-many` ("Fifty filters at most in one group") and `views.panels.filter-relation-gone` ("Its relation is no longer in this list", Add filter's reason under a relation the list no longer lists); the filter editor on a phone's (VK-532), `views.panels.filter-empty` ("No filtering set up yet") and `views.panels.filter-empty-line` ("Choose a field to filter by"), `views.panels.filter-clear-all` ("Clear all") and `views.panels.filter-done` ("Done", the phone sheet's ✓); the filters on the toolbar's bar, `views.panels.filter-waits` (`{ type }`, what a filter's value waits for, on the bar and in the filter editor's value box: "Choose" for a choice, "Type a number", "Choose a date", "Type a value"), `views.panels.filter-way-words` (`{ label }`, how it compares as the bar says it, the way's label with its first letter in lower case, "is any of"), `views.panels.filter-far-field` (`{ relation, field }`, "Company › Industry", a related record's field), `views.panels.filter-rule-words` (`{ field, way, value }`, "Stage is any of Talking", the sentence that names a filter), `views.panels.filter-add-one` ("Add a filter", the +'s name), `views.panels.filter-delete` ("Delete filter"), `views.panels.filter-more` (`{ count }`, "+1 filter", "+{count} filters") and `views.panels.filter-more-named` (`{ count }`, "1 more filter", "{count} more filters", its name); what a screen reader hears of a drag in the parts that drag (VK-401), each row by its label, `views.panels.drag-instructions` ("To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel."), `views.panels.drag-picked-up` (`{ label }`, "Picked up draggable item {label}."), `views.panels.drag-over` (`{ label, over }`, "Draggable item {label} was moved over droppable area {over}."), `views.panels.drag-not-over` (`{ label }`, "Draggable item {label} is no longer over a droppable area."), `views.panels.drag-dropped-over` (`{ label, over }`, "Draggable item {label} was dropped over droppable area {over}"), `views.panels.drag-dropped` (`{ label }`, "Draggable item {label} was dropped.") and `views.panels.drag-cancelled` (`{ label }`, "Dragging was cancelled. Draggable item {label} was dropped."); the Group panel's orders `views.panels.group-order-date` ("Date") and `views.panels.group-order-lifecycle` ("Lifecycle"); and a date's granularities, `views.panels.granularity-relative` ("Relative"), `views.panels.granularity-due` ("Due"), `views.panels.granularity-day` ("Day"), `views.panels.granularity-week` ("Week"), `views.panels.granularity-month` ("Month"), `views.panels.granularity-year` ("Year").
957
965
  The selection bar's words are under `views.selection.*`: `views.selection.count` (`{ count }`, "3 selected",
958
966
  the phone sheet's title), `views.selection.selected` (the word after the count the bar draws),
959
967
  `views.selection.deselect-all` (the count chip), `views.selection.clear` (the phone's ✕),
@@ -0,0 +1,37 @@
1
+ # The alert dialog's tokens
2
+
3
+ Every name `alert-dialog.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ What it stands in on a phone, its panel or a Sheet, is the Alert's Opens as (`data-alert-phone`).
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
10
+ | `--vk-backdrop-alert-medium` | colour | `backdrop-alert-medium` | `hsl(214 30% 10% / 0.15)` · dark `hsl(0 0% 0% / 0.22)` |
11
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
12
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
13
+ | `--vk-backdrop-alert-light` | colour | `backdrop-alert-light` | `hsl(214 30% 10% / 0.08)` · dark `hsl(0 0% 0% / 0.12)` |
14
+ | `--vk-backdrop-alert-deep` | colour | `backdrop-alert-deep` | `hsl(214 30% 10% / 0.24)` · dark `hsl(0 0% 0% / 0.36)` |
15
+ | `--vk-backdrop-veil-medium` | colour | `backdrop-veil-medium` | `hsl(0 0% 100% / 0.56)` · dark `hsl(226 10% 10% / 0.56)` |
16
+ | `--vk-backdrop-veil-light` | colour | `backdrop-veil-light` | `hsl(0 0% 100% / 0.4)` · dark `hsl(226 10% 10% / 0.4)` |
17
+ | `--vk-backdrop-veil` | colour | `backdrop-veil` | `hsl(0 0% 100% / 0.72)` · dark `hsl(226 10% 10% / 0.72)` |
18
+ | `--vk-blur-xs` | size | `blur-xs` | `4px` |
19
+ | `--vk-blur-sm` | size | `blur-sm` | `8px` |
20
+ | `--vk-blur-md` | size | `blur-md` | `12px` |
21
+ | `--vk-blur-lg` | size | `blur-lg` | `24px` |
22
+ | `--vk-spacing` | size | `spacing` | `4px` |
23
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
24
+ | `--vk-container-sm` | size | `container-sm` | `384px` |
25
+ | `--vk-border-width` | size | `border-width` | `1px` |
26
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
27
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
28
+ | `--vk-shadow-2xl` | shadow | `shadow-2xl` | `0 25px 50px -12px rgb(0 0 0 / 0.25)` · dark `0 25px 50px -12px rgb(0 0 0 / 0.25)` |
29
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
30
+ | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` · dark `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
31
+ | `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` · dark `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
32
+ | `--vk-push-scale` | motion | `push-scale` | `0.94` |
33
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
34
+ | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
35
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
36
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
37
+ | `--vk-radius-3xl` | size | `radius-3xl` | `26.67px` |
@@ -0,0 +1,30 @@
1
+ # The Alert's tokens
2
+
3
+ Every name `alert.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ How far its words stand from the panel's edge is the alert dialog's (`--alert-padding`), 24 where nothing sets it.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
10
+ | `--vk-spacing` | size | `spacing` | `4px` |
11
+ | `--vk-font-size-lg` | size | `text-lg` | `18px` |
12
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
13
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
14
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
15
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
16
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
17
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
18
+ | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` · dark `hsl(0 81% 58%)` |
19
+ | `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
20
+ | `--vk-overlay-card-pressed` | colour | `surface-overlay-card-pressed` | `hsl(220 7% 90%)` · dark `hsl(220 4% 22%)` |
21
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
22
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
23
+ | `--vk-fg-accent` | colour | `text-brand` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
24
+ | `--vk-info-subtler` | colour | `background-information-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
25
+ | `--vk-info` | colour | `text-information` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
26
+ | `--vk-success-subtler` | colour | `background-success-subtler` | `hsl(143 41% 91%)` · dark `hsl(145 17% 12.5%)` |
27
+ | `--vk-success` | colour | `text-success` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
28
+ | `--vk-warning-subtler` | colour | `background-warning-subtler` | `hsl(19 72% 92.5%)` · dark `hsl(20 29% 13.5%)` |
29
+ | `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` · dark `hsl(25 92% 41%)` |
30
+ | `--vk-danger-subtler` | colour | `background-danger-subtler` | `hsl(6 100% 94%)` · dark `hsl(6 27% 14.5%)` |
@@ -0,0 +1,22 @@
1
+ # The Collapsible's tokens
2
+
3
+ Every name `collapsible.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-ease-out-sharp` | motion | `ease-out-sharp` | `cubic-bezier(0.23, 1, 0.32, 1)` |
8
+ | `--vk-spacing` | size | `spacing` | `4px` |
9
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
10
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
11
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
12
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
13
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
14
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
15
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
16
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
17
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
18
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
19
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
20
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
21
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
22
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
@@ -0,0 +1,28 @@
1
+ # The filter editor's tokens
2
+
3
+ Every name `filter-editor.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ The Select, the Picker, the Menu, the Button, the Input, the Number field, the Date editor, the Popover and the Tooltip it draws with read their own pages' names. A group's field keeps its ground over the group's with the Input's own `--input-ground`, and a set-aside rule's field box takes the warning edge through the Input's own `--input-edge`: both are the Input's machinery.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
10
+ | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
11
+ | `--vk-border-warning` | colour | `border-warning` | `hsl(20 63% 57.5%)` · dark `hsl(22 74% 36%)` |
12
+ | `--vk-border-width` | size | `border-width` | `1px` |
13
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
14
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
15
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
16
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
17
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
18
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
19
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
20
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
21
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
22
+ | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
23
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
24
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
25
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
26
+ | `--vk-spacing` | size | `spacing` | `4px` |
27
+ | `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
28
+ | `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
@@ -0,0 +1,11 @@
1
+ # The group editor's tokens
2
+
3
+ Every name `group-editor.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ The Menu list, the Picker, the Button and the Sheet it draws with read their own pages' names.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
10
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
11
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,25 @@
1
+ # The Links editor's tokens
2
+
3
+ Every name `links-editor.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ Its own machinery (`--links-room`, `--links-under`, the room a phone's full Sheet gives it) is set and read by it alone.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` |
10
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
11
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
12
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
13
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
14
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
15
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
16
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
17
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
18
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
19
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
20
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
21
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
22
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
23
+ | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
24
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
25
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,55 @@
1
+ # The Modal's tokens
2
+
3
+ Every name `modal.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ `--modal-room` is how far it keeps from the screen's edges, 48 where nothing sets it: a page that draws a screen sets it to keep less.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-layer-drawer` | size | `layer-drawer` | `40` |
10
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
11
+ | `--vk-backdrop-modal-light` | colour | `backdrop-modal-light` | `hsl(214 30% 10% / 0.06)` · dark `hsl(0 0% 0% / 0.1)` |
12
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
13
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
14
+ | `--vk-backdrop-modal-medium` | colour | `backdrop-modal-medium` | `hsl(214 30% 10% / 0.12)` · dark `hsl(0 0% 0% / 0.18)` |
15
+ | `--vk-backdrop-modal-deep` | colour | `backdrop-modal-deep` | `hsl(214 30% 10% / 0.2)` · dark `hsl(0 0% 0% / 0.3)` |
16
+ | `--vk-backdrop-modal-veil-light` | colour | `backdrop-modal-veil-light` | `hsl(0 0% 100% / 0.4)` · dark `hsl(226 10% 10% / 0.4)` |
17
+ | `--vk-backdrop-modal-veil-medium` | colour | `backdrop-modal-veil-medium` | `hsl(0 0% 100% / 0.56)` · dark `hsl(226 10% 10% / 0.56)` |
18
+ | `--vk-backdrop-modal-veil-deep` | colour | `backdrop-modal-veil-deep` | `hsl(0 0% 100% / 0.72)` · dark `hsl(226 10% 10% / 0.72)` |
19
+ | `--vk-blur-xs` | size | `blur-xs` | `4px` |
20
+ | `--vk-blur-sm` | size | `blur-sm` | `8px` |
21
+ | `--vk-blur-md` | size | `blur-md` | `12px` |
22
+ | `--vk-blur-lg` | size | `blur-lg` | `24px` |
23
+ | `--vk-spacing` | size | `spacing` | `4px` |
24
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
25
+ | `--vk-container-2xl` | size | `container-2xl` | `672px` |
26
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
27
+ | `--vk-shadow-2xl` | shadow | `shadow-2xl` | `0 25px 50px -12px rgb(0 0 0 / 0.25)` · dark `0 25px 50px -12px rgb(0 0 0 / 0.25)` |
28
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
29
+ | `--vk-container-lg` | size | `container-lg` | `512px` |
30
+ | `--vk-container-4xl` | size | `container-4xl` | `896px` |
31
+ | `--vk-container-5xl` | size | `container-5xl` | `1024px` |
32
+ | `--vk-push-scale` | motion | `push-scale` | `0.94` |
33
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
34
+ | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
35
+ | `--vk-press-scale` | motion | `press-scale` | `0.98` |
36
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
37
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
38
+ | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` · dark `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
39
+ | `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` · dark `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
40
+ | `--vk-border-modal-ring` | colour | `border-modal-ring` | `hsl(210 1% 88%)` · dark `hsl(210 2% 19%)` |
41
+ | `--vk-border-width` | size | `border-width` | `1px` |
42
+ | `--vk-border-modal-edge` | colour | `border-modal-edge` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
43
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
44
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
45
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
46
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
47
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
48
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
49
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
50
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
51
+ | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
52
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
53
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
54
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
55
+ | `--vk-overlay-card` | colour | `surface-overlay-card` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
@@ -0,0 +1,32 @@
1
+ # The Notice's tokens
2
+
3
+ Every name `notice.css` reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ Its actions are any Button, a label's the Button's text kind; its × the quiet Button. Its root marks a phone from the device (`data-vk-phone`), where its actions drop under its sentence.
6
+
7
+ | name | kind | the Outright token | default |
8
+ | ---- | ---- | ------------------ | ------- |
9
+ | `--vk-spacing` | size | `spacing` | `4px` |
10
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
11
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
12
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
13
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
14
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
15
+ | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
16
+ | `--vk-info-subtler` | colour | `background-information-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
17
+ | `--vk-info` | colour | `text-information` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
18
+ | `--vk-success-subtler` | colour | `background-success-subtler` | `hsl(143 41% 91%)` · dark `hsl(145 17% 12.5%)` |
19
+ | `--vk-success` | colour | `text-success` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
20
+ | `--vk-warning-subtler` | colour | `background-warning-subtler` | `hsl(19 72% 92.5%)` · dark `hsl(20 29% 13.5%)` |
21
+ | `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` · dark `hsl(25 92% 41%)` |
22
+ | `--vk-danger-subtler` | colour | `background-danger-subtler` | `hsl(6 100% 94%)` · dark `hsl(6 27% 14.5%)` |
23
+ | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` · dark `hsl(0 81% 58%)` |
24
+ | `--vk-sunken` | colour | `surface-sunken` | `hsl(0 0% 98%)` · dark `hsl(210 8% 5%)` |
25
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
26
+ | `--vk-border-width` | size | `border-width` | `1px` |
27
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
28
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
29
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
30
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
31
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
32
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |