@k2b/ui 0.66.0 → 0.67.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 (908) hide show
  1. package/dist/base.css +6 -1
  2. package/dist/browser/actions/Dropdown.js +2 -1
  3. package/dist/browser/actions/Dropdown.js.map +1 -1
  4. package/dist/browser/actions/FilterChip.js +3 -2
  5. package/dist/browser/actions/FilterChip.js.map +1 -1
  6. package/dist/browser/actions/SegmentedControl.js +20 -14
  7. package/dist/browser/actions/SegmentedControl.js.map +1 -1
  8. package/dist/browser/charts/core/line-details.js +52 -12
  9. package/dist/browser/charts/core/line-details.js.map +1 -1
  10. package/dist/browser/charts/core/line-extras.js +122 -0
  11. package/dist/browser/charts/core/line-extras.js.map +1 -0
  12. package/dist/browser/charts/core/line-options.js +1 -1
  13. package/dist/browser/charts/core/line-options.js.map +1 -1
  14. package/dist/browser/charts/core/snapshot.js +3 -2
  15. package/dist/browser/charts/core/snapshot.js.map +1 -1
  16. package/dist/browser/charts/core/svg-barGauge.js +2 -2
  17. package/dist/browser/charts/core/svg-barGauge.js.map +1 -1
  18. package/dist/browser/charts/core/svg-common.js +22 -1
  19. package/dist/browser/charts/core/svg-common.js.map +1 -1
  20. package/dist/browser/charts/core/svg-renderers.js +2 -2
  21. package/dist/browser/charts/core/svg-renderers.js.map +1 -1
  22. package/dist/browser/chat/ChatDecision.js +5 -4
  23. package/dist/browser/chat/ChatDecision.js.map +1 -1
  24. package/dist/browser/chat/ChatPrimitives.js +7 -5
  25. package/dist/browser/chat/ChatPrimitives.js.map +1 -1
  26. package/dist/browser/content/Calendar.js +1103 -922
  27. package/dist/browser/content/Calendar.js.map +1 -1
  28. package/dist/browser/content/CalendarDayView.js +336 -259
  29. package/dist/browser/content/CalendarDayView.js.map +1 -1
  30. package/dist/browser/content/CalendarWeekView.js +332 -236
  31. package/dist/browser/content/CalendarWeekView.js.map +1 -1
  32. package/dist/browser/content/ChartRoot.js +233 -100
  33. package/dist/browser/content/ChartRoot.js.map +1 -1
  34. package/dist/browser/content/MarkdownView.js +3 -1
  35. package/dist/browser/content/MarkdownView.js.map +1 -1
  36. package/dist/browser/content/ReferenceChip.js +2 -1
  37. package/dist/browser/content/ReferenceChip.js.map +1 -1
  38. package/dist/browser/content/calendar-days.js +114 -26
  39. package/dist/browser/content/calendar-days.js.map +1 -1
  40. package/dist/browser/content/calendar-event-detail.js +133 -98
  41. package/dist/browser/content/calendar-event-detail.js.map +1 -1
  42. package/dist/browser/content/calendar-events.js +107 -0
  43. package/dist/browser/content/calendar-events.js.map +1 -0
  44. package/dist/browser/content/calendar-messages.js +28 -2
  45. package/dist/browser/content/calendar-messages.js.map +1 -1
  46. package/dist/browser/content/calendar-month-layout.js +89 -5
  47. package/dist/browser/content/calendar-month-layout.js.map +1 -1
  48. package/dist/browser/content/calendar-month-scroll.js +2 -1
  49. package/dist/browser/content/calendar-month-scroll.js.map +1 -1
  50. package/dist/browser/content/calendar-overflow.browser-suite.js +534 -0
  51. package/dist/browser/content/calendar-overflow.browser-suite.js.map +1 -0
  52. package/dist/browser/content/calendar-overflow.js +366 -0
  53. package/dist/browser/content/calendar-overflow.js.map +1 -0
  54. package/dist/browser/content/calendar-shared.js +119 -104
  55. package/dist/browser/content/calendar-shared.js.map +1 -1
  56. package/dist/browser/content/calendar-snapshot.js +71 -0
  57. package/dist/browser/content/calendar-snapshot.js.map +1 -0
  58. package/dist/browser/content/calendar-time-view.js +519 -305
  59. package/dist/browser/content/calendar-time-view.js.map +1 -1
  60. package/dist/browser/content/chart-bar.js +3 -3
  61. package/dist/browser/content/chart-bar.js.map +1 -1
  62. package/dist/browser/content/chart-calendar.js +2 -1
  63. package/dist/browser/content/chart-calendar.js.map +1 -1
  64. package/dist/browser/content/chart-inspection-mount.js +1 -1
  65. package/dist/browser/content/chart-inspection-mount.js.map +1 -1
  66. package/dist/browser/content/chart-line-gaps.js +1 -1
  67. package/dist/browser/content/chart-line-gaps.js.map +1 -1
  68. package/dist/browser/content/chart-message-catalog.js +6 -0
  69. package/dist/browser/content/chart-message-catalog.js.map +1 -1
  70. package/dist/browser/content/chart-state-timeline.js +45 -12
  71. package/dist/browser/content/chart-state-timeline.js.map +1 -1
  72. package/dist/browser/content/chart-svg.js +5 -1
  73. package/dist/browser/content/chart-svg.js.map +1 -1
  74. package/dist/browser/content/chart-tick-room.js +23 -0
  75. package/dist/browser/content/chart-tick-room.js.map +1 -1
  76. package/dist/browser/content/index.js +3 -0
  77. package/dist/browser/content/index.js.map +1 -1
  78. package/dist/browser/content/markdown-info-blocks.js +1 -1
  79. package/dist/browser/content/markdown-info-blocks.js.map +1 -1
  80. package/dist/browser/content/markdown-links.js +36 -2
  81. package/dist/browser/content/markdown-links.js.map +1 -1
  82. package/dist/browser/feedback/prompt-form-loader.js +3 -2
  83. package/dist/browser/feedback/prompt-form-loader.js.map +1 -1
  84. package/dist/browser/feedback/toast.js +21 -1
  85. package/dist/browser/feedback/toast.js.map +1 -1
  86. package/dist/browser/inputs/AutocompleteSelect.js +2 -1
  87. package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
  88. package/dist/browser/inputs/ChoiceInputs.js +3 -2
  89. package/dist/browser/inputs/ChoiceInputs.js.map +1 -1
  90. package/dist/browser/inputs/ColorChoices.js +2 -1
  91. package/dist/browser/inputs/ColorChoices.js.map +1 -1
  92. package/dist/browser/inputs/RichSelect.js +2 -1
  93. package/dist/browser/inputs/RichSelect.js.map +1 -1
  94. package/dist/browser/inputs/Select.js +3 -2
  95. package/dist/browser/inputs/Select.js.map +1 -1
  96. package/dist/browser/inputs/date-picker.js +9 -0
  97. package/dist/browser/inputs/date-picker.js.map +1 -1
  98. package/dist/browser/inputs/markdown/Toolbar.js +18 -14
  99. package/dist/browser/inputs/markdown/Toolbar.js.map +1 -1
  100. package/dist/browser/internal/color.js +25 -0
  101. package/dist/browser/internal/color.js.map +1 -1
  102. package/dist/browser/internal/pending-loads.js +17 -0
  103. package/dist/browser/internal/pending-loads.js.map +1 -0
  104. package/dist/browser/intl/messages.js +16 -0
  105. package/dist/browser/intl/messages.js.map +1 -1
  106. package/dist/browser/layout/AppWorkspace.js +6 -0
  107. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  108. package/dist/browser/layout/DetailSections.js +110 -98
  109. package/dist/browser/layout/DetailSections.js.map +1 -1
  110. package/dist/browser/layout/FloatingWindow.js +2 -1
  111. package/dist/browser/layout/FloatingWindow.js.map +1 -1
  112. package/dist/browser/layout/Navigation.js +172 -123
  113. package/dist/browser/layout/Navigation.js.map +1 -1
  114. package/dist/browser/layout/Panes.js +188 -237
  115. package/dist/browser/layout/Panes.js.map +1 -1
  116. package/dist/browser/layout/SidebarSwitcher.js +7 -3
  117. package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
  118. package/dist/browser/layout/navigation-model.js.map +1 -1
  119. package/dist/browser/layout/panes-messages.js +0 -4
  120. package/dist/browser/layout/panes-messages.js.map +1 -1
  121. package/dist/browser/surfaces/Avatar.js +5 -2
  122. package/dist/browser/surfaces/Avatar.js.map +1 -1
  123. package/dist/browser/surfaces/NoticeCard.js +78 -36
  124. package/dist/browser/surfaces/NoticeCard.js.map +1 -1
  125. package/dist/browser/surfaces/NoticeRow.js +10 -3
  126. package/dist/browser/surfaces/NoticeRow.js.map +1 -1
  127. package/dist/browser/surfaces/index.js +1 -1
  128. package/dist/browser/surfaces/index.js.map +1 -1
  129. package/dist/browser/surfaces/notice-card-classes.js +16 -0
  130. package/dist/browser/surfaces/notice-card-classes.js.map +1 -0
  131. package/dist/browser/surfaces/person-color.js +34 -4
  132. package/dist/browser/surfaces/person-color.js.map +1 -1
  133. package/dist/browser/v2/accent.js +114 -0
  134. package/dist/browser/v2/accent.js.map +1 -0
  135. package/dist/browser/v2/action-bar.js +125 -0
  136. package/dist/browser/v2/action-bar.js.map +1 -0
  137. package/dist/browser/v2/addresses.js +135 -0
  138. package/dist/browser/v2/addresses.js.map +1 -0
  139. package/dist/browser/v2/announce.js +94 -0
  140. package/dist/browser/v2/announce.js.map +1 -0
  141. package/dist/browser/v2/attach-live.js +280 -0
  142. package/dist/browser/v2/attach-live.js.map +1 -0
  143. package/dist/browser/v2/attach.js +432 -0
  144. package/dist/browser/v2/attach.js.map +1 -0
  145. package/dist/browser/v2/bar-fold.js +405 -0
  146. package/dist/browser/v2/bar-fold.js.map +1 -0
  147. package/dist/browser/v2/behavior/adapter.js +378 -0
  148. package/dist/browser/v2/behavior/adapter.js.map +1 -0
  149. package/dist/browser/v2/behavior/bind.js +43 -0
  150. package/dist/browser/v2/behavior/bind.js.map +1 -0
  151. package/dist/browser/v2/behavior/board.js +184 -0
  152. package/dist/browser/v2/behavior/board.js.map +1 -0
  153. package/dist/browser/v2/behavior/calendar.js +39 -0
  154. package/dist/browser/v2/behavior/calendar.js.map +1 -0
  155. package/dist/browser/v2/behavior/code.js +25 -0
  156. package/dist/browser/v2/behavior/code.js.map +1 -0
  157. package/dist/browser/v2/behavior/controls.js +58 -0
  158. package/dist/browser/v2/behavior/controls.js.map +1 -0
  159. package/dist/browser/v2/behavior/dates.js +8 -0
  160. package/dist/browser/v2/behavior/dates.js.map +1 -0
  161. package/dist/browser/v2/behavior/dnd.js +545 -0
  162. package/dist/browser/v2/behavior/dnd.js.map +1 -0
  163. package/dist/browser/v2/behavior/files.js +43 -0
  164. package/dist/browser/v2/behavior/files.js.map +1 -0
  165. package/dist/browser/v2/behavior/layer.js +3 -0
  166. package/dist/browser/v2/behavior/layer.js.map +1 -0
  167. package/dist/browser/v2/behavior/lists.js +102 -0
  168. package/dist/browser/v2/behavior/lists.js.map +1 -0
  169. package/dist/browser/v2/behavior/menu.js +97 -0
  170. package/dist/browser/v2/behavior/menu.js.map +1 -0
  171. package/dist/browser/v2/behavior/messages.js +200 -0
  172. package/dist/browser/v2/behavior/messages.js.map +1 -0
  173. package/dist/browser/v2/behavior/overlays.js +304 -0
  174. package/dist/browser/v2/behavior/overlays.js.map +1 -0
  175. package/dist/browser/v2/behavior/pickers.js +86 -0
  176. package/dist/browser/v2/behavior/pickers.js.map +1 -0
  177. package/dist/browser/v2/behavior/resize.js +147 -0
  178. package/dist/browser/v2/behavior/resize.js.map +1 -0
  179. package/dist/browser/v2/behavior/segmented.js +17 -0
  180. package/dist/browser/v2/behavior/segmented.js.map +1 -0
  181. package/dist/browser/v2/behavior/select.js +134 -0
  182. package/dist/browser/v2/behavior/select.js.map +1 -0
  183. package/dist/browser/v2/behavior/time-input.js +95 -0
  184. package/dist/browser/v2/behavior/time-input.js.map +1 -0
  185. package/dist/browser/v2/behavior/time-text.js +83 -0
  186. package/dist/browser/v2/behavior/time-text.js.map +1 -0
  187. package/dist/browser/v2/behavior/tip.js +31 -0
  188. package/dist/browser/v2/behavior/tip.js.map +1 -0
  189. package/dist/browser/v2/behavior/toast.js +152 -0
  190. package/dist/browser/v2/behavior/toast.js.map +1 -0
  191. package/dist/browser/v2/behavior/treegrid.js +75 -0
  192. package/dist/browser/v2/behavior/treegrid.js.map +1 -0
  193. package/dist/browser/v2/board-messages.js +70 -0
  194. package/dist/browser/v2/board-messages.js.map +1 -0
  195. package/dist/browser/v2/board.js +471 -0
  196. package/dist/browser/v2/board.js.map +1 -0
  197. package/dist/browser/v2/button-failure.js +90 -0
  198. package/dist/browser/v2/button-failure.js.map +1 -0
  199. package/dist/browser/v2/button.js +174 -45
  200. package/dist/browser/v2/button.js.map +1 -1
  201. package/dist/browser/v2/colors.js +135 -0
  202. package/dist/browser/v2/colors.js.map +1 -0
  203. package/dist/browser/v2/columns-context.js +48 -0
  204. package/dist/browser/v2/columns-context.js.map +1 -0
  205. package/dist/browser/v2/components.js +1761 -428
  206. package/dist/browser/v2/components.js.map +1 -1
  207. package/dist/browser/v2/content.js +1650 -562
  208. package/dist/browser/v2/content.js.map +1 -1
  209. package/dist/browser/v2/control-messages.js +115 -0
  210. package/dist/browser/v2/control-messages.js.map +1 -0
  211. package/dist/browser/v2/controls.js +2391 -336
  212. package/dist/browser/v2/controls.js.map +1 -1
  213. package/dist/browser/v2/danger-zone.js +47 -0
  214. package/dist/browser/v2/danger-zone.js.map +1 -0
  215. package/dist/browser/v2/date-messages.js +61 -0
  216. package/dist/browser/v2/date-messages.js.map +1 -0
  217. package/dist/browser/v2/date-picker.js +405 -0
  218. package/dist/browser/v2/date-picker.js.map +1 -0
  219. package/dist/browser/v2/date-week-window.js +264 -0
  220. package/dist/browser/v2/date-week-window.js.map +1 -0
  221. package/dist/browser/v2/date-weeks.js +30 -0
  222. package/dist/browser/v2/date-weeks.js.map +1 -0
  223. package/dist/browser/v2/day-bar.js +87 -0
  224. package/dist/browser/v2/day-bar.js.map +1 -0
  225. package/dist/browser/v2/describe.js +244 -59
  226. package/dist/browser/v2/describe.js.map +1 -1
  227. package/dist/browser/v2/draft.js +55 -0
  228. package/dist/browser/v2/draft.js.map +1 -0
  229. package/dist/browser/v2/emoji-picker.js +240 -0
  230. package/dist/browser/v2/emoji-picker.js.map +1 -0
  231. package/dist/browser/v2/ends.js +37 -0
  232. package/dist/browser/v2/ends.js.map +1 -0
  233. package/dist/browser/v2/error-screen.js +118 -0
  234. package/dist/browser/v2/error-screen.js.map +1 -0
  235. package/dist/browser/v2/failed.js +90 -0
  236. package/dist/browser/v2/failed.js.map +1 -0
  237. package/dist/browser/v2/figures.js +179 -0
  238. package/dist/browser/v2/figures.js.map +1 -0
  239. package/dist/browser/v2/filter-bar.js +3009 -0
  240. package/dist/browser/v2/filter-bar.js.map +1 -0
  241. package/dist/browser/v2/filter-messages.js +244 -0
  242. package/dist/browser/v2/filter-messages.js.map +1 -0
  243. package/dist/browser/v2/head-search.js +159 -0
  244. package/dist/browser/v2/head-search.js.map +1 -0
  245. package/dist/browser/v2/heat-days.js +91 -0
  246. package/dist/browser/v2/heat-days.js.map +1 -0
  247. package/dist/browser/v2/heat.js +260 -0
  248. package/dist/browser/v2/heat.js.map +1 -0
  249. package/dist/browser/v2/icon.js +48 -0
  250. package/dist/browser/v2/icon.js.map +1 -0
  251. package/dist/browser/v2/index.js +66 -7
  252. package/dist/browser/v2/index.js.map +1 -1
  253. package/dist/browser/v2/layout.js +1815 -275
  254. package/dist/browser/v2/layout.js.map +1 -1
  255. package/dist/browser/v2/list-group.js +57 -0
  256. package/dist/browser/v2/list-group.js.map +1 -0
  257. package/dist/browser/v2/list-query.js +736 -0
  258. package/dist/browser/v2/list-query.js.map +1 -0
  259. package/dist/browser/v2/lookup.js +431 -0
  260. package/dist/browser/v2/lookup.js.map +1 -0
  261. package/dist/browser/v2/marks.js +607 -85
  262. package/dist/browser/v2/marks.js.map +1 -1
  263. package/dist/browser/v2/menu-panel.js +241 -0
  264. package/dist/browser/v2/menu-panel.js.map +1 -0
  265. package/dist/browser/v2/menu.js +797 -0
  266. package/dist/browser/v2/menu.js.map +1 -0
  267. package/dist/browser/v2/nav-drop.js +25 -0
  268. package/dist/browser/v2/nav-drop.js.map +1 -0
  269. package/dist/browser/v2/nav-face.js +16 -0
  270. package/dist/browser/v2/nav-face.js.map +1 -0
  271. package/dist/browser/v2/nav-tree.js +498 -0
  272. package/dist/browser/v2/nav-tree.js.map +1 -0
  273. package/dist/browser/v2/now-line.js +61 -0
  274. package/dist/browser/v2/now-line.js.map +1 -0
  275. package/dist/browser/v2/overlay-messages.js +41 -0
  276. package/dist/browser/v2/overlay-messages.js.map +1 -0
  277. package/dist/browser/v2/overlays.js +431 -0
  278. package/dist/browser/v2/overlays.js.map +1 -0
  279. package/dist/browser/v2/page-layer.js +42 -0
  280. package/dist/browser/v2/page-layer.js.map +1 -0
  281. package/dist/browser/v2/pane-name.js +55 -0
  282. package/dist/browser/v2/pane-name.js.map +1 -0
  283. package/dist/browser/v2/pane-print.js +32 -0
  284. package/dist/browser/v2/pane-print.js.map +1 -0
  285. package/dist/browser/v2/pane-sheet.js +147 -0
  286. package/dist/browser/v2/pane-sheet.js.map +1 -0
  287. package/dist/browser/v2/popover.js +152 -0
  288. package/dist/browser/v2/popover.js.map +1 -0
  289. package/dist/browser/v2/reaction-messages.js +31 -0
  290. package/dist/browser/v2/reaction-messages.js.map +1 -0
  291. package/dist/browser/v2/reactions.js +239 -0
  292. package/dist/browser/v2/reactions.js.map +1 -0
  293. package/dist/browser/v2/row-drag.js +19 -0
  294. package/dist/browser/v2/row-drag.js.map +1 -0
  295. package/dist/browser/v2/section-level.js +9 -0
  296. package/dist/browser/v2/section-level.js.map +1 -0
  297. package/dist/browser/v2/segmented.js +146 -0
  298. package/dist/browser/v2/segmented.js.map +1 -0
  299. package/dist/browser/v2/select-live.js +162 -0
  300. package/dist/browser/v2/select-live.js.map +1 -0
  301. package/dist/browser/v2/setting-messages.js +25 -0
  302. package/dist/browser/v2/setting-messages.js.map +1 -0
  303. package/dist/browser/v2/split-button.js +82 -0
  304. package/dist/browser/v2/split-button.js.map +1 -0
  305. package/dist/browser/v2/states.js +132 -104
  306. package/dist/browser/v2/states.js.map +1 -1
  307. package/dist/browser/v2/status-toolbar.js +23 -0
  308. package/dist/browser/v2/status-toolbar.js.map +1 -0
  309. package/dist/browser/v2/structure.js +331 -156
  310. package/dist/browser/v2/structure.js.map +1 -1
  311. package/dist/browser/v2/testing/index.js +3 -0
  312. package/dist/browser/v2/testing/index.js.map +1 -1
  313. package/dist/browser/v2/testing/measure-v2-layout.js +367 -105
  314. package/dist/browser/v2/testing/measure-v2-layout.js.map +1 -1
  315. package/dist/browser/v2/testing/settled.js +8 -2
  316. package/dist/browser/v2/testing/settled.js.map +1 -1
  317. package/dist/browser/v2/testing/visible.js +14 -0
  318. package/dist/browser/v2/testing/visible.js.map +1 -0
  319. package/dist/browser/v2/toast-host.js +18 -0
  320. package/dist/browser/v2/toast-host.js.map +1 -0
  321. package/dist/browser/v2/toast.js +241 -0
  322. package/dist/browser/v2/toast.js.map +1 -0
  323. package/dist/browser/v2/tokens.js +14 -0
  324. package/dist/browser/v2/tokens.js.map +1 -1
  325. package/dist/browser/v2/tree-messages.js +32 -0
  326. package/dist/browser/v2/tree-messages.js.map +1 -0
  327. package/dist/browser/v2/types.js +51 -4
  328. package/dist/browser/v2/types.js.map +1 -1
  329. package/dist/browser/v2/unsaved-bar.js +225 -0
  330. package/dist/browser/v2/unsaved-bar.js.map +1 -0
  331. package/dist/browser/v2/unsaved-messages.js +65 -0
  332. package/dist/browser/v2/unsaved-messages.js.map +1 -0
  333. package/dist/browser/v2/width-cookie.js +45 -0
  334. package/dist/browser/v2/width-cookie.js.map +1 -0
  335. package/dist/browser/v2/workspace-messages.js +31 -0
  336. package/dist/browser/v2/workspace-messages.js.map +1 -0
  337. package/dist/browser/widgets/Dashboard.js +3 -2
  338. package/dist/browser/widgets/Dashboard.js.map +1 -1
  339. package/dist/ssr/actions/Dropdown.js +2 -1
  340. package/dist/ssr/actions/Dropdown.js.map +1 -1
  341. package/dist/ssr/actions/FilterChip.js +3 -2
  342. package/dist/ssr/actions/FilterChip.js.map +1 -1
  343. package/dist/ssr/actions/SegmentedControl.js +2 -2
  344. package/dist/ssr/actions/SegmentedControl.js.map +1 -1
  345. package/dist/ssr/charts/core/line-details.js +52 -12
  346. package/dist/ssr/charts/core/line-details.js.map +1 -1
  347. package/dist/ssr/charts/core/line-extras.js +122 -0
  348. package/dist/ssr/charts/core/line-extras.js.map +1 -0
  349. package/dist/ssr/charts/core/line-options.js +1 -1
  350. package/dist/ssr/charts/core/line-options.js.map +1 -1
  351. package/dist/ssr/charts/core/snapshot.js +3 -2
  352. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  353. package/dist/ssr/charts/core/svg-barGauge.js +2 -2
  354. package/dist/ssr/charts/core/svg-barGauge.js.map +1 -1
  355. package/dist/ssr/charts/core/svg-common.js +22 -1
  356. package/dist/ssr/charts/core/svg-common.js.map +1 -1
  357. package/dist/ssr/charts/core/svg-renderers.js +2 -2
  358. package/dist/ssr/charts/core/svg-renderers.js.map +1 -1
  359. package/dist/ssr/chat/ChatDecision.js +5 -4
  360. package/dist/ssr/chat/ChatDecision.js.map +1 -1
  361. package/dist/ssr/chat/ChatPrimitives.js +7 -5
  362. package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
  363. package/dist/ssr/content/Calendar.js +410 -323
  364. package/dist/ssr/content/Calendar.js.map +1 -1
  365. package/dist/ssr/content/CalendarDayView.js +122 -49
  366. package/dist/ssr/content/CalendarDayView.js.map +1 -1
  367. package/dist/ssr/content/CalendarWeekView.js +152 -49
  368. package/dist/ssr/content/CalendarWeekView.js.map +1 -1
  369. package/dist/ssr/content/ChartRoot.js +82 -16
  370. package/dist/ssr/content/ChartRoot.js.map +1 -1
  371. package/dist/ssr/content/MarkdownView.js +3 -1
  372. package/dist/ssr/content/MarkdownView.js.map +1 -1
  373. package/dist/ssr/content/ReferenceChip.js +2 -1
  374. package/dist/ssr/content/ReferenceChip.js.map +1 -1
  375. package/dist/ssr/content/calendar-days.js +114 -26
  376. package/dist/ssr/content/calendar-days.js.map +1 -1
  377. package/dist/ssr/content/calendar-event-detail.js +46 -10
  378. package/dist/ssr/content/calendar-event-detail.js.map +1 -1
  379. package/dist/ssr/content/calendar-events.js +107 -0
  380. package/dist/ssr/content/calendar-events.js.map +1 -0
  381. package/dist/ssr/content/calendar-messages.js +28 -2
  382. package/dist/ssr/content/calendar-messages.js.map +1 -1
  383. package/dist/ssr/content/calendar-month-layout.js +89 -5
  384. package/dist/ssr/content/calendar-month-layout.js.map +1 -1
  385. package/dist/ssr/content/calendar-month-scroll.js +2 -1
  386. package/dist/ssr/content/calendar-month-scroll.js.map +1 -1
  387. package/dist/ssr/content/calendar-overflow.browser-suite.js +534 -0
  388. package/dist/ssr/content/calendar-overflow.browser-suite.js.map +1 -0
  389. package/dist/ssr/content/calendar-overflow.js +272 -0
  390. package/dist/ssr/content/calendar-overflow.js.map +1 -0
  391. package/dist/ssr/content/calendar-shared.js +47 -42
  392. package/dist/ssr/content/calendar-shared.js.map +1 -1
  393. package/dist/ssr/content/calendar-snapshot.js +71 -0
  394. package/dist/ssr/content/calendar-snapshot.js.map +1 -0
  395. package/dist/ssr/content/calendar-time-view.js +319 -136
  396. package/dist/ssr/content/calendar-time-view.js.map +1 -1
  397. package/dist/ssr/content/chart-bar.js +3 -3
  398. package/dist/ssr/content/chart-bar.js.map +1 -1
  399. package/dist/ssr/content/chart-calendar.js +2 -1
  400. package/dist/ssr/content/chart-calendar.js.map +1 -1
  401. package/dist/ssr/content/chart-inspection-mount.js +1 -1
  402. package/dist/ssr/content/chart-inspection-mount.js.map +1 -1
  403. package/dist/ssr/content/chart-line-gaps.js +1 -1
  404. package/dist/ssr/content/chart-line-gaps.js.map +1 -1
  405. package/dist/ssr/content/chart-message-catalog.js +6 -0
  406. package/dist/ssr/content/chart-message-catalog.js.map +1 -1
  407. package/dist/ssr/content/chart-state-timeline.js +45 -12
  408. package/dist/ssr/content/chart-state-timeline.js.map +1 -1
  409. package/dist/ssr/content/chart-svg.js +5 -1
  410. package/dist/ssr/content/chart-svg.js.map +1 -1
  411. package/dist/ssr/content/chart-tick-room.js +23 -0
  412. package/dist/ssr/content/chart-tick-room.js.map +1 -1
  413. package/dist/ssr/content/index.js +3 -0
  414. package/dist/ssr/content/index.js.map +1 -1
  415. package/dist/ssr/content/markdown-info-blocks.js +1 -1
  416. package/dist/ssr/content/markdown-info-blocks.js.map +1 -1
  417. package/dist/ssr/content/markdown-links.js +36 -2
  418. package/dist/ssr/content/markdown-links.js.map +1 -1
  419. package/dist/ssr/feedback/prompt-form-loader.js +3 -2
  420. package/dist/ssr/feedback/prompt-form-loader.js.map +1 -1
  421. package/dist/ssr/feedback/toast.js +21 -1
  422. package/dist/ssr/feedback/toast.js.map +1 -1
  423. package/dist/ssr/inputs/AutocompleteSelect.js +2 -1
  424. package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
  425. package/dist/ssr/inputs/ChoiceInputs.js +3 -2
  426. package/dist/ssr/inputs/ChoiceInputs.js.map +1 -1
  427. package/dist/ssr/inputs/ColorChoices.js +2 -1
  428. package/dist/ssr/inputs/ColorChoices.js.map +1 -1
  429. package/dist/ssr/inputs/RichSelect.js +2 -1
  430. package/dist/ssr/inputs/RichSelect.js.map +1 -1
  431. package/dist/ssr/inputs/Select.js +3 -2
  432. package/dist/ssr/inputs/Select.js.map +1 -1
  433. package/dist/ssr/inputs/date-picker.js +9 -0
  434. package/dist/ssr/inputs/date-picker.js.map +1 -1
  435. package/dist/ssr/inputs/markdown/Toolbar.js +6 -1
  436. package/dist/ssr/inputs/markdown/Toolbar.js.map +1 -1
  437. package/dist/ssr/internal/color.js +25 -0
  438. package/dist/ssr/internal/color.js.map +1 -1
  439. package/dist/ssr/internal/pending-loads.js +17 -0
  440. package/dist/ssr/internal/pending-loads.js.map +1 -0
  441. package/dist/ssr/intl/messages.js +16 -0
  442. package/dist/ssr/intl/messages.js.map +1 -1
  443. package/dist/ssr/layout/AppWorkspace.js +6 -0
  444. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  445. package/dist/ssr/layout/DetailSections.js +19 -10
  446. package/dist/ssr/layout/DetailSections.js.map +1 -1
  447. package/dist/ssr/layout/FloatingWindow.js +2 -1
  448. package/dist/ssr/layout/FloatingWindow.js.map +1 -1
  449. package/dist/ssr/layout/Navigation.js +54 -26
  450. package/dist/ssr/layout/Navigation.js.map +1 -1
  451. package/dist/ssr/layout/Panes.js +32 -67
  452. package/dist/ssr/layout/Panes.js.map +1 -1
  453. package/dist/ssr/layout/SidebarSwitcher.js +7 -3
  454. package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
  455. package/dist/ssr/layout/navigation-model.js.map +1 -1
  456. package/dist/ssr/layout/panes-messages.js +0 -4
  457. package/dist/ssr/layout/panes-messages.js.map +1 -1
  458. package/dist/ssr/surfaces/Avatar.js +5 -2
  459. package/dist/ssr/surfaces/Avatar.js.map +1 -1
  460. package/dist/ssr/surfaces/NoticeCard.js +27 -20
  461. package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
  462. package/dist/ssr/surfaces/NoticeRow.js +10 -3
  463. package/dist/ssr/surfaces/NoticeRow.js.map +1 -1
  464. package/dist/ssr/surfaces/index.js +1 -1
  465. package/dist/ssr/surfaces/index.js.map +1 -1
  466. package/dist/ssr/surfaces/notice-card-classes.js +16 -0
  467. package/dist/ssr/surfaces/notice-card-classes.js.map +1 -0
  468. package/dist/ssr/surfaces/person-color.js +34 -4
  469. package/dist/ssr/surfaces/person-color.js.map +1 -1
  470. package/dist/ssr/v2/accent.js +114 -0
  471. package/dist/ssr/v2/accent.js.map +1 -0
  472. package/dist/ssr/v2/action-bar.js +88 -0
  473. package/dist/ssr/v2/action-bar.js.map +1 -0
  474. package/dist/ssr/v2/addresses.js +135 -0
  475. package/dist/ssr/v2/addresses.js.map +1 -0
  476. package/dist/ssr/v2/announce.js +93 -0
  477. package/dist/ssr/v2/announce.js.map +1 -0
  478. package/dist/ssr/v2/attach-live.js +279 -0
  479. package/dist/ssr/v2/attach-live.js.map +1 -0
  480. package/dist/ssr/v2/attach.js +432 -0
  481. package/dist/ssr/v2/attach.js.map +1 -0
  482. package/dist/ssr/v2/bar-fold.js +405 -0
  483. package/dist/ssr/v2/bar-fold.js.map +1 -0
  484. package/dist/ssr/v2/behavior/adapter.js +378 -0
  485. package/dist/ssr/v2/behavior/adapter.js.map +1 -0
  486. package/dist/ssr/v2/behavior/bind.js +43 -0
  487. package/dist/ssr/v2/behavior/bind.js.map +1 -0
  488. package/dist/ssr/v2/behavior/board.js +184 -0
  489. package/dist/ssr/v2/behavior/board.js.map +1 -0
  490. package/dist/ssr/v2/behavior/calendar.js +39 -0
  491. package/dist/ssr/v2/behavior/calendar.js.map +1 -0
  492. package/dist/ssr/v2/behavior/code.js +25 -0
  493. package/dist/ssr/v2/behavior/code.js.map +1 -0
  494. package/dist/ssr/v2/behavior/controls.js +58 -0
  495. package/dist/ssr/v2/behavior/controls.js.map +1 -0
  496. package/dist/ssr/v2/behavior/dates.js +8 -0
  497. package/dist/ssr/v2/behavior/dates.js.map +1 -0
  498. package/dist/ssr/v2/behavior/dnd.js +545 -0
  499. package/dist/ssr/v2/behavior/dnd.js.map +1 -0
  500. package/dist/ssr/v2/behavior/files.js +43 -0
  501. package/dist/ssr/v2/behavior/files.js.map +1 -0
  502. package/dist/ssr/v2/behavior/layer.js +3 -0
  503. package/dist/ssr/v2/behavior/layer.js.map +1 -0
  504. package/dist/ssr/v2/behavior/lists.js +102 -0
  505. package/dist/ssr/v2/behavior/lists.js.map +1 -0
  506. package/dist/ssr/v2/behavior/menu.js +91 -0
  507. package/dist/ssr/v2/behavior/menu.js.map +1 -0
  508. package/dist/ssr/v2/behavior/messages.js +200 -0
  509. package/dist/ssr/v2/behavior/messages.js.map +1 -0
  510. package/dist/ssr/v2/behavior/overlays.js +293 -0
  511. package/dist/ssr/v2/behavior/overlays.js.map +1 -0
  512. package/dist/ssr/v2/behavior/pickers.js +86 -0
  513. package/dist/ssr/v2/behavior/pickers.js.map +1 -0
  514. package/dist/ssr/v2/behavior/resize.js +147 -0
  515. package/dist/ssr/v2/behavior/resize.js.map +1 -0
  516. package/dist/ssr/v2/behavior/segmented.js +17 -0
  517. package/dist/ssr/v2/behavior/segmented.js.map +1 -0
  518. package/dist/ssr/v2/behavior/select.js +133 -0
  519. package/dist/ssr/v2/behavior/select.js.map +1 -0
  520. package/dist/ssr/v2/behavior/time-input.js +95 -0
  521. package/dist/ssr/v2/behavior/time-input.js.map +1 -0
  522. package/dist/ssr/v2/behavior/time-text.js +83 -0
  523. package/dist/ssr/v2/behavior/time-text.js.map +1 -0
  524. package/dist/ssr/v2/behavior/tip.js +31 -0
  525. package/dist/ssr/v2/behavior/tip.js.map +1 -0
  526. package/dist/ssr/v2/behavior/toast.js +152 -0
  527. package/dist/ssr/v2/behavior/toast.js.map +1 -0
  528. package/dist/ssr/v2/behavior/treegrid.js +75 -0
  529. package/dist/ssr/v2/behavior/treegrid.js.map +1 -0
  530. package/dist/ssr/v2/board-messages.js +70 -0
  531. package/dist/ssr/v2/board-messages.js.map +1 -0
  532. package/dist/ssr/v2/board.js +388 -0
  533. package/dist/ssr/v2/board.js.map +1 -0
  534. package/dist/ssr/v2/button-failure.js +90 -0
  535. package/dist/ssr/v2/button-failure.js.map +1 -0
  536. package/dist/ssr/v2/button.js +172 -45
  537. package/dist/ssr/v2/button.js.map +1 -1
  538. package/dist/ssr/v2/colors.js +135 -0
  539. package/dist/ssr/v2/colors.js.map +1 -0
  540. package/dist/ssr/v2/columns-context.js +48 -0
  541. package/dist/ssr/v2/columns-context.js.map +1 -0
  542. package/dist/ssr/v2/components.js +1184 -218
  543. package/dist/ssr/v2/components.js.map +1 -1
  544. package/dist/ssr/v2/content.js +1026 -256
  545. package/dist/ssr/v2/content.js.map +1 -1
  546. package/dist/ssr/v2/control-messages.js +115 -0
  547. package/dist/ssr/v2/control-messages.js.map +1 -0
  548. package/dist/ssr/v2/controls.js +1715 -95
  549. package/dist/ssr/v2/controls.js.map +1 -1
  550. package/dist/ssr/v2/danger-zone.js +28 -0
  551. package/dist/ssr/v2/danger-zone.js.map +1 -0
  552. package/dist/ssr/v2/date-messages.js +61 -0
  553. package/dist/ssr/v2/date-messages.js.map +1 -0
  554. package/dist/ssr/v2/date-picker.js +351 -0
  555. package/dist/ssr/v2/date-picker.js.map +1 -0
  556. package/dist/ssr/v2/date-week-window.js +149 -0
  557. package/dist/ssr/v2/date-week-window.js.map +1 -0
  558. package/dist/ssr/v2/date-weeks.js +30 -0
  559. package/dist/ssr/v2/date-weeks.js.map +1 -0
  560. package/dist/ssr/v2/day-bar.js +52 -0
  561. package/dist/ssr/v2/day-bar.js.map +1 -0
  562. package/dist/ssr/v2/describe.js +244 -59
  563. package/dist/ssr/v2/describe.js.map +1 -1
  564. package/dist/ssr/v2/draft.js +55 -0
  565. package/dist/ssr/v2/draft.js.map +1 -0
  566. package/dist/ssr/v2/emoji-picker.js +182 -0
  567. package/dist/ssr/v2/emoji-picker.js.map +1 -0
  568. package/dist/ssr/v2/ends.js +27 -0
  569. package/dist/ssr/v2/ends.js.map +1 -0
  570. package/dist/ssr/v2/error-screen.js +73 -0
  571. package/dist/ssr/v2/error-screen.js.map +1 -0
  572. package/dist/ssr/v2/failed.js +63 -0
  573. package/dist/ssr/v2/failed.js.map +1 -0
  574. package/dist/ssr/v2/figures.js +101 -0
  575. package/dist/ssr/v2/figures.js.map +1 -0
  576. package/dist/ssr/v2/filter-bar.js +2495 -0
  577. package/dist/ssr/v2/filter-bar.js.map +1 -0
  578. package/dist/ssr/v2/filter-messages.js +244 -0
  579. package/dist/ssr/v2/filter-messages.js.map +1 -0
  580. package/dist/ssr/v2/head-search.js +159 -0
  581. package/dist/ssr/v2/head-search.js.map +1 -0
  582. package/dist/ssr/v2/heat-days.js +91 -0
  583. package/dist/ssr/v2/heat-days.js.map +1 -0
  584. package/dist/ssr/v2/heat.js +145 -0
  585. package/dist/ssr/v2/heat.js.map +1 -0
  586. package/dist/ssr/v2/icon.js +18 -0
  587. package/dist/ssr/v2/icon.js.map +1 -0
  588. package/dist/ssr/v2/index.js +66 -7
  589. package/dist/ssr/v2/index.js.map +1 -1
  590. package/dist/ssr/v2/layout.js +1214 -108
  591. package/dist/ssr/v2/layout.js.map +1 -1
  592. package/dist/ssr/v2/list-group.js +37 -0
  593. package/dist/ssr/v2/list-group.js.map +1 -0
  594. package/dist/ssr/v2/list-query.js +736 -0
  595. package/dist/ssr/v2/list-query.js.map +1 -0
  596. package/dist/ssr/v2/lookup.js +333 -0
  597. package/dist/ssr/v2/lookup.js.map +1 -0
  598. package/dist/ssr/v2/marks.js +331 -24
  599. package/dist/ssr/v2/marks.js.map +1 -1
  600. package/dist/ssr/v2/menu-panel.js +217 -0
  601. package/dist/ssr/v2/menu-panel.js.map +1 -0
  602. package/dist/ssr/v2/menu.js +733 -0
  603. package/dist/ssr/v2/menu.js.map +1 -0
  604. package/dist/ssr/v2/nav-drop.js +25 -0
  605. package/dist/ssr/v2/nav-drop.js.map +1 -0
  606. package/dist/ssr/v2/nav-face.js +16 -0
  607. package/dist/ssr/v2/nav-face.js.map +1 -0
  608. package/dist/ssr/v2/nav-tree.js +436 -0
  609. package/dist/ssr/v2/nav-tree.js.map +1 -0
  610. package/dist/ssr/v2/now-line.js +44 -0
  611. package/dist/ssr/v2/now-line.js.map +1 -0
  612. package/dist/ssr/v2/overlay-messages.js +41 -0
  613. package/dist/ssr/v2/overlay-messages.js.map +1 -0
  614. package/dist/ssr/v2/overlays.js +365 -0
  615. package/dist/ssr/v2/overlays.js.map +1 -0
  616. package/dist/ssr/v2/page-layer.js +41 -0
  617. package/dist/ssr/v2/page-layer.js.map +1 -0
  618. package/dist/ssr/v2/pane-name.js +33 -0
  619. package/dist/ssr/v2/pane-name.js.map +1 -0
  620. package/dist/ssr/v2/pane-print.js +32 -0
  621. package/dist/ssr/v2/pane-print.js.map +1 -0
  622. package/dist/ssr/v2/pane-sheet.js +147 -0
  623. package/dist/ssr/v2/pane-sheet.js.map +1 -0
  624. package/dist/ssr/v2/popover.js +144 -0
  625. package/dist/ssr/v2/popover.js.map +1 -0
  626. package/dist/ssr/v2/reaction-messages.js +31 -0
  627. package/dist/ssr/v2/reaction-messages.js.map +1 -0
  628. package/dist/ssr/v2/reactions.js +200 -0
  629. package/dist/ssr/v2/reactions.js.map +1 -0
  630. package/dist/ssr/v2/row-drag.js +19 -0
  631. package/dist/ssr/v2/row-drag.js.map +1 -0
  632. package/dist/ssr/v2/section-level.js +9 -0
  633. package/dist/ssr/v2/section-level.js.map +1 -0
  634. package/dist/ssr/v2/segmented.js +104 -0
  635. package/dist/ssr/v2/segmented.js.map +1 -0
  636. package/dist/ssr/v2/select-live.js +142 -0
  637. package/dist/ssr/v2/select-live.js.map +1 -0
  638. package/dist/ssr/v2/setting-messages.js +25 -0
  639. package/dist/ssr/v2/setting-messages.js.map +1 -0
  640. package/dist/ssr/v2/split-button.js +66 -0
  641. package/dist/ssr/v2/split-button.js.map +1 -0
  642. package/dist/ssr/v2/states.js +89 -77
  643. package/dist/ssr/v2/states.js.map +1 -1
  644. package/dist/ssr/v2/status-toolbar.js +23 -0
  645. package/dist/ssr/v2/status-toolbar.js.map +1 -0
  646. package/dist/ssr/v2/structure.js +224 -71
  647. package/dist/ssr/v2/structure.js.map +1 -1
  648. package/dist/ssr/v2/testing/index.js +3 -0
  649. package/dist/ssr/v2/testing/index.js.map +1 -1
  650. package/dist/ssr/v2/testing/measure-v2-layout.js +367 -105
  651. package/dist/ssr/v2/testing/measure-v2-layout.js.map +1 -1
  652. package/dist/ssr/v2/testing/settled.js +8 -2
  653. package/dist/ssr/v2/testing/settled.js.map +1 -1
  654. package/dist/ssr/v2/testing/visible.js +14 -0
  655. package/dist/ssr/v2/testing/visible.js.map +1 -0
  656. package/dist/ssr/v2/toast-host.js +18 -0
  657. package/dist/ssr/v2/toast-host.js.map +1 -0
  658. package/dist/ssr/v2/toast.js +222 -0
  659. package/dist/ssr/v2/toast.js.map +1 -0
  660. package/dist/ssr/v2/tokens.js +14 -0
  661. package/dist/ssr/v2/tokens.js.map +1 -1
  662. package/dist/ssr/v2/tree-messages.js +32 -0
  663. package/dist/ssr/v2/tree-messages.js.map +1 -0
  664. package/dist/ssr/v2/types.js +51 -4
  665. package/dist/ssr/v2/types.js.map +1 -1
  666. package/dist/ssr/v2/unsaved-bar.js +183 -0
  667. package/dist/ssr/v2/unsaved-bar.js.map +1 -0
  668. package/dist/ssr/v2/unsaved-messages.js +65 -0
  669. package/dist/ssr/v2/unsaved-messages.js.map +1 -0
  670. package/dist/ssr/v2/width-cookie.js +45 -0
  671. package/dist/ssr/v2/width-cookie.js.map +1 -0
  672. package/dist/ssr/v2/workspace-messages.js +31 -0
  673. package/dist/ssr/v2/workspace-messages.js.map +1 -0
  674. package/dist/ssr/widgets/Dashboard.js +3 -2
  675. package/dist/ssr/widgets/Dashboard.js.map +1 -1
  676. package/dist/styles.css +1 -1
  677. package/dist/tabler.css +1 -1
  678. package/dist/types/actions/SegmentedControl.d.ts +4 -0
  679. package/dist/types/charts/core/line-extras.d.ts +33 -0
  680. package/dist/types/charts/core/line-options.d.ts +3 -0
  681. package/dist/types/charts/core/svg-common.d.ts +49 -2
  682. package/dist/types/content/Calendar.d.ts +14 -2
  683. package/dist/types/content/MarkdownView.d.ts +2 -0
  684. package/dist/types/content/calendar-days.d.ts +52 -2
  685. package/dist/types/content/calendar-events.d.ts +35 -0
  686. package/dist/types/content/calendar-messages.d.ts +13 -0
  687. package/dist/types/content/calendar-month-layout.d.ts +44 -4
  688. package/dist/types/content/calendar-month-scroll.d.ts +2 -1
  689. package/dist/types/content/calendar-overflow.browser-suite.d.ts +37 -0
  690. package/dist/types/content/calendar-overflow.d.ts +30 -0
  691. package/dist/types/content/calendar-shared.d.ts +9 -11
  692. package/dist/types/content/calendar-snapshot.d.ts +28 -0
  693. package/dist/types/content/calendar-time-view.d.ts +37 -12
  694. package/dist/types/content/chart-bar.d.ts +1 -1
  695. package/dist/types/content/chart-inspection-mount.d.ts +1 -1
  696. package/dist/types/content/chart-line-gaps.d.ts +1 -1
  697. package/dist/types/content/chart-message-catalog.d.ts +6 -0
  698. package/dist/types/content/chart-state-timeline.d.ts +20 -0
  699. package/dist/types/content/chart-tick-room.d.ts +8 -0
  700. package/dist/types/content/index.d.ts +3 -0
  701. package/dist/types/content/markdown-links.d.ts +2 -1
  702. package/dist/types/inputs/date-picker.d.ts +2 -0
  703. package/dist/types/internal/color.d.ts +8 -0
  704. package/dist/types/internal/pending-loads.d.ts +8 -0
  705. package/dist/types/intl/messages.d.ts +8 -0
  706. package/dist/types/layout/AppWorkspace.d.ts +5 -0
  707. package/dist/types/layout/DetailSections.d.ts +11 -1
  708. package/dist/types/layout/Panes.d.ts +2 -2
  709. package/dist/types/layout/navigation-model.d.ts +5 -0
  710. package/dist/types/layout/panes-messages.d.ts +0 -2
  711. package/dist/types/surfaces/NoticeCard.d.ts +9 -13
  712. package/dist/types/surfaces/NoticeRow.d.ts +6 -1
  713. package/dist/types/surfaces/index.d.ts +1 -1
  714. package/dist/types/surfaces/notice-card-classes.d.ts +14 -0
  715. package/dist/types/surfaces/person-color.d.ts +27 -4
  716. package/dist/types/v2/accent.d.ts +24 -0
  717. package/dist/types/v2/action-bar.d.ts +37 -0
  718. package/dist/types/v2/addresses.d.ts +26 -0
  719. package/dist/types/v2/announce.d.ts +17 -0
  720. package/dist/types/v2/attach-live.d.ts +21 -0
  721. package/dist/types/v2/attach.d.ts +37 -0
  722. package/dist/types/v2/bar-fold.d.ts +40 -0
  723. package/dist/types/v2/behavior/adapter.d.ts +69 -0
  724. package/dist/types/v2/behavior/bind.d.ts +14 -0
  725. package/dist/types/v2/behavior/board.d.ts +45 -0
  726. package/dist/types/v2/behavior/calendar.d.ts +35 -0
  727. package/dist/types/v2/behavior/code.d.ts +27 -0
  728. package/dist/types/v2/behavior/controls.d.ts +51 -0
  729. package/dist/types/v2/behavior/dates.d.ts +7 -0
  730. package/dist/types/v2/behavior/dnd.d.ts +61 -0
  731. package/dist/types/v2/behavior/files.d.ts +44 -0
  732. package/dist/types/v2/behavior/layer.d.ts +1 -0
  733. package/dist/types/v2/behavior/lists.d.ts +91 -0
  734. package/dist/types/v2/behavior/menu.d.ts +56 -0
  735. package/dist/types/v2/behavior/messages.d.ts +72 -0
  736. package/dist/types/v2/behavior/overlays.d.ts +126 -0
  737. package/dist/types/v2/behavior/pickers.d.ts +62 -0
  738. package/dist/types/v2/behavior/resize.d.ts +57 -0
  739. package/dist/types/v2/behavior/segmented.d.ts +18 -0
  740. package/dist/types/v2/behavior/select.d.ts +73 -0
  741. package/dist/types/v2/behavior/time-input.d.ts +36 -0
  742. package/dist/types/v2/behavior/time-text.d.ts +14 -0
  743. package/dist/types/v2/behavior/tip.d.ts +17 -0
  744. package/dist/types/v2/behavior/toast.d.ts +90 -0
  745. package/dist/types/v2/behavior/treegrid.d.ts +40 -0
  746. package/dist/types/v2/board-messages.d.ts +22 -0
  747. package/dist/types/v2/board.d.ts +79 -0
  748. package/dist/types/v2/button-failure.d.ts +18 -0
  749. package/dist/types/v2/button.d.ts +77 -5
  750. package/dist/types/v2/colors.d.ts +42 -0
  751. package/dist/types/v2/columns-context.d.ts +50 -0
  752. package/dist/types/v2/components.d.ts +375 -29
  753. package/dist/types/v2/content.d.ts +265 -20
  754. package/dist/types/v2/control-messages.d.ts +55 -0
  755. package/dist/types/v2/controls.d.ts +459 -26
  756. package/dist/types/v2/danger-zone.d.ts +23 -0
  757. package/dist/types/v2/date-messages.d.ts +28 -0
  758. package/dist/types/v2/date-picker.d.ts +47 -0
  759. package/dist/types/v2/date-week-window.d.ts +22 -0
  760. package/dist/types/v2/date-weeks.d.ts +11 -0
  761. package/dist/types/v2/day-bar.d.ts +28 -0
  762. package/dist/types/v2/draft.d.ts +36 -0
  763. package/dist/types/v2/emoji-picker.d.ts +10 -0
  764. package/dist/types/v2/ends.d.ts +8 -0
  765. package/dist/types/v2/error-screen.d.ts +59 -0
  766. package/dist/types/v2/failed.d.ts +15 -0
  767. package/dist/types/v2/figures.d.ts +66 -0
  768. package/dist/types/v2/filter-bar.d.ts +111 -0
  769. package/dist/types/v2/filter-messages.d.ts +121 -0
  770. package/dist/types/v2/head-search.d.ts +13 -0
  771. package/dist/types/v2/heat-days.d.ts +44 -0
  772. package/dist/types/v2/heat.d.ts +40 -0
  773. package/dist/types/v2/icon.d.ts +16 -0
  774. package/dist/types/v2/index.d.ts +45 -9
  775. package/dist/types/v2/layout.d.ts +363 -14
  776. package/dist/types/v2/list-group.d.ts +17 -0
  777. package/dist/types/v2/list-query.d.ts +432 -0
  778. package/dist/types/v2/lookup.d.ts +45 -0
  779. package/dist/types/v2/marks.d.ts +247 -16
  780. package/dist/types/v2/menu-panel.d.ts +7 -0
  781. package/dist/types/v2/menu.d.ts +192 -0
  782. package/dist/types/v2/nav-drop.d.ts +16 -0
  783. package/dist/types/v2/nav-face.d.ts +12 -0
  784. package/dist/types/v2/nav-tree.d.ts +66 -0
  785. package/dist/types/v2/now-line.d.ts +19 -0
  786. package/dist/types/v2/overlay-messages.d.ts +18 -0
  787. package/dist/types/v2/overlays.d.ts +105 -0
  788. package/dist/types/v2/page-layer.d.ts +12 -0
  789. package/dist/types/v2/pane-name.d.ts +14 -0
  790. package/dist/types/v2/pane-print.d.ts +8 -0
  791. package/dist/types/v2/pane-sheet.d.ts +9 -0
  792. package/dist/types/v2/popover.d.ts +21 -0
  793. package/dist/types/v2/reaction-messages.d.ts +9 -0
  794. package/dist/types/v2/reactions.d.ts +41 -0
  795. package/dist/types/v2/row-drag.d.ts +6 -0
  796. package/dist/types/v2/section-level.d.ts +6 -0
  797. package/dist/types/v2/segmented.d.ts +36 -0
  798. package/dist/types/v2/select-live.d.ts +7 -0
  799. package/dist/types/v2/setting-messages.d.ts +10 -0
  800. package/dist/types/v2/split-button.d.ts +24 -0
  801. package/dist/types/v2/states.d.ts +31 -18
  802. package/dist/types/v2/status-toolbar.d.ts +13 -0
  803. package/dist/types/v2/structure.d.ts +58 -4
  804. package/dist/types/v2/testing/index.d.ts +3 -0
  805. package/dist/types/v2/testing/measure-v2-layout.d.ts +30 -9
  806. package/dist/types/v2/testing/settled.d.ts +2 -0
  807. package/dist/types/v2/testing/visible.d.ts +9 -0
  808. package/dist/types/v2/toast-host.d.ts +8 -0
  809. package/dist/types/v2/toast.d.ts +47 -0
  810. package/dist/types/v2/tokens.d.ts +13 -1
  811. package/dist/types/v2/tree-messages.d.ts +15 -0
  812. package/dist/types/v2/types.d.ts +38 -3
  813. package/dist/types/v2/unsaved-bar.d.ts +47 -0
  814. package/dist/types/v2/unsaved-messages.d.ts +31 -0
  815. package/dist/types/v2/width-cookie.d.ts +19 -0
  816. package/dist/types/v2/workspace-messages.d.ts +15 -0
  817. package/dist/v2.css +12208 -2043
  818. package/package.json +15 -6
  819. package/skills/k2b-ui/HANDOFF.md +77 -0
  820. package/skills/k2b-ui/SKILL.md +181 -123
  821. package/skills/k2b-ui/gold/code-policy-1440.png +0 -0
  822. package/skills/k2b-ui/gold/code-policy-390.png +0 -0
  823. package/skills/k2b-ui/gold/mail-mailbox-1440.png +0 -0
  824. package/skills/k2b-ui/gold/mail-mailbox-390.png +0 -0
  825. package/skills/k2b-ui/gold/notebooks-note-1440.png +0 -0
  826. package/skills/k2b-ui/gold/notebooks-note-390.png +0 -0
  827. package/skills/k2b-ui/gold/rhythm-after.png +0 -0
  828. package/skills/k2b-ui/gold/rhythm-before.png +0 -0
  829. package/skills/k2b-ui/gold/steps.png +0 -0
  830. package/skills/k2b-ui/images/actions-1440.png +0 -0
  831. package/skills/k2b-ui/images/actions-390.png +0 -0
  832. package/skills/k2b-ui/images/content-1440.png +0 -0
  833. package/skills/k2b-ui/images/content-390.png +0 -0
  834. package/skills/k2b-ui/images/conversations-1440.png +0 -0
  835. package/skills/k2b-ui/images/conversations-390.png +0 -0
  836. package/skills/k2b-ui/images/detail-sheet-1440.png +0 -0
  837. package/skills/k2b-ui/images/detail-sheet-390.png +0 -0
  838. package/skills/k2b-ui/images/dialogs-1440.png +0 -0
  839. package/skills/k2b-ui/images/dialogs-390.png +0 -0
  840. package/skills/k2b-ui/images/files-1440.png +0 -0
  841. package/skills/k2b-ui/images/files-390.png +0 -0
  842. package/skills/k2b-ui/images/filtered-table-1440.png +0 -0
  843. package/skills/k2b-ui/images/filtered-table-390.png +0 -0
  844. package/skills/k2b-ui/images/form-1440.png +0 -0
  845. package/skills/k2b-ui/images/form-detail-1440.png +0 -0
  846. package/skills/k2b-ui/images/form-detail-390.png +0 -0
  847. package/skills/k2b-ui/images/frame-1440.png +0 -0
  848. package/skills/k2b-ui/images/frame-390.png +0 -0
  849. package/skills/k2b-ui/images/home-1440.png +0 -0
  850. package/skills/k2b-ui/images/home-390.png +0 -0
  851. package/skills/k2b-ui/images/list-detail-1440.png +0 -0
  852. package/skills/k2b-ui/images/list-detail-390.png +0 -0
  853. package/skills/k2b-ui/images/mail-1440.png +0 -0
  854. package/skills/k2b-ui/images/mail-390.png +0 -0
  855. package/skills/k2b-ui/images/overview-1440.png +0 -0
  856. package/skills/k2b-ui/images/overview-390.png +0 -0
  857. package/skills/k2b-ui/images/public-page-1440.png +0 -0
  858. package/skills/k2b-ui/images/public-page-390.png +0 -0
  859. package/skills/k2b-ui/images/record-1440.png +0 -0
  860. package/skills/k2b-ui/images/record-390.png +0 -0
  861. package/skills/k2b-ui/images/record-groups-1440.png +0 -0
  862. package/skills/k2b-ui/images/record-groups-390.png +0 -0
  863. package/skills/k2b-ui/images/settings-1440.png +0 -0
  864. package/skills/k2b-ui/images/settings-390.png +0 -0
  865. package/skills/k2b-ui/images/settings-page-1440.png +0 -0
  866. package/skills/k2b-ui/images/settings-page-390.png +0 -0
  867. package/skills/k2b-ui/images/start-1440.png +0 -0
  868. package/skills/k2b-ui/images/start-390.png +0 -0
  869. package/skills/k2b-ui/images/states-1440.png +0 -0
  870. package/skills/k2b-ui/images/states-390.png +0 -0
  871. package/skills/k2b-ui/images/table-1440.png +0 -0
  872. package/skills/k2b-ui/images/table-390.png +0 -0
  873. package/skills/k2b-ui/images/tree-1440.png +0 -0
  874. package/skills/k2b-ui/images/tree-390.png +0 -0
  875. package/skills/k2b-ui/mockup/shoot.mjs +470 -0
  876. package/skills/k2b-ui/mockup/starter.html +607 -0
  877. package/skills/k2b-ui/port/check.mjs +48 -0
  878. package/skills/k2b-ui/recipes/actions.tsx +226 -0
  879. package/skills/k2b-ui/recipes/content.tsx +96 -0
  880. package/skills/k2b-ui/recipes/conversations.tsx +231 -0
  881. package/skills/k2b-ui/recipes/detail-sheet.tsx +87 -0
  882. package/skills/k2b-ui/recipes/dialogs.tsx +146 -0
  883. package/skills/k2b-ui/recipes/files.tsx +468 -0
  884. package/skills/k2b-ui/recipes/filtered-table.tsx +154 -0
  885. package/skills/k2b-ui/recipes/form-detail.tsx +143 -0
  886. package/skills/k2b-ui/recipes/form.tsx +55 -14
  887. package/skills/k2b-ui/recipes/frame.tsx +206 -0
  888. package/skills/k2b-ui/recipes/home.tsx +186 -0
  889. package/skills/k2b-ui/recipes/list-detail.tsx +85 -50
  890. package/skills/k2b-ui/recipes/mail.tsx +96 -59
  891. package/skills/k2b-ui/recipes/overview.tsx +303 -0
  892. package/skills/k2b-ui/recipes/public-page.tsx +315 -0
  893. package/skills/k2b-ui/recipes/record-groups.tsx +129 -66
  894. package/skills/k2b-ui/recipes/record.tsx +91 -47
  895. package/skills/k2b-ui/recipes/settings-page.tsx +269 -0
  896. package/skills/k2b-ui/recipes/settings.tsx +127 -0
  897. package/skills/k2b-ui/recipes/start.tsx +165 -0
  898. package/skills/k2b-ui/recipes/states.tsx +137 -0
  899. package/skills/k2b-ui/recipes/table.tsx +86 -43
  900. package/skills/k2b-ui/recipes/tree.tsx +109 -0
  901. package/skills/k2b-ui/references/gold.md +195 -0
  902. package/skills/k2b-ui/references/list-queries.md +74 -0
  903. package/skills/k2b-ui/references/look.md +468 -0
  904. package/skills/k2b-ui/references/mistakes.md +59 -3
  905. package/skills/k2b-ui/references/mockups.md +260 -0
  906. package/skills/k2b-ui/references/primitives.md +1227 -99
  907. package/skills/k2b-ui/references/recipes.md +425 -11
  908. package/skills/k2b-ui/references/seeing.md +10 -26
@@ -3,8 +3,10 @@
3
3
  Every part marks its root with `data-k2-part="<Name>"`; that name is what
4
4
  `describeV2` prints. No part takes `class`, `style`, `size`, `gap`,
5
5
  `padding` or `density`. Shared types: `Action = { label, icon?, href?,
6
- onNavigate?, onClick?, meta?, forward? }`, `Width = { min, default }` (px), `Status =
7
- "ok" | "warn" | "bad"`, `Person = { name, initials?, color? }`. Icons are
6
+ onNavigate?, onClick?, meta?, forward?, disabled?, items? }` (`items`: further choices, such as
7
+ "Später" with its times: the action is then a menu button, and a submenu where a bar folds it into
8
+ its "…"), `Width = { min, default }` (px), `Status =
9
+ "ok" | "warn" | "bad"`, `Person = { name, initials?, color?, image? }` (`image` is the address of a picture). Icons are
8
10
  Tabler names without `ti-` (`plus`, `package`).
9
11
 
10
12
  **Links that open in place.** Every `href` stays a real `<a href>`: it works
@@ -25,30 +27,153 @@ The working surface of an app: one per screen.
25
27
  - `sidebar` (usually `Nav`), `sidebarWidth` (default 200–248), `sidebarLabel`
26
28
  (name of its grip).
27
29
  - `head`: a `Bar` across the main column (56 px).
28
- - `primary`: the main `Action`. It floats bottom right on the phone only;
29
- also put the same action as `Button variant="primary"` in the head end.
30
- - children: a `Pane` or a `Pane.Split`.
31
- - Phone (< 768 px): the sidebar leaves, head actions hide unless `keep`.
30
+ - `top`: the page as a whole across every column, under the head and
31
+ above a list and its open detail alike (a mirror's figure, its last sync
32
+ and its exceptions; a `Band` or a port's `Canvas`). It keeps its place
33
+ when a detail opens or closes; a line parts it from the columns. On the
34
+ phone it scrolls away with the list and gives way while a detail is the
35
+ page.
36
+ - `primary`: the `Action` that floats bottom right on the phone only (one
37
+ per page). Which action it is follows one rule: on a list, creating
38
+ something new, which also stands as `Nav primary` (an icon button beside
39
+ the app's name), never as a button in a head; while an object is open,
40
+ its main deed, which also stands as the one filled `Button
41
+ variant="primary" floats` in the object's head, so the head lets it go on
42
+ the phone.
43
+ - children: a `Pane` or a `Pane.Split`, written as JSX inside the Workspace
44
+ (a pane made before it, kept in a variable, is not counted).
45
+ - `plain`: no card around the content (no surface, edge or corners, no line
46
+ under the head); for a page of tiles that are cards of their own, such as a
47
+ start page's `Board`, on the page background (`Layout surface={false}` in
48
+ Cloud).
49
+ - `accent={pageAccent(color)}`: the page's own colour from data (`#rrggbb`
50
+ or `#rgb`), such as the colour a place chose for its visitor page;
51
+ `pageAccent` is a part of its own, so a page without an accent loads none
52
+ of its contrast work. It replaces the app's
53
+ colour inside: the primary action, the open row's tint, `Text` and `Band`
54
+ `tone="app"`, and `RangeBar`s without `stops` (quiet tone, the open row's
55
+ bar in the ink). The tones are computed where the colour arrives, on the
56
+ server too: the primary's words are white or near-black, whichever keeps
57
+ 4.5:1 (a colour where neither does is darkened until white does); as text
58
+ the colour is darkened (light) or lightened (dark) until it keeps 4.5:1 on
59
+ the surface and on its tint; bars keep 3:1, also on a chosen row's blue
60
+ tint; a primary that would vanish on the surface (a pale yellow on white)
61
+ gets an edge of its colour at 3:1. Focus rings and states keep
62
+ their colours. Any other value leaves the app's colour. Dialogs and menus
63
+ rendered outside the Workspace keep the app's colour. For an `Avatar` or
64
+ `Mark` in the accent, pass `color: "var(--k2-app-text)"` (the accent's ink
65
+ of the theme).
66
+ - `detail` (`true` or the detail's minimum, default 400) when a detail opens
67
+ beside the columns; `detailEmpty={{ icon, text }}` stands in its place while
68
+ none is open, so nothing moves when it opens. Keep the list's `width`.
69
+ `detailEmpty.hero` stands above its sentence: a picture of the place as a
70
+ whole, such as a `Heat` with a line that sums it up.
71
+ - Tablet: where the sidebar at its default does not fit beside every column
72
+ at its minimum, it becomes a drawer with a button at the start of the head.
73
+ - Phone (< 768 px): the sidebar leaves, every head action stays; only the
74
+ `floats` twin of `primary` leaves the head. In a head narrower than
75
+ 600 px, an action with a symbol and words keeps only its symbol (its
76
+ words stay its name), a worded `Menu` with a symbol too, without its
77
+ chevron.
78
+ A search in the head (`Input type="search"`) stays as its symbol; a tap
79
+ goes into the field, which opens over the head while it has the focus
80
+ and folds back, its words kept, on blur or Escape. A host that offers the
81
+ page's search in a bar of its own (the Cloud shell's phone bar) marks the
82
+ v2 scope with `data-k2-host-search`: the folded search then leaves the head
83
+ to its tabs and the Tab key's order on the phone, and the host focuses the
84
+ field from its bar (a head with a path opens it over the first row).
85
+ - In the browser: the frame is server markup, and one frame entry per page
86
+ brings what it needs. `attachWorkspaces()` binds the drawer of the sidebar,
87
+ its collapse (`collapsible`: the button at the end of the first `Nav`'s
88
+ title row hides the sidebar, the head's button at its start brings it
89
+ back, Mod+Alt+S does both), the grips of its seams and tables
90
+ and the folds of the `Nav`, and answers `Dialog.confirm` and `useToast`; the
91
+ drawer, the alert dialog and the toaster load on their first use, a grip
92
+ when the pointer or the focus reaches it. A `Table` with column widths
93
+ stands inside the Workspace, or its column grips do nothing. A command of
94
+ the page, such as "Hide navigation" in a search, calls
95
+ `toggleWorkspaceSidebar()`: it does what the button and Mod+Alt+S do. What
96
+ takes a function (a `primary` or `Nav` entry with `onClick`, a group menu)
97
+ works only inside an island; give it an `href` to keep it server markup. A
98
+ Cloud page with `ui: "v2"` has the entry; a standalone app renders one
99
+ `.client.tsx` on the page:
100
+ `export default () => { onMount(() => onCleanup(attachWorkspaces())); return null; }`.
32
101
 
33
102
  ### Pane
34
103
 
35
104
  A column that scrolls, with no padding: everything in it reaches both edges.
36
105
 
37
- - `head` (a `Bar` or `Tabs`), `status` (a `StatusRow`), `label`.
106
+ - `head` (a `Bar` or `Tabs`), `status` (what stays under the head while
107
+ the column scrolls: a `StatusRow` of 52 px above a list, or a `Bar` of 40 px
108
+ with the state of an open entry above a reader), `label`.
38
109
  - `width={{ min, default }}`: only inside `Pane.Split`; puts a grip on its
39
- line.
110
+ line. A drag or the keys (arrows 8 px, Shift 64 px, Home and End to the
111
+ limits, Enter or a double click back to the default) move the width; a reload starts at the
112
+ default again. The sidebar's grip works the same. A grip shows only under the
113
+ pointer, on keyboard focus and while dragged (on touch screens it stays).
114
+ `width={{ fixed }}` keeps one width without a grip, for a page to read
115
+ rather than to arrange (a visitor page, a wall screen).
40
116
  - `detail`: the reader beside a list. What is open belongs in the address:
41
117
  render the detail only while the address names an entry. On the phone
42
- the detail is the page.
118
+ the detail is the page, and the title in its head is never cut: beside the
119
+ actions the head keeps it takes a second line.
43
120
  - `back` (an `Action` with `href`: the list's address without the open
44
121
  entry, such as "Posteingang"): the way back on the phone, one bar above
45
- the detail (the part `Back`). A long name (a search) is cut with "…" on
122
+ the detail (the part `Back`). Mark the head's close × `closes`: with
123
+ `back` it gives way on the phone, so the detail has one way back. A long name (a search) is cut with "…" on
46
124
  one line; the whole name stays its accessible name and its hint. A detail
47
125
  that closes in place returns the focus to the row that opened it.
126
+ - `phone="sheet"` (with `detail` and `back`): on the phone the detail opens
127
+ as a sheet over what it belongs to (a note's details) instead of a page of
128
+ its own; that stays in sight, dimmed, with its head. The sheet starts 14 px
129
+ below the top with a grip and scrolls inside; a swipe down, a tap on the
130
+ dimmed content, Escape and the head's × (`closes`, which stays) take `back`,
131
+ and the focus stays inside while it is open. On a wide screen it is the
132
+ detail beside as before. Recipe: `detail-sheet.tsx`.
133
+ - `ownHead`: the content brings the pane's identity head itself (a
134
+ ported head with the item's name and facts), so the way back carries
135
+ itself alone ("‹ Planning") and the name stands once, in that head.
136
+ Without it a pane with no `head` names itself after the way back.
137
+ - `wideBack`: the way back shows on a wide screen too, for a page that
138
+ stands in the place of another one, not beside a list (a discussion in
139
+ the place of its room's stream: "‹ Frühlingsausstellung").
48
140
  - `scrollKey` (such as "mail-list"): back and forward bring the column
49
141
  back to where it was scrolled.
50
- - `side`: the info column of a record; quieter sections, a `more` link
51
- becomes a row.
142
+ - `side`: the context column (the info column of a record, what a form
143
+ feeds, a chart beside a table); quieter sections, a `more` link becomes a
144
+ row. In a `Pane.Split` of exactly one main column and this context column
145
+ after it, the context stands beside only where the split holds both at
146
+ their default widths (400 px without a `width`). With less it gives way
147
+ to the end of the main column, at its full width, and the split scrolls
148
+ in one piece: the main column is never squeezed and nothing hides; it
149
+ needs no room of the workspace, so the sidebar never becomes a drawer for
150
+ it. `side={{ from: 1400 }}` asks for more room, in px of the split, for a
151
+ main column that needs it (a table: beside only on a large screen). In
152
+ any other split (a list, its reader and an info column) it stands beside
153
+ as every column does. Put `side` on the inner column only: an outer
154
+ `Pane detail` with `side` becomes the list's context column and moves
155
+ under the list. A split with no measuring place above it (in a dialog, a
156
+ sidebar, outside a `Workspace`) never gives way.
157
+ - A detail that grows on a large screen is the same part: under the
158
+ detail's one `head` (and what spans both, such as a hero band), a
159
+ `Pane.Split` of what it is (a `Pane`) and who and what happened (a `Pane
160
+ side`, `width={{ min: 280, default: 320 }}`). It stands in two columns
161
+ from 720 px of the detail (a window of ~1680 px beside a list of 640 px)
162
+ and in reading order below that.
163
+ - `center`: the content stands in the middle of the column, across at its
164
+ own measure (at most four cards of 240 px with their gaps) and in the
165
+ middle of the height where it fits; taller content starts at the top and
166
+ scrolls, and on the phone it always starts at the top. Only for a page
167
+ with little on it and nothing beside it, such as the first start of an
168
+ app without data: one `Text type="lead"` line and `Tiles perRow={4}` with
169
+ the ways to start, without a sidebar. An app with one way to start puts
170
+ its primary `Button` in an `Inline` under the line instead of cards. The
171
+ line and the buttons stand centred, on the phone at the start. A
172
+ `Section` under them (a few entries, such as what is still being
173
+ deleted) keeps the start block's measure: its content 920 px across,
174
+ centred. No line or
175
+ box of its own; CSS
176
+ alone, so the server's first render already stands there.
52
177
  - children: bands, sections, groups, lists, tables, notices, `Text`.
53
178
 
54
179
  ### Pane.Split
@@ -58,62 +183,214 @@ grip where a pane has `width`. A `Pane.Split` may stand inside a `Pane`
58
183
  under that pane's `Tabs` head, after content that spans both columns (see
59
184
  `record.tsx`).
60
185
 
61
- Until v2 has a `Dialog`, a screen "with the dialog open" shows the dialog's
62
- form as one more `Pane detail` at the end of the split: a head `Bar` with
63
- its title and a close button, `Band`s of fields, a footer `Bar`. Mark it
64
- with a `k2b-ui gap` comment. `detail` makes it leave on the phone, where the
65
- form is its own route. Its confirm button is a default (framed) button: the
66
- page's one primary stays in the head, and `Workspace primary` must never
67
- confirm a dialog. When the list beside it is a table, give the dialog pane
68
- a `width` so the table keeps its columns.
186
+ A short task above the page is a `Dialog` (see "Overlays"), not one more
187
+ pane; `Workspace primary` never confirms a dialog.
188
+
189
+ ### Seam
190
+
191
+ The seam between two columns that a layout of its own places, such as the
192
+ grid of a `SearchDialog`: `label`, `value` (the px width of the column
193
+ before it), `onChange`, `min`, `reset` (the default) and `max(row)` (the
194
+ most now, such as 55 % of the row). The grip of `Workspace` and
195
+ `Pane.Split`: a drag, the arrows (8 px, Shift 64), Home and End, and Enter or
196
+ a double click back to `reset`. Inside `Workspace` use `Pane width` instead.
69
197
 
70
198
  ### Bar
71
199
 
72
200
  A bar of fixed height with one line below: `start`, `end`. Height comes
73
- from the place: 56 as a head, 52 as a status row, 40 inside a pane. Put
201
+ from the place: 56 as a head, 52 as a status row, 40 inside a pane. Its
202
+ controls take their size from it too: 28 px inside a pane (also a bar in
203
+ markup ported from a mockup, such as a head's edge row with "‹ ›"), with
204
+ a hit area of 44 px on a touch screen. Below 768 px, text-entry fields
205
+ are 44 px high with 16 px text. A bar in the content flow makes room for them;
206
+ heads, status rows and footers keep their frame heights. A folded search keeps
207
+ its 36 px icon width. Button-only bars keep their height. There is no size prop. Put
74
208
  `Text`, `Tabs`, `RecordHead`, `Inline`, `Button`s, `Avatar` in it. Text in
75
209
  a bar is cut to one line. Inside a pane a bar stands at the top (a line of
76
210
  state under the head, as in `mail.tsx`) or directly after the fields it
77
- serves (the buttons of a form or of a reply), never between entries. In a
211
+ serves (the buttons of a form or of a reply), never between entries. A line
212
+ of state that must stay while the reader scrolls goes into the pane's
213
+ `status` instead (40 px, as in `mail.tsx`). In a
78
214
  column narrower than 480 px, a bar inside a pane whose `start` is an
79
215
  `Inline` wraps: its things and its `end` flow as one line, one line stays
80
- 40 px, and only a second line makes the bar higher. A head and a status row
81
- keep their height.
216
+ 40 px, and only a second line makes the bar higher; a bar in `status` too.
217
+ A head and a status row keep their height.
218
+
219
+ The `start` keeps a least: its name at `--k2-start-least` (16ch, or all
220
+ of it, where it is narrower), or its open tab. Where the `end` does not fit beside the whole
221
+ `start` (six kept actions beside tabs on the phone), the end folds first:
222
+ its buttons that do not fit move into a menu "…" at its end, in their
223
+ order, the last first. If the end's last plain `Menu` "…" (no icon or
224
+ label of its own) is followed only by parts that never fold (a closing ×,
225
+ the primary), they are its first section; no second "…" stands beside it.
226
+ An end made outside the `Bar` (a helper's JSX, an island of its own)
227
+ cannot offer its "…": the bar then shows its own, "Mehr in dieser Leiste". The primary action, a
228
+ closing ×, a `Menu`, a search and a button that opens a menu never fold.
229
+ People shown in the end (an `Avatar` that is no button) give way with the
230
+ buttons, unlisted. Only when nothing more can fold does the `start` shorten
231
+ with "…", down to its least, never to nothing; in a workspace's head its tabs
232
+ go first, whole tab by whole tab into "Mehr", and its title last. The browser measures the fold once the
233
+ page is alive; before that the bar stands as it does when nothing folds
234
+ (the end whole, the start given way down to its least), so the server's
235
+ page is the live one wherever nothing folds. Only an end that has to fold
236
+ cuts, from its start, until the fold takes over.
82
237
 
83
238
  ### Band
84
239
 
85
240
  A block of free height with one line below. `tone`: `note`, `ai`, `yours`,
86
- `bad`, `warn` (meaning only). Holds `Text`, `Row`, `Prose`, `Tiles`,
87
- fields. A message in a thread is one `Band`.
241
+ `bad`, `warn`, `app` (the app's tint, for the one statement that belongs to
242
+ it, such as a hero without a picture above it) (meaning only). Holds `Text`, `Row`, `Prose`, `Tiles`,
243
+ fields. An email message in a reader is one `Band`; chat bubbles follow `conversations.tsx`. `print`: the band alone prints,
244
+ without the page around it and without a script, such as a legal text.
88
245
 
89
246
  ### Cells and Cells.Cell
90
247
 
91
248
  2–4 equal cells with a line between; stacked on the phone. A cell:
92
249
  `icon`, `color` (data colour of its area), `label`, `value`, `meta`,
93
- `href` (adds a chevron). Use for the key statements of a record.
250
+ `href` (adds a chevron), `trend` (a `Spark` at the end of the value, such
251
+ as orders per day this week), `loading` (a bar lies on value and `meta`;
252
+ what is there keeps its room unseen under it, a value not there yet is one
253
+ line; symbol and label stay, a `trend` keeps its place unseen). Use for the
254
+ key statements of a record or the home of a place.
255
+
256
+ ### Figures
257
+
258
+ The head of a page whose question is a number ("311 Serverfehler",
259
+ "192 Konten"): `value`, `label` and `meta` (under it), `tone="app"`,
260
+ `trend` (56 px bars beside it, `label` between `from` and `to` under
261
+ them, `status`), `figures`
262
+ (up to three `{ label, value, unit?, status?, link?, wide? }` at the end,
263
+ 24 px each side of a line; `wide` leaves in a pane under 1180 px; in a
264
+ pane under 600 px the rest share equal columns under the main figure). Only where the figure answers
265
+ the page's question, once per screen, at the top; never decoration.
266
+ `Figures.List` (`figures`, `label`) is the figures alone, for a statement
267
+ a ported screen draws in its `Canvas`: put it at the end of that row.
94
268
 
95
269
  ### Tiles
96
270
 
97
271
  Like things to press, such as attachments: `items: { icon, title, meta?,
98
- href? }[]`, `more` (an action after them), `label`. Never nested.
272
+ href?, onNavigate?, color?, copy?, menu? }[]`, `more` (an action after them), `label`.
273
+ Never nested. With `color` the symbol becomes the thing's `Mark`. A plain
274
+ tile carries its own deeds at its end: `copy: { label, value }` (a copy
275
+ button, such as for an endpoint's address) and `menu` (its further deeds
276
+ behind a "…" named for the tile); the name gives way before them.
277
+
278
+ `variant="media"`: photos, pages and videos in a grid of at least 160 px.
279
+ A tile adds `image` (its picture, 4:3), `kind` (`PDF`, a video's length),
280
+ `people` (the first is the owner, 16 px), `sign` (`{ icon, label }` at the
281
+ end of its quiet line, such as the sharing state) and `key`. `select: {
282
+ selected, onChange(key, on) }` puts a box on each picture; it shows under
283
+ the pointer, with the focus, on touch, and on all tiles while one is
284
+ selected; a selected tile is blue with a line inside its edge.
285
+ `perRow={n}`: at most n tiles share a row and grow with its width; a tile
286
+ never gets narrower than 240 px for it. Where n do not fit, a row holds
287
+ half of them (four as 2 × 2, never 3 + 1), and below that one under the
288
+ other. On the phone a row always holds half of them, even below 240 px,
289
+ and a card's name there takes a second line before it is cut; it breaks
290
+ between words only, and a name of one word that does not fit ends in
291
+ "…". A card with a `preview` (a way to start) names itself in medium
292
+ weight, as the approved first start.
293
+
294
+ `variant="card"`: each thing a card in a grid (at least 240 px a card) for
295
+ an overview of things with a face, such as the bases of Grids. A card
296
+ adds `stats` (`{ icon?, label, status?, yours? }`: "6 Tabellen", "8 knapp"
297
+ in `warn`), `people` (an `Avatar.Stack` at the foot), `foot` (quiet words
298
+ at its end: "Felix · vor 2 Min") and `trend` (a `Spark` at the top end, in
299
+ the card's colour), `preview` (a glance of what it holds across its top,
300
+ 112 px, 84 px on the phone: `{ table: { columns, rows } }` as a small
301
+ table of words (a column `{ label, align: "end" }` for amounts), two columns on the phone, `{ page: { title, text? } }`, or
302
+ `{ icon }` for a thing that holds nothing yet; it is a picture, the card
303
+ keeps its name; keep its values short, about 12 characters a cell, so
304
+ nothing is cut at 1440 or on the phone: leave out what does not fit; the
305
+ phone shows a table's first two columns, so an amount comes second). The whole card opens its `href`. `create` adds the last
306
+ card that makes a new thing: dashed, `title`, `meta`, `href` or `onClick`,
307
+ and `choices` as round chips (templates). Cards hold no box and no line.
308
+ Among media, `create` is the last tile too: a dashed picture with a plus,
309
+ then its `title` and `meta` ("Neuer Ordner", "oder Dateien hierher
310
+ ziehen").
311
+
312
+ ### Board
313
+
314
+ Tiles of an overview that the person arranges, such as the widgets of a
315
+ start page: `tiles: { id, size, title, source?, icon, color?, href?,
316
+ sizes?, onSettings? }[]`, `label`, and the content of a tile as the
317
+ children function `(tile) => …` (a `List`, `Facts`, `Text` or a state).
318
+ `small` is one column, `medium` two, `large` two by two; a row is 172 px
319
+ (a tile's list rows are 38 px, three to a row height);
320
+ four columns from about 960 px, two below; on the phone medium and large
321
+ take the whole width, two small stand side by side, each as high as its
322
+ content. `arrange={{ onOrder, onSize, onRemove, disabled? }}` arranges it:
323
+ grip, sizes S M L, "Einstellen" (`onSettings`), ← → ×; drag at the grip
324
+ or Space, arrows, Space on a tile; Delete removes. The board keeps no order
325
+ of its own: save what `arrange` reports. `onArrange`: a long press asks
326
+ to arrange. `empty: { icon, title, text, action? }` stands in its room when
327
+ it has no tiles; `foot` (an `Inline`) under the tiles. Stands directly in a
328
+ `Pane`. `BoardSizes` is the S M L choice alone, for a gallery row.
99
329
 
100
330
  ### Canvas
101
331
 
102
332
  The only place for own drawing and own CSS (a map, a chart). `label`
103
333
  (required), `height` in px. It must stand directly in a primitive
104
334
  (`<Band><Canvas …/></Band>` or directly in a `Pane`), never as a
105
- component's root and never in a plain element.
335
+ component's root and never in a plain element. A `Chart` of `@k2b/ui`
336
+ fills it (`style={{ height: "100%" }}`) with `v2.css` alone. A `Calendar`
337
+ of `@k2b/ui` in a `Canvas` lies flat: no edge or corners of its own, never a
338
+ card in the screen; write no CSS for that. While the
339
+ drawing loads, fails or has no data, put `Loading`, `Failed` or `Empty`
340
+ inside the `Canvas`: with a `height` it keeps that height, so nothing
341
+ moves. `height="fill"`: the drawing is the whole pane (an editor, a frame
342
+ of another page). Directly in its `Pane`, it takes the height left under
343
+ head and status by layout alone, from the first render (never measure it
344
+ in a script); below 240 px the pane scrolls. In a `Pane.Split` on the
345
+ phone, where the panes stand one under the other, its pane takes the
346
+ height that is left, so the drawing still fills it. The pane asks only for
347
+ the drawing's 240 px, never for what the drawing holds: one drawing that
348
+ asks for no height of its own (a chat column) takes the whole height, and
349
+ what is taller (its history) scrolls inside it, the composer stays in sight.
350
+ No absolute positioning is needed. A fill `Canvas` holds one child, the
351
+ drawing: a second child stands in a row of its own under it and is cut away.
352
+
353
+ ### Cover
354
+
355
+ A picture across its place, such as a place's banner: `src`, `alt` (what
356
+ it shows; `""` when it is decoration above the place's name), `slim`
357
+ (above a task such as a form: 72 to 88 px instead of 120 to 180 px).
358
+ Directly in a `Pane`, at the top of a page or a detail, from edge to edge,
359
+ `object-fit: cover`. The height follows the place's width by CSS alone (a
360
+ third, 120 to 180 px; slim a sixth), so the server's page holds the room
361
+ and nothing moves when the picture comes; a quiet tint fills it while it
362
+ loads and when it fails. No `src`: no cover, never an empty band.
106
363
 
107
364
  ## Structure
108
365
 
109
366
  ### Section
110
367
 
111
368
  A titled part: `icon`, `color` (icon on a tinted tile), `title`, `count`,
112
- `actions` (≤ 2 text buttons in the head), `summary` (one sentence),
113
- `more` (one link at the end: "All deliveries ›"; its `meta` shows only in a
114
- `Pane side`, where the link becomes a row), children. No line under
115
- the head or between entries, one line at the end. Put `Row`s directly in a
116
- section, or a `Digest`, `Facts`, `Group`s.
369
+ `meta` (a quiet note after the count, such as the day of a day list:
370
+ "Today 5 Mon 30 Nov"; cut with "…" before the deeds where the line has no
371
+ room), `actions` (≤ 2 text buttons in the head), `summary` (one sentence),
372
+ `measure` (its head, sentence and rows keep the reading measure of `Prose`,
373
+ 720 px of text, so a short list in a wide pane stays together; its line
374
+ still reaches the column's edges), `more` (one link under the rows, its
375
+ words on their text edge, never at the right: "All deliveries ›"; its
376
+ `icon` replaces the chevron, `chevron-up` for "Show fewer"; its
377
+ `meta` shows only in a
378
+ `Pane side`, where the link becomes a row), `id` (an anchor for a link
379
+ such as `/me#screen`), `level` (its heading: `h2` on a page, under the
380
+ page's one `h1`, and `h3` in a `Dialog`, whose title is the `h2`; pass `3`
381
+ where a pane's own head names its thing with an `h2`, such as a details
382
+ panel), children. No line under
383
+ the head or between entries, one line at the end that separates it from
384
+ what follows; the last section of a pane has nothing below it and draws
385
+ none. The section owns that line, so a
386
+ `Bar`, a `Notice`, `Cells` or a `Table` in it draw none of their own, and a
387
+ `Notice` that ends it meets its line. A long title (a
388
+ question, a name) wraps onto more lines and the head grows with it; no word
389
+ is cut. Put `Row`s directly in a section, or a `Digest`, `Facts`, `Group`s.
390
+ A section of a list that people fold (Chat's sections) takes `open` and
391
+ `onOpenChange`: a chevron at the end of its head folds it, the app keeps the
392
+ state, and the section keeps its head, rhythm and line, without a frame (a
393
+ `Group` is a framed thing, not a part of a list).
117
394
 
118
395
  ### Group
119
396
 
@@ -121,8 +398,8 @@ What belongs together, framed: `icon`, `color`, `title`, `count`, `meta`
121
398
  (head grows to 56), `state` (a `Chip`; for a running state such as "Läuft"
122
399
  `state={<Text weight="medium"><Icon name="gavel" /> Läuft</Text>}`; or an amount),
123
400
  `actions` (text buttons),
124
- `menu` (more deeds behind "…"), `folded` (head only, with a chevron),
125
- children. No line inside; never a `Group` in a `Group`, and never in a
401
+ `menu` (more deeds behind "…"), `folded` (starts as head only; its
402
+ chevron opens and closes it in place), children. No line inside; never a `Group` in a `Group`, and never in a
126
403
  `Band` (the band's line would cut the frame). Groups stand in a `Section`
127
404
  or directly in a `Pane`. A group's way (arrived → … → paid) is `Steps`
128
405
  inside it.
@@ -131,11 +408,35 @@ inside it.
131
408
 
132
409
  ### List and Row
133
410
 
134
- `List` holds `Row`s (`label` names it). A `Row`:
411
+ `List` holds `Row`s (`label` names it; `color` is the colour of the app the
412
+ rows belong to, for the tint of the open row, the page's app
413
+ by default). Rows part with the quiet line (`--k2-hairline-subtle`); the
414
+ clear line (`--k2-hairline`) only separates two things: a head and its
415
+ content, a list and its detail, one section and the next. `ListGroup`
416
+ (`label`, `count`, optional `action`) stands between rows of one long list in parts of one
417
+ kind ("Heute 20", "Personen 14"): a head in the row's type with its count
418
+ quiet beside it, the clear line and no line under it. The current CSS has
419
+ 16/6 padding around its 20 px line plus a 1 px border (43 px); the first
420
+ head is 38 px, with 12 px top padding and no border. It has no fixed-height
421
+ prop. `action` is one quiet text action after the name and count, on their
422
+ baseline, sized by the place like a text action in `Tools`. Mockups keep
423
+ heads at 43 px and measure text-edge ratios (look rule 6); name the height gap.
424
+ Parts read on their own are `Section`s. A `Row`:
135
425
 
136
426
  - `lines`: 1–3 texts. 1 line 40 px, 2 lines 52 px (second quiet), 3 lines
137
427
  72 px (mail: sender, subject, preview).
138
- - lead: `icon` + `color`, or `avatar`, or a dot when `unread`.
428
+ - lead: `mark` (the thing's `Mark`: a base, a file with its thumbnail, a
429
+ table; 24 px, 32 in a list that shows pictures of its things (a mark
430
+ with `image` or `kind`, and the folders beside them); a row with a mark
431
+ is 44 px, on the phone 56 with a mark of 40), or `avatar`, or
432
+ `state: { status, label }` (a run or a job: the dot of its state, `app`
433
+ for running, named by `label` for assistive technology), or a
434
+ quiet `icon` for a plain place or deed (`iconColor` gives it the data
435
+ colour of what it belongs to, such as a date in its place's green: the
436
+ symbol alone, no tile, 3:1 to the surface in light and dark), or a dot
437
+ when `unread`.
438
+ `badge: { icon, label }` sets a small symbol on the lead's bottom right,
439
+ such as a pin on a pinned chat's face, in place of a mark by the name.
139
440
  - `meta` (quiet note after the title, a count), `time` (top right). Title
140
441
  and `meta` share the first line in equal parts, and each takes only what
141
442
  it needs: a count or a number stays whole, a long note is cut with "…",
@@ -143,14 +444,82 @@ inside it.
143
444
  - `marks` (chips, icons, avatars bottom right): use them with 3 lines; on a
144
445
  2-line row they add a third line. The third line shares its width with
145
446
  the marks, so keep it a preview text that may be cut, never an amount.
146
- - `action` (one framed button at the end; under the text on the phone),
447
+ - `states` (chips that must be read whole, such as the checks of a domain:
448
+ colour, symbol, word): under the lines on the title's text edge; they
449
+ wrap to more lines instead of being cut, on the phone too, and the row
450
+ grows only when they are there.
451
+ - `action` (one framed button at the end; under the text on the phone; its
452
+ name is its words and then the row's title, "Ansehen Angebot Küche", so
453
+ rows with the same deed are told apart: name nothing yourself; on the
454
+ phone a finger hits 44 px of it, its look unchanged),
147
455
  `end` (a few icon buttons, or the state chip of a one- or two-line row).
148
- - states: `unread`, `strong`, `selected` (the open one), `yours` (you are
149
- next).
456
+ `endOnHover`: the end shows only under the pointer or with the focus in
457
+ the row, its place kept; a touch screen does not draw it (the second
458
+ line then takes its column), so give the
459
+ row the same deeds through `Menu.Context` (a long press). Use it for a
460
+ long list whose every row has a "…".
461
+ - states: `unread`, `strong`, `current` (the open one, app tint),
462
+ `yours` (you are next).
463
+ - `tick: { done, onChange(done) }`: a task. A round tick of 18 px is the
464
+ row's lead (its symbol, mark or person give way), a checkbox named by the
465
+ title: a click or Space ticks it off without opening the row. A `done`
466
+ row shows the tick filled in the colour of done and its title struck
467
+ through and quiet; nothing moves. The row shows what the app holds: a
468
+ tick the app does not take (yet) springs back. On a touch screen the
469
+ tick takes 44 px. It is never the square box of a selection: a row with
470
+ a tick takes no `select`. Dates beside tasks keep their symbol; every
471
+ lead of such a list is as wide as the tick, so the titles start in one
472
+ line. `disabled` (a reader, a blocked task: the state shows, dimmed, no
473
+ change) and `saving` (the change is on its way: a ring turns around the
474
+ face, still for less motion; a second press waits); nothing moves between
475
+ the states.
476
+ - `NowLine time="10:40"` (with `datetime` for machines) between two rows
477
+ of a list in time order: a line of 1.5 px in the app's colour with the
478
+ time at its start. It takes no height, so no row moves when it comes,
479
+ goes or moves on; it covers the rows' quiet line. Put it where your sort
480
+ key says: `nowIndex(keys, now)` is the index of the first row after now
481
+ (the list's length when all are earlier). Assistive technology hears it as
482
+ an entry "Jetzt, 10:40".
483
+ - `select: { selected, mode: "tint" }`: the row currently chosen for pairing, with the selection tint and `aria-current`, without a checkbox, selection keys or `onChange`.
484
+ - `select: { selected, onChange(selected, { range }), active? }`: the row
485
+ can be chosen (pair it with `StatusRow select` and `selection`). Give it
486
+ to every row that can be chosen, always. A box named by the title stands
487
+ over the symbol, person or dot, in its place, so nothing moves when it
488
+ shows: under the pointer and with the keyboard's focus, on a chosen row
489
+ and beside one in the same list, and on every row while `active` (pass it
490
+ while anything is chosen); on a touch screen only then. The boxes of a
491
+ list stand on one line. Space on the row chooses it, Shift+Down or
492
+ Shift+Up chooses the next row too; `range` is true for a click on the box
493
+ with Shift and for Shift+arrow: set every row from the anchor (the last
494
+ one changed without Shift) up to this one to `selected`. Shift+arrow
495
+ reaches the next choosable row among the row's siblings, so keep the
496
+ rows of a list side by side (as `List` renders them). A selected row is
497
+ blue, also while it is
498
+ `current`; `yours` and `selected` share that blue tint on purpose.
499
+ - `drag: { data, label }`: the row can be dragged with the mouse onto a
500
+ `Nav` place with `drop: navDrop(…)` (a mail onto a folder); it stays quiet in the list
501
+ meanwhile. For a chosen row pass the whole selection as `data`. Not on a
502
+ touch screen (a long press opens the row's menu); offer the same move in
503
+ the row's menu ("Verschieben") for the keyboard.
150
504
  - `href` (+ `onNavigate` to open in place) makes the whole row open its
151
505
  entry; `onOpen` only for what has no address.
506
+ - `level` (1–6): the depth of the entry in a flat list, such as the
507
+ headings of a note's outline. Each level stands 20 px further in (the
508
+ step of `Table tree`), the sixth five steps; in a `List` it is heard as
509
+ `aria-level`. Nothing folds: places that open and close are a `Nav`
510
+ group's `tree` or a `Table tree`. `List treeLines` draws such rows as a
511
+ tree (a note's "Inhalt"): a 1 px line per ancestor level beside its
512
+ subtree and a short elbow into each row; the last row of a subtree ends
513
+ its line, so none runs past the list. Such an outline's rows part with
514
+ no line and stand at 32 px (44 px on a touch screen). Drawing only: keys
515
+ and `aria-level` stay.
152
516
 
153
- Rows may also stand directly in a `Section` or `Band`.
517
+ Rows may also stand directly in a `Section` or `Band`. In a screen ported
518
+ from its mockup (its own markup in a `Canvas`, the root marked
519
+ `data-port`), a `Row` placed directly in the port's own column starts at
520
+ that column's edge, text and line, as the mockups draw rows in a column; in
521
+ a v2 `List`, `Section`, `Band` or `Group` inside the port it keeps that
522
+ primitive's edge.
154
523
 
155
524
  A row with an amount, a state and a deed in a narrow column (an invoice in
156
525
  a 400 px panel): two lines `[customer, "1.280,00 € · fällig 12. Nov."]`,
@@ -158,26 +527,67 @@ the number as `meta`, the state chip in `end`, the deed as `action`.
158
527
 
159
528
  ### Table
160
529
 
161
- `columns: Column<T>[]`, `rows: T[]`, `label`. A column: `title`, `cell(row)`
162
- returning one value or `{ lines: [line, quietLine] }`, `align: "end"` for
530
+ `columns: Column<T>[]`, `rows: T[]`, `label`, `color` (as on `List`: the
531
+ open row in the tint of the app it belongs to, a chosen row blue; rows part
532
+ with the quiet line, the column head with the clear one). A column: `title`, `cell(row)`
533
+ returning one value or `{ lines: [line, quietLine] }` (52 px data rows, also
534
+ with `select`; text top-aligned, the checkbox centred), `align: "end"` for
163
535
  numbers and amounts, `width={{ min, default }}` (exactly that wide, cut text
164
- never widens it, grip in the head), `wrap` (one text column may take 3
165
- lines), `drop` (leaves on the phone). The last column takes the rest. Chips,
536
+ never widens it, a grip in the head that a drag or the keys move; it shows while the head is under the pointer or holds the focus, and while dragged; on touch screens it stays, and after a touch on the head it takes a 44 px target; `{ fixed }`: one width, no grip), `wrap` (one text column may take 3
537
+ lines; no two-line maximum prop), `drop` (leaves on the phone), `sort` (its head is pressed to sort:
538
+ `{ href }` to the page sorted so, with `onNavigate` to open it in place, or
539
+ `{ onSort }` for a deed). The phone rows have no heads: a sort given by
540
+ `href` stays in the address there; offer another order on the phone in the
541
+ page itself if it needs one. The last column takes the rest, unless one
542
+ column has `rest` (the name, so a quiet "Geändert" after it keeps its
543
+ width at the end); then every other column keeps its width, the rest
544
+ column's own `width` is its least, and a place narrower than all widths
545
+ together scrolls sideways instead of squeezing a column. Chips,
166
546
  `Progress`, text buttons are fine in cells. `open(row) => { href } | {
167
- onOpen }` makes each row open its entry.
547
+ onOpen }` makes each row open its entry. A column's `mark(row)` leads its
548
+ cell with the thing's `Mark` (a base's symbol 24 px; a file's thumbnail
549
+ or type 32, and every mark of that table with it; the table's rows are
550
+ then 44 px, as the mockup's lists), its
551
+ `avatar(row)` with a person (the name in the cell names it); `phone(row)`
552
+ takes a `mark` as well.
168
553
 
169
554
  A large table (Grids, a work list) adds, all optional: `rowKey(row)` (needed
170
555
  for the next three), `select: { selected, onChange, all, row }` (a box
171
556
  column; pair it with `StatusRow selection`), `current` (the open row's key,
172
557
  tinted), `sticky` (first column stays while scrolling sideways), `group(row)
173
- => { key, head: () => JSX, meta?, count? }` (tinted group rows), `sort: { column,
174
- direction }` (an arrow in that head), `phone(row) => { lines, avatar?, time?
175
- }` (on the phone each row becomes a two-line row instead).
558
+ => { key, head: () => JSX, meta?, count?, action? }` (tinted group rows;
559
+ `action` is one quiet text action after the head and figures, also on the phone), `sort: { column,
560
+ direction }` (the column sorted now: an arrow and darker words in its head,
561
+ `aria-sort` on it), `phone(row) => { lines, avatar?, time?, marks?
562
+ }` (on the phone each row becomes a two-line row instead: `time` top right,
563
+ `marks` at the end of the second line, such as the entry's state chip).
176
564
 
177
565
  Give every table whose column widths add up to more than a phone (about
178
566
  350 px after the dropped ones) a `phone(row)`; otherwise its last columns
179
567
  are cut off at 390 px (the outline reports it). A phone row opens what
180
- `open(row)` names; a row's other deeds live on the page it opens.
568
+ `open(row)` names; a row's other deeds live on the page it opens. The
569
+ server sends both forms, so the first picture is right at any width; in
570
+ the browser the phone rows are built only once the phone form shows (a
571
+ phone, or a column narrower than 480 px), so a test on a wide window finds
572
+ the phone form's frame without rows.
573
+
574
+ Rows in levels (Files, a page tree): `tree: { children(row), branch(row),
575
+ expanded?, onExpandedChange?, load?, more?, loadMore? }` with `rowKey`, not
576
+ with `group`. `rows` are the top level; an open row's `children` stand under
577
+ it, 20 px further in per level (at most eight steps). `children(row)` is
578
+ `undefined` while not loaded; `load(row, { signal })` fetches them the first
579
+ time the row opens (the arrow turns, a rejection leaves a red mark, opening
580
+ again retries). `more(row | null)` says that more children (or top rows)
581
+ exist (`true` or a count), and a last row "Weitere laden" calls
582
+ `loadMore(row | null)`; the focus goes on to the first new row. The table
583
+ is then a treegrid: one Tab stop, Up/Down/Home/End move, Right opens and
584
+ enters, Left closes (also a row that is still loading: its late answer
585
+ opens nothing) and goes to the parent, Enter opens the row, Space selects
586
+ with `select` (the boxes are no Tab stops). A level that pages says its
587
+ whole size (`aria-setsize`, -1 while `more` is `true`); a page that
588
+ fails says so on its "Weitere laden" row, and Enter tries again; the focus
589
+ follows the new rows only while it waited on that row. `expanded` left out: the table keeps it, starting
590
+ with the way to `current`. On the phone only the top level shows.
181
591
 
182
592
  `loading` (`true` or `{ rows?, lines? }`): the head stays and placeholder
183
593
  rows hold the place of the rows. `empty` (`{ icon, text, action? }`): with
@@ -185,114 +595,827 @@ no rows and nothing loading, the empty state stands in place of the table.
185
595
 
186
596
  ### Facts
187
597
 
188
- `items: { label, value, hint?, copy? }[]`: label 12 quiet, value 13, 32 px
189
- per row; `copy` adds a copy button with that text. `inline` puts all on one
190
- line with `end` (such as a print button).
598
+ `items: { label, value, hint?, copy?, mono?, quote? }[]`: label 12 quiet, value 13, 32 px
599
+ per row; the label column is as wide as the longest label of that list
600
+ (80–160 px), so two `Facts` lists may start their values at different
601
+ edges. A record whose sections each hold `Facts` gives them `fixedLabels`:
602
+ one label column of 116 px (104 on the phone, a longer label wraps), so
603
+ every value of the record stands on one edge. `quote` shows a person's own
604
+ words (a customer's wish) with a quiet line at their start.
605
+ `copy` adds a copy button with that text; `mono` shows a value read sign by
606
+ sign (a token, a key, an ID) in monospace, broken at any sign and selected
607
+ whole by one click. `inline` puts all on one
608
+ line with `end` (such as a print button). `loading` while the values are on
609
+ their way: labels, hints and copy buttons (not yet usable) stay, and a
610
+ quiet bar lies on each value. A value that is there (a refresh) keeps its
611
+ exact room unseen under the bar (lines, chips, wrapping); a value not there
612
+ yet (`""`) is a bar of one line. Give `copy: ""` where a value will have
613
+ one.
191
614
 
192
615
  ### Text
193
616
 
617
+ In a row, keep one shared baseline per line and at most two type styles
618
+ (font, size, weight); an accent is colour OR weight, never both. Codes such as `B-05-1` use the row
619
+ font with tabular figures; units keep its size, only quiet. Quiet is an
620
+ `mono` belongs in a
621
+ `Facts` value for sign-by-sign reading/copying. Names and codes are never
622
+ cut mid-word: give their column room, wrap or drop a lesser column.
623
+
194
624
  `type`: `meta` 12/16, `row` 13/20 (default), `body` 14/20, `lead` 18/24.
195
625
  `weight` (`"strong"` 600, `"medium"` 500 for a state or amount that stands
196
- out a little), `muted`, `tone` (`ok`, `warn`, `bad`, `ai`, `draft`), `href`
197
- (underlined words that lead somewhere; blue is only for the main action).
626
+ out a little), `muted`, `tone` (`ok`, `warn`, `bad`, `ai`, `draft`, and
627
+ `app`: the app's ink at 4.5:1, such as the hero's state), `href`
628
+ (underlined words that lead somewhere; blue is only for the main action),
629
+ `newTab` (with `href`: opens in a new tab, so a form beside the words keeps
630
+ what was filled in, such as terms to accept).
198
631
  Without `type`, text takes the role of its place.
632
+ `title` gives text its full words as a tooltip where its place may cut it:
633
+ the title of an open entry in its detail's head takes two lines, then "…".
634
+ Two lines make that head 65 px: beside a list, its line then no longer meets
635
+ the status row (K1 holds for a one-line title).
199
636
  In a column it is a block with the text edge; in a bar or row it runs
200
637
  inline. Emphasis is a weight, never a size.
201
638
 
202
639
  ### Prose
203
640
 
204
641
  Reading text (14/22, measure 720): `markdown` (rendered safely: no images,
205
- safe links only) or children.
642
+ safe links only) or children. A Markdown table reads like a small table
643
+ (cells 12 px apart, the head as a Table head); align a column of numbers
644
+ right (`--:`) and its figures line up. `compact` for short text a person
645
+ wrote (a comment): tables become lines of text, headings stay at the
646
+ text's size. As a part of a column it carries the column's edge; inside an
647
+ entry (a row's line, a comment drawn in a `Canvas`) it takes none of its
648
+ own and starts on the entry's text edge. Opening a pane under its head (a
649
+ page of Markdown), it keeps the edge's air above its first words; in a
650
+ dialog or a sheet it stands on the title's edge. Put it there directly, no
651
+ wrapper and no `Section`.
206
652
 
207
653
  ### Inline
208
654
 
209
655
  One line of things with the one gap of 8 px, such as chips after a count
210
656
  in a `Bar start`. In a column narrower than 480 px it wraps onto more
211
- lines instead of cutting a thing.
657
+ lines instead of cutting a thing. In a table cell its `Text` gives way to
658
+ the marks beside it (a symbol, an `Avatar`, a `Chip` keep their size): the
659
+ name wraps in a small table and ends with "…" in one with column widths.
660
+
661
+ ### Tools
662
+
663
+ The small place of deeds where no bar stands: the corner of a card, the
664
+ head of a board's column, ported markup. Its `Button icon`s and `Menu`s
665
+ stand at the bar's small size, 28 px, with 44 px to touch on a touch
666
+ screen; `Tools` has no height, padding or line of its own, so it takes
667
+ none of the card's room. `Button` has no size prop: the place sets it.
668
+
669
+ ### Icon, Avatar, Chip, Progress, Ticks, RangeBar, Heat
212
670
 
213
- ### Icon, Avatar, Chip, Progress
671
+ `Ticks` states: `ok`, `warn` (slow or waiting, amber), `bad` (failed, red,
672
+ taller), `none` (no data, a low stub) and `open` (a place not filled, such as
673
+ a shift short of a person: an amber outline). `DayBar` draws a day over its
674
+ hours (`from`, `to`, `now` from the server, `spans` with `start`, `end`,
675
+ `label`, `color`) with one `label`.
214
676
 
215
677
  - `Icon`: `name`, `label` (without one it is decoration), `tone`.
216
- - `Avatar`: a `Person`; the place sets the size.
678
+ - `Avatar`: a `Person`; the place sets the size. With `image` the picture
679
+ lies over the initials: while it loads and when it fails the initials
680
+ show, and nothing moves. Beside the name (`RecordHead`, a `Button`) the
681
+ avatar is decoration and says nothing a second time.
217
682
  - `Chip`: exactly one kind: `status` (dot + word), `yours` (+ `dot` for
218
683
  "in Arbeit"), `tag` (+ `color`), `amount` (`out` or `in`), `ai`, or
219
684
  plain; `icon`; `onClick` or `href` makes it a control, `pressed` marks an
220
- active filter. Never a colour without a word. There is no neutral status:
221
- "Pausiert" is `warn` or a plain chip.
222
- - `Progress`: `value`, `of`, `label` ("Arbeitstag 5 von 22").
685
+ active filter. Never a colour without a word. `status` is `ok`, `warn`
686
+ or `bad` where the state asks for something, else one of three that ask
687
+ for nothing: `neutral` (a grey dot: it is so, "Online", "Entwurf"),
688
+ `open` (a hollow ring: not yet or closed now, "Öffnet Sa. um 10:00"),
689
+ `running` (a blue ring that turns, still for less motion: "Läuft").
690
+ Colour stays for state only; "Pausiert" is `warn` or `open`.
691
+ `amount="in"` uses text on the surface; `"out"` uses secondary text on n100, both with a control border and direction arrow; supply the sign in the text. The host may set `--k2-amount-in` / `--k2-amount-out` as readable inks per theme (4.5:1 on their tint and surface); the badge derives a 10% tint from the one ink. `variant="mark"` keeps the arrow in a circle and the number without a badge ground. Both may stand in rows, where they inherit the row's type; the arrow names its direction in the inherited locale.
692
+ With `status`, `quiet` drops the tinted round: the dot in the colour of
693
+ the state and its word, on the chip's height. A state that asks for
694
+ nothing keeps its word in the ink of the text ("● Aktiv"); `warn` and
695
+ `bad` colour their word too, keeping the row's weight ("● Dringend"). Colour and mark carry the state. Use it for a column of states in a dense table or list, where a
696
+ chip on every line is too loud.
697
+ - `Progress`: `value`, `of`, `label` ("Arbeitstag 5 von 22"), `status`
698
+ (`warn` almost full, `bad` full: the bar says it in colour too, beside the
699
+ chip or words that say why).
700
+ - `Mark`: what a thing looks like. `icon` + `color` (its data colour, or
701
+ the colour of its kind: table, form, PDF), `image` (a thumbnail over the
702
+ symbol; while it loads and when it fails the symbol shows), `kind` (the
703
+ type on its corner: `PDF`), `label` (without one it is decoration beside
704
+ its name). The place sets the size: 20 in the sidebar and in a sentence,
705
+ 24 leading a row or a cell, 32 there in a list or table that shows
706
+ pictures of its things (`image` or `kind`), 36 on a card. In a sentence write `<Mark {...table} /><Text weight="strong">Aufträge</Text>`.
707
+ - `Avatar.Stack`: `people`, `max` (3, at most 5), `total`, `label`. People
708
+ over each other with a ring and "+n"; one picture with every name. With
709
+ `total` "+n" counts the rest of everyone when `people` holds only the
710
+ first (give a `label` with the total). In a narrow place (a 90 px column)
711
+ it shows the faces it holds whole and counts the rest; the count is as
712
+ wide as its digits ("+1" to "+999"), always right and never cut, from the
713
+ first render.
714
+ - `Spark`: `values` (oldest first), `label`: what the bars say as one
715
+ sentence ("Werkstatt: in 7 Tagen von 12 auf 41 Änderungen gestiegen"),
716
+ never only the title of the data. A few bars of a short history, the
717
+ last strongest; beside a number, never instead of it. Sparks side by
718
+ side that compare should share `max`: the same value then has the same
719
+ height, and a value above it stands at the top. `color` gives it the
720
+ data colour of the thing it belongs to where that differs from the colour
721
+ around it (an app's figures inside the Administration shell).
722
+ - Data colours (`color` of `Mark`, `Avatar`, `Chip tag`, `Nav`, `Tiles`, `Spark`,
723
+ `Section`, `Cells.Cell`, `Digest`, `Preview`) are validated: a hex colour, an
724
+ `oklch()` or `var(--…)`; anything else renders neutral. For a hex colour
725
+ the primitives derive readable foregrounds themselves (symbols and bars
726
+ 3:1, type 4.5:1, light and dark), so a pale yellow works too.
727
+ - `Preview`: `label`, `icon`, `color`, `image`, `kind`. The large picture of
728
+ the open thing at the top of its detail, 4:3 from text edge to text edge;
729
+ the symbol stands while it loads, fails or is missing.
730
+ - `Ticks`: `slots` (`"ok" | "bad" | "none"` per time slot, oldest first, in
731
+ the writing direction; at most 60 in a table cell, more are cut at its
732
+ end), `label` (always "what, period: what happened", such as
733
+ "postgres-haupt, letzte 30 Minuten: 3 von 30 Abrufen fehlgeschlagen"),
734
+ `color` (the data colour of what it belongs to; default the app),
735
+ `stretch` (in a detail: slots 2 px apart grow up to 12 px, a wider place
736
+ keeps the strip at its start). Ok is soft, a failure red and taller, a
737
+ slot without data a low stub; 140 × 20 px in a table cell. The one column
738
+ of a list that shows its data over time; never decoration.
739
+ - `RangeBar`: `from` and `to`, or `ranges` (several on one track, such as
740
+ opening hours with a break; `[]` for a closed day), on the `domain` the
741
+ rows of a list share; `stops` (colours by meaning along the scale),
742
+ `label` (every range in words: "Di.: 08:00 bis 12:00 und 14:00 bis
743
+ 18:00") or `decorative` when the values stand beside it as text.
744
+ - `Heat`: `days` (`{ date, count }` per day, at most the 53 weeks shown, from
745
+ one bounded aggregate), `today` (a date key from the server: the last day,
746
+ marked), `label` ("Mails pro Tag"), `unit` (a count in the app's words),
747
+ `detail` (a second tip line per date, such as "6 eingehend · 4 gesendet"),
748
+ `summary` (the line above, from the total and the days shown, such as
749
+ "… Mails in den letzten 12 Monaten · Ø 6 pro Tag"), `color` (a data colour
750
+ that keeps 3:1 at its strongest; default the app's ink). One column per
751
+ week, newest at the end of the writing direction; four tones over the
752
+ distinct counts, the busiest day always the strongest. Fits its place,
753
+ days up to 12 px, never cuts the newest weeks. The arrows walk the days;
754
+ one shared tip shows day and count on hover and focus. As a
755
+ `detailEmpty` `hero`, made once in the component.
756
+
757
+ ### Reactions
758
+
759
+ `Reactions label reactions={[{ key, emoji, count, own?, label? }]} onToggle? add?`:
760
+ reactions to a comment or message, a framed round chip per emoji with its
761
+ count, pressed (app tint) where the reader reacted; `label` on a reaction
762
+ says who reacted (its hint). A press calls `onToggle(key)`; the app adds or
763
+ takes back the reader's own and passes the new list; the chip keeps its
764
+ place and the focus. `add: { onPick }` opens the searchable emoji picker,
765
+ a popover on a wide screen and a sheet on the phone. Its `label` is optional
766
+ and defaults to "Add reaction" in the inherited locale. `add: { label,
767
+ choices, onPick }` offers a short list instead; `add: { label, onOpen }`
768
+ opens the app's own picker at the button. A pick closes the built-in panel
769
+ and calls `onPick(emoji)`. The app owns counts, distinct-emoji limits and
770
+ save errors; at a limit, allow existing emoji and reject new ones in that
771
+ callback. Without `onToggle` the chips are no controls. In a column the
772
+ group stands on the text edge. Emoji and count stand 4 px apart. On a
773
+ coarse pointer, chips and the add button stay visibly 36 px high, with
774
+ 8 px gaps; their hit areas reach 44 px high and meet without overlapping.
775
+
776
+ ### EmojiPicker
777
+
778
+ `Reactions` loads the picker module and its data only after the first open of
779
+ “+”. Loading and retry states keep the panel in place while they arrive.
780
+
781
+ `EmojiPicker onPick` is a labelled search and an emoji grid for a v2
782
+ `Popover` or `Dialog`. Mount it only while open: it loads the shared emoji
783
+ data then, with visible loading, no matches, and failure with retry. Search
784
+ matches English and German names, keywords and shortcodes. Enter in search
785
+ picks the first match. Arrow Down from
786
+ search enters the grid, arrows move by cell or row, Enter picks, and typing
787
+ returns to search. The containing overlay owns Escape and focus return;
788
+ close it in `onPick(emoji)` when the pick completes the task.
789
+
790
+ ### PaneName
791
+
792
+ `PaneName name="…"` in the head `Bar`'s `start` of a `Pane detail`, with
793
+ what the place shows meanwhile as children ("4 von 12", or nothing): once
794
+ the first part of the pane's content (the object's own head) scrolled away,
795
+ the name of the object stands in that place, cut with "…", so a long
796
+ detail keeps saying what is open. Both share one place: the head keeps its
797
+ height and line. Only the shown words are there for assistive technology.
223
798
 
224
799
  ## Controls
225
800
 
801
+ Text-entry fields are 44 px high with 16 px input text below 768 px,
802
+ from the server page onward, in every focus, error, disabled or filled state.
803
+ This includes selects, dates, times, colour codes, one-time codes and searches,
804
+ also in compact bars and filter editors. Textareas keep their rows and growth;
805
+ tags can wrap. From 768 px, fields keep 36 px and 13 px text, also on touch
806
+ screens. Compact buttons keep 28 px.
807
+
226
808
  - `Button`: `variant` `primary` (one per page), default (framed), `ghost`,
227
- `text` (quiet, in heads and at row ends); `icon`, `avatar` (a `Person`,
228
- such as the one a thread is assigned to), `href` (+ `onNavigate`),
229
- `onClick`, `menu` (chevron), `forward`, `disabled`, `type`, `keep` (stays
230
- in a head on the phone), `title` (a hint under the pointer, for a button
809
+ `text` (quiet, in heads and at row ends); `icon`, `avatar` (an
810
+ `<Avatar {...person} decorative />`, such as the one a thread is assigned
811
+ to; the face comes with `Avatar`, so a page without one loads none of
812
+ it), `href` (+ `onNavigate`, or
813
+ `download`: `true` or a file name, the browser saves the file),
814
+ `onClick`, `menu` (chevron), `forward`, `about` (the id of what the deed
815
+ is about, such as a row's title: its name is its own words, then those;
816
+ `Row` does this for its `action`), `disabled` (dimmed), `busy` (a
817
+ turning sign over the label while its deed runs, such as a save: the
818
+ width, the look and the focus stay, a second press and a second sending
819
+ of the form do nothing), `pressed` (a toggle such as a favourite star:
820
+ `true` is on, its symbol and words in the one colour of pressed, `false`
821
+ is off; not for links or the primary action), `type`, `keep`
822
+ (deprecated: head actions stay on the phone by default), `floats` (the head's twin of `Workspace primary`:
823
+ it leaves the head on the phone, where the floating button stands for it), `title` (a hint under the pointer, for a button
231
824
  whose words give way to its symbol in a narrow place). Without children
232
- it needs `label`.
825
+ it needs `label`. With children, `label` is its name only where the
826
+ words alone do not say enough, and it begins with the words.
827
+ Bind `mutation.create()` from `@k2b/stdlib/solid`: `<Button mutation={save} action={() => save.mutate(vars)}>Speichern</Button>`.
828
+ Pending/loading is busy; each new failure reports once in the page toaster (a detached region without Workspace).
829
+ `failed="Nicht gespeichert"` sets the sentence, `failed={(error) => error.message}` shows the server's words; `failed={false}` leaves a fixable error at its place.
830
+ Rows may share one mutation: only the pressed button is busy and reports, and Retry repeats that row.
831
+ A submit button binds the same mutation as the form onSubmit; retry uses action, else mutation.retry().
832
+ Do not toast again in onError when a Button reports. A dialog's Cancel calls mutation.abort().
833
+ - `Setting`: `label`, `name`, `hint`, `error`, `was` ("12 Std.": an unsaved
834
+ change says "geändert · vorher 12 Std." under its control), `action`
835
+ (one quiet deed at the end of the name's line, such as "Auf Standard
836
+ zurücksetzen" while the value differs from its default, as `Field
837
+ action`), one control as child. One setting of a settings page: the name
838
+ (13, 500) and its hint on the left, the control in a column of 300 px
839
+ beside them, no line between settings; one column when its pane is
840
+ narrower than 600 px (by the pane, not the window). Never stack `Field`s
841
+ as a settings page. Every control of a group of settings starts on one
842
+ edge, and every word in it (a value, a placeholder, a chip of
843
+ `TagsInput`, a chosen entry, a date) stands in the row type, 13 px on a wide screen and 16 px below 768 px; a placeholder differs only by its quiet colour. Do not set type
844
+ on a control's parts: the rule `v2-field-type` reports it.
233
845
  - `Field`: `label`, `name`, `hint`, `error` (replaces the hint, marks the
234
846
  control), `optional` (one quiet word at the end of the label line: a unit
235
- such as "Sekunden", or "optional"), one control as child. `Field.Row`
236
- puts fields side by side (one column on the phone). `required` keeps the
847
+ such as "Sekunden", or "optional"), `action` (one quiet deed at the end
848
+ of the label line instead, such as "Auf Standard zurücksetzen"; the field
849
+ keeps its height), one control as child. `Field.Row`
850
+ aligns label bottoms and control tops across fields, with hints and errors below their controls (independent stacked fields on the phone). Labels of `Field`
851
+ and `Setting` wrap to at most two lines, breaking a long token only when
852
+ necessary, then end in an ellipsis. The complete label stays the control’s
853
+ name through its native label or `aria-labelledby`. String labels supply
854
+ their title hint; for inline JSX, pass plain text as `labelText` so the hint
855
+ is present on the server too. Short labels keep one 20 px line. `required` keeps the
237
856
  form from being sent without a value; the label line shows nothing for
238
857
  it, the fields that may stay empty say "optional". After a failed save a
239
858
  required field shows `error="Pflichtfeld."`.
240
- - `Input`: `value`, `placeholder`, `type`, `icon`, `multiline`, `min`,
241
- `max`, `onInput`; `label` when it stands without a `Field` (a search).
859
+ Omit `label` (or pass `null`) when the control names itself, such as a consent `Check`: no empty label line or group is added, and its hint or error follows the control.
860
+ - `createDraft(stored)` and `UnsavedBar`: settings that change stored values.
861
+ The draft holds the form's values against what is stored: `value()`,
862
+ `set(key, value)` from each control, `changes()` (fields that differ; a
863
+ field changed back is no change), `discard()` and `saved(stored, sent)`
864
+ (a field changed while the save ran keeps its change). `UnsavedBar draft
865
+ onSave`, last in the form's `Pane`, shows "• **1 Änderung** nicht gespeichert ·
866
+ Verwerfen · Speichern" on a light card floating at the bottom of the pane (across it on the phone)
867
+ only while something changed. While it shows, the pane keeps a room of its
868
+ own at its bottom and the column ends above it, so it covers no field,
869
+ scrolled or not, also over a form a `Canvas` draws; it moves nothing.
870
+ `onSave(value)` stores and resolves with what is stored now, or nothing;
871
+ a save that throws keeps the bar with the reason and "Erneut versuchen".
872
+ `saveLabel` names a save that takes a step first ("Vorschau" for a change
873
+ checked in a dialog); `onSave` resolves `false` when the person steps
874
+ back, and the draft stays as it is.
875
+ Escape discards (it asks first when more than one change would go), and
876
+ leaving the page with changes asks first. No footer save `Bar` beside it.
877
+ Changes that are not fields of one form (a list of grants saved as a
878
+ whole) pass `changes={{ count, discard, save }}` instead of `draft` and
879
+ `onSave`; a `save` that throws keeps the bar with the reason. In a
880
+ `Dialog`'s `foot` the bar is docked as the foot's own line, without its
881
+ card; the dialog shows its other foot buttons while nothing changed.
882
+ - `Input`: `value`, `placeholder`, `type`, `icon`, `multiline` (shows
883
+ `rows` lines at least, 3 by default, or the lines of its value from the
884
+ server's page on, and grows with its words up to ten lines, then scrolls), `min`, `max`, `onInput`; `label` when it stands without a `Field` (a search).
242
885
  `onKeyDown` (Enter to search, Escape to clear; while
243
886
  `event.isComposing`, Enter belongs to the input method and must not
244
887
  search), `ref` (the text field, to focus it), `end` (a symbol or a ghost
245
- icon button, such as the filter of a search).
246
- - `Select`: `options` (strings or `{ value, label }`), `value`, `onChange`,
247
- `placeholder`.
248
- - `DateInput`: `value`, `onInput`, `placeholder`.
888
+ icon button, such as the filter of a search), `disabled` (a grey well
889
+ that takes no input; the browser leaves it out of a sent form).
890
+ `align="end"` puts an amount at the end with tabular figures; `end="€"` adds a quiet unit without changing ordinary inputs.
891
+ A search the server answers takes `name` and `send={{ action, params,
892
+ onSearch }}`: the field is its own GET form, so Enter loads `action`
893
+ with the text and `params` (the rest of the address) also without
894
+ JavaScript; `onSearch` searches in place where JavaScript runs. It keeps
895
+ its place in a head and folds on the phone, and its form is named by
896
+ `label`. Never wrap it in a `<form>` and never put it inside one: forms
897
+ do not nest, and the browser drops the inner one (`describeV2` reports
898
+ both).
899
+ The standard text-field attributes pass through and stand in the
900
+ server's markup, so a password manager reads them before the island
901
+ hydrates: `autocomplete` (`username`, `current-password`,
902
+ `new-password`, `one-time-code`, `off`), `maxLength`, `inputMode` (the
903
+ phone keyboard, such as `numeric` for a code), `spellcheck` and
904
+ `autocapitalize` (`false` and `off` for names, codes and keys). Never set
905
+ them through `ref` after hydration.
906
+ - `Select`: `options` (strings or `{ value, label, disabled }`), `value`,
907
+ `onChange`, `placeholder`, `disabled` (a grey well, the value still
908
+ shown, while it cannot be changed). The page carries its trigger and
909
+ form input; the list's code loads when someone first reaches for it,
910
+ and their first press or key is carried out then.
911
+ - `TagsInput`: several short values as chips in one field (domains,
912
+ server addresses): `value`, `onChange`, `suggestions` (values to pick
913
+ while typing; any other text is taken on Enter), `placeholder`,
914
+ `disabled`. Backspace in the empty field takes the last chip back.
915
+ Long values wrap inside their chip, leaving its remove button visible.
916
+ - `ImageInput`: one image: `value` (its address), `onChange` (the new
917
+ address, or `null` when removed), `transform` (file to address; by
918
+ default a square picture as a data URL; upload and return a URL for
919
+ large files), `accept`, `round` (a person's picture), `disabled`. A
920
+ dropped or pasted file counts as chosen.
921
+ - `Slider`: a number on a range: `value`, `onChange` (every step),
922
+ `onCommit` (the drag or key press ended: save here), `min`, `max`,
923
+ `step`, `format` (`Intl.NumberFormat` options, such as percent),
924
+ `disabled`. The number reads at the end.
925
+ - `ColorInput`: a colour as `#rrggbb`: `value`, `onChange`, `onCommit`,
926
+ `swatches` (presets), `disabled`. Swatch and code (any CSS colour typed
927
+ in), a surface of saturation and brightness, a hue slider, the presets.
928
+ `custom={false}`: the colour is one of `swatches` (a space's colour):
929
+ only the row of square swatches (22 px, 6 px apart), after `preview` (what the colour marks,
930
+ tinted by the caller: `<Mark icon color={value} />`), named by its field, one Tab stop, the arrows
931
+ move and Enter or Space picks, the chosen one carries its ring.
932
+ - `DangerZone`: `label`, `items: { title, text, action }[]`; the deeds of a
933
+ settings page that cannot be taken back, framed at its end with a thin
934
+ edge in the colour of wrong, a row per deed, its button in that colour at
935
+ the end (the words wrap beside it on the phone); its frame ends its
936
+ section, which draws no line under it. Ask with
937
+ `Dialog.confirm` before the deed acts.
938
+ - `CodeInput`: a one-time or pairing code, a box per character: `value`,
939
+ `onInput`, `onComplete` (the last box filled), `length` (6),
940
+ `characters` (`digits` or `alphanumeric`), `autocomplete`
941
+ (`one-time-code` by default; `off` for a code shown on another device),
942
+ `disabled`.
943
+ - `DateInput`: `value` (a date key such as "2026-12-15", or as the locale
944
+ writes it), `onInput` (a date key, "" when emptied), `placeholder`. Typed
945
+ text ("24.11.2026", "heute", "+3") applies on Enter or leaving the field;
946
+ the calendar symbol opens `DatePicker` below the field. A form gets the
947
+ date key under `name`; text that is no date (also "2026-02-30") marks the
948
+ field and makes the form invalid. `timeZone` says which day "heute" is
949
+ ("UTC" by default); give the same zone on the server and in the island.
950
+ - `TimeInput`: a time of day with the metrics of `Input`: `value` ("HH:MM"
951
+ on the 24-hour clock, "" for none), `onInput` ("HH:MM", "" when
952
+ emptied), `placeholder`, `name`, `label`, `disabled`. Typed as people
953
+ write it ("9", "930", "9:30", "14 Uhr", "2:30 pm"), it applies on Enter or
954
+ leaving the field and shows as the locale writes it; Up and Down move it
955
+ by `step` minutes (15) on their grid. `dayEnd` lets an end of a span take
956
+ "24" as the midnight that ends the day ("24:00"). Text that is no time
957
+ marks the field and makes the form invalid; the value stays as it was.
958
+ - `DateTimeInput`: a moment as a day and a time side by side under one
959
+ label (`DateInput` and `TimeInput`, also on the phone): `value` and
960
+ `onInput` as "YYYY-MM-DDTHH:MM" ("" while a part is missing; the other
961
+ part stays), `timeZone` (which day is "heute"), `name`, `label`. The
962
+ field's label names the pair; "Tag" and "Uhrzeit" name its parts.
963
+ - `DatePicker`: one month of days to pick from (a calendar grid: arrows,
964
+ PageUp/PageDown, Home/End, Enter; the locale's month names and first day of
965
+ the week; six weeks, so its height never changes). `value`, `onPick`,
966
+ `min`, `max`, `timeZone` (which day is today), `label`, `error`,
967
+ `onClear` ("Leeren"), `autoFocus`; `time` adds the ui-sdk time input: hour
968
+ and minute as spinbuttons in the locale's clock (24 hours in German, AM/PM
969
+ in American English; typing, arrows, Backspace; never the browser's time
970
+ field), applied
971
+ with "Übernehmen". `view="weeks"` (with a required `min`, usually today) shows six
972
+ weeks from the week of `min` as one grid instead of whole months, for a moment ahead ("Später", an
973
+ expiry): one row per week over the ends of months, the 1st shows the
974
+ month's short name, keys move the weeks, the arrows by six. Use it inside a
975
+ popover or sheet; a form field is `DateInput`.
249
976
  - `Check`: `label`, `checked` (`true`, `false`, `"mixed"`), `switch`,
250
- `onChange`.
977
+ `labelHidden` (words for assistive technology only, no gap, as wide as the mark),
978
+ `onChange`, `disabled` (dimmed), `description` (a quiet line under the
979
+ words, such as what turning it on does; it describes the box and is no
980
+ part of its name).
981
+ A Field's `error` describes the Check and marks its input invalid, with a red box border until the error clears.
251
982
  - `Choice`: a few visible options, one chosen: `name`, `options`, `value`,
252
- `label`, `onChange`. With a `label` and no `Field` around it, it shows
983
+ `label`, `onChange`, `disabled` (every option dimmed). With a `label` and no `Field` around it, it shows
253
984
  that label as a field of its own; inside a `Field` the field's label is
254
- its question.
985
+ its question. `multiple` chooses several (boxes); `multiple inline` shows
986
+ a few short options as one row of 36 px chips to press, such as the days
987
+ of a week, a chosen one in the accent (tint and edge): each option can give a `short` form
988
+ ("Mo") while its `label` ("Montag") names it. The row wraps on a narrow
989
+ column; the chips stay checkboxes for keys, forms and assistive
990
+ technology.
991
+ A Field's `error` also describes each Choice input and marks its checkbox or radio invalid, with a red border until the error clears.
992
+ - `SegmentedControl`: two to five short values side by side in one frame,
993
+ one chosen (a format, a unit): `options: { value, label, icon? }[]`,
994
+ `value`, `onChange`, `name`, `label`, `disabled`. A value, never a way
995
+ between views (`Tabs`). One Tab stop, arrows move and choose; the chosen
996
+ one fills, nothing moves. As wide as its values; a `Field` names it.
997
+ With `href` on every option each value is a link to its own address,
998
+ the chosen one current (no script; reload keeps it); `wide` shares the
999
+ whole width in equal parts, such as the kind of account above a sign-in.
1000
+ - `Rating`: stars from 1 to 5 as one radio group: `value`, `onChange`,
1001
+ `name`, `label` (as for `Choice`), `disabled`. One Tab stop, arrows move
1002
+ and choose, Space and Enter choose; each star is named "3 von 5
1003
+ Sternen", 56 px high and at least 44 px wide. `required`, hint and error
1004
+ come from its `Field`. `readOnly` with `value` (an average such as 4.2
1005
+ fills part of a star) shows a given rating as small stars in a line.
255
1006
 
256
1007
  ## Components
257
1008
 
258
- - `Nav`: `title`, `icon`, `groups: { label?, action?, items }[]`, `foot`.
1009
+ - `CodeFigure`: `value`, `label`, `group?` (signs per group, 3 by default).
1010
+ A code a person compares with another screen or types elsewhere, such as
1011
+ the code a sign-in by app shows on both devices: large, monospaced, in
1012
+ groups. Assistive technology reads it sign by sign after `label`. Not for
1013
+ secrets; a code that arrives later stands in a `role="status"` region.
1014
+ - `Nav`: `title`, `icon`, `search?`, `primary?`, `groups: { label?, action?, items }[]`, `list?`, `phone?`, `foot`.
1015
+ `search` (`{ label, value, onInput, onKeyDown? }`) stands under the name,
1016
+ across the column; `primary` (an `Action`, such as "Neuer Chat") is an
1017
+ icon button at the end of the name's row, its label its name and tooltip;
1018
+ for several create kinds, use a contextual `label`, omit `items`, and
1019
+ change the kind inside the draft rather than before it.
1020
+ Pass the same action as `Workspace` `primary`, which floats on the
1021
+ phone. In a `collapsible` Workspace the first `Nav` of the sidebar ends
1022
+ that row with the button that hides the sidebar, after `primary`; it is
1023
+ not there in the drawer. `list` holds the app's own rows after the groups (a `List` of
1024
+ `Row`s, such as conversations): made once, like the other parts of a
1025
+ frame, they reach the column's edges and scroll on their own above the
1026
+ foot; virtualize a long list. Its rows part with a line from their text
1027
+ on (not under the lead), and a row keeps its title on one line and its
1028
+ second line on at most two, cut with "…". With `phone: "page"` the list with the
1029
+ search is the phone's page while no pane is open beside it; the title,
1030
+ the groups and the foot are then in the platform's menu, and any pane
1031
+ that opens (a detail or a page of its own) is the page in its place.
1032
+ A group has no description line or worded action. Its `action` is one
1033
+ quiet icon button with its label as tooltip, or `{ label, items }`: a "…"
1034
+ with the group's deeds ("Neues Postfach", "Gelöschte Postfächer").
259
1035
  An item: `label`, `icon`, `href` or `onClick`, `count`, `current`,
1036
+ `hint` (a quiet meta line under the label, wrapping in full beneath counts
1037
+ and status marks; also on a folding entry, visible while closed; hides
1038
+ with the sidebar and shows in the drawer. Its SSR-safe `aria-describedby` names the description; leave
1039
+ it out of `spokenLabel`, which supplies only the entry's name),
1040
+ `spokenLabel` (its whole name for a screen reader where its words alone
1041
+ do not say what it shows: "988 weitere Tabellen" for "988 weitere" at the
1042
+ end of a long group; it starts with the entry's words),
1043
+ `menu` (its deeds, such as pin and hide: a "…" over its count that shows
1044
+ under the pointer and with the focus; Tab always reaches it),
260
1045
  `nested`, `dot` (`"ok"` for something new, `"warn"`/`"bad"` for a
261
- problem there).
262
- - `Tabs`: `label`, `items: { label, icon?, count?, href?, onClick?,
1046
+ problem there, `"running"` for work that runs now: a small turning mark
1047
+ in the dot's place that says "Läuft"), `color` (the place's data colour:
1048
+ its symbol becomes its `Mark`, the same as in its rows and on its card),
1049
+ `drop: navDrop({ accepts?, onDrop })` (the place takes a `Row drag`: while
1050
+ a row it accepts is over it, it shows the blue of a selection with its
1051
+ edge, and `onDrop` gets the row's `data`; a mail onto a folder; a place
1052
+ that refuses stays as it is. `navDrop` brings its code along, as
1053
+ `navTree` does, so a `Nav` that takes nothing loads none of it),
1054
+ `face: navFace(person)` (a person's place, such as their mailbox, leads
1055
+ with their face, 20 px, instead of its symbol; its own module too).
1056
+ `quota={<NavQuota label value of text />}` shows what the open place uses
1057
+ above the foot ("Werkstatt · 38,2 von 100 GB" over a bar; amber from
1058
+ 75 %, red from 90 %); a part of its own, so a sidebar without one loads
1059
+ none of it. An item with `items` instead of `icon` and a link folds
1060
+ them away ("Mehr" with archive, bin and spam): a chevron in the symbol's
1061
+ place, its entries one level further in. It starts open for a current
1062
+ descendant at any depth, in server markup too. A manual close lasts
1063
+ through model refreshes until navigation makes another descendant
1064
+ current; unrelated folds keep their visit state, with no persisted state
1065
+ between visits. Show the active descendant in the mockup (look "Long
1066
+ navigation"); keep what is folded the same on each page.
1067
+ A group with `tree` in place of `items` holds places in levels (the
1068
+ folders of Files, the pages of a notebook): `tree: navTree({ label, items,
1069
+ current?, expanded?, onExpandedChange?, load?, more?, loadMore? })`
1070
+ (`navTree` brings the tree's code along, so a `Nav` without a tree loads none of it), each
1071
+ place a `NavTreeNode`: `key`, `label`, `icon?`, `href` (+ `onNavigate`),
1072
+ `count?`, `dot?`, `children?` (loaded so far), `branch` (children that
1073
+ load on the first open through `load(key, { signal })`), `more` (`true`
1074
+ or a count: a last entry "Weitere laden" calls `loadMore(key | null)`),
1075
+ `menu` (a "…" under the pointer, a right-click, Shift+F10). A press on a
1076
+ place opens its page; the arrow, Right and Left fold it without leaving
1077
+ the page. The way to `current` stands open (also when `current` changes);
1078
+ give the loaded nodes down to it. The tree is one Tab stop and scrolls on
1079
+ its own in the sidebar; levels step 12 px in, at most six steps.
1080
+ - Counts of `Nav` and `Tabs`: a number is written in the page's language and
1081
+ in full (12.345 in German, 12,345 in English), never cut to "9.999+"; words
1082
+ you give (`"99+"`, `"+8"`) stay as they are.
1083
+ - `Tabs`: `label`, `items: { label, icon?, count?, endIcon?, iconLabel?, href?, onClick?,
263
1084
  current?, menu? }[]`. In a head `Bar start` they share the bar with actions; as a `Pane`
264
- head they are their own 44 px bar.
265
- - `StatusRow`: `lead` (the one statement, "7 ungelesen"), `facts: { before?,
266
- value?, after? }[]` (leave on the phone, so put what must stay in `lead`),
1085
+ head they are their own 44 px bar. `menu` takes the entries of a `Menu`:
1086
+ the tab ("Weitere +8") opens the views that have no tab of their own; it
1087
+ stands at the end and its `count` counts its own entries. A tab is never
1088
+ cut: one without room hides whole and joins that menu (and its count),
1089
+ opening from there as it does as a tab; without a menu tab a tab "Mehr"
1090
+ holds them. The first tab hides too where it has no room. The open tab
1091
+ stays: where it would hide, it stands right after the tabs that leave it
1092
+ room; only without room even for it does the menu tab stand for it, marked
1093
+ as open. The 2 px line uses the app's readable ink in each theme, with the
1094
+ original blue as fallback without an app colour. A tab that holds the
1095
+ focus and hides hands it to the menu tab,
1096
+ and a "Mehr" that goes hands it to the last tab. Known: while tabs hide, a
1097
+ gap of less than one tab may stand before the menu tab. For a tab that leads
1098
+ to another page, the design default is `endIcon: "arrow-up-right"` with
1099
+ `iconLabel: "opens another page"`; choose another `endIcon` (such as
1100
+ `"external-link"`) when the arrow already has a domain meaning:
1101
+ a symbol in the label's colour after the label and count, also in its menu entry; without
1102
+ `iconLabel` it is decorative. The app supplies the words in its language;
1103
+ `icon` keeps its leading place and `href` alone adds nothing. The arrow
1104
+ is a skill default to pass explicitly, not an automatic API default.
1105
+ For mixed section and link tabs, group the section views first and links
1106
+ second, with one quiet vertical divider between the groups in the mockup:
1107
+ `Overview · History | Related record ↗ · Source ↗`. Keep one horizontal
1108
+ head and use `href` for links, `onClick` only for an in-place switch.
1109
+ Current gap: `Tabs` accepts only a flat `items: Tab[]`, with no groups or
1110
+ divider entry. Do not invent `groups`, `divider` or a `"separator"` tab,
1111
+ or add wrapper CSS in a port; name the gap for a mockup needing a divider.
1112
+ - `StatusRow`: `lead` (the one statement, "7 ungelesen"; cut with "…"
1113
+ first where it does not fit, its whole words as a hint on hover),
1114
+ `status` (`ok`, `warn`, `bad`: the sign of the state before the lead in
1115
+ its colour, a check, a circle with "!", a triangle; the lead says it in
1116
+ words), `loading` (results
1117
+ refresh in place: `true` turns a quiet mark after the lead; pass `false`
1118
+ while idle so its 16 px stay reserved and nothing moves; leave it out where
1119
+ the row never refreshes), `facts: { before?, value?, after? }[]` (they
1120
+ share the room before the filters with the lead, each up to its own width:
1121
+ beside a short lead they take the rest, beside a long lead they keep their
1122
+ width and the lead is cut; where both are long the lead keeps 40 % (60 %
1123
+ below 600 px, where the controls fold) and the later figures give way
1124
+ whole, so the filters keep their words; on the phone too, in the row's one
1125
+ line where they fit; put what must stay in `lead`),
1126
+ `marks` (tinted chips of the statement, an exception such as
1127
+ `<Chip status="bad">1 ohne Zugriff</Chip>`: after the lead, they keep their
1128
+ width while the lead is cut, stay on the phone, and give way whole only
1129
+ where about a word of the lead no longer fits; a chip that must never leave
1130
+ belongs in `lead`; chips only, no buttons, as a chip that gave way still
1131
+ takes the focus; `cond && <Chip/>` is fine, `false` draws nothing),
267
1132
  `select: { label, checked?, onChange? }` (select-all box), `filters` (end:
268
- a `Button variant="ghost" menu`, pressed chips; leave on the phone),
1133
+ `ListOrder` with the sort and the grouping of a list query, or a quiet
1134
+ `Button variant="ghost" menu`, each with an `icon`; below 600 px of row
1135
+ they keep only their symbols, the words stay their names; on the phone
1136
+ they stay in the row, and what has no room folds into one "+n" menu; a
1137
+ `Spark` there gives way before a word of the lead is cut for it),
269
1138
  `selection: { count, actions, clear }` (while rows are selected the row
270
- becomes the bar of what can be done with them).
1139
+ becomes the bar of what can be done with them; the count stands in 14 px
1140
+ 600 and is never cut, and actions without room go whole into a "…" menu
1141
+ from the end, right after the last one in sight; the way out stays at the
1142
+ end of the bar).
271
1143
  - `Path`: `label`, `items: { label, href? }[]`; where a page stands, in the
272
- head `Bar start` instead of `Tabs`. The last item is the page itself. On
273
- the phone a head with a path is hidden and the shell's phone bar names
274
- the page.
1144
+ head `Bar start` instead of `Tabs`. The last item is the page itself;
1145
+ without room the places before it shorten to their own width or 12
1146
+ characters first, and the page last. Places without room even then go
1147
+ into a "…" menu ("Weitere Orte"): the middle ones first, then all. On
1148
+ the phone the path gives way and the shell's phone bar names the page; the
1149
+ head itself is hidden unless it holds a search, which stays as its symbol.
1150
+ In an `Inline` with a chip (a folder's sharing) the path behaves the same,
1151
+ and on the phone it gives way there too while the chip stays.
275
1152
  - `Steps`: `label`, `items: { label, meta?, state: "done" | "now" | "next"
276
1153
  }[]`; a way of a few steps, such as a delivery's way inside its `Group`.
1154
+ Measures and picture: [Steps in the look](look.md#steps-a-things-way).
277
1155
  - `Notice`: `tone` `note`, `ai`, `bad`, `warn`; `title`, `meta`, `icon`,
278
- `actions` (≤ 2 text buttons), children (the sentence and its
279
- consequence). Use it for errors with a way out instead of "try again"
280
- buttons of your own.
1156
+ `actions` (≤ 2 text buttons; `disabled` on one that cannot be taken
1157
+ now, and the sentence says why), `primary` (the one thing to do, such as
1158
+ "Neu laden": a framed button after one quiet text button at most; it is
1159
+ no primary of the page), children (the sentence and its
1160
+ consequence), `inset` (a card in a reading column: on the text edges,
1161
+ framed in its tone, rounded; such as "Kurz gesagt" or an internal note
1162
+ above a conversation; `icon={false}` drops the sign, its words then start
1163
+ at the inner edge, as the internal note). Use it for errors with a way out instead of
1164
+ "try again" buttons of your own.
281
1165
  - `Digest`: the newest few without lines: `items: { icon, color?, date,
282
- title, state: { icon, label, tone? }, text, href? }[]`.
283
- - `RecordHead`: `name`, `avatar`, `kinds`, `ids: { label?, value, icon?,
284
- copy? }[]`. Put it in the head `Bar start`.
1166
+ title, state: { icon, label, tone? }, text, href? }[]`, or `activity`:
1167
+ who did what, `{ person, text, time, place?, href?, onNavigate? }[]`
1168
+ (`onNavigate` opens the thing in place, as on rows). The sentence
1169
+ names the person in `<Text weight="strong">` and the thing with its
1170
+ `Mark` and name; time and place stand quiet under it ("vor 8 Min. ·
1171
+ Planung"). `timeline` (with `activity`) makes it a course of events,
1172
+ such as the activity in a side column: 28 px faces joined by a line from
1173
+ one to the next. A form or a workflow that did something is a person
1174
+ with its name ("Webformular").
1175
+ - `FilterBar`: the filters of a list as statements, in `Pane status` above
1176
+ its `StatusRow`: `query` (from `defineListQuery`), `state`, `onChange`;
1177
+ optional `base` (the view's state, whose filters "Zurücksetzen" returns to; the
1178
+ order and the grouping are no filters and stay),
1179
+ `icons`, `counts`, `names` (per field: lookup names the server resolved),
1180
+ `timeZone` (of points in time, "UTC" by default), `views` (`{ stores,
1181
+ current?: { key, label, query, scope? }, onSaved?, onRemoved? }`), `results` ("9 Artikel"
1182
+ for the phone sheet). It writes the address itself. See
1183
+ [list queries](list-queries.md). `end` (the `ListOrder` and a choice of
1184
+ display such as list or grid) makes the bar the one status row of its
1185
+ list (52 px) with `results` in quiet words before it: the page head then
1186
+ has two rows, path and deeds, then this bar. Where the statements would
1187
+ get less than 240 px beside it, the end takes a line of its own; its
1188
+ width follows `results`, so right at that width a longer count can move
1189
+ it there. `display` (`MenuSection`s,
1190
+ such as "Darstellung" with list and grid, or a colour choice) puts each
1191
+ section as a menu of its own in the end on the desktop; on the phone,
1192
+ where the end has no room, sort, grouping and these sections fold into
1193
+ one menu "Ansicht" at the end of the bar. Give every choice that changes
1194
+ how the list shows to `display`, never to `end` alone, so the phone keeps
1195
+ it. While entries are selected a
1196
+ `StatusRow selection` takes its place at the same height. While no
1197
+ filter is set the bar has no row of its own: in a pane's head it stands
1198
+ in the head's row in one line that never wraps, one quiet block at the
1199
+ row's end: "+ Filter" (a text button), `results`, `quick`, then `end`
1200
+ and `display` as their own controls (a `ListOrder` in quiet words). It gives way
1201
+ first and has only what the head's start and end leave: "+ Filter"
1202
+ becomes its symbol, then the end's parts leave from the last one on (once
1203
+ the order, the grouping or `display` has left, one menu "Ansicht" holds
1204
+ all three), then the head's buttons and people go into "…", the other
1205
+ tabs into "Mehr", and then `results`; only where the open tab or the
1206
+ primary would give way otherwise do "Filter" and "Ansicht" become the
1207
+ first entries of the head's "…". The open tab and the primary never give
1208
+ way. On the phone a head with a start has no room beside it: a bar that
1209
+ carries more than "Filter" (`results`, `quick`, an order, a grouping or
1210
+ `display`) takes the line under the start and the end, "Filter · 41 offen
1211
+ · Fällig ↑ · Nach Tag", its order and grouping leaving into "Ansicht"
1212
+ where they have no room; a bar that is only "Filter" keeps its symbol in
1213
+ the head's row and adds no line. The first filter brings the bar
1214
+ under the head, which pushes the list down once and moves nothing in the
1215
+ head. `quick` is a quick way into a filter that matters now, a pressable
1216
+ `Chip` such as "● 2 fehlgeschlagen", at the start of the end. `note` holds quiet words about the list that are no filter ("Aus
1217
+ Aufträge · nächste Nr. A-1043"): after the filters, in the head's row
1218
+ while nothing is set, cut with "…" where the row is short, gone under ten
1219
+ signs of room, not on the phone; words only, a link that belongs to them
1220
+ ("Vorlage bearbeiten") stands whole in `end`. A field with
1221
+ `required` and `quiet: true` is the list's scope at
1222
+ that value (a space's active cards): no statement, and `results` names
1223
+ it ("41 offen"); another value is a filter with ×, which returns to it.
1224
+ A state the app takes in late (after it has loaded) is fine: a new
1225
+ statement and its open editor stay until `state` holds the value. Tests
1226
+ find the statements at `[data-slot="statements"]` and the end at
1227
+ `[data-slot="end"]` inside `[data-k2-part="FilterBar"]`.
1228
+ - `ListOrder`: `query`, `state`, `onChange`; the sort and the grouping in
1229
+ words, for `StatusRow filters`.
1230
+ - `Lookup`: `label`, `value`, `onChange`, `load`, `resolve?`, `known?`,
1231
+ `limit?`, `minChars?`; values that load while the person types, in a
1232
+ filter (the bar opens it) or in a form. An item may carry its `face`
1233
+ (`{ avatar }` or `{ mark }`), then it is a row of two lines; with
1234
+ `unavailable` it stays in the list, dimmed, with the reason as its line.
1235
+ - `RecordHead` as a pane's `head` is the record's own head (the default for a
1236
+ record's page): on the app's tint, the sign of 40 px, `name` in 18/600 and
1237
+ `meta` (one quiet line), `actions` at the end, `facts: { label, value,
1238
+ hint?, status? }[]` (at most four, label over value, 36 px apart, no box;
1239
+ two by two on the phone), `problem` (one line in the waiting tone) and
1240
+ `tabs` (a `Tabs`, or a `Bar` of tabs and an end) as the head's last line
1241
+ on its bottom edge. Put no strip of figures under it.
1242
+ In a list with its detail, tabs that switch only the detail's views
1243
+ belong here, as `RecordHead tabs`, never in the head above the list:
1244
+ the list keeps its own head and does not change when the detail's view
1245
+ does.
1246
+ - `RecordHead` in a head `Bar start` (a record in a list's detail, a run):
1247
+ `name`, `avatar` or `mark`, `kinds`, `ids: { label?, value,
1248
+ icon?, copy? }[]`, `wrap`, `meta`, the identity in the bar's line. A person leads
1249
+ with `avatar` (round); a place or thing with `mark` (a `Mark` without
1250
+ `label`: its symbol on its colour, or its picture such as a logo, square
1251
+ with rounded corners), never both. When the head has no room, the ids give
1252
+ way first (always on the phone), then the name is cut with "…"; the
1253
+ head's actions keep their place. On the phone the head is one row of
1254
+ 57 px, and kinds without room beside the name leave it. With `wrap` (a
1255
+ page whose name is its whole identity, such as a place's visitor page) a
1256
+ name too long for one line takes a second line on the phone before it is
1257
+ cut; the head grows from 57 to 73 px, so a rename from one line to two
1258
+ moves the content below by 16 px.
1259
+
1260
+ ### SplitButton
1261
+
1262
+ `SplitButton action={{ label, icon, onClick | href }} items={[…]} label="Weitere Arten anlegen"`:
1263
+ a main way with a menu of the other ways beside it ("Neue Aufgabe ▾" with
1264
+ "Neuer Termin" and templates). Two buttons joined into one shape, each a
1265
+ Tab stop; the chevron opens the menu (Enter, Space, arrow down). `label`
1266
+ names the chevron. `variant="primary"` for the page's main action; with
1267
+ `floats` (and the same action as `Workspace primary`) the phone shows the
1268
+ main way as the floating button and the other ways behind a "…" in the head.
1269
+ For a button whose only deed is its menu, use `Menu` with words or an
1270
+ `Action` with `items`.
1271
+
1272
+ ## Overlays: Dialog, Menu, Popover, Toast
1273
+
1274
+ - `Dialog`: `title`, `open` and `onOpenChange` (the screen keeps the open
1275
+ state), `foot` (the buttons, the main one last: the dialog's own one
1276
+ primary), children (fields, a notice, text; they scroll). 480 px in the
1277
+ middle; `wide` makes it 720 px for a list, a table or settings in
1278
+ sections (all chats of a project). Below 768 px a sheet from the bottom
1279
+ that a swipe down closes, `wide` or not.
1280
+ The first field takes the focus (on the sheet the first control that is
1281
+ no text field), else the first action of the foot; focus stays inside,
1282
+ Escape and the close button close it, focus returns to what opened it.
1283
+ `dismissible={false}`: a press outside, a swipe and the back gesture do
1284
+ not close it; Escape, the close button and the foot still do.
1285
+ A dialog about one thing (a base to export, a field to change) carries
1286
+ its sign with `mark` (`icon`, `color`: a 32 px `Mark` before the title)
1287
+ and one quiet line of facts under the title with `meta`
1288
+ ("werkstatt.sqlite · 24 MB"); the head grows with them.
1289
+ **Alternatives:** one primary path, chosen by default. When an alternative
1290
+ changes which fields are needed (assign, rebook, close with a reason), put
1291
+ a `Choice` at the top of the children, before those fields: `name`,
1292
+ `label`, `options={[{ value: "assign", label: "Zuweisen" }, …]}`,
1293
+ `value` and `onChange`. Render the fields for that value and name the
1294
+ footer's one primary after the chosen action; preserve entered values
1295
+ when switching back. A role or another value within the same form is
1296
+ still an ordinary field, as in `dialogs.tsx`.
1297
+ When an alternative uses the same fields (save, save and close), keep
1298
+ the primary visible and put the alternatives in a quiet `Menu` in
1299
+ `foot`, before the primary: `label="Weitere Aktionen"`, `variant="ghost"`,
1300
+ `items={[{ label: "Speichern und schließen", onClick: … }]}`.
1301
+ Never tabs inside a dialog: these are ways to finish one task, not views.
1302
+ - `SearchDialog`: the frame of a search over everything, such as an
1303
+ application's global search: `label` (its name; it has no head),
1304
+ `open`, `onOpenChange`, children (the search lays itself out and fills
1305
+ the frame). 1160 × 740 px at most, 40 px below the top of the window;
1306
+ below 768 px the whole screen. The first text field takes the focus;
1307
+ Escape and a press outside close it. Content that takes Escape for a
1308
+ step back (`event.preventDefault()` on its own element) keeps it open.
1309
+ - `Dialog.confirm({ title, confirm, description?, cancel? })`: resolves
1310
+ `true` when the person agrees. An alert dialog without a close button,
1311
+ never a sheet; focus starts on the other button, Escape answers no, a
1312
+ press outside does nothing. Call it from a menu entry with `void`, so the
1313
+ menu closes while it asks. Opened while a modal `<dialog>` is open (a v1
1314
+ settings dialog), it stands inside that dialog, where it takes input.
1315
+ From a native popover, it preserves the draft and returns focus there; Escape closes only the question.
1316
+ - `overlayParent()`: where an overlay that brings its own host mounts, such as
1317
+ a dialog opened from code: the focused control's nearest open auto or hint popover within the current native modal, otherwise that modal, else `<body>`; temporary manual popovers such as menus are skipped.
1318
+ Nesting keeps a native auto popover's draft open; staying inside the native modal keeps the overlay interactive.
1319
+
1320
+ - `Menu`: `items`, the button's look like `Button` (`label`, `icon`,
1321
+ `variant`, `disabled`; children are the words). Without words it is the
1322
+ quiet "…" (`dots`) named by `label` ("Weitere Aktionen" by default); in a
1323
+ head it stays on the phone. An entry: `label`, `icon` or `color` (a data
1324
+ colour as a dot before the words, such as an area; it goes through the
1325
+ colour guard and adds nothing to the name), `onClick` (a
1326
+ Promise keeps the menu open and the entry busy), `href`, `danger`,
1327
+ `disabled`, `color` (the data colour of what it stands for, such as an
1328
+ area of a notebook: a dot in the symbol's place, or the symbol in that
1329
+ colour; a hex colour is kept at 3:1, `oklch()` and `var()` stand as
1330
+ given, anything else leaves the entry neutral), `meta` (a quiet hint at the end, such as a key), `description`
1331
+ (one quiet sentence under the words, such as what a level of access allows or
1332
+ why a disabled entry cannot be chosen; the entry grows to two lines), `checked`
1333
+ (an entry that toggles; `onClick` flips it, the tick stands at the end),
1334
+ `items` (a submenu to the side), or `panel` (`menuPanel((close) => …)`,
1335
+ which brings the panel's code along, so a menu without a panel loads none
1336
+ of it; a panel such as a `DatePicker` as the next step: a dialog of its own that takes
1337
+ the place of the menu the entry stands in, under a head that leads
1338
+ back; its own keys and focus, so the arrows stay with the calendar;
1339
+ Escape and the back button lead back; it calls `close` once it
1340
+ picked), and `current` (the value set through that
1341
+ submenu or panel, such as a reminder's time: at the end in the app's
1342
+ colour and part of the entry's name; it takes the place of `meta`); or
1343
+ `"separator"` between groups; or a section `{ title, items }` under a
1344
+ quiet heading. A section with `choice` and `onChoose` is one choice
1345
+ (reply kind, sender, order): its entries are options (`value`, else
1346
+ `label`), the chosen one carries the tick, choosing another closes the
1347
+ menu and calls `onChoose`, choosing the ticked one only closes it. A
1348
+ choice whose options say enough by themselves may have the `title` ""
1349
+ (no heading). Lines around sections and before the
1350
+ first `danger` entry come by themselves. The menu lines up with
1351
+ its button; there is no `align`. On the phone it is a sheet from the
1352
+ bottom with entries of 44 px; a submenu is the sheet's next step under
1353
+ its entry, which leads back, and a panel is a sheet of its own.
1354
+ - `Menu.Context`: `items`, and one element as child, such as a `Row`. A
1355
+ right-click or a long press opens the menu at the pointer, Shift+F10 at
1356
+ the element. It adds no wrapper, so a `Row` stays a child of its `List`.
1357
+ Give the same entries to a "…" in the row's `end` for those who do not
1358
+ right-click.
1359
+ - `Popover`: a panel behind a button: the button's look like `Menu`,
1360
+ `title`, `content` (primitives such as `Check`, `Facts`, `Text`). Escape
1361
+ and a press outside close it. Like the menu's "…", a button without words
1362
+ stays in a head on the phone; there the panel is a sheet from the bottom,
1363
+ which a swipe down also closes. `open` and `onOpenChange` let the caller
1364
+ close it itself, such as after a pick. With `tip` instead, a short hint on its one
1365
+ child (a `Button`) after a moment on hover or focus.
1366
+ - `ActionBar`: `label` (for assistive technology, "Aktionen für …") and
1367
+ `actions`: `{ label, icon?, primary?, keys?, short?, folds?, href? |
1368
+ onClick?, disabled?, busy? }`. The actions on one thing as a floating
1369
+ pill at the bottom of a scrolling column, in the middle, on the surface
1370
+ of `UnsavedBar`: the one `primary` filled, the others without a frame,
1371
+ `keys` ("⌘↵") beside the words. Put it last in a column that scrolls in
1372
+ its own flex column (a preview): it sticks 16 px above the bottom and
1373
+ keeps the room of its own height at the end, so it never covers the last
1374
+ line. On the phone it spans the column above the safe area without keys;
1375
+ `short` words replace the label there, and actions with `folds` move into
1376
+ its "…". Not for a page's own actions (head) or a form's save
1377
+ (`UnsavedBar`).
1378
+ - `useToast()`: call it in the component, then
1379
+ `toast("In „Lieferanten“ verschoben", { undo: moveBack, status: "ok" })`.
1380
+ The returned id goes to `toast.dismiss(id)` to close only that toast without running its action, even before the Workspace loads; gone or unknown ids do nothing.
1381
+ One sentence at the bottom in the middle, five seconds, "Rückgängig" with
1382
+ `undo`, or "Erneut versuchen" with `retry` for a deed that failed; `action`
1383
+ offers a deed of its own words (`{ label, onClick }`) or a link to what the
1384
+ deed made (`{ label, href }`, such as "Zum Ziel" after a move); one button
1385
+ per toast. `status` `ok` or `bad` adds a sign
1386
+ (`bad` is announced at once).
1387
+ A toast reports a deed; it never replaces `Failed` or a `Notice` at the
1388
+ place of a problem.
1389
+ - `announce(text, { assertive? })`: news for assistive technology that no
1390
+ element shows as it happens, such as a run that changed its state or new
1391
+ mail. It goes to the live region that `Workspace` brings in its server
1392
+ markup (also from another island; with several, the first one shown);
1393
+ the same news twice is said twice, a burst within 250 ms as its last
1394
+ news and at least once a second, and said news leaves after five
1395
+ seconds; `assertive` only for news that cannot wait, such as a run that
1396
+ failed.
285
1397
 
286
1398
  ## States
287
1399
 
288
1400
  Each stands where the data will stand, without a box, so the head and the
289
1401
  status row above it never move.
290
1402
 
1403
+ - `ErrorScreen`: `code`, `title`, `text`, `actions` (the primary `Button`, then
1404
+ one secondary), `foot` (a quiet invitation such as the waiting game). A page
1405
+ that could not open: the code large as an outline, alone, centred, no head;
1406
+ stand it alone in a `Pane`. `compact` for a narrow column of words (the
1407
+ Empfang frame): at its start, smaller, the ways out at full width.
291
1408
  - `Empty`: `icon`, `text` (one sentence that says what is the matter: "Noch
292
1409
  keine Einlieferung." is not "Keine Treffer mit diesem Filter."), `action`
293
- (the one way out).
1410
+ (the way out), `secondary` (a second, quieter way out after it, as a
1411
+ text button, such as "Filter zurücksetzen" and "Ganzes Notizbuch
1412
+ zeigen"; the first stays the one a focus that comes to the state reaches),
1413
+ `tone` (`bad` or `warn` for a place empty because something went wrong or
1414
+ waits and cannot be retried there, such as an error page; data to load
1415
+ again is `Failed`).
294
1416
  - `Loading`: `rows` (3 when not set; give as many as usually come),
295
- `lines` (1, 2 or 3, as the rows that will come). It stands where the
1417
+ `lines` (1, 2 or 3, as the rows that will come), `lead` (`mark` or
1418
+ `avatar`, matching their lead so its size and the text edge stay in place). It stands where the
296
1419
  `List` will stand; a `Table` takes `loading` itself.
297
1420
  - `Failed`: `text` (what could not be loaded and what stays as it is),
298
1421
  `onRetry`; the button says "Erneut versuchen". Only for data that failed
@@ -305,6 +1428,11 @@ status row above it never move.
305
1428
  - `describeV2(element, { layout? })`: the text outline of a screen; see
306
1429
  `seeing.md`.
307
1430
  - `@k2b/ui/v2/testing`: `measureV2Layout(page)`, `describeV2Page(page)`,
308
- `settled(page)` for Playwright tests; see `seeing.md`.
1431
+ `settled(page)`, `visibleCount(locator)`, `visibleTexts(locator)` for
1432
+ Playwright tests; see `seeing.md`.
309
1433
  - Tokens for tests: `typeRoles`, `fontWeights`, `heights`, `textEdge`,
310
1434
  `radii`, `hairline`, `gripTolerance`.
1435
+
1436
+ ### Retain pane and table widths
1437
+
1438
+ Give `Pane.Split` and `Table` a `persist={{ key, widths, max }}`. Read `widths` on the server with `readWidthCookie(requestCookie, key)` from `@k2b/ui/v2` and hand the same decoded array to the island. The server renders it already; never read the browser cookie during hydration. Server-only workspaces write it through `attachWorkspaces()`. Keys are stable, app-prefixed, 1–64 letters, digits, underscores or hyphens; use a fixed set. Every persisted pane needs a unique, stable `persistIndex` from 0 to 63, even when siblings open, close or remount; a pane without one stays transient. Table columns use their array index, so keep their order stable. One `k2_widths_<key>` cookie keeps up to 64 widths as URI-encoded JSON, at most 2048 value bytes, for one year. Values clamp to the column minimum and required `max` in px; missing or malformed values use the defaults. Fixed and rest columns keep their own widths.