@vokril/ui-solid 0.28.0 → 0.31.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 (262) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/README.md +48 -4
  3. package/dist/{AttributeGrid-eND8YDby.cjs → AttributeGrid-Ch1k9v5j.cjs} +1 -1
  4. package/dist/{AttributeGrid-CASILa4u.js → AttributeGrid-DqFd4gBm.js} +3 -3
  5. package/dist/Button-4meERfnv.js +300 -0
  6. package/dist/Button-OyZHrl-t.cjs +1 -0
  7. package/dist/CommandPalette-CxYZUJtN.cjs +2 -0
  8. package/dist/{CommandPalette-Cj618AOz.js → CommandPalette-DwOp8y1-.js} +1467 -1466
  9. package/dist/{CopyButton-B5gS2ft3.cjs → CopyButton-16QNPgz6.cjs} +1 -1
  10. package/dist/{CopyButton-g-WSiBDZ.js → CopyButton-BVS49lMS.js} +1 -1
  11. package/dist/{DateRangePicker-CJD9ADgB.js → DateRangePicker-8QvydugY.js} +4 -4
  12. package/dist/{DateRangePicker-Frc0HVxp.cjs → DateRangePicker-DI-06xWY.cjs} +1 -1
  13. package/dist/{GuidedTour-B6q7lYhn.cjs → GuidedTour-DUQwdW8n.cjs} +1 -1
  14. package/dist/{GuidedTour-CFCvRJN4.js → GuidedTour-DXMmHn0o.js} +2 -2
  15. package/dist/{HostPortal-CXGUUhP8.js → HostPortal-Ba3MD9CG.js} +1 -1
  16. package/dist/HostPortal-CpWsArs6.cjs +1 -0
  17. package/dist/{IconPicker-DYqNi5ud.js → IconPicker-D1G8HK92.js} +3 -3
  18. package/dist/{IconPicker-CIbJb1ei.cjs → IconPicker-Q-ZDtNkd.cjs} +1 -1
  19. package/dist/Input-Brp5EDhg.cjs +1 -0
  20. package/dist/Input-CZi8KEfm.js +374 -0
  21. package/dist/Modal-CBi7Wd2V.cjs +1 -0
  22. package/dist/Modal-iyY1HUtr.js +588 -0
  23. package/dist/{PageSkeleton-BPbb28-H.cjs → PageSkeleton-B_-4fz1q.cjs} +1 -1
  24. package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-zNyjLPlk.js} +3 -3
  25. package/dist/{Popover-Cttb6NYT.js → Popover-DVi179wu.js} +4 -3
  26. package/dist/Popover-DXrczbt9.cjs +1 -0
  27. package/dist/{SearchableSelect-BvCm4enQ.js → SearchableSelect-DtHbWJhR.js} +34 -33
  28. package/dist/SearchableSelect-yLVqCGFo.cjs +1 -0
  29. package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +50 -0
  30. package/dist/{StatusBarNotificationBell-yryWdwyX.js → StatusBarNotificationBell-ZTEhZFmJ.js} +4980 -4678
  31. package/dist/{Stepper-D9i1Xclm.js → Stepper-CyRgzWlR.js} +1 -1
  32. package/dist/{Stepper-Ci5JpLbS.cjs → Stepper-u2ZsE5oP.cjs} +1 -1
  33. package/dist/{Textarea-CeAGf08O.cjs → Textarea-DASNQNoi.cjs} +1 -1
  34. package/dist/{Textarea-B5QqqKnI.js → Textarea-szHXQahi.js} +1 -1
  35. package/dist/{TimeSeriesChart-DOwi2lJs.js → TimeSeriesChart-D7lIqolp.js} +1 -1
  36. package/dist/{TimeSeriesChart-huvheefm.cjs → TimeSeriesChart-DGzM9B--.cjs} +1 -1
  37. package/dist/{ToggleButton-CFM8P3JY.js → ToggleButton-B22PsCqo.js} +61 -60
  38. package/dist/ToggleButton-DWslrIBN.cjs +1 -0
  39. package/dist/_internal/contract/notification.d.cts +13 -3
  40. package/dist/_internal/contract/notification.d.ts +13 -3
  41. package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
  42. package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
  43. package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
  44. package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
  45. package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
  46. package/dist/anchoredLayout-E0mqCWxk.js +233 -0
  47. package/dist/appThemeDerivation-BylmT80v.cjs +1 -0
  48. package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  49. package/dist/base.css +2 -2
  50. package/dist/charts/index.cjs +1 -1
  51. package/dist/charts/index.js +1 -1
  52. package/dist/context/DesktopContextMenuContext.d.cts +8 -1
  53. package/dist/context/DesktopContextMenuContext.d.ts +8 -1
  54. package/dist/createDialogShellFocus-CQ0VNC2g.cjs +1 -0
  55. package/dist/{createDialogShellFocus-B4piXDU4.js → createDialogShellFocus-DbiQmLgb.js} +9 -9
  56. package/dist/createResizableSidebar-COlpGQ7H.cjs +1 -0
  57. package/dist/createResizableSidebar-cmCKTIg_.js +504 -0
  58. package/dist/desktop/index.cjs +1 -1
  59. package/dist/desktop/index.js +3 -3
  60. package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
  61. package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  62. package/dist/feedback/index.cjs +1 -1
  63. package/dist/feedback/index.js +3 -3
  64. package/dist/forms/Input.d.cts +20 -0
  65. package/dist/forms/Input.d.ts +20 -0
  66. package/dist/forms/InputMessage.d.cts +19 -0
  67. package/dist/forms/InputMessage.d.ts +19 -0
  68. package/dist/forms/index.cjs +1 -1
  69. package/dist/forms/index.js +9 -9
  70. package/dist/grid/index.cjs +1 -1
  71. package/dist/grid/index.js +1 -1
  72. package/dist/index.cjs +1 -1
  73. package/dist/index.js +516 -509
  74. package/dist/layout/index.cjs +1 -1
  75. package/dist/layout/index.js +2 -2
  76. package/dist/layout/resizeCarry.d.cts +17 -0
  77. package/dist/layout/resizeCarry.d.ts +17 -0
  78. package/dist/mainRealmDom-B215swW-.js +166 -0
  79. package/dist/mainRealmDom-BYGSE-fo.cjs +1 -0
  80. package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
  81. package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
  82. package/dist/navigation/index.cjs +1 -1
  83. package/dist/navigation/index.js +1 -1
  84. package/dist/notifications/NotificationItem.d.cts +12 -3
  85. package/dist/notifications/NotificationItem.d.ts +12 -3
  86. package/dist/notifications/NotificationsCenter.d.cts +18 -0
  87. package/dist/notifications/NotificationsCenter.d.ts +18 -0
  88. package/dist/notifications/RunningProgressCards.d.cts +3 -0
  89. package/dist/notifications/RunningProgressCards.d.ts +3 -0
  90. package/dist/notifications/StatusBarNotificationBell.d.cts +18 -6
  91. package/dist/notifications/StatusBarNotificationBell.d.ts +18 -6
  92. package/dist/notifications/dismissableToastIds.d.cts +2 -1
  93. package/dist/notifications/dismissableToastIds.d.ts +2 -1
  94. package/dist/notifications/fireNotification.d.cts +35 -16
  95. package/dist/notifications/fireNotification.d.ts +35 -16
  96. package/dist/notifications/index.cjs +1 -1
  97. package/dist/notifications/index.d.cts +1 -0
  98. package/dist/notifications/index.d.ts +1 -0
  99. package/dist/notifications/index.js +56 -52
  100. package/dist/notifications/nativeEngine.d.cts +54 -16
  101. package/dist/notifications/nativeEngine.d.ts +54 -16
  102. package/dist/notifications/notificationCardServices.d.cts +2 -1
  103. package/dist/notifications/notificationCardServices.d.ts +2 -1
  104. package/dist/notifications/notificationCommands.d.cts +3 -3
  105. package/dist/notifications/notificationCommands.d.ts +3 -3
  106. package/dist/notifications/notificationEntryList.d.cts +91 -0
  107. package/dist/notifications/notificationEntryList.d.ts +91 -0
  108. package/dist/notifications/notificationService.d.cts +33 -3
  109. package/dist/notifications/notificationService.d.ts +33 -3
  110. package/dist/notifications/toast.d.cts +3 -0
  111. package/dist/notifications/toast.d.ts +3 -0
  112. package/dist/notifications/toastCorner.d.cts +8 -0
  113. package/dist/notifications/toastCorner.d.ts +8 -0
  114. package/dist/notifications/toastFilterPolicy.d.cts +33 -1
  115. package/dist/notifications/toastFilterPolicy.d.ts +33 -1
  116. package/dist/overlay/Modal.d.cts +6 -0
  117. package/dist/overlay/Modal.d.ts +6 -0
  118. package/dist/overlay/backgroundInert.d.cts +6 -2
  119. package/dist/overlay/backgroundInert.d.ts +6 -2
  120. package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
  121. package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
  122. package/dist/overlay/index.cjs +1 -1
  123. package/dist/overlay/index.js +70 -68
  124. package/dist/overlay/nativeTitleHold.d.cts +24 -0
  125. package/dist/overlay/nativeTitleHold.d.ts +24 -0
  126. package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
  127. package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
  128. package/dist/server/{AttributeGrid-CMi-UtWb.js → AttributeGrid-Bpjlauuz.js} +2 -2
  129. package/dist/server/{AttributeGrid-B7sb3btp.cjs → AttributeGrid-DNYdKb8J.cjs} +1 -1
  130. package/dist/server/CommandPalette-BuVxnqBG.cjs +1 -0
  131. package/dist/server/{CommandPalette-CozogFlk.js → CommandPalette-Dn3NKXPM.js} +1095 -1069
  132. package/dist/server/{DateRangePicker-KLZzyuPJ.cjs → DateRangePicker-BFzNjaME.cjs} +1 -1
  133. package/dist/server/{DateRangePicker-C35q8BTw.js → DateRangePicker-CnYkTgXX.js} +3 -3
  134. package/dist/server/{GuidedTour-DmLbBttx.js → GuidedTour-BZardPYW.js} +1 -1
  135. package/dist/server/{GuidedTour-DfV0yzqh.cjs → GuidedTour-yhdZk2SU.cjs} +1 -1
  136. package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4IrAeWN.js} +1 -1
  137. package/dist/server/HostPortal-D5ECrJvn.cjs +1 -0
  138. package/dist/server/{IconPicker-B1soopAp.cjs → IconPicker-C5lAN9pX.cjs} +1 -1
  139. package/dist/server/{IconPicker-B4aXspLw.js → IconPicker-DDWgB7sm.js} +3 -3
  140. package/dist/server/Input-AdF-i0O8.js +245 -0
  141. package/dist/server/Input-XF9Jr0G9.cjs +1 -0
  142. package/dist/server/{Modal-BheFQLs1.js → Modal-C5dzgcRW.js} +102 -97
  143. package/dist/server/{Modal-BswxV8Pn.cjs → Modal-nAhBS1L9.cjs} +1 -1
  144. package/dist/server/Popover-C5avmGWz.cjs +1 -0
  145. package/dist/server/{Popover-Cg28aPUZ.js → Popover-H3AAYZI0.js} +57 -57
  146. package/dist/server/{SearchableSelect-09ECcDlB.cjs → SearchableSelect-CZrXDKfC.cjs} +1 -1
  147. package/dist/server/{SearchableSelect-vjhS4c-H.js → SearchableSelect-DMqed5Er.js} +1 -1
  148. package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +49 -0
  149. package/dist/server/{StatusBarNotificationBell-DdAdsduo.js → StatusBarNotificationBell-DW2l5O9B.js} +4812 -4520
  150. package/dist/server/{Stepper-DxNrskdq.cjs → Stepper-CpapA_WH.cjs} +1 -1
  151. package/dist/server/{Stepper-n5f9r-ye.js → Stepper-gGA7JwjV.js} +1 -1
  152. package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-Bh5LVrBn.cjs} +1 -1
  153. package/dist/server/{Textarea-BTH48NET.js → Textarea-DVkfGkP0.js} +1 -1
  154. package/dist/server/{ToggleButton-TE3Xf2yD.cjs → ToggleButton-CA9T-OsI.cjs} +1 -1
  155. package/dist/server/{ToggleButton-FywO2CCI.js → ToggleButton-CBNKajZa.js} +4 -4
  156. package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
  157. package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
  158. package/dist/server/appThemeDerivation-BylmT80v.cjs +1 -0
  159. package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation-DBAOkGl7.js} +260 -231
  160. package/dist/server/{createDialogShellFocus-BiBAZOCI.cjs → createDialogShellFocus-CDaLuPg8.cjs} +1 -1
  161. package/dist/server/{createDialogShellFocus-BFo8awdj.js → createDialogShellFocus-LGDBOVnr.js} +6 -6
  162. package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-Dvu7iEk1.js} +1 -1
  163. package/dist/server/{createResizableSidebar-GFgZIj-5.cjs → createResizableSidebar-v40ZOb-Q.cjs} +1 -1
  164. package/dist/server/desktop/index.cjs +1 -1
  165. package/dist/server/desktop/index.js +3 -3
  166. package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
  167. package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
  168. package/dist/server/forms/index.cjs +1 -1
  169. package/dist/server/forms/index.js +7 -7
  170. package/dist/server/grid/index.cjs +1 -1
  171. package/dist/server/grid/index.js +1 -1
  172. package/dist/server/{index-UIjsx3oJ.js → index-BEARfm54.js} +3604 -3617
  173. package/dist/server/index-C6rYfWCJ.cjs +1 -0
  174. package/dist/server/index.cjs +1 -1
  175. package/dist/server/index.js +478 -472
  176. package/dist/server/layout/index.cjs +1 -1
  177. package/dist/server/layout/index.js +2 -2
  178. package/dist/server/navigation/index.cjs +1 -1
  179. package/dist/server/navigation/index.js +1 -1
  180. package/dist/server/notifications/index.cjs +1 -1
  181. package/dist/server/notifications/index.js +56 -52
  182. package/dist/server/overlay/index.cjs +1 -1
  183. package/dist/server/overlay/index.js +54 -53
  184. package/dist/server/tokens/index.cjs +1 -1
  185. package/dist/server/tokens/index.js +30 -28
  186. package/dist/solid/feedback/Badge.jsx +3 -14
  187. package/dist/solid/forms/Button.jsx +3 -14
  188. package/dist/solid/forms/Input.jsx +31 -5
  189. package/dist/solid/forms/Input.module.css.js +1 -0
  190. package/dist/solid/forms/InputMessage.jsx +86 -0
  191. package/dist/solid/forms/PressableSurface.jsx +3 -14
  192. package/dist/solid/layout/ResizeHandle.jsx +11 -1
  193. package/dist/solid/layout/resizeCarry.js +31 -0
  194. package/dist/solid/notifications/NotificationHost.jsx +6 -29
  195. package/dist/solid/notifications/NotificationItem.jsx +5 -5
  196. package/dist/solid/notifications/NotificationPanel.jsx +14 -4
  197. package/dist/solid/notifications/NotificationsCenter.jsx +70 -12
  198. package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
  199. package/dist/solid/notifications/StatusBarNotificationBell.jsx +21 -19
  200. package/dist/solid/notifications/catalogAdapter.js +1 -0
  201. package/dist/solid/notifications/fireNotification.js +21 -16
  202. package/dist/solid/notifications/index.js +1 -0
  203. package/dist/solid/notifications/nativeEngine.js +51 -11
  204. package/dist/solid/notifications/notificationEntryList.js +168 -0
  205. package/dist/solid/notifications/notificationService.js +22 -4
  206. package/dist/solid/notifications/toast.js +54 -7
  207. package/dist/solid/notifications/toastCorner.js +3 -0
  208. package/dist/solid/notifications/toastFilterPolicy.js +12 -0
  209. package/dist/solid/overlay/Drawer.jsx +2 -1
  210. package/dist/solid/overlay/Modal.jsx +42 -4
  211. package/dist/solid/overlay/command-palette/CommandPalette.jsx +4 -4
  212. package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +8 -7
  213. package/dist/solid/overlay/nativeTitleHold.js +33 -0
  214. package/dist/solid/overlay/tooltipDirective.js +3 -11
  215. package/dist/solid/tokens/index.js +1 -0
  216. package/dist/solid/tokens/palette/paletteContract.js +27 -0
  217. package/dist/style.css +2 -2
  218. package/dist/theme.css +1 -1
  219. package/dist/tokens/index.cjs +1 -1
  220. package/dist/tokens/index.d.cts +1 -0
  221. package/dist/tokens/index.d.ts +1 -0
  222. package/dist/tokens/index.js +30 -28
  223. package/dist/tokens/palette/paletteContract.d.cts +17 -0
  224. package/dist/tokens/palette/paletteContract.d.ts +17 -0
  225. package/dist/tokens/tokens.css +1 -1
  226. package/dist/ui.css +1 -1
  227. package/package.json +1 -1
  228. package/dist/Button-Bb68ymNP.cjs +0 -1
  229. package/dist/Button-D-T0tyGF.js +0 -305
  230. package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
  231. package/dist/HostPortal-CgJwxt-f.cjs +0 -1
  232. package/dist/Input-CZruORyy.cjs +0 -1
  233. package/dist/Input-DkPhsdfk.js +0 -227
  234. package/dist/Modal-CY6ePolt.cjs +0 -1
  235. package/dist/Modal-NzZzHSwb.js +0 -559
  236. package/dist/Popover-CWrR51eG.cjs +0 -1
  237. package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
  238. package/dist/StatusBarNotificationBell-CJ3HuhRu.cjs +0 -50
  239. package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
  240. package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
  241. package/dist/anchoredLayout-FC-qv8xm.js +0 -250
  242. package/dist/appThemeDerivation-Be_oKljl.cjs +0 -1
  243. package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
  244. package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
  245. package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
  246. package/dist/dialogFocusRestore--dH59ER2.js +0 -35
  247. package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  248. package/dist/mainRealmDom-C12lr9lm.js +0 -171
  249. package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
  250. package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
  251. package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
  252. package/dist/server/Input-CjvD8w18.cjs +0 -1
  253. package/dist/server/Input-DaEN2JJd.js +0 -127
  254. package/dist/server/Popover-BsxIKBbl.cjs +0 -1
  255. package/dist/server/StatusBarNotificationBell-Z2LmIkM1.cjs +0 -49
  256. package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
  257. package/dist/server/appThemeDerivation-Be_oKljl.cjs +0 -1
  258. package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
  259. package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
  260. package/dist/server/index-2mQPVEDR.cjs +0 -1
  261. package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
  262. package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,87 @@ 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.31.0
9
+
10
+ ### Minor Changes
11
+
12
+ - 5aab192: `Modal`: `maximizeInset` sets the gap kept above a maximized modal (default unchanged, room for a
13
+ host title bar; `'0px'` covers the whole viewport). A maximized modal can now be pulled off the top
14
+ by its title: it returns to its size under the pointer and the drag carries on, like a desktop
15
+ window.
16
+
17
+ ### Patch Changes
18
+
19
+ - 5aab192: `Drawer` (window drawer): the backdrop beside the panel was made inert with the rest of the
20
+ background, so clicking outside the drawer did nothing. It now stays live and closes the drawer.
21
+ - 5aab192: `ResizeHandle`: when the size reaches `min` or `max` the pointer keeps moving but the pane stays;
22
+ the distance past the edge is carried, so moving back no longer shrinks the pane at once while the
23
+ pointer is still far away (it follows the pointer again once it is back at the edge). Applies when
24
+ `value`, `min` and `max` are passed.
25
+
26
+ ## 0.30.0
27
+
28
+ ### Minor Changes
29
+
30
+ - A notification card's expand chevron points the way the card opens, turned by the corner it is drawn at, as the reference turns its cards' expand and collapse icons with the notifications' position (`workbench/browser/parts/notifications/notificationsActions.ts:21-24`, `:29-35`): at a bottom corner, where the toast stack grows up, the collapsed card's chevron points up and the open card's down; at a top corner the other way round. `NotificationItem` takes `corner` — a `ToastPosition` —, drawn on the card as `data-edge="top" | "bottom"`. The toast stack passes its position, and a `NotificationsCenter` its `corner` to its running cards — unset, the center is at the bottom, as its hide button already says. A card drawn at no corner (a `NotificationPanel`, the acknowledgment's modal layer, a card a host draws without `corner`) opens downward, as every card did until now.
31
+
32
+ Behaviour change: at a bottom corner — the default `toastPosition`, `bottom-right` — a toast's chevron now points up while the card is collapsed and down once it is open; it pointed down, then up. A host that draws `NotificationItem` itself at a corner (a window of its own for the toasts) passes `corner` for the same turn.
33
+ - A notification center's notifications are a list the focus moves along, as the reference's notifications list is. `NotificationsCenter` focuses its first notification when it opens — a running progress card, else the newest record; with none, the center itself, as the reference focuses its empty list (`workbench/browser/parts/notifications/notificationsCenter.ts:140-150`, `:172-174`; `notificationsList.ts:227-233`). Down moves to the next notification and Up to the previous one, without wrapping, Home and End to the first and the last (`workbench/browser/actions/listCommands.ts:75-107`, `:169-193`); Page Down goes to the last notification the list shows and from there a page further, Page Up to the first it shows and from there a page further up, as the reference's list pages (`listCommands.ts:143-167`; `base/browser/ui/list/listWidget.ts:1836-1902`); the notification that takes the focus is scrolled just into view, as the reference reveals its list's focus (`listCommands.ts:58-73`; `listWidget.ts:1985-1996`) — from a notification or a button inside one; a key pressed in an editable element stays its own (`listWidget.ts:313-319`). A center that closes while it holds the focus — Escape, its hide button, the bell — gives the focus back, as the reference's hide does only when the center had it (`notificationsCenter.ts:370`, `:386-389`); a center that closes after the focus went elsewhere leaves it there. Where the focus goes back to is the kit's own choice: the element the center was opened from — the bell, or what the user worked in —, while the reference focuses its editor group (`:386-389`, and `:358-361` when the last notification goes), a workbench part a kit center does not know. Until now the center and its popover had no focusable list: opening it left the focus where it was. The center is named "Notifications" (`aria-label`) — its own focus target when it lists nothing —, so it has a name wherever it is drawn, as the reference names its list (`notificationsCenter.ts:298-300`); the bell's popover named it before, a center drawn elsewhere had none.
34
+
35
+ The focus stays in the list while its notifications change under it, as in the reference's list (`notificationsList.ts:149-199`): the notification that holds it keeps it while it is drawn; when it goes — its remove button, "clear all", its operation ending — the focus goes to the notification before it, the first when it was the first, and to the center (or the panel) itself when none is left. The center hides when its last notification goes, as the reference's (`notificationsCenter.ts:344-362`); one shown empty stays open. Whether the center held the focus is the center's own record, kept as the focus enters and leaves it, so the focus is given back on close even when it fell with a removed notification — the reference measures it before the removal (`notificationsCenter.ts:344-346`).
36
+
37
+ The records of `NotificationsCenter` and `NotificationPanel` and the running progress cards they draw take the focus from code (`tabindex="-1"`) and are named by their severity, their message and their source (`notificationsList.ts:271-283`), e.g. "Warning: Disk almost full, Source: Connection". The toast stack and the centers move by one key table, whose one row of their own is Page Up and Page Down: on the toast stack they now go to the first and the last toast, as the reference binds its first-toast and last-toast commands to Page Up and Page Down with Home and End as second keys (`workbench/browser/parts/notifications/notificationsCommands.ts:248-270`) — they stepped one toast before.
38
+
39
+ A host that shows a center again — the reference focuses the first notification then too — or brings a `NotificationPanel` on screen (a dock, a tool window) focuses the first notification itself with the new `focusFirstNotificationEntry(root, options?)`, which returns whether that notification now holds the focus: `false` when `root` lists none, or when the one it lists could not take the focus (an inert or hidden subtree), so the host focuses something else. `NotificationsCenter` takes `ref` for the host that needs the center's element.
40
+
41
+ Behaviour note: a test that finds a running card by a pattern of its title (`getByLabelText(/Exporting/)`) now also finds the center's record of the same issue; the card's own name is its severity and title (`'Info: Exporting'`).
42
+ - A notification center shown in a top corner points its hide button up, toward the edge it hides to, as the reference turns its center's hide icon at the top (`workbench/browser/parts/notifications/notificationsCenter.ts:104-111`). `NotificationsCenter` takes `corner` — a `ToastPosition`, the corner its host shows it in (the reference places its center at the notifications' position, so a host passes the toasts' `toastPosition`) —; in `top-right` and `top-left` the hide button draws a chevron up. Unset, the center opens from the bottom, as from the status bar's bell, and its hide chevron points down as before.
43
+ - A notification center hides when do not disturb turns on, as the reference's hides when its error filter turns on (`workbench/browser/parts/notifications/notificationsCenter.ts:83`, `:130-134`) — the center's own "Enable Do Not Disturb" too, which in the reference writes the same filter (`:239-246`). Do not disturb is the setting or the realm's run-time filter (`Notifications.setFilter('errors-only')`), the one state the bell and the center show; the center closes through its `onHide` only when that state turns on while it is open, so a center opened while do not disturb is on stays open, and the second of the two turning on closes nothing. A host that hides the center itself (an overlay of its own) no longer needs to watch the filter for it.
44
+ - A notification can name the key its "remind me later" keys on, apart from "don't show again": `ToastCommonOptions.remindKey` and a catalog payload's `remindKey` (`NotificationCatalogPayload.remindKey`), given by the one who issues it, as the reference keys a notification's suppression on the id its issuer gives (`neverShowAgain.id`, `workbench/services/notification/common/notificationService.ts:197-217`). The card's gear menu writes the reminder on it, and an issue that carries the key is held back by a reminder on that key only — not by one on the same text —, so two notifications of the same text about different subjects (two connections of the same name) keep their own reminders; until now a reminder keyed on the source and the text silenced both. The key adds no "Don't show again" entry. Unset, the reminder keys as before: on `dontShowAgainKey`, else on the source and the title (a progress: the text it was issued with).
45
+
46
+ The card's reminder key has one home, the pure `cardRemindKey(card)` (`RemindKeySource`): the card's own key (its issuer's, or a progress's), else its "don't show again" key, else the key derived from its source and title. The engine's `NotificationInput.remindKey` now wins over `neverShowAgainKey`; the progress verb sets it to the issuer's key, else the "don't show again" key, else the key of its initial text, so a progress's reminder keys as before. The issue side still reads up to two keys: an issue without a remind key is held back by a reminder on its "don't show again" key or on its text, as before.
47
+
48
+ Reminders already set are not carried over: one written on a notification's text no longer holds that notification once its issuer gives it a `remindKey`. No migration is made, and none is needed — a reminder lasts 15 minutes, an hour or until 09:00 the next day, so such a reminder lapses once and the next one is written on the new key.
49
+ - `Input` takes a message bound to it, as the reference's input box shows its validation message: `InputProps.message` — an `InputMessage`, `{ tone, text }` with `InputMessageTone` `'error' | 'warning' | 'info'`. The message is drawn under the input while the input has the focus, in a view that floats over what lies below (a tree's rows, a form's next field) and takes no room: as wide as the input and laid out like the reference's context view, below it or above it where the window has no room (`base/browser/ui/inputbox/inputBox.ts:238-251`, `:491-536`; `base/browser/ui/contextview/contextview.ts:344-351`). It is the input's description (`aria-describedby`, added to a `FormField`'s hint or the caller's own), which the focus reads, and it is announced through the host's announcer when it appears or changes while the input has the focus, its tone first — "Error: …", "Warning: …", "Info: …" (`inputBox.ts:538-548`) —, the same message again is not (`inputBox.ts:417-421`, `:434-436`). The focus itself announces nothing, so the message is not spoken twice: the reference's input has no description and alerts the message on every focus instead (`inputBox.ts:246-251` → `:538-548`); with the description read by the focus, the kit's message is heard once as the focus arrives, as the reference's is, and a message that appears or changes under the focus is announced in both. An error is announced assertively and marks the input invalid (`aria-invalid`, `inputBox.ts:455-468`); a warning or an info, which must not cut into the typing, is read politely — the reference alerts every tone. The tone colours the input's edge. A message without text shows nothing. Until now an inline input (a tree row's rename, a setting's file name) had no place for its validation message: a `FormField`'s `hint` and `error` belong to a labelled form field.
50
+
51
+ Drawing a message needs the kit host (`KitHostProvider`), whose announcer reads it: an input with no provider above it renders, and throws a `BugIndicatingError` when its first message with text is drawn — while it renders when it is created with one, otherwise in the update that gives it one (an error boundary above it catches it).
52
+
53
+ `Input` now renders the input plus an optional message node: a fragment of the `<input>` and, while it has a message with text, the message's view — drawn in a floating layer of the input's document, leaving only an empty marker after the input. Without a message the DOM is the `<input>` alone, as before; code that takes an `Input`'s rendered result for a single element (Solid's `children()` helper) gets a list.
54
+ - **Breaking:** the `LayoutSettings` type is gone from `@vokril/ui-solid/settings`. Nothing in the kit read it: the kit renders no layout settings group, and an application keeps its own — with its own fields, which the kit's five-field copy could only drift from. Its `zenMode` field ("Zen mode on startup") was dead even in the application: whether a window closed in Zen opens in Zen again is the reference's `zenMode.restore`, a setting of the Zen group, not of the layout. The unions the kit's components do use stay: `CommandPaletteStyle`, `ErDiagramEdgeStyle`, `MainMenuDisplayMode`, `WorkspaceTabBarPlacement`. A host that typed its layout settings with the kit's `LayoutSettings` declares its own type; a stored `zenMode` is the host's to drop when it reads its record.
55
+ - A desktop context menu row's `disabled` may be a getter, as its `checked` already may: `DesktopContextMenuItem.disabled` is `boolean | (() => boolean)`, and the renderer reads it in the row's reactive scope — its dimming and `aria-disabled`, its click and its hover —, so a row of a menu kept open (`keepOpenOnSelect`) dims or comes back in place when its state changes, as the reference's action item follows its action's `enabled` change (`base/common/actions.ts:135-142`, `base/browser/ui/actionbar/actionViewItems.ts:59-73`). A visibility checklist can disable the entry of the last view left shown while the user unticks the others. A plain boolean behaves as before.
56
+
57
+ **Type widened:** `DesktopContextMenuItem.disabled` was `disabled?: boolean` and is now `disabled?: boolean | (() => boolean)`. Code that only writes it compiles and behaves as before. Code that reads an item's `disabled` itself, outside the kit's renderer: handing it on where a `boolean` is expected no longer compiles, and a truthiness test (`if (item.disabled)`) still compiles but is true for every getter — read it as `typeof item.disabled === 'function' ? item.disabled() : item.disabled`.
58
+ - The palette's contract is readable at run time (`@vokril/ui-solid/tokens`): `THEME_PALETTE_TOKENS`, every token of `ThemePalette` once (a frozen list built from a record keyed by the type, so a token added to the type cannot be left out), and `isThemePaletteColor(value)`, whether a value is a colour in the one form the kit reads a token in — `#rgb` or `#rrggbb`, hex digits in either case. The kit's colour maths throws on anything else, its editor and terminal derivation turns anything else black, and the token is written as it is into the theme's CSS custom properties, where a value without its `#`, with spaces, `#rrggbbaa`, `rgb(…)` or a colour name is not the colour the derivation computed with. A host that reads a palette from outside data (an imported theme, a plugin's theme, a stored user theme) checks it with these instead of restating the list and the form. Every built-in theme keeps the contract (a test).
59
+ - The realm's notification service has a run-time filter — not a setting: nothing of it is stored, and it ends with the realm. `Notifications.setFilter(filter)`, `getFilter()` and `onDidChangeFilter` (the reference's `INotificationService` members) take a `NotificationFilter`: `'off'`, or `'errors-only'`, the reference's error filter, which its Zen mode sets while `zenMode.silentNotifications` is on and turns off on exit (`workbench/browser/layout.ts:1485`, `:1513-1515`, `:1549-1555`, `:1592-1594`). Under it a notification of the default or the optional priority that is not an error is silent — its record is kept, it gets no toast (`workbench/common/notifications.ts:494-502`); errors, urgent notifications and acknowledgments still toast. A host holds notifications back with it while a state of its own lasts — its Zen mode — without writing the user's do not disturb, which is durable and application-wide.
60
+
61
+ One rule, the policy's own: the filter decides through the priority (the pure `filteredPriority(priority, severity, filter)`), the `silent` priority the decision already knows, as the reference's filter makes a notification silent; the notification keeps the priority it was issued with in its record and on its card. A per-notification `priority: 'silent'` is the issuer's choice and does not cover it. Setting the filter takes back the shown cards it now silences, as a settings change does: a running progress goes to the notification center, alive — its outcome comes back on the toast stack when it fails (an error) and ends `suppressed` when it succeeds —, the other cards close `suppressed`, their records kept. The kit takes back what its issue decision silences, errors staying on the screen; the reference hides every toast at that moment (`notificationsToasts.ts:143-145`), as for its do not disturb, which the kit does not share (0.28.0).
62
+
63
+ The reference shows its one filter as do not disturb: the status bar bell and the notification center's toggle now do too while the run-time filter is on — the bell's bell-off glyph and "Notifications (Do Not Disturb on)" (`notificationsStatus.ts:46`, `:95-102`), the center's "Disable Do Not Disturb" —, and turning do not disturb off from the center ends both the setting and the filter, as the reference's toggle turns its one filter off (`notificationsCenter.ts:243-245`).
64
+
65
+ **Breaking:** a `Notifications` written outside the kit (a test double) adds `getFilter`, `setFilter` and `onDidChangeFilter`.
66
+
67
+ ### Patch Changes
68
+
69
+ - The theme's keyboard focus ring (`theme.css`, `base.css`, `style.css`) now has the low specificity its comment always promised, that of a bare `:focus-visible` (0,1,0), so a component's own focus style wins over it. Its exclusions (the code editor's and the terminal's own focus, the text controls) were written as plain `:not()`s, each of which adds its argument's weight: the rule weighed (0,3,3) and beat every component's `.class:focus-visible` rule (0,2,0). A component that draws its focus with its own offset (a breadcrumb link's 1px, an application tab bar's inset -2px) got the theme's 2px offset instead, and one that draws a halo with `box-shadow` (tabs, toolbar buttons, the date picker's days, tree rows) got the theme's outline painted on top of it. The exclusions now sit inside `:where()`, which adds no specificity; elements with no focus style of their own (a dialog's shell) keep the ring, and the forced-colors net is unchanged. Behaviour change: those components now show only the focus indication they declare.
70
+
71
+ Call `initFocusModality(window)` (`@vokril/ui-solid/a11y`) in every window — the main one at startup, each auxiliary window as it opens. 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 the tracker marks the window as navigating by keyboard (`data-focus-modality="keyboard"`). `Tabs` and `Chip` used to get the theme's ring whatever the tracker said, since the ring outweighed their own rules; now their indicator follows the tracker as the others' already did, so a host that never called it sees no focus on them. The README's host section lists it, and the showcase calls it.
72
+ - The command palette closes before it runs the chosen pick, as the reference hides its picker and then accepts the item (`platform/quickinput/browser/pickerQuickAccess.ts:355-359`). Closing hands the focus back to the element it came from and lifts the background's inertness, so a command run from the palette that moves the focus — to a view, an editor, a page — now keeps it there; until now the palette ran the command first and its close then took the focus back to the previous element (and a focus into the still-inert background went nowhere). A command that opens another overlay, the palette itself in a submenu included, opens it after the palette has gone. The same holds for a submenu's row, a settings or database-object row, and the "Configure Keybinding" gear, whose keybinding editor opens after the palette has closed and keeps the focus. The reference's gear calls its opener first and then returns `CLOSE_PICKER`, which hides the picker (`workbench/contrib/quickaccess/browser/commandsQuickAccess.ts:137-139`; `platform/quickinput/browser/pickerQuickAccess.ts:363-382`): its editor takes the focus after the hide only because the opener is asynchronous. The kit closes first and then calls the opener — the same order, without leaning on the opener's timing. `onCommandExecuted` is now called after `onClose`.
73
+
74
+ The order rests on the host's `onClose` turning `open` false before it returns, which its JSDoc now states: a close that lands later — deferred to a microtask, a timer or a transition, or written inside a `batch` that is still open — lets the pick run under the open palette, and the late close takes the focus back from it.
75
+ - A control's native `title` no longer goes back to an old value when the kit's tooltip hides. `Button`, `PressableSurface`, `Badge` and the `tooltip` directive hold the element's `title` back while their own tooltip shows (so the browser draws no second tooltip) and give it back when it hides; a `title` written again meanwhile — a reactive title whose value changed while the tooltip showed, such as a toggle named after what a click does — was overwritten by the held copy. The status bar bell, whose center opened while its tooltip showed, went on calling itself by its closed-state name once the pointer or the focus left it. What the element's owner writes while the title is held now stays: a new value, and no title — a reactive `title` that became `undefined` while the tooltip showed stays removed; only a title left alone is given back. The four surfaces share one rule for it, in the hold itself, because the hold is the one place that sees every owner: the `tooltip` directive sits on any element and does not know the props that write its title.
76
+
77
+ Behaviour change: while the tooltip shows, the held element's `title` is empty (`title=""`) rather than absent — the browser draws no tooltip for an empty title, and so the owner removing the title is a change the hold sees. An empty title also keeps an ancestor's `title` from showing as a native tooltip over the kit's. The held text is still in `data-suppressed-title`. A test that checked for no `title` attribute while a tooltip shows now finds an empty one.
78
+
79
+ ## 0.29.0
80
+
81
+ ### Minor Changes
82
+
83
+ - The status bar bell's notification center can be opened from code: `StatusBarNotificationBell` takes `open` (`StatusBarNotificationBellProps.open`), the controlled state the kit's other popovers take with `onOpenChange` (`DropdownMenu`, `Picker`). A host that passes it holds the popover's state: the bell shows what `open` says and asks for each change of its own — its click, a click outside, Escape, the center's hide, leaving the page while open — through `onOpenChange`, so the host's own code opens the center by setting its state, as a status-bar entry of a progress that runs out of sight does (the reference's window progress entry runs `notifications.showList`, `workbench/services/progress/browser/progressService.ts:258-263`). Opening the center marks the backlog seen whoever opened it. Unset, the bell holds the state itself, as before.
84
+ - A realm can tell its notification service that no notification center is in reach: `NotificationServiceDependencies.centerReachable` (the engine's `NativeNotificationEngineDependencies.centerReachable`), read at each close of the user's. The user's close of a running progress — Escape, the native overlay's close — sends the card to the notification center, which draws it until its progress ends; where the user can reach no center — an entry or login window, a page that shows neither a center nor a way to one, the quick start that mounts none — nothing could draw it there, and the card was out of reach until its operation ended. There the card now stays on the toast stack instead, its handles `open`, as Delete leaves it. Turning its notification down on the card ("don't show again", "remind me later") still ends it (`dismissed`), a finished card closes as before, and a setting that silences a running progress (do not disturb, quiet hours, a muted source …) still keeps it off the screen: the settings' choice holds with or without a center, and the progress's outcome comes back on the stack or ends `suppressed`, the timeline keeping its record. The reference's workbench always has its center, so it needs no such answer. Unset, a center is reachable, as before.
85
+ - The kit says which running progress is out of the user's sight: the pure `hiddenRunningProgress(items)` takes the stack's cards as it emits them and returns the running progress cards that are off the toast stack — sent to the notification center (`hidden`) — or clipped past the visible cap by newer toasts (`maxVisibleNotifications`), the one that left sight last first (of those that left at the same moment, the newest). An application that mirrors such a progress in its status bar shows the first, as the reference turns a notification progress whose toast is not visible — hidden, or left out by the toasts' cap (`notificationsToasts.ts:675-676`, `:705`) — into a window progress and shows the last one hidden (`workbench/services/progress/browser/progressService.ts:339-357`, `:127`, `:147`); until now an application read `hidden` and could not see a clipped card, nor tell which card was hidden last. The stack records it: `NotificationItem.outOfSightSince`, since when the card has been out of sight by the engine's clock — kept from the moment it first left sight until the stack shows it again, which clears it. The stack is the one authority on the cap: `NotificationHost` paints the cards on the toast stack that have no such record instead of clipping the stack again by itself, the timers that wait while a card is clipped (`pauseTimerWhileHidden`) read the same cut, and the engine's new `refresh()` reads it again when the settings change — the realm's notification service calls it on every change of the notification settings, so a new cap moves cards in or out of sight at once.
86
+
87
+ Behaviour change: the status bar bell's "Notifications ({count} in progress)" hint counts these cards — the one definition the bell and an application's mirror share. A hidden or clipped running progress is now counted while other toasts are showing (until now any toast on the stack hid the count, and a clipped card never counted), and a running card the stack shows is not; the bell no longer reads which window paints the toasts — the stack paints in the window that owns the display, the focused one, so a card it shows is in sight wherever the user looks — and no longer registers its window with `KitHost.displayOwner`. While its popover is open the count is still zero, the center listing the cards.
88
+
8
89
  ## 0.28.0
9
90
 
10
91
  ### Minor Changes
package/README.md CHANGED
@@ -62,23 +62,54 @@ rendered without them throws. `NotificationHost` paints the realm's toasts; moun
62
62
  window, near the root. `centerOpen` tells it when the application's notification center is
63
63
  showing (the stack hides meanwhile, the center lists the same cards); a window without a center
64
64
  passes `() => false`. `StatusBarNotificationBell` opens the center in a popover and says when
65
- through `onOpenChange`:
65
+ through `onOpenChange`; a host that opens the center from its own code holds the state and
66
+ passes it back as `open`:
66
67
 
67
68
  ```tsx
68
69
  const [centerOpen, setCenterOpen] = createSignal(false);
69
70
 
70
71
  // in the status bar
71
- <StatusBarNotificationBell onOpenChange={setCenterOpen} />;
72
+ <StatusBarNotificationBell open={centerOpen()} onOpenChange={setCenterOpen} />;
72
73
  // near the root, as above
73
74
  <NotificationHost centerOpen={centerOpen} />;
75
+ // anywhere: open the center
76
+ setCenterOpen(true);
74
77
  ```
75
78
 
76
79
  A running progress is ended by its operation, not by the user or a setting: Escape, do not
77
80
  disturb and the like only send it off the toast stack into the notification center
78
81
  (`NotificationsCenter`, which the bell opens, or `NotificationPanel`). Only turning its
79
82
  notification down on the card ("don't show again", "remind me later") ends it. Mount a center in
80
- every window that shows progress: the quickstart above mounts none, so there a progress sent off
81
- the stack is out of reach until its operation ends.
83
+ every window that shows progress. Where the user cannot reach one — the quickstart above mounts
84
+ none; an application's login screen, a page that shows neither a center nor the bell — the realm's
85
+ notification service is told so (`centerReachable`, see
86
+ [Embedding in an application](#embedding-in-an-application)): there Escape leaves a running
87
+ progress on the toast stack. A setting that silences it still keeps it off the screen, out of
88
+ reach until its operation ends.
89
+
90
+ A center's notifications are a list the focus moves along. `NotificationsCenter` focuses its
91
+ first notification when it opens — a running progress card, else the newest record —, the arrow
92
+ keys, Home and End move between them, Page Up / Page Down a page at a time, and a center that
93
+ closes while it holds the focus gives it back to where it came from. When the focused
94
+ notification goes, the one before it takes the focus (the new first, when it was the first);
95
+ when the last one goes, the center hides — its host's `onHide` is called, as it is when do not
96
+ disturb or the run-time filter turns on while the center is open. A host that shows a center
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:
100
+
101
+ ```tsx
102
+ if (!focusFirstNotificationEntry(panelRoot)) searchBox.focus();
103
+ ```
104
+
105
+ Which running progress is out of the user's sight — sent to the center, or clipped under newer
106
+ toasts past `maxVisibleNotifications` — the kit answers once: `hiddenRunningProgress(items)` over
107
+ the stack's cards (`notifications.stack.subscribe`), the one that left sight last first. The bell
108
+ counts these, and a status bar that mirrors such a progress shows the first:
109
+
110
+ ```tsx
111
+ notifications.stack.subscribe((items) => setMirrored(hiddenRunningProgress(items)[0] ?? null));
112
+ ```
82
113
 
83
114
  ## Stylesheets
84
115
 
@@ -294,6 +325,7 @@ const notifications = new NotificationService({
294
325
  errorPresenter: messageErrorPresenter,
295
326
  vendorErrors, // registeredVendorIds() / errorHelpersFor(vendorId)
296
327
  log,
328
+ centerReachable: () => centerInReach(), // optional: whether the user can reach a notification center now
297
329
  });
298
330
  notifications.onDidRequestNavigation((route) => router.open(route));
299
331
 
@@ -315,6 +347,17 @@ export const host: KitHost = {
315
347
  };
316
348
  ```
317
349
 
350
+ A host holds notifications back for a while without touching the user's settings through the
351
+ realm's run-time filter: `notifications.setFilter('errors-only')` lets only errors (and urgent
352
+ notifications and acknowledgments) toast and records the rest, as the reference's Zen mode does
353
+ with silent notifications; `setFilter('off')` ends it. Nothing of it is stored, the shown cards it
354
+ silences are taken back, a center open when it turns on hides, and the bell and the center show
355
+ do not disturb meanwhile:
356
+
357
+ ```tsx
358
+ notifications.setFilter(zen.active && zen.silentNotifications ? 'errors-only' : 'off');
359
+ ```
360
+
318
361
  Every member is required; a capability the application does not have is a `null` it writes down:
319
362
 
320
363
  | `KitHost` member | What the application provides |
@@ -346,6 +389,7 @@ A few realm facts and registries are set once at startup:
346
389
  | `registerThemeSource` (`/tokens`) | Each source of themes it owns (imported themes, plugin themes); dispose the registration when the source goes away | The built-in palettes |
347
390
  | `KeybindingsProvider`, `ToolWindowContext` | Its keybinding service and tool window layout (provide the host's values to these contexts) | Unset: notification shortcuts off |
348
391
  | `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 |
349
393
  | `registerVisibleBrowser` | Embedded browser views that toasts must avoid | None |
350
394
 
351
395
  ```ts
@@ -1 +1 @@
1
- "use strict";const t=require("solid-js/web"),v=require("solid-js"),T=require("./SearchableSelect-CVqdVMOC.cjs"),I=require("./Button-Bb68ymNP.cjs"),c=require("./i18n-D3s-a2a0.cjs"),S=require("./Input-CZruORyy.cjs"),k=require("@vokril/icons"),V=require("./iconScale.module-CzmKG1rf.cjs"),z=require("./keys-GMxY2wcl.cjs"),R=require("./bugIndicatingError-D2X5Hfgg.cjs");function w(e,r){return e<=0?r:String(e)}const P="vk_paginationRow_hg8fj",$="vk_paginationMeta_rPi8N",y="vk_paginationActions_gD2Fz",L="vk_paginationLabel_9x9Ah",O="vk_paginationSelect_h5BcT",N="vk_paginationPage_CYJRF",u={paginationRow:P,paginationMeta:$,paginationActions:y,paginationLabel:L,paginationSelect:O,paginationPage:N};var A=t.template("<div><span></span><div><label></label><span> / ");function M(e){const r=v.createMemo(()=>{const a=c.t("Unlimited");return e.pageSizeOptions.map(n=>({value:String(n),label:w(n,a)}))});return(()=>{var a=A(),n=a.firstChild,i=n.nextSibling,s=i.firstChild,g=s.nextSibling,_=g.firstChild;return t.insert(n,()=>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(T.SearchableSelect,{size:"sm",get class(){return u.paginationSelect},get value(){return String(e.pageSize())},get options(){return r()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return c.t("Page size")}}),null),t.insert(i,t.createComponent(I.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()<=1},onClick:()=>e.onPageChange(Math.max(1,e.page()-1)),get children(){return c.t("Previous")}}),g),t.insert(g,()=>e.page(),_),t.insert(g,()=>e.totalPages(),null),t.insert(i,t.createComponent(I.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()>=e.totalPages()},onClick:()=>e.onPageChange(Math.min(e.totalPages(),e.page()+1)),get children(){return c.t("Next")}}),null),t.effect(l=>{var h=u.paginationRow,m=u.paginationMeta,C=u.paginationActions,f=u.paginationLabel,p=u.paginationPage;return h!==l.e&&t.className(a,l.e=h),m!==l.t&&t.className(n,l.t=m),C!==l.a&&t.className(i,l.a=C),f!==l.o&&t.className(s,l.o=f),p!==l.i&&t.className(g,l.i=p),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),a})()}const q="vk_toolbar_LSRmU",H="vk_toolbarHorizontal_qHM-8",x="vk_toolbarViewClip_Q893H",F="vk_toolbarScrollRoot_aYbLg",E="vk_toolbarScrollViewport_qBzjd",J="vk_toolbarScrollTrack_Tp8TN",X="vk_segmentedCapsule_k9EBy",K="vk_toolbarBtn_CcyXF",U="vk_toolbarBtnActive_UgTBV",j="vk_toolbarBtnIconOnly_BlE-b",D="vk_toolbarHorizontalBottom_qLzhJ",G="vk_toolbarVertical_EjHi2",Q="vk_toolbarVerticalRight_DBgEa",Y="vk_toolbarScrollRootVertical_VGLRy",Z="vk_toolbarScrollViewportVertical_RLF5g",W="vk_toolbarScrollTrackVertical_c1rBF",tt="vk_toolbarSettingsBtn_XXfMz",et="vk_toolbarIcon_0FvlL",ot="vk_toolbarSpacer_N3TbQ",at="vk_sortBadgePill_nVrIk",rt="vk_sortBadgeBtn_Is9PS",nt="vk_sortBadgeIcon_kw8oa",lt="vk_sortBadgeLabel_l-p33",ct="vk_sortBadgeClearBtn_ioOaP",it="vk_sortBadgeClearIcon_0e6Kd",st="vk_filterInputContainer_kegUv",bt="vk_filterSearchIcon_gI0m2",gt="vk_filterInput_bX9xM",ut="vk_filterClearBtn_WerJL",vt="vk_filterClearIcon_7fuAJ",o={toolbar:q,toolbarHorizontal:H,toolbarViewClip:x,toolbarScrollRoot:F,toolbarScrollViewport:E,toolbarScrollTrack:J,segmentedCapsule:X,toolbarBtn:K,toolbarBtnActive:U,toolbarBtnIconOnly:j,toolbarHorizontalBottom:D,toolbarVertical:G,toolbarVerticalRight:Q,toolbarScrollRootVertical:Y,toolbarScrollViewportVertical:Z,toolbarScrollTrackVertical:W,toolbarSettingsBtn:tt,toolbarIcon:et,toolbarSpacer:ot,sortBadgePill:at,sortBadgeBtn:rt,sortBadgeIcon:nt,sortBadgeLabel:lt,sortBadgeClearBtn:ct,sortBadgeClearIcon:it,filterInputContainer:st,filterSearchIcon:bt,filterInput:gt,filterClearBtn:ut,filterClearIcon:vt},_t="vk_searchRow_2pwXX",dt="vk_searchInput_PbDtG",Bt="vk_clearBtn_upa-E",d={searchRow:_t,searchInput:dt,clearBtn:Bt};var St=t.template("<div>");function kt(e){return t.createComponent(S.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(k.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ht(e){let r;return v.onMount(()=>r==null?void 0:r.focus()),(()=>{var a=St();return t.insert(a,t.createComponent(S.Input,t.mergeProps({ref(n){var i=r;typeof i=="function"?i(n):r=n},get class(){return d.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:n=>e.onInput(n.currentTarget.value),onKeyDown:n=>{z.isKey(n,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??c.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{})),null),t.insert(a,t.createComponent(v.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(S.PressableSurface,{type:"button",get class(){return d.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return c.t("Clear search")},get title(){return c.t("Clear search")},get children(){return t.createComponent(k.VpClose,{get class(){return V.iconScale.iconSm},"aria-hidden":"true"})}})}}),null),t.effect(()=>t.className(a,d.searchRow)),a})()}const mt=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 Ct(e,r){const a=`${r}: `;throw new R.BugIndicatingError(`${a}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const ft="vk_grid_uK6pm",pt="vk_card_33OV3",It="vk_item_UeZrE",Vt="vk_label_a-LFz",wt="vk_value_9ZQBt",Tt="vk_valueMono_knknq",zt="vk_boolOn_5zd-H",Rt="vk_boolOff_-6I4K",Pt="vk_stacked_2T--a",b={grid:ft,card:pt,item:It,label:Vt,value:wt,valueMono:Tt,boolOn:zt,boolOff:Rt,stacked:Pt};var B=t.template("<span>"),$t=t.template("<div>"),yt=t.template("<div><span>");function Lt(e,r){switch(e.kind){case"text":return(()=>{var a=B();return t.insert(a,()=>e.value(r)),t.effect(()=>t.className(a,b.value)),a})();case"mono":return(()=>{var a=B();return t.insert(a,()=>e.value(r)),t.effect(()=>t.className(a,b.valueMono)),a})();case"bool":return(()=>{var a=B();return t.insert(a,(()=>{var n=t.memo(()=>!!e.on(r));return()=>n()?t.createComponent(k.VpCheck,{get class(){return V.iconScale.iconSm},"aria-hidden":"true"}):"—"})()),t.effect(()=>t.className(a,`${b.value} ${e.on(r)?b.boolOn:b.boolOff}`)),a})();case"custom":return e.render(r);default:return Ct(e,"AttributeField.kind")}}function Ot(e){return t.createComponent(v.Show,{get when(){return e.row()!=null},get children(){var r=$t();return t.insert(r,t.createComponent(v.For,{get each(){return e.fields},children:a=>(()=>{var n=yt(),i=n.firstChild;return t.insert(i,()=>a.label),t.insert(n,()=>Lt(a,e.row()),null),t.effect(s=>{var g=b.item,_=b.label;return g!==s.e&&t.className(n,s.e=g),_!==s.t&&t.className(i,s.t=_),s},{e:void 0,t:void 0}),n})()})),t.effect(()=>t.className(r,`${b.grid} ${b[e.variant]??""}`)),r}})}exports.AttributeGrid=Ot;exports.Pagination=M;exports.ToolbarSearchRow=ht;exports.ToolbarSearchToggle=kt;exports.pageSizeOptionLabel=w;exports.resultTabToolbarClasses=mt;
1
+ "use strict";const t=require("solid-js/web"),v=require("solid-js"),T=require("./SearchableSelect-yLVqCGFo.cjs"),I=require("./Button-OyZHrl-t.cjs"),c=require("./i18n-D3s-a2a0.cjs"),S=require("./Input-Brp5EDhg.cjs"),k=require("@vokril/icons"),V=require("./iconScale.module-CzmKG1rf.cjs"),z=require("./keys-GMxY2wcl.cjs"),R=require("./bugIndicatingError-D2X5Hfgg.cjs");function w(e,r){return e<=0?r:String(e)}const P="vk_paginationRow_hg8fj",$="vk_paginationMeta_rPi8N",y="vk_paginationActions_gD2Fz",L="vk_paginationLabel_9x9Ah",O="vk_paginationSelect_h5BcT",N="vk_paginationPage_CYJRF",u={paginationRow:P,paginationMeta:$,paginationActions:y,paginationLabel:L,paginationSelect:O,paginationPage:N};var A=t.template("<div><span></span><div><label></label><span> / ");function M(e){const r=v.createMemo(()=>{const a=c.t("Unlimited");return e.pageSizeOptions.map(n=>({value:String(n),label:w(n,a)}))});return(()=>{var a=A(),n=a.firstChild,i=n.nextSibling,s=i.firstChild,g=s.nextSibling,_=g.firstChild;return t.insert(n,()=>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(T.SearchableSelect,{size:"sm",get class(){return u.paginationSelect},get value(){return String(e.pageSize())},get options(){return r()},onChange:l=>{e.onPageSizeChange(Number(l))},searchable:!1,get ariaLabel(){return c.t("Page size")}}),null),t.insert(i,t.createComponent(I.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()<=1},onClick:()=>e.onPageChange(Math.max(1,e.page()-1)),get children(){return c.t("Previous")}}),g),t.insert(g,()=>e.page(),_),t.insert(g,()=>e.totalPages(),null),t.insert(i,t.createComponent(I.Button,{size:"sm",variant:"secondary",get disabled(){return e.page()>=e.totalPages()},onClick:()=>e.onPageChange(Math.min(e.totalPages(),e.page()+1)),get children(){return c.t("Next")}}),null),t.effect(l=>{var h=u.paginationRow,m=u.paginationMeta,C=u.paginationActions,f=u.paginationLabel,p=u.paginationPage;return h!==l.e&&t.className(a,l.e=h),m!==l.t&&t.className(n,l.t=m),C!==l.a&&t.className(i,l.a=C),f!==l.o&&t.className(s,l.o=f),p!==l.i&&t.className(g,l.i=p),l},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),a})()}const q="vk_toolbar_LSRmU",H="vk_toolbarHorizontal_qHM-8",x="vk_toolbarViewClip_Q893H",F="vk_toolbarScrollRoot_aYbLg",E="vk_toolbarScrollViewport_qBzjd",J="vk_toolbarScrollTrack_Tp8TN",X="vk_segmentedCapsule_k9EBy",K="vk_toolbarBtn_CcyXF",U="vk_toolbarBtnActive_UgTBV",j="vk_toolbarBtnIconOnly_BlE-b",D="vk_toolbarHorizontalBottom_qLzhJ",G="vk_toolbarVertical_EjHi2",Q="vk_toolbarVerticalRight_DBgEa",Y="vk_toolbarScrollRootVertical_VGLRy",Z="vk_toolbarScrollViewportVertical_RLF5g",W="vk_toolbarScrollTrackVertical_c1rBF",tt="vk_toolbarSettingsBtn_XXfMz",et="vk_toolbarIcon_0FvlL",ot="vk_toolbarSpacer_N3TbQ",at="vk_sortBadgePill_nVrIk",rt="vk_sortBadgeBtn_Is9PS",nt="vk_sortBadgeIcon_kw8oa",lt="vk_sortBadgeLabel_l-p33",ct="vk_sortBadgeClearBtn_ioOaP",it="vk_sortBadgeClearIcon_0e6Kd",st="vk_filterInputContainer_kegUv",bt="vk_filterSearchIcon_gI0m2",gt="vk_filterInput_bX9xM",ut="vk_filterClearBtn_WerJL",vt="vk_filterClearIcon_7fuAJ",o={toolbar:q,toolbarHorizontal:H,toolbarViewClip:x,toolbarScrollRoot:F,toolbarScrollViewport:E,toolbarScrollTrack:J,segmentedCapsule:X,toolbarBtn:K,toolbarBtnActive:U,toolbarBtnIconOnly:j,toolbarHorizontalBottom:D,toolbarVertical:G,toolbarVerticalRight:Q,toolbarScrollRootVertical:Y,toolbarScrollViewportVertical:Z,toolbarScrollTrackVertical:W,toolbarSettingsBtn:tt,toolbarIcon:et,toolbarSpacer:ot,sortBadgePill:at,sortBadgeBtn:rt,sortBadgeIcon:nt,sortBadgeLabel:lt,sortBadgeClearBtn:ct,sortBadgeClearIcon:it,filterInputContainer:st,filterSearchIcon:bt,filterInput:gt,filterClearBtn:ut,filterClearIcon:vt},_t="vk_searchRow_2pwXX",dt="vk_searchInput_PbDtG",Bt="vk_clearBtn_upa-E",d={searchRow:_t,searchInput:dt,clearBtn:Bt};var St=t.template("<div>");function kt(e){return t.createComponent(S.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(k.VpSearch,{get class(){return o.toolbarIcon},"aria-hidden":"true"})}})}function ht(e){let r;return v.onMount(()=>r==null?void 0:r.focus()),(()=>{var a=St();return t.insert(a,t.createComponent(S.Input,t.mergeProps({ref(n){var i=r;typeof i=="function"?i(n):r=n},get class(){return d.searchInput},type:"search",size:"sm",get value(){return e.value},onInput:n=>e.onInput(n.currentTarget.value),onKeyDown:n=>{z.isKey(n,"Escape")&&e.onClose()},get placeholder(){return e.placeholder??c.t("Search…")}},()=>e.disabled!==void 0?{disabled:e.disabled}:{})),null),t.insert(a,t.createComponent(v.Show,{get when(){return e.value.length>0},get children(){return t.createComponent(S.PressableSurface,{type:"button",get class(){return d.clearBtn},onClick:()=>e.onInput(""),get"aria-label"(){return c.t("Clear search")},get title(){return c.t("Clear search")},get children(){return t.createComponent(k.VpClose,{get class(){return V.iconScale.iconSm},"aria-hidden":"true"})}})}}),null),t.effect(()=>t.className(a,d.searchRow)),a})()}const mt=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 Ct(e,r){const a=`${r}: `;throw new R.BugIndicatingError(`${a}Non-exhaustive switch: unexpected value ${JSON.stringify(e)}`)}const ft="vk_grid_uK6pm",pt="vk_card_33OV3",It="vk_item_UeZrE",Vt="vk_label_a-LFz",wt="vk_value_9ZQBt",Tt="vk_valueMono_knknq",zt="vk_boolOn_5zd-H",Rt="vk_boolOff_-6I4K",Pt="vk_stacked_2T--a",b={grid:ft,card:pt,item:It,label:Vt,value:wt,valueMono:Tt,boolOn:zt,boolOff:Rt,stacked:Pt};var B=t.template("<span>"),$t=t.template("<div>"),yt=t.template("<div><span>");function Lt(e,r){switch(e.kind){case"text":return(()=>{var a=B();return t.insert(a,()=>e.value(r)),t.effect(()=>t.className(a,b.value)),a})();case"mono":return(()=>{var a=B();return t.insert(a,()=>e.value(r)),t.effect(()=>t.className(a,b.valueMono)),a})();case"bool":return(()=>{var a=B();return t.insert(a,(()=>{var n=t.memo(()=>!!e.on(r));return()=>n()?t.createComponent(k.VpCheck,{get class(){return V.iconScale.iconSm},"aria-hidden":"true"}):"—"})()),t.effect(()=>t.className(a,`${b.value} ${e.on(r)?b.boolOn:b.boolOff}`)),a})();case"custom":return e.render(r);default:return Ct(e,"AttributeField.kind")}}function Ot(e){return t.createComponent(v.Show,{get when(){return e.row()!=null},get children(){var r=$t();return t.insert(r,t.createComponent(v.For,{get each(){return e.fields},children:a=>(()=>{var n=yt(),i=n.firstChild;return t.insert(i,()=>a.label),t.insert(n,()=>Lt(a,e.row()),null),t.effect(s=>{var g=b.item,_=b.label;return g!==s.e&&t.className(n,s.e=g),_!==s.t&&t.className(i,s.t=_),s},{e:void 0,t:void 0}),n})()})),t.effect(()=>t.className(r,`${b.grid} ${b[e.variant]??""}`)),r}})}exports.AttributeGrid=Ot;exports.Pagination=M;exports.ToolbarSearchRow=ht;exports.ToolbarSearchToggle=kt;exports.pageSizeOptionLabel=w;exports.resultTabToolbarClasses=mt;
@@ -1,9 +1,9 @@
1
1
  import { insert as l, createComponent as c, effect as _, className as i, template as B, mergeProps as P, memo as T } from "solid-js/web";
2
2
  import { createMemo as $, onMount as y, Show as w, For as L } from "solid-js";
3
- import { S as O } from "./SearchableSelect-BvCm4enQ.js";
4
- import { B as V } from "./Button-D-T0tyGF.js";
3
+ import { S as O } from "./SearchableSelect-DtHbWJhR.js";
4
+ import { B as V } from "./Button-4meERfnv.js";
5
5
  import { t as s } from "./i18n-CBlUGOyu.js";
6
- import { I as A, P as z } from "./Input-DkPhsdfk.js";
6
+ import { I as A, P as z } from "./Input-CZi8KEfm.js";
7
7
  import { VpClose as M, VpSearch as H, VpCheck as x } from "@vokril/icons";
8
8
  import { i as R } from "./iconScale.module-C3O0bxfp.js";
9
9
  import { i as F } from "./keys-B2nlkpqc.js";
@@ -0,0 +1,300 @@
1
+ import { effect as p, className as d, setAttribute as C, template as S, use as ti, spread as oi, mergeProps as ri, memo as f, insert as l, createComponent as g } from "solid-js/web";
2
+ import { splitProps as ai, createUniqueId as li, createSignal as j, createEffect as w, onCleanup as q, Show as y } from "solid-js";
3
+ import { t as si } from "./i18n-CBlUGOyu.js";
4
+ import { t as N, r as di, h as ci } from "./nativeTitleHold-A9jUISgQ.js";
5
+ const vi = "vk_spinner_s8rMh", ui = "vk_xs_UVj9O", fi = "vk_sm_G7bj9", gi = "vk_lg_SEaSa", O = {
6
+ spinner: vi,
7
+ xs: ui,
8
+ sm: fi,
9
+ lg: gi
10
+ };
11
+ var pi = /* @__PURE__ */ S("<span data-motion-exempt=true>");
12
+ const mi = {
13
+ xs: O.xs,
14
+ sm: O.sm,
15
+ md: "",
16
+ lg: O.lg
17
+ };
18
+ function X(s) {
19
+ return (() => {
20
+ var i = pi();
21
+ return p((r) => {
22
+ var o = `${O.spinner} ${mi[s.size ?? "md"]} ${s.class ?? ""}`, z = s.decorative ? void 0 : "status", a = s.decorative ? void 0 : s.label ?? si("Loading…"), x = s.decorative ? "true" : void 0;
23
+ return o !== r.e && d(i, r.e = o), z !== r.t && C(i, "role", r.t = z), a !== r.a && C(i, "aria-label", r.a = a), x !== r.o && C(i, "aria-hidden", r.o = x), r;
24
+ }, {
25
+ e: void 0,
26
+ t: void 0,
27
+ a: void 0,
28
+ o: void 0
29
+ }), i;
30
+ })();
31
+ }
32
+ const _i = "vk_root_Zndmu", hi = "vk_size2xs_kbyEZ", yi = "vk_sizeXs_IUmg-", bi = "vk_sizeSm_s-iaT", ki = "vk_sizeMd_bAI9d", Li = "vk_sizeLg_zhdkf", Si = "vk_variantPrimary_KTVgG", zi = "vk_variantTonal_tkJNt", xi = "vk_variantSecondary_MA7xu", Ti = "vk_variantDanger_L30Uq", Di = "vk_variantDangerSolid_htqc7", Oi = "vk_variantPrimarySolid_14Uwi", Ii = "vk_variantLink_3AapU", Pi = "vk_variantGhost_x0-j-", $i = "vk_variantOutline_xGu8I", Wi = "vk_active_QisSI", Ai = "vk_iconOnly_bhObv", Ci = "vk_pill_-qH8n", wi = "vk_fullWidth_kr6EK", Ni = "vk_icon_h1rmS", Bi = "vk_label_6-wKp", Ei = "vk_responsiveLabel_4Ma2i", Gi = "vk_loading_EWpLB", Fi = "vk_iconHidden_Mlyq3", Mi = "vk_spinnerWrap_F8L1B", Hi = "vk_inlineSpinner_uuJuB", Ui = "vk_loadingLabelGroup_HO7pg", Vi = "vk_labelText_v7v-A", ji = "vk_animatedDots_CPxN9", t = {
33
+ root: _i,
34
+ size2xs: hi,
35
+ sizeXs: yi,
36
+ sizeSm: bi,
37
+ sizeMd: ki,
38
+ sizeLg: Li,
39
+ variantPrimary: Si,
40
+ variantTonal: zi,
41
+ variantSecondary: xi,
42
+ variantDanger: Ti,
43
+ variantDangerSolid: Di,
44
+ variantPrimarySolid: Oi,
45
+ variantLink: Ii,
46
+ variantGhost: Pi,
47
+ variantOutline: $i,
48
+ active: Wi,
49
+ iconOnly: Ai,
50
+ pill: Ci,
51
+ fullWidth: wi,
52
+ icon: Ni,
53
+ label: Bi,
54
+ responsiveLabel: Ei,
55
+ loading: Gi,
56
+ iconHidden: Fi,
57
+ spinnerWrap: Mi,
58
+ inlineSpinner: Hi,
59
+ loadingLabelGroup: Ui,
60
+ labelText: Vi,
61
+ animatedDots: ji
62
+ };
63
+ var L = /* @__PURE__ */ S("<span aria-hidden=true>"), qi = /* @__PURE__ */ S("<span>"), Xi = /* @__PURE__ */ S("<button>"), Zi = /* @__PURE__ */ S("<span><span></span><span aria-hidden=true data-testid=button-animated-dots data-animated-dots=true>");
64
+ const Ki = {
65
+ primary: t.variantPrimary,
66
+ primarySolid: t.variantPrimarySolid,
67
+ tonal: t.variantTonal,
68
+ secondary: t.variantSecondary,
69
+ danger: t.variantDanger,
70
+ dangerSolid: t.variantDangerSolid,
71
+ ghost: t.variantGhost,
72
+ outline: t.variantOutline,
73
+ link: t.variantLink
74
+ }, Ji = {
75
+ "2xs": t.size2xs,
76
+ xs: t.sizeXs,
77
+ sm: t.sizeSm,
78
+ md: t.sizeMd,
79
+ lg: t.sizeLg
80
+ };
81
+ function Qi(s) {
82
+ let i = s;
83
+ for (; typeof i == "function"; )
84
+ try {
85
+ i = i();
86
+ } catch {
87
+ break;
88
+ }
89
+ return typeof i == "string" ? i.replace(/(?:\s*\.{2,}|\s*…)\s*$/, "") : Array.isArray(i) && i.every((r) => typeof r == "string") ? i.join("").replace(/(?:\s*\.{2,}|\s*…)\s*$/, "") : i;
90
+ }
91
+ function tn(s) {
92
+ const [i, r] = ai(s, ["variant", "size", "iconOnly", "active", "pill", "fullWidth", "responsiveLabel", "loading", "loadingDelay", "minLoadingDuration", "loadingLabel", "type", "leadingIcon", "trailingIcon", "class", "children", "disabled", "tooltip", "tooltipShortcut", "tooltipPlacement", "title", "aria-label", "aria-description", "ref", "onPointerEnter", "onPointerLeave", "onFocusIn", "onFocusOut", "onClick"]);
93
+ let o;
94
+ const z = li(), [a, x] = j(!1);
95
+ let I = !1, c, v, P = 0, b;
96
+ const B = () => {
97
+ o && o.offsetWidth > 0 && b === void 0 && (b = o.style.minWidth, o.style.minWidth = `${o.offsetWidth}px`);
98
+ }, T = () => {
99
+ o && b !== void 0 && (o.style.minWidth = b, b = void 0);
100
+ }, D = (e) => {
101
+ e && B(), I = e, x(e);
102
+ };
103
+ w(() => {
104
+ const e = !!i.loading, n = typeof i.loadingDelay == "number" && !Number.isNaN(i.loadingDelay) ? i.loadingDelay : 180, _ = typeof i.minLoadingDuration == "number" && !Number.isNaN(i.minLoadingDuration) ? i.minLoadingDuration : 350;
105
+ if (e) {
106
+ if (B(), v !== void 0 && (clearTimeout(v), v = void 0), I)
107
+ return;
108
+ n <= 0 ? (P = Date.now(), D(!0)) : c === void 0 && (c = setTimeout(() => {
109
+ c = void 0, P = Date.now(), D(!0);
110
+ }, n));
111
+ } else if (c !== void 0 && (clearTimeout(c), c = void 0), I) {
112
+ const u = Date.now() - P, h = _ - u;
113
+ h > 0 ? v === void 0 && (v = setTimeout(() => {
114
+ v = void 0, D(!1), T();
115
+ }, h)) : (D(!1), T());
116
+ } else
117
+ T();
118
+ });
119
+ let k;
120
+ w(() => {
121
+ i.loading || (k = i.children);
122
+ }), q(() => {
123
+ c !== void 0 && (clearTimeout(c), c = void 0), v !== void 0 && (clearTimeout(v), v = void 0), T();
124
+ });
125
+ const $ = () => !!i.loading || a(), E = () => {
126
+ if (i.loadingLabel !== void 0)
127
+ return typeof i.loadingLabel == "function" ? i.loadingLabel() : i.loadingLabel;
128
+ }, Z = () => {
129
+ const e = E();
130
+ return e !== void 0 ? e : i.children !== void 0 && i.children !== "" && i.children !== null && i.children !== !1 ? i.children : k !== void 0 ? k : i.children;
131
+ }, K = () => i.size === "2xs" || i.size === "xs" ? "xs" : "sm", J = () => i.size === "2xs" || i.size === "xs" ? "xs" : i.size === "sm" ? "sm" : "md", W = () => i.tooltip !== void 0 ? typeof i.tooltip == "function" ? i.tooltip() : i.tooltip : i.title, [G, Q] = j("");
132
+ w(() => {
133
+ var e;
134
+ i.children, i.iconOnly, Q(((e = o == null ? void 0 : o.textContent) == null ? void 0 : e.trim()) ?? "");
135
+ });
136
+ const F = () => !i.iconOnly && G() !== "", R = () => {
137
+ const e = E();
138
+ if (a() && e)
139
+ return e;
140
+ if (i["aria-label"] !== void 0)
141
+ return i["aria-label"];
142
+ if (!F())
143
+ return W();
144
+ }, Y = () => {
145
+ if (i["aria-description"] !== void 0) return i["aria-description"];
146
+ if (i["aria-label"] !== void 0 || !F()) return;
147
+ const e = W();
148
+ return e && e !== G() ? e : void 0;
149
+ }, M = () => {
150
+ const e = W();
151
+ !e || !o || (ci(o), N.showTooltip({
152
+ id: z,
153
+ target: o,
154
+ content: e,
155
+ shortcut: i.tooltipShortcut,
156
+ placement: i.tooltipPlacement
157
+ }));
158
+ }, A = () => {
159
+ o && (di(o), N.hideTooltip(o));
160
+ }, ii = () => {
161
+ o && N.hideTooltip(o);
162
+ };
163
+ q(() => {
164
+ A();
165
+ });
166
+ const ni = () => {
167
+ const e = i.variant ?? "secondary", n = i.size ?? (e === "link" ? void 0 : "md");
168
+ return [t.root, Ki[e], n === void 0 ? void 0 : Ji[n], i.iconOnly ? t.iconOnly : void 0, i.active ? t.active : void 0, i.pill ? t.pill : void 0, i.fullWidth ? t.fullWidth : void 0, i.responsiveLabel ? t.responsiveLabel : void 0, a() ? t.loading : void 0, i.class].filter((u) => !!u).join(" ");
169
+ };
170
+ return (() => {
171
+ var e = Xi();
172
+ return ti((n) => {
173
+ o = n, typeof i.ref == "function" && i.ref(n);
174
+ }, e), oi(e, ri(r, {
175
+ get type() {
176
+ return i.type ?? "button";
177
+ },
178
+ get class() {
179
+ return ni();
180
+ },
181
+ get disabled() {
182
+ return i.disabled;
183
+ },
184
+ get "aria-disabled"() {
185
+ return $() && !i.disabled ? "true" : void 0;
186
+ },
187
+ get "aria-busy"() {
188
+ return $() ? "true" : "false";
189
+ },
190
+ get "aria-label"() {
191
+ return R();
192
+ },
193
+ get "aria-description"() {
194
+ return Y();
195
+ },
196
+ get title() {
197
+ return f(() => i.tooltip !== void 0)() ? void 0 : i.title;
198
+ },
199
+ onPointerEnter: (n) => {
200
+ M(), typeof i.onPointerEnter == "function" && i.onPointerEnter(n);
201
+ },
202
+ onPointerLeave: (n) => {
203
+ A(), typeof i.onPointerLeave == "function" && i.onPointerLeave(n);
204
+ },
205
+ onFocusIn: (n) => {
206
+ M(), typeof i.onFocusIn == "function" && i.onFocusIn(n);
207
+ },
208
+ onFocusOut: (n) => {
209
+ A(), typeof i.onFocusOut == "function" && i.onFocusOut(n);
210
+ },
211
+ onClick: (n) => {
212
+ if (i.disabled || $()) {
213
+ n.preventDefault();
214
+ return;
215
+ }
216
+ if (ii(), typeof i.onClick == "function")
217
+ i.onClick(n);
218
+ else if (Array.isArray(i.onClick)) {
219
+ const [_, u] = i.onClick;
220
+ _(u, n);
221
+ }
222
+ }
223
+ }), !1, !0), l(e, g(y, {
224
+ get when() {
225
+ return f(() => i.leadingIcon !== void 0)() && !a();
226
+ },
227
+ get children() {
228
+ var n = L();
229
+ return l(n, () => i.leadingIcon), p(() => d(n, t.icon)), n;
230
+ }
231
+ }), null), l(e, g(y, {
232
+ get when() {
233
+ return f(() => !i.iconOnly)() && a();
234
+ },
235
+ get children() {
236
+ var n = L();
237
+ return l(n, g(X, {
238
+ get size() {
239
+ return K();
240
+ },
241
+ decorative: !0
242
+ })), p(() => d(n, t.inlineSpinner)), n;
243
+ }
244
+ }), null), l(e, g(y, {
245
+ get when() {
246
+ return f(() => !!(i.children !== void 0 || a() && i.loadingLabel !== void 0))() && !i.iconOnly;
247
+ },
248
+ get children() {
249
+ var n = qi();
250
+ return l(n, (() => {
251
+ var _ = f(() => !!a());
252
+ return () => _() ? (() => {
253
+ var u = Zi(), h = u.firstChild, ei = h.nextSibling;
254
+ return l(h, () => Qi(Z())), p((m) => {
255
+ var H = t.loadingLabelGroup, U = t.labelText, V = t.animatedDots;
256
+ return H !== m.e && d(u, m.e = H), U !== m.t && d(h, m.t = U), V !== m.a && d(ei, m.a = V), m;
257
+ }, {
258
+ e: void 0,
259
+ t: void 0,
260
+ a: void 0
261
+ }), u;
262
+ })() : f(() => !!(i.loading && k !== void 0))() ? k : i.children;
263
+ })()), p(() => d(n, t.label)), n;
264
+ }
265
+ }), null), l(e, g(y, {
266
+ get when() {
267
+ return f(() => !!i.iconOnly)() && i.children !== void 0;
268
+ },
269
+ get children() {
270
+ var n = L();
271
+ return l(n, () => i.children), p(() => d(n, `${t.icon} ${a() ? t.iconHidden : ""}`)), n;
272
+ }
273
+ }), null), l(e, g(y, {
274
+ get when() {
275
+ return f(() => i.trailingIcon !== void 0)() && !a();
276
+ },
277
+ get children() {
278
+ var n = L();
279
+ return l(n, () => i.trailingIcon), p(() => d(n, t.icon)), n;
280
+ }
281
+ }), null), l(e, g(y, {
282
+ get when() {
283
+ return f(() => !!i.iconOnly)() && a();
284
+ },
285
+ get children() {
286
+ var n = L();
287
+ return l(n, g(X, {
288
+ get size() {
289
+ return J();
290
+ },
291
+ decorative: !0
292
+ })), p(() => d(n, t.spinnerWrap)), n;
293
+ }
294
+ }), null), e;
295
+ })();
296
+ }
297
+ export {
298
+ tn as B,
299
+ X as S
300
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("solid-js/web"),a=require("solid-js"),Z=require("./i18n-D3s-a2a0.cjs"),h=require("./nativeTitleHold-B7Ou-W9b.cjs"),J="vk_spinner_s8rMh",K="vk_xs_UVj9O",Q="vk_sm_G7bj9",R="vk_lg_SEaSa",z={spinner:J,xs:K,sm:Q,lg:R};var Y=t.template("<span data-motion-exempt=true>");const ee={xs:z.xs,sm:z.sm,md:"",lg:z.lg};function w(c){return(()=>{var e=Y();return t.effect(l=>{var r=`${z.spinner} ${ee[c.size??"md"]} ${c.class??""}`,b=c.decorative?void 0:"status",s=c.decorative?void 0:c.label??Z.t("Loading…"),k=c.decorative?"true":void 0;return r!==l.e&&t.className(e,l.e=r),b!==l.t&&t.setAttribute(e,"role",l.t=b),s!==l.a&&t.setAttribute(e,"aria-label",l.a=s),k!==l.o&&t.setAttribute(e,"aria-hidden",l.o=k),l},{e:void 0,t:void 0,a:void 0,o:void 0}),e})()}const te="vk_root_Zndmu",ne="vk_size2xs_kbyEZ",ie="vk_sizeXs_IUmg-",oe="vk_sizeSm_s-iaT",re="vk_sizeMd_bAI9d",ae="vk_sizeLg_zhdkf",le="vk_variantPrimary_KTVgG",se="vk_variantTonal_tkJNt",ce="vk_variantSecondary_MA7xu",de="vk_variantDanger_L30Uq",ve="vk_variantDangerSolid_htqc7",ue="vk_variantPrimarySolid_14Uwi",fe="vk_variantLink_3AapU",me="vk_variantGhost_x0-j-",pe="vk_variantOutline_xGu8I",ge="vk_active_QisSI",_e="vk_iconOnly_bhObv",he="vk_pill_-qH8n",ye="vk_fullWidth_kr6EK",be="vk_icon_h1rmS",ke="vk_label_6-wKp",Se="vk_responsiveLabel_4Ma2i",Le="vk_loading_EWpLB",ze="vk_iconHidden_Mlyq3",Te="vk_spinnerWrap_F8L1B",xe="vk_inlineSpinner_uuJuB",Ce="vk_loadingLabelGroup_HO7pg",De="vk_labelText_v7v-A",Oe="vk_animatedDots_CPxN9",o={root:te,size2xs:ne,sizeXs:ie,sizeSm:oe,sizeMd:re,sizeLg:ae,variantPrimary:le,variantTonal:se,variantSecondary:ce,variantDanger:de,variantDangerSolid:ve,variantPrimarySolid:ue,variantLink:fe,variantGhost:me,variantOutline:pe,active:ge,iconOnly:_e,pill:he,fullWidth:ye,icon:be,label:ke,responsiveLabel:Se,loading:Le,iconHidden:ze,spinnerWrap:Te,inlineSpinner:xe,loadingLabelGroup:Ce,labelText:De,animatedDots:Oe};var y=t.template("<span aria-hidden=true>"),we=t.template("<span>"),Ie=t.template("<button>"),Ne=t.template("<span><span></span><span aria-hidden=true data-testid=button-animated-dots data-animated-dots=true>");const Pe={primary:o.variantPrimary,primarySolid:o.variantPrimarySolid,tonal:o.variantTonal,secondary:o.variantSecondary,danger:o.variantDanger,dangerSolid:o.variantDangerSolid,ghost:o.variantGhost,outline:o.variantOutline,link:o.variantLink},$e={"2xs":o.size2xs,xs:o.sizeXs,sm:o.sizeSm,md:o.sizeMd,lg:o.sizeLg};function Ae(c){let e=c;for(;typeof e=="function";)try{e=e()}catch{break}return typeof e=="string"?e.replace(/(?:\s*\.{2,}|\s*…)\s*$/,""):Array.isArray(e)&&e.every(l=>typeof l=="string")?e.join("").replace(/(?:\s*\.{2,}|\s*…)\s*$/,""):e}function We(c){const[e,l]=a.splitProps(c,["variant","size","iconOnly","active","pill","fullWidth","responsiveLabel","loading","loadingDelay","minLoadingDuration","loadingLabel","type","leadingIcon","trailingIcon","class","children","disabled","tooltip","tooltipShortcut","tooltipPlacement","title","aria-label","aria-description","ref","onPointerEnter","onPointerLeave","onFocusIn","onFocusOut","onClick"]);let r;const b=a.createUniqueId(),[s,k]=a.createSignal(!1);let T=!1,d,v,x=0,g;const I=()=>{r&&r.offsetWidth>0&&g===void 0&&(g=r.style.minWidth,r.style.minWidth=`${r.offsetWidth}px`)},S=()=>{r&&g!==void 0&&(r.style.minWidth=g,g=void 0)},L=i=>{i&&I(),T=i,k(i)};a.createEffect(()=>{const i=!!e.loading,n=typeof e.loadingDelay=="number"&&!Number.isNaN(e.loadingDelay)?e.loadingDelay:180,m=typeof e.minLoadingDuration=="number"&&!Number.isNaN(e.minLoadingDuration)?e.minLoadingDuration:350;if(i){if(I(),v!==void 0&&(clearTimeout(v),v=void 0),T)return;n<=0?(x=Date.now(),L(!0)):d===void 0&&(d=setTimeout(()=>{d=void 0,x=Date.now(),L(!0)},n))}else if(d!==void 0&&(clearTimeout(d),d=void 0),T){const u=Date.now()-x,p=m-u;p>0?v===void 0&&(v=setTimeout(()=>{v=void 0,L(!1),S()},p)):(L(!1),S())}else S()});let _;a.createEffect(()=>{e.loading||(_=e.children)}),a.onCleanup(()=>{d!==void 0&&(clearTimeout(d),d=void 0),v!==void 0&&(clearTimeout(v),v=void 0),S()});const C=()=>!!e.loading||s(),N=()=>{if(e.loadingLabel!==void 0)return typeof e.loadingLabel=="function"?e.loadingLabel():e.loadingLabel},G=()=>{const i=N();return i!==void 0?i:e.children!==void 0&&e.children!==""&&e.children!==null&&e.children!==!1?e.children:_!==void 0?_:e.children},q=()=>e.size==="2xs"||e.size==="xs"?"xs":"sm",F=()=>e.size==="2xs"||e.size==="xs"?"xs":e.size==="sm"?"sm":"md",D=()=>e.tooltip!==void 0?typeof e.tooltip=="function"?e.tooltip():e.tooltip:e.title,[P,M]=a.createSignal("");a.createEffect(()=>{var i;e.children,e.iconOnly,M(((i=r==null?void 0:r.textContent)==null?void 0:i.trim())??"")});const $=()=>!e.iconOnly&&P()!=="",H=()=>{const i=N();if(s()&&i)return i;if(e["aria-label"]!==void 0)return e["aria-label"];if(!$())return D()},U=()=>{if(e["aria-description"]!==void 0)return e["aria-description"];if(e["aria-label"]!==void 0||!$())return;const i=D();return i&&i!==P()?i:void 0},A=()=>{const i=D();!i||!r||(h.holdNativeTitle(r),h.tooltipCoordinator.showTooltip({id:b,target:r,content:i,shortcut:e.tooltipShortcut,placement:e.tooltipPlacement}))},O=()=>{r&&(h.releaseNativeTitle(r),h.tooltipCoordinator.hideTooltip(r))},V=()=>{r&&h.tooltipCoordinator.hideTooltip(r)};a.onCleanup(()=>{O()});const j=()=>{const i=e.variant??"secondary",n=e.size??(i==="link"?void 0:"md");return[o.root,Pe[i],n===void 0?void 0:$e[n],e.iconOnly?o.iconOnly:void 0,e.active?o.active:void 0,e.pill?o.pill:void 0,e.fullWidth?o.fullWidth:void 0,e.responsiveLabel?o.responsiveLabel:void 0,s()?o.loading:void 0,e.class].filter(u=>!!u).join(" ")};return(()=>{var i=Ie();return t.use(n=>{r=n,typeof e.ref=="function"&&e.ref(n)},i),t.spread(i,t.mergeProps(l,{get type(){return e.type??"button"},get class(){return j()},get disabled(){return e.disabled},get"aria-disabled"(){return C()&&!e.disabled?"true":void 0},get"aria-busy"(){return C()?"true":"false"},get"aria-label"(){return H()},get"aria-description"(){return U()},get title(){return t.memo(()=>e.tooltip!==void 0)()?void 0:e.title},onPointerEnter:n=>{A(),typeof e.onPointerEnter=="function"&&e.onPointerEnter(n)},onPointerLeave:n=>{O(),typeof e.onPointerLeave=="function"&&e.onPointerLeave(n)},onFocusIn:n=>{A(),typeof e.onFocusIn=="function"&&e.onFocusIn(n)},onFocusOut:n=>{O(),typeof e.onFocusOut=="function"&&e.onFocusOut(n)},onClick:n=>{if(e.disabled||C()){n.preventDefault();return}if(V(),typeof e.onClick=="function")e.onClick(n);else if(Array.isArray(e.onClick)){const[m,u]=e.onClick;m(u,n)}}}),!1,!0),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>e.leadingIcon!==void 0)()&&!s()},get children(){var n=y();return t.insert(n,()=>e.leadingIcon),t.effect(()=>t.className(n,o.icon)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!e.iconOnly)()&&s()},get children(){var n=y();return t.insert(n,t.createComponent(w,{get size(){return q()},decorative:!0})),t.effect(()=>t.className(n,o.inlineSpinner)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!(e.children!==void 0||s()&&e.loadingLabel!==void 0))()&&!e.iconOnly},get children(){var n=we();return t.insert(n,(()=>{var m=t.memo(()=>!!s());return()=>m()?(()=>{var u=Ne(),p=u.firstChild,X=p.nextSibling;return t.insert(p,()=>Ae(G())),t.effect(f=>{var W=o.loadingLabelGroup,E=o.labelText,B=o.animatedDots;return W!==f.e&&t.className(u,f.e=W),E!==f.t&&t.className(p,f.t=E),B!==f.a&&t.className(X,f.a=B),f},{e:void 0,t:void 0,a:void 0}),u})():t.memo(()=>!!(e.loading&&_!==void 0))()?_:e.children})()),t.effect(()=>t.className(n,o.label)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!e.iconOnly)()&&e.children!==void 0},get children(){var n=y();return t.insert(n,()=>e.children),t.effect(()=>t.className(n,`${o.icon} ${s()?o.iconHidden:""}`)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>e.trailingIcon!==void 0)()&&!s()},get children(){var n=y();return t.insert(n,()=>e.trailingIcon),t.effect(()=>t.className(n,o.icon)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!e.iconOnly)()&&s()},get children(){var n=y();return t.insert(n,t.createComponent(w,{get size(){return F()},decorative:!0})),t.effect(()=>t.className(n,o.spinnerWrap)),n}}),null),i})()}exports.Button=We;exports.Spinner=w;