@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
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useLayoutEffect, useRef } from 'react';
|
|
4
|
+
import { panelExitTransitions } from "./panel-transitions.js";
|
|
5
|
+
|
|
6
|
+
/** Observe an actual exit only; never retain application content or run a clock. */
|
|
7
|
+
export function usePanelExitCompletion({
|
|
8
|
+
present,
|
|
9
|
+
floating,
|
|
10
|
+
css,
|
|
11
|
+
reducedMotion,
|
|
12
|
+
owner,
|
|
13
|
+
onExitComplete
|
|
14
|
+
}) {
|
|
15
|
+
const callback = useRef(onExitComplete);
|
|
16
|
+
callback.current = onExitComplete;
|
|
17
|
+
const previous = useRef({
|
|
18
|
+
present,
|
|
19
|
+
floating
|
|
20
|
+
});
|
|
21
|
+
const serial = useRef(0);
|
|
22
|
+
const pending = useRef(null);
|
|
23
|
+
const sheetClosed = useRef(false);
|
|
24
|
+
if (present) sheetClosed.current = false;
|
|
25
|
+
const finish = useCallback(generation => {
|
|
26
|
+
if (pending.current?.generation !== generation) return;
|
|
27
|
+
const complete = pending.current.complete;
|
|
28
|
+
pending.current = null;
|
|
29
|
+
complete();
|
|
30
|
+
}, []);
|
|
31
|
+
useLayoutEffect(() => {
|
|
32
|
+
if (present) {
|
|
33
|
+
previous.current = {
|
|
34
|
+
present,
|
|
35
|
+
floating
|
|
36
|
+
};
|
|
37
|
+
pending.current = null;
|
|
38
|
+
serial.current += 1;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const wasPresent = previous.current.present;
|
|
42
|
+
const wasFloating = previous.current.floating;
|
|
43
|
+
previous.current = {
|
|
44
|
+
present,
|
|
45
|
+
floating
|
|
46
|
+
};
|
|
47
|
+
if (!callback.current || !wasPresent && pending.current === null) return;
|
|
48
|
+
if (!pending.current) pending.current = {
|
|
49
|
+
generation: ++serial.current,
|
|
50
|
+
complete: callback.current,
|
|
51
|
+
floating: wasFloating
|
|
52
|
+
};
|
|
53
|
+
const {
|
|
54
|
+
generation
|
|
55
|
+
} = pending.current;
|
|
56
|
+
// A breakpoint removed the outgoing presentation. The replacement was
|
|
57
|
+
// never opened and therefore has no exit animation to report.
|
|
58
|
+
if (pending.current.floating !== floating) {
|
|
59
|
+
finish(generation);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (floating) {
|
|
63
|
+
// A gesture can finish the Dialog before its onOpenChange state commits.
|
|
64
|
+
if (sheetClosed.current) finish(generation);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
// Native reports the end of its existing worklet animation.
|
|
68
|
+
if (!css) return;
|
|
69
|
+
let disposed = false;
|
|
70
|
+
const settled = () => {
|
|
71
|
+
if (disposed || pending.current?.generation !== generation) return;
|
|
72
|
+
const node = owner.current;
|
|
73
|
+
const transitions = reducedMotion || !node ? [] : panelExitTransitions(node);
|
|
74
|
+
if (!transitions.length) finish(generation);else void Promise.allSettled(transitions.map(animation => animation.finished)).then(settled);
|
|
75
|
+
};
|
|
76
|
+
settled();
|
|
77
|
+
return () => {
|
|
78
|
+
disposed = true;
|
|
79
|
+
};
|
|
80
|
+
}, [present, floating, css, reducedMotion, owner, finish]);
|
|
81
|
+
useLayoutEffect(() => () => {
|
|
82
|
+
pending.current = null;
|
|
83
|
+
}, []);
|
|
84
|
+
const captureNativeCompletion = useCallback(() => {
|
|
85
|
+
const generation = pending.current?.generation;
|
|
86
|
+
return generation === undefined ? undefined : () => finish(generation);
|
|
87
|
+
}, [finish]);
|
|
88
|
+
const completeFloating = useCallback(() => {
|
|
89
|
+
sheetClosed.current = true;
|
|
90
|
+
if (pending.current !== null) finish(pending.current.generation);
|
|
91
|
+
}, [finish]);
|
|
92
|
+
return {
|
|
93
|
+
captureNativeCompletion,
|
|
94
|
+
completeFloating
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=use-panel-exit-completion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useLayoutEffect","useRef","panelExitTransitions","usePanelExitCompletion","present","floating","css","reducedMotion","owner","onExitComplete","callback","current","previous","serial","pending","sheetClosed","finish","generation","complete","wasPresent","wasFloating","disposed","settled","node","transitions","length","Promise","allSettled","map","animation","finished","then","captureNativeCompletion","undefined","completeFloating"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-exit-completion.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,eAAe,EAAEC,MAAM,QAAwB,OAAO;AAC5E,SAASC,oBAAoB,QAAQ,wBAAqB;;AAE1D;AACA,OAAO,SAASC,sBAAsBA,CAAC;EACrCC,OAAO;EACPC,QAAQ;EACRC,GAAG;EACHC,aAAa;EACbC,KAAK;EACLC;AAQF,CAAC,EAAE;EACD,MAAMC,QAAQ,GAAGT,MAAM,CAACQ,cAAc,CAAC;EACvCC,QAAQ,CAACC,OAAO,GAAGF,cAAc;EACjC,MAAMG,QAAQ,GAAGX,MAAM,CAAC;IAAEG,OAAO;IAAEC;EAAS,CAAC,CAAC;EAC9C,MAAMQ,MAAM,GAAGZ,MAAM,CAAC,CAAC,CAAC;EACxB,MAAMa,OAAO,GAAGb,MAAM,CACpB,IACF,CAAC;EACD,MAAMc,WAAW,GAAGd,MAAM,CAAC,KAAK,CAAC;EACjC,IAAIG,OAAO,EAAEW,WAAW,CAACJ,OAAO,GAAG,KAAK;EACxC,MAAMK,MAAM,GAAGjB,WAAW,C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AC,EAAE,CAACD,MAAM,CAAC,CAAC;EACZ,OAAO;IAAEgB,uBAAuB;IAAEE;EAAiB,CAAC;AACtD","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useCallback, useLayoutEffect, useRef } from 'react';
|
|
4
|
-
import { clampPanelWidth, panelForAxis, resizePanelPair } from "./panel-layout.js";
|
|
4
|
+
import { clampPanelWidth, panelForAxis, panelContentResizeLimit, resizePanelPair } from "./panel-layout.js";
|
|
5
5
|
import { panelSizeProperty, panelGrowProperty } from "./panel-layout-css.js";
|
|
6
6
|
/** Direct gestures own live geometry: CSS on web, shared values on native. Commit once at release. */
|
|
7
7
|
export function usePanelResize({
|
|
@@ -69,12 +69,16 @@ export function usePanelResize({
|
|
|
69
69
|
const snapshot = panel => {
|
|
70
70
|
const visible = tracks.filter(track => track.visible);
|
|
71
71
|
const nextId = visible[visible.findIndex(track => track.id === panel.id) + 1]?.id;
|
|
72
|
-
const next = layout.mode !== 'deck' && !(vertical && document) ? layout.panels.find(candidate => candidate.id === nextId) : undefined;
|
|
72
|
+
const next = layout.mode !== 'deck' && layout.mode !== 'flow' && !(vertical && document) ? layout.panels.find(candidate => candidate.id === nextId) : undefined;
|
|
73
|
+
const firstSize = size(panel.id);
|
|
74
|
+
const nextSize = next ? size(next.id) : 0;
|
|
73
75
|
return {
|
|
74
76
|
first: panelForAxis(panel, vertical ? 'vertical' : 'horizontal'),
|
|
75
77
|
next: next ? panelForAxis(next, vertical ? 'vertical' : 'horizontal') : undefined,
|
|
76
|
-
firstSize
|
|
77
|
-
nextSize
|
|
78
|
+
firstSize,
|
|
79
|
+
nextSize,
|
|
80
|
+
firstContentMax: vertical ? previews.current.get(panel.id)?.contentHeight?.(firstSize) : undefined,
|
|
81
|
+
nextContentMax: vertical && next ? previews.current.get(next.id)?.contentHeight?.(nextSize) : undefined
|
|
78
82
|
};
|
|
79
83
|
};
|
|
80
84
|
const control = {
|
|
@@ -87,6 +91,11 @@ export function usePanelResize({
|
|
|
87
91
|
// Cancel the transition-restoration frame before starting a new transaction.
|
|
88
92
|
if (frame.current !== null) cancelAnimationFrame(frame.current);
|
|
89
93
|
frame.current = null;
|
|
94
|
+
const measured = snapshot(panel);
|
|
95
|
+
if (!(measured.firstSize > 0) || measured.next && !(measured.nextSize > 0)) {
|
|
96
|
+
interrupted.current = true;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
90
99
|
const root = scope ? rootRef.current : null;
|
|
91
100
|
const shell = root?.closest(`[data-bloom-layout="${scope}"]`);
|
|
92
101
|
const targets = new Map();
|
|
@@ -104,7 +113,7 @@ export function usePanelResize({
|
|
|
104
113
|
root,
|
|
105
114
|
envelope: layout.mode === 'deck' && !vertical && layout.horizontalScroll !== 'contained' ? shell?.querySelector(`[data-bloom-reading-envelope="${scope}"]`) ?? null : null,
|
|
106
115
|
targets,
|
|
107
|
-
...
|
|
116
|
+
...measured,
|
|
108
117
|
properties: new Map()
|
|
109
118
|
};
|
|
110
119
|
root?.setAttribute('data-bloom-panel-resizing', vertical ? 'vertical' : 'horizontal');
|
|
@@ -116,10 +125,15 @@ export function usePanelResize({
|
|
|
116
125
|
first,
|
|
117
126
|
next,
|
|
118
127
|
firstSize,
|
|
119
|
-
nextSize
|
|
128
|
+
nextSize,
|
|
129
|
+
firstContentMax,
|
|
130
|
+
nextContentMax
|
|
120
131
|
} = active ?? snapshot(panel);
|
|
121
|
-
|
|
122
|
-
|
|
132
|
+
if (!(firstSize > 0) || next && !(nextSize > 0)) return;
|
|
133
|
+
const firstLimit = panelContentResizeLimit(first, active?.values?.[first.id] ?? firstSize, firstContentMax);
|
|
134
|
+
const nextLimit = next ? panelContentResizeLimit(next, active?.values?.[next.id] ?? nextSize, nextContentMax) : undefined;
|
|
135
|
+
const values = nextLimit ? resizePanelPair(firstLimit, nextLimit, firstSize, nextSize, requested) : {
|
|
136
|
+
[panel.id]: clampPanelWidth(firstLimit, requested)
|
|
123
137
|
};
|
|
124
138
|
if (!active) {
|
|
125
139
|
onCommit(values);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useLayoutEffect","useRef","clampPanelWidth","panelForAxis","resizePanelPair","panelSizeProperty","panelGrowProperty","usePanelResize","layout","tracks","vertical","document","scope","rootRef","onCommit","drag","previews","Map","register","id","preview","current","set","get","delete","pending","interrupted","frame","key","JSON","stringify","mode","filter","t","visible","map","clear","cancelAnimationFrame","previous","properties","forEach","style","property","removeProperty","requestAnimationFrame","root","removeAttribute","cancel","size","active","firstSize","read","index","panels","findIndex","panel","node","querySelector","bounds","getBoundingClientRect","height","width","snapshot","track","nextId","next","find","candidate","undefined","first","
|
|
1
|
+
{"version":3,"names":["useCallback","useLayoutEffect","useRef","clampPanelWidth","panelForAxis","panelContentResizeLimit","resizePanelPair","panelSizeProperty","panelGrowProperty","usePanelResize","layout","tracks","vertical","document","scope","rootRef","onCommit","drag","previews","Map","register","id","preview","current","set","get","delete","pending","interrupted","frame","key","JSON","stringify","mode","filter","t","visible","map","clear","cancelAnimationFrame","previous","properties","forEach","style","property","removeProperty","requestAnimationFrame","root","removeAttribute","cancel","size","active","firstSize","read","index","panels","findIndex","panel","node","querySelector","bounds","getBoundingClientRect","height","width","snapshot","track","nextId","next","find","candidate","undefined","nextSize","first","firstContentMax","contentHeight","nextContentMax","control","start","measured","shell","closest","targets","grow","envelope","horizontalScroll","setAttribute","resize","requested","firstLimit","values","nextLimit","Object","entries","every","value","write","content","Set","add","setProperty","update","target","nudge","delta","end"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-resize.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,eAAe,EAAEC,MAAM,QAAwB,OAAO;AAG5E,SACEC,eAAe,EACfC,YAAY,EACZC,uBAAuB,EACvBC,eAAe,QAEV,mBAAgB;AACvB,SAASC,iBAAiB,EAAEC,iBAAiB,QAAQ,uBAAoB;AA2BzE;AACA,OAAO,SAASC,cAAcA,CAAC;EA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;QACbN,KAAK,CAACM,MAAM,CAAC3C,IAAI,CAACf,KAAK,EAAE0D,MAAM,CAACnD,IAAI,EAAE,GAAG4C,KAAK,IAAI,CAAC;QACnDC,KAAK,CAACM,MAAM,CAAC3C,IAAI,CAACf,KAAK,EAAE0D,MAAM,CAACnB,IAAI,EAAE,GAAG,CAAC;QAC1C,IAAI/B,MAAM,CAACgC,QAAQ,EAAEY,KAAK,CAAC5C,MAAM,CAACgC,QAAQ,CAACxC,KAAK,EAAE0D,MAAM,CAACnD,IAAI,EAAE,GAAG4C,KAAK,IAAI,CAAC;MAC9E;IACF,CAAC;IACDQ,KAAKA,CAAC7C,KAA8B,EAAE8C,KAAa,EAAE;MACnD3B,OAAO,CAACC,KAAK,CAACpB,KAAK,CAAC;MACpBmB,OAAO,CAACU,MAAM,CAAC7B,KAAK,EAAEmB,OAAO,CAAC1B,IAAI,CAACO,KAAK,CAACpC,EAAE,CAAC,GAAGkF,KAAK,CAAC;MACrD3B,OAAO,CAAC4B,GAAG,CAAC,CAAC;IACf,CAAC;IACDA,GAAGA,CAAA,EAAG;MACJ5E,WAAW,CAACL,OAAO,GAAG,KAAK;MAC3B,MAAM4B,MAAM,GAAGlC,IAAI,CAACM,OAAO;MAC3B,IAAI,CAAC4B,MAAM,EAAE;MACblC,IAAI,CAACM,OAAO,GAAG,IAAI;MACnBI,OAAO,CAACJ,OAAO,GAAG4B,MAAM;MACxB,IAAIA,MAAM,CAACsC,MAAM,EAAEzE,QAAQ,CAACmC,MAAM,CAACsC,MAAM,CAAC;MAC1C;MACA5D,KAAK,CAACN,OAAO,GAAGuB,qBAAqB,CAACR,KAAK,CAAC;IAC9C;EACF,CAAC;EACD,OAAOsC,OAAO;AAChB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
|
+
import { panelGeometryTransitions } from "./panel-transitions.js";
|
|
4
5
|
/** Selection can hydrate at any time. Only a new explicit action may move the page. */
|
|
5
6
|
export function usePanelReveal({
|
|
6
7
|
rootRef,
|
|
@@ -31,7 +32,7 @@ export function usePanelReveal({
|
|
|
31
32
|
const envelope = root.closest(`[data-bloom-reading-envelope="${scope}"]`);
|
|
32
33
|
const owners = Array.from(root.querySelectorAll(`[data-bloom-panel-owner="${scope}"]`));
|
|
33
34
|
if (envelope) owners.push(envelope);
|
|
34
|
-
const transitions = owners
|
|
35
|
+
const transitions = panelGeometryTransitions(owners);
|
|
35
36
|
if (transitions.length) {
|
|
36
37
|
void Promise.allSettled(transitions.map(animation => animation.finished)).then(revealWhenSettled);
|
|
37
38
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useRef","usePanelReveal","rootRef","request","enabled","scope","panels","tracks","reducedMotion","consumed","undefined","current","id","requestKey","some","track","visible","index","findIndex","panel","root","node","querySelector","scrollIntoView","cancelled","revealWhenSettled","envelope","closest","owners","Array","from","querySelectorAll","push","transitions","
|
|
1
|
+
{"version":3,"names":["useEffect","useRef","panelGeometryTransitions","usePanelReveal","rootRef","request","enabled","scope","panels","tracks","reducedMotion","consumed","undefined","current","id","requestKey","some","track","visible","index","findIndex","panel","root","node","querySelector","scrollIntoView","cancelled","revealWhenSettled","envelope","closest","owners","Array","from","querySelectorAll","push","transitions","length","Promise","allSettled","map","animation","finished","then","block","inline","behavior"],"sourceRoot":"../../../src","sources":["app-shell/use-panel-reveal.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,MAAM,QAAwB,OAAO;AACzD,SAASC,wBAAwB,QAAQ,wBAAqB;AAI9D;AACA,OAAO,SAASC,cAAcA,CAAC;EAC7BC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,MAAM;EACNC,MAAM;EACNC;AASF,CAAC,EAAE;EACD,MAAMC,QAAQ,GAAGV,MAAM,CAAiCW,SAAS,CAAC;EAClEZ,SAAS,CAAC,MAAM;IACd,IAAI,CAACM,OAA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C,QAAQ,CAAC,CAAC,CAACC,IAAI,CAC9Ef,iBACF,CAAC;QACD;MACF;MACAhB,QAAQ,CAACE,OAAO,GAAG;QAAE,GAAGR;MAAQ,CAAC;MACjCkB,IAAI,CAACE,cAAc,CAAC;QAClBkB,KAAK,EAAE,SAAS;QAChBC,MAAM,EAAE,SAAS;QACjBC,QAAQ,EAAEnC,aAAa,GAAG,SAAS,GAAG;MACxC,CAAC,CAAC;IACJ,CAAC;IACDiB,iBAAiB,CAAC,CAAC;IACnB,OAAO,MAAM;MACXD,SAAS,GAAG,IAAI;IAClB,CAAC;EACH,CAAC,EAAE,CAACtB,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,KAAK,EAAEC,MAAM,EAAEC,MAAM,EAAEC,aAAa,CAAC,CAAC;AACvE","ignoreList":[]}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { ScrollArea } from '../layout/ScrollArea';
|
|
4
|
-
import { useContext, useRef, useState } from 'react';
|
|
4
|
+
import { useContext, useRef, useState, useCallback, useInsertionEffect } from 'react';
|
|
5
5
|
import { View, Platform } from 'react-native';
|
|
6
6
|
import { useKeyboardVisible } from "../hooks/use-keyboard-visible.js";
|
|
7
7
|
import { useEffect } from 'react';
|
|
8
|
-
import Animated, { useAnimatedReaction, useAnimatedStyle, interpolate, runOnJS, useSharedValue } from 'react-native-reanimated';
|
|
8
|
+
import Animated, { useAnimatedReaction, useAnimatedStyle, interpolate, runOnJS, useSharedValue, useDerivedValue } from 'react-native-reanimated';
|
|
9
9
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
10
10
|
import { useDirectionProps } from "../hooks/use-is-rtl.js";
|
|
11
11
|
import { BottomBarSlotContext } from "../layout/bottom-bar-slot.js";
|
|
12
|
-
import {
|
|
12
|
+
import { ScreenFooterContext } from "../screen/context.js";
|
|
13
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
14
|
+
import { IS_WEB } from "../styles/platform.js";
|
|
15
|
+
import { dataHook } from "../styles/data-hook.js";
|
|
16
|
+
import { useClaimBottomEdge, useMeasuredBottomEdgeClaim } from "../layout/bottom-edge.js";
|
|
13
17
|
import { FAB_METRICS } from "../fab/constants.js";
|
|
14
18
|
import { windowEdgeGap } from "../layout/edge.js";
|
|
15
19
|
import { useMinimizeState } from "../tab-bar/context.js";
|
|
16
|
-
import { EXPANDED_HEIGHT, MINIMIZED_HEIGHT, BLUR_BLEED, MAX_EXPANDED_ITEM_WIDTH, ROW_PAD_H } from "../tab-bar/shared.js";
|
|
20
|
+
import { EXPANDED_HEIGHT, MINIMIZED_HEIGHT, DOCK_NAVIGATION_PHASE, BLUR_BLEED, MAX_EXPANDED_ITEM_WIDTH, ROW_PAD_H } from "../tab-bar/shared.js";
|
|
17
21
|
import { useCssSafeAreaInsets } from "../hooks/use-css-safe-area-insets.js";
|
|
18
22
|
import { UNSET } from "../styles/animated-style.js";
|
|
23
|
+
import { useBorderBoxSize } from "../hooks/use-border-box-size.js";
|
|
24
|
+
import { useWindowWidthClass } from "../hooks/use-width-class.js";
|
|
25
|
+
import { BREAKPOINTS } from "../styles/breakpoints.js";
|
|
19
26
|
import { usePrefersReducedMotion } from "../hooks/use-prefers-reduced-motion.js";
|
|
20
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
28
|
export function BottomBarBase({
|
|
@@ -30,19 +37,35 @@ export function BottomBarBase({
|
|
|
30
37
|
action,
|
|
31
38
|
actionPlacement = 'auto',
|
|
32
39
|
actionBehavior = 'hide',
|
|
40
|
+
navigationVisibility = 'always',
|
|
33
41
|
minimizeProgress,
|
|
34
42
|
hideProgress,
|
|
35
43
|
blur = false,
|
|
36
44
|
maxWidth = 560,
|
|
45
|
+
horizontalInset = 12,
|
|
37
46
|
style,
|
|
38
47
|
testID
|
|
39
48
|
}) {
|
|
49
|
+
const inset = Math.max(0, Number.isFinite(horizontalInset) ? horizontalInset : 12);
|
|
40
50
|
const insets = useCssSafeAreaInsets(useSafeAreaInsets());
|
|
41
51
|
// Logical insets below; react-native-web needs the direction handed to it.
|
|
42
52
|
const dirProps = useDirectionProps();
|
|
43
53
|
const minimize = useMinimizeState();
|
|
44
54
|
const progress = minimizeProgress ?? minimize.progress;
|
|
45
55
|
const reducedMotion = usePrefersReducedMotion();
|
|
56
|
+
const dock = actionBehavior === 'dock' && action != null;
|
|
57
|
+
const sizeClass = useWindowWidthClass(COMPACT_THRESHOLDS);
|
|
58
|
+
const keyboardVisible = useKeyboardVisible();
|
|
59
|
+
const showNavigation = navigationVisibility !== 'never' && (navigationVisibility !== 'compact' || sizeClass < BREAKPOINTS.md) && !(dock && keyboardVisible);
|
|
60
|
+
const present = action != null || showNavigation && items.length > 0;
|
|
61
|
+
const selected = items.some(item => item.name === value);
|
|
62
|
+
const dockNavigation = dock && showNavigation && items.length > 0;
|
|
63
|
+
// Folding frees the horizontal lane before the editor descends into it.
|
|
64
|
+
// Both phases are reversible projections of the same scroll signal.
|
|
65
|
+
const navigationProgress = useDerivedValue(() => {
|
|
66
|
+
const amount = reducedMotion ? Number(progress.value > 0.01) : progress.value;
|
|
67
|
+
return dock ? selected ? Math.min(1, Math.max(0, amount / DOCK_NAVIGATION_PHASE)) : 0 : amount;
|
|
68
|
+
}, [dock, reducedMotion, progress, selected]);
|
|
46
69
|
const hideAction = actionBehavior === 'hide' && items.length > 0;
|
|
47
70
|
const [actionHidden, setActionHidden] = useState(() => hideAction && progress.value > 0.01);
|
|
48
71
|
const actionRef = useRef(null);
|
|
@@ -50,9 +73,9 @@ export function BottomBarBase({
|
|
|
50
73
|
const [actionHeight, setActionHeight] = useState(FAB_METRICS.md.diameter);
|
|
51
74
|
const [rowWidth, setRowWidth] = useState(0);
|
|
52
75
|
const actionSpace = action ? (actionWidth ?? FAB_METRICS.md.diameter) + 10 : 0;
|
|
53
|
-
const above = Boolean(action && items.length && (actionPlacement === 'above' || actionPlacement === 'auto' && rowWidth > 0 && rowWidth -
|
|
76
|
+
const above = Boolean(!dock && action && items.length && (actionPlacement === 'above' || actionPlacement === 'auto' && rowWidth > 0 && rowWidth - inset * 2 - actionSpace < items.length * 56 + ROW_PAD_H * 2));
|
|
54
77
|
const footprint = EXPANDED_HEIGHT + (above ? actionHeight + 10 : Math.max(0, action ? actionHeight - EXPANDED_HEIGHT : 0));
|
|
55
|
-
const navigationWidth = Math.max(0, Math.min(rowWidth -
|
|
78
|
+
const navigationWidth = Math.max(0, Math.min(rowWidth - inset * 2 - (above ? 0 : actionSpace), items.length * MAX_EXPANDED_ITEM_WIDTH + ROW_PAD_H * 2));
|
|
56
79
|
// The browser can distribute the row before JavaScript measures it. Keep
|
|
57
80
|
// the comfortable width as the flex basis, shrinking beside the action;
|
|
58
81
|
// a measured zero must not hide navigation in the server-rendered page.
|
|
@@ -93,17 +116,71 @@ export function BottomBarBase({
|
|
|
93
116
|
if (barHidden && node.contains(document.activeElement)) document.activeElement?.blur?.();
|
|
94
117
|
node.inert = barHidden;
|
|
95
118
|
}, [barHidden]);
|
|
96
|
-
const keyboardVisible = useKeyboardVisible();
|
|
97
119
|
const suppliedBottomInset = useContext(BottomBarSlotContext);
|
|
98
|
-
const bottom = Math.max(0, windowEdgeGap(insets.bottom) - (suppliedBottomInset ?? 0));
|
|
99
|
-
useClaimBottomEdge(keyboardVisible || suppliedBottomInset !== undefined ? 0 : bottom + footprint);
|
|
120
|
+
const bottom = keyboardVisible ? 0 : Math.max(0, windowEdgeGap(insets.bottom) - (suppliedBottomInset ?? 0));
|
|
121
|
+
useClaimBottomEdge(dock || !present || keyboardVisible || suppliedBottomInset !== undefined ? 0 : bottom + footprint);
|
|
122
|
+
const footerOwner = useContext(ScreenFooterContext);
|
|
123
|
+
const claimMeasured = useMeasuredBottomEdgeClaim(dock && footerOwner == null && suppliedBottomInset === undefined);
|
|
124
|
+
const naturalFootprint = useSharedValue(0);
|
|
125
|
+
const rootMeasurement = useBorderBoxSize(({
|
|
126
|
+
height
|
|
127
|
+
}) => {
|
|
128
|
+
if (dock) {
|
|
129
|
+
naturalFootprint.value = height;
|
|
130
|
+
claimMeasured(height);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
const attachRoot = useCallback(node => {
|
|
134
|
+
rootRef.current = node;
|
|
135
|
+
rootMeasurement.ref?.(node);
|
|
136
|
+
}, [rootMeasurement.ref]);
|
|
137
|
+
useInsertionEffect(() => {
|
|
138
|
+
if (Platform.OS === 'web') adoptStyleSheet('bloom-bottom-bar-dock', DOCK_CSS);
|
|
139
|
+
}, []);
|
|
100
140
|
const rowStyle = useAnimatedStyle(() => ({
|
|
101
|
-
height: interpolate(reducedMotion ? Number(progress.value > 0.01) : progress.value, [0, 1], [EXPANDED_HEIGHT, MINIMIZED_HEIGHT], 'clamp')
|
|
102
|
-
}), [progress, reducedMotion]);
|
|
141
|
+
height: dock ? 'auto' : interpolate(reducedMotion ? Number(progress.value > 0.01) : progress.value, [0, 1], [EXPANDED_HEIGHT, MINIMIZED_HEIGHT], 'clamp')
|
|
142
|
+
}), [progress, reducedMotion, dock, footprint]);
|
|
103
143
|
// Not `items.length` in the mapper: a worklet copies `items` whole to the UI
|
|
104
144
|
// runtime, icon elements and all (`worklet-captures.test.ts`).
|
|
105
145
|
const hasItems = items.length > 0;
|
|
146
|
+
const fallbackNavigationWidth = navigationStyle.width;
|
|
147
|
+
const dockNavigationStyle = useAnimatedStyle(() => {
|
|
148
|
+
const amount = navigationProgress.value;
|
|
149
|
+
return {
|
|
150
|
+
width: !dock ? fallbackNavigationWidth : IS_WEB ? `calc(${(1 - amount) * 100}% + ${amount * MINIMIZED_HEIGHT - (1 - amount) * inset * 2}px)` : amount === 0 ? UNSET : Math.max(MINIMIZED_HEIGHT, rowWidth - inset * 2) * (1 - amount) + MINIMIZED_HEIGHT * amount,
|
|
151
|
+
alignSelf: dock ? 'flex-end' : 'auto'
|
|
152
|
+
};
|
|
153
|
+
}, [dock, navigationProgress, rowWidth, inset, fallbackNavigationWidth]);
|
|
154
|
+
const minimumNavigationWidth = items.length * 44 + ROW_PAD_H * 2;
|
|
155
|
+
const navigationMinimumStyle = useAnimatedStyle(() => ({
|
|
156
|
+
minWidth: dock ? minimumNavigationWidth * (1 - navigationProgress.value) + MINIMIZED_HEIGHT * navigationProgress.value : minimumNavigationWidth
|
|
157
|
+
}), [dock, minimumNavigationWidth, navigationProgress]);
|
|
158
|
+
const actionMeasurement = useBorderBoxSize(({
|
|
159
|
+
width,
|
|
160
|
+
height
|
|
161
|
+
}) => {
|
|
162
|
+
if (!dock) {
|
|
163
|
+
setActionWidth(width);
|
|
164
|
+
setActionHeight(height);
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
const rowMeasurement = useBorderBoxSize(({
|
|
168
|
+
width
|
|
169
|
+
}) => {
|
|
170
|
+
if (!dock || Platform.OS !== 'web') setRowWidth(width);
|
|
171
|
+
});
|
|
106
172
|
const actionStyle = useAnimatedStyle(() => {
|
|
173
|
+
if (dock) {
|
|
174
|
+
const amount = dockNavigation && selected ? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value)) : 0;
|
|
175
|
+
return {
|
|
176
|
+
width: 'auto',
|
|
177
|
+
opacity: 1,
|
|
178
|
+
marginInlineStart: dockNavigation ? (MINIMIZED_HEIGHT + 10) * navigationProgress.value : 0,
|
|
179
|
+
transform: [{
|
|
180
|
+
translateY: dockNavigation ? (EXPANDED_HEIGHT + 10) * Math.min(1, Math.max(0, (amount - DOCK_NAVIGATION_PHASE) / (1 - DOCK_NAVIGATION_PHASE))) : 0
|
|
181
|
+
}]
|
|
182
|
+
};
|
|
183
|
+
}
|
|
107
184
|
const amount = hideAction ? Math.min(1, Math.max(0, reducedMotion ? Number(progress.value > 0.01) : progress.value)) : 0;
|
|
108
185
|
return {
|
|
109
186
|
width: actionWidth == null ? UNSET : actionWidth * (1 - amount),
|
|
@@ -116,28 +193,30 @@ export function BottomBarBase({
|
|
|
116
193
|
scale: 1 - amount * 0.15
|
|
117
194
|
}]
|
|
118
195
|
};
|
|
119
|
-
}, [progress, hideAction, reducedMotion, actionWidth, hasItems, above]);
|
|
196
|
+
}, [progress, hideAction, reducedMotion, actionWidth, hasItems, above, dock, dockNavigation, navigationProgress, selected]);
|
|
120
197
|
const presenceStyle = useAnimatedStyle(() => {
|
|
121
198
|
const amount = Math.min(1, Math.max(0, reducedMotion ? Number(hide.value > 0.5) : hide.value));
|
|
122
199
|
// The whole footprint, so a gone bar leaves no sliver above the edge.
|
|
123
200
|
return {
|
|
124
201
|
opacity: 1 - amount,
|
|
125
202
|
transform: [{
|
|
126
|
-
translateY: amount * (bottom + footprint)
|
|
203
|
+
translateY: amount * (dock ? naturalFootprint.value : bottom + footprint)
|
|
127
204
|
}]
|
|
128
205
|
};
|
|
129
|
-
}, [hide, reducedMotion, bottom, footprint]);
|
|
130
|
-
if (keyboardVisible
|
|
206
|
+
}, [hide, reducedMotion, bottom, footprint, dock, naturalFootprint]);
|
|
207
|
+
if (keyboardVisible && !dock || !present) return null;
|
|
131
208
|
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
132
209
|
...dirProps,
|
|
133
|
-
ref: rootRef,
|
|
210
|
+
ref: dock ? attachRoot : rootRef,
|
|
211
|
+
onLayout: dock ? rootMeasurement.onLayout : undefined,
|
|
212
|
+
...dataHook('bloomBottomBarDock', dock ? navigationVisibility : undefined),
|
|
134
213
|
testID: testID,
|
|
135
214
|
pointerEvents: barHidden ? 'none' : 'box-none',
|
|
136
215
|
accessibilityElementsHidden: barHidden,
|
|
137
216
|
importantForAccessibility: barHidden ? 'no-hide-descendants' : 'auto',
|
|
138
217
|
"aria-hidden": barHidden,
|
|
139
218
|
style: [{
|
|
140
|
-
height: bottom + footprint,
|
|
219
|
+
height: dock ? undefined : bottom + footprint,
|
|
141
220
|
justifyContent: 'flex-end'
|
|
142
221
|
}, style, presenceStyle],
|
|
143
222
|
children: [blur && /*#__PURE__*/_jsx(Blur, {
|
|
@@ -147,44 +226,63 @@ export function BottomBarBase({
|
|
|
147
226
|
left: 0,
|
|
148
227
|
right: 0,
|
|
149
228
|
bottom: 0,
|
|
150
|
-
height: bottom + footprint + BLUR_BLEED
|
|
229
|
+
height: dock ? '100%' : bottom + footprint + BLUR_BLEED
|
|
151
230
|
}
|
|
152
231
|
}), /*#__PURE__*/_jsxs(Animated.View, {
|
|
153
232
|
testID: testID ? `${testID}-row` : undefined,
|
|
154
|
-
|
|
233
|
+
...(dock && IS_WEB ? {} : rowMeasurement),
|
|
234
|
+
...dataHook('bloomBottomBarRow'),
|
|
155
235
|
pointerEvents: "box-none",
|
|
156
236
|
style: [{
|
|
157
|
-
justifyContent: items.length ? 'center' : 'flex-end',
|
|
237
|
+
justifyContent: dock ? 'flex-start' : items.length ? 'center' : 'flex-end',
|
|
158
238
|
alignSelf: 'center',
|
|
159
239
|
width: '100%',
|
|
160
240
|
maxWidth,
|
|
161
|
-
paddingLeft:
|
|
162
|
-
paddingRight:
|
|
241
|
+
paddingLeft: inset,
|
|
242
|
+
paddingRight: inset,
|
|
163
243
|
marginBottom: bottom,
|
|
164
|
-
flexDirection: 'row',
|
|
165
|
-
|
|
244
|
+
flexDirection: dock ? 'column' : 'row',
|
|
245
|
+
paddingBottom: dockNavigation ? EXPANDED_HEIGHT + 10 : 0,
|
|
246
|
+
alignItems: dock ? 'stretch' : 'center'
|
|
166
247
|
}, rowStyle],
|
|
167
|
-
children: [items.length > 0 && /*#__PURE__*/_jsx(View, {
|
|
248
|
+
children: [items.length > 0 && /*#__PURE__*/_jsx(Animated.View, {
|
|
168
249
|
testID: testID ? `${testID}-navigation` : undefined,
|
|
169
|
-
|
|
250
|
+
...dataHook('bloomBottomBarNavigation'),
|
|
251
|
+
style: [dock ? {
|
|
252
|
+
position: 'absolute',
|
|
253
|
+
bottom: 0,
|
|
254
|
+
insetInlineStart: inset,
|
|
255
|
+
insetInlineEnd: inset,
|
|
256
|
+
minWidth: MINIMIZED_HEIGHT,
|
|
257
|
+
flexShrink: 0
|
|
258
|
+
} : navigationStyle, !showNavigation ? {
|
|
259
|
+
display: 'none'
|
|
260
|
+
} : undefined, dockNavigationStyle],
|
|
170
261
|
children: /*#__PURE__*/_jsx(ScrollArea, {
|
|
171
262
|
horizontal: true,
|
|
172
263
|
showsHorizontalScrollIndicator: false,
|
|
173
|
-
contentContainerStyle: {
|
|
264
|
+
contentContainerStyle: dock ? {
|
|
265
|
+
width: '100%',
|
|
266
|
+
minWidth: 0
|
|
267
|
+
} : {
|
|
174
268
|
minWidth: '100%'
|
|
175
269
|
},
|
|
176
|
-
|
|
177
|
-
|
|
270
|
+
scrollbar: "never",
|
|
271
|
+
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
272
|
+
style: [dock ? {
|
|
273
|
+
width: '100%'
|
|
274
|
+
} : Platform.OS === 'web' ? {
|
|
178
275
|
width: '100%',
|
|
179
276
|
minWidth: items.length * 44 + 8
|
|
180
277
|
} : {
|
|
181
278
|
width: Math.max(navigationWidth, items.length * 44 + 8)
|
|
182
|
-
},
|
|
279
|
+
}, navigationMinimumStyle],
|
|
183
280
|
children: /*#__PURE__*/_jsx(Navigation, {
|
|
184
|
-
|
|
281
|
+
minimizeBehavior: dock ? 'active' : 'compact',
|
|
282
|
+
scrollable: !dock && navigationWidth > 0 && navigationWidth < items.length * 44 + 8,
|
|
185
283
|
embedded: true,
|
|
186
284
|
blur: false,
|
|
187
|
-
minimizeProgress: progress,
|
|
285
|
+
minimizeProgress: dock && !selected ? shown : progress,
|
|
188
286
|
activeProgress: activeProgress,
|
|
189
287
|
onIndexLongPress: onValueLongPress ? index => {
|
|
190
288
|
if (items[index]) onValueLongPress(items[index].name);
|
|
@@ -207,25 +305,23 @@ export function BottomBarBase({
|
|
|
207
305
|
importantForAccessibility: actionHidden ? 'no-hide-descendants' : 'auto',
|
|
208
306
|
"aria-hidden": actionHidden,
|
|
209
307
|
testID: testID ? `${testID}-action` : undefined,
|
|
308
|
+
...dataHook('bloomBottomBarAction'),
|
|
210
309
|
style: [{
|
|
211
310
|
flexShrink: 0,
|
|
212
|
-
alignItems: 'flex-start',
|
|
311
|
+
alignItems: dock ? 'stretch' : 'flex-start',
|
|
213
312
|
justifyContent: 'center'
|
|
214
313
|
}, above ? {
|
|
215
314
|
position: 'absolute',
|
|
216
|
-
insetInlineEnd:
|
|
315
|
+
insetInlineEnd: inset,
|
|
217
316
|
bottom: '100%',
|
|
218
317
|
marginBottom: 10
|
|
219
318
|
} : undefined, actionStyle],
|
|
220
319
|
children: /*#__PURE__*/_jsx(View, {
|
|
221
320
|
testID: testID ? `${testID}-action-content` : undefined,
|
|
222
|
-
|
|
223
|
-
setActionWidth(event.nativeEvent.layout.width);
|
|
224
|
-
setActionHeight(event.nativeEvent.layout.height);
|
|
225
|
-
},
|
|
321
|
+
...(dock ? {} : actionMeasurement),
|
|
226
322
|
style: {
|
|
227
323
|
flexShrink: 0,
|
|
228
|
-
...(actionWidth == null ? {} : {
|
|
324
|
+
...(dock || actionWidth == null ? {} : {
|
|
229
325
|
width: actionWidth
|
|
230
326
|
})
|
|
231
327
|
},
|
|
@@ -235,4 +331,12 @@ export function BottomBarBase({
|
|
|
235
331
|
})]
|
|
236
332
|
});
|
|
237
333
|
}
|
|
334
|
+
const COMPACT_THRESHOLDS = [BREAKPOINTS.md];
|
|
335
|
+
const DOCK_CSS = `
|
|
336
|
+
@media (min-width: ${BREAKPOINTS.md}px) {
|
|
337
|
+
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-navigation] { display: none !important; }
|
|
338
|
+
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-row] { padding-bottom: 0 !important; }
|
|
339
|
+
[data-bloom-bottom-bar-dock="compact"] [data-bloom-bottom-bar-action] { margin-inline-start: 0 !important; transform: none !important; }
|
|
340
|
+
}
|
|
341
|
+
`;
|
|
238
342
|
//# sourceMappingURL=BottomBarBase.js.map
|