@k2b/ui 0.58.0 → 0.60.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 (503) hide show
  1. package/dist/base.css +1 -0
  2. package/dist/browser/actions/CommandList.js +67 -74
  3. package/dist/browser/actions/CommandList.js.map +1 -1
  4. package/dist/browser/actions/ContextMenu.js +16 -4
  5. package/dist/browser/actions/ContextMenu.js.map +1 -1
  6. package/dist/browser/actions/Dropdown.js +187 -169
  7. package/dist/browser/actions/Dropdown.js.map +1 -1
  8. package/dist/browser/actions/GestureMenu.js +18 -7
  9. package/dist/browser/actions/GestureMenu.js.map +1 -1
  10. package/dist/browser/actions/SelectionAction.js +232 -0
  11. package/dist/browser/actions/SelectionAction.js.map +1 -0
  12. package/dist/browser/actions/Tabs.js +58 -19
  13. package/dist/browser/actions/Tabs.js.map +1 -1
  14. package/dist/browser/actions/Toolbar.js +66 -60
  15. package/dist/browser/actions/Toolbar.js.map +1 -1
  16. package/dist/browser/actions/ViewTabs.js +89 -73
  17. package/dist/browser/actions/ViewTabs.js.map +1 -1
  18. package/dist/browser/actions/command-items.js.map +1 -1
  19. package/dist/browser/actions/drag-and-drop.js +2 -1
  20. package/dist/browser/actions/drag-and-drop.js.map +1 -1
  21. package/dist/browser/actions/index.js +1 -0
  22. package/dist/browser/actions/index.js.map +1 -1
  23. package/dist/browser/actions/menu-sheet-open.js +19 -0
  24. package/dist/browser/actions/menu-sheet-open.js.map +1 -0
  25. package/dist/browser/charts/core/line-details.js +2 -2
  26. package/dist/browser/charts/core/line-details.js.map +1 -1
  27. package/dist/browser/charts/core/render.js +2 -1
  28. package/dist/browser/charts/core/render.js.map +1 -1
  29. package/dist/browser/charts/core/snapshot.js +3 -1
  30. package/dist/browser/charts/core/snapshot.js.map +1 -1
  31. package/dist/browser/chat/ChatActivityWords.js +142 -0
  32. package/dist/browser/chat/ChatActivityWords.js.map +1 -0
  33. package/dist/browser/chat/ChatComposer.js +857 -679
  34. package/dist/browser/chat/ChatComposer.js.map +1 -1
  35. package/dist/browser/chat/ChatComposerQuotes.js +56 -0
  36. package/dist/browser/chat/ChatComposerQuotes.js.map +1 -0
  37. package/dist/browser/chat/ChatContextPopup.js +34 -4
  38. package/dist/browser/chat/ChatContextPopup.js.map +1 -1
  39. package/dist/browser/chat/ChatPrimitives.js +559 -336
  40. package/dist/browser/chat/ChatPrimitives.js.map +1 -1
  41. package/dist/browser/chat/ChatTasks.js +218 -80
  42. package/dist/browser/chat/ChatTasks.js.map +1 -1
  43. package/dist/browser/chat/ChatTimeline.js +5 -3
  44. package/dist/browser/chat/ChatTimeline.js.map +1 -1
  45. package/dist/browser/chat/chat-behavior.js +12 -0
  46. package/dist/browser/chat/chat-behavior.js.map +1 -1
  47. package/dist/browser/chat/chat-messages.js +50 -2
  48. package/dist/browser/chat/chat-messages.js.map +1 -1
  49. package/dist/browser/chat/index.js +6 -2
  50. package/dist/browser/chat/index.js.map +1 -1
  51. package/dist/browser/chat/types.js.map +1 -1
  52. package/dist/browser/content/ActivityList.js +789 -0
  53. package/dist/browser/content/ActivityList.js.map +1 -0
  54. package/dist/browser/content/Calendar.js +2 -2
  55. package/dist/browser/content/Calendar.js.map +1 -1
  56. package/dist/browser/content/CalendarWeekView.js +9 -2
  57. package/dist/browser/content/CalendarWeekView.js.map +1 -1
  58. package/dist/browser/content/ChartRoot.js +4 -1
  59. package/dist/browser/content/ChartRoot.js.map +1 -1
  60. package/dist/browser/content/DataTable.js +9 -0
  61. package/dist/browser/content/DataTable.js.map +1 -1
  62. package/dist/browser/content/DataTableTools.js +3 -0
  63. package/dist/browser/content/DataTableTools.js.map +1 -1
  64. package/dist/browser/content/Lightbox.js +4 -2
  65. package/dist/browser/content/Lightbox.js.map +1 -1
  66. package/dist/browser/content/MessageQuote.js +57 -0
  67. package/dist/browser/content/MessageQuote.js.map +1 -0
  68. package/dist/browser/content/MessageRow.js +413 -391
  69. package/dist/browser/content/MessageRow.js.map +1 -1
  70. package/dist/browser/content/PdfPages.js +1 -0
  71. package/dist/browser/content/PdfPages.js.map +1 -1
  72. package/dist/browser/content/ProgressPath.js +101 -0
  73. package/dist/browser/content/ProgressPath.js.map +1 -0
  74. package/dist/browser/content/Timeline.js +1 -1
  75. package/dist/browser/content/Timeline.js.map +1 -1
  76. package/dist/browser/content/VirtualFeed.js +29 -2
  77. package/dist/browser/content/VirtualFeed.js.map +1 -1
  78. package/dist/browser/content/activity-messages.js +47 -0
  79. package/dist/browser/content/activity-messages.js.map +1 -0
  80. package/dist/browser/content/activity-timeline.js +144 -0
  81. package/dist/browser/content/activity-timeline.js.map +1 -0
  82. package/dist/browser/content/chart-tick-room.js +59 -0
  83. package/dist/browser/content/chart-tick-room.js.map +1 -0
  84. package/dist/browser/content/chart-time-calendar.js +12 -18
  85. package/dist/browser/content/chart-time-calendar.js.map +1 -1
  86. package/dist/browser/content/find-text.js +47 -0
  87. package/dist/browser/content/find-text.js.map +1 -0
  88. package/dist/browser/content/index.js +2 -0
  89. package/dist/browser/content/index.js.map +1 -1
  90. package/dist/browser/content/quote-messages.js +25 -0
  91. package/dist/browser/content/quote-messages.js.map +1 -0
  92. package/dist/browser/feedback/HoverCard.js +535 -0
  93. package/dist/browser/feedback/HoverCard.js.map +1 -0
  94. package/dist/browser/feedback/Tooltip.js +5 -2
  95. package/dist/browser/feedback/Tooltip.js.map +1 -1
  96. package/dist/browser/feedback/dialog-core.js +129 -21
  97. package/dist/browser/feedback/dialog-core.js.map +1 -1
  98. package/dist/browser/feedback/dialog-frame-motion.js +274 -0
  99. package/dist/browser/feedback/dialog-frame-motion.js.map +1 -0
  100. package/dist/browser/feedback/index.js +1 -0
  101. package/dist/browser/feedback/index.js.map +1 -1
  102. package/dist/browser/feedback/prompt-confirm.js +3 -17
  103. package/dist/browser/feedback/prompt-confirm.js.map +1 -1
  104. package/dist/browser/feedback/prompt-sheet-view.js +96 -0
  105. package/dist/browser/feedback/prompt-sheet-view.js.map +1 -0
  106. package/dist/browser/feedback/prompt-sheet.js +36 -0
  107. package/dist/browser/feedback/prompt-sheet.js.map +1 -0
  108. package/dist/browser/feedback/prompts.js +63 -91
  109. package/dist/browser/feedback/prompts.js.map +1 -1
  110. package/dist/browser/feedback/toast.js +17 -12
  111. package/dist/browser/feedback/toast.js.map +1 -1
  112. package/dist/browser/hover-card.js +6 -0
  113. package/dist/browser/hover-card.js.map +1 -0
  114. package/dist/browser/inputs/AutocompleteEditor.js +2 -1
  115. package/dist/browser/inputs/AutocompleteEditor.js.map +1 -1
  116. package/dist/browser/inputs/AutocompleteSelect.js +3 -12
  117. package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
  118. package/dist/browser/inputs/ChoiceList.js +131 -127
  119. package/dist/browser/inputs/ChoiceList.js.map +1 -1
  120. package/dist/browser/inputs/Combobox.js +6 -15
  121. package/dist/browser/inputs/Combobox.js.map +1 -1
  122. package/dist/browser/inputs/MultiSelectInput.js +7 -16
  123. package/dist/browser/inputs/MultiSelectInput.js.map +1 -1
  124. package/dist/browser/inputs/PeriodPicker.js +475 -252
  125. package/dist/browser/inputs/PeriodPicker.js.map +1 -1
  126. package/dist/browser/inputs/RichSelect.js +431 -431
  127. package/dist/browser/inputs/RichSelect.js.map +1 -1
  128. package/dist/browser/inputs/Select.js +3 -12
  129. package/dist/browser/inputs/Select.js.map +1 -1
  130. package/dist/browser/inputs/SelectChip.js +1 -0
  131. package/dist/browser/inputs/SelectChip.js.map +1 -1
  132. package/dist/browser/inputs/TimeInput.js +181 -0
  133. package/dist/browser/inputs/TimeInput.js.map +1 -0
  134. package/dist/browser/inputs/choice.js.map +1 -1
  135. package/dist/browser/inputs/date-picker.js +2 -1
  136. package/dist/browser/inputs/date-picker.js.map +1 -1
  137. package/dist/browser/inputs/file-drop.js +2 -0
  138. package/dist/browser/inputs/file-drop.js.map +1 -1
  139. package/dist/browser/inputs/index.js +1 -0
  140. package/dist/browser/inputs/index.js.map +1 -1
  141. package/dist/browser/inputs/input-messages.js +20 -2
  142. package/dist/browser/inputs/input-messages.js.map +1 -1
  143. package/dist/browser/inputs/period-picker-messages.js +20 -2
  144. package/dist/browser/inputs/period-picker-messages.js.map +1 -1
  145. package/dist/browser/inputs/period.js +83 -0
  146. package/dist/browser/inputs/period.js.map +1 -1
  147. package/dist/browser/inputs/time-input.js +93 -0
  148. package/dist/browser/inputs/time-input.js.map +1 -0
  149. package/dist/browser/internal/anchor-placement.js +38 -0
  150. package/dist/browser/internal/anchor-placement.js.map +1 -0
  151. package/dist/browser/internal/exit-motion.js +23 -0
  152. package/dist/browser/internal/exit-motion.js.map +1 -0
  153. package/dist/browser/internal/option-description.js +47 -0
  154. package/dist/browser/internal/option-description.js.map +1 -0
  155. package/dist/browser/internal/portal-scope.js +36 -0
  156. package/dist/browser/internal/portal-scope.js.map +1 -0
  157. package/dist/browser/internal/portal.js +13 -10
  158. package/dist/browser/internal/portal.js.map +1 -1
  159. package/dist/browser/internal/scroll-places.js +15 -0
  160. package/dist/browser/internal/scroll-places.js.map +1 -0
  161. package/dist/browser/intl/messages.js +10 -0
  162. package/dist/browser/intl/messages.js.map +1 -1
  163. package/dist/browser/layout/AnchoredPopover.js +10 -25
  164. package/dist/browser/layout/AnchoredPopover.js.map +1 -1
  165. package/dist/browser/layout/AppWorkspace.js +572 -495
  166. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  167. package/dist/browser/layout/BottomSheet.js +1 -24
  168. package/dist/browser/layout/BottomSheet.js.map +1 -1
  169. package/dist/browser/layout/Discussion.js +298 -3
  170. package/dist/browser/layout/Discussion.js.map +1 -1
  171. package/dist/browser/layout/FloatingWindow.js +2 -0
  172. package/dist/browser/layout/FloatingWindow.js.map +1 -1
  173. package/dist/browser/layout/Navigation.js +7 -2
  174. package/dist/browser/layout/Navigation.js.map +1 -1
  175. package/dist/browser/layout/Panes.js +3 -0
  176. package/dist/browser/layout/Panes.js.map +1 -1
  177. package/dist/browser/layout/SidebarSwitcher.js +28 -37
  178. package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
  179. package/dist/browser/layout/app-workspace-controller.js +5 -1
  180. package/dist/browser/layout/app-workspace-controller.js.map +1 -1
  181. package/dist/browser/layout/bottom-sheet-load.js +17 -0
  182. package/dist/browser/layout/bottom-sheet-load.js.map +1 -0
  183. package/dist/browser/layout/bottom-sheet-options.js +27 -0
  184. package/dist/browser/layout/bottom-sheet-options.js.map +1 -0
  185. package/dist/browser/layout/index.js +2 -1
  186. package/dist/browser/layout/index.js.map +1 -1
  187. package/dist/browser/layout/panes-preview-scope.js +9 -0
  188. package/dist/browser/layout/panes-preview-scope.js.map +1 -0
  189. package/dist/browser/layout/sheet-handle.js +173 -37
  190. package/dist/browser/layout/sheet-handle.js.map +1 -1
  191. package/dist/browser/layout/sheet-motion.js +37 -5
  192. package/dist/browser/layout/sheet-motion.js.map +1 -1
  193. package/dist/browser/layout/sidebar-scroll-memory.js +30 -0
  194. package/dist/browser/layout/sidebar-scroll-memory.js.map +1 -1
  195. package/dist/browser/panes.js +3 -0
  196. package/dist/browser/panes.js.map +1 -0
  197. package/dist/browser/surfaces/AvatarStack.js +59 -43
  198. package/dist/browser/surfaces/AvatarStack.js.map +1 -1
  199. package/dist/browser/surfaces/ChangeList.js +78 -16
  200. package/dist/browser/surfaces/ChangeList.js.map +1 -1
  201. package/dist/browser/surfaces/DotStrip.js +126 -41
  202. package/dist/browser/surfaces/DotStrip.js.map +1 -1
  203. package/dist/browser/surfaces/LinkCard.js +69 -16
  204. package/dist/browser/surfaces/LinkCard.js.map +1 -1
  205. package/dist/browser/surfaces/Section.js +4 -2
  206. package/dist/browser/surfaces/Section.js.map +1 -1
  207. package/dist/browser/surfaces/StatCell.js +56 -28
  208. package/dist/browser/surfaces/StatCell.js.map +1 -1
  209. package/dist/browser/surfaces/StatGrid.js +17 -8
  210. package/dist/browser/surfaces/StatGrid.js.map +1 -1
  211. package/dist/browser/surfaces/index.js.map +1 -1
  212. package/dist/ssr/actions/CommandList.js +23 -26
  213. package/dist/ssr/actions/CommandList.js.map +1 -1
  214. package/dist/ssr/actions/ContextMenu.js +9 -2
  215. package/dist/ssr/actions/ContextMenu.js.map +1 -1
  216. package/dist/ssr/actions/Dropdown.js +79 -55
  217. package/dist/ssr/actions/Dropdown.js.map +1 -1
  218. package/dist/ssr/actions/GestureMenu.js +18 -7
  219. package/dist/ssr/actions/GestureMenu.js.map +1 -1
  220. package/dist/ssr/actions/SelectionAction.js +212 -0
  221. package/dist/ssr/actions/SelectionAction.js.map +1 -0
  222. package/dist/ssr/actions/Tabs.js +21 -6
  223. package/dist/ssr/actions/Tabs.js.map +1 -1
  224. package/dist/ssr/actions/Toolbar.js +24 -18
  225. package/dist/ssr/actions/Toolbar.js.map +1 -1
  226. package/dist/ssr/actions/ViewTabs.js +27 -20
  227. package/dist/ssr/actions/ViewTabs.js.map +1 -1
  228. package/dist/ssr/actions/command-items.js.map +1 -1
  229. package/dist/ssr/actions/drag-and-drop.js +2 -1
  230. package/dist/ssr/actions/drag-and-drop.js.map +1 -1
  231. package/dist/ssr/actions/index.js +1 -0
  232. package/dist/ssr/actions/index.js.map +1 -1
  233. package/dist/ssr/actions/menu-sheet-open.js +19 -0
  234. package/dist/ssr/actions/menu-sheet-open.js.map +1 -0
  235. package/dist/ssr/charts/core/line-details.js +2 -2
  236. package/dist/ssr/charts/core/line-details.js.map +1 -1
  237. package/dist/ssr/charts/core/render.js +2 -1
  238. package/dist/ssr/charts/core/render.js.map +1 -1
  239. package/dist/ssr/charts/core/snapshot.js +3 -1
  240. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  241. package/dist/ssr/chat/ChatActivityWords.js +126 -0
  242. package/dist/ssr/chat/ChatActivityWords.js.map +1 -0
  243. package/dist/ssr/chat/ChatComposer.js +271 -142
  244. package/dist/ssr/chat/ChatComposer.js.map +1 -1
  245. package/dist/ssr/chat/ChatComposerQuotes.js +26 -0
  246. package/dist/ssr/chat/ChatComposerQuotes.js.map +1 -0
  247. package/dist/ssr/chat/ChatContextPopup.js +17 -1
  248. package/dist/ssr/chat/ChatContextPopup.js.map +1 -1
  249. package/dist/ssr/chat/ChatPrimitives.js +213 -79
  250. package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
  251. package/dist/ssr/chat/ChatTasks.js +117 -27
  252. package/dist/ssr/chat/ChatTasks.js.map +1 -1
  253. package/dist/ssr/chat/ChatTimeline.js +5 -3
  254. package/dist/ssr/chat/ChatTimeline.js.map +1 -1
  255. package/dist/ssr/chat/chat-behavior.js +12 -0
  256. package/dist/ssr/chat/chat-behavior.js.map +1 -1
  257. package/dist/ssr/chat/chat-messages.js +50 -2
  258. package/dist/ssr/chat/chat-messages.js.map +1 -1
  259. package/dist/ssr/chat/index.js +6 -2
  260. package/dist/ssr/chat/index.js.map +1 -1
  261. package/dist/ssr/chat/types.js.map +1 -1
  262. package/dist/ssr/content/ActivityList.js +553 -0
  263. package/dist/ssr/content/ActivityList.js.map +1 -0
  264. package/dist/ssr/content/Calendar.js +2 -2
  265. package/dist/ssr/content/Calendar.js.map +1 -1
  266. package/dist/ssr/content/CalendarWeekView.js +9 -2
  267. package/dist/ssr/content/CalendarWeekView.js.map +1 -1
  268. package/dist/ssr/content/ChartRoot.js +4 -1
  269. package/dist/ssr/content/ChartRoot.js.map +1 -1
  270. package/dist/ssr/content/DataTable.js +9 -0
  271. package/dist/ssr/content/DataTable.js.map +1 -1
  272. package/dist/ssr/content/DataTableTools.js +3 -0
  273. package/dist/ssr/content/DataTableTools.js.map +1 -1
  274. package/dist/ssr/content/Lightbox.js +4 -2
  275. package/dist/ssr/content/Lightbox.js.map +1 -1
  276. package/dist/ssr/content/MessageQuote.js +36 -0
  277. package/dist/ssr/content/MessageQuote.js.map +1 -0
  278. package/dist/ssr/content/MessageRow.js +112 -95
  279. package/dist/ssr/content/MessageRow.js.map +1 -1
  280. package/dist/ssr/content/PdfPages.js +1 -0
  281. package/dist/ssr/content/PdfPages.js.map +1 -1
  282. package/dist/ssr/content/ProgressPath.js +51 -0
  283. package/dist/ssr/content/ProgressPath.js.map +1 -0
  284. package/dist/ssr/content/Timeline.js +1 -1
  285. package/dist/ssr/content/Timeline.js.map +1 -1
  286. package/dist/ssr/content/VirtualFeed.js +29 -2
  287. package/dist/ssr/content/VirtualFeed.js.map +1 -1
  288. package/dist/ssr/content/activity-messages.js +47 -0
  289. package/dist/ssr/content/activity-messages.js.map +1 -0
  290. package/dist/ssr/content/activity-timeline.js +144 -0
  291. package/dist/ssr/content/activity-timeline.js.map +1 -0
  292. package/dist/ssr/content/chart-tick-room.js +59 -0
  293. package/dist/ssr/content/chart-tick-room.js.map +1 -0
  294. package/dist/ssr/content/chart-time-calendar.js +12 -18
  295. package/dist/ssr/content/chart-time-calendar.js.map +1 -1
  296. package/dist/ssr/content/find-text.js +47 -0
  297. package/dist/ssr/content/find-text.js.map +1 -0
  298. package/dist/ssr/content/index.js +2 -0
  299. package/dist/ssr/content/index.js.map +1 -1
  300. package/dist/ssr/content/quote-messages.js +25 -0
  301. package/dist/ssr/content/quote-messages.js.map +1 -0
  302. package/dist/ssr/feedback/HoverCard.js +473 -0
  303. package/dist/ssr/feedback/HoverCard.js.map +1 -0
  304. package/dist/ssr/feedback/Tooltip.js +5 -2
  305. package/dist/ssr/feedback/Tooltip.js.map +1 -1
  306. package/dist/ssr/feedback/dialog-core.js +129 -21
  307. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  308. package/dist/ssr/feedback/dialog-frame-motion.js +274 -0
  309. package/dist/ssr/feedback/dialog-frame-motion.js.map +1 -0
  310. package/dist/ssr/feedback/index.js +1 -0
  311. package/dist/ssr/feedback/index.js.map +1 -1
  312. package/dist/ssr/feedback/prompt-confirm.js +3 -17
  313. package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
  314. package/dist/ssr/feedback/prompt-sheet-view.js +62 -0
  315. package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -0
  316. package/dist/ssr/feedback/prompt-sheet.js +36 -0
  317. package/dist/ssr/feedback/prompt-sheet.js.map +1 -0
  318. package/dist/ssr/feedback/prompts.js +28 -52
  319. package/dist/ssr/feedback/prompts.js.map +1 -1
  320. package/dist/ssr/feedback/toast.js +17 -12
  321. package/dist/ssr/feedback/toast.js.map +1 -1
  322. package/dist/ssr/hover-card.js +6 -0
  323. package/dist/ssr/hover-card.js.map +1 -0
  324. package/dist/ssr/inputs/AutocompleteEditor.js +2 -1
  325. package/dist/ssr/inputs/AutocompleteEditor.js.map +1 -1
  326. package/dist/ssr/inputs/AutocompleteSelect.js +3 -8
  327. package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
  328. package/dist/ssr/inputs/ChoiceList.js +25 -25
  329. package/dist/ssr/inputs/ChoiceList.js.map +1 -1
  330. package/dist/ssr/inputs/Combobox.js +4 -9
  331. package/dist/ssr/inputs/Combobox.js.map +1 -1
  332. package/dist/ssr/inputs/MultiSelectInput.js +4 -9
  333. package/dist/ssr/inputs/MultiSelectInput.js.map +1 -1
  334. package/dist/ssr/inputs/PeriodPicker.js +241 -46
  335. package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
  336. package/dist/ssr/inputs/RichSelect.js +135 -121
  337. package/dist/ssr/inputs/RichSelect.js.map +1 -1
  338. package/dist/ssr/inputs/Select.js +3 -8
  339. package/dist/ssr/inputs/Select.js.map +1 -1
  340. package/dist/ssr/inputs/SelectChip.js +1 -0
  341. package/dist/ssr/inputs/SelectChip.js.map +1 -1
  342. package/dist/ssr/inputs/TimeInput.js +145 -0
  343. package/dist/ssr/inputs/TimeInput.js.map +1 -0
  344. package/dist/ssr/inputs/choice.js.map +1 -1
  345. package/dist/ssr/inputs/date-picker.js +2 -1
  346. package/dist/ssr/inputs/date-picker.js.map +1 -1
  347. package/dist/ssr/inputs/file-drop.js +2 -0
  348. package/dist/ssr/inputs/file-drop.js.map +1 -1
  349. package/dist/ssr/inputs/index.js +1 -0
  350. package/dist/ssr/inputs/index.js.map +1 -1
  351. package/dist/ssr/inputs/input-messages.js +20 -2
  352. package/dist/ssr/inputs/input-messages.js.map +1 -1
  353. package/dist/ssr/inputs/period-picker-messages.js +20 -2
  354. package/dist/ssr/inputs/period-picker-messages.js.map +1 -1
  355. package/dist/ssr/inputs/period.js +83 -0
  356. package/dist/ssr/inputs/period.js.map +1 -1
  357. package/dist/ssr/inputs/time-input.js +93 -0
  358. package/dist/ssr/inputs/time-input.js.map +1 -0
  359. package/dist/ssr/internal/anchor-placement.js +38 -0
  360. package/dist/ssr/internal/anchor-placement.js.map +1 -0
  361. package/dist/ssr/internal/exit-motion.js +23 -0
  362. package/dist/ssr/internal/exit-motion.js.map +1 -0
  363. package/dist/ssr/internal/option-description.js +27 -0
  364. package/dist/ssr/internal/option-description.js.map +1 -0
  365. package/dist/ssr/internal/portal-scope.js +36 -0
  366. package/dist/ssr/internal/portal-scope.js.map +1 -0
  367. package/dist/ssr/internal/portal.js +13 -10
  368. package/dist/ssr/internal/portal.js.map +1 -1
  369. package/dist/ssr/internal/scroll-places.js +15 -0
  370. package/dist/ssr/internal/scroll-places.js.map +1 -0
  371. package/dist/ssr/intl/messages.js +10 -0
  372. package/dist/ssr/intl/messages.js.map +1 -1
  373. package/dist/ssr/layout/AnchoredPopover.js +10 -25
  374. package/dist/ssr/layout/AnchoredPopover.js.map +1 -1
  375. package/dist/ssr/layout/AppWorkspace.js +191 -121
  376. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  377. package/dist/ssr/layout/BottomSheet.js +1 -24
  378. package/dist/ssr/layout/BottomSheet.js.map +1 -1
  379. package/dist/ssr/layout/Discussion.js +168 -2
  380. package/dist/ssr/layout/Discussion.js.map +1 -1
  381. package/dist/ssr/layout/FloatingWindow.js +2 -0
  382. package/dist/ssr/layout/FloatingWindow.js.map +1 -1
  383. package/dist/ssr/layout/Navigation.js +7 -2
  384. package/dist/ssr/layout/Navigation.js.map +1 -1
  385. package/dist/ssr/layout/Panes.js +3 -0
  386. package/dist/ssr/layout/Panes.js.map +1 -1
  387. package/dist/ssr/layout/SidebarSwitcher.js +8 -13
  388. package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
  389. package/dist/ssr/layout/app-workspace-controller.js +5 -1
  390. package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
  391. package/dist/ssr/layout/bottom-sheet-load.js +17 -0
  392. package/dist/ssr/layout/bottom-sheet-load.js.map +1 -0
  393. package/dist/ssr/layout/bottom-sheet-options.js +27 -0
  394. package/dist/ssr/layout/bottom-sheet-options.js.map +1 -0
  395. package/dist/ssr/layout/index.js +2 -1
  396. package/dist/ssr/layout/index.js.map +1 -1
  397. package/dist/ssr/layout/panes-preview-scope.js +9 -0
  398. package/dist/ssr/layout/panes-preview-scope.js.map +1 -0
  399. package/dist/ssr/layout/sheet-handle.js +173 -37
  400. package/dist/ssr/layout/sheet-handle.js.map +1 -1
  401. package/dist/ssr/layout/sheet-motion.js +37 -5
  402. package/dist/ssr/layout/sheet-motion.js.map +1 -1
  403. package/dist/ssr/layout/sidebar-scroll-memory.js +30 -0
  404. package/dist/ssr/layout/sidebar-scroll-memory.js.map +1 -1
  405. package/dist/ssr/panes.js +3 -0
  406. package/dist/ssr/panes.js.map +1 -0
  407. package/dist/ssr/surfaces/AvatarStack.js +56 -40
  408. package/dist/ssr/surfaces/AvatarStack.js.map +1 -1
  409. package/dist/ssr/surfaces/ChangeList.js +37 -5
  410. package/dist/ssr/surfaces/ChangeList.js.map +1 -1
  411. package/dist/ssr/surfaces/DotStrip.js +75 -12
  412. package/dist/ssr/surfaces/DotStrip.js.map +1 -1
  413. package/dist/ssr/surfaces/LinkCard.js +46 -7
  414. package/dist/ssr/surfaces/LinkCard.js.map +1 -1
  415. package/dist/ssr/surfaces/Section.js +4 -2
  416. package/dist/ssr/surfaces/Section.js.map +1 -1
  417. package/dist/ssr/surfaces/StatCell.js +24 -12
  418. package/dist/ssr/surfaces/StatCell.js.map +1 -1
  419. package/dist/ssr/surfaces/StatGrid.js +12 -6
  420. package/dist/ssr/surfaces/StatGrid.js.map +1 -1
  421. package/dist/ssr/surfaces/index.js.map +1 -1
  422. package/dist/styles.css +1 -1
  423. package/dist/types/actions/Dropdown.d.ts +10 -0
  424. package/dist/types/actions/SelectionAction.d.ts +34 -0
  425. package/dist/types/actions/Tabs.d.ts +9 -0
  426. package/dist/types/actions/ViewTabs.d.ts +2 -0
  427. package/dist/types/actions/command-items.d.ts +5 -0
  428. package/dist/types/actions/index.d.ts +2 -0
  429. package/dist/types/actions/menu-sheet-open.d.ts +13 -0
  430. package/dist/types/charts/core/line-details.d.ts +1 -1
  431. package/dist/types/chat/ChatActivityWords.d.ts +31 -0
  432. package/dist/types/chat/ChatComposer.d.ts +41 -3
  433. package/dist/types/chat/ChatComposerQuotes.d.ts +10 -0
  434. package/dist/types/chat/ChatPrimitives.d.ts +23 -2
  435. package/dist/types/chat/ChatTasks.d.ts +14 -1
  436. package/dist/types/chat/chat-behavior.d.ts +14 -0
  437. package/dist/types/chat/chat-messages.d.ts +24 -0
  438. package/dist/types/chat/index.d.ts +10 -5
  439. package/dist/types/chat/types.d.ts +27 -0
  440. package/dist/types/content/ActivityList.d.ts +166 -0
  441. package/dist/types/content/DataTableTools.d.ts +2 -0
  442. package/dist/types/content/MessageQuote.d.ts +9 -0
  443. package/dist/types/content/MessageRow.d.ts +5 -0
  444. package/dist/types/content/ProgressPath.d.ts +25 -0
  445. package/dist/types/content/VirtualFeed.d.ts +6 -0
  446. package/dist/types/content/activity-messages.d.ts +22 -0
  447. package/dist/types/content/activity-timeline.d.ts +52 -0
  448. package/dist/types/content/chart-tick-room.d.ts +15 -0
  449. package/dist/types/content/chart-time-calendar.d.ts +6 -0
  450. package/dist/types/content/find-text.d.ts +10 -0
  451. package/dist/types/content/index.d.ts +2 -0
  452. package/dist/types/content/quote-messages.d.ts +6 -0
  453. package/dist/types/feedback/HoverCard.d.ts +44 -0
  454. package/dist/types/feedback/Tooltip.d.ts +5 -0
  455. package/dist/types/feedback/dialog-core.d.ts +2 -0
  456. package/dist/types/feedback/dialog-frame-motion.d.ts +37 -0
  457. package/dist/types/feedback/index.d.ts +2 -0
  458. package/dist/types/feedback/prompt-confirm.d.ts +0 -2
  459. package/dist/types/feedback/prompt-sheet-view.d.ts +3 -0
  460. package/dist/types/feedback/prompt-sheet.d.ts +20 -0
  461. package/dist/types/feedback/prompts.d.ts +5 -0
  462. package/dist/types/feedback/toast.d.ts +5 -1
  463. package/dist/types/hover-card.d.ts +5 -0
  464. package/dist/types/inputs/ChoiceList.d.ts +12 -5
  465. package/dist/types/inputs/Combobox.d.ts +5 -0
  466. package/dist/types/inputs/MultiSelectInput.d.ts +1 -0
  467. package/dist/types/inputs/PeriodPicker.d.ts +10 -0
  468. package/dist/types/inputs/RichSelect.d.ts +5 -0
  469. package/dist/types/inputs/Select.d.ts +1 -0
  470. package/dist/types/inputs/SelectChip.d.ts +5 -0
  471. package/dist/types/inputs/TimeInput.d.ts +16 -0
  472. package/dist/types/inputs/choice.d.ts +6 -1
  473. package/dist/types/inputs/index.d.ts +2 -0
  474. package/dist/types/inputs/input-messages.d.ts +9 -0
  475. package/dist/types/inputs/period-picker-messages.d.ts +9 -0
  476. package/dist/types/inputs/period.d.ts +41 -0
  477. package/dist/types/inputs/time-input.d.ts +43 -0
  478. package/dist/types/internal/anchor-placement.d.ts +23 -0
  479. package/dist/types/internal/exit-motion.d.ts +10 -0
  480. package/dist/types/internal/option-description.d.ts +20 -0
  481. package/dist/types/internal/portal-scope.d.ts +11 -0
  482. package/dist/types/internal/portal.d.ts +1 -1
  483. package/dist/types/internal/scroll-places.d.ts +2 -0
  484. package/dist/types/intl/messages.d.ts +5 -0
  485. package/dist/types/layout/AppWorkspace.d.ts +10 -0
  486. package/dist/types/layout/BottomSheet.d.ts +1 -18
  487. package/dist/types/layout/Discussion.d.ts +25 -0
  488. package/dist/types/layout/Panes.d.ts +6 -0
  489. package/dist/types/layout/SidebarSwitcher.d.ts +5 -0
  490. package/dist/types/layout/bottom-sheet-load.d.ts +9 -0
  491. package/dist/types/layout/bottom-sheet-options.d.ts +18 -0
  492. package/dist/types/layout/index.d.ts +4 -3
  493. package/dist/types/layout/panes-preview-scope.d.ts +2 -0
  494. package/dist/types/layout/sheet-handle.d.ts +17 -8
  495. package/dist/types/layout/sidebar-scroll-memory.d.ts +6 -0
  496. package/dist/types/panes.d.ts +2 -0
  497. package/dist/types/surfaces/ChangeList.d.ts +23 -4
  498. package/dist/types/surfaces/DotStrip.d.ts +25 -5
  499. package/dist/types/surfaces/LinkCard.d.ts +14 -0
  500. package/dist/types/surfaces/StatCell.d.ts +7 -2
  501. package/dist/types/surfaces/StatGrid.d.ts +15 -3
  502. package/dist/types/surfaces/index.d.ts +1 -1
  503. package/package.json +18 -5
@@ -0,0 +1,9 @@
1
+ import { type JSX } from "solid-js";
2
+ /** A quoted passage as a message and the composer show it: icon, at most two lines, and its author. */
3
+ export declare function MessageQuote(props: {
4
+ quote: {
5
+ author: string;
6
+ text: string;
7
+ onSelect?: () => void;
8
+ };
9
+ }): JSX.Element;
@@ -130,6 +130,11 @@ export type MessageRowProps = {
130
130
  actions?: readonly MessageRowAction[];
131
131
  /** The message this one answers, shown above it. */
132
132
  quote?: MessageRowQuote;
133
+ /**
134
+ * Passages of other messages this one quotes, above its text after `quote`: each with the quote icon, at most two
135
+ * lines, and its author on quiet grey. `onSelect` makes one a button, for example to jump to the passage.
136
+ */
137
+ quotes?: readonly MessageRowQuote[];
133
138
  /** Marks the message as forwarded from somewhere else. */
134
139
  forwarded?: boolean;
135
140
  /** Marks the message as edited after it was sent. */
@@ -0,0 +1,25 @@
1
+ import { type JSX } from "solid-js";
2
+ export type ProgressPathStep = {
3
+ /** What happens at this step, such as "Received". */
4
+ label: string;
5
+ /** A quiet second line, such as the day it happened or "not yet". */
6
+ detail?: JSX.Element;
7
+ /** Whether the step happened. Done steps show a check and a colored line to the next step. */
8
+ done?: boolean;
9
+ /** Tabler icon class an open step shows in its circle, such as `ti ti-truck`. */
10
+ icon?: string;
11
+ };
12
+ export type ProgressPathProps = {
13
+ steps: readonly ProgressPathStep[];
14
+ /** Accessible name of the list, such as "Path of the item". */
15
+ label?: string;
16
+ class?: string;
17
+ };
18
+ /**
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" }]} />
23
+ */
24
+ export declare function ProgressPath(props: ProgressPathProps): JSX.Element;
25
+ export default ProgressPath;
@@ -4,6 +4,12 @@ export type VirtualFeedScrollOptions = {
4
4
  align?: "start" | "center";
5
5
  /** Tints the item briefly so the reader finds it. */
6
6
  highlight?: boolean;
7
+ /**
8
+ * With `highlight`, tints only this passage of the item's text, such as a quoted part, where the browser supports
9
+ * the CSS Custom Highlight API and the item holds the passage (whitespace does not count). Otherwise the whole item
10
+ * is tinted.
11
+ */
12
+ highlightText?: string;
7
13
  };
8
14
  export type VirtualFeedController = {
9
15
  /**
@@ -0,0 +1,22 @@
1
+ /** Words of `ActivityList` and `ActivityCard`; the sentences of the entries come from the application. */
2
+ declare const activityMessages: import("@k2b/stdlib").Catalog<{
3
+ activityTitle: string;
4
+ activityToday: string;
5
+ activityYesterday: string;
6
+ activityOlder: string;
7
+ activityAutomatic: string;
8
+ activityAll: ({ count }: {
9
+ count: number;
10
+ }) => string;
11
+ activityEmpty: string;
12
+ activityError: string;
13
+ activityReload: string;
14
+ activityFilter: string;
15
+ }>;
16
+ export type ActivityMessages = ReturnType<(typeof activityMessages)["resolve"]>["t"];
17
+ /** Resolved from the inherited render locale. */
18
+ export declare const useActivityMessages: () => (() => ActivityMessages);
19
+ /** Outside a component, such as when a dialog opens: the given locale, else the document's language. */
20
+ export declare const resolveActivityMessages: (locale?: string) => ActivityMessages;
21
+ export declare const checkActivityMessages: () => import("@k2b/stdlib").CatalogIssue[];
22
+ export {};
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Time rules of `ActivityList`: pure, with `now` as an input, so the server, the first browser render, and tests
3
+ * compute the same rows. Days count in `timeZone`.
4
+ *
5
+ * - **Dividers:** "Today", "Yesterday", and each day up to seven days back; everything older sits under one divider
6
+ * "More than a week ago".
7
+ * - **Time:** under a day divider the time alone ("10:20"); under the older divider the day and time
8
+ * ("21 Oct, 14:31"; another year adds the year).
9
+ * - **Distance:** "12 min. ago", "6 hr. ago", "1 day ago", "9 days ago", weeks from 14 days, months from 60 days,
10
+ * years from 365 days.
11
+ * - **Bundles:** equal entries (one key) directly after each other on the same day become one row with a count; the
12
+ * newest one leads.
13
+ */
14
+ /** How many days back still have a divider of their own. */
15
+ export declare const ACTIVITY_DAYS_WITH_DIVIDER = 7;
16
+ export type ActivityGroup = {
17
+ kind: "today" | "yesterday" | "day";
18
+ day: string;
19
+ } | {
20
+ kind: "older";
21
+ day: null;
22
+ };
23
+ /** The calendar day (`YYYY-MM-DD`) of an instant in a time zone. */
24
+ export declare const activityDay: (at: string | Date, timeZone: string) => string;
25
+ /** The divider an instant stands under. Instants in the future (the device clock) count as today. */
26
+ export declare const activityGroup: (at: string, now: Date, timeZone: string) => ActivityGroup;
27
+ export declare const sameActivityGroup: (a: ActivityGroup, b: ActivityGroup) => boolean;
28
+ /** A day divider's label, such as "Fri, Nov 6" (de "Fr., 6. Nov."); another year adds the year. */
29
+ export declare const activityDayLabel: (day: string, now: Date, locale: string, timeZone: string) => string;
30
+ /** The time of the meta line: within the last week the time alone, before that the day and time. */
31
+ export declare const activityWhen: (at: string, now: Date, locale: string, timeZone: string) => string;
32
+ /** The full instant for the tooltip, such as "Oct 21, 2026, 14:31". */
33
+ export declare const activityInstant: (at: string, locale: string, timeZone: string) => string;
34
+ /** Distance to now in the interface language ("6 hr. ago", de "vor 6 Std."); never "yesterday", never in the future. */
35
+ export declare const activityAgo: (at: string, now: Date, locale: string, timeZone: string) => string;
36
+ /** One row: the newest entry of a bundle, all entries of the bundle (newest first), and the divider before it (only on a group's first row). */
37
+ export type ActivityRow<T> = {
38
+ entry: T;
39
+ all: T[];
40
+ divider: ActivityGroup | null;
41
+ };
42
+ /**
43
+ * Entries as rows: newest first (stable for equal times), equal entries after each other on the same day bundled
44
+ * (`key`; `null` never bundles), dividers by day or "older".
45
+ */
46
+ export declare const activityRows: <T extends {
47
+ at: string;
48
+ }>(entries: readonly T[], input: {
49
+ now: Date;
50
+ timeZone: string;
51
+ key?: (entry: T) => string | null;
52
+ }) => ActivityRow<T>[];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * A chart is drawn once at its drawing width and CSS stretches it to its box; labels keep their pixel size. On a box
3
+ * narrower than the drawing, neighbouring date labels would meet. Each label therefore names the box width it needs:
4
+ * every second label gives way first, then every fourth, and the first label always stays. The width a label needs is
5
+ * where the labels that remain at its level have the room of the widest label between them.
6
+ */
7
+ export declare const tickRooms: (positions: readonly number[], texts: readonly string[], drawWidth: number) => number[];
8
+ /** The style that lets CSS hide a time label (`data-time-tick`) in a box narrower than it needs (`tickRooms`). */
9
+ export declare const tickRoomStyle: (room: number) => string;
10
+ /**
11
+ * Marks the X tick labels of a line drawing that its host stretches (`data-stretch`) with the box width each needs.
12
+ * The X labels are the bottom row of tick labels, the lowest `y` that several labels share; Y labels each have their
13
+ * own. The drawing itself stays as the renderer made it, so only stretching hosts carry the marks.
14
+ */
15
+ export declare const stretchedTickRoomsSvg: (svg: string) => string;
@@ -13,6 +13,12 @@ export type ChartTimeStep = {
13
13
  unit: ChartTimeUnit;
14
14
  size: number;
15
15
  };
16
+ /**
17
+ * How many dates fit along a drawing of this width when the caller names no tick count: one date takes about 56 px
18
+ * (a label such as "12. Nov." and the gap to the next), the Y labels take the first 60 px, and never fewer than five.
19
+ * A box narrower than the drawing then hides every second date (`chart-tick-room.ts`).
20
+ */
21
+ export declare const chartTimeTickBudget: (drawWidth: number, ticks?: number) => number;
16
22
  /** The round step for a time span: the finest one that keeps at most `maxTicks` ticks. */
17
23
  export declare const chartTimeStep: (span: number, maxTicks: number) => ChartTimeStep;
18
24
  /** Tick instants inside `domain` that fall on round wall times of `step` in `timeZone`. */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The range of the first place in `root`'s text where `text` occurs, ignoring whitespace, so a passage copied from a
3
+ * selection across lines, paragraphs or list items still finds its words. Returns nothing when it does not occur.
4
+ */
5
+ export declare const findTextRange: (root: Node, text: string) => Range | null;
6
+ /**
7
+ * Tints the passage `text` in `root` with the CSS highlight `name` and returns what removes it, or nothing where the
8
+ * passage is missing or the browser has no CSS Custom Highlight API.
9
+ */
10
+ export declare const highlightTextPassage: (root: Node, text: string, name: string) => (() => void) | null;
@@ -1,4 +1,5 @@
1
1
  export type { ChartDateFormat, ChartDatum, ChartDatumRole, ChartFormat, ChartNumberFormat } from "../charts/core";
2
+ export { type ActivityAction, ActivityCard, type ActivityCardProps, type ActivityDensity, type ActivityDialogInput, type ActivityEntry, type ActivityKind, ActivityList, type ActivityListProps, type ActivityTone, openActivityDialog, } from "./ActivityList";
2
3
  export { BalanceSummary, type BalanceSummaryProps } from "./BalanceSummary";
3
4
  export type { CalendarAttendee, CalendarCommand, CalendarController, CalendarCustomView, CalendarDayBadge, CalendarEvent, CalendarEventColor, CalendarEventLink, CalendarEventRenderContext, CalendarEventTimeChange, CalendarExternalDrag, CalendarLabels, CalendarProps, CalendarQuickCreateControls, CalendarRange, CalendarRecurrence, CalendarResource, CalendarSelectionControls, CalendarView, } from "./Calendar";
4
5
  export { default as Calendar } from "./Calendar";
@@ -67,6 +68,7 @@ export { Pagination, type PaginationProps } from "./Pagination";
67
68
  export { PdfThumbnails, type PdfThumbnailsProps } from "./PdfThumbnails";
68
69
  export type { PdfViewerProps, PdfViewerRequest } from "./PdfViewer";
69
70
  export { default as PdfViewer } from "./PdfViewer";
71
+ export { ProgressPath, type ProgressPathProps, type ProgressPathStep } from "./ProgressPath";
70
72
  export type { RangeOption, RangePickerProps } from "./RangePicker";
71
73
  export { default as RangePicker } from "./RangePicker";
72
74
  export { ReactionBar, type ReactionBarItem, type ReactionBarProps } from "./ReactionBar";
@@ -0,0 +1,6 @@
1
+ /** Resolved from the inherited render locale. */
2
+ export declare const useQuoteMessages: () => () => {
3
+ quoteFrom: string;
4
+ removeQuote: string;
5
+ };
6
+ export declare const checkQuoteMessages: () => import("@k2b/stdlib").CatalogIssue[];
@@ -0,0 +1,44 @@
1
+ import { type JSX } from "solid-js";
2
+ export type HoverCardOptions = {
3
+ /** The card's content: a small graphic, a `ProgressPath`, a `DescriptionList`, or a few lines. Information only. */
4
+ content: JSX.Element;
5
+ /** A bold first line, such as the name of what the control shows. */
6
+ title?: JSX.Element;
7
+ /** A quiet line under the title, such as where the thing belongs. */
8
+ detail?: JSX.Element;
9
+ /** A quiet last line, such as what a click on the control does. */
10
+ hint?: JSX.Element;
11
+ /** The side tried first; the card flips only when the other side has more room. Defaults to `below`. */
12
+ side?: "below" | "above";
13
+ /** Which edge of the card lines up with the control. Defaults to `start`. */
14
+ align?: "start" | "end";
15
+ /** Width of the card, such as `32rem`. Defaults to `20rem`; it never gets wider than the screen. */
16
+ width?: string;
17
+ /** Milliseconds a resting pointer waits before the card opens. Defaults to 400. */
18
+ delay?: number;
19
+ /** Keeps the card closed; an open card closes. */
20
+ disabled?: boolean;
21
+ /** Extra class on the card. */
22
+ class?: string;
23
+ };
24
+ export type HoverCardProps = HoverCardOptions & Omit<JSX.HTMLAttributes<HTMLSpanElement>, "content" | "title">;
25
+ export type HoverCardTriggerProps = HoverCardOptions & Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "content" | "title" | "class"> & {
26
+ /** Class of the trigger button; `class` styles the card. */
27
+ triggerClass?: string;
28
+ /**
29
+ * Links or buttons of the card, at the start of its last line, with `hint` at the end. A card with actions is a
30
+ * non-modal dialog: only a press or Enter opens it, the focus moves into it, and Escape returns the focus to the
31
+ * trigger. Its body may then hold controls too, such as "Try again". Resting the pointer opens nothing.
32
+ */
33
+ actions?: JSX.Element;
34
+ };
35
+ type HoverCardComponent = ((props: HoverCardProps) => JSX.Element) & {
36
+ Trigger: (props: HoverCardTriggerProps) => JSX.Element;
37
+ };
38
+ /**
39
+ * A card with rich details beside its control: a title, a small graphic, steps with labels, or rows of facts. It is
40
+ * the large sibling of `Tooltip`. Wrap a control with its own action in `HoverCard`; use `HoverCard.Trigger` when the
41
+ * content has no control of its own.
42
+ */
43
+ export declare const HoverCard: HoverCardComponent;
44
+ export default HoverCard;
@@ -15,6 +15,11 @@ export type TooltipProps = {
15
15
  };
16
16
  export type TooltipAnchorProps = Omit<JSX.HTMLAttributes<HTMLSpanElement>, "content"> & Omit<TooltipProps, "target" | "focusTarget">;
17
17
  export type TooltipTriggerProps = Omit<JSX.ButtonHTMLAttributes<HTMLButtonElement>, "content"> & Omit<TooltipProps, "target" | "focusTarget">;
18
+ /**
19
+ * True below a Tooltip.Anchor or a HoverCard, whose hint already covers the controls inside it. Not part of the public
20
+ * index.
21
+ */
22
+ export declare const AnchorContext: import("solid-js").Context<boolean>;
18
23
  /**
19
24
  * The hint an icon-only control shows by default: its label, unless the caller
20
25
  * passes its own `tooltip` (or `false`) or an enclosing Tooltip.Anchor already
@@ -1,6 +1,8 @@
1
1
  import { type JSX } from "solid-js";
2
2
  export type DialogClose<T> = (result?: T) => void;
3
3
  export type OpenDialogOptions = {
4
+ /** Override the opener's primary palette for a dialog with its own purpose, such as a global session warning. */
5
+ primary?: "blue" | "ai";
4
6
  /** Close only this dialog when its owning operation is cancelled. */
5
7
  signal?: AbortSignal;
6
8
  panelClassName?: string;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The motion of one dialog element's frame while it stays open: a level that replaces another morphs the frame from
3
+ * the old size to the new one in the same place, without stacking. The old content fades out, the frame changes size
4
+ * over `--k2b-motion-morph` with `--k2b-ease-morph`, and the new content fades in, set at its final size from the
5
+ * first frame so it never rewraps; the frame clips meanwhile. Anything that interrupts a change turns around from the
6
+ * values the eye sees; the endings of the interrupted change are dropped, not run. Reduced motion swaps in one frame.
7
+ *
8
+ * The frame's own size is animated, a named exception to "transform and opacity only" (see the motion guide): the
9
+ * frame stands alone above the page, so nothing beside it moves.
10
+ */
11
+ export { afterExitTransitions } from "../internal/exit-motion";
12
+ export type FrameMotion = {
13
+ /**
14
+ * Before a level replaces the shown one: remembers the frame as the eye sees it and takes `leaving` out of the flow,
15
+ * visible and inert, at its present size.
16
+ */
17
+ begin: (leaving: HTMLElement, back?: boolean) => void;
18
+ /**
19
+ * A level that replaces another keeps the same `<dialog>`, so a screen reader does not reliably say its new name.
20
+ * The live region inside the dialog does (`announce()` regions sit outside a modal dialog and are silent there): the
21
+ * shown level's name, and for an `alertdialog` its sentence too.
22
+ */
23
+ announce: (role: "dialog" | "alertdialog") => void;
24
+ /**
25
+ * After `arriving` is shown and its frame presentation applied: morphs the frame to its size and fades the contents.
26
+ * `left` runs once `leaving` has faded out (hide a lower level, or dispose a closed one).
27
+ */
28
+ arrive: (arriving: HTMLElement, left: () => void) => void;
29
+ /** Ends every motion now and runs the pending endings, for a frame that leaves the document. */
30
+ stop: () => void;
31
+ /**
32
+ * For a frame that closes and fades out: keeps the size, place and contents exactly as the eye sees them now, and
33
+ * returns the pending endings to run once the frame has left.
34
+ */
35
+ freeze: () => () => void;
36
+ };
37
+ export declare const createFrameMotion: (dialog: HTMLDialogElement) => FrameMotion;
@@ -3,6 +3,8 @@ export { announce } from "./announce";
3
3
  export type { DialogClose, DialogCore, DialogRender, OpenDialogOptions } from "./dialog-core";
4
4
  export { dialogCore } from "./dialog-core";
5
5
  export type { DialogTone } from "./dialog-tone";
6
+ export type { HoverCardOptions, HoverCardProps, HoverCardTriggerProps } from "./HoverCard";
7
+ export { HoverCard } from "./HoverCard";
6
8
  export type { HoverPreviewController, HoverPreviewOptions, HoverPreviewPlacement, HoverPreviewProps } from "./HoverPreview";
7
9
  export { createHoverPreview, HoverPreview } from "./HoverPreview";
8
10
  export type { InlineGuidanceProps } from "./InlineGuidance";
@@ -14,8 +14,6 @@ export declare const DialogHeader: (props: {
14
14
  /** A success tone draws its check once when the header appears; see `prompts.success`. */
15
15
  celebrate?: boolean;
16
16
  }) => JSX.Element;
17
- export declare const panelClass: (options?: Pick<DialogOptions, "size" | "surface" | "variant">) => string;
18
- export declare const contentClass: (surface?: DialogOptions["surface"]) => string;
19
17
  export declare const confirmPrompt: (content: PromptContent, options?: ConfirmOptions) => Promise<boolean | undefined>;
20
18
  /** `prompts` starts as this object; `PanelDialog` asks through it, so it reaches a replaced `prompts.confirm` too. */
21
19
  export declare const sharedPrompts: {
@@ -0,0 +1,3 @@
1
+ import { type DialogRender, type OpenDialogOptions } from "./dialog-core";
2
+ /** Opens the prompt as a bottom sheet; dismissing it, by its handle or a drag, takes the prompt's own dismiss path. */
3
+ export declare const openPromptSheet: <T>(render: DialogRender<T>, options: OpenDialogOptions) => Promise<T | undefined>;
@@ -0,0 +1,20 @@
1
+ import { type DialogRender, type OpenDialogOptions } from "./dialog-core";
2
+ /** The prompt options that shape its dialog, as in `DialogOptions`. */
3
+ type PromptFrame = {
4
+ size?: string;
5
+ surface?: string;
6
+ variant?: string;
7
+ signal?: AbortSignal;
8
+ cancelBehavior?: OpenDialogOptions["cancelBehavior"];
9
+ history?: boolean;
10
+ ariaLabel?: string;
11
+ title?: string;
12
+ };
13
+ export declare const panelClass: (options?: PromptFrame) => string;
14
+ export declare const contentClass: (surface?: string) => string;
15
+ /**
16
+ * Opens a prompt with the frame, cancellation, history, and name every prompt shares: the dialog in the middle, or on
17
+ * a phone the same content as a bottom sheet. `label` names it when it has no title; `sheet: false` keeps the dialog.
18
+ */
19
+ export declare const openPrompt: <T>(render: DialogRender<T>, options: PromptFrame | undefined, label: string, sheet?: boolean, initialFocus?: OpenDialogOptions["initialFocus"]) => Promise<T | undefined>;
20
+ export {};
@@ -33,6 +33,11 @@ export type PromptSearchItem<T = unknown> = {
33
33
  id?: string;
34
34
  label: string;
35
35
  desc?: string;
36
+ /**
37
+ * Shown in place of `desc`, such as a colored `Tag`. A function, so each place gets its own element. It shows only
38
+ * with a `desc`, which stays the text that screen readers use.
39
+ */
40
+ descriptionVisual?: () => JSX.Element;
36
41
  icon?: string;
37
42
  previewUrl?: string;
38
43
  value?: T;
@@ -41,7 +41,11 @@ export type ToastOptions = {
41
41
  };
42
42
  export type ToastHandle = {
43
43
  dismiss: () => void;
44
- update: (description: string, options?: ToastOptions) => void;
44
+ /**
45
+ * Changes the toast in place. Returns `false` when the toast is already gone, closed by the person or a timer, so the
46
+ * caller can still report a result, such as a failure, with a new toast. (`void` keeps existing test doubles valid.)
47
+ */
48
+ update: (description: string, options?: ToastOptions) => boolean | void;
45
49
  };
46
50
  export type ToastSlotOptions = {
47
51
  /** Names the slot's close button: "Close: {label}". */
@@ -0,0 +1,5 @@
1
+ /**
2
+ * A separate entry for code that loads the hover card on demand. Imported from here, it stays out of an island's first
3
+ * JavaScript, because the main entry no longer has to keep it.
4
+ */
5
+ export { HoverCard, type HoverCardOptions, type HoverCardProps, type HoverCardTriggerProps } from "./feedback/HoverCard";
@@ -5,6 +5,11 @@ export type ChoiceListOption<T extends string = string> = {
5
5
  label: string;
6
6
  /** One sentence on what the choice means. */
7
7
  description?: string;
8
+ /**
9
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
10
+ * It shows only with a `description`, which stays the text that search and screen readers use.
11
+ */
12
+ descriptionVisual?: () => JSX.Element;
8
13
  /** A quiet tag after the label, such as "Default" for the choice that applies without one. */
9
14
  marker?: string;
10
15
  /** A Tabler icon class before the text, such as `ti ti-truck`, when a picture helps tell the choices apart. */
@@ -14,19 +19,21 @@ export type ChoiceListOption<T extends string = string> = {
14
19
  };
15
20
  export type ChoiceListProps<T extends string = string> = Omit<ValueFieldProps<T | null>, "onValueChange" | "onValueCommit"> & {
16
21
  options: readonly ChoiceListOption<T>[];
22
+ /** Cards by default; `list` joins compact rows in one frame, with details below the frame. */
23
+ variant?: "cards" | "list";
17
24
  /** The chosen value is being saved: a spinner beside its label, and the group is busy. Choosing again is still possible. */
18
25
  busy?: boolean;
19
26
  /** Busy spinner's name for screen readers, such as "Saving". */
20
27
  busyLabel?: string;
21
- /** Follow-up controls for the chosen option, shown under it and indented to its text, such as a duration. */
28
+ /** Follow-up controls for the chosen option: under its card row, or below the whole frame in `list`. */
22
29
  details?: JSX.Element;
23
30
  onValueChange?: (value: T) => void;
24
31
  onValueCommit?: (value: T) => void;
25
32
  };
26
33
  /**
27
- * A labeled single choice shown as cards, each with a radio, a label and one sentence on what it
28
- * means, for a few choices whose consequences need words. Choosing changes only paint, so no card moves; `details`
29
- * opens under the chosen card's row. Use `ChoiceChips` for quick picks without explanation, `RichSelect` for longer lists
30
- * in a dropdown, and `ChoiceTiles` when a preview decides.
34
+ * A labeled single choice shown as cards or compact framed rows, each with a radio and a label.
35
+ * Cards explain consequences below the label; `list` puts short additions beside it. `details`
36
+ * opens under the chosen card's row, or below the whole list frame. Use `ChoiceChips` for quick picks
37
+ * without explanation, `RichSelect` for longer lists in a dropdown, and `ChoiceTiles` when a preview decides.
31
38
  */
32
39
  export declare function ChoiceList<T extends string = string>(props: ChoiceListProps<T>): JSX.Element;
@@ -4,6 +4,11 @@ export type ComboboxOption = {
4
4
  id: string;
5
5
  label: string;
6
6
  description?: string;
7
+ /**
8
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
9
+ * It shows only with a `description`, which stays the text that search and screen readers use.
10
+ */
11
+ descriptionVisual?: () => JSX.Element;
7
12
  icon?: string;
8
13
  /** Shown but cannot be picked, such as someone who is already on the list; say why in `description`. */
9
14
  disabled?: boolean;
@@ -6,6 +6,7 @@ export type MultiSelectOption = string | {
6
6
  id: string;
7
7
  label?: string;
8
8
  description?: string;
9
+ descriptionVisual?: () => JSX.Element;
9
10
  icon?: string;
10
11
  color?: string;
11
12
  groups?: readonly string[];
@@ -14,6 +14,16 @@ export type PeriodPickerProps = Omit<ValueFieldProps<PeriodValue | null>, "value
14
14
  now?: Date;
15
15
  /** Shows that a change is saving: the trigger keeps its size, cannot be opened, and shows a spinner. */
16
16
  loading?: boolean;
17
+ /**
18
+ * Arrows before the trigger step to the previous and next period, and a link after it leads back to the current
19
+ * one. A calendar week, month, quarter or year steps to its neighbour; any other range moves by its own length. An
20
+ * open period such as "All time" does not step. A step that lands on a preset stores the preset.
21
+ */
22
+ steps?: boolean;
23
+ /** The first day there is anything to show, a date key. The previous arrow stops before it and says why. */
24
+ min?: string;
25
+ /** The last day there is anything to show, a date key. The next arrow stops after it and says why. */
26
+ max?: string;
17
27
  };
18
28
  /**
19
29
  * PeriodPicker — one control for the period an evaluation or dashboard shows: presets such as "This month" plus a
@@ -8,6 +8,11 @@ export type RichSelectItem = {
8
8
  label: string;
9
9
  /** At most one short line that says what the choice changes. */
10
10
  description?: string;
11
+ /**
12
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
13
+ * It shows only with a `description`, which stays the text that search and screen readers use.
14
+ */
15
+ descriptionVisual?: () => JSX.Element;
11
16
  /** Icon class shown before the name. */
12
17
  icon?: string;
13
18
  /** Color dot shown before the name, such as a space color. Replaces `icon`. */
@@ -19,6 +19,7 @@ export type SelectSourceOption = string | {
19
19
  id: string;
20
20
  label?: string;
21
21
  description?: string;
22
+ descriptionVisual?: () => JSX.Element;
22
23
  icon?: string;
23
24
  color?: string;
24
25
  groups?: readonly string[];
@@ -6,6 +6,11 @@ export type SelectChipOption<T extends string | number = string> = {
6
6
  value: T;
7
7
  label: string;
8
8
  description?: string;
9
+ /**
10
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
11
+ * It shows only with a `description`, which stays the text that search and screen readers use.
12
+ */
13
+ descriptionVisual?: () => JSX.Element;
9
14
  icon?: string;
10
15
  image?: string;
11
16
  disabled?: boolean;
@@ -0,0 +1,16 @@
1
+ import { type JSX } from "solid-js";
2
+ import type { ValueFieldProps } from "./field-contract";
3
+ export type TimeInputProps = Omit<JSX.InputHTMLAttributes<HTMLInputElement>, "max" | "min" | "onChange" | "onInput" | "step" | "type" | "value" | keyof ValueFieldProps<string | null>> & ValueFieldProps<string | null> & {
4
+ /** The earliest allowed time, `HH:mm`. */
5
+ min?: string;
6
+ /** The latest allowed time, `HH:mm`; 23:59 by default. `24:00` allows the end of the day, as for "until midnight". */
7
+ max?: string;
8
+ /** The minute grid a committed time snaps to, counted from `min` or midnight; 1 by default. */
9
+ step?: number;
10
+ };
11
+ /**
12
+ * A 24-hour clock time field. The value is `HH:mm` or `null`. People type `9`, `930` or `9:30` with the numeric
13
+ * keypad; Enter or leaving the field commits `09:30`. A text that is no allowed time stays for correction, says
14
+ * why, and keeps the value.
15
+ */
16
+ export declare function TimeInput(props: TimeInputProps): JSX.Element;
@@ -1,8 +1,13 @@
1
- import { type Setter } from "solid-js";
1
+ import { type JSX, type Setter } from "solid-js";
2
2
  export type ChoiceOption<T extends string = string> = {
3
3
  value: T;
4
4
  label: string;
5
5
  description?: string;
6
+ /**
7
+ * Shown in place of `description`, such as a colored `Tag`. A function, so each place gets its own element.
8
+ * It shows only with a `description`, which stays the text that search and screen readers use.
9
+ */
10
+ descriptionVisual?: () => JSX.Element;
6
11
  icon?: string;
7
12
  color?: string;
8
13
  disabled?: boolean;
@@ -84,3 +84,5 @@ export type { TemplateEditorLayout, TemplateEditorProps, TemplatePreviewProps, T
84
84
  export { createTemplateEditorPanesLayout, TemplateEditor, TemplatePreview, TemplateSampleData, } from "./TemplateEditor";
85
85
  export type { TextInputProps } from "./TextInput";
86
86
  export { TextInput } from "./TextInput";
87
+ export type { TimeInputProps } from "./TimeInput";
88
+ export { TimeInput } from "./TimeInput";
@@ -12,6 +12,15 @@ declare const inputMessages: import("@k2b/stdlib").Catalog<{
12
12
  resetTo: ({ value }: {
13
13
  value: string;
14
14
  }) => string;
15
+ timeLetters: string;
16
+ notATime: string;
17
+ timeRequired: string;
18
+ earliestTime: ({ time }: {
19
+ time: string;
20
+ }) => string;
21
+ latestTime: ({ time }: {
22
+ time: string;
23
+ }) => string;
15
24
  }>;
16
25
  export type InputMessages = ReturnType<(typeof inputMessages)["resolve"]>["t"];
17
26
  /** Resolved from the inherited render locale. */
@@ -23,6 +23,15 @@ declare const periodPickerMessages: import("@k2b/stdlib").Catalog<{
23
23
  "this-year": string;
24
24
  "last-year": string;
25
25
  all: string;
26
+ previousPeriod: string;
27
+ nextPeriod: string;
28
+ currentPeriod: string;
29
+ nothingBefore: ({ date }: {
30
+ date: string;
31
+ }) => string;
32
+ nothingAfter: ({ date }: {
33
+ date: string;
34
+ }) => string;
26
35
  }>;
27
36
  export type PeriodPickerMessages = ReturnType<(typeof periodPickerMessages)["resolve"]>["t"];
28
37
  /** The translated label of a built-in preset key, if it is one. */