@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
package/src/button/types.ts
CHANGED
|
@@ -347,6 +347,17 @@ export interface CloseButtonProps {
|
|
|
347
347
|
* 0.6 is the middle of it (and exactly what the 40-box media header used).
|
|
348
348
|
*/
|
|
349
349
|
export interface GlyphButtonProps {
|
|
350
|
+
/** Original focus events from the interactive host; never activate the button. */
|
|
351
|
+
onFocus?: (event: ButtonFocusEvent) => void;
|
|
352
|
+
onBlur?: (event: ButtonFocusEvent) => void;
|
|
353
|
+
/**
|
|
354
|
+
* Opt-in attention token. Initialize it (for example to 0), then change it for
|
|
355
|
+
* each event that should softly pulse the glyph. Mounting is silent; repeated
|
|
356
|
+
* values do nothing. The button and its target keep their size and identity.
|
|
357
|
+
* Reduced motion, disabled and busy suppress the pulse. Supply a label or
|
|
358
|
+
* other visible feedback too: this motion carries no accessibility message.
|
|
359
|
+
*/
|
|
360
|
+
attention?: number;
|
|
350
361
|
/** Diameter of the round target. Default 36. */
|
|
351
362
|
size?: number;
|
|
352
363
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Button } from '../button/Button';
|
|
2
|
+
import { Collapsible } from '../collapsible/Collapsible';
|
|
3
|
+
import { ScrollArea } from '../layout/ScrollArea';
|
|
4
|
+
import { Surface } from '../surface/Surface';
|
|
5
|
+
import { createCompactComposer } from './create-compact-composer';
|
|
6
|
+
|
|
7
|
+
export const CompactComposer = createCompactComposer({ Button, Collapsible, ScrollArea, Surface });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Button } from '../button/Button.web';
|
|
2
|
+
import { Collapsible } from '../collapsible/Collapsible.web';
|
|
3
|
+
import { ScrollArea } from '../layout/ScrollArea.web';
|
|
4
|
+
import { Surface } from '../surface/Surface.web';
|
|
5
|
+
import { createCompactComposer } from './create-compact-composer';
|
|
6
|
+
|
|
7
|
+
export const CompactComposer = createCompactComposer({ Button, Collapsible, ScrollArea, Surface });
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Existing longer drafts remain intact; edits may shorten or replace them without growing. */
|
|
2
|
+
export function acceptsComposerText(current: string, next: string, maxLength: number): boolean {
|
|
3
|
+
return next.length <= maxLength || (current.length > maxLength && next.length <= current.length);
|
|
4
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ButtonProps } from '../button/types';
|
|
3
|
+
import type { TextareaProps } from '../textarea/types';
|
|
4
|
+
import type { ViewStyleProp } from '../styles';
|
|
5
|
+
|
|
6
|
+
export interface CompactComposerAction {
|
|
7
|
+
id: string;
|
|
8
|
+
icon: NonNullable<ButtonProps['icon']>;
|
|
9
|
+
label: string;
|
|
10
|
+
onPress: () => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
testID?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface CompactComposerLabels {
|
|
16
|
+
input: string;
|
|
17
|
+
expand: string;
|
|
18
|
+
submit: string;
|
|
19
|
+
limitHint: string;
|
|
20
|
+
characterCount: string;
|
|
21
|
+
characterCountValue: (count: number, max: number) => string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** A controlled compact editor. The application owns drafts, uploads and publication. */
|
|
25
|
+
export interface CompactComposerProps extends ViewStyleProp {
|
|
26
|
+
value: string;
|
|
27
|
+
onChangeText: (value: string) => void;
|
|
28
|
+
/** UTF-16 character limit. Existing longer values remain editable toward this limit. */
|
|
29
|
+
maxLength: number;
|
|
30
|
+
inputRef?: TextareaProps['inputRef'];
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
avatar?: ReactNode;
|
|
33
|
+
/** Pass null when empty; previews and their domain actions belong to the application. */
|
|
34
|
+
attachments?: ReactNode;
|
|
35
|
+
attachmentActions?: readonly CompactComposerAction[];
|
|
36
|
+
onExpand?: () => void;
|
|
37
|
+
onSubmit: () => void;
|
|
38
|
+
/** Input focus, retained when focus moves to a capsule control. Resets on leaving or unmount. */
|
|
39
|
+
onFocusChange?: (focused: boolean) => void;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
busy?: boolean;
|
|
42
|
+
/** Additional application permission; empty or over-limit drafts still cannot submit. */
|
|
43
|
+
canSubmit?: boolean;
|
|
44
|
+
labels?: Partial<CompactComposerLabels>;
|
|
45
|
+
className?: string;
|
|
46
|
+
testID?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type ComponentRef,
|
|
3
|
+
useCallback,
|
|
4
|
+
useEffect,
|
|
5
|
+
useLayoutEffect,
|
|
6
|
+
useRef,
|
|
7
|
+
useState,
|
|
8
|
+
} from 'react';
|
|
9
|
+
import type { View as NativeView } from 'react-native';
|
|
10
|
+
import type { Button as ButtonComponent } from '../button/Button';
|
|
11
|
+
import { GlyphButton } from '../button/GlyphButton';
|
|
12
|
+
import type { Collapsible as CollapsibleComponent } from '../collapsible/Collapsible';
|
|
13
|
+
import { RiExpandDiagonalSLine } from '../icons/remix/RiExpandDiagonalSLine';
|
|
14
|
+
import type { ScrollArea as ScrollAreaComponent } from '../layout/ScrollArea';
|
|
15
|
+
import { Toolbar } from '../layout/Toolbar';
|
|
16
|
+
import { useCommonMessages } from '../locale/common-messages';
|
|
17
|
+
import { useMessages } from '../locale/messages';
|
|
18
|
+
import { MeterRing } from '../stat-bar/MeterRing';
|
|
19
|
+
import { IS_WEB } from '../styles/platform';
|
|
20
|
+
import { StyledView as View } from '../styles/styled-primitives';
|
|
21
|
+
import type { Surface as SurfaceComponent } from '../surface/Surface';
|
|
22
|
+
import { Textarea } from '../textarea/Textarea';
|
|
23
|
+
import { COMPACT_COMPOSER_MESSAGES } from './messages';
|
|
24
|
+
import { acceptsComposerText } from './compact-text';
|
|
25
|
+
import type { CompactComposerProps } from './compact-types';
|
|
26
|
+
|
|
27
|
+
/** Bind platform surfaces once. Both renderers share the same editor and behavior. */
|
|
28
|
+
export function createCompactComposer({
|
|
29
|
+
Button,
|
|
30
|
+
Collapsible,
|
|
31
|
+
ScrollArea,
|
|
32
|
+
Surface,
|
|
33
|
+
}: {
|
|
34
|
+
Button: typeof ButtonComponent;
|
|
35
|
+
Collapsible: typeof CollapsibleComponent;
|
|
36
|
+
ScrollArea: typeof ScrollAreaComponent;
|
|
37
|
+
Surface: typeof SurfaceComponent;
|
|
38
|
+
}) {
|
|
39
|
+
function CompactComposer({
|
|
40
|
+
value,
|
|
41
|
+
onChangeText,
|
|
42
|
+
maxLength,
|
|
43
|
+
inputRef,
|
|
44
|
+
placeholder,
|
|
45
|
+
avatar,
|
|
46
|
+
attachments,
|
|
47
|
+
attachmentActions = [],
|
|
48
|
+
onExpand,
|
|
49
|
+
onSubmit,
|
|
50
|
+
onFocusChange,
|
|
51
|
+
disabled = false,
|
|
52
|
+
busy = false,
|
|
53
|
+
canSubmit = true,
|
|
54
|
+
labels,
|
|
55
|
+
className,
|
|
56
|
+
style,
|
|
57
|
+
testID,
|
|
58
|
+
}: CompactComposerProps) {
|
|
59
|
+
const { messages } = useMessages(COMPACT_COMPOSER_MESSAGES);
|
|
60
|
+
const common = useCommonMessages();
|
|
61
|
+
const capsule = useRef<ComponentRef<typeof NativeView>>(null);
|
|
62
|
+
const [focused, setFocused] = useState(false);
|
|
63
|
+
const [attempt, setAttempt] = useState(0);
|
|
64
|
+
const focusCallback = useRef(onFocusChange);
|
|
65
|
+
useLayoutEffect(() => {
|
|
66
|
+
focusCallback.current = onFocusChange;
|
|
67
|
+
}, [onFocusChange]);
|
|
68
|
+
useEffect(() => () => focusCallback.current?.(false), []);
|
|
69
|
+
const updateFocus = useCallback((next: boolean) => {
|
|
70
|
+
setFocused(next);
|
|
71
|
+
focusCallback.current?.(next);
|
|
72
|
+
}, []);
|
|
73
|
+
const handleBlur = useCallback(
|
|
74
|
+
(event: unknown) => {
|
|
75
|
+
const next = (event as { relatedTarget?: Node }).relatedTarget;
|
|
76
|
+
const node = capsule.current as unknown as { contains?: (target: Node) => boolean } | null;
|
|
77
|
+
if (IS_WEB && next && node?.contains?.(next)) return;
|
|
78
|
+
updateFocus(false);
|
|
79
|
+
},
|
|
80
|
+
[updateFocus],
|
|
81
|
+
);
|
|
82
|
+
const hasAttachments = attachments != null && attachments !== false;
|
|
83
|
+
const blocked = disabled || busy;
|
|
84
|
+
const expanded = focused || value.length > 0 || busy || hasAttachments;
|
|
85
|
+
const submitEnabled =
|
|
86
|
+
!blocked &&
|
|
87
|
+
canSubmit &&
|
|
88
|
+
value.length <= maxLength &&
|
|
89
|
+
(value.trim().length > 0 || hasAttachments);
|
|
90
|
+
const id = (part: string) => (testID ? `${testID}-${part}` : undefined);
|
|
91
|
+
const inputLabel = labels?.input ?? placeholder ?? messages.input;
|
|
92
|
+
const actions = (location: string) =>
|
|
93
|
+
attachmentActions.map((action) => (
|
|
94
|
+
<Button
|
|
95
|
+
key={action.id}
|
|
96
|
+
appearance="plain"
|
|
97
|
+
tone="neutral"
|
|
98
|
+
size="sm"
|
|
99
|
+
iconOnly
|
|
100
|
+
icon={action.icon}
|
|
101
|
+
iconSize={24}
|
|
102
|
+
accessibilityLabel={action.label}
|
|
103
|
+
onPress={action.onPress}
|
|
104
|
+
onBlur={handleBlur}
|
|
105
|
+
disabled={blocked || action.disabled}
|
|
106
|
+
testID={action.testID ?? id(`${location}-${action.id}`)}
|
|
107
|
+
/>
|
|
108
|
+
));
|
|
109
|
+
return (
|
|
110
|
+
<Surface
|
|
111
|
+
ref={capsule}
|
|
112
|
+
radius={28}
|
|
113
|
+
className={['overflow-hidden', className].filter(Boolean).join(' ')}
|
|
114
|
+
style={style}
|
|
115
|
+
testID={testID}
|
|
116
|
+
>
|
|
117
|
+
<ScrollArea
|
|
118
|
+
className="max-h-64 md:max-h-80"
|
|
119
|
+
containerClassName="max-h-64 md:max-h-80"
|
|
120
|
+
contentContainerClassName="px-3 py-1.5"
|
|
121
|
+
scrollbar="always"
|
|
122
|
+
keyboardShouldPersistTaps="handled"
|
|
123
|
+
testID={id('scroll')}
|
|
124
|
+
>
|
|
125
|
+
{attachments}
|
|
126
|
+
<View className="min-h-11 flex-row items-center gap-3">
|
|
127
|
+
{avatar}
|
|
128
|
+
<Textarea
|
|
129
|
+
inputRef={inputRef}
|
|
130
|
+
onFocus={() => updateFocus(true)}
|
|
131
|
+
onBlur={handleBlur}
|
|
132
|
+
value={value}
|
|
133
|
+
onChangeText={(next) => {
|
|
134
|
+
if (disabled) return;
|
|
135
|
+
if (acceptsComposerText(value, next, maxLength)) onChangeText(next);
|
|
136
|
+
else setAttempt((current) => current + 1);
|
|
137
|
+
}}
|
|
138
|
+
disabled={disabled}
|
|
139
|
+
placeholder={placeholder ?? messages.input}
|
|
140
|
+
accessibilityLabel={inputLabel}
|
|
141
|
+
size="sm"
|
|
142
|
+
rows={1}
|
|
143
|
+
autoResize
|
|
144
|
+
scrollEnabled={false}
|
|
145
|
+
className="min-w-0 flex-1"
|
|
146
|
+
fieldClassName="bg-transparent"
|
|
147
|
+
inputClassName="overflow-hidden p-0 text-base leading-5 text-foreground"
|
|
148
|
+
testID={id('input')}
|
|
149
|
+
/>
|
|
150
|
+
<View className="flex-row items-center">
|
|
151
|
+
{!expanded ? actions('inline') : null}
|
|
152
|
+
{onExpand ? (
|
|
153
|
+
<GlyphButton
|
|
154
|
+
onBlur={handleBlur}
|
|
155
|
+
size={32}
|
|
156
|
+
glyphSize={32}
|
|
157
|
+
hitSlop={6}
|
|
158
|
+
attention={attempt}
|
|
159
|
+
accessibilityHint={labels?.limitHint ?? messages.limitHint(maxLength)}
|
|
160
|
+
icon={RiExpandDiagonalSLine}
|
|
161
|
+
accessibilityLabel={labels?.expand ?? messages.expand}
|
|
162
|
+
disabled={blocked}
|
|
163
|
+
testID={id('maximize')}
|
|
164
|
+
onPress={onExpand}
|
|
165
|
+
/>
|
|
166
|
+
) : null}
|
|
167
|
+
</View>
|
|
168
|
+
</View>
|
|
169
|
+
</ScrollArea>
|
|
170
|
+
<Collapsible open={expanded}>
|
|
171
|
+
<Toolbar
|
|
172
|
+
size="sm"
|
|
173
|
+
style={{ paddingLeft: 8, paddingRight: 12, paddingTop: 8, paddingBottom: 8 }}
|
|
174
|
+
testID={id('toolbar')}
|
|
175
|
+
actions={
|
|
176
|
+
<View className="flex-row items-center gap-3">
|
|
177
|
+
<MeterRing
|
|
178
|
+
value={value.length}
|
|
179
|
+
max={maxLength}
|
|
180
|
+
size={20}
|
|
181
|
+
thickness={2}
|
|
182
|
+
accessibilityLabel={labels?.characterCount ?? messages.characterCount}
|
|
183
|
+
valueText={(labels?.characterCountValue ?? messages.characterCountValue)(
|
|
184
|
+
value.length,
|
|
185
|
+
maxLength,
|
|
186
|
+
)}
|
|
187
|
+
testID={id('count')}
|
|
188
|
+
/>
|
|
189
|
+
<Button
|
|
190
|
+
onBlur={handleBlur}
|
|
191
|
+
tone="action"
|
|
192
|
+
size="md"
|
|
193
|
+
className="min-w-20"
|
|
194
|
+
onPress={() => {
|
|
195
|
+
if (submitEnabled) onSubmit();
|
|
196
|
+
}}
|
|
197
|
+
disabled={!submitEnabled}
|
|
198
|
+
loading={busy}
|
|
199
|
+
testID={id('submit')}
|
|
200
|
+
>
|
|
201
|
+
{labels?.submit ?? common.send}
|
|
202
|
+
</Button>
|
|
203
|
+
</View>
|
|
204
|
+
}
|
|
205
|
+
>
|
|
206
|
+
<View className="flex-row items-center">{actions('toolbar')}</View>
|
|
207
|
+
</Toolbar>
|
|
208
|
+
</Collapsible>
|
|
209
|
+
</Surface>
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
return CompactComposer;
|
|
213
|
+
}
|
|
@@ -47,3 +47,11 @@ export type {
|
|
|
47
47
|
VoiceRecorderProps,
|
|
48
48
|
VoiceRecorderState,
|
|
49
49
|
} from './types';
|
|
50
|
+
|
|
51
|
+
export { CompactComposer } from './CompactComposer';
|
|
52
|
+
export { acceptsComposerText } from './compact-text';
|
|
53
|
+
export type {
|
|
54
|
+
CompactComposerProps,
|
|
55
|
+
CompactComposerLabels,
|
|
56
|
+
CompactComposerAction,
|
|
57
|
+
} from './compact-types';
|
|
@@ -52,3 +52,11 @@ export type {
|
|
|
52
52
|
VoiceRecorderProps,
|
|
53
53
|
VoiceRecorderState,
|
|
54
54
|
} from './types';
|
|
55
|
+
|
|
56
|
+
export { CompactComposer } from './CompactComposer.web';
|
|
57
|
+
export { acceptsComposerText } from './compact-text';
|
|
58
|
+
export type {
|
|
59
|
+
CompactComposerProps,
|
|
60
|
+
CompactComposerLabels,
|
|
61
|
+
CompactComposerAction,
|
|
62
|
+
} from './compact-types';
|
|
@@ -108,3 +108,19 @@ export const CHAT_COMPOSER_MESSAGES: MessageCatalog<ChatComposerMessages> =
|
|
|
108
108
|
music: 'Music',
|
|
109
109
|
},
|
|
110
110
|
});
|
|
111
|
+
|
|
112
|
+
export interface CompactComposerMessages {
|
|
113
|
+
input: string;
|
|
114
|
+
expand: string;
|
|
115
|
+
characterCount: string;
|
|
116
|
+
characterCountValue: (count: number, max: number) => string;
|
|
117
|
+
limitHint: (max: number) => string;
|
|
118
|
+
}
|
|
119
|
+
export const COMPACT_COMPOSER_MESSAGES: MessageCatalog<CompactComposerMessages> =
|
|
120
|
+
defineMessages<CompactComposerMessages>('COMPACT_COMPOSER_MESSAGES', {
|
|
121
|
+
input: 'Write a message',
|
|
122
|
+
expand: 'Open full composer',
|
|
123
|
+
characterCount: 'Characters',
|
|
124
|
+
characterCountValue: (count, max) => `${count} of ${max} characters`,
|
|
125
|
+
limitHint: (max) => `Compact messages allow ${max} characters. Expand to write more.`,
|
|
126
|
+
});
|
|
@@ -74,6 +74,7 @@ export function DialogBottomSheet({
|
|
|
74
74
|
dismissOnBackdrop = true,
|
|
75
75
|
contentPadding = DEFAULT_DIALOG_CONTENT_PADDING,
|
|
76
76
|
scrollable,
|
|
77
|
+
sizing = 'content',
|
|
77
78
|
morph,
|
|
78
79
|
style,
|
|
79
80
|
panelStyle,
|
|
@@ -226,9 +227,16 @@ export function DialogBottomSheet({
|
|
|
226
227
|
panelStyle,
|
|
227
228
|
// Drives the card's `height` only while a morph is in flight; at rest it
|
|
228
229
|
// resolves to `height: 'auto'` — the sheet's normal content sizing.
|
|
229
|
-
morphState.panelStyle,
|
|
230
|
+
sizing === 'content' ? morphState.panelStyle : undefined,
|
|
230
231
|
];
|
|
231
|
-
}, [
|
|
232
|
+
}, [
|
|
233
|
+
theme.colors.background,
|
|
234
|
+
detached,
|
|
235
|
+
maxHeightRatio,
|
|
236
|
+
panelStyle,
|
|
237
|
+
morphState.panelStyle,
|
|
238
|
+
sizing,
|
|
239
|
+
]);
|
|
232
240
|
|
|
233
241
|
// Does this dialog render bloom's declarative chrome (title / description /
|
|
234
242
|
// actions)? This no longer gates the SCROLL decision (that is now the explicit
|
|
@@ -306,6 +314,8 @@ export function DialogBottomSheet({
|
|
|
306
314
|
// opt OUT so there is exactly ONE scroll container (no scroll-in-scroll,
|
|
307
315
|
// no "VirtualizedList inside a plain ScrollView" warning).
|
|
308
316
|
scrollable={scrollableResolved}
|
|
317
|
+
sizing={sizing}
|
|
318
|
+
maxHeightRatio={maxHeightRatio}
|
|
309
319
|
// Declarative dialogs (title/description/actions) that overflow — AND every
|
|
310
320
|
// nav-header page (its scroll content overflows by design) — need
|
|
311
321
|
// gorhom-style pan coordination: the drag-to-dismiss pan only activates
|
|
@@ -447,6 +457,7 @@ export type DialogBottomSheetProps = DialogPresentationLifecycle &
|
|
|
447
457
|
| 'dismissOnBackdrop'
|
|
448
458
|
| 'contentPadding'
|
|
449
459
|
| 'scrollable'
|
|
460
|
+
| 'sizing'
|
|
450
461
|
| 'morph'
|
|
451
462
|
| 'style'
|
|
452
463
|
| 'panelStyle'
|
package/src/dialog/types.ts
CHANGED
|
@@ -337,6 +337,8 @@ export type DialogProps = React.PropsWithChildren<{
|
|
|
337
337
|
maxWidth?: number;
|
|
338
338
|
/** Bottom-sheet max height as a fraction of the viewport height. Defaults to `0.9`. */
|
|
339
339
|
maxHeightRatio?: number;
|
|
340
|
+
/** Bottom placement: content grows intrinsically; fill bounds a Screen or virtualized list. */
|
|
341
|
+
sizing?: 'content' | 'fill';
|
|
340
342
|
/**
|
|
341
343
|
* How far the bottom sheet is presented, mirrored on the UI thread: `0`
|
|
342
344
|
* closed, `1` fully up, every value in between while it is dragged or
|
|
@@ -5,7 +5,7 @@ import { Pressable, Text, type PressableStateCallbackType, type ViewStyle } from
|
|
|
5
5
|
import { SpinnerIcon } from '../loading/SpinnerIcon';
|
|
6
6
|
import { DISABLED_OPACITY } from '../styles/tokens';
|
|
7
7
|
import { IS_WEB } from '../styles/platform';
|
|
8
|
-
import { ENGAGEMENT_HIT_SLOP
|
|
8
|
+
import { ENGAGEMENT_HIT_SLOP } from './constants';
|
|
9
9
|
import { EngagementBarContext, type EngagementPress } from './context';
|
|
10
10
|
import { EngagementCountRoll } from './EngagementCountRoll';
|
|
11
11
|
import { EngagementPop } from './EngagementPop';
|
|
@@ -58,7 +58,7 @@ function EngagementActionComponent({
|
|
|
58
58
|
const on = active === true;
|
|
59
59
|
const tonePaint = bar.paint.tones[tone];
|
|
60
60
|
const color = on ? tonePaint.color : bar.paint.restColor;
|
|
61
|
-
const shown = count != null && count !== 0 ? count : null;
|
|
61
|
+
const shown = count != null && (count !== 0 || bar.showZeroCounts) ? count : null;
|
|
62
62
|
const label = shown === null ? null : bar.formatCount(shown);
|
|
63
63
|
|
|
64
64
|
const popping = press !== null && popOnActivate && on && !press.active;
|
|
@@ -69,20 +69,21 @@ function EngagementActionComponent({
|
|
|
69
69
|
|
|
70
70
|
let glyph: React.ReactNode;
|
|
71
71
|
if (busy) {
|
|
72
|
-
glyph = <SpinnerIcon key="busy" size={
|
|
72
|
+
glyph = <SpinnerIcon key="busy" size={bar.paint.spinnerSize} color={bar.paint.restColor} />;
|
|
73
73
|
} else if (popping) {
|
|
74
74
|
glyph = (
|
|
75
75
|
<EngagementPop
|
|
76
76
|
key={`pop-${press.id}`}
|
|
77
77
|
icon={Glyph}
|
|
78
78
|
color={color}
|
|
79
|
+
size={bar.paint.iconSize}
|
|
79
80
|
// The roll outlasts the pop, so whichever is running last clears the press.
|
|
80
81
|
onDone={rolling ? undefined : setPress}
|
|
81
82
|
/>
|
|
82
83
|
);
|
|
83
84
|
} else {
|
|
84
85
|
glyph = (
|
|
85
|
-
<Glyph key="glyph" width={
|
|
86
|
+
<Glyph key="glyph" width={bar.paint.iconSize} height={bar.paint.iconSize} fill={color} />
|
|
86
87
|
);
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -6,6 +6,7 @@ import { formatCompactNumber } from '../locale/format-number';
|
|
|
6
6
|
import { useBloomLocale } from '../locale/context';
|
|
7
7
|
import { interactiveWebCss, useInteractiveWebCss } from '../styles/interactive-web-css';
|
|
8
8
|
import { useTheme } from '../theme/use-theme';
|
|
9
|
+
import { useBloomAppearance } from '../appearance/context';
|
|
9
10
|
import { ENGAGEMENT_ACTION_SELECTOR } from './constants';
|
|
10
11
|
import { EngagementBarContext, type EngagementBarContextValue } from './context';
|
|
11
12
|
import { WASH_VAR, resolveEngagementPaint } from './paint';
|
|
@@ -33,8 +34,8 @@ ${ENGAGEMENT_ACTION_SELECTOR} { transition: none; }
|
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
/**
|
|
36
|
-
* A
|
|
37
|
-
*
|
|
37
|
+
* A row or media rail of `EngagementAction`s with an optional trailing group
|
|
38
|
+
* pushed to the far edge.
|
|
38
39
|
*
|
|
39
40
|
* The bar resolves paint, the count format and haptics ONCE and hands them to
|
|
40
41
|
* its actions through one context, because a feed mounts one bar per row and
|
|
@@ -46,28 +47,46 @@ export function EngagementBar({
|
|
|
46
47
|
formatCount,
|
|
47
48
|
locale,
|
|
48
49
|
haptics = true,
|
|
50
|
+
orientation = 'horizontal',
|
|
51
|
+
size: sizeProp,
|
|
52
|
+
tone = 'default',
|
|
53
|
+
showZeroCounts = false,
|
|
49
54
|
style,
|
|
50
55
|
testID,
|
|
51
56
|
}: EngagementBarProps) {
|
|
52
57
|
const theme = useTheme();
|
|
58
|
+
const { size } = useBloomAppearance({ size: sizeProp }, { size: 'md', tone: 'neutral' });
|
|
53
59
|
const impact = useHaptics();
|
|
54
60
|
const resolvedLocale = useBloomLocale(locale);
|
|
55
61
|
useInteractiveWebCss(STYLE_ID, ENGAGEMENT_ACTION_CSS);
|
|
56
62
|
|
|
57
63
|
const value = useMemo<EngagementBarContextValue>(
|
|
58
64
|
() => ({
|
|
59
|
-
paint: resolveEngagementPaint(theme.colors),
|
|
65
|
+
paint: resolveEngagementPaint(theme.colors, { orientation, size, tone }),
|
|
66
|
+
showZeroCounts,
|
|
60
67
|
formatCount: formatCount ?? ((count) => formatCompactNumber(count, resolvedLocale)),
|
|
61
68
|
haptic: haptics ? impact : () => undefined,
|
|
62
69
|
}),
|
|
63
|
-
[
|
|
70
|
+
[
|
|
71
|
+
theme.colors,
|
|
72
|
+
formatCount,
|
|
73
|
+
resolvedLocale,
|
|
74
|
+
haptics,
|
|
75
|
+
impact,
|
|
76
|
+
orientation,
|
|
77
|
+
size,
|
|
78
|
+
tone,
|
|
79
|
+
showZeroCounts,
|
|
80
|
+
],
|
|
64
81
|
);
|
|
65
82
|
|
|
66
83
|
return (
|
|
67
84
|
<EngagementBarContext.Provider value={value}>
|
|
68
85
|
<View style={[value.paint.bar, style]} testID={testID}>
|
|
69
86
|
{children}
|
|
70
|
-
{trailing ?
|
|
87
|
+
{trailing ? (
|
|
88
|
+
<View style={orientation === 'vertical' ? TRAILING_VERTICAL : TRAILING}>{trailing}</View>
|
|
89
|
+
) : null}
|
|
71
90
|
</View>
|
|
72
91
|
</EngagementBarContext.Provider>
|
|
73
92
|
);
|
|
@@ -80,3 +99,9 @@ const TRAILING = {
|
|
|
80
99
|
alignItems: 'center',
|
|
81
100
|
justifyContent: 'flex-end',
|
|
82
101
|
} as const;
|
|
102
|
+
const TRAILING_VERTICAL = {
|
|
103
|
+
flexDirection: 'column',
|
|
104
|
+
alignItems: 'center',
|
|
105
|
+
marginTop: 'auto',
|
|
106
|
+
gap: 8,
|
|
107
|
+
} as const;
|
|
@@ -47,10 +47,12 @@ const BURST = { duration: POP_MS, easing: EASE_OUT, reduceMotion: ReduceMotion.S
|
|
|
47
47
|
export function EngagementPop({
|
|
48
48
|
icon: Icon,
|
|
49
49
|
color,
|
|
50
|
+
size = ENGAGEMENT_ICON_SIZE,
|
|
50
51
|
onDone,
|
|
51
52
|
}: {
|
|
52
53
|
icon: BloomIconComponent;
|
|
53
54
|
color: string;
|
|
55
|
+
size?: number;
|
|
54
56
|
onDone?: EngagementMotionDone;
|
|
55
57
|
}) {
|
|
56
58
|
const scale = useSharedValue(1);
|
|
@@ -81,10 +83,16 @@ export function EngagementPop({
|
|
|
81
83
|
);
|
|
82
84
|
|
|
83
85
|
return (
|
|
84
|
-
<View style={BOX}>
|
|
85
|
-
<Animated.View
|
|
86
|
+
<View style={[BOX, { width: size, height: size }]}>
|
|
87
|
+
<Animated.View
|
|
88
|
+
style={[
|
|
89
|
+
RING,
|
|
90
|
+
{ width: size, height: size, borderRadius: size / 2, borderColor: color },
|
|
91
|
+
ringStyle,
|
|
92
|
+
]}
|
|
93
|
+
/>
|
|
86
94
|
<Animated.View style={glyphStyle}>
|
|
87
|
-
<Icon width={
|
|
95
|
+
<Icon width={size} height={size} fill={color} />
|
|
88
96
|
</Animated.View>
|
|
89
97
|
</View>
|
|
90
98
|
);
|
|
@@ -6,8 +6,15 @@ import { borderRadius, fontSize } from '../styles/tokens';
|
|
|
6
6
|
import { IS_WEB } from '../styles/platform';
|
|
7
7
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
8
8
|
import { SANS_FONT_FAMILY } from '../text-field/shared';
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import {
|
|
10
|
+
ENGAGEMENT_COUNT_GAP,
|
|
11
|
+
ENGAGEMENT_PAD_X,
|
|
12
|
+
ENGAGEMENT_PAD_Y,
|
|
13
|
+
ENGAGEMENT_ICON_SIZE,
|
|
14
|
+
ENGAGEMENT_SPINNER_SIZE,
|
|
15
|
+
} from './constants';
|
|
16
|
+
import type { EngagementBarProps, EngagementTone } from './types';
|
|
17
|
+
import type { BloomSize } from '../appearance/types';
|
|
11
18
|
|
|
12
19
|
const TONES: readonly EngagementTone[] = [
|
|
13
20
|
'primary',
|
|
@@ -39,6 +46,8 @@ export interface EngagementTonePaint {
|
|
|
39
46
|
* action reads one context and allocates no style of its own.
|
|
40
47
|
*/
|
|
41
48
|
export interface EngagementPaint {
|
|
49
|
+
iconSize: number;
|
|
50
|
+
spinnerSize: number;
|
|
42
51
|
/** Glyph and count colour at rest. */
|
|
43
52
|
restColor: string;
|
|
44
53
|
restCount: TextStyle;
|
|
@@ -64,31 +73,69 @@ const COUNT_BASE: TextStyle = {
|
|
|
64
73
|
fontVariant: ['tabular-nums'],
|
|
65
74
|
};
|
|
66
75
|
|
|
67
|
-
|
|
76
|
+
const GEOMETRY: Record<BloomSize, { iconSize: number; spinnerSize: number; countSize: number }> = {
|
|
77
|
+
xs: { iconSize: 16, spinnerSize: 12, countSize: fontSize.xs },
|
|
78
|
+
sm: { iconSize: 18, spinnerSize: 14, countSize: 12 },
|
|
79
|
+
md: {
|
|
80
|
+
iconSize: ENGAGEMENT_ICON_SIZE,
|
|
81
|
+
spinnerSize: ENGAGEMENT_SPINNER_SIZE,
|
|
82
|
+
countSize: fontSize.sm,
|
|
83
|
+
},
|
|
84
|
+
lg: { iconSize: 28, spinnerSize: 24, countSize: fontSize.sm },
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export function resolveEngagementPaint(
|
|
88
|
+
colors: ThemeColors,
|
|
89
|
+
{
|
|
90
|
+
orientation = 'horizontal',
|
|
91
|
+
size = 'md',
|
|
92
|
+
tone: surface = 'default',
|
|
93
|
+
}: Pick<EngagementBarProps, 'orientation' | 'size' | 'tone'> = {},
|
|
94
|
+
): EngagementPaint {
|
|
95
|
+
const vertical = orientation === 'vertical';
|
|
96
|
+
const onImage = surface === 'onImage';
|
|
97
|
+
const geometry = GEOMETRY[size];
|
|
98
|
+
const actionBase = vertical
|
|
99
|
+
? {
|
|
100
|
+
...ACTION_BASE,
|
|
101
|
+
flexDirection: 'column' as const,
|
|
102
|
+
minWidth: 44,
|
|
103
|
+
minHeight: 44,
|
|
104
|
+
paddingTop: 4,
|
|
105
|
+
paddingBottom: 4,
|
|
106
|
+
}
|
|
107
|
+
: ACTION_BASE;
|
|
108
|
+
const countBase: TextStyle = { ...COUNT_BASE, fontSize: geometry.countSize };
|
|
109
|
+
const restColor = onImage ? '#FFFFFF' : colors.textSecondary;
|
|
68
110
|
const tones = {} as Record<EngagementTone, EngagementTonePaint>;
|
|
69
111
|
for (const tone of TONES) {
|
|
70
112
|
const color = resolveAccentColors(colors, tone, 'outlined').foreground;
|
|
71
|
-
const wash =
|
|
72
|
-
|
|
73
|
-
|
|
113
|
+
const wash = onImage
|
|
114
|
+
? 'rgba(255,255,255,0.16)'
|
|
115
|
+
: resolveAccentColors(colors, tone, 'subtle').background;
|
|
116
|
+
const webRest = { ...actionBase, [WASH_VAR]: wash } as WebCssStyle;
|
|
117
|
+
const rest: ViewStyle = IS_WEB ? webRest : actionBase;
|
|
74
118
|
tones[tone] = {
|
|
75
119
|
color,
|
|
76
120
|
rest,
|
|
77
121
|
pressed: { ...rest, backgroundColor: wash },
|
|
78
|
-
activeCount: { ...
|
|
122
|
+
activeCount: { ...countBase, color, fontWeight: '600' },
|
|
79
123
|
};
|
|
80
124
|
}
|
|
81
125
|
const neutral = resolveAccentColors(colors, 'default', 'subtle');
|
|
82
126
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
127
|
+
iconSize: geometry.iconSize,
|
|
128
|
+
spinnerSize: geometry.spinnerSize,
|
|
129
|
+
restColor,
|
|
130
|
+
restCount: { ...countBase, color: restColor },
|
|
85
131
|
tones,
|
|
86
132
|
bar: {
|
|
87
|
-
flexDirection: 'row',
|
|
133
|
+
flexDirection: vertical ? 'column' : 'row',
|
|
88
134
|
alignItems: 'center',
|
|
89
|
-
marginLeft: -ENGAGEMENT_PAD_X,
|
|
90
|
-
marginRight: -ENGAGEMENT_PAD_X,
|
|
91
|
-
...(
|
|
135
|
+
marginLeft: vertical ? 0 : -ENGAGEMENT_PAD_X,
|
|
136
|
+
marginRight: vertical ? 0 : -ENGAGEMENT_PAD_X,
|
|
137
|
+
...(vertical ? { gap: 8 } : null),
|
|
138
|
+
...(IS_WEB ? { [RING_VAR]: onImage ? '#FFFFFF' : colors.primary } : null),
|
|
92
139
|
},
|
|
93
140
|
// Gives the bar's bleed back: the pill's own edge, not its first glyph,
|
|
94
141
|
// lines up with the content edge.
|