@oxy.so/bloom 19.6.0 → 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.
- package/docs/adoption-matrix.mdx +9 -9
- package/docs/bottom-bar.mdx +57 -1
- package/docs/button.mdx +19 -0
- package/docs/chat-composer.mdx +59 -1
- package/docs/icons.mdx +22 -0
- package/docs/public-parts.mdx +13 -2
- package/docs/tab-pager.mdx +10 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/bottom-bar/BottomBarBase.js +141 -37
- package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/commonjs/button/GlyphAttention.js +110 -0
- package/lib/commonjs/button/GlyphAttention.js.map +1 -0
- package/lib/commonjs/button/GlyphButton.js +18 -7
- package/lib/commonjs/button/GlyphButton.js.map +1 -1
- package/lib/commonjs/chat-composer/CompactComposer.js +18 -0
- package/lib/commonjs/chat-composer/CompactComposer.js.map +1 -0
- package/lib/commonjs/chat-composer/CompactComposer.web.js +18 -0
- package/lib/commonjs/chat-composer/CompactComposer.web.js.map +1 -0
- package/lib/commonjs/chat-composer/compact-text.js +11 -0
- package/lib/commonjs/chat-composer/compact-text.js.map +1 -0
- package/lib/commonjs/chat-composer/compact-types.js +6 -0
- package/lib/commonjs/chat-composer/compact-types.js.map +1 -0
- package/lib/commonjs/chat-composer/create-compact-composer.js +185 -0
- package/lib/commonjs/chat-composer/create-compact-composer.js.map +1 -0
- package/lib/commonjs/chat-composer/index.js +14 -0
- package/lib/commonjs/chat-composer/index.js.map +1 -1
- package/lib/commonjs/chat-composer/index.web.js +14 -0
- package/lib/commonjs/chat-composer/index.web.js.map +1 -1
- package/lib/commonjs/chat-composer/messages.js +8 -1
- package/lib/commonjs/chat-composer/messages.js.map +1 -1
- package/lib/commonjs/icons/index.js +12 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/icons/social/BookmarkFillIcon.js +12 -0
- package/lib/commonjs/icons/social/BookmarkFillIcon.js.map +1 -0
- package/lib/commonjs/icons/social/BookmarkIcon.js +12 -0
- package/lib/commonjs/icons/social/BookmarkIcon.js.map +1 -0
- package/lib/commonjs/icons/social/GifAttachmentIcon.js +12 -0
- package/lib/commonjs/icons/social/GifAttachmentIcon.js.map +1 -0
- package/lib/commonjs/icons/social/LikeFillIcon.js +13 -0
- package/lib/commonjs/icons/social/LikeFillIcon.js.map +1 -0
- package/lib/commonjs/icons/social/LikeIcon.js +14 -0
- package/lib/commonjs/icons/social/LikeIcon.js.map +1 -0
- package/lib/commonjs/icons/social/MediaAttachmentIcon.js +12 -0
- package/lib/commonjs/icons/social/MediaAttachmentIcon.js.map +1 -0
- package/lib/commonjs/icons/social/ReplyIcon.js +14 -0
- package/lib/commonjs/icons/social/ReplyIcon.js.map +1 -0
- package/lib/commonjs/icons/social/RepostIcon.js +12 -0
- package/lib/commonjs/icons/social/RepostIcon.js.map +1 -0
- package/lib/commonjs/icons/social/ShareIcon.js +12 -0
- package/lib/commonjs/icons/social/ShareIcon.js.map +1 -0
- package/lib/commonjs/icons/social/index.js +69 -0
- package/lib/commonjs/icons/social/index.js.map +1 -0
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +14 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/bottom-edge.js +14 -0
- package/lib/commonjs/layout/bottom-edge.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +8 -0
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +8 -0
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +8 -0
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +8 -0
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +8 -0
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +8 -0
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +8 -0
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +8 -0
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +8 -0
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +8 -0
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +8 -0
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +8 -0
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +8 -0
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +8 -0
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/tab-bar/TabBarBase.js +126 -20
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
- package/lib/commonjs/tab-bar/shared.js +3 -1
- package/lib/commonjs/tab-bar/shared.js.map +1 -1
- package/lib/commonjs/tab-pager/TabPagerBottomBar.js +12 -2
- package/lib/commonjs/tab-pager/TabPagerBottomBar.js.map +1 -1
- package/lib/module/bottom-bar/BottomBarBase.js +143 -39
- package/lib/module/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/module/button/GlyphAttention.js +104 -0
- package/lib/module/button/GlyphAttention.js.map +1 -0
- package/lib/module/button/GlyphButton.js +18 -7
- package/lib/module/button/GlyphButton.js.map +1 -1
- package/lib/module/chat-composer/CompactComposer.js +14 -0
- package/lib/module/chat-composer/CompactComposer.js.map +1 -0
- package/lib/module/chat-composer/CompactComposer.web.js +14 -0
- package/lib/module/chat-composer/CompactComposer.web.js.map +1 -0
- package/lib/module/chat-composer/compact-text.js +7 -0
- package/lib/module/chat-composer/compact-text.js.map +1 -0
- package/lib/module/chat-composer/compact-types.js +4 -0
- package/lib/module/chat-composer/compact-types.js.map +1 -0
- package/lib/module/chat-composer/create-compact-composer.js +181 -0
- package/lib/module/chat-composer/create-compact-composer.js.map +1 -0
- package/lib/module/chat-composer/index.js +2 -0
- package/lib/module/chat-composer/index.js.map +1 -1
- package/lib/module/chat-composer/index.web.js +2 -0
- package/lib/module/chat-composer/index.web.js.map +1 -1
- package/lib/module/chat-composer/messages.js +7 -0
- package/lib/module/chat-composer/messages.js.map +1 -1
- package/lib/module/icons/index.js +2 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/icons/social/BookmarkFillIcon.js +9 -0
- package/lib/module/icons/social/BookmarkFillIcon.js.map +1 -0
- package/lib/module/icons/social/BookmarkIcon.js +9 -0
- package/lib/module/icons/social/BookmarkIcon.js.map +1 -0
- package/lib/module/icons/social/GifAttachmentIcon.js +9 -0
- package/lib/module/icons/social/GifAttachmentIcon.js.map +1 -0
- package/lib/module/icons/social/LikeFillIcon.js +10 -0
- package/lib/module/icons/social/LikeFillIcon.js.map +1 -0
- package/lib/module/icons/social/LikeIcon.js +11 -0
- package/lib/module/icons/social/LikeIcon.js.map +1 -0
- package/lib/module/icons/social/MediaAttachmentIcon.js +9 -0
- package/lib/module/icons/social/MediaAttachmentIcon.js.map +1 -0
- package/lib/module/icons/social/ReplyIcon.js +11 -0
- package/lib/module/icons/social/ReplyIcon.js.map +1 -0
- package/lib/module/icons/social/RepostIcon.js +9 -0
- package/lib/module/icons/social/RepostIcon.js.map +1 -0
- package/lib/module/icons/social/ShareIcon.js +9 -0
- package/lib/module/icons/social/ShareIcon.js.map +1 -0
- package/lib/module/icons/social/index.js +12 -0
- package/lib/module/icons/social/index.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/bottom-edge.js +14 -1
- package/lib/module/layout/bottom-edge.js.map +1 -1
- package/lib/module/locale/translations/ar.js +8 -0
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +8 -0
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +8 -0
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +8 -0
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +8 -0
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +8 -0
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +8 -0
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +8 -0
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +8 -0
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +8 -0
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +8 -0
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +8 -0
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +8 -0
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +8 -0
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/tab-bar/TabBarBase.js +130 -23
- package/lib/module/tab-bar/TabBarBase.js.map +1 -1
- package/lib/module/tab-bar/shared.js +2 -0
- package/lib/module/tab-bar/shared.js.map +1 -1
- package/lib/module/tab-pager/TabPagerBottomBar.js +13 -3
- package/lib/module/tab-pager/TabPagerBottomBar.js.map +1 -1
- package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts +1 -1
- package/lib/typescript/commonjs/bottom-bar/BottomBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-bar/types.d.ts +10 -2
- package/lib/typescript/commonjs/bottom-bar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/GlyphAttention.d.ts +11 -0
- package/lib/typescript/commonjs/button/GlyphAttention.d.ts.map +1 -0
- package/lib/typescript/commonjs/button/GlyphButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/types.d.ts +11 -0
- package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/CompactComposer.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts +2 -0
- package/lib/typescript/commonjs/chat-composer/CompactComposer.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/compact-text.d.ts +3 -0
- package/lib/typescript/commonjs/chat-composer/compact-text.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/compact-types.d.ts +45 -0
- package/lib/typescript/commonjs/chat-composer/compact-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts +13 -0
- package/lib/typescript/commonjs/chat-composer/create-compact-composer.d.ts.map +1 -0
- package/lib/typescript/commonjs/chat-composer/index.d.ts +3 -0
- package/lib/typescript/commonjs/chat-composer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/chat-composer/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/messages.d.ts +8 -0
- package/lib/typescript/commonjs/chat-composer/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts +1 -0
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/LikeIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/ReplyIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/RepostIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts +8 -0
- package/lib/typescript/commonjs/icons/social/ShareIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/social/index.d.ts +10 -0
- package/lib/typescript/commonjs/icons/social/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +2 -2
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/bottom-edge.d.ts +2 -0
- package/lib/typescript/commonjs/layout/bottom-edge.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts +2 -1
- package/lib/typescript/commonjs/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/shared.d.ts +2 -0
- package/lib/typescript/commonjs/tab-bar/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/types.d.ts +2 -0
- package/lib/typescript/commonjs/tab-bar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts +1 -1
- package/lib/typescript/commonjs/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-pager/types.d.ts +4 -1
- package/lib/typescript/commonjs/tab-pager/types.d.ts.map +1 -1
- package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts +1 -1
- package/lib/typescript/module/bottom-bar/BottomBarBase.d.ts.map +1 -1
- package/lib/typescript/module/bottom-bar/types.d.ts +10 -2
- package/lib/typescript/module/bottom-bar/types.d.ts.map +1 -1
- package/lib/typescript/module/button/GlyphAttention.d.ts +11 -0
- package/lib/typescript/module/button/GlyphAttention.d.ts.map +1 -0
- package/lib/typescript/module/button/GlyphButton.d.ts.map +1 -1
- package/lib/typescript/module/button/types.d.ts +11 -0
- package/lib/typescript/module/button/types.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/CompactComposer.d.ts +2 -0
- package/lib/typescript/module/chat-composer/CompactComposer.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts +2 -0
- package/lib/typescript/module/chat-composer/CompactComposer.web.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/compact-text.d.ts +3 -0
- package/lib/typescript/module/chat-composer/compact-text.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/compact-types.d.ts +45 -0
- package/lib/typescript/module/chat-composer/compact-types.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/create-compact-composer.d.ts +13 -0
- package/lib/typescript/module/chat-composer/create-compact-composer.d.ts.map +1 -0
- package/lib/typescript/module/chat-composer/index.d.ts +3 -0
- package/lib/typescript/module/chat-composer/index.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/index.web.d.ts +3 -0
- package/lib/typescript/module/chat-composer/index.web.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/messages.d.ts +8 -0
- package/lib/typescript/module/chat-composer/messages.d.ts.map +1 -1
- package/lib/typescript/module/icons/index.d.ts +1 -0
- package/lib/typescript/module/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/BookmarkFillIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/BookmarkIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/BookmarkIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/GifAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/LikeFillIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/LikeFillIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/LikeIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/LikeIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/ReplyIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/ReplyIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/RepostIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/RepostIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/ShareIcon.d.ts +8 -0
- package/lib/typescript/module/icons/social/ShareIcon.d.ts.map +1 -0
- package/lib/typescript/module/icons/social/index.d.ts +10 -0
- package/lib/typescript/module/icons/social/index.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +2 -2
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/bottom-edge.d.ts +2 -0
- package/lib/typescript/module/layout/bottom-edge.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/types.d.ts +2 -1
- package/lib/typescript/module/locale/translations/types.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/shared.d.ts +2 -0
- package/lib/typescript/module/tab-bar/shared.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/types.d.ts +2 -0
- package/lib/typescript/module/tab-bar/types.d.ts.map +1 -1
- package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts +1 -1
- package/lib/typescript/module/tab-pager/TabPagerBottomBar.d.ts.map +1 -1
- package/lib/typescript/module/tab-pager/types.d.ts +4 -1
- package/lib/typescript/module/tab-pager/types.d.ts.map +1 -1
- package/package.json +154 -1
- package/src/__tests__/support/public-part-classifications.json +22 -1
- package/src/__tests__/support/yoga-host-tree.ts +12 -2
- package/src/bottom-bar/BottomBarBase.tsx +230 -46
- package/src/bottom-bar/types.ts +10 -2
- package/src/button/GlyphAttention.tsx +100 -0
- package/src/button/GlyphButton.tsx +21 -6
- package/src/button/types.ts +11 -0
- package/src/chat-composer/CompactComposer.tsx +7 -0
- package/src/chat-composer/CompactComposer.web.tsx +7 -0
- package/src/chat-composer/compact-text.ts +4 -0
- package/src/chat-composer/compact-types.ts +47 -0
- package/src/chat-composer/create-compact-composer.tsx +213 -0
- package/src/chat-composer/index.ts +8 -0
- package/src/chat-composer/index.web.ts +8 -0
- package/src/chat-composer/messages.ts +16 -0
- package/src/icons/index.ts +2 -1
- package/src/icons/social/BookmarkFillIcon.tsx +6 -0
- package/src/icons/social/BookmarkIcon.tsx +6 -0
- package/src/icons/social/GifAttachmentIcon.tsx +6 -0
- package/src/icons/social/LikeFillIcon.tsx +7 -0
- package/src/icons/social/LikeIcon.tsx +8 -0
- package/src/icons/social/MediaAttachmentIcon.tsx +6 -0
- package/src/icons/social/ReplyIcon.tsx +8 -0
- package/src/icons/social/RepostIcon.tsx +6 -0
- package/src/icons/social/ShareIcon.tsx +6 -0
- package/src/icons/social/index.ts +9 -0
- package/src/index.ts +5 -0
- package/src/index.web.ts +5 -0
- package/src/layout/bottom-edge.tsx +17 -0
- package/src/locale/translations/ar.ts +9 -0
- package/src/locale/translations/bn.ts +9 -0
- package/src/locale/translations/ca.ts +10 -0
- package/src/locale/translations/de.ts +10 -0
- package/src/locale/translations/es.ts +10 -0
- package/src/locale/translations/fr.ts +10 -0
- package/src/locale/translations/hi.ts +9 -0
- package/src/locale/translations/id.ts +10 -0
- package/src/locale/translations/it.ts +10 -0
- package/src/locale/translations/ja.ts +10 -0
- package/src/locale/translations/pt.ts +10 -0
- package/src/locale/translations/ru.ts +10 -0
- package/src/locale/translations/tr.ts +10 -0
- package/src/locale/translations/types.ts +5 -1
- package/src/locale/translations/zh.ts +9 -0
- package/src/tab-bar/TabBarBase.tsx +193 -27
- package/src/tab-bar/shared.ts +2 -0
- package/src/tab-bar/types.ts +2 -0
- package/src/tab-pager/TabPagerBottomBar.tsx +23 -3
- package/src/tab-pager/types.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/bloom",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.7.0",
|
|
4
4
|
"packageManager": "bun@1.4.3",
|
|
5
5
|
"description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -1807,6 +1807,132 @@
|
|
|
1807
1807
|
"default": "./lib/commonjs/icons/simple-icons/SiSubstack.js"
|
|
1808
1808
|
}
|
|
1809
1809
|
},
|
|
1810
|
+
"./icons/MediaAttachmentIcon": {
|
|
1811
|
+
"react-native": {
|
|
1812
|
+
"types": "./lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts",
|
|
1813
|
+
"default": "./src/icons/social/MediaAttachmentIcon.tsx"
|
|
1814
|
+
},
|
|
1815
|
+
"import": {
|
|
1816
|
+
"types": "./lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts",
|
|
1817
|
+
"default": "./lib/module/icons/social/MediaAttachmentIcon.js"
|
|
1818
|
+
},
|
|
1819
|
+
"require": {
|
|
1820
|
+
"types": "./lib/typescript/commonjs/icons/social/MediaAttachmentIcon.d.ts",
|
|
1821
|
+
"default": "./lib/commonjs/icons/social/MediaAttachmentIcon.js"
|
|
1822
|
+
}
|
|
1823
|
+
},
|
|
1824
|
+
"./icons/GifAttachmentIcon": {
|
|
1825
|
+
"react-native": {
|
|
1826
|
+
"types": "./lib/typescript/module/icons/social/GifAttachmentIcon.d.ts",
|
|
1827
|
+
"default": "./src/icons/social/GifAttachmentIcon.tsx"
|
|
1828
|
+
},
|
|
1829
|
+
"import": {
|
|
1830
|
+
"types": "./lib/typescript/module/icons/social/GifAttachmentIcon.d.ts",
|
|
1831
|
+
"default": "./lib/module/icons/social/GifAttachmentIcon.js"
|
|
1832
|
+
},
|
|
1833
|
+
"require": {
|
|
1834
|
+
"types": "./lib/typescript/commonjs/icons/social/GifAttachmentIcon.d.ts",
|
|
1835
|
+
"default": "./lib/commonjs/icons/social/GifAttachmentIcon.js"
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
"./icons/ReplyIcon": {
|
|
1839
|
+
"react-native": {
|
|
1840
|
+
"types": "./lib/typescript/module/icons/social/ReplyIcon.d.ts",
|
|
1841
|
+
"default": "./src/icons/social/ReplyIcon.tsx"
|
|
1842
|
+
},
|
|
1843
|
+
"import": {
|
|
1844
|
+
"types": "./lib/typescript/module/icons/social/ReplyIcon.d.ts",
|
|
1845
|
+
"default": "./lib/module/icons/social/ReplyIcon.js"
|
|
1846
|
+
},
|
|
1847
|
+
"require": {
|
|
1848
|
+
"types": "./lib/typescript/commonjs/icons/social/ReplyIcon.d.ts",
|
|
1849
|
+
"default": "./lib/commonjs/icons/social/ReplyIcon.js"
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
"./icons/RepostIcon": {
|
|
1853
|
+
"react-native": {
|
|
1854
|
+
"types": "./lib/typescript/module/icons/social/RepostIcon.d.ts",
|
|
1855
|
+
"default": "./src/icons/social/RepostIcon.tsx"
|
|
1856
|
+
},
|
|
1857
|
+
"import": {
|
|
1858
|
+
"types": "./lib/typescript/module/icons/social/RepostIcon.d.ts",
|
|
1859
|
+
"default": "./lib/module/icons/social/RepostIcon.js"
|
|
1860
|
+
},
|
|
1861
|
+
"require": {
|
|
1862
|
+
"types": "./lib/typescript/commonjs/icons/social/RepostIcon.d.ts",
|
|
1863
|
+
"default": "./lib/commonjs/icons/social/RepostIcon.js"
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
"./icons/LikeIcon": {
|
|
1867
|
+
"react-native": {
|
|
1868
|
+
"types": "./lib/typescript/module/icons/social/LikeIcon.d.ts",
|
|
1869
|
+
"default": "./src/icons/social/LikeIcon.tsx"
|
|
1870
|
+
},
|
|
1871
|
+
"import": {
|
|
1872
|
+
"types": "./lib/typescript/module/icons/social/LikeIcon.d.ts",
|
|
1873
|
+
"default": "./lib/module/icons/social/LikeIcon.js"
|
|
1874
|
+
},
|
|
1875
|
+
"require": {
|
|
1876
|
+
"types": "./lib/typescript/commonjs/icons/social/LikeIcon.d.ts",
|
|
1877
|
+
"default": "./lib/commonjs/icons/social/LikeIcon.js"
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"./icons/LikeFillIcon": {
|
|
1881
|
+
"react-native": {
|
|
1882
|
+
"types": "./lib/typescript/module/icons/social/LikeFillIcon.d.ts",
|
|
1883
|
+
"default": "./src/icons/social/LikeFillIcon.tsx"
|
|
1884
|
+
},
|
|
1885
|
+
"import": {
|
|
1886
|
+
"types": "./lib/typescript/module/icons/social/LikeFillIcon.d.ts",
|
|
1887
|
+
"default": "./lib/module/icons/social/LikeFillIcon.js"
|
|
1888
|
+
},
|
|
1889
|
+
"require": {
|
|
1890
|
+
"types": "./lib/typescript/commonjs/icons/social/LikeFillIcon.d.ts",
|
|
1891
|
+
"default": "./lib/commonjs/icons/social/LikeFillIcon.js"
|
|
1892
|
+
}
|
|
1893
|
+
},
|
|
1894
|
+
"./icons/BookmarkIcon": {
|
|
1895
|
+
"react-native": {
|
|
1896
|
+
"types": "./lib/typescript/module/icons/social/BookmarkIcon.d.ts",
|
|
1897
|
+
"default": "./src/icons/social/BookmarkIcon.tsx"
|
|
1898
|
+
},
|
|
1899
|
+
"import": {
|
|
1900
|
+
"types": "./lib/typescript/module/icons/social/BookmarkIcon.d.ts",
|
|
1901
|
+
"default": "./lib/module/icons/social/BookmarkIcon.js"
|
|
1902
|
+
},
|
|
1903
|
+
"require": {
|
|
1904
|
+
"types": "./lib/typescript/commonjs/icons/social/BookmarkIcon.d.ts",
|
|
1905
|
+
"default": "./lib/commonjs/icons/social/BookmarkIcon.js"
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"./icons/BookmarkFillIcon": {
|
|
1909
|
+
"react-native": {
|
|
1910
|
+
"types": "./lib/typescript/module/icons/social/BookmarkFillIcon.d.ts",
|
|
1911
|
+
"default": "./src/icons/social/BookmarkFillIcon.tsx"
|
|
1912
|
+
},
|
|
1913
|
+
"import": {
|
|
1914
|
+
"types": "./lib/typescript/module/icons/social/BookmarkFillIcon.d.ts",
|
|
1915
|
+
"default": "./lib/module/icons/social/BookmarkFillIcon.js"
|
|
1916
|
+
},
|
|
1917
|
+
"require": {
|
|
1918
|
+
"types": "./lib/typescript/commonjs/icons/social/BookmarkFillIcon.d.ts",
|
|
1919
|
+
"default": "./lib/commonjs/icons/social/BookmarkFillIcon.js"
|
|
1920
|
+
}
|
|
1921
|
+
},
|
|
1922
|
+
"./icons/ShareIcon": {
|
|
1923
|
+
"react-native": {
|
|
1924
|
+
"types": "./lib/typescript/module/icons/social/ShareIcon.d.ts",
|
|
1925
|
+
"default": "./src/icons/social/ShareIcon.tsx"
|
|
1926
|
+
},
|
|
1927
|
+
"import": {
|
|
1928
|
+
"types": "./lib/typescript/module/icons/social/ShareIcon.d.ts",
|
|
1929
|
+
"default": "./lib/module/icons/social/ShareIcon.js"
|
|
1930
|
+
},
|
|
1931
|
+
"require": {
|
|
1932
|
+
"types": "./lib/typescript/commonjs/icons/social/ShareIcon.d.ts",
|
|
1933
|
+
"default": "./lib/commonjs/icons/social/ShareIcon.js"
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1810
1936
|
"./typography": {
|
|
1811
1937
|
"react-native": {
|
|
1812
1938
|
"types": "./lib/typescript/module/typography/index.d.ts",
|
|
@@ -4921,6 +5047,33 @@
|
|
|
4921
5047
|
"icons/SiSubstack": [
|
|
4922
5048
|
"./lib/typescript/module/icons/simple-icons/SiSubstack.d.ts"
|
|
4923
5049
|
],
|
|
5050
|
+
"icons/MediaAttachmentIcon": [
|
|
5051
|
+
"./lib/typescript/module/icons/social/MediaAttachmentIcon.d.ts"
|
|
5052
|
+
],
|
|
5053
|
+
"icons/GifAttachmentIcon": [
|
|
5054
|
+
"./lib/typescript/module/icons/social/GifAttachmentIcon.d.ts"
|
|
5055
|
+
],
|
|
5056
|
+
"icons/ReplyIcon": [
|
|
5057
|
+
"./lib/typescript/module/icons/social/ReplyIcon.d.ts"
|
|
5058
|
+
],
|
|
5059
|
+
"icons/RepostIcon": [
|
|
5060
|
+
"./lib/typescript/module/icons/social/RepostIcon.d.ts"
|
|
5061
|
+
],
|
|
5062
|
+
"icons/LikeIcon": [
|
|
5063
|
+
"./lib/typescript/module/icons/social/LikeIcon.d.ts"
|
|
5064
|
+
],
|
|
5065
|
+
"icons/LikeFillIcon": [
|
|
5066
|
+
"./lib/typescript/module/icons/social/LikeFillIcon.d.ts"
|
|
5067
|
+
],
|
|
5068
|
+
"icons/BookmarkIcon": [
|
|
5069
|
+
"./lib/typescript/module/icons/social/BookmarkIcon.d.ts"
|
|
5070
|
+
],
|
|
5071
|
+
"icons/BookmarkFillIcon": [
|
|
5072
|
+
"./lib/typescript/module/icons/social/BookmarkFillIcon.d.ts"
|
|
5073
|
+
],
|
|
5074
|
+
"icons/ShareIcon": [
|
|
5075
|
+
"./lib/typescript/module/icons/social/ShareIcon.d.ts"
|
|
5076
|
+
],
|
|
4924
5077
|
"typography": [
|
|
4925
5078
|
"./lib/typescript/module/typography/index.d.ts"
|
|
4926
5079
|
],
|
|
@@ -701,7 +701,16 @@
|
|
|
701
701
|
"src/icons/remix/RiWrenchLine.tsx#RiWrenchLine",
|
|
702
702
|
"src/icons/remix/RiYoutubeFill.tsx#RiYoutubeFill",
|
|
703
703
|
"src/icons/remix/RiYoutubeLine.tsx#RiYoutubeLine",
|
|
704
|
-
"src/icons/simple-icons/SiSubstack.tsx#SiSubstack"
|
|
704
|
+
"src/icons/simple-icons/SiSubstack.tsx#SiSubstack",
|
|
705
|
+
"src/icons/social/BookmarkFillIcon.tsx#BookmarkFillIcon",
|
|
706
|
+
"src/icons/social/BookmarkIcon.tsx#BookmarkIcon",
|
|
707
|
+
"src/icons/social/GifAttachmentIcon.tsx#GifAttachmentIcon",
|
|
708
|
+
"src/icons/social/LikeFillIcon.tsx#LikeFillIcon",
|
|
709
|
+
"src/icons/social/LikeIcon.tsx#LikeIcon",
|
|
710
|
+
"src/icons/social/MediaAttachmentIcon.tsx#MediaAttachmentIcon",
|
|
711
|
+
"src/icons/social/ReplyIcon.tsx#ReplyIcon",
|
|
712
|
+
"src/icons/social/RepostIcon.tsx#RepostIcon",
|
|
713
|
+
"src/icons/social/ShareIcon.tsx#ShareIcon"
|
|
705
714
|
]
|
|
706
715
|
},
|
|
707
716
|
"accordion-root-part": {
|
|
@@ -1982,5 +1991,17 @@
|
|
|
1982
1991
|
],
|
|
1983
1992
|
"verification": "Native renderer and DOM web verify the default xl disc/glyph (64/28px), explicit lg geometry (52/24px), and stable geometry under xs, lg and nested BloomScope. Native type-level fixtures use BloomIconComponent directly. Physical-device proportions remain unverified.",
|
|
1984
1993
|
"parts": ["src/icon-circle/IconCircle.tsx#IconCircle"]
|
|
1994
|
+
},
|
|
1995
|
+
"compact-composer": {
|
|
1996
|
+
"status": "delegated",
|
|
1997
|
+
"reason": "Controlled composed editor delegates surface, field, scroll, expansion, meter and controls to their existing owners. Its compact recipe explicitly sets attachment targets to sm (32), expand glyph to 32, field to sm and submit to md; these are role-specific dimensions, not inherited application scale. Caller slots preserve their own scope.",
|
|
1998
|
+
"evidence": [
|
|
1999
|
+
"src/chat-composer/create-compact-composer.tsx",
|
|
2000
|
+
"src/__tests__/CompactComposer.test.tsx",
|
|
2001
|
+
"scripts/verify-compact-composer.mjs",
|
|
2002
|
+
"docs/chat-composer.mdx"
|
|
2003
|
+
],
|
|
2004
|
+
"verification": "Native-renderer behavior tests and Chromium input/scroll/focus validation; physical IME and device geometry not established by these checks.",
|
|
2005
|
+
"parts": ["src/chat-composer/CompactComposer.tsx#CompactComposer"]
|
|
1985
2006
|
}
|
|
1986
2007
|
}
|
|
@@ -34,7 +34,7 @@ function nativeClasses(candidates: string[]): Map<string, NativeRule[]> {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
const geometry =
|
|
37
|
-
/^(width|height|minWidth|maxWidth|minHeight|maxHeight|flex|flexGrow|flexShrink|flexBasis|flexDirection|flexWrap|justifyContent|alignItems|alignSelf|alignContent|gap|rowGap|columnGap|position|top|bottom|left|right|overflow|padding(?:Horizontal|Vertical|Left|Right|Top|Bottom|Start|End)?|margin(?:Horizontal|Vertical|Left|Right|Top|Bottom|Start|End)?|border(?:Left|Right|Top|Bottom|Start|End)?Width)$/;
|
|
37
|
+
/^(width|height|minWidth|maxWidth|minHeight|maxHeight|flex|flexGrow|flexShrink|flexBasis|flexDirection|flexWrap|justifyContent|alignItems|alignSelf|alignContent|gap|rowGap|columnGap|position|top|bottom|left|right|start|end|display|overflow|padding(?:Horizontal|Vertical|Left|Right|Top|Bottom|Start|End)?|margin(?:Horizontal|Vertical|Left|Right|Top|Bottom|Start|End)?|border(?:Left|Right|Top|Bottom|Start|End)?Width)$/;
|
|
38
38
|
export interface NativeBox {
|
|
39
39
|
x: number;
|
|
40
40
|
y: number;
|
|
@@ -138,7 +138,17 @@ export function createYogaHostRenderer() {
|
|
|
138
138
|
);
|
|
139
139
|
const styles = Object.entries({ ...classStyle, ...resolvedStyle(node.props.style) })
|
|
140
140
|
// React Native's logical inline edges are Yoga's start and end.
|
|
141
|
-
.map(
|
|
141
|
+
.map(
|
|
142
|
+
([key, value]) =>
|
|
143
|
+
[
|
|
144
|
+
key === 'insetInlineStart'
|
|
145
|
+
? 'start'
|
|
146
|
+
: key === 'insetInlineEnd'
|
|
147
|
+
? 'end'
|
|
148
|
+
: key.replace(/Inline(Start|End)$/, '$1'),
|
|
149
|
+
value,
|
|
150
|
+
] as const,
|
|
151
|
+
)
|
|
142
152
|
.filter(([key, value]) => geometry.test(key) && value != null);
|
|
143
153
|
return `${parent} ${node.type === 'Text' ? textWidth : -1} 20 ${styles.length}\n${styles.map(([key, value]) => `${key} ${value}`).join('\n')}`;
|
|
144
154
|
}),
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { ScrollArea } from '../layout/ScrollArea';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
type ComponentRef,
|
|
4
|
+
useContext,
|
|
5
|
+
useRef,
|
|
6
|
+
useState,
|
|
7
|
+
useCallback,
|
|
8
|
+
useInsertionEffect,
|
|
9
|
+
type ComponentType,
|
|
10
|
+
} from 'react';
|
|
3
11
|
import { View, Platform } from 'react-native';
|
|
4
12
|
import { useKeyboardVisible } from '../hooks/use-keyboard-visible';
|
|
5
13
|
import { useEffect } from 'react';
|
|
@@ -9,17 +17,23 @@ import Animated, {
|
|
|
9
17
|
interpolate,
|
|
10
18
|
runOnJS,
|
|
11
19
|
useSharedValue,
|
|
20
|
+
useDerivedValue,
|
|
12
21
|
} from 'react-native-reanimated';
|
|
13
22
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
14
23
|
import { useDirectionProps } from '../hooks/use-is-rtl';
|
|
15
24
|
import { BottomBarSlotContext } from '../layout/bottom-bar-slot';
|
|
16
|
-
import {
|
|
25
|
+
import { ScreenFooterContext } from '../screen/context';
|
|
26
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
27
|
+
import { IS_WEB } from '../styles/platform';
|
|
28
|
+
import { dataHook } from '../styles/data-hook';
|
|
29
|
+
import { useClaimBottomEdge, useMeasuredBottomEdgeClaim } from '../layout/bottom-edge';
|
|
17
30
|
import { FAB_METRICS } from '../fab/constants';
|
|
18
31
|
import { windowEdgeGap } from '../layout/edge';
|
|
19
32
|
import { useMinimizeState } from '../tab-bar/context';
|
|
20
33
|
import {
|
|
21
34
|
EXPANDED_HEIGHT,
|
|
22
35
|
MINIMIZED_HEIGHT,
|
|
36
|
+
DOCK_NAVIGATION_PHASE,
|
|
23
37
|
BLUR_BLEED,
|
|
24
38
|
MAX_EXPANDED_ITEM_WIDTH,
|
|
25
39
|
ROW_PAD_H,
|
|
@@ -29,6 +43,9 @@ import type { ProgressiveBlurProps } from '../progressive-blur/types';
|
|
|
29
43
|
import type { BottomBarProps } from './types';
|
|
30
44
|
import { useCssSafeAreaInsets } from '../hooks/use-css-safe-area-insets';
|
|
31
45
|
import { UNSET } from '../styles/animated-style';
|
|
46
|
+
import { useBorderBoxSize } from '../hooks/use-border-box-size';
|
|
47
|
+
import { useWindowWidthClass } from '../hooks/use-width-class';
|
|
48
|
+
import { BREAKPOINTS } from '../styles/breakpoints';
|
|
32
49
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
33
50
|
|
|
34
51
|
interface Props extends BottomBarProps {
|
|
@@ -48,19 +65,42 @@ export function BottomBarBase({
|
|
|
48
65
|
action,
|
|
49
66
|
actionPlacement = 'auto',
|
|
50
67
|
actionBehavior = 'hide',
|
|
68
|
+
navigationVisibility = 'always',
|
|
51
69
|
minimizeProgress,
|
|
52
70
|
hideProgress,
|
|
53
71
|
blur = false,
|
|
54
72
|
maxWidth = 560,
|
|
73
|
+
horizontalInset = 12,
|
|
55
74
|
style,
|
|
56
75
|
testID,
|
|
57
76
|
}: Props) {
|
|
77
|
+
const inset = Math.max(0, Number.isFinite(horizontalInset) ? horizontalInset : 12);
|
|
58
78
|
const insets = useCssSafeAreaInsets(useSafeAreaInsets());
|
|
59
79
|
// Logical insets below; react-native-web needs the direction handed to it.
|
|
60
80
|
const dirProps = useDirectionProps();
|
|
61
81
|
const minimize = useMinimizeState();
|
|
62
82
|
const progress = minimizeProgress ?? minimize.progress;
|
|
63
83
|
const reducedMotion = usePrefersReducedMotion();
|
|
84
|
+
const dock = actionBehavior === 'dock' && action != null;
|
|
85
|
+
const sizeClass = useWindowWidthClass(COMPACT_THRESHOLDS);
|
|
86
|
+
const keyboardVisible = useKeyboardVisible();
|
|
87
|
+
const showNavigation =
|
|
88
|
+
navigationVisibility !== 'never' &&
|
|
89
|
+
(navigationVisibility !== 'compact' || sizeClass < BREAKPOINTS.md) &&
|
|
90
|
+
!(dock && keyboardVisible);
|
|
91
|
+
const present = action != null || (showNavigation && items.length > 0);
|
|
92
|
+
const selected = items.some((item) => item.name === value);
|
|
93
|
+
const dockNavigation = dock && showNavigation && items.length > 0;
|
|
94
|
+
// Folding frees the horizontal lane before the editor descends into it.
|
|
95
|
+
// Both phases are reversible projections of the same scroll signal.
|
|
96
|
+
const navigationProgress = useDerivedValue(() => {
|
|
97
|
+
const amount = reducedMotion ? Number(progress.value > 0.01) : progress.value;
|
|
98
|
+
return dock
|
|
99
|
+
? selected
|
|
100
|
+
? Math.min(1, Math.max(0, amount / DOCK_NAVIGATION_PHASE))
|
|
101
|
+
: 0
|
|
102
|
+
: amount;
|
|
103
|
+
}, [dock, reducedMotion, progress, selected]);
|
|
64
104
|
const hideAction = actionBehavior === 'hide' && items.length > 0;
|
|
65
105
|
const [actionHidden, setActionHidden] = useState(() => hideAction && progress.value > 0.01);
|
|
66
106
|
const actionRef = useRef<ComponentRef<typeof View>>(null);
|
|
@@ -69,12 +109,13 @@ export function BottomBarBase({
|
|
|
69
109
|
const [rowWidth, setRowWidth] = useState(0);
|
|
70
110
|
const actionSpace = action ? (actionWidth ?? FAB_METRICS.md.diameter) + 10 : 0;
|
|
71
111
|
const above = Boolean(
|
|
72
|
-
|
|
112
|
+
!dock &&
|
|
113
|
+
action &&
|
|
73
114
|
items.length &&
|
|
74
115
|
(actionPlacement === 'above' ||
|
|
75
116
|
(actionPlacement === 'auto' &&
|
|
76
117
|
rowWidth > 0 &&
|
|
77
|
-
rowWidth -
|
|
118
|
+
rowWidth - inset * 2 - actionSpace < items.length * 56 + ROW_PAD_H * 2)),
|
|
78
119
|
);
|
|
79
120
|
const footprint =
|
|
80
121
|
EXPANDED_HEIGHT +
|
|
@@ -82,7 +123,7 @@ export function BottomBarBase({
|
|
|
82
123
|
const navigationWidth = Math.max(
|
|
83
124
|
0,
|
|
84
125
|
Math.min(
|
|
85
|
-
rowWidth -
|
|
126
|
+
rowWidth - inset * 2 - (above ? 0 : actionSpace),
|
|
86
127
|
items.length * MAX_EXPANDED_ITEM_WIDTH + ROW_PAD_H * 2,
|
|
87
128
|
),
|
|
88
129
|
);
|
|
@@ -136,25 +177,109 @@ export function BottomBarBase({
|
|
|
136
177
|
(document.activeElement as HTMLElement | null)?.blur?.();
|
|
137
178
|
node.inert = barHidden;
|
|
138
179
|
}, [barHidden]);
|
|
139
|
-
const keyboardVisible = useKeyboardVisible();
|
|
140
180
|
const suppliedBottomInset = useContext(BottomBarSlotContext);
|
|
141
|
-
const bottom =
|
|
142
|
-
|
|
181
|
+
const bottom = keyboardVisible
|
|
182
|
+
? 0
|
|
183
|
+
: Math.max(0, windowEdgeGap(insets.bottom) - (suppliedBottomInset ?? 0));
|
|
184
|
+
useClaimBottomEdge(
|
|
185
|
+
dock || !present || keyboardVisible || suppliedBottomInset !== undefined
|
|
186
|
+
? 0
|
|
187
|
+
: bottom + footprint,
|
|
188
|
+
);
|
|
189
|
+
const footerOwner = useContext(ScreenFooterContext);
|
|
190
|
+
const claimMeasured = useMeasuredBottomEdgeClaim(
|
|
191
|
+
dock && footerOwner == null && suppliedBottomInset === undefined,
|
|
192
|
+
);
|
|
193
|
+
const naturalFootprint = useSharedValue(0);
|
|
194
|
+
const rootMeasurement = useBorderBoxSize(({ height }) => {
|
|
195
|
+
if (dock) {
|
|
196
|
+
naturalFootprint.value = height;
|
|
197
|
+
claimMeasured(height);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
const attachRoot = useCallback(
|
|
201
|
+
(node: ComponentRef<typeof View> | null) => {
|
|
202
|
+
rootRef.current = node;
|
|
203
|
+
rootMeasurement.ref?.(node);
|
|
204
|
+
},
|
|
205
|
+
[rootMeasurement.ref],
|
|
206
|
+
);
|
|
207
|
+
useInsertionEffect(() => {
|
|
208
|
+
if (Platform.OS === 'web') adoptStyleSheet('bloom-bottom-bar-dock', DOCK_CSS);
|
|
209
|
+
}, []);
|
|
143
210
|
const rowStyle = useAnimatedStyle(
|
|
144
211
|
() => ({
|
|
145
|
-
height:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
212
|
+
height: dock
|
|
213
|
+
? ('auto' as const)
|
|
214
|
+
: interpolate(
|
|
215
|
+
reducedMotion ? Number(progress.value > 0.01) : progress.value,
|
|
216
|
+
[0, 1],
|
|
217
|
+
[EXPANDED_HEIGHT, MINIMIZED_HEIGHT],
|
|
218
|
+
'clamp',
|
|
219
|
+
),
|
|
151
220
|
}),
|
|
152
|
-
[progress, reducedMotion],
|
|
221
|
+
[progress, reducedMotion, dock, footprint],
|
|
153
222
|
);
|
|
154
223
|
// Not `items.length` in the mapper: a worklet copies `items` whole to the UI
|
|
155
224
|
// runtime, icon elements and all (`worklet-captures.test.ts`).
|
|
156
225
|
const hasItems = items.length > 0;
|
|
226
|
+
const fallbackNavigationWidth = navigationStyle.width;
|
|
227
|
+
const dockNavigationStyle = useAnimatedStyle(() => {
|
|
228
|
+
const amount = navigationProgress.value;
|
|
229
|
+
return {
|
|
230
|
+
width: !dock
|
|
231
|
+
? fallbackNavigationWidth
|
|
232
|
+
: IS_WEB
|
|
233
|
+
? (`calc(${(1 - amount) * 100}% + ${amount * MINIMIZED_HEIGHT - (1 - amount) * inset * 2}px)` as `${number}%`)
|
|
234
|
+
: amount === 0
|
|
235
|
+
? UNSET
|
|
236
|
+
: Math.max(MINIMIZED_HEIGHT, rowWidth - inset * 2) * (1 - amount) +
|
|
237
|
+
MINIMIZED_HEIGHT * amount,
|
|
238
|
+
alignSelf: dock ? ('flex-end' as const) : ('auto' as const),
|
|
239
|
+
};
|
|
240
|
+
}, [dock, navigationProgress, rowWidth, inset, fallbackNavigationWidth]);
|
|
241
|
+
const minimumNavigationWidth = items.length * 44 + ROW_PAD_H * 2;
|
|
242
|
+
const navigationMinimumStyle = useAnimatedStyle(
|
|
243
|
+
() => ({
|
|
244
|
+
minWidth: dock
|
|
245
|
+
? minimumNavigationWidth * (1 - navigationProgress.value) +
|
|
246
|
+
MINIMIZED_HEIGHT * navigationProgress.value
|
|
247
|
+
: minimumNavigationWidth,
|
|
248
|
+
}),
|
|
249
|
+
[dock, minimumNavigationWidth, navigationProgress],
|
|
250
|
+
);
|
|
251
|
+
const actionMeasurement = useBorderBoxSize(({ width, height }) => {
|
|
252
|
+
if (!dock) {
|
|
253
|
+
setActionWidth(width);
|
|
254
|
+
setActionHeight(height);
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
const rowMeasurement = useBorderBoxSize(({ width }) => {
|
|
258
|
+
if (!dock || Platform.OS !== 'web') setRowWidth(width);
|
|
259
|
+
});
|
|
157
260
|
const actionStyle = useAnimatedStyle(() => {
|
|
261
|
+
if (dock) {
|
|
262
|
+
const amount =
|
|
263
|
+
dockNavigation && selected
|
|
264
|
+
? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value))
|
|
265
|
+
: 0;
|
|
266
|
+
return {
|
|
267
|
+
width: 'auto' as const,
|
|
268
|
+
opacity: 1,
|
|
269
|
+
marginInlineStart: dockNavigation ? (MINIMIZED_HEIGHT + 10) * navigationProgress.value : 0,
|
|
270
|
+
transform: [
|
|
271
|
+
{
|
|
272
|
+
translateY: dockNavigation
|
|
273
|
+
? (EXPANDED_HEIGHT + 10) *
|
|
274
|
+
Math.min(
|
|
275
|
+
1,
|
|
276
|
+
Math.max(0, (amount - DOCK_NAVIGATION_PHASE) / (1 - DOCK_NAVIGATION_PHASE)),
|
|
277
|
+
)
|
|
278
|
+
: 0,
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
};
|
|
282
|
+
}
|
|
158
283
|
const amount = hideAction
|
|
159
284
|
? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value))
|
|
160
285
|
: 0;
|
|
@@ -167,26 +292,43 @@ export function BottomBarBase({
|
|
|
167
292
|
opacity: 1 - amount,
|
|
168
293
|
transform: [{ scale: 1 - amount * 0.15 }],
|
|
169
294
|
};
|
|
170
|
-
}, [
|
|
295
|
+
}, [
|
|
296
|
+
progress,
|
|
297
|
+
hideAction,
|
|
298
|
+
reducedMotion,
|
|
299
|
+
actionWidth,
|
|
300
|
+
hasItems,
|
|
301
|
+
above,
|
|
302
|
+
dock,
|
|
303
|
+
dockNavigation,
|
|
304
|
+
navigationProgress,
|
|
305
|
+
selected,
|
|
306
|
+
]);
|
|
171
307
|
const presenceStyle = useAnimatedStyle(() => {
|
|
172
308
|
const amount = Math.min(1, Math.max(0, reducedMotion ? Number(hide.value > 0.5) : hide.value));
|
|
173
309
|
// The whole footprint, so a gone bar leaves no sliver above the edge.
|
|
174
310
|
return {
|
|
175
311
|
opacity: 1 - amount,
|
|
176
|
-
transform: [{ translateY: amount * (bottom + footprint) }],
|
|
312
|
+
transform: [{ translateY: amount * (dock ? naturalFootprint.value : bottom + footprint) }],
|
|
177
313
|
};
|
|
178
|
-
}, [hide, reducedMotion, bottom, footprint]);
|
|
179
|
-
if (keyboardVisible
|
|
314
|
+
}, [hide, reducedMotion, bottom, footprint, dock, naturalFootprint]);
|
|
315
|
+
if ((keyboardVisible && !dock) || !present) return null;
|
|
180
316
|
return (
|
|
181
317
|
<Animated.View
|
|
182
318
|
{...dirProps}
|
|
183
|
-
ref={rootRef}
|
|
319
|
+
ref={dock ? attachRoot : rootRef}
|
|
320
|
+
onLayout={dock ? rootMeasurement.onLayout : undefined}
|
|
321
|
+
{...dataHook('bloomBottomBarDock', dock ? navigationVisibility : undefined)}
|
|
184
322
|
testID={testID}
|
|
185
323
|
pointerEvents={barHidden ? 'none' : 'box-none'}
|
|
186
324
|
accessibilityElementsHidden={barHidden}
|
|
187
325
|
importantForAccessibility={barHidden ? 'no-hide-descendants' : 'auto'}
|
|
188
326
|
aria-hidden={barHidden}
|
|
189
|
-
style={[
|
|
327
|
+
style={[
|
|
328
|
+
{ height: dock ? undefined : bottom + footprint, justifyContent: 'flex-end' },
|
|
329
|
+
style,
|
|
330
|
+
presenceStyle,
|
|
331
|
+
]}
|
|
190
332
|
>
|
|
191
333
|
{blur && (
|
|
192
334
|
<Blur
|
|
@@ -196,48 +338,74 @@ export function BottomBarBase({
|
|
|
196
338
|
left: 0,
|
|
197
339
|
right: 0,
|
|
198
340
|
bottom: 0,
|
|
199
|
-
height: bottom + footprint + BLUR_BLEED,
|
|
341
|
+
height: dock ? '100%' : bottom + footprint + BLUR_BLEED,
|
|
200
342
|
}}
|
|
201
343
|
/>
|
|
202
344
|
)}
|
|
203
345
|
<Animated.View
|
|
204
346
|
testID={testID ? `${testID}-row` : undefined}
|
|
205
|
-
|
|
347
|
+
{...(dock && IS_WEB ? {} : rowMeasurement)}
|
|
348
|
+
{...dataHook('bloomBottomBarRow')}
|
|
206
349
|
pointerEvents="box-none"
|
|
207
350
|
style={[
|
|
208
351
|
{
|
|
209
|
-
justifyContent: items.length ? 'center' : 'flex-end',
|
|
352
|
+
justifyContent: dock ? 'flex-start' : items.length ? 'center' : 'flex-end',
|
|
210
353
|
alignSelf: 'center',
|
|
211
354
|
width: '100%',
|
|
212
355
|
maxWidth,
|
|
213
|
-
paddingLeft:
|
|
214
|
-
paddingRight:
|
|
356
|
+
paddingLeft: inset,
|
|
357
|
+
paddingRight: inset,
|
|
215
358
|
marginBottom: bottom,
|
|
216
|
-
flexDirection: 'row',
|
|
217
|
-
|
|
359
|
+
flexDirection: dock ? 'column' : 'row',
|
|
360
|
+
paddingBottom: dockNavigation ? EXPANDED_HEIGHT + 10 : 0,
|
|
361
|
+
alignItems: dock ? 'stretch' : 'center',
|
|
218
362
|
},
|
|
219
363
|
rowStyle,
|
|
220
364
|
]}
|
|
221
365
|
>
|
|
222
366
|
{items.length > 0 && (
|
|
223
|
-
<View
|
|
367
|
+
<Animated.View
|
|
368
|
+
testID={testID ? `${testID}-navigation` : undefined}
|
|
369
|
+
{...dataHook('bloomBottomBarNavigation')}
|
|
370
|
+
style={[
|
|
371
|
+
dock
|
|
372
|
+
? {
|
|
373
|
+
position: 'absolute',
|
|
374
|
+
bottom: 0,
|
|
375
|
+
insetInlineStart: inset,
|
|
376
|
+
insetInlineEnd: inset,
|
|
377
|
+
minWidth: MINIMIZED_HEIGHT,
|
|
378
|
+
flexShrink: 0,
|
|
379
|
+
}
|
|
380
|
+
: navigationStyle,
|
|
381
|
+
!showNavigation ? { display: 'none' } : undefined,
|
|
382
|
+
dockNavigationStyle,
|
|
383
|
+
]}
|
|
384
|
+
>
|
|
224
385
|
<ScrollArea
|
|
225
386
|
horizontal
|
|
226
387
|
showsHorizontalScrollIndicator={false}
|
|
227
|
-
contentContainerStyle={{ minWidth: '100%' }}
|
|
388
|
+
contentContainerStyle={dock ? { width: '100%', minWidth: 0 } : { minWidth: '100%' }}
|
|
389
|
+
scrollbar="never"
|
|
228
390
|
>
|
|
229
|
-
<View
|
|
230
|
-
style={
|
|
231
|
-
|
|
232
|
-
? { width: '100%'
|
|
233
|
-
:
|
|
234
|
-
|
|
391
|
+
<Animated.View
|
|
392
|
+
style={[
|
|
393
|
+
dock
|
|
394
|
+
? { width: '100%' }
|
|
395
|
+
: Platform.OS === 'web'
|
|
396
|
+
? { width: '100%', minWidth: items.length * 44 + 8 }
|
|
397
|
+
: { width: Math.max(navigationWidth, items.length * 44 + 8) },
|
|
398
|
+
navigationMinimumStyle,
|
|
399
|
+
]}
|
|
235
400
|
>
|
|
236
401
|
<Navigation
|
|
237
|
-
|
|
402
|
+
minimizeBehavior={dock ? 'active' : 'compact'}
|
|
403
|
+
scrollable={
|
|
404
|
+
!dock && navigationWidth > 0 && navigationWidth < items.length * 44 + 8
|
|
405
|
+
}
|
|
238
406
|
embedded
|
|
239
407
|
blur={false}
|
|
240
|
-
minimizeProgress={progress}
|
|
408
|
+
minimizeProgress={dock && !selected ? shown : progress}
|
|
241
409
|
activeProgress={activeProgress}
|
|
242
410
|
onIndexLongPress={
|
|
243
411
|
onValueLongPress
|
|
@@ -255,9 +423,9 @@ export function BottomBarBase({
|
|
|
255
423
|
<Item key={item.name} item={item} index={index} />
|
|
256
424
|
))}
|
|
257
425
|
</Navigation>
|
|
258
|
-
</View>
|
|
426
|
+
</Animated.View>
|
|
259
427
|
</ScrollArea>
|
|
260
|
-
</View>
|
|
428
|
+
</Animated.View>
|
|
261
429
|
)}
|
|
262
430
|
{action && (
|
|
263
431
|
<Animated.View
|
|
@@ -267,21 +435,27 @@ export function BottomBarBase({
|
|
|
267
435
|
importantForAccessibility={actionHidden ? 'no-hide-descendants' : 'auto'}
|
|
268
436
|
aria-hidden={actionHidden}
|
|
269
437
|
testID={testID ? `${testID}-action` : undefined}
|
|
438
|
+
{...dataHook('bloomBottomBarAction')}
|
|
270
439
|
style={[
|
|
271
|
-
{
|
|
440
|
+
{
|
|
441
|
+
flexShrink: 0,
|
|
442
|
+
alignItems: dock ? 'stretch' : 'flex-start',
|
|
443
|
+
justifyContent: 'center',
|
|
444
|
+
},
|
|
445
|
+
|
|
272
446
|
above
|
|
273
|
-
? { position: 'absolute', insetInlineEnd:
|
|
447
|
+
? { position: 'absolute', insetInlineEnd: inset, bottom: '100%', marginBottom: 10 }
|
|
274
448
|
: undefined,
|
|
275
449
|
actionStyle,
|
|
276
450
|
]}
|
|
277
451
|
>
|
|
278
452
|
<View
|
|
279
453
|
testID={testID ? `${testID}-action-content` : undefined}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
454
|
+
{...(dock ? {} : actionMeasurement)}
|
|
455
|
+
style={{
|
|
456
|
+
flexShrink: 0,
|
|
457
|
+
...(dock || actionWidth == null ? {} : { width: actionWidth }),
|
|
283
458
|
}}
|
|
284
|
-
style={{ flexShrink: 0, ...(actionWidth == null ? {} : { width: actionWidth }) }}
|
|
285
459
|
>
|
|
286
460
|
{action}
|
|
287
461
|
</View>
|
|
@@ -291,3 +465,13 @@ export function BottomBarBase({
|
|
|
291
465
|
</Animated.View>
|
|
292
466
|
);
|
|
293
467
|
}
|
|
468
|
+
|
|
469
|
+
const COMPACT_THRESHOLDS = [BREAKPOINTS.md] as const;
|
|
470
|
+
|
|
471
|
+
const DOCK_CSS = `
|
|
472
|
+
@media (min-width: ${BREAKPOINTS.md}px) {
|
|
473
|
+
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-navigation] { display: none !important; }
|
|
474
|
+
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-row] { padding-bottom: 0 !important; }
|
|
475
|
+
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-action] { margin-inline-start: 0 !important; transform: none !important; }
|
|
476
|
+
}
|
|
477
|
+
`;
|