@oxy.so/bloom 19.5.2 → 19.7.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 (740) hide show
  1. package/docs/adoption-matrix.mdx +19 -19
  2. package/docs/app-shell.mdx +18 -11
  3. package/docs/bottom-bar.mdx +57 -1
  4. package/docs/button.mdx +19 -0
  5. package/docs/chat-composer.mdx +59 -1
  6. package/docs/compose-layouts.mdx +114 -2
  7. package/docs/dialog.mdx +7 -0
  8. package/docs/engagement-bar.mdx +9 -0
  9. package/docs/icons.mdx +22 -0
  10. package/docs/layout.mdx +1 -1
  11. package/docs/list.mdx +4 -3
  12. package/docs/page-header.mdx +7 -0
  13. package/docs/public-parts.mdx +14 -3
  14. package/docs/screen.mdx +4 -0
  15. package/docs/scroll.mdx +6 -3
  16. package/docs/sidebar.mdx +26 -5
  17. package/docs/tab-pager.mdx +10 -0
  18. package/docs/task-catalog.json +1 -1
  19. package/docs/task-catalog.mdx +1 -1
  20. package/lib/commonjs/app-shell/AppShell.js +3 -3
  21. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  22. package/lib/commonjs/app-shell/AppShellEngine.js +2 -1
  23. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  24. package/lib/commonjs/app-shell/AppShellPanelLayout.js +345 -172
  25. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  26. package/lib/commonjs/app-shell/RetainedPanelLayout.js +6 -0
  27. package/lib/commonjs/app-shell/RetainedPanelLayout.js.map +1 -1
  28. package/lib/commonjs/app-shell/panel-layout-css.js +20 -13
  29. package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
  30. package/lib/commonjs/app-shell/panel-layout.js +33 -185
  31. package/lib/commonjs/app-shell/panel-layout.js.map +1 -1
  32. package/lib/commonjs/app-shell/panel-motion.js +13 -36
  33. package/lib/commonjs/app-shell/panel-motion.js.map +1 -1
  34. package/lib/commonjs/app-shell/panel-transitions.js +26 -0
  35. package/lib/commonjs/app-shell/panel-transitions.js.map +1 -0
  36. package/lib/commonjs/app-shell/shell-layout-css.js +2 -2
  37. package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
  38. package/lib/commonjs/app-shell/use-panel-exit-completion.js +100 -0
  39. package/lib/commonjs/app-shell/use-panel-exit-completion.js.map +1 -0
  40. package/lib/commonjs/app-shell/use-panel-resize.js +21 -7
  41. package/lib/commonjs/app-shell/use-panel-resize.js.map +1 -1
  42. package/lib/commonjs/app-shell/use-panel-reveal.js +2 -1
  43. package/lib/commonjs/app-shell/use-panel-reveal.js.map +1 -1
  44. package/lib/commonjs/bottom-bar/BottomBarBase.js +141 -37
  45. package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
  46. package/lib/commonjs/bottom-sheet/BottomSheetBase.js +3 -2
  47. package/lib/commonjs/bottom-sheet/BottomSheetBase.js.map +1 -1
  48. package/lib/commonjs/button/GlyphAttention.js +110 -0
  49. package/lib/commonjs/button/GlyphAttention.js.map +1 -0
  50. package/lib/commonjs/button/GlyphButton.js +18 -7
  51. package/lib/commonjs/button/GlyphButton.js.map +1 -1
  52. package/lib/commonjs/chat-composer/CompactComposer.js +18 -0
  53. package/lib/commonjs/chat-composer/CompactComposer.js.map +1 -0
  54. package/lib/commonjs/chat-composer/CompactComposer.web.js +18 -0
  55. package/lib/commonjs/chat-composer/CompactComposer.web.js.map +1 -0
  56. package/lib/commonjs/chat-composer/compact-text.js +11 -0
  57. package/lib/commonjs/chat-composer/compact-text.js.map +1 -0
  58. package/lib/commonjs/chat-composer/compact-types.js +6 -0
  59. package/lib/commonjs/chat-composer/compact-types.js.map +1 -0
  60. package/lib/commonjs/chat-composer/create-compact-composer.js +185 -0
  61. package/lib/commonjs/chat-composer/create-compact-composer.js.map +1 -0
  62. package/lib/commonjs/chat-composer/index.js +14 -0
  63. package/lib/commonjs/chat-composer/index.js.map +1 -1
  64. package/lib/commonjs/chat-composer/index.web.js +14 -0
  65. package/lib/commonjs/chat-composer/index.web.js.map +1 -1
  66. package/lib/commonjs/chat-composer/messages.js +8 -1
  67. package/lib/commonjs/chat-composer/messages.js.map +1 -1
  68. package/lib/commonjs/dialog/DialogBottomSheet.js +6 -3
  69. package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
  70. package/lib/commonjs/engagement-bar/EngagementAction.js +6 -5
  71. package/lib/commonjs/engagement-bar/EngagementAction.js.map +1 -1
  72. package/lib/commonjs/engagement-bar/EngagementBar.js +31 -7
  73. package/lib/commonjs/engagement-bar/EngagementBar.js.map +1 -1
  74. package/lib/commonjs/engagement-bar/EngagementPop.js +10 -3
  75. package/lib/commonjs/engagement-bar/EngagementPop.js.map +1 -1
  76. package/lib/commonjs/engagement-bar/context.js.map +1 -1
  77. package/lib/commonjs/engagement-bar/paint.js +59 -12
  78. package/lib/commonjs/engagement-bar/paint.js.map +1 -1
  79. package/lib/commonjs/hooks/use-border-box-size.js +46 -0
  80. package/lib/commonjs/hooks/use-border-box-size.js.map +1 -0
  81. package/lib/commonjs/icons/index.js +12 -0
  82. package/lib/commonjs/icons/index.js.map +1 -1
  83. package/lib/commonjs/icons/social/BookmarkFillIcon.js +12 -0
  84. package/lib/commonjs/icons/social/BookmarkFillIcon.js.map +1 -0
  85. package/lib/commonjs/icons/social/BookmarkIcon.js +12 -0
  86. package/lib/commonjs/icons/social/BookmarkIcon.js.map +1 -0
  87. package/lib/commonjs/icons/social/GifAttachmentIcon.js +12 -0
  88. package/lib/commonjs/icons/social/GifAttachmentIcon.js.map +1 -0
  89. package/lib/commonjs/icons/social/LikeFillIcon.js +13 -0
  90. package/lib/commonjs/icons/social/LikeFillIcon.js.map +1 -0
  91. package/lib/commonjs/icons/social/LikeIcon.js +14 -0
  92. package/lib/commonjs/icons/social/LikeIcon.js.map +1 -0
  93. package/lib/commonjs/icons/social/MediaAttachmentIcon.js +12 -0
  94. package/lib/commonjs/icons/social/MediaAttachmentIcon.js.map +1 -0
  95. package/lib/commonjs/icons/social/ReplyIcon.js +14 -0
  96. package/lib/commonjs/icons/social/ReplyIcon.js.map +1 -0
  97. package/lib/commonjs/icons/social/RepostIcon.js +12 -0
  98. package/lib/commonjs/icons/social/RepostIcon.js.map +1 -0
  99. package/lib/commonjs/icons/social/ShareIcon.js +12 -0
  100. package/lib/commonjs/icons/social/ShareIcon.js.map +1 -0
  101. package/lib/commonjs/icons/social/index.js +69 -0
  102. package/lib/commonjs/icons/social/index.js.map +1 -0
  103. package/lib/commonjs/index.js +14 -0
  104. package/lib/commonjs/index.js.map +1 -1
  105. package/lib/commonjs/index.web.js +14 -0
  106. package/lib/commonjs/index.web.js.map +1 -1
  107. package/lib/commonjs/layout/ScrollBar.web.js +62 -29
  108. package/lib/commonjs/layout/ScrollBar.web.js.map +1 -1
  109. package/lib/commonjs/layout/bottom-edge.js +14 -0
  110. package/lib/commonjs/layout/bottom-edge.js.map +1 -1
  111. package/lib/commonjs/layout/scroll-metrics.js.map +1 -1
  112. package/lib/commonjs/list/VirtualList.js +12 -0
  113. package/lib/commonjs/list/VirtualList.js.map +1 -1
  114. package/lib/commonjs/list/VirtualList.web.js +40 -19
  115. package/lib/commonjs/list/VirtualList.web.js.map +1 -1
  116. package/lib/commonjs/list/flash-list-module.js.map +1 -1
  117. package/lib/commonjs/locale/translations/ar.js +8 -0
  118. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  119. package/lib/commonjs/locale/translations/bn.js +8 -0
  120. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  121. package/lib/commonjs/locale/translations/ca.js +8 -0
  122. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  123. package/lib/commonjs/locale/translations/de.js +8 -0
  124. package/lib/commonjs/locale/translations/de.js.map +1 -1
  125. package/lib/commonjs/locale/translations/es.js +8 -0
  126. package/lib/commonjs/locale/translations/es.js.map +1 -1
  127. package/lib/commonjs/locale/translations/fr.js +8 -0
  128. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  129. package/lib/commonjs/locale/translations/hi.js +8 -0
  130. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  131. package/lib/commonjs/locale/translations/id.js +8 -0
  132. package/lib/commonjs/locale/translations/id.js.map +1 -1
  133. package/lib/commonjs/locale/translations/it.js +8 -0
  134. package/lib/commonjs/locale/translations/it.js.map +1 -1
  135. package/lib/commonjs/locale/translations/ja.js +8 -0
  136. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  137. package/lib/commonjs/locale/translations/pt.js +8 -0
  138. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  139. package/lib/commonjs/locale/translations/ru.js +8 -0
  140. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  141. package/lib/commonjs/locale/translations/tr.js +8 -0
  142. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  143. package/lib/commonjs/locale/translations/zh.js +8 -0
  144. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  145. package/lib/commonjs/page-header/EdgeScrim.js +14 -4
  146. package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
  147. package/lib/commonjs/page-header/PageHeader.js +19 -6
  148. package/lib/commonjs/page-header/PageHeader.js.map +1 -1
  149. package/lib/commonjs/screen/ScreenBase.js +15 -6
  150. package/lib/commonjs/screen/ScreenBase.js.map +1 -1
  151. package/lib/commonjs/screen/ScreenScrollViewBase.js +12 -2
  152. package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
  153. package/lib/commonjs/screen/context.js.map +1 -1
  154. package/lib/commonjs/screen/use-intrinsic-content-height.js +53 -0
  155. package/lib/commonjs/screen/use-intrinsic-content-height.js.map +1 -0
  156. package/lib/commonjs/screen/use-screen-viewport.js +37 -6
  157. package/lib/commonjs/screen/use-screen-viewport.js.map +1 -1
  158. package/lib/commonjs/scroll/constants.js +4 -1
  159. package/lib/commonjs/scroll/constants.js.map +1 -1
  160. package/lib/commonjs/scroll/owner-handoff.js +27 -7
  161. package/lib/commonjs/scroll/owner-handoff.js.map +1 -1
  162. package/lib/commonjs/scroll/use-scroll-restoration.web.js +2 -11
  163. package/lib/commonjs/scroll/use-scroll-restoration.web.js.map +1 -1
  164. package/lib/commonjs/sidebar/Sidebar.js +121 -87
  165. package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
  166. package/lib/commonjs/sidebar/arrangement.js +36 -0
  167. package/lib/commonjs/sidebar/arrangement.js.map +1 -0
  168. package/lib/commonjs/sidebar/index.js.map +1 -1
  169. package/lib/commonjs/tab-bar/TabBarBase.js +126 -20
  170. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
  171. package/lib/commonjs/tab-bar/shared.js +3 -1
  172. package/lib/commonjs/tab-bar/shared.js.map +1 -1
  173. package/lib/commonjs/tab-pager/TabPagerBottomBar.js +12 -2
  174. package/lib/commonjs/tab-pager/TabPagerBottomBar.js.map +1 -1
  175. package/lib/module/app-shell/AppShell.js +3 -3
  176. package/lib/module/app-shell/AppShell.js.map +1 -1
  177. package/lib/module/app-shell/AppShellEngine.js +2 -1
  178. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  179. package/lib/module/app-shell/AppShellPanelLayout.js +319 -147
  180. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  181. package/lib/module/app-shell/RetainedPanelLayout.js +7 -1
  182. package/lib/module/app-shell/RetainedPanelLayout.js.map +1 -1
  183. package/lib/module/app-shell/panel-layout-css.js +19 -12
  184. package/lib/module/app-shell/panel-layout-css.js.map +1 -1
  185. package/lib/module/app-shell/panel-layout.js +32 -183
  186. package/lib/module/app-shell/panel-layout.js.map +1 -1
  187. package/lib/module/app-shell/panel-motion.js +14 -36
  188. package/lib/module/app-shell/panel-motion.js.map +1 -1
  189. package/lib/module/app-shell/panel-transitions.js +21 -0
  190. package/lib/module/app-shell/panel-transitions.js.map +1 -0
  191. package/lib/module/app-shell/shell-layout-css.js +2 -2
  192. package/lib/module/app-shell/shell-layout-css.js.map +1 -1
  193. package/lib/module/app-shell/use-panel-exit-completion.js +97 -0
  194. package/lib/module/app-shell/use-panel-exit-completion.js.map +1 -0
  195. package/lib/module/app-shell/use-panel-resize.js +22 -8
  196. package/lib/module/app-shell/use-panel-resize.js.map +1 -1
  197. package/lib/module/app-shell/use-panel-reveal.js +2 -1
  198. package/lib/module/app-shell/use-panel-reveal.js.map +1 -1
  199. package/lib/module/bottom-bar/BottomBarBase.js +143 -39
  200. package/lib/module/bottom-bar/BottomBarBase.js.map +1 -1
  201. package/lib/module/bottom-sheet/BottomSheetBase.js +3 -2
  202. package/lib/module/bottom-sheet/BottomSheetBase.js.map +1 -1
  203. package/lib/module/button/GlyphAttention.js +104 -0
  204. package/lib/module/button/GlyphAttention.js.map +1 -0
  205. package/lib/module/button/GlyphButton.js +18 -7
  206. package/lib/module/button/GlyphButton.js.map +1 -1
  207. package/lib/module/chat-composer/CompactComposer.js +14 -0
  208. package/lib/module/chat-composer/CompactComposer.js.map +1 -0
  209. package/lib/module/chat-composer/CompactComposer.web.js +14 -0
  210. package/lib/module/chat-composer/CompactComposer.web.js.map +1 -0
  211. package/lib/module/chat-composer/compact-text.js +7 -0
  212. package/lib/module/chat-composer/compact-text.js.map +1 -0
  213. package/lib/module/chat-composer/compact-types.js +4 -0
  214. package/lib/module/chat-composer/compact-types.js.map +1 -0
  215. package/lib/module/chat-composer/create-compact-composer.js +181 -0
  216. package/lib/module/chat-composer/create-compact-composer.js.map +1 -0
  217. package/lib/module/chat-composer/index.js +2 -0
  218. package/lib/module/chat-composer/index.js.map +1 -1
  219. package/lib/module/chat-composer/index.web.js +2 -0
  220. package/lib/module/chat-composer/index.web.js.map +1 -1
  221. package/lib/module/chat-composer/messages.js +7 -0
  222. package/lib/module/chat-composer/messages.js.map +1 -1
  223. package/lib/module/dialog/DialogBottomSheet.js +6 -3
  224. package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
  225. package/lib/module/engagement-bar/EngagementAction.js +7 -6
  226. package/lib/module/engagement-bar/EngagementAction.js.map +1 -1
  227. package/lib/module/engagement-bar/EngagementBar.js +29 -5
  228. package/lib/module/engagement-bar/EngagementBar.js.map +1 -1
  229. package/lib/module/engagement-bar/EngagementPop.js +10 -3
  230. package/lib/module/engagement-bar/EngagementPop.js.map +1 -1
  231. package/lib/module/engagement-bar/context.js.map +1 -1
  232. package/lib/module/engagement-bar/paint.js +60 -13
  233. package/lib/module/engagement-bar/paint.js.map +1 -1
  234. package/lib/module/hooks/use-border-box-size.js +42 -0
  235. package/lib/module/hooks/use-border-box-size.js.map +1 -0
  236. package/lib/module/icons/index.js +2 -1
  237. package/lib/module/icons/index.js.map +1 -1
  238. package/lib/module/icons/social/BookmarkFillIcon.js +9 -0
  239. package/lib/module/icons/social/BookmarkFillIcon.js.map +1 -0
  240. package/lib/module/icons/social/BookmarkIcon.js +9 -0
  241. package/lib/module/icons/social/BookmarkIcon.js.map +1 -0
  242. package/lib/module/icons/social/GifAttachmentIcon.js +9 -0
  243. package/lib/module/icons/social/GifAttachmentIcon.js.map +1 -0
  244. package/lib/module/icons/social/LikeFillIcon.js +10 -0
  245. package/lib/module/icons/social/LikeFillIcon.js.map +1 -0
  246. package/lib/module/icons/social/LikeIcon.js +11 -0
  247. package/lib/module/icons/social/LikeIcon.js.map +1 -0
  248. package/lib/module/icons/social/MediaAttachmentIcon.js +9 -0
  249. package/lib/module/icons/social/MediaAttachmentIcon.js.map +1 -0
  250. package/lib/module/icons/social/ReplyIcon.js +11 -0
  251. package/lib/module/icons/social/ReplyIcon.js.map +1 -0
  252. package/lib/module/icons/social/RepostIcon.js +9 -0
  253. package/lib/module/icons/social/RepostIcon.js.map +1 -0
  254. package/lib/module/icons/social/ShareIcon.js +9 -0
  255. package/lib/module/icons/social/ShareIcon.js.map +1 -0
  256. package/lib/module/icons/social/index.js +12 -0
  257. package/lib/module/icons/social/index.js.map +1 -0
  258. package/lib/module/index.js +1 -1
  259. package/lib/module/index.js.map +1 -1
  260. package/lib/module/index.web.js +1 -1
  261. package/lib/module/index.web.js.map +1 -1
  262. package/lib/module/layout/ScrollBar.web.js +64 -31
  263. package/lib/module/layout/ScrollBar.web.js.map +1 -1
  264. package/lib/module/layout/bottom-edge.js +14 -1
  265. package/lib/module/layout/bottom-edge.js.map +1 -1
  266. package/lib/module/layout/scroll-metrics.js.map +1 -1
  267. package/lib/module/list/VirtualList.js +12 -0
  268. package/lib/module/list/VirtualList.js.map +1 -1
  269. package/lib/module/list/VirtualList.web.js +41 -20
  270. package/lib/module/list/VirtualList.web.js.map +1 -1
  271. package/lib/module/list/flash-list-module.js.map +1 -1
  272. package/lib/module/locale/translations/ar.js +8 -0
  273. package/lib/module/locale/translations/ar.js.map +1 -1
  274. package/lib/module/locale/translations/bn.js +8 -0
  275. package/lib/module/locale/translations/bn.js.map +1 -1
  276. package/lib/module/locale/translations/ca.js +8 -0
  277. package/lib/module/locale/translations/ca.js.map +1 -1
  278. package/lib/module/locale/translations/de.js +8 -0
  279. package/lib/module/locale/translations/de.js.map +1 -1
  280. package/lib/module/locale/translations/es.js +8 -0
  281. package/lib/module/locale/translations/es.js.map +1 -1
  282. package/lib/module/locale/translations/fr.js +8 -0
  283. package/lib/module/locale/translations/fr.js.map +1 -1
  284. package/lib/module/locale/translations/hi.js +8 -0
  285. package/lib/module/locale/translations/hi.js.map +1 -1
  286. package/lib/module/locale/translations/id.js +8 -0
  287. package/lib/module/locale/translations/id.js.map +1 -1
  288. package/lib/module/locale/translations/it.js +8 -0
  289. package/lib/module/locale/translations/it.js.map +1 -1
  290. package/lib/module/locale/translations/ja.js +8 -0
  291. package/lib/module/locale/translations/ja.js.map +1 -1
  292. package/lib/module/locale/translations/pt.js +8 -0
  293. package/lib/module/locale/translations/pt.js.map +1 -1
  294. package/lib/module/locale/translations/ru.js +8 -0
  295. package/lib/module/locale/translations/ru.js.map +1 -1
  296. package/lib/module/locale/translations/tr.js +8 -0
  297. package/lib/module/locale/translations/tr.js.map +1 -1
  298. package/lib/module/locale/translations/zh.js +8 -0
  299. package/lib/module/locale/translations/zh.js.map +1 -1
  300. package/lib/module/page-header/EdgeScrim.js +14 -4
  301. package/lib/module/page-header/EdgeScrim.js.map +1 -1
  302. package/lib/module/page-header/PageHeader.js +19 -6
  303. package/lib/module/page-header/PageHeader.js.map +1 -1
  304. package/lib/module/screen/ScreenBase.js +15 -6
  305. package/lib/module/screen/ScreenBase.js.map +1 -1
  306. package/lib/module/screen/ScreenScrollViewBase.js +12 -2
  307. package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
  308. package/lib/module/screen/context.js.map +1 -1
  309. package/lib/module/screen/use-intrinsic-content-height.js +50 -0
  310. package/lib/module/screen/use-intrinsic-content-height.js.map +1 -0
  311. package/lib/module/screen/use-screen-viewport.js +39 -8
  312. package/lib/module/screen/use-screen-viewport.js.map +1 -1
  313. package/lib/module/scroll/constants.js +3 -0
  314. package/lib/module/scroll/constants.js.map +1 -1
  315. package/lib/module/scroll/owner-handoff.js +27 -8
  316. package/lib/module/scroll/owner-handoff.js.map +1 -1
  317. package/lib/module/scroll/use-scroll-restoration.web.js +1 -10
  318. package/lib/module/scroll/use-scroll-restoration.web.js.map +1 -1
  319. package/lib/module/sidebar/Sidebar.js +121 -87
  320. package/lib/module/sidebar/Sidebar.js.map +1 -1
  321. package/lib/module/sidebar/arrangement.js +32 -0
  322. package/lib/module/sidebar/arrangement.js.map +1 -0
  323. package/lib/module/sidebar/index.js.map +1 -1
  324. package/lib/module/tab-bar/TabBarBase.js +130 -23
  325. package/lib/module/tab-bar/TabBarBase.js.map +1 -1
  326. package/lib/module/tab-bar/shared.js +2 -0
  327. package/lib/module/tab-bar/shared.js.map +1 -1
  328. package/lib/module/tab-pager/TabPagerBottomBar.js +13 -3
  329. package/lib/module/tab-pager/TabPagerBottomBar.js.map +1 -1
  330. package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
  331. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  333. package/lib/typescript/commonjs/app-shell/RetainedPanelLayout.d.ts.map +1 -1
  334. package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts +2 -1
  335. package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +11 -2
  337. package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/app-shell/panel-layout.d.ts +13 -27
  339. package/lib/typescript/commonjs/app-shell/panel-layout.d.ts.map +1 -1
  340. package/lib/typescript/commonjs/app-shell/panel-motion.d.ts +1 -12
  341. package/lib/typescript/commonjs/app-shell/panel-motion.d.ts.map +1 -1
  342. package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts +4 -0
  343. package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts.map +1 -0
  344. package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/app-shell/types.d.ts +4 -0
  346. package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts +14 -0
  348. package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts.map +1 -0
  349. package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts +2 -2
  350. package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts.map +1 -1
  351. package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts +4 -2
  352. package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts.map +1 -1
  353. package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts +2 -2
  354. package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts.map +1 -1
  355. package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts +1 -1
  356. package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts.map +1 -1
  357. package/lib/typescript/commonjs/bottom-bar/types.d.ts +10 -2
  358. package/lib/typescript/commonjs/bottom-bar/types.d.ts.map +1 -1
  359. package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  360. package/lib/typescript/commonjs/bottom-sheet/types.d.ts +2 -0
  361. package/lib/typescript/commonjs/bottom-sheet/types.d.ts.map +1 -1
  362. package/lib/typescript/commonjs/button/GlyphAttention.d.ts +11 -0
  363. package/lib/typescript/commonjs/button/GlyphAttention.d.ts.map +1 -0
  364. package/lib/typescript/commonjs/button/GlyphButton.d.ts.map +1 -1
  365. package/lib/typescript/commonjs/button/types.d.ts +11 -0
  366. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  367. package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts +2 -0
  368. package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts.map +1 -0
  369. package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts +2 -0
  370. package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts.map +1 -0
  371. package/lib/typescript/commonjs/chat-composer/compact-text.d.ts +3 -0
  372. package/lib/typescript/commonjs/chat-composer/compact-text.d.ts.map +1 -0
  373. package/lib/typescript/commonjs/chat-composer/compact-types.d.ts +45 -0
  374. package/lib/typescript/commonjs/chat-composer/compact-types.d.ts.map +1 -0
  375. package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts +13 -0
  376. package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts.map +1 -0
  377. package/lib/typescript/commonjs/chat-composer/index.d.ts +3 -0
  378. package/lib/typescript/commonjs/chat-composer/index.d.ts.map +1 -1
  379. package/lib/typescript/commonjs/chat-composer/index.web.d.ts +3 -0
  380. package/lib/typescript/commonjs/chat-composer/index.web.d.ts.map +1 -1
  381. package/lib/typescript/commonjs/chat-composer/messages.d.ts +8 -0
  382. package/lib/typescript/commonjs/chat-composer/messages.d.ts.map +1 -1
  383. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts +2 -2
  384. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
  385. package/lib/typescript/commonjs/dialog/types.d.ts +2 -0
  386. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  387. package/lib/typescript/commonjs/engagement-bar/EngagementAction.d.ts.map +1 -1
  388. package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts +3 -3
  389. package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts.map +1 -1
  390. package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts +2 -1
  391. package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/engagement-bar/context.d.ts +1 -0
  393. package/lib/typescript/commonjs/engagement-bar/context.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/engagement-bar/paint.d.ts +4 -2
  395. package/lib/typescript/commonjs/engagement-bar/paint.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/engagement-bar/types.d.ts +10 -1
  397. package/lib/typescript/commonjs/engagement-bar/types.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts +13 -0
  399. package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts.map +1 -0
  400. package/lib/typescript/commonjs/icons/index.d.ts +1 -0
  401. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  402. package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts +8 -0
  403. package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts.map +1 -0
  404. package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts +8 -0
  405. package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts.map +1 -0
  406. package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts +8 -0
  407. package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts.map +1 -0
  408. package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts +8 -0
  409. package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts.map +1 -0
  410. package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts +8 -0
  411. package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts.map +1 -0
  412. package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts +8 -0
  413. package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
  414. package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts +8 -0
  415. package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts.map +1 -0
  416. package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts +8 -0
  417. package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts.map +1 -0
  418. package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts +8 -0
  419. package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts.map +1 -0
  420. package/lib/typescript/commonjs/icons/social/index.d.ts +10 -0
  421. package/lib/typescript/commonjs/icons/social/index.d.ts.map +1 -0
  422. package/lib/typescript/commonjs/index.d.ts +2 -2
  423. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  424. package/lib/typescript/commonjs/index.web.d.ts +2 -2
  425. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  426. package/lib/typescript/commonjs/layout/ScrollBar.web.d.ts.map +1 -1
  427. package/lib/typescript/commonjs/layout/bottom-edge.d.ts +2 -0
  428. package/lib/typescript/commonjs/layout/bottom-edge.d.ts.map +1 -1
  429. package/lib/typescript/commonjs/layout/scroll-metrics.d.ts +2 -0
  430. package/lib/typescript/commonjs/layout/scroll-metrics.d.ts.map +1 -1
  431. package/lib/typescript/commonjs/layout/types.d.ts +2 -2
  432. package/lib/typescript/commonjs/layout/types.d.ts.map +1 -1
  433. package/lib/typescript/commonjs/list/VirtualList.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/list/VirtualList.web.d.ts.map +1 -1
  435. package/lib/typescript/commonjs/list/flash-list-module.d.ts +1 -1
  436. package/lib/typescript/commonjs/list/flash-list-module.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  439. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  441. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  443. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  445. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  447. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  448. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  449. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  450. package/lib/typescript/commonjs/locale/translations/types.d.ts +2 -1
  451. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  452. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  453. package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts +3 -1
  454. package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
  455. package/lib/typescript/commonjs/page-header/PageHeader.d.ts +1 -1
  456. package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
  457. package/lib/typescript/commonjs/page-header/types.d.ts +2 -0
  458. package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
  460. package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
  461. package/lib/typescript/commonjs/screen/context.d.ts +3 -0
  462. package/lib/typescript/commonjs/screen/context.d.ts.map +1 -1
  463. package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts +3 -0
  464. package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts.map +1 -0
  465. package/lib/typescript/commonjs/screen/use-screen-viewport.d.ts.map +1 -1
  466. package/lib/typescript/commonjs/scroll/constants.d.ts +2 -0
  467. package/lib/typescript/commonjs/scroll/constants.d.ts.map +1 -1
  468. package/lib/typescript/commonjs/scroll/owner-handoff.d.ts +3 -1
  469. package/lib/typescript/commonjs/scroll/owner-handoff.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/scroll/use-scroll-restoration.web.d.ts.map +1 -1
  471. package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
  472. package/lib/typescript/commonjs/sidebar/arrangement.d.ts +32 -0
  473. package/lib/typescript/commonjs/sidebar/arrangement.d.ts.map +1 -0
  474. package/lib/typescript/commonjs/sidebar/index.d.ts +1 -0
  475. package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
  476. package/lib/typescript/commonjs/sidebar/types.d.ts +13 -1
  477. package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
  478. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
  479. package/lib/typescript/commonjs/tab-bar/shared.d.ts +2 -0
  480. package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -1
  481. package/lib/typescript/commonjs/tab-bar/types.d.ts +2 -0
  482. package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -1
  483. package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts +1 -1
  484. package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
  485. package/lib/typescript/commonjs/tab-pager/types.d.ts +4 -1
  486. package/lib/typescript/commonjs/tab-pager/types.d.ts.map +1 -1
  487. package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
  488. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  489. package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
  490. package/lib/typescript/module/app-shell/RetainedPanelLayout.d.ts.map +1 -1
  491. package/lib/typescript/module/app-shell/panel-layout-css.d.ts +2 -1
  492. package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
  493. package/lib/typescript/module/app-shell/panel-layout-types.d.ts +11 -2
  494. package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
  495. package/lib/typescript/module/app-shell/panel-layout.d.ts +13 -27
  496. package/lib/typescript/module/app-shell/panel-layout.d.ts.map +1 -1
  497. package/lib/typescript/module/app-shell/panel-motion.d.ts +1 -12
  498. package/lib/typescript/module/app-shell/panel-motion.d.ts.map +1 -1
  499. package/lib/typescript/module/app-shell/panel-transitions.d.ts +4 -0
  500. package/lib/typescript/module/app-shell/panel-transitions.d.ts.map +1 -0
  501. package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
  502. package/lib/typescript/module/app-shell/types.d.ts +4 -0
  503. package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
  504. package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts +14 -0
  505. package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts.map +1 -0
  506. package/lib/typescript/module/app-shell/use-panel-reorder.d.ts +2 -2
  507. package/lib/typescript/module/app-shell/use-panel-reorder.d.ts.map +1 -1
  508. package/lib/typescript/module/app-shell/use-panel-resize.d.ts +4 -2
  509. package/lib/typescript/module/app-shell/use-panel-resize.d.ts.map +1 -1
  510. package/lib/typescript/module/app-shell/use-panel-reveal.d.ts +2 -2
  511. package/lib/typescript/module/app-shell/use-panel-reveal.d.ts.map +1 -1
  512. package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts +1 -1
  513. package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts.map +1 -1
  514. package/lib/typescript/module/bottom-bar/types.d.ts +10 -2
  515. package/lib/typescript/module/bottom-bar/types.d.ts.map +1 -1
  516. package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  517. package/lib/typescript/module/bottom-sheet/types.d.ts +2 -0
  518. package/lib/typescript/module/bottom-sheet/types.d.ts.map +1 -1
  519. package/lib/typescript/module/button/GlyphAttention.d.ts +11 -0
  520. package/lib/typescript/module/button/GlyphAttention.d.ts.map +1 -0
  521. package/lib/typescript/module/button/GlyphButton.d.ts.map +1 -1
  522. package/lib/typescript/module/button/types.d.ts +11 -0
  523. package/lib/typescript/module/button/types.d.ts.map +1 -1
  524. package/lib/typescript/module/chat-composer/CompactComposer.d.ts +2 -0
  525. package/lib/typescript/module/chat-composer/CompactComposer.d.ts.map +1 -0
  526. package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts +2 -0
  527. package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts.map +1 -0
  528. package/lib/typescript/module/chat-composer/compact-text.d.ts +3 -0
  529. package/lib/typescript/module/chat-composer/compact-text.d.ts.map +1 -0
  530. package/lib/typescript/module/chat-composer/compact-types.d.ts +45 -0
  531. package/lib/typescript/module/chat-composer/compact-types.d.ts.map +1 -0
  532. package/lib/typescript/module/chat-composer/create-compact-composer.d.ts +13 -0
  533. package/lib/typescript/module/chat-composer/create-compact-composer.d.ts.map +1 -0
  534. package/lib/typescript/module/chat-composer/index.d.ts +3 -0
  535. package/lib/typescript/module/chat-composer/index.d.ts.map +1 -1
  536. package/lib/typescript/module/chat-composer/index.web.d.ts +3 -0
  537. package/lib/typescript/module/chat-composer/index.web.d.ts.map +1 -1
  538. package/lib/typescript/module/chat-composer/messages.d.ts +8 -0
  539. package/lib/typescript/module/chat-composer/messages.d.ts.map +1 -1
  540. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts +2 -2
  541. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
  542. package/lib/typescript/module/dialog/types.d.ts +2 -0
  543. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  544. package/lib/typescript/module/engagement-bar/EngagementAction.d.ts.map +1 -1
  545. package/lib/typescript/module/engagement-bar/EngagementBar.d.ts +3 -3
  546. package/lib/typescript/module/engagement-bar/EngagementBar.d.ts.map +1 -1
  547. package/lib/typescript/module/engagement-bar/EngagementPop.d.ts +2 -1
  548. package/lib/typescript/module/engagement-bar/EngagementPop.d.ts.map +1 -1
  549. package/lib/typescript/module/engagement-bar/context.d.ts +1 -0
  550. package/lib/typescript/module/engagement-bar/context.d.ts.map +1 -1
  551. package/lib/typescript/module/engagement-bar/paint.d.ts +4 -2
  552. package/lib/typescript/module/engagement-bar/paint.d.ts.map +1 -1
  553. package/lib/typescript/module/engagement-bar/types.d.ts +10 -1
  554. package/lib/typescript/module/engagement-bar/types.d.ts.map +1 -1
  555. package/lib/typescript/module/hooks/use-border-box-size.d.ts +13 -0
  556. package/lib/typescript/module/hooks/use-border-box-size.d.ts.map +1 -0
  557. package/lib/typescript/module/icons/index.d.ts +1 -0
  558. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  559. package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts +8 -0
  560. package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts.map +1 -0
  561. package/lib/typescript/module/icons/social/BookmarkIcon.d.ts +8 -0
  562. package/lib/typescript/module/icons/social/BookmarkIcon.d.ts.map +1 -0
  563. package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts +8 -0
  564. package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts.map +1 -0
  565. package/lib/typescript/module/icons/social/LikeFillIcon.d.ts +8 -0
  566. package/lib/typescript/module/icons/social/LikeFillIcon.d.ts.map +1 -0
  567. package/lib/typescript/module/icons/social/LikeIcon.d.ts +8 -0
  568. package/lib/typescript/module/icons/social/LikeIcon.d.ts.map +1 -0
  569. package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts +8 -0
  570. package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
  571. package/lib/typescript/module/icons/social/ReplyIcon.d.ts +8 -0
  572. package/lib/typescript/module/icons/social/ReplyIcon.d.ts.map +1 -0
  573. package/lib/typescript/module/icons/social/RepostIcon.d.ts +8 -0
  574. package/lib/typescript/module/icons/social/RepostIcon.d.ts.map +1 -0
  575. package/lib/typescript/module/icons/social/ShareIcon.d.ts +8 -0
  576. package/lib/typescript/module/icons/social/ShareIcon.d.ts.map +1 -0
  577. package/lib/typescript/module/icons/social/index.d.ts +10 -0
  578. package/lib/typescript/module/icons/social/index.d.ts.map +1 -0
  579. package/lib/typescript/module/index.d.ts +2 -2
  580. package/lib/typescript/module/index.d.ts.map +1 -1
  581. package/lib/typescript/module/index.web.d.ts +2 -2
  582. package/lib/typescript/module/index.web.d.ts.map +1 -1
  583. package/lib/typescript/module/layout/ScrollBar.web.d.ts.map +1 -1
  584. package/lib/typescript/module/layout/bottom-edge.d.ts +2 -0
  585. package/lib/typescript/module/layout/bottom-edge.d.ts.map +1 -1
  586. package/lib/typescript/module/layout/scroll-metrics.d.ts +2 -0
  587. package/lib/typescript/module/layout/scroll-metrics.d.ts.map +1 -1
  588. package/lib/typescript/module/layout/types.d.ts +2 -2
  589. package/lib/typescript/module/layout/types.d.ts.map +1 -1
  590. package/lib/typescript/module/list/VirtualList.d.ts.map +1 -1
  591. package/lib/typescript/module/list/VirtualList.web.d.ts.map +1 -1
  592. package/lib/typescript/module/list/flash-list-module.d.ts +1 -1
  593. package/lib/typescript/module/list/flash-list-module.d.ts.map +1 -1
  594. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  595. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  596. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  597. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  598. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  599. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  600. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  601. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  602. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  603. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  604. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  605. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  606. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  607. package/lib/typescript/module/locale/translations/types.d.ts +2 -1
  608. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  609. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  610. package/lib/typescript/module/page-header/EdgeScrim.d.ts +3 -1
  611. package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
  612. package/lib/typescript/module/page-header/PageHeader.d.ts +1 -1
  613. package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
  614. package/lib/typescript/module/page-header/types.d.ts +2 -0
  615. package/lib/typescript/module/page-header/types.d.ts.map +1 -1
  616. package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
  617. package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
  618. package/lib/typescript/module/screen/context.d.ts +3 -0
  619. package/lib/typescript/module/screen/context.d.ts.map +1 -1
  620. package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts +3 -0
  621. package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts.map +1 -0
  622. package/lib/typescript/module/screen/use-screen-viewport.d.ts.map +1 -1
  623. package/lib/typescript/module/scroll/constants.d.ts +2 -0
  624. package/lib/typescript/module/scroll/constants.d.ts.map +1 -1
  625. package/lib/typescript/module/scroll/owner-handoff.d.ts +3 -1
  626. package/lib/typescript/module/scroll/owner-handoff.d.ts.map +1 -1
  627. package/lib/typescript/module/scroll/use-scroll-restoration.web.d.ts.map +1 -1
  628. package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
  629. package/lib/typescript/module/sidebar/arrangement.d.ts +32 -0
  630. package/lib/typescript/module/sidebar/arrangement.d.ts.map +1 -0
  631. package/lib/typescript/module/sidebar/index.d.ts +1 -0
  632. package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
  633. package/lib/typescript/module/sidebar/types.d.ts +13 -1
  634. package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
  635. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
  636. package/lib/typescript/module/tab-bar/shared.d.ts +2 -0
  637. package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -1
  638. package/lib/typescript/module/tab-bar/types.d.ts +2 -0
  639. package/lib/typescript/module/tab-bar/types.d.ts.map +1 -1
  640. package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts +1 -1
  641. package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
  642. package/lib/typescript/module/tab-pager/types.d.ts +4 -1
  643. package/lib/typescript/module/tab-pager/types.d.ts.map +1 -1
  644. package/package.json +154 -1
  645. package/src/__tests__/support/public-part-classifications.json +22 -1
  646. package/src/__tests__/support/yoga-host-tree.ts +67 -4
  647. package/src/app-shell/AppShell.tsx +7 -3
  648. package/src/app-shell/AppShellEngine.tsx +6 -2
  649. package/src/app-shell/AppShellPanelLayout.tsx +466 -189
  650. package/src/app-shell/RetainedPanelLayout.tsx +7 -1
  651. package/src/app-shell/panel-layout-css.ts +41 -27
  652. package/src/app-shell/panel-layout-types.ts +11 -2
  653. package/src/app-shell/panel-layout.ts +49 -256
  654. package/src/app-shell/panel-motion.ts +34 -52
  655. package/src/app-shell/panel-transitions.ts +39 -0
  656. package/src/app-shell/shell-layout-css.ts +6 -2
  657. package/src/app-shell/types.ts +4 -0
  658. package/src/app-shell/use-panel-exit-completion.ts +95 -0
  659. package/src/app-shell/use-panel-reorder.ts +2 -2
  660. package/src/app-shell/use-panel-resize.ts +37 -10
  661. package/src/app-shell/use-panel-reveal.ts +4 -9
  662. package/src/bottom-bar/BottomBarBase.tsx +230 -46
  663. package/src/bottom-bar/types.ts +10 -2
  664. package/src/bottom-sheet/BottomSheetBase.tsx +6 -2
  665. package/src/bottom-sheet/types.ts +2 -0
  666. package/src/button/GlyphAttention.tsx +100 -0
  667. package/src/button/GlyphButton.tsx +21 -6
  668. package/src/button/types.ts +11 -0
  669. package/src/chat-composer/CompactComposer.tsx +7 -0
  670. package/src/chat-composer/CompactComposer.web.tsx +7 -0
  671. package/src/chat-composer/compact-text.ts +4 -0
  672. package/src/chat-composer/compact-types.ts +47 -0
  673. package/src/chat-composer/create-compact-composer.tsx +213 -0
  674. package/src/chat-composer/index.ts +8 -0
  675. package/src/chat-composer/index.web.ts +8 -0
  676. package/src/chat-composer/messages.ts +16 -0
  677. package/src/dialog/DialogBottomSheet.tsx +13 -2
  678. package/src/dialog/types.ts +2 -0
  679. package/src/engagement-bar/EngagementAction.tsx +5 -4
  680. package/src/engagement-bar/EngagementBar.tsx +30 -5
  681. package/src/engagement-bar/EngagementPop.tsx +11 -3
  682. package/src/engagement-bar/context.ts +1 -0
  683. package/src/engagement-bar/paint.ts +60 -13
  684. package/src/engagement-bar/types.ts +10 -1
  685. package/src/hooks/use-border-box-size.ts +38 -0
  686. package/src/icons/index.ts +2 -1
  687. package/src/icons/social/BookmarkFillIcon.tsx +6 -0
  688. package/src/icons/social/BookmarkIcon.tsx +6 -0
  689. package/src/icons/social/GifAttachmentIcon.tsx +6 -0
  690. package/src/icons/social/LikeFillIcon.tsx +7 -0
  691. package/src/icons/social/LikeIcon.tsx +8 -0
  692. package/src/icons/social/MediaAttachmentIcon.tsx +6 -0
  693. package/src/icons/social/ReplyIcon.tsx +8 -0
  694. package/src/icons/social/RepostIcon.tsx +6 -0
  695. package/src/icons/social/ShareIcon.tsx +6 -0
  696. package/src/icons/social/index.ts +9 -0
  697. package/src/index.ts +5 -0
  698. package/src/index.web.ts +5 -0
  699. package/src/layout/ScrollBar.web.tsx +74 -40
  700. package/src/layout/bottom-edge.tsx +17 -0
  701. package/src/layout/scroll-metrics.tsx +2 -0
  702. package/src/layout/types.ts +2 -2
  703. package/src/list/VirtualList.tsx +18 -0
  704. package/src/list/VirtualList.web.tsx +69 -22
  705. package/src/list/flash-list-module.ts +2 -0
  706. package/src/locale/translations/ar.ts +9 -0
  707. package/src/locale/translations/bn.ts +9 -0
  708. package/src/locale/translations/ca.ts +10 -0
  709. package/src/locale/translations/de.ts +10 -0
  710. package/src/locale/translations/es.ts +10 -0
  711. package/src/locale/translations/fr.ts +10 -0
  712. package/src/locale/translations/hi.ts +9 -0
  713. package/src/locale/translations/id.ts +10 -0
  714. package/src/locale/translations/it.ts +10 -0
  715. package/src/locale/translations/ja.ts +10 -0
  716. package/src/locale/translations/pt.ts +10 -0
  717. package/src/locale/translations/ru.ts +10 -0
  718. package/src/locale/translations/tr.ts +10 -0
  719. package/src/locale/translations/types.ts +5 -1
  720. package/src/locale/translations/zh.ts +9 -0
  721. package/src/page-header/EdgeScrim.tsx +29 -9
  722. package/src/page-header/PageHeader.tsx +10 -6
  723. package/src/page-header/types.ts +2 -0
  724. package/src/screen/ScreenBase.tsx +13 -6
  725. package/src/screen/ScreenScrollViewBase.tsx +24 -2
  726. package/src/screen/context.ts +3 -0
  727. package/src/screen/use-intrinsic-content-height.ts +56 -0
  728. package/src/screen/use-screen-viewport.ts +60 -11
  729. package/src/scroll/constants.ts +3 -0
  730. package/src/scroll/owner-handoff.ts +45 -11
  731. package/src/scroll/use-scroll-restoration.web.ts +4 -10
  732. package/src/sidebar/Sidebar.tsx +146 -121
  733. package/src/sidebar/arrangement.ts +47 -0
  734. package/src/sidebar/index.ts +6 -0
  735. package/src/sidebar/types.ts +13 -1
  736. package/src/tab-bar/TabBarBase.tsx +193 -27
  737. package/src/tab-bar/shared.ts +2 -0
  738. package/src/tab-bar/types.ts +2 -0
  739. package/src/tab-pager/TabPagerBottomBar.tsx +23 -3
  740. package/src/tab-pager/types.ts +4 -1
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.usePanelExitCompletion = usePanelExitCompletion;
7
+ var _react = require("react");
8
+ var _panelTransitions = require("./panel-transitions.js");
9
+ /** Observe an actual exit only; never retain application content or run a clock. */
10
+ function usePanelExitCompletion({
11
+ present,
12
+ floating,
13
+ css,
14
+ reducedMotion,
15
+ owner,
16
+ onExitComplete
17
+ }) {
18
+ const callback = (0, _react.useRef)(onExitComplete);
19
+ callback.current = onExitComplete;
20
+ const previous = (0, _react.useRef)({
21
+ present,
22
+ floating
23
+ });
24
+ const serial = (0, _react.useRef)(0);
25
+ const pending = (0, _react.useRef)(null);
26
+ const sheetClosed = (0, _react.useRef)(false);
27
+ if (present) sheetClosed.current = false;
28
+ const finish = (0, _react.useCallback)(generation => {
29
+ if (pending.current?.generation !== generation) return;
30
+ const complete = pending.current.complete;
31
+ pending.current = null;
32
+ complete();
33
+ }, []);
34
+ (0, _react.useLayoutEffect)(() => {
35
+ if (present) {
36
+ previous.current = {
37
+ present,
38
+ floating
39
+ };
40
+ pending.current = null;
41
+ serial.current += 1;
42
+ return;
43
+ }
44
+ const wasPresent = previous.current.present;
45
+ const wasFloating = previous.current.floating;
46
+ previous.current = {
47
+ present,
48
+ floating
49
+ };
50
+ if (!callback.current || !wasPresent && pending.current === null) return;
51
+ if (!pending.current) pending.current = {
52
+ generation: ++serial.current,
53
+ complete: callback.current,
54
+ floating: wasFloating
55
+ };
56
+ const {
57
+ generation
58
+ } = pending.current;
59
+ // A breakpoint removed the outgoing presentation. The replacement was
60
+ // never opened and therefore has no exit animation to report.
61
+ if (pending.current.floating !== floating) {
62
+ finish(generation);
63
+ return;
64
+ }
65
+ if (floating) {
66
+ // A gesture can finish the Dialog before its onOpenChange state commits.
67
+ if (sheetClosed.current) finish(generation);
68
+ return;
69
+ }
70
+ // Native reports the end of its existing worklet animation.
71
+ if (!css) return;
72
+ let disposed = false;
73
+ const settled = () => {
74
+ if (disposed || pending.current?.generation !== generation) return;
75
+ const node = owner.current;
76
+ const transitions = reducedMotion || !node ? [] : (0, _panelTransitions.panelExitTransitions)(node);
77
+ if (!transitions.length) finish(generation);else void Promise.allSettled(transitions.map(animation => animation.finished)).then(settled);
78
+ };
79
+ settled();
80
+ return () => {
81
+ disposed = true;
82
+ };
83
+ }, [present, floating, css, reducedMotion, owner, finish]);
84
+ (0, _react.useLayoutEffect)(() => () => {
85
+ pending.current = null;
86
+ }, []);
87
+ const captureNativeCompletion = (0, _react.useCallback)(() => {
88
+ const generation = pending.current?.generation;
89
+ return generation === undefined ? undefined : () => finish(generation);
90
+ }, [finish]);
91
+ const completeFloating = (0, _react.useCallback)(() => {
92
+ sheetClosed.current = true;
93
+ if (pending.current !== null) finish(pending.current.generation);
94
+ }, [finish]);
95
+ return {
96
+ captureNativeCompletion,
97
+ completeFloating
98
+ };
99
+ }
100
+ //# sourceMappingURL=use-panel-exit-completion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_panelTransitions","usePanelExitCompletion","present","floating","css","reducedMotion","owner","onExitComplete","callback","useRef","current","previous","serial","pending","sheetClosed","finish","useCallback","generation","complete","useLayoutEffect","wasPresent","wasFloating","disposed","settled","node","transitions","panelExitTransitions","length","Promise","allSettled","map","animation","finished","then","captureNativeCompletion","undefined","completeFloating"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-exit-completion.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAEA;AACO,SAASE,sBAAsBA,CAAC;EACrCC,OAAO;EACPC,QAAQ;EACRC,GAAG;EACHC,aAAa;EACbC,KAAK;EACLC;AAQF,CAAC,EAAE;EACD,MAAMC,QAAQ,GAAG,IAAAC,aAAM,EAACF,cAAc,CAAC;EACvCC,QAAQ,CAACE,OAAO,GAAGH,cAAc;EACjC,MAAMI,QAAQ,GAAG,IAAAF,aAAM,EAAC;IAAEP,OAAO;IAAEC;EAAS,CAAC,CAAC;EAC9C,MAAMS,MAAM,GAAG,IAAAH,aAAM,EAAC,CAAC,CAAC;EACxB,MAAMI,OAAO,GAAG,IAAAJ,aAAM,EACpB,IACF,CAAC;EACD,MAAMK,WAAW,GAAG,IAAAL,aAAM,EAAC,KAAK,CAAC;EACjC,IAAIP,OAAO,EAAEY,WAAW,CAACJ,OAAO,GAAG,KAAK;EACxC,MAAMK,MAAM,GAAG,IAAAC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O,CAACH,OAAO,CAACO,UAAU,CAAC;EAClE,CAAC,EAAE,CAACF,MAAM,CAAC,CAAC;EACZ,OAAO;IAAEmB,uBAAuB;IAAEE;EAAiB,CAAC;AACtD","ignoreList":[]}
@@ -73,12 +73,16 @@ function usePanelResize({
73
73
  const snapshot = panel => {
74
74
  const visible = tracks.filter(track => track.visible);
75
75
  const nextId = visible[visible.findIndex(track => track.id === panel.id) + 1]?.id;
76
- const next = layout.mode !== 'deck' && !(vertical && document) ? layout.panels.find(candidate => candidate.id === nextId) : undefined;
76
+ const next = layout.mode !== 'deck' && layout.mode !== 'flow' && !(vertical && document) ? layout.panels.find(candidate => candidate.id === nextId) : undefined;
77
+ const firstSize = size(panel.id);
78
+ const nextSize = next ? size(next.id) : 0;
77
79
  return {
78
80
  first: (0, _panelLayout.panelForAxis)(panel, vertical ? 'vertical' : 'horizontal'),
79
81
  next: next ? (0, _panelLayout.panelForAxis)(next, vertical ? 'vertical' : 'horizontal') : undefined,
80
- firstSize: size(panel.id),
81
- nextSize: next ? size(next.id) : 0
82
+ firstSize,
83
+ nextSize,
84
+ firstContentMax: vertical ? previews.current.get(panel.id)?.contentHeight?.(firstSize) : undefined,
85
+ nextContentMax: vertical && next ? previews.current.get(next.id)?.contentHeight?.(nextSize) : undefined
82
86
  };
83
87
  };
84
88
  const control = {
@@ -91,6 +95,11 @@ function usePanelResize({
91
95
  // Cancel the transition-restoration frame before starting a new transaction.
92
96
  if (frame.current !== null) cancelAnimationFrame(frame.current);
93
97
  frame.current = null;
98
+ const measured = snapshot(panel);
99
+ if (!(measured.firstSize > 0) || measured.next && !(measured.nextSize > 0)) {
100
+ interrupted.current = true;
101
+ return;
102
+ }
94
103
  const root = scope ? rootRef.current : null;
95
104
  const shell = root?.closest(`[data-bloom-layout="${scope}"]`);
96
105
  const targets = new Map();
@@ -108,7 +117,7 @@ function usePanelResize({
108
117
  root,
109
118
  envelope: layout.mode === 'deck' && !vertical && layout.horizontalScroll !== 'contained' ? shell?.querySelector(`[data-bloom-reading-envelope="${scope}"]`) ?? null : null,
110
119
  targets,
111
- ...snapshot(panel),
120
+ ...measured,
112
121
  properties: new Map()
113
122
  };
114
123
  root?.setAttribute('data-bloom-panel-resizing', vertical ? 'vertical' : 'horizontal');
@@ -120,10 +129,15 @@ function usePanelResize({
120
129
  first,
121
130
  next,
122
131
  firstSize,
123
- nextSize
132
+ nextSize,
133
+ firstContentMax,
134
+ nextContentMax
124
135
  } = active ?? snapshot(panel);
125
- const values = next ? (0, _panelLayout.resizePanelPair)(first, next, firstSize, nextSize, requested) : {
126
- [panel.id]: (0, _panelLayout.clampPanelWidth)(first, requested)
136
+ if (!(firstSize > 0) || next && !(nextSize > 0)) return;
137
+ const firstLimit = (0, _panelLayout.panelContentResizeLimit)(first, active?.values?.[first.id] ?? firstSize, firstContentMax);
138
+ const nextLimit = next ? (0, _panelLayout.panelContentResizeLimit)(next, active?.values?.[next.id] ?? nextSize, nextContentMax) : undefined;
139
+ const values = nextLimit ? (0, _panelLayout.resizePanelPair)(firstLimit, nextLimit, firstSize, nextSize, requested) : {
140
+ [panel.id]: (0, _panelLayout.clampPanelWidth)(firstLimit, requested)
127
141
  };
128
142
  if (!active) {
129
143
  onCommit(values);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_panelLayout","_panelLayoutCss","usePanelResize","layout","tracks","vertical","document","scope","rootRef","onCommit","drag","useRef","previews","Map","register","useCallback","id","preview","current","set","get","delete","pending","interrupted","frame","key","JSON","stringify","mode","filter","t","visible","map","clear","cancelAnimationFrame","previous","properties","forEach","style","property","removeProperty","requestAnimationFrame","root","removeAttribute","cancel","useLayoutEffect","size","active","firstSize","read","index","panels","findIndex","panel","node","querySelector","bounds","getBoundingClientRect","height","width","snapshot","track","nextId","next","find","candidate","undefined","first","panelForAxis","nextSize","control","start","shell","closest","targets","panelSizeProperty","grow","panelGrowProperty","envelope","horizontalScroll","setAttribute","resize","requested","values","resizePanelPair","clampPanelWidth","Object","entries","every","value","write","content","Set","add","setProperty","update","target","nudge","delta","end"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-resize.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,eAAA,GAAAF,OAAA;AAuBA;AACO,SAASG,cAAcA,CAAC;EAC7BC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,OAAO;EACPC;AASF,CAAC,EAAE;EACD,MAAMC,IAAI,GAAG,IAAAC,aAAM,EAAc,IAAI,CAAC;EACtC,MAAMC,QAAQ,GAAG,IAAAD,aAAM,EAAC,IAAIE,GAAG,CAA6B,CAAC,CAAC;EAC9D,MAAMC,QAAQ,GAAG,IAAAC,kBAAW,EAAC,CAACC,EAAU,EAAEC,OAA2B,KAAK;IACxEL,QAAQ,CAACM,OAAO,CAACC,GAAG,CAACH,EAAE,EAAEC,OAAO,CAAC;IACjC,OAAO,MAAM;MACX,IAAIL,QAAQ,CAACM,OAAO,CAACE,GAAG,CAACJ,EAAE,CAAC,KAAKC,OAAO,EAAEL,QAAQ,CAACM,OAAO,CAACG,MAAM,CAACL,EAAE,CAAC;IACvE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,MAAMM,OAAO,GAAG,IAAAX,aAAM,EAAc,IAAI,CAAC;EACzC,MAAMY,WAAW,GAAG,IAAAZ,aAAM,EAAC,KAAK,CAAC;EACjC,MAAMa,KAAK,GAAG,IAAAb,aAAM,EAAgB,IAAI,CAAC;EACzC,MAAMc,GAAG,GAAGC,IAAI,CAACC,SAAS,CAAC,CACzBpB,KAAK,EACLF,QAAQ,EACRF,MAAM,CAACyB,IAAI,EACXtB,QAAQ,EACRF,MAAM,CAACyB,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,OAAO,CAAC,CAACC,GAAG,CAAEF,CAAC,IAAKA,CAAC,CAACd,EAAE,CAAC,CACjD,CAAC;EAEF,MAAMiB,KAAK,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MAAM,EAAE;MACbrC,IAAI,CAACQ,OAAO,GAAG,IAAI;MACnBI,OAAO,CAACJ,OAAO,GAAG6B,MAAM;MACxB,IAAIA,MAAM,CAACoC,MAAM,EAAE1E,QAAQ,CAACsC,MAAM,CAACoC,MAAM,CAAC;MAC1C;MACA3D,KAAK,CAACN,OAAO,GAAGuB,qBAAqB,CAACR,KAAK,CAAC;IAC9C;EACF,CAAC;EACD,OAAOqC,OAAO;AAChB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_panelLayout","_panelLayoutCss","usePanelResize","layout","tracks","vertical","document","scope","rootRef","onCommit","drag","useRef","previews","Map","register","useCallback","id","preview","current","set","get","delete","pending","interrupted","frame","key","JSON","stringify","mode","filter","t","visible","map","clear","cancelAnimationFrame","previous","properties","forEach","style","property","removeProperty","requestAnimationFrame","root","removeAttribute","cancel","useLayoutEffect","size","active","firstSize","read","index","panels","findIndex","panel","node","querySelector","bounds","getBoundingClientRect","height","width","snapshot","track","nextId","next","find","candidate","undefined","nextSize","first","panelForAxis","firstContentMax","contentHeight","nextContentMax","control","start","measured","shell","closest","targets","panelSizeProperty","grow","panelGrowProperty","envelope","horizontalScroll","setAttribute","resize","requested","firstLimit","panelContentResizeLimit","values","nextLimit","resizePanelPair","clampPanelWidth","Object","entries","every","value","write","content","Set","add","setProperty","update","target","nudge","delta","end"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-resize.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,eAAA,GAAAF,OAAA;AA2BA;AACO,SAASG,cAAcA,CAAC;EAC7BC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,QAAQ;EACRC,KAAK;EACLC,OAAO;EACPC;AASF,CAAC,EAAE;EACD,MAAMC,IAAI,GAAG,IAAAC,aAAM,EAAc,IAAI,CAAC;EACtC,MAAMC,QAAQ,GAAG,IAAAD,aAAM,EAAC,IAAIE,GAA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DC,KAAK,CAACM,MAAM,CAACjD,IAAI,CAAChB,KAAK,EAAEiE,MAAM,CAACvB,IAAI,EAAE,GAAG,CAAC;QAC1C,IAAIjC,MAAM,CAACmC,QAAQ,EAAEe,KAAK,CAAClD,MAAM,CAACmC,QAAQ,CAAC5C,KAAK,EAAEiE,MAAM,CAACzD,IAAI,EAAE,GAAGkD,KAAK,IAAI,CAAC;MAC9E;IACF,CAAC;IACDQ,KAAKA,CAACnD,KAA8B,EAAEoD,KAAa,EAAE;MACnDhC,OAAO,CAACC,KAAK,CAACrB,KAAK,CAAC;MACpBoB,OAAO,CAACY,MAAM,CAAChC,KAAK,EAAEoB,OAAO,CAAC3B,IAAI,CAACO,KAAK,CAACrC,EAAE,CAAC,GAAGyF,KAAK,CAAC;MACrDhC,OAAO,CAACiC,GAAG,CAAC,CAAC;IACf,CAAC;IACDA,GAAGA,CAAA,EAAG;MACJnF,WAAW,CAACL,OAAO,GAAG,KAAK;MAC3B,MAAM6B,MAAM,GAAGrC,IAAI,CAACQ,OAAO;MAC3B,IAAI,CAAC6B,MAAM,EAAE;MACbrC,IAAI,CAACQ,OAAO,GAAG,IAAI;MACnBI,OAAO,CAACJ,OAAO,GAAG6B,MAAM;MACxB,IAAIA,MAAM,CAAC0C,MAAM,EAAEhF,QAAQ,CAACsC,MAAM,CAAC0C,MAAM,CAAC;MAC1C;MACAjE,KAAK,CAACN,OAAO,GAAGuB,qBAAqB,CAACR,KAAK,CAAC;IAC9C;EACF,CAAC;EACD,OAAOwC,OAAO;AAChB","ignoreList":[]}
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.usePanelReveal = usePanelReveal;
7
7
  var _react = require("react");
8
+ var _panelTransitions = require("./panel-transitions.js");
8
9
  /** Selection can hydrate at any time. Only a new explicit action may move the page. */
9
10
  function usePanelReveal({
10
11
  rootRef,
@@ -35,7 +36,7 @@ function usePanelReveal({
35
36
  const envelope = root.closest(`[data-bloom-reading-envelope="${scope}"]`);
36
37
  const owners = Array.from(root.querySelectorAll(`[data-bloom-panel-owner="${scope}"]`));
37
38
  if (envelope) owners.push(envelope);
38
- const transitions = owners.flatMap(owner => (owner.getAnimations?.() ?? []).filter(animation => 'transitionProperty' in animation && (animation.pending || animation.playState === 'running')));
39
+ const transitions = (0, _panelTransitions.panelGeometryTransitions)(owners);
39
40
  if (transitions.length) {
40
41
  void Promise.allSettled(transitions.map(animation => animation.finished)).then(revealWhenSettled);
41
42
  return;
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","usePanelReveal","rootRef","request","enabled","scope","panels","tracks","reducedMotion","consumed","useRef","undefined","useEffect","current","id","requestKey","some","track","visible","index","findIndex","panel","root","node","querySelector","scrollIntoView","cancelled","revealWhenSettled","envelope","closest","owners","Array","from","querySelectorAll","push","transitions","flatMap","owner","getAnimations","filter","animation","pending","playState","length","Promise","allSettled","map","finished","then","block","inline","behavior"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-reveal.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA;AACO,SAASC,cAAcA,CAAC;EAC7BC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC;AASF,CAAC,EAAE;EACD,MAAMC,QAAQ,GAAG,IAAAC,aAAM,EAAiCC,SAAS,CAAC;EAClE,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAI,CAACR,OAAO,IAAI,CAACC,KAAK,IAAI,CAACF,OAAO,EAAE;IACpC,IAAIM,QAAQ,CAACI,OAAO,EAAEC,EAAE,KAAKX,OAAO,CAACW,EAAE,IAAIL,QAAQ,CAACI,OAAO,CAACE,UAAU,KAAKZ,OAAO,CAACY,UAAU,EAC3F;IACF,IAAI,CAACR,MAAM,CAACS,IAAI,CAAEC,KAAK,IAAKA,KAAK,CAACH,EAAE,KAAKX,OAAO,CAACW,EAAE,IAAIG,KAAK,CAACC,OAAO,CAAC,EAAE;IACvE,MAA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,cAAc,CAAC;QAClBwB,KAAK,EAAE,SAAS;QAChBC,MAAM,EAAE,SAAS;QACjBC,QAAQ,EAAE3C,aAAa,GAAG,SAAS,GAAG;MACxC,CAAC,CAAC;IACJ,CAAC;IACDmB,iBAAiB,CAAC,CAAC;IACnB,OAAO,MAAM;MACXD,SAAS,GAAG,IAAI;IAClB,CAAC;EACH,CAAC,EAAE,CAACxB,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,MAAM,EAAEC,MAAM,EAAEC,aAAa,CAAC,CAAC;AACvE","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_panelTransitions","usePanelReveal","rootRef","request","enabled","scope","panels","tracks","reducedMotion","consumed","useRef","undefined","useEffect","current","id","requestKey","some","track","visible","index","findIndex","panel","root","node","querySelector","scrollIntoView","cancelled","revealWhenSettled","envelope","closest","owners","Array","from","querySelectorAll","push","transitions","panelGeometryTransitions","length","Promise","allSettled","map","animation","finished","then","block","inline","behavior"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-reveal.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAIA;AACO,SAASE,cAAcA,CAAC;EAC7BC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC;AASF,CAAC,EAAE;EACD,MAAMC,QAAQ,GAAG,IAAAC,aAAM,EAAiCC,SAAS,CAAC;EAClE,IAAAC,gBAAS,EAAC,MAAM;IACd,IAAI,CAACR,OAAO,IAAI,CAACC,KAAK,IAAI,CAACF,OAAO,EAAE;IACpC,IAAIM,QAAQ,CAACI,OAAO,EAAEC,EAAE,KAAKX,OAAO,CAACW,EAAE,IAAIL,QAAQ,CAACI,OAAO,CAACE,UAAU,KAAKZ,OAAO,CAACY,UAAU,EAC3F;IACF,IAAI,CAACR,MAAM,CAACS,IAAI,CAAEC,KAAK,IAAKA,KAAK,CAACH,EA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AG;MACxC,CAAC,CAAC;IACJ,CAAC;IACDmB,iBAAiB,CAAC,CAAC;IACnB,OAAO,MAAM;MACXD,SAAS,GAAG,IAAI;IAClB,CAAC;EACH,CAAC,EAAE,CAACxB,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,MAAM,EAAEC,MAAM,EAAEC,aAAa,CAAC,CAAC;AACvE","ignoreList":[]}
@@ -12,13 +12,20 @@ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reani
12
12
  var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
13
13
  var _useIsRtl = require("../hooks/use-is-rtl.js");
14
14
  var _bottomBarSlot = require("../layout/bottom-bar-slot.js");
15
+ var _context = require("../screen/context.js");
16
+ var _adoptStyleSheet = require("../styles/adopt-style-sheet.js");
17
+ var _platform = require("../styles/platform.js");
18
+ var _dataHook = require("../styles/data-hook.js");
15
19
  var _bottomEdge = require("../layout/bottom-edge.js");
16
20
  var _constants = require("../fab/constants.js");
17
21
  var _edge = require("../layout/edge.js");
18
- var _context = require("../tab-bar/context.js");
22
+ var _context2 = require("../tab-bar/context.js");
19
23
  var _shared = require("../tab-bar/shared.js");
20
24
  var _useCssSafeAreaInsets = require("../hooks/use-css-safe-area-insets.js");
21
25
  var _animatedStyle = require("../styles/animated-style.js");
26
+ var _useBorderBoxSize = require("../hooks/use-border-box-size.js");
27
+ var _useWidthClass = require("../hooks/use-width-class.js");
28
+ var _breakpoints = require("../styles/breakpoints.js");
22
29
  var _usePrefersReducedMotion = require("../hooks/use-prefers-reduced-motion.js");
23
30
  var _jsxRuntime = require("react/jsx-runtime");
24
31
  var cache;
@@ -35,19 +42,35 @@ function BottomBarBase({
35
42
  action,
36
43
  actionPlacement = 'auto',
37
44
  actionBehavior = 'hide',
45
+ navigationVisibility = 'always',
38
46
  minimizeProgress,
39
47
  hideProgress,
40
48
  blur = false,
41
49
  maxWidth = 560,
50
+ horizontalInset = 12,
42
51
  style,
43
52
  testID
44
53
  }) {
54
+ const inset = Math.max(0, Number.isFinite(horizontalInset) ? horizontalInset : 12);
45
55
  const insets = (0, _useCssSafeAreaInsets.useCssSafeAreaInsets)((0, _reactNativeSafeAreaContext.useSafeAreaInsets)());
46
56
  // Logical insets below; react-native-web needs the direction handed to it.
47
57
  const dirProps = (0, _useIsRtl.useDirectionProps)();
48
- const minimize = (0, _context.useMinimizeState)();
58
+ const minimize = (0, _context2.useMinimizeState)();
49
59
  const progress = minimizeProgress ?? minimize.progress;
50
60
  const reducedMotion = (0, _usePrefersReducedMotion.usePrefersReducedMotion)();
61
+ const dock = actionBehavior === 'dock' && action != null;
62
+ const sizeClass = (0, _useWidthClass.useWindowWidthClass)(COMPACT_THRESHOLDS);
63
+ const keyboardVisible = (0, _useKeyboardVisible.useKeyboardVisible)();
64
+ const showNavigation = navigationVisibility !== 'never' && (navigationVisibility !== 'compact' || sizeClass < _breakpoints.BREAKPOINTS.md) && !(dock && keyboardVisible);
65
+ const present = action != null || showNavigation && items.length > 0;
66
+ const selected = items.some(item => item.name === value);
67
+ const dockNavigation = dock && showNavigation && items.length > 0;
68
+ // Folding frees the horizontal lane before the editor descends into it.
69
+ // Both phases are reversible projections of the same scroll signal.
70
+ const navigationProgress = (0, _reactNativeReanimated.useDerivedValue)(() => {
71
+ const amount = reducedMotion ? Number(progress.value > 0.01) : progress.value;
72
+ return dock ? selected ? Math.min(1, Math.max(0, amount / _shared.DOCK_NAVIGATION_PHASE)) : 0 : amount;
73
+ }, [dock, reducedMotion, progress, selected]);
51
74
  const hideAction = actionBehavior === 'hide' && items.length > 0;
52
75
  const [actionHidden, setActionHidden] = (0, _react.useState)(() => hideAction && progress.value > 0.01);
53
76
  const actionRef = (0, _react.useRef)(null);
@@ -55,9 +78,9 @@ function BottomBarBase({
55
78
  const [actionHeight, setActionHeight] = (0, _react.useState)(_constants.FAB_METRICS.md.diameter);
56
79
  const [rowWidth, setRowWidth] = (0, _react.useState)(0);
57
80
  const actionSpace = action ? (actionWidth ?? _constants.FAB_METRICS.md.diameter) + 10 : 0;
58
- const above = Boolean(action && items.length && (actionPlacement === 'above' || actionPlacement === 'auto' && rowWidth > 0 && rowWidth - 24 - actionSpace < items.length * 56 + _shared.ROW_PAD_H * 2));
81
+ const above = Boolean(!dock && action && items.length && (actionPlacement === 'above' || actionPlacement === 'auto' && rowWidth > 0 && rowWidth - inset * 2 - actionSpace < items.length * 56 + _shared.ROW_PAD_H * 2));
59
82
  const footprint = _shared.EXPANDED_HEIGHT + (above ? actionHeight + 10 : Math.max(0, action ? actionHeight - _shared.EXPANDED_HEIGHT : 0));
60
- const navigationWidth = Math.max(0, Math.min(rowWidth - 24 - (above ? 0 : actionSpace), items.length * _shared.MAX_EXPANDED_ITEM_WIDTH + _shared.ROW_PAD_H * 2));
83
+ const navigationWidth = Math.max(0, Math.min(rowWidth - inset * 2 - (above ? 0 : actionSpace), items.length * _shared.MAX_EXPANDED_ITEM_WIDTH + _shared.ROW_PAD_H * 2));
61
84
  // The browser can distribute the row before JavaScript measures it. Keep
62
85
  // the comfortable width as the flex basis, shrinking beside the action;
63
86
  // a measured zero must not hide navigation in the server-rendered page.
@@ -98,17 +121,71 @@ function BottomBarBase({
98
121
  if (barHidden && node.contains(document.activeElement)) document.activeElement?.blur?.();
99
122
  node.inert = barHidden;
100
123
  }, [barHidden]);
101
- const keyboardVisible = (0, _useKeyboardVisible.useKeyboardVisible)();
102
124
  const suppliedBottomInset = (0, _react.useContext)(_bottomBarSlot.BottomBarSlotContext);
103
- const bottom = Math.max(0, (0, _edge.windowEdgeGap)(insets.bottom) - (suppliedBottomInset ?? 0));
104
- (0, _bottomEdge.useClaimBottomEdge)(keyboardVisible || suppliedBottomInset !== undefined ? 0 : bottom + footprint);
125
+ const bottom = keyboardVisible ? 0 : Math.max(0, (0, _edge.windowEdgeGap)(insets.bottom) - (suppliedBottomInset ?? 0));
126
+ (0, _bottomEdge.useClaimBottomEdge)(dock || !present || keyboardVisible || suppliedBottomInset !== undefined ? 0 : bottom + footprint);
127
+ const footerOwner = (0, _react.useContext)(_context.ScreenFooterContext);
128
+ const claimMeasured = (0, _bottomEdge.useMeasuredBottomEdgeClaim)(dock && footerOwner == null && suppliedBottomInset === undefined);
129
+ const naturalFootprint = (0, _reactNativeReanimated.useSharedValue)(0);
130
+ const rootMeasurement = (0, _useBorderBoxSize.useBorderBoxSize)(({
131
+ height
132
+ }) => {
133
+ if (dock) {
134
+ naturalFootprint.value = height;
135
+ claimMeasured(height);
136
+ }
137
+ });
138
+ const attachRoot = (0, _react.useCallback)(node => {
139
+ rootRef.current = node;
140
+ rootMeasurement.ref?.(node);
141
+ }, [rootMeasurement.ref]);
142
+ (0, _react.useInsertionEffect)(() => {
143
+ if (_reactNative.Platform.OS === 'web') (0, _adoptStyleSheet.adoptStyleSheet)('bloom-bottom-bar-dock', DOCK_CSS);
144
+ }, []);
105
145
  const rowStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
106
- height: (0, _reactNativeReanimated.interpolate)(reducedMotion ? Number(progress.value > 0.01) : progress.value, [0, 1], [_shared.EXPANDED_HEIGHT, _shared.MINIMIZED_HEIGHT], 'clamp')
107
- }), [progress, reducedMotion]);
146
+ height: dock ? 'auto' : (0, _reactNativeReanimated.interpolate)(reducedMotion ? Number(progress.value > 0.01) : progress.value, [0, 1], [_shared.EXPANDED_HEIGHT, _shared.MINIMIZED_HEIGHT], 'clamp')
147
+ }), [progress, reducedMotion, dock, footprint]);
108
148
  // Not `items.length` in the mapper: a worklet copies `items` whole to the UI
109
149
  // runtime, icon elements and all (`worklet-captures.test.ts`).
110
150
  const hasItems = items.length > 0;
151
+ const fallbackNavigationWidth = navigationStyle.width;
152
+ const dockNavigationStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
153
+ const amount = navigationProgress.value;
154
+ return {
155
+ width: !dock ? fallbackNavigationWidth : _platform.IS_WEB ? `calc(${(1 - amount) * 100}% + ${amount * _shared.MINIMIZED_HEIGHT - (1 - amount) * inset * 2}px)` : amount === 0 ? _animatedStyle.UNSET : Math.max(_shared.MINIMIZED_HEIGHT, rowWidth - inset * 2) * (1 - amount) + _shared.MINIMIZED_HEIGHT * amount,
156
+ alignSelf: dock ? 'flex-end' : 'auto'
157
+ };
158
+ }, [dock, navigationProgress, rowWidth, inset, fallbackNavigationWidth]);
159
+ const minimumNavigationWidth = items.length * 44 + _shared.ROW_PAD_H * 2;
160
+ const navigationMinimumStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
161
+ minWidth: dock ? minimumNavigationWidth * (1 - navigationProgress.value) + _shared.MINIMIZED_HEIGHT * navigationProgress.value : minimumNavigationWidth
162
+ }), [dock, minimumNavigationWidth, navigationProgress]);
163
+ const actionMeasurement = (0, _useBorderBoxSize.useBorderBoxSize)(({
164
+ width,
165
+ height
166
+ }) => {
167
+ if (!dock) {
168
+ setActionWidth(width);
169
+ setActionHeight(height);
170
+ }
171
+ });
172
+ const rowMeasurement = (0, _useBorderBoxSize.useBorderBoxSize)(({
173
+ width
174
+ }) => {
175
+ if (!dock || _reactNative.Platform.OS !== 'web') setRowWidth(width);
176
+ });
111
177
  const actionStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
178
+ if (dock) {
179
+ const amount = dockNavigation && selected ? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value)) : 0;
180
+ return {
181
+ width: 'auto',
182
+ opacity: 1,
183
+ marginInlineStart: dockNavigation ? (_shared.MINIMIZED_HEIGHT + 10) * navigationProgress.value : 0,
184
+ transform: [{
185
+ translateY: dockNavigation ? (_shared.EXPANDED_HEIGHT + 10) * Math.min(1, Math.max(0, (amount - _shared.DOCK_NAVIGATION_PHASE) / (1 - _shared.DOCK_NAVIGATION_PHASE))) : 0
186
+ }]
187
+ };
188
+ }
112
189
  const amount = hideAction ? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value)) : 0;
113
190
  return {
114
191
  width: actionWidth == null ? _animatedStyle.UNSET : actionWidth * (1 - amount),
@@ -121,28 +198,30 @@ function BottomBarBase({
121
198
  scale: 1 - amount * 0.15
122
199
  }]
123
200
  };
124
- }, [progress, hideAction, reducedMotion, actionWidth, hasItems, above]);
201
+ }, [progress, hideAction, reducedMotion, actionWidth, hasItems, above, dock, dockNavigation, navigationProgress, selected]);
125
202
  const presenceStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
126
203
  const amount = Math.min(1, Math.max(0, reducedMotion ? Number(hide.value > 0.5) : hide.value));
127
204
  // The whole footprint, so a gone bar leaves no sliver above the edge.
128
205
  return {
129
206
  opacity: 1 - amount,
130
207
  transform: [{
131
- translateY: amount * (bottom + footprint)
208
+ translateY: amount * (dock ? naturalFootprint.value : bottom + footprint)
132
209
  }]
133
210
  };
134
- }, [hide, reducedMotion, bottom, footprint]);
135
- if (keyboardVisible || !items.length && !action) return null;
211
+ }, [hide, reducedMotion, bottom, footprint, dock, naturalFootprint]);
212
+ if (keyboardVisible && !dock || !present) return null;
136
213
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
137
214
  ...dirProps,
138
- ref: rootRef,
215
+ ref: dock ? attachRoot : rootRef,
216
+ onLayout: dock ? rootMeasurement.onLayout : undefined,
217
+ ...(0, _dataHook.dataHook)('bloomBottomBarDock', dock ? navigationVisibility : undefined),
139
218
  testID: testID,
140
219
  pointerEvents: barHidden ? 'none' : 'box-none',
141
220
  accessibilityElementsHidden: barHidden,
142
221
  importantForAccessibility: barHidden ? 'no-hide-descendants' : 'auto',
143
222
  "aria-hidden": barHidden,
144
223
  style: [{
145
- height: bottom + footprint,
224
+ height: dock ? undefined : bottom + footprint,
146
225
  justifyContent: 'flex-end'
147
226
  }, style, presenceStyle],
148
227
  children: [blur && /*#__PURE__*/(0, _jsxRuntime.jsx)(Blur, {
@@ -152,44 +231,63 @@ function BottomBarBase({
152
231
  left: 0,
153
232
  right: 0,
154
233
  bottom: 0,
155
- height: bottom + footprint + _shared.BLUR_BLEED
234
+ height: dock ? '100%' : bottom + footprint + _shared.BLUR_BLEED
156
235
  }
157
236
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
158
237
  testID: testID ? `${testID}-row` : undefined,
159
- onLayout: event => setRowWidth(event.nativeEvent.layout.width),
238
+ ...(dock && _platform.IS_WEB ? {} : rowMeasurement),
239
+ ...(0, _dataHook.dataHook)('bloomBottomBarRow'),
160
240
  pointerEvents: "box-none",
161
241
  style: [{
162
- justifyContent: items.length ? 'center' : 'flex-end',
242
+ justifyContent: dock ? 'flex-start' : items.length ? 'center' : 'flex-end',
163
243
  alignSelf: 'center',
164
244
  width: '100%',
165
245
  maxWidth,
166
- paddingLeft: 12,
167
- paddingRight: 12,
246
+ paddingLeft: inset,
247
+ paddingRight: inset,
168
248
  marginBottom: bottom,
169
- flexDirection: 'row',
170
- alignItems: 'center'
249
+ flexDirection: dock ? 'column' : 'row',
250
+ paddingBottom: dockNavigation ? _shared.EXPANDED_HEIGHT + 10 : 0,
251
+ alignItems: dock ? 'stretch' : 'center'
171
252
  }, rowStyle],
172
- children: [items.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
253
+ children: [items.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
173
254
  testID: testID ? `${testID}-navigation` : undefined,
174
- style: navigationStyle,
255
+ ...(0, _dataHook.dataHook)('bloomBottomBarNavigation'),
256
+ style: [dock ? {
257
+ position: 'absolute',
258
+ bottom: 0,
259
+ insetInlineStart: inset,
260
+ insetInlineEnd: inset,
261
+ minWidth: _shared.MINIMIZED_HEIGHT,
262
+ flexShrink: 0
263
+ } : navigationStyle, !showNavigation ? {
264
+ display: 'none'
265
+ } : undefined, dockNavigationStyle],
175
266
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScrollArea.ScrollArea, {
176
267
  horizontal: true,
177
268
  showsHorizontalScrollIndicator: false,
178
- contentContainerStyle: {
269
+ contentContainerStyle: dock ? {
270
+ width: '100%',
271
+ minWidth: 0
272
+ } : {
179
273
  minWidth: '100%'
180
274
  },
181
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
182
- style: _reactNative.Platform.OS === 'web' ? {
275
+ scrollbar: "never",
276
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
277
+ style: [dock ? {
278
+ width: '100%'
279
+ } : _reactNative.Platform.OS === 'web' ? {
183
280
  width: '100%',
184
281
  minWidth: items.length * 44 + 8
185
282
  } : {
186
283
  width: Math.max(navigationWidth, items.length * 44 + 8)
187
- },
284
+ }, navigationMinimumStyle],
188
285
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Navigation, {
189
- scrollable: navigationWidth > 0 && navigationWidth < items.length * 44 + 8,
286
+ minimizeBehavior: dock ? 'active' : 'compact',
287
+ scrollable: !dock && navigationWidth > 0 && navigationWidth < items.length * 44 + 8,
190
288
  embedded: true,
191
289
  blur: false,
192
- minimizeProgress: progress,
290
+ minimizeProgress: dock && !selected ? shown : progress,
193
291
  activeProgress: activeProgress,
194
292
  onIndexLongPress: onValueLongPress ? index => {
195
293
  if (items[index]) onValueLongPress(items[index].name);
@@ -212,25 +310,23 @@ function BottomBarBase({
212
310
  importantForAccessibility: actionHidden ? 'no-hide-descendants' : 'auto',
213
311
  "aria-hidden": actionHidden,
214
312
  testID: testID ? `${testID}-action` : undefined,
313
+ ...(0, _dataHook.dataHook)('bloomBottomBarAction'),
215
314
  style: [{
216
315
  flexShrink: 0,
217
- alignItems: 'flex-start',
316
+ alignItems: dock ? 'stretch' : 'flex-start',
218
317
  justifyContent: 'center'
219
318
  }, above ? {
220
319
  position: 'absolute',
221
- insetInlineEnd: 12,
320
+ insetInlineEnd: inset,
222
321
  bottom: '100%',
223
322
  marginBottom: 10
224
323
  } : undefined, actionStyle],
225
324
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
226
325
  testID: testID ? `${testID}-action-content` : undefined,
227
- onLayout: event => {
228
- setActionWidth(event.nativeEvent.layout.width);
229
- setActionHeight(event.nativeEvent.layout.height);
230
- },
326
+ ...(dock ? {} : actionMeasurement),
231
327
  style: {
232
328
  flexShrink: 0,
233
- ...(actionWidth == null ? {} : {
329
+ ...(dock || actionWidth == null ? {} : {
234
330
  width: actionWidth
235
331
  })
236
332
  },
@@ -240,4 +336,12 @@ function BottomBarBase({
240
336
  })]
241
337
  });
242
338
  }
339
+ const COMPACT_THRESHOLDS = [_breakpoints.BREAKPOINTS.md];
340
+ const DOCK_CSS = `
341
+ @media (min-width: ${_breakpoints.BREAKPOINTS.md}px) {
342
+ [data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-navigation] { display: none !important; }
343
+ [data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-row] { padding-bottom: 0 !important; }
344
+ [data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-action] { margin-inline-start: 0 !important; transform: none !important; }
345
+ }
346
+ `;
243
347
  //# sourceMappingURL=BottomBarBase.js.map