@oxy.so/bloom 23.8.1 → 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/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 -4
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/theme.mdx +22 -6
- 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-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/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/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/PageHeaderTitleInput.js +20 -20
- package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -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/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-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/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/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/PageHeaderTitleInput.js +20 -20
- package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +42 -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/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-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/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/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/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/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-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/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/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/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/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-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/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/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/PageHeaderTitleInput.tsx +4 -4
- package/src/panel-routing/expo-router/StackScene.tsx +7 -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/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
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
import { Text } from '../typography';
|
|
10
10
|
|
|
11
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
11
12
|
import { useTheme } from '../theme/use-theme';
|
|
12
13
|
import { ScreenScope } from '../layout';
|
|
13
14
|
import { Button } from '../button';
|
|
@@ -54,7 +55,7 @@ export function DialogBody({
|
|
|
54
55
|
actions?: DialogAction[];
|
|
55
56
|
children?: React.ReactNode;
|
|
56
57
|
}) {
|
|
57
|
-
const
|
|
58
|
+
const tokens = useColorTokens();
|
|
58
59
|
const desktop = useDesktopPlatform();
|
|
59
60
|
if (desktop) {
|
|
60
61
|
return (
|
|
@@ -98,7 +99,7 @@ export function DialogBody({
|
|
|
98
99
|
nativeID={descriptionId}
|
|
99
100
|
style={{
|
|
100
101
|
fontSize: 16,
|
|
101
|
-
color:
|
|
102
|
+
color: tokens.mutedForeground,
|
|
102
103
|
paddingBottom: 16,
|
|
103
104
|
lineHeight: 22,
|
|
104
105
|
}}
|
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
SegmentedControlItemText,
|
|
36
36
|
} from '../segmented-control';
|
|
37
37
|
import { useSurfaceFill } from '../styles/surface-levels';
|
|
38
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
38
39
|
import { useTheme } from '../theme/use-theme';
|
|
39
40
|
import { H1, Subtitle, TYPE_SCALE } from '../typography';
|
|
40
41
|
import type { DialogHeaderConfig } from './types';
|
|
@@ -357,7 +358,7 @@ function HeaderProgressBar({
|
|
|
357
358
|
total: number;
|
|
358
359
|
onImage: boolean;
|
|
359
360
|
}): React.ReactElement {
|
|
360
|
-
const
|
|
361
|
+
const tokens = useColorTokens();
|
|
361
362
|
const common = useCommonMessages();
|
|
362
363
|
return (
|
|
363
364
|
<Meter
|
|
@@ -365,7 +366,7 @@ function HeaderProgressBar({
|
|
|
365
366
|
value={step}
|
|
366
367
|
max={total}
|
|
367
368
|
height={4}
|
|
368
|
-
track={onImage ? 'rgba(255,255,255,0.25)' :
|
|
369
|
+
track={onImage ? 'rgba(255,255,255,0.25)' : tokens.border}
|
|
369
370
|
// The NAME and the reading: the bar always means the same thing, so Bloom
|
|
370
371
|
// supplies both itself rather than taking a prop for them.
|
|
371
372
|
accessibilityLabel={common.progress}
|
|
@@ -518,7 +519,7 @@ export const DialogLargeTitle = memo(function DialogLargeTitle({
|
|
|
518
519
|
controller: DialogHeaderController;
|
|
519
520
|
header: DialogHeaderConfig;
|
|
520
521
|
}) {
|
|
521
|
-
const
|
|
522
|
+
const tokens = useColorTokens();
|
|
522
523
|
const common = useCommonMessages();
|
|
523
524
|
const { messages } = useMessages(DIALOG_MESSAGES);
|
|
524
525
|
const config = useMergedHeaderConfig(header, controller.store);
|
|
@@ -579,7 +580,7 @@ export const DialogLargeTitle = memo(function DialogLargeTitle({
|
|
|
579
580
|
? TYPE_SCALE[config.largeTitleVariant]
|
|
580
581
|
: styles.largeTitle,
|
|
581
582
|
{
|
|
582
|
-
color: onImage ? ON_IMAGE_TEXT :
|
|
583
|
+
color: onImage ? ON_IMAGE_TEXT : tokens.foreground,
|
|
583
584
|
textAlign: config.largeTitleAlign ?? 'left',
|
|
584
585
|
},
|
|
585
586
|
]}
|
|
@@ -592,7 +593,7 @@ export const DialogLargeTitle = memo(function DialogLargeTitle({
|
|
|
592
593
|
style={[
|
|
593
594
|
styles.largeSubtitle,
|
|
594
595
|
{ textAlign: config.largeTitleAlign ?? 'left' },
|
|
595
|
-
{ color: onImage ? ON_IMAGE_SUBTEXT :
|
|
596
|
+
{ color: onImage ? ON_IMAGE_SUBTEXT : tokens.mutedForeground },
|
|
596
597
|
]}
|
|
597
598
|
>
|
|
598
599
|
{config.subtitle}
|
|
@@ -26,6 +26,7 @@ import { BottomSheet, type BottomSheetRef } from '../bottom-sheet';
|
|
|
26
26
|
import { useAccessibilityFocus } from '../hooks/use-accessibility-focus';
|
|
27
27
|
import { usePlatformKeyboard } from '../platform-surface/context';
|
|
28
28
|
import { Z_INDEX } from '../styles/z-index';
|
|
29
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
29
30
|
import { useTheme } from '../theme/use-theme';
|
|
30
31
|
import { CenteredCard } from './CenteredCard';
|
|
31
32
|
import { Context } from './context';
|
|
@@ -205,7 +206,7 @@ export function SheetShell({
|
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
function SheetHandle({ onPress }: { onPress: () => void }) {
|
|
208
|
-
const
|
|
209
|
+
const tokens = useColorTokens();
|
|
209
210
|
const common = useCommonMessages();
|
|
210
211
|
return (
|
|
211
212
|
<View style={styles.handleContainer}>
|
|
@@ -215,7 +216,7 @@ function SheetHandle({ onPress }: { onPress: () => void }) {
|
|
|
215
216
|
accessibilityHint={common.tapToClose}
|
|
216
217
|
hitSlop={{ top: 10, bottom: 10, left: 40, right: 40 }}
|
|
217
218
|
>
|
|
218
|
-
<View style={[styles.handleBar, { backgroundColor:
|
|
219
|
+
<View style={[styles.handleBar, { backgroundColor: tokens.foreground }]} />
|
|
219
220
|
</Pressable>
|
|
220
221
|
</View>
|
|
221
222
|
);
|
|
@@ -10,7 +10,7 @@ import { IS_WEB } from '../styles/platform';
|
|
|
10
10
|
import { useSurfaceFill } from '../styles/surface-levels';
|
|
11
11
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
12
12
|
import { webDataSet } from '../styles/web-data';
|
|
13
|
-
import {
|
|
13
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
14
14
|
import { Text } from '../typography';
|
|
15
15
|
import { TYPE_SCALE } from '../typography/scale';
|
|
16
16
|
import type { ExpandableTextProps } from './types';
|
|
@@ -64,7 +64,7 @@ function ExpandableTextComponent({
|
|
|
64
64
|
toggleTestID,
|
|
65
65
|
}: ExpandableTextProps) {
|
|
66
66
|
const common = useCommonMessages();
|
|
67
|
-
const
|
|
67
|
+
const tokens = useColorTokens();
|
|
68
68
|
const fill = useSurfaceFill();
|
|
69
69
|
const rtl = useIsRtl();
|
|
70
70
|
const inline = toggle === 'inline';
|
|
@@ -94,7 +94,7 @@ function ExpandableTextComponent({
|
|
|
94
94
|
}, []);
|
|
95
95
|
const truncatable = clamps && clampedHeight > 0 && fullHeight > clampedHeight + 1;
|
|
96
96
|
const toggleID = toggleTestID ?? (testID ? `${testID}-toggle` : undefined);
|
|
97
|
-
const textColor = color ??
|
|
97
|
+
const textColor = color ?? tokens.foreground;
|
|
98
98
|
|
|
99
99
|
const inlineMore =
|
|
100
100
|
inline && truncatable && !expanded ? (
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A covered screen for the lens: while something is in front of a screen (a stack scene over it, a
|
|
3
|
+
* modal overlay over the app), its controls' lenses are drawn in their place, against the screen's
|
|
4
|
+
* fill, under whatever covers them (`@oxy.so/bloom-lens`'s `LensCover`). The window overlay draws a
|
|
5
|
+
* resting lens above everything: Mention drew Home's header over the settings modal a deep link
|
|
6
|
+
* opened, and Profile's buttons over a settings page opened from it. Without the lens, or without a
|
|
7
|
+
* fill to draw against (no theme above it), it renders its children alone.
|
|
8
|
+
*/
|
|
9
|
+
import type { ReactNode } from 'react';
|
|
10
|
+
|
|
11
|
+
import { getNativeLens } from './native-lens';
|
|
12
|
+
|
|
13
|
+
export function LensCover({
|
|
14
|
+
covered,
|
|
15
|
+
fill,
|
|
16
|
+
children,
|
|
17
|
+
}: {
|
|
18
|
+
covered: boolean;
|
|
19
|
+
fill: string | undefined;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
}) {
|
|
22
|
+
const Cover = getNativeLens()?.LensCover;
|
|
23
|
+
if (!Cover || fill === undefined) return <>{children}</>;
|
|
24
|
+
return (
|
|
25
|
+
<Cover covered={covered} fill={fill}>
|
|
26
|
+
{children}
|
|
27
|
+
</Cover>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -83,6 +83,8 @@ export interface Lens {
|
|
|
83
83
|
}>;
|
|
84
84
|
useInLensBase: () => boolean;
|
|
85
85
|
useLensBaseMenu: (menu: LensMenu | null) => LensHandle | null;
|
|
86
|
+
/** Marks a screen covered: its bases draw their lens in their place, against `fill`. */
|
|
87
|
+
LensCover?: ComponentType<{ covered: boolean; fill: string; children?: ReactNode }>;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
const MIN_ANDROID_API = 33;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { createContext, useContext, memo } from 'react';
|
|
2
2
|
import { View, Pressable, Platform, StyleSheet } from 'react-native';
|
|
3
3
|
|
|
4
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
4
5
|
import { useTheme } from '../theme/use-theme';
|
|
5
6
|
import { fontSize } from '../styles/tokens';
|
|
6
7
|
import { Text } from '../typography';
|
|
@@ -161,10 +162,10 @@ export const GroupedSectionItem = memo<GroupedSectionItemProps>(function Grouped
|
|
|
161
162
|
leftInset,
|
|
162
163
|
style,
|
|
163
164
|
}) {
|
|
164
|
-
const
|
|
165
|
+
const tokens = useColorTokens();
|
|
165
166
|
const compact = useBloomContentDensity() === 'compact';
|
|
166
167
|
const hasChevron = showChevron ?? Boolean(onPress);
|
|
167
|
-
const titleColor = destructive ?
|
|
168
|
+
const titleColor = destructive ? tokens.error : tokens.foreground;
|
|
168
169
|
const isDisabled = disabled || accessibilityState?.disabled === true;
|
|
169
170
|
const rowState = { ...accessibilityState, disabled: isDisabled };
|
|
170
171
|
const pressedOpacity = isDisabled ? 1 : 0.6;
|
|
@@ -217,7 +218,7 @@ export const GroupedSectionItem = memo<GroupedSectionItemProps>(function Grouped
|
|
|
217
218
|
{description ? (
|
|
218
219
|
<Text
|
|
219
220
|
variant={compact ? 'caption-1-regular' : 'body-2-regular'}
|
|
220
|
-
style={{ color:
|
|
221
|
+
style={{ color: tokens.mutedForeground }}
|
|
221
222
|
numberOfLines={descriptionLines === 0 ? undefined : descriptionLines}
|
|
222
223
|
>
|
|
223
224
|
{description}
|
|
@@ -228,7 +229,7 @@ export const GroupedSectionItem = memo<GroupedSectionItemProps>(function Grouped
|
|
|
228
229
|
{value ? (
|
|
229
230
|
<Text
|
|
230
231
|
variant={compact ? 'body-regular' : 'body-2-regular'}
|
|
231
|
-
style={{ color:
|
|
232
|
+
style={{ color: tokens.mutedForeground }}
|
|
232
233
|
numberOfLines={1}
|
|
233
234
|
>
|
|
234
235
|
{value}
|
|
@@ -239,7 +240,7 @@ export const GroupedSectionItem = memo<GroupedSectionItemProps>(function Grouped
|
|
|
239
240
|
|
|
240
241
|
{rightElement}
|
|
241
242
|
|
|
242
|
-
{hasChevron ? <ChevronRightIcon size="sm" fill={
|
|
243
|
+
{hasChevron ? <ChevronRightIcon size="sm" fill={tokens.faintForeground} /> : null}
|
|
243
244
|
</View>
|
|
244
245
|
);
|
|
245
246
|
|
|
@@ -250,7 +251,7 @@ export const GroupedSectionItem = memo<GroupedSectionItemProps>(function Grouped
|
|
|
250
251
|
onPressIn={isDisabled ? undefined : onPressIn}
|
|
251
252
|
onPressOut={isDisabled ? undefined : onPressOut}
|
|
252
253
|
disabled={isDisabled}
|
|
253
|
-
android_ripple={{ color:
|
|
254
|
+
android_ripple={{ color: tokens.border }}
|
|
254
255
|
accessibilityRole={role}
|
|
255
256
|
accessibilityLabel={label}
|
|
256
257
|
accessibilityHint={accessibilityHint}
|
|
@@ -3,7 +3,7 @@ import { View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { Chip } from '../chip';
|
|
5
5
|
import { RangeFields } from '../stay-filters/RangeFields';
|
|
6
|
-
import {
|
|
6
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
7
7
|
import { Text } from '../typography';
|
|
8
8
|
import { DEFAULT_BUDGET_PRESETS } from './constants';
|
|
9
9
|
import { useMessages } from '../locale/messages';
|
|
@@ -63,7 +63,7 @@ function BudgetPickerComponent({
|
|
|
63
63
|
const minLabel = minLabelProp ?? messages.minimum;
|
|
64
64
|
const maxLabel = maxLabelProp ?? messages.maximum;
|
|
65
65
|
const presetsLabel = presetsLabelProp ?? messages.budgetPresets;
|
|
66
|
-
const
|
|
66
|
+
const tokens = useColorTokens();
|
|
67
67
|
const items = presets ?? DEFAULT_BUDGET_PRESETS[period];
|
|
68
68
|
const heading = title ?? (period === 'month' ? messages.monthlyBudget : messages.price);
|
|
69
69
|
const sub =
|
|
@@ -83,11 +83,11 @@ function BudgetPickerComponent({
|
|
|
83
83
|
return (
|
|
84
84
|
<View testID={testID} style={[{ gap: 16 }, style]}>
|
|
85
85
|
<View style={{ gap: 2 }}>
|
|
86
|
-
<Text variant="body-semibold" role="heading" style={{ color:
|
|
86
|
+
<Text variant="body-semibold" role="heading" style={{ color: tokens.foreground }}>
|
|
87
87
|
{heading}
|
|
88
88
|
</Text>
|
|
89
89
|
{sub ? (
|
|
90
|
-
<Text variant="body-2-regular" style={{ color:
|
|
90
|
+
<Text variant="body-2-regular" style={{ color: tokens.mutedForeground }}>
|
|
91
91
|
{sub}
|
|
92
92
|
</Text>
|
|
93
93
|
) : null}
|
|
@@ -3,7 +3,7 @@ import { View } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { Chip } from '../chip';
|
|
5
5
|
import { Calendar } from '../date-picker';
|
|
6
|
-
import {
|
|
6
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
7
7
|
import { Text } from '../typography';
|
|
8
8
|
import { contractLengthOptions } from './constants';
|
|
9
9
|
import { useMessages } from '../locale/messages';
|
|
@@ -41,12 +41,12 @@ function MoveInPickerComponent({
|
|
|
41
41
|
testID,
|
|
42
42
|
}: MoveInPickerProps) {
|
|
43
43
|
const { messages } = useMessages(HOME_SEARCH_MESSAGES, locale);
|
|
44
|
-
const
|
|
44
|
+
const tokens = useColorTokens();
|
|
45
45
|
const labels = { ...messages.moveInLabels, ...labelOverrides };
|
|
46
46
|
const contractLengths = contractLengthsProp ?? contractLengthOptions(messages);
|
|
47
47
|
|
|
48
48
|
const heading = (text: string) => (
|
|
49
|
-
<Text variant="body-semibold" role="heading" style={{ color:
|
|
49
|
+
<Text variant="body-semibold" role="heading" style={{ color: tokens.foreground }}>
|
|
50
50
|
{text}
|
|
51
51
|
</Text>
|
|
52
52
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
5
5
|
import { borderRadius } from '../styles/tokens';
|
|
6
6
|
import { iconSide } from '../icons/shared';
|
|
7
7
|
import type { IconCircleProps } from './types';
|
|
@@ -12,8 +12,8 @@ const IconCircleComponent = function IconCircle({
|
|
|
12
12
|
style,
|
|
13
13
|
iconStyle,
|
|
14
14
|
}: IconCircleProps) {
|
|
15
|
-
const
|
|
16
|
-
const color = StyleSheet.flatten(iconStyle)?.color ??
|
|
15
|
+
const tokens = useColorTokens();
|
|
16
|
+
const color = StyleSheet.flatten(iconStyle)?.color ?? tokens.primary;
|
|
17
17
|
// Canonical slots receive numeric geometry and a string fill. Keep the
|
|
18
18
|
// existing style passthrough for richer glyphs (including native ColorValue
|
|
19
19
|
// objects, which those glyphs resolve from style rather than a string fill).
|
|
@@ -21,7 +21,7 @@ const IconCircleComponent = function IconCircle({
|
|
|
21
21
|
width: iconSide(size),
|
|
22
22
|
height: iconSide(size),
|
|
23
23
|
fill: typeof color === 'string' ? color : undefined,
|
|
24
|
-
style: [{ color:
|
|
24
|
+
style: [{ color: tokens.primary }, iconStyle],
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
return (
|
|
@@ -33,7 +33,7 @@ const IconCircleComponent = function IconCircle({
|
|
|
33
33
|
borderRadius: borderRadius.full,
|
|
34
34
|
width: size === 'lg' ? 52 : 64,
|
|
35
35
|
height: size === 'lg' ? 52 : 64,
|
|
36
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: tokens.primarySubtle,
|
|
37
37
|
},
|
|
38
38
|
style,
|
|
39
39
|
]}
|
package/src/icons/shared.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { StyleSheet, type ColorValue, type StyleProp, type ViewStyle } from 'rea
|
|
|
3
3
|
import type { PathProps, SvgProps } from 'react-native-svg';
|
|
4
4
|
import { Defs, LinearGradient, Stop } from 'react-native-svg';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
7
7
|
import { gradients } from '../styles/tokens';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -53,13 +53,13 @@ export type CommonSVGProps = Omit<Props, 'fill' | 'size' | 'gradient' | 'style'>
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export function useCommonSVGProps(props: Props): CommonSVGProps {
|
|
56
|
-
const
|
|
56
|
+
const tokens = useColorTokens();
|
|
57
57
|
const reactId = React.useId();
|
|
58
58
|
const { fill, size, gradient, ...rest } = props;
|
|
59
59
|
const style: IconStyle | null | undefined = StyleSheet.flatten(rest.style);
|
|
60
60
|
// A number is the side itself; a rung name is looked up (a number used as a rung key drew NaN).
|
|
61
61
|
const _size = Number(size !== undefined ? iconSide(size) : rest.width || sizes.md);
|
|
62
|
-
let _fill: PathProps['fill'] = fill ?? style?.color ??
|
|
62
|
+
let _fill: PathProps['fill'] = fill ?? style?.color ?? tokens.primary;
|
|
63
63
|
let gradientDef: React.JSX.Element | null = null;
|
|
64
64
|
|
|
65
65
|
if (gradient && gradients[gradient]) {
|
package/src/kbd/Kbd.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { useBloomAppearance } from '../appearance';
|
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
6
6
|
import { Text, TYPE_SCALE } from '../typography';
|
|
7
7
|
import { borderRadius } from '../styles/tokens';
|
|
8
8
|
import type { KbdProps } from './types';
|
|
@@ -43,7 +43,7 @@ const KbdComponent = function Kbd({
|
|
|
43
43
|
);
|
|
44
44
|
const size: NonNullable<KbdProps['size']> =
|
|
45
45
|
inheritedSize === 'xs' || inheritedSize === 'sm' ? 'sm' : 'md';
|
|
46
|
-
const
|
|
46
|
+
const tokens = useColorTokens();
|
|
47
47
|
const cfg = SIZE_CONFIG[size];
|
|
48
48
|
|
|
49
49
|
return (
|
|
@@ -59,7 +59,7 @@ const KbdComponent = function Kbd({
|
|
|
59
59
|
paddingRight: PADDING_HORIZONTAL,
|
|
60
60
|
paddingTop: cfg.paddingVertical,
|
|
61
61
|
paddingBottom: cfg.paddingVertical,
|
|
62
|
-
backgroundColor:
|
|
62
|
+
backgroundColor: tokens.popover,
|
|
63
63
|
},
|
|
64
64
|
style,
|
|
65
65
|
]}
|
|
@@ -70,7 +70,7 @@ const KbdComponent = function Kbd({
|
|
|
70
70
|
{
|
|
71
71
|
...cfg.type,
|
|
72
72
|
letterSpacing: 0,
|
|
73
|
-
color:
|
|
73
|
+
color: tokens.mutedForeground,
|
|
74
74
|
textAlign: 'center',
|
|
75
75
|
},
|
|
76
76
|
textStyle,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import { useCommonMessages } from '../locale/common-messages';
|
|
12
12
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
13
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
13
14
|
import { useTheme } from '../theme/use-theme';
|
|
14
15
|
import { BUTTON_SHADOW } from '../button/shared';
|
|
15
16
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
@@ -90,7 +91,8 @@ export function ResizeHandle({
|
|
|
90
91
|
}, []);
|
|
91
92
|
const direction = useDirectionProps();
|
|
92
93
|
const horizontal = orientation === 'horizontal';
|
|
93
|
-
const
|
|
94
|
+
const tokens = useColorTokens();
|
|
95
|
+
const { isDark } = useTheme();
|
|
94
96
|
const common = useCommonMessages();
|
|
95
97
|
const label = labelProp ?? common.resizePanels;
|
|
96
98
|
const [gripY, setGripY] = useState<number | null>(null);
|
|
@@ -248,8 +250,8 @@ export function ResizeHandle({
|
|
|
248
250
|
: horizontal
|
|
249
251
|
? { left: gripY ?? '50%' }
|
|
250
252
|
: { top: gripY ?? '50%' }),
|
|
251
|
-
borderColor:
|
|
252
|
-
backgroundColor:
|
|
253
|
+
borderColor: tokens.input,
|
|
254
|
+
backgroundColor: tokens.card,
|
|
253
255
|
boxShadow: isDark ? BUTTON_SHADOW.dark : BUTTON_SHADOW.light,
|
|
254
256
|
...(IS_WEB ? null : { opacity: dragging ? 1 : 0 }),
|
|
255
257
|
};
|
|
@@ -299,7 +301,7 @@ export function ResizeHandle({
|
|
|
299
301
|
width: horizontal ? RESIZE_HANDLE.pill.length : RESIZE_HANDLE.pill.depth,
|
|
300
302
|
height: horizontal ? RESIZE_HANDLE.pill.depth : RESIZE_HANDLE.pill.length,
|
|
301
303
|
borderRadius: RESIZE_HANDLE.pill.depth / 2,
|
|
302
|
-
backgroundColor:
|
|
304
|
+
backgroundColor: tokens.foreground,
|
|
303
305
|
...(IS_WEB
|
|
304
306
|
? null
|
|
305
307
|
: { opacity: dragging ? PILL_DRAG_OPACITY : hovered ? PILL_HOVER_OPACITY : 0 }),
|
|
@@ -316,7 +318,7 @@ export function ResizeHandle({
|
|
|
316
318
|
key={line}
|
|
317
319
|
style={[
|
|
318
320
|
horizontal ? HANDLE_STYLES.lineAcross : HANDLE_STYLES.lineDown,
|
|
319
|
-
{ backgroundColor:
|
|
321
|
+
{ backgroundColor: tokens.faintForeground },
|
|
320
322
|
]}
|
|
321
323
|
/>
|
|
322
324
|
))}
|
|
@@ -25,7 +25,7 @@ import { StyleSheet, View } from 'react-native';
|
|
|
25
25
|
import { openExternal } from '../hooks/link-activation';
|
|
26
26
|
|
|
27
27
|
import { Card } from '../card';
|
|
28
|
-
import {
|
|
28
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
29
29
|
import { fontSize, space } from '../styles/tokens';
|
|
30
30
|
import { Text } from '../typography';
|
|
31
31
|
import { TYPE_SCALE } from '../typography/scale';
|
|
@@ -105,7 +105,7 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
105
105
|
onPress,
|
|
106
106
|
style,
|
|
107
107
|
}) => {
|
|
108
|
-
const
|
|
108
|
+
const tokens = useColorTokens();
|
|
109
109
|
|
|
110
110
|
const { displaySiteName, displayTitle } = useMemo(() => {
|
|
111
111
|
const host = hostnameOf(url);
|
|
@@ -158,7 +158,7 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
158
158
|
// by the consumer via `style`), letting the text block stay a
|
|
159
159
|
// compact footer. Default mode: fixed intrinsic cover height.
|
|
160
160
|
coverFill ? styles.coverFill : styles.coverFixed,
|
|
161
|
-
{ backgroundColor:
|
|
161
|
+
{ backgroundColor: tokens.popover },
|
|
162
162
|
]}
|
|
163
163
|
/>
|
|
164
164
|
) : null}
|
|
@@ -168,14 +168,14 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
168
168
|
<Text
|
|
169
169
|
variant="caption-1-medium"
|
|
170
170
|
numberOfLines={1}
|
|
171
|
-
style={[styles.siteName, { color:
|
|
171
|
+
style={[styles.siteName, { color: tokens.mutedForeground }]}
|
|
172
172
|
>
|
|
173
173
|
{displaySiteName}
|
|
174
174
|
</Text>
|
|
175
175
|
) : null}
|
|
176
176
|
|
|
177
177
|
{displayTitle ? (
|
|
178
|
-
<Text numberOfLines={2} style={[styles.title, { color:
|
|
178
|
+
<Text numberOfLines={2} style={[styles.title, { color: tokens.foreground }]}>
|
|
179
179
|
{displayTitle}
|
|
180
180
|
</Text>
|
|
181
181
|
) : null}
|
|
@@ -184,7 +184,7 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
184
184
|
<Text
|
|
185
185
|
variant="body-2-regular"
|
|
186
186
|
numberOfLines={2}
|
|
187
|
-
style={[styles.description, { color:
|
|
187
|
+
style={[styles.description, { color: tokens.mutedForeground }]}
|
|
188
188
|
>
|
|
189
189
|
{description}
|
|
190
190
|
</Text>
|
|
@@ -194,7 +194,7 @@ const LinkPreviewCardComponent: React.FC<LinkPreviewCardProps> = ({
|
|
|
194
194
|
<Text
|
|
195
195
|
variant="caption-1-medium"
|
|
196
196
|
numberOfLines={1}
|
|
197
|
-
style={[styles.author, { color:
|
|
197
|
+
style={[styles.author, { color: tokens.mutedForeground }]}
|
|
198
198
|
>
|
|
199
199
|
{author}
|
|
200
200
|
</Text>
|
package/src/list/ListBase.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { Divider } from '../divider';
|
|
|
4
4
|
import { CHAT_PEOPLE_MESSAGES } from '../chat-people/messages';
|
|
5
5
|
import { useMessages } from '../locale/messages';
|
|
6
6
|
import { useSurfaceFill } from '../styles/surface-levels';
|
|
7
|
-
import {
|
|
7
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
8
8
|
import * as Skeleton from '../skeleton';
|
|
9
9
|
import { Text } from '../typography';
|
|
10
10
|
import type { ListProps } from './types';
|
|
@@ -37,7 +37,7 @@ export function createList({
|
|
|
37
37
|
const groups = (sections ?? [{ id: 'all', items: items ?? [] }]).filter(
|
|
38
38
|
(section) => section.items.length > 0,
|
|
39
39
|
);
|
|
40
|
-
const
|
|
40
|
+
const tokens = useColorTokens();
|
|
41
41
|
const fill = useSurfaceFill();
|
|
42
42
|
const { messages } = useMessages(CHAT_PEOPLE_MESSAGES);
|
|
43
43
|
const scroller = useRef<ComponentRef<typeof ScrollView> | null>(null);
|
|
@@ -185,10 +185,7 @@ export function createList({
|
|
|
185
185
|
<Text
|
|
186
186
|
variant={id === sectionIndex.activeId ? 'caption-2-bold' : 'caption-2-medium'}
|
|
187
187
|
style={{
|
|
188
|
-
color:
|
|
189
|
-
id === sectionIndex.activeId
|
|
190
|
-
? theme.colors.primary
|
|
191
|
-
: theme.colors.textSecondary,
|
|
188
|
+
color: id === sectionIndex.activeId ? tokens.primary : tokens.mutedForeground,
|
|
192
189
|
}}
|
|
193
190
|
>
|
|
194
191
|
{id}
|
package/src/list/ListPerson.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { CHAT_PEOPLE_MESSAGES } from '../chat-people/messages';
|
|
|
5
5
|
import { RiCheckLine } from '../icons/remix/RiCheckLine';
|
|
6
6
|
import { useMessages } from '../locale/messages';
|
|
7
7
|
import { useSurfaceFill } from '../styles/surface-levels';
|
|
8
|
-
import {
|
|
8
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
9
9
|
import { Text } from '../typography';
|
|
10
10
|
import type { ListCommonProps, ListItemShellProps, ListPersonData } from './types';
|
|
11
11
|
|
|
@@ -21,7 +21,7 @@ export function ListPerson({
|
|
|
21
21
|
}) {
|
|
22
22
|
const { messages } = useMessages(CHAT_PEOPLE_MESSAGES);
|
|
23
23
|
const fill = useSurfaceFill();
|
|
24
|
-
const
|
|
24
|
+
const tokens = useColorTokens();
|
|
25
25
|
const {
|
|
26
26
|
name,
|
|
27
27
|
avatar,
|
|
@@ -73,7 +73,7 @@ export function ListPerson({
|
|
|
73
73
|
<Text
|
|
74
74
|
variant="body-2-regular"
|
|
75
75
|
numberOfLines={1}
|
|
76
|
-
style={{ color:
|
|
76
|
+
style={{ color: tokens.mutedForeground }}
|
|
77
77
|
testID={id('subtitle')}
|
|
78
78
|
>
|
|
79
79
|
{subtitle}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
SegmentedControlItem,
|
|
14
14
|
SegmentedControlItemText,
|
|
15
15
|
} from '../segmented-control';
|
|
16
|
-
import {
|
|
16
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
17
17
|
import { useMessages } from '../locale/messages';
|
|
18
18
|
import { Text } from '../typography';
|
|
19
19
|
import { LISTING_EDITOR_MESSAGES, type ListingEditorMessages } from './messages';
|
|
@@ -60,7 +60,7 @@ function ListingPreviewPaneComponent({
|
|
|
60
60
|
const cardLabel = cardLabelProp ?? messages.card;
|
|
61
61
|
const pageLabel = pageLabelProp ?? messages.page;
|
|
62
62
|
const toggleLabel = toggleLabelProp ?? messages.previewAs;
|
|
63
|
-
const
|
|
63
|
+
const tokens = useColorTokens();
|
|
64
64
|
const [mode, setMode] = useControllableState<ListingPreviewMode>({
|
|
65
65
|
value: modeProp,
|
|
66
66
|
defaultValue: defaultMode,
|
|
@@ -78,17 +78,17 @@ function ListingPreviewPaneComponent({
|
|
|
78
78
|
paddingLeft: 20,
|
|
79
79
|
paddingRight: 20,
|
|
80
80
|
borderRadius: 20,
|
|
81
|
-
backgroundColor:
|
|
81
|
+
backgroundColor: tokens.surface,
|
|
82
82
|
},
|
|
83
83
|
style,
|
|
84
84
|
]}
|
|
85
85
|
>
|
|
86
86
|
<View style={{ gap: 2 }}>
|
|
87
|
-
<Text variant="headline-semibold" style={{ color:
|
|
87
|
+
<Text variant="headline-semibold" style={{ color: tokens.foreground }}>
|
|
88
88
|
{title}
|
|
89
89
|
</Text>
|
|
90
90
|
{description ? (
|
|
91
|
-
<Text variant="body-2-regular" style={{ color:
|
|
91
|
+
<Text variant="body-2-regular" style={{ color: tokens.mutedForeground }}>
|
|
92
92
|
{description}
|
|
93
93
|
</Text>
|
|
94
94
|
) : null}
|
|
@@ -134,12 +134,12 @@ function reviewsLabel(messages: ListingEditorMessages, count: number | string):
|
|
|
134
134
|
|
|
135
135
|
function PagePreview({ listing }: { listing: ListingPreviewData }) {
|
|
136
136
|
const { messages } = useMessages(LISTING_EDITOR_MESSAGES);
|
|
137
|
-
const
|
|
137
|
+
const tokens = useColorTokens();
|
|
138
138
|
const resolver = useImageResolver();
|
|
139
139
|
const cover = listing.photos[0]
|
|
140
140
|
? resolvePhoto(listing.photos[0], resolver, listing.photoVariant)
|
|
141
141
|
: undefined;
|
|
142
|
-
const hairline =
|
|
142
|
+
const hairline = tokens.border;
|
|
143
143
|
|
|
144
144
|
return (
|
|
145
145
|
<View
|
|
@@ -149,7 +149,7 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
|
|
|
149
149
|
borderRadius: 20,
|
|
150
150
|
borderWidth: 1,
|
|
151
151
|
borderColor: hairline,
|
|
152
|
-
backgroundColor:
|
|
152
|
+
backgroundColor: tokens.background,
|
|
153
153
|
overflow: 'hidden',
|
|
154
154
|
}}
|
|
155
155
|
>
|
|
@@ -157,7 +157,7 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
|
|
|
157
157
|
style={{
|
|
158
158
|
width: '100%',
|
|
159
159
|
aspectRatio: 4 / 3,
|
|
160
|
-
backgroundColor:
|
|
160
|
+
backgroundColor: tokens.surface,
|
|
161
161
|
}}
|
|
162
162
|
>
|
|
163
163
|
{cover ? (
|
|
@@ -183,12 +183,12 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
|
|
|
183
183
|
location={listing.location}
|
|
184
184
|
/>
|
|
185
185
|
{listing.facts && listing.facts.length > 0 ? (
|
|
186
|
-
<Text variant="body-2-regular" style={{ color:
|
|
186
|
+
<Text variant="body-2-regular" style={{ color: tokens.mutedForeground }}>
|
|
187
187
|
{listing.facts.map((fact) => fact.accessibilityLabel ?? fact.label).join(' · ')}
|
|
188
188
|
</Text>
|
|
189
189
|
) : null}
|
|
190
190
|
{listing.description ? (
|
|
191
|
-
<Text variant="body-regular" numberOfLines={6} style={{ color:
|
|
191
|
+
<Text variant="body-regular" numberOfLines={6} style={{ color: tokens.foreground }}>
|
|
192
192
|
{listing.description}
|
|
193
193
|
</Text>
|
|
194
194
|
) : null}
|
|
@@ -207,11 +207,11 @@ function PagePreview({ listing }: { listing: ListingPreviewData }) {
|
|
|
207
207
|
paddingRight: 16,
|
|
208
208
|
}}
|
|
209
209
|
>
|
|
210
|
-
<Text variant="headline-semibold" style={{ color:
|
|
210
|
+
<Text variant="headline-semibold" style={{ color: tokens.foreground }}>
|
|
211
211
|
{listing.price ?? listing.total}
|
|
212
212
|
</Text>
|
|
213
213
|
{listing.price && listing.priceUnit ? (
|
|
214
|
-
<Text variant="body-regular" style={{ color:
|
|
214
|
+
<Text variant="body-regular" style={{ color: tokens.mutedForeground }}>
|
|
215
215
|
{listing.priceUnit}
|
|
216
216
|
</Text>
|
|
217
217
|
) : null}
|