@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
|
@@ -9,7 +9,7 @@ import { useMessages } from '../locale/messages';
|
|
|
9
9
|
import { NotificationCenter } from '../notification-center';
|
|
10
10
|
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
11
11
|
import { borderRadius } from '../styles/tokens';
|
|
12
|
-
import {
|
|
12
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
13
13
|
import { Text } from '../typography';
|
|
14
14
|
import { APP_SHELL_MESSAGES } from './messages';
|
|
15
15
|
import type { NotificationBellProps } from './types';
|
|
@@ -37,7 +37,7 @@ const NotificationBellComponent: React.FC<NotificationBellProps> = ({
|
|
|
37
37
|
}) => {
|
|
38
38
|
const { messages } = useMessages(APP_SHELL_MESSAGES);
|
|
39
39
|
const accessibilityLabel = accessibilityLabelProp ?? messages.notifications;
|
|
40
|
-
const
|
|
40
|
+
const tokens = useColorTokens();
|
|
41
41
|
const rtl = useIsRtl();
|
|
42
42
|
const dirProps = useDirectionProps();
|
|
43
43
|
const [open, setOpen] = useState(false);
|
|
@@ -45,12 +45,12 @@ const NotificationBellComponent: React.FC<NotificationBellProps> = ({
|
|
|
45
45
|
const unread = unreadCount ?? notifications.filter((item) => item.unread).length;
|
|
46
46
|
const palette = useMemo(() => {
|
|
47
47
|
return {
|
|
48
|
-
badge:
|
|
49
|
-
badgeForeground:
|
|
48
|
+
badge: tokens.error,
|
|
49
|
+
badgeForeground: tokens.errorForeground,
|
|
50
50
|
// `border-background-primary-default`: the secondary button's own fill.
|
|
51
|
-
ring:
|
|
51
|
+
ring: tokens.card,
|
|
52
52
|
};
|
|
53
|
-
}, [
|
|
53
|
+
}, [tokens]);
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
56
|
<Popover open={open} onOpenChange={setOpen}>
|
|
@@ -5,7 +5,7 @@ import { interactiveWebCss, useInteractiveWebCss } from '../styles/interactive-w
|
|
|
5
5
|
import { useRingOffsetStyle } from '../styles/surface-levels';
|
|
6
6
|
import { Platform, Pressable, View } from 'react-native';
|
|
7
7
|
import { RiDraggable } from '../icons/remix/RiDraggable';
|
|
8
|
-
import {
|
|
8
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
9
9
|
import { useMessages } from '../locale/messages';
|
|
10
10
|
import { APP_SHELL_MESSAGES } from './messages';
|
|
11
11
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
@@ -40,7 +40,7 @@ export function PanelReorderHandle({
|
|
|
40
40
|
pointer: SharedValue<{ x: number; y: number }>;
|
|
41
41
|
testID?: string;
|
|
42
42
|
}) {
|
|
43
|
-
const
|
|
43
|
+
const tokens = useColorTokens();
|
|
44
44
|
const ringOffset = useRingOffsetStyle();
|
|
45
45
|
useInteractiveWebCss('bloom-panel-reorder', HANDLE_CSS);
|
|
46
46
|
const { messages } = useMessages(APP_SHELL_MESSAGES);
|
|
@@ -101,12 +101,12 @@ export function PanelReorderHandle({
|
|
|
101
101
|
alignItems: 'center',
|
|
102
102
|
justifyContent: 'center',
|
|
103
103
|
borderRadius: 6,
|
|
104
|
-
'--bloom-panel-reorder-ring':
|
|
104
|
+
'--bloom-panel-reorder-ring': tokens.primary,
|
|
105
105
|
...ringOffset,
|
|
106
106
|
} as WebCssStyle
|
|
107
107
|
}
|
|
108
108
|
>
|
|
109
|
-
<RiDraggable width={18} height={18} fill={
|
|
109
|
+
<RiDraggable width={18} height={18} fill={tokens.mutedForeground} />
|
|
110
110
|
</Pressable>
|
|
111
111
|
</View>
|
|
112
112
|
</GestureDetector>
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { Avatar } from '../avatar';
|
|
15
15
|
import type { AvatarMotion } from '../avatar/types';
|
|
16
16
|
import { useMessages } from '../locale/messages';
|
|
17
|
-
import {
|
|
17
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
18
18
|
import { fontSize } from '../styles/tokens';
|
|
19
19
|
import { computeClusterLayout } from './cluster-layout';
|
|
20
20
|
import { computeConversationLayout } from './conversation-layout';
|
|
@@ -227,7 +227,7 @@ const AvatarGroupBaseComponent: React.FC<AvatarGroupBaseProps> = ({
|
|
|
227
227
|
testID,
|
|
228
228
|
hoverHandlers,
|
|
229
229
|
}) => {
|
|
230
|
-
const
|
|
230
|
+
const tokens = useColorTokens();
|
|
231
231
|
const isCluster = layout === 'cluster' || layout === 'conversation';
|
|
232
232
|
const ringWidth = ringWidthProp ?? DEFAULT_RING_WIDTH;
|
|
233
233
|
const isRow = layout === 'row';
|
|
@@ -235,8 +235,8 @@ const AvatarGroupBaseComponent: React.FC<AvatarGroupBaseProps> = ({
|
|
|
235
235
|
// The ring is the thin separator drawn between overlapping avatars. It
|
|
236
236
|
// defaults to the page background so avatars read as cleanly punched out of
|
|
237
237
|
// the surface behind them — matching the original Mention stack, which used
|
|
238
|
-
// `
|
|
239
|
-
const ringFill = ringColor ??
|
|
238
|
+
// `tokens.background`, not a large `card`-colored ring cell.
|
|
239
|
+
const ringFill = ringColor ?? tokens.background;
|
|
240
240
|
|
|
241
241
|
const effectiveMax = max ?? DEFAULT_MAX;
|
|
242
242
|
const effectiveOverlap = overlap ?? Math.round(size * DEFAULT_OVERLAP_RATIO);
|
|
@@ -561,7 +561,7 @@ function OverflowCircle({
|
|
|
561
561
|
textStyle: TextStyle;
|
|
562
562
|
onPress?: () => void;
|
|
563
563
|
}) {
|
|
564
|
-
const
|
|
564
|
+
const tokens = useColorTokens();
|
|
565
565
|
const { messages } = useMessages(AVATAR_GROUP_MESSAGES);
|
|
566
566
|
|
|
567
567
|
// A solid "+N" count circle: secondary-text-colored fill with white text,
|
|
@@ -569,7 +569,7 @@ function OverflowCircle({
|
|
|
569
569
|
// (margin for the facepile, absolute coords for the cluster) is supplied by
|
|
570
570
|
// the caller via `wrapperStyle`.
|
|
571
571
|
const circle = (
|
|
572
|
-
<View style={[cellStyle, { backgroundColor:
|
|
572
|
+
<View style={[cellStyle, { backgroundColor: tokens.mutedForeground }]}>
|
|
573
573
|
<Text allowFontScaling={false} style={textStyle}>
|
|
574
574
|
+{count}
|
|
575
575
|
</Text>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { EmptyState } from '../empty-state';
|
|
3
3
|
import { useMessages } from '../locale/messages';
|
|
4
|
-
import {
|
|
4
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
5
5
|
import { CHAT_LIST_MESSAGES } from './messages';
|
|
6
6
|
import { HighlightedText } from './HighlightedText';
|
|
7
7
|
import { chatMarker, groupSearchResults } from './shared';
|
|
@@ -20,7 +20,7 @@ export function createChatSearchResults({ List }: { List: typeof import('../list
|
|
|
20
20
|
testID,
|
|
21
21
|
}: ChatSearchResultsProps) {
|
|
22
22
|
const { messages } = useMessages(CHAT_LIST_MESSAGES);
|
|
23
|
-
const
|
|
23
|
+
const tokens = useColorTokens();
|
|
24
24
|
const text = { ...messages.search, ...labels };
|
|
25
25
|
return (
|
|
26
26
|
<List
|
|
@@ -68,7 +68,7 @@ export function createChatSearchResults({ List }: { List: typeof import('../list
|
|
|
68
68
|
<badge.icon
|
|
69
69
|
width={14}
|
|
70
70
|
height={14}
|
|
71
|
-
fill={badge.accent ?
|
|
71
|
+
fill={badge.accent ? tokens.primary : tokens.mutedForeground}
|
|
72
72
|
testID={testID ? `${testID}-result-${result.id}-marker` : undefined}
|
|
73
73
|
/>
|
|
74
74
|
) : null}
|
|
@@ -78,7 +78,7 @@ export function createChatSearchResults({ List }: { List: typeof import('../list
|
|
|
78
78
|
text={result.detail}
|
|
79
79
|
query={query}
|
|
80
80
|
variant="body-2-regular"
|
|
81
|
-
color={
|
|
81
|
+
color={tokens.mutedForeground}
|
|
82
82
|
numberOfLines={1}
|
|
83
83
|
testID={testID ? `${testID}-result-${result.id}-detail` : undefined}
|
|
84
84
|
/>
|
|
@@ -9,7 +9,7 @@ import { useRingOffsetStyle } from '../styles/surface-levels';
|
|
|
9
9
|
import { DISABLED_OPACITY, space } from '../styles/tokens';
|
|
10
10
|
import { webDataSet } from '../styles/web-data';
|
|
11
11
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
12
|
-
import {
|
|
12
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
13
13
|
import type { ChoiceListProps } from './types';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -60,7 +60,7 @@ export function ChoiceList<Value extends string = string>({
|
|
|
60
60
|
optionStyle,
|
|
61
61
|
testID,
|
|
62
62
|
}: ChoiceListProps<Value>) {
|
|
63
|
-
const
|
|
63
|
+
const tokens = useColorTokens();
|
|
64
64
|
const rtl = useIsRtl();
|
|
65
65
|
const direction = useDirectionProps();
|
|
66
66
|
const ringOffset = useRingOffsetStyle();
|
|
@@ -92,7 +92,7 @@ export function ChoiceList<Value extends string = string>({
|
|
|
92
92
|
[orientation],
|
|
93
93
|
);
|
|
94
94
|
const optionLook: WebCssStyle = {
|
|
95
|
-
'--bloom-choice-list-ring':
|
|
95
|
+
'--bloom-choice-list-ring': tokens.primary,
|
|
96
96
|
...ringOffset,
|
|
97
97
|
};
|
|
98
98
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { ChoiceList } from '../choice-list';
|
|
3
|
-
import {
|
|
3
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
4
4
|
import type { ColorSwatchPickerProps } from './types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -24,7 +24,7 @@ export function ColorSwatchPicker({
|
|
|
24
24
|
style,
|
|
25
25
|
testID,
|
|
26
26
|
}: ColorSwatchPickerProps) {
|
|
27
|
-
const
|
|
27
|
+
const tokens = useColorTokens();
|
|
28
28
|
const ring = 2;
|
|
29
29
|
const gap = 3;
|
|
30
30
|
const outer = size + 2 * (ring + gap);
|
|
@@ -41,7 +41,7 @@ export function ColorSwatchPicker({
|
|
|
41
41
|
height: outer,
|
|
42
42
|
borderRadius: outer / 2,
|
|
43
43
|
borderWidth: ring,
|
|
44
|
-
borderColor: selected ?
|
|
44
|
+
borderColor: selected ? tokens.foreground : 'transparent',
|
|
45
45
|
alignItems: 'center',
|
|
46
46
|
justifyContent: 'center',
|
|
47
47
|
}}
|
|
@@ -53,7 +53,7 @@ export function ColorSwatchPicker({
|
|
|
53
53
|
borderRadius: size / 2,
|
|
54
54
|
backgroundColor: option.value,
|
|
55
55
|
borderWidth: 1,
|
|
56
|
-
borderColor:
|
|
56
|
+
borderColor: tokens.border,
|
|
57
57
|
}}
|
|
58
58
|
/>
|
|
59
59
|
</View>
|
|
@@ -11,7 +11,7 @@ import Animated, {
|
|
|
11
11
|
withTiming,
|
|
12
12
|
} from 'react-native-reanimated';
|
|
13
13
|
|
|
14
|
-
import {
|
|
14
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
15
15
|
import { ConnectionDotsBase } from './ConnectionDotsBase';
|
|
16
16
|
import type { ConnectionDotsProps } from './types';
|
|
17
17
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
@@ -68,7 +68,7 @@ const ShimmerDot: React.FC<ShimmerDotProps> = ({ phase, color, size, driver }) =
|
|
|
68
68
|
/**
|
|
69
69
|
* Native `ConnectionDots` — a consent/linking header rendering
|
|
70
70
|
* `left · (animated ellipsis dots) · right`. The dots run a looping opacity wave
|
|
71
|
-
* in the brand color (`fill-brand` → `
|
|
71
|
+
* in the brand color (`fill-brand` → `tokens.primary`). Reduced-motion
|
|
72
72
|
* (Reanimated's `useReducedMotion`, or the `reducedMotion` prop) renders the
|
|
73
73
|
* dots static at full opacity.
|
|
74
74
|
*/
|
|
@@ -81,10 +81,10 @@ const ConnectionDotsComponent: React.FC<ConnectionDotsProps> = ({
|
|
|
81
81
|
style,
|
|
82
82
|
reducedMotion,
|
|
83
83
|
}) => {
|
|
84
|
-
const
|
|
84
|
+
const tokens = useColorTokens();
|
|
85
85
|
const systemReduceMotion = usePrefersReducedMotion();
|
|
86
86
|
const reduce = reducedMotion ?? systemReduceMotion;
|
|
87
|
-
const color =
|
|
87
|
+
const color = tokens.primary;
|
|
88
88
|
|
|
89
89
|
const driver = useSharedValue(0);
|
|
90
90
|
|
|
@@ -4,7 +4,7 @@ import { View, type ViewStyle } from 'react-native';
|
|
|
4
4
|
|
|
5
5
|
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
6
6
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
7
|
-
import {
|
|
7
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
8
8
|
import { ConnectionDotsBase } from './ConnectionDotsBase';
|
|
9
9
|
import type { ConnectionDotsProps } from './types';
|
|
10
10
|
import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
|
|
@@ -43,7 +43,7 @@ function useKeyframes(): void {
|
|
|
43
43
|
* `react-native-reanimated`, which cannot ship to a web bundle. This fork drives
|
|
44
44
|
* the same motion with a CSS `@keyframes` animation (injected once into
|
|
45
45
|
* `<head>`) and a per-dot `animation-delay`. Brand color comes from the
|
|
46
|
-
* `fill-brand` role (`
|
|
46
|
+
* `fill-brand` role (`tokens.primary`). Reduced-motion (the `reducedMotion`
|
|
47
47
|
* prop, the JS `matchMedia` gate, or the CSS media query) renders static dots.
|
|
48
48
|
*/
|
|
49
49
|
const ConnectionDotsComponent: React.FC<ConnectionDotsProps> = ({
|
|
@@ -55,11 +55,11 @@ const ConnectionDotsComponent: React.FC<ConnectionDotsProps> = ({
|
|
|
55
55
|
style,
|
|
56
56
|
reducedMotion,
|
|
57
57
|
}) => {
|
|
58
|
-
const
|
|
58
|
+
const tokens = useColorTokens();
|
|
59
59
|
useKeyframes();
|
|
60
60
|
const systemReduceMotion = usePrefersReducedMotion();
|
|
61
61
|
const reduce = reducedMotion ?? systemReduceMotion;
|
|
62
|
-
const color =
|
|
62
|
+
const color = tokens.primary;
|
|
63
63
|
|
|
64
64
|
const count = Math.max(1, Math.floor(dotCount));
|
|
65
65
|
|
|
@@ -7,7 +7,7 @@ import { Text } from '../typography';
|
|
|
7
7
|
import { useCommonMessages } from '../locale/common-messages';
|
|
8
8
|
import { useMessages } from '../locale/messages';
|
|
9
9
|
import { pointerEventsStyles } from '../styles/pointer-events';
|
|
10
|
-
import {
|
|
10
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
11
11
|
import { CoverImage } from './CoverImage';
|
|
12
12
|
import { CENTER_POSITION, clampPosition, dragCoverPosition, coverSourceIdentity } from './geometry';
|
|
13
13
|
import { COVER_HEADER_MESSAGES } from './messages';
|
|
@@ -35,7 +35,7 @@ function CoverHeaderComponent({
|
|
|
35
35
|
onChangeCover,
|
|
36
36
|
labels,
|
|
37
37
|
}: CoverHeaderProps) {
|
|
38
|
-
const
|
|
38
|
+
const tokens = useColorTokens();
|
|
39
39
|
const common = useCommonMessages();
|
|
40
40
|
const { messages } = useMessages(COVER_HEADER_MESSAGES);
|
|
41
41
|
const m = { ...messages, save: common.save, cancel: common.cancel, ...labels };
|
|
@@ -207,7 +207,7 @@ function CoverHeaderComponent({
|
|
|
207
207
|
right: 0,
|
|
208
208
|
height: coverHeight,
|
|
209
209
|
overflow: 'hidden',
|
|
210
|
-
backgroundColor:
|
|
210
|
+
backgroundColor: tokens.popover,
|
|
211
211
|
},
|
|
212
212
|
coverStyle,
|
|
213
213
|
]}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
SelectValue,
|
|
14
14
|
} from '../select';
|
|
15
15
|
import type { WebCssStyle } from '../styles/web-view-style';
|
|
16
|
-
import {
|
|
16
|
+
import { useColorTokens } from '../theme/color-tokens';
|
|
17
17
|
import type { DataTableSelectOption, DataTableSelectProps } from './types';
|
|
18
18
|
|
|
19
19
|
/** `size-[18px]` — an option icon. */
|
|
@@ -61,7 +61,7 @@ export function DataTableSelect({
|
|
|
61
61
|
disabled,
|
|
62
62
|
testID,
|
|
63
63
|
}: DataTableSelectProps) {
|
|
64
|
-
const
|
|
64
|
+
const tokens = useColorTokens();
|
|
65
65
|
const [value, setValue] = useControllableState<string | undefined>({
|
|
66
66
|
value: valueProp,
|
|
67
67
|
defaultValue,
|
|
@@ -82,7 +82,7 @@ export function DataTableSelect({
|
|
|
82
82
|
>
|
|
83
83
|
<SelectValue
|
|
84
84
|
leading={
|
|
85
|
-
current ? <OptionMark option={current} color={
|
|
85
|
+
current ? <OptionMark option={current} color={tokens.mutedForeground} /> : null
|
|
86
86
|
}
|
|
87
87
|
/>
|
|
88
88
|
<SelectIcon />
|
|
@@ -94,7 +94,7 @@ export function DataTableSelect({
|
|
|
94
94
|
<SelectItem
|
|
95
95
|
value={item.value}
|
|
96
96
|
label={item.label}
|
|
97
|
-
leading={<OptionMark option={item} color={
|
|
97
|
+
leading={<OptionMark option={item} color={tokens.mutedForeground} />}
|
|
98
98
|
>
|
|
99
99
|
<SelectItemText>{item.label}</SelectItemText>
|
|
100
100
|
</SelectItem>
|
|
@@ -104,6 +104,7 @@
|
|
|
104
104
|
--color-tertiary-foreground: var(--tertiary-foreground);
|
|
105
105
|
--color-muted: var(--muted);
|
|
106
106
|
--color-muted-foreground: var(--muted-foreground);
|
|
107
|
+
--color-faint-foreground: var(--faint-foreground);
|
|
107
108
|
--color-accent: var(--accent);
|
|
108
109
|
--color-accent-foreground: var(--accent-foreground);
|
|
109
110
|
--color-destructive: var(--destructive);
|