@oxy.so/bloom 4.5.0 → 4.6.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 (614) hide show
  1. package/README.md +1 -1
  2. package/docs/adoption-matrix.mdx +12 -12
  3. package/docs/code.mdx +12 -0
  4. package/docs/context-menu.mdx +2 -0
  5. package/docs/dropdown-menu.mdx +21 -0
  6. package/docs/icons.mdx +2 -2
  7. package/docs/menubar.mdx +6 -2
  8. package/docs/popover.mdx +4 -2
  9. package/docs/segmented-control.mdx +12 -0
  10. package/docs/select.mdx +19 -0
  11. package/docs/tabs.mdx +12 -0
  12. package/lib/commonjs/agent-chat/index.web.js.map +1 -1
  13. package/lib/commonjs/ai-chat/index.web.js.map +1 -1
  14. package/lib/commonjs/alert-dialog/index.web.js +10 -1
  15. package/lib/commonjs/alert-dialog/index.web.js.map +1 -1
  16. package/lib/commonjs/avatar-group/index.web.js.map +1 -1
  17. package/lib/commonjs/bottom-sheet/index.web.js.map +1 -1
  18. package/lib/commonjs/code/index.js +13 -0
  19. package/lib/commonjs/code/index.js.map +1 -1
  20. package/lib/commonjs/command/index.web.js +5 -0
  21. package/lib/commonjs/command/index.web.js.map +1 -1
  22. package/lib/commonjs/composer-loader/ComposerLoader.web.js +9 -0
  23. package/lib/commonjs/composer-loader/ComposerLoader.web.js.map +1 -1
  24. package/lib/commonjs/composer-loader/index.web.js.map +1 -1
  25. package/lib/commonjs/composer-panel/index.web.js.map +1 -1
  26. package/lib/commonjs/connection-dots/index.web.js.map +1 -1
  27. package/lib/commonjs/connection-status/index.web.js.map +1 -1
  28. package/lib/commonjs/content-panel/index.web.js.map +1 -1
  29. package/lib/commonjs/context-menu/ContextMenu.web.js +22 -4
  30. package/lib/commonjs/context-menu/ContextMenu.web.js.map +1 -1
  31. package/lib/commonjs/context-menu/context.js.map +1 -1
  32. package/lib/commonjs/context-menu/index.web.js.map +1 -1
  33. package/lib/commonjs/dialog/Dialog.web.js +14 -0
  34. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  35. package/lib/commonjs/dialog/index.web.js.map +1 -1
  36. package/lib/commonjs/dropdown-menu/DropdownMenu.web.js +22 -2
  37. package/lib/commonjs/dropdown-menu/DropdownMenu.web.js.map +1 -1
  38. package/lib/commonjs/dropdown-menu/index.web.js.map +1 -1
  39. package/lib/commonjs/floating/FloatingPanel.js +42 -33
  40. package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
  41. package/lib/commonjs/floating/escape-stack.js +90 -0
  42. package/lib/commonjs/floating/escape-stack.js.map +1 -0
  43. package/lib/commonjs/floating/menu-keyboard.js +238 -0
  44. package/lib/commonjs/floating/menu-keyboard.js.map +1 -0
  45. package/lib/commonjs/floating/menu-sub-flyout.js +28 -16
  46. package/lib/commonjs/floating/menu-sub-flyout.js.map +1 -1
  47. package/lib/commonjs/fonts/index.web.js.map +1 -1
  48. package/lib/commonjs/frosted-icon-button/FrostedIconButton.web.js +10 -0
  49. package/lib/commonjs/frosted-icon-button/FrostedIconButton.web.js.map +1 -1
  50. package/lib/commonjs/frosted-icon-button/index.web.js.map +1 -1
  51. package/lib/commonjs/hooks/roving-focus.js +192 -0
  52. package/lib/commonjs/hooks/roving-focus.js.map +1 -0
  53. package/lib/commonjs/hover-card/index.web.js.map +1 -1
  54. package/lib/commonjs/icons/remix/RiBookReadLine.js +12 -0
  55. package/lib/commonjs/icons/remix/RiBookReadLine.js.map +1 -0
  56. package/lib/commonjs/icons/remix/RiBugLine.js +12 -0
  57. package/lib/commonjs/icons/remix/RiBugLine.js.map +1 -0
  58. package/lib/commonjs/icons/remix/RiChat1Line.js +12 -0
  59. package/lib/commonjs/icons/remix/RiChat1Line.js.map +1 -0
  60. package/lib/commonjs/icons/remix/RiCloudLine.js +12 -0
  61. package/lib/commonjs/icons/remix/RiCloudLine.js.map +1 -0
  62. package/lib/commonjs/icons/remix/RiCodeLine.js +12 -0
  63. package/lib/commonjs/icons/remix/RiCodeLine.js.map +1 -0
  64. package/lib/commonjs/icons/remix/RiCpuLine.js +12 -0
  65. package/lib/commonjs/icons/remix/RiCpuLine.js.map +1 -0
  66. package/lib/commonjs/icons/remix/RiFloodLine.js +12 -0
  67. package/lib/commonjs/icons/remix/RiFloodLine.js.map +1 -0
  68. package/lib/commonjs/icons/remix/RiLockUnlockLine.js +12 -0
  69. package/lib/commonjs/icons/remix/RiLockUnlockLine.js.map +1 -0
  70. package/lib/commonjs/icons/remix/RiMoneyDollarCircleLine.js +12 -0
  71. package/lib/commonjs/icons/remix/RiMoneyDollarCircleLine.js.map +1 -0
  72. package/lib/commonjs/icons/remix/RiPlayCircleLine.js +12 -0
  73. package/lib/commonjs/icons/remix/RiPlayCircleLine.js.map +1 -0
  74. package/lib/commonjs/icons/remix/RiRocket2Line.js +12 -0
  75. package/lib/commonjs/icons/remix/RiRocket2Line.js.map +1 -0
  76. package/lib/commonjs/icons/remix/RiServerLine.js +12 -0
  77. package/lib/commonjs/icons/remix/RiServerLine.js.map +1 -0
  78. package/lib/commonjs/icons/remix/RiShareBoxLine.js +12 -0
  79. package/lib/commonjs/icons/remix/RiShareBoxLine.js.map +1 -0
  80. package/lib/commonjs/icons/remix/RiTv2Line.js +12 -0
  81. package/lib/commonjs/icons/remix/RiTv2Line.js.map +1 -0
  82. package/lib/commonjs/icons/remix/index.js +98 -0
  83. package/lib/commonjs/icons/remix/index.js.map +1 -1
  84. package/lib/commonjs/list/index.web.js.map +1 -1
  85. package/lib/commonjs/loading/Loading.js +21 -157
  86. package/lib/commonjs/loading/Loading.js.map +1 -1
  87. package/lib/commonjs/loading/Loading.web.js +23 -157
  88. package/lib/commonjs/loading/Loading.web.js.map +1 -1
  89. package/lib/commonjs/loading/LoadingBase.js +202 -0
  90. package/lib/commonjs/loading/LoadingBase.js.map +1 -0
  91. package/lib/commonjs/loading/index.web.js.map +1 -1
  92. package/lib/commonjs/media-flight/index.web.js.map +1 -1
  93. package/lib/commonjs/menubar/Menubar.js +31 -123
  94. package/lib/commonjs/menubar/Menubar.js.map +1 -1
  95. package/lib/commonjs/menubar/Menubar.web.js +33 -114
  96. package/lib/commonjs/menubar/Menubar.web.js.map +1 -1
  97. package/lib/commonjs/menubar/MenubarBase.js +154 -0
  98. package/lib/commonjs/menubar/MenubarBase.js.map +1 -0
  99. package/lib/commonjs/menubar/index.web.js.map +1 -1
  100. package/lib/commonjs/popover/index.web.js.map +1 -1
  101. package/lib/commonjs/popover/parts.js +69 -11
  102. package/lib/commonjs/popover/parts.js.map +1 -1
  103. package/lib/commonjs/popover/surface.js +39 -13
  104. package/lib/commonjs/popover/surface.js.map +1 -1
  105. package/lib/commonjs/portal/index.web.js.map +1 -1
  106. package/lib/commonjs/progressive-blur/index.web.js.map +1 -1
  107. package/lib/commonjs/scroll/index.web.js.map +1 -1
  108. package/lib/commonjs/segmented-control/SegmentedControl.js +36 -1
  109. package/lib/commonjs/segmented-control/SegmentedControl.js.map +1 -1
  110. package/lib/commonjs/select/Select.js +6 -81
  111. package/lib/commonjs/select/Select.js.map +1 -1
  112. package/lib/commonjs/select/Select.web.js +147 -85
  113. package/lib/commonjs/select/Select.web.js.map +1 -1
  114. package/lib/commonjs/select/index.js +4 -4
  115. package/lib/commonjs/select/index.js.map +1 -1
  116. package/lib/commonjs/select/index.web.js +4 -4
  117. package/lib/commonjs/select/index.web.js.map +1 -1
  118. package/lib/commonjs/select/shared.js +110 -5
  119. package/lib/commonjs/select/shared.js.map +1 -1
  120. package/lib/commonjs/sidebar/SidebarTeamMenu.js +1 -1
  121. package/lib/commonjs/sidebar/SidebarTeamMenu.js.map +1 -1
  122. package/lib/commonjs/sidebar/SidebarUserMenu.js +1 -1
  123. package/lib/commonjs/sidebar/SidebarUserMenu.js.map +1 -1
  124. package/lib/commonjs/sidebar/parts.js +9 -9
  125. package/lib/commonjs/sidebar/parts.js.map +1 -1
  126. package/lib/commonjs/surfaces/SurfaceHost.js +6 -0
  127. package/lib/commonjs/surfaces/SurfaceHost.js.map +1 -1
  128. package/lib/commonjs/surfaces/index.web.js +14 -4
  129. package/lib/commonjs/surfaces/index.web.js.map +1 -1
  130. package/lib/commonjs/tab-bar/index.web.js +13 -10
  131. package/lib/commonjs/tab-bar/index.web.js.map +1 -1
  132. package/lib/commonjs/tabs/Tabs.js +49 -2
  133. package/lib/commonjs/tabs/Tabs.js.map +1 -1
  134. package/lib/commonjs/theme/color-scope/index.web.js.map +1 -1
  135. package/lib/commonjs/theme/seed-scope/index.web.js.map +1 -1
  136. package/lib/commonjs/tooltip/index.web.js.map +1 -1
  137. package/lib/module/agent-chat/index.web.js +5 -3
  138. package/lib/module/agent-chat/index.web.js.map +1 -1
  139. package/lib/module/ai-chat/index.web.js +5 -2
  140. package/lib/module/ai-chat/index.web.js.map +1 -1
  141. package/lib/module/alert-dialog/index.web.js +10 -1
  142. package/lib/module/alert-dialog/index.web.js.map +1 -1
  143. package/lib/module/avatar-group/index.web.js +5 -0
  144. package/lib/module/avatar-group/index.web.js.map +1 -1
  145. package/lib/module/bottom-sheet/index.web.js +5 -0
  146. package/lib/module/bottom-sheet/index.web.js.map +1 -1
  147. package/lib/module/code/index.js +1 -0
  148. package/lib/module/code/index.js.map +1 -1
  149. package/lib/module/command/index.web.js +5 -0
  150. package/lib/module/command/index.web.js.map +1 -1
  151. package/lib/module/composer-loader/ComposerLoader.web.js +8 -0
  152. package/lib/module/composer-loader/ComposerLoader.web.js.map +1 -1
  153. package/lib/module/composer-loader/index.web.js +5 -2
  154. package/lib/module/composer-loader/index.web.js.map +1 -1
  155. package/lib/module/composer-panel/index.web.js +5 -3
  156. package/lib/module/composer-panel/index.web.js.map +1 -1
  157. package/lib/module/connection-dots/index.web.js +5 -0
  158. package/lib/module/connection-dots/index.web.js.map +1 -1
  159. package/lib/module/connection-status/index.web.js +5 -0
  160. package/lib/module/connection-status/index.web.js.map +1 -1
  161. package/lib/module/content-panel/index.web.js +5 -0
  162. package/lib/module/content-panel/index.web.js.map +1 -1
  163. package/lib/module/context-menu/ContextMenu.web.js +22 -4
  164. package/lib/module/context-menu/ContextMenu.web.js.map +1 -1
  165. package/lib/module/context-menu/context.js.map +1 -1
  166. package/lib/module/context-menu/index.web.js +5 -0
  167. package/lib/module/context-menu/index.web.js.map +1 -1
  168. package/lib/module/dialog/Dialog.web.js +13 -0
  169. package/lib/module/dialog/Dialog.web.js.map +1 -1
  170. package/lib/module/dialog/index.web.js +7 -11
  171. package/lib/module/dialog/index.web.js.map +1 -1
  172. package/lib/module/dropdown-menu/DropdownMenu.web.js +23 -3
  173. package/lib/module/dropdown-menu/DropdownMenu.web.js.map +1 -1
  174. package/lib/module/dropdown-menu/index.web.js +5 -0
  175. package/lib/module/dropdown-menu/index.web.js.map +1 -1
  176. package/lib/module/floating/FloatingPanel.js +42 -33
  177. package/lib/module/floating/FloatingPanel.js.map +1 -1
  178. package/lib/module/floating/escape-stack.js +85 -0
  179. package/lib/module/floating/escape-stack.js.map +1 -0
  180. package/lib/module/floating/menu-keyboard.js +227 -0
  181. package/lib/module/floating/menu-keyboard.js.map +1 -0
  182. package/lib/module/floating/menu-sub-flyout.js +28 -16
  183. package/lib/module/floating/menu-sub-flyout.js.map +1 -1
  184. package/lib/module/fonts/index.web.js +5 -20
  185. package/lib/module/fonts/index.web.js.map +1 -1
  186. package/lib/module/frosted-icon-button/FrostedIconButton.web.js +9 -0
  187. package/lib/module/frosted-icon-button/FrostedIconButton.web.js.map +1 -1
  188. package/lib/module/frosted-icon-button/index.web.js +5 -7
  189. package/lib/module/frosted-icon-button/index.web.js.map +1 -1
  190. package/lib/module/hooks/roving-focus.js +181 -0
  191. package/lib/module/hooks/roving-focus.js.map +1 -0
  192. package/lib/module/hover-card/index.web.js +5 -0
  193. package/lib/module/hover-card/index.web.js.map +1 -1
  194. package/lib/module/icons/remix/RiBookReadLine.js +9 -0
  195. package/lib/module/icons/remix/RiBookReadLine.js.map +1 -0
  196. package/lib/module/icons/remix/RiBugLine.js +9 -0
  197. package/lib/module/icons/remix/RiBugLine.js.map +1 -0
  198. package/lib/module/icons/remix/RiChat1Line.js +9 -0
  199. package/lib/module/icons/remix/RiChat1Line.js.map +1 -0
  200. package/lib/module/icons/remix/RiCloudLine.js +9 -0
  201. package/lib/module/icons/remix/RiCloudLine.js.map +1 -0
  202. package/lib/module/icons/remix/RiCodeLine.js +9 -0
  203. package/lib/module/icons/remix/RiCodeLine.js.map +1 -0
  204. package/lib/module/icons/remix/RiCpuLine.js +9 -0
  205. package/lib/module/icons/remix/RiCpuLine.js.map +1 -0
  206. package/lib/module/icons/remix/RiFloodLine.js +9 -0
  207. package/lib/module/icons/remix/RiFloodLine.js.map +1 -0
  208. package/lib/module/icons/remix/RiLockUnlockLine.js +9 -0
  209. package/lib/module/icons/remix/RiLockUnlockLine.js.map +1 -0
  210. package/lib/module/icons/remix/RiMoneyDollarCircleLine.js +9 -0
  211. package/lib/module/icons/remix/RiMoneyDollarCircleLine.js.map +1 -0
  212. package/lib/module/icons/remix/RiPlayCircleLine.js +9 -0
  213. package/lib/module/icons/remix/RiPlayCircleLine.js.map +1 -0
  214. package/lib/module/icons/remix/RiRocket2Line.js +9 -0
  215. package/lib/module/icons/remix/RiRocket2Line.js.map +1 -0
  216. package/lib/module/icons/remix/RiServerLine.js +9 -0
  217. package/lib/module/icons/remix/RiServerLine.js.map +1 -0
  218. package/lib/module/icons/remix/RiShareBoxLine.js +9 -0
  219. package/lib/module/icons/remix/RiShareBoxLine.js.map +1 -0
  220. package/lib/module/icons/remix/RiTv2Line.js +9 -0
  221. package/lib/module/icons/remix/RiTv2Line.js.map +1 -0
  222. package/lib/module/icons/remix/index.js +14 -0
  223. package/lib/module/icons/remix/index.js.map +1 -1
  224. package/lib/module/list/index.web.js +5 -0
  225. package/lib/module/list/index.web.js.map +1 -1
  226. package/lib/module/loading/Loading.js +17 -155
  227. package/lib/module/loading/Loading.js.map +1 -1
  228. package/lib/module/loading/Loading.web.js +19 -155
  229. package/lib/module/loading/Loading.web.js.map +1 -1
  230. package/lib/module/loading/LoadingBase.js +194 -0
  231. package/lib/module/loading/LoadingBase.js.map +1 -0
  232. package/lib/module/loading/index.web.js +5 -13
  233. package/lib/module/loading/index.web.js.map +1 -1
  234. package/lib/module/media-flight/index.web.js +5 -9
  235. package/lib/module/media-flight/index.web.js.map +1 -1
  236. package/lib/module/menubar/Menubar.js +15 -122
  237. package/lib/module/menubar/Menubar.js.map +1 -1
  238. package/lib/module/menubar/Menubar.web.js +18 -114
  239. package/lib/module/menubar/Menubar.web.js.map +1 -1
  240. package/lib/module/menubar/MenubarBase.js +146 -0
  241. package/lib/module/menubar/MenubarBase.js.map +1 -0
  242. package/lib/module/menubar/index.web.js +5 -0
  243. package/lib/module/menubar/index.web.js.map +1 -1
  244. package/lib/module/motion/index.web.js +5 -5
  245. package/lib/module/motion/index.web.js.map +1 -1
  246. package/lib/module/popover/index.web.js +5 -0
  247. package/lib/module/popover/index.web.js.map +1 -1
  248. package/lib/module/popover/parts.js +70 -12
  249. package/lib/module/popover/parts.js.map +1 -1
  250. package/lib/module/popover/surface.js +39 -13
  251. package/lib/module/popover/surface.js.map +1 -1
  252. package/lib/module/portal/index.web.js +6 -1
  253. package/lib/module/portal/index.web.js.map +1 -1
  254. package/lib/module/progressive-blur/index.web.js +5 -0
  255. package/lib/module/progressive-blur/index.web.js.map +1 -1
  256. package/lib/module/scroll/index.web.js +5 -0
  257. package/lib/module/scroll/index.web.js.map +1 -1
  258. package/lib/module/segmented-control/SegmentedControl.js +36 -1
  259. package/lib/module/segmented-control/SegmentedControl.js.map +1 -1
  260. package/lib/module/select/Select.js +5 -77
  261. package/lib/module/select/Select.js.map +1 -1
  262. package/lib/module/select/Select.web.js +147 -82
  263. package/lib/module/select/Select.web.js.map +1 -1
  264. package/lib/module/select/index.js +2 -2
  265. package/lib/module/select/index.js.map +1 -1
  266. package/lib/module/select/index.web.js +7 -2
  267. package/lib/module/select/index.web.js.map +1 -1
  268. package/lib/module/select/shared.js +106 -6
  269. package/lib/module/select/shared.js.map +1 -1
  270. package/lib/module/sidebar/SidebarTeamMenu.js +2 -2
  271. package/lib/module/sidebar/SidebarTeamMenu.js.map +1 -1
  272. package/lib/module/sidebar/SidebarUserMenu.js +2 -2
  273. package/lib/module/sidebar/SidebarUserMenu.js.map +1 -1
  274. package/lib/module/sidebar/parts.js +8 -8
  275. package/lib/module/sidebar/parts.js.map +1 -1
  276. package/lib/module/surfaces/SurfaceHost.js +6 -0
  277. package/lib/module/surfaces/SurfaceHost.js.map +1 -1
  278. package/lib/module/surfaces/index.web.js +14 -4
  279. package/lib/module/surfaces/index.web.js.map +1 -1
  280. package/lib/module/tab-bar/index.web.js +13 -10
  281. package/lib/module/tab-bar/index.web.js.map +1 -1
  282. package/lib/module/tabs/Tabs.js +49 -2
  283. package/lib/module/tabs/Tabs.js.map +1 -1
  284. package/lib/module/theme/color-scope/index.web.js +5 -0
  285. package/lib/module/theme/color-scope/index.web.js.map +1 -1
  286. package/lib/module/theme/seed-scope/index.web.js +5 -0
  287. package/lib/module/theme/seed-scope/index.web.js.map +1 -1
  288. package/lib/module/tooltip/index.web.js +5 -0
  289. package/lib/module/tooltip/index.web.js.map +1 -1
  290. package/lib/typescript/commonjs/agent-chat/index.web.d.ts.map +1 -1
  291. package/lib/typescript/commonjs/ai-chat/index.web.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/alert-dialog/index.web.d.ts +5 -1
  293. package/lib/typescript/commonjs/alert-dialog/index.web.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/avatar-group/index.web.d.ts.map +1 -1
  295. package/lib/typescript/commonjs/bottom-sheet/index.web.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/code/index.d.ts +2 -0
  297. package/lib/typescript/commonjs/code/index.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/command/index.web.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/composer-loader/ComposerLoader.web.d.ts +8 -0
  300. package/lib/typescript/commonjs/composer-loader/ComposerLoader.web.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/composer-loader/index.web.d.ts.map +1 -1
  302. package/lib/typescript/commonjs/composer-panel/index.web.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/connection-dots/index.web.d.ts.map +1 -1
  304. package/lib/typescript/commonjs/connection-status/index.web.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/content-panel/index.web.d.ts.map +1 -1
  306. package/lib/typescript/commonjs/context-menu/ContextMenu.web.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/context-menu/context.d.ts +3 -0
  308. package/lib/typescript/commonjs/context-menu/context.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/context-menu/index.web.d.ts.map +1 -1
  310. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/dialog/index.web.d.ts +2 -1
  312. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/dropdown-menu/DropdownMenu.web.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/dropdown-menu/index.web.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/floating/FloatingPanel.d.ts +1 -1
  316. package/lib/typescript/commonjs/floating/FloatingPanel.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/floating/escape-stack.d.ts +55 -0
  318. package/lib/typescript/commonjs/floating/escape-stack.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/floating/menu-keyboard.d.ts +57 -0
  320. package/lib/typescript/commonjs/floating/menu-keyboard.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/floating/menu-sub-flyout.d.ts.map +1 -1
  322. package/lib/typescript/commonjs/floating/types.d.ts +11 -0
  323. package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
  324. package/lib/typescript/commonjs/fonts/index.web.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/frosted-icon-button/FrostedIconButton.web.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/frosted-icon-button/index.web.d.ts.map +1 -1
  327. package/lib/typescript/commonjs/hooks/roving-focus.d.ts +66 -0
  328. package/lib/typescript/commonjs/hooks/roving-focus.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/hover-card/index.web.d.ts.map +1 -1
  330. package/lib/typescript/commonjs/icons/remix/RiBookReadLine.d.ts +8 -0
  331. package/lib/typescript/commonjs/icons/remix/RiBookReadLine.d.ts.map +1 -0
  332. package/lib/typescript/commonjs/icons/remix/RiBugLine.d.ts +8 -0
  333. package/lib/typescript/commonjs/icons/remix/RiBugLine.d.ts.map +1 -0
  334. package/lib/typescript/commonjs/icons/remix/RiChat1Line.d.ts +8 -0
  335. package/lib/typescript/commonjs/icons/remix/RiChat1Line.d.ts.map +1 -0
  336. package/lib/typescript/commonjs/icons/remix/RiCloudLine.d.ts +8 -0
  337. package/lib/typescript/commonjs/icons/remix/RiCloudLine.d.ts.map +1 -0
  338. package/lib/typescript/commonjs/icons/remix/RiCodeLine.d.ts +8 -0
  339. package/lib/typescript/commonjs/icons/remix/RiCodeLine.d.ts.map +1 -0
  340. package/lib/typescript/commonjs/icons/remix/RiCpuLine.d.ts +8 -0
  341. package/lib/typescript/commonjs/icons/remix/RiCpuLine.d.ts.map +1 -0
  342. package/lib/typescript/commonjs/icons/remix/RiFloodLine.d.ts +8 -0
  343. package/lib/typescript/commonjs/icons/remix/RiFloodLine.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/icons/remix/RiLockUnlockLine.d.ts +8 -0
  345. package/lib/typescript/commonjs/icons/remix/RiLockUnlockLine.d.ts.map +1 -0
  346. package/lib/typescript/commonjs/icons/remix/RiMoneyDollarCircleLine.d.ts +8 -0
  347. package/lib/typescript/commonjs/icons/remix/RiMoneyDollarCircleLine.d.ts.map +1 -0
  348. package/lib/typescript/commonjs/icons/remix/RiPlayCircleLine.d.ts +8 -0
  349. package/lib/typescript/commonjs/icons/remix/RiPlayCircleLine.d.ts.map +1 -0
  350. package/lib/typescript/commonjs/icons/remix/RiRocket2Line.d.ts +8 -0
  351. package/lib/typescript/commonjs/icons/remix/RiRocket2Line.d.ts.map +1 -0
  352. package/lib/typescript/commonjs/icons/remix/RiServerLine.d.ts +8 -0
  353. package/lib/typescript/commonjs/icons/remix/RiServerLine.d.ts.map +1 -0
  354. package/lib/typescript/commonjs/icons/remix/RiShareBoxLine.d.ts +8 -0
  355. package/lib/typescript/commonjs/icons/remix/RiShareBoxLine.d.ts.map +1 -0
  356. package/lib/typescript/commonjs/icons/remix/RiTv2Line.d.ts +8 -0
  357. package/lib/typescript/commonjs/icons/remix/RiTv2Line.d.ts.map +1 -0
  358. package/lib/typescript/commonjs/icons/remix/index.d.ts +14 -0
  359. package/lib/typescript/commonjs/icons/remix/index.d.ts.map +1 -1
  360. package/lib/typescript/commonjs/list/index.web.d.ts.map +1 -1
  361. package/lib/typescript/commonjs/loading/Loading.d.ts +8 -2
  362. package/lib/typescript/commonjs/loading/Loading.d.ts.map +1 -1
  363. package/lib/typescript/commonjs/loading/Loading.web.d.ts +10 -2
  364. package/lib/typescript/commonjs/loading/Loading.web.d.ts.map +1 -1
  365. package/lib/typescript/commonjs/loading/LoadingBase.d.ts +64 -0
  366. package/lib/typescript/commonjs/loading/LoadingBase.d.ts.map +1 -0
  367. package/lib/typescript/commonjs/loading/index.web.d.ts.map +1 -1
  368. package/lib/typescript/commonjs/media-flight/index.web.d.ts +0 -9
  369. package/lib/typescript/commonjs/media-flight/index.web.d.ts.map +1 -1
  370. package/lib/typescript/commonjs/menubar/Menubar.d.ts +14 -9
  371. package/lib/typescript/commonjs/menubar/Menubar.d.ts.map +1 -1
  372. package/lib/typescript/commonjs/menubar/Menubar.web.d.ts +8 -6
  373. package/lib/typescript/commonjs/menubar/Menubar.web.d.ts.map +1 -1
  374. package/lib/typescript/commonjs/menubar/MenubarBase.d.ts +5 -0
  375. package/lib/typescript/commonjs/menubar/MenubarBase.d.ts.map +1 -0
  376. package/lib/typescript/commonjs/menubar/index.web.d.ts.map +1 -1
  377. package/lib/typescript/commonjs/motion/index.web.d.ts +0 -5
  378. package/lib/typescript/commonjs/motion/index.web.d.ts.map +1 -1
  379. package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
  380. package/lib/typescript/commonjs/popover/parts.d.ts.map +1 -1
  381. package/lib/typescript/commonjs/popover/surface.d.ts +15 -5
  382. package/lib/typescript/commonjs/popover/surface.d.ts.map +1 -1
  383. package/lib/typescript/commonjs/portal/index.web.d.ts +1 -1
  384. package/lib/typescript/commonjs/portal/index.web.d.ts.map +1 -1
  385. package/lib/typescript/commonjs/progressive-blur/index.web.d.ts.map +1 -1
  386. package/lib/typescript/commonjs/scroll/index.web.d.ts.map +1 -1
  387. package/lib/typescript/commonjs/segmented-control/SegmentedControl.d.ts.map +1 -1
  388. package/lib/typescript/commonjs/select/Select.d.ts +2 -4
  389. package/lib/typescript/commonjs/select/Select.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/select/Select.web.d.ts +2 -4
  391. package/lib/typescript/commonjs/select/Select.web.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/select/index.d.ts +2 -2
  393. package/lib/typescript/commonjs/select/index.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/select/index.web.d.ts +2 -2
  395. package/lib/typescript/commonjs/select/index.web.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/select/shared.d.ts +52 -5
  397. package/lib/typescript/commonjs/select/shared.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/select/types.d.ts +6 -0
  399. package/lib/typescript/commonjs/select/types.d.ts.map +1 -1
  400. package/lib/typescript/commonjs/sidebar/parts.d.ts +8 -2
  401. package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/surfaces/SurfaceHost.d.ts.map +1 -1
  403. package/lib/typescript/commonjs/surfaces/index.web.d.ts +9 -4
  404. package/lib/typescript/commonjs/surfaces/index.web.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/tab-bar/index.web.d.ts.map +1 -1
  406. package/lib/typescript/commonjs/tabs/Tabs.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/tabs/types.d.ts +6 -0
  408. package/lib/typescript/commonjs/tabs/types.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/theme/color-scope/index.web.d.ts.map +1 -1
  410. package/lib/typescript/commonjs/theme/seed-scope/index.web.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/tooltip/index.web.d.ts.map +1 -1
  412. package/lib/typescript/module/agent-chat/index.web.d.ts.map +1 -1
  413. package/lib/typescript/module/ai-chat/index.web.d.ts.map +1 -1
  414. package/lib/typescript/module/alert-dialog/index.web.d.ts +5 -1
  415. package/lib/typescript/module/alert-dialog/index.web.d.ts.map +1 -1
  416. package/lib/typescript/module/avatar-group/index.web.d.ts.map +1 -1
  417. package/lib/typescript/module/bottom-sheet/index.web.d.ts.map +1 -1
  418. package/lib/typescript/module/code/index.d.ts +2 -0
  419. package/lib/typescript/module/code/index.d.ts.map +1 -1
  420. package/lib/typescript/module/command/index.web.d.ts.map +1 -1
  421. package/lib/typescript/module/composer-loader/ComposerLoader.web.d.ts +8 -0
  422. package/lib/typescript/module/composer-loader/ComposerLoader.web.d.ts.map +1 -1
  423. package/lib/typescript/module/composer-loader/index.web.d.ts.map +1 -1
  424. package/lib/typescript/module/composer-panel/index.web.d.ts.map +1 -1
  425. package/lib/typescript/module/connection-dots/index.web.d.ts.map +1 -1
  426. package/lib/typescript/module/connection-status/index.web.d.ts.map +1 -1
  427. package/lib/typescript/module/content-panel/index.web.d.ts.map +1 -1
  428. package/lib/typescript/module/context-menu/ContextMenu.web.d.ts.map +1 -1
  429. package/lib/typescript/module/context-menu/context.d.ts +3 -0
  430. package/lib/typescript/module/context-menu/context.d.ts.map +1 -1
  431. package/lib/typescript/module/context-menu/index.web.d.ts.map +1 -1
  432. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  433. package/lib/typescript/module/dialog/index.web.d.ts +2 -1
  434. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  435. package/lib/typescript/module/dropdown-menu/DropdownMenu.web.d.ts.map +1 -1
  436. package/lib/typescript/module/dropdown-menu/index.web.d.ts.map +1 -1
  437. package/lib/typescript/module/floating/FloatingPanel.d.ts +1 -1
  438. package/lib/typescript/module/floating/FloatingPanel.d.ts.map +1 -1
  439. package/lib/typescript/module/floating/escape-stack.d.ts +55 -0
  440. package/lib/typescript/module/floating/escape-stack.d.ts.map +1 -0
  441. package/lib/typescript/module/floating/menu-keyboard.d.ts +57 -0
  442. package/lib/typescript/module/floating/menu-keyboard.d.ts.map +1 -0
  443. package/lib/typescript/module/floating/menu-sub-flyout.d.ts.map +1 -1
  444. package/lib/typescript/module/floating/types.d.ts +11 -0
  445. package/lib/typescript/module/floating/types.d.ts.map +1 -1
  446. package/lib/typescript/module/fonts/index.web.d.ts.map +1 -1
  447. package/lib/typescript/module/frosted-icon-button/FrostedIconButton.web.d.ts.map +1 -1
  448. package/lib/typescript/module/frosted-icon-button/index.web.d.ts.map +1 -1
  449. package/lib/typescript/module/hooks/roving-focus.d.ts +66 -0
  450. package/lib/typescript/module/hooks/roving-focus.d.ts.map +1 -0
  451. package/lib/typescript/module/hover-card/index.web.d.ts.map +1 -1
  452. package/lib/typescript/module/icons/remix/RiBookReadLine.d.ts +8 -0
  453. package/lib/typescript/module/icons/remix/RiBookReadLine.d.ts.map +1 -0
  454. package/lib/typescript/module/icons/remix/RiBugLine.d.ts +8 -0
  455. package/lib/typescript/module/icons/remix/RiBugLine.d.ts.map +1 -0
  456. package/lib/typescript/module/icons/remix/RiChat1Line.d.ts +8 -0
  457. package/lib/typescript/module/icons/remix/RiChat1Line.d.ts.map +1 -0
  458. package/lib/typescript/module/icons/remix/RiCloudLine.d.ts +8 -0
  459. package/lib/typescript/module/icons/remix/RiCloudLine.d.ts.map +1 -0
  460. package/lib/typescript/module/icons/remix/RiCodeLine.d.ts +8 -0
  461. package/lib/typescript/module/icons/remix/RiCodeLine.d.ts.map +1 -0
  462. package/lib/typescript/module/icons/remix/RiCpuLine.d.ts +8 -0
  463. package/lib/typescript/module/icons/remix/RiCpuLine.d.ts.map +1 -0
  464. package/lib/typescript/module/icons/remix/RiFloodLine.d.ts +8 -0
  465. package/lib/typescript/module/icons/remix/RiFloodLine.d.ts.map +1 -0
  466. package/lib/typescript/module/icons/remix/RiLockUnlockLine.d.ts +8 -0
  467. package/lib/typescript/module/icons/remix/RiLockUnlockLine.d.ts.map +1 -0
  468. package/lib/typescript/module/icons/remix/RiMoneyDollarCircleLine.d.ts +8 -0
  469. package/lib/typescript/module/icons/remix/RiMoneyDollarCircleLine.d.ts.map +1 -0
  470. package/lib/typescript/module/icons/remix/RiPlayCircleLine.d.ts +8 -0
  471. package/lib/typescript/module/icons/remix/RiPlayCircleLine.d.ts.map +1 -0
  472. package/lib/typescript/module/icons/remix/RiRocket2Line.d.ts +8 -0
  473. package/lib/typescript/module/icons/remix/RiRocket2Line.d.ts.map +1 -0
  474. package/lib/typescript/module/icons/remix/RiServerLine.d.ts +8 -0
  475. package/lib/typescript/module/icons/remix/RiServerLine.d.ts.map +1 -0
  476. package/lib/typescript/module/icons/remix/RiShareBoxLine.d.ts +8 -0
  477. package/lib/typescript/module/icons/remix/RiShareBoxLine.d.ts.map +1 -0
  478. package/lib/typescript/module/icons/remix/RiTv2Line.d.ts +8 -0
  479. package/lib/typescript/module/icons/remix/RiTv2Line.d.ts.map +1 -0
  480. package/lib/typescript/module/icons/remix/index.d.ts +14 -0
  481. package/lib/typescript/module/icons/remix/index.d.ts.map +1 -1
  482. package/lib/typescript/module/list/index.web.d.ts.map +1 -1
  483. package/lib/typescript/module/loading/Loading.d.ts +8 -2
  484. package/lib/typescript/module/loading/Loading.d.ts.map +1 -1
  485. package/lib/typescript/module/loading/Loading.web.d.ts +10 -2
  486. package/lib/typescript/module/loading/Loading.web.d.ts.map +1 -1
  487. package/lib/typescript/module/loading/LoadingBase.d.ts +64 -0
  488. package/lib/typescript/module/loading/LoadingBase.d.ts.map +1 -0
  489. package/lib/typescript/module/loading/index.web.d.ts.map +1 -1
  490. package/lib/typescript/module/media-flight/index.web.d.ts +0 -9
  491. package/lib/typescript/module/media-flight/index.web.d.ts.map +1 -1
  492. package/lib/typescript/module/menubar/Menubar.d.ts +14 -9
  493. package/lib/typescript/module/menubar/Menubar.d.ts.map +1 -1
  494. package/lib/typescript/module/menubar/Menubar.web.d.ts +8 -6
  495. package/lib/typescript/module/menubar/Menubar.web.d.ts.map +1 -1
  496. package/lib/typescript/module/menubar/MenubarBase.d.ts +5 -0
  497. package/lib/typescript/module/menubar/MenubarBase.d.ts.map +1 -0
  498. package/lib/typescript/module/menubar/index.web.d.ts.map +1 -1
  499. package/lib/typescript/module/motion/index.web.d.ts +0 -5
  500. package/lib/typescript/module/motion/index.web.d.ts.map +1 -1
  501. package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
  502. package/lib/typescript/module/popover/parts.d.ts.map +1 -1
  503. package/lib/typescript/module/popover/surface.d.ts +15 -5
  504. package/lib/typescript/module/popover/surface.d.ts.map +1 -1
  505. package/lib/typescript/module/portal/index.web.d.ts +1 -1
  506. package/lib/typescript/module/portal/index.web.d.ts.map +1 -1
  507. package/lib/typescript/module/progressive-blur/index.web.d.ts.map +1 -1
  508. package/lib/typescript/module/scroll/index.web.d.ts.map +1 -1
  509. package/lib/typescript/module/segmented-control/SegmentedControl.d.ts.map +1 -1
  510. package/lib/typescript/module/select/Select.d.ts +2 -4
  511. package/lib/typescript/module/select/Select.d.ts.map +1 -1
  512. package/lib/typescript/module/select/Select.web.d.ts +2 -4
  513. package/lib/typescript/module/select/Select.web.d.ts.map +1 -1
  514. package/lib/typescript/module/select/index.d.ts +2 -2
  515. package/lib/typescript/module/select/index.d.ts.map +1 -1
  516. package/lib/typescript/module/select/index.web.d.ts +2 -2
  517. package/lib/typescript/module/select/index.web.d.ts.map +1 -1
  518. package/lib/typescript/module/select/shared.d.ts +52 -5
  519. package/lib/typescript/module/select/shared.d.ts.map +1 -1
  520. package/lib/typescript/module/select/types.d.ts +6 -0
  521. package/lib/typescript/module/select/types.d.ts.map +1 -1
  522. package/lib/typescript/module/sidebar/parts.d.ts +8 -2
  523. package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
  524. package/lib/typescript/module/surfaces/SurfaceHost.d.ts.map +1 -1
  525. package/lib/typescript/module/surfaces/index.web.d.ts +9 -4
  526. package/lib/typescript/module/surfaces/index.web.d.ts.map +1 -1
  527. package/lib/typescript/module/tab-bar/index.web.d.ts.map +1 -1
  528. package/lib/typescript/module/tabs/Tabs.d.ts.map +1 -1
  529. package/lib/typescript/module/tabs/types.d.ts +6 -0
  530. package/lib/typescript/module/tabs/types.d.ts.map +1 -1
  531. package/lib/typescript/module/theme/color-scope/index.web.d.ts.map +1 -1
  532. package/lib/typescript/module/theme/seed-scope/index.web.d.ts.map +1 -1
  533. package/lib/typescript/module/tooltip/index.web.d.ts.map +1 -1
  534. package/package.json +1 -1
  535. package/src/agent-chat/index.web.ts +5 -3
  536. package/src/ai-chat/index.web.ts +5 -2
  537. package/src/alert-dialog/index.web.ts +10 -1
  538. package/src/avatar-group/index.web.ts +5 -0
  539. package/src/bottom-sheet/index.web.ts +5 -0
  540. package/src/code/index.ts +2 -0
  541. package/src/command/index.web.ts +5 -0
  542. package/src/composer-loader/ComposerLoader.web.tsx +8 -0
  543. package/src/composer-loader/index.web.ts +5 -2
  544. package/src/composer-panel/index.web.ts +5 -3
  545. package/src/connection-dots/index.web.ts +5 -0
  546. package/src/connection-status/index.web.ts +5 -0
  547. package/src/content-panel/index.web.ts +5 -0
  548. package/src/context-menu/ContextMenu.web.tsx +26 -3
  549. package/src/context-menu/context.ts +3 -0
  550. package/src/context-menu/index.web.ts +5 -0
  551. package/src/dialog/Dialog.web.tsx +13 -0
  552. package/src/dialog/index.web.ts +7 -11
  553. package/src/dropdown-menu/DropdownMenu.web.tsx +25 -2
  554. package/src/dropdown-menu/index.web.ts +5 -0
  555. package/src/floating/FloatingPanel.tsx +37 -38
  556. package/src/floating/escape-stack.ts +92 -0
  557. package/src/floating/menu-keyboard.ts +242 -0
  558. package/src/floating/menu-sub-flyout.tsx +22 -17
  559. package/src/floating/types.ts +11 -0
  560. package/src/fonts/index.web.ts +5 -20
  561. package/src/frosted-icon-button/FrostedIconButton.web.tsx +9 -0
  562. package/src/frosted-icon-button/index.web.ts +5 -7
  563. package/src/hooks/roving-focus.ts +204 -0
  564. package/src/hover-card/index.web.ts +5 -0
  565. package/src/icons/remix/RiBookReadLine.tsx +6 -0
  566. package/src/icons/remix/RiBugLine.tsx +6 -0
  567. package/src/icons/remix/RiChat1Line.tsx +6 -0
  568. package/src/icons/remix/RiCloudLine.tsx +6 -0
  569. package/src/icons/remix/RiCodeLine.tsx +6 -0
  570. package/src/icons/remix/RiCpuLine.tsx +6 -0
  571. package/src/icons/remix/RiFloodLine.tsx +6 -0
  572. package/src/icons/remix/RiLockUnlockLine.tsx +6 -0
  573. package/src/icons/remix/RiMoneyDollarCircleLine.tsx +6 -0
  574. package/src/icons/remix/RiPlayCircleLine.tsx +6 -0
  575. package/src/icons/remix/RiRocket2Line.tsx +6 -0
  576. package/src/icons/remix/RiServerLine.tsx +6 -0
  577. package/src/icons/remix/RiShareBoxLine.tsx +6 -0
  578. package/src/icons/remix/RiTv2Line.tsx +6 -0
  579. package/src/icons/remix/index.ts +14 -0
  580. package/src/list/index.web.ts +5 -0
  581. package/src/loading/Loading.tsx +15 -135
  582. package/src/loading/Loading.web.tsx +16 -134
  583. package/src/loading/LoadingBase.tsx +170 -0
  584. package/src/loading/index.web.ts +5 -13
  585. package/src/media-flight/index.web.ts +5 -9
  586. package/src/menubar/Menubar.tsx +16 -147
  587. package/src/menubar/Menubar.web.tsx +15 -138
  588. package/src/menubar/MenubarBase.tsx +170 -0
  589. package/src/menubar/index.web.ts +5 -0
  590. package/src/motion/index.web.ts +5 -5
  591. package/src/popover/index.web.ts +5 -0
  592. package/src/popover/parts.tsx +76 -12
  593. package/src/popover/surface.ts +68 -15
  594. package/src/portal/index.web.ts +6 -1
  595. package/src/progressive-blur/index.web.ts +5 -0
  596. package/src/scroll/index.web.ts +5 -0
  597. package/src/segmented-control/SegmentedControl.tsx +45 -1
  598. package/src/select/Select.tsx +4 -67
  599. package/src/select/Select.web.tsx +133 -69
  600. package/src/select/index.ts +3 -3
  601. package/src/select/index.web.ts +8 -3
  602. package/src/select/shared.tsx +107 -5
  603. package/src/select/types.ts +6 -0
  604. package/src/sidebar/SidebarTeamMenu.tsx +2 -2
  605. package/src/sidebar/SidebarUserMenu.tsx +2 -2
  606. package/src/sidebar/parts.tsx +8 -9
  607. package/src/surfaces/SurfaceHost.tsx +6 -0
  608. package/src/surfaces/index.web.ts +14 -4
  609. package/src/tab-bar/index.web.ts +13 -10
  610. package/src/tabs/Tabs.tsx +65 -1
  611. package/src/tabs/types.ts +6 -0
  612. package/src/theme/color-scope/index.web.ts +5 -0
  613. package/src/theme/seed-scope/index.web.ts +5 -0
  614. package/src/tooltip/index.web.ts +5 -0
@@ -3,146 +3,54 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Menubar = Menubar;
6
+ Object.defineProperty(exports, "Menubar", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _MenubarBase.Menubar;
10
+ }
11
+ });
7
12
  exports.MenubarCheckboxItem = void 0;
8
13
  exports.MenubarContent = MenubarContent;
9
14
  exports.MenubarLabel = exports.MenubarItem = exports.MenubarGroup = void 0;
10
- exports.MenubarMenu = MenubarMenu;
15
+ Object.defineProperty(exports, "MenubarMenu", {
16
+ enumerable: true,
17
+ get: function () {
18
+ return _MenubarBase.MenubarMenu;
19
+ }
20
+ });
11
21
  exports.MenubarSubTrigger = exports.MenubarSubContent = exports.MenubarSub = exports.MenubarShortcut = exports.MenubarSeparator = exports.MenubarRadioItem = exports.MenubarRadioGroup = void 0;
12
- exports.MenubarTrigger = MenubarTrigger;
22
+ Object.defineProperty(exports, "MenubarTrigger", {
23
+ enumerable: true,
24
+ get: function () {
25
+ return _MenubarBase.MenubarTrigger;
26
+ }
27
+ });
13
28
  var _react = _interopRequireWildcard(require("react"));
14
29
  var _SheetShell = require("../dialog/SheetShell.js");
15
- var _constants = require("../floating/constants.js");
16
30
  var _context = require("../floating/context.js");
17
31
  var _menuRows = require("../floating/menu-rows.js");
18
32
  var _menuSubInline = require("../floating/menu-sub-inline.js");
19
- var _shared = require("../floating/shared.js");
20
- var _TriggerSlot = require("../floating/TriggerSlot.js");
21
33
  var _useSheetOpenBridge = require("../floating/use-sheet-open-bridge.js");
22
- var _useControllableState = require("../hooks/use-controllable-state.js");
23
- var _styledPrimitives = require("../styles/styled-primitives.js");
24
- var _menuPalette = require("../floating/menu-palette.js");
25
- var _menuType = require("../floating/menu-type.js");
26
34
  var _context2 = require("./context.js");
27
35
  var _jsxRuntime = require("react/jsx-runtime");
36
+ var _MenubarBase = require("./MenubarBase.js");
28
37
  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); }
29
38
  /**
30
- * `Menubar` — NATIVE. A row of triggers, each opening the same bottom sheet
31
- * `DropdownMenu` and `ContextMenu` present.
39
+ * `Menubar` — NATIVE: each menu opens the same bottom sheet `DropdownMenu` and
40
+ * `ContextMenu` present, because a phone has no room to hang a panel beside a
41
+ * control and every Bloom overlay resolving to one sheet is what makes the
42
+ * native surfaces feel like one system.
32
43
  *
33
- * The one genuinely new family in this port: Bloom had no menu bar. Its rows are
34
- * `floating/menu-rows`, published here under shadcn's `Menubar*` names, so a
35
- * ported call site keeps every part it wrote.
44
+ * The bar, the per-menu state and the trigger are identical on both platforms
45
+ * and live in `MenubarBase`. What forks is this file: the surface a menu opens
46
+ * into, and which sub-menu the rows get — INLINE on native, because a flyout
47
+ * needs a pointer.
48
+ *
49
+ * Bloom had no menu bar before this family; its rows are `floating/menu-rows`,
50
+ * published here under the `Menubar*` names so a call site keeps every part it
51
+ * wrote.
36
52
  */
37
53
 
38
- function Menubar({
39
- children,
40
- value,
41
- defaultValue,
42
- onValueChange,
43
- label = 'Menu bar',
44
- className,
45
- style,
46
- testID
47
- }) {
48
- const [openValue, setValue] = (0, _useControllableState.useControllableState)({
49
- value,
50
- defaultValue,
51
- onChange: onValueChange
52
- });
53
- const context = (0, _react.useMemo)(() => ({
54
- value: openValue,
55
- setValue
56
- }), [openValue, setValue]);
57
- const palette = (0, _menuPalette.useMenuPalette)();
58
- const barPaint = {
59
- backgroundColor: palette.trigger.background,
60
- borderColor: palette.trigger.border,
61
- boxShadow: palette.trigger.shadow
62
- };
63
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarProvider, {
64
- value: context,
65
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
66
- role: "menubar",
67
- "aria-label": label,
68
- testID: testID,
69
- className: (0, _shared.cx)(_constants.MENUBAR_CLASS, className)
70
- // `shadow-s` reaches WEB through the class; NATIVE takes the same role as
71
- // an inline style, because `design-tokens/shadows` is platform-forked and
72
- // its own contract is that a multi-layer `box-shadow` is not something to
73
- // rely on NativeWind translating to RN elevation. On web the two agree, so
74
- // whichever wins paints the same thing.
75
- ,
76
- style: [barPaint, style],
77
- children: children
78
- })
79
- });
80
- }
81
- function MenubarMenu({
82
- children,
83
- value
84
- }) {
85
- const bar = (0, _context2.useMenubar)();
86
- const anchorRef = (0, _react.useRef)(null);
87
- const {
88
- setValue
89
- } = bar;
90
- const context = (0, _react.useMemo)(() => ({
91
- open: bar.value === value,
92
- setOpen: next => setValue(next ? value : undefined),
93
- anchorRef
94
- }), [bar.value, value, setValue]);
95
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarMenuProvider, {
96
- value: context,
97
- children: children
98
- });
99
- }
100
- function MenubarTrigger({
101
- children,
102
- asChild,
103
- disabled,
104
- label,
105
- className,
106
- style,
107
- testID
108
- }) {
109
- const menu = (0, _context2.useMenubarMenu)();
110
- const palette = (0, _menuPalette.useMenuPalette)();
111
-
112
- // `flex items-center rounded-md px-2 py-1.5`, plus `bg-accent` while its menu
113
- // is open and `text-sm font-medium` for the label — the same chrome the web
114
- // fork draws, so the bar reads identically on both platforms.
115
- const trigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
116
- className: (0, _shared.cx)(_constants.MENUBAR_TRIGGER_CLASS, menu.open && _constants.MENUBAR_TRIGGER_OPEN_CLASS, className),
117
- style: {
118
- backgroundColor: menu.open ? palette.rowHighlight : 'transparent'
119
- },
120
- children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledText, {
121
- className: _constants.MENUBAR_TRIGGER_TEXT_CLASS
122
- // `text-body-medium text-text-primary`, in Inter.
123
- ,
124
- style: [(0, _menuType.menuType)('body-medium'), {
125
- color: palette.text
126
- }],
127
- children: children
128
- }) : children
129
- });
130
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TriggerSlot.TriggerSlot, {
131
- asChild: asChild,
132
- anchorRef: menu.anchorRef,
133
- style: style,
134
- testID: testID,
135
- handle: {
136
- onPress: () => menu.setOpen(!menu.open),
137
- disabled,
138
- accessibilityLabel: label,
139
- accessibilityRole: 'button',
140
- 'aria-haspopup': _constants.MENU_TRIGGER_POPUP,
141
- 'aria-expanded': menu.open
142
- },
143
- children: asChild ? children : trigger
144
- });
145
- }
146
54
  function MenubarContent({
147
55
  children,
148
56
  label = 'Menu',
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_SheetShell","_constants","_context","_menuRows","_menuSubInline","_shared","_TriggerSlot","_useSheetOpenBridge","_useControllableState","_styledPrimitives","_menuPalette","_menuType","_context2","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Menubar","children","value","defaultValue","onValueChange","label","className","style","testID","openValue","setValue","useControllableState","onChange","context","useMemo","palette","useMenuPalette","barPaint","backgroundColor","trigger","background","borderColor","border","boxShadow","shadow","jsx","MenubarProvider","StyledView","role","cx","MENUBAR_CLASS","MenubarMenu","bar","useMenubar","anchorRef","useRef","open","setOpen","next","undefined","MenubarMenuProvider","MenubarTrigger","asChild","disabled","menu","useMenubarMenu","MENUBAR_TRIGGER_CLASS","MENUBAR_TRIGGER_OPEN_CLASS","rowHighlight","StyledText","MENUBAR_TRIGGER_TEXT_CLASS","menuType","color","text","TriggerSlot","handle","onPress","accessibilityLabel","accessibilityRole","MENU_TRIGGER_POPUP","MenubarContent","control","onSheetClose","useSheetOpenBridge","surface","close","presentation","SheetShell","onClose","contentStyle","MenuSurfaceProvider","rows","createMenuRows","createInlineMenuSub","MenubarItem","exports","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioGroup","RadioGroup","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarShortcut","Shortcut","MenubarGroup","Group","MenubarSub","Sub","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sourceRoot":"../../../src","sources":["menubar/Menubar.tsx"],"mappings":";;;;;;;;;;;;AAQA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAOA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,mBAAA,GAAAR,OAAA;AACA,IAAAS,qBAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,O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,YAAY,EAAE9D,KAAM;IAAAN,QAAA,eACrF,IAAArB,WAAA,CAAA6C,GAAA,EAACxD,QAAA,CAAAqG,mBAAmB;MAACpE,KAAK,EAAE8D,OAAQ;MAAA/D,QAAA,EAAEA;IAAQ,CAAsB;EAAC,CAC3D,CAAC;AAEjB;AAEA,MAAMsE,IAAI,GAAG,IAAAC,wBAAc,EAAC,SAAS,EAAEC,kCAAmB,CAAC;AAEpD,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGH,IAAI,CAACK,IAAI;AAC7B,MAAMC,mBAAmB,GAAAF,OAAA,CAAAE,mBAAA,GAAGN,IAAI,CAACO,YAAY;AAC7C,MAAMC,iBAAiB,GAAAJ,OAAA,CAAAI,iBAAA,GAAGR,IAAI,CAACS,UAAU;AACzC,MAAMC,gBAAgB,GAAAN,OAAA,CAAAM,gBAAA,GAAGV,IAAI,CAACW,SAAS;AACvC,MAAMC,YAAY,GAAAR,OAAA,CAAAQ,YAAA,GAAGZ,IAAI,CAACa,KAAK;AAC/B,MAAMC,gBAAgB,GAAAV,OAAA,CAAAU,gBAAA,GAAGd,IAAI,CAACe,SAAS;AACvC,MAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAGhB,IAAI,CAACiB,QAAQ;AACrC,MAAMC,YAAY,GAAAd,OAAA,CAAAc,YAAA,GAAGlB,IAAI,CAACmB,KAAK;AAC/B,MAAMC,UAAU,GAAAhB,OAAA,CAAAgB,UAAA,GAAGpB,IAAI,CAACqB,GAAG;AAC3B,MAAMC,iBAAiB,GAAAlB,OAAA,CAAAkB,iBAAA,GAAGtB,IAAI,CAACuB,UAAU;AACzC,MAAMC,iBAAiB,GAAApB,OAAA,CAAAoB,iBAAA,GAAGxB,IAAI,CAACyB,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_SheetShell","_context","_menuRows","_menuSubInline","_useSheetOpenBridge","_context2","_jsxRuntime","_MenubarBase","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MenubarContent","children","label","style","menu","useMenubarMenu","control","onSheetClose","useSheetOpenBridge","open","setOpen","surface","useMemo","close","presentation","jsx","SheetShell","onClose","contentStyle","MenuSurfaceProvider","value","rows","createMenuRows","createInlineMenuSub","MenubarItem","exports","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioGroup","RadioGroup","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarShortcut","Shortcut","MenubarGroup","Group","MenubarSub","Sub","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sourceRoot":"../../../src","sources":["menubar/Menubar.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAA2C,IAAAO,WAAA,GAAAP,OAAA;AAG3C,IAAAQ,YAAA,GAAAR,OAAA;AAAqE,SAAAD,wBAAAU,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAU,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA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ACrF,IAAAtB,WAAA,CAAAoC,GAAA,EAACzC,QAAA,CAAA6C,mBAAmB;MAACC,KAAK,EAAET,OAAQ;MAAAV,QAAA,EAAEA;IAAQ,CAAsB;EAAC,CAC3D,CAAC;AAEjB;AAEA,MAAMoB,IAAI,GAAG,IAAAC,wBAAc,EAAC,SAAS,EAAEC,kCAAmB,CAAC;AAEpD,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGH,IAAI,CAACK,IAAI;AAC7B,MAAMC,mBAAmB,GAAAF,OAAA,CAAAE,mBAAA,GAAGN,IAAI,CAACO,YAAY;AAC7C,MAAMC,iBAAiB,GAAAJ,OAAA,CAAAI,iBAAA,GAAGR,IAAI,CAACS,UAAU;AACzC,MAAMC,gBAAgB,GAAAN,OAAA,CAAAM,gBAAA,GAAGV,IAAI,CAACW,SAAS;AACvC,MAAMC,YAAY,GAAAR,OAAA,CAAAQ,YAAA,GAAGZ,IAAI,CAACa,KAAK;AAC/B,MAAMC,gBAAgB,GAAAV,OAAA,CAAAU,gBAAA,GAAGd,IAAI,CAACe,SAAS;AACvC,MAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAGhB,IAAI,CAACiB,QAAQ;AACrC,MAAMC,YAAY,GAAAd,OAAA,CAAAc,YAAA,GAAGlB,IAAI,CAACmB,KAAK;AAC/B,MAAMC,UAAU,GAAAhB,OAAA,CAAAgB,UAAA,GAAGpB,IAAI,CAACqB,GAAG;AAC3B,MAAMC,iBAAiB,GAAAlB,OAAA,CAAAkB,iBAAA,GAAGtB,IAAI,CAACuB,UAAU;AACzC,MAAMC,iBAAiB,GAAApB,OAAA,CAAAoB,iBAAA,GAAGxB,IAAI,CAACyB,UAAU","ignoreList":[]}
@@ -3,142 +3,54 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Menubar = Menubar;
6
+ Object.defineProperty(exports, "Menubar", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _MenubarBase.Menubar;
10
+ }
11
+ });
7
12
  exports.MenubarCheckboxItem = void 0;
8
13
  exports.MenubarContent = MenubarContent;
9
14
  exports.MenubarLabel = exports.MenubarItem = exports.MenubarGroup = void 0;
10
- exports.MenubarMenu = MenubarMenu;
15
+ Object.defineProperty(exports, "MenubarMenu", {
16
+ enumerable: true,
17
+ get: function () {
18
+ return _MenubarBase.MenubarMenu;
19
+ }
20
+ });
11
21
  exports.MenubarSubTrigger = exports.MenubarSubContent = exports.MenubarSub = exports.MenubarShortcut = exports.MenubarSeparator = exports.MenubarRadioItem = exports.MenubarRadioGroup = void 0;
12
- exports.MenubarTrigger = MenubarTrigger;
22
+ Object.defineProperty(exports, "MenubarTrigger", {
23
+ enumerable: true,
24
+ get: function () {
25
+ return _MenubarBase.MenubarTrigger;
26
+ }
27
+ });
13
28
  var _react = _interopRequireWildcard(require("react"));
14
29
  var _constants = require("../floating/constants.js");
15
30
  var _context = require("../floating/context.js");
16
31
  var _FloatingPanel = require("../floating/FloatingPanel.js");
32
+ var _menuKeyboard = require("../floating/menu-keyboard.js");
17
33
  var _menuRows = require("../floating/menu-rows.js");
18
34
  var _menuSubFlyout = require("../floating/menu-sub-flyout.js");
19
35
  var _shared = require("../floating/shared.js");
20
- var _TriggerSlot = require("../floating/TriggerSlot.js");
21
36
  var _useAnchorRect = require("../floating/use-anchor-rect.js");
22
- var _useControllableState = require("../hooks/use-controllable-state.js");
23
- var _styledPrimitives = require("../styles/styled-primitives.js");
24
- var _menuPalette = require("../floating/menu-palette.js");
25
- var _menuType = require("../floating/menu-type.js");
26
37
  var _context2 = require("./context.js");
27
38
  var _jsxRuntime = require("react/jsx-runtime");
39
+ var _MenubarBase = require("./MenubarBase.js");
28
40
  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); }
29
41
  /**
30
- * `Menubar` — WEB. The bar is the same row of triggers; each menu is an anchored
31
- * panel from `floating/FloatingPanel` rather than a sheet.
42
+ * `Menubar` — WEB: each menu is an anchored panel from `floating/FloatingPanel`
43
+ * rather than a sheet.
44
+ *
45
+ * The bar, the per-menu state and the trigger are identical on both platforms
46
+ * and live in `MenubarBase`. What forks is this file: the surface a menu opens
47
+ * into, and which sub-menu the rows get — a FLYOUT here, which needs a pointer.
32
48
  *
33
49
  * `align="start"` and the trigger's own width as `minWidth` are what make a
34
50
  * menubar menu hang under its trigger the way a desktop menu bar does, rather
35
51
  * than centring like a popover.
36
52
  */
37
53
 
38
- function Menubar({
39
- children,
40
- value,
41
- defaultValue,
42
- onValueChange,
43
- label = 'Menu bar',
44
- className,
45
- style,
46
- testID
47
- }) {
48
- const [openValue, setValue] = (0, _useControllableState.useControllableState)({
49
- value,
50
- defaultValue,
51
- onChange: onValueChange
52
- });
53
- const context = (0, _react.useMemo)(() => ({
54
- value: openValue,
55
- setValue
56
- }), [openValue, setValue]);
57
- const palette = (0, _menuPalette.useMenuPalette)();
58
- const barPaint = {
59
- backgroundColor: palette.trigger.background,
60
- borderColor: palette.trigger.border,
61
- boxShadow: palette.trigger.shadow
62
- };
63
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarProvider, {
64
- value: context,
65
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
66
- role: "menubar",
67
- "aria-label": label,
68
- testID: testID,
69
- className: (0, _shared.cx)(_constants.MENUBAR_CLASS, className),
70
- style: [barPaint, style],
71
- children: children
72
- })
73
- });
74
- }
75
- function MenubarMenu({
76
- children,
77
- value
78
- }) {
79
- const bar = (0, _context2.useMenubar)();
80
- const anchorRef = (0, _react.useRef)(null);
81
- const {
82
- setValue
83
- } = bar;
84
- const context = (0, _react.useMemo)(() => ({
85
- open: bar.value === value,
86
- setOpen: next => setValue(next ? value : undefined),
87
- anchorRef
88
- }), [bar.value, value, setValue]);
89
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.MenubarMenuProvider, {
90
- value: context,
91
- children: children
92
- });
93
- }
94
- function MenubarTrigger({
95
- children,
96
- asChild,
97
- disabled,
98
- label,
99
- className,
100
- style,
101
- testID
102
- }) {
103
- const menu = (0, _context2.useMenubarMenu)();
104
- const palette = (0, _menuPalette.useMenuPalette)();
105
-
106
- // `flex items-center rounded-md px-2 py-1.5`, plus `bg-accent` while its menu
107
- // is open, and `text-sm font-medium` for the label. A menubar trigger is a
108
- // BUTTON with chrome of its own, not a bare hit box — leaving it unstyled is
109
- // why a Bloom menubar read as loose text against a pill-per-menu bar.
110
- // `asChild` still hands the whole thing to the caller.
111
- const trigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
112
- className: (0, _shared.cx)(_constants.MENUBAR_TRIGGER_CLASS, menu.open && _constants.MENUBAR_TRIGGER_OPEN_CLASS, className),
113
- style: {
114
- backgroundColor: menu.open ? palette.rowHighlight : 'transparent'
115
- },
116
- children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledText, {
117
- className: _constants.MENUBAR_TRIGGER_TEXT_CLASS
118
- // `text-body-medium text-text-primary`, in Inter.
119
- ,
120
- style: [(0, _menuType.menuType)('body-medium'), {
121
- color: palette.text
122
- }],
123
- children: children
124
- }) : children
125
- });
126
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TriggerSlot.TriggerSlot, {
127
- asChild: asChild,
128
- anchorRef: menu.anchorRef,
129
- style: style,
130
- testID: testID,
131
- handle: {
132
- onPress: () => menu.setOpen(!menu.open),
133
- disabled,
134
- accessibilityLabel: label,
135
- accessibilityRole: 'button',
136
- 'aria-haspopup': _constants.MENU_TRIGGER_POPUP,
137
- 'aria-expanded': menu.open
138
- },
139
- children: asChild ? children : trigger
140
- });
141
- }
142
54
  function MenubarContent({
143
55
  children,
144
56
  label = 'Menu',
@@ -163,7 +75,14 @@ function MenubarContent({
163
75
  close,
164
76
  presentation: 'dropdown'
165
77
  }), [close]);
78
+ const [panel, setPanel] = (0, _react.useState)(null);
79
+ (0, _menuKeyboard.useMenuPanelKeys)((0, _menuKeyboard.hostElement)(panel), {
80
+ open: menu.open,
81
+ onTab: close,
82
+ intent: menu.focusIntent
83
+ });
166
84
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FloatingPanel.FloatingPanel, {
85
+ panelRef: setPanel,
167
86
  open: menu.open,
168
87
  anchor: anchor,
169
88
  role: "menu",
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_constants","_context","_FloatingPanel","_menuRows","_menuSubFlyout","_shared","_TriggerSlot","_useAnchorRect","_useControllableState","_styledPrimitives","_menuPalette","_menuType","_context2","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Menubar","children","value","defaultValue","onValueChange","label","className","style","testID","openValue","setValue","useControllableState","onChange","context","useMemo","palette","useMenuPalette","barPaint","backgroundColor","trigger","background","borderColor","border","boxShadow","shadow","jsx","MenubarProvider","StyledView","role","cx","MENUBAR_CLASS","MenubarMenu","bar","useMenubar","anchorRef","useRef","open","setOpen","next","undefined","MenubarMenuProvider","MenubarTrigger","asChild","disabled","menu","useMenubarMenu","MENUBAR_TRIGGER_CLASS","MENUBAR_TRIGGER_OPEN_CLASS","rowHighlight","StyledText","MENUBAR_TRIGGER_TEXT_CLASS","menuType","color","text","TriggerSlot","handle","onPress","accessibilityLabel","accessibilityRole","MENU_TRIGGER_POPUP","MenubarContent","side","align","sideOffset","MENUBAR_SIDE_OFFSET","alignOffset","MENUBAR_ALIGN_OFFSET","dismissible","minWidth","maxWidth","anchor","useAnchorRect","close","useCallback","surface","presentation","FloatingPanel","modal","onDismiss","MENUBAR_MENU_MIN_WIDTH_CLASS","MenuSurfaceProvider","rows","createMenuRows","createFlyoutMenuSub","MenubarItem","exports","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioGroup","RadioGroup","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarShortcut","Shortcut","MenubarGroup","Group","MenubarSub","Sub","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sourceRoot":"../../../src","sources":["menubar/Menubar.web.tsx"],"mappings":";;;;;;;;;;;;AAQA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAUA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,qBAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,SAAA,GAAAb,OAAA;AAKmB,IAAAc,WAAA,GAAAd,OAAA;AAAA,SAAAD,wBAAAgB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAlB,uBAAA,YAAAA,CAAAgB,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uB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,IAAI,CAACyB,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_constants","_context","_FloatingPanel","_menuKeyboard","_menuRows","_menuSubFlyout","_shared","_useAnchorRect","_context2","_jsxRuntime","_MenubarBase","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MenubarContent","children","label","side","align","sideOffset","MENUBAR_SIDE_OFFSET","alignOffset","MENUBAR_ALIGN_OFFSET","dismissible","minWidth","maxWidth","className","style","testID","menu","useMenubarMenu","anchor","useAnchorRect","anchorRef","open","close","useCallback","setOpen","surface","useMemo","presentation","panel","setPanel","useState","useMenuPanelKeys","hostElement","onTab","intent","focusIntent","jsx","FloatingPanel","panelRef","role","modal","onDismiss","cx","MENUBAR_MENU_MIN_WIDTH_CLASS","MenuSurfaceProvider","value","rows","createMenuRows","createFlyoutMenuSub","MenubarItem","exports","Item","MenubarCheckboxItem","CheckboxItem","MenubarRadioGroup","RadioGroup","MenubarRadioItem","RadioItem","MenubarLabel","Label","MenubarSeparator","Separator","MenubarShortcut","Shortcut","MenubarGroup","Group","MenubarSub","Sub","MenubarSubTrigger","SubTrigger","MenubarSubContent","SubContent"],"sourceRoot":"../../../src","sources":["menubar/Menubar.web.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAKA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAA2C,IAAAU,WAAA,GAAAV,OAAA;AAG3C,IAAAW,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 "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Menubar = Menubar;
7
+ exports.MenubarMenu = MenubarMenu;
8
+ exports.MenubarTrigger = MenubarTrigger;
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _constants = require("../floating/constants.js");
11
+ var _menuPalette = require("../floating/menu-palette.js");
12
+ var _menuType = require("../floating/menu-type.js");
13
+ var _shared = require("../floating/shared.js");
14
+ var _TriggerSlot = require("../floating/TriggerSlot.js");
15
+ var _menuKeyboard = require("../floating/menu-keyboard.js");
16
+ var _useControllableState = require("../hooks/use-controllable-state.js");
17
+ var _styledPrimitives = require("../styles/styled-primitives.js");
18
+ var _context = require("./context.js");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ 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); }
21
+ /**
22
+ * The three `Menubar` parts that are the SAME on both platforms.
23
+ *
24
+ * A menubar forks in exactly one place — what a menu opens INTO. Native
25
+ * presents the bottom sheet every Bloom overlay resolves to; web anchors a
26
+ * `floating/FloatingPanel` under the trigger. The bar itself, the per-menu
27
+ * state and the trigger are identical, so they live here and each fork
28
+ * re-exports them rather than keeping a second copy that has to be edited
29
+ * twice.
30
+ *
31
+ * NEUTRAL by construction: everything this module reaches (`floating/*`,
32
+ * `hooks/*`, `styles/*`, `./context`, `./types`) is fork-free. That is not a
33
+ * detail — `web-fork-reachability.test.ts` only scans `.web` files, so a
34
+ * neutral module naming a forked target resolves to NATIVE in every bundler
35
+ * that is not Metro and no gate would report it.
36
+ */
37
+
38
+ function Menubar({
39
+ children,
40
+ value,
41
+ defaultValue,
42
+ onValueChange,
43
+ label = 'Menu bar',
44
+ className,
45
+ style,
46
+ testID
47
+ }) {
48
+ const [openValue, setValue] = (0, _useControllableState.useControllableState)({
49
+ value,
50
+ defaultValue,
51
+ onChange: onValueChange
52
+ });
53
+ const context = (0, _react.useMemo)(() => ({
54
+ value: openValue,
55
+ setValue
56
+ }), [openValue, setValue]);
57
+ const palette = (0, _menuPalette.useMenuPalette)();
58
+ const barPaint = {
59
+ backgroundColor: palette.trigger.background,
60
+ borderColor: palette.trigger.border,
61
+ boxShadow: palette.trigger.shadow
62
+ };
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.MenubarProvider, {
64
+ value: context,
65
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
66
+ role: "menubar",
67
+ "aria-label": label,
68
+ testID: testID,
69
+ className: (0, _shared.cx)(_constants.MENUBAR_CLASS, className),
70
+ style: [barPaint, style],
71
+ children: children
72
+ })
73
+ });
74
+ }
75
+ function MenubarMenu({
76
+ children,
77
+ value
78
+ }) {
79
+ const bar = (0, _context.useMenubar)();
80
+ const anchorRef = (0, _react.useRef)(null);
81
+ const {
82
+ setValue
83
+ } = bar;
84
+ const focusIntent = (0, _menuKeyboard.useMenuFocusIntent)();
85
+ const context = (0, _react.useMemo)(() => ({
86
+ open: bar.value === value,
87
+ setOpen: next => setValue(next ? value : undefined),
88
+ anchorRef,
89
+ focusIntent
90
+ }), [bar.value, value, setValue, focusIntent]);
91
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.MenubarMenuProvider, {
92
+ value: context,
93
+ children: children
94
+ });
95
+ }
96
+ function MenubarTrigger({
97
+ children,
98
+ asChild,
99
+ disabled,
100
+ label,
101
+ className,
102
+ style,
103
+ testID
104
+ }) {
105
+ const menu = (0, _context.useMenubarMenu)();
106
+ const palette = (0, _menuPalette.useMenuPalette)();
107
+ // Web: Enter/Space/ArrowDown open into the first row, ArrowUp into the last,
108
+ // and focus returns here on close (`floating/menu-keyboard.ts`). Inert on
109
+ // native, where there is no DOM node to listen on.
110
+ (0, _menuKeyboard.useMenuTriggerKeys)(menu.anchorRef, {
111
+ open: menu.open,
112
+ setOpen: menu.setOpen,
113
+ disabled,
114
+ intent: menu.focusIntent
115
+ });
116
+
117
+ // `flex items-center rounded-md px-2 py-1.5`, plus `bg-accent` while its menu
118
+ // is open, and `text-sm font-medium` for the label. A menubar trigger is a
119
+ // BUTTON with chrome of its own, not a bare hit box — leaving it unstyled is
120
+ // why a Bloom menubar read as loose text against a pill-per-menu bar. The
121
+ // same chrome on both platforms, so the bar reads identically. `asChild`
122
+ // still hands the whole thing to the caller.
123
+ const trigger = /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledView, {
124
+ className: (0, _shared.cx)(_constants.MENUBAR_TRIGGER_CLASS, menu.open && _constants.MENUBAR_TRIGGER_OPEN_CLASS, className),
125
+ style: {
126
+ backgroundColor: menu.open ? palette.rowHighlight : 'transparent'
127
+ },
128
+ children: typeof children === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_styledPrimitives.StyledText, {
129
+ className: _constants.MENUBAR_TRIGGER_TEXT_CLASS
130
+ // `text-body-medium text-text-primary`, in Inter.
131
+ ,
132
+ style: [(0, _menuType.menuType)('body-medium'), {
133
+ color: palette.text
134
+ }],
135
+ children: children
136
+ }) : children
137
+ });
138
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TriggerSlot.TriggerSlot, {
139
+ asChild: asChild,
140
+ anchorRef: menu.anchorRef,
141
+ style: style,
142
+ testID: testID,
143
+ handle: {
144
+ onPress: () => menu.setOpen(!menu.open),
145
+ disabled,
146
+ accessibilityLabel: label,
147
+ accessibilityRole: 'button',
148
+ 'aria-haspopup': _constants.MENU_TRIGGER_POPUP,
149
+ 'aria-expanded': menu.open
150
+ },
151
+ children: asChild ? children : trigger
152
+ });
153
+ }
154
+ //# sourceMappingURL=MenubarBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_constants","_menuPalette","_menuType","_shared","_TriggerSlot","_menuKeyboard","_useControllableState","_styledPrimitives","_context","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","Menubar","children","value","defaultValue","onValueChange","label","className","style","testID","openValue","setValue","useControllableState","onChange","context","useMemo","palette","useMenuPalette","barPaint","backgroundColor","trigger","background","borderColor","border","boxShadow","shadow","jsx","MenubarProvider","StyledView","role","cx","MENUBAR_CLASS","MenubarMenu","bar","useMenubar","anchorRef","useRef","focusIntent","useMenuFocusIntent","open","setOpen","next","undefined","MenubarMenuProvider","MenubarTrigger","asChild","disabled","menu","useMenubarMenu","useMenuTriggerKeys","intent","MENUBAR_TRIGGER_CLASS","MENUBAR_TRIGGER_OPEN_CLASS","rowHighlight","StyledText","MENUBAR_TRIGGER_TEXT_CLASS","menuType","color","text","TriggerSlot","handle","onPress","accessibilityLabel","accessibilityRole","MENU_TRIGGER_POPUP"],"sourceRoot":"../../../src","sources":["menubar/MenubarBase.tsx"],"mappings":";;;;;;;;AAgBA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAOA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,qBAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAKmB,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAA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A2E,UAAU;MACT/C,SAAS,EAAEgD;MACX;MAAA;MACA/C,KAAK,EAAE,CAAC,IAAAgD,kBAAQ,EAAC,aAAa,CAAC,EAAE;QAAEC,KAAK,EAAEzC,OAAO,CAAC0C;MAAK,CAAC,CAAE;MAAAxD,QAAA,EACzDA;IAAQ,CACC,CAAC,GAEbA;EACD,CACS,CACb;EAED,oBACE,IAAArB,WAAA,CAAA6C,GAAA,EAAClD,YAAA,CAAAmF,WAAW;IACVd,OAAO,EAAEA,OAAQ;IACjBV,SAAS,EAAEY,IAAI,CAACZ,SAAU;IAC1B3B,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfmD,MAAM,EAAE;MACNC,OAAO,EAAEA,CAAA,KAAMd,IAAI,CAACP,OAAO,CAAC,CAACO,IAAI,CAACR,IAAI,CAAC;MACvCO,QAAQ;MACRgB,kBAAkB,EAAExD,KAAK;MACzByD,iBAAiB,EAAE,QAAQ;MAC3B,eAAe,EAAEC,6BAAkB;MACnC,eAAe,EAAEjB,IAAI,CAACR;IACxB,CAAE;IAAArC,QAAA,EACD2C,OAAO,GAAG3C,QAAQ,GAAGkB;EAAO,CAClB,CAAC;AAElB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_MenubarWeb","require"],"sourceRoot":"../../../src","sources":["menubar/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_MenubarWeb","require"],"sourceRoot":"../../../src","sources":["menubar/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,WAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_PopoverWeb","require","_parts"],"sourceRoot":"../../../src","sources":["popover/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_PopoverWeb","require","_parts"],"sourceRoot":"../../../src","sources":["popover/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}