@k2b/ui 0.59.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 (325) hide show
  1. package/dist/browser/actions/CommandList.js +67 -74
  2. package/dist/browser/actions/CommandList.js.map +1 -1
  3. package/dist/browser/actions/ContextMenu.js +11 -2
  4. package/dist/browser/actions/ContextMenu.js.map +1 -1
  5. package/dist/browser/actions/Dropdown.js +187 -169
  6. package/dist/browser/actions/Dropdown.js.map +1 -1
  7. package/dist/browser/actions/GestureMenu.js +18 -7
  8. package/dist/browser/actions/GestureMenu.js.map +1 -1
  9. package/dist/browser/actions/SelectionAction.js +232 -0
  10. package/dist/browser/actions/SelectionAction.js.map +1 -0
  11. package/dist/browser/actions/command-items.js.map +1 -1
  12. package/dist/browser/actions/index.js +1 -0
  13. package/dist/browser/actions/index.js.map +1 -1
  14. package/dist/browser/actions/menu-sheet-open.js +19 -0
  15. package/dist/browser/actions/menu-sheet-open.js.map +1 -0
  16. package/dist/browser/charts/core/line-details.js +2 -2
  17. package/dist/browser/charts/core/line-details.js.map +1 -1
  18. package/dist/browser/charts/core/render.js +2 -1
  19. package/dist/browser/charts/core/render.js.map +1 -1
  20. package/dist/browser/chat/ChatActivityWords.js +142 -0
  21. package/dist/browser/chat/ChatActivityWords.js.map +1 -0
  22. package/dist/browser/chat/ChatComposer.js +540 -515
  23. package/dist/browser/chat/ChatComposer.js.map +1 -1
  24. package/dist/browser/chat/ChatComposerQuotes.js +56 -0
  25. package/dist/browser/chat/ChatComposerQuotes.js.map +1 -0
  26. package/dist/browser/chat/ChatPrimitives.js +281 -245
  27. package/dist/browser/chat/ChatPrimitives.js.map +1 -1
  28. package/dist/browser/chat/index.js +4 -1
  29. package/dist/browser/chat/index.js.map +1 -1
  30. package/dist/browser/content/ActivityList.js +789 -0
  31. package/dist/browser/content/ActivityList.js.map +1 -0
  32. package/dist/browser/content/DataTableTools.js +3 -0
  33. package/dist/browser/content/DataTableTools.js.map +1 -1
  34. package/dist/browser/content/Lightbox.js +2 -0
  35. package/dist/browser/content/Lightbox.js.map +1 -1
  36. package/dist/browser/content/MessageQuote.js +57 -0
  37. package/dist/browser/content/MessageQuote.js.map +1 -0
  38. package/dist/browser/content/MessageRow.js +413 -391
  39. package/dist/browser/content/MessageRow.js.map +1 -1
  40. package/dist/browser/content/VirtualFeed.js +29 -2
  41. package/dist/browser/content/VirtualFeed.js.map +1 -1
  42. package/dist/browser/content/activity-messages.js +47 -0
  43. package/dist/browser/content/activity-messages.js.map +1 -0
  44. package/dist/browser/content/activity-timeline.js +144 -0
  45. package/dist/browser/content/activity-timeline.js.map +1 -0
  46. package/dist/browser/content/chart-time-calendar.js +12 -18
  47. package/dist/browser/content/chart-time-calendar.js.map +1 -1
  48. package/dist/browser/content/find-text.js +47 -0
  49. package/dist/browser/content/find-text.js.map +1 -0
  50. package/dist/browser/content/index.js +1 -0
  51. package/dist/browser/content/index.js.map +1 -1
  52. package/dist/browser/content/quote-messages.js +25 -0
  53. package/dist/browser/content/quote-messages.js.map +1 -0
  54. package/dist/browser/feedback/dialog-core.js +118 -14
  55. package/dist/browser/feedback/dialog-core.js.map +1 -1
  56. package/dist/browser/feedback/dialog-frame-motion.js +274 -0
  57. package/dist/browser/feedback/dialog-frame-motion.js.map +1 -0
  58. package/dist/browser/feedback/prompt-sheet-view.js +2 -1
  59. package/dist/browser/feedback/prompt-sheet-view.js.map +1 -1
  60. package/dist/browser/feedback/prompts.js +49 -53
  61. package/dist/browser/feedback/prompts.js.map +1 -1
  62. package/dist/browser/hover-card.js +6 -0
  63. package/dist/browser/hover-card.js.map +1 -0
  64. package/dist/browser/inputs/AutocompleteEditor.js +2 -1
  65. package/dist/browser/inputs/AutocompleteEditor.js.map +1 -1
  66. package/dist/browser/inputs/AutocompleteSelect.js +3 -12
  67. package/dist/browser/inputs/AutocompleteSelect.js.map +1 -1
  68. package/dist/browser/inputs/ChoiceList.js +131 -127
  69. package/dist/browser/inputs/ChoiceList.js.map +1 -1
  70. package/dist/browser/inputs/Combobox.js +6 -15
  71. package/dist/browser/inputs/Combobox.js.map +1 -1
  72. package/dist/browser/inputs/MultiSelectInput.js +7 -16
  73. package/dist/browser/inputs/MultiSelectInput.js.map +1 -1
  74. package/dist/browser/inputs/PeriodPicker.js +475 -252
  75. package/dist/browser/inputs/PeriodPicker.js.map +1 -1
  76. package/dist/browser/inputs/RichSelect.js +431 -431
  77. package/dist/browser/inputs/RichSelect.js.map +1 -1
  78. package/dist/browser/inputs/Select.js +3 -12
  79. package/dist/browser/inputs/Select.js.map +1 -1
  80. package/dist/browser/inputs/SelectChip.js +1 -0
  81. package/dist/browser/inputs/SelectChip.js.map +1 -1
  82. package/dist/browser/inputs/TimeInput.js +181 -0
  83. package/dist/browser/inputs/TimeInput.js.map +1 -0
  84. package/dist/browser/inputs/choice.js.map +1 -1
  85. package/dist/browser/inputs/date-picker.js +2 -1
  86. package/dist/browser/inputs/date-picker.js.map +1 -1
  87. package/dist/browser/inputs/file-drop.js +2 -0
  88. package/dist/browser/inputs/file-drop.js.map +1 -1
  89. package/dist/browser/inputs/index.js +1 -0
  90. package/dist/browser/inputs/index.js.map +1 -1
  91. package/dist/browser/inputs/input-messages.js +20 -2
  92. package/dist/browser/inputs/input-messages.js.map +1 -1
  93. package/dist/browser/inputs/period-picker-messages.js +20 -2
  94. package/dist/browser/inputs/period-picker-messages.js.map +1 -1
  95. package/dist/browser/inputs/period.js +83 -0
  96. package/dist/browser/inputs/period.js.map +1 -1
  97. package/dist/browser/inputs/time-input.js +93 -0
  98. package/dist/browser/inputs/time-input.js.map +1 -0
  99. package/dist/browser/internal/exit-motion.js +23 -0
  100. package/dist/browser/internal/exit-motion.js.map +1 -0
  101. package/dist/browser/internal/option-description.js +47 -0
  102. package/dist/browser/internal/option-description.js.map +1 -0
  103. package/dist/browser/internal/scroll-places.js +15 -0
  104. package/dist/browser/internal/scroll-places.js.map +1 -0
  105. package/dist/browser/layout/AppWorkspace.js +572 -495
  106. package/dist/browser/layout/AppWorkspace.js.map +1 -1
  107. package/dist/browser/layout/BottomSheet.js +2 -14
  108. package/dist/browser/layout/BottomSheet.js.map +1 -1
  109. package/dist/browser/layout/Navigation.js +7 -2
  110. package/dist/browser/layout/Navigation.js.map +1 -1
  111. package/dist/browser/layout/SidebarSwitcher.js +28 -37
  112. package/dist/browser/layout/SidebarSwitcher.js.map +1 -1
  113. package/dist/browser/layout/app-workspace-controller.js +5 -1
  114. package/dist/browser/layout/app-workspace-controller.js.map +1 -1
  115. package/dist/browser/layout/bottom-sheet-load.js +17 -0
  116. package/dist/browser/layout/bottom-sheet-load.js.map +1 -0
  117. package/dist/browser/layout/bottom-sheet-options.js +27 -0
  118. package/dist/browser/layout/bottom-sheet-options.js.map +1 -0
  119. package/dist/browser/layout/index.js +2 -1
  120. package/dist/browser/layout/index.js.map +1 -1
  121. package/dist/browser/layout/sheet-motion.js +10 -11
  122. package/dist/browser/layout/sheet-motion.js.map +1 -1
  123. package/dist/browser/layout/sidebar-scroll-memory.js +30 -0
  124. package/dist/browser/layout/sidebar-scroll-memory.js.map +1 -1
  125. package/dist/browser/surfaces/AvatarStack.js +59 -43
  126. package/dist/browser/surfaces/AvatarStack.js.map +1 -1
  127. package/dist/browser/surfaces/LinkCard.js.map +1 -1
  128. package/dist/browser/surfaces/Section.js +4 -2
  129. package/dist/browser/surfaces/Section.js.map +1 -1
  130. package/dist/browser/surfaces/StatCell.js +56 -28
  131. package/dist/browser/surfaces/StatCell.js.map +1 -1
  132. package/dist/browser/surfaces/StatGrid.js +17 -8
  133. package/dist/browser/surfaces/StatGrid.js.map +1 -1
  134. package/dist/browser/surfaces/index.js.map +1 -1
  135. package/dist/ssr/actions/CommandList.js +23 -26
  136. package/dist/ssr/actions/CommandList.js.map +1 -1
  137. package/dist/ssr/actions/ContextMenu.js +8 -2
  138. package/dist/ssr/actions/ContextMenu.js.map +1 -1
  139. package/dist/ssr/actions/Dropdown.js +79 -55
  140. package/dist/ssr/actions/Dropdown.js.map +1 -1
  141. package/dist/ssr/actions/GestureMenu.js +18 -7
  142. package/dist/ssr/actions/GestureMenu.js.map +1 -1
  143. package/dist/ssr/actions/SelectionAction.js +212 -0
  144. package/dist/ssr/actions/SelectionAction.js.map +1 -0
  145. package/dist/ssr/actions/command-items.js.map +1 -1
  146. package/dist/ssr/actions/index.js +1 -0
  147. package/dist/ssr/actions/index.js.map +1 -1
  148. package/dist/ssr/actions/menu-sheet-open.js +19 -0
  149. package/dist/ssr/actions/menu-sheet-open.js.map +1 -0
  150. package/dist/ssr/charts/core/line-details.js +2 -2
  151. package/dist/ssr/charts/core/line-details.js.map +1 -1
  152. package/dist/ssr/charts/core/render.js +2 -1
  153. package/dist/ssr/charts/core/render.js.map +1 -1
  154. package/dist/ssr/chat/ChatActivityWords.js +126 -0
  155. package/dist/ssr/chat/ChatActivityWords.js.map +1 -0
  156. package/dist/ssr/chat/ChatComposer.js +24 -3
  157. package/dist/ssr/chat/ChatComposer.js.map +1 -1
  158. package/dist/ssr/chat/ChatComposerQuotes.js +26 -0
  159. package/dist/ssr/chat/ChatComposerQuotes.js.map +1 -0
  160. package/dist/ssr/chat/ChatPrimitives.js +53 -47
  161. package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
  162. package/dist/ssr/chat/index.js +4 -1
  163. package/dist/ssr/chat/index.js.map +1 -1
  164. package/dist/ssr/content/ActivityList.js +553 -0
  165. package/dist/ssr/content/ActivityList.js.map +1 -0
  166. package/dist/ssr/content/DataTableTools.js +3 -0
  167. package/dist/ssr/content/DataTableTools.js.map +1 -1
  168. package/dist/ssr/content/Lightbox.js +2 -0
  169. package/dist/ssr/content/Lightbox.js.map +1 -1
  170. package/dist/ssr/content/MessageQuote.js +36 -0
  171. package/dist/ssr/content/MessageQuote.js.map +1 -0
  172. package/dist/ssr/content/MessageRow.js +112 -95
  173. package/dist/ssr/content/MessageRow.js.map +1 -1
  174. package/dist/ssr/content/VirtualFeed.js +29 -2
  175. package/dist/ssr/content/VirtualFeed.js.map +1 -1
  176. package/dist/ssr/content/activity-messages.js +47 -0
  177. package/dist/ssr/content/activity-messages.js.map +1 -0
  178. package/dist/ssr/content/activity-timeline.js +144 -0
  179. package/dist/ssr/content/activity-timeline.js.map +1 -0
  180. package/dist/ssr/content/chart-time-calendar.js +12 -18
  181. package/dist/ssr/content/chart-time-calendar.js.map +1 -1
  182. package/dist/ssr/content/find-text.js +47 -0
  183. package/dist/ssr/content/find-text.js.map +1 -0
  184. package/dist/ssr/content/index.js +1 -0
  185. package/dist/ssr/content/index.js.map +1 -1
  186. package/dist/ssr/content/quote-messages.js +25 -0
  187. package/dist/ssr/content/quote-messages.js.map +1 -0
  188. package/dist/ssr/feedback/dialog-core.js +118 -14
  189. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  190. package/dist/ssr/feedback/dialog-frame-motion.js +274 -0
  191. package/dist/ssr/feedback/dialog-frame-motion.js.map +1 -0
  192. package/dist/ssr/feedback/prompt-sheet-view.js +2 -1
  193. package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -1
  194. package/dist/ssr/feedback/prompts.js +16 -16
  195. package/dist/ssr/feedback/prompts.js.map +1 -1
  196. package/dist/ssr/hover-card.js +6 -0
  197. package/dist/ssr/hover-card.js.map +1 -0
  198. package/dist/ssr/inputs/AutocompleteEditor.js +2 -1
  199. package/dist/ssr/inputs/AutocompleteEditor.js.map +1 -1
  200. package/dist/ssr/inputs/AutocompleteSelect.js +3 -8
  201. package/dist/ssr/inputs/AutocompleteSelect.js.map +1 -1
  202. package/dist/ssr/inputs/ChoiceList.js +25 -25
  203. package/dist/ssr/inputs/ChoiceList.js.map +1 -1
  204. package/dist/ssr/inputs/Combobox.js +4 -9
  205. package/dist/ssr/inputs/Combobox.js.map +1 -1
  206. package/dist/ssr/inputs/MultiSelectInput.js +4 -9
  207. package/dist/ssr/inputs/MultiSelectInput.js.map +1 -1
  208. package/dist/ssr/inputs/PeriodPicker.js +241 -46
  209. package/dist/ssr/inputs/PeriodPicker.js.map +1 -1
  210. package/dist/ssr/inputs/RichSelect.js +135 -121
  211. package/dist/ssr/inputs/RichSelect.js.map +1 -1
  212. package/dist/ssr/inputs/Select.js +3 -8
  213. package/dist/ssr/inputs/Select.js.map +1 -1
  214. package/dist/ssr/inputs/SelectChip.js +1 -0
  215. package/dist/ssr/inputs/SelectChip.js.map +1 -1
  216. package/dist/ssr/inputs/TimeInput.js +145 -0
  217. package/dist/ssr/inputs/TimeInput.js.map +1 -0
  218. package/dist/ssr/inputs/choice.js.map +1 -1
  219. package/dist/ssr/inputs/date-picker.js +2 -1
  220. package/dist/ssr/inputs/date-picker.js.map +1 -1
  221. package/dist/ssr/inputs/file-drop.js +2 -0
  222. package/dist/ssr/inputs/file-drop.js.map +1 -1
  223. package/dist/ssr/inputs/index.js +1 -0
  224. package/dist/ssr/inputs/index.js.map +1 -1
  225. package/dist/ssr/inputs/input-messages.js +20 -2
  226. package/dist/ssr/inputs/input-messages.js.map +1 -1
  227. package/dist/ssr/inputs/period-picker-messages.js +20 -2
  228. package/dist/ssr/inputs/period-picker-messages.js.map +1 -1
  229. package/dist/ssr/inputs/period.js +83 -0
  230. package/dist/ssr/inputs/period.js.map +1 -1
  231. package/dist/ssr/inputs/time-input.js +93 -0
  232. package/dist/ssr/inputs/time-input.js.map +1 -0
  233. package/dist/ssr/internal/exit-motion.js +23 -0
  234. package/dist/ssr/internal/exit-motion.js.map +1 -0
  235. package/dist/ssr/internal/option-description.js +27 -0
  236. package/dist/ssr/internal/option-description.js.map +1 -0
  237. package/dist/ssr/internal/scroll-places.js +15 -0
  238. package/dist/ssr/internal/scroll-places.js.map +1 -0
  239. package/dist/ssr/layout/AppWorkspace.js +191 -121
  240. package/dist/ssr/layout/AppWorkspace.js.map +1 -1
  241. package/dist/ssr/layout/BottomSheet.js +2 -14
  242. package/dist/ssr/layout/BottomSheet.js.map +1 -1
  243. package/dist/ssr/layout/Navigation.js +7 -2
  244. package/dist/ssr/layout/Navigation.js.map +1 -1
  245. package/dist/ssr/layout/SidebarSwitcher.js +8 -13
  246. package/dist/ssr/layout/SidebarSwitcher.js.map +1 -1
  247. package/dist/ssr/layout/app-workspace-controller.js +5 -1
  248. package/dist/ssr/layout/app-workspace-controller.js.map +1 -1
  249. package/dist/ssr/layout/bottom-sheet-load.js +17 -0
  250. package/dist/ssr/layout/bottom-sheet-load.js.map +1 -0
  251. package/dist/ssr/layout/bottom-sheet-options.js +27 -0
  252. package/dist/ssr/layout/bottom-sheet-options.js.map +1 -0
  253. package/dist/ssr/layout/index.js +2 -1
  254. package/dist/ssr/layout/index.js.map +1 -1
  255. package/dist/ssr/layout/sheet-motion.js +10 -11
  256. package/dist/ssr/layout/sheet-motion.js.map +1 -1
  257. package/dist/ssr/layout/sidebar-scroll-memory.js +30 -0
  258. package/dist/ssr/layout/sidebar-scroll-memory.js.map +1 -1
  259. package/dist/ssr/surfaces/AvatarStack.js +56 -40
  260. package/dist/ssr/surfaces/AvatarStack.js.map +1 -1
  261. package/dist/ssr/surfaces/LinkCard.js.map +1 -1
  262. package/dist/ssr/surfaces/Section.js +4 -2
  263. package/dist/ssr/surfaces/Section.js.map +1 -1
  264. package/dist/ssr/surfaces/StatCell.js +24 -12
  265. package/dist/ssr/surfaces/StatCell.js.map +1 -1
  266. package/dist/ssr/surfaces/StatGrid.js +12 -6
  267. package/dist/ssr/surfaces/StatGrid.js.map +1 -1
  268. package/dist/ssr/surfaces/index.js.map +1 -1
  269. package/dist/styles.css +1 -1
  270. package/dist/types/actions/Dropdown.d.ts +10 -0
  271. package/dist/types/actions/SelectionAction.d.ts +34 -0
  272. package/dist/types/actions/command-items.d.ts +5 -0
  273. package/dist/types/actions/index.d.ts +2 -0
  274. package/dist/types/actions/menu-sheet-open.d.ts +13 -0
  275. package/dist/types/charts/core/line-details.d.ts +1 -1
  276. package/dist/types/chat/ChatActivityWords.d.ts +31 -0
  277. package/dist/types/chat/ChatComposer.d.ts +17 -1
  278. package/dist/types/chat/ChatComposerQuotes.d.ts +10 -0
  279. package/dist/types/chat/ChatPrimitives.d.ts +17 -1
  280. package/dist/types/chat/index.d.ts +6 -2
  281. package/dist/types/content/ActivityList.d.ts +166 -0
  282. package/dist/types/content/DataTableTools.d.ts +2 -0
  283. package/dist/types/content/MessageQuote.d.ts +9 -0
  284. package/dist/types/content/MessageRow.d.ts +5 -0
  285. package/dist/types/content/VirtualFeed.d.ts +6 -0
  286. package/dist/types/content/activity-messages.d.ts +22 -0
  287. package/dist/types/content/activity-timeline.d.ts +52 -0
  288. package/dist/types/content/chart-time-calendar.d.ts +6 -0
  289. package/dist/types/content/find-text.d.ts +10 -0
  290. package/dist/types/content/index.d.ts +1 -0
  291. package/dist/types/content/quote-messages.d.ts +6 -0
  292. package/dist/types/feedback/dialog-core.d.ts +2 -0
  293. package/dist/types/feedback/dialog-frame-motion.d.ts +37 -0
  294. package/dist/types/feedback/prompts.d.ts +5 -0
  295. package/dist/types/hover-card.d.ts +5 -0
  296. package/dist/types/inputs/ChoiceList.d.ts +12 -5
  297. package/dist/types/inputs/Combobox.d.ts +5 -0
  298. package/dist/types/inputs/MultiSelectInput.d.ts +1 -0
  299. package/dist/types/inputs/PeriodPicker.d.ts +10 -0
  300. package/dist/types/inputs/RichSelect.d.ts +5 -0
  301. package/dist/types/inputs/Select.d.ts +1 -0
  302. package/dist/types/inputs/SelectChip.d.ts +5 -0
  303. package/dist/types/inputs/TimeInput.d.ts +16 -0
  304. package/dist/types/inputs/choice.d.ts +6 -1
  305. package/dist/types/inputs/index.d.ts +2 -0
  306. package/dist/types/inputs/input-messages.d.ts +9 -0
  307. package/dist/types/inputs/period-picker-messages.d.ts +9 -0
  308. package/dist/types/inputs/period.d.ts +41 -0
  309. package/dist/types/inputs/time-input.d.ts +43 -0
  310. package/dist/types/internal/exit-motion.d.ts +10 -0
  311. package/dist/types/internal/option-description.d.ts +20 -0
  312. package/dist/types/internal/scroll-places.d.ts +2 -0
  313. package/dist/types/layout/AppWorkspace.d.ts +10 -0
  314. package/dist/types/layout/BottomSheet.d.ts +1 -14
  315. package/dist/types/layout/SidebarSwitcher.d.ts +5 -0
  316. package/dist/types/layout/bottom-sheet-load.d.ts +9 -0
  317. package/dist/types/layout/bottom-sheet-options.d.ts +18 -0
  318. package/dist/types/layout/index.d.ts +3 -2
  319. package/dist/types/layout/sheet-motion.d.ts +0 -5
  320. package/dist/types/layout/sidebar-scroll-memory.d.ts +6 -0
  321. package/dist/types/surfaces/LinkCard.d.ts +2 -1
  322. package/dist/types/surfaces/StatCell.d.ts +7 -2
  323. package/dist/types/surfaces/StatGrid.d.ts +15 -3
  324. package/dist/types/surfaces/index.d.ts +1 -1
  325. package/package.json +12 -5
@@ -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. */
@@ -117,6 +117,39 @@ export declare const periodInstants: (range: PeriodRange, timeZone: string) => {
117
117
  from: string | null;
118
118
  to: string | null;
119
119
  };
120
+ /**
121
+ * How a period steps to its neighbour: calendar months, quarters and years keep their unit; every other range
122
+ * keeps its own number of days, even when its edges happen to be month boundaries.
123
+ */
124
+ export type PeriodStep = {
125
+ months: number;
126
+ } | {
127
+ days: number;
128
+ };
129
+ /** What a period is, for its text and the way back to the current one. */
130
+ export type PeriodKind = "day" | "week" | "month" | "quarter" | "year" | "range";
131
+ /** The step of a period; `undefined` for an open edge, which has no neighbour. */
132
+ export declare const periodStep: (range: PeriodRange) => PeriodStep | undefined;
133
+ /** The period `count` steps away: `-1` is the previous one, `1` the next. */
134
+ export declare const stepPeriod: (range: {
135
+ start: string;
136
+ end: string;
137
+ }, step: PeriodStep, count: number) => {
138
+ start: string;
139
+ end: string;
140
+ };
141
+ /** The period of the same kind and rhythm that contains today: this week for a week, this month for a month. */
142
+ export declare const currentPeriodOf: (range: {
143
+ start: string;
144
+ end: string;
145
+ }, step: PeriodStep, today: string) => {
146
+ start: string;
147
+ end: string;
148
+ };
149
+ export declare const periodKind: (range: {
150
+ start: string;
151
+ end: string;
152
+ }, weekStartsOn: 0 | 1) => PeriodKind;
120
153
  /**
121
154
  * Short days of a preset, for the list and the trigger: "Sat, Nov 7", "Nov 1 – 30", "2025", "since 3/14/2019".
122
155
  * The year is added only when the period is not in today's year.
@@ -127,6 +160,14 @@ export declare const formatPeriodRange: (range: {
127
160
  start: string;
128
161
  end: string;
129
162
  }, locale: string) => string;
163
+ /**
164
+ * Explicit days that are one calendar week, month or year read as that: "9.–15. Nov. 2026", "Oktober 2026", "2025".
165
+ * `undefined` for any other range, which keeps its numeric days and count.
166
+ */
167
+ export declare const formatPeriodUnit: (range: {
168
+ start: string;
169
+ end: string;
170
+ }, weekStartsOn: 0 | 1, locale: string) => string | undefined;
130
171
  /** The widest explicit range within today's year, all of it (two-digit days, a three-digit count), so a trigger can reserve its width. */
131
172
  export declare const widePeriodRangeSample: (today: string) => {
132
173
  start: string;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Rules of the typed time field: what a text means as a 24-hour clock time `HH:mm`, the minute grid of `step`, and
3
+ * the bounds `min` and `max`. `24:00` is a time only where `max` allows it, as the end of a day.
4
+ */
5
+ export type TimeTextResult = {
6
+ kind: "empty";
7
+ } | {
8
+ kind: "time";
9
+ value: string;
10
+ } | {
11
+ kind: "error";
12
+ };
13
+ export type TimeLimitError = {
14
+ code: "earliest";
15
+ time: string;
16
+ } | {
17
+ code: "latest";
18
+ time: string;
19
+ };
20
+ /** `HH:mm` from minutes after midnight; 1440 is `24:00`. */
21
+ export declare const timeFromMinutes: (minutes: number) => string;
22
+ /** Minutes after midnight of an `HH:mm` value, or `null` for anything else. `24:00` is 1440. */
23
+ export declare const timeToMinutes: (value: string | null | undefined) => number | null;
24
+ /**
25
+ * Keeps what can still become a time while someone types: up to four digits and one separator after the hour.
26
+ * `.`, `h` and a space count as the separator and become `:`.
27
+ */
28
+ export declare const filterTimeText: (value: string) => string;
29
+ /**
30
+ * What a typed text means: `9` and `09` are 09:00, `930` and `0930` are 09:30, `9:5` is 09:05. Hours above 24 and
31
+ * minutes above 59 are no time; `24:00` is, and the bounds decide whether it is allowed.
32
+ */
33
+ export declare const parseTimeText: (text: string) => TimeTextResult;
34
+ /**
35
+ * The nearest time on the grid of `step` minutes, counted from `min` (or midnight). A time of the day that would round
36
+ * up to midnight takes the last grid line before it instead, so snapping never leaves the day.
37
+ */
38
+ export declare const snapTime: (value: string, step: number | undefined, min?: string) => string;
39
+ /** Why a time lies outside `min`/`max`; without `max`, 23:59 is the last time of the day. */
40
+ export declare const timeLimitError: (value: string, limits: {
41
+ min?: string;
42
+ max?: string;
43
+ }) => TimeLimitError | undefined;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Waits for the exit transitions that the stylesheet starts on an element that just closed, such as a dialog whose
3
+ * `[open]` went away, and then calls `done` once. Without a running transition (reduced motion, a sheet that moves
4
+ * itself, a document without the stylesheet) `done` runs at once. Only the element's own transitions count: a spinner
5
+ * inside it may loop forever.
6
+ *
7
+ * Returns a function that ends the wait at once and calls `done` now, for a new dialog that opens meanwhile or a page
8
+ * swap that disposes everything.
9
+ */
10
+ export declare const afterExitTransitions: (element: Element, done: () => void) => (() => void);
@@ -0,0 +1,20 @@
1
+ import { type JSX } from "solid-js";
2
+ type OptionLine = {
3
+ description?: string;
4
+ descriptionVisual?: () => JSX.Element;
5
+ };
6
+ /**
7
+ * The second line of an option row, as a `<small>`, or nothing without a
8
+ * description. With a `descriptionVisual`, such as a colored `Tag`, the visual
9
+ * shows in place of the description. The text stays in the row, hidden from
10
+ * view, so search, the accessible name, and the description a screen reader
11
+ * reads do not change. The visual keeps the line's height.
12
+ *
13
+ * Every option list calls this one function, so each call stays small in the
14
+ * islands that ship several lists. Only whether the line exists decides when
15
+ * its element is made: a host that rebuilds equal options, such as a menu
16
+ * whose entries come and go while someone types, keeps the element, and only
17
+ * its content follows.
18
+ */
19
+ export declare const optionDescription: (option: OptionLine | (() => OptionLine), className?: string, id?: string) => JSX.Element;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const keepScroll: (level: HTMLElement, frame: HTMLElement) => WeakMap<HTMLElement, (readonly [HTMLElement, number, number])[]>;
2
+ export declare const restoreScroll: (level: HTMLElement) => void;
@@ -392,6 +392,15 @@ export type AppWorkspaceSidebarItemActionsProps = {
392
392
  children: JSX.Element;
393
393
  visibility?: AppWorkspaceSidebarAccessoryVisibility;
394
394
  };
395
+ /**
396
+ * One action in a section header's `actions`. With a mouse or trackpad, header actions show on hover or focus
397
+ * (`"hover"`, the default, as for unwrapped actions); `"always"` keeps an entry point people must find, such as
398
+ * discovering more, shown at all times. Its box is reserved either way, so revealing moves nothing.
399
+ */
400
+ export type AppWorkspaceSidebarSectionActionProps = {
401
+ children: JSX.Element;
402
+ visibility?: AppWorkspaceSidebarAccessoryVisibility;
403
+ };
395
404
  export type AppWorkspaceNavTreeProps = {
396
405
  children: JSX.Element;
397
406
  ariaLabel: string;
@@ -486,6 +495,7 @@ type AppWorkspaceComponent = ((props: AppWorkspaceProps) => JSX.Element) & {
486
495
  SidebarItemMeta: (props: AppWorkspaceSidebarItemMetaProps) => JSX.Element;
487
496
  SidebarItemAction: (props: AppWorkspaceSidebarItemActionProps) => JSX.Element;
488
497
  SidebarItemActions: (props: AppWorkspaceSidebarItemActionsProps) => JSX.Element;
498
+ SidebarSectionAction: (props: AppWorkspaceSidebarSectionActionProps) => JSX.Element;
489
499
  SidebarItemStatus: (props: AppWorkspaceSidebarItemStatusProps) => JSX.Element;
490
500
  NavTree: AppWorkspaceNavTreeComponent;
491
501
  SidebarIconGrid: (props: AppWorkspaceSidebarIconGridProps) => JSX.Element;
@@ -1,19 +1,6 @@
1
1
  import { type JSX } from "solid-js";
2
2
  import type { DialogTone } from "../feedback/dialog-tone";
3
- import { sheetInitialFocus } from "./sheet-motion";
4
- export declare const bottomSheetOptions: {
5
- panelClassName: string;
6
- contentClassName: string;
7
- initialFocus: typeof sheetInitialFocus;
8
- };
9
- /** A sheet on phones and a centered dialog from 48rem up, for decisions and forms; menus keep
10
- * `bottomSheetOptions`. The stylesheet picks the mode with the phone media query, so the first
11
- * frame is already right and a rotation or resize switches it in place, without a remount. */
12
- export declare const bottomSheetAdaptiveOptions: {
13
- contentClassName: string;
14
- initialFocus: typeof sheetInitialFocus;
15
- panelClassName: string;
16
- };
3
+ export { bottomSheetAdaptiveOptions, bottomSheetOptions } from "./bottom-sheet-options";
17
4
  export type BottomSheetProps = {
18
5
  children: JSX.Element;
19
6
  /** Pass dialogCore's render context requestDismiss, never the completion callback. */
@@ -5,6 +5,11 @@ export type AppWorkspaceSwitcherOption = {
5
5
  label: string;
6
6
  /** One secondary fact, such as a mailbox's address. */
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
  /** Tabler icon class; without it the row takes the switcher's icon. */
9
14
  icon?: string;
10
15
  /** Tints the icon; without it the app accent does. */
@@ -0,0 +1,9 @@
1
+ type Sheet = typeof import("./BottomSheet");
2
+ /** Loads `BottomSheet` in the background for a sheet that is likely to open soon; a failure waits for that open. */
3
+ export declare const preloadBottomSheet: () => void;
4
+ /**
5
+ * Opens a `BottomSheet` that a component shows only on some screens: at once when its code is loaded, otherwise as
6
+ * soon as it is. A wide screen loads it with its first such sheet.
7
+ */
8
+ export declare const withBottomSheet: <T>(open: (module: Sheet) => Promise<T>) => Promise<T>;
9
+ export {};
@@ -0,0 +1,18 @@
1
+ /** Initial focus goes to the first input of the top sheet, otherwise to the
2
+ * dialog element itself. Native `showModal()` focuses the first focusable
3
+ * descendant, which is the drag handle; iOS shows a ring for that programmatic
4
+ * focus, so the sheet moves it to the ring-less dialog before the next paint. */
5
+ export declare const sheetInitialFocus: (dialog: HTMLDialogElement) => HTMLElement;
6
+ export declare const bottomSheetOptions: {
7
+ panelClassName: string;
8
+ contentClassName: string;
9
+ initialFocus: typeof sheetInitialFocus;
10
+ };
11
+ /** A sheet on phones and a centered dialog from 48rem up, for decisions and forms; menus keep
12
+ * `bottomSheetOptions`. The stylesheet picks the mode with the phone media query, so the first
13
+ * frame is already right and a rotation or resize switches it in place, without a remount. */
14
+ export declare const bottomSheetAdaptiveOptions: {
15
+ contentClassName: string;
16
+ initialFocus: typeof sheetInitialFocus;
17
+ panelClassName: string;
18
+ };
@@ -1,7 +1,7 @@
1
1
  export { AnchoredPopover, type AnchoredPopoverProps } from "./AnchoredPopover";
2
2
  export type { AppOverviewCardsProps, AppOverviewEmptyStateProps, AppOverviewPanelProps, AppOverviewProps, } from "./AppOverview";
3
3
  export { default as AppOverview } from "./AppOverview";
4
- export type { AppWorkspaceBottomDrawerHeight, AppWorkspaceBottomDrawerProps, AppWorkspaceContentProps, AppWorkspaceDetailProps, AppWorkspaceDetailWidth, AppWorkspaceHeadProps, AppWorkspaceLevelSwitcher, AppWorkspaceMainPaneProps, AppWorkspaceMainProps, AppWorkspaceNavTreeItemProps, AppWorkspaceNavTreeMove, AppWorkspaceNavTreeProps, AppWorkspaceProps, AppWorkspaceSidebarAccessoryVisibility, AppWorkspaceSidebarBodyProps, AppWorkspaceSidebarIconActionProps, AppWorkspaceSidebarIconActionTone, AppWorkspaceSidebarIconGridProps, AppWorkspaceSidebarItemActionProps, AppWorkspaceSidebarItemActionsProps, AppWorkspaceSidebarItemIconProps, AppWorkspaceSidebarItemLabelProps, AppWorkspaceSidebarItemMetaProps, AppWorkspaceSidebarItemProps, AppWorkspaceSidebarItemStatusProps, AppWorkspaceSidebarItemTone, AppWorkspaceSidebarProps, AppWorkspaceSidebarSectionProps, AppWorkspaceSidebarToggleProps, AppWorkspaceSidebarVisibility, AppWorkspaceWidthShare, } from "./AppWorkspace";
4
+ export type { AppWorkspaceBottomDrawerHeight, AppWorkspaceBottomDrawerProps, AppWorkspaceContentProps, AppWorkspaceDetailProps, AppWorkspaceDetailWidth, AppWorkspaceHeadProps, AppWorkspaceLevelSwitcher, AppWorkspaceMainPaneProps, AppWorkspaceMainProps, AppWorkspaceNavTreeItemProps, AppWorkspaceNavTreeMove, AppWorkspaceNavTreeProps, AppWorkspaceProps, AppWorkspaceSidebarAccessoryVisibility, AppWorkspaceSidebarBodyProps, AppWorkspaceSidebarIconActionProps, AppWorkspaceSidebarIconActionTone, AppWorkspaceSidebarIconGridProps, AppWorkspaceSidebarItemActionProps, AppWorkspaceSidebarItemActionsProps, AppWorkspaceSidebarItemIconProps, AppWorkspaceSidebarItemLabelProps, AppWorkspaceSidebarItemMetaProps, AppWorkspaceSidebarItemProps, AppWorkspaceSidebarItemStatusProps, AppWorkspaceSidebarItemTone, AppWorkspaceSidebarProps, AppWorkspaceSidebarSectionActionProps, AppWorkspaceSidebarSectionProps, AppWorkspaceSidebarToggleProps, AppWorkspaceSidebarVisibility, AppWorkspaceWidthShare, } from "./AppWorkspace";
5
5
  export { appWorkspaceDetailElementId, default as AppWorkspace } from "./AppWorkspace";
6
6
  export { AppWorkspaceSidebarItemStatus } from "./AppWorkspaceSidebarItemStatus";
7
7
  export { watchAppHostWidth } from "./app-host-width";
@@ -9,8 +9,9 @@ export type { AppWorkspaceControllerOptions } from "./app-workspace-controller";
9
9
  export { installAppWorkspaceController, parkWorkspaceDetailDrawers } from "./app-workspace-controller";
10
10
  export type { AppWorkspaceLayoutState, AppWorkspaceResizeKind, } from "./app-workspace-state";
11
11
  export { APP_WORKSPACE_DETAIL_DEFAULT, APP_WORKSPACE_DETAIL_MAX, APP_WORKSPACE_DETAIL_MIN, APP_WORKSPACE_DRAWER_DEFAULT, APP_WORKSPACE_DRAWER_MAX, APP_WORKSPACE_DRAWER_MIN, APP_WORKSPACE_MAIN_MIN, APP_WORKSPACE_MAIN_MIN_HEIGHT, APP_WORKSPACE_PANE_DEFAULT, APP_WORKSPACE_PANE_MAX, APP_WORKSPACE_PANE_MIN, APP_WORKSPACE_SIDEBAR_COLLAPSE_THRESHOLD, APP_WORKSPACE_SIDEBAR_COLLAPSED, APP_WORKSPACE_SIDEBAR_DEFAULT, APP_WORKSPACE_SIDEBAR_MAX, APP_WORKSPACE_SIDEBAR_MIN, appWorkspaceLayoutStyle, appWorkspacePanelVariable, appWorkspaceResizeLimits, normalizeAppWorkspaceLayoutState, parseAppWorkspaceLayoutState, resolveAppWorkspaceSidebarWidth, safeAppWorkspacePanelId, serializeAppWorkspaceLayoutState, shouldCollapseAppWorkspaceSidebar, } from "./app-workspace-state";
12
- export { type BottomSheetProps, bottomSheetAdaptiveOptions, bottomSheetOptions, default as BottomSheet } from "./BottomSheet";
12
+ export { type BottomSheetProps, default as BottomSheet } from "./BottomSheet";
13
13
  export { type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps } from "./Breadcrumbs";
14
+ export { bottomSheetAdaptiveOptions, bottomSheetOptions } from "./bottom-sheet-options";
14
15
  export type { DataPanelProps } from "./DataPanel";
15
16
  export { DataPanel } from "./DataPanel";
16
17
  export type { DetailPanelActionButtonProps, DetailPanelActionCheckbox, DetailPanelActionLinkProps, DetailPanelActionProps, DetailPanelActionSecondary, DetailPanelBodyProps, DetailPanelGroupProps, DetailPanelHeaderProps, DetailPanelProps, DetailPanelRowProps, DetailPanelSummaryProps, } from "./DetailPanel";
@@ -22,11 +22,6 @@ export type SheetMotion = {
22
22
  step: (direction: "up" | "down") => void;
23
23
  dispose: () => void;
24
24
  };
25
- /** Initial focus goes to the first input of the top sheet, otherwise to the
26
- * dialog element itself. Native `showModal()` focuses the first focusable
27
- * descendant, which is the drag handle; iOS shows a ring for that programmatic
28
- * focus, so the sheet moves it to the ring-less dialog before the next paint. */
29
- export declare const sheetInitialFocus: (dialog: HTMLDialogElement) => HTMLElement;
30
25
  /**
31
26
  * Moves a bottom sheet with transform and opacity only. Its layout height is fixed when it opens (the content's height,
32
27
  * or the full height with detents) and never animates; the sheet slides by `--k2b-sheet-y`, the footer stays on the
@@ -4,3 +4,9 @@
4
4
  * Memory uses the body's scroll-preserve key, or the page path, and position.
5
5
  */
6
6
  export declare function rememberSidebarScroll(body: HTMLElement | null, fadeEdges: (body: HTMLElement) => string | undefined): () => void;
7
+ /**
8
+ * For sidebars that no inline script reached, such as those a page swap inserted: keeps each one's current item
9
+ * in view by moving only the sidebar, so a restored page scroll stays, and stores every connected sidebar's offset
10
+ * when the page is left. Returns the cleanup.
11
+ */
12
+ export declare function followSidebarScroll(root: ParentNode, fadeEdges: (body: HTMLElement) => string | undefined): () => void;
@@ -24,7 +24,8 @@ export type LinkCardProps = {
24
24
  * The card as a small overview of one thing, as on "My apps & automations": `aside` stands top right beside the
25
25
  * title, such as a strip of the last runs; `body` is a line under the head, such as what it did last; `footer` is
26
26
  * the last line, `start` (a state with its sign) and `end` (a quiet time). Any of them stacks the card: head, body,
27
- * and footer one below the other, the footer on the card's bottom edge, a 10 px radius, and no chevron. The whole
27
+ * and footer one below the other, the footer on the card's bottom edge, a 10 px radius, and no chevron. Its title and
28
+ * description wrap instead of ending in "…". The whole
28
29
  * card stays one link, so these places hold text and marks, never links or buttons.
29
30
  */
30
31
  aside?: JSX.Element;
@@ -35,9 +35,13 @@ export type StatCellProps = {
35
35
  valueClass?: string;
36
36
  /** An icon in a chip before the label, in `tone`. `"in"` and `"out"` are the money colours of `FlowAmount`. */
37
37
  icon?: string;
38
- /** The chip colour of `icon`. Defaults to zinc. */
38
+ /**
39
+ * The chip colour of `icon`. Defaults to zinc. In a `plain` grid, `amber` (a warning) and `red` (a problem) also
40
+ * colour the figure and its third line; say what is wrong there with `accent` (icon and word).
41
+ */
39
42
  tone?: StatCellTone | "in" | "out";
40
43
  accent?: StatCellAccent;
44
+ /** The change against `compare`; beside the figure, and always on the third line in a `plain` grid. */
41
45
  delta?: StatCellDelta;
42
46
  /** Keep the figure and change on separate rows, including while loading. Defaults to beside the figure. */
43
47
  deltaPlacement?: "below";
@@ -65,7 +69,8 @@ export type StatCellProps = {
65
69
  };
66
70
  /**
67
71
  * One key figure as a framed tile: icon and label, the figure with its change, and a support line with the comparison
68
- * and the trend. Each state (loading, error, stale, empty) keeps the tile's place and size.
72
+ * and the trend. In a `plain` grid the same three rows stand without a frame. Each state (loading, error, stale, empty)
73
+ * keeps the tile's place and size.
69
74
  */
70
75
  export declare function StatCell(props: StatCellProps): JSX.Element;
71
76
  export default StatCell;
@@ -1,4 +1,4 @@
1
- import { type JSX } from "solid-js";
1
+ import { type Accessor, type JSX } from "solid-js";
2
2
  export type StatGridSize = "lg" | "md" | "sm";
3
3
  export type StatGridSurface = "white" | "muted";
4
4
  export type StatGridColumns = 1 | 2 | 3 | 4 | 5 | 6;
@@ -6,6 +6,8 @@ export type StatGridAction = {
6
6
  label: string;
7
7
  href: string;
8
8
  };
9
+ /** `tiles` frames each figure; `plain` sets the figures in equal columns with a thin line between, for a page head. */
10
+ export type StatGridVariant = "tiles" | "plain";
9
11
  export type StatGridProps = {
10
12
  children: JSX.Element;
11
13
  title?: string;
@@ -13,11 +15,21 @@ export type StatGridProps = {
13
15
  /** Tiles per row on a wide container. Defaults to 4; at 600 px or less two share a row, and five or six take three up to 900 px. */
14
16
  columns?: StatGridColumns;
15
17
  size?: StatGridSize;
18
+ /** Applies to `tiles` only: a `plain` row has no surface. */
16
19
  surface?: StatGridSurface;
20
+ /**
21
+ * `tiles` (default) frames each figure. `plain` drops frame, surface and shadow: equal columns with a 1 px line
22
+ * between them, two columns below a 34rem container. Every figure keeps three rows (label, figure, a reserved third
23
+ * line for `sub`, the change or the comparison), so all figures stand on one line.
24
+ */
25
+ variant?: StatGridVariant;
17
26
  class?: string;
18
27
  };
19
28
  export declare const useStatGridSize: () => StatGridSize;
20
- export declare const useStatGridSurface: () => StatGridSurface;
21
- /** A row of key figures, each a framed tile of its own; the optional title and action sit above the row. */
29
+ export declare const useStatGridSurface: () => Accessor<StatGridSurface | "plain">;
30
+ /**
31
+ * A row of key figures, each a framed tile of its own or, with `variant="plain"`, flat figures in equal columns; the
32
+ * optional title and action sit above the row.
33
+ */
22
34
  export declare function StatGrid(props: StatGridProps): JSX.Element;
23
35
  export default StatGrid;
@@ -35,7 +35,7 @@ export { Section } from "./Section";
35
35
  export { createDelayedLoading, type DelayedLoadingOptions, Skeleton, type SkeletonProps } from "./Skeleton";
36
36
  export type { StatCellAccent, StatCellCompare, StatCellDelta, StatCellProps, StatCellSize, StatCellTone } from "./StatCell";
37
37
  export { StatCell } from "./StatCell";
38
- export type { StatGridAction, StatGridColumns, StatGridProps, StatGridSize, StatGridSurface, } from "./StatGrid";
38
+ export type { StatGridAction, StatGridColumns, StatGridProps, StatGridSize, StatGridSurface, StatGridVariant, } from "./StatGrid";
39
39
  export { StatGrid } from "./StatGrid";
40
40
  export type { StatusBadgeProps, StatusTone } from "./StatusBadge";
41
41
  export { StatusBadge } from "./StatusBadge";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k2b/ui",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Production-ready components for SolidJS applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,6 +36,12 @@
36
36
  "browser": "./dist/browser/charts.js",
37
37
  "default": "./dist/ssr/charts.js"
38
38
  },
39
+ "./hover-card": {
40
+ "types": "./dist/types/hover-card.d.ts",
41
+ "browser": "./dist/browser/hover-card.js",
42
+ "import": "./dist/ssr/hover-card.js",
43
+ "default": "./dist/ssr/hover-card.js"
44
+ },
39
45
  "./country-map": {
40
46
  "types": "./dist/types/country-map.d.ts",
41
47
  "browser": "./dist/browser/country-map.js",
@@ -80,7 +86,8 @@
80
86
  "fixture:typecheck": "tsc -p fixture/tsconfig.json --noEmit --pretty false",
81
87
  "test": "bun run build && bun test --path-ignore-patterns '**/*.behavior.test.*' src scripts test/browser.browser.test.ts && bun run scripts/check-packed-consumer.ts",
82
88
  "test:part:layout-content": "bun run build && bun test --path-ignore-patterns '**/*.behavior.test.*' src/layout src/content",
83
- "test:part:rest": "bun run build && bun test --path-ignore-patterns '**/*.behavior.test.*' --path-ignore-patterns 'src/layout/**' --path-ignore-patterns 'src/content/**' src scripts test/browser.browser.test.ts && bun run scripts/check-packed-consumer.ts",
89
+ "test:part:rest": "bun run build && bun test --path-ignore-patterns '**/*.behavior.test.*' --path-ignore-patterns 'src/layout/**' --path-ignore-patterns 'src/content/**' --path-ignore-patterns 'src/styles/**' --path-ignore-patterns 'src/inputs/**' --path-ignore-patterns 'src/chat/**' src scripts test/browser.browser.test.ts && bun run scripts/check-packed-consumer.ts",
90
+ "test:part:styles-inputs-chat": "bun run build && bun test --path-ignore-patterns '**/*.behavior.test.*' src/styles src/inputs src/chat",
84
91
  "typecheck": "tsc --checkers 2 -p tsconfig.json --noEmit --pretty false && bun run check:declarations && bun run typecheck:dom",
85
92
  "typecheck:dom": "tsc -p test/tsconfig.json --noEmit --pretty false",
86
93
  "prepack": "bun run build"
@@ -92,7 +99,7 @@
92
99
  "@codemirror/view": "6.43.15",
93
100
  "@fontsource/ibm-plex-mono": "5.3.0",
94
101
  "@fontsource/ibm-plex-sans": "5.3.0",
95
- "@k2b/stdlib": "0.32.0",
102
+ "@k2b/stdlib": "0.34.0",
96
103
  "@lezer/highlight": "1.2.5",
97
104
  "@lezer/markdown": "1.8.1",
98
105
  "@tabler/icons-webfont": "3.48.0",
@@ -104,13 +111,13 @@
104
111
  "qr-scanner": "1.4.2"
105
112
  },
106
113
  "peerDependencies": {
107
- "@k2b/ssr": "^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0",
114
+ "@k2b/ssr": "^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0",
108
115
  "solid-js": "^1.9.10"
109
116
  },
110
117
  "devDependencies": {
111
118
  "@babel/core": "8.1.0",
112
119
  "@babel/preset-typescript": "8.0.7",
113
- "@k2b/ssr": "0.21.3",
120
+ "@k2b/ssr": "0.22.0",
114
121
  "@types/babel__core": "7.20.5",
115
122
  "@types/bun": "1.4.2",
116
123
  "axe-core": "4.14.0",