@oxy.so/bloom 23.1.0 → 23.3.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/NOTICE +1 -2
- package/README.md +1 -1
- package/docs/adoption-matrix.mdx +1 -2
- package/docs/bloom-language-codemod.mdx +4 -2
- package/docs/bloom-language-for-agents.mdx +1 -0
- package/docs/bloom-language.mdx +9 -1
- package/docs/page-header.mdx +3 -3
- package/docs/public-parts.mdx +2 -5
- package/docs/semantic-composition.mdx +2 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/verification.mdx +1 -1
- package/docs/zoomable-media-gallery.mdx +33 -3
- package/lib/commonjs/agent-chat/shared.js +1 -3
- package/lib/commonjs/agent-chat/shared.js.map +1 -1
- package/lib/commonjs/agent-progress/AgentProgressPlan.js +1 -2
- package/lib/commonjs/agent-progress/AgentProgressPlan.js.map +1 -1
- package/lib/commonjs/ai-chat/AiChatGalleryPanelBase.js +9 -9
- package/lib/commonjs/ai-chat/AiChatGalleryPanelBase.js.map +1 -1
- package/lib/commonjs/ai-chat/AiChatImageGenerationBase.js +6 -6
- package/lib/commonjs/ai-chat/AiChatImageGenerationBase.js.map +1 -1
- package/lib/commonjs/app-shell/use-shell-viewport.js +0 -11
- package/lib/commonjs/app-shell/use-shell-viewport.js.map +1 -1
- package/lib/commonjs/avatar/Avatar.js +37 -18
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/avatar/LiveBadge.js +6 -1
- package/lib/commonjs/avatar/LiveBadge.js.map +1 -1
- package/lib/commonjs/avatar-flight/create-avatar-flight-layer.js +5 -5
- package/lib/commonjs/avatar-flight/create-avatar-flight-layer.js.map +1 -1
- package/lib/commonjs/button/shared.js +0 -7
- package/lib/commonjs/button/shared.js.map +1 -1
- package/lib/commonjs/canvas/CanvasPanelBase.js +2 -2
- package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/commonjs/card/SelectionCard.js +11 -11
- package/lib/commonjs/card/SelectionCard.js.map +1 -1
- package/lib/commonjs/chat-composer/shared.js +0 -7
- package/lib/commonjs/chat-composer/shared.js.map +1 -1
- package/lib/commonjs/chat-list/shared.js +1 -8
- package/lib/commonjs/chat-list/shared.js.map +1 -1
- package/lib/commonjs/chip/Chip.js +2 -2
- package/lib/commonjs/chip/Chip.js.map +1 -1
- package/lib/commonjs/composer-panel/ModelPickerBase.js +2 -1
- package/lib/commonjs/composer-panel/ModelPickerBase.js.map +1 -1
- package/lib/commonjs/composer-panel/shared.js +0 -7
- package/lib/commonjs/composer-panel/shared.js.map +1 -1
- package/lib/commonjs/content-panel/ContentPanel.web.js +12 -35
- package/lib/commonjs/content-panel/ContentPanel.web.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +1 -2
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialogMotion.js +1 -2
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -1
- package/lib/commonjs/floating/FloatingPanel.js +3 -3
- package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
- package/lib/commonjs/floating/TriggerSlot.js +2 -2
- package/lib/commonjs/floating/TriggerSlot.js.map +1 -1
- package/lib/commonjs/floating/constants.js +1 -1
- package/lib/commonjs/floating/menu-swatch-row.js +2 -2
- package/lib/commonjs/floating/menu-swatch-row.js.map +1 -1
- package/lib/commonjs/floating/shared.js +2 -2
- package/lib/commonjs/floating/shared.js.map +1 -1
- package/lib/commonjs/image/BloomImage.js +4 -0
- package/lib/commonjs/image/BloomImage.js.map +1 -1
- package/lib/commonjs/image/expo-image-module.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +21 -5
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/commonjs/lyrics/shared.js +0 -12
- package/lib/commonjs/lyrics/shared.js.map +1 -1
- package/lib/commonjs/mail-list/shared.js +1 -11
- package/lib/commonjs/mail-list/shared.js.map +1 -1
- package/lib/commonjs/media-card/shared.js +0 -12
- package/lib/commonjs/media-card/shared.js.map +1 -1
- package/lib/commonjs/media-flight/MediaSurface.js +34 -12
- package/lib/commonjs/media-flight/MediaSurface.js.map +1 -1
- package/lib/commonjs/media-header/shared.js +0 -12
- package/lib/commonjs/media-header/shared.js.map +1 -1
- package/lib/commonjs/media-player/shared.js +0 -12
- package/lib/commonjs/media-player/shared.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/Marketplace.js +3 -3
- package/lib/commonjs/multi-agent-chat/Marketplace.js.map +1 -1
- package/lib/commonjs/music-library/shared.js +0 -12
- package/lib/commonjs/music-library/shared.js.map +1 -1
- package/lib/commonjs/page-header/EdgeScrim.js +19 -16
- package/lib/commonjs/page-header/EdgeScrim.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +10 -2
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/commonjs/property-insights/shared.js +1 -14
- package/lib/commonjs/property-insights/shared.js.map +1 -1
- package/lib/commonjs/radio/RadioHost.js +2 -2
- package/lib/commonjs/radio/RadioHost.js.map +1 -1
- package/lib/commonjs/select/Select.js +2 -2
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/select/Select.web.js +2 -2
- package/lib/commonjs/select/Select.web.js.map +1 -1
- package/lib/commonjs/select/shared.js +2 -2
- package/lib/commonjs/select/shared.js.map +1 -1
- package/lib/commonjs/shapes/Image.js +11 -3
- package/lib/commonjs/shapes/Image.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarItem.js +2 -2
- package/lib/commonjs/sidebar/SidebarItem.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarOnboardingCard.js +2 -2
- package/lib/commonjs/sidebar/SidebarOnboardingCard.js.map +1 -1
- package/lib/commonjs/sidebar/parts.js +0 -50
- package/lib/commonjs/sidebar/parts.js.map +1 -1
- package/lib/commonjs/stay-filters/EnergyRatingFilter.js +0 -6
- package/lib/commonjs/stay-filters/EnergyRatingFilter.js.map +1 -1
- package/lib/commonjs/styles/aria-hosts.js +20 -0
- package/lib/commonjs/styles/aria-hosts.js.map +1 -0
- package/lib/commonjs/surface/Surface.js +8 -2
- package/lib/commonjs/surface/Surface.js.map +1 -1
- package/lib/commonjs/surface/Surface.web.js +1 -2
- package/lib/commonjs/surface/Surface.web.js.map +1 -1
- package/lib/commonjs/surface/SurfacePaint.js +1 -2
- package/lib/commonjs/surface/SurfacePaint.js.map +1 -1
- package/lib/commonjs/toast/animations.js +1 -2
- package/lib/commonjs/toast/animations.js.map +1 -1
- package/lib/commonjs/typography/TypographyScope.js +0 -6
- package/lib/commonjs/typography/TypographyScope.js.map +1 -1
- package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.js +255 -258
- package/lib/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.js.map +1 -1
- package/lib/module/agent-chat/shared.js +0 -2
- package/lib/module/agent-chat/shared.js.map +1 -1
- package/lib/module/agent-progress/AgentProgressPlan.js +1 -2
- package/lib/module/agent-progress/AgentProgressPlan.js.map +1 -1
- package/lib/module/ai-chat/AiChatGalleryPanelBase.js +1 -1
- package/lib/module/ai-chat/AiChatGalleryPanelBase.js.map +1 -1
- package/lib/module/ai-chat/AiChatImageGenerationBase.js +1 -1
- package/lib/module/ai-chat/AiChatImageGenerationBase.js.map +1 -1
- package/lib/module/app-shell/use-shell-viewport.js +1 -11
- package/lib/module/app-shell/use-shell-viewport.js.map +1 -1
- package/lib/module/avatar/Avatar.js +37 -18
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/avatar/LiveBadge.js +6 -1
- package/lib/module/avatar/LiveBadge.js.map +1 -1
- package/lib/module/avatar-flight/create-avatar-flight-layer.js +6 -6
- package/lib/module/avatar-flight/create-avatar-flight-layer.js.map +1 -1
- package/lib/module/button/shared.js +0 -6
- package/lib/module/button/shared.js.map +1 -1
- package/lib/module/canvas/CanvasPanelBase.js +2 -2
- package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/module/card/SelectionCard.js +1 -1
- package/lib/module/card/SelectionCard.js.map +1 -1
- package/lib/module/chat-composer/shared.js +1 -1
- package/lib/module/chat-composer/shared.js.map +1 -1
- package/lib/module/chat-list/shared.js +0 -7
- package/lib/module/chat-list/shared.js.map +1 -1
- package/lib/module/chip/Chip.js +2 -2
- package/lib/module/chip/Chip.js.map +1 -1
- package/lib/module/composer-panel/ModelPickerBase.js +2 -1
- package/lib/module/composer-panel/ModelPickerBase.js.map +1 -1
- package/lib/module/composer-panel/shared.js +0 -1
- package/lib/module/composer-panel/shared.js.map +1 -1
- package/lib/module/content-panel/ContentPanel.web.js +12 -35
- package/lib/module/content-panel/ContentPanel.web.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +1 -2
- package/lib/module/cover-header/CoverHeader.js.map +1 -1
- package/lib/module/dialog/DetailDialogMotion.js +2 -3
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -1
- package/lib/module/floating/FloatingPanel.js +3 -3
- package/lib/module/floating/FloatingPanel.js.map +1 -1
- package/lib/module/floating/TriggerSlot.js +2 -2
- package/lib/module/floating/TriggerSlot.js.map +1 -1
- package/lib/module/floating/constants.js +1 -1
- package/lib/module/floating/menu-swatch-row.js +2 -2
- package/lib/module/floating/menu-swatch-row.js.map +1 -1
- package/lib/module/floating/shared.js +2 -2
- package/lib/module/floating/shared.js.map +1 -1
- package/lib/module/image/BloomImage.js +4 -0
- package/lib/module/image/BloomImage.js.map +1 -1
- package/lib/module/image/expo-image-module.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +21 -5
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/lyrics/shared.js +1 -2
- package/lib/module/lyrics/shared.js.map +1 -1
- package/lib/module/mail-list/shared.js +0 -9
- package/lib/module/mail-list/shared.js.map +1 -1
- package/lib/module/media-card/shared.js +1 -2
- package/lib/module/media-card/shared.js.map +1 -1
- package/lib/module/media-flight/MediaSurface.js +34 -12
- package/lib/module/media-flight/MediaSurface.js.map +1 -1
- package/lib/module/media-header/shared.js +1 -2
- package/lib/module/media-header/shared.js.map +1 -1
- package/lib/module/media-player/shared.js +1 -2
- package/lib/module/media-player/shared.js.map +1 -1
- package/lib/module/multi-agent-chat/Marketplace.js +3 -3
- package/lib/module/multi-agent-chat/Marketplace.js.map +1 -1
- package/lib/module/music-library/shared.js +0 -1
- package/lib/module/music-library/shared.js.map +1 -1
- package/lib/module/page-header/EdgeScrim.js +19 -16
- package/lib/module/page-header/EdgeScrim.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +11 -3
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/module/property-insights/shared.js +1 -2
- package/lib/module/property-insights/shared.js.map +1 -1
- package/lib/module/radio/RadioHost.js +2 -2
- package/lib/module/radio/RadioHost.js.map +1 -1
- package/lib/module/select/Select.js +2 -2
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/select/Select.web.js +2 -2
- package/lib/module/select/Select.web.js.map +1 -1
- package/lib/module/select/shared.js +2 -2
- package/lib/module/select/shared.js.map +1 -1
- package/lib/module/shapes/Image.js +11 -3
- package/lib/module/shapes/Image.js.map +1 -1
- package/lib/module/sidebar/SidebarItem.js +2 -2
- package/lib/module/sidebar/SidebarItem.js.map +1 -1
- package/lib/module/sidebar/SidebarOnboardingCard.js +2 -2
- package/lib/module/sidebar/SidebarOnboardingCard.js.map +1 -1
- package/lib/module/sidebar/parts.js +3 -52
- package/lib/module/sidebar/parts.js.map +1 -1
- package/lib/module/stay-filters/EnergyRatingFilter.js +0 -1
- package/lib/module/stay-filters/EnergyRatingFilter.js.map +1 -1
- package/lib/module/styles/aria-hosts.js +16 -0
- package/lib/module/styles/aria-hosts.js.map +1 -0
- package/lib/module/surface/Surface.js +11 -5
- package/lib/module/surface/Surface.js.map +1 -1
- package/lib/module/surface/Surface.web.js +2 -3
- package/lib/module/surface/Surface.web.js.map +1 -1
- package/lib/module/surface/SurfacePaint.js +1 -2
- package/lib/module/surface/SurfacePaint.js.map +1 -1
- package/lib/module/toast/animations.js +0 -1
- package/lib/module/toast/animations.js.map +1 -1
- package/lib/module/typography/TypographyScope.js +0 -5
- package/lib/module/typography/TypographyScope.js.map +1 -1
- package/lib/module/zoomable-media-gallery/ZoomableMediaGalleryBase.js +256 -259
- package/lib/module/zoomable-media-gallery/ZoomableMediaGalleryBase.js.map +1 -1
- package/lib/typescript/commonjs/agent-chat/shared.d.ts +0 -2
- package/lib/typescript/commonjs/agent-chat/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-progress/AgentProgressPlan.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-shell-viewport.d.ts +0 -1
- package/lib/typescript/commonjs/app-shell/use-shell-viewport.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/LiveBadge.d.ts +6 -2
- package/lib/typescript/commonjs/avatar/LiveBadge.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/shared.d.ts +0 -2
- package/lib/typescript/commonjs/button/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/types.d.ts +1 -1
- package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-composer/shared.d.ts +0 -1
- package/lib/typescript/commonjs/chat-composer/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/chat-list/shared.d.ts +0 -9
- package/lib/typescript/commonjs/chat-list/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/composer-panel/shared.d.ts +0 -1
- package/lib/typescript/commonjs/composer-panel/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/content-panel/ContentPanel.web.d.ts +9 -11
- package/lib/typescript/commonjs/content-panel/ContentPanel.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/cover-header/CoverHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/constants.d.ts +1 -1
- package/lib/typescript/commonjs/floating/shared.d.ts +1 -1
- package/lib/typescript/commonjs/floating/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/types.d.ts +2 -2
- package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/BloomImage.d.ts +1 -1
- package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/expo-image-module.d.ts +3 -1
- package/lib/typescript/commonjs/image/expo-image-module.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/index.d.ts +1 -1
- package/lib/typescript/commonjs/image/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/types.d.ts +18 -0
- package/lib/typescript/commonjs/image/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/LinkPreviewCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/link-preview/types.d.ts +7 -0
- package/lib/typescript/commonjs/link-preview/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/lyrics/shared.d.ts +0 -2
- package/lib/typescript/commonjs/lyrics/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/mail-list/shared.d.ts +0 -9
- package/lib/typescript/commonjs/mail-list/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-card/shared.d.ts +0 -2
- package/lib/typescript/commonjs/media-card/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-flight/MediaSurface.d.ts +10 -1
- package/lib/typescript/commonjs/media-flight/MediaSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-header/shared.d.ts +0 -2
- package/lib/typescript/commonjs/media-header/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-header/types.d.ts +1 -1
- package/lib/typescript/commonjs/media-header/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-player/PlayerIconButton.d.ts +1 -1
- package/lib/typescript/commonjs/media-player/PlayerIconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/media-player/shared.d.ts +0 -2
- package/lib/typescript/commonjs/media-player/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/music-library/shared.d.ts +0 -2
- package/lib/typescript/commonjs/music-library/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts +19 -16
- package/lib/typescript/commonjs/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/property-insights/shared.d.ts +0 -2
- package/lib/typescript/commonjs/property-insights/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts +1 -1
- package/lib/typescript/commonjs/queue-panel/QueueIconButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/shapes/Image.d.ts +1 -1
- package/lib/typescript/commonjs/shapes/Image.d.ts.map +1 -1
- package/lib/typescript/commonjs/shapes/types.d.ts +10 -0
- package/lib/typescript/commonjs/shapes/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/parts.d.ts +0 -6
- package/lib/typescript/commonjs/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-filters/EnergyRatingFilter.d.ts +1 -2
- package/lib/typescript/commonjs/stay-filters/EnergyRatingFilter.d.ts.map +1 -1
- package/lib/typescript/commonjs/styles/aria-hosts.d.ts +49 -0
- package/lib/typescript/commonjs/styles/aria-hosts.d.ts.map +1 -0
- package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/Surface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/SurfacePaint.d.ts.map +1 -1
- package/lib/typescript/commonjs/toast/animations.d.ts +0 -1
- package/lib/typescript/commonjs/toast/animations.d.ts.map +1 -1
- package/lib/typescript/commonjs/track-list/parts.d.ts +1 -1
- package/lib/typescript/commonjs/track-list/parts.d.ts.map +1 -1
- package/lib/typescript/commonjs/typography/TypographyScope.d.ts +0 -4
- package/lib/typescript/commonjs/typography/TypographyScope.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-media-gallery/ZoomableMediaGalleryBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts +11 -0
- package/lib/typescript/commonjs/zoomable-media-gallery/types.d.ts.map +1 -1
- package/lib/typescript/module/agent-chat/shared.d.ts +0 -2
- package/lib/typescript/module/agent-chat/shared.d.ts.map +1 -1
- package/lib/typescript/module/agent-progress/AgentProgressPlan.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-shell-viewport.d.ts +0 -1
- package/lib/typescript/module/app-shell/use-shell-viewport.d.ts.map +1 -1
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/avatar/LiveBadge.d.ts +6 -2
- package/lib/typescript/module/avatar/LiveBadge.d.ts.map +1 -1
- package/lib/typescript/module/button/shared.d.ts +0 -2
- package/lib/typescript/module/button/shared.d.ts.map +1 -1
- package/lib/typescript/module/button/types.d.ts +1 -1
- package/lib/typescript/module/button/types.d.ts.map +1 -1
- package/lib/typescript/module/chat-composer/shared.d.ts +0 -1
- package/lib/typescript/module/chat-composer/shared.d.ts.map +1 -1
- package/lib/typescript/module/chat-list/shared.d.ts +0 -9
- package/lib/typescript/module/chat-list/shared.d.ts.map +1 -1
- package/lib/typescript/module/composer-panel/shared.d.ts +0 -1
- package/lib/typescript/module/composer-panel/shared.d.ts.map +1 -1
- package/lib/typescript/module/content-panel/ContentPanel.web.d.ts +9 -11
- package/lib/typescript/module/content-panel/ContentPanel.web.d.ts.map +1 -1
- package/lib/typescript/module/cover-header/CoverHeader.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -1
- package/lib/typescript/module/floating/constants.d.ts +1 -1
- package/lib/typescript/module/floating/shared.d.ts +1 -1
- package/lib/typescript/module/floating/shared.d.ts.map +1 -1
- package/lib/typescript/module/floating/types.d.ts +2 -2
- package/lib/typescript/module/floating/types.d.ts.map +1 -1
- package/lib/typescript/module/image/BloomImage.d.ts +1 -1
- package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/module/image/expo-image-module.d.ts +3 -1
- package/lib/typescript/module/image/expo-image-module.d.ts.map +1 -1
- package/lib/typescript/module/image/index.d.ts +1 -1
- package/lib/typescript/module/image/index.d.ts.map +1 -1
- package/lib/typescript/module/image/types.d.ts +18 -0
- package/lib/typescript/module/image/types.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/LinkPreviewCard.d.ts.map +1 -1
- package/lib/typescript/module/link-preview/types.d.ts +7 -0
- package/lib/typescript/module/link-preview/types.d.ts.map +1 -1
- package/lib/typescript/module/lyrics/shared.d.ts +0 -2
- package/lib/typescript/module/lyrics/shared.d.ts.map +1 -1
- package/lib/typescript/module/mail-list/shared.d.ts +0 -9
- package/lib/typescript/module/mail-list/shared.d.ts.map +1 -1
- package/lib/typescript/module/media-card/shared.d.ts +0 -2
- package/lib/typescript/module/media-card/shared.d.ts.map +1 -1
- package/lib/typescript/module/media-flight/MediaSurface.d.ts +10 -1
- package/lib/typescript/module/media-flight/MediaSurface.d.ts.map +1 -1
- package/lib/typescript/module/media-header/shared.d.ts +0 -2
- package/lib/typescript/module/media-header/shared.d.ts.map +1 -1
- package/lib/typescript/module/media-header/types.d.ts +1 -1
- package/lib/typescript/module/media-header/types.d.ts.map +1 -1
- package/lib/typescript/module/media-player/PlayerIconButton.d.ts +1 -1
- package/lib/typescript/module/media-player/PlayerIconButton.d.ts.map +1 -1
- package/lib/typescript/module/media-player/shared.d.ts +0 -2
- package/lib/typescript/module/media-player/shared.d.ts.map +1 -1
- package/lib/typescript/module/music-library/shared.d.ts +0 -2
- package/lib/typescript/module/music-library/shared.d.ts.map +1 -1
- package/lib/typescript/module/page-header/EdgeScrim.d.ts +19 -16
- package/lib/typescript/module/page-header/EdgeScrim.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/property-insights/shared.d.ts +0 -2
- package/lib/typescript/module/property-insights/shared.d.ts.map +1 -1
- package/lib/typescript/module/queue-panel/QueueIconButton.d.ts +1 -1
- package/lib/typescript/module/queue-panel/QueueIconButton.d.ts.map +1 -1
- package/lib/typescript/module/shapes/Image.d.ts +1 -1
- package/lib/typescript/module/shapes/Image.d.ts.map +1 -1
- package/lib/typescript/module/shapes/types.d.ts +10 -0
- package/lib/typescript/module/shapes/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/parts.d.ts +0 -6
- package/lib/typescript/module/sidebar/parts.d.ts.map +1 -1
- package/lib/typescript/module/stay-filters/EnergyRatingFilter.d.ts +1 -2
- package/lib/typescript/module/stay-filters/EnergyRatingFilter.d.ts.map +1 -1
- package/lib/typescript/module/styles/aria-hosts.d.ts +49 -0
- package/lib/typescript/module/styles/aria-hosts.d.ts.map +1 -0
- package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/surface/Surface.web.d.ts.map +1 -1
- package/lib/typescript/module/surface/SurfacePaint.d.ts.map +1 -1
- package/lib/typescript/module/toast/animations.d.ts +0 -1
- package/lib/typescript/module/toast/animations.d.ts.map +1 -1
- package/lib/typescript/module/track-list/parts.d.ts +1 -1
- package/lib/typescript/module/track-list/parts.d.ts.map +1 -1
- package/lib/typescript/module/typography/TypographyScope.d.ts +0 -4
- package/lib/typescript/module/typography/TypographyScope.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-media-gallery/ZoomableMediaGalleryBase.d.ts.map +1 -1
- package/lib/typescript/module/zoomable-media-gallery/types.d.ts +11 -0
- package/lib/typescript/module/zoomable-media-gallery/types.d.ts.map +1 -1
- package/package.json +1 -18
- package/src/__tests__/support/held-animations.ts +33 -0
- package/src/__tests__/support/public-part-classifications.json +0 -3
- package/src/agent-chat/shared.ts +0 -2
- package/src/agent-progress/AgentProgressPlan.tsx +2 -3
- package/src/ai-chat/AiChatGalleryPanelBase.tsx +1 -1
- package/src/ai-chat/AiChatImageGenerationBase.tsx +1 -1
- package/src/app-shell/use-shell-viewport.ts +1 -7
- package/src/avatar/Avatar.tsx +44 -16
- package/src/avatar/LiveBadge.tsx +10 -3
- package/src/avatar-flight/create-avatar-flight-layer.tsx +8 -8
- package/src/button/shared.ts +0 -6
- package/src/button/types.ts +1 -1
- package/src/canvas/CanvasPanelBase.tsx +3 -3
- package/src/card/SelectionCard.tsx +1 -1
- package/src/chat-composer/shared.ts +0 -1
- package/src/chat-list/shared.ts +0 -7
- package/src/chip/Chip.tsx +3 -3
- package/src/composer-panel/ModelPickerBase.tsx +1 -1
- package/src/composer-panel/shared.ts +0 -1
- package/src/content-panel/ContentPanel.web.tsx +12 -35
- package/src/cover-header/CoverHeader.tsx +2 -3
- package/src/dialog/DetailDialogMotion.tsx +2 -3
- package/src/floating/FloatingPanel.tsx +3 -3
- package/src/floating/TriggerSlot.tsx +2 -2
- package/src/floating/constants.ts +1 -1
- package/src/floating/menu-swatch-row.tsx +3 -3
- package/src/floating/shared.tsx +3 -3
- package/src/floating/types.ts +2 -2
- package/src/image/BloomImage.tsx +4 -0
- package/src/image/expo-image-module.ts +3 -1
- package/src/image/index.ts +1 -0
- package/src/image/types.ts +19 -0
- package/src/link-preview/LinkPreviewCard.tsx +27 -5
- package/src/link-preview/types.ts +7 -0
- package/src/lyrics/shared.ts +0 -3
- package/src/mail-list/shared.ts +0 -9
- package/src/media-card/shared.ts +1 -9
- package/src/media-flight/MediaSurface.tsx +46 -8
- package/src/media-header/shared.ts +1 -8
- package/src/media-header/types.ts +1 -1
- package/src/media-player/PlayerIconButton.tsx +1 -1
- package/src/media-player/shared.ts +1 -8
- package/src/multi-agent-chat/Marketplace.tsx +5 -5
- package/src/music-library/shared.ts +0 -2
- package/src/page-header/EdgeScrim.tsx +17 -14
- package/src/page-header/PageHeader.tsx +11 -6
- package/src/project-board/ProjectBoardCanvas.tsx +3 -3
- package/src/property-insights/shared.ts +1 -3
- package/src/queue-panel/QueueIconButton.tsx +1 -1
- package/src/radio/RadioHost.tsx +2 -2
- package/src/select/Select.tsx +3 -3
- package/src/select/Select.web.tsx +3 -3
- package/src/select/shared.tsx +3 -3
- package/src/shapes/Image.tsx +18 -2
- package/src/shapes/types.ts +10 -0
- package/src/sidebar/SidebarItem.tsx +2 -2
- package/src/sidebar/SidebarOnboardingCard.tsx +3 -3
- package/src/sidebar/parts.tsx +3 -36
- package/src/stay-filters/EnergyRatingFilter.tsx +0 -2
- package/src/styles/aria-hosts.ts +62 -0
- package/src/surface/Surface.tsx +12 -6
- package/src/surface/Surface.web.tsx +3 -4
- package/src/surface/SurfacePaint.tsx +1 -2
- package/src/toast/animations.ts +0 -1
- package/src/track-list/parts.tsx +1 -1
- package/src/typography/TypographyScope.tsx +0 -5
- package/src/zoomable-media-gallery/ZoomableMediaGalleryBase.tsx +368 -324
- package/src/zoomable-media-gallery/types.ts +11 -0
- package/docs/teleport.mdx +0 -72
- package/lib/commonjs/styles/styled-primitives.js +0 -37
- package/lib/commonjs/styles/styled-primitives.js.map +0 -1
- package/lib/commonjs/teleport/Portal.js +0 -109
- package/lib/commonjs/teleport/Portal.js.map +0 -1
- package/lib/commonjs/teleport/PortalHost.js +0 -75
- package/lib/commonjs/teleport/PortalHost.js.map +0 -1
- package/lib/commonjs/teleport/PortalHostView.js +0 -40
- package/lib/commonjs/teleport/PortalHostView.js.map +0 -1
- package/lib/commonjs/teleport/PortalHostView.native.js +0 -24
- package/lib/commonjs/teleport/PortalHostView.native.js.map +0 -1
- package/lib/commonjs/teleport/PortalProvider.js +0 -57
- package/lib/commonjs/teleport/PortalProvider.js.map +0 -1
- package/lib/commonjs/teleport/PortalProviderView.js +0 -59
- package/lib/commonjs/teleport/PortalProviderView.js.map +0 -1
- package/lib/commonjs/teleport/PortalProviderView.native.js +0 -19
- package/lib/commonjs/teleport/PortalProviderView.native.js.map +0 -1
- package/lib/commonjs/teleport/PortalView.js +0 -83
- package/lib/commonjs/teleport/PortalView.js.map +0 -1
- package/lib/commonjs/teleport/PortalView.native.js +0 -14
- package/lib/commonjs/teleport/PortalView.native.js.map +0 -1
- package/lib/commonjs/teleport/index.js +0 -35
- package/lib/commonjs/teleport/index.js.map +0 -1
- package/lib/commonjs/teleport/portal-manager.js +0 -40
- package/lib/commonjs/teleport/portal-manager.js.map +0 -1
- package/lib/commonjs/teleport/portal-registry.js +0 -24
- package/lib/commonjs/teleport/portal-registry.js.map +0 -1
- package/lib/commonjs/teleport/reducer.js +0 -86
- package/lib/commonjs/teleport/reducer.js.map +0 -1
- package/lib/commonjs/teleport/scroll-view-context/context.js +0 -17
- package/lib/commonjs/teleport/scroll-view-context/context.js.map +0 -1
- package/lib/commonjs/teleport/scroll-view-context/context.native.js +0 -22
- package/lib/commonjs/teleport/scroll-view-context/context.native.js.map +0 -1
- package/lib/commonjs/teleport/scroll-view-context/types.js +0 -2
- package/lib/commonjs/teleport/scroll-view-context/types.js.map +0 -1
- package/lib/commonjs/teleport/specs/PortalHostViewNativeComponent.js +0 -17
- package/lib/commonjs/teleport/specs/PortalHostViewNativeComponent.js.map +0 -1
- package/lib/commonjs/teleport/specs/PortalViewNativeComponent.js +0 -17
- package/lib/commonjs/teleport/specs/PortalViewNativeComponent.js.map +0 -1
- package/lib/commonjs/teleport/teleport-global.d.ts +0 -11
- package/lib/commonjs/teleport/types.js +0 -6
- package/lib/commonjs/teleport/types.js.map +0 -1
- package/lib/commonjs/teleport/use-id.js +0 -24
- package/lib/commonjs/teleport/use-id.js.map +0 -1
- package/lib/commonjs/teleport/use-portal.js +0 -59
- package/lib/commonjs/teleport/use-portal.js.map +0 -1
- package/lib/module/styles/styled-primitives.js +0 -34
- package/lib/module/styles/styled-primitives.js.map +0 -1
- package/lib/module/teleport/Portal.js +0 -103
- package/lib/module/teleport/Portal.js.map +0 -1
- package/lib/module/teleport/PortalHost.js +0 -71
- package/lib/module/teleport/PortalHost.js.map +0 -1
- package/lib/module/teleport/PortalHostView.js +0 -35
- package/lib/module/teleport/PortalHostView.js.map +0 -1
- package/lib/module/teleport/PortalHostView.native.js +0 -18
- package/lib/module/teleport/PortalHostView.native.js.map +0 -1
- package/lib/module/teleport/PortalProvider.js +0 -51
- package/lib/module/teleport/PortalProvider.js.map +0 -1
- package/lib/module/teleport/PortalProviderView.js +0 -54
- package/lib/module/teleport/PortalProviderView.js.map +0 -1
- package/lib/module/teleport/PortalProviderView.native.js +0 -15
- package/lib/module/teleport/PortalProviderView.native.js.map +0 -1
- package/lib/module/teleport/PortalView.js +0 -79
- package/lib/module/teleport/PortalView.js.map +0 -1
- package/lib/module/teleport/PortalView.native.js +0 -10
- package/lib/module/teleport/PortalView.native.js.map +0 -1
- package/lib/module/teleport/index.js +0 -30
- package/lib/module/teleport/index.js.map +0 -1
- package/lib/module/teleport/portal-manager.js +0 -33
- package/lib/module/teleport/portal-manager.js.map +0 -1
- package/lib/module/teleport/portal-registry.js +0 -18
- package/lib/module/teleport/portal-registry.js.map +0 -1
- package/lib/module/teleport/reducer.js +0 -81
- package/lib/module/teleport/reducer.js.map +0 -1
- package/lib/module/teleport/scroll-view-context/context.js +0 -12
- package/lib/module/teleport/scroll-view-context/context.js.map +0 -1
- package/lib/module/teleport/scroll-view-context/context.native.js +0 -18
- package/lib/module/teleport/scroll-view-context/context.native.js.map +0 -1
- package/lib/module/teleport/scroll-view-context/types.js +0 -2
- package/lib/module/teleport/scroll-view-context/types.js.map +0 -1
- package/lib/module/teleport/specs/PortalHostViewNativeComponent.js +0 -13
- package/lib/module/teleport/specs/PortalHostViewNativeComponent.js.map +0 -1
- package/lib/module/teleport/specs/PortalViewNativeComponent.js +0 -13
- package/lib/module/teleport/specs/PortalViewNativeComponent.js.map +0 -1
- package/lib/module/teleport/teleport-global.d.ts +0 -11
- package/lib/module/teleport/types.js +0 -4
- package/lib/module/teleport/types.js.map +0 -1
- package/lib/module/teleport/use-id.js +0 -19
- package/lib/module/teleport/use-id.js.map +0 -1
- package/lib/module/teleport/use-portal.js +0 -55
- package/lib/module/teleport/use-portal.js.map +0 -1
- package/lib/typescript/commonjs/styles/styled-primitives.d.ts +0 -69
- package/lib/typescript/commonjs/styles/styled-primitives.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/Portal.d.ts +0 -48
- package/lib/typescript/commonjs/teleport/Portal.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalHost.d.ts +0 -25
- package/lib/typescript/commonjs/teleport/PortalHost.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalHostView.d.ts +0 -5
- package/lib/typescript/commonjs/teleport/PortalHostView.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalHostView.native.d.ts +0 -4
- package/lib/typescript/commonjs/teleport/PortalHostView.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalProvider.d.ts +0 -23
- package/lib/typescript/commonjs/teleport/PortalProvider.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalProviderView.d.ts +0 -3
- package/lib/typescript/commonjs/teleport/PortalProviderView.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalProviderView.native.d.ts +0 -9
- package/lib/typescript/commonjs/teleport/PortalProviderView.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalView.d.ts +0 -9
- package/lib/typescript/commonjs/teleport/PortalView.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/PortalView.native.d.ts +0 -8
- package/lib/typescript/commonjs/teleport/PortalView.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/index.d.ts +0 -29
- package/lib/typescript/commonjs/teleport/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/portal-manager.d.ts +0 -16
- package/lib/typescript/commonjs/teleport/portal-manager.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/portal-registry.d.ts +0 -10
- package/lib/typescript/commonjs/teleport/portal-registry.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/reducer.d.ts +0 -40
- package/lib/typescript/commonjs/teleport/reducer.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.d.ts +0 -4
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.native.d.ts +0 -13
- package/lib/typescript/commonjs/teleport/scroll-view-context/context.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/scroll-view-context/types.d.ts +0 -10
- package/lib/typescript/commonjs/teleport/scroll-view-context/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/specs/PortalHostViewNativeComponent.d.ts +0 -13
- package/lib/typescript/commonjs/teleport/specs/PortalHostViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/specs/PortalViewNativeComponent.d.ts +0 -14
- package/lib/typescript/commonjs/teleport/specs/PortalViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/types.d.ts +0 -22
- package/lib/typescript/commonjs/teleport/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/use-id.d.ts +0 -2
- package/lib/typescript/commonjs/teleport/use-id.d.ts.map +0 -1
- package/lib/typescript/commonjs/teleport/use-portal.d.ts +0 -35
- package/lib/typescript/commonjs/teleport/use-portal.d.ts.map +0 -1
- package/lib/typescript/module/styles/styled-primitives.d.ts +0 -69
- package/lib/typescript/module/styles/styled-primitives.d.ts.map +0 -1
- package/lib/typescript/module/teleport/Portal.d.ts +0 -48
- package/lib/typescript/module/teleport/Portal.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalHost.d.ts +0 -25
- package/lib/typescript/module/teleport/PortalHost.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalHostView.d.ts +0 -5
- package/lib/typescript/module/teleport/PortalHostView.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalHostView.native.d.ts +0 -4
- package/lib/typescript/module/teleport/PortalHostView.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalProvider.d.ts +0 -23
- package/lib/typescript/module/teleport/PortalProvider.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalProviderView.d.ts +0 -3
- package/lib/typescript/module/teleport/PortalProviderView.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalProviderView.native.d.ts +0 -9
- package/lib/typescript/module/teleport/PortalProviderView.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalView.d.ts +0 -9
- package/lib/typescript/module/teleport/PortalView.d.ts.map +0 -1
- package/lib/typescript/module/teleport/PortalView.native.d.ts +0 -8
- package/lib/typescript/module/teleport/PortalView.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/index.d.ts +0 -29
- package/lib/typescript/module/teleport/index.d.ts.map +0 -1
- package/lib/typescript/module/teleport/portal-manager.d.ts +0 -16
- package/lib/typescript/module/teleport/portal-manager.d.ts.map +0 -1
- package/lib/typescript/module/teleport/portal-registry.d.ts +0 -10
- package/lib/typescript/module/teleport/portal-registry.d.ts.map +0 -1
- package/lib/typescript/module/teleport/reducer.d.ts +0 -40
- package/lib/typescript/module/teleport/reducer.d.ts.map +0 -1
- package/lib/typescript/module/teleport/scroll-view-context/context.d.ts +0 -4
- package/lib/typescript/module/teleport/scroll-view-context/context.d.ts.map +0 -1
- package/lib/typescript/module/teleport/scroll-view-context/context.native.d.ts +0 -13
- package/lib/typescript/module/teleport/scroll-view-context/context.native.d.ts.map +0 -1
- package/lib/typescript/module/teleport/scroll-view-context/types.d.ts +0 -10
- package/lib/typescript/module/teleport/scroll-view-context/types.d.ts.map +0 -1
- package/lib/typescript/module/teleport/specs/PortalHostViewNativeComponent.d.ts +0 -13
- package/lib/typescript/module/teleport/specs/PortalHostViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/teleport/specs/PortalViewNativeComponent.d.ts +0 -14
- package/lib/typescript/module/teleport/specs/PortalViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/module/teleport/types.d.ts +0 -22
- package/lib/typescript/module/teleport/types.d.ts.map +0 -1
- package/lib/typescript/module/teleport/use-id.d.ts +0 -2
- package/lib/typescript/module/teleport/use-id.d.ts.map +0 -1
- package/lib/typescript/module/teleport/use-portal.d.ts +0 -35
- package/lib/typescript/module/teleport/use-portal.d.ts.map +0 -1
- package/src/styles/styled-primitives.ts +0 -87
- package/src/teleport/Portal.tsx +0 -96
- package/src/teleport/PortalHost.tsx +0 -61
- package/src/teleport/PortalHostView.native.tsx +0 -14
- package/src/teleport/PortalHostView.tsx +0 -30
- package/src/teleport/PortalProvider.tsx +0 -51
- package/src/teleport/PortalProviderView.native.tsx +0 -11
- package/src/teleport/PortalProviderView.tsx +0 -54
- package/src/teleport/PortalView.native.tsx +0 -7
- package/src/teleport/PortalView.tsx +0 -83
- package/src/teleport/index.ts +0 -32
- package/src/teleport/portal-manager.tsx +0 -29
- package/src/teleport/portal-registry.ts +0 -24
- package/src/teleport/reducer.ts +0 -93
- package/src/teleport/scroll-view-context/context.native.ts +0 -19
- package/src/teleport/scroll-view-context/context.ts +0 -12
- package/src/teleport/scroll-view-context/types.ts +0 -7
- package/src/teleport/specs/PortalHostViewNativeComponent.ts +0 -15
- package/src/teleport/specs/PortalViewNativeComponent.ts +0 -16
- package/src/teleport/teleport-global.d.ts +0 -11
- package/src/teleport/types.ts +0 -22
- package/src/teleport/use-id.ts +0 -18
- package/src/teleport/use-portal.ts +0 -46
package/src/select/Select.tsx
CHANGED
|
@@ -36,7 +36,7 @@ import { TriggerSlot } from '../floating/TriggerSlot';
|
|
|
36
36
|
import type { DialogControlProps } from '../dialog/types';
|
|
37
37
|
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
38
38
|
|
|
39
|
-
import {
|
|
39
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
40
40
|
import { borderRadius } from '../styles/tokens';
|
|
41
41
|
import { SurfacePaint } from '../surface/SurfacePaint';
|
|
42
42
|
import {
|
|
@@ -558,7 +558,7 @@ export function SelectItem({
|
|
|
558
558
|
const highlighted = !disabled && (focused || pressed || isSelected);
|
|
559
559
|
|
|
560
560
|
return (
|
|
561
|
-
<
|
|
561
|
+
<AriaPressable
|
|
562
562
|
accessibilityRole="radio"
|
|
563
563
|
accessibilityLabel={label}
|
|
564
564
|
// ARIA gives `role="radio"` a checked state, not a selected one. Spelled
|
|
@@ -586,7 +586,7 @@ export function SelectItem({
|
|
|
586
586
|
{leading}
|
|
587
587
|
{children}
|
|
588
588
|
</ItemContext.Provider>
|
|
589
|
-
</
|
|
589
|
+
</AriaPressable>
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
592
|
|
|
@@ -35,7 +35,7 @@ import { ROW_CURSOR } from '../floating/shared';
|
|
|
35
35
|
import { TriggerSlot } from '../floating/TriggerSlot';
|
|
36
36
|
import { useAnchorRect } from '../floating/use-anchor-rect';
|
|
37
37
|
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
38
|
-
import {
|
|
38
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
39
39
|
|
|
40
40
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
41
41
|
import { borderRadius } from '../styles/tokens';
|
|
@@ -662,7 +662,7 @@ export function SelectItem({
|
|
|
662
662
|
const highlighted = !disabled && (hovered || focused || isSelected);
|
|
663
663
|
|
|
664
664
|
return (
|
|
665
|
-
<
|
|
665
|
+
<AriaPressable
|
|
666
666
|
ref={ref}
|
|
667
667
|
role="option"
|
|
668
668
|
{...({ dataSet: { bloomSelectOption: '' } } as Record<string, unknown>)}
|
|
@@ -702,7 +702,7 @@ export function SelectItem({
|
|
|
702
702
|
{leading}
|
|
703
703
|
{children}
|
|
704
704
|
</ItemContext.Provider>
|
|
705
|
-
</
|
|
705
|
+
</AriaPressable>
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
708
|
|
package/src/select/shared.tsx
CHANGED
|
@@ -29,7 +29,7 @@ import { menuType } from '../floating/menu-type';
|
|
|
29
29
|
import { RiCheckLine as CheckIcon } from '../icons/remix/RiCheckLine';
|
|
30
30
|
import { RiArrowDownSLine as ChevronDownIcon } from '../icons/remix/RiArrowDownSLine';
|
|
31
31
|
import { RiArrowUpSLine as ChevronUpIcon } from '../icons/remix/RiArrowUpSLine';
|
|
32
|
-
import {
|
|
32
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
33
33
|
import type {
|
|
34
34
|
SelectGroupProps,
|
|
35
35
|
SelectItemContextValue,
|
|
@@ -250,7 +250,7 @@ function SelectScrollButton({ direction, style }: SelectScrollButtonProps) {
|
|
|
250
250
|
|
|
251
251
|
const Chevron = isUp ? ChevronUpIcon : ChevronDownIcon;
|
|
252
252
|
return (
|
|
253
|
-
<
|
|
253
|
+
<AriaPressable
|
|
254
254
|
accessibilityRole="button"
|
|
255
255
|
accessibilityLabel={isUp ? messages.scrollUp : messages.scrollDown}
|
|
256
256
|
onPress={() => scroll.scrollBy(direction)}
|
|
@@ -260,7 +260,7 @@ function SelectScrollButton({ direction, style }: SelectScrollButtonProps) {
|
|
|
260
260
|
>
|
|
261
261
|
{/* `size-4` — the same 16px glyph the rows use. */}
|
|
262
262
|
<Chevron width={ROW_ICON_SIZE} height={ROW_ICON_SIZE} fill={palette.textSecondary} />
|
|
263
|
-
</
|
|
263
|
+
</AriaPressable>
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
|
package/src/shapes/Image.tsx
CHANGED
|
@@ -9,7 +9,15 @@ import { svgA11yProps } from '../styles/svg-a11y';
|
|
|
9
9
|
import { BloomImage } from '../image';
|
|
10
10
|
|
|
11
11
|
/** Clips an image on every platform. SVG cannot clip arbitrary React Native views. */
|
|
12
|
-
export function Image({
|
|
12
|
+
export function Image({
|
|
13
|
+
shape = 'circle',
|
|
14
|
+
source,
|
|
15
|
+
size,
|
|
16
|
+
alt,
|
|
17
|
+
onError,
|
|
18
|
+
placeholderColor,
|
|
19
|
+
recyclingKey,
|
|
20
|
+
}: ImageProps) {
|
|
13
21
|
const clipId = `${useSvgIdPrefix('bloom-shape-image')}clip`;
|
|
14
22
|
assertSize(size);
|
|
15
23
|
assertImageSource(source);
|
|
@@ -18,11 +26,17 @@ export function Image({ shape = 'circle', source, size, alt, onError }: ImagePro
|
|
|
18
26
|
return (
|
|
19
27
|
<BloomImage
|
|
20
28
|
source={source}
|
|
29
|
+
recyclingKey={recyclingKey}
|
|
21
30
|
accessibilityLabel={alt}
|
|
22
31
|
accessible={alt ? true : undefined}
|
|
23
32
|
onError={onError}
|
|
24
33
|
contentFit="cover"
|
|
25
|
-
style={{
|
|
34
|
+
style={{
|
|
35
|
+
width: size,
|
|
36
|
+
height: size,
|
|
37
|
+
borderRadius: size / 2,
|
|
38
|
+
backgroundColor: placeholderColor,
|
|
39
|
+
}}
|
|
26
40
|
/>
|
|
27
41
|
);
|
|
28
42
|
return (
|
|
@@ -31,6 +45,7 @@ export function Image({ shape = 'circle', source, size, alt, onError }: ImagePro
|
|
|
31
45
|
{onError && (
|
|
32
46
|
<BloomImage
|
|
33
47
|
source={source}
|
|
48
|
+
recyclingKey={recyclingKey}
|
|
34
49
|
accessible={false}
|
|
35
50
|
aria-hidden
|
|
36
51
|
importantForAccessibility="no-hide-descendants"
|
|
@@ -49,6 +64,7 @@ export function Image({ shape = 'circle', source, size, alt, onError }: ImagePro
|
|
|
49
64
|
<Path d={outline.d} />
|
|
50
65
|
</ClipPath>
|
|
51
66
|
</Defs>
|
|
67
|
+
{placeholderColor ? <Path d={outline.d} fill={placeholderColor} /> : null}
|
|
52
68
|
<SvgImage
|
|
53
69
|
href={source}
|
|
54
70
|
width={outline.viewBox}
|
package/src/shapes/types.ts
CHANGED
|
@@ -34,6 +34,16 @@ export interface ImageProps {
|
|
|
34
34
|
* on web).
|
|
35
35
|
*/
|
|
36
36
|
onError?: (info: BloomImageErrorInfo) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Fills the shape until the picture covers it, so a slot whose image is still
|
|
39
|
+
* loading reads as a slot, never as a hole in the layout.
|
|
40
|
+
*/
|
|
41
|
+
placeholderColor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The identity of the picture, for an image a list reuses for another item:
|
|
44
|
+
* when it changes the previous picture is cleared at once. Pass the URI.
|
|
45
|
+
*/
|
|
46
|
+
recyclingKey?: string;
|
|
37
47
|
}
|
|
38
48
|
export type GradientDirection = 'diagonal' | 'horizontal' | 'vertical';
|
|
39
49
|
export interface BorderProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ComponentRef, memo } from 'react';
|
|
2
2
|
import { View, type GestureResponderEvent } from 'react-native';
|
|
3
|
-
import {
|
|
3
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
4
4
|
import Animated, { useAnimatedStyle } from 'react-native-reanimated';
|
|
5
5
|
|
|
6
6
|
import { useBrowserTitle } from '../hooks/use-browser-title';
|
|
@@ -33,7 +33,7 @@ import { displayShortcut } from './shortcuts';
|
|
|
33
33
|
* square's top-end corner instead, so the count survives the collapse. With
|
|
34
34
|
* `href` the row is a link (a real anchor on web).
|
|
35
35
|
*/
|
|
36
|
-
const AnimatedPressable = Animated.createAnimatedComponent(
|
|
36
|
+
const AnimatedPressable = Animated.createAnimatedComponent(AriaPressable);
|
|
37
37
|
|
|
38
38
|
const SidebarItemComponent: React.FC<SidebarItemProps> = ({
|
|
39
39
|
icon: Icon,
|
|
@@ -6,7 +6,7 @@ import { useInteractionState } from '../hooks/use-interaction-state';
|
|
|
6
6
|
import { useDirectionProps } from '../hooks/use-is-rtl';
|
|
7
7
|
import { useCommonMessages } from '../locale/common-messages';
|
|
8
8
|
import { IS_WEB } from '../styles/platform';
|
|
9
|
-
import {
|
|
9
|
+
import { AriaPressable } from '../styles/aria-hosts';
|
|
10
10
|
import { surfaceFillOn, surfaceTextOn, useSurfaceFill } from '../styles/surface-levels';
|
|
11
11
|
import { DISABLED_OPACITY } from '../styles/tokens';
|
|
12
12
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
@@ -76,7 +76,7 @@ function OnboardingRow({
|
|
|
76
76
|
</>
|
|
77
77
|
);
|
|
78
78
|
return onPress ? (
|
|
79
|
-
<
|
|
79
|
+
<AriaPressable
|
|
80
80
|
{...webHook('inset')}
|
|
81
81
|
role="button"
|
|
82
82
|
accessible
|
|
@@ -89,7 +89,7 @@ function OnboardingRow({
|
|
|
89
89
|
style={style}
|
|
90
90
|
>
|
|
91
91
|
{content}
|
|
92
|
-
</
|
|
92
|
+
</AriaPressable>
|
|
93
93
|
) : (
|
|
94
94
|
<View style={style}>{content}</View>
|
|
95
95
|
);
|
package/src/sidebar/parts.tsx
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { createContext, useContext, useEffect,
|
|
2
|
+
import { createContext, useContext, useEffect, useState } from 'react';
|
|
3
3
|
import type { ViewRef } from '../styles/native-refs';
|
|
4
|
-
import {
|
|
5
|
-
StyleSheet,
|
|
6
|
-
View,
|
|
7
|
-
type LayoutChangeEvent,
|
|
8
|
-
type StyleProp,
|
|
9
|
-
type ViewStyle,
|
|
10
|
-
} from 'react-native';
|
|
4
|
+
import { View, type LayoutChangeEvent, type StyleProp, type ViewStyle } from 'react-native';
|
|
11
5
|
import Animated, {
|
|
12
6
|
Easing,
|
|
13
7
|
useAnimatedStyle,
|
|
@@ -15,7 +9,7 @@ import Animated, {
|
|
|
15
9
|
withTiming,
|
|
16
10
|
type SharedValue,
|
|
17
11
|
} from 'react-native-reanimated';
|
|
18
|
-
import Svg, {
|
|
12
|
+
import Svg, { G, Path } from 'react-native-svg';
|
|
19
13
|
|
|
20
14
|
import { Avatar } from '../avatar';
|
|
21
15
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
@@ -204,33 +198,6 @@ export function webHook(kind: 'ring' | 'offset' | 'inset' = 'ring'): Record<stri
|
|
|
204
198
|
return IS_WEB ? { dataSet: { bloomSidebar: kind } } : {};
|
|
205
199
|
}
|
|
206
200
|
|
|
207
|
-
// ---------------------------------------------------------------------------
|
|
208
|
-
// Painting helpers
|
|
209
|
-
// ---------------------------------------------------------------------------
|
|
210
|
-
|
|
211
|
-
let gradientIds = 0;
|
|
212
|
-
|
|
213
|
-
/** A top-to-bottom gradient fill (opaque stops — react-native-svg drops alpha). */
|
|
214
|
-
export function GradientFill({ from, to, radius }: { from: string; to: string; radius: number }) {
|
|
215
|
-
const id = useMemo(() => `bloom-sidebar-gradient${gradientIds++}`, []);
|
|
216
|
-
return (
|
|
217
|
-
<View
|
|
218
|
-
pointerEvents="none"
|
|
219
|
-
style={[StyleSheet.absoluteFill, { borderRadius: radius, overflow: 'hidden' }]}
|
|
220
|
-
>
|
|
221
|
-
<Svg width="100%" height="100%" style={StyleSheet.absoluteFill}>
|
|
222
|
-
<Defs>
|
|
223
|
-
<LinearGradient id={id} x1="0" y1="0" x2="0" y2="1">
|
|
224
|
-
<Stop offset="0" stopColor={from} />
|
|
225
|
-
<Stop offset="1" stopColor={to} />
|
|
226
|
-
</LinearGradient>
|
|
227
|
-
</Defs>
|
|
228
|
-
<Rect x="0" y="0" width="100%" height="100%" fill={`url(#${id})`} />
|
|
229
|
-
</Svg>
|
|
230
|
-
</View>
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
201
|
const AVATAR_TYPE = {
|
|
235
202
|
// Avatar `xs`: 20px, 10/15 semibold.
|
|
236
203
|
xs: { size: 20, fontSize: 10, lineHeight: 15 },
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native's `View` and `Pressable` typed with the web props
|
|
3
|
+
* react-native-web forwards (a `listbox` role, `aria-*` on a pressable), for
|
|
4
|
+
* Bloom's own hosts. They are React Native's components themselves, only
|
|
5
|
+
* widened types: Bloom styles through `style` alone (`docs/no-nativewind.mdx`).
|
|
6
|
+
*/
|
|
7
|
+
import type { ComponentRef, ComponentType, Ref } from 'react';
|
|
8
|
+
import {
|
|
9
|
+
Pressable,
|
|
10
|
+
View,
|
|
11
|
+
type PressableProps,
|
|
12
|
+
type StyleProp,
|
|
13
|
+
type ViewProps,
|
|
14
|
+
type ViewStyle,
|
|
15
|
+
} from 'react-native';
|
|
16
|
+
|
|
17
|
+
type AriaPressableBase = Omit<PressableProps, 'style'> & {
|
|
18
|
+
style?: StyleProp<ViewStyle>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export interface WebAriaProps {
|
|
22
|
+
/**
|
|
23
|
+
* What kind of surface this control opens. `menu` is the only value Bloom
|
|
24
|
+
* currently needs; the union is the ARIA one, narrowed to what is spellable.
|
|
25
|
+
*/
|
|
26
|
+
'aria-haspopup'?: 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
27
|
+
/**
|
|
28
|
+
* The id list of the elements that DESCRIBE this control — a field's hint or
|
|
29
|
+
* its error message (`field/context.ts`).
|
|
30
|
+
*
|
|
31
|
+
* Here for the same reason as `aria-haspopup`: React Native types no such prop
|
|
32
|
+
* (there is no `accessibilityState` entry for it to fold into) while
|
|
33
|
+
* react-native-web forwards it, so web gets the association and native is
|
|
34
|
+
* unaffected. A control that needs the description READ on native carries it
|
|
35
|
+
* in its accessible name instead.
|
|
36
|
+
*/
|
|
37
|
+
'aria-describedby'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether the control's current value is invalid. Same platform split as
|
|
40
|
+
* `aria-describedby`.
|
|
41
|
+
*/
|
|
42
|
+
'aria-invalid'?: boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type AriaPressableProps = Omit<AriaPressableBase, 'role'> &
|
|
46
|
+
WebAriaProps & {
|
|
47
|
+
/** RNW supports these menu roles; native callers retain checkbox/radio. */
|
|
48
|
+
role?: PressableProps['role'] | 'menuitemcheckbox' | 'menuitemradio';
|
|
49
|
+
ref?: Ref<ComponentRef<typeof View>>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** `View` with the web-only `listbox` role React Native's `Role` lacks. */
|
|
53
|
+
export const AriaView = View as ComponentType<
|
|
54
|
+
Omit<ViewProps, 'role'> & {
|
|
55
|
+
/** Web-only listbox semantics; RN's Role type does not include this role. */
|
|
56
|
+
role?: ViewProps['role'] | 'listbox';
|
|
57
|
+
ref?: Ref<ComponentRef<typeof View>>;
|
|
58
|
+
}
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
/** `Pressable` with the web ARIA props and menu roles react-native-web forwards. */
|
|
62
|
+
export const AriaPressable = Pressable as ComponentType<AriaPressableProps>;
|
package/src/surface/Surface.tsx
CHANGED
|
@@ -5,14 +5,13 @@ import { SURFACE_SHAPES } from '../design-tokens/shapes';
|
|
|
5
5
|
import type React from 'react';
|
|
6
6
|
import { forwardRef, memo } from 'react';
|
|
7
7
|
import type { ComponentRef } from 'react';
|
|
8
|
-
import { Platform, StyleSheet,
|
|
9
|
-
import { StyledView } from '../styles/styled-primitives';
|
|
8
|
+
import { Platform, StyleSheet, View } from 'react-native';
|
|
10
9
|
import { borderRadius } from '../styles/tokens';
|
|
11
|
-
import { SurfaceLevelProvider } from '../styles/surface-levels';
|
|
10
|
+
import { SurfaceLevelProvider, useSurfaceFill } from '../styles/surface-levels';
|
|
12
11
|
import { useResolvedSurface } from './use-resolved-surface';
|
|
13
12
|
import { SurfacePaint } from './SurfacePaint';
|
|
14
13
|
import { LensButtonHost, splitLensStyle } from '../floating/lens/lens-button-host';
|
|
15
|
-
import { useLensAvailable } from '../floating/lens/lens-material';
|
|
14
|
+
import { useInFloatingRegion, useLensAvailable } from '../floating/lens/lens-material';
|
|
16
15
|
import type { SurfaceProps } from './types';
|
|
17
16
|
import type { MemoRefComponent } from '../styles/native-refs';
|
|
18
17
|
|
|
@@ -70,9 +69,15 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
70
69
|
});
|
|
71
70
|
const lensAvailable = useLensAvailable();
|
|
72
71
|
const lens = materialProp === 'lens' && lensAvailable;
|
|
72
|
+
// Outside a floating region the surface is in the page's content, as a feed's compose prompt:
|
|
73
|
+
// its lens is drawn in its place, against the surface it sits on, so it scrolls and clips with
|
|
74
|
+
// the page (a Button's and a Group's do the same). Drawn by the window, it slid over the header
|
|
75
|
+
// and the status bar as the feed scrolled (Mention's Home, Pixel 8a).
|
|
76
|
+
const backing = useSurfaceFill();
|
|
77
|
+
const restBackdrop = useInFloatingRegion() ? undefined : backing;
|
|
73
78
|
const split = lens ? splitLensStyle(style) : null;
|
|
74
79
|
const surface = (
|
|
75
|
-
<
|
|
80
|
+
<View
|
|
76
81
|
{...hostProps}
|
|
77
82
|
ref={ref}
|
|
78
83
|
accessibilityLabel={accessibilityLabel}
|
|
@@ -101,7 +106,7 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
101
106
|
<SurfaceLevelProvider level={material.level} fill={material.publishedFill}>
|
|
102
107
|
<ConcentricProvider value={concentric.context}>{children}</ConcentricProvider>
|
|
103
108
|
</SurfaceLevelProvider>
|
|
104
|
-
</
|
|
109
|
+
</View>
|
|
105
110
|
);
|
|
106
111
|
if (!split) return surface;
|
|
107
112
|
// The native lens is the material: it draws behind the content (the lens base, whose content
|
|
@@ -109,6 +114,7 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
109
114
|
return (
|
|
110
115
|
<LensButtonHost
|
|
111
116
|
radius={typeof geometry.radius === 'number' ? geometry.radius : undefined}
|
|
117
|
+
restBackdrop={restBackdrop}
|
|
112
118
|
style={split.host}
|
|
113
119
|
>
|
|
114
120
|
{surface}
|
|
@@ -5,7 +5,7 @@ import { resolveSurfaceGeometry } from './resolve-surface-geometry';
|
|
|
5
5
|
import { SURFACE_SHAPES } from '../design-tokens/shapes';
|
|
6
6
|
import { forwardRef, memo, useCallback, useRef } from 'react';
|
|
7
7
|
import type { ComponentRef } from 'react';
|
|
8
|
-
import { StyleSheet,
|
|
8
|
+
import { StyleSheet, View } from 'react-native';
|
|
9
9
|
import { SurfaceLevelProvider } from '../styles/surface-levels';
|
|
10
10
|
import { useResolvedSurface } from './use-resolved-surface';
|
|
11
11
|
import { useThemeRecipe } from '../theme/use-theme-paint';
|
|
@@ -14,7 +14,6 @@ import { resolveSurfaceLayer } from './use-surface-layer';
|
|
|
14
14
|
import { resolveSurfaceMaterial } from './resolve-surface-material';
|
|
15
15
|
import { ServerStyleSheet } from '../styles/ServerStyleSheet';
|
|
16
16
|
import { borderRadius } from '../styles/tokens';
|
|
17
|
-
import { StyledView } from '../styles/styled-primitives';
|
|
18
17
|
import { webDataSet } from '../styles/web-data';
|
|
19
18
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
20
19
|
import { useInteractiveWebCss } from '../styles/interactive-web-css';
|
|
@@ -134,7 +133,7 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
134
133
|
{opticsRecipe.sheet}
|
|
135
134
|
{materialRecipe.sheet}
|
|
136
135
|
<ServerStyleSheet id="bloom-surface-web-css" css={CSS} />
|
|
137
|
-
<
|
|
136
|
+
<View
|
|
138
137
|
{...hostProps}
|
|
139
138
|
ref={hostRef}
|
|
140
139
|
// The surface's own hooks join a caller's (`webDataSet`), as one `dataSet`.
|
|
@@ -168,7 +167,7 @@ const SurfaceComponent = forwardRef<ComponentRef<typeof View>, SurfaceProps>(
|
|
|
168
167
|
>
|
|
169
168
|
<ConcentricProvider value={concentric.context}>{children}</ConcentricProvider>
|
|
170
169
|
</SurfaceLevelProvider>
|
|
171
|
-
</
|
|
170
|
+
</View>
|
|
172
171
|
</>
|
|
173
172
|
);
|
|
174
173
|
},
|
|
@@ -3,7 +3,6 @@ import { surfaceStyle } from '../shapes/surface-style';
|
|
|
3
3
|
import type { SurfaceShape, SurfaceStyle } from '../shapes/corner-types';
|
|
4
4
|
import { memo, useEffect, type ComponentType } from 'react';
|
|
5
5
|
import { Platform, StyleSheet, View, type ViewStyle } from 'react-native';
|
|
6
|
-
import { StyledView } from '../styles/styled-primitives';
|
|
7
6
|
import { webDataSet } from '../styles/web-data';
|
|
8
7
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
9
8
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
@@ -183,7 +182,7 @@ export const SurfacePaint = memo(function SurfacePaint({
|
|
|
183
182
|
<>
|
|
184
183
|
{opticsRecipe.sheet}
|
|
185
184
|
<ServerStyleSheet id="bloom-surface-paint-web-css" css={WEB_PAINT_CSS} />
|
|
186
|
-
<
|
|
185
|
+
<View
|
|
187
186
|
ref={layerRef as never}
|
|
188
187
|
testID={testID}
|
|
189
188
|
// The semantic fill the material tints with, before its translucency;
|
package/src/toast/animations.ts
CHANGED
|
@@ -43,7 +43,6 @@ const ENTER_TRANSLATE_Y: Record<ToastPosition, number> = {
|
|
|
43
43
|
|
|
44
44
|
/** Exit stays near its resting slot instead of throwing the card offscreen. */
|
|
45
45
|
const EXIT_TRANSLATE_Y_SINGLE = 12;
|
|
46
|
-
export const EXIT_DURATION = MOTION.exit.duration;
|
|
47
46
|
|
|
48
47
|
const enters = new Map<ToastPosition, KeyframesValue>();
|
|
49
48
|
|
package/src/track-list/parts.tsx
CHANGED
|
@@ -13,7 +13,7 @@ import { RiMore2Fill } from '../icons/remix/RiMore2Fill';
|
|
|
13
13
|
import { RiMusic2Line } from '../icons/remix/RiMusic2Line';
|
|
14
14
|
import { resolvePhoto } from '../listing-card/shared';
|
|
15
15
|
import { useImageResolver } from '../image-resolver/context';
|
|
16
|
-
import type { WebAriaProps } from '../styles/
|
|
16
|
+
import type { WebAriaProps } from '../styles/aria-hosts';
|
|
17
17
|
import { useTheme } from '../theme/use-theme';
|
|
18
18
|
import { resolveTrackListPaint } from './shared';
|
|
19
19
|
import type { TrackMenuItem } from './types';
|
|
@@ -67,11 +67,6 @@ const SYSTEM_FAMILY = {
|
|
|
67
67
|
: 'sans-serif',
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
/** Shared by Bloom text and every control composed from it. */
|
|
71
|
-
export function useTypographySystemFamily() {
|
|
72
|
-
return useContext(TypographyContext).mode === 'system' ? SYSTEM_FAMILY : undefined;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
70
|
/** Whether text below is drawn in the desktop text styles (`TypographyScale`). */
|
|
76
71
|
export function useDesktopTypography(): boolean {
|
|
77
72
|
return useContext(TypographyContext).scale === 'desktop';
|