@oxy.so/bloom 23.8.0 → 23.9.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/android/src/main/java/so/oxy/bloom/AvatarLoops.kt +293 -0
- package/android/src/main/java/so/oxy/bloom/AvatarSurface.kt +351 -0
- package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +1 -1
- package/docs/agent-avatar.mdx +77 -1
- package/docs/bloom-language-classnames.mdx +11 -11
- package/docs/bloom-language-codemod.mdx +30 -5
- package/docs/bloom-language-for-agents.mdx +1 -1
- package/docs/bloom-language-modifiers.mdx +222 -77
- package/docs/bloom-language-nodes.mdx +43 -21
- package/docs/bloom-language-tokens.mdx +69 -14
- package/docs/bloom-language.mdx +148 -46
- package/docs/design-tokens.mdx +12 -2
- package/docs/no-nativewind.mdx +5 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/theme.mdx +37 -0
- package/lib/commonjs/accordion/Accordion.js +12 -12
- package/lib/commonjs/accordion/Accordion.js.map +1 -1
- package/lib/commonjs/accordion/Accordion.web.js +8 -8
- package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +267 -111
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js +75 -0
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-loop.js +161 -0
- package/lib/commonjs/agent-avatar/vector-loop.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-visibility.js +4 -1
- package/lib/commonjs/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/commonjs/agent-log/AgentLog.js +131 -174
- package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
- package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
- package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
- package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
- package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/commonjs/app-shell/AppShell.js +5 -7
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/NotificationBell.js +9 -9
- package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
- package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
- package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/commonjs/blur/BlurIsland.js +112 -118
- package/lib/commonjs/blur/BlurIsland.js.map +1 -1
- package/lib/commonjs/button/Button.js +12 -22
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/button/GroupBase.js +35 -50
- package/lib/commonjs/button/GroupBase.js.map +1 -1
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/commonjs/choice-list/ChoiceList.js +5 -5
- package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +3 -3
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
- package/lib/commonjs/data-table/DataTableSelect.js +8 -8
- package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
- package/lib/commonjs/design-tokens/theme.css +1 -0
- package/lib/commonjs/design-tokens/tokens.json +390 -0
- package/lib/commonjs/dialog/DialogContent.js +5 -4
- package/lib/commonjs/dialog/DialogContent.js.map +1 -1
- package/lib/commonjs/dialog/DialogHeader.js +6 -5
- package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
- package/lib/commonjs/dialog/SheetShell.js +5 -4
- package/lib/commonjs/dialog/SheetShell.js.map +1 -1
- package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
- package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
- package/lib/commonjs/floating/lens/lens-cover.js +56 -0
- package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-frame.js +286 -0
- package/lib/commonjs/floating/lens/lens-frame.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-material.js +1 -1
- package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
- package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
- package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
- package/lib/commonjs/home-search/BudgetPicker.js +8 -8
- package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
- package/lib/commonjs/home-search/MoveInPicker.js +7 -7
- package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
- package/lib/commonjs/icon-circle/IconCircle.js +14 -16
- package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
- package/lib/commonjs/icons/shared.js +3 -5
- package/lib/commonjs/icons/shared.js.map +1 -1
- package/lib/commonjs/kbd/Kbd.js +8 -8
- package/lib/commonjs/kbd/Kbd.js.map +1 -1
- package/lib/commonjs/layout/ResizeHandle.js +6 -5
- package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/commonjs/list/ListBase.js +3 -3
- package/lib/commonjs/list/ListBase.js.map +1 -1
- package/lib/commonjs/list/ListPerson.js +3 -3
- package/lib/commonjs/list/ListPerson.js.map +1 -1
- package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
- package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
- package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
- package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
- package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
- package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +24 -15
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +43 -24
- package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
- package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/commonjs/project-board/MemberAvatars.js +7 -9
- package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
- package/lib/commonjs/project-board/ProjectBoardBase.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/project-board/styles.js +2 -5
- package/lib/commonjs/project-board/styles.js.map +1 -1
- package/lib/commonjs/radio/RadioSwatch.js +5 -5
- package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
- package/lib/commonjs/rating/Rating.js +7 -7
- package/lib/commonjs/rating/Rating.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.js +8 -8
- package/lib/commonjs/rating/RatingBar.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.web.js +5 -5
- package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
- package/lib/commonjs/rating/RatingInput.js +9 -9
- package/lib/commonjs/rating/RatingInput.js.map +1 -1
- package/lib/commonjs/rating/RatingSummary.js +6 -6
- package/lib/commonjs/rating/RatingSummary.js.map +1 -1
- package/lib/commonjs/row-actions/RowActions.js +5 -5
- package/lib/commonjs/row-actions/RowActions.js.map +1 -1
- package/lib/commonjs/select/Select.js +5 -5
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/skeleton/Skeleton.js +22 -30
- package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
- package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/CountFilter.js +3 -3
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterSection.js +12 -12
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/commonjs/stay-search/GuestPicker.js +5 -5
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
- package/lib/commonjs/stepper/Stepper.js +11 -10
- package/lib/commonjs/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/stepper/StepperRow.js +12 -12
- package/lib/commonjs/stepper/StepperRow.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/commonjs/surface/Surface.js +64 -193
- package/lib/commonjs/surface/Surface.js.map +1 -1
- package/lib/commonjs/tab-bar/TabBarBase.js +18 -15
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
- package/lib/commonjs/task-list/TaskList.js +14 -15
- package/lib/commonjs/task-list/TaskList.js.map +1 -1
- package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
- package/lib/commonjs/theme/build-theme.js +39 -9
- package/lib/commonjs/theme/build-theme.js.map +1 -1
- package/lib/commonjs/theme/canonical-tokens.js +40 -0
- package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
- package/lib/commonjs/theme/color-policy.js +3 -0
- package/lib/commonjs/theme/color-policy.js.map +1 -1
- package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
- package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
- package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
- package/lib/commonjs/theme/color-tokens.js +32 -10
- package/lib/commonjs/theme/color-tokens.js.map +1 -1
- package/lib/commonjs/theme/color-utils.js +4 -0
- package/lib/commonjs/theme/color-utils.js.map +1 -1
- package/lib/commonjs/theme/default-token-vars.js +92 -0
- package/lib/commonjs/theme/default-token-vars.js.map +1 -0
- package/lib/commonjs/theme/index.js +6 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/index.web.js +6 -0
- package/lib/commonjs/theme/index.web.js.map +1 -1
- package/lib/commonjs/theme/prepaint-palettes.js +1 -5
- package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
- package/lib/commonjs/theme/token-registry.js +7 -28
- package/lib/commonjs/theme/token-registry.js.map +1 -1
- package/lib/commonjs/theme/use-theme-paint.js +28 -0
- package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
- package/lib/commonjs/typography/Typography.js +27 -27
- package/lib/commonjs/typography/Typography.js.map +1 -1
- package/lib/commonjs/web-search/WebSearch.js +18 -19
- package/lib/commonjs/web-search/WebSearch.js.map +1 -1
- package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
- package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
- package/lib/commonjs/wizard/WizardProgress.js +5 -5
- package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
- package/lib/module/accordion/Accordion.js +12 -12
- package/lib/module/accordion/Accordion.js.map +1 -1
- package/lib/module/accordion/Accordion.web.js +8 -8
- package/lib/module/accordion/Accordion.web.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +268 -112
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorNativeSurface.js +66 -0
- package/lib/module/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/module/agent-avatar/vector-loop.js +150 -0
- package/lib/module/agent-avatar/vector-loop.js.map +1 -0
- package/lib/module/agent-avatar/vector-visibility.js +3 -1
- package/lib/module/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/module/agent-creator/EmotionPicker.js +3 -5
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/module/agent-log/AgentLog.js +131 -174
- package/lib/module/agent-log/AgentLog.js.map +1 -1
- package/lib/module/agent-reply/AgentProfile.js +7 -10
- package/lib/module/agent-reply/AgentProfile.js.map +1 -1
- package/lib/module/agent-thinking/AgentThinking.js +8 -7
- package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +5 -7
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +73 -29
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/NotificationBell.js +9 -9
- package/lib/module/app-shell/NotificationBell.js.map +1 -1
- package/lib/module/app-shell/PanelReorderHandle.js +4 -6
- package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/blur/BlurIsland.js +112 -116
- package/lib/module/blur/BlurIsland.js.map +1 -1
- package/lib/module/button/Button.js +13 -23
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/button/GroupBase.js +37 -52
- package/lib/module/button/GroupBase.js.map +1 -1
- package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/module/choice-list/ChoiceList.js +5 -5
- package/lib/module/choice-list/ChoiceList.js.map +1 -1
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +3 -3
- package/lib/module/cover-header/CoverHeader.js.map +1 -1
- package/lib/module/data-table/DataTableSelect.js +8 -8
- package/lib/module/data-table/DataTableSelect.js.map +1 -1
- package/lib/module/design-tokens/theme.css +1 -0
- package/lib/module/design-tokens/tokens.json +390 -0
- package/lib/module/dialog/DialogContent.js +5 -4
- package/lib/module/dialog/DialogContent.js.map +1 -1
- package/lib/module/dialog/DialogHeader.js +6 -5
- package/lib/module/dialog/DialogHeader.js.map +1 -1
- package/lib/module/dialog/SheetShell.js +5 -4
- package/lib/module/dialog/SheetShell.js.map +1 -1
- package/lib/module/expandable-text/ExpandableText.js +3 -3
- package/lib/module/expandable-text/ExpandableText.js.map +1 -1
- package/lib/module/floating/lens/lens-cover.js +51 -0
- package/lib/module/floating/lens/lens-cover.js.map +1 -0
- package/lib/module/floating/lens/lens-frame.js +282 -0
- package/lib/module/floating/lens/lens-frame.js.map +1 -0
- package/lib/module/floating/lens/lens-material.js +1 -1
- package/lib/module/floating/lens/native-lens.js.map +1 -1
- package/lib/module/grouped-section/GroupedSection.js +16 -15
- package/lib/module/grouped-section/GroupedSection.js.map +1 -1
- package/lib/module/home-search/BudgetPicker.js +8 -8
- package/lib/module/home-search/BudgetPicker.js.map +1 -1
- package/lib/module/home-search/MoveInPicker.js +7 -7
- package/lib/module/home-search/MoveInPicker.js.map +1 -1
- package/lib/module/icon-circle/IconCircle.js +14 -16
- package/lib/module/icon-circle/IconCircle.js.map +1 -1
- package/lib/module/icons/shared.js +3 -5
- package/lib/module/icons/shared.js.map +1 -1
- package/lib/module/kbd/Kbd.js +8 -8
- package/lib/module/kbd/Kbd.js.map +1 -1
- package/lib/module/layout/ResizeHandle.js +6 -5
- package/lib/module/layout/ResizeHandle.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +24 -26
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/list/ListBase.js +3 -3
- package/lib/module/list/ListBase.js.map +1 -1
- package/lib/module/list/ListPerson.js +3 -3
- package/lib/module/list/ListPerson.js.map +1 -1
- package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/module/markdown/InlineMarkdown.js +9 -11
- package/lib/module/markdown/InlineMarkdown.js.map +1 -1
- package/lib/module/markdown/MarkdownBlocks.js +35 -43
- package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/module/notifications/NotificationsScreen.js +21 -27
- package/lib/module/notifications/NotificationsScreen.js.map +1 -1
- package/lib/module/overlay/OverlayInertBoundary.js +33 -12
- package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +24 -15
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +43 -24
- package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/module/phone-input/CountryCodeSelect.js +4 -4
- package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/module/project-board/MemberAvatars.js +7 -9
- package/lib/module/project-board/MemberAvatars.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +4 -7
- package/lib/module/project-board/ProjectBoardBase.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/project-board/styles.js +3 -6
- package/lib/module/project-board/styles.js.map +1 -1
- package/lib/module/radio/RadioSwatch.js +5 -5
- package/lib/module/radio/RadioSwatch.js.map +1 -1
- package/lib/module/rating/Rating.js +7 -7
- package/lib/module/rating/Rating.js.map +1 -1
- package/lib/module/rating/RatingBar.js +8 -8
- package/lib/module/rating/RatingBar.js.map +1 -1
- package/lib/module/rating/RatingBar.web.js +5 -5
- package/lib/module/rating/RatingBar.web.js.map +1 -1
- package/lib/module/rating/RatingInput.js +9 -9
- package/lib/module/rating/RatingInput.js.map +1 -1
- package/lib/module/rating/RatingSummary.js +6 -6
- package/lib/module/rating/RatingSummary.js.map +1 -1
- package/lib/module/row-actions/RowActions.js +5 -5
- package/lib/module/row-actions/RowActions.js.map +1 -1
- package/lib/module/select/Select.js +5 -5
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/skeleton/Skeleton.js +22 -30
- package/lib/module/skeleton/Skeleton.js.map +1 -1
- package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/module/stay-filters/CountFilter.js +3 -3
- package/lib/module/stay-filters/CountFilter.js.map +1 -1
- package/lib/module/stay-filters/FilterFooter.js +7 -7
- package/lib/module/stay-filters/FilterFooter.js.map +1 -1
- package/lib/module/stay-filters/FilterSection.js +12 -12
- package/lib/module/stay-filters/FilterSection.js.map +1 -1
- package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/module/stay-search/GuestPicker.js +5 -5
- package/lib/module/stay-search/GuestPicker.js.map +1 -1
- package/lib/module/stepper/Stepper.js +11 -10
- package/lib/module/stepper/Stepper.js.map +1 -1
- package/lib/module/stepper/StepperRow.js +12 -12
- package/lib/module/stepper/StepperRow.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/module/surface/Surface.js +65 -194
- package/lib/module/surface/Surface.js.map +1 -1
- package/lib/module/tab-bar/TabBarBase.js +18 -15
- package/lib/module/tab-bar/TabBarBase.js.map +1 -1
- package/lib/module/task-list/TaskList.js +14 -15
- package/lib/module/task-list/TaskList.js.map +1 -1
- package/lib/module/theme/BloomThemeProvider.js +208 -224
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/build-theme-from-seed.js +1 -1
- package/lib/module/theme/build-theme.js +38 -9
- package/lib/module/theme/build-theme.js.map +1 -1
- package/lib/module/theme/canonical-tokens.js +36 -0
- package/lib/module/theme/canonical-tokens.js.map +1 -0
- package/lib/module/theme/color-policy.js +3 -0
- package/lib/module/theme/color-policy.js.map +1 -1
- package/lib/module/theme/color-scope/resolve-scope.js +46 -5
- package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/module/theme/color-scope/use-scope.js +2 -6
- package/lib/module/theme/color-scope/use-scope.js.map +1 -1
- package/lib/module/theme/color-tokens.js +30 -8
- package/lib/module/theme/color-tokens.js.map +1 -1
- package/lib/module/theme/color-utils.js +4 -0
- package/lib/module/theme/color-utils.js.map +1 -1
- package/lib/module/theme/default-token-vars.js +88 -0
- package/lib/module/theme/default-token-vars.js.map +1 -0
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/index.web.js +1 -1
- package/lib/module/theme/index.web.js.map +1 -1
- package/lib/module/theme/prepaint-palettes.js +2 -6
- package/lib/module/theme/prepaint-palettes.js.map +1 -1
- package/lib/module/theme/token-registry.js +1 -27
- package/lib/module/theme/token-registry.js.map +1 -1
- package/lib/module/theme/use-theme-paint.js +30 -3
- package/lib/module/theme/use-theme-paint.js.map +1 -1
- package/lib/module/typography/Typography.js +27 -27
- package/lib/module/typography/Typography.js.map +1 -1
- package/lib/module/web-search/WebSearch.js +18 -19
- package/lib/module/web-search/WebSearch.js.map +1 -1
- package/lib/module/wizard/WizardFooterBase.js +10 -10
- package/lib/module/wizard/WizardFooterBase.js.map +1 -1
- package/lib/module/wizard/WizardProgress.js +5 -5
- package/lib/module/wizard/WizardProgress.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
- package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
- package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
- package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.d.ts.map +1 -1
- package/lib/typescript/module/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/theme/build-theme.d.ts +9 -0
- package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-utils.d.ts +3 -0
- package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/module/theme/index.d.ts +1 -1
- package/lib/typescript/module/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/index.web.d.ts +1 -1
- package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/module/theme/token-registry.d.ts +1 -16
- package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/accordion/Accordion.tsx +6 -6
- package/src/accordion/Accordion.web.tsx +6 -6
- package/src/agent-avatar/VectorCharacterAvatar.tsx +327 -120
- package/src/agent-avatar/VectorNativeSurface.tsx +117 -0
- package/src/agent-avatar/vector-loop.ts +213 -0
- package/src/agent-avatar/vector-visibility.ts +3 -1
- package/src/agent-creator/AgentCreatorSection.tsx +4 -6
- package/src/agent-creator/EmotionPicker.tsx +3 -3
- package/src/agent-log/AgentLog.tsx +8 -21
- package/src/agent-reply/AgentProfile.tsx +4 -5
- package/src/agent-thinking/AgentThinking.tsx +4 -3
- package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
- package/src/app-shell/AppShell.tsx +3 -3
- package/src/app-shell/AppShellEngine.tsx +67 -19
- package/src/app-shell/AppShellPanelLayout.tsx +3 -3
- package/src/app-shell/NotificationBell.tsx +6 -6
- package/src/app-shell/PanelReorderHandle.tsx +4 -4
- package/src/avatar-group/AvatarGroupBase.tsx +6 -6
- package/src/blur/BlurIsland.tsx +16 -14
- package/src/button/Button.tsx +19 -36
- package/src/button/GroupBase.tsx +42 -56
- package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
- package/src/choice-list/ChoiceList.tsx +3 -3
- package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
- package/src/connection-dots/ConnectionDots.tsx +4 -4
- package/src/connection-dots/ConnectionDots.web.tsx +4 -4
- package/src/cover-header/CoverHeader.tsx +3 -3
- package/src/data-table/DataTableSelect.tsx +4 -4
- package/src/design-tokens/theme.css +1 -0
- package/src/design-tokens/tokens.json +390 -0
- package/src/dialog/DialogContent.tsx +3 -2
- package/src/dialog/DialogHeader.tsx +6 -5
- package/src/dialog/SheetShell.tsx +3 -2
- package/src/expandable-text/ExpandableText.tsx +3 -3
- package/src/floating/lens/lens-cover.tsx +29 -0
- package/src/floating/lens/lens-frame.tsx +195 -0
- package/src/floating/lens/lens-material.ts +1 -1
- package/src/floating/lens/native-lens.ts +2 -0
- package/src/grouped-section/GroupedSection.tsx +7 -6
- package/src/home-search/BudgetPicker.tsx +4 -4
- package/src/home-search/MoveInPicker.tsx +3 -3
- package/src/icon-circle/IconCircle.tsx +5 -5
- package/src/icons/shared.tsx +3 -3
- package/src/kbd/Kbd.tsx +4 -4
- package/src/layout/ResizeHandle.tsx +7 -5
- package/src/link-preview/LinkPreviewCard.tsx +7 -7
- package/src/list/ListBase.tsx +3 -6
- package/src/list/ListPerson.tsx +3 -3
- package/src/listing-editor/ListingPreviewPane.tsx +13 -13
- package/src/markdown/InlineMarkdown.tsx +3 -3
- package/src/markdown/MarkdownBlocks.tsx +14 -14
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
- package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
- package/src/notifications/NotificationPermissionSheet.tsx +3 -3
- package/src/notifications/NotificationsScreen.tsx +9 -9
- package/src/overlay/OverlayInertBoundary.tsx +10 -1
- package/src/page-header/PageHeader.tsx +26 -13
- package/src/page-header/PageHeaderTitleInput.tsx +4 -4
- package/src/panel-routing/expo-router/StackScene.tsx +16 -2
- package/src/phone-input/CountryCodeSelect.tsx +4 -4
- package/src/project-board/MemberAvatars.tsx +3 -3
- package/src/project-board/ProjectBoardBase.tsx +4 -5
- package/src/project-board/ProjectBoardCanvas.tsx +2 -2
- package/src/project-board/styles.ts +3 -4
- package/src/radio/RadioSwatch.tsx +3 -3
- package/src/rating/Rating.tsx +5 -5
- package/src/rating/RatingBar.tsx +4 -4
- package/src/rating/RatingBar.web.tsx +3 -3
- package/src/rating/RatingInput.tsx +5 -5
- package/src/rating/RatingSummary.tsx +4 -4
- package/src/row-actions/RowActions.tsx +3 -3
- package/src/select/Select.tsx +3 -3
- package/src/skeleton/Skeleton.tsx +9 -9
- package/src/stay-filters/AvailabilityFilter.tsx +3 -3
- package/src/stay-filters/CountFilter.tsx +3 -3
- package/src/stay-filters/FilterFooter.tsx +4 -4
- package/src/stay-filters/FilterSection.tsx +5 -5
- package/src/stay-filters/SwitchFilterRow.tsx +4 -4
- package/src/stay-search/GuestPicker.tsx +3 -6
- package/src/stepper/Stepper.tsx +6 -5
- package/src/stepper/StepperRow.tsx +5 -5
- package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
- package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
- package/src/surface/Surface.tsx +13 -28
- package/src/tab-bar/TabBarBase.tsx +13 -8
- package/src/task-list/TaskList.tsx +14 -16
- package/src/theme/BloomThemeProvider.tsx +33 -33
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
- package/src/theme/build-theme-from-seed.ts +1 -1
- package/src/theme/build-theme.ts +52 -11
- package/src/theme/canonical-tokens.ts +108 -0
- package/src/theme/color-policy.ts +3 -0
- package/src/theme/color-scope/resolve-scope.ts +47 -8
- package/src/theme/color-scope/use-scope.ts +2 -6
- package/src/theme/color-tokens.ts +7 -7
- package/src/theme/color-utils.ts +4 -0
- package/src/theme/default-token-vars.ts +86 -0
- package/src/theme/index.ts +1 -1
- package/src/theme/index.web.ts +1 -1
- package/src/theme/prepaint-palettes.ts +2 -3
- package/src/theme/token-registry.ts +1 -101
- package/src/theme/use-theme-paint.ts +26 -3
- package/src/typography/Typography.tsx +12 -12
- package/src/web-search/WebSearch.tsx +16 -18
- package/src/wizard/WizardFooterBase.tsx +5 -5
- package/src/wizard/WizardProgress.tsx +5 -5
- package/lib/commonjs/floating/lens/lens-button-host.js +0 -218
- package/lib/commonjs/floating/lens/lens-button-host.js.map +0 -1
- package/lib/module/floating/lens/lens-button-host.js +0 -214
- package/lib/module/floating/lens/lens-button-host.js.map +0 -1
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +0 -1
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +0 -1
- package/src/floating/lens/lens-button-host.tsx +0 -148
|
@@ -127,15 +127,17 @@ const TITLE_PADDING = 4;
|
|
|
127
127
|
const DEFAULT_THRESHOLD = 20;
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
|
-
* The narrowest the centred title
|
|
131
|
-
* to the two sides.
|
|
130
|
+
* The narrowest the centred title is squeezed to before it stops yielding the
|
|
131
|
+
* centre to the two sides.
|
|
132
132
|
*
|
|
133
133
|
* Without a floor the centring inset is `max(startWidth, endWidth)` applied to
|
|
134
134
|
* BOTH sides, so on a narrow container two wide sides can ask for more than the
|
|
135
135
|
* container has — and `left + right > width` is a box of negative width, which
|
|
136
136
|
* on web collapses the title to nothing and on native logs a layout error. The
|
|
137
|
-
* title stops centring before that happens and
|
|
138
|
-
* the
|
|
137
|
+
* title stops centring before that happens and sits off-centre, in the room
|
|
138
|
+
* between the sides. It never takes a side's own room to keep this width: a
|
|
139
|
+
* title laid out under a side's controls is drawn behind them, and a lens
|
|
140
|
+
* control refracts it (Mention's logo under its Spanish "Pregunta a Alia" pill).
|
|
139
141
|
*/
|
|
140
142
|
const MIN_CENTERED_TITLE_WIDTH = 96;
|
|
141
143
|
/** The widths where search and actions change presentation (`sm`, `xl`). */
|
|
@@ -161,8 +163,8 @@ const PAGE_HEADER_LAYOUT_CSS = `
|
|
|
161
163
|
inset-inline-end: var(--bloom-page-header-inset) !important;
|
|
162
164
|
}
|
|
163
165
|
[data-bloom-page-header-center] {
|
|
164
|
-
margin-
|
|
165
|
-
margin-
|
|
166
|
+
margin-inline-start: max(calc(var(--bloom-page-header-start-width, 0px) + ${ROW_GAP}px), clamp(0px, calc(var(--bloom-page-header-side-width, 0px) + ${ROW_GAP}px), max(0px, calc(50% - ${MIN_CENTERED_TITLE_WIDTH / 2}px)))) !important;
|
|
167
|
+
margin-inline-end: max(calc(var(--bloom-page-header-end-width, 0px) + ${ROW_GAP}px), clamp(0px, calc(var(--bloom-page-header-side-width, 0px) + ${ROW_GAP}px), max(0px, calc(50% - ${MIN_CENTERED_TITLE_WIDTH / 2}px)))) !important;
|
|
166
168
|
}
|
|
167
169
|
`;
|
|
168
170
|
|
|
@@ -647,13 +649,17 @@ function PageHeaderComponent({
|
|
|
647
649
|
containerType: 'inline-size',
|
|
648
650
|
containerName: 'bloom-page-header',
|
|
649
651
|
'--bloom-page-header-side-width': `${Math.max(startWidth, endWidth)}px`,
|
|
652
|
+
'--bloom-page-header-start-width': `${startWidth}px`,
|
|
653
|
+
'--bloom-page-header-end-width': `${endWidth}px`,
|
|
650
654
|
}
|
|
651
655
|
: null;
|
|
652
|
-
// A centred title clears the wider side,
|
|
653
|
-
//
|
|
654
|
-
//
|
|
655
|
-
//
|
|
656
|
-
//
|
|
656
|
+
// A centred title clears the wider side on both sides, so it sits on the
|
|
657
|
+
// container's centre. As the room narrows it gives up the centre, never the
|
|
658
|
+
// clearance of its own side: each spacer shrinks to its side's width and no
|
|
659
|
+
// further, so the title slides off-centre into the room the two sides leave
|
|
660
|
+
// and is never laid out under their controls, as Apple's bar places a title
|
|
661
|
+
// that does not fit centred. The web's `clamp()` margins (above), as flex on
|
|
662
|
+
// native, so Yoga resolves it in the pass that lays the window out.
|
|
657
663
|
const centerClearance = Math.max(startWidth, endWidth) + ROW_GAP;
|
|
658
664
|
const centerSpacer = (side: 'before' | 'after') =>
|
|
659
665
|
!isWeb ? (
|
|
@@ -661,7 +667,12 @@ function PageHeaderComponent({
|
|
|
661
667
|
testID={testID ? `${testID}-center-${side}` : undefined}
|
|
662
668
|
// Its basis as a `width` (shrinking): Yoga reads a definite width on
|
|
663
669
|
// every layout, where a changed `flexBasis` keeps the size it computed.
|
|
664
|
-
style={{
|
|
670
|
+
style={{
|
|
671
|
+
flexGrow: 0,
|
|
672
|
+
flexShrink: 1,
|
|
673
|
+
width: centerClearance,
|
|
674
|
+
minWidth: (side === 'before' ? startWidth : endWidth) + ROW_GAP,
|
|
675
|
+
}}
|
|
665
676
|
/>
|
|
666
677
|
) : null;
|
|
667
678
|
|
|
@@ -1172,11 +1183,13 @@ function PageHeaderComponent({
|
|
|
1172
1183
|
[
|
|
1173
1184
|
styles.centerSlot,
|
|
1174
1185
|
searchOccupiesRow && { display: 'none' },
|
|
1186
|
+
// Its minimum while the sides leave room for it; past
|
|
1187
|
+
// that it narrows with the room, so it stays between them.
|
|
1175
1188
|
!isWeb &&
|
|
1176
1189
|
!searchOccupiesRow && {
|
|
1177
1190
|
flexBasis: MIN_CENTERED_TITLE_WIDTH,
|
|
1178
1191
|
flexGrow: 1,
|
|
1179
|
-
flexShrink:
|
|
1192
|
+
flexShrink: 1,
|
|
1180
1193
|
},
|
|
1181
1194
|
],
|
|
1182
1195
|
pointerEventsStyle('box-none'),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { TextInput, type TextStyle } from 'react-native';
|
|
3
3
|
import { useFieldMembership } from '../field/membership';
|
|
4
|
-
import {
|
|
4
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
5
5
|
import { TYPE_SCALE } from '../typography/scale';
|
|
6
6
|
import { IS_WEB } from '../styles/platform';
|
|
7
7
|
import type { PageHeaderTitleInputProps } from './types';
|
|
@@ -18,7 +18,7 @@ export function PageHeaderTitleInput({
|
|
|
18
18
|
style,
|
|
19
19
|
...props
|
|
20
20
|
}: PageHeaderTitleInputProps) {
|
|
21
|
-
const
|
|
21
|
+
const tokens = useColorTokens();
|
|
22
22
|
const field = useFieldMembership({
|
|
23
23
|
label,
|
|
24
24
|
accessibilityLabel,
|
|
@@ -41,11 +41,11 @@ export function PageHeaderTitleInput({
|
|
|
41
41
|
aria-invalid={field.invalid || undefined}
|
|
42
42
|
aria-required={field.required || undefined}
|
|
43
43
|
editable={!field.disabled}
|
|
44
|
-
placeholderTextColor={
|
|
44
|
+
placeholderTextColor={tokens.mutedForeground}
|
|
45
45
|
underlineColorAndroid="transparent"
|
|
46
46
|
style={[
|
|
47
47
|
TYPE_SCALE['title-1-bold'],
|
|
48
|
-
{ color:
|
|
48
|
+
{ color: tokens.foreground, minWidth: 0, padding: 0, borderWidth: 0 },
|
|
49
49
|
// Native multiline inputs grow intrinsically. Web's default textarea
|
|
50
50
|
// reserves two rows and then scrolls unless field sizing owns its height.
|
|
51
51
|
multiline && { minHeight: TYPE_SCALE['title-1-bold'].lineHeight, textAlignVertical: 'top' },
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useLayoutEffect, useState, type ReactNode } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { LensCover } from '../../floating/lens/lens-cover';
|
|
3
4
|
import { ScreenActivity } from '../../screen/ScreenActivity';
|
|
4
5
|
import { ScreenEnteredContext } from '../../screen/use-screen-entered';
|
|
5
6
|
import { useSurfaceFill } from '../../styles/surface-levels';
|
|
@@ -38,7 +39,9 @@ export interface StackSceneProps {
|
|
|
38
39
|
* And it makes the screens of a covered scene inactive, as the pager does for
|
|
39
40
|
* its pages: their videos stop, their scroll stops driving the chrome, and their
|
|
40
41
|
* reselect, status bar and floating action yield to the screen on top — without
|
|
41
|
-
* every route passing `active={isFocused}` to its `Screen`.
|
|
42
|
+
* every route passing `active={isFocused}` to its `Screen`. Its controls' lenses
|
|
43
|
+
* are drawn in their place, under the scene on top (`LensCover`), not by the
|
|
44
|
+
* window over it.
|
|
42
45
|
*
|
|
43
46
|
* A pushed scene tells its screens when the push transition has ended
|
|
44
47
|
* (`useScreenEntered`), so what can wait mounts after the slide rather than on
|
|
@@ -50,12 +53,23 @@ export function StackScene({ children, navigation, routeKey }: StackSceneProps)
|
|
|
50
53
|
const entered = useSceneEntered(navigation, routeKey);
|
|
51
54
|
return (
|
|
52
55
|
<View
|
|
56
|
+
// Always its own native parent. Fabric mounts the children of a view that
|
|
57
|
+
// only paints (a fill, no stacking context) straight into the view above
|
|
58
|
+
// it, and the accessibility props below make it a stacking context while
|
|
59
|
+
// the scene is covered: a push then moved the whole covered screen from
|
|
60
|
+
// the native screen into this view, and Back moved it out again, each a
|
|
61
|
+
// detach and an attach of every view in it, which draws it all again
|
|
62
|
+
// (Mention's Home, about a thousand views: some 50 ms of a push's mount
|
|
63
|
+
// frame on a Pixel 8a). Unflattened, a push only updates these props.
|
|
64
|
+
collapsable={false}
|
|
53
65
|
style={[styles.scene, { backgroundColor: fill }]}
|
|
54
66
|
importantForAccessibility={focused ? 'auto' : 'no-hide-descendants'}
|
|
55
67
|
accessibilityElementsHidden={!focused}
|
|
56
68
|
>
|
|
57
69
|
<ScreenActivity active={focused}>
|
|
58
|
-
<
|
|
70
|
+
<LensCover covered={!focused} fill={fill}>
|
|
71
|
+
<ScreenEnteredContext.Provider value={entered}>{children}</ScreenEnteredContext.Provider>
|
|
72
|
+
</LensCover>
|
|
59
73
|
</ScreenActivity>
|
|
60
74
|
</View>
|
|
61
75
|
);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
SelectTrigger,
|
|
11
11
|
SelectValue,
|
|
12
12
|
} from '../select';
|
|
13
|
-
import {
|
|
13
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
14
14
|
import { Text } from '../typography';
|
|
15
15
|
import { CountryFlag } from './CountryFlag';
|
|
16
16
|
import { COUNTRIES } from './countries';
|
|
@@ -59,12 +59,12 @@ export function CountryCodeSelect({
|
|
|
59
59
|
label: labelProp,
|
|
60
60
|
disabled,
|
|
61
61
|
}: CountryCodeSelectProps) {
|
|
62
|
-
const
|
|
62
|
+
const tokens = useColorTokens();
|
|
63
63
|
const { messages } = useMessages(PHONE_INPUT_MESSAGES);
|
|
64
64
|
const label = labelProp ?? messages.countryCode;
|
|
65
65
|
// `text-text-secondary` (value) and `text-text-tertiary` (row dial codes).
|
|
66
|
-
const secondary =
|
|
67
|
-
const tertiary =
|
|
66
|
+
const secondary = tokens.mutedForeground;
|
|
67
|
+
const tertiary = tokens.mutedForeground;
|
|
68
68
|
|
|
69
69
|
const onChange = useCallback(
|
|
70
70
|
(next: string) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarGroup } from '../avatar-group';
|
|
2
|
-
import {
|
|
2
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
3
3
|
import type { ProjectMember } from './types';
|
|
4
4
|
|
|
5
5
|
/** A 2px ring of the card's fill around each face. */
|
|
@@ -19,7 +19,7 @@ export function MemberAvatars({
|
|
|
19
19
|
members: Readonly<Record<string, ProjectMember>>;
|
|
20
20
|
size: number;
|
|
21
21
|
}) {
|
|
22
|
-
const
|
|
22
|
+
const tokens = useColorTokens();
|
|
23
23
|
const items = ids.flatMap((id) => {
|
|
24
24
|
const member = members[id];
|
|
25
25
|
return member ? [{ id, uri: member.avatar, name: member.name, initials: member.initials }] : [];
|
|
@@ -31,7 +31,7 @@ export function MemberAvatars({
|
|
|
31
31
|
size={size + RING * 2}
|
|
32
32
|
overlap={6}
|
|
33
33
|
ringWidth={RING}
|
|
34
|
-
ringColor={
|
|
34
|
+
ringColor={tokens.card}
|
|
35
35
|
style={{ margin: -RING }}
|
|
36
36
|
/>
|
|
37
37
|
);
|
|
@@ -14,7 +14,6 @@ import { useMessages } from '../locale/messages';
|
|
|
14
14
|
import { Chip } from '../chip';
|
|
15
15
|
import { useWindowBreakpoint } from '../hooks/use-width-class';
|
|
16
16
|
import { webDataSet } from '../styles/web-data';
|
|
17
|
-
import { useTheme } from '../theme/use-theme';
|
|
18
17
|
import { Text } from '../typography';
|
|
19
18
|
import { fontFamilyStyle } from '../typography/Typography';
|
|
20
19
|
import { CreateTicketDialog } from './CreateTicketDialog';
|
|
@@ -28,7 +27,7 @@ import { useBoardEngine } from './use-board-engine';
|
|
|
28
27
|
import { projectBoardMove } from './board-engine';
|
|
29
28
|
import { CARD_CHIP, useChipFills, useChipLabels, useProjectChip } from './chips';
|
|
30
29
|
import { ELLIPSIS, NOWRAP, TYPE, useBoardText, useIconFill } from './styles';
|
|
31
|
-
import { createTokenStyles } from '../theme/color-tokens';
|
|
30
|
+
import { createTokenStyles, useColorTokens } from '../theme/color-tokens';
|
|
32
31
|
import { useProjectBoardWebCss } from './web-css';
|
|
33
32
|
import { useProjectBoardPlatform } from './context';
|
|
34
33
|
import { PROJECT_BOARD_MESSAGES } from './messages';
|
|
@@ -274,7 +273,7 @@ function TicketProjectBoard({
|
|
|
274
273
|
accessibilityLabel,
|
|
275
274
|
testID = 'project-board',
|
|
276
275
|
}: ProjectBoardTemplateProps) {
|
|
277
|
-
const
|
|
276
|
+
const tokens = useColorTokens();
|
|
278
277
|
const text = useBoardText();
|
|
279
278
|
const breakpoint = useWindowBreakpoint();
|
|
280
279
|
const sm = breakpoint !== 'base';
|
|
@@ -524,7 +523,7 @@ function TicketProjectBoard({
|
|
|
524
523
|
renderColumnHeader={(column) => (
|
|
525
524
|
<View style={styles.columnTitle}>
|
|
526
525
|
<Text variant="body-medium">{column.title}</Text>
|
|
527
|
-
<Text variant="body-medium" style={{ color:
|
|
526
|
+
<Text variant="body-medium" style={{ color: tokens.mutedForeground }}>
|
|
528
527
|
{column.items.length}/{columns.find((source) => source.id === column.id)?.limit}
|
|
529
528
|
</Text>
|
|
530
529
|
</View>
|
|
@@ -562,7 +561,7 @@ function TicketProjectBoard({
|
|
|
562
561
|
style={styles.iconButton}
|
|
563
562
|
{...webDataSet({ bloomBoardIconButton: '' })}
|
|
564
563
|
>
|
|
565
|
-
<RiAddLine width={20} height={20} fill={
|
|
564
|
+
<RiAddLine width={20} height={20} fill={tokens.mutedForeground} />
|
|
566
565
|
</Pressable>
|
|
567
566
|
</View>
|
|
568
567
|
)}
|
|
@@ -133,7 +133,7 @@ export function ProjectBoardCanvas<Item>({
|
|
|
133
133
|
column.items.findIndex((entry) => props.getItemId(entry) === itemId)
|
|
134
134
|
? 3
|
|
135
135
|
: 0,
|
|
136
|
-
borderTopColor:
|
|
136
|
+
borderTopColor: tokens.primary,
|
|
137
137
|
},
|
|
138
138
|
]}
|
|
139
139
|
>
|
|
@@ -210,7 +210,7 @@ export function ProjectBoardCanvas<Item>({
|
|
|
210
210
|
{engine.allowReorder &&
|
|
211
211
|
engine.over?.columnId === column.id &&
|
|
212
212
|
engine.over.index >= column.items.length && (
|
|
213
|
-
<View style={{ height: 3, backgroundColor:
|
|
213
|
+
<View style={{ height: 3, backgroundColor: tokens.primary }} />
|
|
214
214
|
)}
|
|
215
215
|
</>
|
|
216
216
|
);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { TextStyle } from 'react-native';
|
|
2
2
|
import { IS_WEB } from '../styles/platform';
|
|
3
|
-
import { createTokenStyles } from '../theme/color-tokens';
|
|
4
|
-
import { useTheme } from '../theme/use-theme';
|
|
3
|
+
import { createTokenStyles, useColorTokens } from '../theme/color-tokens';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* A type utility's line: its px on native; on the web its ratio to the size
|
|
@@ -71,6 +70,6 @@ export const CARD_SHADOW = { offsetX: 0, offsetY: 1, blurRadius: 1, color: '#000
|
|
|
71
70
|
* which the icon fills with.
|
|
72
71
|
*/
|
|
73
72
|
export function useIconFill(): string | undefined {
|
|
74
|
-
const
|
|
75
|
-
return IS_WEB ?
|
|
73
|
+
const tokens = useColorTokens();
|
|
74
|
+
return IS_WEB ? tokens.primary : undefined;
|
|
76
75
|
}
|
|
@@ -7,7 +7,7 @@ import { useRingOffsetStyle } from '../styles/surface-levels';
|
|
|
7
7
|
import { DISABLED_OPACITY } from '../styles/tokens';
|
|
8
8
|
import { webDataSet } from '../styles/web-data';
|
|
9
9
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
10
|
-
import {
|
|
10
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
11
11
|
import { RadioHost } from './RadioHost';
|
|
12
12
|
import type { RadioSize, RadioSwatchProps } from './types';
|
|
13
13
|
import { useRadioGroupItem } from './use-radio-group-item';
|
|
@@ -56,7 +56,7 @@ function RadioSwatchComponent<Value extends string = string>({
|
|
|
56
56
|
style,
|
|
57
57
|
testID,
|
|
58
58
|
}: RadioSwatchProps<Value>) {
|
|
59
|
-
const
|
|
59
|
+
const tokens = useColorTokens();
|
|
60
60
|
// The colour's name is the control's name: nothing is drawn beside it.
|
|
61
61
|
const field = useFieldMembership({
|
|
62
62
|
// The card's own description is its hint, said before the field's.
|
|
@@ -90,7 +90,7 @@ function RadioSwatchComponent<Value extends string = string>({
|
|
|
90
90
|
flexShrink: 0,
|
|
91
91
|
opacity: disabled ? DISABLED_OPACITY : 1,
|
|
92
92
|
} as const)),
|
|
93
|
-
'--bloom-radio-swatch-ring':
|
|
93
|
+
'--bloom-radio-swatch-ring': tokens.primary,
|
|
94
94
|
...ringOffset,
|
|
95
95
|
};
|
|
96
96
|
return (
|
package/src/rating/Rating.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { View } from 'react-native';
|
|
|
4
4
|
import { RiStarFill } from '../icons/remix/RiStarFill';
|
|
5
5
|
import { useDirectionProps } from '../hooks/use-is-rtl';
|
|
6
6
|
import { useMessages } from '../locale/messages';
|
|
7
|
-
import {
|
|
7
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
8
8
|
import { Text } from '../typography';
|
|
9
9
|
import type { TypeScaleVariant } from '../typography/scale';
|
|
10
10
|
import { RATING_MESSAGES } from './messages';
|
|
@@ -158,13 +158,13 @@ function RatingComponent({
|
|
|
158
158
|
style,
|
|
159
159
|
testID,
|
|
160
160
|
}: RatingProps) {
|
|
161
|
-
const
|
|
161
|
+
const tokens = useColorTokens();
|
|
162
162
|
const { messages } = useMessages(RATING_MESSAGES);
|
|
163
163
|
const newLabel = newLabelProp ?? messages.newRating;
|
|
164
164
|
const directionProps = useDirectionProps();
|
|
165
|
-
const textColor = color ??
|
|
165
|
+
const textColor = color ?? tokens.foreground;
|
|
166
166
|
const starPaint = starColor ?? textColor;
|
|
167
|
-
const countPaint = countColor ?? color ??
|
|
167
|
+
const countPaint = countColor ?? color ?? tokens.mutedForeground;
|
|
168
168
|
const config = SIZE_CONFIG[size];
|
|
169
169
|
const glyphSize =
|
|
170
170
|
typeof starSize === 'number' && Number.isFinite(starSize) && starSize > 0
|
|
@@ -206,7 +206,7 @@ function RatingComponent({
|
|
|
206
206
|
rating={clampRating(fillValue ?? parseRatingValue(value))}
|
|
207
207
|
size={glyphSize}
|
|
208
208
|
fill={starPaint}
|
|
209
|
-
empty={emptyStarColor ??
|
|
209
|
+
empty={emptyStarColor ?? tokens.border}
|
|
210
210
|
testID={testID ? `${testID}-stars` : undefined}
|
|
211
211
|
/>
|
|
212
212
|
) : variant === 'stars' ? null : (
|
package/src/rating/RatingBar.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
|
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { Meter } from '../stat-bar';
|
|
5
|
-
import {
|
|
5
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
6
6
|
import { Text } from '../typography';
|
|
7
7
|
import type { RatingBarProps } from './types';
|
|
8
8
|
|
|
@@ -42,7 +42,7 @@ function RatingBarComponent({
|
|
|
42
42
|
trackStyle,
|
|
43
43
|
fillStyle,
|
|
44
44
|
}: RatingBarProps) {
|
|
45
|
-
const
|
|
45
|
+
const tokens = useColorTokens();
|
|
46
46
|
const safeMax = max > 0 ? max : 1;
|
|
47
47
|
|
|
48
48
|
return (
|
|
@@ -53,7 +53,7 @@ function RatingBarComponent({
|
|
|
53
53
|
importantForAccessibility="no"
|
|
54
54
|
accessibilityElementsHidden
|
|
55
55
|
style={[
|
|
56
|
-
{ color:
|
|
56
|
+
{ color: tokens.foreground },
|
|
57
57
|
labelWidth === undefined ? { flex: 1, minWidth: 0 } : { width: labelWidth },
|
|
58
58
|
labelStyle,
|
|
59
59
|
]}
|
|
@@ -82,7 +82,7 @@ function RatingBarComponent({
|
|
|
82
82
|
accessibilityElementsHidden
|
|
83
83
|
style={[
|
|
84
84
|
{
|
|
85
|
-
color:
|
|
85
|
+
color: tokens.foreground,
|
|
86
86
|
minWidth: 28,
|
|
87
87
|
textAlign: 'right',
|
|
88
88
|
fontVariant: ['tabular-nums'],
|
|
@@ -3,7 +3,7 @@ import { memo } from 'react';
|
|
|
3
3
|
import { Meter } from '../stat-bar/index.web';
|
|
4
4
|
import { resolveNativeWebStyle } from '../styles/resolve-native-web-style';
|
|
5
5
|
import { useInteractiveWebCss } from '../styles/interactive-web-css';
|
|
6
|
-
import {
|
|
6
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
7
7
|
import { TYPE_SCALE } from '../typography/scale';
|
|
8
8
|
import type { RatingBarProps } from './types';
|
|
9
9
|
const regular = TYPE_SCALE['body-regular'];
|
|
@@ -31,9 +31,9 @@ export const RatingBar = memo(function RatingBar({
|
|
|
31
31
|
fillStyle,
|
|
32
32
|
}: RatingBarProps) {
|
|
33
33
|
useInteractiveWebCss('bloom-rating-bar', CSS);
|
|
34
|
-
const
|
|
34
|
+
const tokens = useColorTokens();
|
|
35
35
|
const vars = {
|
|
36
|
-
'--bloom-rating-text':
|
|
36
|
+
'--bloom-rating-text': tokens.foreground,
|
|
37
37
|
'--bloom-rating-label-width': `${labelWidth ?? 0}px`,
|
|
38
38
|
} as React.CSSProperties;
|
|
39
39
|
return (
|
|
@@ -13,7 +13,7 @@ import { useRingOffsetStyle } from '../styles/surface-levels';
|
|
|
13
13
|
import { DISABLED_OPACITY } from '../styles/tokens';
|
|
14
14
|
import { webDataSet } from '../styles/web-data';
|
|
15
15
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
16
|
-
import {
|
|
16
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
17
17
|
import { useMessages } from '../locale/messages';
|
|
18
18
|
import { RATING_MESSAGES } from './messages';
|
|
19
19
|
import type { RatingInputProps, RatingInputSize } from './types';
|
|
@@ -97,7 +97,7 @@ function RatingInputComponent({
|
|
|
97
97
|
);
|
|
98
98
|
const size = inheritedSize === 'xs' ? 'sm' : inheritedSize;
|
|
99
99
|
|
|
100
|
-
const
|
|
100
|
+
const tokens = useColorTokens();
|
|
101
101
|
const { messages } = useMessages(RATING_MESSAGES);
|
|
102
102
|
const formatStarLabel = formatStarLabelProp ?? messages.star;
|
|
103
103
|
// A row of stars draws no words, so the `radiogroup`'s name is a prop or the
|
|
@@ -162,12 +162,12 @@ function RatingInputComponent({
|
|
|
162
162
|
// The roving tab stop: the chosen star, or the first one while nothing is
|
|
163
163
|
// chosen, so a keyboard reaches the group in one Tab either way.
|
|
164
164
|
const tabStop = chosen ?? 1;
|
|
165
|
-
const emptyColor =
|
|
165
|
+
const emptyColor = tokens.border;
|
|
166
166
|
|
|
167
167
|
const starStyle: WebCssStyle = {
|
|
168
168
|
padding: 2,
|
|
169
169
|
borderRadius: 6,
|
|
170
|
-
'--bloom-rating-input-ring':
|
|
170
|
+
'--bloom-rating-input-ring': tokens.primary,
|
|
171
171
|
...ringOffset,
|
|
172
172
|
};
|
|
173
173
|
|
|
@@ -234,7 +234,7 @@ function RatingInputComponent({
|
|
|
234
234
|
<Glyph
|
|
235
235
|
width={config.star}
|
|
236
236
|
height={config.star}
|
|
237
|
-
fill={filled ?
|
|
237
|
+
fill={filled ? tokens.primary : emptyColor}
|
|
238
238
|
/>
|
|
239
239
|
</View>
|
|
240
240
|
</Pressable>
|
|
@@ -6,7 +6,7 @@ import { formatNumber, formatPercent } from '../locale/format-number';
|
|
|
6
6
|
import { useMessages } from '../locale/messages';
|
|
7
7
|
import { Meter } from '../stat-bar';
|
|
8
8
|
import { IS_WEB } from '../styles/platform';
|
|
9
|
-
import {
|
|
9
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
10
10
|
import { Text } from '../typography';
|
|
11
11
|
import { RATING_MESSAGES } from './messages';
|
|
12
12
|
import type { RatingSummaryProps } from './types';
|
|
@@ -46,8 +46,8 @@ function RatingSummaryComponent({
|
|
|
46
46
|
testID,
|
|
47
47
|
}: RatingSummaryProps) {
|
|
48
48
|
const { locale, messages } = useMessages(RATING_MESSAGES);
|
|
49
|
-
const
|
|
50
|
-
const secondary =
|
|
49
|
+
const tokens = useColorTokens();
|
|
50
|
+
const secondary = tokens.mutedForeground;
|
|
51
51
|
|
|
52
52
|
if (average === null) {
|
|
53
53
|
return (
|
|
@@ -82,7 +82,7 @@ function RatingSummaryComponent({
|
|
|
82
82
|
style={{ alignItems: 'center' }}
|
|
83
83
|
testID={testID ? `${testID}-average` : undefined}
|
|
84
84
|
>
|
|
85
|
-
<Text variant="display-2-bold" style={{ color:
|
|
85
|
+
<Text variant="display-2-bold" style={{ color: tokens.foreground }}>
|
|
86
86
|
{value}
|
|
87
87
|
</Text>
|
|
88
88
|
<Text variant="body-2-semibold" style={{ color: secondary }}>
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '../dropdown-menu';
|
|
11
11
|
import { RiMore2Fill } from '../icons/remix/RiMore2Fill';
|
|
12
12
|
import { useCommonMessages } from '../locale/common-messages';
|
|
13
|
-
import {
|
|
13
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
14
14
|
import { RowActionButton } from './RowActionButton';
|
|
15
15
|
import type { RowActionsProps } from './types';
|
|
16
16
|
|
|
@@ -37,7 +37,7 @@ export function RowActions({
|
|
|
37
37
|
}: RowActionsProps) {
|
|
38
38
|
const common = useCommonMessages();
|
|
39
39
|
const menuLabel = menuLabelProp ?? common.moreActions;
|
|
40
|
-
const
|
|
40
|
+
const tokens = useColorTokens();
|
|
41
41
|
const [open, setOpen] = useState(false);
|
|
42
42
|
const menuName = common.labelFor(menuLabel, name);
|
|
43
43
|
|
|
@@ -92,7 +92,7 @@ export function RowActions({
|
|
|
92
92
|
<Icon
|
|
93
93
|
width={MENU_ICON_SIZE}
|
|
94
94
|
height={MENU_ICON_SIZE}
|
|
95
|
-
fill={
|
|
95
|
+
fill={tokens.mutedForeground}
|
|
96
96
|
/>
|
|
97
97
|
) : undefined
|
|
98
98
|
}
|
package/src/select/Select.tsx
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from 'react';
|
|
20
20
|
import { FlatList, StyleSheet, Text as RNText, View } from 'react-native';
|
|
21
21
|
|
|
22
|
-
import {
|
|
22
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
23
23
|
import { Text } from '../typography';
|
|
24
24
|
import { useDialogContext, useDialogControl } from '../dialog/context';
|
|
25
25
|
import { SheetShell } from '../dialog/SheetShell';
|
|
@@ -443,7 +443,7 @@ function SelectContentInner<T>({
|
|
|
443
443
|
onOpenChange,
|
|
444
444
|
...contextValues
|
|
445
445
|
}: SelectContentInnerProps<T>) {
|
|
446
|
-
const
|
|
446
|
+
const tokens = useColorTokens();
|
|
447
447
|
const density = useMenuDensity();
|
|
448
448
|
const { messages } = useMessages(SELECT_MESSAGES);
|
|
449
449
|
const label = labelProp ?? messages.selectOption;
|
|
@@ -473,7 +473,7 @@ function SelectContentInner<T>({
|
|
|
473
473
|
label={label}
|
|
474
474
|
header={
|
|
475
475
|
<View style={styles.sheetHeader}>
|
|
476
|
-
<Text variant="title-2-semibold" style={{ color:
|
|
476
|
+
<Text variant="title-2-semibold" style={{ color: tokens.foreground }}>
|
|
477
477
|
{label}
|
|
478
478
|
</Text>
|
|
479
479
|
</View>
|
|
@@ -15,7 +15,7 @@ import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
|
15
15
|
import { useCommonMessages } from '../locale/common-messages';
|
|
16
16
|
import type { SkeletonRegionProps } from './types';
|
|
17
17
|
|
|
18
|
-
import {
|
|
18
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
19
19
|
import { borderRadius } from '../styles/tokens';
|
|
20
20
|
import { SUPPORTS_NATIVE_DRIVER } from '../styles/native-driver';
|
|
21
21
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
@@ -156,7 +156,7 @@ export function Region({ children, label, testID, style }: SkeletonRegionProps)
|
|
|
156
156
|
Region.displayName = 'Skeleton.Region';
|
|
157
157
|
|
|
158
158
|
export function Text({ blend, style }: { style?: TextStyle | TextStyle[]; blend?: boolean }) {
|
|
159
|
-
const
|
|
159
|
+
const tokens = useColorTokens();
|
|
160
160
|
const motion = useShapeMotion(blend);
|
|
161
161
|
const flattened = StyleSheet.flatten(style);
|
|
162
162
|
const width = (flattened as ViewStyle)?.width;
|
|
@@ -176,7 +176,7 @@ export function Text({ blend, style }: { style?: TextStyle | TextStyle[]; blend?
|
|
|
176
176
|
style={[
|
|
177
177
|
styles.textInner,
|
|
178
178
|
{
|
|
179
|
-
backgroundColor:
|
|
179
|
+
backgroundColor: tokens.muted,
|
|
180
180
|
height: lineHeight * 0.7,
|
|
181
181
|
},
|
|
182
182
|
]}
|
|
@@ -197,7 +197,7 @@ export function Circle({
|
|
|
197
197
|
blend?: boolean;
|
|
198
198
|
style?: ViewStyle | ViewStyle[];
|
|
199
199
|
}) {
|
|
200
|
-
const
|
|
200
|
+
const tokens = useColorTokens();
|
|
201
201
|
const motion = useShapeMotion(blend, style);
|
|
202
202
|
|
|
203
203
|
return (
|
|
@@ -207,7 +207,7 @@ export function Circle({
|
|
|
207
207
|
style={[
|
|
208
208
|
styles.circle,
|
|
209
209
|
{
|
|
210
|
-
backgroundColor:
|
|
210
|
+
backgroundColor: tokens.muted,
|
|
211
211
|
width: size,
|
|
212
212
|
height: size,
|
|
213
213
|
},
|
|
@@ -229,7 +229,7 @@ export function Pill({
|
|
|
229
229
|
blend?: boolean;
|
|
230
230
|
style?: ViewStyle | ViewStyle[];
|
|
231
231
|
}) {
|
|
232
|
-
const
|
|
232
|
+
const tokens = useColorTokens();
|
|
233
233
|
const motion = useShapeMotion(blend, style);
|
|
234
234
|
|
|
235
235
|
return (
|
|
@@ -239,7 +239,7 @@ export function Pill({
|
|
|
239
239
|
style={[
|
|
240
240
|
styles.pill,
|
|
241
241
|
{
|
|
242
|
-
backgroundColor:
|
|
242
|
+
backgroundColor: tokens.muted,
|
|
243
243
|
width: size * 1.618,
|
|
244
244
|
height: size,
|
|
245
245
|
},
|
|
@@ -276,7 +276,7 @@ export function Box({
|
|
|
276
276
|
blend?: boolean;
|
|
277
277
|
style?: ViewStyle | ViewStyle[];
|
|
278
278
|
}) {
|
|
279
|
-
const
|
|
279
|
+
const tokens = useColorTokens();
|
|
280
280
|
const motion = useShapeMotion(blend, style);
|
|
281
281
|
|
|
282
282
|
return (
|
|
@@ -285,7 +285,7 @@ export function Box({
|
|
|
285
285
|
motion={motion}
|
|
286
286
|
style={[
|
|
287
287
|
{
|
|
288
|
-
backgroundColor:
|
|
288
|
+
backgroundColor: tokens.muted,
|
|
289
289
|
width,
|
|
290
290
|
height,
|
|
291
291
|
borderRadius,
|
|
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
|
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { DatePicker } from '../date-picker';
|
|
5
|
-
import {
|
|
5
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
6
6
|
import { Text } from '../typography';
|
|
7
7
|
import { SwitchFilterRow } from './SwitchFilterRow';
|
|
8
8
|
import { useMessages } from '../locale/messages';
|
|
@@ -39,7 +39,7 @@ function AvailabilityFilterComponent({
|
|
|
39
39
|
const availableNowDescription = availableNowDescriptionProp ?? messages.availableNowDescription;
|
|
40
40
|
const dateLabel = dateLabelProp ?? messages.availableFrom;
|
|
41
41
|
const datePlaceholder = datePlaceholderProp ?? messages.anyDate;
|
|
42
|
-
const
|
|
42
|
+
const tokens = useColorTokens();
|
|
43
43
|
return (
|
|
44
44
|
<View testID={testID} style={[{ gap: 24 }, style]}>
|
|
45
45
|
<SwitchFilterRow
|
|
@@ -56,7 +56,7 @@ function AvailabilityFilterComponent({
|
|
|
56
56
|
style={{
|
|
57
57
|
flex: 1,
|
|
58
58
|
minWidth: 0,
|
|
59
|
-
color: availableNow ?
|
|
59
|
+
color: availableNow ? tokens.mutedForeground : tokens.foreground,
|
|
60
60
|
}}
|
|
61
61
|
>
|
|
62
62
|
{dateLabel}
|