viewkitjs 0.31.0 → 0.32.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 (289) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/MIGRATION.md +40 -6
  3. package/README.md +1 -1
  4. package/fields/dist/query/index.d.ts +2 -0
  5. package/fields/dist/query/index.js +2 -0
  6. package/fields/dist/query/list-request.d.ts +148 -0
  7. package/fields/dist/query/list-request.js +125 -0
  8. package/fields/dist/query/saved-view.d.ts +15 -0
  9. package/fields/dist/query/saved-view.js +11 -0
  10. package/fields/dist/query/settings.d.ts +9 -0
  11. package/fields/dist/query/settings.js +9 -0
  12. package/fields/docs/reference/query.md +66 -0
  13. package/package.json +5 -1
  14. package/postgres/README.md +1 -0
  15. package/postgres/dist/handler.d.ts +53 -0
  16. package/postgres/dist/handler.js +211 -0
  17. package/postgres/dist/ids.d.ts +1 -1
  18. package/postgres/dist/ids.js +19 -1
  19. package/postgres/dist/index.d.ts +1 -0
  20. package/postgres/dist/index.js +1 -0
  21. package/postgres/dist/limits.d.ts +3 -1
  22. package/postgres/dist/limits.js +1 -1
  23. package/postgres/dist/list-fields.d.ts +10 -0
  24. package/postgres/dist/list-fields.js +36 -0
  25. package/postgres/dist/readable.d.ts +4 -0
  26. package/postgres/dist/readable.js +4 -0
  27. package/postgres/dist/refusals.d.ts +9 -2
  28. package/postgres/dist/refusals.js +6 -0
  29. package/postgres/docs/guides/field-map.md +2 -2
  30. package/postgres/docs/guides/list-handler.md +99 -0
  31. package/postgres/docs/index.md +1 -0
  32. package/postgres/docs/reference/postgres.md +11 -3
  33. package/views/README.md +2 -2
  34. package/views/dist/atoms/RowMenu.d.ts +7 -0
  35. package/views/dist/atoms/RowMenu.js +18 -16
  36. package/views/dist/atoms/carried.d.ts +5 -0
  37. package/views/dist/atoms/carried.js +7 -0
  38. package/views/dist/atoms/types.d.ts +3 -0
  39. package/views/dist/contract.d.ts +26 -6
  40. package/views/dist/contract.js +25 -0
  41. package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
  42. package/views/dist/controls/atoms.d.ts +2 -0
  43. package/views/dist/controls/atoms.js +2 -0
  44. package/views/dist/controls/avatar/avatar.d.ts +3 -3
  45. package/views/dist/controls/avatar/avatar.js +1 -1
  46. package/views/dist/controls/avatar/tokens.d.ts +44 -0
  47. package/views/dist/controls/avatar/tokens.js +11 -0
  48. package/views/dist/controls/avatar.css +22 -5
  49. package/views/dist/controls/choice/tokens.d.ts +0 -4
  50. package/views/dist/controls/choice/tokens.js +0 -1
  51. package/views/dist/controls/choice.css +3 -3
  52. package/views/dist/controls/controls.d.ts +6 -0
  53. package/views/dist/controls/controls.js +10 -2
  54. package/views/dist/controls/customize/map-customize-body.js +1 -1
  55. package/views/dist/controls/field/field.d.ts +19 -4
  56. package/views/dist/controls/field/field.js +63 -5
  57. package/views/dist/controls/field/tokens.d.ts +4 -0
  58. package/views/dist/controls/field/tokens.js +1 -0
  59. package/views/dist/controls/field.css +41 -16
  60. package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
  61. package/views/dist/controls/glyphs/glyphs.js +173 -0
  62. package/views/dist/controls/index.d.ts +2 -1
  63. package/views/dist/controls/index.js +2 -1
  64. package/views/dist/controls/input/input.js +5 -2
  65. package/views/dist/controls/input/tokens.d.ts +4 -0
  66. package/views/dist/controls/input/tokens.js +1 -0
  67. package/views/dist/controls/input.css +31 -3
  68. package/views/dist/controls/internal/icons.js +10 -0
  69. package/views/dist/controls/internal/keep-focus.d.ts +2 -0
  70. package/views/dist/controls/internal/keep-focus.js +17 -0
  71. package/views/dist/controls/internal/watch-frame.d.ts +2 -0
  72. package/views/dist/controls/internal/watch-frame.js +33 -0
  73. package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
  74. package/views/dist/controls/markdown/map-markdown.js +5 -0
  75. package/views/dist/controls/menu/map-menu.js +2 -2
  76. package/views/dist/controls/menu-list/menu-list.d.ts +3 -0
  77. package/views/dist/controls/menu-list/menu-list.js +5 -4
  78. package/views/dist/controls/modal/modal.js +5 -1
  79. package/views/dist/controls/pane/pane.js +2 -1
  80. package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
  81. package/views/dist/controls/phone-header/header-bar.js +2 -2
  82. package/views/dist/controls/phone-header.css +11 -1
  83. package/views/dist/controls/picker/map-picker.js +3 -0
  84. package/views/dist/controls/picker/picker.d.ts +14 -0
  85. package/views/dist/controls/picker/picker.js +30 -10
  86. package/views/dist/controls/picker.css +2 -0
  87. package/views/dist/controls/popover/popover.js +2 -1
  88. package/views/dist/controls/radio/radio.d.ts +5 -3
  89. package/views/dist/controls/radio/radio.js +18 -2
  90. package/views/dist/controls/radio/tokens.d.ts +44 -0
  91. package/views/dist/controls/radio/tokens.js +11 -0
  92. package/views/dist/controls/radio.css +79 -1
  93. package/views/dist/controls/select/select.d.ts +4 -0
  94. package/views/dist/controls/select/select.js +11 -5
  95. package/views/dist/controls/select/tokens.d.ts +8 -0
  96. package/views/dist/controls/select/tokens.js +2 -0
  97. package/views/dist/controls/select.css +17 -0
  98. package/views/dist/controls/setting-row/looks.d.ts +1 -1
  99. package/views/dist/controls/setting-row/looks.js +9 -4
  100. package/views/dist/controls/setting-row/setting-row.d.ts +45 -10
  101. package/views/dist/controls/setting-row/setting-row.js +82 -15
  102. package/views/dist/controls/setting-row/tokens.d.ts +74 -2
  103. package/views/dist/controls/setting-row/tokens.js +19 -1
  104. package/views/dist/controls/setting-row.css +135 -14
  105. package/views/dist/controls/sheet/bottom-sheet.d.ts +10 -2
  106. package/views/dist/controls/sheet/bottom-sheet.js +6 -3
  107. package/views/dist/controls/sheet.css +4 -1
  108. package/views/dist/controls/sort-editor/sort-editor.js +3 -2
  109. package/views/dist/controls/sort-editor.css +8 -2
  110. package/views/dist/controls/switch-row/tokens.d.ts +0 -12
  111. package/views/dist/controls/switch-row/tokens.js +0 -3
  112. package/views/dist/controls/switch-row.css +3 -7
  113. package/views/dist/controls/switch.css +17 -7
  114. package/views/dist/controls/tag/tag.d.ts +3 -1
  115. package/views/dist/controls/tag/tag.js +2 -2
  116. package/views/dist/controls/tag/tokens.d.ts +4 -0
  117. package/views/dist/controls/tag/tokens.js +1 -0
  118. package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
  119. package/views/dist/controls/tag-field/tag-field.js +11 -5
  120. package/views/dist/controls/tag-field/tokens.d.ts +16 -0
  121. package/views/dist/controls/tag-field/tokens.js +4 -0
  122. package/views/dist/controls/tag-field.css +19 -0
  123. package/views/dist/controls/tag.css +2 -0
  124. package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
  125. package/views/dist/controls/toolbar/toolbar.js +22 -15
  126. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
  127. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +51 -0
  128. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
  129. package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
  130. package/views/dist/controls/toolbar-button.css +4 -0
  131. package/views/dist/controls/toolbar.css +5 -0
  132. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
  133. package/views/dist/controls/views-list/map-view-menu.js +25 -0
  134. package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
  135. package/views/dist/controls/views-list/map-views-list-body.js +39 -21
  136. package/views/dist/controls/views-list/rules.d.ts +2 -0
  137. package/views/dist/controls/views-list/view-menu.d.ts +7 -0
  138. package/views/dist/controls/views-list/view-menu.js +28 -24
  139. package/views/dist/controls/views-list/words.d.ts +2 -0
  140. package/views/dist/controls/views-list/words.js +1 -1
  141. package/views/dist/editors/EditorPanel.js +2 -1
  142. package/views/dist/editors/edit-session.js +2 -5
  143. package/views/dist/field-row/FieldRow.d.ts +4 -2
  144. package/views/dist/field-row/FieldRow.js +67 -20
  145. package/views/dist/field-row/FieldRowLane.d.ts +7 -2
  146. package/views/dist/field-row/FieldRowLane.js +4 -3
  147. package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
  148. package/views/dist/field-row/editors/RowEditor.js +31 -1
  149. package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
  150. package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
  151. package/views/dist/field-row/field-row-button.d.ts +5 -0
  152. package/views/dist/field-row/field-row-button.js +2 -0
  153. package/views/dist/fields/binding.d.ts +3 -2
  154. package/views/dist/fields/binding.js +38 -5
  155. package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
  156. package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
  157. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
  158. package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
  159. package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
  160. package/views/dist/grid/chrome/GridHeader.js +2 -2
  161. package/views/dist/grid/chrome/GridRow.js +6 -5
  162. package/views/dist/grid/chrome/GridRowCells.js +6 -9
  163. package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
  164. package/views/dist/grid/chrome/GridStructure.js +4 -4
  165. package/views/dist/grid/chrome/GridTable.js +5 -2
  166. package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
  167. package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
  168. package/views/dist/grid/chrome/grid-row-menu-items.js +92 -6
  169. package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
  170. package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
  171. package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
  172. package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
  173. package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
  174. package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -2
  175. package/views/dist/grid/chrome/useGridKeyboard.js +15 -9
  176. package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
  177. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  178. package/views/dist/grid/chrome/useGridTableInteractionModel.js +11 -5
  179. package/views/dist/grid/core/commit-model.d.ts +20 -2
  180. package/views/dist/grid/core/editing-controller.d.ts +18 -0
  181. package/views/dist/grid/core/editing-controller.js +188 -42
  182. package/views/dist/grid/core/editing-model.d.ts +3 -0
  183. package/views/dist/grid/core/editing-model.js +3 -0
  184. package/views/dist/grid/core/save-path.d.ts +24 -0
  185. package/views/dist/grid/core/save-path.js +122 -0
  186. package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
  187. package/views/dist/grid/core/spreadsheet-operations.js +23 -0
  188. package/views/dist/grid/index.d.ts +3 -2
  189. package/views/dist/grid/index.js +1 -0
  190. package/views/dist/internal/field-rows.d.ts +26 -0
  191. package/views/dist/internal/field-rows.js +8 -0
  192. package/views/dist/internal/page-close.d.ts +7 -0
  193. package/views/dist/internal/page-close.js +43 -0
  194. package/views/dist/list/browser-views-store.d.ts +10 -0
  195. package/views/dist/list/browser-views-store.js +182 -0
  196. package/views/dist/list/index.d.ts +23 -0
  197. package/views/dist/list/index.js +8 -0
  198. package/views/dist/list/menu.d.ts +31 -0
  199. package/views/dist/list/menu.js +76 -0
  200. package/views/dist/list/parts.d.ts +6 -0
  201. package/views/dist/list/parts.js +59 -0
  202. package/views/dist/list/registry.d.ts +11 -0
  203. package/views/dist/list/registry.js +31 -0
  204. package/views/dist/list/root.d.ts +40 -0
  205. package/views/dist/list/root.js +128 -0
  206. package/views/dist/list/slot.d.ts +14 -0
  207. package/views/dist/list/slot.js +22 -0
  208. package/views/dist/list/source.d.ts +11 -0
  209. package/views/dist/list/source.js +31 -0
  210. package/views/dist/list/store.d.ts +87 -0
  211. package/views/dist/list/store.js +115 -0
  212. package/views/dist/list/toolbar.d.ts +6 -0
  213. package/views/dist/list/toolbar.js +359 -0
  214. package/views/dist/list/views-axis.d.ts +5 -0
  215. package/views/dist/list/views-axis.js +96 -0
  216. package/views/dist/list/views-store.d.ts +41 -0
  217. package/views/dist/list/views-store.js +1 -0
  218. package/views/dist/list/views.d.ts +67 -0
  219. package/views/dist/list/views.js +400 -0
  220. package/views/dist/model/preferences.js +1 -1
  221. package/views/dist/model/prefs-buckets.js +1 -1
  222. package/views/dist/panels/index.d.ts +3 -1
  223. package/views/dist/panels/index.js +1 -0
  224. package/views/dist/panels/react/customize-body.js +1 -0
  225. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +41 -4
  226. package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
  227. package/views/dist/panels/react/toolbar/Toolbar.d.ts +9 -1
  228. package/views/dist/panels/react/toolbar/Toolbar.js +34 -23
  229. package/views/dist/panels/react/toolbar/ToolbarButton.js +4 -1
  230. package/views/dist/panels/react/toolbar/ToolbarNew.js +1 -1
  231. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
  232. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
  233. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  234. package/views/dist/panels/react/toolbar/context.d.ts +10 -2
  235. package/views/dist/panels/react/toolbar/context.js +3 -1
  236. package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
  237. package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
  238. package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
  239. package/views/dist/panels/react/views-row/PillGroup.js +16 -7
  240. package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
  241. package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
  242. package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
  243. package/views/dist/panels/react.d.ts +2 -2
  244. package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
  245. package/views/dist/panels/toolbar/edit-view.js +14 -0
  246. package/views/dist/panels/toolbar/model.d.ts +5 -0
  247. package/views/dist/panels/toolbar/model.js +7 -3
  248. package/views/dist/panels/view-state.d.ts +5 -3
  249. package/views/dist/panels/views-row/model.d.ts +19 -2
  250. package/views/dist/panels/views-row/model.js +14 -0
  251. package/views/dist/provider/ViewsProvider.d.ts +16 -7
  252. package/views/dist/provider/ViewsProvider.js +23 -5
  253. package/views/dist/provider/components.d.ts +43 -2
  254. package/views/dist/provider/context.d.ts +2 -1
  255. package/views/dist/provider/context.js +1 -1
  256. package/views/dist/provider/ports.d.ts +19 -12
  257. package/views/dist/provider/ports.js +69 -1
  258. package/views/dist/react.d.ts +1 -1
  259. package/views/dist/styles.css +418 -59
  260. package/views/dist/styles.unlayered.css +418 -59
  261. package/views/docs/contract.md +42 -31
  262. package/views/docs/controls/avatar.md +11 -0
  263. package/views/docs/controls/choice.md +0 -1
  264. package/views/docs/controls/field.md +3 -0
  265. package/views/docs/controls/input.md +1 -0
  266. package/views/docs/controls/radio.md +16 -1
  267. package/views/docs/controls/select.md +2 -0
  268. package/views/docs/controls/setting-row.md +18 -0
  269. package/views/docs/controls/switch-row.md +0 -3
  270. package/views/docs/controls/tag-field.md +4 -0
  271. package/views/docs/controls/tag.md +1 -0
  272. package/views/docs/getting-started.md +2 -2
  273. package/views/docs/guides/atoms.md +2 -2
  274. package/views/docs/guides/columns.md +1 -1
  275. package/views/docs/guides/ports.md +1 -1
  276. package/views/docs/guides/the-grid.md +34 -7
  277. package/views/docs/guides/the-provider.md +4 -2
  278. package/views/docs/index.md +1 -0
  279. package/views/docs/reference/controls.md +35 -25
  280. package/views/docs/reference/editors-session.md +1 -1
  281. package/views/docs/reference/field-row.md +9 -1
  282. package/views/docs/reference/grid.md +14 -8
  283. package/views/docs/reference/list.md +227 -0
  284. package/views/docs/reference/looks.md +1 -1
  285. package/views/docs/reference/panels-react.md +17 -12
  286. package/views/docs/reference/panels.md +8 -5
  287. package/views/docs/reference/react.md +11 -9
  288. package/views/docs/reference/views.md +2 -2
  289. package/views/skills/views/SKILL.md +9 -6
@@ -1,7 +1,9 @@
1
1
  export const SELECT_TOKENS = [
2
2
  { name: "--vk-fg-disabled", kind: "colour", outright: "--text-disabled" },
3
+ { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
3
4
  { name: "--vk-fg-subtlest", kind: "colour", outright: "--text-subtlest" },
4
5
  { name: "--vk-font-size-base", kind: "size", outright: "--text-base" },
6
+ { name: "--vk-font-weight-normal", kind: "size", outright: "--font-weight-normal" },
5
7
  { name: "--vk-spacing", kind: "size", outright: "--spacing" },
6
8
  { name: "--vk-duration-fast", kind: "motion", outright: "--duration-fast" },
7
9
  { name: "--vk-ease-out", kind: "motion", outright: "--ease-out" },
@@ -22,6 +22,23 @@
22
22
  .o-select-2xs .o-select-chevron svg:where([data-vk-phone], [data-vk-phone] *) { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
23
23
  .o-select-field[data-popup-open] .o-select-chevron:not([data-arrow="right"]) { rotate: 180deg; }
24
24
 
25
+ /* ── Its label inside its box (labelAt="inside"): the box the outline Button's own (button.css draws its ground, edge, depth,
26
+ size and states), as wide as what it holds and never wider than its place; the label in the quieter words at the regular
27
+ weight, then the value in the Button's words, then a 14px chevron in them ─────────────────────────────────────────── */
28
+ .o-select.o-select-inside { width: max-content; max-width: 100%; }
29
+ .o-select-inside .o-select-field { max-width: 100%; justify-content: flex-start; gap: calc(var(--vk-spacing) * 1.5); }
30
+ /* Narrower than its words, the label and the value each end in "…" and the chevron stays inside. */
31
+ .o-select-label-in { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--vk-fg-subtle); font-weight: var(--vk-font-weight-normal); white-space: nowrap; }
32
+ .o-select-inside .o-select-value { flex: 0 1 auto; }
33
+ .o-select-inside .o-select-chevron svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); stroke: currentColor; }
34
+ /* On a phone (VK-968): the box the Glass button's worded pill at sm (glass-button.css draws its glass, rim, size and words), its
35
+ value then a 16px ⌄ in the quietest words; the label kept for a screen reader alone, as the Sheet it opens is titled with it. */
36
+ .o-select-inside .o-select-field:where([data-vk-phone]) { gap: var(--vk-spacing); }
37
+ .o-select-inside .o-select-field:where([data-vk-phone]) > .o-select-label-in {
38
+ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
39
+ }
40
+ .o-select-inside .o-select-field:where([data-vk-phone]) .o-select-chevron svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); stroke: var(--vk-fg-subtlest); }
41
+
25
42
  /* ── Typed into: the field holds the box you type in (the group's bare control), and with several, their
26
43
  chips first, each the Option with its own ×, wrapping onto more lines as they grow; from 32px up a quiet ×
27
44
  clears it; the chevron shows every choice ───────────────────────────────────────────────────────── */
@@ -1,5 +1,5 @@
1
1
  import { type PieceLooks } from "../../looks/looks.js";
2
- export type SettingRowOptionId = "card" | "rows";
2
+ export type SettingRowOptionId = "card" | "rows" | "end" | "fields" | "icon";
3
3
  /** One value for every option. */
4
4
  export type SettingRowPicks = Record<SettingRowOptionId, string>;
5
5
  /** The setting row's options and looks. */
@@ -1,13 +1,18 @@
1
1
  import { lookWornOf } from "../../looks/looks.js";
2
- const OUTRIGHT = { card: "outlined", rows: "snug" };
3
- const ATTIO = { card: "raised", rows: "roomy" };
2
+ const OUTRIGHT = { card: "outlined", rows: "snug", end: "buttons", fields: "boxes", icon: "line" };
3
+ const ATTIO = { card: "raised", rows: "roomy", end: "buttons", fields: "boxes", icon: "line" };
4
+ const LINEAR = { card: "edged", rows: "inset", end: "words", fields: "end", icon: "line" };
4
5
  const options = [
5
- { id: "card", name: "Card", device: "desktop", def: OUTRIGHT.card, values: [{ id: "outlined", name: "Outlined" }, { id: "raised", name: "Raised" }] },
6
- { id: "rows", name: "Rows", device: "desktop", def: OUTRIGHT.rows, values: [{ id: "snug", name: "Snug" }, { id: "roomy", name: "Roomy" }] },
6
+ { id: "card", name: "Card", device: "desktop", def: OUTRIGHT.card, values: [{ id: "outlined", name: "Outlined" }, { id: "raised", name: "Raised" }, { id: "edged", name: "Edged" }] },
7
+ { id: "rows", name: "Rows", device: "desktop", def: OUTRIGHT.rows, values: [{ id: "snug", name: "Snug" }, { id: "roomy", name: "Roomy" }, { id: "inset", name: "Inset" }] },
8
+ { id: "end", name: "End", device: "desktop", def: OUTRIGHT.end, values: [{ id: "buttons", name: "Buttons" }, { id: "words", name: "Words" }] },
9
+ { id: "fields", name: "Fields", device: "desktop", def: OUTRIGHT.fields, values: [{ id: "boxes", name: "Boxes" }, { id: "end", name: "At the end" }] },
10
+ { id: "icon", name: "Icon", device: "phone", def: OUTRIGHT.icon, values: [{ id: "line", name: "Line" }, { id: "tile", name: "Tile" }] },
7
11
  ];
8
12
  const looks = [
9
13
  { id: "outright", name: "Outright", picks: OUTRIGHT },
10
14
  { id: "attio", name: "Attio", picks: ATTIO },
15
+ { id: "linear", name: "Linear", picks: LINEAR },
11
16
  ];
12
17
  export const SETTING_ROW_LOOKS = { id: "setting-row", name: "Setting row", options, looks };
13
18
  const IDS = options.map((o) => o.id);
@@ -1,25 +1,43 @@
1
1
  import * as React from "react";
2
+ import type { OptionColour } from "../option/looks.js";
2
3
  import { type SelectListProps } from "../select/select.js";
3
4
  import { type SwitchProps } from "../switch/switch.js";
5
+ import { type SettingRowPicks } from "./looks.js";
4
6
  /** A setting row's button: its words, an icon before them, what a press does. */
5
7
  export interface SettingAction {
6
8
  label: string;
7
9
  icon?: React.ReactNode;
8
10
  onClick?: () => void;
9
11
  disabled?: boolean;
12
+ /** Its icon alone, its label naming it (a pencil for Change). */
13
+ iconOnly?: boolean;
14
+ /** The Button's kind: danger where it can't be undone, outline where it can (Leave); left out, danger in the danger zone,
15
+ * outline elsewhere. */
16
+ kind?: "outline" | "danger";
17
+ }
18
+ /** A word of state before a row's control: what is true now (Connected), in a value's colour. */
19
+ export interface SettingState {
20
+ label: string;
21
+ colour?: OptionColour;
10
22
  }
11
23
  interface SettingRowBase {
12
24
  /** The setting's name ("Weekly digest"). */
13
25
  label: React.ReactNode;
14
26
  /** The line under its name: what it does. */
15
27
  note?: React.ReactNode;
16
- /** An icon, standing in a 32 box at the row's start. */
28
+ /** An icon at the row's start: on a computer in a 32 box; on a phone a line icon, or a tile under the Icon option's Tile. */
17
29
  icon?: React.ReactNode;
30
+ /** The tile's colour under the Icon option's Tile, a label colour (the palette's 700s); left out, grey. Line ignores it. */
31
+ colour?: OptionColour;
18
32
  /** A mark at the row's start, as given (Google's, a team's letter). */
19
33
  mark?: React.ReactNode;
20
- /** Why it can't change: its control is shut, and this stands before it (on a phone, in place of its line). */
34
+ /** Why it can't change: its control is shut, and this stands before it. On a phone the row fades and the reason stands in
35
+ * place of its line; a page that puts the reason in its group's note passes `true`. */
21
36
  locked?: React.ReactNode;
22
- /** A lone row: one action on its own, bare, with no card. */
37
+ /** A word of state: on a computer before its control, the Option in its colour (Connected, green); on a phone the grey
38
+ * value before ›, the row then the press of its action. */
39
+ state?: SettingState;
40
+ /** A lone row: one action on its own; on a computer bare, with no card; on a phone a card of its own, the row the press. */
23
41
  alone?: boolean;
24
42
  className?: string;
25
43
  }
@@ -31,31 +49,48 @@ export type SettingRowProps = SettingRowBase & (({
31
49
  } & No<"select" | "action" | "onOpen" | "value">) | ({
32
50
  select: Omit<SelectListProps, "label" | "size">;
33
51
  } & No<"switch" | "action" | "onOpen" | "value">) | ({
34
- action: SettingAction;
35
- } & No<"switch" | "select" | "onOpen" | "value">) | ({
52
+ action: SettingAction; /** On a computer, a value before its action, as the open kind's (an email before Change). */
53
+ value?: React.ReactNode;
54
+ } & No<"switch" | "select" | "onOpen">) | ({
36
55
  onOpen: () => void;
37
56
  value?: React.ReactNode;
38
57
  } & No<"switch" | "select" | "action">));
39
58
  export interface SettingRowsProps {
40
- /** The danger zone's: a red edge, each row's button the Button's danger kind, on a phone its names red. */
59
+ /** The danger zone's: a red edge, each row's button the Button's danger kind unless its action says outline, on a phone its
60
+ * names red. */
41
61
  danger?: boolean;
42
62
  /** Its form: the device's unless told (a PhoneHost screen, or below the app's line, is a phone's). */
43
63
  form?: "computer" | "phone";
44
64
  className?: string;
45
65
  children: React.ReactNode;
46
66
  }
47
- /** Settings rows in a card, a line between each; `danger` the danger zone's. On a phone, Field rows' card. */
67
+ /** The setting row's options as the frame round `el` picks them, kept up to date as they change; each its default for `null`. */
68
+ export declare function useSettingRowWorn(el: Element | null): SettingRowPicks;
69
+ /** True for a part placed in a computer's SettingRows whose Fields option is At the end: it draws as one of the card's rows (a
70
+ * Field, the kit's photo). */
71
+ export declare function useSettingRowsRow(): boolean;
72
+ /** The icon at a row's start, or beside a list's name: Line or Tile by the Icon option, the tile on `colour`. */
73
+ export declare function SettingIcon({ colour, children }: {
74
+ colour?: OptionColour;
75
+ children: React.ReactNode;
76
+ }): import("react/jsx-runtime").JSX.Element;
77
+ /** iOS's ›, 9 × 15, at a phone row's end: the setting row's, drawn by a list beside setting rows too (the kit's settings list, an
78
+ * app's own row), so one › stands on every settings page. */
79
+ export declare function SettingChevron(): import("react/jsx-runtime").JSX.Element;
80
+ /** Settings rows in a card, a line between each; `danger` the danger zone's. On a phone, Field rows' card: a Field placed in it
81
+ * is its row, beside the setting rows, its note and error under the card (VK-979). */
48
82
  export declare function SettingRows({ danger, form, className, children }: SettingRowsProps): import("react/jsx-runtime").JSX.Element;
49
- /** One setting as a row: its name and its line, its control at its end. */
83
+ /** One setting as a row: its name and its line, its control at its end. What it holds is no row of its card: a Field its control
84
+ * draws (a Select with a note) stands as it does anywhere else. */
50
85
  export declare function SettingRow(props: SettingRowProps): import("react/jsx-runtime").JSX.Element;
51
- /** A setting with a switch: the setting row's switch kind, its words pressing the Switch. */
86
+ /** A setting with a switch: the setting row's switch kind, only its Switch switching it. */
52
87
  export interface SwitchRowProps extends SwitchProps {
53
88
  /** The setting's name ("Daily summary"), not the action. */
54
89
  label: React.ReactNode;
55
90
  /** A line under it: what it does, or why it is locked. */
56
91
  note?: React.ReactNode;
57
92
  }
58
- /** A setting in a settings list: its name and a line on the left, the switch on the right; the whole row presses it. */
93
+ /** A setting in a settings list: its name and a line on the left, the switch on the right, which alone switches it. */
59
94
  export declare function SwitchRow({ label, note, locked, ...props }: SwitchRowProps): import("react/jsx-runtime").JSX.Element;
60
95
  /** Settings rows in a bordered box, a line between each: the setting rows' card in its computer form on every device. */
61
96
  export declare function SwitchRows({ className, children }: {
@@ -1,41 +1,108 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { cx } from "../../internal/cx.js";
4
+ import { FieldRowsCardContext, OutOfFieldRows, SettingRowField } from "../../internal/field-rows.js";
4
5
  import { Button } from "../button/button.js";
6
+ import { useFieldRowsCard } from "../field/field.js";
5
7
  import { phoneMark, usePhoneForm } from "../internal/phone.js";
8
+ import { Option } from "../option/option.js";
6
9
  import { Select } from "../select/select.js";
7
10
  import { Switch } from "../switch/switch.js";
11
+ import { SETTING_ROW_ATTRS, settingRowWornOf } from "./looks.js";
8
12
  const Rows = React.createContext(null);
13
+ const useBeforePaint = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
14
+ const DEF = settingRowWornOf(null);
15
+ const sameWorn = (a, b) => Object.keys(a).every((k) => a[k] === b[k]);
16
+ export function useSettingRowWorn(el) {
17
+ const [worn, setWorn] = React.useState(DEF);
18
+ useBeforePaint(() => {
19
+ const read = () => setWorn((was) => { const now = settingRowWornOf(el); return sameWorn(was, now) ? was : now; });
20
+ read();
21
+ if (!el)
22
+ return;
23
+ const watch = new MutationObserver(read);
24
+ watch.observe(document.documentElement, { attributes: true, subtree: true, attributeFilter: SETTING_ROW_ATTRS });
25
+ return () => watch.disconnect();
26
+ }, [el]);
27
+ return worn;
28
+ }
29
+ export function useSettingRowsRow() {
30
+ return React.useContext(SettingRowField);
31
+ }
32
+ export function SettingIcon({ colour, children }) {
33
+ return _jsx("span", { className: "o-setting-row-icon", "data-colour": colour, "aria-hidden": "true", ...phoneMark(usePhoneForm()), children: children });
34
+ }
35
+ const PHONE_CHEVRON = (_jsx("svg", { className: "o-setting-row-chevron", "data-phone": "", viewBox: "0 0 9 15", fill: "none", stroke: "currentColor", strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M1.5 1.5 7.5 7.5 1.5 13.5" }) }));
36
+ export function SettingChevron() {
37
+ return PHONE_CHEVRON;
38
+ }
9
39
  const CHEVRON = (_jsx("svg", { className: "o-setting-row-chevron", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M6 3.5 10.5 8 6 12.5" }) }));
10
40
  export function SettingRows({ danger = false, form, className, children }) {
11
- const phone = usePhoneForm(form);
12
- return (_jsx("div", { className: cx("o-setting-rows o-smooth o-smooth-ease", danger && "o-setting-rows-danger", phone && "o-field-rows", className), "data-kit": "setting-row", ...phoneMark(phone), children: _jsx(Rows.Provider, { value: { danger, phone }, children: children }) }));
41
+ const phone = usePhoneForm(form), { card, foot } = useFieldRowsCard();
42
+ const [el, setEl] = React.useState(null), worn = useSettingRowWorn(phone ? null : el);
43
+ const rows = React.useMemo(() => ({ danger, phone, worn }), [danger, phone, worn]);
44
+ return (_jsxs(FieldRowsCardContext.Provider, { value: phone ? card : null, children: [_jsx(SettingRowField.Provider, { value: !phone && worn.fields === "end", children: _jsx("div", { ref: setEl, className: cx("o-setting-rows o-smooth o-smooth-ease", danger && "o-setting-rows-danger", phone && "o-field-rows", className), "data-kit": "setting-row", ...phoneMark(phone), children: _jsx(Rows.Provider, { value: rows, children: children }) }) }), phone && foot] }));
13
45
  }
14
46
  export function SettingRow(props) {
15
- const rows = React.useContext(Rows), phone = !!rows?.phone && !props.alone, danger = !!rows?.danger;
47
+ return _jsx(OutOfFieldRows, { children: _jsx(SettingRowOf, { ...props }) });
48
+ }
49
+ function SettingRowOf(props) {
50
+ const rows = React.useContext(Rows), device = usePhoneForm(), danger = !!rows?.danger;
16
51
  const { label, note, icon, mark, locked, alone, className } = props;
52
+ const id = React.useId();
53
+ const [own, setOwn] = React.useState(null), ownWorn = useSettingRowWorn(rows || device ? null : own);
54
+ if (alone && !rows && device)
55
+ return _jsx(SettingRows, { form: "phone", children: _jsx(SettingRow, { ...props }) });
56
+ const phone = !!rows?.phone, worn = rows ? rows.worn : ownWorn, inWords = !phone && worn.end === "words";
17
57
  const shut = locked != null && locked !== false;
18
58
  const reason = shut && locked !== true ? locked : null;
19
59
  const kind = props.switch ? "switch" : props.select ? "select" : props.action ? "action" : "open";
20
- const root = { className: cx("o-setting-row", phone && "o-field-row", props.switch && "o-switch-row", className), "data-setting-row-kind": kind,
21
- "data-locked": shut ? "" : undefined, "data-alone": alone ? "" : undefined };
22
- const start = mark ?? (icon != null ? _jsx("span", { className: "o-setting-row-icon", "aria-hidden": "true", children: icon }) : null);
60
+ const begins = mark != null ? "mark" : icon != null || (phone && danger && props.action?.icon != null) ? "icon" : undefined;
61
+ const ownCard = alone && !rows && !device && worn.card === "edged";
62
+ const root = { className: cx("o-setting-row", phone && "o-field-row", props.switch && "o-switch-row", ownCard && "o-smooth o-smooth-ease", className), "data-setting-row-kind": kind,
63
+ "data-setting-row-start": begins, "data-locked": shut ? "" : undefined, "data-alone": alone ? "" : undefined, ...(rows ? {} : { ref: setOwn }) };
64
+ const start = mark ?? (icon != null ? _jsx(SettingIcon, { colour: props.colour, children: icon }) : null);
65
+ const chevron = phone ? PHONE_CHEVRON : CHEVRON;
23
66
  const line = phone && reason != null ? reason : note;
24
- const words = (_jsxs("span", { className: "o-choice-text", children: [_jsx("span", { className: "o-choice-label", children: label }), line != null && _jsx("span", { className: "o-choice-note", children: line })] }));
67
+ const words = (_jsxs("span", { className: "o-choice-text", children: [_jsx("span", { className: "o-choice-label", id: `${id}-label`, children: label }), line != null && _jsx("span", { className: "o-choice-note", id: `${id}-note`, children: line })] }));
25
68
  const why = !phone && reason != null ? _jsx("span", { className: "o-setting-row-reason", children: reason }) : null;
26
69
  const name = typeof label === "string" ? label : undefined;
70
+ const s = props.state;
71
+ const said = phone || !s ? null : inWords
72
+ ? _jsxs("span", { className: "o-setting-row-said", children: [s.colour && _jsx("span", { className: "o-setting-row-dot", "data-colour": s.colour, "aria-hidden": "true" }), s.label] })
73
+ : _jsx(Option, { colour: s.colour, children: s.label });
74
+ const lead = said != null || why != null ? _jsxs(_Fragment, { children: [said, why] }) : null;
75
+ if (inWords && why != null)
76
+ return _jsxs("div", { ...root, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [said, why] })] });
27
77
  if (props.switch) {
28
- return _jsxs("label", { ...root, children: [start, words, why, _jsx(Switch, { ...props.switch, locked: shut })] });
78
+ const toggle = _jsx(Switch, { "aria-labelledby": `${id}-label`, "aria-describedby": line != null ? `${id}-note` : undefined, ...props.switch, locked: shut });
79
+ return (_jsxs("div", { ...root, children: [start, words, said == null ? _jsxs(_Fragment, { children: [why, toggle] }) : _jsxs("span", { className: "o-setting-row-end", children: [said, why, toggle] })] }));
29
80
  }
30
81
  if (props.select)
31
- return _jsx(SelectRow, { root: root, start: start, words: words, why: why, name: name, select: props.select, shut: shut, phone: phone });
82
+ return _jsx(SelectRow, { root: root, start: start, words: words, why: lead, name: name, select: props.select, shut: shut, phone: phone });
32
83
  if (props.action) {
33
84
  const a = props.action;
34
- if (phone)
35
- return _jsxs("button", { type: "button", ...root, disabled: shut || a.disabled, onClick: a.onClick, children: [start, words] });
36
- return (_jsxs("div", { ...root, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [why, _jsx(Button, { kind: danger ? "danger" : "outline", size: "sm", icon: a.icon, disabled: shut || a.disabled, onClick: a.onClick, children: a.label })] })] }));
85
+ if (phone) {
86
+ const off = shut || a.disabled;
87
+ if (alone)
88
+ return _jsxs("button", { type: "button", ...root, disabled: off, onClick: a.onClick, children: [start, words] });
89
+ if (danger)
90
+ return _jsxs("button", { type: "button", ...root, disabled: off, onClick: a.onClick, children: [a.icon != null ? _jsx(SettingIcon, { children: a.icon }) : start, words] });
91
+ if (props.state)
92
+ return (_jsxs("button", { type: "button", ...root, disabled: off, onClick: a.onClick, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [_jsx("span", { className: "o-setting-row-value", children: props.state.label }), chevron] })] }));
93
+ const about = line != null ? `${id}-label ${id}-note` : `${id}-label`;
94
+ return _jsxs("div", { ...root, children: [start, words, _jsx("span", { className: "o-setting-row-end", children: _jsx("button", { type: "button", className: "o-setting-row-act", "aria-describedby": about, disabled: off, onClick: a.onClick, children: a.label }) })] });
95
+ }
96
+ const kindOf = a.kind ?? (danger ? "danger" : "outline");
97
+ const value = props.value != null ? _jsx("span", { className: "o-setting-row-value", children: props.value }) : null;
98
+ const act = inWords
99
+ ? _jsx("button", { type: "button", className: "o-setting-row-act", "data-kind": kindOf === "danger" ? "danger" : undefined, "data-icon": a.iconOnly ? "" : undefined, "aria-label": a.iconOnly ? a.label : undefined, disabled: shut || a.disabled, onClick: a.onClick, children: a.iconOnly ? a.icon : a.label })
100
+ : a.iconOnly
101
+ ? _jsx(Button, { kind: kindOf, size: "sm", shape: "icon", icon: a.icon, "aria-label": a.label, disabled: shut || a.disabled, onClick: a.onClick })
102
+ : _jsx(Button, { kind: kindOf, size: "sm", icon: a.icon, disabled: shut || a.disabled, onClick: a.onClick, children: a.label });
103
+ return (_jsxs("div", { ...root, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [value, lead, act] })] }));
37
104
  }
38
- return (_jsxs("button", { type: "button", ...root, disabled: shut, onClick: shut ? undefined : props.onOpen, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [why, props.value != null && _jsx("span", { className: "o-setting-row-value", children: props.value }), CHEVRON] })] }));
105
+ return (_jsxs("button", { type: "button", ...root, disabled: shut, onClick: shut ? undefined : props.onOpen, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [lead, props.value != null && _jsx("span", { className: "o-setting-row-value", children: props.value }), chevron] })] }));
39
106
  }
40
107
  const firstOf = (v) => (Array.isArray(v) ? v : v == null ? [] : [v]);
41
108
  function SelectRow({ root, start, words, why, name, select, shut, phone }) {
@@ -46,7 +113,7 @@ function SelectRow({ root, start, words, why, name, select, shut, phone }) {
46
113
  if (!phone)
47
114
  return _jsxs("div", { ...root, children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [why, field] })] });
48
115
  const shown = firstOf(value).map((v) => findItem(select.items, v)?.label ?? v);
49
- return (_jsxs("div", { ...root, children: [_jsxs("button", { type: "button", className: "o-setting-row-press", disabled: shut || select.disabled, onClick: () => setOpen(true), children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [shown.length > 0 && _jsx("span", { className: "o-setting-row-value", children: shown.join(", ") }), CHEVRON] })] }), _jsx("span", { hidden: true, children: field })] }));
116
+ return (_jsxs("div", { ...root, children: [_jsxs("button", { type: "button", className: "o-setting-row-press", disabled: shut || select.disabled, onClick: () => setOpen(true), children: [start, words, _jsxs("span", { className: "o-setting-row-end", children: [shown.length > 0 && _jsx("span", { className: "o-setting-row-value", children: shown.join(", ") }), PHONE_CHEVRON] })] }), _jsx("span", { hidden: true, children: field })] }));
50
117
  }
51
118
  const findItem = (items, v) => {
52
119
  for (const i of items) {
@@ -22,6 +22,10 @@ export declare const SETTING_ROW_TOKENS: readonly [{
22
22
  readonly name: "--vk-danger";
23
23
  readonly kind: "colour";
24
24
  readonly outright: "--text-danger";
25
+ }, {
26
+ readonly name: "--vk-fg";
27
+ readonly kind: "colour";
28
+ readonly outright: "--text";
25
29
  }, {
26
30
  readonly name: "--vk-fg-subtle";
27
31
  readonly kind: "colour";
@@ -30,6 +34,54 @@ export declare const SETTING_ROW_TOKENS: readonly [{
30
34
  readonly name: "--vk-fg-subtlest";
31
35
  readonly kind: "colour";
32
36
  readonly outright: "--text-subtlest";
37
+ }, {
38
+ readonly name: "--vk-fg-brand";
39
+ readonly kind: "colour";
40
+ readonly outright: "--link";
41
+ }, {
42
+ readonly name: "--vk-border-brand";
43
+ readonly kind: "colour";
44
+ readonly outright: "--border-focused";
45
+ }, {
46
+ readonly name: "--vk-label-blue";
47
+ readonly kind: "colour";
48
+ readonly outright: "--label-blue";
49
+ }, {
50
+ readonly name: "--vk-label-green";
51
+ readonly kind: "colour";
52
+ readonly outright: "--label-green";
53
+ }, {
54
+ readonly name: "--vk-label-amber";
55
+ readonly kind: "colour";
56
+ readonly outright: "--label-amber";
57
+ }, {
58
+ readonly name: "--vk-label-red";
59
+ readonly kind: "colour";
60
+ readonly outright: "--label-red";
61
+ }, {
62
+ readonly name: "--vk-label-purple";
63
+ readonly kind: "colour";
64
+ readonly outright: "--label-purple";
65
+ }, {
66
+ readonly name: "--vk-label-pink";
67
+ readonly kind: "colour";
68
+ readonly outright: "--label-pink";
69
+ }, {
70
+ readonly name: "--vk-label-teal";
71
+ readonly kind: "colour";
72
+ readonly outright: "--label-teal";
73
+ }, {
74
+ readonly name: "--vk-fg-inverse";
75
+ readonly kind: "colour";
76
+ readonly outright: "--text-inverse";
77
+ }, {
78
+ readonly name: "--vk-neutral";
79
+ readonly kind: "colour";
80
+ readonly outright: "--background-neutral";
81
+ }, {
82
+ readonly name: "--vk-icon-disclosure";
83
+ readonly kind: "colour";
84
+ readonly outright: "--icon-disclosure";
33
85
  }, {
34
86
  readonly name: "--vk-border-width";
35
87
  readonly kind: "size";
@@ -46,6 +98,14 @@ export declare const SETTING_ROW_TOKENS: readonly [{
46
98
  readonly name: "--vk-font-size-xs";
47
99
  readonly kind: "size";
48
100
  readonly outright: "--text-xs";
101
+ }, {
102
+ readonly name: "--vk-focus-width";
103
+ readonly kind: "size";
104
+ readonly outright: "--focus-width";
105
+ }, {
106
+ readonly name: "--vk-focus-offset";
107
+ readonly kind: "size";
108
+ readonly outright: "--focus-offset";
49
109
  }, {
50
110
  readonly name: "--vk-font-weight-medium";
51
111
  readonly kind: "size";
@@ -66,10 +126,22 @@ export declare const SETTING_ROW_TOKENS: readonly [{
66
126
  readonly name: "--vk-radius-md";
67
127
  readonly kind: "size";
68
128
  readonly outright: "--radius-md";
129
+ }, {
130
+ readonly name: "--vk-radius-sm";
131
+ readonly kind: "size";
132
+ readonly outright: "--radius-sm";
133
+ }, {
134
+ readonly name: "--vk-radius-full";
135
+ readonly kind: "size";
136
+ readonly outright: "--radius-full";
69
137
  }, {
70
138
  readonly name: "--vk-spacing";
71
139
  readonly kind: "size";
72
140
  readonly outright: "--spacing";
141
+ }, {
142
+ readonly name: "--vk-opacity-off";
143
+ readonly kind: "size";
144
+ readonly outright: "--opacity-off";
73
145
  }, {
74
146
  readonly name: "--vk-duration-fast";
75
147
  readonly kind: "motion";
@@ -80,5 +152,5 @@ export declare const SETTING_ROW_TOKENS: readonly [{
80
152
  readonly outright: "--ease-out";
81
153
  }];
82
154
  /** The card's own machinery: its edge and ground by the card picked, its rows' room by the rows picked, the size its smooth
83
- * corner is fitted to. */
84
- export declare const SETTING_ROW_PRIVATE: readonly ["--setting-rows-"];
155
+ * corner is fitted to; a tile's colour, by the colour its icon was given; and a state's dot's, by its colour. */
156
+ export declare const SETTING_ROW_PRIVATE: readonly ["--setting-rows-", "--setting-row-tile", "--setting-row-dot"];
@@ -5,19 +5,37 @@ export const SETTING_ROW_TOKENS = [
5
5
  { name: "--vk-hovered", kind: "colour", outright: "--surface-hovered" },
6
6
  { name: "--vk-raised", kind: "colour", outright: "--surface-raised" },
7
7
  { name: "--vk-danger", kind: "colour", outright: "--text-danger" },
8
+ { name: "--vk-fg", kind: "colour", outright: "--text" },
8
9
  { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
9
10
  { name: "--vk-fg-subtlest", kind: "colour", outright: "--text-subtlest" },
11
+ { name: "--vk-fg-brand", kind: "colour", outright: "--link" },
12
+ { name: "--vk-border-brand", kind: "colour", outright: "--border-focused" },
13
+ { name: "--vk-label-blue", kind: "colour", outright: "--label-blue" },
14
+ { name: "--vk-label-green", kind: "colour", outright: "--label-green" },
15
+ { name: "--vk-label-amber", kind: "colour", outright: "--label-amber" },
16
+ { name: "--vk-label-red", kind: "colour", outright: "--label-red" },
17
+ { name: "--vk-label-purple", kind: "colour", outright: "--label-purple" },
18
+ { name: "--vk-label-pink", kind: "colour", outright: "--label-pink" },
19
+ { name: "--vk-label-teal", kind: "colour", outright: "--label-teal" },
20
+ { name: "--vk-fg-inverse", kind: "colour", outright: "--text-inverse" },
21
+ { name: "--vk-neutral", kind: "colour", outright: "--background-neutral" },
22
+ { name: "--vk-icon-disclosure", kind: "colour", outright: "--icon-disclosure" },
10
23
  { name: "--vk-border-width", kind: "size", outright: "--border-width" },
11
24
  { name: "--vk-corner-smoothing", kind: "size", outright: "--corner-smoothing" },
12
25
  { name: "--vk-font-size-sm", kind: "size", outright: "--text-sm" },
13
26
  { name: "--vk-font-size-xs", kind: "size", outright: "--text-xs" },
27
+ { name: "--vk-focus-width", kind: "size", outright: "--focus-width" },
28
+ { name: "--vk-focus-offset", kind: "size", outright: "--focus-offset" },
14
29
  { name: "--vk-font-weight-medium", kind: "size", outright: "--font-weight-medium" },
15
30
  { name: "--vk-line-height-sm", kind: "size", outright: "--text-sm--line-height" },
16
31
  { name: "--vk-line-height-xs", kind: "size", outright: "--text-xs--line-height" },
17
32
  { name: "--vk-radius-lg", kind: "size", outright: "--radius-lg" },
18
33
  { name: "--vk-radius-md", kind: "size", outright: "--radius-md" },
34
+ { name: "--vk-radius-sm", kind: "size", outright: "--radius-sm" },
35
+ { name: "--vk-radius-full", kind: "size", outright: "--radius-full" },
19
36
  { name: "--vk-spacing", kind: "size", outright: "--spacing" },
37
+ { name: "--vk-opacity-off", kind: "size", outright: "--opacity-off" },
20
38
  { name: "--vk-duration-fast", kind: "motion", outright: "--duration-fast" },
21
39
  { name: "--vk-ease-out", kind: "motion", outright: "--ease-out" },
22
40
  ];
23
- export const SETTING_ROW_PRIVATE = ["--setting-rows-"];
41
+ export const SETTING_ROW_PRIVATE = ["--setting-rows-", "--setting-row-tile", "--setting-row-dot"];