@oxy.so/bloom 23.8.0 → 23.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/so/oxy/bloom/AvatarLoops.kt +293 -0
- package/android/src/main/java/so/oxy/bloom/AvatarSurface.kt +351 -0
- package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +1 -1
- package/docs/agent-avatar.mdx +77 -1
- package/docs/bloom-language-classnames.mdx +11 -11
- package/docs/bloom-language-codemod.mdx +30 -5
- package/docs/bloom-language-for-agents.mdx +1 -1
- package/docs/bloom-language-modifiers.mdx +222 -77
- package/docs/bloom-language-nodes.mdx +43 -21
- package/docs/bloom-language-tokens.mdx +69 -14
- package/docs/bloom-language.mdx +148 -46
- package/docs/design-tokens.mdx +12 -2
- package/docs/no-nativewind.mdx +5 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/theme.mdx +37 -0
- package/lib/commonjs/accordion/Accordion.js +12 -12
- package/lib/commonjs/accordion/Accordion.js.map +1 -1
- package/lib/commonjs/accordion/Accordion.web.js +8 -8
- package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +267 -111
- package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js +75 -0
- package/lib/commonjs/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-loop.js +161 -0
- package/lib/commonjs/agent-avatar/vector-loop.js.map +1 -0
- package/lib/commonjs/agent-avatar/vector-visibility.js +4 -1
- package/lib/commonjs/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/commonjs/agent-log/AgentLog.js +131 -174
- package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
- package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
- package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
- package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
- package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/commonjs/app-shell/AppShell.js +5 -7
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/NotificationBell.js +9 -9
- package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
- package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
- package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/commonjs/blur/BlurIsland.js +112 -118
- package/lib/commonjs/blur/BlurIsland.js.map +1 -1
- package/lib/commonjs/button/Button.js +12 -22
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/button/GroupBase.js +35 -50
- package/lib/commonjs/button/GroupBase.js.map +1 -1
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/commonjs/choice-list/ChoiceList.js +5 -5
- package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +3 -3
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
- package/lib/commonjs/data-table/DataTableSelect.js +8 -8
- package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
- package/lib/commonjs/design-tokens/theme.css +1 -0
- package/lib/commonjs/design-tokens/tokens.json +390 -0
- package/lib/commonjs/dialog/DialogContent.js +5 -4
- package/lib/commonjs/dialog/DialogContent.js.map +1 -1
- package/lib/commonjs/dialog/DialogHeader.js +6 -5
- package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
- package/lib/commonjs/dialog/SheetShell.js +5 -4
- package/lib/commonjs/dialog/SheetShell.js.map +1 -1
- package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
- package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
- package/lib/commonjs/floating/lens/lens-cover.js +56 -0
- package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-frame.js +286 -0
- package/lib/commonjs/floating/lens/lens-frame.js.map +1 -0
- package/lib/commonjs/floating/lens/lens-material.js +1 -1
- package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
- package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
- package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
- package/lib/commonjs/home-search/BudgetPicker.js +8 -8
- package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
- package/lib/commonjs/home-search/MoveInPicker.js +7 -7
- package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
- package/lib/commonjs/icon-circle/IconCircle.js +14 -16
- package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
- package/lib/commonjs/icons/shared.js +3 -5
- package/lib/commonjs/icons/shared.js.map +1 -1
- package/lib/commonjs/kbd/Kbd.js +8 -8
- package/lib/commonjs/kbd/Kbd.js.map +1 -1
- package/lib/commonjs/layout/ResizeHandle.js +6 -5
- package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/commonjs/list/ListBase.js +3 -3
- package/lib/commonjs/list/ListBase.js.map +1 -1
- package/lib/commonjs/list/ListPerson.js +3 -3
- package/lib/commonjs/list/ListPerson.js.map +1 -1
- package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
- package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
- package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
- package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
- package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
- package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +24 -15
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +43 -24
- package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
- package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/commonjs/project-board/MemberAvatars.js +7 -9
- package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/commonjs/project-board/styles.js +2 -5
- package/lib/commonjs/project-board/styles.js.map +1 -1
- package/lib/commonjs/radio/RadioSwatch.js +5 -5
- package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
- package/lib/commonjs/rating/Rating.js +7 -7
- package/lib/commonjs/rating/Rating.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.js +8 -8
- package/lib/commonjs/rating/RatingBar.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.web.js +5 -5
- package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
- package/lib/commonjs/rating/RatingInput.js +9 -9
- package/lib/commonjs/rating/RatingInput.js.map +1 -1
- package/lib/commonjs/rating/RatingSummary.js +6 -6
- package/lib/commonjs/rating/RatingSummary.js.map +1 -1
- package/lib/commonjs/row-actions/RowActions.js +5 -5
- package/lib/commonjs/row-actions/RowActions.js.map +1 -1
- package/lib/commonjs/select/Select.js +5 -5
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/skeleton/Skeleton.js +22 -30
- package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
- package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/CountFilter.js +3 -3
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterSection.js +12 -12
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/commonjs/stay-search/GuestPicker.js +5 -5
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
- package/lib/commonjs/stepper/Stepper.js +11 -10
- package/lib/commonjs/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/stepper/StepperRow.js +12 -12
- package/lib/commonjs/stepper/StepperRow.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/commonjs/surface/Surface.js +64 -193
- package/lib/commonjs/surface/Surface.js.map +1 -1
- package/lib/commonjs/tab-bar/TabBarBase.js +18 -15
- package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
- package/lib/commonjs/task-list/TaskList.js +14 -15
- package/lib/commonjs/task-list/TaskList.js.map +1 -1
- package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
- package/lib/commonjs/theme/build-theme.js +39 -9
- package/lib/commonjs/theme/build-theme.js.map +1 -1
- package/lib/commonjs/theme/canonical-tokens.js +40 -0
- package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
- package/lib/commonjs/theme/color-policy.js +3 -0
- package/lib/commonjs/theme/color-policy.js.map +1 -1
- package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
- package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
- package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
- package/lib/commonjs/theme/color-tokens.js +32 -10
- package/lib/commonjs/theme/color-tokens.js.map +1 -1
- package/lib/commonjs/theme/color-utils.js +4 -0
- package/lib/commonjs/theme/color-utils.js.map +1 -1
- package/lib/commonjs/theme/default-token-vars.js +92 -0
- package/lib/commonjs/theme/default-token-vars.js.map +1 -0
- package/lib/commonjs/theme/index.js +6 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/index.web.js +6 -0
- package/lib/commonjs/theme/index.web.js.map +1 -1
- package/lib/commonjs/theme/prepaint-palettes.js +1 -5
- package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
- package/lib/commonjs/theme/token-registry.js +7 -28
- package/lib/commonjs/theme/token-registry.js.map +1 -1
- package/lib/commonjs/theme/use-theme-paint.js +28 -0
- package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
- package/lib/commonjs/typography/Typography.js +27 -27
- package/lib/commonjs/typography/Typography.js.map +1 -1
- package/lib/commonjs/web-search/WebSearch.js +18 -19
- package/lib/commonjs/web-search/WebSearch.js.map +1 -1
- package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
- package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
- package/lib/commonjs/wizard/WizardProgress.js +5 -5
- package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
- package/lib/module/accordion/Accordion.js +12 -12
- package/lib/module/accordion/Accordion.js.map +1 -1
- package/lib/module/accordion/Accordion.web.js +8 -8
- package/lib/module/accordion/Accordion.web.js.map +1 -1
- package/lib/module/agent-avatar/VectorCharacterAvatar.js +268 -112
- package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
- package/lib/module/agent-avatar/VectorNativeSurface.js +66 -0
- package/lib/module/agent-avatar/VectorNativeSurface.js.map +1 -0
- package/lib/module/agent-avatar/vector-loop.js +150 -0
- package/lib/module/agent-avatar/vector-loop.js.map +1 -0
- package/lib/module/agent-avatar/vector-visibility.js +3 -1
- package/lib/module/agent-avatar/vector-visibility.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/module/agent-creator/EmotionPicker.js +3 -5
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/module/agent-log/AgentLog.js +131 -174
- package/lib/module/agent-log/AgentLog.js.map +1 -1
- package/lib/module/agent-reply/AgentProfile.js +7 -10
- package/lib/module/agent-reply/AgentProfile.js.map +1 -1
- package/lib/module/agent-thinking/AgentThinking.js +8 -7
- package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +5 -7
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +73 -29
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/NotificationBell.js +9 -9
- package/lib/module/app-shell/NotificationBell.js.map +1 -1
- package/lib/module/app-shell/PanelReorderHandle.js +4 -6
- package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/blur/BlurIsland.js +112 -116
- package/lib/module/blur/BlurIsland.js.map +1 -1
- package/lib/module/button/Button.js +13 -23
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/button/GroupBase.js +37 -52
- package/lib/module/button/GroupBase.js.map +1 -1
- package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/module/choice-list/ChoiceList.js +5 -5
- package/lib/module/choice-list/ChoiceList.js.map +1 -1
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +3 -3
- package/lib/module/cover-header/CoverHeader.js.map +1 -1
- package/lib/module/data-table/DataTableSelect.js +8 -8
- package/lib/module/data-table/DataTableSelect.js.map +1 -1
- package/lib/module/design-tokens/theme.css +1 -0
- package/lib/module/design-tokens/tokens.json +390 -0
- package/lib/module/dialog/DialogContent.js +5 -4
- package/lib/module/dialog/DialogContent.js.map +1 -1
- package/lib/module/dialog/DialogHeader.js +6 -5
- package/lib/module/dialog/DialogHeader.js.map +1 -1
- package/lib/module/dialog/SheetShell.js +5 -4
- package/lib/module/dialog/SheetShell.js.map +1 -1
- package/lib/module/expandable-text/ExpandableText.js +3 -3
- package/lib/module/expandable-text/ExpandableText.js.map +1 -1
- package/lib/module/floating/lens/lens-cover.js +51 -0
- package/lib/module/floating/lens/lens-cover.js.map +1 -0
- package/lib/module/floating/lens/lens-frame.js +282 -0
- package/lib/module/floating/lens/lens-frame.js.map +1 -0
- package/lib/module/floating/lens/lens-material.js +1 -1
- package/lib/module/floating/lens/native-lens.js.map +1 -1
- package/lib/module/grouped-section/GroupedSection.js +16 -15
- package/lib/module/grouped-section/GroupedSection.js.map +1 -1
- package/lib/module/home-search/BudgetPicker.js +8 -8
- package/lib/module/home-search/BudgetPicker.js.map +1 -1
- package/lib/module/home-search/MoveInPicker.js +7 -7
- package/lib/module/home-search/MoveInPicker.js.map +1 -1
- package/lib/module/icon-circle/IconCircle.js +14 -16
- package/lib/module/icon-circle/IconCircle.js.map +1 -1
- package/lib/module/icons/shared.js +3 -5
- package/lib/module/icons/shared.js.map +1 -1
- package/lib/module/kbd/Kbd.js +8 -8
- package/lib/module/kbd/Kbd.js.map +1 -1
- package/lib/module/layout/ResizeHandle.js +6 -5
- package/lib/module/layout/ResizeHandle.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +24 -26
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/list/ListBase.js +3 -3
- package/lib/module/list/ListBase.js.map +1 -1
- package/lib/module/list/ListPerson.js +3 -3
- package/lib/module/list/ListPerson.js.map +1 -1
- package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/module/markdown/InlineMarkdown.js +9 -11
- package/lib/module/markdown/InlineMarkdown.js.map +1 -1
- package/lib/module/markdown/MarkdownBlocks.js +35 -43
- package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/module/notifications/NotificationsScreen.js +21 -27
- package/lib/module/notifications/NotificationsScreen.js.map +1 -1
- package/lib/module/overlay/OverlayInertBoundary.js +33 -12
- package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +24 -15
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +43 -24
- package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/module/phone-input/CountryCodeSelect.js +4 -4
- package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/module/project-board/MemberAvatars.js +7 -9
- package/lib/module/project-board/MemberAvatars.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +4 -7
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/module/project-board/styles.js +3 -6
- package/lib/module/project-board/styles.js.map +1 -1
- package/lib/module/radio/RadioSwatch.js +5 -5
- package/lib/module/radio/RadioSwatch.js.map +1 -1
- package/lib/module/rating/Rating.js +7 -7
- package/lib/module/rating/Rating.js.map +1 -1
- package/lib/module/rating/RatingBar.js +8 -8
- package/lib/module/rating/RatingBar.js.map +1 -1
- package/lib/module/rating/RatingBar.web.js +5 -5
- package/lib/module/rating/RatingBar.web.js.map +1 -1
- package/lib/module/rating/RatingInput.js +9 -9
- package/lib/module/rating/RatingInput.js.map +1 -1
- package/lib/module/rating/RatingSummary.js +6 -6
- package/lib/module/rating/RatingSummary.js.map +1 -1
- package/lib/module/row-actions/RowActions.js +5 -5
- package/lib/module/row-actions/RowActions.js.map +1 -1
- package/lib/module/select/Select.js +5 -5
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/skeleton/Skeleton.js +22 -30
- package/lib/module/skeleton/Skeleton.js.map +1 -1
- package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/module/stay-filters/CountFilter.js +3 -3
- package/lib/module/stay-filters/CountFilter.js.map +1 -1
- package/lib/module/stay-filters/FilterFooter.js +7 -7
- package/lib/module/stay-filters/FilterFooter.js.map +1 -1
- package/lib/module/stay-filters/FilterSection.js +12 -12
- package/lib/module/stay-filters/FilterSection.js.map +1 -1
- package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/module/stay-search/GuestPicker.js +5 -5
- package/lib/module/stay-search/GuestPicker.js.map +1 -1
- package/lib/module/stepper/Stepper.js +11 -10
- package/lib/module/stepper/Stepper.js.map +1 -1
- package/lib/module/stepper/StepperRow.js +12 -12
- package/lib/module/stepper/StepperRow.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/module/surface/Surface.js +65 -194
- package/lib/module/surface/Surface.js.map +1 -1
- package/lib/module/tab-bar/TabBarBase.js +18 -15
- package/lib/module/tab-bar/TabBarBase.js.map +1 -1
- package/lib/module/task-list/TaskList.js +14 -15
- package/lib/module/task-list/TaskList.js.map +1 -1
- package/lib/module/theme/BloomThemeProvider.js +208 -224
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/build-theme-from-seed.js +1 -1
- package/lib/module/theme/build-theme.js +38 -9
- package/lib/module/theme/build-theme.js.map +1 -1
- package/lib/module/theme/canonical-tokens.js +36 -0
- package/lib/module/theme/canonical-tokens.js.map +1 -0
- package/lib/module/theme/color-policy.js +3 -0
- package/lib/module/theme/color-policy.js.map +1 -1
- package/lib/module/theme/color-scope/resolve-scope.js +46 -5
- package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/module/theme/color-scope/use-scope.js +2 -6
- package/lib/module/theme/color-scope/use-scope.js.map +1 -1
- package/lib/module/theme/color-tokens.js +30 -8
- package/lib/module/theme/color-tokens.js.map +1 -1
- package/lib/module/theme/color-utils.js +4 -0
- package/lib/module/theme/color-utils.js.map +1 -1
- package/lib/module/theme/default-token-vars.js +88 -0
- package/lib/module/theme/default-token-vars.js.map +1 -0
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/index.web.js +1 -1
- package/lib/module/theme/index.web.js.map +1 -1
- package/lib/module/theme/prepaint-palettes.js +2 -6
- package/lib/module/theme/prepaint-palettes.js.map +1 -1
- package/lib/module/theme/token-registry.js +1 -27
- package/lib/module/theme/token-registry.js.map +1 -1
- package/lib/module/theme/use-theme-paint.js +30 -3
- package/lib/module/theme/use-theme-paint.js.map +1 -1
- package/lib/module/typography/Typography.js +27 -27
- package/lib/module/typography/Typography.js.map +1 -1
- package/lib/module/web-search/WebSearch.js +18 -19
- package/lib/module/web-search/WebSearch.js.map +1 -1
- package/lib/module/wizard/WizardFooterBase.js +10 -10
- package/lib/module/wizard/WizardFooterBase.js.map +1 -1
- package/lib/module/wizard/WizardProgress.js +5 -5
- package/lib/module/wizard/WizardProgress.js.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/commonjs/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
- package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
- package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
- package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts +75 -0
- package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts +93 -0
- package/lib/typescript/module/agent-avatar/vector-loop.d.ts.map +1 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts +2 -0
- package/lib/typescript/module/agent-avatar/vector-visibility.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts +1 -1
- package/lib/typescript/module/blur/BlurIsland.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.d.ts.map +1 -1
- package/lib/typescript/module/button/GroupBase.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts +52 -0
- package/lib/typescript/module/floating/lens/lens-frame.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/lens-material.d.ts +1 -1
- package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
- package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/theme/build-theme.d.ts +9 -0
- package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-utils.d.ts +3 -0
- package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/module/theme/index.d.ts +1 -1
- package/lib/typescript/module/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/index.web.d.ts +1 -1
- package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/module/theme/token-registry.d.ts +1 -16
- package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/accordion/Accordion.tsx +6 -6
- package/src/accordion/Accordion.web.tsx +6 -6
- package/src/agent-avatar/VectorCharacterAvatar.tsx +327 -120
- package/src/agent-avatar/VectorNativeSurface.tsx +117 -0
- package/src/agent-avatar/vector-loop.ts +213 -0
- package/src/agent-avatar/vector-visibility.ts +3 -1
- package/src/agent-creator/AgentCreatorSection.tsx +4 -6
- package/src/agent-creator/EmotionPicker.tsx +3 -3
- package/src/agent-log/AgentLog.tsx +8 -21
- package/src/agent-reply/AgentProfile.tsx +4 -5
- package/src/agent-thinking/AgentThinking.tsx +4 -3
- package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
- package/src/app-shell/AppShell.tsx +3 -3
- package/src/app-shell/AppShellEngine.tsx +67 -19
- package/src/app-shell/AppShellPanelLayout.tsx +3 -3
- package/src/app-shell/NotificationBell.tsx +6 -6
- package/src/app-shell/PanelReorderHandle.tsx +4 -4
- package/src/avatar-group/AvatarGroupBase.tsx +6 -6
- package/src/blur/BlurIsland.tsx +16 -14
- package/src/button/Button.tsx +19 -36
- package/src/button/GroupBase.tsx +42 -56
- package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
- package/src/choice-list/ChoiceList.tsx +3 -3
- package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
- package/src/connection-dots/ConnectionDots.tsx +4 -4
- package/src/connection-dots/ConnectionDots.web.tsx +4 -4
- package/src/cover-header/CoverHeader.tsx +3 -3
- package/src/data-table/DataTableSelect.tsx +4 -4
- package/src/design-tokens/theme.css +1 -0
- package/src/design-tokens/tokens.json +390 -0
- package/src/dialog/DialogContent.tsx +3 -2
- package/src/dialog/DialogHeader.tsx +6 -5
- package/src/dialog/SheetShell.tsx +3 -2
- package/src/expandable-text/ExpandableText.tsx +3 -3
- package/src/floating/lens/lens-cover.tsx +29 -0
- package/src/floating/lens/lens-frame.tsx +195 -0
- package/src/floating/lens/lens-material.ts +1 -1
- package/src/floating/lens/native-lens.ts +2 -0
- package/src/grouped-section/GroupedSection.tsx +7 -6
- package/src/home-search/BudgetPicker.tsx +4 -4
- package/src/home-search/MoveInPicker.tsx +3 -3
- package/src/icon-circle/IconCircle.tsx +5 -5
- package/src/icons/shared.tsx +3 -3
- package/src/kbd/Kbd.tsx +4 -4
- package/src/layout/ResizeHandle.tsx +7 -5
- package/src/link-preview/LinkPreviewCard.tsx +7 -7
- package/src/list/ListBase.tsx +3 -6
- package/src/list/ListPerson.tsx +3 -3
- package/src/listing-editor/ListingPreviewPane.tsx +13 -13
- package/src/markdown/InlineMarkdown.tsx +3 -3
- package/src/markdown/MarkdownBlocks.tsx +14 -14
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
- package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
- package/src/notifications/NotificationPermissionSheet.tsx +3 -3
- package/src/notifications/NotificationsScreen.tsx +9 -9
- package/src/overlay/OverlayInertBoundary.tsx +10 -1
- package/src/page-header/PageHeader.tsx +26 -13
- package/src/page-header/PageHeaderTitleInput.tsx +4 -4
- package/src/panel-routing/expo-router/StackScene.tsx +16 -2
- package/src/phone-input/CountryCodeSelect.tsx +4 -4
- package/src/project-board/MemberAvatars.tsx +3 -3
- package/src/project-board/ProjectBoardBase.tsx +4 -5
- package/src/project-board/ProjectBoardCanvas.tsx +2 -2
- package/src/project-board/styles.ts +3 -4
- package/src/radio/RadioSwatch.tsx +3 -3
- package/src/rating/Rating.tsx +5 -5
- package/src/rating/RatingBar.tsx +4 -4
- package/src/rating/RatingBar.web.tsx +3 -3
- package/src/rating/RatingInput.tsx +5 -5
- package/src/rating/RatingSummary.tsx +4 -4
- package/src/row-actions/RowActions.tsx +3 -3
- package/src/select/Select.tsx +3 -3
- package/src/skeleton/Skeleton.tsx +9 -9
- package/src/stay-filters/AvailabilityFilter.tsx +3 -3
- package/src/stay-filters/CountFilter.tsx +3 -3
- package/src/stay-filters/FilterFooter.tsx +4 -4
- package/src/stay-filters/FilterSection.tsx +5 -5
- package/src/stay-filters/SwitchFilterRow.tsx +4 -4
- package/src/stay-search/GuestPicker.tsx +3 -6
- package/src/stepper/Stepper.tsx +6 -5
- package/src/stepper/StepperRow.tsx +5 -5
- package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
- package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
- package/src/surface/Surface.tsx +13 -28
- package/src/tab-bar/TabBarBase.tsx +13 -8
- package/src/task-list/TaskList.tsx +14 -16
- package/src/theme/BloomThemeProvider.tsx +33 -33
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
- package/src/theme/build-theme-from-seed.ts +1 -1
- package/src/theme/build-theme.ts +52 -11
- package/src/theme/canonical-tokens.ts +108 -0
- package/src/theme/color-policy.ts +3 -0
- package/src/theme/color-scope/resolve-scope.ts +47 -8
- package/src/theme/color-scope/use-scope.ts +2 -6
- package/src/theme/color-tokens.ts +7 -7
- package/src/theme/color-utils.ts +4 -0
- package/src/theme/default-token-vars.ts +86 -0
- package/src/theme/index.ts +1 -1
- package/src/theme/index.web.ts +1 -1
- package/src/theme/prepaint-palettes.ts +2 -3
- package/src/theme/token-registry.ts +1 -101
- package/src/theme/use-theme-paint.ts +26 -3
- package/src/typography/Typography.tsx +12 -12
- package/src/web-search/WebSearch.tsx +16 -18
- package/src/wizard/WizardFooterBase.tsx +5 -5
- package/src/wizard/WizardProgress.tsx +5 -5
- package/lib/commonjs/floating/lens/lens-button-host.js +0 -218
- package/lib/commonjs/floating/lens/lens-button-host.js.map +0 -1
- package/lib/module/floating/lens/lens-button-host.js +0 -214
- package/lib/module/floating/lens/lens-button-host.js.map +0 -1
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +0 -1
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts +0 -34
- package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +0 -1
- package/src/floating/lens/lens-button-host.tsx +0 -148
package/docs/bloom-language.mdx
CHANGED
|
@@ -128,13 +128,16 @@ HStack(Badge({ label: 'New' }), …)
|
|
|
128
128
|
- **One fiber.** The component is React's own `memo` of the body's host, with
|
|
129
129
|
no comparator: props compare key by key, `Object.is` each, and the body
|
|
130
130
|
re-runs only when one changes.
|
|
131
|
-
- **One theme read.** The body is a tree of its own: it reads
|
|
132
|
-
where it starts,
|
|
133
|
-
[Rendering](#rendering)), so a
|
|
134
|
-
component that reads the
|
|
131
|
+
- **One theme read, when it paints.** The body is a tree of its own: it reads
|
|
132
|
+
the theme once, where it starts, when a node of it paints from the theme, and
|
|
133
|
+
every node it draws paints from that read (see [Rendering](#rendering)), so a
|
|
134
|
+
theme switch re-runs it once, as it does a JSX component that reads the
|
|
135
|
+
theme. A body that paints nothing from the theme reads none.
|
|
135
136
|
- **The environment** (text traits set above the view) arrives through a
|
|
136
|
-
context that is provided only where an environment modifier changed it
|
|
137
|
-
|
|
137
|
+
context that is provided only where an environment modifier changed it, and
|
|
138
|
+
is read only when the body takes from it (see
|
|
139
|
+
[What a root costs](#interop)). A view under an unchanged environment adds no
|
|
140
|
+
provider.
|
|
138
141
|
|
|
139
142
|
A view node takes the universal modifiers. Environment modifiers flow into its
|
|
140
143
|
body, and box modifiers wrap it.
|
|
@@ -304,11 +307,22 @@ condition between two is the condition between two roles, the modifier the
|
|
|
304
307
|
same: `.border(isActive ? 'primary' : 'border', 'thin')`. Bloom's
|
|
305
308
|
`withAlpha(colors.primary, 0.1)` is `'primary/10'`. An app's own palette chosen
|
|
306
309
|
by a key is an app colour table (`defineTokens({ color: { low: '#64748b',
|
|
307
|
-
high: '#ef4444' } })` as `severity`, `.foreground(severity.color[level])`).
|
|
310
|
+
high: '#ef4444' } })` as `severity`, `.foreground(severity.color[level])`). An
|
|
311
|
+
app colour at an opacity is the token's own, as a role's is (`'primary/20'`):
|
|
312
|
+
`severity.color[level].opacity('12.5')` is the hex with its alpha in 8 bits
|
|
313
|
+
(`#64748b20`), an `rgb()` an `rgba()`, so a table keeps one colour per entry.
|
|
314
|
+
The opacities `'12.5'` and `'31.4'` are the hex alphas `20` and `50` (32 and 80
|
|
315
|
+
of 255) apps write after a hex.
|
|
308
316
|
|
|
309
317
|
**Insets.** `.safeAreaPadding()` pads by the device's insets (see
|
|
310
|
-
[Layout](#layout))
|
|
311
|
-
|
|
318
|
+
[Layout](#layout)), `.safeAreaPadding(edge, 'content')` by the content's
|
|
319
|
+
(`useContentSafeAreaInsets()`); a view pinned below the inset is pinned by
|
|
320
|
+
points, `.position({ top: insets.top + 8 })`.
|
|
321
|
+
|
|
322
|
+
**Spacing computed at render.** A padding the view works out as it renders is
|
|
323
|
+
points, the same rule as geometry: a thread's indent times its depth
|
|
324
|
+
(`.padding('leading', depth * 12)`), a measured bar and a gap (`.padding('bottom',
|
|
325
|
+
barHeight + 20)`). A number written out is still a token (`'44'`).
|
|
312
326
|
|
|
313
327
|
## Rendering
|
|
314
328
|
|
|
@@ -341,8 +355,9 @@ high: '#ef4444' } })` as `severity`, `.foreground(severity.color[level])`).
|
|
|
341
355
|
and colour *roles*, and one cache serves every theme. Each role is painted where
|
|
342
356
|
it is cheapest:
|
|
343
357
|
|
|
344
|
-
- **One theme read per tree.** A tree reads the theme once, where it starts
|
|
345
|
-
|
|
358
|
+
- **One theme read per tree.** A tree reads the theme once, where it starts,
|
|
359
|
+
when a node of it paints from the theme: a `toElement` root (beside the
|
|
360
|
+
environment), a `view()` body, and the content of
|
|
346
361
|
a Bloom component that re-themes what it holds (a dialog's, an immersive
|
|
347
362
|
player's slot), which is a tree of its own. Every node of it paints from that
|
|
348
363
|
read where it is drawn: its host takes the palette's colours (built once per
|
|
@@ -408,9 +423,9 @@ of its own it draws the platform face.
|
|
|
408
423
|
**Colours.** A role is a theme colour on native and its canonical CSS
|
|
409
424
|
variable on the web. `mutedFill` is `--muted` (the subtle fill of `bg-muted`;
|
|
410
425
|
`muted` stays the quiet ink, `--muted-foreground`), `textTertiary` is Bloom's
|
|
411
|
-
`ThemeColors.textTertiary` (on the web `--
|
|
412
|
-
|
|
413
|
-
its colours, so it is not `muted` there), `card` is `--card`,
|
|
426
|
+
`ThemeColors.textTertiary` (on the web `--faint-foreground`, which every preset
|
|
427
|
+
holds at `--muted-foreground`'s colour; on Android and iOS the system's tertiary
|
|
428
|
+
label where Bloom adapts its colours, so it is not `muted` there), `card` is `--card`,
|
|
414
429
|
`destructive` is `--destructive` (Bloom's `ThemeColors.destructive`, which
|
|
415
430
|
the engine's error role fills; `error` is the policy's status colour),
|
|
416
431
|
`primaryText` is `--primary-text`, `errorText` `--error-text`, `onSurface`
|
|
@@ -494,8 +509,8 @@ The vocabulary is closed. Every value is a name from the spec, whose every rung
|
|
|
494
509
|
|
|
495
510
|
| Modifier | Values |
|
|
496
511
|
| --- | --- |
|
|
497
|
-
| `padding(edge?, v)` | space: `none` `2xs` `xs` `sm` `md` `lg` `xl` `2xl`…`5xl`, or a numeric token (`'1'` `'6'` `'10'` `'14'` `'28'` `'44'` `'56'` `'96'`…); `-lg`, `-6` and the like pull outward (a margin) |
|
|
498
|
-
| `safeAreaPadding(edge?)` | the device's safe-area insets (`react-native-safe-area-context`) as padding on those sides: `all` (the default), `top`, `bottom`, `horizontal`, `vertical`, `left`, `right` (physical: the insets are the device's); on the view itself, a top or bottom inset added to the view's own padding there (see [Layout](#layout)) |
|
|
512
|
+
| `padding(edge?, v)` | space: `none` `2xs` `xs` `sm` `md` `lg` `xl` `2xl`…`5xl`, or a numeric token (`'1'` `'6'` `'10'` `'14'` `'28'` `'44'` `'56'` `'96'`…); `-lg`, `-6` and the like pull outward (a margin); or points computed at render (`depth * 12`) |
|
|
513
|
+
| `safeAreaPadding(edge?, source?)` | the device's safe-area insets (`react-native-safe-area-context`), or with `'content'` the content's (what the frame around the view left of them, Bloom's `useContentSafeAreaInsets()`), as padding on those sides: `all` (the default), `top`, `bottom`, `horizontal`, `vertical`, `left`, `right` (physical: the insets are the device's); on the view itself, a top or bottom inset added to the view's own padding there (see [Layout](#layout)) |
|
|
499
514
|
| `spacing(v)` | space: the gap between a stack's children |
|
|
500
515
|
| `horizontalSpacing(v)`, `verticalSpacing(v)` | space: the gap along one axis only, over `spacing`'s: between children side by side (`columnGap`, `gap-x-*`) or one above another and between wrapped lines (`rowGap`, `gap-y-*`) |
|
|
501
516
|
| `childSpacing(axis, v)` | Tailwind's `space-x-*`/`space-y-*` as NativeWind draws them: on the web Tailwind's own rule, a margin after each child but the last along the axis (inline end, or block end); on Android and iOS nothing, as NativeWind writes no rule for a child selector. Not a gap; new screens use `spacing()` |
|
|
@@ -503,12 +518,14 @@ The vocabulary is closed. Every value is a name from the spec, whose every rung
|
|
|
503
518
|
| `frame({ width, height, min…, max… })` | space, or a length of the parent: `full`, `1/2` `1/3` `2/3` `1/4` `3/4` `1/5` `2/5` `3/5`, and the percentages apps write that no fraction holds, named by their value (`90%`, `31%`), or points computed at render (`{ width: itemSize }`; see [Styles computed at runtime](#styles-computed-at-runtime)) |
|
|
504
519
|
| `frame({ width: 'fit' })` | as wide (or tall) as its content: `fit-content` (`w-fit`) |
|
|
505
520
|
| `aspectRatio(r)` | the view's width to its height (`1`, `1.6`), React Native's `aspectRatio`, in its frame's view: the frame's width or height (or the view's stretch) sets the other side. Any view, a pressable one included; an `Image`'s sizes the image in its box |
|
|
506
|
-
| `grow()`, `shrink(p)`, `basis(l)` | `never` `normal` `first
|
|
521
|
+
| `grow()`, `shrink(p)`, `basis(l)` | `never` `normal` `first` (0, 1, 10), or a rank named by its value (`'20'`); a frame length, its `flex-basis` |
|
|
507
522
|
| `flex(f)` | Tailwind's flex utility, exactly as NativeWind writes it: `'1'` (`flex-1`: grow 1, shrink 1, basis 0%), `auto`, `initial`, `none`, `grow` (`flex-grow: 1` alone). `grow()` stays React Native's `flex: 1` |
|
|
508
523
|
| `margin(edge?, v)` | space (negatives included), or `auto` (the free space on that side: `.margin('leading', 'auto')` is `ms-auto`), on the view itself: no view around it |
|
|
509
524
|
| `clipped(on?)` | clips what the view draws to its bounds and its corner; `clipped(false)` draws what overflows it, React Native's `overflow: 'visible'` written out (NativeWind's `overflow-visible`), over a clip the view would otherwise have |
|
|
510
525
|
| `align(a)`, `alignSelf(a)` | `start` `center` `end` `stretch` `baseline` (a stack's children; the view's own place) |
|
|
511
|
-
| `position({ top, bottom, leading, trailing, left, right })`, `offset({ x, y })` | space, negatives included (see [Layout](#layout)); a position's edge also a percentage of the parent (`'25%'`, the spec's `insetPercent`) and points computed at render (`{ top: insets.top + 8 }`) |
|
|
526
|
+
| `position({ top, bottom, leading, trailing, left, right, horizontal, vertical })`, `offset({ x, y })` | space, negatives included (see [Layout](#layout)); a position's edge also a percentage of the parent (`'25%'`, `'100%'`: pinned above its parent with `bottom`, the spec's `insetPercent`) and points computed at render (`{ top: insets.top + 8 }`). `horizontal` is both inline edges at once (React Native's `insetInline`), `vertical` both block edges (`insetBlock`) |
|
|
527
|
+
| `sticky(edge?)` | the web's `position: sticky` at `top` (the default) or `bottom`: held at its scroll container's edge once scrolled to it. React Native has no sticky position, so native draws the view in place; a list's or a scroll's sticky rows are `.stickyIndices()` |
|
|
528
|
+
| `cursor(c)` | the pointer's shape over the view on the web (CSS's `cursor`): `auto` `default` `pointer` `grab` `grabbing` `text` `move` `not-allowed`; native has none, as NativeWind's `cursor-*` writes nothing there |
|
|
512
529
|
| `zIndex(z)`, `hidden(on?)` | Bloom's `Z_INDEX`: `base` `raised` `floating` `dropdown`, or Tailwind's `'20'` `'30'` `'50'`, or an exact level (`'-1'` `'2'`…`'7'` `'60'`), or `auto` (Tailwind's `z-auto` as NativeWind writes it: `z-index: auto` on the web, nothing on native), or an order computed at render (`count - index`); out of the layout |
|
|
513
530
|
| `scale(s)` | drawn scaled about its anchor (its centre unless `anchor` says otherwise): Bloom's `dip` 0.7, `pressed` 0.98, `full`, `swell` 1.2, or a percent (`'95'` `'105'`…) |
|
|
514
531
|
| `anchor(a)` | the point the view scales and rotates about (SwiftUI's `anchor:`, Tailwind's `origin-*`): `center` `top` `bottom` `leading` `trailing` `top-leading` `top-trailing` `bottom-leading` `bottom-trailing`; leading and trailing are left and right, as an offset's x |
|
|
@@ -516,7 +533,7 @@ The vocabulary is closed. Every value is a name from the spec, whose every rung
|
|
|
516
533
|
| `overlay(view, alignment?)`, `background(view, alignment?)` | a view over or under this one, at `center` `top` `bottom` `leading` `trailing` `top-leading` … `bottom-trailing` |
|
|
517
534
|
| `shadow(s)`, `ring(c, width?, offset?)` | Bloom's elevation `s` `m` `floating`, or one of Tailwind's shadows by its exact box-shadow; a colour role (or a role at an opacity, or `none`) as an outline, `thin` `thick` or `'3'` wide |
|
|
518
535
|
| `when(condition, (v) => v…)` | a variant: `sm` `md` `lg` `xl` `2xl`, `dark`, `hovered` `focused` `pressed` `disabled`, `web` `native` `ios` `android`, or the app's own boolean (see [Variants](#variants)) |
|
|
519
|
-
| `font(f)` | a Bloom type-ramp step (`body`, `headline`, `caption-1`…: size, line height and tracking, as `Text variant`) or a size rung (`sm` 13, `md` 15…), a numeric size (`'9'` `'11'` `'12.5'` `'14'` `'16'` `'18'` `'24'` `'28'` `'30'` `'36'` `'42'` `'96'`), or a face beside the size: `mono` (Bloom's monospaced face) or `display` (the face of Bloom's big ramp steps, for a numeric size: `.font('96').font('display')`) |
|
|
536
|
+
| `font(f)` | a Bloom type-ramp step (`body`, `headline`, `caption-1`…: size, line height and tracking, as `Text variant`) or a size rung (`sm` 13, `md` 15…), a numeric size (`'9'` `'11'` `'12.5'` `'14'` `'16'` `'18'` `'24'` `'28'` `'30'` `'36'` `'42'` `'96'`), or a face beside the size: `mono` (Bloom's monospaced face), `system-mono` (the platform's own monospaced face, React Native's generic `monospace`) or `display` (the face of Bloom's big ramp steps, for a numeric size: `.font('96').font('display')`) |
|
|
520
537
|
| `weight(w)` | `light` `regular` `medium` `semibold` `bold` `extrabold` |
|
|
521
538
|
| `tracking(t)` | `tight` `wide` `wider` `widest` (em of the size); or an exact em (`'-0.02em'` `'-0.01em'` `'0.04em'`) or px (`'-0.5px'` … `'2px'`) |
|
|
522
539
|
| `leading(l)` | Bloom line heights (ratios of the size) `tight` 1.15, `close` 1.25, `snug` 1.3, `easy` 1.375, `normal` 1.5, `relaxed` 1.625; or an exact px height (`'14px'` … `'40px'`, and `'96px'`, Tailwind's `text-8xl` line, a 96pt countdown's) |
|
|
@@ -525,17 +542,19 @@ The vocabulary is closed. Every value is a name from the spec, whose every rung
|
|
|
525
542
|
| `border(c, width?, edge?)` | colour role (or a role at an opacity); `hairline` (the platform hairline), `thin` or `thick`, or an exact width (`'0.5'`, a fixed half point; `'1.5'` `'2.5'` `'3'` `'4'`) |
|
|
526
543
|
| edges | `padding`, `margin` and `border` take `leading` and `trailing` (the reading direction's sides) and `left` and `right` (physical, the same right to left) |
|
|
527
544
|
| `corner(r, side?)`, `cornerCurve(c)` | radius rungs, numeric radii (`'6'` `'7'` `'10'` `'14'` `'15'` `'18'` `'22'`), `full` (Bloom's `radius-max`, 9999; an app's 999 is `full` too, since both round any box under 1998pt fully), `infinite` (Tailwind's `rounded-full` as NativeWind writes it: 9007199254740000 on native, `calc(infinity * 1px)` on the web; a Bloom component that takes a radius in points gets `full`), `concentric`; the corners it rounds: `all`, `top` `bottom` `leading` `trailing`, or one (`top-leading`…), which follow the reading direction, or `left` `right` and one (`top-left`…), which do not (Tailwind's `rounded-l`, `rounded-tl`…); `round` `smooth` (see [Material](#material)) |
|
|
528
|
-
| `opacity(o)` | `transparent` 0, `half` 0.5, `opaque` 1; or a percent (`'10'` `'20'` `'30'` `'40'` `'45'` `'60'` `'70'` `'75'` `'80'` `'85'` `'90'`) |
|
|
545
|
+
| `opacity(o)` | `transparent` 0, `half` 0.5, `opaque` 1; or a percent (`'5'` `'10'` `'20'` `'25'` `'30'` `'40'` `'45'` `'60'` `'70'` `'75'` `'80'` `'85'` `'90'`) |
|
|
529
546
|
| `size(s)` | icon rungs, avatar rungs, or Bloom sizes, by node |
|
|
530
547
|
| `style(a)` / `shape(s)` / `tint(t)` | Bloom appearance / `circle` `pill` / Bloom tone |
|
|
531
548
|
| `glass(material?)` | `regular`, `clear`, `.tint(role, 'subtle' \| 'medium' \| 'strong'?)` |
|
|
532
549
|
| `blur()` | Bloom's floating island (`BlurIsland`) |
|
|
533
|
-
| `onPress`, `onLongPress`, `onHover`, `hoverGroup` | handlers. `onPress(undefined)` keeps the pressable host, out of the focus order. |
|
|
550
|
+
| `onPress`, `onLongPress(action, duration?)`, `onHover`, `hoverGroup` | handlers. `onPress(undefined)` keeps the pressable host, out of the focus order. `hoverGroup()` on a view with no press of its own is a plain view with Bloom's marker (`hoverGroupProps`), its press a view inside it. A long press's `duration` is how long it is held (React Native's `delayLongPress`: `'500'`, its own default, `'250'`…, the [duration](bloom-language-tokens.mdx#duration) tokens); a Bloom component that takes a long press of its own (a tab, a nav item, a tree item, a destination) takes no duration |
|
|
551
|
+
| `accessibilityElement(on)`, `focusable(on?)`, `collapsable(on)` | React Native's own: whether the view is one accessibility element (`accessible`; `false` leaves what is inside to be read, its press kept), whether keyboard focus stops at it (`tabIndex` `0` or `-1`, on the web and Android), and `false` keeps its native view from being flattened (`collapsable`, Android). Each is written on the view's outermost host as the JSX writes it |
|
|
552
|
+
| responder props (`onStartShouldSetResponder`, a `PanResponder`'s `panHandlers`) | no modifier: a view that claims or tracks touches by hand stays an `Embed` of its JSX. The language's gestures are `.onPress()`, `.drag()`, `.swipe()`, `.pinch()` and `.onDoubleTap()` |
|
|
534
553
|
| `accessibilityState(s)`, `accessibilityValue(v)`, `liveRegion(r)`, `accessibilityHidden(on?)` | what assistive technology reads: a state (`selected`, `checked` or `'mixed'`, `busy`, `expanded`, `disabled`: React Native's `accessibilityState`); a value, a range (`min`, `max`, `now`) or a text (React Native's `accessibilityValue`; numbers and a text, no tokens); a region whose changes are announced (`polite`, `assertive`, `none`: `accessibilityLiveRegion`); hidden from screen readers with what is inside (see [Layout](#layout)) |
|
|
535
554
|
| `hitSlop(edge?, s)` | how far beyond its bounds a press reaches: Bloom's `sm` `md` `lg`, `none`, or an exact slop (`'4'` `'5'`); with a side first (`top` `bottom` `horizontal` `vertical` `left` `right`, physical as React Native's insets are) only that side, a later one of a side over the earlier. Every side alike is one number (`hitSlop={8}`), sides of their own React Native's insets with the sides named. An `Action`'s is its `EngagementAction`'s (an `Action` takes no `hitSlop` option) |
|
|
536
555
|
| `ref(r)`, `onLayout(f)` | escape hatches, on the view's outermost box (its host, or the Bloom component that draws it): React Native's `ref` (a ref object or a callback, for a visibility tracker, a measurement, a DOM lookup on the web) and `onLayout`. Laying a view out from state its own `onLayout` wrote is discouraged: it draws twice, the second time moved, and can loop; a frame, a grow, an aspect ratio or a `ZStack` says the layout instead |
|
|
537
|
-
| `label`, `hint`, `role`, `testID`, `id` | accessibility and identity. `role` is React Native's `accessibilityRole` of the same name: `button` `link` `header` `image` `text` `none` `checkbox` `radio` `tab` `radiogroup` `tablist` `list` `alert` `progressbar` `imagebutton` `summary` |
|
|
538
|
-
| `lines(n)`, `noWrap()`, `truncation`, `selectable`, `textStyle`, `link`, `textAlign`, `italic`, `underline`, `strikethrough`, `textCase`, `monospacedDigit`, `wordBreak` | text only (see [Text](#text)) |
|
|
556
|
+
| `label`, `hint`, `role`, `testID`, `id` | accessibility and identity. `role` is React Native's `accessibilityRole` of the same name: `button` `link` `header` `image` `text` `none` `checkbox` `radio` `tab` `radiogroup` `tablist` `list` `alert` `progressbar` `imagebutton` `summary`; `option` and `listbox`, which React Native names only as a web role, are its `role` (`listbox` is react-native-web's, outside React Native's types; native has neither) (a `Row`'s `.role('option')` is Bloom Item's `role="option"`, whose `.selected()` is `aria-selected`) |
|
|
557
|
+
| `lines(n)`, `noWrap()`, `truncation`, `selectable`, `textStyle`, `link`, `textAlign`, `italic`, `underline`, `strikethrough`, `textCase`, `monospacedDigit`, `wordBreak`, `textShadow` | text only (see [Text](#text)) |
|
|
539
558
|
| `listMarker(m)` | a stack only: a web list behind `disc` or `decimal` markers (see [Layout](#layout)) |
|
|
540
559
|
| `contentFit`, `aspectRatio`, `tint`, `crossFade`, `onLoad`, `onError` | `Image` only (see [Image](#image)) |
|
|
541
560
|
| `contentTransition('roll', direction?)` | text only (see [Animations](#animations)) |
|
|
@@ -620,8 +639,10 @@ VStack(...).background('surface').corner('xl').shadow('m')
|
|
|
620
639
|
does not. A left or right inset beside a padding across is a view of its
|
|
621
640
|
own around it (a padding's start and end are logical, the inset physical).
|
|
622
641
|
On a column or row with no press, the safe area is the host itself. The insets are the device's
|
|
623
|
-
physical ones, not what a Bloom header or bar has already taken
|
|
624
|
-
(`useContentSafeAreaInsets()
|
|
642
|
+
physical ones, not what a Bloom header or bar has already taken; `.safeAreaPadding(edge,
|
|
643
|
+
'content')` pads by what is left (`useContentSafeAreaInsets()`, as a screen's body pads
|
|
644
|
+
itself): `paddingTop: insets.top + 60` from it is `.safeAreaPadding('top',
|
|
645
|
+
'content').padding('top', '5xl')`.
|
|
625
646
|
- **Auto margins.** `.margin(edge, 'auto')` takes the free space on that side,
|
|
626
647
|
as React Native's and CSS's `margin: auto` do: `.margin('leading', 'auto')`
|
|
627
648
|
pushes the view to its row's trailing end (Tailwind's `ms-auto`), and
|
|
@@ -802,9 +823,13 @@ inside; a stack's layout to its host; a placement to its outermost box.
|
|
|
802
823
|
condition that holds as the view renders (`web`, `native`, `ios`, `android`,
|
|
803
824
|
`disabled`, a boolean that is `true`), anything else but a box layer, a placement, a press or a name
|
|
804
825
|
is the chain's own, as if chained there (`when('web', (v) => v.monospacedDigit())`
|
|
805
|
-
is Tailwind's `tabular-nums` as NativeWind draws it
|
|
806
|
-
|
|
807
|
-
|
|
826
|
+
is Tailwind's `tabular-nums` as NativeWind draws it; `when('native', (v) =>
|
|
827
|
+
v.accessibilityHidden())` hides a view from native screen readers only, as React
|
|
828
|
+
Native's `accessibilityElementsHidden` and `importantForAccessibility` do). What no
|
|
829
|
+
condition sets is the spec's `variants.held.except`, which the compiler reads too.
|
|
830
|
+
Anything else inside `when()` is left out and said once in development; the
|
|
831
|
+
compiler rejects it (`A variant cannot change .onPress()`), and checks the
|
|
832
|
+
condition and every value.
|
|
808
833
|
- **Geometry varies by component.** A transform is one property, so a view
|
|
809
834
|
whose geometry varies draws it as its outermost box's placement, one value
|
|
810
835
|
per component (translate x, translate y, rotate, scale), and a variant
|
|
@@ -954,6 +979,11 @@ Text('Read the ', Text('terms').link('https://oxy.so/terms'), '.').font('caption
|
|
|
954
979
|
`@oxy.so/bloom/typography`). A family sits beside the size: it keeps the
|
|
955
980
|
ramp step or size rung the text has, and a later size keeps the face, so
|
|
956
981
|
`.font('body').font('mono')` is body in mono.
|
|
982
|
+
- **The platform's mono.** `.font('system-mono')` is the platform's own
|
|
983
|
+
monospaced face by its generic name (`fontFamily: 'monospace'`, as an app
|
|
984
|
+
writes it), not Bloom's JetBrains Mono: a slug or an id drawn as the system
|
|
985
|
+
draws code. `.when('native', (v) => v.font('system-mono'))` keeps the web
|
|
986
|
+
in the face it inherits.
|
|
957
987
|
- **Display.** `.font('display')` is the face Bloom's `Text` sets its big
|
|
958
988
|
ramp steps in (`large-title`, `display-*`, `title-*`: BlomusModernus,
|
|
959
989
|
`fontFamilyStyle('display')`), for a size off the ramp: Mention's camera
|
|
@@ -970,6 +1000,11 @@ Text('Read the ', Text('terms').link('https://oxy.so/terms'), '.').font('caption
|
|
|
970
1000
|
size: its font's, or with no font the 13px of Bloom's `Text` without a
|
|
971
1001
|
variant (the size itself stays Bloom's, unwritten). Over a ramp step it
|
|
972
1002
|
replaces the step's own tracking.
|
|
1003
|
+
- **Shadow.** `.textShadow(shadow)` draws a shadow under the glyphs, for text
|
|
1004
|
+
over a photo or a video. Each is named by its exact CSS `text-shadow`
|
|
1005
|
+
(`'0 1px 3px rgb(0 0 0 / 0.8)'`, `'0 1px 2px rgb(0 0 0 / 0.8)'`): React
|
|
1006
|
+
Native's `textShadowColor`, `textShadowOffset` and `textShadowRadius` as an
|
|
1007
|
+
app writes them, which react-native-web draws as that `text-shadow`.
|
|
973
1008
|
|
|
974
1009
|
## Icons
|
|
975
1010
|
|
|
@@ -993,6 +1028,12 @@ HStack(Icon(RiRepeat2Line), Text('Reposted')).foreground('muted')
|
|
|
993
1028
|
`primary` when given no fill; a language icon follows the text around it,
|
|
994
1029
|
as SwiftUI's does, so `Icon(X)` alone is `<X fill={colors.text} />`.
|
|
995
1030
|
- **A box** (padding, a fill, a corner, a name) is one `View` around the glyph.
|
|
1031
|
+
A glyph that is only placed (a margin, a flex, a pin) takes its placement as
|
|
1032
|
+
its own style, as the Svg an app writes takes `style={{ marginLeft: 2 }}`,
|
|
1033
|
+
with no view around it.
|
|
1034
|
+
- **`currentColor`** is the glyph's `color` on every platform: react-native-svg
|
|
1035
|
+
and Bloom's native glyph resolve it so (black with none), as CSS does on the
|
|
1036
|
+
web. `<X fill="currentColor" color={c} />` is `Icon(X).foreground(c)`.
|
|
996
1037
|
- Bloom's icon `gradient` prop has no modifier: no app passes one.
|
|
997
1038
|
|
|
998
1039
|
## Material
|
|
@@ -1116,8 +1157,17 @@ ButtonGroup(Button(Text('Day')), Button(Text('Week'))).separated().size('sm')
|
|
|
1116
1157
|
state).
|
|
1117
1158
|
- **Views beside the label.** With a `Text` label, a view before it (that is
|
|
1118
1159
|
no `Icon`) is Bloom's `leading`, one after it its `trailing`, drawn as they
|
|
1119
|
-
are. A
|
|
1120
|
-
|
|
1160
|
+
are. A plain `Icon` child is the button's glyph (`leadingIcon`): Bloom
|
|
1161
|
+
paints it in its ink. A bare glyph as its content, `Button(Group(Icon(X)))`
|
|
1162
|
+
with no ink of its own (a `.size()` at most), is Bloom's render-function
|
|
1163
|
+
children, `(color) => <X fill={color} />`: drawn in the ink Bloom hands it
|
|
1164
|
+
(its tone's, `.foreground()`'s, under the pointer `.hoverForeground()`'s,
|
|
1165
|
+
disabled its muted one) with no glyph box of its own, as a compose
|
|
1166
|
+
toolbar's controls draw theirs (on the web the `leadingIcon` sits in Bloom's
|
|
1167
|
+
20pt glyph box; the render function's glyph does not). A circle or pill whose
|
|
1168
|
+
content is one view (`Button(Group(busy ? Loading().style('inline').size('sm') :
|
|
1169
|
+
Icon(X)))`, a spinner in the glyph's place while it works) is Bloom's icon
|
|
1170
|
+
button too (`iconOnly`), so it keeps its square.
|
|
1121
1171
|
- **Inks and spinner.** `.foreground(role)` is the button's ink at rest
|
|
1122
1172
|
(Bloom's `color`) and `.hoverForeground(role)` under the pointer
|
|
1123
1173
|
(`hoverColor`), each painted from a colour role. `.loadingIndicator(null)`
|
|
@@ -1181,6 +1231,14 @@ rendition of a file id).
|
|
|
1181
1231
|
`.badge(Badge(…))`.
|
|
1182
1232
|
- Presence: `.presence('online' | 'idle' | 'busy' | 'offline')` is Bloom's
|
|
1183
1233
|
`AvatarPresence`, the dot sized from the avatar.
|
|
1234
|
+
- Motion: `.motion('auto' | 'always' | 'never')` is Bloom's `motion`, whether
|
|
1235
|
+
its character moves (an `AvatarGroup`'s, each member's); reduced motion always
|
|
1236
|
+
wins. An app's avatar that forwards every prop to Bloom's is a `view()`
|
|
1237
|
+
returning `Avatar(…)` with its policy's `.motion()`, which its callers chain
|
|
1238
|
+
their modifiers on.
|
|
1239
|
+
- `.cornerRadius(radius)` rounds the avatar's own corners (Bloom's Avatar
|
|
1240
|
+
`style.borderRadius`, a corner token: `'md'` is 12): a rounded square no
|
|
1241
|
+
shape name draws (a list's cover). `.corner()` is a box around it.
|
|
1184
1242
|
- `.label(name)` is its `alt`; `.onPress` its own press.
|
|
1185
1243
|
|
|
1186
1244
|
`AvatarGroup(items)` takes Bloom's `AvatarGroupItem`s: `.layout('stack' |
|
|
@@ -1188,6 +1246,12 @@ rendition of a file id).
|
|
|
1188
1246
|
`.total(n)`, `.spacing(space)` (a row's gap), `.overflow('count' |
|
|
1189
1247
|
'truncate')`, `.initials()` (tinted initials instead of the neutral
|
|
1190
1248
|
placeholder), `.onPressItem(fn)`, `.hoverCard()`, and `.label()` to name it.
|
|
1249
|
+
`.ringColor(color)` is the ring each face is cut out of its neighbours by
|
|
1250
|
+
(Bloom's `ringColor`): a role painted from the theme (`'background'`, the
|
|
1251
|
+
colour behind the group) or an app colour. `.variant(name)` is the rendition
|
|
1252
|
+
the members' images load (`'thumb'` with none). `.itemAction((item, index) =>
|
|
1253
|
+
view)` is Bloom's `renderItemAction`: a view under the member's name in its
|
|
1254
|
+
hover card on the web (a follow button), drawn as a tree of its own.
|
|
1191
1255
|
|
|
1192
1256
|
## Small pieces
|
|
1193
1257
|
|
|
@@ -1199,13 +1263,16 @@ placeholder), `.onPressItem(fn)`, `.hoverCard()`, and `.label()` to name it.
|
|
|
1199
1263
|
attached. `view.badge(Badge(…))` attaches it to any view.
|
|
1200
1264
|
- **`IconCircle(icon)`**: an icon on Bloom's tinted disc; `.size()` an icon rung.
|
|
1201
1265
|
- **`Loading(Text(…)?)`**: `.style('spinner' | 'top' | 'inline')`, `.size()`,
|
|
1202
|
-
`.tint(tone)
|
|
1266
|
+
`.tint(tone)` (or an app's own colour, Bloom's `color` as written: a white
|
|
1267
|
+
spinner over a photo); the `Text` is what it says, `.label()` names it as a progress bar.
|
|
1203
1268
|
Its box modifiers (padding, frame, fill, corner, margin, flex) are its
|
|
1204
1269
|
`style`, as an app writes them.
|
|
1205
1270
|
- **`SpinnerIcon()`**: Bloom's `SpinnerIcon` (`@oxy.so/bloom/loading`), the
|
|
1206
1271
|
loader's morphing glyph alone. `.size()` is its side (an icon rung, a numeric
|
|
1207
|
-
side such as `'18'`, or an app token; Bloom's 26 by default), `.tint(
|
|
1208
|
-
its `color
|
|
1272
|
+
side such as `'18'`, or an app token; Bloom's 26 by default), `.tint(color)`
|
|
1273
|
+
its `color`: a role painted from the theme, or an app colour as written
|
|
1274
|
+
(white over a video, the same in both schemes); its box modifiers are its
|
|
1275
|
+
`style`.
|
|
1209
1276
|
- **`Skeleton(shape)`**: `text`, `circle`, `pill` or `box`. Its frame is its
|
|
1210
1277
|
size (a circle's and a pill's height, a box's width and height), a box's
|
|
1211
1278
|
corner its radius, a text line's height its font's. It takes nothing else
|
|
@@ -1280,8 +1347,8 @@ binding on a node that has no such value.
|
|
|
1280
1347
|
|
|
1281
1348
|
| Node | Bloom | Modifiers |
|
|
1282
1349
|
| --- | --- | --- |
|
|
1283
|
-
| `TextField(text, label)`, `SecureField(text, label)` | `TextFieldInput` in its `TextField` shell (`TextFieldIcon`, `TextFieldPrefix`, `TextFieldSuffix`, `TextFieldGhost`) | `.placeholder` (`null`: none, not even the label Bloom draws in its place otherwise), `.size`, `.disabled` (the shell and its input: what `<TextField disabled>` around a plain input draws too, since the input reads its shell's state), `.invalid`, `.floatingLabel()`, `.revealable()` (secure), `.icon(X)`, `.trailingIcon(X)`, `.prefix(text)`, `.suffix(text)`, `.completion(rest)`, `.focused(binding)`, `.keyboard`, `.autocapitalize`, `.autocorrect`, `.contentType` (autofill), `.submitLabel`, `.onSubmit`, `.autoFocus()`, `.maxLength`, `.multiline()`, `.editable(false)` (shown and selectable, no typing) |
|
|
1284
|
-
| `TextEditor(text, label?)` | `Textarea` | `.placeholder`, `.description` (its hint), `.size`, `.disabled`, `.invalid`, `.required`, `.rows`, `.autoResize(maxRows?)`, `.resize`, `.maxLength`, `.showCount()`, `.focused(binding)`, `.label(name)` (its `accessibilityLabel`, beside the visible `label`), the keyboard modifiers |
|
|
1350
|
+
| `TextField(text, label)`, `SecureField(text, label)` | `TextFieldInput` in its `TextField` shell (`TextFieldIcon`, `TextFieldPrefix`, `TextFieldSuffix`, `TextFieldGhost`) | `.placeholder` (`null`: none, not even the label Bloom draws in its place otherwise), `.size`, `.disabled` (the shell and its input: what `<TextField disabled>` around a plain input draws too, since the input reads its shell's state), `.invalid`, `.floatingLabel()`, `.revealable()` (secure), `.icon(X)`, `.trailingIcon(X)`, `.prefix(text)`, `.suffix(text)`, `.completion(rest)`, `.focused(binding)`, `.keyboard`, `.autocapitalize`, `.autocorrect`, `.contentType` (autofill), `.submitLabel`, `.onSubmit`, `.autoFocus()`, `.maxLength`, `.multiline()`, `.editable(false)` (shown and selectable, no typing), `.inputMode` (the kind of text it takes: React Native's `inputMode`, the web's `inputmode`), `.inputRef(ref)` (its `TextInput`'s ref, to focus it or move its caret; `.ref()` is its box's), `.onSelectionChange(fn)` (React Native's, handed its event) |
|
|
1351
|
+
| `TextEditor(text, label?)` | `Textarea` | `.placeholder`, `.description` (its hint), `.size`, `.disabled`, `.invalid`, `.required`, `.rows`, `.autoResize(maxRows?)`, `.resize`, `.maxLength`, `.showCount()`, `.focused(binding)`, `.label(name)` (its `accessibilityLabel`, beside the visible `label`), the keyboard modifiers, `.inputMode`, `.inputRef(ref)`, `.onSelectionChange(fn)` |
|
|
1285
1352
|
| `Field(label, ...content)` | `Field` | `.description`, `.error`, `.required`, `.disabled`: the label names its control, the error marks it invalid; `.multiple()` for a field of several controls (chips, two inputs), whose label names the group (Bloom's `multiple`) |
|
|
1286
1353
|
| `Label(text)` | `Label` | `.size('xs' \| 'sm' \| 'md')`, `.required`, `.disabled` |
|
|
1287
1354
|
| `Toggle(isOn)` | `Switch` | `.size`, `.tint(tone)`, `.disabled`; `.label()` names it (a switch draws no words) |
|
|
@@ -1291,7 +1358,7 @@ binding on a node that has no such value.
|
|
|
1291
1358
|
| `Picker(selection, ...options)` | `Select`: its trigger (`SelectValue`, `SelectIcon`) and its list (`SelectItem` with its indicator and text) | `.placeholder`, `.size`, `.disabled`, `.presented(isOpen)` (its list open through a binding: Bloom's controlled `open`); `.label()` names it |
|
|
1292
1359
|
| `Option(value, label)` | an option of the three above | `.description` (a radio's), `.disabled`, `.testID`, `.leadingView(...)` (a picker row's mark), `.tint(role)` and `.foreground(role)` (a swatch's colour and its chosen dot) |
|
|
1293
1360
|
| `OptionGroup(label, ...options)` | a picker's `SelectGroup` with its `SelectLabel`, heading its first row | none |
|
|
1294
|
-
| `Search(text)` | `Search` | `.placeholder`, `.size`, `.disabled`, `.collapsible('auto'?)` (a button that opens the field), `.presented(isOpen)`, `.tokens(tokens)` (removing a token writes the binding), `.trigger(Button)`, `.trailing(...)`, `.focused(binding)`, `.submitLabel`, `.onSubmit`, `.onClearText(action)` (the clear button's press: the screen empties its text, and its tokens), `.maxLength(n)` (the most characters it takes), the keyboard modifiers |
|
|
1361
|
+
| `Search(text)` | `Search` | `.placeholder`, `.size`, `.disabled`, `.editable(false)` (shown, taking no typing: React Native's `editable`), `.collapsible('auto'?)` (a button that opens the field), `.presented(isOpen)`, `.tokens(tokens)` (removing a token writes the binding), `.trigger(Button)`, `.trailing(...)`, `.focused(binding)`, `.submitLabel`, `.onSubmit`, `.onClearText(action)` (the clear button's press: the screen empties its text, and its tokens), `.maxLength(n)` (the most characters it takes), the keyboard modifiers, `.inputMode`, `.inputRef(ref)` (the `TextInput` Bloom's Search hands its `ref`), `.onSelectionChange(fn)` (its caret, as a mention or hashtag picker reads it) |
|
|
1295
1362
|
|
|
1296
1363
|
- **The box.** A field's box modifiers (`frame`, `padding`…) are its shell's
|
|
1297
1364
|
style, as an app writes `<TextField style>`; a picker's are its trigger's;
|
|
@@ -1675,7 +1742,7 @@ Bloom's PageHeader. The PageHeader's own props are modifiers of the same
|
|
|
1675
1742
|
name: `.safeArea(on?)`, `.titleAlign('start' | 'center')`, `.accessory(view)`
|
|
1676
1743
|
(full-width chrome under the title row), `.tone('default' | 'onImage')`,
|
|
1677
1744
|
`.scrimColor(role)` (the opaque colour the scrim fades from, painted from the
|
|
1678
|
-
theme), `.scrimFalloff('smooth' | 'linear')` and `.titleReveal('auto' |
|
|
1745
|
+
theme, or an app's own colour as written, the same in both schemes), `.scrimFalloff('smooth' | 'linear')` and `.titleReveal('auto' |
|
|
1679
1746
|
'always' | 'onScroll' | 'onDock')`. The system bar has none of them: a header
|
|
1680
1747
|
that needs them on iOS in a native stack is `.inPage()`.
|
|
1681
1748
|
|
|
@@ -1854,6 +1921,7 @@ toast.success('Saved')
|
|
|
1854
1921
|
| `.alert(isPresented, Alert(title))` | Bloom `AlertDialog` beside the view (`open`, `onOpenChange`) |
|
|
1855
1922
|
| `.dialog(isPresented, Dialog(...content))` | Bloom `Dialog` beside the view (`open`, `onClose`), its content the children |
|
|
1856
1923
|
| `Dialog(...content).presented(isPresented)` | the same Bloom `Dialog`, as a view of its own in place |
|
|
1924
|
+
| `Dialog(...content).control(control)` | the same, opened and closed by Bloom's dialog control (`useDialogControl()`: `control.open()`, `control.close()`), for a dialog another view opens (a FAB): Bloom's `control` |
|
|
1857
1925
|
| `.popover(isPresented, Popover(...content))` | Bloom `Popover`: the view is its `PopoverTrigger asChild`, the content its `PopoverContent` |
|
|
1858
1926
|
| `.confirmationDialog(isPresented, ConfirmationDialog(title, ...rows))` | the lens menu grown out of the view (Android, OxyOS), SwiftUI's `confirmationDialog` (iOS), Bloom `Dialog` (the web) |
|
|
1859
1927
|
| `ConnectionStatus()` | Bloom `ConnectionStatusToasts` |
|
|
@@ -1921,7 +1989,11 @@ toast.success('Saved')
|
|
|
1921
1989
|
where the view is, by the same code `.dialog()` draws it with. `.presented()`
|
|
1922
1990
|
ends the chain (it is a view, with no modifier of its own); every modifier
|
|
1923
1991
|
before it is the dialog's, so `.frame()` and `.padding()` are its width and
|
|
1924
|
-
`contentPadding`, never a box around it.
|
|
1992
|
+
`contentPadding`, never a box around it. `.control(control)` ends it the
|
|
1993
|
+
same way for a dialog Bloom's control opens. `.detached()` floats a bottom
|
|
1994
|
+
dialog above the safe area with gutters (Bloom's `detached`), and
|
|
1995
|
+
`.panelFrame({ maxWidth: '540' })` is the side or bottom panel's own frame
|
|
1996
|
+
(Bloom's `panelStyle`); `.frame()` stays the centred card's.
|
|
1925
1997
|
|
|
1926
1998
|
```ts
|
|
1927
1999
|
const PublishAs = view(({ open, onClose }: { open: boolean; onClose: () => void }) =>
|
|
@@ -2011,11 +2083,12 @@ inside a screen, as Bloom's is.
|
|
|
2011
2083
|
| `.contentMargins(edge?, space)`, `.spacing(space)` | `contentContainerStyle`'s padding (a later margin of an edge replaces the earlier) and `gap` |
|
|
2012
2084
|
| `.contentGrows(on?)` | `contentContainerStyle`'s `flexGrow: 1`: the content container grows to fill the scroll, so content shorter than the viewport (an empty state) centres or sits at its end; `on` a condition (`items.length === 0`) grows it only while it holds. A `ScrollArea`, a `ScrollSurface` and a `VirtualList` take it too |
|
|
2013
2085
|
| `.refreshable([refreshing, setRefreshing], tint?)`, `.refreshable({ refreshing, onRefresh }, tint?)` | a `RefreshControl`: `refreshing` the binding's value, a pull writing `true` (`onRefresh`); the app writes `false` when it has refreshed. Or a refreshing value and the action a pull runs (a query's `isRefetching` and `refetch`), passed as they are. `tint`, a colour role (or a role at an opacity), is its `tintColor` and `colors={[…]}`, painted from the theme as an app writes `tintColor={theme.colors.primary} colors={[theme.colors.primary]}`; `{ ios, android }` is each platform's own (`{ ios: 'primary' }` is `tintColor` alone: Android's spinner keeps its look) |
|
|
2014
|
-
| `.onEndReached(action, threshold?)` | `onEndReached`, `onEndReachedThreshold` (2 viewports by default) |
|
|
2086
|
+
| `.onEndReached(action, threshold?)` | `onEndReached`, `onEndReachedThreshold` (2 viewports by default); `action` chosen at render, `undefined` included (`hasMore ? loadMore : undefined`), as the app wrote it: `undefined` calls nothing |
|
|
2015
2087
|
| `.scrollIndicators('automatic' \| 'visible' \| 'hidden', axis?)` | `showsVerticalScrollIndicator` and `showsHorizontalScrollIndicator`, or only the one `axis` (`'vertical'` or `'horizontal'`) names: `showsVerticalScrollIndicator={false}` alone is `.scrollIndicators('hidden', 'vertical')` |
|
|
2016
2088
|
| `.scrollDismissesKeyboard('never' \| 'immediately' \| 'interactively')` | `keyboardDismissMode` `none`, `on-drag`, `interactive` |
|
|
2017
2089
|
| `.safeAreaInset(edge, view, spacing?)`, `.safeAreaBar(edge, view)` | a view pinned at the `top` or `bottom` and the content padded by its height (see below) |
|
|
2018
2090
|
| `.keyboardTaps('never' \| 'always' \| 'handled')` | `keyboardShouldPersistTaps` |
|
|
2091
|
+
| `.stickyIndices(indices)` | `stickyHeaderIndices`: the children, by index, that stay at the top once scrolled to it (a profile's tabs); `undefined` keeps none |
|
|
2019
2092
|
| `.contentView((v) => v…)` | Bloom's `ScreenScrollView contentView` (what an app's `contentContainerClassName` drew): the content laid out in a view of its own inside the content container, which then grows to the viewport and pads only the screen's chrome (a content-sized screen reads no intrinsic height from it). `v` takes the layout of one view: `padding`, `spacing`, `align`, `justify`, `wrap`, `axis`, `frame`, `flex`, `grow`, `shrink`, `basis`, `alignSelf` (the spec's `contentView.modifiers`), drawn as a vertical stack of them is, in layer order (a frame after its padding: one view); the content margins and spacing go on that view after its own, as an app's `contentContainerStyle` followed its class |
|
|
2020
2093
|
|
|
2021
2094
|
Only what the chain names reaches the scroll view, so Bloom's own defaults
|
|
@@ -2434,7 +2507,7 @@ ErrorBoundary(Feed()).title('The feed failed').resetKey(userId)
|
|
|
2434
2507
|
| Node | Draws |
|
|
2435
2508
|
| --- | --- |
|
|
2436
2509
|
| `Card(...)`, `CardHeader` / `CardBody` / `CardFooter(...)`, `CardTitle` / `CardDescription(text)` | Bloom `Card` and its parts; a card lays its children out as a stack does, `.axis()`, `.spacing()`, `.align()`, `.justify()`, in the view Bloom's Card holds them in (its `style`) |
|
|
2437
|
-
| `Row(title?)` | Bloom `Item` (the list row; `Item` is the menu's row) |
|
|
2510
|
+
| `Row(title?)` | Bloom `Item` (the list row; `Item` is the menu's row); `.onPress(undefined)` (a press chosen at render, `full ? undefined : add`) is an `Item` with no press, no button, as Bloom draws one |
|
|
2438
2511
|
| `GroupedSection(...rows)`, `GroupedSectionItem(title)` | Bloom `GroupedSection`, `GroupedSectionItem` |
|
|
2439
2512
|
| `GroupedSectionIcon(icon)`, `GroupedSectionDivider()`, `GroupedSectionCollapse(open, ...rows)` | Bloom `GroupedSectionIcon`, `GroupedSectionDivider`, `GroupedSectionCollapse` |
|
|
2440
2513
|
| `Chip(...content)` | Bloom `Chip`: the `Text` is its label, an `Icon` before or after it its glyphs; a glyph with a size or ink of its own (`Icon(X).size('sm').foreground('primary')`), or any other view, before or after the label is drawn as it is (Bloom's `leading` and `trailing`) |
|
|
@@ -2719,7 +2792,10 @@ at its edges adds to that padding), `.itemKey()`, `.itemType()` (FlashList's rec
|
|
|
2719
2792
|
`.estimatedItemSize(px)`, `.columns()`, `.itemLayout(fn)` (Bloom's `overrideItemLayout`:
|
|
2720
2793
|
`fn(layout, item, index, columns)` sets `layout.span`, so a full-width row sits in a grid of
|
|
2721
2794
|
columns), `.onEndReached(action, threshold?)`,
|
|
2722
|
-
`.refreshable([refreshing, setRefreshing])` or `.refreshable({ refreshing, onRefresh })`, `.stickyIndices()
|
|
2795
|
+
`.refreshable([refreshing, setRefreshing])` or `.refreshable({ refreshing, onRefresh })`, `.stickyIndices()`
|
|
2796
|
+
(each chosen at render with `undefined` for none, as JSX writes `onEndReached={hasMore ? loadMore : undefined}`,
|
|
2797
|
+
`onRefresh={signedIn ? refetch : undefined}` and `stickyHeaderIndices={tabBar ? [0] : undefined}`: no end call, no
|
|
2798
|
+
pull to refresh, no sticky row),
|
|
2723
2799
|
`.restorationKey()`, `.headerContent()`, `.headerFitsContent()` (the header is its content's
|
|
2724
2800
|
height and the list's width, `ListHeaderComponentStyle`'s `flexGrow: 0, flexShrink: 0,
|
|
2725
2801
|
alignSelf: 'stretch'`, so the engine never stretches it to the viewport and a sticky row after it
|
|
@@ -4417,6 +4493,32 @@ A root placed back in a language tree has no boundary: `Embed(toElement(chain))`
|
|
|
4417
4493
|
an `Embed` render function or a `VirtualList` row that returns one, is drawn
|
|
4418
4494
|
as part of that tree, in the environment provided there.
|
|
4419
4495
|
|
|
4496
|
+
**What a root costs.** Every node costs React what the JSX it stands for
|
|
4497
|
+
costs: a press, a hit slop, a pinned edge, a fill at an opacity, an app colour,
|
|
4498
|
+
a glyph (the per-node cost gate, `parity/cost.parity.test.tsx`, measures each
|
|
4499
|
+
against its JSX). The boundary is the one thing JSX does not have: one fiber,
|
|
4500
|
+
and a context read for each thing its tree takes from where it is placed. It
|
|
4501
|
+
reads the environment (an `.environment()`, `.disabled()`, `.animation()`,
|
|
4502
|
+
navigator or text trait set above reaches the root through it) when a node of
|
|
4503
|
+
its tree takes from it: a press (a `.disabled()` above disables it), a text, a
|
|
4504
|
+
glyph with no colour of its own, any modifier that sets a value for what is
|
|
4505
|
+
inside it. It reads the theme when a node paints a theme colour; a fixed
|
|
4506
|
+
colour (`white`, `black/60`, natively) and an app's own colour read none. A
|
|
4507
|
+
tree of fixed geometry, a glyph in a fixed colour, an embedded element or a
|
|
4508
|
+
`view()` (which reads what it takes itself) reads nothing, and a `view()`
|
|
4509
|
+
inside it still reads what is set above. What a tree reads is known from its
|
|
4510
|
+
nodes, once per node, and read with React's `use`, so a root whose tree comes
|
|
4511
|
+
to read more stays the same component and keeps its state; a `view()` body
|
|
4512
|
+
reads the same way. Mention's feed video preview (a tap area and a mute button
|
|
4513
|
+
in one root) is its JSX's fibers, hooks and reads, and one read more, the
|
|
4514
|
+
environment its presses take. A component whose JSX holds two roots pays them
|
|
4515
|
+
twice; converting a region into one root, not each of its pieces into a root
|
|
4516
|
+
of its own, pays them once, and a region already inside a language tree pays
|
|
4517
|
+
nothing. Order still means nesting:
|
|
4518
|
+
`.frame().background().border().corner()` is the one rounded, filled, outlined
|
|
4519
|
+
view a JSX style writes; `.corner()` before `.background()` rounds the content
|
|
4520
|
+
and fills a square behind it, a second view.
|
|
4521
|
+
|
|
4420
4522
|
## ViewThatFits
|
|
4421
4523
|
|
|
4422
4524
|
`ViewThatFits(axis, ...candidates)` is SwiftUI's `ViewThatFits(in:)`: the first
|
|
@@ -4815,14 +4917,14 @@ the owner's decision, or an app's `defineTokens`) before a codemod moves it.
|
|
|
4815
4917
|
|
|
4816
4918
|
| | Utilities | Uses | Share of uses |
|
|
4817
4919
|
| --- | ---: | ---: | ---: |
|
|
4818
|
-
| Maps to a modifier and a token |
|
|
4920
|
+
| Maps to a modifier and a token | 1087 | 47344 | 88.1% |
|
|
4819
4921
|
| Expressed by the view’s structure | 48 | 3426 | 6.4% |
|
|
4820
|
-
| Redundant in the language |
|
|
4821
|
-
| Needs a named token (raw value) |
|
|
4922
|
+
| Redundant in the language | 30 | 420 | 0.8% |
|
|
4923
|
+
| Needs a named token (raw value) | 259 | 609 | 1.1% |
|
|
4822
4924
|
| An app’s own token (a brand colour) | 30 | 76 | 0.1% |
|
|
4823
4925
|
| Maps to the motion layer | 13 | 236 | 0.4% |
|
|
4824
4926
|
| Needs a modifier the language lacks | 26 | 63 | 0.1% |
|
|
4825
|
-
| An app’s own class |
|
|
4927
|
+
| An app’s own class | 427 | 1546 | 2.9% |
|
|
4826
4928
|
|
|
4827
4929
|
53720 uses of 1920 utilities across 28 apps. Of the
|
|
4828
4930
|
2061 variant prefixes written over them, 1739 (84.4%) are a `when()`
|
|
@@ -4832,7 +4934,7 @@ condition. The values with no rung, by scale (the owner names each as a token or
|
|
|
4832
4934
|
| --- | ---: | --- |
|
|
4833
4935
|
| color | 219 | --primary-subtle (20), --ring (18), --sidebar-foreground (14), green-500 (12), --sidebar-border (12), red-500 (10), --sidebar-accent (9), red-400 (9), --sidebar-accent-foreground (9), --sidebar (8), --sidebar-ring (8), --accent-foreground (8) |
|
|
4834
4936
|
| space | 199 | 18px (9), 600px (8), 144px (8), 520px (7), 100px (7), 220px (7), 565px (6), 52px (6), 112px (6), 7px (6), 150px (6), 88px (6) |
|
|
4835
|
-
| opacity |
|
|
4937
|
+
| opacity | 58 | --ring at 50% (16), black at [0.04]% (7), white at [0.06]% (6), white at 15% (4), --primary at 15% (3), black at [0.025]% (2), black at [0.07]% (2), white at [0.02]% (2), white at [0.07]% (2), --sidebar-foreground at 70% (2), black at [0.06]% (2), black at 35% (1) |
|
|
4836
4938
|
| leading | 42 | 1 (15), 29px (6), 17px (5), 15px (2), 41px (2), 12px (1), 13px (1), 19px (1), 21px (1), 23px (1), 26px (1), 27px (1) |
|
|
4837
4939
|
| font | 37 | 10.5px (8), 23px (5), 34px (4), 48px / 48px (2), 11.5px (2), 13.5px (2), 15.5px (2), 21px (2), 29px (2), 28px / 34px (2), 60px / 60px (1), 19px (1) |
|
|
4838
4940
|
| corner | 29 | 23px (6), 5px (5), 13px (3), 27px (3), 25px (2), 26px (2), 3px (2), 9px (2), 19px (1), 30px (1), 35px (1), 32px (1) |
|
package/docs/design-tokens.mdx
CHANGED
|
@@ -196,7 +196,13 @@ memory rather than from the file, `bloomDesignTokens()` from
|
|
|
196
196
|
### One quiet-text role, one colour
|
|
197
197
|
|
|
198
198
|
`text-text-tertiary` and `theme.colors.textTertiary` are the **same colour**:
|
|
199
|
-
`--muted-foreground
|
|
199
|
+
`--muted-foreground`'s, the theme's one quiet-text colour. `textTertiary` has a
|
|
200
|
+
token of its own, `--faint-foreground` (`faintForeground` from
|
|
201
|
+
`useColorTokens()`), which every preset holds at that colour, so a component
|
|
202
|
+
can paint the tertiary text from the tokens. It differs only in
|
|
203
|
+
`mode="adaptive"` on Android and iOS, where the platform answers it with its
|
|
204
|
+
own tertiary label (Material You `outline`, iOS `tertiaryLabel`), as it answers
|
|
205
|
+
`textTertiary`.
|
|
200
206
|
|
|
201
207
|
They were not. The utility has always aliased `--muted-foreground` (8.42:1 light
|
|
202
208
|
/ 11.33:1 dark) while `theme.colors.textTertiary` read the engine's `outline`
|
|
@@ -367,7 +373,11 @@ mode and retain explicit ancestor token overrides. A new `colorPreset` starts
|
|
|
367
373
|
a fresh palette. Updating or clearing scope props preserves mounted children
|
|
368
374
|
and their state. `asChild` retains its existing single-child style contract.
|
|
369
375
|
An omitted token inherits; an empty color, unknown token, CSS variable reference
|
|
370
|
-
or color that React Native cannot parse is rejected.
|
|
376
|
+
or color that React Native cannot parse is rejected. One token follows another:
|
|
377
|
+
an exact `muted-foreground` also sets `faint-foreground` unless the scope names
|
|
378
|
+
it too, because every preset holds the two at one colour and a scope that
|
|
379
|
+
redraws its quiet text for its own fill wants its tertiary text legible there,
|
|
380
|
+
not the preset's grey. Resolve app-specific colors
|
|
371
381
|
before passing them; do not restate Bloom's standard palette.
|
|
372
382
|
|
|
373
383
|
### Persisted profile colours
|
package/docs/no-nativewind.mdx
CHANGED
|
@@ -47,7 +47,9 @@ tokens. Colour comes from `useColorTokens()` (`theme/color-tokens.ts`):
|
|
|
47
47
|
|
|
48
48
|
- Native: the nearest scope's token record (the provider's, a colour scope's, a
|
|
49
49
|
seed scope's, or the one a portal bridge carries), so a colour is exactly the
|
|
50
|
-
value the class read
|
|
50
|
+
value the class read. In `mode="adaptive"` the record holds the platform's
|
|
51
|
+
dynamic colours, as `useTheme().colors` does: the provider builds both from
|
|
52
|
+
one palette ([Theme](./theme.mdx), *Which reader*).
|
|
51
53
|
- Web: the token's CSS variable (`var(--primary)`), which the theme writes on
|
|
52
54
|
the document and a colour scope on its element, as the classes read it. A
|
|
53
55
|
theme switch re-renders nothing on the web; the server's first paint is the
|
|
@@ -81,7 +83,8 @@ the authority.
|
|
|
81
83
|
|
|
82
84
|
- Native: `scripts/no-nativewind/run.sh <baseline> <out> [family,…]` renders
|
|
83
85
|
each family's cases (`scripts/no-nativewind/cases/<family>.cases.tsx`) on
|
|
84
|
-
Android under Bloom's provider, light
|
|
86
|
+
Android under Bloom's provider, light, dark and adaptive (over the mocked
|
|
87
|
+
dynamic palette `__mocks__/dynamic-palette.ts`), in a baseline checkout styled
|
|
85
88
|
by react-native-css's real runtime over the Tailwind an app compiles, and in
|
|
86
89
|
this branch, and requires identical committed host trees.
|
|
87
90
|
- Web: `scripts/no-nativewind/verify-web.mjs` compares every story of a family
|
package/docs/task-catalog.json
CHANGED
package/docs/task-catalog.mdx
CHANGED
|
@@ -8,7 +8,7 @@ order: 1
|
|
|
8
8
|
|
|
9
9
|
# Choose an API by task
|
|
10
10
|
|
|
11
|
-
This guide belongs to **@oxy.so/bloom 23.
|
|
11
|
+
This guide belongs to **@oxy.so/bloom 23.9.0**. Read it from the installed package alongside [the structured index](./task-catalog.json). A source build version is not a registry-publication receipt. Use the containing package’s manifest for exact peer ranges.
|
|
12
12
|
|
|
13
13
|
Start under the application’s BloomProvider and follow [getting started](./getting-started.mdx) for CSS, fonts and platform setup. These examples accept domain content/actions and require a bounded host. They do not add a provider per route. For document scrolling, follow [the host contract](./compose-layouts.mdx); Expo’s bounded reset must not silently prevent document overflow.
|
|
14
14
|
|
package/docs/theme.mdx
CHANGED
|
@@ -111,6 +111,8 @@ Every preset exposes:
|
|
|
111
111
|
`colors.backgroundTertiary` expose the secondary and tertiary backgrounds.
|
|
112
112
|
- `colors.text` — body text.
|
|
113
113
|
- `colors.textSecondary` — secondary text.
|
|
114
|
+
- `colors.textTertiary` — tertiary text: the same colour as `textSecondary` in
|
|
115
|
+
every preset, the platform's tertiary label in `mode="adaptive"`.
|
|
114
116
|
- `colors.border` — divider lines.
|
|
115
117
|
- `colors.success` / `colors.warning` / `colors.error` / `colors.info` —
|
|
116
118
|
semantic colors, with corresponding `*Foreground` and `*Subtle` pairs.
|
|
@@ -152,6 +154,41 @@ function Row() {
|
|
|
152
154
|
Tokens are what the theme publishes; `useTheme().colors` keeps the JS palette
|
|
153
155
|
for colour arithmetic.
|
|
154
156
|
|
|
157
|
+
### Which reader
|
|
158
|
+
|
|
159
|
+
Bloom has one reader for the colours a style paints: `useColorTokens()` (or
|
|
160
|
+
`createTokenStyles`). The other two have narrower jobs:
|
|
161
|
+
|
|
162
|
+
- `useTheme()` is the theme itself: its mode, `isDark`, and `colors` as values
|
|
163
|
+
to compute with (mixing, contrast, alpha on a colour that is not a token).
|
|
164
|
+
Paint the result; do not read `colors` for a colour a style takes as it is.
|
|
165
|
+
There is no token reader for arithmetic: on the web a token is a CSS
|
|
166
|
+
variable, which `withAlpha`, a surface material's tint or a contrast check
|
|
167
|
+
cannot read, so a colour that feeds one (a scrim, a `Surface` or
|
|
168
|
+
`SurfacePaint` fill, a mix) stays a `colors` value. One palette per theme
|
|
169
|
+
keeps it the token's colour.
|
|
170
|
+
- `useThemePaint()` is the older paint reader (on a prepainted web document its
|
|
171
|
+
colours are `--bloom-paint-*` variables). It stays public, as apps call it,
|
|
172
|
+
and new Bloom code does not.
|
|
173
|
+
|
|
174
|
+
There is one resolved palette per theme, so the two readers never disagree:
|
|
175
|
+
the provider builds the token record and `useTheme().colors` together
|
|
176
|
+
(`buildPresetPalette`). In `mode="adaptive"` on Android and iOS the platform's
|
|
177
|
+
dynamic colours overlay both, each token taking the colour of the
|
|
178
|
+
`theme.colors` field it feeds (`COLOR_FIELDS` in
|
|
179
|
+
`theme/color-scope/resolve-scope.ts`: `--muted-foreground` is `textSecondary`,
|
|
180
|
+
`--faint-foreground` is `textTertiary`, so `faintForeground` is the platform's
|
|
181
|
+
tertiary label there and `mutedForeground` its secondary one).
|
|
182
|
+
A field that is not a token's own field can differ from that token there
|
|
183
|
+
(`primaryLight`, `primaryDark` and `negative*` hold their own platform roles),
|
|
184
|
+
so a family reading one of them keeps reading `colors` or asks for the token it
|
|
185
|
+
means.
|
|
186
|
+
|
|
187
|
+
Bloom's components still read `useTheme().colors` for final styles in most
|
|
188
|
+
families; they move to the tokens family by family, each move proved by the
|
|
189
|
+
no-NativeWind parity harness on native (light, dark and adaptive) and Chrome on
|
|
190
|
+
the web, with no rendered value changed.
|
|
191
|
+
|
|
155
192
|
## Mobile web document appearance
|
|
156
193
|
|
|
157
194
|
The app-wide provider is the sole runtime owner of document appearance. It
|