@k2b/ui 0.63.0 → 0.64.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 (332) hide show
  1. package/dist/base.css +6 -3
  2. package/dist/browser/actions/ContextMenu.js +3 -1
  3. package/dist/browser/actions/ContextMenu.js.map +1 -1
  4. package/dist/browser/actions/DragAndDrop.js +26 -5
  5. package/dist/browser/actions/DragAndDrop.js.map +1 -1
  6. package/dist/browser/actions/DropOverlay.js +76 -0
  7. package/dist/browser/actions/DropOverlay.js.map +1 -0
  8. package/dist/browser/actions/Dropdown.js +69 -15
  9. package/dist/browser/actions/Dropdown.js.map +1 -1
  10. package/dist/browser/actions/SortableList.js +338 -85
  11. package/dist/browser/actions/SortableList.js.map +1 -1
  12. package/dist/browser/actions/ViewTabs.js +9 -5
  13. package/dist/browser/actions/ViewTabs.js.map +1 -1
  14. package/dist/browser/actions/drag-and-drop-keyboard.js +211 -0
  15. package/dist/browser/actions/drag-and-drop-keyboard.js.map +1 -0
  16. package/dist/browser/actions/drag-and-drop-messages.js +21 -25
  17. package/dist/browser/actions/drag-and-drop-messages.js.map +1 -1
  18. package/dist/browser/actions/drag-and-drop.js +206 -184
  19. package/dist/browser/actions/drag-and-drop.js.map +1 -1
  20. package/dist/browser/actions/drop-overlay-pages.js +54 -0
  21. package/dist/browser/actions/drop-overlay-pages.js.map +1 -0
  22. package/dist/browser/actions/drop-overlay-view.js +318 -0
  23. package/dist/browser/actions/drop-overlay-view.js.map +1 -0
  24. package/dist/browser/actions/index.js +4 -2
  25. package/dist/browser/actions/index.js.map +1 -1
  26. package/dist/browser/actions/menu-sheet-messages.js +26 -0
  27. package/dist/browser/actions/menu-sheet-messages.js.map +1 -0
  28. package/dist/browser/actions/menu-sheet.js +80 -18
  29. package/dist/browser/actions/menu-sheet.js.map +1 -1
  30. package/dist/browser/actions/menu-submenu-panel.js +392 -0
  31. package/dist/browser/actions/menu-submenu-panel.js.map +1 -0
  32. package/dist/browser/actions/preload-when-idle.js +15 -0
  33. package/dist/browser/actions/preload-when-idle.js.map +1 -0
  34. package/dist/browser/actions/sortable-board.js +107 -0
  35. package/dist/browser/actions/sortable-board.js.map +1 -0
  36. package/dist/browser/actions/sortable-keyboard.js +202 -0
  37. package/dist/browser/actions/sortable-keyboard.js.map +1 -0
  38. package/dist/browser/actions/sortable-list-messages.js +23 -11
  39. package/dist/browser/actions/sortable-list-messages.js.map +1 -1
  40. package/dist/browser/actions/sortable-place.js +26 -0
  41. package/dist/browser/actions/sortable-place.js.map +1 -0
  42. package/dist/browser/chat/ChatDecision.js +499 -463
  43. package/dist/browser/chat/ChatDecision.js.map +1 -1
  44. package/dist/browser/chat/ChatDecisionField.js +311 -0
  45. package/dist/browser/chat/ChatDecisionField.js.map +1 -0
  46. package/dist/browser/chat/index.js +2 -0
  47. package/dist/browser/chat/index.js.map +1 -1
  48. package/dist/browser/chat/types.js.map +1 -1
  49. package/dist/browser/chat-decision-field.js +6 -0
  50. package/dist/browser/chat-decision-field.js.map +1 -0
  51. package/dist/browser/content/DataTable.js +326 -205
  52. package/dist/browser/content/DataTable.js.map +1 -1
  53. package/dist/browser/content/FileName.js +68 -0
  54. package/dist/browser/content/FileName.js.map +1 -0
  55. package/dist/browser/content/ProgressPath.js +30 -25
  56. package/dist/browser/content/ProgressPath.js.map +1 -1
  57. package/dist/browser/content/TaskRow.js +129 -0
  58. package/dist/browser/content/TaskRow.js.map +1 -0
  59. package/dist/browser/content/index.js +2 -0
  60. package/dist/browser/content/index.js.map +1 -1
  61. package/dist/browser/content/progress-path-messages.js +22 -0
  62. package/dist/browser/content/progress-path-messages.js.map +1 -0
  63. package/dist/browser/feedback/dialog-core.js +68 -11
  64. package/dist/browser/feedback/dialog-core.js.map +1 -1
  65. package/dist/browser/feedback/dialog-foot.js +45 -0
  66. package/dist/browser/feedback/dialog-foot.js.map +1 -0
  67. package/dist/browser/inputs/DatePicker.js +369 -716
  68. package/dist/browser/inputs/DatePicker.js.map +1 -1
  69. package/dist/browser/inputs/FileInputs.js +1 -1
  70. package/dist/browser/inputs/FileInputs.js.map +1 -1
  71. package/dist/browser/inputs/NumberInput.js +125 -46
  72. package/dist/browser/inputs/NumberInput.js.map +1 -1
  73. package/dist/browser/inputs/PeriodPicker.js +9 -4
  74. package/dist/browser/inputs/PeriodPicker.js.map +1 -1
  75. package/dist/browser/inputs/TextInput.js +3 -3
  76. package/dist/browser/inputs/TextInput.js.map +1 -1
  77. package/dist/browser/inputs/date-picker-panel.js +420 -0
  78. package/dist/browser/inputs/date-picker-panel.js.map +1 -0
  79. package/dist/browser/inputs/image-crop.js +1 -1
  80. package/dist/browser/inputs/image-crop.js.map +1 -1
  81. package/dist/browser/inputs/image-tools.js +4 -0
  82. package/dist/browser/inputs/image-tools.js.map +1 -0
  83. package/dist/browser/inputs/input-messages.js +8 -2
  84. package/dist/browser/inputs/input-messages.js.map +1 -1
  85. package/dist/browser/internal/field.js +2 -2
  86. package/dist/browser/internal/field.js.map +1 -1
  87. package/dist/browser/internal/renders-something.js +3 -0
  88. package/dist/browser/internal/renders-something.js.map +1 -0
  89. package/dist/browser/intl/messages.js +1 -1
  90. package/dist/browser/intl/messages.js.map +1 -1
  91. package/dist/browser/layout/AppWorkspace.js +16 -8
  92. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  93. package/dist/browser/layout/Breadcrumbs.js +188 -42
  94. package/dist/browser/layout/Breadcrumbs.js.map +1 -1
  95. package/dist/browser/layout/DetailPanel.js +209 -205
  96. package/dist/browser/layout/DetailPanel.js.map +1 -1
  97. package/dist/browser/layout/FloatingPill.js +33 -0
  98. package/dist/browser/layout/FloatingPill.js.map +1 -0
  99. package/dist/browser/layout/PanelDialog.js +176 -88
  100. package/dist/browser/layout/PanelDialog.js.map +1 -1
  101. package/dist/browser/layout/StatusRow.js +174 -0
  102. package/dist/browser/layout/StatusRow.js.map +1 -0
  103. package/dist/browser/layout/app-workspace-controller.js +12 -5
  104. package/dist/browser/layout/app-workspace-controller.js.map +1 -1
  105. package/dist/browser/layout/app-workspace-state.js +2 -2
  106. package/dist/browser/layout/app-workspace-state.js.map +1 -1
  107. package/dist/browser/layout/index.js +2 -0
  108. package/dist/browser/layout/index.js.map +1 -1
  109. package/dist/browser/layout/panel-dialog-error.js +44 -0
  110. package/dist/browser/layout/panel-dialog-error.js.map +1 -0
  111. package/dist/browser/layout/panel-sheet-handle.js +86 -0
  112. package/dist/browser/layout/panel-sheet-handle.js.map +1 -0
  113. package/dist/browser/layout/workspace-messages.js +12 -2
  114. package/dist/browser/layout/workspace-messages.js.map +1 -1
  115. package/dist/browser/layout-check.js +232 -0
  116. package/dist/browser/layout-check.js.map +1 -0
  117. package/dist/browser/surfaces/Area.js +205 -0
  118. package/dist/browser/surfaces/Area.js.map +1 -0
  119. package/dist/browser/surfaces/FactGroup.js +148 -0
  120. package/dist/browser/surfaces/FactGroup.js.map +1 -0
  121. package/dist/browser/surfaces/FieldGrid.js +34 -0
  122. package/dist/browser/surfaces/FieldGrid.js.map +1 -0
  123. package/dist/browser/surfaces/NoticeCard.js +69 -57
  124. package/dist/browser/surfaces/NoticeCard.js.map +1 -1
  125. package/dist/browser/surfaces/Placeholder.js +17 -5
  126. package/dist/browser/surfaces/Placeholder.js.map +1 -1
  127. package/dist/browser/surfaces/RowGroup.js +82 -0
  128. package/dist/browser/surfaces/RowGroup.js.map +1 -0
  129. package/dist/browser/surfaces/Section.js +22 -7
  130. package/dist/browser/surfaces/Section.js.map +1 -1
  131. package/dist/browser/surfaces/StatusBadge.js +5 -1
  132. package/dist/browser/surfaces/StatusBadge.js.map +1 -1
  133. package/dist/browser/surfaces/flat-block-messages.js +37 -0
  134. package/dist/browser/surfaces/flat-block-messages.js.map +1 -0
  135. package/dist/browser/surfaces/index.js +4 -0
  136. package/dist/browser/surfaces/index.js.map +1 -1
  137. package/dist/ssr/actions/ContextMenu.js +3 -1
  138. package/dist/ssr/actions/ContextMenu.js.map +1 -1
  139. package/dist/ssr/actions/DragAndDrop.js +26 -5
  140. package/dist/ssr/actions/DragAndDrop.js.map +1 -1
  141. package/dist/ssr/actions/DropOverlay.js +69 -0
  142. package/dist/ssr/actions/DropOverlay.js.map +1 -0
  143. package/dist/ssr/actions/Dropdown.js +69 -15
  144. package/dist/ssr/actions/Dropdown.js.map +1 -1
  145. package/dist/ssr/actions/SortableList.js +293 -71
  146. package/dist/ssr/actions/SortableList.js.map +1 -1
  147. package/dist/ssr/actions/ViewTabs.js +9 -5
  148. package/dist/ssr/actions/ViewTabs.js.map +1 -1
  149. package/dist/ssr/actions/drag-and-drop-keyboard.js +211 -0
  150. package/dist/ssr/actions/drag-and-drop-keyboard.js.map +1 -0
  151. package/dist/ssr/actions/drag-and-drop-messages.js +21 -25
  152. package/dist/ssr/actions/drag-and-drop-messages.js.map +1 -1
  153. package/dist/ssr/actions/drag-and-drop.js +206 -184
  154. package/dist/ssr/actions/drag-and-drop.js.map +1 -1
  155. package/dist/ssr/actions/drop-overlay-pages.js +54 -0
  156. package/dist/ssr/actions/drop-overlay-pages.js.map +1 -0
  157. package/dist/ssr/actions/drop-overlay-view.js +225 -0
  158. package/dist/ssr/actions/drop-overlay-view.js.map +1 -0
  159. package/dist/ssr/actions/index.js +4 -2
  160. package/dist/ssr/actions/index.js.map +1 -1
  161. package/dist/ssr/actions/menu-sheet-messages.js +26 -0
  162. package/dist/ssr/actions/menu-sheet-messages.js.map +1 -0
  163. package/dist/ssr/actions/menu-sheet.js +62 -10
  164. package/dist/ssr/actions/menu-sheet.js.map +1 -1
  165. package/dist/ssr/actions/menu-submenu-panel.js +295 -0
  166. package/dist/ssr/actions/menu-submenu-panel.js.map +1 -0
  167. package/dist/ssr/actions/preload-when-idle.js +15 -0
  168. package/dist/ssr/actions/preload-when-idle.js.map +1 -0
  169. package/dist/ssr/actions/sortable-board.js +107 -0
  170. package/dist/ssr/actions/sortable-board.js.map +1 -0
  171. package/dist/ssr/actions/sortable-keyboard.js +202 -0
  172. package/dist/ssr/actions/sortable-keyboard.js.map +1 -0
  173. package/dist/ssr/actions/sortable-list-messages.js +23 -11
  174. package/dist/ssr/actions/sortable-list-messages.js.map +1 -1
  175. package/dist/ssr/actions/sortable-place.js +26 -0
  176. package/dist/ssr/actions/sortable-place.js.map +1 -0
  177. package/dist/ssr/chat/ChatDecision.js +256 -228
  178. package/dist/ssr/chat/ChatDecision.js.map +1 -1
  179. package/dist/ssr/chat/ChatDecisionField.js +206 -0
  180. package/dist/ssr/chat/ChatDecisionField.js.map +1 -0
  181. package/dist/ssr/chat/index.js +2 -0
  182. package/dist/ssr/chat/index.js.map +1 -1
  183. package/dist/ssr/chat/types.js.map +1 -1
  184. package/dist/ssr/chat-decision-field.js +6 -0
  185. package/dist/ssr/chat-decision-field.js.map +1 -0
  186. package/dist/ssr/content/DataTable.js +93 -50
  187. package/dist/ssr/content/DataTable.js.map +1 -1
  188. package/dist/ssr/content/FileName.js +46 -0
  189. package/dist/ssr/content/FileName.js.map +1 -0
  190. package/dist/ssr/content/ProgressPath.js +14 -8
  191. package/dist/ssr/content/ProgressPath.js.map +1 -1
  192. package/dist/ssr/content/TaskRow.js +95 -0
  193. package/dist/ssr/content/TaskRow.js.map +1 -0
  194. package/dist/ssr/content/index.js +2 -0
  195. package/dist/ssr/content/index.js.map +1 -1
  196. package/dist/ssr/content/progress-path-messages.js +22 -0
  197. package/dist/ssr/content/progress-path-messages.js.map +1 -0
  198. package/dist/ssr/feedback/dialog-core.js +68 -11
  199. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  200. package/dist/ssr/feedback/dialog-foot.js +45 -0
  201. package/dist/ssr/feedback/dialog-foot.js.map +1 -0
  202. package/dist/ssr/inputs/DatePicker.js +94 -263
  203. package/dist/ssr/inputs/DatePicker.js.map +1 -1
  204. package/dist/ssr/inputs/FileInputs.js +1 -1
  205. package/dist/ssr/inputs/FileInputs.js.map +1 -1
  206. package/dist/ssr/inputs/NumberInput.js +114 -44
  207. package/dist/ssr/inputs/NumberInput.js.map +1 -1
  208. package/dist/ssr/inputs/PeriodPicker.js +9 -4
  209. package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
  210. package/dist/ssr/inputs/TextInput.js +3 -3
  211. package/dist/ssr/inputs/TextInput.js.map +1 -1
  212. package/dist/ssr/inputs/date-picker-panel.js +233 -0
  213. package/dist/ssr/inputs/date-picker-panel.js.map +1 -0
  214. package/dist/ssr/inputs/image-crop.js +1 -1
  215. package/dist/ssr/inputs/image-crop.js.map +1 -1
  216. package/dist/ssr/inputs/image-tools.js +4 -0
  217. package/dist/ssr/inputs/image-tools.js.map +1 -0
  218. package/dist/ssr/inputs/input-messages.js +8 -2
  219. package/dist/ssr/inputs/input-messages.js.map +1 -1
  220. package/dist/ssr/internal/field.js +2 -2
  221. package/dist/ssr/internal/field.js.map +1 -1
  222. package/dist/ssr/internal/renders-something.js +3 -0
  223. package/dist/ssr/internal/renders-something.js.map +1 -0
  224. package/dist/ssr/intl/messages.js +1 -1
  225. package/dist/ssr/intl/messages.js.map +1 -1
  226. package/dist/ssr/layout/AppWorkspace.js +16 -8
  227. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  228. package/dist/ssr/layout/Breadcrumbs.js +140 -26
  229. package/dist/ssr/layout/Breadcrumbs.js.map +1 -1
  230. package/dist/ssr/layout/DetailPanel.js +70 -68
  231. package/dist/ssr/layout/DetailPanel.js.map +1 -1
  232. package/dist/ssr/layout/FloatingPill.js +16 -0
  233. package/dist/ssr/layout/FloatingPill.js.map +1 -0
  234. package/dist/ssr/layout/PanelDialog.js +82 -8
  235. package/dist/ssr/layout/PanelDialog.js.map +1 -1
  236. package/dist/ssr/layout/StatusRow.js +93 -0
  237. package/dist/ssr/layout/StatusRow.js.map +1 -0
  238. package/dist/ssr/layout/app-workspace-controller.js +12 -5
  239. package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
  240. package/dist/ssr/layout/app-workspace-state.js +2 -2
  241. package/dist/ssr/layout/app-workspace-state.js.map +1 -1
  242. package/dist/ssr/layout/index.js +2 -0
  243. package/dist/ssr/layout/index.js.map +1 -1
  244. package/dist/ssr/layout/panel-dialog-error.js +28 -0
  245. package/dist/ssr/layout/panel-dialog-error.js.map +1 -0
  246. package/dist/ssr/layout/panel-sheet-handle.js +66 -0
  247. package/dist/ssr/layout/panel-sheet-handle.js.map +1 -0
  248. package/dist/ssr/layout/workspace-messages.js +12 -2
  249. package/dist/ssr/layout/workspace-messages.js.map +1 -1
  250. package/dist/ssr/layout-check.js +232 -0
  251. package/dist/ssr/layout-check.js.map +1 -0
  252. package/dist/ssr/surfaces/Area.js +147 -0
  253. package/dist/ssr/surfaces/Area.js.map +1 -0
  254. package/dist/ssr/surfaces/FactGroup.js +106 -0
  255. package/dist/ssr/surfaces/FactGroup.js.map +1 -0
  256. package/dist/ssr/surfaces/FieldGrid.js +22 -0
  257. package/dist/ssr/surfaces/FieldGrid.js.map +1 -0
  258. package/dist/ssr/surfaces/NoticeCard.js +7 -5
  259. package/dist/ssr/surfaces/NoticeCard.js.map +1 -1
  260. package/dist/ssr/surfaces/Placeholder.js +15 -4
  261. package/dist/ssr/surfaces/Placeholder.js.map +1 -1
  262. package/dist/ssr/surfaces/RowGroup.js +60 -0
  263. package/dist/ssr/surfaces/RowGroup.js.map +1 -0
  264. package/dist/ssr/surfaces/Section.js +7 -4
  265. package/dist/ssr/surfaces/Section.js.map +1 -1
  266. package/dist/ssr/surfaces/StatusBadge.js +5 -1
  267. package/dist/ssr/surfaces/StatusBadge.js.map +1 -1
  268. package/dist/ssr/surfaces/flat-block-messages.js +37 -0
  269. package/dist/ssr/surfaces/flat-block-messages.js.map +1 -0
  270. package/dist/ssr/surfaces/index.js +4 -0
  271. package/dist/ssr/surfaces/index.js.map +1 -1
  272. package/dist/styles.css +1 -1
  273. package/dist/types/actions/DragAndDrop.d.ts +17 -2
  274. package/dist/types/actions/DropOverlay.d.ts +46 -0
  275. package/dist/types/actions/Dropdown.d.ts +35 -1
  276. package/dist/types/actions/SortableList.d.ts +36 -6
  277. package/dist/types/actions/ViewTabs.d.ts +3 -2
  278. package/dist/types/actions/drag-and-drop-keyboard.d.ts +4 -0
  279. package/dist/types/actions/drag-and-drop-messages.d.ts +8 -10
  280. package/dist/types/actions/drag-and-drop.d.ts +62 -4
  281. package/dist/types/actions/drop-overlay-pages.d.ts +22 -0
  282. package/dist/types/actions/drop-overlay-view.d.ts +12 -0
  283. package/dist/types/actions/index.d.ts +9 -5
  284. package/dist/types/actions/menu-sheet-messages.d.ts +11 -0
  285. package/dist/types/actions/menu-sheet.d.ts +3 -1
  286. package/dist/types/actions/menu-submenu-panel.d.ts +27 -0
  287. package/dist/types/actions/preload-when-idle.d.ts +5 -0
  288. package/dist/types/actions/sortable-board.d.ts +69 -0
  289. package/dist/types/actions/sortable-keyboard.d.ts +7 -0
  290. package/dist/types/actions/sortable-list-messages.d.ts +10 -3
  291. package/dist/types/actions/sortable-place.d.ts +16 -0
  292. package/dist/types/chat/ChatDecision.d.ts +28 -4
  293. package/dist/types/chat/ChatDecisionField.d.ts +45 -0
  294. package/dist/types/chat/index.d.ts +1 -0
  295. package/dist/types/chat/types.d.ts +9 -0
  296. package/dist/types/chat-decision-field.d.ts +5 -0
  297. package/dist/types/content/DataTable.d.ts +19 -0
  298. package/dist/types/content/FileName.d.ts +23 -0
  299. package/dist/types/content/ProgressPath.d.ts +12 -6
  300. package/dist/types/content/TaskRow.d.ts +33 -0
  301. package/dist/types/content/index.d.ts +2 -0
  302. package/dist/types/content/progress-path-messages.d.ts +8 -0
  303. package/dist/types/feedback/dialog-core.d.ts +5 -0
  304. package/dist/types/feedback/dialog-foot.d.ts +9 -0
  305. package/dist/types/inputs/DatePicker.d.ts +3 -21
  306. package/dist/types/inputs/TextInput.d.ts +2 -0
  307. package/dist/types/inputs/date-picker-panel.d.ts +29 -0
  308. package/dist/types/inputs/image-tools.d.ts +1 -0
  309. package/dist/types/inputs/input-messages.d.ts +4 -1
  310. package/dist/types/internal/renders-something.d.ts +2 -0
  311. package/dist/types/layout/AppWorkspace.d.ts +10 -2
  312. package/dist/types/layout/Breadcrumbs.d.ts +10 -5
  313. package/dist/types/layout/FloatingPill.d.ts +20 -0
  314. package/dist/types/layout/PanelDialog.d.ts +19 -0
  315. package/dist/types/layout/StatusRow.d.ts +54 -0
  316. package/dist/types/layout/app-workspace-state.d.ts +2 -2
  317. package/dist/types/layout/index.d.ts +5 -1
  318. package/dist/types/layout/panel-dialog-error.d.ts +9 -0
  319. package/dist/types/layout/panel-sheet-handle.d.ts +8 -0
  320. package/dist/types/layout/workspace-messages.d.ts +5 -0
  321. package/dist/types/layout-check.d.ts +52 -0
  322. package/dist/types/surfaces/Area.d.ts +38 -0
  323. package/dist/types/surfaces/FactGroup.d.ts +33 -0
  324. package/dist/types/surfaces/FieldGrid.d.ts +14 -0
  325. package/dist/types/surfaces/NoticeCard.d.ts +6 -4
  326. package/dist/types/surfaces/Placeholder.d.ts +7 -0
  327. package/dist/types/surfaces/RowGroup.d.ts +20 -0
  328. package/dist/types/surfaces/Section.d.ts +8 -2
  329. package/dist/types/surfaces/StatusBadge.d.ts +2 -1
  330. package/dist/types/surfaces/flat-block-messages.d.ts +16 -0
  331. package/dist/types/surfaces/index.d.ts +9 -1
  332. package/package.json +13 -2
@@ -14,8 +14,8 @@ export type ChatDecisionProps = {
14
14
  label: string;
15
15
  icon: string;
16
16
  };
17
- /** Who asks: the app's name and icon, its icon tile in `accent`. */
18
- source: {
17
+ /** Who asks: the app's name and icon, its icon tile in `accent`. Without it the head names only what the card is. */
18
+ source?: {
19
19
  name: string;
20
20
  icon: string;
21
21
  accent?: string;
@@ -31,8 +31,8 @@ export type ChatDecisionProps = {
31
31
  };
32
32
  /** The question as one sentence, usually with `ReferenceChip`s. */
33
33
  sentence: JSX.Element;
34
- /** Why this question is asked, in the platform's words. */
35
- reason: ChatDecisionReason;
34
+ /** Why this question is asked, in the platform's words. A question with an `entry` may say it there instead. */
35
+ reason?: ChatDecisionReason;
36
36
  /**
37
37
  * The thing itself on the surface colour, under its own label such as "Details from Mail". `note` is one quiet line
38
38
  * under it that holds for every such question, such as what Cloud checked.
@@ -81,6 +81,11 @@ export type ChatDecisionProps = {
81
81
  waiting?: ChatDecisionReason;
82
82
  /** The result line shown in every state but `open`, usually `Chat.Outcome`. */
83
83
  outcome?: JSX.Element;
84
+ /**
85
+ * Takes the answer row's place, such as `ChatDecisionField` for a question that asks for one value. `meta`, `back`,
86
+ * `more`, `link`, `remember`, `confirm` and `decline` of the question are then not shown; the entry brings its own.
87
+ */
88
+ entry?: JSX.Element;
84
89
  /** Receives a rejected promise from an answer's `onSelect`. */
85
90
  onAnswerError?: (error: unknown) => void;
86
91
  /**
@@ -91,6 +96,23 @@ export type ChatDecisionProps = {
91
96
  anchorId?: string | number;
92
97
  class?: string;
93
98
  };
99
+ /**
100
+ * What an outcome inside a question needs from it: whether it was just answered here, and a link press inside it. An
101
+ * `entry` also answers through it, reads which answers are off, and turns the question into the island.
102
+ */
103
+ export declare const DecisionScope: import("solid-js").Context<{
104
+ answered: () => boolean;
105
+ pressed: () => void;
106
+ released: () => void;
107
+ /** Answers like the question's own buttons, under its own `key`, through the same guard: one answer at a time. */
108
+ answer: (key: string, choice: ChatDecisionAnswer, enabled: boolean) => void;
109
+ /** The key of the answer whose promise still runs; until it settles every answer of the question waits. */
110
+ pending: () => string | undefined;
111
+ /** `all` while `waiting`, `confirm` while `unavailable`. */
112
+ off: () => "all" | "confirm" | undefined;
113
+ /** Turns the question into the raised island of `edit` for good. */
114
+ edit: () => void;
115
+ } | undefined>;
94
116
  /**
95
117
  * A question the person answers: what it is and who asks, one sentence, why it is asked, the thing itself, and the
96
118
  * answers. It has one look in every place: a tinted ground in the AI colour, its own AI primary colour, no rules. An
@@ -110,6 +132,8 @@ export type ChatOutcomeProps = {
110
132
  anchorId?: string | number;
111
133
  class?: string;
112
134
  };
135
+ /** The visible words of a line, without what screen readers do not hear. */
136
+ export declare const spokenText: (element: Element) => string;
113
137
  /**
114
138
  * One line that says what happened: running, done, off, waiting, warning, or error. Changes are announced through a
115
139
  * polite live region; the line itself can take the focus.
@@ -0,0 +1,45 @@
1
+ import { type JSX } from "solid-js";
2
+ import type { ChatDecisionAnswer, ChatDecisionReason } from "./types";
3
+ export type ChatDecisionFieldProps = {
4
+ /** Facts with their icons on the surface colour above the field, such as where the value goes; no label needed. */
5
+ facts?: readonly ChatDecisionReason[];
6
+ /** The field's name for screen readers, such as "Value for Parcel_API"; the sentence already names it visibly. */
7
+ label: string;
8
+ /** The value stays with the caller; the field never keeps, logs, or writes it into an attribute. */
9
+ value: string;
10
+ onValueChange: (value: string) => void;
11
+ placeholder?: string;
12
+ /** The eye's fixed name, such as "Show value"; `aria-pressed` tells whether the value shows. */
13
+ revealLabel?: string;
14
+ /**
15
+ * Every line one flow can show under the field, such as where the value goes, an error, or "Open in another window".
16
+ * All of them share one cell, so the question keeps its height between them. A change is announced once.
17
+ */
18
+ lines: Readonly<Record<string, ChatDecisionReason>>;
19
+ /** The key of the visible line. */
20
+ current: string;
21
+ /** The value cannot be taken as it is: a red edge, and the field takes the focus back from the answers. */
22
+ invalid?: boolean;
23
+ /**
24
+ * Locks the field, the eye and both answers, such as while another window holds the question. While an answer's
25
+ * promise runs, the question locks them by itself.
26
+ */
27
+ disabled?: boolean;
28
+ /** Receives the input, for a host that moves the focus into the field, such as after a jump to the question. */
29
+ inputRef?: (input: HTMLInputElement) => void;
30
+ /**
31
+ * The main answer, filled, beside the field, such as "Save securely". A promise it returns locks the field, the eye
32
+ * and both answers until it settles and keeps the question answered here, so an outcome set before it settles takes
33
+ * the focus. A question still open afterwards gives the focus back to the field.
34
+ */
35
+ confirm: ChatDecisionAnswer;
36
+ /** The quiet answer in the AI colour under it, such as "Decline". */
37
+ decline?: ChatDecisionAnswer;
38
+ };
39
+ /**
40
+ * The answer row of a `Chat.Decision` that asks for one value, passed as its `entry`: a password field with an eye, one
41
+ * line under it, the filled answer beside the field, and a quiet one beside the line. Every line and every label shares
42
+ * one cell, so no state moves anything. Typing, or the focus in the field, turns the question into the raised island
43
+ * for good.
44
+ */
45
+ export declare function ChatDecisionField(props: ChatDecisionFieldProps): JSX.Element;
@@ -12,6 +12,7 @@ export type { ChatActivityWordsProps } from "./ChatActivityWords";
12
12
  export type { ChatCommand, ChatCommandContext, ChatCommandDraft, ChatCommandOpenResult, ChatCommandResult, ChatCommandScope, ChatCommandSearch, ChatCommandSection, ChatComposerPeople, ChatComposerProps, ChatComposerQuote, ChatComposerReply, ChatComposerSuggestion, ChatFileSelection, ChatPasteHandler, ChatPersonSuggestion, } from "./ChatComposer";
13
13
  export { ChatComposerQuotes } from "./ChatComposerQuotes";
14
14
  export type { ChatDecisionProps, ChatOutcomeProps } from "./ChatDecision";
15
+ export { ChatDecisionField, type ChatDecisionFieldProps } from "./ChatDecisionField";
15
16
  export type { ChatActivityMetaTone, ChatActivityProps, ChatActivityToggleProps, ChatContextUsageProps, ChatMessageProps, } from "./ChatPrimitives";
16
17
  export { formatChatTokens } from "./ChatPrimitives";
17
18
  export type { ChatRootProps } from "./ChatRoot";
@@ -16,6 +16,15 @@ export type ChatDecisionAnswer = {
16
16
  * stays in place. A shimmer runs over the filled button and it takes no second press. Only `confirm` reads it.
17
17
  */
18
18
  busy?: boolean;
19
+ /**
20
+ * The other labels this answer can take while its question stays open, such as "Saving …" and "Try again" beside
21
+ * "Save". All of them share one cell, so the button keeps the width of the widest and a switch moves nothing. Read
22
+ * by the answers of `ChatDecisionField`.
23
+ */
24
+ alternates?: readonly {
25
+ label: string;
26
+ icon?: string;
27
+ }[];
19
28
  /** A returned promise holds every answer of the question until it settles; then they work again while it stays open. */
20
29
  onSelect: () => void | Promise<void>;
21
30
  };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A separate entry for code that loads a question with a field on demand. Imported from here, it stays out of an
3
+ * island's first JavaScript, because the main entry no longer has to keep it.
4
+ */
5
+ export { ChatDecisionField, type ChatDecisionFieldProps } from "./chat/ChatDecisionField";
@@ -46,6 +46,18 @@ export type DataTableColumn<T> = {
46
46
  * 2 below 420 px. Hidden values stay one tap away in the row's details.
47
47
  */
48
48
  priority?: 1 | 2 | 3;
49
+ /**
50
+ * The name column: at least 200 px and at most 560 px wide, so a value stays beside its name on a wide screen.
51
+ * When the table gets narrow, columns of a lower `priority` leave before it shrinks.
52
+ */
53
+ primary?: boolean;
54
+ /**
55
+ * Where the column's value goes when the table is a list. With any column given a role, a table narrower than
56
+ * 480 px shows each row as one entry of two lines: `title` on the first line, `meta` on the second in quiet text,
57
+ * and `end` at the right of both lines, such as a status or an amount. Give one column each role; columns without
58
+ * a role leave, so keep what matters in those three.
59
+ */
60
+ list?: "title" | "meta" | "end";
49
61
  };
50
62
  export type DataTableSort = {
51
63
  key: string;
@@ -132,6 +144,13 @@ export type DataTableProps<T> = {
132
144
  * group's value and count, in the order the groups first appear.
133
145
  */
134
146
  groupBy?: string;
147
+ /**
148
+ * Lets the person fold a group: its head becomes a disclosure button with the group's name, count, and a chevron.
149
+ * A folded group keeps its 36 px head; only its rows leave.
150
+ */
151
+ collapsibleGroups?: boolean;
152
+ /** The keys of the groups that start folded: a group's key is its stored value as text, `""` for missing values. */
153
+ defaultCollapsedGroups?: readonly string[];
135
154
  /**
136
155
  * The host's search text. With no rows left, the table says that nothing matches it and offers to clear it
137
156
  * through `onClearQuery`, instead of `empty`. Filter the rows with `filterRows`.
@@ -0,0 +1,23 @@
1
+ import { type JSX } from "solid-js";
2
+ /**
3
+ * A file name split before its ending: `{ stem: "Report 2026", ext: ".pdf" }`. A name without a dot, a hidden file
4
+ * such as `.env`, or a name that ends in a dot has no ending. A long ending (more than ten characters after the dot)
5
+ * counts as part of the name, so a dotted title does not read as a file type.
6
+ */
7
+ export declare const splitFileName: (name: string) => {
8
+ stem: string;
9
+ ext: string;
10
+ };
11
+ export type FileNameProps = Omit<JSX.HTMLAttributes<HTMLSpanElement>, "children"> & {
12
+ /** The whole name, ending included. */
13
+ name: string;
14
+ };
15
+ /**
16
+ * A file name on one line that shortens before its ending (K15): `Quarterly rep….pdf`. The ending always stays, and
17
+ * the whole name is the hint on hover and the text a screen reader reads: the visible stem and ending are two flex
18
+ * items, which accessible names join with a space ("Notes .txt"), so they are hidden from assistive technology and
19
+ * the whole name stands beside them as screen-reader text. The screen-reader text is out of the flow, so the layout
20
+ * stays as it was.
21
+ */
22
+ export declare function FileName(props: FileNameProps): JSX.Element;
23
+ export default FileName;
@@ -4,9 +4,14 @@ export type ProgressPathStep = {
4
4
  label: string;
5
5
  /** A quiet second line, such as the day it happened or "not yet". */
6
6
  detail?: JSX.Element;
7
- /** Whether the step happened. Done steps show a check and a colored line to the next step. */
7
+ /** Whether the step happened. A done step shows a check in a filled dot. */
8
8
  done?: boolean;
9
- /** Tabler icon class an open step shows in its circle, such as `ti ti-truck`. */
9
+ /**
10
+ * The one step the thing is at now. Its dot is a ring in the app colour, its name is bold, and screen readers hear
11
+ * "current step". It wins over `done` and `icon`.
12
+ */
13
+ current?: boolean;
14
+ /** Tabler icon class an open step shows in its dot, such as `ti ti-truck`. */
10
15
  icon?: string;
11
16
  };
12
17
  export type ProgressPathProps = {
@@ -16,10 +21,11 @@ export type ProgressPathProps = {
16
21
  class?: string;
17
22
  };
18
23
  /**
19
- * The stages of one thing in order, each with a word and a quiet line, such as where an item is on its way. Done steps
20
- * carry a check; the words say the state, so color is never the only signal. Wide containers lay the steps out side
21
- * by side, narrow ones, such as a phone, one below the other.
22
- * @example <ProgressPath steps={[{ label: "Received", detail: "Nov 7", done: true }, { label: "Shipped", detail: "not yet", icon: "ti ti-truck" }]} />
24
+ * The way of one thing through its stages: dots on one line, each stage with a name and a quiet line, done, now, or
25
+ * open, such as where an item is on its way. The state is in the dot's form and in words for screen readers, never in
26
+ * color alone. A column of 360 px or more lays the stages out side by side, a narrower one, such as a phone, one below
27
+ * the other.
28
+ * @example <ProgressPath steps={[{ label: "Received", detail: "Nov 7", done: true }, { label: "Packed", detail: "today", current: true }, { label: "Shipped", detail: "not yet", icon: "ti ti-truck" }]} />
23
29
  */
24
30
  export declare function ProgressPath(props: ProgressPathProps): JSX.Element;
25
31
  export default ProgressPath;
@@ -0,0 +1,33 @@
1
+ import { type JSX } from "solid-js";
2
+ export type TaskRowProps = {
3
+ /** Tabler icon class for the kind of task, such as `ti ti-package-export`. Decorative: the sentence names the task. */
4
+ icon: string;
5
+ /** How many things the task covers, as a chip before the sentence. Zero shows no chip; the sentence says it in words. */
6
+ count?: number;
7
+ /** The task in one sentence, such as "3 unsold items are ready for pickup". One line; a longer one ends in an ellipsis. */
8
+ text: string;
9
+ /** A quiet second line, such as the date the task is due. The row is then 52 px instead of 40 px. */
10
+ detail?: JSX.Element;
11
+ /** The action word at the end, such as "Prepare handover". It is never cut; the sentence gives way first. */
12
+ action: string;
13
+ /** Where the row leads. The row is then a link. */
14
+ href?: string;
15
+ /** What the row does when there is no `href`. The row is then a button. */
16
+ onClick?: (event: MouseEvent) => void;
17
+ /** The task cannot be started now. The row stays in place, reads as unavailable and does nothing. */
18
+ disabled?: boolean;
19
+ /**
20
+ * The accessible name, when the visible text alone does not say what happens. Defaults to the row's text. Start it
21
+ * with the visible sentence and action word, so people who speak a visible word can still reach the row.
22
+ */
23
+ label?: string;
24
+ class?: string;
25
+ };
26
+ /**
27
+ * A task that only has a date, such as items waiting for pickup until a day: the kind as a symbol, the count as a
28
+ * chip, one sentence and, at the end, the action word. The whole row is one link or button. What needs someone now
29
+ * and has a consequence is a notice cell instead (K10), not a task row.
30
+ * @example <TaskRow icon="ti ti-package-export" count={3} text="Unsold items are ready for pickup" detail="until Dec 12, 2026" action="Prepare handover" href="/handover" />
31
+ */
32
+ export declare function TaskRow(props: TaskRowProps): JSX.Element;
33
+ export default TaskRow;
@@ -33,6 +33,7 @@ export type { DataTableColumnType, DataTableNumberFormat, DataTableStatusState,
33
33
  export { filterRows, sortRows } from "./data-table-columns";
34
34
  export { FileBrowserPanel, type FileBrowserPanelProps, type FileSource, openFileBrowser } from "./FileBrowser";
35
35
  export { FileGrid, type FileGridGroup, type FileGridOpenProps, type FileGridProps, type FileGridSelectableProps } from "./FileGrid";
36
+ export { FileName, type FileNameProps, splitFileName } from "./FileName";
36
37
  export { default as FileTree, type FileTreeActions, type FileTreeEntry, type FileTreeProps } from "./FileTree";
37
38
  export { type FileType, FileTypeIcon, type FileTypeIconProps, fileKindLabel, fileTypeOf } from "./FileTypeIcon";
38
39
  export { default as FileView, type FileViewContent, type FileViewProps, type FileViewRenderer, type FileViewRendererProps, } from "./FileView";
@@ -80,6 +81,7 @@ export type { StepsProps } from "./Steps";
80
81
  export { Steps } from "./Steps";
81
82
  export type { StructuredDataPreviewMode, StructuredDataPreviewProps, StructuredDataValue } from "./StructuredDataPreview";
82
83
  export { default as StructuredDataPreview, isStructuredDataValue } from "./StructuredDataPreview";
84
+ export { TaskRow, type TaskRowProps } from "./TaskRow";
83
85
  export { ThumbnailStrip, type ThumbnailStripItem, type ThumbnailStripProps } from "./ThumbnailStrip";
84
86
  export type { TimelineColor, TimelineController, TimelineItem, TimelineProps } from "./Timeline";
85
87
  export { default as Timeline } from "./Timeline";
@@ -0,0 +1,8 @@
1
+ declare const progressPathMessages: import("@k2b/stdlib").Catalog<{
2
+ current: string;
3
+ }>;
4
+ export type ProgressPathMessages = ReturnType<(typeof progressPathMessages)["resolve"]>["t"];
5
+ /** Resolved from the inherited render locale. */
6
+ export declare const useProgressPathMessages: () => (() => ProgressPathMessages);
7
+ export declare const checkProgressPathMessages: () => import("@k2b/stdlib").CatalogIssue[];
8
+ export {};
@@ -1,5 +1,10 @@
1
1
  import { type JSX } from "solid-js";
2
2
  import { type DialogCall } from "./dialog-call";
3
+ /**
4
+ * The custom property that lifts a centered dialog frame so its footer stays put (`dialog-foot.ts`). The core clears
5
+ * it whenever another level shows, so each level starts centered.
6
+ */
7
+ export declare const DIALOG_LIFT = "--k2b-dialog-lift";
3
8
  export type DialogClose<T> = (result?: T) => void;
4
9
  export type OpenDialogOptions = {
5
10
  /** Override the opener's primary palette for a dialog with its own purpose, such as a global session warning. */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Keeps a dialog's footer where it is whenever the frame's height changes while it is open, such as when an error
3
+ * shows above the footer (K16): a centered frame grows down by half of the new height, so it moves up by that much
4
+ * and grows upwards only; it shrinks from the top as well. It never moves past the top edge: a frame at its full
5
+ * height scrolls its body instead. A frame that follows its content folds from its top edge on its own, a placed
6
+ * window keeps its place, and a sheet keeps its bottom anyway. A new window size centers the frame again.
7
+ * Returns a function that stops it.
8
+ */
9
+ export declare const holdDialogFoot: (footer: HTMLElement) => (() => void) | undefined;
@@ -54,28 +54,10 @@ export type DateRangePickerProps = DatePickerBaseProps<DateRangeValue> & {
54
54
  };
55
55
  /** `below` is a line under the trigger that the panel must not cover, such as a typed field's status line. */
56
56
  export declare const placeDatePopover: (trigger: HTMLElement, popover: HTMLElement, wide: boolean, below?: HTMLElement) => void;
57
+ type DatePickerPanelProps = Parameters<typeof import("./date-picker-panel")["DatePickerPanel"]>[0];
58
+ export declare const preloadDatePickerPanel: () => Promise<unknown>;
57
59
  /** One month of days. Exported for composite pickers in this package (the period picker shows two side by side). */
58
- export declare function DatePickerPanel(props: {
59
- visibleMonth: () => Date;
60
- setVisibleMonth: (date: Date) => void;
61
- selected?: () => string | null | undefined;
62
- range?: () => DateRangeValue;
63
- focusDate?: () => string | null | undefined;
64
- onSelect: (date: string) => void;
65
- onDayPreview?: (date: string | null) => void;
66
- dateConfig?: DateContext;
67
- /** Earliest and latest selectable day as date keys. */
68
- min?: string;
69
- max?: string;
70
- /** Which month steps this panel offers; a second month beside it offers the other one. */
71
- nav?: "both" | "previous" | "next";
72
- /** Leaves the days of neighbouring months empty (`visibility: hidden`), so two months side by side never show a day twice. */
73
- hideOutside?: boolean;
74
- /** Whether a day is already on screen, also in a neighbouring panel; arrow keys then move there without paging. */
75
- isShown?: (date: Date) => boolean;
76
- /** Where keyboard navigation looks for the day to focus; the panel itself by default. */
77
- focusRoot?: () => HTMLElement | undefined;
78
- }): JSX.Element;
60
+ export declare function DatePickerPanel(props: DatePickerPanelProps): JSX.Element;
79
61
  export declare function DatePicker(props: DatePickerProps): JSX.Element;
80
62
  export declare function DateTimePicker(props: DateTimePickerProps): JSX.Element;
81
63
  export declare function DateRangePicker(props: DateRangePickerProps): JSX.Element;
@@ -21,6 +21,8 @@ FieldSuggestionProps<string> & {
21
21
  multiline?: boolean;
22
22
  monospace?: boolean;
23
23
  password?: boolean;
24
+ /** The eye's fixed name in a `password` field, such as "Show key"; `aria-pressed` tells whether the value shows. */
25
+ revealLabel?: string;
24
26
  markdown?: boolean;
25
27
  onSubmit?: () => void;
26
28
  onKeyDown?: JSX.EventHandlerUnion<HTMLInputElement | HTMLTextAreaElement, KeyboardEvent>;
@@ -0,0 +1,29 @@
1
+ import { type DateContext } from "@k2b/stdlib";
2
+ import { type JSX } from "solid-js";
3
+ import { type DateRangeValue } from "./date-picker";
4
+ /**
5
+ * One month of days, with the year and month views. It loads when a date field first shows in the browser, so a page
6
+ * that renders a date field carries only the field up front (the packed consumer budget); the period picker and the
7
+ * phone sheet use it too.
8
+ */
9
+ export declare function DatePickerPanel(props: {
10
+ visibleMonth: () => Date;
11
+ setVisibleMonth: (date: Date) => void;
12
+ selected?: () => string | null | undefined;
13
+ range?: () => DateRangeValue;
14
+ focusDate?: () => string | null | undefined;
15
+ onSelect: (date: string) => void;
16
+ onDayPreview?: (date: string | null) => void;
17
+ dateConfig?: DateContext;
18
+ /** Earliest and latest selectable day as date keys. */
19
+ min?: string;
20
+ max?: string;
21
+ /** Which month steps this panel offers; a second month beside it offers the other one. */
22
+ nav?: "both" | "previous" | "next";
23
+ /** Leaves the days of neighbouring months empty (`visibility: hidden`), so two months side by side never show a day twice. */
24
+ hideOutside?: boolean;
25
+ /** Whether a day is already on screen, also in a neighbouring panel; arrow keys then move there without paging. */
26
+ isShown?: (date: Date) => boolean;
27
+ /** Where keyboard navigation looks for the day to focus; the panel itself by default. */
28
+ focusRoot?: () => HTMLElement | undefined;
29
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export { img } from "@k2b/stdlib/browser";
@@ -1,7 +1,6 @@
1
1
  declare const inputMessages: import("@k2b/stdlib").Catalog<{
2
2
  decreaseValue: string;
3
3
  increaseValue: string;
4
- hidePassword: string;
5
4
  showPassword: string;
6
5
  useColor: string;
7
6
  useTransparent: string;
@@ -14,6 +13,10 @@ declare const inputMessages: import("@k2b/stdlib").Catalog<{
14
13
  }) => string;
15
14
  timeLetters: string;
16
15
  notATime: string;
16
+ notANumber: ({ example }: {
17
+ example: string;
18
+ }) => string;
19
+ noNegativeNumbers: string;
17
20
  timeRequired: string;
18
21
  earliestTime: ({ time }: {
19
22
  time: string;
@@ -0,0 +1,2 @@
1
+ /** Whether resolved children render something; a Show whose condition is false, or a boolean, renders nothing. */
2
+ export declare const rendersSomething: (nodes: unknown[]) => boolean;
@@ -36,6 +36,10 @@ export type AppWorkspaceHeadProps = {
36
36
  href?: string;
37
37
  onClick?: (event: MouseEvent) => void;
38
38
  popup?: "menu" | "dialog";
39
+ /** With `popup`: whether its menu or dialog is open now, for `aria-expanded`. Defaults to closed. */
40
+ expanded?: boolean;
41
+ /** Unavailable right now; a link variant stays in place and announces it with `aria-disabled`. */
42
+ disabled?: boolean;
39
43
  };
40
44
  };
41
45
  export type AppWorkspaceProps = {
@@ -84,8 +88,12 @@ export type AppWorkspaceContentProps = {
84
88
  export type AppWorkspaceMainProps = {
85
89
  children: JSX.Element;
86
90
  class?: string;
87
- /** `"content"` centers the children as one reading column with the shared page width on large screens. */
88
- width?: "full" | "content";
91
+ /**
92
+ * `"content"` centers the children as one reading column with the shared page width on large screens.
93
+ * `"reading"` is a column of running text such as a note (K6, K11): no head and no status row above it, the text
94
+ * gets the whole height at a 720 px measure, centered; views and actions float in a `FloatingPill`.
95
+ */
96
+ width?: "full" | "content" | "reading";
89
97
  /**
90
98
  * The width in px or a workspace width share that Main keeps beside the sidebar and an open Detail,
91
99
  * from 48rem (768 px); at least the default 320. A Detail that does not fit
@@ -1,19 +1,24 @@
1
1
  import { type JSX } from "solid-js";
2
2
  export type BreadcrumbItem = {
3
3
  label: string;
4
+ /** A link to this level, for a path in a page head. Without it the level calls `onSelect`. */
5
+ href?: string;
4
6
  };
5
7
  export type BreadcrumbsProps = {
6
- /** The path from the top: every item but the last is a link, the last is the current place. */
8
+ /** The path from the top: every item but the last leads to its level, the last is the current place. */
7
9
  items: readonly BreadcrumbItem[];
8
10
  /** Names the path for assistive technology, for example "Path". */
9
11
  label: string;
10
- /** Called with the index of the link that was activated; never for the current place. */
11
- onSelect: (index: number) => void;
12
+ /** Called with the index of the level that was activated; never for the current place. */
13
+ onSelect?: (index: number) => void;
12
14
  disabled?: boolean;
13
15
  class?: string;
14
16
  };
15
17
  /**
16
- * A path inside a dialog or panel: the levels above as blue text links, the current level as text. It stays on one
17
- * line; a long path scrolls sideways with a fade on the side where more follows, and shows its end after each change.
18
+ * A path, in a page head (`AppWorkspace.Head` `views`) or inside a dialog or panel: the levels above in quiet text,
19
+ * the current level in strong text. It stays on one line and never scrolls (K15): when the path does not fit, the
20
+ * front levels give way first and wait behind "…", which opens them as a menu; the current level always stays and
21
+ * shortens with an ellipsis last. The fit runs from the server's script before hydration, so a page that never
22
+ * hydrates the path fits too.
18
23
  */
19
24
  export declare function Breadcrumbs(props: BreadcrumbsProps): JSX.Element;
@@ -0,0 +1,20 @@
1
+ import type { JSX } from "solid-js";
2
+ export type FloatingPillProps = {
3
+ /** Names the group for assistive technology, such as "Note views and actions". */
4
+ label: string;
5
+ /** Views and actions, usually small `IconButton`s or a `SegmentedControl`; `FloatingPill.Separator` parts them. */
6
+ children: JSX.Element;
7
+ class?: string;
8
+ };
9
+ type FloatingPillComponent = ((props: FloatingPillProps) => JSX.Element) & {
10
+ Separator: () => JSX.Element;
11
+ };
12
+ /**
13
+ * The floating pill of a reading column (K6, K16): views and actions of a column that has neither head nor status
14
+ * row, such as a note. Place it as the first child of `AppWorkspace.Main width="reading"`. It stays at the column's
15
+ * top end while the text scrolls below it, and takes no room from the text. It is a `k2b-pill`, so its look, size,
16
+ * and round controls are the ones of every floating pill.
17
+ */
18
+ declare const FloatingPill: FloatingPillComponent;
19
+ export { FloatingPill };
20
+ export default FloatingPill;
@@ -31,8 +31,19 @@ export type PanelDialogBodyProps = {
31
31
  scrollPreserveKey?: string;
32
32
  scrollFade?: boolean;
33
33
  };
34
+ /** Why the dialog's action failed, with what follows from it, such as "Your entries stay". */
35
+ export type PanelDialogError = string | {
36
+ title: string;
37
+ description?: string;
38
+ };
34
39
  export type PanelDialogFooterProps = {
35
40
  children: JSX.Element;
41
+ /**
42
+ * Shows why the action failed as a tinted cell directly above the footer, edge to edge, and announces it. The
43
+ * footer keeps its place on the screen: the dialog grows upwards, so the button under the pointer does not move.
44
+ * Keep the entries; clear the error when the person tries again.
45
+ */
46
+ error?: PanelDialogError;
36
47
  };
37
48
  export type PanelDialogSectionProps = {
38
49
  title: JSX.Element;
@@ -73,20 +84,28 @@ type PanelDialogComponent = ((props: PanelDialogProps) => JSX.Element) & {
73
84
  Section: (props: PanelDialogSectionProps) => JSX.Element;
74
85
  Tabs: <T extends string>(props: PanelDialogTabsProps<T>) => JSX.Element;
75
86
  };
87
+ /**
88
+ * The first field of the shown level, as every dialog focuses; without one, the first control on a desktop and the
89
+ * ring-less dialog itself on a phone sheet, whose grip would otherwise take the focus (as `BottomSheet` does).
90
+ */
91
+ declare function panelInitialFocus(dialog: HTMLDialogElement): HTMLElement | null;
76
92
  export declare const panelDialogPanelClass = "k2b-dialog k2b-panel-dialog-frame is-standard";
77
93
  export declare const panelDialogOptions: {
78
94
  panelClassName: string;
79
95
  contentClassName: string;
96
+ initialFocus: typeof panelInitialFocus;
80
97
  };
81
98
  export declare const panelDialogWidePanelClass = "k2b-dialog k2b-panel-dialog-frame is-wide";
82
99
  export declare const panelDialogWideOptions: {
83
100
  panelClassName: string;
84
101
  contentClassName: string;
102
+ initialFocus: typeof panelInitialFocus;
85
103
  };
86
104
  export declare const panelDialogFixedPanelClass = "k2b-dialog k2b-panel-dialog-frame is-fixed";
87
105
  export declare const panelDialogFixedOptions: {
88
106
  panelClassName: string;
89
107
  contentClassName: string;
108
+ initialFocus: typeof panelInitialFocus;
90
109
  };
91
110
  export declare const panelDialogWorkspacePanelClass = "k2b-dialog k2b-panel-dialog-frame is-workspace";
92
111
  export declare const panelDialogWorkspaceOptions: {
@@ -0,0 +1,54 @@
1
+ import { type JSX } from "solid-js";
2
+ /** A key figure of the status row: the number (bold) and what it counts. */
3
+ export type StatusRowFact = {
4
+ value: JSX.Element;
5
+ label: JSX.Element;
6
+ };
7
+ /** A page-wide disturbance that needs nobody: the page tries again by itself (K10). */
8
+ export type StatusRowState = {
9
+ /** What is wrong, in a few words, such as "Sync paused". */
10
+ label: JSX.Element;
11
+ /** `warning` (the default) or `danger`; `neutral` for a quiet state such as "Offline". */
12
+ tone?: "neutral" | "warning" | "danger";
13
+ /** Tabler icon class inside the round sign, such as `ti ti-refresh`. Defaults to an alert sign. */
14
+ icon?: string;
15
+ /** The time of the next attempt as people read it, such as "14:05". Shows as "next attempt 14:05". */
16
+ next?: JSX.Element;
17
+ };
18
+ /** A selection in the list below: its count becomes the lead statement, its figures and actions take the places of the key figures and filters (K6). */
19
+ export type StatusRowSelection = {
20
+ /** The number of chosen items. A check and "3 selected" take the lead statement's place. */
21
+ count: number;
22
+ /** Up to three figures about the chosen items, such as their kinds or total size. */
23
+ facts?: readonly StatusRowFact[];
24
+ /** Actions on the chosen items, usually small buttons. */
25
+ actions?: JSX.Element;
26
+ };
27
+ export type StatusRowProps = {
28
+ /** The lead statement (18 px, bold): what someone wants to know here first. It is never shortened. */
29
+ lead: JSX.Element;
30
+ /** Up to three key figures. Only the first three show; the rest give way in a fixed order when space is short. */
31
+ facts?: readonly StatusRowFact[];
32
+ /** Filters at the end of the row, usually `FilterChip` elements. */
33
+ filters?: JSX.Element;
34
+ /** A disturbance of the whole page; it takes the place of the key figures, the lead statement stays. */
35
+ state?: StatusRowState;
36
+ /** A selection; its count and actions take the place of the key figures and filters. */
37
+ selection?: StatusRowSelection;
38
+ /**
39
+ * What is happening right now in words, announced politely to screen readers and shown in the place of the key
40
+ * figures, such as "Moving “Invoice 12” to Done". Drag and drop fills it while an item moves (K7).
41
+ */
42
+ announcement?: JSX.Element;
43
+ /** A hairline under the row, where the row stands above a list without its own column head. */
44
+ line?: boolean;
45
+ class?: string;
46
+ };
47
+ /**
48
+ * The status row (K6, K10): the first line under a column's head, 52 px tall. The lead statement on the left keeps
49
+ * its place and size in every state. Up to three key figures follow it; on the right stand the filters. A selection
50
+ * shows its count and actions in the same places; a disturbance of the page shows a round sign, what is wrong, and
51
+ * the next attempt in the place of the key figures. It shows only data that exists already.
52
+ */
53
+ export declare function StatusRow(props: StatusRowProps): JSX.Element;
54
+ export default StatusRow;
@@ -11,8 +11,8 @@ export declare const APP_WORKSPACE_SIDEBAR_COLLAPSED = 64;
11
11
  export declare const APP_WORKSPACE_SIDEBAR_COLLAPSE_THRESHOLD = 128;
12
12
  export declare const APP_WORKSPACE_SIDEBAR_MIN = 176;
13
13
  export declare const APP_WORKSPACE_SIDEBAR_MAX = 360;
14
- /** The floating detail panel starts at 26 rem and keeps between 20 and 40 rem. */
15
- export declare const APP_WORKSPACE_DETAIL_DEFAULT = 416;
14
+ /** The detail column starts at 23.75 rem (380 px, K9) and keeps between 20 and 40 rem. */
15
+ export declare const APP_WORKSPACE_DETAIL_DEFAULT = 380;
16
16
  export declare const APP_WORKSPACE_DETAIL_MIN = 320;
17
17
  export declare const APP_WORKSPACE_DETAIL_MAX = 640;
18
18
  export declare const APP_WORKSPACE_DRAWER_DEFAULT = 240;