@vokril/ui-solid 0.40.0 → 0.41.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 +11 -0
  2. package/README.md +19 -0
  3. package/dist/CommandPalette-B9qLLuxQ.cjs +2 -0
  4. package/dist/{CommandPalette-1XfwrR2D.js → CommandPalette-BSLMG8km.js} +774 -786
  5. package/dist/{DateRangePicker-DL1j6ww5.js → DateRangePicker-DsNwzYqP.js} +1 -1
  6. package/dist/{DateRangePicker-CZddrCVN.cjs → DateRangePicker-G2mk1fZM.cjs} +1 -1
  7. package/dist/{GuidedTour-BxmPJE-B.cjs → GuidedTour-CJ09go6v.cjs} +1 -1
  8. package/dist/{GuidedTour-DzmN3Cfq.js → GuidedTour-CSq40Cp9.js} +1 -1
  9. package/dist/{IconPicker-xydEBrKw.cjs → IconPicker-BBXd8Wet.cjs} +1 -1
  10. package/dist/{IconPicker-BuQkoRRB.js → IconPicker-CXL9cVtH.js} +1 -1
  11. package/dist/Modal-C5MGcO3D.js +956 -0
  12. package/dist/Modal-CkNS2oaD.cjs +1 -0
  13. package/dist/{StatusBarNotificationBell-DvKKK9jh.js → StatusBarNotificationBell-6SNCYifJ.js} +4 -4
  14. package/dist/{StatusBarNotificationBell-BIg-eu1Y.cjs → StatusBarNotificationBell-CVxvsv8h.cjs} +1 -1
  15. package/dist/{ToggleButton-CrVTb5ZP.js → ToggleButton-B-9WSFMZ.js} +2 -2
  16. package/dist/{ToggleButton-sXKMeceC.cjs → ToggleButton-DRmBFJwM.cjs} +1 -1
  17. package/dist/{createDialogShellFocus-GXYQh0Oh.js → createDialogShellFocus-D2u_bO7f.js} +1 -1
  18. package/dist/{createDialogShellFocus-CLuQ1s0l.cjs → createDialogShellFocus-pWBCBflu.cjs} +1 -1
  19. package/dist/{createResizableSidebar-Beu5DVYW.cjs → createResizableSidebar-CjPj5vwC.cjs} +1 -1
  20. package/dist/{createResizableSidebar-BGseZrMh.js → createResizableSidebar-D4K0ZCvk.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 +27 -0
  30. package/dist/overlay/Modal.d.ts +27 -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-B9ymY_SI.js} +2 -2
  38. package/dist/server/{CommandPalette-BMwxv_Yy.cjs → CommandPalette-BpH6CMuv.cjs} +1 -1
  39. package/dist/server/{GuidedTour-JPHl9qAv.cjs → GuidedTour-hk_hg5S7.cjs} +1 -1
  40. package/dist/server/{GuidedTour-DhVy485y.js → GuidedTour-taurKiCd.js} +1 -1
  41. package/dist/server/{IconPicker-Xb9VX3Lk.cjs → IconPicker-BN3EyrRA.cjs} +1 -1
  42. package/dist/server/{IconPicker-bUaMtcMV.js → IconPicker-f0VYyq4T.js} +2 -2
  43. package/dist/server/Modal-CTMmcjaQ.js +760 -0
  44. package/dist/server/Modal-J1-hJdFU.cjs +1 -0
  45. package/dist/server/{StatusBarNotificationBell-CyNRKMtb.cjs → StatusBarNotificationBell-5rh44U0F.cjs} +1 -1
  46. package/dist/server/{StatusBarNotificationBell-DzrBLG0C.js → StatusBarNotificationBell-C82RZkZm.js} +2 -2
  47. package/dist/server/{ToggleButton-BTKq5h-y.js → ToggleButton-D-ffVLWs.js} +2 -2
  48. package/dist/server/{ToggleButton-J-cKrSwa.cjs → ToggleButton-DobG6pBr.cjs} +1 -1
  49. package/dist/server/{createResizableSidebar-ClRpRZLh.js → createResizableSidebar-69_PRJGJ.js} +2 -2
  50. package/dist/server/{createResizableSidebar-Bukt4w81.cjs → createResizableSidebar-B7L5UMWS.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-BLcoVa-m.cjs} +1 -1
  54. package/dist/server/{index-BglF6V2r.js → index-H8cYvjqO.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 +161 -4
  64. package/dist/solid/overlay/Modal.module.css.js +10 -0
  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
@@ -1,5 +1,6 @@
1
1
  import type { Accessor, JSX, ParentProps } from 'solid-js';
2
2
  import type { ActionPlace } from './actionPlace.cjs';
3
+ import { type ModalSize } from './modalResize.cjs';
3
4
  export interface ModalProps {
4
5
  open: Accessor<boolean>;
5
6
  onClose: () => void;
@@ -60,5 +61,31 @@ export interface ModalProps {
60
61
  decoration?: JSX.Element;
61
62
  transparentBackdrop?: boolean;
62
63
  onDialogMount?: (element: HTMLDivElement) => void;
64
+ /**
65
+ * Resize from the edges and corners, like a desktop window. Defaults to the host's choice for all its modals
66
+ * (`ModalDefaults.resizable`), then true. Never for `embedded` (its window is the frame) or while maximized.
67
+ */
68
+ resizable?: boolean | undefined;
69
+ /**
70
+ * The size a resizable modal opens at, px — the size the host remembered from `onResizeEnd`. Fitted to the
71
+ * window it opens in. Without it the modal sizes to its content up to `maxWidth`.
72
+ */
73
+ initialSize?: ModalSize | undefined;
74
+ /** Called once when a resize gesture ends, with the new size, px — for the host to remember. */
75
+ onResizeEnd?: ((size: ModalSize) => void) | undefined;
76
+ /**
77
+ * What a click on the backdrop does. `'close'` (the default) closes the modal. `'nudge'` keeps it and nudges the
78
+ * box (a short pop and a ring, as a danger confirmation answers): for a surface that holds a draft or work in
79
+ * progress, where a stray click must not throw it away. Escape and the Close button still close.
80
+ */
81
+ backdropDismiss?: 'close' | 'nudge' | undefined;
82
+ /**
83
+ * Asked before the modal starts closing — the Close button, Escape or the backdrop. `false` (or a promise of it)
84
+ * keeps the modal open and untouched, so a guard can ask "discard your changes?" while the modal is still
85
+ * there. Without it every close request closes.
86
+ */
87
+ canClose?: (() => boolean | Promise<boolean>) | undefined;
88
+ /** The content's own buttons in the header, left of the window buttons (filter, help, an actions menu). */
89
+ headerActions?: JSX.Element | undefined;
63
90
  }
64
91
  export declare function Modal(props: ParentProps<ModalProps>): JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import type { Accessor, JSX, ParentProps } from 'solid-js';
2
2
  import type { ActionPlace } from './actionPlace.js';
3
+ import { type ModalSize } from './modalResize.js';
3
4
  export interface ModalProps {
4
5
  open: Accessor<boolean>;
5
6
  onClose: () => void;
@@ -60,5 +61,31 @@ export interface ModalProps {
60
61
  decoration?: JSX.Element;
61
62
  transparentBackdrop?: boolean;
62
63
  onDialogMount?: (element: HTMLDivElement) => void;
64
+ /**
65
+ * Resize from the edges and corners, like a desktop window. Defaults to the host's choice for all its modals
66
+ * (`ModalDefaults.resizable`), then true. Never for `embedded` (its window is the frame) or while maximized.
67
+ */
68
+ resizable?: boolean | undefined;
69
+ /**
70
+ * The size a resizable modal opens at, px — the size the host remembered from `onResizeEnd`. Fitted to the
71
+ * window it opens in. Without it the modal sizes to its content up to `maxWidth`.
72
+ */
73
+ initialSize?: ModalSize | undefined;
74
+ /** Called once when a resize gesture ends, with the new size, px — for the host to remember. */
75
+ onResizeEnd?: ((size: ModalSize) => void) | undefined;
76
+ /**
77
+ * What a click on the backdrop does. `'close'` (the default) closes the modal. `'nudge'` keeps it and nudges the
78
+ * box (a short pop and a ring, as a danger confirmation answers): for a surface that holds a draft or work in
79
+ * progress, where a stray click must not throw it away. Escape and the Close button still close.
80
+ */
81
+ backdropDismiss?: 'close' | 'nudge' | undefined;
82
+ /**
83
+ * Asked before the modal starts closing — the Close button, Escape or the backdrop. `false` (or a promise of it)
84
+ * keeps the modal open and untouched, so a guard can ask "discard your changes?" while the modal is still
85
+ * there. Without it every close request closes.
86
+ */
87
+ canClose?: (() => boolean | Promise<boolean>) | undefined;
88
+ /** The content's own buttons in the header, left of the window buttons (filter, help, an actions menu). */
89
+ headerActions?: JSX.Element | undefined;
63
90
  }
64
91
  export declare function Modal(props: ParentProps<ModalProps>): JSX.Element;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-DgoP-6h9.cjs"),t=require("../Modal-Dq7OTcoz.cjs"),O=require("../OverlayScrollArea-Cr0VAApT.cjs"),a=require("../GuidedTour-BxmPJE-B.cjs"),p=require("../Disclosure-DHNtLOWi.cjs"),r=require("../nativeTitleHold-B7Ou-W9b.cjs"),M=require("../Input-C43Tmb2p.cjs"),n=require("../anchoredLayout-CBjQ1etD.cjs"),o=require("../overlayStack-eD8AmuwY.cjs"),T=require("../useFloatingDropdown-D5UayoN6.cjs"),d=require("../ownerWindow-BCmJFMbR.cjs"),D=require("../ownerAnimationFrame-T6jf6qYC.cjs"),l=require("../prefersReducedMotion-DYR56SKZ.cjs"),s=require("../kitHost-u0-mKvEK.cjs"),u=require("../dialogFocusRestore-DP5b1bDo.cjs"),_=require("../createDialogShellFocus-CLuQ1s0l.cjs"),c=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),i=require("../Popover-CLTXG8W0.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SaveDiscardDialog=e.SaveDiscardDialog;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=t.ActionPlaceRow;exports.HoverTooltip=t.HoverTooltip;exports.Modal=t.Modal;exports.TOOLTIP_CURSOR_OFFSET_X=t.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=t.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=t.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=t.TOOLTIP_VIEWPORT_MARGIN;exports.collectFocusableElements=t.collectFocusableElements;exports.computeTooltipPointerPosition=t.computeTooltipPointerPosition;exports.modalTitlebarHeight=t.modalTitlebarHeight;exports.resolveDialogShellKeyIntent=t.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=t.resolveModalFocusTrapTarget;exports.trapTabFocusWithin=t.trapTabFocusWithin;exports.OverlayScrollArea=O.OverlayScrollArea;exports.GuidedTour=a.GuidedTour;exports.Panel=a.Panel;exports.PanelSeparator=a.PanelSeparator;exports.positionTourCard=a.positionTourCard;exports.Disclosure=p.Disclosure;exports.COLD_DELAY_MS=r.COLD_DELAY_MS;exports.COOLDOWN_MS=r.COOLDOWN_MS;exports.DEFAULT_MARGIN=r.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=r.DEFAULT_OFFSET;exports.WARM_DELAY_MS=r.WARM_DELAY_MS;exports.computeAnchoredTooltipPosition=r.computeAnchoredTooltipPosition;exports.createTooltipCoordinator=r.createTooltipCoordinator;exports.tooltipCoordinator=r.tooltipCoordinator;exports.OverlayPortal=M.OverlayPortal;exports.AnchorAlignment=n.AnchorAlignment;exports.AnchorAxisAlignment=n.AnchorAxisAlignment;exports.AnchorPosition=n.AnchorPosition;exports.OVERLAY_DEFAULT_GAP=n.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=n.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=n.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=n.POPOVER_VIEWPORT_MARGIN;exports.calcFixedWidthDropdownLeft=n.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=n.computeAnchoredPosition;exports.computeDropdownPosition=n.computeDropdownPosition;exports.computePopoverPosition=n.computePopoverPosition;exports.layout2d=n.layout2d;exports.resolvePopoverSide=n.resolvePopoverSide;exports.getOverlayDiagnostics=o.getOverlayDiagnostics;exports.hasOpenLayerIn=o.hasOpenLayerIn;exports.isAnyOverlayOpen=o.isAnyOverlayOpen;exports.isModalOccluded=o.isModalOccluded;exports.isOverlayOverlapping=o.isOverlayOverlapping;exports.notifyOverlayChanged=o.notifyOverlayChanged;exports.notifyOverlayMotionEnd=o.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=o.notifyOverlayMotionStart;exports.onOverlayMotion=o.onOverlayMotion;exports.overlayDepth=o.overlayDepth;exports.readOverlayMutationRevision=o.readOverlayMutationRevision;exports.registerOverlayClose=o.registerOverlayClose;exports.registerOverlayCondition=o.registerOverlayCondition;exports.registerOverlayOpen=o.registerOverlayOpen;exports.useOverlayRegistration=o.useOverlayRegistration;exports.useFloatingDropdown=T.useFloatingDropdown;exports.ownerWindow=d.ownerWindow;exports.requestOwnerAnimationFrame=D.requestOwnerAnimationFrame;exports.modalBackgroundExemption=l.modalBackgroundExemption;exports.neutralizeBackground=l.neutralizeBackground;exports.ModalDefaultsProvider=s.ModalDefaultsProvider;exports.useModalDefaults=s.useModalDefaults;exports.restoreFocusTo=u.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=u.shouldRestoreFocusOnDialogClose;exports.createDialogShellFocus=_.createDialogShellFocus;exports.DesktopContextMenuContext=c.DesktopContextMenuContext;exports.useDesktopContextMenu=c.useDesktopContextMenu;exports.LISTBOX_OPTION_SELECTOR=i.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=i.MENU_ITEM_SELECTOR;exports.Popover=i.Popover;exports.isPopoverNavigationKey=i.isPopoverNavigationKey;exports.resolvePopoverFocusForKey=i.resolvePopoverFocusForKey;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../CommandPalette-B9qLLuxQ.cjs"),t=require("../Modal-CkNS2oaD.cjs"),O=require("../OverlayScrollArea-Cr0VAApT.cjs"),a=require("../GuidedTour-CJ09go6v.cjs"),p=require("../Disclosure-DHNtLOWi.cjs"),r=require("../nativeTitleHold-B7Ou-W9b.cjs"),M=require("../Input-C43Tmb2p.cjs"),n=require("../anchoredLayout-CBjQ1etD.cjs"),o=require("../overlayStack-eD8AmuwY.cjs"),T=require("../useFloatingDropdown-D5UayoN6.cjs"),d=require("../ownerWindow-BCmJFMbR.cjs"),D=require("../ownerAnimationFrame-T6jf6qYC.cjs"),l=require("../prefersReducedMotion-DYR56SKZ.cjs"),s=require("../kitHost-u0-mKvEK.cjs"),u=require("../dialogFocusRestore-DP5b1bDo.cjs"),_=require("../createDialogShellFocus-pWBCBflu.cjs"),c=require("../DesktopContextMenuContext-DMGNVjaR.cjs"),i=require("../Popover-CLTXG8W0.cjs");exports.CommandPalette=e.CommandPalette;exports.ConfirmDialog=e.ConfirmDialog;exports.ConsequenceLine=e.ConsequenceLine;exports.ContextMenu=e.ContextMenu;exports.DesktopContextMenu=e.DesktopContextMenu;exports.Drawer=e.Drawer;exports.DropdownMenu=e.DropdownMenu;exports.FloatingWindow=e.FloatingWindow;exports.InputDialog=e.InputDialog;exports.MenuDisclosure=e.MenuDisclosure;exports.MenuEmpty=e.MenuEmpty;exports.MenuItem=e.MenuItem;exports.MenuList=e.MenuList;exports.MenuSearch=e.MenuSearch;exports.MenuSection=e.MenuSection;exports.MenuSeparator=e.MenuSeparator;exports.NameStep=e.NameStep;exports.OptionList=e.OptionList;exports.PopoverPanel=e.PopoverPanel;exports.SUBMENU_ANCHOR_OVERLAP=e.SUBMENU_ANCHOR_OVERLAP;exports.SUBMENU_ESTIMATED_ROW_HEIGHT=e.SUBMENU_ESTIMATED_ROW_HEIGHT;exports.SUBMENU_ESTIMATED_WIDTH=e.SUBMENU_ESTIMATED_WIDTH;exports.SUBMENU_MIN_ESTIMATED_HEIGHT=e.SUBMENU_MIN_ESTIMATED_HEIGHT;exports.SUBMENU_VIEWPORT_MARGIN=e.SUBMENU_VIEWPORT_MARGIN;exports.SaveDiscardDialog=e.SaveDiscardDialog;exports.SelectedOptions=e.SelectedOptions;exports.StatementPreview=e.StatementPreview;exports.StepFooter=e.StepFooter;exports.Tooltip=e.Tooltip;exports.TooltipHost=e.TooltipHost;exports.closeContextMenu=e.closeContextMenu;exports.computeSubmenuPlacement=e.computeSubmenuPlacement;exports.confirmationLevelOf=e.confirmationLevelOf;exports.createDangerousActionDialog=e.createDangerousActionDialog;exports.createDesktopContextMenuApi=e.createDesktopContextMenuApi;exports.createDialogFocusScope=e.createDialogFocusScope;exports.createOverlayCloseGuard=e.createOverlayCloseGuard;exports.describeConsequence=e.describeConsequence;exports.estimateSubmenuHeight=e.estimateSubmenuHeight;exports.firstFocusableMenuIndex=e.firstFocusableMenuIndex;exports.isDesktopMenuNavigationKey=e.isDesktopMenuNavigationKey;exports.isIrreversible=e.isIrreversible;exports.lastFocusableMenuIndex=e.lastFocusableMenuIndex;exports.menuSurfaceClasses=e.menuSurfaceClasses;exports.nextFocusableMenuIndex=e.nextFocusableMenuIndex;exports.openContextMenu=e.openContextMenu;exports.panelClasses=e.panelClasses;exports.resolveDangerousActionDialogKeyIntent=e.resolveDangerousActionDialogKeyIntent;exports.resolveMenuFocusForKey=e.resolveMenuFocusForKey;exports.tooltip=e.tooltip;exports.ActionPlaceRow=t.ActionPlaceRow;exports.HoverTooltip=t.HoverTooltip;exports.Modal=t.Modal;exports.TOOLTIP_CURSOR_OFFSET_X=t.TOOLTIP_CURSOR_OFFSET_X;exports.TOOLTIP_CURSOR_OFFSET_Y=t.TOOLTIP_CURSOR_OFFSET_Y;exports.TOOLTIP_MAX_FOOTPRINT_X=t.TOOLTIP_MAX_FOOTPRINT_X;exports.TOOLTIP_VIEWPORT_MARGIN=t.TOOLTIP_VIEWPORT_MARGIN;exports.collectFocusableElements=t.collectFocusableElements;exports.computeTooltipPointerPosition=t.computeTooltipPointerPosition;exports.modalTitlebarHeight=t.modalTitlebarHeight;exports.resolveDialogShellKeyIntent=t.resolveDialogShellKeyIntent;exports.resolveModalFocusTrapTarget=t.resolveModalFocusTrapTarget;exports.trapTabFocusWithin=t.trapTabFocusWithin;exports.OverlayScrollArea=O.OverlayScrollArea;exports.GuidedTour=a.GuidedTour;exports.Panel=a.Panel;exports.PanelSeparator=a.PanelSeparator;exports.positionTourCard=a.positionTourCard;exports.Disclosure=p.Disclosure;exports.COLD_DELAY_MS=r.COLD_DELAY_MS;exports.COOLDOWN_MS=r.COOLDOWN_MS;exports.DEFAULT_MARGIN=r.DEFAULT_MARGIN;exports.DEFAULT_OFFSET=r.DEFAULT_OFFSET;exports.WARM_DELAY_MS=r.WARM_DELAY_MS;exports.computeAnchoredTooltipPosition=r.computeAnchoredTooltipPosition;exports.createTooltipCoordinator=r.createTooltipCoordinator;exports.tooltipCoordinator=r.tooltipCoordinator;exports.OverlayPortal=M.OverlayPortal;exports.AnchorAlignment=n.AnchorAlignment;exports.AnchorAxisAlignment=n.AnchorAxisAlignment;exports.AnchorPosition=n.AnchorPosition;exports.OVERLAY_DEFAULT_GAP=n.OVERLAY_DEFAULT_GAP;exports.OVERLAY_DEFAULT_MARGIN=n.OVERLAY_DEFAULT_MARGIN;exports.POPOVER_DEFAULT_GAP=n.POPOVER_DEFAULT_GAP;exports.POPOVER_VIEWPORT_MARGIN=n.POPOVER_VIEWPORT_MARGIN;exports.calcFixedWidthDropdownLeft=n.calcFixedWidthDropdownLeft;exports.computeAnchoredPosition=n.computeAnchoredPosition;exports.computeDropdownPosition=n.computeDropdownPosition;exports.computePopoverPosition=n.computePopoverPosition;exports.layout2d=n.layout2d;exports.resolvePopoverSide=n.resolvePopoverSide;exports.getOverlayDiagnostics=o.getOverlayDiagnostics;exports.hasOpenLayerIn=o.hasOpenLayerIn;exports.isAnyOverlayOpen=o.isAnyOverlayOpen;exports.isModalOccluded=o.isModalOccluded;exports.isOverlayOverlapping=o.isOverlayOverlapping;exports.notifyOverlayChanged=o.notifyOverlayChanged;exports.notifyOverlayMotionEnd=o.notifyOverlayMotionEnd;exports.notifyOverlayMotionStart=o.notifyOverlayMotionStart;exports.onOverlayMotion=o.onOverlayMotion;exports.overlayDepth=o.overlayDepth;exports.readOverlayMutationRevision=o.readOverlayMutationRevision;exports.registerOverlayClose=o.registerOverlayClose;exports.registerOverlayCondition=o.registerOverlayCondition;exports.registerOverlayOpen=o.registerOverlayOpen;exports.useOverlayRegistration=o.useOverlayRegistration;exports.useFloatingDropdown=T.useFloatingDropdown;exports.ownerWindow=d.ownerWindow;exports.requestOwnerAnimationFrame=D.requestOwnerAnimationFrame;exports.modalBackgroundExemption=l.modalBackgroundExemption;exports.neutralizeBackground=l.neutralizeBackground;exports.ModalDefaultsProvider=s.ModalDefaultsProvider;exports.useModalDefaults=s.useModalDefaults;exports.restoreFocusTo=u.restoreFocusTo;exports.shouldRestoreFocusOnDialogClose=u.shouldRestoreFocusOnDialogClose;exports.createDialogShellFocus=_.createDialogShellFocus;exports.DesktopContextMenuContext=c.DesktopContextMenuContext;exports.useDesktopContextMenu=c.useDesktopContextMenu;exports.LISTBOX_OPTION_SELECTOR=i.LISTBOX_OPTION_SELECTOR;exports.MENU_ITEM_SELECTOR=i.MENU_ITEM_SELECTOR;exports.Popover=i.Popover;exports.isPopoverNavigationKey=i.isPopoverNavigationKey;exports.resolvePopoverFocusForKey=i.resolvePopoverFocusForKey;
@@ -1,7 +1,7 @@
1
- import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as m, j as d, k as D, N as E, O as P, P as _, S as A, l as v, m as S, n as x, o as f, p as g, q as I, r as F, s as C, T as y, t as R, u as L, v as N, w as h, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as q, U as j, V as z, W as J, X as Q } from "../CommandPalette-1XfwrR2D.js";
2
- import { A as $, H as ee, M as ae, T as oe, a as se, b as te, c as re, d as ne, e as ie, m as le, r as ue, f as pe, t as Oe } from "../Modal-DospFxAr.js";
1
+ import { C as o, a as s, b as t, c as r, D as n, d as i, e as l, F as u, I as p, M as O, f as c, g as M, h as T, i as m, j as d, k as D, N as E, O as P, P as _, S as A, l as v, m as S, n as x, o as f, p as g, q as I, r as F, s as C, T as y, t as R, u as L, v as N, w as h, x as U, y as b, z as G, A as W, B as w, E as H, G as k, H as B, J as V, K, L as X, Q as Y, R as q, U as j, V as z, W as J, X as Q } from "../CommandPalette-BSLMG8km.js";
2
+ import { A as $, H as ee, M as ae, T as oe, a as se, b as te, c as re, d as ne, e as ie, m as le, r as ue, f as pe, t as Oe } from "../Modal-C5MGcO3D.js";
3
3
  import { O as Me } from "../OverlayScrollArea-CrrPFLq9.js";
4
- import { G as me, P as de, a as De, p as Ee } from "../GuidedTour-DzmN3Cfq.js";
4
+ import { G as me, P as de, a as De, p as Ee } from "../GuidedTour-CSq40Cp9.js";
5
5
  import { D as _e } from "../Disclosure-0tZlCnkH.js";
6
6
  import { C as ve, a as Se, D as xe, b as fe, W as ge, c as Ie, d as Fe, t as Ce } from "../nativeTitleHold-A9jUISgQ.js";
7
7
  import { O as Re } from "../Input-BDjgWn-u.js";
@@ -13,7 +13,7 @@ import { r as Ma } from "../ownerAnimationFrame-DzFcMSmn.js";
13
13
  import { m as ma, n as da } from "../prefersReducedMotion-qcGrKv14.js";
14
14
  import { M as Ea, a as Pa } from "../kitHost-BMMWpU4w.js";
15
15
  import { r as Aa, s as va } from "../dialogFocusRestore-BhxVTSiP.js";
16
- import { c as xa } from "../createDialogShellFocus-GXYQh0Oh.js";
16
+ import { c as xa } from "../createDialogShellFocus-D2u_bO7f.js";
17
17
  import { D as ga, u as Ia } from "../DesktopContextMenuContext-DJ3PnqAv.js";
18
18
  import { L as Ca, M as ya, P as Ra, i as La, r as Na } from "../Popover-DkqGvMNy.js";
19
19
  export {
@@ -13,6 +13,11 @@ export interface ModalDefaults {
13
13
  * (`workbench/browser/parts/editor/modalEditorPart.ts:456-459`). Unset, the kit's default holds (`true`).
14
14
  */
15
15
  readonly allowMaximizedDrag?: boolean | undefined;
16
+ /**
17
+ * Default of `Modal`'s `resizable`: whether a modal can be resized from its edges and corners. Unset, the kit's
18
+ * default holds (`true`).
19
+ */
20
+ readonly resizable?: boolean | undefined;
16
21
  }
17
22
  /** Gives every `Modal` under it these defaults. */
18
23
  export declare function ModalDefaultsProvider(props: {
@@ -13,6 +13,11 @@ export interface ModalDefaults {
13
13
  * (`workbench/browser/parts/editor/modalEditorPart.ts:456-459`). Unset, the kit's default holds (`true`).
14
14
  */
15
15
  readonly allowMaximizedDrag?: boolean | undefined;
16
+ /**
17
+ * Default of `Modal`'s `resizable`: whether a modal can be resized from its edges and corners. Unset, the kit's
18
+ * default holds (`true`).
19
+ */
20
+ readonly resizable?: boolean | undefined;
16
21
  }
17
22
  /** Gives every `Modal` under it these defaults. */
18
23
  export declare function ModalDefaultsProvider(props: {
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Resize geometry of a modal — pure, so the component only feeds it the pointer.
3
+ *
4
+ * The modal is centred by its overlay and moved by a drag offset (`--modal-drag-x/y`). A resize gesture
5
+ * computes the rectangle the user asked for ({@link resizeRect}) and then the offset that puts the
6
+ * resized, re-centred box exactly there ({@link offsetForRect}): growing the box by `d` moves its centred
7
+ * position by `-d / 2`, so the offset carries the other half and the edge opposite the grabbed one
8
+ * stays still.
9
+ */
10
+ export type ModalResizeEdge = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
11
+ export declare const MODAL_RESIZE_EDGES: readonly ModalResizeEdge[];
12
+ export interface ModalRect {
13
+ readonly left: number;
14
+ readonly top: number;
15
+ readonly width: number;
16
+ readonly height: number;
17
+ }
18
+ export interface ModalSize {
19
+ readonly width: number;
20
+ readonly height: number;
21
+ }
22
+ export interface ModalResizeBounds {
23
+ readonly minWidth: number;
24
+ readonly minHeight: number;
25
+ readonly viewportWidth: number;
26
+ readonly viewportHeight: number;
27
+ /** The window's title bar height: the box never goes under it. */
28
+ readonly titlebar: number;
29
+ /** Space the layout keeps under the title bar and at the bottom (the overlay's vertical padding). */
30
+ readonly gap: number;
31
+ }
32
+ /** Smallest box a resize gesture leaves. */
33
+ export declare const MODAL_MIN_SIZE: ModalSize;
34
+ /** The tallest box the layout shows (the stylesheet's `max-height`). */
35
+ export declare function maxModalHeight(bounds: ModalResizeBounds): number;
36
+ /** The rectangle a resize from `edge` by `dx`/`dy` asks for, kept inside the window and above the minimum. */
37
+ export declare function resizeRect(start: ModalRect, edge: ModalResizeEdge, dx: number, dy: number, bounds: ModalResizeBounds): ModalRect;
38
+ /**
39
+ * The drag offset that puts a box of `rect`'s size at `rect`'s place, given where the box was and its
40
+ * offset when the gesture started.
41
+ */
42
+ export declare function offsetForRect(start: ModalRect, startOffset: {
43
+ readonly x: number;
44
+ readonly y: number;
45
+ }, rect: ModalRect): {
46
+ x: number;
47
+ y: number;
48
+ };
49
+ /** A remembered size, fitted to the current window (a smaller screen, a restored window). */
50
+ export declare function fitModalSize(size: ModalSize, bounds: ModalResizeBounds): ModalSize;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Resize geometry of a modal — pure, so the component only feeds it the pointer.
3
+ *
4
+ * The modal is centred by its overlay and moved by a drag offset (`--modal-drag-x/y`). A resize gesture
5
+ * computes the rectangle the user asked for ({@link resizeRect}) and then the offset that puts the
6
+ * resized, re-centred box exactly there ({@link offsetForRect}): growing the box by `d` moves its centred
7
+ * position by `-d / 2`, so the offset carries the other half and the edge opposite the grabbed one
8
+ * stays still.
9
+ */
10
+ export type ModalResizeEdge = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw';
11
+ export declare const MODAL_RESIZE_EDGES: readonly ModalResizeEdge[];
12
+ export interface ModalRect {
13
+ readonly left: number;
14
+ readonly top: number;
15
+ readonly width: number;
16
+ readonly height: number;
17
+ }
18
+ export interface ModalSize {
19
+ readonly width: number;
20
+ readonly height: number;
21
+ }
22
+ export interface ModalResizeBounds {
23
+ readonly minWidth: number;
24
+ readonly minHeight: number;
25
+ readonly viewportWidth: number;
26
+ readonly viewportHeight: number;
27
+ /** The window's title bar height: the box never goes under it. */
28
+ readonly titlebar: number;
29
+ /** Space the layout keeps under the title bar and at the bottom (the overlay's vertical padding). */
30
+ readonly gap: number;
31
+ }
32
+ /** Smallest box a resize gesture leaves. */
33
+ export declare const MODAL_MIN_SIZE: ModalSize;
34
+ /** The tallest box the layout shows (the stylesheet's `max-height`). */
35
+ export declare function maxModalHeight(bounds: ModalResizeBounds): number;
36
+ /** The rectangle a resize from `edge` by `dx`/`dy` asks for, kept inside the window and above the minimum. */
37
+ export declare function resizeRect(start: ModalRect, edge: ModalResizeEdge, dx: number, dy: number, bounds: ModalResizeBounds): ModalRect;
38
+ /**
39
+ * The drag offset that puts a box of `rect`'s size at `rect`'s place, given where the box was and its
40
+ * offset when the gesture started.
41
+ */
42
+ export declare function offsetForRect(start: ModalRect, startOffset: {
43
+ readonly x: number;
44
+ readonly y: number;
45
+ }, rect: ModalRect): {
46
+ x: number;
47
+ y: number;
48
+ };
49
+ /** A remembered size, fitted to the current window (a smaller screen, a restored window). */
50
+ export declare function fitModalSize(size: ModalSize, bounds: ModalResizeBounds): ModalSize;
@@ -10,8 +10,8 @@ import { B as Nt } from "./Badge-C1Jn--DR.js";
10
10
  import { O as _e } from "./OverlayScrollArea-h6G3yk6U.js";
11
11
  import { a as Qe, g as Te } from "./window-CUK6x8Pj.js";
12
12
  import { t as u, l as Ft } from "./i18n-DlGM3NSR.js";
13
- import { A as ht, t as qe, s as Oe, V as Ht, i as Vt, j as qt } from "./Modal-CL3mMf3_.js";
14
- import { b as H, P as Ce } from "./GuidedTour-DhVy485y.js";
13
+ import { A as ht, t as qe, s as Oe, V as Ht, i as Vt, j as qt } from "./Modal-CTMmcjaQ.js";
14
+ import { b as H, P as Ce } from "./GuidedTour-taurKiCd.js";
15
15
  import { u as jt, D as Kt } from "./DesktopContextMenuContext-DJ3PnqAv.js";
16
16
  import { o as De } from "./ownerWindow-9mx_LD47.js";
17
17
  import { b as Yt, A as Ut, V as vt, e as Qt } from "./Popover-e9JpRh11.js";