@vokril/ui-solid 0.40.0 → 0.42.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 (73) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +20 -0
  3. package/dist/{CommandPalette-1XfwrR2D.js → CommandPalette-beMCOs7C.js} +774 -786
  4. package/dist/CommandPalette-pFMPK8bt.cjs +2 -0
  5. package/dist/{DateRangePicker-DL1j6ww5.js → DateRangePicker-CYaHRpmb.js} +1 -1
  6. package/dist/{DateRangePicker-CZddrCVN.cjs → DateRangePicker-DBXYlp78.cjs} +1 -1
  7. package/dist/{GuidedTour-DzmN3Cfq.js → GuidedTour-5MdUy_iV.js} +1 -1
  8. package/dist/{GuidedTour-BxmPJE-B.cjs → GuidedTour-BofbTVvV.cjs} +1 -1
  9. package/dist/{IconPicker-BuQkoRRB.js → IconPicker-BaKZkh0b.js} +1 -1
  10. package/dist/{IconPicker-xydEBrKw.cjs → IconPicker-DkRBxRGe.cjs} +1 -1
  11. package/dist/Modal-BNQB6QJ7.cjs +1 -0
  12. package/dist/Modal-py2JXnwO.js +968 -0
  13. package/dist/{StatusBarNotificationBell-BIg-eu1Y.cjs → StatusBarNotificationBell-BY9ZiWjy.cjs} +1 -1
  14. package/dist/{StatusBarNotificationBell-DvKKK9jh.js → StatusBarNotificationBell-DZvIOWcY.js} +4 -4
  15. package/dist/{ToggleButton-CrVTb5ZP.js → ToggleButton-B2gPFNtU.js} +2 -2
  16. package/dist/{ToggleButton-sXKMeceC.cjs → ToggleButton-DSdpOk_r.cjs} +1 -1
  17. package/dist/{createDialogShellFocus-CLuQ1s0l.cjs → createDialogShellFocus--i_cKUN4.cjs} +1 -1
  18. package/dist/{createDialogShellFocus-GXYQh0Oh.js → createDialogShellFocus-CRX-Qo81.js} +1 -1
  19. package/dist/{createResizableSidebar-Beu5DVYW.cjs → createResizableSidebar-BEQGesE5.cjs} +1 -1
  20. package/dist/{createResizableSidebar-BGseZrMh.js → createResizableSidebar-XihHxIXV.js} +2 -2
  21. package/dist/forms/index.cjs +1 -1
  22. package/dist/forms/index.js +4 -4
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +12 -12
  25. package/dist/layout/index.cjs +1 -1
  26. package/dist/layout/index.js +1 -1
  27. package/dist/notifications/index.cjs +1 -1
  28. package/dist/notifications/index.js +1 -1
  29. package/dist/overlay/Modal.d.cts +33 -0
  30. package/dist/overlay/Modal.d.ts +33 -0
  31. package/dist/overlay/index.cjs +1 -1
  32. package/dist/overlay/index.js +4 -4
  33. package/dist/overlay/modalDefaults.d.cts +5 -0
  34. package/dist/overlay/modalDefaults.d.ts +5 -0
  35. package/dist/overlay/modalResize.d.cts +50 -0
  36. package/dist/overlay/modalResize.d.ts +50 -0
  37. package/dist/server/{CommandPalette-DorJXXoB.js → CommandPalette-CW5Dp8vj.js} +2 -2
  38. package/dist/server/{CommandPalette-BMwxv_Yy.cjs → CommandPalette-Cr75unDS.cjs} +1 -1
  39. package/dist/server/{GuidedTour-DhVy485y.js → GuidedTour-Bx6CdHjo.js} +1 -1
  40. package/dist/server/{GuidedTour-JPHl9qAv.cjs → GuidedTour-DL7UpS21.cjs} +1 -1
  41. package/dist/server/{IconPicker-bUaMtcMV.js → IconPicker-B2jFVCPZ.js} +2 -2
  42. package/dist/server/{IconPicker-Xb9VX3Lk.cjs → IconPicker-DMnle5yy.cjs} +1 -1
  43. package/dist/server/Modal-B-3XihcF.js +771 -0
  44. package/dist/server/Modal-OLsSdDmR.cjs +1 -0
  45. package/dist/server/{StatusBarNotificationBell-DzrBLG0C.js → StatusBarNotificationBell-B0cK_tTc.js} +2 -2
  46. package/dist/server/{StatusBarNotificationBell-CyNRKMtb.cjs → StatusBarNotificationBell-CtTPByqN.cjs} +1 -1
  47. package/dist/server/{ToggleButton-J-cKrSwa.cjs → ToggleButton-93fdaf-H.cjs} +1 -1
  48. package/dist/server/{ToggleButton-BTKq5h-y.js → ToggleButton-DqNqIAC0.js} +2 -2
  49. package/dist/server/{createResizableSidebar-ClRpRZLh.js → createResizableSidebar-CphNgnrU.js} +2 -2
  50. package/dist/server/{createResizableSidebar-Bukt4w81.cjs → createResizableSidebar-D5mkTix1.cjs} +1 -1
  51. package/dist/server/forms/index.cjs +1 -1
  52. package/dist/server/forms/index.js +2 -2
  53. package/dist/server/{index-CxpRbGi3.cjs → index-DDkjaG5W.cjs} +1 -1
  54. package/dist/server/{index-BglF6V2r.js → index-cgjP4BDD.js} +2 -2
  55. package/dist/server/index.cjs +1 -1
  56. package/dist/server/index.js +8 -8
  57. package/dist/server/layout/index.cjs +1 -1
  58. package/dist/server/layout/index.js +1 -1
  59. package/dist/server/notifications/index.cjs +1 -1
  60. package/dist/server/notifications/index.js +1 -1
  61. package/dist/server/overlay/index.cjs +1 -1
  62. package/dist/server/overlay/index.js +3 -3
  63. package/dist/solid/overlay/Modal.jsx +168 -7
  64. package/dist/solid/overlay/Modal.module.css.js +12 -1
  65. package/dist/solid/overlay/modalResize.js +49 -0
  66. package/dist/style.css +1 -1
  67. package/dist/ui.css +1 -1
  68. package/package.json +1 -1
  69. package/dist/CommandPalette-DgoP-6h9.cjs +0 -2
  70. package/dist/Modal-DospFxAr.js +0 -771
  71. package/dist/Modal-Dq7OTcoz.cjs +0 -1
  72. package/dist/server/Modal-CL3mMf3_.js +0 -666
  73. package/dist/server/Modal-J5LcYq9z.cjs +0 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,23 @@ 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.42.0
9
+
10
+ ### Minor Changes
11
+
12
+ - 4958318: `Modal` gets `flush`: the body without padding or a scroll area of its own, so a hosted surface with its own sidebar and panes (a settings page, a connection manager) fills it edge to edge and scrolls itself. The default body is unchanged.
13
+
14
+ ## 0.41.0
15
+
16
+ ### Minor Changes
17
+
18
+ - cdb458a: `Modal` can host a whole surface (settings, a connection manager), so an app needs one modal instead of a modal and a floating panel.
19
+
20
+ - **Resize** — the edges and corners resize the box like a desktop window, kept inside the window and above 360×220 px; the opposite edge stays put. `resizable` (default `true`, or the host's `ModalDefaults.resizable`) turns it off. `onResizeEnd` reports the new size once a gesture ends and `initialSize` opens at a remembered size, fitted to the window; the kit stores nothing.
21
+ - **`backdropDismiss: 'nudge'`** — a backdrop click keeps the modal and nudges it (a short pop and an accent ring, as a danger confirmation answers); Escape and Close still close. The default stays `'close'`.
22
+ - **`canClose`** — asked before the modal starts closing (Close, Escape, the backdrop). `false`, or a promise of it, keeps the modal open and untouched. A guard that answered after the exit animation used to leave the modal open but invisible.
23
+ - **`headerActions`** — the content's own buttons in the header, left of the window buttons.
24
+
8
25
  ## 0.40.0
9
26
 
10
27
  ### Minor Changes
package/README.md CHANGED
@@ -313,6 +313,26 @@ button and a double-click on the header still restore them:
313
313
  A modal's own `allowMaximizedDrag` and `maximizeInset` override these for that modal only
314
314
  (`ModalDefaultsProvider` gives the defaults to a tree without a kit host).
315
315
 
316
+ A modal resizes from its edges and corners like a desktop window (`resizable`, on by default; a host
317
+ can turn it off for all its modals with `modals={{ resizable: false }}`). The kit stores nothing: it
318
+ reports the new size once a gesture ends (`onResizeEnd`) and opens at the size the host gives back
319
+ (`initialSize`, fitted to the window).
320
+
321
+ A modal that holds work — a settings surface, a form with a draft — can keep a stray backdrop click
322
+ from throwing it away and ask before it goes:
323
+
324
+ ```tsx
325
+ <Modal
326
+ title="Settings"
327
+ backdropDismiss="nudge" // a backdrop click nudges the box; Escape and Close still close
328
+ canClose={() => confirmDiscardIfDirty()} // asked BEFORE the modal starts closing
329
+ headerActions={<HelpButton />} // the content's own buttons, left of the window buttons
330
+ onDetach={openInSeparateWindow} // the "Open in new window" button
331
+ flush // the surface fills the body edge to edge and scrolls itself
332
+ …
333
+ />
334
+ ```
335
+
316
336
  ## Theming
317
337
 
318
338
  `ThemeProvider` applies a palette to `<html>`. It writes the derived `--color-*` properties, the