@oxy.so/bloom 2.3.0 → 2.5.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 (248) hide show
  1. package/README.md +3 -3
  2. package/docs/avatar-group.mdx +10 -17
  3. package/docs/hover-card.mdx +125 -0
  4. package/docs/popover.mdx +73 -19
  5. package/docs/user-hover-card.mdx +29 -9
  6. package/lib/commonjs/avatar-group/AvatarGroup.web.js +55 -85
  7. package/lib/commonjs/avatar-group/AvatarGroup.web.js.map +1 -1
  8. package/lib/commonjs/calendar/CalendarViewInboxMenu.js +4 -13
  9. package/lib/commonjs/calendar/CalendarViewInboxMenu.js.map +1 -1
  10. package/lib/commonjs/calendar/CalendarViewMonthGrid.js +6 -10
  11. package/lib/commonjs/calendar/CalendarViewMonthGrid.js.map +1 -1
  12. package/lib/commonjs/dialog/DialogHeader.js +1 -7
  13. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  14. package/lib/commonjs/floating/FloatingPanel.js +19 -22
  15. package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
  16. package/lib/commonjs/floating/constants.js +12 -56
  17. package/lib/commonjs/floating/constants.js.map +1 -1
  18. package/lib/commonjs/floating/menu-sub-flyout.js +3 -3
  19. package/lib/commonjs/floating/use-anchor-rect.js +1 -0
  20. package/lib/commonjs/floating/use-anchor-rect.js.map +1 -1
  21. package/lib/commonjs/hover-card/HoverCard.js +104 -0
  22. package/lib/commonjs/hover-card/HoverCard.js.map +1 -0
  23. package/lib/commonjs/hover-card/HoverCard.web.js +155 -0
  24. package/lib/commonjs/hover-card/HoverCard.web.js.map +1 -0
  25. package/lib/commonjs/hover-card/HoverCardPanel.js +101 -0
  26. package/lib/commonjs/hover-card/HoverCardPanel.js.map +1 -0
  27. package/lib/commonjs/hover-card/constants.js +25 -0
  28. package/lib/commonjs/hover-card/constants.js.map +1 -0
  29. package/lib/commonjs/hover-card/context.js +37 -0
  30. package/lib/commonjs/hover-card/context.js.map +1 -0
  31. package/lib/commonjs/hover-card/index.js +44 -0
  32. package/lib/commonjs/hover-card/index.js.map +1 -0
  33. package/lib/commonjs/hover-card/index.web.js +44 -0
  34. package/lib/commonjs/hover-card/index.web.js.map +1 -0
  35. package/lib/commonjs/hover-card/types.js +6 -0
  36. package/lib/commonjs/hover-card/types.js.map +1 -0
  37. package/lib/commonjs/hover-card/use-hover-intent.js +49 -0
  38. package/lib/commonjs/hover-card/use-hover-intent.js.map +1 -0
  39. package/lib/commonjs/index.js +12 -0
  40. package/lib/commonjs/index.js.map +1 -1
  41. package/lib/commonjs/index.web.js +16 -4
  42. package/lib/commonjs/index.web.js.map +1 -1
  43. package/lib/commonjs/popover/Popover.js +23 -3
  44. package/lib/commonjs/popover/Popover.js.map +1 -1
  45. package/lib/commonjs/popover/Popover.web.js +21 -16
  46. package/lib/commonjs/popover/Popover.web.js.map +1 -1
  47. package/lib/commonjs/popover/index.js +31 -0
  48. package/lib/commonjs/popover/index.js.map +1 -1
  49. package/lib/commonjs/popover/index.web.js +31 -0
  50. package/lib/commonjs/popover/index.web.js.map +1 -1
  51. package/lib/commonjs/popover/parts.js +164 -0
  52. package/lib/commonjs/popover/parts.js.map +1 -0
  53. package/lib/commonjs/popover/surface.js +102 -0
  54. package/lib/commonjs/popover/surface.js.map +1 -0
  55. package/lib/commonjs/sidebar/parts.js +9 -11
  56. package/lib/commonjs/sidebar/parts.js.map +1 -1
  57. package/lib/commonjs/user-hover-card/UserHoverCard.js +16 -6
  58. package/lib/commonjs/user-hover-card/UserHoverCard.js.map +1 -1
  59. package/lib/commonjs/user-hover-card/constants.js +8 -2
  60. package/lib/commonjs/user-hover-card/constants.js.map +1 -1
  61. package/lib/module/avatar-group/AvatarGroup.web.js +55 -84
  62. package/lib/module/avatar-group/AvatarGroup.web.js.map +1 -1
  63. package/lib/module/calendar/CalendarViewInboxMenu.js +4 -13
  64. package/lib/module/calendar/CalendarViewInboxMenu.js.map +1 -1
  65. package/lib/module/calendar/CalendarViewMonthGrid.js +6 -10
  66. package/lib/module/calendar/CalendarViewMonthGrid.js.map +1 -1
  67. package/lib/module/dialog/DialogHeader.js +1 -7
  68. package/lib/module/dialog/DialogHeader.js.map +1 -1
  69. package/lib/module/floating/FloatingPanel.js +20 -23
  70. package/lib/module/floating/FloatingPanel.js.map +1 -1
  71. package/lib/module/floating/constants.js +11 -55
  72. package/lib/module/floating/constants.js.map +1 -1
  73. package/lib/module/floating/menu-sub-flyout.js +3 -3
  74. package/lib/module/floating/use-anchor-rect.js +1 -1
  75. package/lib/module/floating/use-anchor-rect.js.map +1 -1
  76. package/lib/module/hover-card/HoverCard.js +96 -0
  77. package/lib/module/hover-card/HoverCard.js.map +1 -0
  78. package/lib/module/hover-card/HoverCard.web.js +147 -0
  79. package/lib/module/hover-card/HoverCard.web.js.map +1 -0
  80. package/lib/module/hover-card/HoverCardPanel.js +95 -0
  81. package/lib/module/hover-card/HoverCardPanel.js.map +1 -0
  82. package/lib/module/hover-card/constants.js +21 -0
  83. package/lib/module/hover-card/constants.js.map +1 -0
  84. package/lib/module/hover-card/context.js +30 -0
  85. package/lib/module/hover-card/context.js.map +1 -0
  86. package/lib/module/hover-card/index.js +5 -0
  87. package/lib/module/hover-card/index.js.map +1 -0
  88. package/lib/module/hover-card/index.web.js +5 -0
  89. package/lib/module/hover-card/index.web.js.map +1 -0
  90. package/lib/module/hover-card/types.js +4 -0
  91. package/lib/module/hover-card/types.js.map +1 -0
  92. package/lib/module/hover-card/use-hover-intent.js +46 -0
  93. package/lib/module/hover-card/use-hover-intent.js.map +1 -0
  94. package/lib/module/index.js +1 -0
  95. package/lib/module/index.js.map +1 -1
  96. package/lib/module/index.web.js +1 -0
  97. package/lib/module/index.web.js.map +1 -1
  98. package/lib/module/popover/Popover.js +23 -3
  99. package/lib/module/popover/Popover.js.map +1 -1
  100. package/lib/module/popover/Popover.web.js +22 -17
  101. package/lib/module/popover/Popover.web.js.map +1 -1
  102. package/lib/module/popover/index.js +1 -0
  103. package/lib/module/popover/index.js.map +1 -1
  104. package/lib/module/popover/index.web.js +1 -0
  105. package/lib/module/popover/index.web.js.map +1 -1
  106. package/lib/module/popover/parts.js +154 -0
  107. package/lib/module/popover/parts.js.map +1 -0
  108. package/lib/module/popover/surface.js +96 -0
  109. package/lib/module/popover/surface.js.map +1 -0
  110. package/lib/module/sidebar/parts.js +9 -11
  111. package/lib/module/sidebar/parts.js.map +1 -1
  112. package/lib/module/user-hover-card/UserHoverCard.js +15 -5
  113. package/lib/module/user-hover-card/UserHoverCard.js.map +1 -1
  114. package/lib/module/user-hover-card/constants.js +9 -2
  115. package/lib/module/user-hover-card/constants.js.map +1 -1
  116. package/lib/typescript/commonjs/avatar-group/AvatarGroup.web.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/calendar/CalendarViewInboxMenu.d.ts.map +1 -1
  118. package/lib/typescript/commonjs/calendar/CalendarViewMonthGrid.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/floating/FloatingPanel.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/floating/constants.d.ts +11 -50
  122. package/lib/typescript/commonjs/floating/constants.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/floating/types.d.ts +5 -4
  124. package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/floating/use-anchor-rect.d.ts +7 -0
  126. package/lib/typescript/commonjs/floating/use-anchor-rect.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/hover-card/HoverCard.d.ts +5 -0
  128. package/lib/typescript/commonjs/hover-card/HoverCard.d.ts.map +1 -0
  129. package/lib/typescript/commonjs/hover-card/HoverCard.web.d.ts +5 -0
  130. package/lib/typescript/commonjs/hover-card/HoverCard.web.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/hover-card/HoverCardPanel.d.ts +45 -0
  132. package/lib/typescript/commonjs/hover-card/HoverCardPanel.d.ts.map +1 -0
  133. package/lib/typescript/commonjs/hover-card/constants.d.ts +16 -0
  134. package/lib/typescript/commonjs/hover-card/constants.d.ts.map +1 -0
  135. package/lib/typescript/commonjs/hover-card/context.d.ts +21 -0
  136. package/lib/typescript/commonjs/hover-card/context.d.ts.map +1 -0
  137. package/lib/typescript/commonjs/hover-card/index.d.ts +4 -0
  138. package/lib/typescript/commonjs/hover-card/index.d.ts.map +1 -0
  139. package/lib/typescript/commonjs/hover-card/index.web.d.ts +4 -0
  140. package/lib/typescript/commonjs/hover-card/index.web.d.ts.map +1 -0
  141. package/lib/typescript/commonjs/hover-card/types.d.ts +50 -0
  142. package/lib/typescript/commonjs/hover-card/types.d.ts.map +1 -0
  143. package/lib/typescript/commonjs/hover-card/use-hover-intent.d.ts +14 -0
  144. package/lib/typescript/commonjs/hover-card/use-hover-intent.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/index.d.ts +1 -0
  146. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/index.web.d.ts +1 -0
  148. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/popover/Popover.d.ts +1 -1
  150. package/lib/typescript/commonjs/popover/Popover.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/popover/Popover.web.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/popover/index.d.ts +2 -1
  153. package/lib/typescript/commonjs/popover/index.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/popover/index.web.d.ts +2 -1
  155. package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/popover/parts.d.ts +7 -0
  157. package/lib/typescript/commonjs/popover/parts.d.ts.map +1 -0
  158. package/lib/typescript/commonjs/popover/surface.d.ts +58 -0
  159. package/lib/typescript/commonjs/popover/surface.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/popover/types.d.ts +50 -0
  161. package/lib/typescript/commonjs/popover/types.d.ts.map +1 -1
  162. package/lib/typescript/commonjs/sidebar/parts.d.ts +2 -2
  163. package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
  164. package/lib/typescript/commonjs/user-hover-card/UserHoverCard.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/user-hover-card/constants.d.ts +6 -1
  166. package/lib/typescript/commonjs/user-hover-card/constants.d.ts.map +1 -1
  167. package/lib/typescript/module/avatar-group/AvatarGroup.web.d.ts.map +1 -1
  168. package/lib/typescript/module/calendar/CalendarViewInboxMenu.d.ts.map +1 -1
  169. package/lib/typescript/module/calendar/CalendarViewMonthGrid.d.ts.map +1 -1
  170. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  171. package/lib/typescript/module/floating/FloatingPanel.d.ts.map +1 -1
  172. package/lib/typescript/module/floating/constants.d.ts +11 -50
  173. package/lib/typescript/module/floating/constants.d.ts.map +1 -1
  174. package/lib/typescript/module/floating/types.d.ts +5 -4
  175. package/lib/typescript/module/floating/types.d.ts.map +1 -1
  176. package/lib/typescript/module/floating/use-anchor-rect.d.ts +7 -0
  177. package/lib/typescript/module/floating/use-anchor-rect.d.ts.map +1 -1
  178. package/lib/typescript/module/hover-card/HoverCard.d.ts +5 -0
  179. package/lib/typescript/module/hover-card/HoverCard.d.ts.map +1 -0
  180. package/lib/typescript/module/hover-card/HoverCard.web.d.ts +5 -0
  181. package/lib/typescript/module/hover-card/HoverCard.web.d.ts.map +1 -0
  182. package/lib/typescript/module/hover-card/HoverCardPanel.d.ts +45 -0
  183. package/lib/typescript/module/hover-card/HoverCardPanel.d.ts.map +1 -0
  184. package/lib/typescript/module/hover-card/constants.d.ts +16 -0
  185. package/lib/typescript/module/hover-card/constants.d.ts.map +1 -0
  186. package/lib/typescript/module/hover-card/context.d.ts +21 -0
  187. package/lib/typescript/module/hover-card/context.d.ts.map +1 -0
  188. package/lib/typescript/module/hover-card/index.d.ts +4 -0
  189. package/lib/typescript/module/hover-card/index.d.ts.map +1 -0
  190. package/lib/typescript/module/hover-card/index.web.d.ts +4 -0
  191. package/lib/typescript/module/hover-card/index.web.d.ts.map +1 -0
  192. package/lib/typescript/module/hover-card/types.d.ts +50 -0
  193. package/lib/typescript/module/hover-card/types.d.ts.map +1 -0
  194. package/lib/typescript/module/hover-card/use-hover-intent.d.ts +14 -0
  195. package/lib/typescript/module/hover-card/use-hover-intent.d.ts.map +1 -0
  196. package/lib/typescript/module/index.d.ts +1 -0
  197. package/lib/typescript/module/index.d.ts.map +1 -1
  198. package/lib/typescript/module/index.web.d.ts +1 -0
  199. package/lib/typescript/module/index.web.d.ts.map +1 -1
  200. package/lib/typescript/module/popover/Popover.d.ts +1 -1
  201. package/lib/typescript/module/popover/Popover.d.ts.map +1 -1
  202. package/lib/typescript/module/popover/Popover.web.d.ts.map +1 -1
  203. package/lib/typescript/module/popover/index.d.ts +2 -1
  204. package/lib/typescript/module/popover/index.d.ts.map +1 -1
  205. package/lib/typescript/module/popover/index.web.d.ts +2 -1
  206. package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
  207. package/lib/typescript/module/popover/parts.d.ts +7 -0
  208. package/lib/typescript/module/popover/parts.d.ts.map +1 -0
  209. package/lib/typescript/module/popover/surface.d.ts +58 -0
  210. package/lib/typescript/module/popover/surface.d.ts.map +1 -0
  211. package/lib/typescript/module/popover/types.d.ts +50 -0
  212. package/lib/typescript/module/popover/types.d.ts.map +1 -1
  213. package/lib/typescript/module/sidebar/parts.d.ts +2 -2
  214. package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
  215. package/lib/typescript/module/user-hover-card/UserHoverCard.d.ts.map +1 -1
  216. package/lib/typescript/module/user-hover-card/constants.d.ts +6 -1
  217. package/lib/typescript/module/user-hover-card/constants.d.ts.map +1 -1
  218. package/package.json +20 -1
  219. package/src/avatar-group/AvatarGroup.web.tsx +57 -126
  220. package/src/calendar/CalendarViewInboxMenu.tsx +3 -12
  221. package/src/calendar/CalendarViewMonthGrid.tsx +5 -9
  222. package/src/dialog/DialogHeader.tsx +1 -6
  223. package/src/floating/FloatingPanel.tsx +19 -27
  224. package/src/floating/constants.ts +11 -56
  225. package/src/floating/menu-sub-flyout.tsx +3 -3
  226. package/src/floating/types.ts +5 -4
  227. package/src/floating/use-anchor-rect.ts +1 -1
  228. package/src/hover-card/HoverCard.tsx +90 -0
  229. package/src/hover-card/HoverCard.web.tsx +160 -0
  230. package/src/hover-card/HoverCardPanel.tsx +112 -0
  231. package/src/hover-card/constants.ts +18 -0
  232. package/src/hover-card/context.ts +45 -0
  233. package/src/hover-card/index.ts +7 -0
  234. package/src/hover-card/index.web.ts +7 -0
  235. package/src/hover-card/types.ts +53 -0
  236. package/src/hover-card/use-hover-intent.ts +47 -0
  237. package/src/index.ts +1 -0
  238. package/src/index.web.ts +1 -0
  239. package/src/popover/Popover.tsx +32 -4
  240. package/src/popover/Popover.web.tsx +31 -17
  241. package/src/popover/index.ts +17 -1
  242. package/src/popover/index.web.ts +17 -1
  243. package/src/popover/parts.tsx +141 -0
  244. package/src/popover/surface.ts +119 -0
  245. package/src/popover/types.ts +56 -0
  246. package/src/sidebar/parts.tsx +8 -11
  247. package/src/user-hover-card/UserHoverCard.tsx +30 -18
  248. package/src/user-hover-card/constants.ts +9 -2
package/README.md CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ### What it is
22
22
 
23
- Components, hooks and design tokens published as `@oxy.so/bloom` across 129 subpath exports, shipped as `src` for Metro and as compiled CommonJS and ESM for everyone else. Web builds resolve platform forks automatically through export conditions, so a `.web.tsx` fork never reaches a native bundle.
23
+ Components, hooks and design tokens published as `@oxy.so/bloom` across 130 subpath exports, shipped as `src` for Metro and as compiled CommonJS and ESM for everyone else. Web builds resolve platform forks automatically through export conditions, so a `.web.tsx` fork never reaches a native bundle.
24
24
 
25
25
  Styling is NativeWind classes throughout. There are no colour props and no wrapper components to theme a button, because a second way to set a colour is a second thing that can disagree.
26
26
 
@@ -151,7 +151,7 @@ Every palette is generated from a single seed colour by a dependency free colour
151
151
 
152
152
  ## Components
153
153
 
154
- Bloom publishes 129 subpath exports. Importing from the subpath rather than the root keeps a bundle to what it actually renders.
154
+ Bloom publishes 130 subpath exports. Importing from the subpath rather than the root keeps a bundle to what it actually renders.
155
155
 
156
156
  | Group | Exports |
157
157
  |---|---|
@@ -163,7 +163,7 @@ Bloom publishes 129 subpath exports. Importing from the subpath rather than the
163
163
  | Layout and lists | `grid`, `list`, `scroll`, `settings-list`, `card`, `accordion`, `aspect-ratio`, `divider`, `item`, `carousel` |
164
164
  | Data and charts | `table`, `data-table`, `chart-cards`, `stat-cards`, `calendar`, `composition-bar`, `dot-grid-meter`, `stat-bar`, `activity-heatmap`, `recent-hires-card`, `patient-info-card`, `important-alerts-card`, `agent-limits-card`, `ai-profile-card` |
165
165
  | AI and agents | `agent-chat`, `ai-chat`, `composer-panel`, `composer-loader`, `agent-thinking`, `agent-log`, `agent-progress`, `task-list`, `web-search`, `questionnaire` |
166
- | Identity and media | `avatar`, `avatar-group`, `user-hover-card`, `image-resolver`, `image-aspect-ratio-cache`, `zoomable-image-gallery`, `zoomable-media-gallery`, `media-flight`, `media-inset-border`, `progressive-blur`, `fill` |
166
+ | Identity and media | `avatar`, `avatar-group`, `hover-card`, `user-hover-card`, `image-resolver`, `image-aspect-ratio-cache`, `zoomable-image-gallery`, `zoomable-media-gallery`, `media-flight`, `media-inset-border`, `progressive-blur`, `fill` |
167
167
  | Feedback | `toast`, `notification`, `notification-center`, `announcement`, `admonition`, `loading`, `skeleton`, `error-boundary`, `badge`, `chip`, `kbd`, `code`, `link-preview`, `connection-status`, `connection-dots` |
168
168
  | Motion and assets | `motion`, `animated-check`, `icon-circle`, `radio-indicator`, `icons`, `typography`, `fonts` |
169
169
 
@@ -72,20 +72,13 @@ state — the consumer passes the SDK's `FollowButton` into its `action` slot.
72
72
 
73
73
  `renderItemAction` is the only slot the hover card exposes per item.
74
74
  `UserHoverCard`'s `footer` is not forwarded: a facepile hover card is a glance at
75
- who these people are, and an app that wants a fuller preview renders
76
- `UserHoverCard` behind its own trigger.
77
-
78
- The card floats via `Portal`, imported from `'../portal/index.web'` rather than
79
- the bare `'../portal'` — export conditions don't apply to relative specifiers,
80
- so a bare import here resolves to the NATIVE barrel off Metro (Vite, webpack,
81
- SSR), and the card renders nothing, silently, because the native `Portal`
82
- needs a `PortalOutlet` no web app mounts. If you touch this import, verify
83
- against the BUILT artefact, not just the source.
84
-
85
- The card floats under a `View` with `onPointerEnter`/`onPointerLeave`, and that
86
- must not become a `Pressable`. react-native-web's `Pressable` dispatches a
87
- bubbling `react-gui:hover:lock` event on hover, and an ancestor `Pressable` that
88
- is currently hovered ends its own hover for any lock it did not send — so a
89
- `Pressable` bridge dismissed the card the moment the cursor reached the injected
90
- FollowButton or the identity area. Nothing was logged; the card just went away
91
- about 120ms later.
75
+ who these people are, and an app that wants a fuller preview wraps an avatar in a
76
+ [`HoverCard`](/docs/bloom/main/hover-card) with `UserHoverCard` inside.
77
+
78
+ The card floats in the same panel as [`HoverCardContent`](/docs/bloom/main/hover-card),
79
+ so placement (flip and clamp), motion, Escape and outside-press dismissal and the
80
+ pointer bridge are the hover card's — including why that bridge must never be a
81
+ `Pressable`. What this family adds is ONE card for the whole pile: it re-anchors
82
+ as the cursor moves between faces instead of closing and reopening per avatar,
83
+ and it opens with no delay, because a pointer on a row of people is already
84
+ asking who they are.
@@ -0,0 +1,125 @@
1
+ ---
2
+ title: HoverCard
3
+ description: Decides when and where a preview card appears — hover or focus on web, long press on native.
4
+ order: 22
5
+ ---
6
+
7
+ # HoverCard
8
+
9
+ A preview that opens while the pointer rests on something — a name, an avatar, a
10
+ link — and stays up while the pointer moves onto it. On native, where there is no
11
+ hover, a long press opens it in a bottom sheet.
12
+
13
+ Three parts, shadcn's own: `HoverCard`, `HoverCardTrigger`, `HoverCardContent`.
14
+ The trigger decides **when** the card appears; the content decides **where**.
15
+ What the card shows is up to you — for a person, that is
16
+ [`UserHoverCard`](/docs/bloom/main/user-hover-card).
17
+
18
+ ```tsx
19
+ import { HoverCard, HoverCardContent, HoverCardTrigger } from '@oxy.so/bloom/hover-card';
20
+ import { UserHoverCard } from '@oxy.so/bloom/user-hover-card';
21
+ import { FollowButton } from '@oxy.so/services';
22
+
23
+ <HoverCard>
24
+ <HoverCardTrigger asChild>
25
+ <Link href={`/@${user.username}`}>@{user.username}</Link>
26
+ </HoverCardTrigger>
27
+ <HoverCardContent label={user.name.displayName}>
28
+ <UserHoverCard
29
+ avatar={user.avatar}
30
+ displayName={user.name.displayName ?? user.username}
31
+ username={user.username}
32
+ bio={user.bio}
33
+ action={<FollowButton userId={user.id} />}
34
+ />
35
+ </HoverCardContent>
36
+ </HoverCard>
37
+ ```
38
+
39
+ `UserHoverCard` notices it is inside a `HoverCardContent` and draws only its
40
+ content — the panel is its surface, so there is never a card inside a card, and
41
+ the entrance plays once.
42
+
43
+ ## When it opens
44
+
45
+ | Platform | Opens | Closes |
46
+ | -------- | ------------------------------------------------------- | --------------------------------------------------- |
47
+ | Web | pointer rests on the trigger for `openDelay` (400ms), or keyboard focus reaches it | pointer away from trigger **and** card for `closeDelay` (150ms), blur, Escape, a press outside |
48
+ | Native | long press on the trigger | swipe the sheet down, tap the scrim |
49
+
50
+ - **The open delay is a filter, not latency.** A pointer crossing a page of
51
+ names on its way somewhere else opens nothing.
52
+ - **The close delay is a bridge.** The card sits 8px from its trigger; the
53
+ pointer crosses that gap well within 150ms, so moving onto the card keeps it
54
+ up. Everything inside the card — a follow button, the profile link — stays
55
+ reachable.
56
+ - **Touch pointers are ignored on web.** A tap is a press, and it belongs to the
57
+ element under the finger.
58
+ - **Only keyboard focus opens it** (`:focus-visible`). A mouse click focuses what
59
+ it lands on too, and opening on that would reopen a card the click meant to
60
+ get past.
61
+ - **A plain press is never the card's.** On native the trigger composes a long
62
+ press into its child and leaves `onPress` alone, so a link or an avatar that
63
+ navigates still navigates.
64
+
65
+ Pass `openDelay` / `closeDelay` on the root to tune it; they do nothing on
66
+ native.
67
+
68
+ ## `asChild` on native
69
+
70
+ When the trigger's child is itself pressable, pass `asChild`. Without it the
71
+ child renders inside Bloom's own `Pressable`, and the inner pressable wins the
72
+ responder — the outer long press never fires. With it, the long press is merged
73
+ into your element, composed with any `onLongPress` it already has. On web the
74
+ prop is ignored: the trigger listens for pointer and focus on a wrapper, so
75
+ there is nothing to merge.
76
+
77
+ ## Load on open
78
+
79
+ `onOpenChange(true)` fires when the card is about to show, which is the moment to
80
+ fetch. Render `UserHoverCard` with `loading` until the profile lands — the
81
+ skeleton has the card's own geometry, so nothing jumps.
82
+
83
+ ```tsx
84
+ const [open, setOpen] = useState(false);
85
+ const { data: user } = useProfile(username, { enabled: open });
86
+
87
+ <HoverCard open={open} onOpenChange={setOpen}>
88
+ <HoverCardTrigger asChild>
89
+ <Link href={`/@${username}`}>@{username}</Link>
90
+ </HoverCardTrigger>
91
+ <HoverCardContent label={username}>
92
+ <UserHoverCard loading={!user} displayName={user?.name ?? username} username={username} />
93
+ </HoverCardContent>
94
+ </HoverCard>
95
+ ```
96
+
97
+ ## Where it opens
98
+
99
+ `HoverCardContent` takes the anchored-surface props every Bloom floating surface
100
+ takes: `side` (default `'bottom'`), `align` (default `'center'`), `sideOffset`
101
+ (default `8`) and `alignOffset`. `side` is a preference — the card flips when it
102
+ does not fit and is clamped inside the viewport.
103
+
104
+ The surface is Bloom's floating panel: radius 16, 1px border, the dropdown
105
+ shadow, a 15px inset (`padded={false}` removes the inset) and the 150ms fade,
106
+ `scale-95` and 2px blur entrance, reversed on the way out. It is **not modal** —
107
+ nothing is laid over the page, which stays scrollable and clickable.
108
+
109
+ ## The bridge must not be a `Pressable`
110
+
111
+ The pointer bridge that keeps the card open is a `View` listening to
112
+ `pointerenter`/`pointerleave`. react-native-web's `Pressable` dispatches a
113
+ bubbling `react-gui:hover:lock` event on hover, and a hovered ancestor
114
+ `Pressable` ends its own hover for any lock it did not send — so a `Pressable`
115
+ bridge dismissed the card the moment the cursor reached a button inside it, with
116
+ nothing logged. `pointerenter`/`pointerleave` do not bubble and do not fire
117
+ between descendants. Gates: `HoverCard.web.test.tsx` and
118
+ `UserHoverCard.web.test.tsx`, both mutation-checked against removing the bridge.
119
+
120
+ ## `AvatarGroup`
121
+
122
+ `AvatarGroup`'s `hoverCard` floats its card in the same panel, so placement,
123
+ motion and dismissal match. It keeps ONE card for the whole pile, re-anchored as
124
+ the cursor moves between faces, which is the one thing a `HoverCard` per avatar
125
+ could not do.
package/docs/popover.mdx CHANGED
@@ -8,33 +8,89 @@ order: 21
8
8
 
9
9
  A small surface of arbitrary content, anchored to what opened it. An anchored panel on web, a bottom sheet on native.
10
10
 
11
- Three parts, shadcn's own: `Popover`, `PopoverTrigger`, `PopoverContent`.
11
+ Three structural parts, shadcn's own — `Popover`, `PopoverTrigger`, `PopoverContent` — plus the panel parts every floating surface repeats: `PopoverHeader`, `PopoverTitle`, `PopoverDescription`, `PopoverFooter` and `PopoverSeparator`.
12
12
 
13
13
  Reach for it when the content is not a list of actions. When it IS a list of actions, reach for [DropdownMenu](/docs/bloom/main/dropdown-menu) — it gives you the rows, the keyboard state and the ARIA roles for free.
14
14
 
15
15
  ## Basic
16
16
 
17
17
  ```tsx
18
- import { Popover, PopoverContent, PopoverTrigger } from '@oxy.so/bloom/popover';
18
+ import {
19
+ Popover,
20
+ PopoverContent,
21
+ PopoverDescription,
22
+ PopoverHeader,
23
+ PopoverTitle,
24
+ PopoverTrigger,
25
+ } from '@oxy.so/bloom/popover';
19
26
  import { Button } from '@oxy.so/bloom/button';
20
- import { P } from '@oxy.so/bloom/typography';
21
27
 
22
28
  <Popover>
23
29
  <PopoverTrigger asChild label="What is this?">
24
30
  <Button variant="secondary">What is this?</Button>
25
31
  </PopoverTrigger>
26
32
 
27
- <PopoverContent label="Two-factor authentication">
28
- <View style={{ padding: 16, gap: 8 }}>
29
- <P>A second step when you sign in, so a leaked password is not enough on its own.</P>
30
- </View>
33
+ <PopoverContent label="Two-factor authentication" align="start">
34
+ <PopoverHeader>
35
+ <PopoverTitle>Two-factor authentication</PopoverTitle>
36
+ <PopoverDescription numberOfLines={0}>
37
+ A second step when you sign in, so a leaked password is not enough on its own.
38
+ </PopoverDescription>
39
+ </PopoverHeader>
31
40
  </PopoverContent>
32
41
  </Popover>
33
42
  ```
34
43
 
35
- ## The panel has no padding of its own
44
+ ## The panel
36
45
 
37
- Deliberate, and worth knowing before you wonder where the inset went. A popover's body is as often a list of `Item` rows (an option picker, the dialog header's overflow) as it is prose, and rows have to reach the panel edge to show their full-width highlight. So the panel keeps only the 4px vertical rhythm every anchored Bloom surface has, and a prose popover pads its own body — as the example above does.
46
+ `PopoverContent` is Bloom's floating surface — the one every menu, picker and account panel shares (`MENU_POPOVER_SURFACE`):
47
+
48
+ | | |
49
+ | --- | --- |
50
+ | width | `266` (`w-[266px]`), capped at the viewport minus 32 |
51
+ | corner | `16` (`rounded-2xl`) |
52
+ | border | 1px `border-button-default` |
53
+ | surface | `background-primary-default` — the theme's card in light, `neutral-800` in dark |
54
+ | inset | `10` on every side (`p-2.5`) |
55
+ | elevation | `shadow-dropdown` |
56
+ | motion | 150ms `ease-out`: fade + `scale-95` + 2px blur, in and out, from the corner nearest the trigger |
57
+ | offset | `8` from the trigger |
58
+
59
+ The colours come from the same theme ramps as `Button` and the menus (`floating/menu-palette.ts`), in light and dark. Popovers have no close button or arrow.
60
+
61
+ ## Panel parts
62
+
63
+ | Part | Classes | Use |
64
+ | --- | --- | --- |
65
+ | `PopoverHeader` | `flex items-center gap-2 px-2 pt-1` | A heading row; `leading` takes an avatar or icon beside the text column |
66
+ | `PopoverTitle` | `text-body-medium text-text-primary` | `tone="secondary"` is the group-label colour ("Users with access") |
67
+ | `PopoverDescription` | `text-body-regular text-text-secondary` | One line by default; `numberOfLines={0}` for prose |
68
+ | `PopoverFooter` | `flex items-center gap-3 px-2 pb-2` | Actions — `px-2 pb-2` puts them 18px from the panel edge on every side |
69
+ | `PopoverSeparator` | `-mx-2.5 my-2.5 h-px bg-border-button-default` | Full-bleed rule between sections |
70
+
71
+ The `px-2` of the header and footer is measured against the panel's `p-2.5`, and the separator bleeds back through exactly that inset — so they line up only inside a `PopoverContent` that keeps its default padding.
72
+
73
+ ## The inset: row lists and prose share it
74
+
75
+ The panel keeps its `p-2.5` whatever the body is. A row list (an option picker, the dialog header's overflow) puts its rows straight inside — rows carry their own `p-2` and their own 10px corner, so a hover wash sits 10px in from the border, which is the intended look, not a missing full-bleed highlight. Prose pads itself through the parts (`PopoverHeader`'s `px-2`), not through an extra wrapper.
76
+
77
+ ## Overriding the panel
78
+
79
+ Every default is resolved INLINE, before the caller's `style`, so `style` overrides any of it:
80
+
81
+ ```tsx
82
+ <PopoverContent label="Event details" side="right" style={{ width: 302, borderRadius: 20 }}>
83
+ ```
84
+
85
+ `className` works too, and this is the part worth knowing. On web an inline style outranks every class, so an inline default would silently beat a caller's `w-[200px]`. `PopoverContent` reads which chrome properties the caller's utilities name — width (`w-*`, `size-*`), `max-w-*`, padding (`p-*`, `px-*`, …), `rounded-*`, border width (`border`, `border-0`, `border-x-2`), border colour (`border-red-500`), `bg-*`, `shadow-*`, `overflow-*`, through `md:`/`dark:` variants and `!` — and leaves THAT default out, so the class is the only rule for it:
86
+
87
+ ```tsx
88
+ <PopoverContent label="More actions" className="w-[200px] p-2">
89
+ ```
90
+
91
+ Anything the panel sets no default for (`gap-*`, `flex-row`, margins) is a plain class and needs nothing.
92
+
93
+ A padding override from `style` may use the shorthand (`padding: 0`) — the defaults are longhands, and an inline shorthand still replaces them.
38
94
 
39
95
  ## Controlled
40
96
 
@@ -48,26 +104,24 @@ Uncontrolled by default. `onOpenChange` fires either way. Closing it from inside
48
104
 
49
105
  ## Placement (web)
50
106
 
51
- `PopoverContent` takes `side` (`'top' | 'bottom'`, default `'bottom'`), `align` (`'start' | 'center' | 'end'`, default `'center'`), `sideOffset`, `alignOffset`, `minWidth` and `maxWidth`. The surface flips to the other side when the named one does not fit and clamps into the viewport when neither does.
107
+ `PopoverContent` takes `side` (`'top' | 'bottom' | 'left' | 'right'`, default `'bottom'`), `align` (`'start' | 'center' | 'end'`, default `'center'`), `sideOffset` (default `8`, the panel's own `offset={8}`), `alignOffset`, `minWidth` and `maxWidth`. The surface flips to the other side when the named one does not fit and clamps into the viewport when neither does.
52
108
 
53
109
  A popover centres on its trigger by default, where a menu starts at its left edge — that is the one placement default the two families disagree on, and it matches shadcn.
54
110
 
55
- ## Shape
111
+ A numeric `maxWidth` prop replaces the viewport cap.
56
112
 
57
- shadcn's popover is `w-72 p-4`: a fixed 288px card with a 16px inset, not a shrink-wrap around its content. Bloom applies both, first in the style array, so a body that is a list of rows rather than prose overrides them from `style` — the same thing a shadcn call site says with `className="w-auto p-0"`:
113
+ ## Native
58
114
 
59
- ```tsx
60
- <PopoverContent label="Actions" style={{ width: 'auto', padding: 4 }}>
61
- <Item title="Profile" onPress={openProfile} />
62
- </PopoverContent>
63
- ```
115
+ The popover is a bottom sheet on native: a phone has no room to float a panel beside a control, and every Bloom overlay resolving to the same sheet is what makes the native surfaces feel like one system. The sheet is the chrome (its surface, corner and drag handle), so the placement props are ignored and only the body takes the panel geometry — the same 10px inset on the sides and bottom, below the handle's clearance — so the panel parts line up exactly as they do on web. `className`, `style` and `testID` land on that body.
64
116
 
65
- Rows have to reach the panel's edge to draw a full-width highlight, which is why the dialog header's overflow menu does this.
117
+ ## `asChild` and `disabled`
66
118
 
67
- On native these are ignored; the sheet is anchored to the screen.
119
+ `disabled` on an `asChild` trigger keeps the panel closed whatever element the caller passed. The guard lives in `floating/TriggerSlot`'s `cloneTrigger`, not in the child: a child that forwards `onPress` but has no notion of `disabled` would otherwise still open the panel. The browser is the weaker instrument here — a real `Pressable` child swallows its own press and hides a missing guard — which is why the `Base/Popover` `AsChildDisabled` story carries a forwarding control, gated by `scripts/verify-trigger-disabled.mjs` and `src/__tests__/PopoverTriggerDisabled.test.tsx`.
68
120
 
69
121
  ## Dismissal
70
122
 
71
123
  Press outside or hit Escape. `dismissible={false}` turns both off, for a popover the user has to answer.
72
124
 
73
125
  Escape stops at the innermost open surface, so a popover opened from inside a dialog closes the popover and leaves the dialog up.
126
+
127
+ The outside press is caught by a transparent backdrop (it closes the popover and goes no further). Popovers are non-modal — a press outside would otherwise also reach the page — but Bloom keeps the caught press so a popover opened inside a dialog cannot dismiss the dialog with the same click.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: UserHoverCard
3
- description: A presentational profile card. Bloom holds no follow logic — the consumer passes the button in.
3
+ description: A profile card. Show it with HoverCard; Bloom holds no follow logic — the consumer passes the button in.
4
4
  order: 23
5
5
  ---
6
6
 
@@ -29,6 +29,30 @@ import { FollowButton } from '@oxy.so/services';
29
29
  />
30
30
  ```
31
31
 
32
+ ## Showing it
33
+
34
+ `UserHoverCard` draws the person and nothing else — it does not decide **when**
35
+ or **where** it appears. That is [`HoverCard`](/docs/bloom/main/hover-card)'s
36
+ job: hover or keyboard focus on web, long press on native, anchored to the
37
+ trigger and kept open while the pointer travels onto it.
38
+
39
+ ```tsx
40
+ import { HoverCard, HoverCardContent, HoverCardTrigger } from '@oxy.so/bloom/hover-card';
41
+
42
+ <HoverCard>
43
+ <HoverCardTrigger asChild>
44
+ <Link href={`/@${user.username}`}>@{user.username}</Link>
45
+ </HoverCardTrigger>
46
+ <HoverCardContent label={user.name.displayName}>
47
+ <UserHoverCard displayName={user.name.displayName} username={user.username} />
48
+ </HoverCardContent>
49
+ </HoverCard>
50
+ ```
51
+
52
+ Inside `HoverCardContent` the card draws no surface of its own — the panel's
53
+ border, background, shadow and inset are the card's, and the entrance plays
54
+ once. Rendered anywhere else it wears the same surface itself.
55
+
32
56
  ## `footer` is where your own content goes
33
57
 
34
58
  The card renders what every Oxy app agrees a person is — photo, name, handle,
@@ -122,14 +146,10 @@ position.
122
146
 
123
147
  ### Inside a hover card, everything you put here stays pressable
124
148
 
125
- `AvatarGroup`'s `hoverCard` floats this card under a bridge that keeps it open
126
- while the cursor is over it. That bridge is a `View` with
127
- `onPointerEnter`/`onPointerLeave`, **not** a `Pressable`, and it has to be: a
128
- `Pressable` bridge dismisses the card the moment the cursor reaches anything
129
- pressable inside it. react-native-web's `Pressable` dispatches a bubbling
130
- `react-gui:hover:lock` event, and an ancestor `Pressable` that is currently
131
- hovered ends its own hover for any lock it did not send. If you build your own
132
- hover trigger around this card, do the same.
149
+ `HoverCard` (and `AvatarGroup`'s `hoverCard`) keep the card open with a pointer
150
+ bridge that is deliberately not a `Pressable`, so the cursor can reach a button
151
+ in `action` or `footer` without the card closing. Why, measured:
152
+ [HoverCard](/docs/bloom/main/hover-card).
133
153
 
134
154
  ## Bloom holds no follow state
135
155
 
@@ -5,35 +5,28 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.AvatarGroup = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _reactNative = require("react-native");
9
- var _index = require("../overlay/index.js");
10
- var _indexWeb = require("../portal/index.web.js");
11
- var _webViewStyle = require("../styles/web-view-style.js");
12
- var _index2 = require("../user-hover-card/index.js");
8
+ var _useAnchorRect = require("../floating/use-anchor-rect.js");
9
+ var _constants = require("../hover-card/constants.js");
10
+ var _HoverCardPanel = require("../hover-card/HoverCardPanel.js");
11
+ var _useHoverIntent = require("../hover-card/use-hover-intent.js");
12
+ var _index = require("../user-hover-card/index.js");
13
13
  var _AvatarGroupBase = require("./AvatarGroupBase.js");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
- // `../portal/index.web`, not `../portal`: export conditions do not apply to
17
- // relative specifiers, so the bare name resolves to the NATIVE barrel in any
18
- // bundler that does not add web extensions to its resolution order. The native
19
- // Portal renders into a `PortalOutlet`, which a web app never mounts — both are
20
- // no-ops in the web fork — so the hover card would render nothing at all.
21
- // `Dialog.web.tsx` and `BottomSheet.web.tsx` already name it this way.
22
-
23
- /** Delay before dismissing the card so the cursor can travel into it. */
24
- const CLOSE_DELAY_MS = 120;
25
- /** Gap between the anchored avatar and the floating card. */
26
- const CARD_GAP = 8;
27
- // The card's own width, never a second copy of it: this file CENTRES the card
28
- // on its anchor, so a private constant would mis-place it the first time
29
- // either number moved, and nothing would error.
30
- const CARD_WIDTH = _index2.USER_HOVER_CARD_WIDTH;
31
16
  /**
32
17
  * Web `AvatarGroup`. Identical layout rendering to native (stack / row /
33
18
  * cluster) via {@link AvatarGroupBase}, plus an optional hover card: when
34
19
  * `hoverCard` is enabled, hovering an avatar reveals a {@link UserHoverCard}
35
- * positioned beneath it. The card receives the per-item `renderItemAction` slot
36
- * so the app can drop its SDK FollowButton inside.
20
+ * beneath it. The card receives the per-item `renderItemAction` slot so the app
21
+ * can drop its SDK FollowButton inside.
22
+ *
23
+ * The card floats in `HoverCardPanel`, the same surface `HoverCardContent`
24
+ * renders — placement (flip and clamp), motion, Escape and outside-press
25
+ * dismissal, and the pointer bridge all come from there. What stays here is the
26
+ * one thing a single `HoverCard` cannot do: ONE card serving every face, which
27
+ * re-anchors as the cursor moves along the pile instead of closing and
28
+ * reopening per avatar. It opens with no delay for the same reason — the
29
+ * pointer is already on a row of people, and the card is what it came for.
37
30
  */
38
31
  const AvatarGroupWebComponent = props => {
39
32
  const {
@@ -41,88 +34,65 @@ const AvatarGroupWebComponent = props => {
41
34
  renderItemAction,
42
35
  onPressItem
43
36
  } = props;
44
- const [hover, setHover] = (0, _react.useState)(null);
37
+ const [target, setTarget] = (0, _react.useState)(null);
38
+ const [open, setOpen] = (0, _react.useState)(false);
45
39
  const cellRefs = (0, _react.useRef)(new Map());
46
- const closeTimer = (0, _react.useRef)(null);
47
- const cancelClose = (0, _react.useCallback)(() => {
48
- if (closeTimer.current) {
49
- clearTimeout(closeTimer.current);
50
- closeTimer.current = null;
51
- }
52
- }, []);
53
- const scheduleClose = (0, _react.useCallback)(() => {
54
- cancelClose();
55
- closeTimer.current = setTimeout(() => setHover(null), CLOSE_DELAY_MS);
56
- }, [cancelClose]);
40
+ const {
41
+ show,
42
+ hide,
43
+ hold
44
+ } = (0, _useHoverIntent.useHoverIntent)(open, setOpen, 0, _constants.HOVER_CARD_CLOSE_DELAY);
57
45
  const registerCellRef = (0, _react.useCallback)((index, node) => {
58
46
  if (node) cellRefs.current.set(index, node);else cellRefs.current.delete(index);
59
47
  }, []);
60
48
  const handleHoverIn = (0, _react.useCallback)((item, index) => {
61
- cancelClose();
62
- const node = cellRefs.current.get(index);
63
- if (!node) return;
64
- node.measureInWindow((x, y, width, height) => {
65
- // Center the card under the avatar, clamped to the viewport.
66
- const viewportWidth = typeof window !== 'undefined' ? window.innerWidth : CARD_WIDTH;
67
- let left = x + width / 2 - CARD_WIDTH / 2;
68
- left = Math.max(CARD_GAP, Math.min(left, viewportWidth - CARD_WIDTH - CARD_GAP));
69
- setHover({
70
- item,
71
- index,
72
- top: y + height + CARD_GAP,
73
- left
74
- });
49
+ const anchor = (0, _useAnchorRect.rectOf)(cellRefs.current.get(index) ?? null);
50
+ if (!anchor) return;
51
+ setTarget({
52
+ item,
53
+ index,
54
+ anchor
75
55
  });
76
- }, [cancelClose]);
56
+ show();
57
+ }, [show]);
58
+ const dismiss = (0, _react.useCallback)(() => {
59
+ hold();
60
+ setOpen(false);
61
+ }, [hold]);
77
62
  const hoverHandlers = (0, _react.useMemo)(() => {
78
63
  if (!hoverCard) return undefined;
79
64
  return {
80
65
  onHoverIn: handleHoverIn,
81
- onHoverOut: scheduleClose,
66
+ onHoverOut: hide,
82
67
  registerCellRef
83
68
  };
84
- }, [hoverCard, handleHoverIn, scheduleClose, registerCellRef]);
69
+ }, [hoverCard, handleHoverIn, hide, registerCellRef]);
85
70
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
86
71
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AvatarGroupBase.AvatarGroupBase, {
87
72
  ...props,
88
73
  hoverHandlers: hoverHandlers
89
- }), hoverCard && hover && /*#__PURE__*/(0, _jsxRuntime.jsx)(_indexWeb.Portal, {
90
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.OverlayRoot, {
91
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
92
- onPointerEnter: cancelClose,
93
- onPointerLeave: scheduleClose,
94
- pointerEvents: "auto",
95
- style: [webStyles.floating, {
96
- top: hover.top,
97
- left: hover.left,
98
- width: CARD_WIDTH
99
- }],
100
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.UserHoverCard, {
101
- avatar: hover.item.uri ?? undefined
102
- // `UserHoverCardProps.displayName` is contractually an
103
- // already-resolved string, and resolving it is precisely this
104
- // component's job. `''` is the honest terminal case: no field on
105
- // the item named the person at all, so there is nothing to show.
106
- ,
107
- displayName: (0, _AvatarGroupBase.getItemName)(hover.item) ?? '',
108
- username: hover.item.username,
109
- onPressProfile: onPressItem ? () => onPressItem(hover.item, hover.index) : undefined,
110
- action: renderItemAction?.(hover.item, hover.index),
111
- style: webStyles.card
112
- })
113
- })
74
+ }), hoverCard && target ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_HoverCardPanel.HoverCardPanel, {
75
+ open: open,
76
+ anchor: open ? target.anchor : null,
77
+ onDismiss: dismiss,
78
+ onPointerEnter: hold,
79
+ onPointerLeave: hide,
80
+ label: (0, _AvatarGroupBase.getItemName)(target.item) ?? 'Profile',
81
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.UserHoverCard, {
82
+ avatar: target.item.uri ?? undefined
83
+ // `UserHoverCardProps.displayName` is contractually an
84
+ // already-resolved string, and resolving it is precisely this
85
+ // component's job. `''` is the honest terminal case: no field on the
86
+ // item named the person at all, so there is nothing to show.
87
+ ,
88
+ displayName: (0, _AvatarGroupBase.getItemName)(target.item) ?? '',
89
+ username: target.item.username,
90
+ onPressProfile: onPressItem ? () => onPressItem(target.item, target.index) : undefined,
91
+ action: renderItemAction?.(target.item, target.index)
114
92
  })
115
- })]
93
+ }) : null]
116
94
  });
117
95
  };
118
- const webStyles = _reactNative.StyleSheet.create({
119
- floating: {
120
- position: _webViewStyle.WEB_POSITION_FIXED
121
- },
122
- card: {
123
- width: CARD_WIDTH
124
- }
125
- });
126
96
  const AvatarGroup = exports.AvatarGroup = /*#__PURE__*/(0, _react.memo)(AvatarGroupWebComponent);
127
97
  AvatarGroup.displayName = 'AvatarGroup';
128
98
  //# sourceMappingURL=AvatarGroup.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_indexWeb","_webViewStyle","_index2","_AvatarGroupBase","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CLOSE_DELAY_MS","CARD_GAP","CARD_WIDTH","USER_HOVER_CARD_WIDTH","AvatarGroupWebComponent","props","hoverCard","renderItemAction","onPressItem","hover","setHover","useState","cellRefs","useRef","Map","closeTimer","cancelClose","useCallback","current","clearTimeout","scheduleClose","setTimeout","registerCellRef","index","node","delete","handleHoverIn","item","measureInWindow","x","y","width","height","viewportWidth","window","innerWidth","left","Math","max","min","top","hoverHandlers","useMemo","undefined","onHoverIn","onHoverOut","jsxs","Fragment","children","jsx","AvatarGroupBase","Portal","OverlayRoot","View","onPointerEnter","onPointerLeave","pointerEvents","style","webStyles","floating","UserHoverCard","avatar","uri","displayName","getItemName","username","onPressProfile","action","card","StyleSheet","create","position","WEB_POSITION_FIXED","AvatarGroup","exports","memo"],"sourceRoot":"../../../src","sources":["avatar-group/AvatarGroup.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;A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IACJrC,KAAK,EAAE7B;EACT;AACF,CAAC,CAAC;AAEK,MAAMuE,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI,EAACvE,uBAAuB,CAAC;AACxDqE,WAAW,CAACV,WAAW,GAAG,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_useAnchorRect","_constants","_HoverCardPanel","_useHoverIntent","_index","_AvatarGroupBase","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AvatarGroupWebComponent","props","hoverCard","renderItemAction","onPressItem","target","setTarget","useState","open","setOpen","cellRefs","useRef","Map","show","hide","hold","useHoverIntent","HOVER_CARD_CLOSE_DELAY","registerCellRef","useCallback","index","node","current","delete","handleHoverIn","item","anchor","rectOf","dismiss","hoverHandlers","useMemo","undefined","onHoverIn","onHoverOut","jsxs","Fragment","children","jsx","AvatarGroupBase","HoverCardPanel","onDismiss","onPointerEnter","onPointerLeave","label","getItemName","UserHoverCard","avatar","uri","displayName","username","onPressProfile","action","AvatarGroup","exports","memo"],"sourceRoot":"../../../src","sources":["avatar-group/AvatarGroup.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAI2B,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IA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182
  if (_shared.IS_WEB) (0, _adoptStyleSheet.adoptStyleSheet)(CSS_ID, FEED_CSS);
183
183
  }, []);
184
184
 
185
- // Web: the panel chrome, inline so it wins over the popover's default
186
- // card. Native: the sheet is the chrome.
185
+ // Web: the popover's own panel IS this menu's chrome (266 wide, `rounded-2xl`,
186
+ // border, surface, `p-2.5`, `shadow-dropdown`); only the height bound is the
187
+ // menu's. Native: the sheet is the chrome.
187
188
  const panelStyle = _reactNative.Platform.select({
188
189
  web: {
189
190
  width: PANEL_WIDTH,
190
191
  maxWidth: viewport.width - 32,
191
- maxHeight: viewport.height - 32,
192
- overflow: 'hidden',
193
- borderRadius: 16,
194
- borderWidth: 1,
195
- borderColor: palette.panelBorder,
196
- backgroundColor: palette.panel,
197
- boxShadow: palette.shadowDropdown,
198
- paddingTop: 10,
199
- paddingBottom: 10,
200
- paddingLeft: 10,
201
- paddingRight: 10
192
+ maxHeight: viewport.height - 32
202
193
  },
203
194
  default: undefined
204
195
  });