@justanarthur/modo-ui 2.3.0 → 2.4.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 (123) hide show
  1. package/components/data-display/diff/index.tsx +19 -3
  2. package/components/inputs/choice-list/index.tsx +4 -3
  3. package/components/navigation/sidebar/menu-scope.tsx +142 -53
  4. package/components/navigation/sidebar/sidebar-menu-actions.tsx +5 -5
  5. package/components/navigation/sidebar/sidebar-menu-button.tsx +4 -7
  6. package/components/navigation/sidebar/sidebar-menu-item.tsx +39 -36
  7. package/components/navigation/sidebar/sidebar-menu-sub.tsx +3 -2
  8. package/components/overlays/command/index.tsx +70 -12
  9. package/components/overlays/dropdown/menu-popup.tsx +11 -2
  10. package/components/overlays/tooltip/index.tsx +9 -1
  11. package/dist/blocks/desktop-shell/index.js +10 -10
  12. package/dist/blocks/sidebar-app/index.js +13 -13
  13. package/dist/components/actions/copy/index.js +3 -3
  14. package/dist/components/containers/accordion/index.js +5 -5
  15. package/dist/components/containers/card/index.js +4 -4
  16. package/dist/components/data-display/diff/index.d.ts +1 -1
  17. package/dist/components/data-display/diff/index.js +1 -1
  18. package/dist/components/data-display/markdown/index.js +5 -5
  19. package/dist/components/data-display/table/index.js +4 -4
  20. package/dist/components/inputs/checkbox/index.js +6 -6
  21. package/dist/components/inputs/choice-list/index.js +5 -5
  22. package/dist/components/inputs/color-picker/index.js +7 -7
  23. package/dist/components/inputs/combobox/index.js +6 -6
  24. package/dist/components/inputs/date-time/calendar/index.js +5 -5
  25. package/dist/components/inputs/date-time/date-picker/index.js +12 -12
  26. package/dist/components/inputs/date-time/date-range-picker/index.js +12 -12
  27. package/dist/components/inputs/date-time/duration-picker/index.js +11 -11
  28. package/dist/components/inputs/date-time/month-picker/index.js +10 -10
  29. package/dist/components/inputs/date-time/time-picker/index.js +11 -11
  30. package/dist/components/inputs/input/index.js +2 -2
  31. package/dist/components/inputs/key-value/index.js +3 -3
  32. package/dist/components/inputs/number-input/index.js +3 -3
  33. package/dist/components/inputs/radio/index.js +5 -5
  34. package/dist/components/inputs/search/index.js +7 -7
  35. package/dist/components/inputs/select/index.js +6 -6
  36. package/dist/components/inputs/switch/index.js +4 -4
  37. package/dist/components/navigation/breadcrumb/index.js +8 -8
  38. package/dist/components/navigation/navigation-menu/index.js +6 -6
  39. package/dist/components/navigation/pagination/index.js +5 -5
  40. package/dist/components/navigation/sidebar/index.js +9 -9
  41. package/dist/components/navigation/tabs/index.js +4 -4
  42. package/dist/components/navigation/tree/index.js +5 -5
  43. package/dist/components/overlays/alert-dialog/index.js +3 -3
  44. package/dist/components/overlays/command/index.d.ts +6 -3
  45. package/dist/components/overlays/command/index.js +6 -6
  46. package/dist/components/overlays/context-menu/index.js +8 -8
  47. package/dist/components/overlays/dialog/index.js +2 -2
  48. package/dist/components/overlays/dropdown/index.js +7 -7
  49. package/dist/components/overlays/popover/index.js +2 -2
  50. package/dist/components/overlays/preview-card/index.js +2 -2
  51. package/dist/components/overlays/sheet/index.js +3 -3
  52. package/dist/components/overlays/tooltip/index.js +2 -2
  53. package/dist/docs/index.js +10 -10
  54. package/dist/index.d.ts +12 -6
  55. package/dist/index.js +53 -53
  56. package/dist/lib/fluid-hover-highlight.js +3 -2
  57. package/dist/lib/focus-ring.d.ts +5 -2
  58. package/dist/lib/focus-ring.js +2 -1
  59. package/dist/lib/goo-indicator.d.ts +5 -2
  60. package/dist/lib/goo-indicator.js +2 -1
  61. package/dist/lib/overlay.d.ts +8 -1
  62. package/dist/lib/overlay.js +3 -1
  63. package/dist/lib/scroll-column.js +4 -4
  64. package/dist/lib/use-fluid-hover.d.ts +3 -1
  65. package/dist/lib/use-fluid-hover.js +3 -1
  66. package/dist/lib/use-merge-split.js +3 -2
  67. package/dist/primitives/systems/fluid-hover/index.js +4 -4
  68. package/dist/shared/{components-m7d7r3r8.js → components-0bvxny7s.js} +2 -2
  69. package/dist/shared/{components-7xc2dne4.js → components-0ep66sg9.js} +5 -5
  70. package/dist/shared/{components-agjpst9b.js → components-0v4jxw7z.js} +1 -1
  71. package/dist/shared/{components-a3brpprb.js → components-1qw8hqwq.js} +7 -7
  72. package/dist/shared/{components-7c4a0egq.js → components-21hcwp85.js} +78 -43
  73. package/dist/shared/{components-kz6ak6kj.js → components-3qcgeay1.js} +2 -2
  74. package/dist/shared/{components-e52xgvd9.js → components-4fay97sm.js} +7 -7
  75. package/dist/shared/{components-fxw1122w.js → components-4fhjk3jz.js} +2 -2
  76. package/dist/shared/{components-czvraaw9.js → components-4m9stj7d.js} +10 -10
  77. package/dist/shared/{components-c515d6xr.js → components-5wykqxph.js} +6 -1
  78. package/dist/shared/{components-8e0fjgm9.js → components-7rn454aq.js} +11 -2
  79. package/dist/shared/{components-2tw25pk6.js → components-895m1f3s.js} +7 -7
  80. package/dist/shared/{components-b7p1pjcm.js → components-8m5e493q.js} +1 -1
  81. package/dist/shared/{components-rzy6h7s4.js → components-8nnhzeb3.js} +5 -5
  82. package/dist/shared/{components-1hga6pkn.js → components-8xe4h118.js} +5 -5
  83. package/dist/shared/{components-83jn0raj.js → components-9am5511q.js} +3 -3
  84. package/dist/shared/{components-g35n8tzm.js → components-9b2m90st.js} +1 -1
  85. package/dist/shared/{components-2bq4ng4d.js → components-9yrajpy0.js} +1 -1
  86. package/dist/shared/{components-mvwf8ckh.js → components-ac0x7zpq.js} +2 -2
  87. package/dist/shared/{components-q7zk70tx.js → components-af44r4y9.js} +1 -1
  88. package/dist/shared/{components-ex2xtqv7.js → components-br6t88cb.js} +1 -1
  89. package/dist/shared/{components-z0kz9rxj.js → components-bxqmbcz2.js} +6 -2
  90. package/dist/shared/{components-2v4mmw1s.js → components-cc9kfhkb.js} +169 -113
  91. package/dist/shared/{components-e7zxwja1.js → components-d4gkhy26.js} +1 -1
  92. package/dist/shared/{components-w1ysefg1.js → components-eawe4nxm.js} +1 -1
  93. package/dist/shared/{components-1sbnbq6a.js → components-fpgfs01m.js} +1 -1
  94. package/dist/shared/{components-tcm3k3wj.js → components-ft5dgjg6.js} +9 -2
  95. package/dist/shared/{components-h8v9nh5r.js → components-fv9y76b0.js} +15 -3
  96. package/dist/shared/{components-6g8a5nrs.js → components-fymenepq.js} +7 -7
  97. package/dist/shared/{components-8ybvpebx.js → components-greka6z2.js} +58 -18
  98. package/dist/shared/{components-k2gg1agj.js → components-gzve0nkp.js} +4 -4
  99. package/dist/shared/{components-fjg4j430.js → components-hjdv4y8d.js} +2 -2
  100. package/dist/shared/{components-k25zw9g8.js → components-hjk6dwsp.js} +1 -1
  101. package/dist/shared/{components-4fswe4kh.js → components-mb80a9wg.js} +1 -1
  102. package/dist/shared/{components-nh05qz8b.js → components-mzdbtgvz.js} +8 -8
  103. package/dist/shared/{components-x5v7e0fz.js → components-nmbcfwx8.js} +7 -7
  104. package/dist/shared/{components-9rebr89j.js → components-pw6gzev8.js} +1 -1
  105. package/dist/shared/{components-01e24999.js → components-pwsqp2np.js} +20 -10
  106. package/dist/shared/{components-eebf7f9c.js → components-qmkfpcw0.js} +8 -8
  107. package/dist/shared/{components-etgpz4zk.js → components-qrtcc8aw.js} +3 -3
  108. package/dist/shared/{components-nred2e6g.js → components-rgdspnth.js} +2 -2
  109. package/dist/shared/{components-gnsvnejm.js → components-rtwfh1gc.js} +2 -2
  110. package/dist/shared/{components-z87sanbc.js → components-s0megs1g.js} +4 -4
  111. package/dist/shared/{components-7g2q2ccp.js → components-sh8j39z3.js} +6 -6
  112. package/dist/shared/{components-vykcfb5r.js → components-v1zzr668.js} +3 -3
  113. package/dist/shared/{components-5vezp3e5.js → components-vcmky8ns.js} +6 -6
  114. package/dist/shared/{components-6xtntksc.js → components-xq8j9c2f.js} +8 -8
  115. package/dist/shared/{components-27fatggq.js → components-y9se9mx5.js} +3 -3
  116. package/dist/shared/{components-9ca0c92a.js → components-yfx0skxc.js} +1 -1
  117. package/dist/shared/{components-ta4e10mx.js → components-zckgawt6.js} +5 -5
  118. package/dist/styles.css +1 -1
  119. package/lib/focus-ring.tsx +15 -8
  120. package/lib/goo-indicator.tsx +20 -8
  121. package/lib/overlay.tsx +22 -1
  122. package/lib/use-fluid-hover.ts +96 -72
  123. package/package.json +1 -1
@@ -6,9 +6,9 @@ import {
6
6
  PopoverDescription2,
7
7
  Popover2,
8
8
  popover_default
9
- } from "../../../shared/components-agjpst9b.js";
9
+ } from "../../../shared/components-0v4jxw7z.js";
10
10
  import"../../../shared/components-nxqrw789.js";
11
- import"../../../shared/components-tcm3k3wj.js";
11
+ import"../../../shared/components-ft5dgjg6.js";
12
12
  import"../../../shared/components-wq9hrera.js";
13
13
  import"../../../shared/components-pa43g2r2.js";
14
14
  import"../../../shared/components-8pnvkrbw.js";
@@ -3,9 +3,9 @@ import {
3
3
  PreviewCardContent2,
4
4
  PreviewCard2,
5
5
  preview_card_default
6
- } from "../../../shared/components-2bq4ng4d.js";
6
+ } from "../../../shared/components-9yrajpy0.js";
7
7
  import"../../../shared/components-nxqrw789.js";
8
- import"../../../shared/components-tcm3k3wj.js";
8
+ import"../../../shared/components-ft5dgjg6.js";
9
9
  import"../../../shared/components-wq9hrera.js";
10
10
  import"../../../shared/components-pa43g2r2.js";
11
11
  import"../../../shared/components-8pnvkrbw.js";
@@ -3,10 +3,10 @@ import {
3
3
  SheetIndent2,
4
4
  Sheet2,
5
5
  sheet_default
6
- } from "../../../shared/components-mvwf8ckh.js";
7
- import"../../../shared/components-ex2xtqv7.js";
6
+ } from "../../../shared/components-ac0x7zpq.js";
7
+ import"../../../shared/components-br6t88cb.js";
8
8
  import"../../../shared/components-nxqrw789.js";
9
- import"../../../shared/components-tcm3k3wj.js";
9
+ import"../../../shared/components-ft5dgjg6.js";
10
10
  import"../../../shared/components-wq9hrera.js";
11
11
  import"../../../shared/components-pa43g2r2.js";
12
12
  import"../../../shared/components-ycwhrqe1.js";
@@ -5,8 +5,8 @@ import {
5
5
  TooltipContent2,
6
6
  Tooltip2,
7
7
  tooltip_default
8
- } from "../../../shared/components-8e0fjgm9.js";
9
- import"../../../shared/components-tcm3k3wj.js";
8
+ } from "../../../shared/components-7rn454aq.js";
9
+ import"../../../shared/components-ft5dgjg6.js";
10
10
  import"../../../shared/components-wq9hrera.js";
11
11
  import"../../../shared/components-pa43g2r2.js";
12
12
  import"../../../shared/components-8pnvkrbw.js";
@@ -16,13 +16,14 @@ import {
16
16
  } from "../shared/components-ycwhrqe1.js";
17
17
  import"../shared/components-grxgqa75.js";
18
18
  import"../shared/components-1ztgy933.js";
19
+ import"../shared/components-21hcwp85.js";
19
20
  import"../shared/components-pva1wj1r.js";
20
21
  import"../shared/components-8pnvkrbw.js";
21
- import"../shared/components-z0kz9rxj.js";
22
- import"../shared/components-g35n8tzm.js";
23
- import"../shared/components-c515d6xr.js";
22
+ import"../shared/components-bxqmbcz2.js";
23
+ import"../shared/components-9b2m90st.js";
24
+ import"../shared/components-5wykqxph.js";
24
25
  import"../shared/components-wwd093xg.js";
25
- import"../shared/components-tcm3k3wj.js";
26
+ import"../shared/components-ft5dgjg6.js";
26
27
  import"../shared/components-mse06t0x.js";
27
28
  import"../shared/components-q0hs5rqn.js";
28
29
  import"../shared/components-pa43g2r2.js";
@@ -31,28 +32,27 @@ import"../shared/components-ceyn28cf.js";
31
32
  import"../shared/components-nwa2a9tq.js";
32
33
  import"../shared/components-nxqrw789.js";
33
34
  import"../shared/components-vcte8p75.js";
34
- import"../shared/components-7c4a0egq.js";
35
35
  import"../shared/components-tcyz2tdn.js";
36
36
  import"../shared/components-6f5pyzb2.js";
37
37
  import"../shared/components-esy5nsvc.js";
38
38
  import"../shared/components-nz14rwtd.js";
39
39
  import {
40
40
  select_default
41
- } from "../shared/components-6xtntksc.js";
41
+ } from "../shared/components-xq8j9c2f.js";
42
42
  import"../shared/components-jnhpgpfk.js";
43
- import"../shared/components-ex2xtqv7.js";
44
- import"../shared/components-mvwf8ckh.js";
43
+ import"../shared/components-br6t88cb.js";
44
+ import"../shared/components-ac0x7zpq.js";
45
45
  import"../shared/components-v2j3jx89.js";
46
46
  import {
47
47
  useSidebar2,
48
48
  sidebar_default
49
- } from "../shared/components-2v4mmw1s.js";
49
+ } from "../shared/components-cc9kfhkb.js";
50
50
  import"../shared/components-2myjk2zf.js";
51
51
  import"../shared/components-y09nr7fe.js";
52
52
  import {
53
53
  useIsMobile2
54
54
  } from "../shared/components-8wp8d8q1.js";
55
- import"../shared/components-8e0fjgm9.js";
55
+ import"../shared/components-7rn454aq.js";
56
56
 
57
57
  // docs/chrome.tsx
58
58
  import {
package/dist/index.d.ts CHANGED
@@ -1372,7 +1372,7 @@ interface DiffLine {
1372
1372
  oldNo?: number;
1373
1373
  newNo?: number;
1374
1374
  }
1375
- /** Reads a unified diff (`@@ -a,b +c,d @@` hunks, `+`/`-`/space lines); file headers are skipped. */
1375
+ /** Reads a unified diff (`@@ -a,b +c,d @@` hunks, `+`/`-`/space lines); file headers (`git diff`'s too) are skipped. */
1376
1376
  declare function parsePatch(patch: string): DiffLine[];
1377
1377
  interface DiffProps {
1378
1378
  /** The change as a unified diff: hunk headers and `+`, `-` and space-prefixed lines. */
@@ -3879,8 +3879,10 @@ interface CommandPaletteProps {
3879
3879
  emptyMessage?: ReactNode46;
3880
3880
  /** Classes for the palette's box. */
3881
3881
  className?: string;
3882
+ /** The most matching rows rendered, for long lists: the rest are reached by typing. Defaults to every match. */
3883
+ limit?: number;
3882
3884
  }
3883
- declare function CommandPalette({ items, placeholder, emptyMessage, className }: CommandPaletteProps): Element_12xgc31;
3885
+ declare function CommandPalette({ items, placeholder, emptyMessage, className, limit }: CommandPaletteProps): Element_12xgc31;
3884
3886
  declare const CommandTrigger: ForwardRefExoticComponent_tcubfn32<SlotProps & RefAttributes_miuf5632<HTMLButtonElement>>;
3885
3887
  interface CommandContentProps extends CommandPaletteProps, MorphProps, Omit<HTMLAttributes27<HTMLDivElement>, "children" | "className" | "placeholder"> {
3886
3888
  /** Accessible name of the panel. Defaults to `'Command menu'`. */
@@ -3924,10 +3926,11 @@ interface CommandProps {
3924
3926
  * - `Command.Trigger` — the control that opens it: `render={<Button/>}` or
3925
3927
  * `asChild`.
3926
3928
  * - `Command.Content` — the panel: `items`, `placeholder`, `emptyMessage`,
3927
- * `label`, `container`, and the morph options `from`, `effect`,
3929
+ * `limit`, `label`, `container`, and the morph options `from`, `effect`,
3928
3930
  * `hideSource`, `tier` (default `'slow'`).
3929
3931
  * - `Command.Palette` — the search field and list on their own, for a
3930
- * palette that lives in the page: `items`, `placeholder`, `emptyMessage`.
3932
+ * palette that lives in the page: `items`, `placeholder`, `emptyMessage`,
3933
+ * `limit`.
3931
3934
  * - `Command.Shortcut` — a key hint, as the rows show it, e.g. in the
3932
3935
  * trigger.
3933
3936
  *
@@ -6045,6 +6048,7 @@ declare const Tooltip: (({ content, children, side, align, sideOffset, container
6045
6048
  };
6046
6049
  import { Transition as Transition2 } from "motion/react";
6047
6050
  import { JSX as JSX_1kxb50 } from "react";
6051
+ import { MemoExoticComponent as MemoExoticComponent_h78s4x } from "react";
6048
6052
  type Element_12xgc50 = JSX_1kxb50["Element"];
6049
6053
  interface GooIndicatorProps {
6050
6054
  /** The rect to sit on, in the container's coordinates (as `useFluidHover` measures them). */
@@ -6060,12 +6064,14 @@ interface GooIndicatorProps {
6060
6064
  /** Opacity of the whole indicator, faded on `spring.fast`. Defaults to `1`. */
6061
6065
  opacity?: number;
6062
6066
  }
6067
+ declare function GooIndicatorBase({ rect, from, className, shadow, transition, opacity }: GooIndicatorProps): Element_12xgc50;
6063
6068
  /**
6064
6069
  * An indicator that travels between items with a liquid neck. Render it in the
6065
6070
  * items' `relative` container, beneath them: the items' text stays above it,
6066
- * unfiltered.
6071
+ * unfiltered. Its list re-renders on every hover; an indicator whose box did
6072
+ * not move skips the render (rects are fresh objects each time).
6067
6073
  */
6068
- declare function GooIndicator({ rect, from, className, shadow, transition, opacity }: GooIndicatorProps): Element_12xgc50;
6074
+ declare const GooIndicator: MemoExoticComponent_h78s4x<typeof GooIndicatorBase>;
6069
6075
  import { ReactNode as ReactNode75, Ref as Ref4 } from "react";
6070
6076
  import { JSX as JSX_1kxb51 } from "react";
6071
6077
  interface MorphSurfaceProps {
package/dist/index.js CHANGED
@@ -45,7 +45,7 @@ import"./shared/components-pva1wj1r.js";
45
45
  import {
46
46
  useMorph2
47
47
  } from "./shared/components-8pnvkrbw.js";
48
- import"./shared/components-tcm3k3wj.js";
48
+ import"./shared/components-ft5dgjg6.js";
49
49
  import {
50
50
  MorphPart2
51
51
  } from "./shared/components-pa43g2r2.js";
@@ -76,23 +76,23 @@ import {
76
76
  DialogDescription2,
77
77
  DialogState2,
78
78
  Dialog2
79
- } from "./shared/components-ex2xtqv7.js";
79
+ } from "./shared/components-br6t88cb.js";
80
80
  import {
81
81
  SheetContent2,
82
82
  SheetIndent2,
83
83
  Sheet2
84
- } from "./shared/components-mvwf8ckh.js";
84
+ } from "./shared/components-ac0x7zpq.js";
85
+ import {
86
+ useFluidHover2,
87
+ useRegisterFluidHoverItem2
88
+ } from "./shared/components-21hcwp85.js";
85
89
  import {
86
90
  GooIndicator2
87
- } from "./shared/components-z0kz9rxj.js";
91
+ } from "./shared/components-bxqmbcz2.js";
88
92
  import {
89
93
  FluidHoverHighlight2
90
- } from "./shared/components-g35n8tzm.js";
91
- import"./shared/components-c515d6xr.js";
92
- import {
93
- useFluidHover2,
94
- useRegisterFluidHoverItem2
95
- } from "./shared/components-7c4a0egq.js";
94
+ } from "./shared/components-9b2m90st.js";
95
+ import"./shared/components-5wykqxph.js";
96
96
  import"./shared/components-v2j3jx89.js";
97
97
  import {
98
98
  SidebarSelection2,
@@ -131,7 +131,7 @@ import {
131
131
  SidebarRail2,
132
132
  Sidebar2,
133
133
  SidebarContent2
134
- } from "./shared/components-2v4mmw1s.js";
134
+ } from "./shared/components-cc9kfhkb.js";
135
135
  import"./shared/components-2myjk2zf.js";
136
136
  import"./shared/components-y09nr7fe.js";
137
137
  import {
@@ -146,7 +146,7 @@ import {
146
146
  TooltipTrigger2,
147
147
  TooltipContent2,
148
148
  Tooltip2
149
- } from "./shared/components-8e0fjgm9.js";
149
+ } from "./shared/components-7rn454aq.js";
150
150
  import {
151
151
  ResizablePanel2,
152
152
  ResizableHandle2,
@@ -154,7 +154,7 @@ import {
154
154
  } from "./shared/components-gr82tz50.js";
155
155
  import {
156
156
  DesktopShell2
157
- } from "./shared/components-m7d7r3r8.js";
157
+ } from "./shared/components-0bvxny7s.js";
158
158
  import {
159
159
  ShellCard2
160
160
  } from "./shared/components-hh1g7r3t.js";
@@ -162,7 +162,7 @@ import"./shared/components-mse06t0x.js";
162
162
  import"./shared/components-q0hs5rqn.js";
163
163
  import"./shared/components-vcte8p75.js";
164
164
  import"./shared/components-t84071ay.js";
165
- import"./shared/components-w1ysefg1.js";
165
+ import"./shared/components-eawe4nxm.js";
166
166
  import {
167
167
  Elevated2
168
168
  } from "./shared/components-cp5ym3g2.js";
@@ -185,12 +185,12 @@ import {
185
185
  DropdownTrigger2,
186
186
  DropdownContent2,
187
187
  DropdownSeparator2
188
- } from "./shared/components-01e24999.js";
188
+ } from "./shared/components-pwsqp2np.js";
189
189
  import {
190
190
  SidebarInsetTopbar2,
191
191
  SidebarSearchField2,
192
192
  SidebarApp2
193
- } from "./shared/components-z87sanbc.js";
193
+ } from "./shared/components-s0megs1g.js";
194
194
  import"./shared/components-j3q9kaps.js";
195
195
  import {
196
196
  CardGroup2,
@@ -207,7 +207,7 @@ import {
207
207
  CardEyebrow2,
208
208
  CardDivider2,
209
209
  Card2
210
- } from "./shared/components-gnsvnejm.js";
210
+ } from "./shared/components-rtwfh1gc.js";
211
211
  import {
212
212
  Separator2
213
213
  } from "./shared/components-azrjnfxn.js";
@@ -220,14 +220,14 @@ import {
220
220
  } from "./shared/components-jw45ck66.js";
221
221
  import {
222
222
  Copy2
223
- } from "./shared/components-1sbnbq6a.js";
223
+ } from "./shared/components-fpgfs01m.js";
224
224
  import {
225
225
  AccordionContent2,
226
226
  AccordionGroup2,
227
227
  Accordion2,
228
228
  AccordionItem2,
229
229
  AccordionTrigger2
230
- } from "./shared/components-vykcfb5r.js";
230
+ } from "./shared/components-v1zzr668.js";
231
231
  import {
232
232
  AvatarImage2,
233
233
  AvatarFallback2,
@@ -236,7 +236,7 @@ import {
236
236
  import {
237
237
  parsePatch2,
238
238
  Diff2
239
- } from "./shared/components-h8v9nh5r.js";
239
+ } from "./shared/components-fv9y76b0.js";
240
240
  import {
241
241
  Kbd2
242
242
  } from "./shared/components-g8qgr7p8.js";
@@ -267,11 +267,11 @@ import {
267
267
  TableCell2,
268
268
  TableEmpty2,
269
269
  Table2
270
- } from "./shared/components-7xc2dne4.js";
270
+ } from "./shared/components-0ep66sg9.js";
271
271
  import {
272
272
  MarkdownProse2,
273
273
  Markdown2
274
- } from "./shared/components-9rebr89j.js";
274
+ } from "./shared/components-pw6gzev8.js";
275
275
  import {
276
276
  Sparkline2
277
277
  } from "./shared/components-nw2k1pg9.js";
@@ -292,10 +292,10 @@ import {
292
292
  import {
293
293
  CheckboxGroup2,
294
294
  Checkbox2
295
- } from "./shared/components-x5v7e0fz.js";
295
+ } from "./shared/components-nmbcfwx8.js";
296
296
  import {
297
297
  ChoiceList2
298
- } from "./shared/components-czvraaw9.js";
298
+ } from "./shared/components-4m9stj7d.js";
299
299
  import {
300
300
  Slider2
301
301
  } from "./shared/components-vx286kq7.js";
@@ -304,7 +304,7 @@ import {
304
304
  ColorSwatch2,
305
305
  ColorPickerPopover2,
306
306
  ColorPicker2
307
- } from "./shared/components-nh05qz8b.js";
307
+ } from "./shared/components-mzdbtgvz.js";
308
308
  import {
309
309
  parseColor2,
310
310
  buildParsed2
@@ -318,12 +318,12 @@ import {
318
318
  ComboboxItem2,
319
319
  ComboboxEmpty2,
320
320
  Combobox2
321
- } from "./shared/components-eebf7f9c.js";
321
+ } from "./shared/components-qmkfpcw0.js";
322
322
  import"./shared/components-29ebea21.js";
323
- import"./shared/components-ta4e10mx.js";
323
+ import"./shared/components-zckgawt6.js";
324
324
  import {
325
325
  Calendar2
326
- } from "./shared/components-b7p1pjcm.js";
326
+ } from "./shared/components-8m5e493q.js";
327
327
  import"./shared/components-jeecysvd.js";
328
328
  import {
329
329
  Label2
@@ -333,25 +333,25 @@ import {
333
333
  InputAdornment2,
334
334
  InputAction2,
335
335
  InputGroup2
336
- } from "./shared/components-q7zk70tx.js";
337
- import"./shared/components-k2gg1agj.js";
338
- import"./shared/components-e7zxwja1.js";
336
+ } from "./shared/components-af44r4y9.js";
337
+ import"./shared/components-gzve0nkp.js";
338
+ import"./shared/components-d4gkhy26.js";
339
339
  import"./shared/components-dm86y7b3.js";
340
340
  import {
341
341
  DatePicker2
342
- } from "./shared/components-83jn0raj.js";
342
+ } from "./shared/components-9am5511q.js";
343
343
  import {
344
344
  DateRangePicker2
345
- } from "./shared/components-etgpz4zk.js";
345
+ } from "./shared/components-qrtcc8aw.js";
346
346
  import {
347
347
  DurationPicker2
348
- } from "./shared/components-27fatggq.js";
348
+ } from "./shared/components-y9se9mx5.js";
349
349
  import {
350
350
  MonthPicker2
351
- } from "./shared/components-fxw1122w.js";
351
+ } from "./shared/components-4fhjk3jz.js";
352
352
  import {
353
353
  TimePicker2
354
- } from "./shared/components-kz6ak6kj.js";
354
+ } from "./shared/components-3qcgeay1.js";
355
355
  import {
356
356
  EditableText2
357
357
  } from "./shared/components-m3vxpz2z.js";
@@ -374,14 +374,14 @@ import {
374
374
  } from "./shared/components-t4j0r23n.js";
375
375
  import {
376
376
  KeyValue2
377
- } from "./shared/components-4fswe4kh.js";
377
+ } from "./shared/components-mb80a9wg.js";
378
378
  import {
379
379
  NumberInput2
380
- } from "./shared/components-9ca0c92a.js";
380
+ } from "./shared/components-yfx0skxc.js";
381
381
  import {
382
382
  RadioGroup2,
383
383
  Radio2
384
- } from "./shared/components-2tw25pk6.js";
384
+ } from "./shared/components-895m1f3s.js";
385
385
  import {
386
386
  CommandListRoot2,
387
387
  CommandShortcut2,
@@ -390,10 +390,10 @@ import {
390
390
  CommandTrigger2,
391
391
  CommandContent2,
392
392
  Command2
393
- } from "./shared/components-8ybvpebx.js";
393
+ } from "./shared/components-greka6z2.js";
394
394
  import {
395
395
  Search2
396
- } from "./shared/components-nred2e6g.js";
396
+ } from "./shared/components-rgdspnth.js";
397
397
  import"./shared/components-tcyz2tdn.js";
398
398
  import {
399
399
  SelectValue2,
@@ -404,11 +404,11 @@ import {
404
404
  SelectLabel2,
405
405
  SelectSeparator2,
406
406
  Select2
407
- } from "./shared/components-6xtntksc.js";
407
+ } from "./shared/components-xq8j9c2f.js";
408
408
  import {
409
409
  Switch2,
410
410
  SwitchGroup2
411
- } from "./shared/components-5vezp3e5.js";
411
+ } from "./shared/components-vcmky8ns.js";
412
412
  import {
413
413
  useAutosizeTextarea2
414
414
  } from "./shared/components-vpkh6j83.js";
@@ -418,7 +418,7 @@ import {
418
418
  import {
419
419
  BreadcrumbItem2,
420
420
  Breadcrumb2
421
- } from "./shared/components-7g2q2ccp.js";
421
+ } from "./shared/components-sh8j39z3.js";
422
422
  import {
423
423
  NavigationMenuContent2,
424
424
  NavigationMenuIndicator2,
@@ -427,30 +427,30 @@ import {
427
427
  NavigationMenuList2,
428
428
  NavigationMenuTrigger2,
429
429
  NavigationMenu2
430
- } from "./shared/components-e52xgvd9.js";
430
+ } from "./shared/components-4fay97sm.js";
431
431
  import {
432
432
  Pagination2
433
- } from "./shared/components-a3brpprb.js";
433
+ } from "./shared/components-1qw8hqwq.js";
434
434
  import {
435
435
  TabItem2,
436
436
  TabsList2,
437
437
  Tabs2,
438
438
  TabPanel2
439
- } from "./shared/components-1hga6pkn.js";
439
+ } from "./shared/components-8xe4h118.js";
440
440
  import {
441
441
  Tree2
442
- } from "./shared/components-6g8a5nrs.js";
442
+ } from "./shared/components-fymenepq.js";
443
443
  import {
444
444
  AlertDialogContent2,
445
445
  AlertDialogAction2,
446
446
  AlertDialogCancel2,
447
447
  AlertDialog2
448
- } from "./shared/components-k25zw9g8.js";
448
+ } from "./shared/components-hjk6dwsp.js";
449
449
  import {
450
450
  ContextMenuContent2,
451
451
  ContextMenu2,
452
452
  ContextMenuItem2
453
- } from "./shared/components-fjg4j430.js";
453
+ } from "./shared/components-hjdv4y8d.js";
454
454
  import {
455
455
  LightboxTrigger2,
456
456
  Lightbox2
@@ -462,12 +462,12 @@ import {
462
462
  PopoverTitle2,
463
463
  PopoverDescription2,
464
464
  Popover2
465
- } from "./shared/components-agjpst9b.js";
465
+ } from "./shared/components-0v4jxw7z.js";
466
466
  import {
467
467
  PreviewCardTrigger2,
468
468
  PreviewCardContent2,
469
469
  PreviewCard2
470
- } from "./shared/components-2bq4ng4d.js";
470
+ } from "./shared/components-9yrajpy0.js";
471
471
  import {
472
472
  toast2,
473
473
  useToast2,
@@ -489,7 +489,7 @@ import {
489
489
  import {
490
490
  FluidHoverItem2,
491
491
  FluidHover2
492
- } from "./shared/components-rzy6h7s4.js";
492
+ } from "./shared/components-8nnhzeb3.js";
493
493
  import {
494
494
  Morph2
495
495
  } from "./shared/components-abqfs5fh.js";
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  FluidHoverHighlight2
3
- } from "../shared/components-g35n8tzm.js";
4
- import"../shared/components-z0kz9rxj.js";
3
+ } from "../shared/components-9b2m90st.js";
4
+ import"../shared/components-bxqmbcz2.js";
5
+ import"../shared/components-21hcwp85.js";
5
6
  import"../shared/components-8pnvkrbw.js";
6
7
  import"../shared/components-pva1wj1r.js";
7
8
  import"../shared/components-45r18egt.js";
@@ -5,6 +5,7 @@ interface ItemRect {
5
5
  width: number;
6
6
  }
7
7
  import { JSX as JSX_1kxb } from "react";
8
+ import { MemoExoticComponent as MemoExoticComponent_h78s4x } from "react";
8
9
  interface FocusRingProps {
9
10
  /** The focused row's box (from `useFluidHover`'s `itemRects`), or `null` for no ring. */
10
11
  rect: ItemRect | null;
@@ -14,11 +15,13 @@ interface FocusRingProps {
14
15
  className?: string;
15
16
  }
16
17
  type Element_12xgc = JSX_1kxb["Element"];
18
+ declare function FocusRingBase({ rect, instant, className }: FocusRingProps): Element_12xgc;
17
19
  /**
18
20
  * A 1px `focus-ring` border drawn 2px outside the focused row. It springs
19
21
  * between rows on `spring.fast` (jumps under reduced motion) and fades out
20
22
  * when focus leaves. Render it inside the rows' `relative` container, above
21
- * the hover highlight.
23
+ * the hover highlight. Skips the render while its box and props hold (rects
24
+ * are fresh objects on every list render).
22
25
  */
23
- declare function FocusRing({ rect, instant, className }: FocusRingProps): Element_12xgc;
26
+ declare const FocusRing: MemoExoticComponent_h78s4x<typeof FocusRingBase>;
24
27
  export { FocusRing };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  FocusRing2
3
- } from "../shared/components-c515d6xr.js";
3
+ } from "../shared/components-5wykqxph.js";
4
+ import"../shared/components-21hcwp85.js";
4
5
  import"../shared/components-45r18egt.js";
5
6
  import"../shared/components-tz0axc0f.js";
6
7
  import"../shared/components-kxpcj2ry.js";
@@ -7,6 +7,7 @@ interface ItemRect {
7
7
  width: number;
8
8
  }
9
9
  import { JSX as JSX_1kxb } from "react";
10
+ import { MemoExoticComponent as MemoExoticComponent_h78s4x } from "react";
10
11
  declare function union(a: ItemRect | null, b: ItemRect): ItemRect;
11
12
  interface GooLayerProps {
12
13
  /** Filter on: the shapes melt into one. Off at rest. */
@@ -37,10 +38,12 @@ interface GooIndicatorProps {
37
38
  /** Opacity of the whole indicator, faded on `spring.fast`. Defaults to `1`. */
38
39
  opacity?: number;
39
40
  }
41
+ declare function GooIndicatorBase({ rect, from, className, shadow, transition, opacity }: GooIndicatorProps): Element_12xgc;
40
42
  /**
41
43
  * An indicator that travels between items with a liquid neck. Render it in the
42
44
  * items' `relative` container, beneath them: the items' text stays above it,
43
- * unfiltered.
45
+ * unfiltered. Its list re-renders on every hover; an indicator whose box did
46
+ * not move skips the render (rects are fresh objects each time).
44
47
  */
45
- declare function GooIndicator({ rect, from, className, shadow, transition, opacity }: GooIndicatorProps): Element_12xgc;
48
+ declare const GooIndicator: MemoExoticComponent_h78s4x<typeof GooIndicatorBase>;
46
49
  export { GooIndicator, GooIndicatorProps, GooLayer, GooLayerProps, union };
@@ -2,7 +2,8 @@ import {
2
2
  union2,
3
3
  GooLayer2,
4
4
  GooIndicator2
5
- } from "../shared/components-z0kz9rxj.js";
5
+ } from "../shared/components-bxqmbcz2.js";
6
+ import"../shared/components-21hcwp85.js";
6
7
  import"../shared/components-8pnvkrbw.js";
7
8
  import"../shared/components-pva1wj1r.js";
8
9
  import"../shared/components-45r18egt.js";
@@ -96,6 +96,13 @@ declare function useOverlayRoot({ open: openProp, defaultOpen, onOpenChange: onC
96
96
  /** The nearest overlay root's state. `part` names the caller in the error thrown outside a root. */
97
97
  declare function useOverlay(part: string): OverlayState;
98
98
  /**
99
+ * False until `open` first turns true, then true for good. Content that
100
+ * mounts its machinery (the morph, a fluid hover, the portal) behind it costs
101
+ * nothing in a list of triggers until one opens, and stays mounted after, for
102
+ * its close and the next open.
103
+ */
104
+ declare function useOpenedOnce(open: boolean): boolean;
105
+ /**
99
106
  * Base UI `Positioner` props for an anchored overlay: the content's
100
107
  * anchoring props over the overlay's defaults, pulled back over the trigger
101
108
  * when the panel opens in place. Spread them on the `Positioner`.
@@ -117,4 +124,4 @@ declare function PortalContainer({ value, children }: {
117
124
  }): Element_12xgc;
118
125
  /** The portal target: the content's own `container`, else the nearest `PortalContainer`, else the body (`undefined`). */
119
126
  declare function usePortalContainer(container?: HTMLElement | null): HTMLElement | undefined;
120
- export { Align, AnchorProps, CollisionProps, OpenChangeDetails, OverlayContext, OverlayRootProps, OverlayState, PortalContainer, Side, positionerProps, useOverlay, useOverlayRoot, usePortalContainer };
127
+ export { Align, AnchorProps, CollisionProps, OpenChangeDetails, OverlayContext, OverlayRootProps, OverlayState, PortalContainer, Side, positionerProps, useOpenedOnce, useOverlay, useOverlayRoot, usePortalContainer };
@@ -2,10 +2,11 @@ import {
2
2
  OverlayContext2,
3
3
  useOverlayRoot2,
4
4
  useOverlay2,
5
+ useOpenedOnce2,
5
6
  positionerProps2,
6
7
  PortalContainer2,
7
8
  usePortalContainer2
8
- } from "../shared/components-tcm3k3wj.js";
9
+ } from "../shared/components-ft5dgjg6.js";
9
10
  import"../shared/components-8pnvkrbw.js";
10
11
  import"../shared/components-pva1wj1r.js";
11
12
  import"../shared/components-45r18egt.js";
@@ -16,6 +17,7 @@ export {
16
17
  OverlayContext2 as OverlayContext,
17
18
  PortalContainer2 as PortalContainer,
18
19
  positionerProps2 as positionerProps,
20
+ useOpenedOnce2 as useOpenedOnce,
19
21
  useOverlay2 as useOverlay,
20
22
  useOverlayRoot2 as useOverlayRoot,
21
23
  usePortalContainer2 as usePortalContainer
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  dividedColumns2,
3
3
  ScrollColumn2
4
- } from "../shared/components-ta4e10mx.js";
5
- import"../shared/components-g35n8tzm.js";
6
- import"../shared/components-z0kz9rxj.js";
7
- import"../shared/components-7c4a0egq.js";
4
+ } from "../shared/components-zckgawt6.js";
5
+ import"../shared/components-9b2m90st.js";
6
+ import"../shared/components-bxqmbcz2.js";
7
+ import"../shared/components-21hcwp85.js";
8
8
  import"../shared/components-8pnvkrbw.js";
9
9
  import"../shared/components-pva1wj1r.js";
10
10
  import"../shared/components-45r18egt.js";
@@ -5,6 +5,8 @@ interface ItemRect {
5
5
  left: number;
6
6
  width: number;
7
7
  }
8
+ /** Two rects with the same box (either may be missing). */
9
+ declare function sameRect(a: ItemRect | null | undefined, b: ItemRect | null | undefined): boolean;
8
10
  interface UseFluidHoverOptions {
9
11
  /**
10
12
  * Which direction to resolve the nearest item along.
@@ -87,4 +89,4 @@ declare function useFluidHover<T extends HTMLElement>(containerRef: RefObject<T
87
89
  * item that is not grouped); then nothing is registered.
88
90
  */
89
91
  declare function useRegisterFluidHoverItem(registerItem: ((index: number, element: HTMLElement | null) => void) | undefined, index: number | undefined, ref: RefObject<HTMLElement | null>): void;
90
- export { ItemRect, UseFluidHoverOptions, UseFluidHoverReturn, useFluidHover, useRegisterFluidHoverItem };
92
+ export { ItemRect, UseFluidHoverOptions, UseFluidHoverReturn, sameRect, useFluidHover, useRegisterFluidHoverItem };
@@ -1,8 +1,10 @@
1
1
  import {
2
+ sameRect2,
2
3
  useFluidHover2,
3
4
  useRegisterFluidHoverItem2
4
- } from "../shared/components-7c4a0egq.js";
5
+ } from "../shared/components-21hcwp85.js";
5
6
  export {
7
+ sameRect2 as sameRect,
6
8
  useFluidHover2 as useFluidHover,
7
9
  useRegisterFluidHoverItem2 as useRegisterFluidHoverItem
8
10
  };