@justanarthur/modo-ui 2.1.0 → 2.3.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 (145) hide show
  1. package/blocks/desktop-shell/index.tsx +2 -1
  2. package/components/inputs/checkbox/index.tsx +5 -0
  3. package/components/inputs/combobox/index.tsx +9 -4
  4. package/components/inputs/radio/index.tsx +5 -0
  5. package/components/inputs/select/index.tsx +23 -3
  6. package/components/inputs/slider/comfortable.tsx +10 -4
  7. package/components/inputs/slider/compact.tsx +153 -71
  8. package/components/inputs/slider/examples.mdx +24 -0
  9. package/components/inputs/slider/geometry.ts +18 -6
  10. package/components/inputs/slider/index.tsx +30 -8
  11. package/components/inputs/slider/value-display.tsx +16 -9
  12. package/components/inputs/switch/index.tsx +5 -0
  13. package/components/inputs/textarea/examples.mdx +19 -0
  14. package/components/inputs/textarea/index.tsx +42 -5
  15. package/components/navigation/sidebar/sidebar-group.tsx +2 -1
  16. package/components/navigation/sidebar/sidebar-menu-sub.tsx +2 -1
  17. package/components/navigation/sidebar/sidebar-shell.tsx +2 -1
  18. package/components/navigation/tree/index.tsx +2 -1
  19. package/components/overlays/dropdown/index.tsx +50 -8
  20. package/components/overlays/dropdown/submenu.tsx +41 -10
  21. package/components/overlays/tooltip/examples.mdx +13 -0
  22. package/components/overlays/tooltip/index.tsx +58 -16
  23. package/dist/blocks/desktop-shell/index.js +10 -9
  24. package/dist/blocks/sidebar-app/index.js +11 -10
  25. package/dist/components/actions/button/index.js +2 -2
  26. package/dist/components/actions/copy/index.js +4 -4
  27. package/dist/components/containers/accordion/index.d.ts +1 -1
  28. package/dist/components/containers/accordion/index.js +2 -2
  29. package/dist/components/containers/card/index.js +3 -3
  30. package/dist/components/data-display/log-view/index.js +3 -3
  31. package/dist/components/inputs/checkbox/index.d.ts +2 -0
  32. package/dist/components/inputs/checkbox/index.js +1 -1
  33. package/dist/components/inputs/color-picker/index.js +5 -5
  34. package/dist/components/inputs/combobox/index.d.ts +1 -1
  35. package/dist/components/inputs/combobox/index.js +2 -2
  36. package/dist/components/inputs/date-time/date-picker/index.js +7 -7
  37. package/dist/components/inputs/date-time/date-range-picker/index.js +7 -7
  38. package/dist/components/inputs/date-time/duration-picker/index.js +7 -7
  39. package/dist/components/inputs/date-time/month-picker/index.js +7 -7
  40. package/dist/components/inputs/date-time/time-picker/index.js +7 -7
  41. package/dist/components/inputs/field/index.js +2 -2
  42. package/dist/components/inputs/file-dropzone/index.js +3 -3
  43. package/dist/components/inputs/key-value/index.js +3 -3
  44. package/dist/components/inputs/radio/index.d.ts +2 -0
  45. package/dist/components/inputs/radio/index.js +1 -1
  46. package/dist/components/inputs/search/index.js +6 -6
  47. package/dist/components/inputs/select/index.d.ts +22 -4
  48. package/dist/components/inputs/select/index.js +3 -3
  49. package/dist/components/inputs/slider/index.d.ts +12 -3
  50. package/dist/components/inputs/slider/index.js +1 -1
  51. package/dist/components/inputs/switch/index.d.ts +2 -0
  52. package/dist/components/inputs/switch/index.js +1 -1
  53. package/dist/components/inputs/textarea/index.d.ts +8 -1
  54. package/dist/components/inputs/textarea/index.js +1 -1
  55. package/dist/components/navigation/breadcrumb/index.js +4 -4
  56. package/dist/components/navigation/navigation-menu/index.js +2 -2
  57. package/dist/components/navigation/pagination/index.js +3 -3
  58. package/dist/components/navigation/sidebar/index.js +8 -7
  59. package/dist/components/navigation/tree/index.js +2 -1
  60. package/dist/components/overlays/alert-dialog/index.d.ts +3 -3
  61. package/dist/components/overlays/alert-dialog/index.js +5 -5
  62. package/dist/components/overlays/command/index.d.ts +1 -1
  63. package/dist/components/overlays/command/index.js +5 -5
  64. package/dist/components/overlays/context-menu/index.d.ts +20 -1
  65. package/dist/components/overlays/context-menu/index.js +4 -4
  66. package/dist/components/overlays/dialog/index.d.ts +3 -3
  67. package/dist/components/overlays/dialog/index.js +4 -4
  68. package/dist/components/overlays/dropdown/index.d.ts +30 -8
  69. package/dist/components/overlays/dropdown/index.js +3 -3
  70. package/dist/components/overlays/lightbox/index.js +3 -3
  71. package/dist/components/overlays/popover/index.d.ts +6 -6
  72. package/dist/components/overlays/popover/index.js +3 -3
  73. package/dist/components/overlays/preview-card/index.js +2 -2
  74. package/dist/components/overlays/sheet/index.d.ts +3 -3
  75. package/dist/components/overlays/sheet/index.js +5 -5
  76. package/dist/components/overlays/toast/index.d.ts +1 -1
  77. package/dist/components/overlays/toast/index.js +3 -3
  78. package/dist/components/overlays/tooltip/index.d.ts +35 -10
  79. package/dist/components/overlays/tooltip/index.js +3 -3
  80. package/dist/docs/index.js +9 -8
  81. package/dist/index.d.ts +92 -38
  82. package/dist/index.js +47 -46
  83. package/dist/lib/inert.d.ts +7 -0
  84. package/dist/lib/inert.js +6 -0
  85. package/dist/lib/overlay.d.ts +20 -13
  86. package/dist/lib/overlay.js +2 -1
  87. package/dist/lib/slot.d.ts +5 -2
  88. package/dist/lib/slot.js +1 -1
  89. package/dist/primitives/layout/resizable/index.d.ts +4 -2
  90. package/dist/primitives/layout/resizable/index.js +1 -1
  91. package/dist/primitives/systems/morph/index.js +3 -3
  92. package/dist/primitives/systems/motion/index.js +3 -3
  93. package/dist/shared/{components-s90v3jpr.js → components-01e24999.js} +60 -11
  94. package/dist/shared/{components-a1ms36qq.js → components-1f5624hb.js} +1 -1
  95. package/dist/shared/{components-9z7bq8gn.js → components-1sbnbq6a.js} +1 -1
  96. package/dist/shared/{components-w2at9ntm.js → components-27fatggq.js} +1 -1
  97. package/dist/shared/{components-fmyvz4r2.js → components-2bq4ng4d.js} +4 -4
  98. package/dist/shared/components-2myjk2zf.js +8 -0
  99. package/dist/shared/{components-hz6armxa.js → components-2tw25pk6.js} +3 -0
  100. package/dist/shared/{components-nhmgr5xc.js → components-2v4mmw1s.js} +10 -7
  101. package/dist/shared/{components-twyj2y8c.js → components-3rt5c1qt.js} +1 -1
  102. package/dist/shared/{components-91mmbrw3.js → components-3sb31vw5.js} +1 -1
  103. package/dist/shared/{components-1f3a7gmg.js → components-4fswe4kh.js} +1 -1
  104. package/dist/shared/{components-gsstwhtv.js → components-5vezp3e5.js} +3 -0
  105. package/dist/shared/{components-ee09xmkh.js → components-6g8a5nrs.js} +4 -1
  106. package/dist/shared/{components-h0x2pj2y.js → components-6xtntksc.js} +17 -3
  107. package/dist/shared/{components-1asw2ph0.js → components-7g2q2ccp.js} +1 -1
  108. package/dist/shared/{components-kwxye0an.js → components-7wjkag2j.js} +4 -2
  109. package/dist/shared/{components-vfreweq3.js → components-83jn0raj.js} +1 -1
  110. package/dist/shared/{components-1bnf96sr.js → components-8e0fjgm9.js} +37 -9
  111. package/dist/shared/{components-j79a6jqa.js → components-8ybvpebx.js} +1 -1
  112. package/dist/shared/{components-me742146.js → components-a3brpprb.js} +1 -1
  113. package/dist/shared/{components-ev0ytbqb.js → components-abqfs5fh.js} +1 -1
  114. package/dist/shared/{components-r5q9gdh4.js → components-agjpst9b.js} +5 -5
  115. package/dist/shared/{components-6rtawx8y.js → components-e52xgvd9.js} +4 -4
  116. package/dist/shared/{components-0cpte6s1.js → components-eebf7f9c.js} +4 -3
  117. package/dist/shared/{components-xa9fvd5b.js → components-etgpz4zk.js} +1 -1
  118. package/dist/shared/{components-b9bj65j3.js → components-ex2xtqv7.js} +6 -6
  119. package/dist/shared/{components-n0gbyp5a.js → components-fjg4j430.js} +5 -5
  120. package/dist/shared/{components-280grw6q.js → components-fxw1122w.js} +1 -1
  121. package/dist/shared/{components-y8m64zdw.js → components-gnsvnejm.js} +1 -1
  122. package/dist/shared/{components-7mj5wsv3.js → components-gr82tz50.js} +21 -3
  123. package/dist/shared/{components-22h8dvt1.js → components-k25zw9g8.js} +3 -3
  124. package/dist/shared/{components-a1mwqxsv.js → components-k2gg1agj.js} +3 -3
  125. package/dist/shared/{components-wx1dcp2n.js → components-kz6ak6kj.js} +1 -1
  126. package/dist/shared/{components-yf2gtq68.js → components-m7d7r3r8.js} +8 -5
  127. package/dist/shared/{components-62510420.js → components-mvwf8ckh.js} +4 -4
  128. package/dist/shared/{components-2m2hg11x.js → components-nh05qz8b.js} +3 -3
  129. package/dist/shared/{components-77gxngmc.js → components-nred2e6g.js} +5 -5
  130. package/dist/shared/{components-3rvrdsa9.js → components-s2pnh8h9.js} +1 -1
  131. package/dist/shared/{components-xnkc892z.js → components-t4j0r23n.js} +1 -1
  132. package/dist/shared/{components-rgng034x.js → components-tcm3k3wj.js} +24 -3
  133. package/dist/shared/{components-p32aqk3q.js → components-vx286kq7.js} +110 -73
  134. package/dist/shared/{components-b2kjsn1s.js → components-vykcfb5r.js} +1 -1
  135. package/dist/shared/{components-hcftn5r8.js → components-x5v7e0fz.js} +3 -0
  136. package/dist/shared/{components-0h2mng6m.js → components-ycwhrqe1.js} +1 -1
  137. package/dist/shared/{components-chda6b23.js → components-ypxst3cn.js} +33 -4
  138. package/dist/shared/{components-14wzcym0.js → components-z87sanbc.js} +5 -5
  139. package/dist/shared/{components-fqsgd07c.js → components-zv63s4fh.js} +2 -2
  140. package/dist/styles.css +5 -1
  141. package/lib/inert.ts +15 -0
  142. package/lib/overlay.tsx +49 -5
  143. package/lib/slot.tsx +9 -3
  144. package/package.json +6 -1
  145. package/primitives/layout/resizable/index.tsx +35 -7
@@ -1,5 +1,7 @@
1
1
  import { MenuRootChangeEventDetails as MenuRootChangeEventDetails2 } from "@base-ui/react/menu";
2
2
  import { ForwardRefExoticComponent as ForwardRefExoticComponent2, HTMLAttributes as HTMLAttributes6, ReactNode as ReactNode9, RefAttributes as RefAttributes2 } from "react";
3
+ import { Popover } from "@base-ui/react/popover";
4
+ import { ComponentProps } from "react";
3
5
  import { RefObject } from "react";
4
6
  type MorphSide = "top" | "right" | "bottom" | "left";
5
7
  type MorphFrom = "trigger" | "pointer" | "center" | MorphSide | RefObject<HTMLElement | null>;
@@ -35,10 +37,25 @@ interface AnchorProps {
35
37
  /** Portal target. Defaults to the nearest `PortalContainer`, else the document body. */
36
38
  container?: HTMLElement | null;
37
39
  }
40
+ type Positioner2 = ComponentProps<typeof Popover.Positioner2>;
41
+ /**
42
+ * The finer positioning props a content may add to `AnchorProps`, forwarded
43
+ * to Base UI's `Positioner` by `positionerProps`. Documented once.
44
+ */
45
+ interface CollisionProps {
46
+ /** Shift along the aligned edge in px, after `align`, or Base UI's function of side, align and sizes. Defaults to `0`. */
47
+ alignOffset?: Positioner2["alignOffset"];
48
+ /** Space kept between the panel and the edge of its collision boundary, in px or per side. Defaults to `5`. */
49
+ collisionPadding?: Positioner2["collisionPadding"];
50
+ /** The area the panel stays inside: an element, several, or a rect. Defaults to `'clipping-ancestors'`. */
51
+ collisionBoundary?: Positioner2["collisionBoundary"];
52
+ /** Classes for the positioner, the element that carries the panel's place and stacking (a `z-index` over a host's own layers). */
53
+ positionerClassName?: string;
54
+ }
38
55
  type SizeVariant = "default" | "compact";
39
56
  import { ButtonHTMLAttributes, ReactElement, ReactNode as ReactNode2 } from "react";
40
57
  interface SlotProps extends ButtonHTMLAttributes<HTMLButtonElement> {
41
- /** The element that becomes the control, e.g. a Button. */
58
+ /** The element that becomes the control, e.g. a Button. `children` fill it when it has none of its own. */
42
59
  render?: ReactElement;
43
60
  /** Compose onto the single child instead. Defaults to `false`. */
44
61
  asChild?: boolean;
@@ -210,7 +227,7 @@ interface DropdownRadioItemProps extends ValueRowProps {
210
227
  /** A row of a `Dropdown.RadioGroup` (`role="menuitemradio"`), checked while the group's value is its `value`. */
211
228
  declare const DropdownRadioItem: ForwardRefExoticComponent_tcubfn3<DropdownRadioItemProps & RefAttributes_miuf563<HTMLDivElement>>;
212
229
  import { Menu as Menu2 } from "@base-ui/react/menu";
213
- import { ComponentProps, RefObject as RefObject4 } from "react";
230
+ import { ComponentProps as ComponentProps2, RefObject as RefObject4 } from "react";
214
231
  interface PanelSelectionProps {
215
232
  /** The checked row: drives the selected background and the rows' radio semantics. */
216
233
  checkedIndex?: number;
@@ -230,7 +247,7 @@ interface MenuFocusProps {
230
247
  /** Where focus goes once the menu has opened: `false` leaves it where the primitive put it (Base UI still focuses the popup, or the first row on a keyboard open), a ref focuses that element. Defaults to the first enabled row in `Dropdown.Content`, the primitive's own choice elsewhere. */
231
248
  initialFocus?: boolean | RefObject4<HTMLElement | null>;
232
249
  /** Where focus goes once the menu has closed: `false` leaves it, a ref moves it there, a function picks by how it closed. Defaults to the trigger. */
233
- finalFocus?: ComponentProps<typeof Menu2.Popup>["finalFocus"];
250
+ finalFocus?: ComponentProps2<typeof Menu2.Popup>["finalFocus"];
234
251
  }
235
252
  import { MenuRootChangeEventDetails } from "@base-ui/react/menu";
236
253
  import { HTMLAttributes as HTMLAttributes5, ReactNode as ReactNode8 } from "react";
@@ -268,7 +285,7 @@ interface DropdownSubTriggerProps extends Omit<MenuItemProps, "checked" | "onSel
268
285
  * stays lit while its submenu is open.
269
286
  */
270
287
  declare const DropdownSubTrigger: ForwardRefExoticComponent_tcubfn5<DropdownSubTriggerProps & RefAttributes_miuf565<HTMLDivElement>>;
271
- interface DropdownSubContentProps extends PanelSelectionProps, MenuFocusProps, AnchorProps, MorphProps, Omit<HTMLAttributes5<HTMLDivElement>, "children"> {
288
+ interface DropdownSubContentProps extends PanelSelectionProps, MenuFocusProps, AnchorProps, CollisionProps, MorphProps, Omit<HTMLAttributes5<HTMLDivElement>, "children"> {
272
289
  /** The submenu's rows: the same parts as `Dropdown.Content`, another `Dropdown.Sub` included. */
273
290
  children: ReactNode8;
274
291
  /** Side of the trigger row the submenu opens on; it flips when there is no room. Defaults to `"right"`. */
@@ -277,6 +294,8 @@ interface DropdownSubContentProps extends PanelSelectionProps, MenuFocusProps, A
277
294
  align?: AnchorProps["align"];
278
295
  /** Gap to the parent menu in px, the length of the goo neck. Defaults to `8`. */
279
296
  sideOffset?: number;
297
+ /** Shift along the aligned edge in px. Defaults to `-4`: the panel's padding, so its first row lines up with the trigger row. */
298
+ alignOffset?: CollisionProps["alignOffset"];
280
299
  /** Extra classes for the submenu surface: it is 14rem wide by default. */
281
300
  className?: string;
282
301
  /** Keep the submenu mounted (hidden) while closed, so its rows keep their own state across opens. A kept parent keeps it too. Defaults to `false`. */
@@ -363,10 +382,11 @@ type DropdownComponent = ForwardRefExoticComponent2<DropdownProps & RefAttribute
363
382
  *
364
383
  * Statics:
365
384
  * - `Dropdown.Menu` — the popup root: `open`, `defaultOpen`, `onOpenChange`
366
- * (with Base UI's details: `reason`, `cancel()`), `disabled`, `size`.
385
+ * (with Base UI's details: `reason`, `cancel()`), `disabled`, `modal`, `size`.
367
386
  * - `Dropdown.Trigger` — `render` or `asChild`.
368
387
  * - `Dropdown.Content` — the popup panel: the selection props above, `side`,
369
- * `align`, `sideOffset`, `container`, `keepMounted`, `initialFocus`,
388
+ * `align`, `sideOffset`, `alignOffset`, `collisionPadding`,
389
+ * `collisionBoundary`, `positionerClassName`, `container`, `keepMounted`, `initialFocus`,
370
390
  * `finalFocus` and the morph options `from`, `effect`, `hideSource`, `tier`.
371
391
  * - `Dropdown.Item` — a row: `label` or `children`, `textValue`, `icon`,
372
392
  * `index`, `inset`, `checked`, `onSelect(event)` (`preventDefault()` keeps
@@ -403,11 +423,13 @@ interface DropdownMenuProps {
403
423
  onOpenChange?: (open: boolean, details: DropdownOpenChangeDetails) => void;
404
424
  /** Disables the menu. Defaults to `false`. */
405
425
  disabled?: boolean;
426
+ /** Locks the page scroll while the menu is open and keeps the pointer off everything outside it. Non-modal, the page keeps scrolling and the popup follows its trigger. Defaults to `false`. */
427
+ modal?: boolean;
406
428
  /** Pins trigger-side content and the portalled popup rows to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, they follow the surrounding SizeProvider. */
407
429
  size?: SizeVariant;
408
430
  }
409
431
  type Element_12xgc4 = JSX_1kxb4["Element"];
410
- declare function DropdownMenu({ children, open, defaultOpen, onOpenChange, disabled, size }: DropdownMenuProps): Element_12xgc4;
432
+ declare function DropdownMenu({ children, open, defaultOpen, onOpenChange, disabled, modal, size }: DropdownMenuProps): Element_12xgc4;
411
433
  interface DropdownTriggerProps extends SlotProps {
412
434
  /** Open on hover as well as on press. Defaults to `false`. */
413
435
  openOnHover?: boolean;
@@ -417,7 +439,7 @@ interface DropdownTriggerProps extends SlotProps {
417
439
  closeDelay?: number;
418
440
  }
419
441
  declare const DropdownTrigger: ForwardRefExoticComponent2<DropdownTriggerProps & RefAttributes2<HTMLButtonElement>>;
420
- interface DropdownContentProps extends PanelSelectionProps, MenuFocusProps, AnchorProps, MorphProps, Omit<HTMLAttributes6<HTMLDivElement>, "children"> {
442
+ interface DropdownContentProps extends PanelSelectionProps, MenuFocusProps, AnchorProps, CollisionProps, MorphProps, Omit<HTMLAttributes6<HTMLDivElement>, "children"> {
421
443
  /** `Dropdown.Item` rows, plus `Dropdown.Label`, `Dropdown.Separator`, `Dropdown.Search`, `Dropdown.Empty`. */
422
444
  children: ReactNode9;
423
445
  /** Extra classes for the popup surface — it is 18rem wide by default, at least the trigger's width. */
@@ -18,13 +18,13 @@ import {
18
18
  DropdownContent2,
19
19
  DropdownSeparator2,
20
20
  dropdown_default
21
- } from "../../../shared/components-s90v3jpr.js";
21
+ } from "../../../shared/components-01e24999.js";
22
22
  import"../../../shared/components-t84071ay.js";
23
23
  import"../../../shared/components-v2j3jx89.js";
24
24
  import"../../../shared/components-q0hs5rqn.js";
25
25
  import"../../../shared/components-mse06t0x.js";
26
26
  import"../../../shared/components-nxqrw789.js";
27
- import"../../../shared/components-rgng034x.js";
27
+ import"../../../shared/components-tcm3k3wj.js";
28
28
  import"../../../shared/components-wq9hrera.js";
29
29
  import"../../../shared/components-pa43g2r2.js";
30
30
  import"../../../shared/components-cp5ym3g2.js";
@@ -37,7 +37,7 @@ import"../../../shared/components-z0kz9rxj.js";
37
37
  import"../../../shared/components-7c4a0egq.js";
38
38
  import"../../../shared/components-8pnvkrbw.js";
39
39
  import"../../../shared/components-pva1wj1r.js";
40
- import"../../../shared/components-kwxye0an.js";
40
+ import"../../../shared/components-7wjkag2j.js";
41
41
  import"../../../shared/components-nz14rwtd.js";
42
42
  import"../../../shared/components-bkwjvvkh.js";
43
43
  import"../../../shared/components-jnhpgpfk.js";
@@ -2,15 +2,15 @@ import {
2
2
  LightboxTrigger2,
3
3
  Lightbox2,
4
4
  lightbox_default
5
- } from "../../../shared/components-twyj2y8c.js";
5
+ } from "../../../shared/components-3rt5c1qt.js";
6
6
  import"../../../shared/components-wq9hrera.js";
7
7
  import"../../../shared/components-pa43g2r2.js";
8
- import"../../../shared/components-0h2mng6m.js";
8
+ import"../../../shared/components-ycwhrqe1.js";
9
9
  import"../../../shared/components-ywgqahmg.js";
10
10
  import"../../../shared/components-3hgk57s0.js";
11
11
  import"../../../shared/components-8pnvkrbw.js";
12
12
  import"../../../shared/components-pva1wj1r.js";
13
- import"../../../shared/components-kwxye0an.js";
13
+ import"../../../shared/components-7wjkag2j.js";
14
14
  import"../../../shared/components-bkwjvvkh.js";
15
15
  import"../../../shared/components-jnhpgpfk.js";
16
16
  import"../../../shared/components-45r18egt.js";
@@ -1,5 +1,5 @@
1
1
  import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
2
- import { ComponentProps, HTMLAttributes, ReactNode as ReactNode3 } from "react";
2
+ import { ComponentProps as ComponentProps2, HTMLAttributes, ReactNode as ReactNode3 } from "react";
3
3
  import { RefObject } from "react";
4
4
  type MorphSide = "top" | "right" | "bottom" | "left";
5
5
  type MorphFrom = "trigger" | "pointer" | "center" | MorphSide | RefObject<HTMLElement | null>;
@@ -37,7 +37,7 @@ interface AnchorProps {
37
37
  }
38
38
  import { ButtonHTMLAttributes, ReactElement, ReactNode as ReactNode2 } from "react";
39
39
  interface SlotProps extends ButtonHTMLAttributes<HTMLButtonElement> {
40
- /** The element that becomes the control, e.g. a Button. */
40
+ /** The element that becomes the control, e.g. a Button. `children` fill it when it has none of its own. */
41
41
  render?: ReactElement;
42
42
  /** Compose onto the single child instead. Defaults to `false`. */
43
43
  asChild?: boolean;
@@ -57,8 +57,8 @@ interface PopoverTriggerProps extends SlotProps {
57
57
  }
58
58
  declare const PopoverTrigger: ForwardRefExoticComponent_tcubfn2<PopoverTriggerProps & RefAttributes_miuf562<HTMLButtonElement>>;
59
59
  declare const PopoverClose: ForwardRefExoticComponent_tcubfn2<SlotProps & RefAttributes_miuf562<HTMLButtonElement>>;
60
- type PositionerProps = ComponentProps<typeof PopoverPrimitive.Positioner>;
61
- type PopupProps = ComponentProps<typeof PopoverPrimitive.Popup>;
60
+ type PositionerProps = ComponentProps2<typeof PopoverPrimitive.Positioner>;
61
+ type PopupProps = ComponentProps2<typeof PopoverPrimitive.Popup>;
62
62
  /** What the panel is positioned against: an element, a ref to one, a virtual element (`{ getBoundingClientRect }`), or a function returning either. */
63
63
  type PopoverAnchor = PositionerProps["anchor"];
64
64
  interface PopoverContentProps extends AnchorProps, MorphProps, HTMLAttributes<HTMLDivElement> {
@@ -138,11 +138,11 @@ type Element_12xgc2 = JSX_1kxb2["Element"];
138
138
  * @license MIT © 2026 Saurabh Chauhan
139
139
  * @license MIT © 2024 ibelick
140
140
  */
141
- declare const Popover: (({ open, defaultOpen, onOpenChange, modal, children }: PopoverProps) => Element_12xgc2) & {
141
+ declare const Popover2: (({ open, defaultOpen, onOpenChange, modal, children }: PopoverProps) => Element_12xgc2) & {
142
142
  Trigger: ForwardRefExoticComponent_tcubfn2<PopoverTriggerProps & RefAttributes_miuf562<HTMLButtonElement>>;
143
143
  Content: ForwardRefExoticComponent_tcubfn2<PopoverContentProps & RefAttributes_miuf562<HTMLDivElement>>;
144
144
  Title: ForwardRefExoticComponent_tcubfn2<HTMLAttributes<HTMLHeadingElement> & RefAttributes_miuf562<HTMLHeadingElement>>;
145
145
  Description: ForwardRefExoticComponent_tcubfn2<HTMLAttributes<HTMLParagraphElement> & RefAttributes_miuf562<HTMLParagraphElement>>;
146
146
  Close: ForwardRefExoticComponent_tcubfn2<SlotProps & RefAttributes_miuf562<HTMLButtonElement>>;
147
147
  };
148
- export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverContentProps, PopoverDescription, PopoverOpenChangeDetails, PopoverProps, PopoverTitle, PopoverTrigger, PopoverTriggerProps, Popover as default };
148
+ export { Popover2 as Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverContentProps, PopoverDescription, PopoverOpenChangeDetails, PopoverProps, PopoverTitle, PopoverTrigger, PopoverTriggerProps, Popover2 as default };
@@ -6,14 +6,14 @@ import {
6
6
  PopoverDescription2,
7
7
  Popover2,
8
8
  popover_default
9
- } from "../../../shared/components-r5q9gdh4.js";
9
+ } from "../../../shared/components-agjpst9b.js";
10
10
  import"../../../shared/components-nxqrw789.js";
11
- import"../../../shared/components-rgng034x.js";
11
+ import"../../../shared/components-tcm3k3wj.js";
12
12
  import"../../../shared/components-wq9hrera.js";
13
13
  import"../../../shared/components-pa43g2r2.js";
14
14
  import"../../../shared/components-8pnvkrbw.js";
15
15
  import"../../../shared/components-pva1wj1r.js";
16
- import"../../../shared/components-kwxye0an.js";
16
+ import"../../../shared/components-7wjkag2j.js";
17
17
  import"../../../shared/components-bkwjvvkh.js";
18
18
  import"../../../shared/components-45r18egt.js";
19
19
  import"../../../shared/components-wwd093xg.js";
@@ -3,9 +3,9 @@ import {
3
3
  PreviewCardContent2,
4
4
  PreviewCard2,
5
5
  preview_card_default
6
- } from "../../../shared/components-fmyvz4r2.js";
6
+ } from "../../../shared/components-2bq4ng4d.js";
7
7
  import"../../../shared/components-nxqrw789.js";
8
- import"../../../shared/components-rgng034x.js";
8
+ import"../../../shared/components-tcm3k3wj.js";
9
9
  import"../../../shared/components-wq9hrera.js";
10
10
  import"../../../shared/components-pa43g2r2.js";
11
11
  import"../../../shared/components-8pnvkrbw.js";
@@ -1,5 +1,5 @@
1
1
  import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
2
- import { ComponentProps as ComponentProps2, HTMLAttributes as HTMLAttributes2, ReactNode as ReactNode4 } from "react";
2
+ import { ComponentProps as ComponentProps3, HTMLAttributes as HTMLAttributes2, ReactNode as ReactNode4 } from "react";
3
3
  import { RefObject } from "react";
4
4
  type MorphSide = "top" | "right" | "bottom" | "left";
5
5
  type MorphFrom = "trigger" | "pointer" | "center" | MorphSide | RefObject<HTMLElement | null>;
@@ -23,7 +23,7 @@ type Side = "top" | "right" | "bottom" | "left";
23
23
  import { HTMLAttributes } from "react";
24
24
  import { ButtonHTMLAttributes, ReactElement, ReactNode as ReactNode2 } from "react";
25
25
  interface SlotProps extends ButtonHTMLAttributes<HTMLButtonElement> {
26
- /** The element that becomes the control, e.g. a Button. */
26
+ /** The element that becomes the control, e.g. a Button. `children` fill it when it has none of its own. */
27
27
  render?: ReactElement;
28
28
  /** Compose onto the single child instead. Defaults to `false`. */
29
29
  asChild?: boolean;
@@ -38,7 +38,7 @@ import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn3 } from "
38
38
  import { RefAttributes as RefAttributes_miuf563 } from "react";
39
39
  import { JSX as JSX_1kxb3 } from "react";
40
40
  type SheetSide = Side;
41
- type DrawerPopupProps = ComponentProps2<typeof DrawerPrimitive.Popup>;
41
+ type DrawerPopupProps = ComponentProps3<typeof DrawerPrimitive.Popup>;
42
42
  interface SheetContentProps extends MorphProps, HTMLAttributes2<HTMLDivElement> {
43
43
  /** Portal target. Defaults to the nearest `PortalContainer`, else the document body. */
44
44
  container?: HTMLElement | null;
@@ -3,18 +3,18 @@ import {
3
3
  SheetIndent2,
4
4
  Sheet2,
5
5
  sheet_default
6
- } from "../../../shared/components-62510420.js";
7
- import"../../../shared/components-b9bj65j3.js";
6
+ } from "../../../shared/components-mvwf8ckh.js";
7
+ import"../../../shared/components-ex2xtqv7.js";
8
8
  import"../../../shared/components-nxqrw789.js";
9
- import"../../../shared/components-rgng034x.js";
9
+ import"../../../shared/components-tcm3k3wj.js";
10
10
  import"../../../shared/components-wq9hrera.js";
11
11
  import"../../../shared/components-pa43g2r2.js";
12
- import"../../../shared/components-0h2mng6m.js";
12
+ import"../../../shared/components-ycwhrqe1.js";
13
13
  import"../../../shared/components-ywgqahmg.js";
14
14
  import"../../../shared/components-3hgk57s0.js";
15
15
  import"../../../shared/components-8pnvkrbw.js";
16
16
  import"../../../shared/components-pva1wj1r.js";
17
- import"../../../shared/components-kwxye0an.js";
17
+ import"../../../shared/components-7wjkag2j.js";
18
18
  import"../../../shared/components-bkwjvvkh.js";
19
19
  import"../../../shared/components-jnhpgpfk.js";
20
20
  import"../../../shared/components-45r18egt.js";
@@ -8,7 +8,7 @@ interface IconComponentProps {
8
8
  type IconComponent = ComponentType<IconComponentProps>;
9
9
  import { ButtonHTMLAttributes, ReactElement, ReactNode as ReactNode2 } from "react";
10
10
  interface SlotProps extends ButtonHTMLAttributes<HTMLButtonElement> {
11
- /** The element that becomes the control, e.g. a Button. */
11
+ /** The element that becomes the control, e.g. a Button. `children` fill it when it has none of its own. */
12
12
  render?: ReactElement;
13
13
  /** Compose onto the single child instead. Defaults to `false`. */
14
14
  asChild?: boolean;
@@ -5,15 +5,15 @@ import {
5
5
  ToastClose2,
6
6
  Toast2,
7
7
  toast_default
8
- } from "../../../shared/components-fqsgd07c.js";
8
+ } from "../../../shared/components-zv63s4fh.js";
9
9
  import"../../../shared/components-wq9hrera.js";
10
10
  import"../../../shared/components-pa43g2r2.js";
11
- import"../../../shared/components-0h2mng6m.js";
11
+ import"../../../shared/components-ycwhrqe1.js";
12
12
  import"../../../shared/components-ywgqahmg.js";
13
13
  import"../../../shared/components-3hgk57s0.js";
14
14
  import"../../../shared/components-8pnvkrbw.js";
15
15
  import"../../../shared/components-pva1wj1r.js";
16
- import"../../../shared/components-kwxye0an.js";
16
+ import"../../../shared/components-7wjkag2j.js";
17
17
  import"../../../shared/components-bkwjvvkh.js";
18
18
  import"../../../shared/components-jnhpgpfk.js";
19
19
  import"../../../shared/components-45r18egt.js";
@@ -1,4 +1,6 @@
1
1
  import { HTMLAttributes, ReactElement as ReactElement2, ReactNode as ReactNode3 } from "react";
2
+ import { Popover } from "@base-ui/react/popover";
3
+ import { ComponentProps } from "react";
2
4
  import { RefObject } from "react";
3
5
  type MorphSide = "top" | "right" | "bottom" | "left";
4
6
  type MorphFrom = "trigger" | "pointer" | "center" | MorphSide | RefObject<HTMLElement | null>;
@@ -6,9 +8,24 @@ type MorphEffect = "goo" | "morph" | "slide" | "fade";
6
8
  type MorphTier = "moderate" | "slow";
7
9
  type Side = "top" | "right" | "bottom" | "left";
8
10
  type Align = "start" | "center" | "end";
11
+ type Positioner = ComponentProps<typeof Popover.Positioner>;
12
+ /**
13
+ * The finer positioning props a content may add to `AnchorProps`, forwarded
14
+ * to Base UI's `Positioner` by `positionerProps`. Documented once.
15
+ */
16
+ interface CollisionProps {
17
+ /** Shift along the aligned edge in px, after `align`, or Base UI's function of side, align and sizes. Defaults to `0`. */
18
+ alignOffset?: Positioner["alignOffset"];
19
+ /** Space kept between the panel and the edge of its collision boundary, in px or per side. Defaults to `5`. */
20
+ collisionPadding?: Positioner["collisionPadding"];
21
+ /** The area the panel stays inside: an element, several, or a rect. Defaults to `'clipping-ancestors'`. */
22
+ collisionBoundary?: Positioner["collisionBoundary"];
23
+ /** Classes for the positioner, the element that carries the panel's place and stacking (a `z-index` over a host's own layers). */
24
+ positionerClassName?: string;
25
+ }
9
26
  import { ButtonHTMLAttributes, ReactElement, ReactNode as ReactNode2 } from "react";
10
27
  interface SlotProps extends ButtonHTMLAttributes<HTMLButtonElement> {
11
- /** The element that becomes the control, e.g. a Button. */
28
+ /** The element that becomes the control, e.g. a Button. `children` fill it when it has none of its own. */
12
29
  render?: ReactElement;
13
30
  /** Compose onto the single child instead. Defaults to `false`. */
14
31
  asChild?: boolean;
@@ -32,17 +49,21 @@ interface TooltipProviderProps {
32
49
  delayDuration?: number;
33
50
  /** After a tooltip closes, adjacent tooltips opened within this window skip the hover delay, in ms. Defaults to `300`. */
34
51
  skipDelayDuration?: number;
52
+ /** Same as `skipDelayDuration` (Base UI's name); `timeout` wins when both are set. */
53
+ timeout?: number;
54
+ /** Delay before tooltips close once the pointer leaves, in ms. Defaults to `0`. */
55
+ closeDelay?: number;
35
56
  }
36
57
  /**
37
58
  * Groups descendant Tooltips: once one opens, moving to an adjacent trigger
38
59
  * shows its tooltip at once instead of re-waiting the delay. Wrap once at
39
60
  * the app or section level; a bare Tooltip still works without it.
40
61
  */
41
- declare function TooltipProvider({ children, delay, delayDuration, skipDelayDuration }: TooltipProviderProps): Element_12xgc2;
62
+ declare function TooltipProvider({ children, delay, delayDuration, skipDelayDuration, timeout, closeDelay }: TooltipProviderProps): Element_12xgc2;
42
63
  type TooltipSide = Side;
43
64
  type TooltipTriggerProps = SlotProps;
44
65
  declare const TooltipTrigger: ForwardRefExoticComponent_tcubfn2<SlotProps & RefAttributes_miuf562<HTMLButtonElement>>;
45
- interface TooltipContentProps extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "className"> {
66
+ interface TooltipContentProps extends CollisionProps, Omit<HTMLAttributes<HTMLDivElement>, "children" | "className"> {
46
67
  /** The label. */
47
68
  children?: ReactNode3;
48
69
  /** The element the label renders as, inside the inverted surface; `children` go inside it. */
@@ -59,7 +80,7 @@ interface TooltipContentProps extends Omit<HTMLAttributes<HTMLDivElement>, "chil
59
80
  container?: HTMLElement | null;
60
81
  /** Classes for the label's surface. */
61
82
  className?: string;
62
- /** Extra classes for the portalled positioner element: a z utility here lifts the whole tooltip above other fixed layers (default `z-50`). */
83
+ /** Same as `positionerClassName`: extra classes for the portalled positioner element, where a z utility lifts the whole tooltip above other fixed layers (default `z-50`). */
63
84
  contentClassName?: string;
64
85
  /** Where the label grows from (see Morph): the trigger, the pointer, its own center, a viewport edge, or a ref to any element. Defaults to `'trigger'`. */
65
86
  from?: MorphFrom;
@@ -69,7 +90,7 @@ interface TooltipContentProps extends Omit<HTMLAttributes<HTMLDivElement>, "chil
69
90
  tier?: MorphTier;
70
91
  }
71
92
  declare const TooltipContent: ForwardRefExoticComponent_tcubfn2<TooltipContentProps & RefAttributes_miuf562<HTMLDivElement>>;
72
- interface TooltipProps {
93
+ interface TooltipProps extends CollisionProps {
73
94
  /** The content displayed inside the tooltip. Leave it out to use `Tooltip` as the root of a compound tooltip (`Tooltip.Trigger` + `Tooltip.Content` inside). */
74
95
  content?: ReactNode3;
75
96
  /** The trigger element, which must accept a ref; or, without `content`, the compound parts. */
@@ -86,9 +107,11 @@ interface TooltipProps {
86
107
  delay?: number;
87
108
  /** Same as `delay` (Radix's name); `delay` wins when both are set. */
88
109
  delayDuration?: number;
110
+ /** Delay before this tooltip closes once the pointer leaves, in ms. Defaults to `0`, or to the ambient `TooltipProvider`'s `closeDelay`. */
111
+ closeDelay?: number;
89
112
  /** Additional classes applied to the tooltip content container. */
90
113
  className?: string;
91
- /** Extra classes for the portalled positioner element: a z utility here lifts the whole tooltip above other fixed layers (default `z-50`). */
114
+ /** Same as `positionerClassName`: extra classes for the portalled positioner element, where a z utility lifts the whole tooltip above other fixed layers (default `z-50`). */
92
115
  contentClassName?: string;
93
116
  /** Controlled open state: `true` holds it open, `false` holds it closed, `undefined` leaves it to hover and focus. */
94
117
  open?: boolean;
@@ -119,20 +142,22 @@ interface TooltipProps {
119
142
  * Leave `content` out and `Tooltip` is the root of a compound tooltip: a
120
143
  * `Tooltip.Trigger` and a `Tooltip.Content` inside it. The root keeps the
121
144
  * state props (`open`, `defaultOpen`, `onOpenChange`, `delay` or `delayDuration`,
122
- * `followCursor`); placement and the morph move to the content. The label
145
+ * `closeDelay`, `followCursor`); placement and the morph move to the content. The label
123
146
  * looks and moves the same either way.
124
147
  *
125
148
  * Statics:
126
149
  * - `Tooltip.Trigger` — the described element: `render={<Button/>}` or
127
150
  * `asChild`, else a plain button around `children`.
128
151
  * - `Tooltip.Content` — the label: `side`, `align`, `sideOffset`,
129
- * `container`, `contentClassName`, the morph options `from`, `effect`,
152
+ * `alignOffset`, `collisionPadding`, `collisionBoundary`, `container`,
153
+ * `positionerClassName` (or `contentClassName`), the morph options `from`, `effect`,
130
154
  * `tier`, and `render` or `asChild` for the label's own element; other
131
155
  * props land on the popup.
132
156
  * - `Tooltip.Provider` — `TooltipProvider`: groups tooltips so moving from
133
157
  * one trigger to an adjacent one skips the hover delay, and the morph: the
134
158
  * next label shows in place. `delay` (or `delayDuration`) sets the hover
135
- * delay of every tooltip in it, `skipDelayDuration` the hand-off window.
159
+ * delay of every tooltip in it, `closeDelay` how long they linger, and
160
+ * `skipDelayDuration` (or `timeout`) the hand-off window.
136
161
  * - `Tooltip.PortalContainer` — the shared `PortalContainer`: portal every
137
162
  * descendant tooltip into a given element instead of the body.
138
163
  *
@@ -140,7 +165,7 @@ interface TooltipProps {
140
165
  * @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/registry/base/tooltip.tsx Fluid Functionalism
141
166
  * @license MIT © 2026 Micka Touillaud
142
167
  */
143
- declare const Tooltip: (({ content, children, side, align, sideOffset, container, delay, delayDuration, className, contentClassName, open, defaultOpen, onOpenChange, followCursor, from, effect, tier }: TooltipProps) => Element_12xgc2) & {
168
+ declare const Tooltip: (({ content, children, side, align, sideOffset, container, alignOffset, collisionPadding, collisionBoundary, positionerClassName, delay, delayDuration, closeDelay, className, contentClassName, open, defaultOpen, onOpenChange, followCursor, from, effect, tier }: TooltipProps) => Element_12xgc2) & {
144
169
  Trigger: ForwardRefExoticComponent_tcubfn2<SlotProps & RefAttributes_miuf562<HTMLButtonElement>>;
145
170
  Content: ForwardRefExoticComponent_tcubfn2<TooltipContentProps & RefAttributes_miuf562<HTMLDivElement>>;
146
171
  Provider: typeof TooltipProvider;
@@ -5,13 +5,13 @@ import {
5
5
  TooltipContent2,
6
6
  Tooltip2,
7
7
  tooltip_default
8
- } from "../../../shared/components-1bnf96sr.js";
9
- import"../../../shared/components-rgng034x.js";
8
+ } from "../../../shared/components-8e0fjgm9.js";
9
+ import"../../../shared/components-tcm3k3wj.js";
10
10
  import"../../../shared/components-wq9hrera.js";
11
11
  import"../../../shared/components-pa43g2r2.js";
12
12
  import"../../../shared/components-8pnvkrbw.js";
13
13
  import"../../../shared/components-pva1wj1r.js";
14
- import"../../../shared/components-kwxye0an.js";
14
+ import"../../../shared/components-7wjkag2j.js";
15
15
  import"../../../shared/components-bkwjvvkh.js";
16
16
  import"../../../shared/components-45r18egt.js";
17
17
  import"../../../shared/components-wwd093xg.js";
@@ -7,13 +7,13 @@ import"../shared/components-ew4wq7mj.js";
7
7
  import"../shared/components-znspksk0.js";
8
8
  import"../shared/components-bkwjvvkh.js";
9
9
  import"../shared/components-xnp09586.js";
10
- import"../shared/components-kwxye0an.js";
10
+ import"../shared/components-7wjkag2j.js";
11
11
  import"../shared/components-3hgk57s0.js";
12
12
  import"../shared/components-45r18egt.js";
13
13
  import"../shared/components-ywgqahmg.js";
14
14
  import {
15
15
  button_default
16
- } from "../shared/components-0h2mng6m.js";
16
+ } from "../shared/components-ycwhrqe1.js";
17
17
  import"../shared/components-grxgqa75.js";
18
18
  import"../shared/components-1ztgy933.js";
19
19
  import"../shared/components-pva1wj1r.js";
@@ -22,7 +22,7 @@ import"../shared/components-z0kz9rxj.js";
22
22
  import"../shared/components-g35n8tzm.js";
23
23
  import"../shared/components-c515d6xr.js";
24
24
  import"../shared/components-wwd093xg.js";
25
- import"../shared/components-rgng034x.js";
25
+ import"../shared/components-tcm3k3wj.js";
26
26
  import"../shared/components-mse06t0x.js";
27
27
  import"../shared/components-q0hs5rqn.js";
28
28
  import"../shared/components-pa43g2r2.js";
@@ -38,20 +38,21 @@ import"../shared/components-esy5nsvc.js";
38
38
  import"../shared/components-nz14rwtd.js";
39
39
  import {
40
40
  select_default
41
- } from "../shared/components-h0x2pj2y.js";
41
+ } from "../shared/components-6xtntksc.js";
42
42
  import"../shared/components-jnhpgpfk.js";
43
- import"../shared/components-b9bj65j3.js";
44
- import"../shared/components-62510420.js";
43
+ import"../shared/components-ex2xtqv7.js";
44
+ import"../shared/components-mvwf8ckh.js";
45
45
  import"../shared/components-v2j3jx89.js";
46
46
  import {
47
47
  useSidebar2,
48
48
  sidebar_default
49
- } from "../shared/components-nhmgr5xc.js";
49
+ } from "../shared/components-2v4mmw1s.js";
50
+ import"../shared/components-2myjk2zf.js";
50
51
  import"../shared/components-y09nr7fe.js";
51
52
  import {
52
53
  useIsMobile2
53
54
  } from "../shared/components-8wp8d8q1.js";
54
- import"../shared/components-1bnf96sr.js";
55
+ import"../shared/components-8e0fjgm9.js";
55
56
 
56
57
  // docs/chrome.tsx
57
58
  import {