viewkitjs 0.28.0 → 0.30.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 (530) hide show
  1. package/CHANGELOG.md +218 -0
  2. package/MIGRATION.md +181 -11
  3. package/fields/dist/derived.d.ts +2 -1
  4. package/fields/dist/derived.js +9 -3
  5. package/fields/dist/entities.js +41 -3
  6. package/fields/dist/index.d.ts +1 -1
  7. package/fields/dist/index.js +1 -1
  8. package/fields/dist/messages.d.ts +8 -2
  9. package/fields/dist/messages.js +3 -0
  10. package/fields/dist/range.d.ts +6 -0
  11. package/fields/dist/range.js +8 -0
  12. package/fields/dist/registry.js +11 -1
  13. package/fields/dist/spec-changes.js +1 -0
  14. package/fields/dist/types.d.ts +23 -1
  15. package/fields/docs/guides/derived-fields.md +7 -5
  16. package/fields/docs/guides/field-types.md +2 -2
  17. package/fields/docs/guides/the-index.md +1 -1
  18. package/fields/docs/reference/fields.md +3 -1
  19. package/fields/docs/reference/types.md +3 -1
  20. package/fields/skills/viewkit/SKILL.md +1 -1
  21. package/package.json +2 -1
  22. package/postgres/dist/definitions/build.js +29 -5
  23. package/postgres/dist/definitions/label.d.ts +7 -0
  24. package/postgres/dist/definitions/label.js +9 -1
  25. package/postgres/dist/definitions/lookup.js +6 -2
  26. package/postgres/dist/definitions/place.d.ts +6 -3
  27. package/postgres/dist/definitions/rollup.js +5 -1
  28. package/postgres/dist/definitions/storage.d.ts +15 -0
  29. package/postgres/dist/definitions/storage.js +52 -1
  30. package/postgres/dist/definitions/stored.js +21 -0
  31. package/postgres/dist/phone.d.ts +13 -1
  32. package/postgres/dist/phone.js +23 -3
  33. package/postgres/dist/search-indexes.d.ts +6 -1
  34. package/postgres/dist/search-indexes.js +71 -25
  35. package/postgres/dist/search.js +3 -3
  36. package/postgres/docs/guides/definitions.md +22 -5
  37. package/postgres/docs/guides/field-map.md +5 -4
  38. package/postgres/docs/reference/definitions.md +3 -3
  39. package/postgres/docs/reference/postgres.md +1 -1
  40. package/views/dist/cells/cell-format.d.ts +2 -2
  41. package/views/dist/cells/cell-format.js +2 -2
  42. package/views/dist/cells/cell-values.js +9 -12
  43. package/views/dist/contract.d.ts +161 -18
  44. package/views/dist/contract.js +170 -28
  45. package/views/dist/controls/bulk-bar/bulk-bar-of.d.ts +66 -0
  46. package/views/dist/controls/bulk-bar/bulk-bar-of.js +22 -0
  47. package/views/dist/controls/bulk-bar/bulk-bar.d.ts +40 -0
  48. package/views/dist/controls/bulk-bar/bulk-bar.js +278 -0
  49. package/views/dist/controls/bulk-bar/looks.d.ts +10 -0
  50. package/views/dist/controls/bulk-bar/looks.js +14 -0
  51. package/views/dist/controls/bulk-bar/map-selection-bar.d.ts +19 -0
  52. package/views/dist/controls/bulk-bar/map-selection-bar.js +57 -0
  53. package/views/dist/controls/bulk-bar/tokens.d.ts +136 -0
  54. package/views/dist/controls/bulk-bar/tokens.js +36 -0
  55. package/views/dist/controls/bulk-bar/words.d.ts +50 -0
  56. package/views/dist/controls/bulk-bar/words.js +19 -0
  57. package/views/dist/controls/bulk-bar.css +96 -0
  58. package/views/dist/controls/button/button.js +3 -1
  59. package/views/dist/controls/button.css +5 -4
  60. package/views/dist/controls/checkbox/checkbox.js +3 -1
  61. package/views/dist/controls/checkbox.css +1 -1
  62. package/views/dist/controls/choice/tokens.d.ts +79 -0
  63. package/views/dist/controls/choice/tokens.js +22 -0
  64. package/views/dist/controls/choice.css +31 -0
  65. package/views/dist/controls/compound-editor/looks.js +1 -1
  66. package/views/dist/controls/controls.d.ts +8 -0
  67. package/views/dist/controls/controls.js +8 -0
  68. package/views/dist/controls/customize/customize.d.ts +176 -0
  69. package/views/dist/controls/customize/customize.js +348 -0
  70. package/views/dist/controls/customize/glide.d.ts +10 -0
  71. package/views/dist/controls/customize/glide.js +55 -0
  72. package/views/dist/controls/customize/looks.d.ts +13 -0
  73. package/views/dist/controls/customize/looks.js +11 -0
  74. package/views/dist/controls/customize/map-customize-body.d.ts +15 -0
  75. package/views/dist/controls/customize/map-customize-body.js +195 -0
  76. package/views/dist/controls/customize/map-ranges.d.ts +23 -0
  77. package/views/dist/controls/customize/map-ranges.js +41 -0
  78. package/views/dist/controls/customize/rules.d.ts +39 -0
  79. package/views/dist/controls/customize/rules.js +21 -0
  80. package/views/dist/controls/customize/tokens.d.ts +40 -0
  81. package/views/dist/controls/customize/tokens.js +12 -0
  82. package/views/dist/controls/customize/words.d.ts +65 -0
  83. package/views/dist/controls/customize/words.js +42 -0
  84. package/views/dist/controls/customize.css +57 -0
  85. package/views/dist/controls/date-editor/looks.js +1 -1
  86. package/views/dist/controls/filter-editor/block.d.ts +31 -0
  87. package/views/dist/controls/filter-editor/block.js +27 -0
  88. package/views/dist/controls/filter-editor/filter-editor.d.ts +4 -0
  89. package/views/dist/controls/filter-editor/filter-editor.js +86 -43
  90. package/views/dist/controls/filter-editor/how.d.ts +1 -1
  91. package/views/dist/controls/filter-editor/how.js +1 -0
  92. package/views/dist/controls/filter-editor/map-filter-body.d.ts +16 -1
  93. package/views/dist/controls/filter-editor/map-filter-body.js +39 -13
  94. package/views/dist/controls/filter-editor/map-rules.d.ts +27 -11
  95. package/views/dist/controls/filter-editor/map-rules.js +73 -42
  96. package/views/dist/controls/filter-editor/rules.d.ts +42 -5
  97. package/views/dist/controls/filter-editor/rules.js +55 -2
  98. package/views/dist/controls/filter-editor/words.d.ts +15 -0
  99. package/views/dist/controls/filter-editor/words.js +6 -0
  100. package/views/dist/controls/filter-editor.css +18 -0
  101. package/views/dist/controls/index.d.ts +33 -9
  102. package/views/dist/controls/index.js +32 -9
  103. package/views/dist/controls/inline-input/looks.js +1 -1
  104. package/views/dist/controls/input/input.js +10 -4
  105. package/views/dist/controls/internal/phone.d.ts +5 -4
  106. package/views/dist/controls/internal/phone.js +7 -7
  107. package/views/dist/controls/internal/scroll.js +5 -1
  108. package/views/dist/controls/internal/typed-run.d.ts +2 -0
  109. package/views/dist/controls/internal/typed-run.js +5 -0
  110. package/views/dist/controls/menu/map-menu.js +2 -2
  111. package/views/dist/controls/menu-list/menu-list.d.ts +16 -1
  112. package/views/dist/controls/menu-list/menu-list.js +26 -8
  113. package/views/dist/controls/menu-list.css +8 -0
  114. package/views/dist/controls/number-editor/looks.js +1 -1
  115. package/views/dist/controls/option/option.js +3 -1
  116. package/views/dist/controls/option.css +1 -1
  117. package/views/dist/controls/pane/pane.d.ts +4 -0
  118. package/views/dist/controls/pane/pane.js +2 -1
  119. package/views/dist/controls/picker/looks.js +1 -1
  120. package/views/dist/controls/picker/map-picker.d.ts +6 -2
  121. package/views/dist/controls/picker/map-picker.js +4 -2
  122. package/views/dist/controls/picker/picker.d.ts +7 -0
  123. package/views/dist/controls/picker/picker.js +57 -8
  124. package/views/dist/controls/popover/map-popover.d.ts +1 -1
  125. package/views/dist/controls/popover/map-popover.js +2 -2
  126. package/views/dist/controls/popover/popover.js +2 -1
  127. package/views/dist/controls/popover.css +3 -0
  128. package/views/dist/controls/ports-host/map-ports-host.d.ts +7 -0
  129. package/views/dist/controls/ports-host/map-ports-host.js +43 -0
  130. package/views/dist/controls/press/tokens.d.ts +8 -0
  131. package/views/dist/controls/press/tokens.js +4 -0
  132. package/views/dist/controls/press.css +44 -0
  133. package/views/dist/controls/quick-filters/looks.d.ts +11 -0
  134. package/views/dist/controls/quick-filters/looks.js +9 -0
  135. package/views/dist/controls/quick-filters/map-quick-filters-body.d.ts +31 -0
  136. package/views/dist/controls/quick-filters/map-quick-filters-body.js +59 -0
  137. package/views/dist/controls/quick-filters/quick-filters.d.ts +37 -0
  138. package/views/dist/controls/quick-filters/quick-filters.js +89 -0
  139. package/views/dist/controls/quick-filters/reminder.d.ts +18 -0
  140. package/views/dist/controls/quick-filters/reminder.js +41 -0
  141. package/views/dist/controls/quick-filters/rules.d.ts +89 -0
  142. package/views/dist/controls/quick-filters/rules.js +52 -0
  143. package/views/dist/controls/quick-filters/tokens.d.ts +112 -0
  144. package/views/dist/controls/quick-filters/tokens.js +30 -0
  145. package/views/dist/controls/quick-filters/words.d.ts +25 -0
  146. package/views/dist/controls/quick-filters/words.js +13 -0
  147. package/views/dist/controls/quick-filters.css +118 -0
  148. package/views/dist/controls/sheet/bottom-sheet.d.ts +9 -4
  149. package/views/dist/controls/sheet/bottom-sheet.js +4 -4
  150. package/views/dist/controls/sheet/map-sheet.d.ts +4 -1
  151. package/views/dist/controls/sheet/map-sheet.js +19 -6
  152. package/views/dist/controls/sheet/sheet-parts.d.ts +10 -0
  153. package/views/dist/controls/sheet/sheet-parts.js +2 -0
  154. package/views/dist/controls/switch-row/switch-row.d.ts +15 -0
  155. package/views/dist/controls/switch-row/switch-row.js +9 -0
  156. package/views/dist/controls/switch-row/tokens.d.ts +51 -0
  157. package/views/dist/controls/switch-row/tokens.js +15 -0
  158. package/views/dist/controls/switch-row.css +39 -0
  159. package/views/dist/controls/switch.css +1 -1
  160. package/views/dist/controls/tag/tag.js +3 -1
  161. package/views/dist/controls/tag-field/tag-field.d.ts +20 -0
  162. package/views/dist/controls/tag-field/tag-field.js +19 -0
  163. package/views/dist/controls/tag-field/tokens.d.ts +7 -0
  164. package/views/dist/controls/tag-field/tokens.js +4 -0
  165. package/views/dist/controls/tag-field.css +13 -0
  166. package/views/dist/controls/text-editor/looks.js +1 -1
  167. package/views/dist/controls/text-editor/map-text-body.d.ts +1 -1
  168. package/views/dist/controls/text-editor/map-text-body.js +2 -2
  169. package/views/dist/controls/text-editor/text-editor.d.ts +3 -0
  170. package/views/dist/controls/text-editor/text-editor.js +17 -7
  171. package/views/dist/controls/text-editor.css +11 -0
  172. package/views/dist/controls/toast/toast.d.ts +5 -1
  173. package/views/dist/controls/toast/toast.js +5 -3
  174. package/views/dist/controls/tokens.js +18 -0
  175. package/views/dist/controls/toolbar/keys.d.ts +3 -0
  176. package/views/dist/controls/toolbar/keys.js +11 -0
  177. package/views/dist/controls/toolbar/looks.d.ts +10 -0
  178. package/views/dist/controls/toolbar/looks.js +40 -0
  179. package/views/dist/controls/toolbar/tokens.d.ts +28 -0
  180. package/views/dist/controls/toolbar/tokens.js +9 -0
  181. package/views/dist/controls/toolbar/toolbar.d.ts +111 -0
  182. package/views/dist/controls/toolbar/toolbar.js +370 -0
  183. package/views/dist/controls/toolbar/words.d.ts +28 -0
  184. package/views/dist/controls/toolbar/words.js +17 -0
  185. package/views/dist/controls/toolbar-button/looks.d.ts +4 -0
  186. package/views/dist/controls/toolbar-button/looks.js +21 -0
  187. package/views/dist/controls/toolbar-button/tokens.d.ts +103 -0
  188. package/views/dist/controls/toolbar-button/tokens.js +28 -0
  189. package/views/dist/controls/toolbar-button/toolbar-button.d.ts +66 -0
  190. package/views/dist/controls/toolbar-button/toolbar-button.js +51 -0
  191. package/views/dist/controls/toolbar-button.css +75 -0
  192. package/views/dist/controls/toolbar.css +65 -0
  193. package/views/dist/controls/tooltip/map-tooltip.d.ts +1 -1
  194. package/views/dist/controls/tooltip/map-tooltip.js +2 -2
  195. package/views/dist/controls/tooltip/tooltip.d.ts +3 -1
  196. package/views/dist/controls/tooltip/tooltip.js +2 -2
  197. package/views/dist/controls/values-editor/looks.js +1 -1
  198. package/views/dist/controls/values-editor/values.js +6 -2
  199. package/views/dist/controls/views-list/map-views-list-body.d.ts +4 -1
  200. package/views/dist/controls/views-list/map-views-list-body.js +128 -4
  201. package/views/dist/controls/views-list/rules.d.ts +26 -0
  202. package/views/dist/controls/views-list/rules.js +63 -0
  203. package/views/dist/controls/views-list/view-menu.d.ts +84 -0
  204. package/views/dist/controls/views-list/view-menu.js +201 -0
  205. package/views/dist/controls/views-list/views-list.d.ts +8 -1
  206. package/views/dist/controls/views-list/views-list.js +18 -3
  207. package/views/dist/controls/views-list/words.d.ts +54 -0
  208. package/views/dist/controls/views-list/words.js +10 -1
  209. package/views/dist/controls/views-list.css +5 -1
  210. package/views/dist/display/date.js +3 -3
  211. package/views/dist/display/format.d.ts +6 -0
  212. package/views/dist/display/format.js +3 -0
  213. package/views/dist/display/index.d.ts +1 -1
  214. package/views/dist/display/index.js +1 -1
  215. package/views/dist/display/options.d.ts +1 -1
  216. package/views/dist/display/range.d.ts +2 -1
  217. package/views/dist/display/range.js +4 -1
  218. package/views/dist/display/rich-text.js +0 -1
  219. package/views/dist/editors/ChipsEditor.d.ts +4 -5
  220. package/views/dist/editors/ChipsEditor.js +12 -78
  221. package/views/dist/editors/DateEditor.d.ts +12 -16
  222. package/views/dist/editors/DateEditor.js +40 -191
  223. package/views/dist/editors/EditorPanel.d.ts +2 -6
  224. package/views/dist/editors/EditorPanel.js +2 -2
  225. package/views/dist/editors/LocationEditor.d.ts +11 -19
  226. package/views/dist/editors/LocationEditor.js +19 -211
  227. package/views/dist/editors/NameEditor.d.ts +8 -16
  228. package/views/dist/editors/NameEditor.js +11 -100
  229. package/views/dist/editors/NumberEditor.d.ts +14 -21
  230. package/views/dist/editors/NumberEditor.js +22 -49
  231. package/views/dist/editors/RangeEditor.d.ts +9 -33
  232. package/views/dist/editors/RangeEditor.js +12 -97
  233. package/views/dist/editors/RelationEditor.d.ts +6 -9
  234. package/views/dist/editors/RelationEditor.js +11 -30
  235. package/views/dist/editors/RelationSetEditor.d.ts +13 -24
  236. package/views/dist/editors/RelationSetEditor.js +33 -101
  237. package/views/dist/editors/SelectEditor.d.ts +15 -17
  238. package/views/dist/editors/SelectEditor.js +15 -94
  239. package/views/dist/editors/TextEditor.d.ts +23 -26
  240. package/views/dist/editors/TextEditor.js +11 -48
  241. package/views/dist/editors/ValueListEditor.d.ts +14 -23
  242. package/views/dist/editors/ValueListEditor.js +16 -202
  243. package/views/dist/editors/body-panel.d.ts +13 -7
  244. package/views/dist/editors/body-panel.js +3 -7
  245. package/views/dist/editors/edit-cores.d.ts +15 -15
  246. package/views/dist/editors/edit-cores.js +14 -14
  247. package/views/dist/editors/number-body.d.ts +1 -1
  248. package/views/dist/editors/number-step.d.ts +0 -34
  249. package/views/dist/editors/number-step.js +0 -37
  250. package/views/dist/editors/option-add-flow.d.ts +1 -13
  251. package/views/dist/editors/option-add-flow.js +0 -22
  252. package/views/dist/editors/relation-links-body.d.ts +2 -3
  253. package/views/dist/editors/relation-picker.d.ts +13 -3
  254. package/views/dist/editors/relation-source.d.ts +0 -22
  255. package/views/dist/editors/relation-source.js +0 -21
  256. package/views/dist/field-row/FieldRow.js +5 -6
  257. package/views/dist/field-row/FieldRowLane.js +0 -1
  258. package/views/dist/field-row/editors/RowChipsEditor.js +2 -2
  259. package/views/dist/field-row/editors/RowDateEditor.d.ts +2 -2
  260. package/views/dist/field-row/editors/RowDateEditor.js +2 -2
  261. package/views/dist/field-row/editors/RowNameEditor.d.ts +2 -5
  262. package/views/dist/field-row/editors/RowNameEditor.js +7 -12
  263. package/views/dist/field-row/editors/RowNumberEditor.d.ts +1 -1
  264. package/views/dist/field-row/editors/RowNumberEditor.js +4 -4
  265. package/views/dist/field-row/editors/RowPlaceEditor.js +3 -3
  266. package/views/dist/field-row/editors/RowRangeEditor.d.ts +2 -5
  267. package/views/dist/field-row/editors/RowRangeEditor.js +7 -14
  268. package/views/dist/field-row/editors/RowRelationEditor.js +3 -3
  269. package/views/dist/field-row/editors/RowSelectEditor.js +2 -2
  270. package/views/dist/field-row/editors/RowTextEditor.d.ts +1 -1
  271. package/views/dist/field-row/editors/RowTextEditor.js +3 -4
  272. package/views/dist/field-row/editors/RowValueListEditor.js +5 -5
  273. package/views/dist/field-row/field-row-button.d.ts +6 -9
  274. package/views/dist/field-row/field-row-button.js +1 -6
  275. package/views/dist/field-row/field-row-checkbox.d.ts +1 -1
  276. package/views/dist/field-row/row-target.d.ts +0 -7
  277. package/views/dist/field-row/row-target.js +0 -2
  278. package/views/dist/grid/chrome/GridAddColumn.d.ts +2 -1
  279. package/views/dist/grid/chrome/GridAddColumn.js +8 -66
  280. package/views/dist/grid/chrome/GridAggregateMenu.d.ts +5 -7
  281. package/views/dist/grid/chrome/GridAggregateMenu.js +20 -39
  282. package/views/dist/grid/chrome/GridCellEditors.d.ts +2 -2
  283. package/views/dist/grid/chrome/GridCellEditors.js +12 -12
  284. package/views/dist/grid/chrome/GridChipsEditor.js +3 -3
  285. package/views/dist/grid/chrome/GridColumnMenu.d.ts +11 -12
  286. package/views/dist/grid/chrome/GridColumnMenu.js +32 -93
  287. package/views/dist/grid/chrome/GridDateEditor.d.ts +6 -6
  288. package/views/dist/grid/chrome/GridDateEditor.js +3 -3
  289. package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -6
  290. package/views/dist/grid/chrome/GridGroupMenu.js +21 -62
  291. package/views/dist/grid/chrome/GridHeader.d.ts +1 -2
  292. package/views/dist/grid/chrome/GridHeader.js +3 -2
  293. package/views/dist/grid/chrome/GridLongTextEditor.d.ts +17 -38
  294. package/views/dist/grid/chrome/GridLongTextEditor.js +6 -7
  295. package/views/dist/grid/chrome/GridNameEditor.js +4 -4
  296. package/views/dist/grid/chrome/GridNumberEditor.d.ts +4 -5
  297. package/views/dist/grid/chrome/GridNumberEditor.js +5 -6
  298. package/views/dist/grid/chrome/GridPlaceEditor.d.ts +2 -5
  299. package/views/dist/grid/chrome/GridPlaceEditor.js +5 -5
  300. package/views/dist/grid/chrome/GridRangeEditor.d.ts +6 -12
  301. package/views/dist/grid/chrome/GridRangeEditor.js +7 -15
  302. package/views/dist/grid/chrome/GridRelationEditor.js +5 -5
  303. package/views/dist/grid/chrome/GridRow.js +0 -3
  304. package/views/dist/grid/chrome/GridRowActions.d.ts +1 -1
  305. package/views/dist/grid/chrome/GridRowActions.js +0 -5
  306. package/views/dist/grid/chrome/GridRowCells.js +11 -7
  307. package/views/dist/grid/chrome/GridSelectEditor.js +3 -3
  308. package/views/dist/grid/chrome/GridStructure.js +0 -1
  309. package/views/dist/grid/chrome/GridTable.js +1 -1
  310. package/views/dist/grid/chrome/GridTextEditor.d.ts +5 -7
  311. package/views/dist/grid/chrome/GridTextEditor.js +5 -18
  312. package/views/dist/grid/chrome/GridValueListEditor.js +4 -4
  313. package/views/dist/grid/chrome/grid-body-place.d.ts +2 -3
  314. package/views/dist/grid/chrome/grid-body-place.js +4 -8
  315. package/views/dist/grid/chrome/grid-button.d.ts +7 -10
  316. package/views/dist/grid/chrome/grid-button.js +1 -6
  317. package/views/dist/grid/chrome/grid-cell-classes.js +1 -1
  318. package/views/dist/grid/chrome/grid-column-menu-items.d.ts +4 -4
  319. package/views/dist/grid/chrome/grid-column-menu-items.js +10 -6
  320. package/views/dist/grid/chrome/grid-editor-layer.d.ts +5 -1
  321. package/views/dist/grid/chrome/grid-editor-layer.js +1 -0
  322. package/views/dist/grid/chrome/grid-fitted-box.d.ts +7 -1
  323. package/views/dist/grid/chrome/grid-fitted-box.js +4 -4
  324. package/views/dist/grid/chrome/grid-group-menu-parts.d.ts +5 -9
  325. package/views/dist/grid/chrome/grid-group-menu-parts.js +1 -3
  326. package/views/dist/grid/chrome/grid-hover.js +0 -1
  327. package/views/dist/grid/chrome/grid-menu-focus.d.ts +7 -31
  328. package/views/dist/grid/chrome/grid-menu-focus.js +7 -47
  329. package/views/dist/grid/chrome/grid-styles.d.ts +0 -3
  330. package/views/dist/grid/chrome/grid-styles.js +0 -1
  331. package/views/dist/grid/chrome/grid-table-props.d.ts +6 -10
  332. package/views/dist/grid/chrome/useGridTableInteractionModel.js +2 -4
  333. package/views/dist/grid/core/clipboard-model.js +9 -4
  334. package/views/dist/grid/core/editing-controller.d.ts +2 -1
  335. package/views/dist/grid/core/editing-controller.js +10 -2
  336. package/views/dist/grid/core/refusal-sentence.d.ts +3 -0
  337. package/views/dist/grid/core/refusal-sentence.js +2 -2
  338. package/views/dist/grid/core/write-states.d.ts +3 -1
  339. package/views/dist/grid/core/write-states.js +6 -2
  340. package/views/dist/grid/grid.css +240 -0
  341. package/views/dist/grid/looks.d.ts +5 -1
  342. package/views/dist/grid/looks.js +20 -12
  343. package/views/dist/grid-tokens.d.ts +109 -0
  344. package/views/dist/grid-tokens.js +29 -0
  345. package/views/dist/looks/index.d.ts +5 -0
  346. package/views/dist/looks/index.js +5 -0
  347. package/views/dist/looks/pieces.js +10 -0
  348. package/views/dist/model/body-frame.d.ts +0 -32
  349. package/views/dist/model/body-frame.js +1 -15
  350. package/views/dist/model/column-capabilities.d.ts +2 -0
  351. package/views/dist/model/column-filters.d.ts +2 -1
  352. package/views/dist/model/column-from.js +2 -2
  353. package/views/dist/model/column-inspect.d.ts +5 -5
  354. package/views/dist/model/column-inspect.js +2 -2
  355. package/views/dist/model/relation-filters.d.ts +2 -0
  356. package/views/dist/panels/customize-body.d.ts +1 -10
  357. package/views/dist/panels/customize-body.js +0 -3
  358. package/views/dist/panels/filter/MenuSelect.js +0 -5
  359. package/views/dist/panels/filter/RangeFilterBody.js +0 -1
  360. package/views/dist/panels/filter/details.d.ts +1 -5
  361. package/views/dist/panels/filter/details.js +0 -13
  362. package/views/dist/panels/filter/filter-list.d.ts +0 -1
  363. package/views/dist/panels/filter/filter-list.js +1 -1
  364. package/views/dist/panels/index.d.ts +2 -2
  365. package/views/dist/panels/index.js +2 -2
  366. package/views/dist/panels/labels.d.ts +4 -0
  367. package/views/dist/panels/labels.js +8 -0
  368. package/views/dist/panels/model.d.ts +10 -2
  369. package/views/dist/panels/panel-button.d.ts +10 -12
  370. package/views/dist/panels/panel-button.js +1 -6
  371. package/views/dist/panels/quick/model.d.ts +4 -0
  372. package/views/dist/panels/react/chrome.d.ts +0 -17
  373. package/views/dist/panels/react/chrome.js +0 -8
  374. package/views/dist/panels/react/customize-body.d.ts +14 -12
  375. package/views/dist/panels/react/customize-body.js +93 -19
  376. package/views/dist/panels/react/customize.d.ts +16 -12
  377. package/views/dist/panels/react/customize.js +4 -110
  378. package/views/dist/panels/react/filter/FilterEditor.d.ts +4 -18
  379. package/views/dist/panels/react/filter/FilterEditor.js +6 -330
  380. package/views/dist/panels/react/filter/FilterFieldList.d.ts +1 -1
  381. package/views/dist/panels/react/filter/FilterFieldList.js +27 -51
  382. package/views/dist/panels/react/filter/PhoneFilterEditor.d.ts +1 -11
  383. package/views/dist/panels/react/filter/PhoneFilterEditor.js +8 -144
  384. package/views/dist/panels/react/filter/editor-ctx.d.ts +1 -33
  385. package/views/dist/panels/react/filter/editor-ctx.js +5 -33
  386. package/views/dist/panels/react/filter/filter-body.js +5 -2
  387. package/views/dist/panels/react/filter/filter-part-body.d.ts +3 -6
  388. package/views/dist/panels/react/filter/filter-part-body.js +0 -5
  389. package/views/dist/panels/react/filter/rule-writes.d.ts +1 -26
  390. package/views/dist/panels/react/filter/rule-writes.js +4 -95
  391. package/views/dist/panels/react/order-details.d.ts +1 -26
  392. package/views/dist/panels/react/order-details.js +3 -69
  393. package/views/dist/panels/react/panel-header.js +0 -1
  394. package/views/dist/panels/react/panel-step.d.ts +3 -0
  395. package/views/dist/panels/react/panel-step.js +2 -1
  396. package/views/dist/panels/react/popover.d.ts +4 -7
  397. package/views/dist/panels/react/quick/QuickFiltersPanel.d.ts +2 -4
  398. package/views/dist/panels/react/quick/QuickFiltersPanel.js +16 -136
  399. package/views/dist/panels/react/sort/SortEditor.d.ts +4 -4
  400. package/views/dist/panels/react/sort/SortEditor.js +8 -245
  401. package/views/dist/panels/react/sort/SortFieldList.d.ts +1 -1
  402. package/views/dist/panels/react/sort/SortFieldList.js +11 -25
  403. package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +13 -3
  404. package/views/dist/panels/react/toolbar/ReadyToolbar.js +10 -3
  405. package/views/dist/panels/react/toolbar/Toolbar.js +1 -1
  406. package/views/dist/panels/react/toolbar/ToolbarAdvancedFilters.js +2 -2
  407. package/views/dist/panels/react/toolbar/ToolbarAsideFilter.js +2 -2
  408. package/views/dist/panels/react/toolbar/ToolbarBarFilter.js +16 -18
  409. package/views/dist/panels/react/toolbar/ToolbarFilterAdd.js +2 -1
  410. package/views/dist/panels/react/toolbar/ToolbarFilters.js +3 -3
  411. package/views/dist/panels/react/toolbar/ToolbarOptions.d.ts +12 -4
  412. package/views/dist/panels/react/toolbar/ToolbarOptions.js +6 -2
  413. package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +1 -1
  414. package/views/dist/panels/react/toolbar/ToolbarSave.js +0 -4
  415. package/views/dist/panels/react/toolbar/ToolbarSearch.js +0 -1
  416. package/views/dist/panels/react/toolbar/ToolbarSortPill.js +3 -3
  417. package/views/dist/panels/react/view-actions.js +0 -1
  418. package/views/dist/panels/react/views-row/FoldingViewRow.js +2 -5
  419. package/views/dist/panels/react/views-row/ViewCreatePill.js +0 -1
  420. package/views/dist/panels/react/views-row/ViewPicker.js +30 -45
  421. package/views/dist/panels/react/views-row/ViewPickerRow.js +0 -2
  422. package/views/dist/panels/react/views-row/menu-classes.d.ts +0 -4
  423. package/views/dist/panels/react/views-row/menu-classes.js +0 -2
  424. package/views/dist/panels/react.d.ts +5 -12
  425. package/views/dist/panels/react.js +5 -12
  426. package/views/dist/panels/settings/filter-groups.d.ts +3 -0
  427. package/views/dist/panels/settings/filter-groups.js +40 -9
  428. package/views/dist/panels/settings/filters.d.ts +5 -0
  429. package/views/dist/panels/settings/filters.js +12 -6
  430. package/views/dist/panels/views-row/model.d.ts +10 -1
  431. package/views/dist/provider/ViewsProvider.d.ts +2 -46
  432. package/views/dist/provider/ViewsProvider.js +31 -27
  433. package/views/dist/provider/components.d.ts +295 -107
  434. package/views/dist/provider/context.d.ts +7 -21
  435. package/views/dist/provider/missing-slot.d.ts +3 -7
  436. package/views/dist/provider/missing-slot.js +2 -9
  437. package/views/dist/provider/ports.d.ts +18 -6
  438. package/views/dist/provider/ports.js +2 -1
  439. package/views/dist/react.d.ts +2 -3
  440. package/views/dist/react.js +1 -1
  441. package/views/dist/selection/SelectionBar.d.ts +2 -16
  442. package/views/dist/selection/SelectionBar.js +6 -4
  443. package/views/dist/selection/bar-props.d.ts +26 -0
  444. package/views/dist/selection/bar-props.js +1 -0
  445. package/views/dist/selection/index.d.ts +1 -1
  446. package/views/dist/selection/verbs.d.ts +32 -5
  447. package/views/dist/styles.css +694 -191
  448. package/views/dist/styles.unlayered.css +691 -188
  449. package/views/docs/contract.md +133 -130
  450. package/views/docs/controls/bulk-bar.md +41 -0
  451. package/views/docs/controls/choice.md +25 -0
  452. package/views/docs/controls/customize.md +17 -0
  453. package/views/docs/controls/popover.md +2 -0
  454. package/views/docs/controls/press.md +9 -0
  455. package/views/docs/controls/quick-filters.md +35 -0
  456. package/views/docs/controls/radio.md +1 -1
  457. package/views/docs/controls/switch-row.md +18 -0
  458. package/views/docs/controls/tag-field.md +7 -0
  459. package/views/docs/controls/toolbar-button.md +31 -0
  460. package/views/docs/controls/toolbar.md +14 -0
  461. package/views/docs/getting-started.md +222 -2
  462. package/views/docs/guides/atoms.md +2 -2
  463. package/views/docs/guides/cells.md +224 -4
  464. package/views/docs/guides/display.md +3 -3
  465. package/views/docs/guides/editors.md +235 -20
  466. package/views/docs/guides/looks.md +8 -2
  467. package/views/docs/guides/ports.md +7 -7
  468. package/views/docs/guides/selection.md +5 -1
  469. package/views/docs/guides/the-grid.md +15 -17
  470. package/views/docs/guides/the-provider.md +9 -15
  471. package/views/docs/install.md +4 -1
  472. package/views/docs/reference/cells.md +2 -2
  473. package/views/docs/reference/controls.md +215 -21
  474. package/views/docs/reference/display.md +1 -0
  475. package/views/docs/reference/editors-chips.md +2 -2
  476. package/views/docs/reference/editors-date.md +4 -4
  477. package/views/docs/reference/editors-location.md +4 -7
  478. package/views/docs/reference/editors-name.md +3 -5
  479. package/views/docs/reference/editors-number.md +10 -10
  480. package/views/docs/reference/editors-panel.md +3 -3
  481. package/views/docs/reference/editors-range.md +3 -5
  482. package/views/docs/reference/editors-relation.md +4 -4
  483. package/views/docs/reference/editors-select.md +3 -3
  484. package/views/docs/reference/editors-text.md +3 -4
  485. package/views/docs/reference/editors-value-list.md +3 -3
  486. package/views/docs/reference/field-row.md +1 -1
  487. package/views/docs/reference/grid.md +2 -2
  488. package/views/docs/reference/looks.md +25 -11
  489. package/views/docs/reference/panels-react.md +23 -37
  490. package/views/docs/reference/panels.md +8 -6
  491. package/views/docs/reference/react.md +24 -24
  492. package/views/docs/reference/selection.md +4 -2
  493. package/views/docs/reference/views.md +12 -11
  494. package/views/skills/views/SKILL.md +2 -2
  495. package/views/dist/editors/relation-panel.d.ts +0 -69
  496. package/views/dist/editors/relation-panel.js +0 -46
  497. package/views/dist/grid/chrome/GridColumnColorSection.d.ts +0 -13
  498. package/views/dist/grid/chrome/GridColumnColorSection.js +0 -40
  499. package/views/dist/grid/chrome/GridColumnDateSection.d.ts +0 -28
  500. package/views/dist/grid/chrome/GridColumnDateSection.js +0 -23
  501. package/views/dist/grid/chrome/GridColumnDurationSection.d.ts +0 -23
  502. package/views/dist/grid/chrome/GridColumnDurationSection.js +0 -24
  503. package/views/dist/grid/chrome/GridColumnNumberSection.d.ts +0 -29
  504. package/views/dist/grid/chrome/GridColumnNumberSection.js +0 -27
  505. package/views/dist/grid/chrome/GridColumnPercentSection.d.ts +0 -16
  506. package/views/dist/grid/chrome/GridColumnPercentSection.js +0 -16
  507. package/views/dist/grid/chrome/GridColumnSortSection.d.ts +0 -38
  508. package/views/dist/grid/chrome/GridColumnSortSection.js +0 -33
  509. package/views/dist/grid/chrome/GridFlyout.d.ts +0 -44
  510. package/views/dist/grid/chrome/GridFlyout.js +0 -80
  511. package/views/dist/grid/chrome/GridMenuRow.d.ts +0 -15
  512. package/views/dist/grid/chrome/GridMenuRow.js +0 -15
  513. package/views/dist/grid/chrome/grid-menu-search.d.ts +0 -7
  514. package/views/dist/grid/chrome/grid-menu-search.js +0 -7
  515. package/views/dist/panels/react/GroupBucketsList.d.ts +0 -16
  516. package/views/dist/panels/react/GroupBucketsList.js +0 -44
  517. package/views/dist/panels/react/LayoutColumnsList.d.ts +0 -24
  518. package/views/dist/panels/react/LayoutColumnsList.js +0 -101
  519. package/views/dist/panels/react/PopoverColumnDetail.d.ts +0 -11
  520. package/views/dist/panels/react/PopoverColumnDetail.js +0 -24
  521. package/views/dist/panels/react/drag.d.ts +0 -2
  522. package/views/dist/panels/react/drag.js +0 -5
  523. package/views/dist/panels/react/layout-detail.d.ts +0 -4
  524. package/views/dist/panels/react/layout-detail.js +0 -29
  525. package/views/dist/panels/react/root-list.d.ts +0 -6
  526. package/views/dist/panels/react/root-list.js +0 -31
  527. package/views/dist/panels/react/sort/use-sort-drag.d.ts +0 -17
  528. package/views/dist/panels/react/sort/use-sort-drag.js +0 -39
  529. package/views/dist/panels/react/view-footer.d.ts +0 -20
  530. package/views/dist/panels/react/view-footer.js +0 -41
@@ -0,0 +1,103 @@
1
+ export declare const TOOLBAR_BUTTON_TOKENS: readonly [{
2
+ readonly name: "--vk-radius-xs";
3
+ readonly kind: "size";
4
+ readonly outright: "--radius-xs";
5
+ }, {
6
+ readonly name: "--vk-radius-sm";
7
+ readonly kind: "size";
8
+ readonly outright: "--radius-sm";
9
+ }, {
10
+ readonly name: "--vk-radius-md";
11
+ readonly kind: "size";
12
+ readonly outright: "--radius-md";
13
+ }, {
14
+ readonly name: "--vk-radius-lg";
15
+ readonly kind: "size";
16
+ readonly outright: "--radius-lg";
17
+ }, {
18
+ readonly name: "--vk-radius-xl";
19
+ readonly kind: "size";
20
+ readonly outright: "--radius-xl";
21
+ }, {
22
+ readonly name: "--vk-radius-2xl";
23
+ readonly kind: "size";
24
+ readonly outright: "--radius-2xl";
25
+ }, {
26
+ readonly name: "--vk-radius-full";
27
+ readonly kind: "size";
28
+ readonly outright: "--radius-full";
29
+ }, {
30
+ readonly name: "--vk-font-weight-medium";
31
+ readonly kind: "size";
32
+ readonly outright: "--font-weight-medium";
33
+ }, {
34
+ readonly name: "--vk-font-weight-semibold";
35
+ readonly kind: "size";
36
+ readonly outright: "--font-weight-semibold";
37
+ }, {
38
+ readonly name: "--vk-spacing";
39
+ readonly kind: "size";
40
+ readonly outright: "--spacing";
41
+ }, {
42
+ readonly name: "--vk-fg-subtle";
43
+ readonly kind: "colour";
44
+ readonly outright: "--text-subtle";
45
+ }, {
46
+ readonly name: "--vk-dot-size";
47
+ readonly kind: "size";
48
+ readonly outright: "--dot-size";
49
+ }, {
50
+ readonly name: "--vk-brand";
51
+ readonly kind: "colour";
52
+ readonly outright: "--background-brand-bold";
53
+ }, {
54
+ readonly name: "--vk-fg-accent";
55
+ readonly kind: "colour";
56
+ readonly outright: "--text-brand";
57
+ }, {
58
+ readonly name: "--vk-fg";
59
+ readonly kind: "colour";
60
+ readonly outright: "--text";
61
+ }, {
62
+ readonly name: "--vk-selected";
63
+ readonly kind: "colour";
64
+ readonly outright: "--surface-selected";
65
+ }, {
66
+ readonly name: "--vk-fg-selected";
67
+ readonly kind: "colour";
68
+ readonly outright: "--text-selected";
69
+ }, {
70
+ readonly name: "--vk-raised-selected";
71
+ readonly kind: "colour";
72
+ readonly outright: "--surface-raised-selected";
73
+ }, {
74
+ readonly name: "--vk-sunken-selected";
75
+ readonly kind: "colour";
76
+ readonly outright: "--surface-sunken-selected";
77
+ }, {
78
+ readonly name: "--vk-brand-subtlest";
79
+ readonly kind: "colour";
80
+ readonly outright: "--background-brand-subtlest";
81
+ }, {
82
+ readonly name: "--vk-border-bold";
83
+ readonly kind: "colour";
84
+ readonly outright: "--border-bold";
85
+ }, {
86
+ readonly name: "--vk-hovered";
87
+ readonly kind: "colour";
88
+ readonly outright: "--surface-hovered";
89
+ }, {
90
+ readonly name: "--vk-border-warning";
91
+ readonly kind: "colour";
92
+ readonly outright: "--border-warning";
93
+ }, {
94
+ readonly name: "--vk-warning";
95
+ readonly kind: "colour";
96
+ readonly outright: "--text-warning";
97
+ }, {
98
+ readonly name: "--vk-warning-subtlest";
99
+ readonly kind: "colour";
100
+ readonly outright: "--background-warning-subtlest";
101
+ }];
102
+ /** The toolbar button sets only the Button's own machinery (`--button-*`, the Button's private family): no family of its own. */
103
+ export declare const TOOLBAR_BUTTON_PRIVATE: readonly [];
@@ -0,0 +1,28 @@
1
+ export const TOOLBAR_BUTTON_TOKENS = [
2
+ { name: "--vk-radius-xs", kind: "size", outright: "--radius-xs" },
3
+ { name: "--vk-radius-sm", kind: "size", outright: "--radius-sm" },
4
+ { name: "--vk-radius-md", kind: "size", outright: "--radius-md" },
5
+ { name: "--vk-radius-lg", kind: "size", outright: "--radius-lg" },
6
+ { name: "--vk-radius-xl", kind: "size", outright: "--radius-xl" },
7
+ { name: "--vk-radius-2xl", kind: "size", outright: "--radius-2xl" },
8
+ { name: "--vk-radius-full", kind: "size", outright: "--radius-full" },
9
+ { name: "--vk-font-weight-medium", kind: "size", outright: "--font-weight-medium" },
10
+ { name: "--vk-font-weight-semibold", kind: "size", outright: "--font-weight-semibold" },
11
+ { name: "--vk-spacing", kind: "size", outright: "--spacing" },
12
+ { name: "--vk-fg-subtle", kind: "colour", outright: "--text-subtle" },
13
+ { name: "--vk-dot-size", kind: "size", outright: "--dot-size" },
14
+ { name: "--vk-brand", kind: "colour", outright: "--background-brand-bold" },
15
+ { name: "--vk-fg-accent", kind: "colour", outright: "--text-brand" },
16
+ { name: "--vk-fg", kind: "colour", outright: "--text" },
17
+ { name: "--vk-selected", kind: "colour", outright: "--surface-selected" },
18
+ { name: "--vk-fg-selected", kind: "colour", outright: "--text-selected" },
19
+ { name: "--vk-raised-selected", kind: "colour", outright: "--surface-raised-selected" },
20
+ { name: "--vk-sunken-selected", kind: "colour", outright: "--surface-sunken-selected" },
21
+ { name: "--vk-brand-subtlest", kind: "colour", outright: "--background-brand-subtlest" },
22
+ { name: "--vk-border-bold", kind: "colour", outright: "--border-bold" },
23
+ { name: "--vk-hovered", kind: "colour", outright: "--surface-hovered" },
24
+ { name: "--vk-border-warning", kind: "colour", outright: "--border-warning" },
25
+ { name: "--vk-warning", kind: "colour", outright: "--text-warning" },
26
+ { name: "--vk-warning-subtlest", kind: "colour", outright: "--background-warning-subtlest" },
27
+ ];
28
+ export const TOOLBAR_BUTTON_PRIVATE = [];
@@ -0,0 +1,66 @@
1
+ import * as React from "react";
2
+ import { type ButtonProps } from "../button/button.js";
3
+ export type ToolbarButtonGround = "ghost" | "bordered" | "filled";
4
+ export type ToolbarButtonSmoothing = "app" | "smooth" | "round";
5
+ export type ToolbarButtonWords = "both" | "icon" | "word";
6
+ export type ToolbarButtonSize = "28" | "32" | "36" | "44";
7
+ type Worn = {
8
+ ground: ToolbarButtonGround;
9
+ words: ToolbarButtonWords;
10
+ size: ToolbarButtonSize;
11
+ corners: string;
12
+ smoothing: ToolbarButtonSmoothing;
13
+ };
14
+ /** The toolbar it stands in: the row's height and form, which it takes unless it says its own. */
15
+ export declare const InToolbar: React.Context<{
16
+ size: ToolbarButtonSize;
17
+ form: "computer" | "phone";
18
+ } | null>;
19
+ /** Its options as worn around `el`, kept up to date as the frame's attributes change: what a toolbar reads too, for its row's
20
+ * height. */
21
+ export declare function useToolbarButtonWorn(el: HTMLElement | null, phone: boolean): Worn;
22
+ export interface ToolbarButtonProps extends Omit<ButtonProps, "kind" | "size" | "shape" | "look" | "children"> {
23
+ /** Its name: its word, unless `children` says more, and its name to a screen reader when its icon stands alone. */
24
+ label: string;
25
+ /** What it says in place of its bare name ("Sorted by Amount"). */
26
+ children?: React.ReactNode;
27
+ /** A count at its end ("+1", "2"), shown whatever its words. */
28
+ count?: React.ReactNode;
29
+ /** A dot at its top end corner: something is applied, with no number (View settings with unsaved changes). */
30
+ dot?: boolean;
31
+ /** An empty place: its edge dashed, a place waiting to be filled (Filter before the first filter). */
32
+ empty?: boolean;
33
+ /** In the brand once used (a sort or a filter in force). */
34
+ lit?: boolean;
35
+ /** Set aside: what it names has left the list (a filter whose field is gone), its edge dashed and its words in the warning
36
+ * colours, no depth. */
37
+ aside?: boolean;
38
+ /** A filter on the filter bar: a toolbar button standing for a filter of its own (an advanced filter) folds into "+N
39
+ * filters", never into ⋯; inside a filter's joined buttons, the one a press on that filter in "+N filters" presses (its value),
40
+ * the first unless one says so. */
41
+ filter?: boolean;
42
+ /** Joined to its neighbours, as one of a filter's parts drawn one at a time: where it stands among them, its corners on the
43
+ * outer side alone and the edge between two drawn once, as a ButtonGroup's button. */
44
+ joined?: "start" | "middle" | "end";
45
+ /** A view tab: one of several where one is open. Given at all, it is a tab, its words subtle until the pointer comes; the open
46
+ * one (true) stands on its ground's selected step, unmoved by the pointer, and in the brand (`lit`) on the brand's subtlest
47
+ * ground, a phone's view chip. */
48
+ current?: boolean;
49
+ /** What it holds says, for itself, over what the frame picks: the view switcher keeps its word on a phone. */
50
+ ground?: ToolbarButtonGround;
51
+ words?: ToolbarButtonWords;
52
+ size?: ToolbarButtonSize;
53
+ /** Its corners: "button" (the Button's), a radius step, or "full" (the pill; its icon alone, the circle). */
54
+ corners?: "button" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
55
+ smoothing?: ToolbarButtonSmoothing;
56
+ /** Which form; by default the toolbar's it stands in, else the phone's in a phone's window or in a PhoneHost screen, else the
57
+ * computer's. */
58
+ form?: "computer" | "phone";
59
+ /** In a toolbar: it never folds into ⋯ when the row is too narrow. */
60
+ stays?: boolean;
61
+ /** Disabled, it still takes the pointer and the focus, so a Tooltip round it says why (Sort at three: "Three at most"). */
62
+ focusableWhenDisabled?: boolean;
63
+ }
64
+ /** A button in a toolbar: its icon, its word or both, the Button's look unless set apart, with a count, a dot or an empty place. */
65
+ export declare const ToolbarButtonControl: React.ForwardRefExoticComponent<Omit<ToolbarButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
66
+ export {};
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Toolbar as BaseToolbar } from "@base-ui/react/toolbar";
5
+ import { cx } from "../../internal/cx.js";
6
+ import { Button } from "../button/button.js";
7
+ import { PhoneHost, usePhone } from "../internal/phone.js";
8
+ import { TOOLBAR_BUTTON_LOOKS } from "./looks.js";
9
+ const KIND = { ghost: "quiet", bordered: "outline", filled: "soft" };
10
+ const SIZE = { "28": "xs", "32": "sm", "36": "md", "44": "44" };
11
+ const ATTRS = TOOLBAR_BUTTON_LOOKS.options.map((o) => `data-toolbar-button-${o.id}`);
12
+ const DEF = Object.fromEntries(TOOLBAR_BUTTON_LOOKS.options.map((o) => [o.id, o.def]));
13
+ const optionOf = (el, id) => el?.closest(`[data-toolbar-button-${id}]`)?.getAttribute(`data-toolbar-button-${id}`) ?? DEF[id];
14
+ const wornOf = (el, phone) => {
15
+ const at = (id) => optionOf(el, (phone ? `${id}phone` : id));
16
+ return { ground: at("ground"), words: at("words"), size: at("size"), corners: at("corners"),
17
+ smoothing: optionOf(el, "smoothing") };
18
+ };
19
+ const same = (a, b) => a.ground === b.ground && a.words === b.words && a.size === b.size && a.corners === b.corners && a.smoothing === b.smoothing;
20
+ export const InToolbar = React.createContext(null);
21
+ export function useToolbarButtonWorn(el, phone) {
22
+ const [worn, setWorn] = React.useState(() => wornOf(null, phone));
23
+ React.useLayoutEffect(() => {
24
+ const read = () => setWorn((was) => { const now = wornOf(el, phone); return same(was, now) ? was : now; });
25
+ read();
26
+ const watch = new MutationObserver(read);
27
+ watch.observe(document.documentElement, { attributes: true, subtree: true, attributeFilter: ATTRS });
28
+ return () => watch.disconnect();
29
+ }, [el, phone]);
30
+ return worn;
31
+ }
32
+ export const ToolbarButtonControl = React.forwardRef(function ToolbarButtonControl({ label, children, count, dot, empty, lit, aside, filter: _filter, joined, current, ground, words, size, corners, smoothing, form, stays: _stays, focusableWhenDisabled = false, icon, iconEnd, className, ...props }, ref) {
33
+ const host = React.useContext(PhoneHost), narrow = usePhone(), row = React.useContext(InToolbar);
34
+ const phone = (form ?? row?.form) ? (form ?? row?.form) === "phone" : host != null || narrow;
35
+ const [el, setEl] = React.useState(null);
36
+ const worn = useToolbarButtonWorn(el, phone);
37
+ const g = ground ?? worn.ground, w = words ?? worn.words, z = size ?? row?.size ?? worn.size, c = corners ?? worn.corners, m = smoothing ?? worn.smoothing;
38
+ const own = React.useCallback((node) => {
39
+ setEl(node);
40
+ if (typeof ref === "function")
41
+ ref(node);
42
+ else if (ref)
43
+ ref.current = node;
44
+ }, [ref]);
45
+ const alone = w === "icon" && icon != null && count == null;
46
+ const said = w === "icon" && icon != null ? null : (children ?? label);
47
+ const look = { open: "hovered" };
48
+ const named = said == null ? [label, typeof count === "string" || typeof count === "number" ? String(count) : null].filter(Boolean).join(", ") : undefined;
49
+ const button = (_jsx(Button, { ref: own, kind: KIND[g], size: SIZE[z], shape: alone ? "icon" : "default", icon: w === "word" ? undefined : icon, iconEnd: alone ? undefined : iconEnd, look: look, "aria-label": named, focusableWhenDisabled: focusableWhenDisabled, className: cx("o-toolbar-button", className), "data-kit": "toolbar-button", "data-corners": c === "button" ? undefined : c, "data-smoothing": m === "app" ? undefined : m, "data-screen": phone ? "phone" : "computer", "data-empty": empty ? "" : undefined, "data-lit": lit ? "" : undefined, "data-aside": aside ? "" : undefined, "data-joined": joined, "data-dot": dot && count == null ? "" : undefined, "data-tab": current !== undefined ? "" : undefined, "data-current": current ? "" : undefined, "aria-current": current ? "true" : undefined, ...props, children: said != null || count != null ? _jsxs(_Fragment, { children: [said, count != null && _jsx("span", { className: "o-toolbar-button-count", "data-alone": said == null ? "" : undefined, children: count })] }) : null }));
50
+ return row ? _jsx(BaseToolbar.Button, { render: button, disabled: props.disabled, focusableWhenDisabled: focusableWhenDisabled }) : button;
51
+ });
@@ -0,0 +1,75 @@
1
+ /* The toolbar button. It is the Button (button.css draws its kind, size, corners, depth, hover and press); this file draws
2
+ only what the Toolbar button adds, every value a token:
3
+
4
+ data-toolbar-button-weight button · medium · semibold its label's weight, the Button's until set
5
+
6
+ and, on the button itself, what the component read off the frame (or what holds it said): its corners when set apart from the
7
+ Button's (data-corners, a radius step or full), its corner smoothing when round (data-smoothing), its count, an empty place
8
+ (data-empty), the brand once used (data-lit), set aside (data-aside), its dot (data-dot) and where it stands joined to its neighbours (data-joined). Its ground, words and size pick the Button's kind, form and
9
+ height. Each rule here is a step more specific than the Button's own (0,3,0), so what is set for it alone wins over the frame's
10
+ Button picks. */
11
+ @layer components {
12
+
13
+ /* Its corners, one slider: the Button's (nothing here), then each radius step to Full, the pill and, its icon alone, the circle. */
14
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="xs"] { --button-r: var(--vk-radius-xs); }
15
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="sm"] { --button-r: var(--vk-radius-sm); }
16
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="md"] { --button-r: var(--vk-radius-md); }
17
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="lg"] { --button-r: var(--vk-radius-lg); }
18
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="xl"] { --button-r: var(--vk-radius-xl); }
19
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="2xl"] { --button-r: var(--vk-radius-2xl); }
20
+ .o-button.o-toolbar-button.o-toolbar-button[data-corners="full"] { --button-r: var(--vk-radius-full); }
21
+
22
+ /* Its corner smoothing (data-smoothing): The app's follows the Button's (nothing set); Smooth and Round set it apart, which the
23
+ Button's own Corner smoothing section draws (button.css). */
24
+
25
+ /* Its label's weight, set for it alone. */
26
+ [data-toolbar-button-weight="medium"] .o-button.o-toolbar-button { font-weight: var(--vk-font-weight-medium); }
27
+ [data-toolbar-button-weight="semibold"] .o-button.o-toolbar-button { font-weight: var(--vk-font-weight-semibold); }
28
+
29
+ /* Joined to its neighbours (data-joined): a filter's parts drawn one at a time, ViewKit's on the bar, which no ButtonGroup can
30
+ stand round; drawn as button.css draws a horizontal group's buttons, its inner corners square and the edge between two drawn once
31
+ (focus lifts it over its neighbours there, beside the group's own lift). */
32
+ .o-button.o-toolbar-button:is([data-joined="start"], [data-joined="middle"]) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
33
+ .o-button.o-toolbar-button:is([data-joined="middle"], [data-joined="end"]) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; }
34
+
35
+ /* Its count at its end, quieter than its words, its digits lined up; in the brand once used. */
36
+ .o-toolbar-button-count { margin-left: var(--vk-spacing); color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
37
+ .o-toolbar-button-count[data-alone] { margin-left: 0; }
38
+
39
+ /* A dot at its top end corner, in the brand: something applied with no number. Drawn with ::before, since the pressing area takes
40
+ ::after on a phone (its pressing area). */
41
+ .o-button.o-toolbar-button[data-dot]::before {
42
+ content: ""; position: absolute; top: var(--vk-spacing); right: var(--vk-spacing); width: var(--vk-dot-size); height: var(--vk-dot-size);
43
+ border-radius: var(--vk-radius-full); background-color: var(--vk-brand); pointer-events: none;
44
+ }
45
+
46
+ /* In the brand once used: its words, its icon and its count. */
47
+ .o-button.o-toolbar-button[data-lit]:not(:disabled, [data-disabled]),
48
+ .o-button.o-toolbar-button[data-lit]:not(:disabled, [data-disabled]) .o-toolbar-button-count { color: var(--vk-fg-accent); }
49
+ /* Open and in the brand (the quick filters' button with a value held, its Pane open): the brand wins over the open look's
50
+ words, (0,6,0) over the Button's open "hovered" (0,5,0), which keeps its ground. */
51
+ .o-button.o-toolbar-button.o-toolbar-button[data-lit][aria-expanded="true"]:not(:disabled, [data-disabled]) { color: var(--vk-fg-accent); }
52
+
53
+ /* A view tab (data-tab), the portal's way: the unopened ones in the subtle words, coming up to the text under the pointer; the open
54
+ one (data-current) on its ground's selected step (ghost the surface's, bordered the raised surface's with no edge or depth,
55
+ filled the sunken surface's), its words the selected text's, unmoved by the pointer; in the brand (data-lit), a phone's view
56
+ chip, on the brand's subtlest ground. */
57
+ .o-button.o-toolbar-button[data-tab]:not([data-current]) { color: var(--vk-fg-subtle); }
58
+ .o-button.o-toolbar-button[data-tab]:not([data-current]):is([data-force="hover"], :active, [data-force="press"]) { color: var(--vk-fg); }
59
+ @media (hover: hover) { .o-button.o-toolbar-button[data-tab]:not([data-current]):hover { color: var(--vk-fg); } }
60
+ .o-button.o-toolbar-button.o-toolbar-button[data-current] { --button-ground: var(--vk-selected); color: var(--vk-fg-selected); }
61
+ .o-button.o-toolbar-button.o-toolbar-button.o-button-outline[data-current] { --button-ground: var(--vk-raised-selected); --button-edge: transparent; --button-edge-foot: transparent; --button-depth: none; }
62
+ .o-button.o-toolbar-button.o-toolbar-button.o-button-soft[data-current] { --button-ground: var(--vk-sunken-selected); }
63
+ .o-button.o-toolbar-button.o-toolbar-button[data-current][data-lit] { --button-ground: var(--vk-brand-subtlest); color: var(--vk-fg-accent); }
64
+
65
+ /* An empty place: its edge dashed on the ground it stands on, its words quieter, no depth; under the pointer the ground's hover. */
66
+ .o-button.o-toolbar-button[data-empty] { border-style: dashed; --button-edge: var(--vk-border-bold); --button-edge-foot: var(--vk-border-bold); --button-ground: transparent; --button-depth: none; color: var(--vk-fg-subtle); }
67
+ .o-button.o-toolbar-button[data-empty]:is([data-force="hover"], :active, [data-force="press"]):not(:disabled, [data-disabled]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
68
+ @media (hover: hover) { .o-button.o-toolbar-button[data-empty]:hover:not(:disabled, [data-disabled]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); } }
69
+
70
+ /* Set aside: what it names left the list (a filter whose field is gone). Its edge dashed in the warning's, its words the
71
+ warning's, no depth; under the pointer the warning's palest ground. */
72
+ .o-button.o-toolbar-button[data-aside] { border-style: dashed; --button-edge: var(--vk-border-warning); --button-edge-foot: var(--vk-border-warning); --button-depth: none; color: var(--vk-warning); }
73
+ .o-button.o-toolbar-button[data-aside]:is([data-force="hover"], :active, [data-force="press"]):not(:disabled, [data-disabled]) { --button-ground: var(--vk-warning-subtlest); }
74
+ @media (hover: hover) { .o-button.o-toolbar-button[data-aside]:hover:not(:disabled, [data-disabled]) { --button-ground: var(--vk-warning-subtlest); } }
75
+ }
@@ -0,0 +1,65 @@
1
+ /* The Toolbar (the Outright kit's, KIT-138; ViewKit's since VK-858, as ToolbarControl): the row and, under it, the filter bar, as
2
+ the toolbar's map draws them. Every value it draws with is a name ViewKit's controls read (docs/controls/toolbar.md). It draws
3
+ nothing of its own but its lines, the room between what each holds, and its separators; what it holds draws itself. Every value a token:
4
+
5
+ .o-toolbar-line a line: the row (data-line="row"), the filter bar (data-line="bar"), 12 under the row, or a phone's
6
+ search on its own line (data-line="search"), above it
7
+ data-screen computer · phone the room between what a line holds; a phone's is one line
8
+ data-lines across · none a list's lines in bands with a line across under each, or not
9
+ --toolbar-spacing how far apart what a line holds stands, in spacing steps, when what holds it says so
10
+ --toolbar-inset the room at each side of each line, when what holds it gives one (0 unless said)
11
+
12
+ Each line is one line, never wrapping: what doesn't fit gives way (toolbar.tsx), and a text box gives some of its width. Its
13
+ width is its holder's to give: sized from what it holds in a pill (the bulk bar, the quick filters' reminder), given its width
14
+ as a list's toolbar, so it never contains its own (VK-882; ViewKit's ready toolbar, always a list's, contains its own). */
15
+ @layer components {
16
+
17
+ .o-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; min-width: 0; --toolbar-inset: 0; }
18
+ .o-toolbar-line { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; gap: calc(var(--vk-spacing) * var(--toolbar-spacing, 2)); padding-inline: var(--toolbar-inset); }
19
+
20
+ /* Lines across (data-lines="across", a computer's list, Attio's way; Mihai, 16 Nov 2026): each line its own band, a line across
21
+ under it the Toolbar's whole width, the room inside it 10 above and below. What holds the Toolbar gives its room at each side
22
+ (--toolbar-inset, a list's page edge), so the lines run edge to edge and what they hold stands in from them. None: the lines
23
+ 12 apart, nothing between. */
24
+ .o-toolbar[data-lines="across"] { gap: 0; }
25
+ .o-toolbar[data-lines="across"] > .o-toolbar-line { padding-block: calc(var(--vk-spacing) * 2.5); border-bottom: var(--vk-border-width) solid var(--vk-border-subtle); }
26
+ /* On a phone the row a step closer (the map's phone row). */
27
+ .o-toolbar[data-screen="phone"] .o-toolbar-line { gap: calc(var(--vk-spacing) * var(--toolbar-spacing, 1.5)); }
28
+
29
+ /* What a line holds keeps its width; only a text box gives some up, from its own width down to its narrowest. */
30
+ .o-toolbar-line > * { flex: none; }
31
+ .o-toolbar-line > :is(.o-toolbar-input, .o-input-group:has(.o-toolbar-input)) { flex: 0 1 calc(var(--vk-spacing) * 55); min-width: calc(var(--vk-spacing) * 30); }
32
+
33
+ /* A list's search: on a phone's line of its own it fills it; open on a phone's one line it takes the room the others left. */
34
+ .o-toolbar .o-toolbar-line[data-line="search"] > :is(.o-toolbar-input, .o-input-group) { flex: 1 1 0; min-width: 0; }
35
+ .o-toolbar[data-screen="phone"] .o-toolbar-line > .o-input-group[data-open] { flex: 1 1 0; min-width: 0; }
36
+
37
+ /* A text box keeps its line's height (data-size, the height the line gives what it holds): under the phone switch the Input
38
+ stands 44 so iOS never zooms in, which in a line of 36 or 32 stood taller than the buttons beside it and pushed the line down
39
+ (Mihai, 16 Nov 2026). Its words stay 16 there; only its height is the line's, and its side (--input-side), which its smooth corner fits (KIT-619). A box in a group fills the
40
+ group. */
41
+ .o-toolbar-line[data-size="28"] > :is(.o-toolbar-input, .o-input-group).o-input { height: calc(var(--vk-spacing) * 7); --input-side: calc(var(--vk-spacing) * 7); }
42
+ .o-toolbar-line[data-size="32"] > :is(.o-toolbar-input, .o-input-group).o-input { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
43
+ .o-toolbar-line[data-size="36"] > :is(.o-toolbar-input, .o-input-group).o-input { height: calc(var(--vk-spacing) * 9); --input-side: calc(var(--vk-spacing) * 9); }
44
+ .o-toolbar-line[data-size="44"] > :is(.o-toolbar-input, .o-input-group).o-input { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); }
45
+ .o-toolbar-line > .o-input-group.o-input > .o-toolbar-input.o-input { height: auto; align-self: stretch; }
46
+
47
+ /* The search opens out of its button: the box grows from the button's place to its own width, or on a phone across the line,
48
+ rather than standing there at once. Still where the person asks for less motion. */
49
+ @media (prefers-reduced-motion: no-preference) {
50
+ .o-toolbar-line > .o-input-group[data-open] {
51
+ transition: flex-basis var(--vk-duration-base) var(--vk-ease-out), flex-grow var(--vk-duration-base) var(--vk-ease-out);
52
+ @starting-style { flex-basis: calc(var(--vk-spacing) * 8); flex-grow: 0; }
53
+ }
54
+ }
55
+
56
+ /* A separator: a line across the row, as tall as a Toolbar button's icon. */
57
+ .o-toolbar-sep { flex: none; align-self: center; width: var(--vk-border-width); height: calc(var(--vk-spacing) * 4); background-color: var(--vk-border); }
58
+
59
+ /* Room that pushes what follows to its line's far end. */
60
+ .o-toolbar-line > .o-toolbar-spacer { flex: 1 1 0; min-width: 0; align-self: stretch; }
61
+
62
+ /* A holder's own filters or view tabs (ToolbarFolds, KIT-858): a box keeping the whole width of what it holds, so the line measures it
63
+ as it draws, and folds them a step at a time. */
64
+ .o-toolbar-folds { display: inline-flex; flex: none; min-width: max-content; align-items: center; }
65
+ }
@@ -1,3 +1,3 @@
1
1
  import type { ViewsTooltipProps } from "../../provider/components.js";
2
2
  /** ViewKit's tooltip, drawn as the kit's Tooltip: what it names is its child itself, no element round it. */
3
- export declare function MapTooltip({ content, children, side }: ViewsTooltipProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function MapTooltip({ content, children, side, align, delayMs, className }: ViewsTooltipProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Tooltip } from "./tooltip.js";
3
- export function MapTooltip({ content, children, side }) {
4
- return _jsx(Tooltip, { label: content, side: side, children: children });
3
+ export function MapTooltip({ content, children, side, align, delayMs, className }) {
4
+ return _jsx(Tooltip, { label: content, side: side, align: align, delay: delayMs, className: className, children: children });
5
5
  }
@@ -33,13 +33,15 @@ export interface TooltipProps {
33
33
  disabled?: boolean;
34
34
  /** How long the pointer rests on what it names before it shows, in ms: read from what it names unless said. */
35
35
  delay?: number;
36
+ /** A class on the tooltip itself (its words' figures, say), after its own. */
37
+ className?: string;
36
38
  /** What it names: one element that takes a ref (a Button). A button that is off keeps its focus and
37
39
  * pointer for its reason (the Button's focusableWhenDisabled). */
38
40
  children: React.ReactElement;
39
41
  }
40
42
  /** The name of a button that shows only an icon, or why something can't be used: on hover and on keyboard
41
43
  * focus, and on a touch screen a reason on a tap on what's off. The button keeps its own aria-label; the tooltip is tied to it with aria-describedby. */
42
- export declare function Tooltip({ label, keys, reason, side, align, sideOffset, alignOffset, open, defaultOpen, onOpenChange, disabled, delay, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
44
+ export declare function Tooltip({ label, keys, reason, side, align, sideOffset, alignOffset, open, defaultOpen, onOpenChange, disabled, delay, className, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
43
45
  export interface TooltipGroupProps {
44
46
  /** How long after one has shown the next shows at once, in ms: read off the first of its tooltips unless said. */
45
47
  warm?: number;
@@ -12,7 +12,7 @@ function readMs(el, name, fallback) {
12
12
  const GroupWarm = React.createContext(null);
13
13
  const Box = ({ label, keys }) => _jsxs(_Fragment, { children: [label, keys && _jsx(Kbd, { keys: keys })] });
14
14
  const gap = (trigger, popup) => (parseFloat(popup ? getComputedStyle(popup).getPropertyValue("--vk-spacing") : "") || 4) * (trigger?.closest('[data-tooltip-arrow="soft"]') ? 2.5 : 1.5);
15
- export function Tooltip({ label, keys, reason, side = "top", align = "center", sideOffset, alignOffset = 0, open, defaultOpen, onOpenChange, disabled, delay, children }) {
15
+ export function Tooltip({ label, keys, reason, side = "top", align = "center", sideOffset, alignOffset = 0, open, defaultOpen, onOpenChange, disabled, delay, className, children }) {
16
16
  const ref = React.useRef(null), popup = React.useRef(null), host = usePopupHost(ref), id = React.useId();
17
17
  const [wait, setWait] = React.useState(TOOLTIP_TIMING.delay), tellWarm = React.useContext(GroupWarm);
18
18
  React.useLayoutEffect(() => {
@@ -59,7 +59,7 @@ export function Tooltip({ label, keys, reason, side = "top", align = "center", s
59
59
  return () => { document.removeEventListener("pointerdown", away, true); clearTimeout(timer); };
60
60
  }, [shown, set]);
61
61
  return (_jsxs(BaseTooltip.Root, { disabled: disabled, open: shown, onOpenChange: (o, details) => { if (!o && tapped.current && (details?.reason === "trigger-press" || details?.reason === "trigger-hover"))
62
- return; set(o); }, children: [_jsx(BaseTooltip.Trigger, { ref: ref, render: children, className: "o-tooltip-trigger", delay: delay ?? wait, closeDelay: 0, "aria-describedby": id }), _jsx(BaseTooltip.Portal, { container: host, children: _jsx(BaseTooltip.Positioner, { className: "o-tooltip-positioner", side: side, align: align, alignOffset: alignOffset, sideOffset: () => sideOffset ?? gap(ref.current, popup.current), children: _jsxs(BaseTooltip.Popup, { ref: popup, id: id, className: cx("o-tooltip o-smooth o-smooth-ease", reason && "o-tooltip-reason"), "data-kit": "tooltip", children: [_jsx(Box, { label: label, keys: keys }), _jsx(BaseTooltip.Arrow, { className: "o-tooltip-arrow" })] }) }) })] }));
62
+ return; set(o); }, children: [_jsx(BaseTooltip.Trigger, { ref: ref, render: children, className: "o-tooltip-trigger", delay: delay ?? wait, closeDelay: 0, "aria-describedby": id }), _jsx(BaseTooltip.Portal, { container: host, children: _jsx(BaseTooltip.Positioner, { className: "o-tooltip-positioner", side: side, align: align, alignOffset: alignOffset, sideOffset: () => sideOffset ?? gap(ref.current, popup.current), children: _jsxs(BaseTooltip.Popup, { ref: popup, id: id, className: cx("o-tooltip o-smooth o-smooth-ease", reason && "o-tooltip-reason", className), "data-kit": "tooltip", children: [_jsx(Box, { label: label, keys: keys }), _jsx(BaseTooltip.Arrow, { className: "o-tooltip-arrow" })] }) }) })] }));
63
63
  }
64
64
  export function TooltipGroup({ warm, children }) {
65
65
  const [read, setRead] = React.useState(TOOLTIP_TIMING.warm), first = React.useRef(false);
@@ -12,7 +12,7 @@ export const VALUES_EDITOR_LOOKS = {
12
12
  options,
13
13
  looks: [
14
14
  { id: "attio", name: "Attio", picks: { rows: "copy", main: "none", line: "plus", lists: "under", phone: "rows" } },
15
- { id: "mihai", name: "Mihai's", picks: { rows: "fill", main: "pill", line: "icon", lists: "inplace", phone: "cards" } },
15
+ { id: "mihai", name: "Outright", picks: { rows: "fill", main: "pill", line: "icon", lists: "inplace", phone: "cards" } },
16
16
  ],
17
17
  };
18
18
  export const valuesEditorWornOf = (el) => lookWornOf(VALUES_EDITOR_LOOKS, el, ["rows", "main", "line", "lists", "phone"]);
@@ -51,8 +51,12 @@ export function valuesText(values) {
51
51
  return list.length ? `${list[0].value}${list.length > 1 ? ` +${list.length - 1}` : ""}` : "";
52
52
  }
53
53
  export function openOf(kind, value) {
54
- if (kind === "phone")
55
- return { href: `tel:${value.replace(/[^\d+]/g, "")}`, label: `Call ${value}` };
54
+ if (kind === "phone") {
55
+ const [number = "", extension] = value.split(/\s*(?:;\s*ext=|ext\.?|x|#)\s*/i);
56
+ const digits = (text) => text.replace(/[^\d+]/g, "");
57
+ const ext = extension ? digits(extension) : "";
58
+ return { href: `tel:${digits(number)}${ext ? `;ext=${ext}` : ""}`, label: `Call ${value}` };
59
+ }
56
60
  if (kind === "email")
57
61
  return { href: `mailto:${value}`, label: `Write to ${value}` };
58
62
  return { href: /^https?:\/\//i.test(value) ? value : `https://${value}`, label: `Open ${value}` };
@@ -1,19 +1,22 @@
1
1
  import * as React from "react";
2
2
  import { type ViewsMessageResolver } from "../../contract.js";
3
3
  import type { ViewsViewsListBodyProps, ViewsViewsListItem } from "../../provider/components.js";
4
+ import type { ViewMenuWords } from "./words.js";
4
5
  import { type ViewsListProps } from "./views-list.js";
5
6
  import type { ViewsListWords } from "./words.js";
6
7
  type AppIcon = React.ComponentType<{
7
8
  name: string;
8
9
  className?: string;
9
10
  }>;
10
- /** The views list's words in the app's messages: ViewKit's own list's keys, the Picker's, and New view the axis's own word. */
11
+ /** The views list's words in the app's messages: ViewKit's own list's keys, the Picker's, a view's menu's, and New view the axis's own word. */
11
12
  export declare function viewsListWordsOf(say: ViewsMessageResolver, createLabel?: string): ViewsListWords;
12
13
  /** The block an order changed, the shared views or the reader's own, in its new order; null when neither changed, or when a
13
14
  * view whose place in it changed is one `canDrag` refuses. */
14
15
  export declare function orderToWrite(views: readonly Pick<ViewsViewsListItem, "value" | "private">[], order: string[], canDrag?: (value: string) => boolean): string[] | null;
15
16
  /** The slot's props as the views list's. */
16
17
  export declare function viewsListPropsOf(p: ViewsViewsListBodyProps, words: ViewsListWords, notNow: string, AppIcon?: AppIcon): ViewsListProps;
18
+ /** A view's menu's words in the app's messages. */
19
+ export declare function viewMenuWordsOf(say: ViewsMessageResolver): ViewMenuWords;
17
20
  /** ViewKit's views list body, drawn as the views list. */
18
21
  export declare function MapViewsListBody(props: ViewsViewsListBodyProps): import("react/jsx-runtime").JSX.Element;
19
22
  export {};