viewkitjs 0.31.0 → 0.33.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 (449) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/MIGRATION.md +40 -6
  3. package/README.md +1 -1
  4. package/fields/dist/index.d.ts +1 -1
  5. package/fields/dist/index.js +1 -1
  6. package/fields/dist/query/evaluate.d.ts +7 -0
  7. package/fields/dist/query/exact-number.d.ts +8 -2
  8. package/fields/dist/query/exact-number.js +14 -1
  9. package/fields/dist/query/index.d.ts +2 -0
  10. package/fields/dist/query/index.js +2 -0
  11. package/fields/dist/query/list-request.d.ts +148 -0
  12. package/fields/dist/query/list-request.js +125 -0
  13. package/fields/dist/query/saved-view.d.ts +15 -0
  14. package/fields/dist/query/saved-view.js +11 -0
  15. package/fields/dist/query/settings.d.ts +9 -0
  16. package/fields/dist/query/settings.js +9 -0
  17. package/fields/dist/query/sort.js +13 -10
  18. package/fields/dist/registry.js +5 -1
  19. package/fields/dist/types.d.ts +4 -1
  20. package/fields/dist/zod.d.ts +5 -0
  21. package/fields/dist/zod.js +10 -1
  22. package/fields/docs/guides/contact-values.md +12 -0
  23. package/fields/docs/guides/field-types.md +1 -1
  24. package/fields/docs/guides/queries.md +3 -1
  25. package/fields/docs/reference/fields.md +1 -0
  26. package/fields/docs/reference/query.md +66 -0
  27. package/package.json +5 -1
  28. package/postgres/README.md +1 -0
  29. package/postgres/dist/check.js +4 -1
  30. package/postgres/dist/definitions/formula-forms.js +3 -1
  31. package/postgres/dist/definitions/money.js +2 -1
  32. package/postgres/dist/handler.d.ts +53 -0
  33. package/postgres/dist/handler.js +211 -0
  34. package/postgres/dist/ids.d.ts +1 -1
  35. package/postgres/dist/ids.js +19 -1
  36. package/postgres/dist/index.d.ts +1 -0
  37. package/postgres/dist/index.js +1 -0
  38. package/postgres/dist/limits.d.ts +3 -1
  39. package/postgres/dist/limits.js +1 -1
  40. package/postgres/dist/list-fields.d.ts +10 -0
  41. package/postgres/dist/list-fields.js +36 -0
  42. package/postgres/dist/page.js +6 -3
  43. package/postgres/dist/readable.d.ts +4 -0
  44. package/postgres/dist/readable.js +4 -0
  45. package/postgres/dist/refusals.d.ts +9 -2
  46. package/postgres/dist/refusals.js +6 -0
  47. package/postgres/dist/rules.d.ts +15 -1
  48. package/postgres/dist/rules.js +16 -0
  49. package/postgres/dist/sort.js +7 -2
  50. package/postgres/docs/guides/definitions.md +1 -1
  51. package/postgres/docs/guides/field-map.md +3 -3
  52. package/postgres/docs/guides/list-handler.md +99 -0
  53. package/postgres/docs/index.md +1 -0
  54. package/postgres/docs/reference/definitions.md +1 -1
  55. package/postgres/docs/reference/postgres.md +12 -4
  56. package/views/README.md +2 -2
  57. package/views/dist/atoms/RowMenu.d.ts +7 -0
  58. package/views/dist/atoms/RowMenu.js +18 -16
  59. package/views/dist/atoms/ToolbarButton.d.ts +1 -1
  60. package/views/dist/atoms/ToolbarButton.js +4 -3
  61. package/views/dist/atoms/carried.d.ts +5 -0
  62. package/views/dist/atoms/carried.js +7 -0
  63. package/views/dist/atoms/frame-parts.d.ts +6 -0
  64. package/views/dist/atoms/frame-parts.js +15 -0
  65. package/views/dist/atoms/types.d.ts +19 -7
  66. package/views/dist/cells/cell-title.d.ts +3 -1
  67. package/views/dist/cells/cell-title.js +2 -2
  68. package/views/dist/cells/cell-values.js +2 -2
  69. package/views/dist/contract.d.ts +56 -11
  70. package/views/dist/contract.js +148 -0
  71. package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
  72. package/views/dist/controls/atoms.d.ts +2 -0
  73. package/views/dist/controls/atoms.js +2 -0
  74. package/views/dist/controls/avatar/avatar.d.ts +3 -3
  75. package/views/dist/controls/avatar/avatar.js +1 -1
  76. package/views/dist/controls/avatar/tokens.d.ts +44 -0
  77. package/views/dist/controls/avatar/tokens.js +11 -0
  78. package/views/dist/controls/avatar.css +22 -5
  79. package/views/dist/controls/button/map-button.js +2 -0
  80. package/views/dist/controls/checkbox/checkbox.d.ts +3 -2
  81. package/views/dist/controls/checkbox/checkbox.js +2 -2
  82. package/views/dist/controls/choice/tokens.d.ts +0 -4
  83. package/views/dist/controls/choice/tokens.js +0 -1
  84. package/views/dist/controls/choice.css +3 -3
  85. package/views/dist/controls/compound-editor/compound-editor.d.ts +1 -1
  86. package/views/dist/controls/compound-editor/name-parts.js +4 -4
  87. package/views/dist/controls/compound-editor/place-parts.js +19 -19
  88. package/views/dist/controls/compound-editor/range-parts.js +14 -14
  89. package/views/dist/controls/compound-editor/row.d.ts +3 -1
  90. package/views/dist/controls/compound-editor/row.js +2 -2
  91. package/views/dist/controls/controls.d.ts +8 -0
  92. package/views/dist/controls/controls.js +12 -2
  93. package/views/dist/controls/customize/customize.js +37 -35
  94. package/views/dist/controls/customize/map-customize-body.d.ts +2 -0
  95. package/views/dist/controls/customize/map-customize-body.js +5 -1
  96. package/views/dist/controls/date-editor/date-days.js +2 -2
  97. package/views/dist/controls/date-editor/date-editor.js +18 -18
  98. package/views/dist/controls/date-editor/date-parts.js +6 -6
  99. package/views/dist/controls/date-editor/map-calendar.js +1 -1
  100. package/views/dist/controls/date-editor.css +2 -2
  101. package/views/dist/controls/field/field.d.ts +22 -4
  102. package/views/dist/controls/field/field.js +63 -5
  103. package/views/dist/controls/field/tokens.d.ts +4 -0
  104. package/views/dist/controls/field/tokens.js +1 -0
  105. package/views/dist/controls/field.css +41 -16
  106. package/views/dist/controls/filter-editor/block.d.ts +2 -2
  107. package/views/dist/controls/filter-editor/block.js +5 -5
  108. package/views/dist/controls/filter-editor/filter-editor.js +31 -33
  109. package/views/dist/controls/filter-editor/how.d.ts +3 -1
  110. package/views/dist/controls/filter-editor/map-filter-body.d.ts +1 -0
  111. package/views/dist/controls/filter-editor/map-filter-body.js +7 -3
  112. package/views/dist/controls/filter-editor/map-rules.js +1 -1
  113. package/views/dist/controls/filter-editor/parts.js +2 -1
  114. package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
  115. package/views/dist/controls/glyphs/glyphs.js +173 -0
  116. package/views/dist/controls/group-editor/group-editor.js +15 -13
  117. package/views/dist/controls/index.d.ts +4 -1
  118. package/views/dist/controls/index.js +3 -1
  119. package/views/dist/controls/input/input.js +6 -3
  120. package/views/dist/controls/input/map-input.js +2 -0
  121. package/views/dist/controls/input/tokens.d.ts +4 -0
  122. package/views/dist/controls/input/tokens.js +1 -0
  123. package/views/dist/controls/input.css +31 -3
  124. package/views/dist/controls/internal/editor-parts.js +1 -1
  125. package/views/dist/controls/internal/icons.js +10 -0
  126. package/views/dist/controls/internal/keep-focus.d.ts +2 -0
  127. package/views/dist/controls/internal/keep-focus.js +17 -0
  128. package/views/dist/controls/internal/map-panel-controls.d.ts +8 -0
  129. package/views/dist/controls/internal/map-panel-controls.js +20 -0
  130. package/views/dist/controls/internal/panel-controls.d.ts +50 -0
  131. package/views/dist/controls/internal/panel-controls.js +197 -0
  132. package/views/dist/controls/internal/part-slot.d.ts +12 -0
  133. package/views/dist/controls/internal/part-slot.js +5 -0
  134. package/views/dist/controls/internal/watch-frame.d.ts +2 -0
  135. package/views/dist/controls/internal/watch-frame.js +33 -0
  136. package/views/dist/controls/links-editor/links-editor.d.ts +1 -1
  137. package/views/dist/controls/links-editor/links-editor.js +27 -27
  138. package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
  139. package/views/dist/controls/markdown/map-markdown.js +5 -0
  140. package/views/dist/controls/menu/map-menu.d.ts +2 -2
  141. package/views/dist/controls/menu/map-menu.js +15 -12
  142. package/views/dist/controls/menu/menu.d.ts +2 -0
  143. package/views/dist/controls/menu/menu.js +3 -3
  144. package/views/dist/controls/menu-list/menu-list.d.ts +17 -4
  145. package/views/dist/controls/menu-list/menu-list.js +27 -25
  146. package/views/dist/controls/modal/modal.js +5 -1
  147. package/views/dist/controls/notice/notice.d.ts +3 -1
  148. package/views/dist/controls/notice/notice.js +2 -2
  149. package/views/dist/controls/number-editor/number-editor.d.ts +1 -1
  150. package/views/dist/controls/number-editor/number-editor.js +13 -13
  151. package/views/dist/controls/number-field/number-field.js +5 -3
  152. package/views/dist/controls/pane/pane.d.ts +4 -2
  153. package/views/dist/controls/pane/pane.js +6 -5
  154. package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
  155. package/views/dist/controls/phone-header/header-bar.js +2 -2
  156. package/views/dist/controls/phone-header.css +11 -1
  157. package/views/dist/controls/picker/map-picker.js +3 -0
  158. package/views/dist/controls/picker/picker.d.ts +16 -0
  159. package/views/dist/controls/picker/picker.js +61 -40
  160. package/views/dist/controls/picker/rows.d.ts +4 -0
  161. package/views/dist/controls/picker.css +2 -0
  162. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  163. package/views/dist/controls/popover/map-popover.js +4 -2
  164. package/views/dist/controls/popover/popover.js +2 -1
  165. package/views/dist/controls/quick-filters/quick-filters.js +4 -4
  166. package/views/dist/controls/radio/radio.d.ts +8 -3
  167. package/views/dist/controls/radio/radio.js +22 -5
  168. package/views/dist/controls/radio/tokens.d.ts +44 -0
  169. package/views/dist/controls/radio/tokens.js +11 -0
  170. package/views/dist/controls/radio.css +79 -1
  171. package/views/dist/controls/select/map-select.d.ts +3 -0
  172. package/views/dist/controls/select/map-select.js +8 -0
  173. package/views/dist/controls/select/select.d.ts +7 -0
  174. package/views/dist/controls/select/select.js +12 -6
  175. package/views/dist/controls/select/tokens.d.ts +8 -0
  176. package/views/dist/controls/select/tokens.js +2 -0
  177. package/views/dist/controls/select.css +17 -0
  178. package/views/dist/controls/setting-row/looks.d.ts +1 -1
  179. package/views/dist/controls/setting-row/looks.js +9 -4
  180. package/views/dist/controls/setting-row/setting-row.d.ts +45 -10
  181. package/views/dist/controls/setting-row/setting-row.js +82 -15
  182. package/views/dist/controls/setting-row/tokens.d.ts +74 -2
  183. package/views/dist/controls/setting-row/tokens.js +19 -1
  184. package/views/dist/controls/setting-row.css +135 -14
  185. package/views/dist/controls/sheet/bottom-sheet.d.ts +14 -2
  186. package/views/dist/controls/sheet/bottom-sheet.js +6 -3
  187. package/views/dist/controls/sheet/map-sheet.js +1 -1
  188. package/views/dist/controls/sheet.css +4 -1
  189. package/views/dist/controls/sort-editor/map-sort-body.d.ts +1 -0
  190. package/views/dist/controls/sort-editor/map-sort-body.js +7 -3
  191. package/views/dist/controls/sort-editor/sort-editor.js +25 -26
  192. package/views/dist/controls/sort-editor.css +13 -2
  193. package/views/dist/controls/switch-row/tokens.d.ts +0 -12
  194. package/views/dist/controls/switch-row/tokens.js +0 -3
  195. package/views/dist/controls/switch-row.css +3 -7
  196. package/views/dist/controls/switch.css +17 -7
  197. package/views/dist/controls/tag/tag.d.ts +3 -1
  198. package/views/dist/controls/tag/tag.js +2 -2
  199. package/views/dist/controls/tag/tokens.d.ts +4 -0
  200. package/views/dist/controls/tag/tokens.js +1 -0
  201. package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
  202. package/views/dist/controls/tag-field/tag-field.js +11 -5
  203. package/views/dist/controls/tag-field/tokens.d.ts +16 -0
  204. package/views/dist/controls/tag-field/tokens.js +4 -0
  205. package/views/dist/controls/tag-field.css +19 -0
  206. package/views/dist/controls/tag.css +2 -0
  207. package/views/dist/controls/text-editor/text-editor.d.ts +1 -1
  208. package/views/dist/controls/text-editor/text-editor.js +8 -8
  209. package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
  210. package/views/dist/controls/toolbar/toolbar.js +22 -15
  211. package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
  212. package/views/dist/controls/toolbar-button/atom-toolbar-button.js +52 -0
  213. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
  214. package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
  215. package/views/dist/controls/toolbar-button.css +4 -0
  216. package/views/dist/controls/toolbar.css +5 -0
  217. package/views/dist/controls/values-editor/values-editor.d.ts +1 -1
  218. package/views/dist/controls/values-editor/values-editor.js +22 -22
  219. package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
  220. package/views/dist/controls/views-list/map-view-menu.js +25 -0
  221. package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
  222. package/views/dist/controls/views-list/map-views-list-body.js +39 -21
  223. package/views/dist/controls/views-list/rules.d.ts +2 -0
  224. package/views/dist/controls/views-list/view-menu.d.ts +7 -0
  225. package/views/dist/controls/views-list/view-menu.js +33 -29
  226. package/views/dist/controls/views-list/views-list.js +4 -4
  227. package/views/dist/controls/views-list/words.d.ts +2 -0
  228. package/views/dist/controls/views-list/words.js +1 -1
  229. package/views/dist/editors/EditorPanel.js +3 -2
  230. package/views/dist/editors/edit-session.js +2 -5
  231. package/views/dist/field-row/FieldRow.d.ts +4 -2
  232. package/views/dist/field-row/FieldRow.js +80 -20
  233. package/views/dist/field-row/FieldRowLane.d.ts +7 -2
  234. package/views/dist/field-row/FieldRowLane.js +4 -3
  235. package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
  236. package/views/dist/field-row/editors/RowEditor.js +31 -1
  237. package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
  238. package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
  239. package/views/dist/field-row/field-row-button.d.ts +5 -0
  240. package/views/dist/field-row/field-row-button.js +2 -0
  241. package/views/dist/fields/binding.d.ts +3 -2
  242. package/views/dist/fields/binding.js +38 -5
  243. package/views/dist/fields/money.d.ts +5 -2
  244. package/views/dist/fields/money.js +14 -2
  245. package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
  246. package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
  247. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
  248. package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
  249. package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
  250. package/views/dist/grid/chrome/GridHeader.js +2 -2
  251. package/views/dist/grid/chrome/GridRow.js +6 -5
  252. package/views/dist/grid/chrome/GridRowCells.js +6 -9
  253. package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
  254. package/views/dist/grid/chrome/GridStructure.js +4 -4
  255. package/views/dist/grid/chrome/GridTable.js +9 -3
  256. package/views/dist/grid/chrome/cell-clipboard.d.ts +4 -2
  257. package/views/dist/grid/chrome/cell-clipboard.js +2 -2
  258. package/views/dist/grid/chrome/cells.js +3 -1
  259. package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
  260. package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
  261. package/views/dist/grid/chrome/grid-row-menu-items.js +93 -7
  262. package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
  263. package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
  264. package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
  265. package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
  266. package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
  267. package/views/dist/grid/chrome/useGridKeyboard.d.ts +7 -2
  268. package/views/dist/grid/chrome/useGridKeyboard.js +43 -14
  269. package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
  270. package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
  271. package/views/dist/grid/chrome/useGridTableInteractionModel.js +20 -7
  272. package/views/dist/grid/core/clipboard-model.d.ts +3 -1
  273. package/views/dist/grid/core/clipboard-model.js +9 -8
  274. package/views/dist/grid/core/commit-model.d.ts +20 -2
  275. package/views/dist/grid/core/editing-controller.d.ts +21 -0
  276. package/views/dist/grid/core/editing-controller.js +194 -42
  277. package/views/dist/grid/core/editing-model.d.ts +3 -0
  278. package/views/dist/grid/core/editing-model.js +3 -0
  279. package/views/dist/grid/core/edits-sink.d.ts +19 -0
  280. package/views/dist/grid/core/edits-sink.js +2 -0
  281. package/views/dist/grid/core/save-path.d.ts +24 -0
  282. package/views/dist/grid/core/save-path.js +122 -0
  283. package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
  284. package/views/dist/grid/core/spreadsheet-operations.js +24 -1
  285. package/views/dist/grid/core/useGridEditing.d.ts +5 -0
  286. package/views/dist/grid/core/useGridEditing.js +6 -0
  287. package/views/dist/grid/index.d.ts +3 -2
  288. package/views/dist/grid/index.js +1 -0
  289. package/views/dist/internal/field-rows.d.ts +26 -0
  290. package/views/dist/internal/field-rows.js +8 -0
  291. package/views/dist/internal/page-close.d.ts +7 -0
  292. package/views/dist/internal/page-close.js +43 -0
  293. package/views/dist/list/answer.d.ts +40 -0
  294. package/views/dist/list/answer.js +43 -0
  295. package/views/dist/list/browser-views-store.d.ts +10 -0
  296. package/views/dist/list/browser-views-store.js +182 -0
  297. package/views/dist/list/bulk-bar.d.ts +7 -0
  298. package/views/dist/list/bulk-bar.js +10 -0
  299. package/views/dist/list/columns.d.ts +24 -0
  300. package/views/dist/list/columns.js +27 -0
  301. package/views/dist/list/edits.d.ts +19 -0
  302. package/views/dist/list/edits.js +56 -0
  303. package/views/dist/list/grid.d.ts +11 -0
  304. package/views/dist/list/grid.js +76 -0
  305. package/views/dist/list/index.d.ts +36 -0
  306. package/views/dist/list/index.js +11 -0
  307. package/views/dist/list/link.d.ts +8 -0
  308. package/views/dist/list/link.js +78 -0
  309. package/views/dist/list/list.d.ts +70 -0
  310. package/views/dist/list/list.js +14 -0
  311. package/views/dist/list/menu.d.ts +31 -0
  312. package/views/dist/list/menu.js +76 -0
  313. package/views/dist/list/parts.d.ts +6 -0
  314. package/views/dist/list/parts.js +66 -0
  315. package/views/dist/list/registry.d.ts +11 -0
  316. package/views/dist/list/registry.js +31 -0
  317. package/views/dist/list/root-base.d.ts +46 -0
  318. package/views/dist/list/root-base.js +137 -0
  319. package/views/dist/list/root.d.ts +41 -0
  320. package/views/dist/list/root.js +168 -0
  321. package/views/dist/list/slot.d.ts +14 -0
  322. package/views/dist/list/slot.js +22 -0
  323. package/views/dist/list/source-answers.d.ts +39 -0
  324. package/views/dist/list/source-answers.js +225 -0
  325. package/views/dist/list/source.d.ts +11 -0
  326. package/views/dist/list/source.js +31 -0
  327. package/views/dist/list/store.d.ts +119 -0
  328. package/views/dist/list/store.js +146 -0
  329. package/views/dist/list/toolbar.d.ts +7 -0
  330. package/views/dist/list/toolbar.js +371 -0
  331. package/views/dist/list/views-axis.d.ts +5 -0
  332. package/views/dist/list/views-axis.js +98 -0
  333. package/views/dist/list/views-store.d.ts +41 -0
  334. package/views/dist/list/views-store.js +1 -0
  335. package/views/dist/list/views.d.ts +72 -0
  336. package/views/dist/list/views.js +411 -0
  337. package/views/dist/model/column-capabilities.d.ts +13 -0
  338. package/views/dist/model/column-capabilities.js +23 -2
  339. package/views/dist/model/column-schema.d.ts +11 -1
  340. package/views/dist/model/preferences.js +1 -1
  341. package/views/dist/model/prefs-buckets.js +1 -1
  342. package/views/dist/model/view-rules.js +1 -0
  343. package/views/dist/panels/index.d.ts +3 -1
  344. package/views/dist/panels/index.js +1 -0
  345. package/views/dist/panels/model.d.ts +2 -0
  346. package/views/dist/panels/react/customize-body.js +1 -0
  347. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +47 -4
  348. package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
  349. package/views/dist/panels/react/toolbar/Toolbar.d.ts +17 -2
  350. package/views/dist/panels/react/toolbar/Toolbar.js +43 -23
  351. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +1 -1
  352. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  353. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +4 -4
  354. package/views/dist/panels/react/toolbar/ToolbarButton.js +7 -1
  355. package/views/dist/panels/react/toolbar/ToolbarFilter.js +1 -1
  356. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +1 -1
  357. package/views/dist/panels/react/toolbar/ToolbarFilterSheet.js +1 -1
  358. package/views/dist/panels/react/toolbar/ToolbarFilters.js +2 -2
  359. package/views/dist/panels/react/toolbar/ToolbarNew.js +2 -2
  360. package/views/dist/panels/react/toolbar/ToolbarOptions.js +1 -1
  361. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
  362. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
  363. package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
  364. package/views/dist/panels/react/toolbar/ToolbarSort.js +2 -2
  365. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +6 -4
  366. package/views/dist/panels/react/toolbar/context.d.ts +20 -3
  367. package/views/dist/panels/react/toolbar/context.js +3 -1
  368. package/views/dist/panels/react/toolbar/panel-part.d.ts +4 -1
  369. package/views/dist/panels/react/toolbar/panel-part.js +5 -3
  370. package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
  371. package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
  372. package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
  373. package/views/dist/panels/react/views-row/PillGroup.js +16 -7
  374. package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
  375. package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
  376. package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
  377. package/views/dist/panels/react.d.ts +2 -2
  378. package/views/dist/panels/settings/filter-groups.js +6 -1
  379. package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
  380. package/views/dist/panels/toolbar/edit-view.js +14 -0
  381. package/views/dist/panels/toolbar/model.d.ts +5 -0
  382. package/views/dist/panels/toolbar/model.js +7 -3
  383. package/views/dist/panels/view-state.d.ts +5 -3
  384. package/views/dist/panels/views-row/model.d.ts +19 -2
  385. package/views/dist/panels/views-row/model.js +14 -0
  386. package/views/dist/provider/ViewsProvider.d.ts +21 -8
  387. package/views/dist/provider/ViewsProvider.js +40 -5
  388. package/views/dist/provider/components.d.ts +102 -2
  389. package/views/dist/provider/components.js +1 -1
  390. package/views/dist/provider/context.d.ts +6 -2
  391. package/views/dist/provider/context.js +1 -1
  392. package/views/dist/provider/own-control.d.ts +4 -0
  393. package/views/dist/provider/own-control.js +7 -0
  394. package/views/dist/provider/ports.d.ts +19 -12
  395. package/views/dist/provider/ports.js +69 -1
  396. package/views/dist/provider/select-items.d.ts +3 -0
  397. package/views/dist/provider/select-items.js +6 -0
  398. package/views/dist/react.d.ts +4 -2
  399. package/views/dist/react.js +2 -0
  400. package/views/dist/styles.css +503 -136
  401. package/views/dist/styles.unlayered.css +503 -136
  402. package/views/docs/contract.md +292 -34
  403. package/views/docs/controls/avatar.md +11 -0
  404. package/views/docs/controls/choice.md +0 -1
  405. package/views/docs/controls/compound-editor.md +4 -0
  406. package/views/docs/controls/customize.md +6 -0
  407. package/views/docs/controls/date-editor.md +4 -0
  408. package/views/docs/controls/field.md +7 -0
  409. package/views/docs/controls/filter-editor.md +8 -0
  410. package/views/docs/controls/group-editor.md +6 -0
  411. package/views/docs/controls/input.md +5 -0
  412. package/views/docs/controls/links-editor.md +4 -0
  413. package/views/docs/controls/menu-list.md +8 -0
  414. package/views/docs/controls/menu.md +4 -0
  415. package/views/docs/controls/notice.md +4 -0
  416. package/views/docs/controls/number-editor.md +4 -0
  417. package/views/docs/controls/pane.md +4 -0
  418. package/views/docs/controls/picker.md +8 -0
  419. package/views/docs/controls/quick-filters.md +6 -0
  420. package/views/docs/controls/radio.md +20 -1
  421. package/views/docs/controls/select.md +10 -0
  422. package/views/docs/controls/setting-row.md +18 -0
  423. package/views/docs/controls/sheet.md +4 -0
  424. package/views/docs/controls/sort-editor.md +8 -0
  425. package/views/docs/controls/switch-row.md +0 -3
  426. package/views/docs/controls/tag-field.md +4 -0
  427. package/views/docs/controls/tag.md +1 -0
  428. package/views/docs/controls/text-editor.md +4 -0
  429. package/views/docs/controls/values-editor.md +4 -0
  430. package/views/docs/controls/views-list.md +6 -0
  431. package/views/docs/getting-started.md +2 -2
  432. package/views/docs/guides/atoms.md +2 -2
  433. package/views/docs/guides/columns.md +1 -1
  434. package/views/docs/guides/ports.md +1 -1
  435. package/views/docs/guides/the-grid.md +36 -9
  436. package/views/docs/guides/the-provider.md +22 -3
  437. package/views/docs/index.md +1 -0
  438. package/views/docs/reference/controls.md +41 -29
  439. package/views/docs/reference/editors-session.md +1 -1
  440. package/views/docs/reference/field-row.md +9 -1
  441. package/views/docs/reference/grid.md +15 -9
  442. package/views/docs/reference/list.md +357 -0
  443. package/views/docs/reference/looks.md +1 -1
  444. package/views/docs/reference/panels-react.md +17 -12
  445. package/views/docs/reference/panels.md +8 -5
  446. package/views/docs/reference/react.md +24 -16
  447. package/views/docs/reference/views.md +10 -6
  448. package/views/docs/reshaping.md +6 -1
  449. package/views/skills/views/SKILL.md +9 -6
@@ -8,7 +8,7 @@ import { Menu } from "../menu/menu.js";
8
8
  import { optionColours } from "../option/looks.js";
9
9
  import { Icon } from "../internal/icons.js";
10
10
  import { PhoneHost, usePhone } from "../internal/phone.js";
11
- const SIZE = { 16: "o-avatar-2xs", 20: "o-avatar-xs", 24: "o-avatar-sm", 32: "", 40: "o-avatar-lg", 56: "o-avatar-56", 64: "o-avatar-xl" };
11
+ const SIZE = { 16: "o-avatar-2xs", 20: "o-avatar-xs", 24: "o-avatar-sm", 32: "", 40: "o-avatar-lg", 56: "o-avatar-56", 64: "o-avatar-xl", 96: "o-avatar-96" };
12
12
  export function initials(name) {
13
13
  const words = name.split(/\s+/).filter((w) => /^\p{L}/u.test(w));
14
14
  if (!words.length)
@@ -22,6 +22,10 @@ export declare const AVATAR_TOKENS: readonly [{
22
22
  readonly name: "--vk-fg-subtlest";
23
23
  readonly kind: "colour";
24
24
  readonly outright: "--text-subtlest";
25
+ }, {
26
+ readonly name: "--vk-fg-inverse";
27
+ readonly kind: "colour";
28
+ readonly outright: "--text-inverse";
25
29
  }, {
26
30
  readonly name: "--vk-label-amber-fill";
27
31
  readonly kind: "colour";
@@ -78,6 +82,34 @@ export declare const AVATAR_TOKENS: readonly [{
78
82
  readonly name: "--vk-label-teal-strong";
79
83
  readonly kind: "colour";
80
84
  readonly outright: "--label-teal-strong";
85
+ }, {
86
+ readonly name: "--vk-label-blue";
87
+ readonly kind: "colour";
88
+ readonly outright: "--label-blue";
89
+ }, {
90
+ readonly name: "--vk-label-green";
91
+ readonly kind: "colour";
92
+ readonly outright: "--label-green";
93
+ }, {
94
+ readonly name: "--vk-label-amber";
95
+ readonly kind: "colour";
96
+ readonly outright: "--label-amber";
97
+ }, {
98
+ readonly name: "--vk-label-red";
99
+ readonly kind: "colour";
100
+ readonly outright: "--label-red";
101
+ }, {
102
+ readonly name: "--vk-label-purple";
103
+ readonly kind: "colour";
104
+ readonly outright: "--label-purple";
105
+ }, {
106
+ readonly name: "--vk-label-pink";
107
+ readonly kind: "colour";
108
+ readonly outright: "--label-pink";
109
+ }, {
110
+ readonly name: "--vk-label-teal";
111
+ readonly kind: "colour";
112
+ readonly outright: "--label-teal";
81
113
  }, {
82
114
  readonly name: "--vk-neutral";
83
115
  readonly kind: "colour";
@@ -134,6 +166,10 @@ export declare const AVATAR_TOKENS: readonly [{
134
166
  readonly name: "--vk-font-size-3xs";
135
167
  readonly kind: "size";
136
168
  readonly outright: "--text-3xs";
169
+ }, {
170
+ readonly name: "--vk-font-size-4xl";
171
+ readonly kind: "size";
172
+ readonly outright: "--text-4xl";
137
173
  }, {
138
174
  readonly name: "--vk-font-size-sm";
139
175
  readonly kind: "size";
@@ -154,6 +190,14 @@ export declare const AVATAR_TOKENS: readonly [{
154
190
  readonly name: "--vk-radius-2xl";
155
191
  readonly kind: "size";
156
192
  readonly outright: "--radius-2xl";
193
+ }, {
194
+ readonly name: "--vk-radius-3xl";
195
+ readonly kind: "size";
196
+ readonly outright: "--radius-3xl";
197
+ }, {
198
+ readonly name: "--vk-radius-4xl";
199
+ readonly kind: "size";
200
+ readonly outright: "--radius-4xl";
157
201
  }, {
158
202
  readonly name: "--vk-radius-full";
159
203
  readonly kind: "size";
@@ -5,6 +5,7 @@ export const AVATAR_TOKENS = [
5
5
  { name: "--vk-fg-on-brand", kind: "colour", outright: "--text-brand-inverse" },
6
6
  { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
7
7
  { name: "--vk-fg-subtlest", kind: "colour", outright: "--text-subtlest" },
8
+ { name: "--vk-fg-inverse", kind: "colour", outright: "--text-inverse" },
8
9
  { name: "--vk-label-amber-fill", kind: "colour", outright: "--label-amber-fill" },
9
10
  { name: "--vk-label-amber-strong", kind: "colour", outright: "--label-amber-strong" },
10
11
  { name: "--vk-label-blue-fill", kind: "colour", outright: "--label-blue-fill" },
@@ -19,6 +20,13 @@ export const AVATAR_TOKENS = [
19
20
  { name: "--vk-label-red-strong", kind: "colour", outright: "--label-red-strong" },
20
21
  { name: "--vk-label-teal-fill", kind: "colour", outright: "--label-teal-fill" },
21
22
  { name: "--vk-label-teal-strong", kind: "colour", outright: "--label-teal-strong" },
23
+ { name: "--vk-label-blue", kind: "colour", outright: "--label-blue" },
24
+ { name: "--vk-label-green", kind: "colour", outright: "--label-green" },
25
+ { name: "--vk-label-amber", kind: "colour", outright: "--label-amber" },
26
+ { name: "--vk-label-red", kind: "colour", outright: "--label-red" },
27
+ { name: "--vk-label-purple", kind: "colour", outright: "--label-purple" },
28
+ { name: "--vk-label-pink", kind: "colour", outright: "--label-pink" },
29
+ { name: "--vk-label-teal", kind: "colour", outright: "--label-teal" },
22
30
  { name: "--vk-neutral", kind: "colour", outright: "--background-neutral" },
23
31
  { name: "--vk-person-1", kind: "colour", outright: "--person-1" },
24
32
  { name: "--vk-person-2", kind: "colour", outright: "--person-2" },
@@ -33,11 +41,14 @@ export const AVATAR_TOKENS = [
33
41
  { name: "--vk-font-size-2xl", kind: "size", outright: "--text-2xl" },
34
42
  { name: "--vk-font-size-2xs", kind: "size", outright: "--text-2xs" },
35
43
  { name: "--vk-font-size-3xs", kind: "size", outright: "--text-3xs" },
44
+ { name: "--vk-font-size-4xl", kind: "size", outright: "--text-4xl" },
36
45
  { name: "--vk-font-size-sm", kind: "size", outright: "--text-sm" },
37
46
  { name: "--vk-font-size-xl", kind: "size", outright: "--text-xl" },
38
47
  { name: "--vk-font-size-xs", kind: "size", outright: "--text-xs" },
39
48
  { name: "--vk-font-weight-semibold", kind: "size", outright: "--font-weight-semibold" },
40
49
  { name: "--vk-radius-2xl", kind: "size", outright: "--radius-2xl" },
50
+ { name: "--vk-radius-3xl", kind: "size", outright: "--radius-3xl" },
51
+ { name: "--vk-radius-4xl", kind: "size", outright: "--radius-4xl" },
41
52
  { name: "--vk-radius-full", kind: "size", outright: "--radius-full" },
42
53
  { name: "--vk-radius-lg", kind: "size", outright: "--radius-lg" },
43
54
  { name: "--vk-radius-md", kind: "size", outright: "--radius-md" },
@@ -27,13 +27,14 @@
27
27
  .o-avatar-letters svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
28
28
 
29
29
  /* ── Sizes: 16 in a typed Select's chip, its initials at the 3xs type size; 20 in chips and text, 24 in dense rows and stacks,
30
- 40 in headers, 56 at a settings page's head, 64 on a record's page ── */
30
+ 40 in headers, 56 at a settings page's head, 64 on a record's page, 96 a photo on a phone ── */
31
31
  .o-avatar.o-avatar-2xs { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-3xs); }
32
32
  .o-avatar.o-avatar-xs { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); font-size: var(--vk-font-size-2xs); }
33
33
  .o-avatar.o-avatar-sm { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); font-size: var(--vk-font-size-2xs); }
34
34
  .o-avatar.o-avatar-lg { width: calc(var(--vk-spacing) * 10); height: calc(var(--vk-spacing) * 10); font-size: var(--vk-font-size-sm); }
35
35
  .o-avatar.o-avatar-56 { width: calc(var(--vk-spacing) * 14); height: calc(var(--vk-spacing) * 14); font-size: var(--vk-font-size-xl); }
36
36
  .o-avatar.o-avatar-xl { width: calc(var(--vk-spacing) * 16); height: calc(var(--vk-spacing) * 16); font-size: var(--vk-font-size-2xl); }
37
+ .o-avatar.o-avatar-96 { width: calc(var(--vk-spacing) * 24); height: calc(var(--vk-spacing) * 24); font-size: var(--vk-font-size-4xl); }
37
38
 
38
39
  /* ── A thing: a square, its corners a step that grows with it, on the neutral ground, its edge inside ─ */
39
40
  .o-avatar.o-avatar-thing { border-radius: var(--avatar-r); background-color: var(--vk-neutral); color: var(--vk-fg-subtle); box-shadow: inset 0 0 0 var(--vk-border-width) var(--vk-border-subtle); }
@@ -53,27 +54,43 @@
53
54
  /* An agent: a thing's square holding its own icon. Its mark comes in its own fills, so it is filled, never drawn as a
54
55
  line as a record's icon is; a mark with no colour of its own (Codex's, Grok's) takes the text's ink, as the canvas drew it. */
55
56
  .o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
57
+ /* On a phone an agent's square on its own colour stands bold, as iOS draws an app's tile (round 3 of the settings canvas): the hue
58
+ under a white letter, as the setting row's Tile draws its icons; grey the quietest ink. A thing's, the workspace's included,
59
+ keeps the hue's fill. */
60
+ .o-avatar.o-avatar-agent[data-colour]:where([data-vk-phone] *) { color: var(--vk-fg-inverse); }
61
+ .o-avatar.o-avatar-agent[data-colour="blue"]:where([data-vk-phone] *) { background-color: var(--vk-label-blue); }
62
+ .o-avatar.o-avatar-agent[data-colour="green"]:where([data-vk-phone] *) { background-color: var(--vk-label-green); }
63
+ .o-avatar.o-avatar-agent[data-colour="amber"]:where([data-vk-phone] *) { background-color: var(--vk-label-amber); }
64
+ .o-avatar.o-avatar-agent[data-colour="red"]:where([data-vk-phone] *) { background-color: var(--vk-label-red); }
65
+ .o-avatar.o-avatar-agent[data-colour="purple"]:where([data-vk-phone] *) { background-color: var(--vk-label-purple); }
66
+ .o-avatar.o-avatar-agent[data-colour="pink"]:where([data-vk-phone] *) { background-color: var(--vk-label-pink); }
67
+ .o-avatar.o-avatar-agent[data-colour="teal"]:where([data-vk-phone] *) { background-color: var(--vk-label-teal); }
68
+ .o-avatar.o-avatar-agent[data-colour="grey"]:where([data-vk-phone] *) { background-color: var(--vk-fg-subtlest); }
56
69
 
57
- /* ── Corners: a radius token per size, in steps, 56 taking 64's; Medium with nothing set: xs at 20, sm at 24 and 32, md at 40, lg at 56 and 64,
70
+ /* ── Corners: a radius token per size, in steps, 56 taking 64's; Medium with nothing set: xs at 20, sm at 24 and 32, md at 40, lg at 56 and 64, 2xl at 96 (two steps past 64's, as round 3's photo draws it),
58
71
  between Small and Large, the tokens holding nothing between xs and sm ────────────────────────────── */
59
72
  .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
60
73
  .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs) { --avatar-r: var(--vk-radius-xs); }
61
74
  .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-md); }
62
75
  .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-lg); }
63
- /* Small: xs at 20 and 24, sm at 32 and 40, md at 56 and 64. */
76
+ .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-2xl); }
77
+ /* Small: xs at 20 and 24, sm at 32 and 40, md at 56 and 64, xl at 96. */
64
78
  [data-avatar-corners="small"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
65
79
  [data-avatar-corners="small"] .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs, .o-avatar-sm) { --avatar-r: var(--vk-radius-xs); }
66
80
  [data-avatar-corners="small"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-md); }
67
- /* Large, the radii before Medium came: sm at 20 and 24, md at 32, lg at 40, xl at 56 and 64. */
81
+ [data-avatar-corners="small"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-xl); }
82
+ /* Large, the radii before Medium came: sm at 20 and 24, md at 32, lg at 40, xl at 56 and 64, 3xl at 96. */
68
83
  [data-avatar-corners="large"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-md); }
69
84
  [data-avatar-corners="large"] .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs, .o-avatar-sm) { --avatar-r: var(--vk-radius-sm); }
70
85
  [data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-lg); }
71
86
  [data-avatar-corners="large"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-xl); }
72
- /* Extra large: md at 20 and 24, lg at 32, xl at 40, 2xl at 56 and 64. */
87
+ [data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-3xl); }
88
+ /* Extra large: md at 20 and 24, lg at 32, xl at 40, 2xl at 56 and 64, 4xl at 96. */
73
89
  [data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-lg); }
74
90
  [data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs, .o-avatar-sm) { --avatar-r: var(--vk-radius-md); }
75
91
  [data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-xl); }
76
92
  [data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-2xl); }
93
+ [data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-4xl); }
77
94
 
78
95
  /* ── Corner smoothing: Smooth, with nothing set, draws a square's corners with the smooth outline (smooth.css),
79
96
  every browser that knows shape() showing it; one that doesn't keeps the quarter circles above, and so does Round. Its
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import { ViewsContext } from "../../provider/context.js";
4
4
  import { Button } from "./button.js";
5
+ import { markOwnControl } from "../../provider/own-control.js";
5
6
  const KIND = {
6
7
  default: "primary", ghost: "quiet", outline: "outline", destructive: "danger", secondary: "soft",
7
8
  };
@@ -25,3 +26,4 @@ export function MapButton({ variant = "default", size = "default", type = "butto
25
26
  const { icon, label, iconEnd } = size === "icon" ? { icon: undefined, label: children, iconEnd: undefined } : leadingGlyph(children, glyphs);
26
27
  return _jsx(Button, { kind: KIND[variant], size: size === "default" ? "md" : "sm", shape: size === "icon" ? "icon" : "default", type: type, icon: icon, iconEnd: iconEnd, ...rest, children: label });
27
28
  }
29
+ markOwnControl(MapButton);
@@ -18,8 +18,9 @@ export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProp
18
18
  /** The Checkbox's box alone, for a row of a list that is pressed as a whole (a list's row where several can be chosen):
19
19
  * ticked when its row is chosen, greyed when its row is off, as the Checkbox draws it. The row carries the choice for the
20
20
  * keyboard and screen readers. */
21
- export declare function CheckboxMark({ className }: {
22
- className?: string;
21
+ export declare function CheckboxMark({ className, "data-slot": slot }: {
22
+ className?: string; /** Its public name (VK-989): a Picker row's tick, several held. */
23
+ "data-slot"?: string;
23
24
  }): import("react/jsx-runtime").JSX.Element;
24
25
  export type CheckboxListProps = Omit<React.ComponentProps<typeof BaseCheckboxGroup>, "className"> & {
25
26
  className?: string;
@@ -9,8 +9,8 @@ export const Checkbox = React.forwardRef(function Checkbox({ label, note, row =
9
9
  const phone = usePhoneForm();
10
10
  return (_jsxs("label", { className: cx("o-check", row && "o-check-row", card && "o-choice-card", className), "data-kit": "checkbox", ...phoneMark(phone), children: [_jsxs(BaseCheckbox.Root, { ref: ref, className: "o-check-box", ...props, children: [_jsx(Cut, {}), _jsx(BaseCheckbox.Indicator, { keepMounted: true, className: "o-check-mark", children: _jsxs("svg", { viewBox: "0 0 24 24", strokeWidth: 2.75, "aria-hidden": "true", children: [_jsx("path", { className: "o-check-tick", d: "M5 12l5 5l10 -10", pathLength: 1 }), _jsx("path", { className: "o-check-dash", d: "M6 12h12" })] }) })] }), (label != null || note != null) && (_jsxs("span", { className: "o-choice-text", children: [label != null && _jsx("span", { className: "o-choice-label", children: label }), note != null && _jsx("span", { className: "o-choice-note", children: note })] }))] }));
11
11
  });
12
- export function CheckboxMark({ className }) {
13
- return (_jsxs("span", { className: cx("o-check-box o-check-in-row", className), "aria-hidden": "true", children: [_jsx(Cut, {}), _jsx("span", { className: "o-check-mark", children: _jsx("svg", { viewBox: "0 0 24 24", strokeWidth: 2.75, children: _jsx("path", { className: "o-check-tick", d: "M5 12l5 5l10 -10", pathLength: 1 }) }) })] }));
12
+ export function CheckboxMark({ className, "data-slot": slot }) {
13
+ return (_jsxs("span", { className: cx("o-check-box o-check-in-row", className), "data-slot": slot, "aria-hidden": "true", children: [_jsx(Cut, {}), _jsx("span", { className: "o-check-mark", children: _jsx("svg", { viewBox: "0 0 24 24", strokeWidth: 2.75, children: _jsx("path", { className: "o-check-tick", d: "M5 12l5 5l10 -10", pathLength: 1 }) }) })] }));
14
14
  }
15
15
  export function CheckboxList({ className, ...props }) {
16
16
  return _jsx(BaseCheckboxGroup, { className: cx("o-check-list o-smooth o-smooth-ease", className), ...props });
@@ -30,10 +30,6 @@ export declare const CHOICE_TOKENS: readonly [{
30
30
  readonly name: "--vk-hovered";
31
31
  readonly kind: "colour";
32
32
  readonly outright: "--surface-hovered";
33
- }, {
34
- readonly name: "--vk-selected";
35
- readonly kind: "colour";
36
- readonly outright: "--surface-selected";
37
33
  }, {
38
34
  readonly name: "--vk-border-width";
39
35
  readonly kind: "size";
@@ -7,7 +7,6 @@ export const CHOICE_TOKENS = [
7
7
  { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
8
8
  { name: "--vk-ground", kind: "colour", outright: "--surface" },
9
9
  { name: "--vk-hovered", kind: "colour", outright: "--surface-hovered" },
10
- { name: "--vk-selected", kind: "colour", outright: "--surface-selected" },
11
10
  { name: "--vk-border-width", kind: "size", outright: "--border-width" },
12
11
  { name: "--vk-font-size-sm", kind: "size", outright: "--text-sm" },
13
12
  { name: "--vk-font-size-xs", kind: "size", outright: "--text-xs" },
@@ -10,7 +10,7 @@
10
10
  .o-choice-note { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
11
11
 
12
12
  /* ── A choice as a card: an edge round it, the whole card pressing it; under the pointer the hovered
13
- ground; chosen, the selected edge and ground; off, the softer edge and no hover ─────────────────── */
13
+ ground; chosen, the selected edge and a hairline ring just outside it, on the card's own ground, as a marked card; off, the softer edge and no hover ─────────────────── */
14
14
  .o-choice-card {
15
15
  box-sizing: border-box; display: flex; width: 100%; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5);
16
16
  border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); corner-shape: squircle;
@@ -18,8 +18,8 @@
18
18
  }
19
19
  /* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
20
20
  @media (hover: hover) { .o-choice-card:hover { background-color: var(--vk-hovered); } }
21
- .o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); background-color: var(--vk-selected); }
22
- .o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); background-color: transparent; }
21
+ .o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); box-shadow: 0 0 0 var(--vk-border-width) var(--vk-border-selected); background-color: var(--vk-ground); }
22
+ .o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); box-shadow: none; background-color: transparent; }
23
23
  .o-choice-card .o-choice-label { font-weight: var(--vk-font-weight-medium); }
24
24
  /* In error, the card's edge is red too. */
25
25
  .o-choice-card:is(:has(> :is([aria-invalid="true"], [data-invalid])), .o-fieldset[data-invalid] *):not(:has(> [data-disabled])) { border-color: var(--vk-border-danger); }
@@ -78,7 +78,7 @@ export type RangePartsProps = Extract<CompoundEditorProps, {
78
78
  export interface CompoundEditorParts {
79
79
  body: React.ReactNode;
80
80
  /** On a phone, the Sheet head's ✕ and ✓, or Back on a list's step; on a computer, nothing. */
81
- head: Pick<SheetHeadProps, "left" | "right" | "onBack" | "close">;
81
+ head: Pick<SheetHeadProps, "left" | "right" | "onBack" | "backSlot" | "close">;
82
82
  /** On a phone, the Sheet's title while it is on a list's step (Country, State). */
83
83
  title?: string;
84
84
  }
@@ -76,10 +76,10 @@ export function useNameParts(props, worn, wornAt) {
76
76
  then();
77
77
  } };
78
78
  const toLast = () => last.current?.focus({ preventScroll: true });
79
- const body = fields ? (_jsxs("div", { ref: root, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, children: [_jsxs(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", children: [_jsx(FieldRow, { label: w.first, className: "o-compound-editor-card-row", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", ref: first, className: "o-compound-editor-card-input", value: given, autofill: false, enterKeyHint: "next", ...words, onChange: (e) => part("given", e.target.value), onKeyDown: (e) => enter(toLast)(e) }) }), _jsx(FieldRow, { label: w.last, className: "o-compound-editor-card-row", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", ref: last, className: "o-compound-editor-card-input", value: family, autofill: false, enterKeyHint: "done", ...words, onChange: (e) => part("family", e.target.value), onKeyDown: (e) => enter(keep)(e) }) })] }), shownAs && _jsxs("div", { className: "o-compound-editor-shown", children: [_jsx(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", children: _jsx(FieldRow, { label: w.shownAs, className: "o-compound-editor-card-row", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", className: "o-compound-editor-card-input", value: line ?? joined, placeholder: joined || label, "data-follows": own ? undefined : "", autofill: false, enterKeyHint: "done", ...words, onChange: (e) => typeLine(e.target.value), onKeyDown: (e) => enter(keep)(e) }) }) }), _jsx("p", { className: "o-compound-editor-caption", "data-bad": note ? "" : undefined, role: note ? "alert" : undefined, children: note ?? (own ? w.own : w.follows) })] }), !shownAs && note && _jsx("p", { className: "o-compound-editor-caption", "data-bad": "", role: "alert", children: note })] })) : (_jsxs("div", { ref: root, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, children: [_jsxs(PartsRow, { children: [_jsx(QuietField, { label: w.first, form: "phone", children: _jsx(Input, { ref: first, size: "lg", value: given, autofill: false, enterKeyHint: "next", ...words, onChange: (e) => part("given", e.target.value), onKeyDown: (e) => enter(toLast)(e) }) }), _jsx(QuietField, { label: w.last, form: "phone", children: _jsx(Input, { ref: last, size: "lg", value: family, autofill: false, enterKeyHint: "done", ...words, onChange: (e) => part("family", e.target.value), onKeyDown: (e) => enter(keep)(e) }) })] }), shownAs && _jsx(QuietField, { label: w.shownAs, form: "phone", children: _jsx(Input, { size: "lg", value: line ?? joined, placeholder: joined || label, "data-follows": own ? undefined : "", autofill: false, enterKeyHint: "done", ...words, onChange: (e) => typeLine(e.target.value), onKeyDown: (e) => enter(keep)(e) }) }), note && _jsx("p", { className: "o-compound-editor-note", "data-bad": "", role: "alert", children: note })] }));
79
+ const body = fields ? (_jsxs("div", { ref: root, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, children: [_jsxs(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", "data-slot": "vk-parts-card", children: [_jsx(FieldRow, { label: w.first, className: "o-compound-editor-card-row", "data-slot": "vk-parts-field", "data-key": "given", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", ref: first, className: "o-compound-editor-card-input", "data-slot": "vk-parts-box", "data-key": "given", value: given, autofill: false, enterKeyHint: "next", ...words, onChange: (e) => part("given", e.target.value), onKeyDown: (e) => enter(toLast)(e) }) }), _jsx(FieldRow, { label: w.last, className: "o-compound-editor-card-row", "data-slot": "vk-parts-field", "data-key": "family", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", ref: last, className: "o-compound-editor-card-input", "data-slot": "vk-parts-box", "data-key": "family", value: family, autofill: false, enterKeyHint: "done", ...words, onChange: (e) => part("family", e.target.value), onKeyDown: (e) => enter(keep)(e) }) })] }), shownAs && _jsxs("div", { className: "o-compound-editor-shown", children: [_jsx(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", "data-slot": "vk-parts-card", children: _jsx(FieldRow, { label: w.shownAs, className: "o-compound-editor-card-row", "data-slot": "vk-parts-field", "data-key": "shown", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", className: "o-compound-editor-card-input", "data-slot": "vk-parts-box", "data-key": "shown", value: line ?? joined, placeholder: joined || label, "data-follows": own ? undefined : "", autofill: false, enterKeyHint: "done", ...words, onChange: (e) => typeLine(e.target.value), onKeyDown: (e) => enter(keep)(e) }) }) }), _jsx("p", { className: "o-compound-editor-caption", "data-slot": "vk-parts-note", "data-bad": note ? "" : undefined, role: note ? "alert" : undefined, children: note ?? (own ? w.own : w.follows) })] }), !shownAs && note && _jsx("p", { className: "o-compound-editor-caption", "data-slot": "vk-parts-note", "data-bad": "", role: "alert", children: note })] })) : (_jsxs("div", { ref: root, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, children: [_jsxs(PartsRow, { children: [_jsx(QuietField, { label: w.first, form: "phone", "data-slot": "vk-parts-field", "data-key": "given", children: _jsx(Input, { ref: first, size: "lg", "data-slot": "vk-parts-box", "data-key": "given", value: given, autofill: false, enterKeyHint: "next", ...words, onChange: (e) => part("given", e.target.value), onKeyDown: (e) => enter(toLast)(e) }) }), _jsx(QuietField, { label: w.last, form: "phone", "data-slot": "vk-parts-field", "data-key": "family", children: _jsx(Input, { ref: last, size: "lg", "data-slot": "vk-parts-box", "data-key": "family", value: family, autofill: false, enterKeyHint: "done", ...words, onChange: (e) => part("family", e.target.value), onKeyDown: (e) => enter(keep)(e) }) })] }), shownAs && _jsx(QuietField, { label: w.shownAs, form: "phone", "data-slot": "vk-parts-field", "data-key": "shown", children: _jsx(Input, { size: "lg", "data-slot": "vk-parts-box", "data-key": "shown", value: line ?? joined, placeholder: joined || label, "data-follows": own ? undefined : "", autofill: false, enterKeyHint: "done", ...words, onChange: (e) => typeLine(e.target.value), onKeyDown: (e) => enter(keep)(e) }) }), note && _jsx("p", { className: "o-compound-editor-note", "data-slot": "vk-parts-note", "data-bad": "", role: "alert", children: note })] }));
80
80
  if (shell)
81
81
  return { body, head: {} };
82
- return { body, head: { left: _jsx(SheetButton, { "aria-label": "Close", icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { kind: "primary", "aria-label": "Save", icon: glyph(TICK), onClick: keep }) } };
82
+ return { body, head: { left: _jsx(SheetButton, { "data-slot": "vk-editor-close", "aria-label": "Close", icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { "data-slot": "vk-editor-save", kind: "primary", "aria-label": "Save", icon: glyph(TICK), onClick: keep }) } };
83
83
  }
84
84
  const onKeyDown = (e) => {
85
85
  if (midWord(e.nativeEvent))
@@ -101,7 +101,7 @@ export function useNameParts(props, worn, wornAt) {
101
101
  keep();
102
102
  }
103
103
  };
104
- const theLine = shownAs && (_jsxs("div", { className: "o-compound-editor-line o-popup-line", "data-own": own ? "" : undefined, children: [glyph(USER), _jsx(Input, { chrome: "bare", className: "o-compound-editor-line-input", "aria-label": label, placeholder: joined || label, autofill: false, ...words, value: line ?? joined, onChange: (e) => typeLine(e.target.value) }), own && _jsx("span", { className: "o-compound-editor-own", children: w.ownMark })] }));
105
- const body = (_jsxs("div", { ref: root, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "computer", ...device, onBlur: shell ? undefined : (e) => blurKeeps(settled, keep)(e), onFocus: () => { settled.current = false; }, onKeyDown: onKeyDown, children: [theLine, fields ? (_jsxs("div", { className: "o-compound-editor-pair", children: [_jsx(Input, { ref: first, size: "sm", "aria-label": w.first, placeholder: w.first, autofill: false, ...words, value: given, onChange: (e) => part("given", e.target.value) }), _jsx(Input, { size: "sm", "aria-label": w.last, placeholder: w.last, autofill: false, ...words, value: family, onChange: (e) => part("family", e.target.value) })] })) : (_jsxs(PartsRow, { children: [_jsx(QuietField, { label: w.first, form: "computer", children: _jsx(Input, { ref: first, size: "sm", autofill: false, ...words, value: given, onChange: (e) => part("given", e.target.value) }) }), _jsx(QuietField, { label: w.last, form: "computer", children: _jsx(Input, { size: "sm", autofill: false, ...words, value: family, onChange: (e) => part("family", e.target.value) }) })] })), note && _jsx("p", { className: "o-compound-editor-note", "data-bad": "", role: "alert", children: note })] }));
104
+ const theLine = shownAs && (_jsxs("div", { className: "o-compound-editor-line o-popup-line", "data-slot": "vk-parts-line", "data-own": own ? "" : undefined, children: [glyph(USER), _jsx(Input, { chrome: "bare", className: "o-compound-editor-line-input", "aria-label": label, placeholder: joined || label, autofill: false, ...words, value: line ?? joined, onChange: (e) => typeLine(e.target.value) }), own && _jsx("span", { className: "o-compound-editor-own", "data-slot": "vk-parts-own", children: w.ownMark })] }));
105
+ const body = (_jsxs("div", { ref: root, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "computer", ...device, onBlur: shell ? undefined : (e) => blurKeeps(settled, keep)(e), onFocus: () => { settled.current = false; }, onKeyDown: onKeyDown, children: [theLine, fields ? (_jsxs("div", { className: "o-compound-editor-pair", "data-slot": "vk-parts-pair", children: [_jsx(Input, { ref: first, size: "sm", "data-slot": "vk-parts-box", "data-key": "given", "aria-label": w.first, placeholder: w.first, autofill: false, ...words, value: given, onChange: (e) => part("given", e.target.value) }), _jsx(Input, { size: "sm", "data-slot": "vk-parts-box", "data-key": "family", "aria-label": w.last, placeholder: w.last, autofill: false, ...words, value: family, onChange: (e) => part("family", e.target.value) })] })) : (_jsxs(PartsRow, { children: [_jsx(QuietField, { label: w.first, form: "computer", "data-slot": "vk-parts-field", "data-key": "given", children: _jsx(Input, { ref: first, size: "sm", "data-slot": "vk-parts-box", "data-key": "given", autofill: false, ...words, value: given, onChange: (e) => part("given", e.target.value) }) }), _jsx(QuietField, { label: w.last, form: "computer", "data-slot": "vk-parts-field", "data-key": "family", children: _jsx(Input, { size: "sm", "data-slot": "vk-parts-box", "data-key": "family", autofill: false, ...words, value: family, onChange: (e) => part("family", e.target.value) }) })] })), note && _jsx("p", { className: "o-compound-editor-note", "data-slot": "vk-parts-note", "data-bad": "", role: "alert", children: note })] }));
106
106
  return { body, head: {} };
107
107
  }
@@ -129,7 +129,7 @@ export function usePlaceParts(props, worn, wornAt) {
129
129
  function pickBox(k) {
130
130
  const to = k === "country" ? "countries" : "region";
131
131
  const shown = k === "country" ? (country ? _jsxs(_Fragment, { children: [_jsx(Flag, { code: country.code, size: "lg" }), _jsx("span", { className: "o-list-main", children: country.name })] }) : undefined) : draft.region || undefined;
132
- return (_jsx(QuietField, { label: k === "country" ? w.country : regionWord, form: "phone", required: k === "region" && req("region"), children: _jsx(Select, { opens: "listbox", arrow: "right", size: "lg", shown: shown, placeholder: k === "country" ? w.pick : "", open: list === to, onOpenChange: (o) => (o ? open(to) : back()) }) }));
132
+ return (_jsx(QuietField, { label: k === "country" ? w.country : regionWord, form: "phone", required: k === "region" && req("region"), children: _jsx(Select, { opens: "listbox", arrow: "right", size: "lg", "data-slot": "vk-parts-box", "data-key": k, shown: shown, placeholder: k === "country" ? w.pick : "", open: list === to, onOpenChange: (o) => (o ? open(to) : back()) }) }));
133
133
  }
134
134
  if (phone) {
135
135
  const enter = (e) => {
@@ -147,21 +147,21 @@ export function usePlaceParts(props, worn, wornAt) {
147
147
  if (list)
148
148
  body = list === "countries" ? countryList.body : regionList.body;
149
149
  else if (fields) {
150
- const countryRow = (_jsxs(FieldRow, { as: "button", label: w.country, className: "o-compound-editor-card-row o-compound-editor-pick", labelClassName: "o-compound-editor-card-label", "data-pick": "country", onPointerDown: () => { wasOpen.current = list === "countries"; }, onClick: () => { if (!wasOpen.current)
150
+ const countryRow = (_jsxs(FieldRow, { as: "button", label: w.country, className: "o-compound-editor-card-row o-compound-editor-pick", labelClassName: "o-compound-editor-card-label", "data-slot": "vk-parts-field", "data-key": "country", "data-pick": "country", onPointerDown: () => { wasOpen.current = list === "countries"; }, onClick: () => { if (!wasOpen.current)
151
151
  open("countries"); wasOpen.current = false; }, children: [_jsx("span", { className: "o-compound-editor-value", children: countryShown }), glyph(RIGHT)] }, "country"));
152
- body = (_jsxs(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", role: "group", "aria-label": label, children: [first && takesCountry && countryRow, flat.map((p) => p === "region" && regionPick ? (_jsxs(FieldRow, { as: "button", label: regionWord, required: req("region"), className: "o-compound-editor-card-row o-compound-editor-pick", labelClassName: "o-compound-editor-card-label", "data-pick": "region", onPointerDown: () => { wasOpen.current = list === "region"; }, onClick: () => { if (!wasOpen.current)
153
- open("region"); wasOpen.current = false; }, children: [_jsx("span", { className: "o-compound-editor-value", children: regionShown }), glyph(RIGHT)] }, p)) : (_jsx(FieldRow, { label: wordOf(country, p, { phone: true, attio, words: w.parts }), required: req(p), className: "o-compound-editor-card-row", labelClassName: "o-compound-editor-card-label", children: _jsx(Input, { chrome: "bare", className: "o-compound-editor-card-input o-compound-editor-text", "aria-required": req(p) || undefined, value: attio && p === "line1" ? street : draft[p] ?? "", placeholder: wordOf(country, p, { phone: true, attio, words: w.parts }), autofill: false, enterKeyHint: p === lastText ? "done" : "next", onChange: (e) => (attio && p === "line1" ? setStreet(e.target.value) : set(p, e.target.value)), onKeyDown: enter }) }, p))), !first && takesCountry && countryRow] }));
152
+ body = (_jsxs(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", "data-slot": "vk-parts-card", role: "group", "aria-label": label, children: [first && takesCountry && countryRow, flat.map((p) => p === "region" && regionPick ? (_jsxs(FieldRow, { as: "button", label: regionWord, required: req("region"), className: "o-compound-editor-card-row o-compound-editor-pick", labelClassName: "o-compound-editor-card-label", "data-slot": "vk-parts-field", "data-key": "region", "data-pick": "region", onPointerDown: () => { wasOpen.current = list === "region"; }, onClick: () => { if (!wasOpen.current)
153
+ open("region"); wasOpen.current = false; }, children: [_jsx("span", { className: "o-compound-editor-value", children: regionShown }), glyph(RIGHT)] }, p)) : (_jsx(FieldRow, { label: wordOf(country, p, { phone: true, attio, words: w.parts }), required: req(p), className: "o-compound-editor-card-row", labelClassName: "o-compound-editor-card-label", "data-slot": "vk-parts-field", "data-key": p, children: _jsx(Input, { chrome: "bare", className: "o-compound-editor-card-input o-compound-editor-text", "data-slot": "vk-parts-box", "data-key": p, "aria-required": req(p) || undefined, value: attio && p === "line1" ? street : draft[p] ?? "", placeholder: wordOf(country, p, { phone: true, attio, words: w.parts }), autofill: false, enterKeyHint: p === lastText ? "done" : "next", onChange: (e) => (attio && p === "line1" ? setStreet(e.target.value) : set(p, e.target.value)), onKeyDown: enter }) }, p))), !first && takesCountry && countryRow] }));
154
154
  }
155
155
  else {
156
- const countryPart = (_jsx("div", { className: "o-compound-editor-cell", "data-part": "country", "data-pick": "country", children: pickBox("country") }, "country"));
156
+ const countryPart = (_jsx("div", { className: "o-compound-editor-cell", "data-slot": "vk-parts-field", "data-key": "country", "data-part": "country", "data-pick": "country", children: pickBox("country") }, "country"));
157
157
  body = (_jsxs("div", { className: "o-compound-editor-fields", role: "group", "aria-label": label, children: [first && takesCountry && countryPart, rows.map((row) => _jsx(PartsRow, { children: row.map((p) => box(p, true, enter)) }, row.join())), !first && takesCountry && countryPart] }));
158
158
  }
159
- const shellBody = _jsx("div", { ref: placeRoot, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, "data-parts-step": list ?? undefined, children: body });
159
+ const shellBody = _jsx("div", { ref: placeRoot, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, "data-parts-step": list ?? undefined, children: body });
160
160
  if (list)
161
- return { body: shellBody, head: { onBack: back, close: false }, title: list === "countries" ? w.country : regionWord };
161
+ return { body: shellBody, head: { onBack: back, backSlot: "vk-editor-back", close: false }, title: list === "countries" ? w.country : regionWord };
162
162
  if (shell)
163
163
  return { body: shellBody, head: {} };
164
- return { body: shellBody, head: { left: _jsx(SheetButton, { "aria-label": "Close", icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { kind: "primary", "aria-label": "Save", icon: glyph(TICK), onClick: keep }) } };
164
+ return { body: shellBody, head: { left: _jsx(SheetButton, { "data-slot": "vk-editor-close", "aria-label": "Close", icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { "data-slot": "vk-editor-save", kind: "primary", "aria-label": "Save", icon: glyph(TICK), onClick: keep }) } };
165
165
  }
166
166
  const inList = (t) => t instanceof Element && !!t.closest(".o-select-list");
167
167
  const onBlur = (e) => { if (!shell && !swapping.current)
@@ -189,7 +189,7 @@ export function usePlaceParts(props, worn, wornAt) {
189
189
  function listBox(k) {
190
190
  const to = k === "country" ? "countries" : "region", word = k === "country" ? w.country : regionWord;
191
191
  const value = k === "country" ? draft.countryCode ?? null : typedRegion ? TYPED : draft.regionCode ?? null;
192
- const select = (_jsx(Select, { size: "sm", items: k === "country" ? countryListItems : regionListItems, value: value, onValueChange: (v) => { const c = typeof v === "string" ? v : ""; if (k === "country")
192
+ const select = (_jsx(Select, { size: "sm", "data-slot": "vk-parts-box", "data-key": k, items: k === "country" ? countryListItems : regionListItems, value: value, onValueChange: (v) => { const c = typeof v === "string" ? v : ""; if (k === "country")
193
193
  pickCountry(c);
194
194
  else if (c !== TYPED)
195
195
  pickRegion(c); }, search: k === "country" ? countrySearch : regionSearch, clear: attio ? (k === "country" ? w.noCountry : w.noRegion(regionWord)) : undefined, pickerWords: w.picker, placeholder: k === "country" ? (fields ? w.chooseCountry : w.pick) : fields ? w.chooseRegion(regionWord) : "", open: list === to, onOpenChange: (o) => setList(o ? to : null) }));
@@ -201,25 +201,25 @@ export function usePlaceParts(props, worn, wornAt) {
201
201
  const word = wordOf(country, p, { attio, phone: onPhone && fields, words: w.parts });
202
202
  if (p === "region" && regionPick) {
203
203
  return onPhone
204
- ? _jsx("div", { className: "o-compound-editor-cell", "data-part": p, "data-pick": "region", children: pickBox("region") }, p)
205
- : _jsx("div", { className: "o-compound-editor-cell", "data-part": p, "data-pick": "region", children: listBox("region") }, p);
204
+ ? _jsx("div", { className: "o-compound-editor-cell", "data-slot": "vk-parts-field", "data-key": p, "data-part": p, "data-pick": "region", children: pickBox("region") }, p)
205
+ : _jsx("div", { className: "o-compound-editor-cell", "data-slot": "vk-parts-field", "data-key": p, "data-part": p, "data-pick": "region", children: listBox("region") }, p);
206
206
  }
207
207
  const lines = attio && p === "line1";
208
208
  const shown = lines ? street : draft[p] ?? "";
209
209
  const change = (v) => (lines ? setStreet(v) : set(p, v));
210
210
  if (fields)
211
- return (_jsx("div", { className: "o-compound-editor-cell", "data-part": p, children: _jsx(Field, { label: word, required: req(p), children: lines
212
- ? _jsx(Input, { size: "sm", multiline: true, className: "o-compound-editor-text", "aria-required": req(p) || undefined, value: shown, placeholder: word, autofill: false, onChange: (e) => change(e.target.value) })
213
- : _jsx(Input, { size: "sm", className: "o-compound-editor-text", "aria-required": req(p) || undefined, value: shown, placeholder: word, autofill: false, onChange: (e) => change(e.target.value) }) }) }, p));
211
+ return (_jsx("div", { className: "o-compound-editor-cell", "data-slot": "vk-parts-field", "data-key": p, "data-part": p, children: _jsx(Field, { label: word, required: req(p), children: lines
212
+ ? _jsx(Input, { size: "sm", multiline: true, className: "o-compound-editor-text", "data-slot": "vk-parts-box", "data-key": p, "aria-required": req(p) || undefined, value: shown, placeholder: word, autofill: false, onChange: (e) => change(e.target.value) })
213
+ : _jsx(Input, { size: "sm", className: "o-compound-editor-text", "data-slot": "vk-parts-box", "data-key": p, "aria-required": req(p) || undefined, value: shown, placeholder: word, autofill: false, onChange: (e) => change(e.target.value) }) }) }, p));
214
214
  const size = onPhone ? "lg" : "sm";
215
- return (_jsx("div", { className: "o-compound-editor-cell", "data-part": p, children: _jsx(QuietField, { label: word, form: onPhone ? "phone" : "computer", required: req(p), children: lines
216
- ? _jsx(Input, { size: size, multiline: true, lines: onPhone ? 4 : 3, className: "o-compound-editor-text", "aria-required": req(p) || undefined, value: shown, autofill: false, onChange: (e) => change(e.target.value), onKeyDown: enter })
217
- : _jsx(Input, { size: size, className: "o-compound-editor-text", "aria-required": req(p) || undefined, value: shown, autofill: false, enterKeyHint: onPhone && p === lastTextOf() ? "done" : "next", onChange: (e) => change(e.target.value), onKeyDown: enter }) }) }, p));
215
+ return (_jsx("div", { className: "o-compound-editor-cell", "data-slot": "vk-parts-field", "data-key": p, "data-part": p, children: _jsx(QuietField, { label: word, form: onPhone ? "phone" : "computer", required: req(p), children: lines
216
+ ? _jsx(Input, { size: size, multiline: true, lines: onPhone ? 4 : 3, className: "o-compound-editor-text", "data-slot": "vk-parts-box", "data-key": p, "aria-required": req(p) || undefined, value: shown, autofill: false, onChange: (e) => change(e.target.value), onKeyDown: enter })
217
+ : _jsx(Input, { size: size, className: "o-compound-editor-text", "data-slot": "vk-parts-box", "data-key": p, "aria-required": req(p) || undefined, value: shown, autofill: false, enterKeyHint: onPhone && p === lastTextOf() ? "done" : "next", onChange: (e) => change(e.target.value), onKeyDown: enter }) }) }, p));
218
218
  }
219
- const countryPart = _jsx("div", { className: "o-compound-editor-cell", "data-part": "country", "data-pick": "country", children: listBox("country") }, "country");
219
+ const countryPart = _jsx("div", { className: "o-compound-editor-cell", "data-slot": "vk-parts-field", "data-key": "country", "data-part": "country", "data-pick": "country", children: listBox("country") }, "country");
220
220
  const theParts = (_jsxs("div", { className: "o-compound-editor-fields", children: [first && takesCountry && countryPart, rows.map((row) => fields
221
221
  ? _jsx("div", { className: "o-compound-editor-frow", children: row.map((p) => box(p, false)) }, row.join())
222
222
  : _jsx(PartsRow, { children: row.map((p) => box(p, false)) }, row.join())), !first && takesCountry && countryPart] }));
223
- const body = (_jsx("div", { ref: placeRoot, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "computer", ...device, "data-parts-view": "fields", role: "group", "aria-label": label, tabIndex: -1, onBlur: onBlur, onFocus: () => { settled.current = false; }, onKeyDown: onKeyDown, children: theParts }));
223
+ const body = (_jsx("div", { ref: placeRoot, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "computer", ...device, "data-parts-view": "fields", role: "group", "aria-label": label, tabIndex: -1, onBlur: onBlur, onFocus: () => { settled.current = false; }, onKeyDown: onKeyDown, children: theParts }));
224
224
  return { body, head: {} };
225
225
  }
@@ -63,8 +63,8 @@ export function useRangeParts(props, worn, wornAt) {
63
63
  onDone?.("pick");
64
64
  };
65
65
  const held = bands?.find((b) => b.low === now.low && b.high === now.high)?.key ?? null;
66
- const bandList = bands?.length ? (_jsx("div", { className: "o-compound-editor-bands", children: _jsx(Picker, { label: label, items: bands.map((b) => ({ value: b.key, label: b.label })), value: held, onValueChange: pickBand, searchShown: false, form: phone ? "phone" : "computer", draft: "shell", ...(w.picker ? { words: w.picker } : {}) }) })) : null;
67
- const clearedNote = cleared && _jsx("p", { className: "o-compound-editor-note", "data-bad": "", role: "alert", children: `This can't be empty. Closing keeps ${rangeText(value)}.` });
66
+ const bandList = bands?.length ? (_jsx("div", { className: "o-compound-editor-bands", "data-slot": "vk-parts-bands", children: _jsx(Picker, { label: label, items: bands.map((b) => ({ value: b.key, label: b.label })), value: held, onValueChange: pickBand, searchShown: false, form: phone ? "phone" : "computer", draft: "shell", ...(w.picker ? { words: w.picker } : {}) }) })) : null;
67
+ const clearedNote = cleared && _jsx("p", { className: "o-compound-editor-note", "data-slot": "vk-parts-note", "data-bad": "", role: "alert", children: `This can't be empty. Closing keeps ${rangeText(value)}.` });
68
68
  const onKeyDown = (e) => {
69
69
  if (midWord(e.nativeEvent))
70
70
  return;
@@ -83,10 +83,10 @@ export function useRangeParts(props, worn, wornAt) {
83
83
  }
84
84
  };
85
85
  const kit = { "data-parts-kind": "range", "data-parts-boxes": worn.boxes, role: "group", "aria-label": label };
86
- const note = unit && _jsx("p", { className: "o-compound-editor-note", children: unit });
87
- const boxes = (arrows, onPhone) => (_jsx(PartsRow, { children: ENDS.map(([k, name], i) => (_jsx(QuietField, { label: name, form: onPhone ? "phone" : "computer", children: _jsx(EndField, { words: numberWords, value: now[k], set: set(k), box: i === 0 ? first : undefined, phone: onPhone, arrows: arrows, format: format }) }, k))) }));
86
+ const note = unit && _jsx("p", { className: "o-compound-editor-note", "data-slot": "vk-parts-note", children: unit });
87
+ const boxes = (arrows, onPhone) => (_jsx(PartsRow, { children: ENDS.map(([k, name], i) => (_jsx(QuietField, { label: name, form: onPhone ? "phone" : "computer", "data-slot": "vk-parts-field", "data-key": k, children: _jsx(EndField, { part: k, words: numberWords, value: now[k], set: set(k), box: i === 0 ? first : undefined, phone: onPhone, arrows: arrows, format: format }) }, k))) }));
88
88
  if (phone) {
89
- const body = (_jsxs("div", { ref: root, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, onKeyDown: (e) => {
89
+ const body = (_jsxs("div", { ref: root, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "phone", ...device, onKeyDown: (e) => {
90
90
  if (e.key !== "Enter" || midWord(e.nativeEvent))
91
91
  return;
92
92
  e.preventDefault();
@@ -97,23 +97,23 @@ export function useRangeParts(props, worn, wornAt) {
97
97
  ends[1].focus({ preventScroll: true });
98
98
  else
99
99
  keep();
100
- }, children: [fields ? (_jsx(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", children: ENDS.map(([k, name], i) => (_jsx(FieldRow, { label: name, className: "o-compound-editor-card-row", labelClassName: "o-compound-editor-card-label", children: _jsx(CardEnd, { words: numberWords, value: now[k], set: set(k), box: i === 0 ? first : undefined, format: format }) }, k))) })) : boxes(false, true), note, clearedNote, bandList] }));
100
+ }, children: [fields ? (_jsx(FieldRows, { look: MIHAI_CARD, className: "o-compound-editor-card", "data-slot": "vk-parts-card", children: ENDS.map(([k, name], i) => (_jsx(FieldRow, { label: name, className: "o-compound-editor-card-row", "data-slot": "vk-parts-field", "data-key": k, labelClassName: "o-compound-editor-card-label", children: _jsx(CardEnd, { part: k, words: numberWords, value: now[k], set: set(k), box: i === 0 ? first : undefined, format: format }) }, k))) })) : boxes(false, true), note, clearedNote, bandList] }));
101
101
  if (shell)
102
102
  return { body, head: {} };
103
- return { body, head: { left: _jsx(SheetButton, { "aria-label": "Close", icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { kind: "primary", "aria-label": "Save", icon: glyph(TICK), onClick: keep }) } };
103
+ return { body, head: { left: _jsx(SheetButton, { "data-slot": "vk-editor-close", "aria-label": "Close", icon: glyph(X), onClick: leave }), right: _jsx(SheetButton, { "data-slot": "vk-editor-save", kind: "primary", "aria-label": "Save", icon: glyph(TICK), onClick: keep }) } };
104
104
  }
105
- const body = (_jsxs("div", { ref: root, className: "o-compound-editor", "data-kit": "compound-editor", ...kit, "data-parts-form": "computer", ...device, onKeyDown: onKeyDown, onBlur: shell ? undefined : (e) => blurKeeps(settled, keep)(e), onFocus: () => { settled.current = false; }, children: [fields ? (_jsx("div", { className: "o-compound-editor-pair", children: ENDS.map(([k, name], i) => (_jsxs(React.Fragment, { children: [i === 1 && _jsx("span", { className: "o-compound-editor-dash", "aria-hidden": "true", children: "\u2013" }), _jsx(Field, { label: name, children: _jsx(PairField, { words: numberWords, value: now[k], set: set(k), box: i === 0 ? first : undefined, format: format }) })] }, k))) })) : boxes(worn.arrows === "editing", false), note, clearedNote, bandList] }));
105
+ const body = (_jsxs("div", { ref: root, className: "o-compound-editor", "data-slot": "vk-parts", "data-kit": "compound-editor", ...kit, "data-parts-form": "computer", ...device, onKeyDown: onKeyDown, onBlur: shell ? undefined : (e) => blurKeeps(settled, keep)(e), onFocus: () => { settled.current = false; }, children: [fields ? (_jsx("div", { className: "o-compound-editor-pair", "data-slot": "vk-parts-pair", children: ENDS.map(([k, name], i) => (_jsxs(React.Fragment, { children: [i === 1 && _jsx("span", { className: "o-compound-editor-dash", "aria-hidden": "true", children: "\u2013" }), _jsx(Field, { label: name, "data-slot": "vk-parts-field", "data-key": k, children: _jsx(PairField, { part: k, words: numberWords, value: now[k], set: set(k), box: i === 0 ? first : undefined, format: format }) })] }, k))) })) : boxes(worn.arrows === "editing", false), note, clearedNote, bandList] }));
106
106
  return { body, head: {} };
107
107
  }
108
- function EndField({ words, value, set, box, phone, arrows, format }) {
108
+ function EndField({ part, words, value, set, box, phone, arrows, format }) {
109
109
  const root = React.useCallback((el) => box?.(el?.querySelector("input") ?? null), [box]);
110
- return _jsx(NumberField, { ref: root, words: words, size: phone ? "lg" : "sm", align: "end", steppers: arrows ? "arrows" : false, autofill: false, value: value, onValueChange: (v) => set(v), format: format });
110
+ return _jsx(NumberField, { ref: root, "data-slot": "vk-parts-box", "data-key": part, words: words, size: phone ? "lg" : "sm", align: "end", steppers: arrows ? "arrows" : false, autofill: false, value: value, onValueChange: (v) => set(v), format: format });
111
111
  }
112
- function CardEnd({ words, value, set, box, format }) {
112
+ function CardEnd({ part, words, value, set, box, format }) {
113
113
  const root = React.useCallback((el) => box?.(el?.querySelector("input") ?? null), [box]);
114
- return _jsx(NumberField, { ref: root, words: words, chrome: "bare", autofill: false, value: value, onValueChange: (v) => set(v), format: format });
114
+ return _jsx(NumberField, { ref: root, "data-slot": "vk-parts-box", "data-key": part, words: words, chrome: "bare", autofill: false, value: value, onValueChange: (v) => set(v), format: format });
115
115
  }
116
- function PairField({ words, value, set, box, format }) {
116
+ function PairField({ part, words, value, set, box, format }) {
117
117
  const root = React.useCallback((el) => box?.(el?.querySelector("input") ?? null), [box]);
118
- return _jsx(NumberField, { ref: root, words: words, size: "sm", steppers: false, autofill: false, value: value, onValueChange: (v) => set(v), format: format });
118
+ return _jsx(NumberField, { ref: root, "data-slot": "vk-parts-box", "data-key": part, words: words, size: "sm", steppers: false, autofill: false, value: value, onValueChange: (v) => set(v), format: format });
119
119
  }
@@ -1,11 +1,13 @@
1
1
  import * as React from "react";
2
2
  import type { FieldRowsLook } from "../field/looks.js";
3
3
  /** One part: its quiet label over its control, the Field's. */
4
- export declare function QuietField({ label, form, required, children }: {
4
+ export declare function QuietField({ label, form, required, children, ...part }: {
5
5
  label: string;
6
6
  form: "computer" | "phone";
7
7
  required?: boolean;
8
8
  children: React.ReactNode;
9
+ "data-slot"?: string;
10
+ "data-key"?: string;
9
11
  }): import("react/jsx-runtime").JSX.Element;
10
12
  /** Two parts side by side; one alone spans the width. */
11
13
  export declare function PartsRow({ children }: {
@@ -2,8 +2,8 @@
2
2
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import * as React from "react";
4
4
  import { Field } from "../field/field.js";
5
- export function QuietField({ label, form, required, children }) {
6
- return _jsx(Field, { label: label, quietLabel: true, form: form, required: required, children: children });
5
+ export function QuietField({ label, form, required, children, ...part }) {
6
+ return _jsx(Field, { label: label, quietLabel: true, form: form, required: required, ...part, children: children });
7
7
  }
8
8
  export function PartsRow({ children }) {
9
9
  const n = React.Children.toArray(children).filter(Boolean).length;
@@ -1,12 +1,16 @@
1
1
  import { MapButton } from "./button/map-button.js";
2
+ import { MapAppIcon } from "./glyphs/glyphs.js";
3
+ import { MapMarkdown } from "./markdown/map-markdown.js";
2
4
  import { MapTooltip } from "./tooltip/map-tooltip.js";
3
5
  import { MapPopover } from "./popover/map-popover.js";
4
6
  import { MapSheet } from "./sheet/map-sheet.js";
5
7
  import { MapCheckbox } from "./checkbox/map-checkbox.js";
6
8
  import { MapInput } from "./input/map-input.js";
7
9
  import { MapMenu } from "./menu/map-menu.js";
10
+ import { MapSelect } from "./select/map-select.js";
8
11
  import { MapSortBody } from "./sort-editor/map-sort-body.js";
9
12
  import { MapViewsListBody } from "./views-list/map-views-list-body.js";
13
+ import { MapViewMenu } from "./views-list/map-view-menu.js";
10
14
  import { MapFilterBody, MapFilterPartBody } from "./filter-editor/map-filter-body.js";
11
15
  import { MapGroupBody } from "./group-editor/map-group-body.js";
12
16
  import { MapCustomizeBody } from "./customize/map-customize-body.js";
@@ -25,14 +29,18 @@ import { MapValuesBody } from "./values-editor/map-values-body.js";
25
29
  import { MapLinksBody } from "./links-editor/map-links-body.js";
26
30
  export declare const CONTROLS: {
27
31
  Button: typeof MapButton;
32
+ AppIcon: typeof MapAppIcon;
33
+ Markdown: typeof MapMarkdown;
28
34
  Tooltip: typeof MapTooltip;
29
35
  Popover: typeof MapPopover;
30
36
  Sheet: typeof MapSheet;
31
37
  Input: typeof MapInput;
32
38
  Checkbox: typeof MapCheckbox;
33
39
  Menu: typeof MapMenu;
40
+ Select: typeof MapSelect;
34
41
  SortBody: typeof MapSortBody;
35
42
  ViewsListBody: typeof MapViewsListBody;
43
+ ViewMenu: typeof MapViewMenu;
36
44
  FilterBody: typeof MapFilterBody;
37
45
  FilterPartBody: typeof MapFilterPartBody;
38
46
  GroupBody: typeof MapGroupBody;