@oxy.so/bloom 19.6.0 → 19.7.1

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 (419) hide show
  1. package/docs/adoption-matrix.mdx +9 -9
  2. package/docs/bottom-bar.mdx +66 -1
  3. package/docs/button.mdx +19 -0
  4. package/docs/chat-composer.mdx +59 -1
  5. package/docs/collapsible.mdx +13 -4
  6. package/docs/composer-loader.mdx +6 -0
  7. package/docs/icons.mdx +22 -0
  8. package/docs/public-parts.mdx +13 -2
  9. package/docs/tab-pager.mdx +10 -0
  10. package/docs/task-catalog.json +1 -1
  11. package/docs/task-catalog.mdx +1 -1
  12. package/lib/commonjs/app-shell/EdgeDock.js +7 -7
  13. package/lib/commonjs/app-shell/EdgeDock.js.map +1 -1
  14. package/lib/commonjs/bottom-bar/BottomBarBase.js +174 -38
  15. package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
  16. package/lib/commonjs/button/GlyphAttention.js +110 -0
  17. package/lib/commonjs/button/GlyphAttention.js.map +1 -0
  18. package/lib/commonjs/button/GlyphButton.js +18 -7
  19. package/lib/commonjs/button/GlyphButton.js.map +1 -1
  20. package/lib/commonjs/chat-composer/CompactComposer.js +18 -0
  21. package/lib/commonjs/chat-composer/CompactComposer.js.map +1 -0
  22. package/lib/commonjs/chat-composer/CompactComposer.web.js +18 -0
  23. package/lib/commonjs/chat-composer/CompactComposer.web.js.map +1 -0
  24. package/lib/commonjs/chat-composer/compact-text.js +11 -0
  25. package/lib/commonjs/chat-composer/compact-text.js.map +1 -0
  26. package/lib/commonjs/chat-composer/compact-types.js +6 -0
  27. package/lib/commonjs/chat-composer/compact-types.js.map +1 -0
  28. package/lib/commonjs/chat-composer/create-compact-composer.js +185 -0
  29. package/lib/commonjs/chat-composer/create-compact-composer.js.map +1 -0
  30. package/lib/commonjs/chat-composer/index.js +14 -0
  31. package/lib/commonjs/chat-composer/index.js.map +1 -1
  32. package/lib/commonjs/chat-composer/index.web.js +14 -0
  33. package/lib/commonjs/chat-composer/index.web.js.map +1 -1
  34. package/lib/commonjs/chat-composer/messages.js +8 -1
  35. package/lib/commonjs/chat-composer/messages.js.map +1 -1
  36. package/lib/commonjs/collapsible/Collapsible.web.js +2 -3
  37. package/lib/commonjs/collapsible/Collapsible.web.js.map +1 -1
  38. package/lib/commonjs/collapsible/CollapsibleFrame.web.js +59 -20
  39. package/lib/commonjs/collapsible/CollapsibleFrame.web.js.map +1 -1
  40. package/lib/commonjs/icons/index.js +12 -0
  41. package/lib/commonjs/icons/index.js.map +1 -1
  42. package/lib/commonjs/icons/social/BookmarkFillIcon.js +12 -0
  43. package/lib/commonjs/icons/social/BookmarkFillIcon.js.map +1 -0
  44. package/lib/commonjs/icons/social/BookmarkIcon.js +12 -0
  45. package/lib/commonjs/icons/social/BookmarkIcon.js.map +1 -0
  46. package/lib/commonjs/icons/social/GifAttachmentIcon.js +12 -0
  47. package/lib/commonjs/icons/social/GifAttachmentIcon.js.map +1 -0
  48. package/lib/commonjs/icons/social/LikeFillIcon.js +13 -0
  49. package/lib/commonjs/icons/social/LikeFillIcon.js.map +1 -0
  50. package/lib/commonjs/icons/social/LikeIcon.js +14 -0
  51. package/lib/commonjs/icons/social/LikeIcon.js.map +1 -0
  52. package/lib/commonjs/icons/social/MediaAttachmentIcon.js +12 -0
  53. package/lib/commonjs/icons/social/MediaAttachmentIcon.js.map +1 -0
  54. package/lib/commonjs/icons/social/ReplyIcon.js +14 -0
  55. package/lib/commonjs/icons/social/ReplyIcon.js.map +1 -0
  56. package/lib/commonjs/icons/social/RepostIcon.js +12 -0
  57. package/lib/commonjs/icons/social/RepostIcon.js.map +1 -0
  58. package/lib/commonjs/icons/social/ShareIcon.js +12 -0
  59. package/lib/commonjs/icons/social/ShareIcon.js.map +1 -0
  60. package/lib/commonjs/icons/social/index.js +69 -0
  61. package/lib/commonjs/icons/social/index.js.map +1 -0
  62. package/lib/commonjs/index.js +14 -0
  63. package/lib/commonjs/index.js.map +1 -1
  64. package/lib/commonjs/index.web.js +14 -0
  65. package/lib/commonjs/index.web.js.map +1 -1
  66. package/lib/commonjs/layout/bottom-edge.js +14 -0
  67. package/lib/commonjs/layout/bottom-edge.js.map +1 -1
  68. package/lib/commonjs/locale/translations/ar.js +8 -0
  69. package/lib/commonjs/locale/translations/ar.js.map +1 -1
  70. package/lib/commonjs/locale/translations/bn.js +8 -0
  71. package/lib/commonjs/locale/translations/bn.js.map +1 -1
  72. package/lib/commonjs/locale/translations/ca.js +8 -0
  73. package/lib/commonjs/locale/translations/ca.js.map +1 -1
  74. package/lib/commonjs/locale/translations/de.js +8 -0
  75. package/lib/commonjs/locale/translations/de.js.map +1 -1
  76. package/lib/commonjs/locale/translations/es.js +8 -0
  77. package/lib/commonjs/locale/translations/es.js.map +1 -1
  78. package/lib/commonjs/locale/translations/fr.js +8 -0
  79. package/lib/commonjs/locale/translations/fr.js.map +1 -1
  80. package/lib/commonjs/locale/translations/hi.js +8 -0
  81. package/lib/commonjs/locale/translations/hi.js.map +1 -1
  82. package/lib/commonjs/locale/translations/id.js +8 -0
  83. package/lib/commonjs/locale/translations/id.js.map +1 -1
  84. package/lib/commonjs/locale/translations/it.js +8 -0
  85. package/lib/commonjs/locale/translations/it.js.map +1 -1
  86. package/lib/commonjs/locale/translations/ja.js +8 -0
  87. package/lib/commonjs/locale/translations/ja.js.map +1 -1
  88. package/lib/commonjs/locale/translations/pt.js +8 -0
  89. package/lib/commonjs/locale/translations/pt.js.map +1 -1
  90. package/lib/commonjs/locale/translations/ru.js +8 -0
  91. package/lib/commonjs/locale/translations/ru.js.map +1 -1
  92. package/lib/commonjs/locale/translations/tr.js +8 -0
  93. package/lib/commonjs/locale/translations/tr.js.map +1 -1
  94. package/lib/commonjs/locale/translations/zh.js +8 -0
  95. package/lib/commonjs/locale/translations/zh.js.map +1 -1
  96. package/lib/commonjs/styles/web-view-style.js +9 -0
  97. package/lib/commonjs/styles/web-view-style.js.map +1 -1
  98. package/lib/commonjs/tab-bar/TabBarBase.js +126 -20
  99. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
  100. package/lib/commonjs/tab-bar/shared.js +3 -1
  101. package/lib/commonjs/tab-bar/shared.js.map +1 -1
  102. package/lib/commonjs/tab-pager/TabPagerBottomBar.js +12 -2
  103. package/lib/commonjs/tab-pager/TabPagerBottomBar.js.map +1 -1
  104. package/lib/module/app-shell/EdgeDock.js +4 -4
  105. package/lib/module/app-shell/EdgeDock.js.map +1 -1
  106. package/lib/module/bottom-bar/BottomBarBase.js +176 -40
  107. package/lib/module/bottom-bar/BottomBarBase.js.map +1 -1
  108. package/lib/module/button/GlyphAttention.js +104 -0
  109. package/lib/module/button/GlyphAttention.js.map +1 -0
  110. package/lib/module/button/GlyphButton.js +18 -7
  111. package/lib/module/button/GlyphButton.js.map +1 -1
  112. package/lib/module/chat-composer/CompactComposer.js +14 -0
  113. package/lib/module/chat-composer/CompactComposer.js.map +1 -0
  114. package/lib/module/chat-composer/CompactComposer.web.js +14 -0
  115. package/lib/module/chat-composer/CompactComposer.web.js.map +1 -0
  116. package/lib/module/chat-composer/compact-text.js +7 -0
  117. package/lib/module/chat-composer/compact-text.js.map +1 -0
  118. package/lib/module/chat-composer/compact-types.js +4 -0
  119. package/lib/module/chat-composer/compact-types.js.map +1 -0
  120. package/lib/module/chat-composer/create-compact-composer.js +181 -0
  121. package/lib/module/chat-composer/create-compact-composer.js.map +1 -0
  122. package/lib/module/chat-composer/index.js +2 -0
  123. package/lib/module/chat-composer/index.js.map +1 -1
  124. package/lib/module/chat-composer/index.web.js +2 -0
  125. package/lib/module/chat-composer/index.web.js.map +1 -1
  126. package/lib/module/chat-composer/messages.js +7 -0
  127. package/lib/module/chat-composer/messages.js.map +1 -1
  128. package/lib/module/collapsible/Collapsible.web.js +3 -4
  129. package/lib/module/collapsible/Collapsible.web.js.map +1 -1
  130. package/lib/module/collapsible/CollapsibleFrame.web.js +59 -18
  131. package/lib/module/collapsible/CollapsibleFrame.web.js.map +1 -1
  132. package/lib/module/icons/index.js +2 -1
  133. package/lib/module/icons/index.js.map +1 -1
  134. package/lib/module/icons/social/BookmarkFillIcon.js +9 -0
  135. package/lib/module/icons/social/BookmarkFillIcon.js.map +1 -0
  136. package/lib/module/icons/social/BookmarkIcon.js +9 -0
  137. package/lib/module/icons/social/BookmarkIcon.js.map +1 -0
  138. package/lib/module/icons/social/GifAttachmentIcon.js +9 -0
  139. package/lib/module/icons/social/GifAttachmentIcon.js.map +1 -0
  140. package/lib/module/icons/social/LikeFillIcon.js +10 -0
  141. package/lib/module/icons/social/LikeFillIcon.js.map +1 -0
  142. package/lib/module/icons/social/LikeIcon.js +11 -0
  143. package/lib/module/icons/social/LikeIcon.js.map +1 -0
  144. package/lib/module/icons/social/MediaAttachmentIcon.js +9 -0
  145. package/lib/module/icons/social/MediaAttachmentIcon.js.map +1 -0
  146. package/lib/module/icons/social/ReplyIcon.js +11 -0
  147. package/lib/module/icons/social/ReplyIcon.js.map +1 -0
  148. package/lib/module/icons/social/RepostIcon.js +9 -0
  149. package/lib/module/icons/social/RepostIcon.js.map +1 -0
  150. package/lib/module/icons/social/ShareIcon.js +9 -0
  151. package/lib/module/icons/social/ShareIcon.js.map +1 -0
  152. package/lib/module/icons/social/index.js +12 -0
  153. package/lib/module/icons/social/index.js.map +1 -0
  154. package/lib/module/index.js +1 -1
  155. package/lib/module/index.js.map +1 -1
  156. package/lib/module/index.web.js +1 -1
  157. package/lib/module/index.web.js.map +1 -1
  158. package/lib/module/layout/bottom-edge.js +14 -1
  159. package/lib/module/layout/bottom-edge.js.map +1 -1
  160. package/lib/module/locale/translations/ar.js +8 -0
  161. package/lib/module/locale/translations/ar.js.map +1 -1
  162. package/lib/module/locale/translations/bn.js +8 -0
  163. package/lib/module/locale/translations/bn.js.map +1 -1
  164. package/lib/module/locale/translations/ca.js +8 -0
  165. package/lib/module/locale/translations/ca.js.map +1 -1
  166. package/lib/module/locale/translations/de.js +8 -0
  167. package/lib/module/locale/translations/de.js.map +1 -1
  168. package/lib/module/locale/translations/es.js +8 -0
  169. package/lib/module/locale/translations/es.js.map +1 -1
  170. package/lib/module/locale/translations/fr.js +8 -0
  171. package/lib/module/locale/translations/fr.js.map +1 -1
  172. package/lib/module/locale/translations/hi.js +8 -0
  173. package/lib/module/locale/translations/hi.js.map +1 -1
  174. package/lib/module/locale/translations/id.js +8 -0
  175. package/lib/module/locale/translations/id.js.map +1 -1
  176. package/lib/module/locale/translations/it.js +8 -0
  177. package/lib/module/locale/translations/it.js.map +1 -1
  178. package/lib/module/locale/translations/ja.js +8 -0
  179. package/lib/module/locale/translations/ja.js.map +1 -1
  180. package/lib/module/locale/translations/pt.js +8 -0
  181. package/lib/module/locale/translations/pt.js.map +1 -1
  182. package/lib/module/locale/translations/ru.js +8 -0
  183. package/lib/module/locale/translations/ru.js.map +1 -1
  184. package/lib/module/locale/translations/tr.js +8 -0
  185. package/lib/module/locale/translations/tr.js.map +1 -1
  186. package/lib/module/locale/translations/zh.js +8 -0
  187. package/lib/module/locale/translations/zh.js.map +1 -1
  188. package/lib/module/styles/web-view-style.js +8 -0
  189. package/lib/module/styles/web-view-style.js.map +1 -1
  190. package/lib/module/tab-bar/TabBarBase.js +130 -23
  191. package/lib/module/tab-bar/TabBarBase.js.map +1 -1
  192. package/lib/module/tab-bar/shared.js +2 -0
  193. package/lib/module/tab-bar/shared.js.map +1 -1
  194. package/lib/module/tab-pager/TabPagerBottomBar.js +13 -3
  195. package/lib/module/tab-pager/TabPagerBottomBar.js.map +1 -1
  196. package/lib/typescript/commonjs/app-shell/EdgeDock.d.ts +1 -1
  197. package/lib/typescript/commonjs/app-shell/EdgeDock.d.ts.map +1 -1
  198. package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts +1 -1
  199. package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/bottom-bar/types.d.ts +10 -2
  201. package/lib/typescript/commonjs/bottom-bar/types.d.ts.map +1 -1
  202. package/lib/typescript/commonjs/button/GlyphAttention.d.ts +11 -0
  203. package/lib/typescript/commonjs/button/GlyphAttention.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/button/GlyphButton.d.ts.map +1 -1
  205. package/lib/typescript/commonjs/button/types.d.ts +11 -0
  206. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  207. package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts +2 -0
  208. package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts +2 -0
  210. package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/chat-composer/compact-text.d.ts +3 -0
  212. package/lib/typescript/commonjs/chat-composer/compact-text.d.ts.map +1 -0
  213. package/lib/typescript/commonjs/chat-composer/compact-types.d.ts +45 -0
  214. package/lib/typescript/commonjs/chat-composer/compact-types.d.ts.map +1 -0
  215. package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts +13 -0
  216. package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts.map +1 -0
  217. package/lib/typescript/commonjs/chat-composer/index.d.ts +3 -0
  218. package/lib/typescript/commonjs/chat-composer/index.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/chat-composer/index.web.d.ts +3 -0
  220. package/lib/typescript/commonjs/chat-composer/index.web.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/chat-composer/messages.d.ts +8 -0
  222. package/lib/typescript/commonjs/chat-composer/messages.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/collapsible/Collapsible.web.d.ts.map +1 -1
  224. package/lib/typescript/commonjs/collapsible/CollapsibleFrame.web.d.ts +2 -2
  225. package/lib/typescript/commonjs/collapsible/CollapsibleFrame.web.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/icons/index.d.ts +1 -0
  227. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts +8 -0
  229. package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts +8 -0
  231. package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts +8 -0
  233. package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts +8 -0
  235. package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts +8 -0
  237. package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts.map +1 -0
  238. package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts +8 -0
  239. package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
  240. package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts +8 -0
  241. package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts.map +1 -0
  242. package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts +8 -0
  243. package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts +8 -0
  245. package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/icons/social/index.d.ts +10 -0
  247. package/lib/typescript/commonjs/icons/social/index.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/index.d.ts +2 -2
  249. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/index.web.d.ts +2 -2
  251. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/layout/bottom-edge.d.ts +2 -0
  253. package/lib/typescript/commonjs/layout/bottom-edge.d.ts.map +1 -1
  254. package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/locale/translations/types.d.ts +2 -1
  268. package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/styles/web-view-style.d.ts +3 -0
  271. package/lib/typescript/commonjs/styles/web-view-style.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/tab-bar/shared.d.ts +2 -0
  274. package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/tab-bar/types.d.ts +2 -0
  276. package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts +1 -1
  278. package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/tab-pager/types.d.ts +4 -1
  280. package/lib/typescript/commonjs/tab-pager/types.d.ts.map +1 -1
  281. package/lib/typescript/module/app-shell/EdgeDock.d.ts +1 -1
  282. package/lib/typescript/module/app-shell/EdgeDock.d.ts.map +1 -1
  283. package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts +1 -1
  284. package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts.map +1 -1
  285. package/lib/typescript/module/bottom-bar/types.d.ts +10 -2
  286. package/lib/typescript/module/bottom-bar/types.d.ts.map +1 -1
  287. package/lib/typescript/module/button/GlyphAttention.d.ts +11 -0
  288. package/lib/typescript/module/button/GlyphAttention.d.ts.map +1 -0
  289. package/lib/typescript/module/button/GlyphButton.d.ts.map +1 -1
  290. package/lib/typescript/module/button/types.d.ts +11 -0
  291. package/lib/typescript/module/button/types.d.ts.map +1 -1
  292. package/lib/typescript/module/chat-composer/CompactComposer.d.ts +2 -0
  293. package/lib/typescript/module/chat-composer/CompactComposer.d.ts.map +1 -0
  294. package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts +2 -0
  295. package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts.map +1 -0
  296. package/lib/typescript/module/chat-composer/compact-text.d.ts +3 -0
  297. package/lib/typescript/module/chat-composer/compact-text.d.ts.map +1 -0
  298. package/lib/typescript/module/chat-composer/compact-types.d.ts +45 -0
  299. package/lib/typescript/module/chat-composer/compact-types.d.ts.map +1 -0
  300. package/lib/typescript/module/chat-composer/create-compact-composer.d.ts +13 -0
  301. package/lib/typescript/module/chat-composer/create-compact-composer.d.ts.map +1 -0
  302. package/lib/typescript/module/chat-composer/index.d.ts +3 -0
  303. package/lib/typescript/module/chat-composer/index.d.ts.map +1 -1
  304. package/lib/typescript/module/chat-composer/index.web.d.ts +3 -0
  305. package/lib/typescript/module/chat-composer/index.web.d.ts.map +1 -1
  306. package/lib/typescript/module/chat-composer/messages.d.ts +8 -0
  307. package/lib/typescript/module/chat-composer/messages.d.ts.map +1 -1
  308. package/lib/typescript/module/collapsible/Collapsible.web.d.ts.map +1 -1
  309. package/lib/typescript/module/collapsible/CollapsibleFrame.web.d.ts +2 -2
  310. package/lib/typescript/module/collapsible/CollapsibleFrame.web.d.ts.map +1 -1
  311. package/lib/typescript/module/icons/index.d.ts +1 -0
  312. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  313. package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts +8 -0
  314. package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts.map +1 -0
  315. package/lib/typescript/module/icons/social/BookmarkIcon.d.ts +8 -0
  316. package/lib/typescript/module/icons/social/BookmarkIcon.d.ts.map +1 -0
  317. package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts +8 -0
  318. package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts.map +1 -0
  319. package/lib/typescript/module/icons/social/LikeFillIcon.d.ts +8 -0
  320. package/lib/typescript/module/icons/social/LikeFillIcon.d.ts.map +1 -0
  321. package/lib/typescript/module/icons/social/LikeIcon.d.ts +8 -0
  322. package/lib/typescript/module/icons/social/LikeIcon.d.ts.map +1 -0
  323. package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts +8 -0
  324. package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
  325. package/lib/typescript/module/icons/social/ReplyIcon.d.ts +8 -0
  326. package/lib/typescript/module/icons/social/ReplyIcon.d.ts.map +1 -0
  327. package/lib/typescript/module/icons/social/RepostIcon.d.ts +8 -0
  328. package/lib/typescript/module/icons/social/RepostIcon.d.ts.map +1 -0
  329. package/lib/typescript/module/icons/social/ShareIcon.d.ts +8 -0
  330. package/lib/typescript/module/icons/social/ShareIcon.d.ts.map +1 -0
  331. package/lib/typescript/module/icons/social/index.d.ts +10 -0
  332. package/lib/typescript/module/icons/social/index.d.ts.map +1 -0
  333. package/lib/typescript/module/index.d.ts +2 -2
  334. package/lib/typescript/module/index.d.ts.map +1 -1
  335. package/lib/typescript/module/index.web.d.ts +2 -2
  336. package/lib/typescript/module/index.web.d.ts.map +1 -1
  337. package/lib/typescript/module/layout/bottom-edge.d.ts +2 -0
  338. package/lib/typescript/module/layout/bottom-edge.d.ts.map +1 -1
  339. package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
  340. package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
  341. package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
  342. package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
  343. package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
  344. package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
  345. package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
  346. package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
  347. package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
  348. package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
  349. package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
  350. package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
  351. package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
  352. package/lib/typescript/module/locale/translations/types.d.ts +2 -1
  353. package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
  354. package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
  355. package/lib/typescript/module/styles/web-view-style.d.ts +3 -0
  356. package/lib/typescript/module/styles/web-view-style.d.ts.map +1 -1
  357. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
  358. package/lib/typescript/module/tab-bar/shared.d.ts +2 -0
  359. package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -1
  360. package/lib/typescript/module/tab-bar/types.d.ts +2 -0
  361. package/lib/typescript/module/tab-bar/types.d.ts.map +1 -1
  362. package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts +1 -1
  363. package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
  364. package/lib/typescript/module/tab-pager/types.d.ts +4 -1
  365. package/lib/typescript/module/tab-pager/types.d.ts.map +1 -1
  366. package/package.json +154 -1
  367. package/src/__tests__/support/public-part-classifications.json +22 -1
  368. package/src/__tests__/support/yoga-host-tree.ts +12 -2
  369. package/src/app-shell/EdgeDock.tsx +4 -5
  370. package/src/bottom-bar/BottomBarBase.tsx +280 -46
  371. package/src/bottom-bar/types.ts +10 -2
  372. package/src/button/GlyphAttention.tsx +100 -0
  373. package/src/button/GlyphButton.tsx +21 -6
  374. package/src/button/types.ts +11 -0
  375. package/src/chat-composer/CompactComposer.tsx +7 -0
  376. package/src/chat-composer/CompactComposer.web.tsx +7 -0
  377. package/src/chat-composer/compact-text.ts +4 -0
  378. package/src/chat-composer/compact-types.ts +47 -0
  379. package/src/chat-composer/create-compact-composer.tsx +213 -0
  380. package/src/chat-composer/index.ts +8 -0
  381. package/src/chat-composer/index.web.ts +8 -0
  382. package/src/chat-composer/messages.ts +16 -0
  383. package/src/collapsible/Collapsible.web.tsx +2 -7
  384. package/src/collapsible/CollapsibleFrame.web.tsx +73 -20
  385. package/src/icons/index.ts +2 -1
  386. package/src/icons/social/BookmarkFillIcon.tsx +6 -0
  387. package/src/icons/social/BookmarkIcon.tsx +6 -0
  388. package/src/icons/social/GifAttachmentIcon.tsx +6 -0
  389. package/src/icons/social/LikeFillIcon.tsx +7 -0
  390. package/src/icons/social/LikeIcon.tsx +8 -0
  391. package/src/icons/social/MediaAttachmentIcon.tsx +6 -0
  392. package/src/icons/social/ReplyIcon.tsx +8 -0
  393. package/src/icons/social/RepostIcon.tsx +6 -0
  394. package/src/icons/social/ShareIcon.tsx +6 -0
  395. package/src/icons/social/index.ts +9 -0
  396. package/src/index.ts +5 -0
  397. package/src/index.web.ts +5 -0
  398. package/src/layout/bottom-edge.tsx +17 -0
  399. package/src/locale/translations/ar.ts +9 -0
  400. package/src/locale/translations/bn.ts +9 -0
  401. package/src/locale/translations/ca.ts +10 -0
  402. package/src/locale/translations/de.ts +10 -0
  403. package/src/locale/translations/es.ts +10 -0
  404. package/src/locale/translations/fr.ts +10 -0
  405. package/src/locale/translations/hi.ts +9 -0
  406. package/src/locale/translations/id.ts +10 -0
  407. package/src/locale/translations/it.ts +10 -0
  408. package/src/locale/translations/ja.ts +10 -0
  409. package/src/locale/translations/pt.ts +10 -0
  410. package/src/locale/translations/ru.ts +10 -0
  411. package/src/locale/translations/tr.ts +10 -0
  412. package/src/locale/translations/types.ts +5 -1
  413. package/src/locale/translations/zh.ts +9 -0
  414. package/src/styles/web-view-style.ts +7 -0
  415. package/src/tab-bar/TabBarBase.tsx +193 -27
  416. package/src/tab-bar/shared.ts +2 -0
  417. package/src/tab-bar/types.ts +2 -0
  418. package/src/tab-pager/TabPagerBottomBar.tsx +23 -3
  419. package/src/tab-pager/types.ts +4 -1
@@ -1,5 +1,14 @@
1
1
  import { ScrollArea } from '../layout/ScrollArea';
2
- import { type ComponentRef, useContext, useRef, useState, type ComponentType } from 'react';
2
+ import {
3
+ type ComponentRef,
4
+ useContext,
5
+ useRef,
6
+ useState,
7
+ useCallback,
8
+ useInsertionEffect,
9
+ useLayoutEffect,
10
+ type ComponentType,
11
+ } from 'react';
3
12
  import { View, Platform } from 'react-native';
4
13
  import { useKeyboardVisible } from '../hooks/use-keyboard-visible';
5
14
  import { useEffect } from 'react';
@@ -9,17 +18,25 @@ import Animated, {
9
18
  interpolate,
10
19
  runOnJS,
11
20
  useSharedValue,
21
+ useDerivedValue,
22
+ withTiming,
23
+ Easing,
12
24
  } from 'react-native-reanimated';
13
25
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
14
26
  import { useDirectionProps } from '../hooks/use-is-rtl';
15
27
  import { BottomBarSlotContext } from '../layout/bottom-bar-slot';
16
- import { useClaimBottomEdge } from '../layout/bottom-edge';
28
+ import { ScreenFooterContext } from '../screen/context';
29
+ import { adoptStyleSheet } from '../styles/adopt-style-sheet';
30
+ import { IS_WEB } from '../styles/platform';
31
+ import { dataHook } from '../styles/data-hook';
32
+ import { useClaimBottomEdge, useMeasuredBottomEdgeClaim } from '../layout/bottom-edge';
17
33
  import { FAB_METRICS } from '../fab/constants';
18
34
  import { windowEdgeGap } from '../layout/edge';
19
35
  import { useMinimizeState } from '../tab-bar/context';
20
36
  import {
21
37
  EXPANDED_HEIGHT,
22
38
  MINIMIZED_HEIGHT,
39
+ DOCK_NAVIGATION_PHASE,
23
40
  BLUR_BLEED,
24
41
  MAX_EXPANDED_ITEM_WIDTH,
25
42
  ROW_PAD_H,
@@ -29,7 +46,16 @@ import type { ProgressiveBlurProps } from '../progressive-blur/types';
29
46
  import type { BottomBarProps } from './types';
30
47
  import { useCssSafeAreaInsets } from '../hooks/use-css-safe-area-insets';
31
48
  import { UNSET } from '../styles/animated-style';
49
+ import { useBorderBoxSize } from '../hooks/use-border-box-size';
50
+ import { useWindowWidthClass } from '../hooks/use-width-class';
51
+ import { BREAKPOINTS } from '../styles/breakpoints';
32
52
  import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
53
+ import { cssLength, type WebCssStyle } from '../styles/web-view-style';
54
+ import { DEFAULT_COLLAPSIBLE_TRANSITION } from '../collapsible/use-collapsible-motion';
55
+ import { resolveSurfaceTransition } from '../motion/surface-transition';
56
+
57
+ const DOCK_PRESENCE = '--bloom-dock-navigation-presence';
58
+ const DOCK_TRANSITION = resolveSurfaceTransition(DEFAULT_COLLAPSIBLE_TRANSITION);
33
59
 
34
60
  interface Props extends BottomBarProps {
35
61
  Navigation: ComponentType<TabBarProps>;
@@ -48,19 +74,65 @@ export function BottomBarBase({
48
74
  action,
49
75
  actionPlacement = 'auto',
50
76
  actionBehavior = 'hide',
77
+ navigationVisibility = 'always',
51
78
  minimizeProgress,
52
79
  hideProgress,
53
80
  blur = false,
54
81
  maxWidth = 560,
82
+ horizontalInset = 12,
55
83
  style,
56
84
  testID,
57
85
  }: Props) {
86
+ const inset = Math.max(0, Number.isFinite(horizontalInset) ? horizontalInset : 12);
58
87
  const insets = useCssSafeAreaInsets(useSafeAreaInsets());
59
88
  // Logical insets below; react-native-web needs the direction handed to it.
60
89
  const dirProps = useDirectionProps();
61
90
  const minimize = useMinimizeState();
62
91
  const progress = minimizeProgress ?? minimize.progress;
63
92
  const reducedMotion = usePrefersReducedMotion();
93
+ const dock = actionBehavior === 'dock' && action != null;
94
+ const sizeClass = useWindowWidthClass(COMPACT_THRESHOLDS);
95
+ const keyboardVisible = useKeyboardVisible();
96
+ const showNavigation =
97
+ navigationVisibility !== 'never' &&
98
+ (navigationVisibility !== 'compact' || sizeClass < BREAKPOINTS.md) &&
99
+ !(dock && keyboardVisible);
100
+ const present = action != null || (showNavigation && items.length > 0);
101
+ const selected = items.some((item) => item.name === value);
102
+ const dockNavigation = dock && showNavigation && items.length > 0;
103
+ // This is semantic visibility, separate from the scroll folding signal. It
104
+ // releases the navigation footprint continuously while a natural-height
105
+ // editor expands, instead of dropping its entire reserved row in one commit.
106
+ const navigationPresence = useSharedValue(dockNavigation ? 1 : 0);
107
+ useLayoutEffect(() => {
108
+ if (IS_WEB) return;
109
+ const target = dockNavigation ? 1 : 0;
110
+ navigationPresence.value = reducedMotion
111
+ ? target
112
+ : withTiming(target, {
113
+ duration: DOCK_TRANSITION.duration,
114
+ easing: Easing.bezier(...DOCK_TRANSITION.easing),
115
+ });
116
+ }, [dockNavigation, reducedMotion, navigationPresence]);
117
+ const navigationPresenceStyle: WebCssStyle | undefined =
118
+ dock && IS_WEB
119
+ ? {
120
+ [DOCK_PRESENCE]: dockNavigation ? '1' : '0',
121
+ transitionProperty: DOCK_PRESENCE,
122
+ transitionDuration: `${reducedMotion ? 0 : DOCK_TRANSITION.duration}ms`,
123
+ transitionTimingFunction: DOCK_TRANSITION.cssEasing,
124
+ }
125
+ : undefined;
126
+ // Folding frees the horizontal lane before the editor descends into it.
127
+ // Both phases are reversible projections of the same scroll signal.
128
+ const navigationProgress = useDerivedValue(() => {
129
+ const amount = reducedMotion ? Number(progress.value > 0.01) : progress.value;
130
+ return dock
131
+ ? selected
132
+ ? Math.min(1, Math.max(0, amount / DOCK_NAVIGATION_PHASE))
133
+ : 0
134
+ : amount;
135
+ }, [dock, reducedMotion, progress, selected]);
64
136
  const hideAction = actionBehavior === 'hide' && items.length > 0;
65
137
  const [actionHidden, setActionHidden] = useState(() => hideAction && progress.value > 0.01);
66
138
  const actionRef = useRef<ComponentRef<typeof View>>(null);
@@ -69,12 +141,13 @@ export function BottomBarBase({
69
141
  const [rowWidth, setRowWidth] = useState(0);
70
142
  const actionSpace = action ? (actionWidth ?? FAB_METRICS.md.diameter) + 10 : 0;
71
143
  const above = Boolean(
72
- action &&
144
+ !dock &&
145
+ action &&
73
146
  items.length &&
74
147
  (actionPlacement === 'above' ||
75
148
  (actionPlacement === 'auto' &&
76
149
  rowWidth > 0 &&
77
- rowWidth - 24 - actionSpace < items.length * 56 + ROW_PAD_H * 2)),
150
+ rowWidth - inset * 2 - actionSpace < items.length * 56 + ROW_PAD_H * 2)),
78
151
  );
79
152
  const footprint =
80
153
  EXPANDED_HEIGHT +
@@ -82,7 +155,7 @@ export function BottomBarBase({
82
155
  const navigationWidth = Math.max(
83
156
  0,
84
157
  Math.min(
85
- rowWidth - 24 - (above ? 0 : actionSpace),
158
+ rowWidth - inset * 2 - (above ? 0 : actionSpace),
86
159
  items.length * MAX_EXPANDED_ITEM_WIDTH + ROW_PAD_H * 2,
87
160
  ),
88
161
  );
@@ -136,25 +209,118 @@ export function BottomBarBase({
136
209
  (document.activeElement as HTMLElement | null)?.blur?.();
137
210
  node.inert = barHidden;
138
211
  }, [barHidden]);
139
- const keyboardVisible = useKeyboardVisible();
140
212
  const suppliedBottomInset = useContext(BottomBarSlotContext);
141
- const bottom = Math.max(0, windowEdgeGap(insets.bottom) - (suppliedBottomInset ?? 0));
142
- useClaimBottomEdge(keyboardVisible || suppliedBottomInset !== undefined ? 0 : bottom + footprint);
213
+ const bottom = keyboardVisible
214
+ ? 0
215
+ : Math.max(0, windowEdgeGap(insets.bottom) - (suppliedBottomInset ?? 0));
216
+ useClaimBottomEdge(
217
+ dock || !present || keyboardVisible || suppliedBottomInset !== undefined
218
+ ? 0
219
+ : bottom + footprint,
220
+ );
221
+ const footerOwner = useContext(ScreenFooterContext);
222
+ const claimMeasured = useMeasuredBottomEdgeClaim(
223
+ dock && footerOwner == null && suppliedBottomInset === undefined,
224
+ );
225
+ const naturalFootprint = useSharedValue(0);
226
+ const rootMeasurement = useBorderBoxSize(({ height }) => {
227
+ if (dock) {
228
+ naturalFootprint.value = height;
229
+ claimMeasured(height);
230
+ }
231
+ });
232
+ const attachRoot = useCallback(
233
+ (node: ComponentRef<typeof View> | null) => {
234
+ rootRef.current = node;
235
+ rootMeasurement.ref?.(node);
236
+ },
237
+ [rootMeasurement.ref],
238
+ );
239
+ useInsertionEffect(() => {
240
+ if (Platform.OS === 'web') adoptStyleSheet('bloom-bottom-bar-dock', DOCK_CSS);
241
+ }, []);
143
242
  const rowStyle = useAnimatedStyle(
144
243
  () => ({
145
- height: interpolate(
146
- reducedMotion ? Number(progress.value > 0.01) : progress.value,
147
- [0, 1],
148
- [EXPANDED_HEIGHT, MINIMIZED_HEIGHT],
149
- 'clamp',
150
- ),
244
+ paddingBottom: !dock
245
+ ? 0
246
+ : IS_WEB
247
+ ? cssLength(`calc(var(--bloom-dock-navigation-presence) * ${EXPANDED_HEIGHT + 10}px)`)
248
+ : (EXPANDED_HEIGHT + 10) * navigationPresence.value,
249
+ height: dock
250
+ ? ('auto' as const)
251
+ : interpolate(
252
+ reducedMotion ? Number(progress.value > 0.01) : progress.value,
253
+ [0, 1],
254
+ [EXPANDED_HEIGHT, MINIMIZED_HEIGHT],
255
+ 'clamp',
256
+ ),
151
257
  }),
152
- [progress, reducedMotion],
258
+ [progress, reducedMotion, dock, footprint, navigationPresence],
153
259
  );
154
260
  // Not `items.length` in the mapper: a worklet copies `items` whole to the UI
155
261
  // runtime, icon elements and all (`worklet-captures.test.ts`).
156
262
  const hasItems = items.length > 0;
263
+ const fallbackNavigationWidth = navigationStyle.width;
264
+ const dockNavigationStyle = useAnimatedStyle(() => {
265
+ const amount = navigationProgress.value;
266
+ return {
267
+ width: !dock
268
+ ? fallbackNavigationWidth
269
+ : IS_WEB
270
+ ? (`calc(${(1 - amount) * 100}% + ${amount * MINIMIZED_HEIGHT - (1 - amount) * inset * 2}px)` as `${number}%`)
271
+ : amount === 0
272
+ ? UNSET
273
+ : Math.max(MINIMIZED_HEIGHT, rowWidth - inset * 2) * (1 - amount) +
274
+ MINIMIZED_HEIGHT * amount,
275
+ alignSelf: dock ? ('flex-end' as const) : ('auto' as const),
276
+ };
277
+ }, [dock, navigationProgress, rowWidth, inset, fallbackNavigationWidth]);
278
+ const minimumNavigationWidth = items.length * 44 + ROW_PAD_H * 2;
279
+ const navigationMinimumStyle = useAnimatedStyle(
280
+ () => ({
281
+ minWidth: dock
282
+ ? minimumNavigationWidth * (1 - navigationProgress.value) +
283
+ MINIMIZED_HEIGHT * navigationProgress.value
284
+ : minimumNavigationWidth,
285
+ }),
286
+ [dock, minimumNavigationWidth, navigationProgress],
287
+ );
288
+ const actionMeasurement = useBorderBoxSize(({ width, height }) => {
289
+ if (!dock) {
290
+ setActionWidth(width);
291
+ setActionHeight(height);
292
+ }
293
+ });
294
+ const rowMeasurement = useBorderBoxSize(({ width }) => {
295
+ if (!dock || Platform.OS !== 'web') setRowWidth(width);
296
+ });
157
297
  const actionStyle = useAnimatedStyle(() => {
298
+ if (dock) {
299
+ const amount = selected
300
+ ? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value))
301
+ : 0;
302
+ return {
303
+ width: 'auto' as const,
304
+ opacity: 1,
305
+ marginInlineStart: IS_WEB
306
+ ? cssLength(
307
+ `calc(var(--bloom-dock-navigation-presence) * ${(MINIMIZED_HEIGHT + 10) * navigationProgress.value}px)`,
308
+ )
309
+ : (MINIMIZED_HEIGHT + 10) * navigationProgress.value * navigationPresence.value,
310
+ transform: [
311
+ {
312
+ translateY: IS_WEB
313
+ ? (`calc(var(--bloom-dock-navigation-presence) * ${(EXPANDED_HEIGHT + 10) * Math.min(1, Math.max(0, (amount - DOCK_NAVIGATION_PHASE) / (1 - DOCK_NAVIGATION_PHASE)))}px)` as `${number}%`)
314
+ : (EXPANDED_HEIGHT + 10) *
315
+ navigationPresence.value *
316
+ Math.min(
317
+ 1,
318
+ Math.max(0, (amount - DOCK_NAVIGATION_PHASE) / (1 - DOCK_NAVIGATION_PHASE)),
319
+ ),
320
+ },
321
+ ],
322
+ };
323
+ }
158
324
  const amount = hideAction
159
325
  ? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value))
160
326
  : 0;
@@ -167,26 +333,43 @@ export function BottomBarBase({
167
333
  opacity: 1 - amount,
168
334
  transform: [{ scale: 1 - amount * 0.15 }],
169
335
  };
170
- }, [progress, hideAction, reducedMotion, actionWidth, hasItems, above]);
336
+ }, [
337
+ progress,
338
+ hideAction,
339
+ reducedMotion,
340
+ actionWidth,
341
+ hasItems,
342
+ above,
343
+ dock,
344
+ navigationPresence,
345
+ navigationProgress,
346
+ selected,
347
+ ]);
171
348
  const presenceStyle = useAnimatedStyle(() => {
172
349
  const amount = Math.min(1, Math.max(0, reducedMotion ? Number(hide.value > 0.5) : hide.value));
173
350
  // The whole footprint, so a gone bar leaves no sliver above the edge.
174
351
  return {
175
352
  opacity: 1 - amount,
176
- transform: [{ translateY: amount * (bottom + footprint) }],
353
+ transform: [{ translateY: amount * (dock ? naturalFootprint.value : bottom + footprint) }],
177
354
  };
178
- }, [hide, reducedMotion, bottom, footprint]);
179
- if (keyboardVisible || (!items.length && !action)) return null;
355
+ }, [hide, reducedMotion, bottom, footprint, dock, naturalFootprint]);
356
+ if ((keyboardVisible && !dock) || !present) return null;
180
357
  return (
181
358
  <Animated.View
182
359
  {...dirProps}
183
- ref={rootRef}
360
+ ref={dock ? attachRoot : rootRef}
361
+ onLayout={dock ? rootMeasurement.onLayout : undefined}
362
+ {...dataHook('bloomBottomBarDock', dock ? navigationVisibility : undefined)}
184
363
  testID={testID}
185
364
  pointerEvents={barHidden ? 'none' : 'box-none'}
186
365
  accessibilityElementsHidden={barHidden}
187
366
  importantForAccessibility={barHidden ? 'no-hide-descendants' : 'auto'}
188
367
  aria-hidden={barHidden}
189
- style={[{ height: bottom + footprint, justifyContent: 'flex-end' }, style, presenceStyle]}
368
+ style={[
369
+ { height: dock ? undefined : bottom + footprint, justifyContent: 'flex-end' },
370
+ style,
371
+ presenceStyle,
372
+ ]}
190
373
  >
191
374
  {blur && (
192
375
  <Blur
@@ -196,48 +379,74 @@ export function BottomBarBase({
196
379
  left: 0,
197
380
  right: 0,
198
381
  bottom: 0,
199
- height: bottom + footprint + BLUR_BLEED,
382
+ height: dock ? '100%' : bottom + footprint + BLUR_BLEED,
200
383
  }}
201
384
  />
202
385
  )}
203
386
  <Animated.View
204
387
  testID={testID ? `${testID}-row` : undefined}
205
- onLayout={(event) => setRowWidth(event.nativeEvent.layout.width)}
388
+ {...(dock && IS_WEB ? {} : rowMeasurement)}
389
+ {...dataHook('bloomBottomBarRow')}
206
390
  pointerEvents="box-none"
207
391
  style={[
208
392
  {
209
- justifyContent: items.length ? 'center' : 'flex-end',
393
+ justifyContent: dock ? 'flex-start' : items.length ? 'center' : 'flex-end',
210
394
  alignSelf: 'center',
211
395
  width: '100%',
212
396
  maxWidth,
213
- paddingLeft: 12,
214
- paddingRight: 12,
397
+ paddingLeft: inset,
398
+ paddingRight: inset,
215
399
  marginBottom: bottom,
216
- flexDirection: 'row',
217
- alignItems: 'center',
400
+ flexDirection: dock ? 'column' : 'row',
401
+ alignItems: dock ? 'stretch' : 'center',
218
402
  },
219
403
  rowStyle,
404
+ navigationPresenceStyle,
220
405
  ]}
221
406
  >
222
407
  {items.length > 0 && (
223
- <View testID={testID ? `${testID}-navigation` : undefined} style={navigationStyle}>
408
+ <Animated.View
409
+ testID={testID ? `${testID}-navigation` : undefined}
410
+ {...dataHook('bloomBottomBarNavigation')}
411
+ style={[
412
+ dock
413
+ ? {
414
+ position: 'absolute',
415
+ bottom: 0,
416
+ insetInlineStart: inset,
417
+ insetInlineEnd: inset,
418
+ minWidth: MINIMIZED_HEIGHT,
419
+ flexShrink: 0,
420
+ }
421
+ : navigationStyle,
422
+ !showNavigation ? { display: 'none' } : undefined,
423
+ dockNavigationStyle,
424
+ ]}
425
+ >
224
426
  <ScrollArea
225
427
  horizontal
226
428
  showsHorizontalScrollIndicator={false}
227
- contentContainerStyle={{ minWidth: '100%' }}
429
+ contentContainerStyle={dock ? { width: '100%', minWidth: 0 } : { minWidth: '100%' }}
430
+ scrollbar="never"
228
431
  >
229
- <View
230
- style={
231
- Platform.OS === 'web'
232
- ? { width: '100%', minWidth: items.length * 44 + 8 }
233
- : { width: Math.max(navigationWidth, items.length * 44 + 8) }
234
- }
432
+ <Animated.View
433
+ style={[
434
+ dock
435
+ ? { width: '100%' }
436
+ : Platform.OS === 'web'
437
+ ? { width: '100%', minWidth: items.length * 44 + 8 }
438
+ : { width: Math.max(navigationWidth, items.length * 44 + 8) },
439
+ navigationMinimumStyle,
440
+ ]}
235
441
  >
236
442
  <Navigation
237
- scrollable={navigationWidth > 0 && navigationWidth < items.length * 44 + 8}
443
+ minimizeBehavior={dock ? 'active' : 'compact'}
444
+ scrollable={
445
+ !dock && navigationWidth > 0 && navigationWidth < items.length * 44 + 8
446
+ }
238
447
  embedded
239
448
  blur={false}
240
- minimizeProgress={progress}
449
+ minimizeProgress={dock && !selected ? shown : progress}
241
450
  activeProgress={activeProgress}
242
451
  onIndexLongPress={
243
452
  onValueLongPress
@@ -255,9 +464,9 @@ export function BottomBarBase({
255
464
  <Item key={item.name} item={item} index={index} />
256
465
  ))}
257
466
  </Navigation>
258
- </View>
467
+ </Animated.View>
259
468
  </ScrollArea>
260
- </View>
469
+ </Animated.View>
261
470
  )}
262
471
  {action && (
263
472
  <Animated.View
@@ -267,21 +476,27 @@ export function BottomBarBase({
267
476
  importantForAccessibility={actionHidden ? 'no-hide-descendants' : 'auto'}
268
477
  aria-hidden={actionHidden}
269
478
  testID={testID ? `${testID}-action` : undefined}
479
+ {...dataHook('bloomBottomBarAction')}
270
480
  style={[
271
- { flexShrink: 0, alignItems: 'flex-start', justifyContent: 'center' },
481
+ {
482
+ flexShrink: 0,
483
+ alignItems: dock ? 'stretch' : 'flex-start',
484
+ justifyContent: 'center',
485
+ },
486
+
272
487
  above
273
- ? { position: 'absolute', insetInlineEnd: 12, bottom: '100%', marginBottom: 10 }
488
+ ? { position: 'absolute', insetInlineEnd: inset, bottom: '100%', marginBottom: 10 }
274
489
  : undefined,
275
490
  actionStyle,
276
491
  ]}
277
492
  >
278
493
  <View
279
494
  testID={testID ? `${testID}-action-content` : undefined}
280
- onLayout={(event) => {
281
- setActionWidth(event.nativeEvent.layout.width);
282
- setActionHeight(event.nativeEvent.layout.height);
495
+ {...(dock ? {} : actionMeasurement)}
496
+ style={{
497
+ flexShrink: 0,
498
+ ...(dock || actionWidth == null ? {} : { width: actionWidth }),
283
499
  }}
284
- style={{ flexShrink: 0, ...(actionWidth == null ? {} : { width: actionWidth }) }}
285
500
  >
286
501
  {action}
287
502
  </View>
@@ -291,3 +506,22 @@ export function BottomBarBase({
291
506
  </Animated.View>
292
507
  );
293
508
  }
509
+
510
+ const COMPACT_THRESHOLDS = [BREAKPOINTS.md] as const;
511
+
512
+ const DOCK_CSS = `
513
+ @property --bloom-dock-navigation-presence {
514
+ syntax: '<number>';
515
+ inherits: true;
516
+ initial-value: 0;
517
+ }
518
+ @media (prefers-reduced-motion: reduce) {
519
+ [data-bloom-bottom-bar-row] { transition-duration: 0ms !important; }
520
+ }
521
+
522
+ @media (min-width: ${BREAKPOINTS.md}px) {
523
+ [data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-navigation] { display: none !important; }
524
+ [data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-row] { padding-bottom: 0 !important; }
525
+ [data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-action] { margin-inline-start: 0 !important; transform: none !important; }
526
+ }
527
+ `;
@@ -15,8 +15,14 @@ export interface BottomBarProps {
15
15
  action?: ReactNode;
16
16
  /** Auto places the action above navigation when side-by-side targets would be cramped. */
17
17
  actionPlacement?: 'auto' | 'beside' | 'above';
18
- /** Hide the accessory while minimizing, returning on upward scroll. Default hide; standalone actions remain visible. */
19
- actionBehavior?: 'hide' | 'visible';
18
+ /**
19
+ * `hide` fades the accessory on scroll (default), `visible` retains it.
20
+ * `dock` keeps one editable action: above expanded navigation, beside the
21
+ * active destination when minimized. It stays mounted with the keyboard.
22
+ */
23
+ actionBehavior?: 'hide' | 'visible' | 'dock';
24
+ /** Keep the same action mounted while navigation is absent (for example on desktop). */
25
+ navigationVisibility?: 'always' | 'compact' | 'never';
20
26
  minimizeProgress?: SharedValue<number>;
21
27
  /**
22
28
  * The bar's presence, 0 (shown) to 1 (gone), on the UI thread. The bar fades
@@ -28,6 +34,8 @@ export interface BottomBarProps {
28
34
  /** Optional screen-edge blur band; disabled by default. */
29
35
  blur?: boolean;
30
36
  maxWidth?: number;
37
+ /** Horizontal breathing room shared by navigation and action. Default 12. */
38
+ horizontalInset?: number;
31
39
  style?: StyleProp<ViewStyle>;
32
40
  testID?: string;
33
41
  }
@@ -0,0 +1,100 @@
1
+ import { type ComponentRef, type ReactNode, useLayoutEffect, useRef } from 'react';
2
+ import { View, type ViewStyle } from 'react-native';
3
+ import Animated, {
4
+ cancelAnimation,
5
+ Easing,
6
+ ReduceMotion,
7
+ useAnimatedStyle,
8
+ useSharedValue,
9
+ withSequence,
10
+ withTiming,
11
+ } from 'react-native-reanimated';
12
+
13
+ import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
14
+ import { useInteractiveWebCss } from '../styles/interactive-web-css';
15
+ import { IS_WEB } from '../styles/platform';
16
+ import { dataHook } from '../styles/data-hook';
17
+
18
+ interface Props {
19
+ token: number;
20
+ blocked: boolean;
21
+ children: ReactNode;
22
+ }
23
+
24
+ const CENTER: ViewStyle = { alignItems: 'center', justifyContent: 'center' };
25
+ const ATTENTION_CSS = `
26
+ @keyframes bloom-glyph-attention-a {
27
+ 0%, 100% { transform: scale(1); }
28
+ 31.25% { transform: scale(1.12); }
29
+ }
30
+ @keyframes bloom-glyph-attention-b {
31
+ 0%, 100% { transform: scale(1); }
32
+ 31.25% { transform: scale(1.12); }
33
+ }
34
+ [data-bloom-glyph-attention] {
35
+ animation-duration: 320ms;
36
+ animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
37
+ }
38
+ @media (prefers-reduced-motion: reduce) {
39
+ [data-bloom-glyph-attention] { animation: none !important; }
40
+ }`;
41
+
42
+ /** Only opt-in glyphs mount this feedback; ordinary buttons retain their plain View. */
43
+ function WebGlyphAttention({ token, blocked, children }: Props) {
44
+ const ref = useRef<ComponentRef<typeof View>>(null);
45
+ const previous = useRef(token);
46
+ const phase = useRef(false);
47
+ const reducedMotion = usePrefersReducedMotion();
48
+ useInteractiveWebCss('bloom-glyph-attention', ATTENTION_CSS);
49
+
50
+ useLayoutEffect(() => {
51
+ const changed = !Object.is(previous.current, token);
52
+ previous.current = token;
53
+ const node = ref.current as unknown as HTMLElement | null;
54
+ if (!node) return;
55
+ if (blocked || reducedMotion || !Number.isFinite(token)) {
56
+ node.style.animationName = 'none';
57
+ } else if (changed) {
58
+ // Alternating equivalent CSS animations restarts on each committed attempt,
59
+ // including during an unfinished pulse, without remounting or reading layout.
60
+ phase.current = !phase.current;
61
+ node.style.animationName = `bloom-glyph-attention-${phase.current ? 'a' : 'b'}`;
62
+ }
63
+ }, [token, blocked, reducedMotion]);
64
+
65
+ return (
66
+ <View ref={ref} pointerEvents="none" {...dataHook('bloomGlyphAttention')} style={CENTER}>
67
+ {children}
68
+ </View>
69
+ );
70
+ }
71
+
72
+ function NativeGlyphAttention({ token, blocked, children }: Props) {
73
+ const previous = useRef(token);
74
+ const scale = useSharedValue(1);
75
+ const reducedMotion = usePrefersReducedMotion();
76
+
77
+ useLayoutEffect(() => {
78
+ const changed = !Object.is(previous.current, token);
79
+ previous.current = token;
80
+ cancelAnimation(scale);
81
+ scale.value = 1;
82
+ if (changed && !blocked && !reducedMotion && Number.isFinite(token)) {
83
+ const easing = Easing.bezier(0.2, 0.8, 0.2, 1);
84
+ scale.value = withSequence(
85
+ withTiming(1.12, { duration: 100, easing, reduceMotion: ReduceMotion.System }),
86
+ withTiming(1, { duration: 220, easing, reduceMotion: ReduceMotion.System }),
87
+ );
88
+ }
89
+ return () => cancelAnimation(scale);
90
+ }, [token, blocked, reducedMotion, scale]);
91
+
92
+ const style = useAnimatedStyle(() => ({ transform: [{ scale: scale.value }] }), [scale]);
93
+ return (
94
+ <Animated.View pointerEvents="none" style={[CENTER, style]}>
95
+ {children}
96
+ </Animated.View>
97
+ );
98
+ }
99
+
100
+ export const GlyphAttention = IS_WEB ? WebGlyphAttention : NativeGlyphAttention;
@@ -13,6 +13,7 @@ import {
13
13
  resolveGlyphButtonPaint,
14
14
  } from './shared';
15
15
  import type { GlyphButtonProps } from './types';
16
+ import { GlyphAttention } from './GlyphAttention';
16
17
  import { IS_WEB } from '../styles/platform';
17
18
  import type { RefComponent } from '../styles/native-refs';
18
19
 
@@ -27,7 +28,7 @@ import type { RefComponent } from '../styles/native-refs';
27
28
  * disabled `aria-disabled`, no press, dimmed to `disabledOpacity` (0.5)
28
29
  * busy `aria-busy`, no press, NOT dimmed — working, not unavailable
29
30
  *
30
- * Colour change only, no scale, 150ms. Focus is a 2px ring at a 2px offset,
31
+ * Default feedback changes colour only, with no scale, in 150ms. Focus is a 2px ring at a 2px offset,
31
32
  * `:focus-visible` so a mouse press leaves none behind; `ring` is a PROP because
32
33
  * these sit on surfaces Bloom does not own (artwork, a player bar) where the
33
34
  * accent ring disappears.
@@ -86,10 +87,13 @@ function GlyphButtonComponent(
86
87
  {
87
88
  size = GLYPH_BUTTON_SIZE,
88
89
  glyphSize,
90
+ attention,
89
91
  icon: Icon,
90
92
  children,
91
93
  onPress,
92
94
  onLongPress,
95
+ onFocus,
96
+ onBlur,
93
97
  disabled = false,
94
98
  busy = false,
95
99
  pressed,
@@ -149,6 +153,11 @@ function GlyphButtonComponent(
149
153
  '--bloom-glyph-button-ring': ring ?? paint.ring,
150
154
  };
151
155
 
156
+ const glyphContent =
157
+ typeof children === 'function'
158
+ ? children(foreground)
159
+ : (children ?? (Icon ? <Icon width={glyph} height={glyph} fill={foreground} /> : null));
160
+
152
161
  return (
153
162
  <Pressable
154
163
  ref={ref}
@@ -181,6 +190,8 @@ function GlyphButtonComponent(
181
190
  }
182
191
  : undefined
183
192
  }
193
+ onFocus={onFocus}
194
+ onBlur={onBlur}
184
195
  onHoverIn={onHoverIn}
185
196
  onHoverOut={onHoverOut}
186
197
  onPressIn={onPressIn}
@@ -189,11 +200,15 @@ function GlyphButtonComponent(
189
200
  style={[rootStyle, style]}
190
201
  testID={testID}
191
202
  >
192
- <View pointerEvents="none" style={{ alignItems: 'center', justifyContent: 'center' }}>
193
- {typeof children === 'function'
194
- ? children(foreground)
195
- : (children ?? (Icon ? <Icon width={glyph} height={glyph} fill={foreground} /> : null))}
196
- </View>
203
+ {attention === undefined ? (
204
+ <View pointerEvents="none" style={{ alignItems: 'center', justifyContent: 'center' }}>
205
+ {glyphContent}
206
+ </View>
207
+ ) : (
208
+ <GlyphAttention token={attention} blocked={blocked}>
209
+ {glyphContent}
210
+ </GlyphAttention>
211
+ )}
197
212
  {decoration}
198
213
  </Pressable>
199
214
  );