@oxy.so/bloom 19.5.2 → 19.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/adoption-matrix.mdx +19 -19
- package/docs/app-shell.mdx +18 -11
- package/docs/bottom-bar.mdx +57 -1
- package/docs/button.mdx +19 -0
- package/docs/chat-composer.mdx +59 -1
- package/docs/compose-layouts.mdx +114 -2
- package/docs/dialog.mdx +7 -0
- package/docs/engagement-bar.mdx +9 -0
- package/docs/icons.mdx +22 -0
- package/docs/layout.mdx +1 -1
- package/docs/list.mdx +4 -3
- package/docs/page-header.mdx +7 -0
- package/docs/public-parts.mdx +14 -3
- package/docs/screen.mdx +4 -0
- package/docs/scroll.mdx +6 -3
- package/docs/sidebar.mdx +26 -5
- package/docs/tab-pager.mdx +10 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/app-shell/AppShell.js +3 -3
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +2 -1
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +345 -172
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/RetainedPanelLayout.js +6 -0
- package/lib/commonjs/app-shell/RetainedPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout-css.js +20 -13
- package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout.js +33 -185
- package/lib/commonjs/app-shell/panel-layout.js.map +1 -1
- package/lib/commonjs/app-shell/panel-motion.js +13 -36
- package/lib/commonjs/app-shell/panel-motion.js.map +1 -1
- package/lib/commonjs/app-shell/panel-transitions.js +26 -0
- package/lib/commonjs/app-shell/panel-transitions.js.map +1 -0
- package/lib/commonjs/app-shell/shell-layout-css.js +2 -2
- package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/use-panel-exit-completion.js +100 -0
- package/lib/commonjs/app-shell/use-panel-exit-completion.js.map +1 -0
- package/lib/commonjs/app-shell/use-panel-resize.js +21 -7
- package/lib/commonjs/app-shell/use-panel-resize.js.map +1 -1
- package/lib/commonjs/app-shell/use-panel-reveal.js +2 -1
- package/lib/commonjs/app-shell/use-panel-reveal.js.map +1 -1
- package/lib/commonjs/bottom-bar/BottomBarBase.js +141 -37
- package/lib/commonjs/bottom-bar/BottomBarBase.js.map +1 -1
- package/lib/commonjs/bottom-sheet/BottomSheetBase.js +3 -2
- package/lib/commonjs/bottom-sheet/BottomSheetBase.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/dialog/DialogBottomSheet.js +6 -3
- package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/commonjs/engagement-bar/EngagementAction.js +6 -5
- package/lib/commonjs/engagement-bar/EngagementAction.js.map +1 -1
- package/lib/commonjs/engagement-bar/EngagementBar.js +31 -7
- package/lib/commonjs/engagement-bar/EngagementBar.js.map +1 -1
- package/lib/commonjs/engagement-bar/EngagementPop.js +10 -3
- package/lib/commonjs/engagement-bar/EngagementPop.js.map +1 -1
- package/lib/commonjs/engagement-bar/context.js.map +1 -1
- package/lib/commonjs/engagement-bar/paint.js +59 -12
- package/lib/commonjs/engagement-bar/paint.js.map +1 -1
- package/lib/commonjs/hooks/use-border-box-size.js +46 -0
- package/lib/commonjs/hooks/use-border-box-size.js.map +1 -0
- 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/ScrollBar.web.js +62 -29
- package/lib/commonjs/layout/ScrollBar.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/layout/scroll-metrics.js.map +1 -1
- package/lib/commonjs/list/VirtualList.js +12 -0
- package/lib/commonjs/list/VirtualList.js.map +1 -1
- package/lib/commonjs/list/VirtualList.web.js +40 -19
- package/lib/commonjs/list/VirtualList.web.js.map +1 -1
- package/lib/commonjs/list/flash-list-module.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/page-header/EdgeScrim.js +14 -4
- package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +19 -6
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/screen/ScreenBase.js +15 -6
- package/lib/commonjs/screen/ScreenBase.js.map +1 -1
- package/lib/commonjs/screen/ScreenScrollViewBase.js +12 -2
- package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/commonjs/screen/context.js.map +1 -1
- package/lib/commonjs/screen/use-intrinsic-content-height.js +53 -0
- package/lib/commonjs/screen/use-intrinsic-content-height.js.map +1 -0
- package/lib/commonjs/screen/use-screen-viewport.js +37 -6
- package/lib/commonjs/screen/use-screen-viewport.js.map +1 -1
- package/lib/commonjs/scroll/constants.js +4 -1
- package/lib/commonjs/scroll/constants.js.map +1 -1
- package/lib/commonjs/scroll/owner-handoff.js +27 -7
- package/lib/commonjs/scroll/owner-handoff.js.map +1 -1
- package/lib/commonjs/scroll/use-scroll-restoration.web.js +2 -11
- package/lib/commonjs/scroll/use-scroll-restoration.web.js.map +1 -1
- package/lib/commonjs/sidebar/Sidebar.js +121 -87
- package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/sidebar/arrangement.js +36 -0
- package/lib/commonjs/sidebar/arrangement.js.map +1 -0
- package/lib/commonjs/sidebar/index.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/app-shell/AppShell.js +3 -3
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +2 -1
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +319 -147
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/RetainedPanelLayout.js +7 -1
- package/lib/module/app-shell/RetainedPanelLayout.js.map +1 -1
- package/lib/module/app-shell/panel-layout-css.js +19 -12
- package/lib/module/app-shell/panel-layout-css.js.map +1 -1
- package/lib/module/app-shell/panel-layout.js +32 -183
- package/lib/module/app-shell/panel-layout.js.map +1 -1
- package/lib/module/app-shell/panel-motion.js +14 -36
- package/lib/module/app-shell/panel-motion.js.map +1 -1
- package/lib/module/app-shell/panel-transitions.js +21 -0
- package/lib/module/app-shell/panel-transitions.js.map +1 -0
- package/lib/module/app-shell/shell-layout-css.js +2 -2
- package/lib/module/app-shell/shell-layout-css.js.map +1 -1
- package/lib/module/app-shell/use-panel-exit-completion.js +97 -0
- package/lib/module/app-shell/use-panel-exit-completion.js.map +1 -0
- package/lib/module/app-shell/use-panel-resize.js +22 -8
- package/lib/module/app-shell/use-panel-resize.js.map +1 -1
- package/lib/module/app-shell/use-panel-reveal.js +2 -1
- package/lib/module/app-shell/use-panel-reveal.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/bottom-sheet/BottomSheetBase.js +3 -2
- package/lib/module/bottom-sheet/BottomSheetBase.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/dialog/DialogBottomSheet.js +6 -3
- package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/module/engagement-bar/EngagementAction.js +7 -6
- package/lib/module/engagement-bar/EngagementAction.js.map +1 -1
- package/lib/module/engagement-bar/EngagementBar.js +29 -5
- package/lib/module/engagement-bar/EngagementBar.js.map +1 -1
- package/lib/module/engagement-bar/EngagementPop.js +10 -3
- package/lib/module/engagement-bar/EngagementPop.js.map +1 -1
- package/lib/module/engagement-bar/context.js.map +1 -1
- package/lib/module/engagement-bar/paint.js +60 -13
- package/lib/module/engagement-bar/paint.js.map +1 -1
- package/lib/module/hooks/use-border-box-size.js +42 -0
- package/lib/module/hooks/use-border-box-size.js.map +1 -0
- 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/ScrollBar.web.js +64 -31
- package/lib/module/layout/ScrollBar.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/layout/scroll-metrics.js.map +1 -1
- package/lib/module/list/VirtualList.js +12 -0
- package/lib/module/list/VirtualList.js.map +1 -1
- package/lib/module/list/VirtualList.web.js +41 -20
- package/lib/module/list/VirtualList.web.js.map +1 -1
- package/lib/module/list/flash-list-module.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/page-header/EdgeScrim.js +14 -4
- package/lib/module/page-header/EdgeScrim.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +19 -6
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/screen/ScreenBase.js +15 -6
- package/lib/module/screen/ScreenBase.js.map +1 -1
- package/lib/module/screen/ScreenScrollViewBase.js +12 -2
- package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/module/screen/context.js.map +1 -1
- package/lib/module/screen/use-intrinsic-content-height.js +50 -0
- package/lib/module/screen/use-intrinsic-content-height.js.map +1 -0
- package/lib/module/screen/use-screen-viewport.js +39 -8
- package/lib/module/screen/use-screen-viewport.js.map +1 -1
- package/lib/module/scroll/constants.js +3 -0
- package/lib/module/scroll/constants.js.map +1 -1
- package/lib/module/scroll/owner-handoff.js +27 -8
- package/lib/module/scroll/owner-handoff.js.map +1 -1
- package/lib/module/scroll/use-scroll-restoration.web.js +1 -10
- package/lib/module/scroll/use-scroll-restoration.web.js.map +1 -1
- package/lib/module/sidebar/Sidebar.js +121 -87
- package/lib/module/sidebar/Sidebar.js.map +1 -1
- package/lib/module/sidebar/arrangement.js +32 -0
- package/lib/module/sidebar/arrangement.js.map +1 -0
- package/lib/module/sidebar/index.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/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/RetainedPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +11 -2
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout.d.ts +13 -27
- package/lib/typescript/commonjs/app-shell/panel-layout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-motion.d.ts +1 -12
- package/lib/typescript/commonjs/app-shell/panel-motion.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/panel-transitions.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts +14 -0
- package/lib/typescript/commonjs/app-shell/use-panel-exit-completion.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts +2 -2
- package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts +4 -2
- package/lib/typescript/commonjs/app-shell/use-panel-resize.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts +2 -2
- package/lib/typescript/commonjs/app-shell/use-panel-reveal.d.ts.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/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/types.d.ts +2 -0
- package/lib/typescript/commonjs/bottom-sheet/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/dialog/DialogBottomSheet.d.ts +2 -2
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +2 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts +3 -3
- package/lib/typescript/commonjs/engagement-bar/EngagementBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts +2 -1
- package/lib/typescript/commonjs/engagement-bar/EngagementPop.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/context.d.ts +1 -0
- package/lib/typescript/commonjs/engagement-bar/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/paint.d.ts +4 -2
- package/lib/typescript/commonjs/engagement-bar/paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/engagement-bar/types.d.ts +10 -1
- package/lib/typescript/commonjs/engagement-bar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts +13 -0
- package/lib/typescript/commonjs/hooks/use-border-box-size.d.ts.map +1 -0
- 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/ScrollBar.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/layout/scroll-metrics.d.ts +2 -0
- package/lib/typescript/commonjs/layout/scroll-metrics.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/types.d.ts +2 -2
- package/lib/typescript/commonjs/layout/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/VirtualList.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/VirtualList.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/flash-list-module.d.ts +1 -1
- package/lib/typescript/commonjs/list/flash-list-module.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/page-header/EdgeScrim.d.ts +3 -1
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/types.d.ts +2 -0
- package/lib/typescript/commonjs/page-header/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/context.d.ts +3 -0
- package/lib/typescript/commonjs/screen/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts +3 -0
- package/lib/typescript/commonjs/screen/use-intrinsic-content-height.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/use-screen-viewport.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/constants.d.ts +2 -0
- package/lib/typescript/commonjs/scroll/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/owner-handoff.d.ts +3 -1
- package/lib/typescript/commonjs/scroll/owner-handoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/scroll/use-scroll-restoration.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/arrangement.d.ts +32 -0
- package/lib/typescript/commonjs/sidebar/arrangement.d.ts.map +1 -0
- package/lib/typescript/commonjs/sidebar/index.d.ts +1 -0
- package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +13 -1
- package/lib/typescript/commonjs/sidebar/types.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/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/RetainedPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts +2 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts +11 -2
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout.d.ts +13 -27
- package/lib/typescript/module/app-shell/panel-layout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-motion.d.ts +1 -12
- package/lib/typescript/module/app-shell/panel-motion.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-transitions.d.ts +4 -0
- package/lib/typescript/module/app-shell/panel-transitions.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +4 -0
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts +14 -0
- package/lib/typescript/module/app-shell/use-panel-exit-completion.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/use-panel-reorder.d.ts +2 -2
- package/lib/typescript/module/app-shell/use-panel-reorder.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-resize.d.ts +4 -2
- package/lib/typescript/module/app-shell/use-panel-resize.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-reveal.d.ts +2 -2
- package/lib/typescript/module/app-shell/use-panel-reveal.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/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/types.d.ts +2 -0
- package/lib/typescript/module/bottom-sheet/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/dialog/DialogBottomSheet.d.ts +2 -2
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +2 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/EngagementAction.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/EngagementBar.d.ts +3 -3
- package/lib/typescript/module/engagement-bar/EngagementBar.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/EngagementPop.d.ts +2 -1
- package/lib/typescript/module/engagement-bar/EngagementPop.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/context.d.ts +1 -0
- package/lib/typescript/module/engagement-bar/context.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/paint.d.ts +4 -2
- package/lib/typescript/module/engagement-bar/paint.d.ts.map +1 -1
- package/lib/typescript/module/engagement-bar/types.d.ts +10 -1
- package/lib/typescript/module/engagement-bar/types.d.ts.map +1 -1
- package/lib/typescript/module/hooks/use-border-box-size.d.ts +13 -0
- package/lib/typescript/module/hooks/use-border-box-size.d.ts.map +1 -0
- 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/ScrollBar.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/layout/scroll-metrics.d.ts +2 -0
- package/lib/typescript/module/layout/scroll-metrics.d.ts.map +1 -1
- package/lib/typescript/module/layout/types.d.ts +2 -2
- package/lib/typescript/module/layout/types.d.ts.map +1 -1
- package/lib/typescript/module/list/VirtualList.d.ts.map +1 -1
- package/lib/typescript/module/list/VirtualList.web.d.ts.map +1 -1
- package/lib/typescript/module/list/flash-list-module.d.ts +1 -1
- package/lib/typescript/module/list/flash-list-module.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/page-header/EdgeScrim.d.ts +3 -1
- package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/page-header/types.d.ts +2 -0
- package/lib/typescript/module/page-header/types.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/context.d.ts +3 -0
- package/lib/typescript/module/screen/context.d.ts.map +1 -1
- package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts +3 -0
- package/lib/typescript/module/screen/use-intrinsic-content-height.d.ts.map +1 -0
- package/lib/typescript/module/screen/use-screen-viewport.d.ts.map +1 -1
- package/lib/typescript/module/scroll/constants.d.ts +2 -0
- package/lib/typescript/module/scroll/constants.d.ts.map +1 -1
- package/lib/typescript/module/scroll/owner-handoff.d.ts +3 -1
- package/lib/typescript/module/scroll/owner-handoff.d.ts.map +1 -1
- package/lib/typescript/module/scroll/use-scroll-restoration.web.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/arrangement.d.ts +32 -0
- package/lib/typescript/module/sidebar/arrangement.d.ts.map +1 -0
- package/lib/typescript/module/sidebar/index.d.ts +1 -0
- package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +13 -1
- package/lib/typescript/module/sidebar/types.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 +67 -4
- package/src/app-shell/AppShell.tsx +7 -3
- package/src/app-shell/AppShellEngine.tsx +6 -2
- package/src/app-shell/AppShellPanelLayout.tsx +466 -189
- package/src/app-shell/RetainedPanelLayout.tsx +7 -1
- package/src/app-shell/panel-layout-css.ts +41 -27
- package/src/app-shell/panel-layout-types.ts +11 -2
- package/src/app-shell/panel-layout.ts +49 -256
- package/src/app-shell/panel-motion.ts +34 -52
- package/src/app-shell/panel-transitions.ts +39 -0
- package/src/app-shell/shell-layout-css.ts +6 -2
- package/src/app-shell/types.ts +4 -0
- package/src/app-shell/use-panel-exit-completion.ts +95 -0
- package/src/app-shell/use-panel-reorder.ts +2 -2
- package/src/app-shell/use-panel-resize.ts +37 -10
- package/src/app-shell/use-panel-reveal.ts +4 -9
- package/src/bottom-bar/BottomBarBase.tsx +230 -46
- package/src/bottom-bar/types.ts +10 -2
- package/src/bottom-sheet/BottomSheetBase.tsx +6 -2
- package/src/bottom-sheet/types.ts +2 -0
- 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/dialog/DialogBottomSheet.tsx +13 -2
- package/src/dialog/types.ts +2 -0
- package/src/engagement-bar/EngagementAction.tsx +5 -4
- package/src/engagement-bar/EngagementBar.tsx +30 -5
- package/src/engagement-bar/EngagementPop.tsx +11 -3
- package/src/engagement-bar/context.ts +1 -0
- package/src/engagement-bar/paint.ts +60 -13
- package/src/engagement-bar/types.ts +10 -1
- package/src/hooks/use-border-box-size.ts +38 -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/ScrollBar.web.tsx +74 -40
- package/src/layout/bottom-edge.tsx +17 -0
- package/src/layout/scroll-metrics.tsx +2 -0
- package/src/layout/types.ts +2 -2
- package/src/list/VirtualList.tsx +18 -0
- package/src/list/VirtualList.web.tsx +69 -22
- package/src/list/flash-list-module.ts +2 -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/page-header/EdgeScrim.tsx +29 -9
- package/src/page-header/PageHeader.tsx +10 -6
- package/src/page-header/types.ts +2 -0
- package/src/screen/ScreenBase.tsx +13 -6
- package/src/screen/ScreenScrollViewBase.tsx +24 -2
- package/src/screen/context.ts +3 -0
- package/src/screen/use-intrinsic-content-height.ts +56 -0
- package/src/screen/use-screen-viewport.ts +60 -11
- package/src/scroll/constants.ts +3 -0
- package/src/scroll/owner-handoff.ts +45 -11
- package/src/scroll/use-scroll-restoration.web.ts +4 -10
- package/src/sidebar/Sidebar.tsx +146 -121
- package/src/sidebar/arrangement.ts +47 -0
- package/src/sidebar/index.ts +6 -0
- package/src/sidebar/types.ts +13 -1
- 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
|
@@ -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
|
+
`;
|
package/src/bottom-bar/types.ts
CHANGED
|
@@ -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
|
-
/**
|
|
19
|
-
|
|
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
|
}
|
|
@@ -87,6 +87,7 @@ export const BottomSheetBase = forwardRef(
|
|
|
87
87
|
backdropOpacity = BACKDROP_DIM_OPACITY,
|
|
88
88
|
scrollable = true,
|
|
89
89
|
sizing = 'content',
|
|
90
|
+
maxHeightRatio = 1,
|
|
90
91
|
manualActivation = false,
|
|
91
92
|
animatedProgress,
|
|
92
93
|
handleComponent,
|
|
@@ -634,13 +635,16 @@ export const BottomSheetBase = forwardRef(
|
|
|
634
635
|
const sheetHeightStyle = useAnimatedStyle(() => {
|
|
635
636
|
const availableHeight = Math.max(
|
|
636
637
|
0,
|
|
637
|
-
|
|
638
|
+
Math.min(
|
|
639
|
+
screenHeightSV.value * Math.max(0, Math.min(1, maxHeightRatio)),
|
|
640
|
+
screenHeightSV.value - keyboardHeight.value - topGap - detachedGap,
|
|
641
|
+
),
|
|
638
642
|
);
|
|
639
643
|
return {
|
|
640
644
|
maxHeight: availableHeight,
|
|
641
645
|
height: sizing === 'fill' ? availableHeight : UNSET,
|
|
642
646
|
};
|
|
643
|
-
}, [sizing, topGap, detachedGap, screenHeightSV, keyboardHeight]);
|
|
647
|
+
}, [sizing, maxHeightRatio, topGap, detachedGap, screenHeightSV, keyboardHeight]);
|
|
644
648
|
|
|
645
649
|
const sheetMarginStyle = useAnimatedStyle(() => {
|
|
646
650
|
// Only add margin when detached, otherwise extend behind safe area
|
|
@@ -94,6 +94,8 @@ export interface BottomSheetProps {
|
|
|
94
94
|
* keyboard and detached-edge calculation. It does not add a scroll owner.
|
|
95
95
|
*/
|
|
96
96
|
sizing?: 'content' | 'fill';
|
|
97
|
+
/** Ceiling as a fraction of window height, also constrained by keyboard and safe areas. */
|
|
98
|
+
maxHeightRatio?: number;
|
|
97
99
|
/**
|
|
98
100
|
* When `true`, the body pan uses RNGH's `manualActivation` and only
|
|
99
101
|
* activates when (a) the inner ScrollView is at the top AND (b) the user
|
|
@@ -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
|
-
*
|
|
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
|
-
|
|
193
|
-
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
);
|