@vokril/ui-solid 0.31.0 → 0.33.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 (382) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +132 -4
  3. package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
  4. package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
  5. package/dist/{Button-4meERfnv.js → Button-CX7mylBT.js} +125 -117
  6. package/dist/Button-lMUW5P3O.cjs +1 -0
  7. package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
  8. package/dist/CommandPalette-DlLcdd4o.js +4029 -0
  9. package/dist/CopyButton-BVvv5M8g.js +63 -0
  10. package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
  11. package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
  12. package/dist/DateRangePicker-CHmUU4PA.js +552 -0
  13. package/dist/GuidedTour-9rqvNB_m.js +483 -0
  14. package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
  15. package/dist/{HostPortal-Ba3MD9CG.js → HostPortal-De65s6CU.js} +1 -1
  16. package/dist/{HostPortal-CpWsArs6.cjs → HostPortal-Dm4BmY8M.cjs} +1 -1
  17. package/dist/{IconPicker-D1G8HK92.js → IconPicker-CsYW8CXe.js} +4 -4
  18. package/dist/IconPicker-D-GU1mD3.cjs +1 -0
  19. package/dist/Input-C3rEQffK.js +382 -0
  20. package/dist/Input-CHtvL4_4.cjs +1 -0
  21. package/dist/Modal-3L6p7Dwt.js +599 -0
  22. package/dist/Modal-CtrWEnJ7.cjs +1 -0
  23. package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
  24. package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
  25. package/dist/{PageSkeleton-zNyjLPlk.js → PageSkeleton-BRuqaDzr.js} +372 -371
  26. package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
  27. package/dist/Popover-CLTXG8W0.cjs +1 -0
  28. package/dist/Popover-DkqGvMNy.js +207 -0
  29. package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
  30. package/dist/SearchableSelect-Du12kcI9.js +328 -0
  31. package/dist/{StatusBarNotificationBell-ZTEhZFmJ.js → StatusBarNotificationBell-DKDoWK71.js} +4879 -4789
  32. package/dist/StatusBarNotificationBell-wO16mjon.cjs +50 -0
  33. package/dist/Stepper-DzI-gtKd.js +586 -0
  34. package/dist/Stepper-rpu7lpzB.cjs +1 -0
  35. package/dist/{Textarea-DASNQNoi.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
  36. package/dist/{Textarea-szHXQahi.js → Textarea-DOzZCc-O.js} +1 -1
  37. package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
  38. package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
  39. package/dist/ToggleButton-B-hBpdzk.js +2144 -0
  40. package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
  41. package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
  42. package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
  43. package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
  44. package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
  45. package/dist/_internal/contract/browser/workspace.d.cts +15 -0
  46. package/dist/_internal/contract/browser/workspace.d.ts +15 -0
  47. package/dist/_internal/contract/menuDensity.d.cts +8 -0
  48. package/dist/_internal/contract/menuDensity.d.ts +8 -0
  49. package/dist/_internal/contract/notification.d.cts +19 -3
  50. package/dist/_internal/contract/notification.d.ts +19 -3
  51. package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
  52. package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
  53. package/dist/a11y/index.cjs +1 -1
  54. package/dist/a11y/index.js +1 -1
  55. package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
  56. package/dist/{server/appThemeDerivation-DBAOkGl7.js → appThemeDerivation-CKoSe4KP.js} +231 -260
  57. package/dist/base.css +1 -1
  58. package/dist/charts/index.cjs +1 -1
  59. package/dist/charts/index.js +1 -1
  60. package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
  61. package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
  62. package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
  63. package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
  64. package/dist/desktop/index.cjs +1 -1
  65. package/dist/desktop/index.js +228 -227
  66. package/dist/feedback/index.cjs +1 -1
  67. package/dist/feedback/index.js +4 -4
  68. package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
  69. package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
  70. package/dist/forms/index.cjs +1 -1
  71. package/dist/forms/index.js +9 -9
  72. package/dist/grid/index.cjs +1 -1
  73. package/dist/grid/index.js +1 -1
  74. package/dist/host/index.cjs +1 -1
  75. package/dist/host/index.d.cts +1 -0
  76. package/dist/host/index.d.ts +1 -0
  77. package/dist/host/index.js +38 -39
  78. package/dist/host/kitHost.d.cts +8 -0
  79. package/dist/host/kitHost.d.ts +8 -0
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.js +940 -938
  82. package/dist/kitHost-BMMWpU4w.js +47 -0
  83. package/dist/kitHost-u0-mKvEK.cjs +1 -0
  84. package/dist/layout/index.cjs +1 -1
  85. package/dist/layout/index.js +2 -2
  86. package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
  87. package/dist/mainRealmDom-DydRT2Us.js +54 -0
  88. package/dist/{server/useSettingsSubscription-DLEk4k4j.js → menuDensity-6x_EqCGb.js} +7 -5
  89. package/dist/{server/useSettingsSubscription-DKjCwmRd.cjs → menuDensity-Cf74__OQ.cjs} +1 -1
  90. package/dist/navigation/index.cjs +1 -1
  91. package/dist/navigation/index.js +1 -1
  92. package/dist/notificationCatalog-CRERhjp6.js +168 -0
  93. package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
  94. package/dist/notifications/holdWhileShown.d.cts +18 -0
  95. package/dist/notifications/holdWhileShown.d.ts +18 -0
  96. package/dist/notifications/index.cjs +1 -1
  97. package/dist/notifications/index.js +3 -3
  98. package/dist/notifications/nativeEngine.d.cts +34 -2
  99. package/dist/notifications/nativeEngine.d.ts +34 -2
  100. package/dist/notifications/notificationEntryList.d.cts +18 -5
  101. package/dist/notifications/notificationEntryList.d.ts +18 -5
  102. package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
  103. package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
  104. package/dist/overlay/Modal.d.cts +17 -3
  105. package/dist/overlay/Modal.d.ts +17 -3
  106. package/dist/overlay/index.cjs +1 -1
  107. package/dist/overlay/index.d.cts +2 -1
  108. package/dist/overlay/index.d.ts +2 -1
  109. package/dist/overlay/index.js +46 -43
  110. package/dist/overlay/modalDefaults.d.cts +23 -0
  111. package/dist/overlay/modalDefaults.d.ts +23 -0
  112. package/dist/overlay/modalViewport.d.cts +17 -2
  113. package/dist/overlay/modalViewport.d.ts +17 -2
  114. package/dist/pageTourState-BuA-GBYO.cjs +5 -0
  115. package/dist/{server/pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
  116. package/dist/rowSource-D8gyHbEE.cjs +1 -0
  117. package/dist/rowSource-_4IuosKj.js +1236 -0
  118. package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
  119. package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
  120. package/dist/server/Button-DHefmmYz.cjs +1 -0
  121. package/dist/server/Button-ft_8RNJj.js +226 -0
  122. package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
  123. package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
  124. package/dist/server/CopyButton-CiYcsQcI.js +64 -0
  125. package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
  126. package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
  127. package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
  128. package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
  129. package/dist/server/GuidedTour-DYBhprVK.js +400 -0
  130. package/dist/server/{HostPortal-C4IrAeWN.js → HostPortal-C4xdfRyM.js} +1 -1
  131. package/dist/server/{HostPortal-D5ECrJvn.cjs → HostPortal-CwyePpDX.cjs} +1 -1
  132. package/dist/server/{IconPicker-DDWgB7sm.js → IconPicker--Xso9fUf.js} +5 -5
  133. package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
  134. package/dist/server/Input-UX0Hk53M.cjs +1 -0
  135. package/dist/server/Input-V9Szcw6w.js +249 -0
  136. package/dist/server/Modal-CBnNlaTx.cjs +1 -0
  137. package/dist/server/Modal-D9CjieKK.js +426 -0
  138. package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
  139. package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
  140. package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
  141. package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
  142. package/dist/server/Popover-BBDBIpT6.cjs +1 -0
  143. package/dist/server/Popover-e9JpRh11.js +439 -0
  144. package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
  145. package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
  146. package/dist/server/StatusBarNotificationBell-DEp4eEUv.cjs +49 -0
  147. package/dist/server/{StatusBarNotificationBell-DW2l5O9B.js → StatusBarNotificationBell-kOm2ZNkl.js} +4567 -4477
  148. package/dist/server/Stepper-C04rOZcI.cjs +1 -0
  149. package/dist/server/Stepper-CVAOsf3o.js +381 -0
  150. package/dist/server/{Textarea-Bh5LVrBn.cjs → Textarea-BG6F8taO.cjs} +1 -1
  151. package/dist/server/{Textarea-DVkfGkP0.js → Textarea-DM4zpgWo.js} +1 -1
  152. package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
  153. package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
  154. package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
  155. package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
  156. package/dist/server/a11y/index.cjs +1 -1
  157. package/dist/server/a11y/index.js +1 -1
  158. package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
  159. package/dist/{appThemeDerivation-DBAOkGl7.js → server/appThemeDerivation-CKoSe4KP.js} +231 -260
  160. package/dist/server/charts/index.cjs +1 -1
  161. package/dist/server/charts/index.js +1 -1
  162. package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
  163. package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
  164. package/dist/server/{createResizableSidebar-Dvu7iEk1.js → createResizableSidebar-CIrhLNKW.js} +104 -102
  165. package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
  166. package/dist/server/desktop/index.cjs +1 -1
  167. package/dist/server/desktop/index.js +153 -152
  168. package/dist/server/feedback/index.cjs +1 -1
  169. package/dist/server/feedback/index.js +4 -4
  170. package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
  171. package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
  172. package/dist/server/forms/index.cjs +1 -1
  173. package/dist/server/forms/index.js +9 -9
  174. package/dist/server/grid/index.cjs +1 -1
  175. package/dist/server/grid/index.js +1 -1
  176. package/dist/server/host/index.cjs +1 -1
  177. package/dist/server/host/index.js +38 -39
  178. package/dist/server/{index-BEARfm54.js → index-CPUZyKo7.js} +2 -2
  179. package/dist/server/{index-C6rYfWCJ.cjs → index-CVbkasNJ.cjs} +1 -1
  180. package/dist/server/index.cjs +1 -1
  181. package/dist/server/index.js +673 -671
  182. package/dist/server/kitHost-BMMWpU4w.js +47 -0
  183. package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
  184. package/dist/server/layout/index.cjs +1 -1
  185. package/dist/server/layout/index.js +2 -2
  186. package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
  187. package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
  188. package/dist/{useSettingsSubscription-DLEk4k4j.js → server/menuDensity-6x_EqCGb.js} +7 -5
  189. package/dist/{useSettingsSubscription-DKjCwmRd.cjs → server/menuDensity-Cf74__OQ.cjs} +1 -1
  190. package/dist/server/navigation/index.cjs +1 -1
  191. package/dist/server/navigation/index.js +1 -1
  192. package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
  193. package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
  194. package/dist/server/notifications/index.cjs +1 -1
  195. package/dist/server/notifications/index.js +3 -3
  196. package/dist/server/overlay/index.cjs +1 -1
  197. package/dist/server/overlay/index.js +32 -29
  198. package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
  199. package/dist/{pageTourState-BcBF8w89.js → server/pageTourState-DsSKdPOu.js} +160 -169
  200. package/dist/server/rowSource-BSa7rgYJ.js +1128 -0
  201. package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
  202. package/dist/server/settings/index.cjs +1 -1
  203. package/dist/server/settings/index.js +26 -25
  204. package/dist/server/tokens/index.cjs +1 -1
  205. package/dist/server/tokens/index.js +29 -28
  206. package/dist/server/tokens/palette/index.cjs +1 -0
  207. package/dist/server/tokens/palette/index.js +31 -0
  208. package/dist/server/tree/index.cjs +1 -1
  209. package/dist/server/tree/index.js +1 -1
  210. package/dist/settings/index.cjs +1 -1
  211. package/dist/settings/index.js +26 -25
  212. package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
  213. package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
  214. package/dist/solid/_internal/contract/menuDensity.js +1 -0
  215. package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
  216. package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
  217. package/dist/solid/desktop/WindowControls.jsx +6 -3
  218. package/dist/solid/feedback/Badge.jsx +9 -5
  219. package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
  220. package/dist/solid/forms/Button.jsx +15 -9
  221. package/dist/solid/forms/Checkbox.jsx +5 -4
  222. package/dist/solid/forms/Combobox.jsx +12 -10
  223. package/dist/solid/forms/CopyButton.jsx +7 -4
  224. package/dist/solid/forms/DatePicker.jsx +12 -7
  225. package/dist/solid/forms/Dropzone.jsx +17 -13
  226. package/dist/solid/forms/FilePickerButton.jsx +5 -4
  227. package/dist/solid/forms/HiddenFileInput.jsx +3 -1
  228. package/dist/solid/forms/InputMessage.jsx +11 -10
  229. package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
  230. package/dist/solid/forms/NumberInput.jsx +25 -19
  231. package/dist/solid/forms/Picker.jsx +8 -6
  232. package/dist/solid/forms/PressableSurface.jsx +14 -9
  233. package/dist/solid/forms/RadioGroup.jsx +4 -3
  234. package/dist/solid/forms/SearchInput.jsx +4 -3
  235. package/dist/solid/forms/SearchableSelect.jsx +4 -3
  236. package/dist/solid/forms/SegmentedControl.jsx +4 -3
  237. package/dist/solid/forms/TagInput.jsx +22 -16
  238. package/dist/solid/forms/ToggleButton.jsx +4 -3
  239. package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
  240. package/dist/solid/grid/Pagination.jsx +7 -3
  241. package/dist/solid/host/kitHost.jsx +5 -1
  242. package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
  243. package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
  244. package/dist/solid/layout/ResizeHandle.jsx +6 -5
  245. package/dist/solid/navigation/Accordion.jsx +8 -5
  246. package/dist/solid/navigation/Tabs.jsx +11 -8
  247. package/dist/solid/notifications/NotificationHost.jsx +3 -16
  248. package/dist/solid/notifications/NotificationItem.jsx +59 -55
  249. package/dist/solid/notifications/NotificationPanel.jsx +16 -8
  250. package/dist/solid/notifications/NotificationsCenter.jsx +2 -0
  251. package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
  252. package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
  253. package/dist/solid/notifications/holdWhileShown.js +30 -0
  254. package/dist/solid/notifications/nativeEngine.js +52 -1
  255. package/dist/solid/notifications/notificationEntryList.js +25 -9
  256. package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
  257. package/dist/solid/notifications/toast.js +4 -0
  258. package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
  259. package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
  260. package/dist/solid/overlay/Disclosure.jsx +4 -3
  261. package/dist/solid/overlay/DropdownMenu.jsx +6 -4
  262. package/dist/solid/overlay/FloatingWindow.jsx +3 -3
  263. package/dist/solid/overlay/HoverTooltip.jsx +9 -7
  264. package/dist/solid/overlay/Modal.jsx +44 -35
  265. package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
  266. package/dist/solid/overlay/Tooltip.jsx +5 -4
  267. package/dist/solid/overlay/command-palette/CommandPalette.jsx +7 -7
  268. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +65 -50
  269. package/dist/solid/overlay/index.js +2 -1
  270. package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
  271. package/dist/solid/overlay/modalDefaults.jsx +10 -0
  272. package/dist/solid/overlay/modalViewport.js +17 -4
  273. package/dist/solid/overlay/popover/Popover.jsx +17 -11
  274. package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
  275. package/dist/solid/tokens/palette/index.js +1 -0
  276. package/dist/solid/tree/TreeRow.jsx +21 -16
  277. package/dist/solid/tree/TreeSurface.jsx +15 -14
  278. package/dist/solid/widgets/SettingsField.jsx +11 -10
  279. package/dist/style.css +3 -2
  280. package/dist/theme.css +2 -1
  281. package/dist/tokens/index.cjs +1 -1
  282. package/dist/tokens/index.js +29 -28
  283. package/dist/tokens/palette/index.cjs +1 -0
  284. package/dist/tokens/palette/index.d.cts +12 -0
  285. package/dist/tokens/palette/index.d.ts +12 -0
  286. package/dist/tokens/palette/index.js +31 -0
  287. package/dist/tokens/tokens.css +2 -1
  288. package/dist/tree/TreeRow.d.cts +5 -4
  289. package/dist/tree/TreeRow.d.ts +5 -4
  290. package/dist/tree/descriptor.d.cts +13 -3
  291. package/dist/tree/descriptor.d.ts +13 -3
  292. package/dist/tree/index.cjs +1 -1
  293. package/dist/tree/index.js +1 -1
  294. package/dist/ui.css +1 -1
  295. package/package.json +25 -1
  296. package/dist/AttributeGrid-Ch1k9v5j.cjs +0 -1
  297. package/dist/AttributeGrid-DqFd4gBm.js +0 -320
  298. package/dist/Button-OyZHrl-t.cjs +0 -1
  299. package/dist/CommandPalette-CxYZUJtN.cjs +0 -2
  300. package/dist/CommandPalette-DwOp8y1-.js +0 -4018
  301. package/dist/CopyButton-16QNPgz6.cjs +0 -1
  302. package/dist/CopyButton-BVS49lMS.js +0 -63
  303. package/dist/DateRangePicker-8QvydugY.js +0 -550
  304. package/dist/DateRangePicker-DI-06xWY.cjs +0 -9
  305. package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
  306. package/dist/EmptyState-Dph6HU74.js +0 -50
  307. package/dist/GuidedTour-DUQwdW8n.cjs +0 -1
  308. package/dist/GuidedTour-DXMmHn0o.js +0 -483
  309. package/dist/IconPicker-Q-ZDtNkd.cjs +0 -1
  310. package/dist/Input-Brp5EDhg.cjs +0 -1
  311. package/dist/Input-CZi8KEfm.js +0 -374
  312. package/dist/Modal-CBi7Wd2V.cjs +0 -1
  313. package/dist/Modal-iyY1HUtr.js +0 -588
  314. package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
  315. package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
  316. package/dist/PageSkeleton-B_-4fz1q.cjs +0 -30
  317. package/dist/Popover-DVi179wu.js +0 -207
  318. package/dist/Popover-DXrczbt9.cjs +0 -1
  319. package/dist/SearchableSelect-DtHbWJhR.js +0 -328
  320. package/dist/SearchableSelect-yLVqCGFo.cjs +0 -1
  321. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +0 -50
  322. package/dist/Stepper-CyRgzWlR.js +0 -583
  323. package/dist/Stepper-u2ZsE5oP.cjs +0 -1
  324. package/dist/TimeSeriesChart-D7lIqolp.js +0 -441
  325. package/dist/TimeSeriesChart-DGzM9B--.cjs +0 -1
  326. package/dist/ToggleButton-B22PsCqo.js +0 -2138
  327. package/dist/ToggleButton-DWslrIBN.cjs +0 -1
  328. package/dist/appThemeDerivation-BylmT80v.cjs +0 -1
  329. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +0 -1
  330. package/dist/createDialogShellFocus-DbiQmLgb.js +0 -282
  331. package/dist/createResizableSidebar-COlpGQ7H.cjs +0 -1
  332. package/dist/createResizableSidebar-cmCKTIg_.js +0 -504
  333. package/dist/kitHost-BfJExE1G.cjs +0 -1
  334. package/dist/kitHost-CVAEi9sF.js +0 -23
  335. package/dist/mainRealmDom-B215swW-.js +0 -166
  336. package/dist/mainRealmDom-BYGSE-fo.cjs +0 -1
  337. package/dist/pageTourState-CrbEU7QW.cjs +0 -5
  338. package/dist/rowSource-D__7o4h0.js +0 -1230
  339. package/dist/rowSource-DiwTu_r8.cjs +0 -1
  340. package/dist/server/AttributeGrid-Bpjlauuz.js +0 -281
  341. package/dist/server/AttributeGrid-DNYdKb8J.cjs +0 -1
  342. package/dist/server/Button-0AXWRw9Q.cjs +0 -1
  343. package/dist/server/Button-3yNrnn4P.js +0 -220
  344. package/dist/server/CommandPalette-BuVxnqBG.cjs +0 -1
  345. package/dist/server/CommandPalette-Dn3NKXPM.js +0 -3291
  346. package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
  347. package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
  348. package/dist/server/DateRangePicker-BFzNjaME.cjs +0 -9
  349. package/dist/server/DateRangePicker-CnYkTgXX.js +0 -484
  350. package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
  351. package/dist/server/GuidedTour-BZardPYW.js +0 -400
  352. package/dist/server/GuidedTour-yhdZk2SU.cjs +0 -1
  353. package/dist/server/IconPicker-C5lAN9pX.cjs +0 -1
  354. package/dist/server/Input-AdF-i0O8.js +0 -245
  355. package/dist/server/Input-XF9Jr0G9.cjs +0 -1
  356. package/dist/server/Modal-C5dzgcRW.js +0 -420
  357. package/dist/server/Modal-nAhBS1L9.cjs +0 -1
  358. package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
  359. package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
  360. package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
  361. package/dist/server/Popover-C5avmGWz.cjs +0 -1
  362. package/dist/server/Popover-H3AAYZI0.js +0 -439
  363. package/dist/server/SearchableSelect-CZrXDKfC.cjs +0 -1
  364. package/dist/server/SearchableSelect-DMqed5Er.js +0 -205
  365. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +0 -49
  366. package/dist/server/Stepper-CpapA_WH.cjs +0 -1
  367. package/dist/server/Stepper-gGA7JwjV.js +0 -375
  368. package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
  369. package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
  370. package/dist/server/ToggleButton-CA9T-OsI.cjs +0 -1
  371. package/dist/server/ToggleButton-CBNKajZa.js +0 -1335
  372. package/dist/server/appThemeDerivation-BylmT80v.cjs +0 -1
  373. package/dist/server/createDialogShellFocus-CDaLuPg8.cjs +0 -1
  374. package/dist/server/createDialogShellFocus-LGDBOVnr.js +0 -369
  375. package/dist/server/createResizableSidebar-v40ZOb-Q.cjs +0 -1
  376. package/dist/server/kitHost-BfJExE1G.cjs +0 -1
  377. package/dist/server/kitHost-CVAEi9sF.js +0 -23
  378. package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
  379. package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
  380. package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
  381. package/dist/server/rowSource-D-wcDmFU.js +0 -1122
  382. package/dist/server/rowSource-DltiY0o3.cjs +0 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,67 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
5
5
  contain breaking changes. From 0.1.1 on, entries are written by Changesets
6
6
  (`npm run release:version`) above the previous release.
7
7
 
8
+ ## 0.33.0
9
+
10
+ ### Minor Changes
11
+
12
+ - The native notification overlay's snapshot carries the host window's run-time appearance, not every computed custom property of its root. `NotificationHost` read its root's computed style and sent each `--*` in it as `cssVariables` (`NotificationOverlayState`), so the values that belong to the host's own window went along and, written inline on the overlay page's root, overrode the overlay page's own: the title bar inset of the kit's `Modal` contract (`--modal-maximize-inset`, `0px` for a page without a title bar — the overlay window got the host's `2.2rem`), the host's title bar height and its zoom factor. A token derived from such a value arrives computed, so a consumer cannot filter it out by name; only the host's realm tells a run-time input from a stylesheet's output. `cssVariables` now holds the custom properties written inline on the host's root (`root.style`) — what the host writes while it runs: a palette, the user's fonts, a scrollbar style —, and the overlay page derives every other token from the stylesheets it loads. The reference's auxiliary windows take the same kind of input, never computed values: they clone the main window's stylesheets and copy every attribute of its root (`workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.ts:452-547`, `:561`; `base/browser/dom.ts:2443-2475`); the snapshot carries a part of them — the root's inline custom properties and its menu density. `fontFamily`, `fontSize` (the overlay's rem base) and `theme` are read as before.
13
+
14
+ The menu density travels as a typed field: `menuDensity` (`MenuDensity`), the root's `data-menu-density`, left out when the root names none of `MENU_DENSITIES` — a new export of `@vokril/ui-solid/settings` that `MenuDensity` is now derived from, and that a build test holds to the token sheet's density rules (`tests/menu-density.test.mjs`). The host reads the appearance again when that attribute changes; it watched `class`, `style`, `data-theme` and `data-palette` only, and a density change sent nothing. Measured on a host's overlay page in eight states (the default design's dark and light themes, the two high-contrast themes, a user font at 18px, the compact density, a colour-blind palette, a zoom of 1.5): the inline custom properties and the density keep the cards and the open gear menu identical to the computed snapshot, and the overlay's root keeps its own `0px` title bar inset; the inline properties without the density changed the compact gear menu. A component test mounts a root whose stylesheet sets `--modal-maximize-inset` and a static token, with custom properties inline: the snapshot carries the inline ones only, follows them as the host writes and removes them, carries `menuDensity` `compact`, a new snapshot with `sparse` when the attribute changes, and no density for a value the kit does not know (`tests/components/notification-overlay-appearance.test.tsx`). The README has a section on the overlay page; `Modal`'s `maximizeInset` and `modalTitlebarHeight` now ask a host for `--modal-maximize-inset` in a stylesheet rule, not inline on the root.
15
+
16
+ **Breaking:** an overlay page that loads no stylesheets no longer gets the static tokens from the snapshot. The page loads the kit's `theme.css` and the token sheets the host loads, writes `cssVariables` inline on its root and removes those a later snapshot no longer carries, writes `menuDensity` as its root's `data-menu-density` (and removes it when a snapshot has none), and sets the values of its own window itself (`--modal-maximize-inset: 0px`). Every custom property written inline on the host's root is carried, so the host keeps a value that belongs to one window out of the root's inline style (a stylesheet rule). The theme's root markers (`data-app-theme`, `data-design`) are not carried — the kit's sheets key the root's `color-scheme` on them —, so under a theme of the Vokril design the overlay's cards no longer get the design's own tokens (its corners, font and surfaces: about thirty tokens and those that derive from them); under the default design's and the high-contrast themes those tokens are the ones the overlay's root gets anyway. A host that wants them in the overlay writes them inline on its root, where the snapshot carries them. A copy of `NotificationOverlayState` kept outside the kit — a host's contract, a schema that checks the snapshot at a process boundary — adds `menuDensity`.
17
+ - A tree descriptor can name a row: `TreeRowDomProps` — what `rowProps` returns for a row — takes `ariaLabel`, the row's accessible name, which `TreeSurface` writes as the row's `aria-label`, as the reference's list writes the label its accessibility provider gives a row (`base/browser/ui/list/listWidget.ts:890`, `:1313-1335`). A row is named by its content; one that shows no text — a placeholder that loads the next page as it scrolls into view — had no name (axe: `aria-treeitem-name`), and its surface had no way to give it one. The name is `t()`-d like every text a descriptor gives. Left out or empty, the row has no `aria-label`, as before — the reference's list removes an empty label the same way —; the label follows the descriptor as it changes, and a mounted row that comes to show another row (the rows render by index) drops it. A sticky clone of the row does not restate it: a clone restates nothing of the real row's identity, and its generic element may not be named. A component test renders a named placeholder (axe passes) beside rows given no name, an empty name (no `aria-label`; axe reports the treeitem without a name), a changing name, a mounted row taken over by the next page's commit, and the clone (`tests/components/tree-row-name.test.tsx`).
18
+
19
+ ## 0.32.0
20
+
21
+ ### Minor Changes
22
+
23
+ - The theme's forced-colors focus net has an opt-out: an element that draws its own forced-colors focus indicator carries `data-focus-indicator="own"` and the net leaves it alone. The net (`theme.css`, scoped to kit elements and the elements inside them; `base.css`, unscoped) draws a 2px `Highlight` outline outside every keyboard-focused element, `!important`, since box-shadow halos are not painted in forced colors. A host element inside a kit element that draws its own line — inset in its frame, or an overlay over a canvas — showed two lines there: its own and the net's ring outside it. The net's selector is now `:focus-visible:where(:not([data-focus-indicator='own']))` (the `:where()` keeps its specificity); an opted-out element owes a `Highlight` indicator of its own under `@media (forced-colors: active)`. Nothing changes for an element without the attribute. The README's accessibility section shows it; a build test matches the net's selector in `theme.css` and `base.css` against a kit element, an element inside one, the opted-out ones and the page (`tests/focus-line.test.mjs`).
24
+ - A notification's handle tells whether the user sees its card, as the reference's `INotificationHandle.onDidChangeVisibility` does (`platform/notification/common/notification.ts:240-245`): `ToastProgressHandle` and the engine's `NotificationHandle` take `onDidChangeVisibility` — fired with `true` when the card comes into the user's sight and `false` when it leaves it, only when that changes (`workbench/common/notifications.ts:676-682`) — and `visible()`, where it stands now. A card is visible as a toast in sight — on the toast stack, not sent to the notification center and not pushed past the visible cap; an acknowledgment while it is the one its layer shows, the oldest — or, any card, while a notification center is shown. The engine reports at the reference's moments: a toast shown, hidden by the cap or taken away (`workbench/browser/parts/notifications/notificationsToasts.ts:297`, `:356`, `:669-682`), a center shown or hidden, a card added to or removed from a shown center (`notificationsCenter.ts:180`, `:323`, `:347`, `:378`). A card that ends while visible fires `false` before `onDidChangeState` tells its end, as the reference takes a closed notification off the screen before its handle hears the close. The reference adds a toast on the next animation frame, so a listener added when `notify` returns hears its first `true` (`notificationsToasts.ts:99-103`, `:228-231`); the kit's engine places the card before the verb returns, so `visible()` gives the start. A progress that got no card (turned down on a card, the flood guard) is never visible. The reference's progress service uses the event to show a progress whose notification the user cannot see as a window progress (`workbench/services/progress/browser/progressService.ts:339-357`); the README shows the same with the kit.
25
+
26
+ A center counts as shown while the user can see it: `NotificationsCenter` and `NotificationPanel` register with the new `NotificationStack.registerShownCenter()` (it returns a disposable) and dispose it when they stop showing; while any is registered, every card counts as visible — a center lists the realm's notifications, the running cards and the records of the others. `NotificationsCenter` is an overlay, mounted while it shows: it registers when it mounts. A `NotificationPanel` is laid out by its host, which may keep it mounted in a pane it hides (`display: none`) or collapses: the panel registers only while its frame has a box with an area and releases while it has none, following its own box with a `ResizeObserver` — as the reference marks every notification visible when its center shows and hidden when it hides (`notificationsCenter.ts:180`, `:378`), and with nothing for the host to tell it. A host that draws a center of its own over the stack registers it the same way, while it shows.
27
+
28
+ **Breaking:** a `ToastProgressHandle` or `NotificationHandle` written outside the kit (a test double) adds `visible` and `onDidChangeVisibility`; a `NotificationStack` written outside the kit (a double of `notifications.stack`) adds `registerShownCenter`, which `NotificationsCenter` calls when it mounts and `NotificationPanel` while its frame has a box.
29
+ - `Modal` takes `allowMaximizedDrag`: whether a maximized modal can be pulled off the top by its header (0.31.0). `true`, the default, keeps that gesture — the modal returns to its size under the pointer and the drag carries on. `false` keeps a maximized modal in place, as the reference's modal editor does, which does not drag while it is maximized (`workbench/browser/parts/editor/modalEditorPart.ts:456-459`): a press and a drag on the header move nothing, and the Restore button and a double-click on the header still restore it; restored, the header drags the modal as before. A host sets it once for every modal of a root instead of on each: `KitHostProvider` takes a `modals` option (`{ allowMaximizedDrag: false }`, the new `ModalDefaults`; `ModalDefaultsProvider` gives it to a tree without a kit host, and `useModalDefaults` reads it), and a modal's own prop overrides it. A `Modal` outside any provider keeps the kit's default. The README has a section on it.
30
+ - The window's title bar height that a `Modal` keeps clear has one home: `--modal-maximize-inset`, set once on each window's root by a host that draws a title bar (`:root { --modal-maximize-inset: 2.2rem }`; 2.875rem when it sets none, `0px` for a page without one). It inherits into the portalled modal layer, and every modal reads it: the maximized layout (right under the title bar, as before), the normal layout's top gap and height — until now fixed at 2.875rem —, and the drag bound, which was `2.875 ×` the root font size whatever the host set. `modalTitlebarHeight(doc)` resolves the same property — the browser measures it in that document, so any CSS length works — and takes an element to resolve it under (`modalTitlebarHeight(doc, within)`); a host's own draggable surface that reads it follows the window's value too. `maximizeInset` stays, as an override for one modal: it sets the property on that modal's overlay, and that modal's layouts and drag bound follow it. The reference's modal editor reads one title bar offset for its drag bound, size, maximized padding and position (`workbench/browser/parts/editor/modalEditorPart.ts:493-509`, `:579`, `:593-595`, `:644-645`, `:662-663`, `:671`, `:702`, `:707`).
31
+
32
+ Measured in a real browser (`tests/modal-titlebar-layout.test.mjs`, headless Chrome; a root at 16px with the property at 2.2rem): the maximized top, a restored modal dragged far up and `modalTitlebarHeight(document)` are all 35.2px, the normal top gap 51.2px (the title bar and 1rem) and the height `100vh − 35.2px − 2rem`; a modal with `maximizeInset="0px"` maximizes and drags to 0 under the same root.
33
+
34
+ Behaviour change: where a host sets the property — on the root, or on one modal through `maximizeInset` —, the normal top gap, the height and the drag bound follow it too, where they kept 2.875rem before (a modal given `maximizeInset="2.2rem"` now also drags up to 2.2rem and opens 2.2rem + 1rem from the top). Nothing changes where the property is not set.
35
+ - Every keyboard focus indicator of the kit draws an opaque line in the focus colour, as the reference draws on every focusable element (`workbench/browser/media/style.css:257-272`: `outline: 1px solid focusBorder`, `outline-offset: -1px`). The components below showed the keyboard focus with a halo alone — `--focus-halo` (brand at 25%) or `--focus-halo-soft` (22%) —, which stays near 1.4:1 over a surface; they now draw `--focus-line`, a new token (`1px solid var(--focus-ring)`), with the halo kept beside it. Measured against the built-in palettes (brand over `surface`, `surfaceAlt` and `surfaceElevated`): the line is at least 4.26:1 (viper-dark over its elevated surface) and up to 9.38:1, where the halo was 1.40–1.55:1 and the soft halo 1.33–1.46:1 — WCAG 1.4.11 asks 3:1 of a focus indicator. The line is inset (`-1px`) where the element fills its container and outside it on a standalone control:
36
+
37
+ - `Chip` — a clickable chip (1px outside) and its remove button (1px outside);
38
+ - `Checkbox`, `RadioGroup` — the box (2px outside, the reference's checkbox offset); `Toggle` — the track (2px); `Slider` — the thumb (2px); `SegmentedControl` — the focused segment (inset);
39
+ - `DatePicker` — the month buttons (1px outside) and the day cells (inset); today, framed in the brand colour, draws its line outside (1px, over the calendar's surface: at least 4.26:1), and the selected day, filled with the brand colour, draws it inside in the ink drawn on that fill (`--ui-color-on-brand`, at least 3.53:1 against the fill), as the reference outlines a focused and selected row in a colour of its own (`list.focusAndSelectionOutline`, `platform/theme/common/colors/listColors.ts:29-31`, `base/browser/ui/list/listWidget.ts:980`) — an inset line in the brand colour lay on that very colour there (1:1);
40
+ - `Dropzone` — the drop area and the remove button (1px outside);
41
+ - the result toolbar (`ResultTabToolbar`) — its buttons, the settings button, the sort badge and its clear button (inset, over the button's own border: still one line); a pointer resting on a button the keyboard focused no longer takes its line and halo away (the buttons' hover rules cleared the outline and the shadow and outranked the keyboard rule; they now leave a keyboard-focused button alone);
42
+ - `Accordion` — the trigger (inset); `Tabs` — a tab, the active one too, and the overflow button (inset);
43
+ - `StatusBarNotificationBell` (inset); `FloatingWindow` — its control buttons (inset); `TreeSurface` — the focused row (inset, as the reference outlines its list's focused row).
44
+
45
+ Unchanged, as they already drew an opaque indicator: `Button` and `PressableSurface`, `Breadcrumb`, `Stepper`, the select triggers and options, the text inputs and framed inputs (the theme's 2px ring under keyboard navigation), menu rows and panels, `ResizableSplitPane`'s separator (the bar turns the focus colour), `TimeSeriesChart`. Pointer focus is unchanged: the lines are drawn under `:focus-visible` or the kit's keyboard modality only, where the halos were. Forced colors keep their Highlight ring: the theme's net covers the focused element, and the indicators drawn beside a hidden native input (the checkbox, radio and toggle boxes, the slider thumb, the segment) keep their own Highlight rule after the line — `SegmentedControl`'s moved after it for that. A build test (`tests/focus-line.test.mjs`) checks each line, the selected day's and today's line against the colour it lies on in every built-in palette, the forced-colors order, that no unlayered keyboard focus rule drops the outline for a halo alone, and that no hover rule takes a keyboard line away; the headless Chrome test reads a tab's computed line.
46
+
47
+ **Look change:** an application sees a 1px line in its focus colour on these components when the keyboard reaches them, where it saw only a faint glow. An application that styles them over the kit (a component class of its own setting `outline: none` on focus, a theme whose `--focus-ring` is translucent) re-checks them.
48
+ - The palette's contract has an entry of its own: `@vokril/ui-solid/tokens/palette` exports `THEME_PALETTE_TOKENS`, `isThemePaletteColor` and the `ThemePalette` type, and its module graph holds no package and touches no DOM under every export condition (`solid`, `node` import and require, `import`, `require`). Code that checks a palette outside a window — an application's main process reading an imported theme, a worker, a script — imports it without loading solid-js: `@vokril/ui-solid/tokens` carries the theme engine, whose shared chunk imports `solid-js` and `solid-js/web` under every condition. `@vokril/ui-solid/tokens` keeps exporting the same contract, unchanged. A build test walks each condition's module graph through its relative imports (`tests/palette-subpath.test.mjs`) and imports and requires the subpath in a plain Node process; the README's entry table lists it.
49
+ - A `NotificationPanel`'s list is a named focus target of its own, as the reference's notifications list is: the list's element takes the focus (`tabindex="0"`, in the tab order, as the reference's list view, `base/browser/ui/list/listView.ts:410`) and is named "Notifications" (`aria-label`, as the reference names its list, `listWidget.ts:1566-1571`). `focusFirstNotificationEntry(root)` on a panel that lists nothing now focuses that list and returns `true`, as the reference focuses its empty list (`workbench/browser/parts/notifications/notificationsList.ts:227-233`, `notificationsCenter.ts:140-150`, `:172-174`); until now it returned `false` and a host focused whatever it chose next (a search box). With notifications it focuses the first one, as before. When the panel's last notification goes while the focus is in the list, the focus stays on the list, as the reference keeps the DOM focus on its list (`notificationsList.ts:195-198`) — it went to the panel's frame before. From the list itself the arrow keys, Home, End and the Page keys start on its notifications: Down goes to the first, Up to the last. A notification that arrives while the list holds the focus leaves the focus where it is.
50
+
51
+ The list's role is `group`, not the reference's `list`: an ARIA list owns list items only, and this one draws notification records, running progress cards, collapsible groups and a pinned header (measured: axe reports `aria-required-children` on a `role="list"` here; the reference's own rows are `role="dialog"`, `notificationsList.ts:289-291`).
52
+
53
+ `NotificationsCenter` is unchanged: it focuses its first notification when it opens, itself when it lists nothing, and `focusFirstNotificationEntry` on a center that lists nothing still returns `false`.
54
+
55
+ Behaviour change: the panel has one more tab stop, its list. A host whose fallback ran on an empty panel (`if (!focusFirstNotificationEntry(panel)) …`) no longer reaches it there: the panel's list takes the focus.
56
+ - **Breaking:** a page tour's page has one id. `TourPageId` loses its two aliases, `'filesystem'` (of `'file-system'`) and `'explorer'` (of `'database-explorer'`), and `canonicalTourPageId` is gone from `@vokril/ui-solid/host` (and the root entry): nothing in the kit or its showcase issued an alias, so the service no longer translates ids — `PageTours.isActive`, `setActive`, `readStatus`, `writeStatus`, `request`, `consumeRequest` and `TourHost.page` compare the id they are given. `TourPageId` is now exported from `@vokril/ui-solid/host` (and the root), the type `PageTours` takes.
57
+
58
+ What a consumer changes: write `'file-system'` where it wrote `'filesystem'`, and `'database-explorer'` where it wrote `'explorer'` (a tour definition's `pageId`, a `TourHost`'s `page`, a call of the service) — the aliases no longer compile; drop calls of `canonicalTourPageId` (the id passed is already the page's id); and a host that kept its own copy of the page id union imports `TourPageId` from `@vokril/ui-solid/host` instead. Stored tour statuses need nothing: the service always stored them under the canonical id (`onboarding:page:file-system`, `onboarding:page:database-explorer`).
59
+
60
+ ### Patch Changes
61
+
62
+ - No kit component makes Solid warn "computations created outside a `createRoot` or `render` will never be disposed" any more when a pointer, the focus, a key, a timer, an animation frame or an observer reaches it. A prop written as a condition with computed branches (`title={dnd() ? t('Disable Do Not Disturb') : t('Enable Do Not Disturb')}`, `content={n() === 1 ? t('1 conflict') : t('{n} conflicts', …)}`, `closeDisabled={busy() ? true : saving()}`) compiles to a getter that creates a computation on every read (Solid memoises the condition); read in code that runs outside the component's owner — an event handler, a timer, a microtask, an animation frame, an observer callback, directly or through the component's own helpers —, that computation had no owner: a development build warned, and in production it was never disposed. Every component now reads such props through memos made in its own scope, so a handler only reads a value — as `Button` (its tooltip, `disabled` and `loading`), `PressableSurface` and `Badge` do. An accessor prop (`Popover`'s `anchor`, `GuidedTour`'s `target`, `CommandPalette`'s `host`, `Pagination`'s `page`) is memoised as the function and still called when the value is needed.
63
+
64
+ The components (51, 113 reads): the form controls — `Checkbox`, `Combobox`, `CopyButton`, `DatePicker`, `DateRangePicker`, `Dropzone`, `FilePickerButton`, `HiddenFileInput`, `InputMessage`'s view, `MultiSearchableSelect`, `NumberInput`, `Picker`, `RadioGroup`, `SearchInput`, `SearchableSelect`, `SegmentedControl`, `TagInput`, `ToggleButton`; the overlays — `ConfirmDialog`, `InputDialog`, the dangerous-action dialog's name step and option list, `Disclosure`, `DropdownMenu`, `FloatingWindow`, `HoverTooltip`, `Modal`, `OverlayScrollArea`, `Tooltip`, `CommandPalette`, the context menu's panel, `MenuItem`, `MenuDisclosure`, `Popover`, `GuidedTour`; layout and navigation — `PageHeaderIcon`, `ResizableSplitPane`, `ResizeHandle`, `Accordion`, `Tabs`, `Pagination`; notifications — `NotificationItem`, `NotificationPanel`, `StatusBarNotificationBell`; trees — `TreeRow`, `TreeSurface`; and `TimeSeriesChart`, `WindowControls`, the error boundary's fallback, the page tour host and the settings' `ReorderableList`.
65
+
66
+ A build test keeps the rule (`tests/handler-prop-reads.test.mjs`): it scans the kit's sources with TypeScript — every function whose first parameter is `props`, with its `splitProps`/`mergeProps` aliases; its `on*` handlers, `addEventListener` callbacks, timers, microtasks, animation frames and observers; the plain helpers they call — and fails on any prop read there, with no allow-list. Callback props (`on*`), `children` and `ref` are called, not read for a value, and are left out. Nothing else changes: the components show the current values, and a disabled or busy control still drops the click. The `tooltip` directive needs no change: its value compiles to a plain accessor.
67
+ - A maximized `Modal` that can be pulled off the top by its header (0.31.0; `allowMaximizedDrag`, `true` by default) shows its header as a drag handle, as a restored modal's header does: the grab cursor, and `touch-action: none`, so a touch pointer pulls the modal instead of letting the browser take the gesture as a pan — which cancelled the pointer and left the modal maximized. The header took the handle's class only while the modal was restored. A maximized modal kept in place (`allowMaximizedDrag: false`) still has no handle. Measured in headless Chrome (`tests/modal-titlebar-layout.test.mjs`): the pullable maximized header computes `touch-action: none` and `cursor: grab`, the one kept in place `auto`.
68
+
8
69
  ## 0.31.0
9
70
 
10
71
  ### Minor Changes
package/README.md CHANGED
@@ -95,11 +95,15 @@ notification goes, the one before it takes the focus (the new first, when it was
95
95
  when the last one goes, the center hides — its host's `onHide` is called, as it is when do not
96
96
  disturb or the run-time filter turns on while the center is open. A host that shows a center
97
97
  again, or brings a `NotificationPanel` on screen (a dock, a tool window), focuses the first
98
- notification itself; `false` means no notification took the focus — none is drawn, or the one
99
- drawn could not take it:
98
+ notification itself. A panel's list is a focus target of its own, as the reference's list is —
99
+ named "Notifications", in the tab order, its arrow keys starting on the first or the last
100
+ notification —: a panel that lists nothing gives the focus to its list, and the list keeps it when
101
+ its last notification goes. `false` means nothing took the focus — a center that lists nothing
102
+ (which focuses itself when it opens), or an element that could not take it (an inert or hidden
103
+ subtree):
100
104
 
101
105
  ```tsx
102
- if (!focusFirstNotificationEntry(panelRoot)) searchBox.focus();
106
+ if (!focusFirstNotificationEntry(panelRoot)) panelRoot.focus();
103
107
  ```
104
108
 
105
109
  Which running progress is out of the user's sight — sent to the center, or clipped under newer
@@ -111,6 +115,23 @@ counts these, and a status bar that mirrors such a progress shows the first:
111
115
  notifications.stack.subscribe((items) => setMirrored(hiddenRunningProgress(items)[0] ?? null));
112
116
  ```
113
117
 
118
+ A progress's own handle tells whether the user sees its card, as the reference's notification
119
+ handle does: `visible()` now, and `onDidChangeVisibility` each time it changes — a toast in sight,
120
+ or any card while a notification center is shown: a `NotificationsCenter` while it is mounted (an
121
+ overlay, gone when it hides), a `NotificationPanel` while its frame has a box. A host lays the panel
122
+ out and may keep it mounted in a pane it hides (`display: none`) or collapses; the panel then shows
123
+ nothing to the user and counts as nothing — it follows its own box (a `ResizeObserver`), so the
124
+ host tells it nothing. Both register with `notifications.stack.registerShownCenter()`; a host that
125
+ draws a center of its own registers it the same way, while it shows. The card is placed before the
126
+ verb returns, so read `visible()` when you subscribe:
127
+
128
+ ```tsx
129
+ const progress = notifications.progress(exporting, params);
130
+ const follow = (visible: boolean) => setWindowProgress(visible ? null : progress);
131
+ follow(progress.visible());
132
+ progress.onDidChangeVisibility(follow);
133
+ ```
134
+
114
135
  ## Stylesheets
115
136
 
116
137
  | Import | Contents |
@@ -172,6 +193,7 @@ Every subpath has ESM, CommonJS, type declarations, a server build and a Solid s
172
193
  | `/charts` | TimeSeriesChart |
173
194
  | `/a11y` | AriaAnnouncer and the announcement helpers |
174
195
  | `/tokens` | ThemeProvider, `useTheme`, `applyAppTheme`, the palettes and their derivation |
196
+ | `/tokens/palette` | The palette's contract alone — `THEME_PALETTE_TOKENS`, `isThemePaletteColor`, the `ThemePalette` type — with no package and no DOM in its module graph, for code that checks a palette outside a window (a main process, a worker); `/tokens` exports the same |
175
197
  | `/i18n` | `t`, `setLocale`, `setMessages`, language registry |
176
198
  | `/settings` | The settings registry the kit and its host share: `defineSettings`, field specs, the kit's own groups (notifications, header icon overrides) |
177
199
  | `/host` | The ports an application plugs into the kit (see [Embedding in an application](#embedding-in-an-application)) |
@@ -214,9 +236,47 @@ const surface = createTreeSurface({
214
236
  vanishing above the viewport keep the visible rows in place.
215
237
  - `surface.cursorRow()` is the row under the cursor; `controller.focusKey(key)` and
216
238
  `controller.selectKey(key, modifier)` address a row by key.
239
+ - A row is named by its content. One that shows no text — a placeholder that loads the next page as it
240
+ scrolls into view — takes its accessible name from `rowProps`: `ariaLabel` (a `t()`-d string) becomes the
241
+ row's `aria-label`; left out or empty, the row has none. A sticky clone of the row does not restate it.
217
242
  - Very long lists scroll past the browser's element-height limit: the container is capped and positions
218
243
  map proportionally (`createVirtualWindow`).
219
244
 
245
+ ## Modals
246
+
247
+ A `Modal` keeps clear the window's title bar. Its height has one home, set once per window root:
248
+ `--modal-maximize-inset` (any CSS length; 2.875rem when the host sets none, `0px` for a page
249
+ without a title bar). Every modal reads it — a maximized modal sits right under it, a normal one
250
+ keeps its top gap and height below it, and a drag stops at it —, and so does
251
+ `modalTitlebarHeight(document)`, for a host's own draggable surfaces. A host that draws a title bar
252
+ of its own sets it on the root of each window it opens, main and auxiliary; it inherits into the
253
+ modal layer:
254
+
255
+ ```css
256
+ :root {
257
+ --modal-maximize-inset: 2.2rem;
258
+ }
259
+ ```
260
+
261
+ The value is the window's own: set it in a stylesheet rule, as above, not inline on the root. The
262
+ root's inline custom properties are the run-time appearance the native notification overlay's page
263
+ takes over, and that page, without a title bar, sets its own `0px` (see
264
+ [The native notification overlay](#the-native-notification-overlay)).
265
+
266
+ A maximized modal can be pulled off the top by its header — it returns to its size under the
267
+ pointer and the drag carries on, like a desktop window. A host that keeps maximized modals in
268
+ place, as the reference's modal editor does, says so once for every modal of a root; the Restore
269
+ button and a double-click on the header still restore them:
270
+
271
+ ```tsx
272
+ <KitHostProvider host={host} modals={{ allowMaximizedDrag: false }}>
273
+ …
274
+ </KitHostProvider>
275
+ ```
276
+
277
+ A modal's own `allowMaximizedDrag` and `maximizeInset` override these for that modal only
278
+ (`ModalDefaultsProvider` gives the defaults to a tree without a kit host).
279
+
220
280
  ## Theming
221
281
 
222
282
  `ThemeProvider` applies a palette to `<html>`. It writes the derived `--color-*` properties, the
@@ -389,7 +449,7 @@ A few realm facts and registries are set once at startup:
389
449
  | `registerThemeSource` (`/tokens`) | Each source of themes it owns (imported themes, plugin themes); dispose the registration when the source goes away | The built-in palettes |
390
450
  | `KeybindingsProvider`, `ToolWindowContext` | Its keybinding service and tool window layout (provide the host's values to these contexts) | Unset: notification shortcuts off |
391
451
  | `HostWindowProvider` | The window each root renders into | None: required at every root |
392
- | `initFocusModality(window)` (`/a11y`) | Called once in every window — the main one at startup, each auxiliary window as it opens: it marks keyboard navigation (`data-focus-modality`). The keyboard focus indicator of `Tabs`, `Chip`, menu rows and panels, and the checkbox-like controls (`Checkbox`, `RadioGroup`, `Toggle`, `Slider`, `SegmentedControl`) — and the outer ring of text fields — is drawn only while it says the window navigates by keyboard | None: those controls show no focus when the keyboard reaches them |
452
+ | `initFocusModality(window)` (`/a11y`) | Called once in every window — the main one at startup, each auxiliary window as it opens: it marks keyboard navigation (`data-focus-modality`). The keyboard focus indicator of `Tabs`, `Chip`, menu rows and panels, and the checkbox-like controls (`Checkbox`, `RadioGroup`, `Toggle`, `Slider`, `SegmentedControl`) — and the outer ring of text fields — is drawn only while it says the window navigates by keyboard. Every keyboard focus indicator of the kit draws an opaque line in the focus colour — the theme's 2px ring, or a component's own 1px line (`--focus-line`, inset where the element fills its container) —, a halo only beside it | None: those controls show no focus when the keyboard reaches them |
393
453
  | `registerVisibleBrowser` | Embedded browser views that toasts must avoid | None |
394
454
 
395
455
  ```ts
@@ -398,6 +458,63 @@ import { provideHostTranslator } from '@vokril/ui-solid/host';
398
458
  provideHostTranslator({ t: (key, values) => i18n.t(key, values), language: () => i18n.language() });
399
459
  ```
400
460
 
461
+ ## The native notification overlay
462
+
463
+ A desktop host whose embedded browser views paint over the page can lift the toasts above them.
464
+ Its `DesktopBridge.notificationOverlay(window)` returns the window's overlay port, and
465
+ `NotificationHost` sends the port a snapshot of the stack (`setNotificationOverlay`) at every
466
+ change. While the stack overlaps a visible browser view (`registerVisibleBrowser`) the snapshot is
467
+ `visible`, and the host draws its cards in a page of its own, in a window over the view.
468
+
469
+ A snapshot's appearance is the host window's run-time appearance. Its custom properties,
470
+ `cssVariables`, are the ones written inline on the host's root — what the host writes there while
471
+ it runs: a palette, the user's fonts, a scrollbar style —, not the ones the root computes;
472
+ `menuDensity` is the root's `data-menu-density` (left out when the root names no `MenuDensity`),
473
+ `fontSize` the root's computed font size (the overlay's rem base), `fontFamily` its computed font
474
+ and `theme` its `light` class. Every other token comes from the stylesheets (but for those the
475
+ theme's root markers select, below), so the overlay page:
476
+
477
+ - loads the kit's `theme.css` and the token sheets the host loads in its own windows;
478
+ - writes `cssVariables` inline on its root, and removes those a later snapshot no longer carries;
479
+ - writes `menuDensity` as its root's `data-menu-density`, and removes the attribute when a snapshot
480
+ has none;
481
+ - sets the values that belong to its own window itself, over the host's sheets:
482
+ `--modal-maximize-inset: 0px` (the overlay has no title bar — see [Modals](#modals)), a zoom
483
+ factor of its own.
484
+
485
+ ```ts
486
+ import type { MenuDensity } from '@vokril/ui-solid/settings';
487
+
488
+ // The overlay page, on every snapshot its window receives.
489
+ const written = new Set<string>();
490
+ function applyAppearance(state: { cssVariables?: Record<string, string>; menuDensity?: MenuDensity }): void {
491
+ const root = document.documentElement;
492
+ const variables = state.cssVariables ?? {};
493
+ for (const name of written) if (!(name in variables)) root.style.removeProperty(name);
494
+ written.clear();
495
+ for (const [name, value] of Object.entries(variables)) {
496
+ if (!name.startsWith('--')) continue; // the snapshot crossed a process boundary
497
+ root.style.setProperty(name, value);
498
+ written.add(name);
499
+ }
500
+ if (state.menuDensity) root.setAttribute('data-menu-density', state.menuDensity);
501
+ else root.removeAttribute('data-menu-density');
502
+ }
503
+ ```
504
+
505
+ The snapshot carries every custom property written inline on the host's root, so the host keeps a
506
+ value that belongs to one window out of the root's inline style — in a stylesheet rule, as the
507
+ title bar inset in [Modals](#modals).
508
+
509
+ The theme's markers on the host's root (`data-app-theme`, `data-design`, which `applyAppTheme`
510
+ stamps) are not carried: the kit's sheets key the root's `color-scheme` on them, a value of the
511
+ overlay's own window. The tokens a design hangs on them do not reach the overlay either. Under the
512
+ default design's and the high-contrast themes they are the ones a root of the same `light` or
513
+ `dark` class gets anyway; under a theme of the Vokril design they are the design's own — its
514
+ square corners, Manrope and flat surfaces —, which the overlay's cards then go without. A token
515
+ the host writes inline on its root travels with the snapshot whatever set it, so a host that
516
+ wants such tokens in the overlay writes them there.
517
+
401
518
  ## Server rendering and bundlers
402
519
 
403
520
  The package's export conditions:
@@ -445,6 +562,17 @@ Component tests check keyboard paths (arrow keys, Home/End, Escape, focus trap,
445
562
  axe on every tested component. Known findings are kept in a list, and a test fails when a listed
446
563
  finding disappears, so the list only shrinks.
447
564
 
565
+ In forced colors (Windows high contrast) the theme draws one focus indicator for every kit element
566
+ and every element inside one: a 2px `Highlight` outline outside the element, `!important`, since
567
+ box-shadow halos are not painted there. An element that draws its own forced-colors indicator — a
568
+ line inset in its frame, an overlay over a canvas — opts out with `data-focus-indicator="own"`, so
569
+ that ring does not double its line; it then draws a `Highlight` indicator of its own under
570
+ `@media (forced-colors: active)`:
571
+
572
+ ```tsx
573
+ <div class={styles.grid} tabIndex={0} data-focus-indicator="own" />
574
+ ```
575
+
448
576
  ## Changelog
449
577
 
450
578
  Changes are listed in `CHANGELOG.md`, shipped with the package.
@@ -0,0 +1 @@
1
+ "use strict";const t=require("solid-js/web"),v=require("solid-js"),$=require("./SearchableSelect-C-lV1vSv.cjs"),T=require("./Button-lMUW5P3O.cjs"),c=require("./i18n-D3s-a2a0.cjs"),m=require("./Input-CHtvL4_4.cjs"),p=require("@vokril/icons"),z=require("./iconScale.module-CzmKG1rf.cjs"),y=require("./keys-GMxY2wcl.cjs"),L=require("./bugIndicatingError-D2X5Hfgg.cjs");function P(e,a){return e<=0?a:String(e)}const O="vk_paginationRow_hg8fj",N="vk_paginationMeta_rPi8N",M="vk_paginationActions_gD2Fz",A="vk_paginationLabel_9x9Ah",q="vk_paginationSelect_h5BcT",H="vk_paginationPage_CYJRF",_={paginationRow:O,paginationMeta:N,paginationActions:M,paginationLabel:A,paginationSelect:q,paginationPage:H};var x=t.template("<div><span></span><div><label></label><span> / ");function F(e){const a=v.createMemo(()=>e.page),r=v.createMemo(()=>e.totalPages),n=()=>a()(),i=()=>r()(),u=v.createMemo(()=>{const g=c.t("Unlimited");return e.pageSizeOptions.map(s=>({value:String(s),label:P(s,g)}))});return(()=>{var g=x(),s=g.firstChild,B=s.nextSibling,S=B.firstChild,d=S.nextSibling,R=d.firstChild;return t.insert(s,()=>c.t("Showing {shown} of {total} items",{shown:e.shownCount(),total:e.totalCount()})),t.insert(S,()=>c.t("Page size"),null),t.insert(S,t.createComponent($.SearchableSelect,{size:"sm",get class(){return _.paginationSelect},get value(){return String(e.pageSize())},get options(){return u()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return c.t("Page size")}}),null),t.insert(B,t.createComponent(T.Button,{size:"sm",variant:"secondary",get disabled(){return n()<=1},onClick:()=>e.onPageChange(Math.max(1,n()-1)),get children(){return c.t("Previous")}}),d),t.insert(d,n,R),t.insert(d,i,null),t.insert(B,t.createComponent(T.Button,{size:"sm",variant:"secondary",get disabled(){return n()>=i()},onClick:()=>e.onPageChange(Math.min(i(),n()+1)),get children(){return c.t("Next")}}),null),t.effect(l=>{var C=_.paginationRow,f=_.paginationMeta,I=_.paginationActions,V=_.paginationLabel,w=_.paginationPage;return C!==l.e&&t.className(g,l.e=C),f!==l.t&&t.className(s,l.t=f),I!==l.a&&t.className(B,l.a=I),V!==l.o&&t.className(S,l.o=V),w!==l.i&&t.className(d,l.i=w),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),g})()}const E="vk_toolbar_LSRmU",J="vk_toolbarHorizontal_qHM-8",X="vk_toolbarViewClip_Q893H",K="vk_toolbarScrollRoot_aYbLg",U="vk_toolbarScrollViewport_qBzjd",j="vk_toolbarScrollTrack_Tp8TN",D="vk_segmentedCapsule_k9EBy",G="vk_toolbarBtn_CcyXF",Q="vk_toolbarBtnActive_UgTBV",Y="vk_toolbarBtnIconOnly_BlE-b",Z="vk_toolbarHorizontalBottom_qLzhJ",W="vk_toolbarVertical_EjHi2",tt="vk_toolbarVerticalRight_DBgEa",et="vk_toolbarScrollRootVertical_VGLRy",ot="vk_toolbarScrollViewportVertical_RLF5g",rt="vk_toolbarScrollTrackVertical_c1rBF",at="vk_toolbarSettingsBtn_XXfMz",nt="vk_toolbarIcon_0FvlL",lt="vk_toolbarSpacer_N3TbQ",ct="vk_sortBadgePill_nVrIk",it="vk_sortBadgeBtn_Is9PS",st="vk_sortBadgeIcon_kw8oa",bt="vk_sortBadgeLabel_l-p33",gt="vk_sortBadgeClearBtn_ioOaP",ut="vk_sortBadgeClearIcon_0e6Kd",vt="vk_filterInputContainer_kegUv",_t="vk_filterSearchIcon_gI0m2",dt="vk_filterInput_bX9xM",Bt="vk_filterClearBtn_WerJL",St="vk_filterClearIcon_7fuAJ",o={toolbar:E,toolbarHorizontal:J,toolbarViewClip:X,toolbarScrollRoot:K,toolbarScrollViewport:U,toolbarScrollTrack:j,segmentedCapsule:D,toolbarBtn:G,toolbarBtnActive:Q,toolbarBtnIconOnly:Y,toolbarHorizontalBottom:Z,toolbarVertical:W,toolbarVerticalRight:tt,toolbarScrollRootVertical:et,toolbarScrollViewportVertical:ot,toolbarScrollTrackVertical:rt,toolbarSettingsBtn:at,toolbarIcon:nt,toolbarSpacer:lt,sortBadgePill:ct,sortBadgeBtn:it,sortBadgeIcon:st,sortBadgeLabel:bt,sortBadgeClearBtn:gt,sortBadgeClearIcon:ut,filterInputContainer:vt,filterSearchIcon:_t,filterInput:dt,filterClearBtn:Bt,filterClearIcon:St},kt="vk_searchRow_2pwXX",ht="vk_searchInput_PbDtG",mt="vk_clearBtn_upa-E",k={searchRow:kt,searchInput:ht,clearBtn:mt};var pt=t.template("<div>");function Ct(e){return t.createComponent(m.PressableSurface,{type:"button",get class(){return`${o.toolbarSettingsBtn} ${e.active?o.toolbarBtnActive:""}`},get onClick(){return e.onToggle},get"aria-pressed"(){return e.active},get"aria-label"(){return c.t("Search")},get title(){return c.t("Search")},get children(){return t.createComponent(p.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ft(e){let a;return v.onMount(()=>a==null?void 0:a.focus()),(()=>{var r=pt();return t.insert(r,t.createComponent(m.Input,t.mergeProps({ref(n){var i=a;typeof i=="function"?i(n):a=n},get class(){return k.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:n=>e.onInput(n.currentTarget.value),onKeyDown:n=>{y.isKey(n,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??c.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{})),null),t.insert(r,t.createComponent(v.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(m.PressableSurface,{type:"button",get class(){return k.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return c.t("Clear search")},get title(){return c.t("Clear search")},get children(){return t.createComponent(p.VpClose,{get class(){return z.iconScale.iconSm},"aria-hidden":"true"})}})}}),null),t.effect(()=>t.className(r,k.searchRow)),r})()}const It=Object.freeze({toolbar:o.toolbar,toolbarHorizontal:o.toolbarHorizontal,toolbarHorizontalBottom:o.toolbarHorizontalBottom,toolbarVertical:o.toolbarVertical,toolbarVerticalRight:o.toolbarVerticalRight,toolbarViewClip:o.toolbarViewClip,toolbarScrollRoot:o.toolbarScrollRoot,toolbarScrollViewport:o.toolbarScrollViewport,toolbarScrollTrack:o.toolbarScrollTrack,toolbarScrollRootVertical:o.toolbarScrollRootVertical,toolbarScrollViewportVertical:o.toolbarScrollViewportVertical,toolbarScrollTrackVertical:o.toolbarScrollTrackVertical,segmentedCapsule:o.segmentedCapsule,toolbarBtn:o.toolbarBtn,toolbarBtnActive:o.toolbarBtnActive,toolbarBtnIconOnly:o.toolbarBtnIconOnly,toolbarIcon:o.toolbarIcon,toolbarSpacer:o.toolbarSpacer,toolbarSettingsBtn:o.toolbarSettingsBtn,sortBadgePill:o.sortBadgePill,sortBadgeBtn:o.sortBadgeBtn,sortBadgeIcon:o.sortBadgeIcon,sortBadgeLabel:o.sortBadgeLabel,sortBadgeClearBtn:o.sortBadgeClearBtn,sortBadgeClearIcon:o.sortBadgeClearIcon,filterInputContainer:o.filterInputContainer,filterSearchIcon:o.filterSearchIcon,filterInput:o.filterInput,filterClearBtn:o.filterClearBtn,filterClearIcon:o.filterClearIcon});function Vt(e,a){const r=`${a}: `;throw new L.BugIndicatingError(`${r}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const wt="vk_grid_uK6pm",Tt="vk_card_33OV3",zt="vk_item_UeZrE",Pt="vk_label_a-LFz",Rt="vk_value_9ZQBt",$t="vk_valueMono_knknq",yt="vk_boolOn_5zd-H",Lt="vk_boolOff_-6I4K",Ot="vk_stacked_2T--a",b={grid:wt,card:Tt,item:zt,label:Pt,value:Rt,valueMono:$t,boolOn:yt,boolOff:Lt,stacked:Ot};var h=t.template("<span>"),Nt=t.template("<div>"),Mt=t.template("<div><span>");function At(e,a){switch(e.kind){case"text":return(()=>{var r=h();return t.insert(r,()=>e.value(a)),t.effect(()=>t.className(r,b.value)),r})();case"mono":return(()=>{var r=h();return t.insert(r,()=>e.value(a)),t.effect(()=>t.className(r,b.valueMono)),r})();case"bool":return(()=>{var r=h();return t.insert(r,(()=>{var n=t.memo(()=>!!e.on(a));return()=>n()?t.createComponent(p.VpCheck,{get class(){return z.iconScale.iconSm},"aria-hidden":"true"}):"—"})()),t.effect(()=>t.className(r,`${b.value} ${e.on(a)?b.boolOn:b.boolOff}`)),r})();case"custom":return e.render(a);default:return Vt(e,"AttributeField.kind")}}function qt(e){return t.createComponent(v.Show,{get when(){return e.row()!=null},get children(){var a=Nt();return t.insert(a,t.createComponent(v.For,{get each(){return e.fields},children:r=>(()=>{var n=Mt(),i=n.firstChild;return t.insert(i,()=>r.label),t.insert(n,()=>At(r,e.row()),null),t.effect(u=>{var g=b.item,s=b.label;return g!==u.e&&t.className(n,u.e=g),s!==u.t&&t.className(i,u.t=s),u},{e:void 0,t:void 0}),n})()})),t.effect(()=>t.className(a,`${b.grid} ${b[e.variant]??""}`)),a}})}exports.AttributeGrid=qt;exports.Pagination=F;exports.ToolbarSearchRow=ft;exports.ToolbarSearchToggle=Ct;exports.pageSizeOptionLabel=P;exports.resultTabToolbarClasses=It;
@@ -0,0 +1,320 @@
1
+ import { insert as l, createComponent as c, effect as d, className as i, template as k, mergeProps as O, memo as A } from "solid-js/web";
2
+ import { createMemo as f, onMount as M, Show as T, For as H } from "solid-js";
3
+ import { S as x } from "./SearchableSelect-Du12kcI9.js";
4
+ import { B as R } from "./Button-CX7mylBT.js";
5
+ import { t as s } from "./i18n-CBlUGOyu.js";
6
+ import { I as F, P as $ } from "./Input-C3rEQffK.js";
7
+ import { VpClose as N, VpSearch as E, VpCheck as X } from "@vokril/icons";
8
+ import { i as y } from "./iconScale.module-C3O0bxfp.js";
9
+ import { i as J } from "./keys-B2nlkpqc.js";
10
+ import { B as K } from "./bugIndicatingError-h3J5qkL6.js";
11
+ function U(t, r) {
12
+ return t <= 0 ? r : String(t);
13
+ }
14
+ const j = "vk_paginationRow_hg8fj", q = "vk_paginationMeta_rPi8N", D = "vk_paginationActions_gD2Fz", G = "vk_paginationLabel_9x9Ah", Q = "vk_paginationSelect_h5BcT", Y = "vk_paginationPage_CYJRF", B = {
15
+ paginationRow: j,
16
+ paginationMeta: q,
17
+ paginationActions: D,
18
+ paginationLabel: G,
19
+ paginationSelect: Q,
20
+ paginationPage: Y
21
+ };
22
+ var Z = /* @__PURE__ */ k("<div><span></span><div><label></label><span> / ");
23
+ function eo(t) {
24
+ const r = f(() => t.page), e = f(() => t.totalPages), a = () => r()(), b = () => e()(), _ = f(() => {
25
+ const v = s("Unlimited");
26
+ return t.pageSizeOptions.map((g) => ({
27
+ value: String(g),
28
+ label: U(g, v)
29
+ }));
30
+ });
31
+ return (() => {
32
+ var v = Z(), g = v.firstChild, h = g.nextSibling, p = h.firstChild, S = p.nextSibling, L = S.firstChild;
33
+ return l(g, () => s("Showing {shown} of {total} items", {
34
+ shown: t.shownCount(),
35
+ total: t.totalCount()
36
+ })), l(p, () => s("Page size"), null), l(p, c(x, {
37
+ size: "sm",
38
+ get class() {
39
+ return B.paginationSelect;
40
+ },
41
+ get value() {
42
+ return String(t.pageSize());
43
+ },
44
+ get options() {
45
+ return _();
46
+ },
47
+ onChange: (n) => {
48
+ t.onPageSizeChange(Number(n));
49
+ },
50
+ searchable: !1,
51
+ get ariaLabel() {
52
+ return s("Page size");
53
+ }
54
+ }), null), l(h, c(R, {
55
+ size: "sm",
56
+ variant: "secondary",
57
+ get disabled() {
58
+ return a() <= 1;
59
+ },
60
+ onClick: () => t.onPageChange(Math.max(1, a() - 1)),
61
+ get children() {
62
+ return s("Previous");
63
+ }
64
+ }), S), l(S, a, L), l(S, b, null), l(h, c(R, {
65
+ size: "sm",
66
+ variant: "secondary",
67
+ get disabled() {
68
+ return a() >= b();
69
+ },
70
+ onClick: () => t.onPageChange(Math.min(b(), a() + 1)),
71
+ get children() {
72
+ return s("Next");
73
+ }
74
+ }), null), d((n) => {
75
+ var I = B.paginationRow, V = B.paginationMeta, w = B.paginationActions, P = B.paginationLabel, z = B.paginationPage;
76
+ return I !== n.e && i(v, n.e = I), V !== n.t && i(g, n.t = V), w !== n.a && i(h, n.a = w), P !== n.o && i(p, n.o = P), z !== n.i && i(S, n.i = z), n;
77
+ }, {
78
+ e: void 0,
79
+ t: void 0,
80
+ a: void 0,
81
+ o: void 0,
82
+ i: void 0
83
+ }), v;
84
+ })();
85
+ }
86
+ const W = "vk_toolbar_LSRmU", tt = "vk_toolbarHorizontal_qHM-8", ot = "vk_toolbarViewClip_Q893H", et = "vk_toolbarScrollRoot_aYbLg", rt = "vk_toolbarScrollViewport_qBzjd", at = "vk_toolbarScrollTrack_Tp8TN", lt = "vk_segmentedCapsule_k9EBy", nt = "vk_toolbarBtn_CcyXF", it = "vk_toolbarBtnActive_UgTBV", ct = "vk_toolbarBtnIconOnly_BlE-b", st = "vk_toolbarHorizontalBottom_qLzhJ", bt = "vk_toolbarVertical_EjHi2", gt = "vk_toolbarVerticalRight_DBgEa", ut = "vk_toolbarScrollRootVertical_VGLRy", vt = "vk_toolbarScrollViewportVertical_RLF5g", _t = "vk_toolbarScrollTrackVertical_c1rBF", dt = "vk_toolbarSettingsBtn_XXfMz", Bt = "vk_toolbarIcon_0FvlL", St = "vk_toolbarSpacer_N3TbQ", kt = "vk_sortBadgePill_nVrIk", ht = "vk_sortBadgeBtn_Is9PS", pt = "vk_sortBadgeIcon_kw8oa", ft = "vk_sortBadgeLabel_l-p33", mt = "vk_sortBadgeClearBtn_ioOaP", Ct = "vk_sortBadgeClearIcon_0e6Kd", It = "vk_filterInputContainer_kegUv", Vt = "vk_filterSearchIcon_gI0m2", wt = "vk_filterInput_bX9xM", Pt = "vk_filterClearBtn_WerJL", zt = "vk_filterClearIcon_7fuAJ", o = {
87
+ toolbar: W,
88
+ toolbarHorizontal: tt,
89
+ toolbarViewClip: ot,
90
+ toolbarScrollRoot: et,
91
+ toolbarScrollViewport: rt,
92
+ toolbarScrollTrack: at,
93
+ segmentedCapsule: lt,
94
+ toolbarBtn: nt,
95
+ toolbarBtnActive: it,
96
+ toolbarBtnIconOnly: ct,
97
+ toolbarHorizontalBottom: st,
98
+ toolbarVertical: bt,
99
+ toolbarVerticalRight: gt,
100
+ toolbarScrollRootVertical: ut,
101
+ toolbarScrollViewportVertical: vt,
102
+ toolbarScrollTrackVertical: _t,
103
+ toolbarSettingsBtn: dt,
104
+ toolbarIcon: Bt,
105
+ toolbarSpacer: St,
106
+ sortBadgePill: kt,
107
+ sortBadgeBtn: ht,
108
+ sortBadgeIcon: pt,
109
+ sortBadgeLabel: ft,
110
+ sortBadgeClearBtn: mt,
111
+ sortBadgeClearIcon: Ct,
112
+ filterInputContainer: It,
113
+ filterSearchIcon: Vt,
114
+ filterInput: wt,
115
+ filterClearBtn: Pt,
116
+ filterClearIcon: zt
117
+ }, Rt = "vk_searchRow_2pwXX", Tt = "vk_searchInput_PbDtG", $t = "vk_clearBtn_upa-E", m = {
118
+ searchRow: Rt,
119
+ searchInput: Tt,
120
+ clearBtn: $t
121
+ };
122
+ var yt = /* @__PURE__ */ k("<div>");
123
+ function ro(t) {
124
+ return c($, {
125
+ type: "button",
126
+ get class() {
127
+ return `${o.toolbarSettingsBtn} ${t.active ? o.toolbarBtnActive : ""}`;
128
+ },
129
+ get onClick() {
130
+ return t.onToggle;
131
+ },
132
+ get "aria-pressed"() {
133
+ return t.active;
134
+ },
135
+ get "aria-label"() {
136
+ return s("Search");
137
+ },
138
+ get title() {
139
+ return s("Search");
140
+ },
141
+ get children() {
142
+ return c(E, {
143
+ get class() {
144
+ return o.toolbarIcon;
145
+ },
146
+ "aria-hidden": "true"
147
+ });
148
+ }
149
+ });
150
+ }
151
+ function ao(t) {
152
+ let r;
153
+ return M(() => r == null ? void 0 : r.focus()), (() => {
154
+ var e = yt();
155
+ return l(e, c(F, O({
156
+ ref(a) {
157
+ var b = r;
158
+ typeof b == "function" ? b(a) : r = a;
159
+ },
160
+ get class() {
161
+ return m.searchInput;
162
+ },
163
+ type: "search",
164
+ size: "sm",
165
+ get value() {
166
+ return t.value;
167
+ },
168
+ onInput: (a) => t.onInput(a.currentTarget.value),
169
+ onKeyDown: (a) => {
170
+ J(a, "Escape") && t.onClose();
171
+ },
172
+ get placeholder() {
173
+ return t.placeholder ?? s("Search…");
174
+ }
175
+ }, () => t.disabled !== void 0 ? {
176
+ disabled: t.disabled
177
+ } : {})), null), l(e, c(T, {
178
+ get when() {
179
+ return t.value.length > 0;
180
+ },
181
+ get children() {
182
+ return c($, {
183
+ type: "button",
184
+ get class() {
185
+ return m.clearBtn;
186
+ },
187
+ onClick: () => t.onInput(""),
188
+ get "aria-label"() {
189
+ return s("Clear search");
190
+ },
191
+ get title() {
192
+ return s("Clear search");
193
+ },
194
+ get children() {
195
+ return c(N, {
196
+ get class() {
197
+ return y.iconSm;
198
+ },
199
+ "aria-hidden": "true"
200
+ });
201
+ }
202
+ });
203
+ }
204
+ }), null), d(() => i(e, m.searchRow)), e;
205
+ })();
206
+ }
207
+ const lo = Object.freeze({
208
+ toolbar: o.toolbar,
209
+ toolbarHorizontal: o.toolbarHorizontal,
210
+ toolbarHorizontalBottom: o.toolbarHorizontalBottom,
211
+ toolbarVertical: o.toolbarVertical,
212
+ toolbarVerticalRight: o.toolbarVerticalRight,
213
+ toolbarViewClip: o.toolbarViewClip,
214
+ toolbarScrollRoot: o.toolbarScrollRoot,
215
+ toolbarScrollViewport: o.toolbarScrollViewport,
216
+ toolbarScrollTrack: o.toolbarScrollTrack,
217
+ toolbarScrollRootVertical: o.toolbarScrollRootVertical,
218
+ toolbarScrollViewportVertical: o.toolbarScrollViewportVertical,
219
+ toolbarScrollTrackVertical: o.toolbarScrollTrackVertical,
220
+ segmentedCapsule: o.segmentedCapsule,
221
+ toolbarBtn: o.toolbarBtn,
222
+ toolbarBtnActive: o.toolbarBtnActive,
223
+ toolbarBtnIconOnly: o.toolbarBtnIconOnly,
224
+ toolbarIcon: o.toolbarIcon,
225
+ toolbarSpacer: o.toolbarSpacer,
226
+ toolbarSettingsBtn: o.toolbarSettingsBtn,
227
+ sortBadgePill: o.sortBadgePill,
228
+ sortBadgeBtn: o.sortBadgeBtn,
229
+ sortBadgeIcon: o.sortBadgeIcon,
230
+ sortBadgeLabel: o.sortBadgeLabel,
231
+ sortBadgeClearBtn: o.sortBadgeClearBtn,
232
+ sortBadgeClearIcon: o.sortBadgeClearIcon,
233
+ filterInputContainer: o.filterInputContainer,
234
+ filterSearchIcon: o.filterSearchIcon,
235
+ filterInput: o.filterInput,
236
+ filterClearBtn: o.filterClearBtn,
237
+ filterClearIcon: o.filterClearIcon
238
+ });
239
+ function Lt(t, r) {
240
+ const e = `${r}: `;
241
+ throw new K(
242
+ `${e}Non-exhaustive switch: unexpected value ${JSON.stringify(t)}`
243
+ );
244
+ }
245
+ const Ot = "vk_grid_uK6pm", At = "vk_card_33OV3", Mt = "vk_item_UeZrE", Ht = "vk_label_a-LFz", xt = "vk_value_9ZQBt", Ft = "vk_valueMono_knknq", Nt = "vk_boolOn_5zd-H", Et = "vk_boolOff_-6I4K", Xt = "vk_stacked_2T--a", u = {
246
+ grid: Ot,
247
+ card: At,
248
+ item: Mt,
249
+ label: Ht,
250
+ value: xt,
251
+ valueMono: Ft,
252
+ boolOn: Nt,
253
+ boolOff: Et,
254
+ stacked: Xt
255
+ };
256
+ var C = /* @__PURE__ */ k("<span>"), Jt = /* @__PURE__ */ k("<div>"), Kt = /* @__PURE__ */ k("<div><span>");
257
+ function Ut(t, r) {
258
+ switch (t.kind) {
259
+ case "text":
260
+ return (() => {
261
+ var e = C();
262
+ return l(e, () => t.value(r)), d(() => i(e, u.value)), e;
263
+ })();
264
+ case "mono":
265
+ return (() => {
266
+ var e = C();
267
+ return l(e, () => t.value(r)), d(() => i(e, u.valueMono)), e;
268
+ })();
269
+ case "bool":
270
+ return (() => {
271
+ var e = C();
272
+ return l(e, (() => {
273
+ var a = A(() => !!t.on(r));
274
+ return () => a() ? c(X, {
275
+ get class() {
276
+ return y.iconSm;
277
+ },
278
+ "aria-hidden": "true"
279
+ }) : "—";
280
+ })()), d(() => i(e, `${u.value} ${t.on(r) ? u.boolOn : u.boolOff}`)), e;
281
+ })();
282
+ case "custom":
283
+ return t.render(r);
284
+ default:
285
+ return Lt(t, "AttributeField.kind");
286
+ }
287
+ }
288
+ function no(t) {
289
+ return c(T, {
290
+ get when() {
291
+ return t.row() != null;
292
+ },
293
+ get children() {
294
+ var r = Jt();
295
+ return l(r, c(H, {
296
+ get each() {
297
+ return t.fields;
298
+ },
299
+ children: (e) => (() => {
300
+ var a = Kt(), b = a.firstChild;
301
+ return l(b, () => e.label), l(a, () => Ut(e, t.row()), null), d((_) => {
302
+ var v = u.item, g = u.label;
303
+ return v !== _.e && i(a, _.e = v), g !== _.t && i(b, _.t = g), _;
304
+ }, {
305
+ e: void 0,
306
+ t: void 0
307
+ }), a;
308
+ })()
309
+ })), d(() => i(r, `${u.grid} ${u[t.variant] ?? ""}`)), r;
310
+ }
311
+ });
312
+ }
313
+ export {
314
+ no as A,
315
+ eo as P,
316
+ ao as T,
317
+ ro as a,
318
+ U as p,
319
+ lo as r
320
+ };