@oxy.so/bloom 23.8.1 → 23.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/bloom-language-classnames.mdx +14 -14
- package/docs/bloom-language-codemod.mdx +40 -5
- package/docs/bloom-language-for-agents.mdx +3 -1
- package/docs/bloom-language-from-jsx.mdx +1 -0
- package/docs/bloom-language-modifiers.mdx +231 -84
- package/docs/bloom-language-nodes.mdx +48 -26
- package/docs/bloom-language-tokens.mdx +71 -14
- package/docs/bloom-language.mdx +251 -68
- package/docs/design-tokens.mdx +12 -2
- package/docs/no-nativewind.mdx +5 -4
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/theme.mdx +22 -6
- package/lib/commonjs/accordion/Accordion.js +12 -12
- package/lib/commonjs/accordion/Accordion.js.map +1 -1
- package/lib/commonjs/accordion/Accordion.web.js +8 -8
- package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
- package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
- package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/commonjs/agent-log/AgentLog.js +131 -174
- package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
- package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
- package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
- package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
- package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/commonjs/app-shell/AppShell.js +5 -7
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/NotificationBell.js +9 -9
- package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
- package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
- package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/commonjs/choice-list/ChoiceList.js +5 -5
- package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/commonjs/cover-header/CoverHeader.js +3 -3
- package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
- package/lib/commonjs/data-table/DataTable.js +10 -11
- package/lib/commonjs/data-table/DataTable.js.map +1 -1
- package/lib/commonjs/data-table/DataTableSelect.js +8 -8
- package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
- package/lib/commonjs/design-tokens/theme.css +1 -0
- package/lib/commonjs/design-tokens/tokens.json +390 -0
- package/lib/commonjs/dialog/DialogContent.js +5 -4
- package/lib/commonjs/dialog/DialogContent.js.map +1 -1
- package/lib/commonjs/dialog/DialogHeader.js +6 -5
- package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
- package/lib/commonjs/dialog/SheetShell.js +5 -4
- package/lib/commonjs/dialog/SheetShell.js.map +1 -1
- package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
- package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
- package/lib/commonjs/floating/lens/lens-cover.js +56 -0
- package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
- package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
- package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
- package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
- package/lib/commonjs/home-search/BudgetPicker.js +8 -8
- package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
- package/lib/commonjs/home-search/MoveInPicker.js +7 -7
- package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
- package/lib/commonjs/icon-circle/IconCircle.js +14 -16
- package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
- package/lib/commonjs/icons/shared.js +3 -5
- package/lib/commonjs/icons/shared.js.map +1 -1
- package/lib/commonjs/image/BloomImage.js +3 -0
- package/lib/commonjs/image/BloomImage.js.map +1 -1
- package/lib/commonjs/kbd/Kbd.js +8 -8
- package/lib/commonjs/kbd/Kbd.js.map +1 -1
- package/lib/commonjs/layout/ResizeHandle.js +6 -5
- package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
- package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
- package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/commonjs/list/ListBase.js +3 -3
- package/lib/commonjs/list/ListBase.js.map +1 -1
- package/lib/commonjs/list/ListPerson.js +3 -3
- package/lib/commonjs/list/ListPerson.js.map +1 -1
- package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
- package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
- package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
- package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
- package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
- package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
- package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -24
- package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
- package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/commonjs/project-board/MemberAvatars.js +7 -9
- package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/commonjs/project-board/styles.js +2 -5
- package/lib/commonjs/project-board/styles.js.map +1 -1
- package/lib/commonjs/radio/RadioSwatch.js +5 -5
- package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
- package/lib/commonjs/rating/Rating.js +7 -7
- package/lib/commonjs/rating/Rating.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.js +8 -8
- package/lib/commonjs/rating/RatingBar.js.map +1 -1
- package/lib/commonjs/rating/RatingBar.web.js +5 -5
- package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
- package/lib/commonjs/rating/RatingInput.js +9 -9
- package/lib/commonjs/rating/RatingInput.js.map +1 -1
- package/lib/commonjs/rating/RatingSummary.js +6 -6
- package/lib/commonjs/rating/RatingSummary.js.map +1 -1
- package/lib/commonjs/row-actions/RowActions.js +5 -5
- package/lib/commonjs/row-actions/RowActions.js.map +1 -1
- package/lib/commonjs/select/Select.js +5 -5
- package/lib/commonjs/select/Select.js.map +1 -1
- package/lib/commonjs/skeleton/Skeleton.js +22 -30
- package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
- package/lib/commonjs/stat-bar/StatBar.js +41 -43
- package/lib/commonjs/stat-bar/StatBar.js.map +1 -1
- package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/CountFilter.js +3 -3
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
- package/lib/commonjs/stay-filters/FilterSection.js +12 -12
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/commonjs/stay-search/GuestPicker.js +5 -5
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
- package/lib/commonjs/stepper/Stepper.js +11 -10
- package/lib/commonjs/stepper/Stepper.js.map +1 -1
- package/lib/commonjs/stepper/StepperRow.js +12 -12
- package/lib/commonjs/stepper/StepperRow.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/commonjs/task-list/TaskList.js +14 -15
- package/lib/commonjs/task-list/TaskList.js.map +1 -1
- package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
- package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
- package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
- package/lib/commonjs/theme/build-theme.js +39 -9
- package/lib/commonjs/theme/build-theme.js.map +1 -1
- package/lib/commonjs/theme/canonical-tokens.js +40 -0
- package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
- package/lib/commonjs/theme/color-policy.js +3 -0
- package/lib/commonjs/theme/color-policy.js.map +1 -1
- package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
- package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
- package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
- package/lib/commonjs/theme/color-tokens.js +32 -10
- package/lib/commonjs/theme/color-tokens.js.map +1 -1
- package/lib/commonjs/theme/color-utils.js +4 -0
- package/lib/commonjs/theme/color-utils.js.map +1 -1
- package/lib/commonjs/theme/default-token-vars.js +92 -0
- package/lib/commonjs/theme/default-token-vars.js.map +1 -0
- package/lib/commonjs/theme/index.js +6 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/index.web.js +6 -0
- package/lib/commonjs/theme/index.web.js.map +1 -1
- package/lib/commonjs/theme/prepaint-palettes.js +1 -5
- package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
- package/lib/commonjs/theme/token-registry.js +7 -28
- package/lib/commonjs/theme/token-registry.js.map +1 -1
- package/lib/commonjs/theme/use-theme-paint.js +28 -0
- package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
- package/lib/commonjs/typography/Typography.js +27 -27
- package/lib/commonjs/typography/Typography.js.map +1 -1
- package/lib/commonjs/web-search/WebSearch.js +18 -19
- package/lib/commonjs/web-search/WebSearch.js.map +1 -1
- package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
- package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
- package/lib/commonjs/wizard/WizardProgress.js +5 -5
- package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
- package/lib/module/accordion/Accordion.js +12 -12
- package/lib/module/accordion/Accordion.js.map +1 -1
- package/lib/module/accordion/Accordion.web.js +8 -8
- package/lib/module/accordion/Accordion.web.js.map +1 -1
- package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
- package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
- package/lib/module/agent-creator/EmotionPicker.js +3 -5
- package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
- package/lib/module/agent-log/AgentLog.js +131 -174
- package/lib/module/agent-log/AgentLog.js.map +1 -1
- package/lib/module/agent-reply/AgentProfile.js +7 -10
- package/lib/module/agent-reply/AgentProfile.js.map +1 -1
- package/lib/module/agent-thinking/AgentThinking.js +8 -7
- package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
- package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
- package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +5 -7
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +73 -29
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/NotificationBell.js +9 -9
- package/lib/module/app-shell/NotificationBell.js.map +1 -1
- package/lib/module/app-shell/PanelReorderHandle.js +4 -6
- package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
- package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
- package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
- package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
- package/lib/module/choice-list/ChoiceList.js +5 -5
- package/lib/module/choice-list/ChoiceList.js.map +1 -1
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
- package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
- package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
- package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
- package/lib/module/cover-header/CoverHeader.js +3 -3
- package/lib/module/cover-header/CoverHeader.js.map +1 -1
- package/lib/module/data-table/DataTable.js +10 -11
- package/lib/module/data-table/DataTable.js.map +1 -1
- package/lib/module/data-table/DataTableSelect.js +8 -8
- package/lib/module/data-table/DataTableSelect.js.map +1 -1
- package/lib/module/design-tokens/theme.css +1 -0
- package/lib/module/design-tokens/tokens.json +390 -0
- package/lib/module/dialog/DialogContent.js +5 -4
- package/lib/module/dialog/DialogContent.js.map +1 -1
- package/lib/module/dialog/DialogHeader.js +6 -5
- package/lib/module/dialog/DialogHeader.js.map +1 -1
- package/lib/module/dialog/SheetShell.js +5 -4
- package/lib/module/dialog/SheetShell.js.map +1 -1
- package/lib/module/expandable-text/ExpandableText.js +3 -3
- package/lib/module/expandable-text/ExpandableText.js.map +1 -1
- package/lib/module/floating/lens/lens-cover.js +51 -0
- package/lib/module/floating/lens/lens-cover.js.map +1 -0
- package/lib/module/floating/lens/native-lens.js.map +1 -1
- package/lib/module/grouped-section/GroupedSection.js +16 -15
- package/lib/module/grouped-section/GroupedSection.js.map +1 -1
- package/lib/module/home-search/BudgetPicker.js +8 -8
- package/lib/module/home-search/BudgetPicker.js.map +1 -1
- package/lib/module/home-search/MoveInPicker.js +7 -7
- package/lib/module/home-search/MoveInPicker.js.map +1 -1
- package/lib/module/icon-circle/IconCircle.js +14 -16
- package/lib/module/icon-circle/IconCircle.js.map +1 -1
- package/lib/module/icons/shared.js +3 -5
- package/lib/module/icons/shared.js.map +1 -1
- package/lib/module/image/BloomImage.js +3 -0
- package/lib/module/image/BloomImage.js.map +1 -1
- package/lib/module/kbd/Kbd.js +8 -8
- package/lib/module/kbd/Kbd.js.map +1 -1
- package/lib/module/layout/ResizeHandle.js +6 -5
- package/lib/module/layout/ResizeHandle.js.map +1 -1
- package/lib/module/link-preview/LinkPreviewCard.js +24 -26
- package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
- package/lib/module/list/ListBase.js +3 -3
- package/lib/module/list/ListBase.js.map +1 -1
- package/lib/module/list/ListPerson.js +3 -3
- package/lib/module/list/ListPerson.js.map +1 -1
- package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
- package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
- package/lib/module/markdown/InlineMarkdown.js +9 -11
- package/lib/module/markdown/InlineMarkdown.js.map +1 -1
- package/lib/module/markdown/MarkdownBlocks.js +35 -43
- package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
- package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
- package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
- package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
- package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
- package/lib/module/notifications/NotificationsScreen.js +21 -27
- package/lib/module/notifications/NotificationsScreen.js.map +1 -1
- package/lib/module/overlay/OverlayInertBoundary.js +33 -12
- package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
- package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
- package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
- package/lib/module/panel-routing/expo-router/StackScene.js +42 -24
- package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
- package/lib/module/phone-input/CountryCodeSelect.js +4 -4
- package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
- package/lib/module/project-board/MemberAvatars.js +7 -9
- package/lib/module/project-board/MemberAvatars.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +4 -7
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
- package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
- package/lib/module/project-board/styles.js +3 -6
- package/lib/module/project-board/styles.js.map +1 -1
- package/lib/module/radio/RadioSwatch.js +5 -5
- package/lib/module/radio/RadioSwatch.js.map +1 -1
- package/lib/module/rating/Rating.js +7 -7
- package/lib/module/rating/Rating.js.map +1 -1
- package/lib/module/rating/RatingBar.js +8 -8
- package/lib/module/rating/RatingBar.js.map +1 -1
- package/lib/module/rating/RatingBar.web.js +5 -5
- package/lib/module/rating/RatingBar.web.js.map +1 -1
- package/lib/module/rating/RatingInput.js +9 -9
- package/lib/module/rating/RatingInput.js.map +1 -1
- package/lib/module/rating/RatingSummary.js +6 -6
- package/lib/module/rating/RatingSummary.js.map +1 -1
- package/lib/module/row-actions/RowActions.js +5 -5
- package/lib/module/row-actions/RowActions.js.map +1 -1
- package/lib/module/select/Select.js +5 -5
- package/lib/module/select/Select.js.map +1 -1
- package/lib/module/skeleton/Skeleton.js +22 -30
- package/lib/module/skeleton/Skeleton.js.map +1 -1
- package/lib/module/stat-bar/StatBar.js +41 -43
- package/lib/module/stat-bar/StatBar.js.map +1 -1
- package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
- package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
- package/lib/module/stay-filters/CountFilter.js +3 -3
- package/lib/module/stay-filters/CountFilter.js.map +1 -1
- package/lib/module/stay-filters/FilterFooter.js +7 -7
- package/lib/module/stay-filters/FilterFooter.js.map +1 -1
- package/lib/module/stay-filters/FilterSection.js +12 -12
- package/lib/module/stay-filters/FilterSection.js.map +1 -1
- package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
- package/lib/module/stay-search/GuestPicker.js +5 -5
- package/lib/module/stay-search/GuestPicker.js.map +1 -1
- package/lib/module/stepper/Stepper.js +11 -10
- package/lib/module/stepper/Stepper.js.map +1 -1
- package/lib/module/stepper/StepperRow.js +12 -12
- package/lib/module/stepper/StepperRow.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
- package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
- package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
- package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
- package/lib/module/task-list/TaskList.js +14 -15
- package/lib/module/task-list/TaskList.js.map +1 -1
- package/lib/module/theme/BloomThemeProvider.js +208 -224
- package/lib/module/theme/BloomThemeProvider.js.map +1 -1
- package/lib/module/theme/build-theme-from-seed.js +1 -1
- package/lib/module/theme/build-theme.js +38 -9
- package/lib/module/theme/build-theme.js.map +1 -1
- package/lib/module/theme/canonical-tokens.js +36 -0
- package/lib/module/theme/canonical-tokens.js.map +1 -0
- package/lib/module/theme/color-policy.js +3 -0
- package/lib/module/theme/color-policy.js.map +1 -1
- package/lib/module/theme/color-scope/resolve-scope.js +46 -5
- package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
- package/lib/module/theme/color-scope/use-scope.js +2 -6
- package/lib/module/theme/color-scope/use-scope.js.map +1 -1
- package/lib/module/theme/color-tokens.js +30 -8
- package/lib/module/theme/color-tokens.js.map +1 -1
- package/lib/module/theme/color-utils.js +4 -0
- package/lib/module/theme/color-utils.js.map +1 -1
- package/lib/module/theme/default-token-vars.js +88 -0
- package/lib/module/theme/default-token-vars.js.map +1 -0
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/index.web.js +1 -1
- package/lib/module/theme/index.web.js.map +1 -1
- package/lib/module/theme/prepaint-palettes.js +2 -6
- package/lib/module/theme/prepaint-palettes.js.map +1 -1
- package/lib/module/theme/token-registry.js +1 -27
- package/lib/module/theme/token-registry.js.map +1 -1
- package/lib/module/theme/use-theme-paint.js +30 -3
- package/lib/module/theme/use-theme-paint.js.map +1 -1
- package/lib/module/typography/Typography.js +27 -27
- package/lib/module/typography/Typography.js.map +1 -1
- package/lib/module/web-search/WebSearch.js +18 -19
- package/lib/module/web-search/WebSearch.js.map +1 -1
- package/lib/module/wizard/WizardFooterBase.js +10 -10
- package/lib/module/wizard/WizardFooterBase.js.map +1 -1
- package/lib/module/wizard/WizardProgress.js +5 -5
- package/lib/module/wizard/WizardProgress.js.map +1 -1
- package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/data-table/DataTable.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
- package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
- package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/commonjs/theme/index.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
- package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
- package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
- package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
- package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
- package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/data-table/DataTable.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
- package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
- package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
- package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
- package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
- package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
- package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
- package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
- package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
- package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
- package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
- package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
- package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
- package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
- package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
- package/lib/typescript/module/theme/build-theme.d.ts +9 -0
- package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
- package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
- package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
- package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
- package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
- package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-utils.d.ts +3 -0
- package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
- package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
- package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
- package/lib/typescript/module/theme/index.d.ts +1 -1
- package/lib/typescript/module/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/index.web.d.ts +1 -1
- package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
- package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
- package/lib/typescript/module/theme/token-registry.d.ts +1 -16
- package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
- package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
- package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
- package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
- package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/accordion/Accordion.tsx +6 -6
- package/src/accordion/Accordion.web.tsx +6 -6
- package/src/agent-creator/AgentCreatorSection.tsx +4 -6
- package/src/agent-creator/EmotionPicker.tsx +3 -3
- package/src/agent-log/AgentLog.tsx +8 -21
- package/src/agent-reply/AgentProfile.tsx +4 -5
- package/src/agent-thinking/AgentThinking.tsx +4 -3
- package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
- package/src/app-shell/AppShell.tsx +3 -3
- package/src/app-shell/AppShellEngine.tsx +67 -19
- package/src/app-shell/AppShellPanelLayout.tsx +3 -3
- package/src/app-shell/NotificationBell.tsx +6 -6
- package/src/app-shell/PanelReorderHandle.tsx +4 -4
- package/src/avatar-group/AvatarGroupBase.tsx +6 -6
- package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
- package/src/choice-list/ChoiceList.tsx +3 -3
- package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
- package/src/connection-dots/ConnectionDots.tsx +4 -4
- package/src/connection-dots/ConnectionDots.web.tsx +4 -4
- package/src/cover-header/CoverHeader.tsx +3 -3
- package/src/data-table/DataTable.tsx +8 -10
- package/src/data-table/DataTableSelect.tsx +4 -4
- package/src/design-tokens/theme.css +1 -0
- package/src/design-tokens/tokens.json +390 -0
- package/src/dialog/DialogContent.tsx +3 -2
- package/src/dialog/DialogHeader.tsx +6 -5
- package/src/dialog/SheetShell.tsx +3 -2
- package/src/expandable-text/ExpandableText.tsx +3 -3
- package/src/floating/lens/lens-cover.tsx +29 -0
- package/src/floating/lens/native-lens.ts +2 -0
- package/src/grouped-section/GroupedSection.tsx +7 -6
- package/src/home-search/BudgetPicker.tsx +4 -4
- package/src/home-search/MoveInPicker.tsx +3 -3
- package/src/icon-circle/IconCircle.tsx +5 -5
- package/src/icons/shared.tsx +3 -3
- package/src/image/BloomImage.tsx +3 -0
- package/src/kbd/Kbd.tsx +4 -4
- package/src/layout/ResizeHandle.tsx +7 -5
- package/src/link-preview/LinkPreviewCard.tsx +7 -7
- package/src/list/ListBase.tsx +3 -6
- package/src/list/ListPerson.tsx +3 -3
- package/src/listing-editor/ListingPreviewPane.tsx +13 -13
- package/src/markdown/InlineMarkdown.tsx +3 -3
- package/src/markdown/MarkdownBlocks.tsx +14 -14
- package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
- package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
- package/src/notifications/NotificationPermissionSheet.tsx +3 -3
- package/src/notifications/NotificationsScreen.tsx +9 -9
- package/src/overlay/OverlayInertBoundary.tsx +10 -1
- package/src/page-header/PageHeaderTitleInput.tsx +4 -4
- package/src/panel-routing/expo-router/StackScene.tsx +7 -2
- package/src/phone-input/CountryCodeSelect.tsx +4 -4
- package/src/project-board/MemberAvatars.tsx +3 -3
- package/src/project-board/ProjectBoardBase.tsx +4 -5
- package/src/project-board/ProjectBoardCanvas.tsx +2 -2
- package/src/project-board/styles.ts +3 -4
- package/src/radio/RadioSwatch.tsx +3 -3
- package/src/rating/Rating.tsx +5 -5
- package/src/rating/RatingBar.tsx +4 -4
- package/src/rating/RatingBar.web.tsx +3 -3
- package/src/rating/RatingInput.tsx +5 -5
- package/src/rating/RatingSummary.tsx +4 -4
- package/src/row-actions/RowActions.tsx +3 -3
- package/src/select/Select.tsx +3 -3
- package/src/skeleton/Skeleton.tsx +9 -9
- package/src/stat-bar/StatBar.tsx +14 -14
- package/src/stay-filters/AvailabilityFilter.tsx +3 -3
- package/src/stay-filters/CountFilter.tsx +3 -3
- package/src/stay-filters/FilterFooter.tsx +4 -4
- package/src/stay-filters/FilterSection.tsx +5 -5
- package/src/stay-filters/SwitchFilterRow.tsx +4 -4
- package/src/stay-search/GuestPicker.tsx +3 -6
- package/src/stepper/Stepper.tsx +6 -5
- package/src/stepper/StepperRow.tsx +5 -5
- package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
- package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
- package/src/task-list/TaskList.tsx +14 -16
- package/src/theme/BloomThemeProvider.tsx +33 -33
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
- package/src/theme/build-theme-from-seed.ts +1 -1
- package/src/theme/build-theme.ts +52 -11
- package/src/theme/canonical-tokens.ts +108 -0
- package/src/theme/color-policy.ts +3 -0
- package/src/theme/color-scope/resolve-scope.ts +47 -8
- package/src/theme/color-scope/use-scope.ts +2 -6
- package/src/theme/color-tokens.ts +7 -7
- package/src/theme/color-utils.ts +4 -0
- package/src/theme/default-token-vars.ts +86 -0
- package/src/theme/index.ts +1 -1
- package/src/theme/index.web.ts +1 -1
- package/src/theme/prepaint-palettes.ts +2 -3
- package/src/theme/token-registry.ts +1 -101
- package/src/theme/use-theme-paint.ts +26 -3
- package/src/typography/Typography.tsx +12 -12
- package/src/web-search/WebSearch.tsx +16 -18
- package/src/wizard/WizardFooterBase.tsx +5 -5
- package/src/wizard/WizardProgress.tsx +5 -5
|
@@ -24,14 +24,14 @@ Alia `841e8843a`, Allo `ba28b38`, Astro `8ae8386`, Atlas `037990e`, Authenticato
|
|
|
24
24
|
|
|
25
25
|
| | Utilities | Uses | Share of uses |
|
|
26
26
|
| --- | ---: | ---: | ---: |
|
|
27
|
-
| Maps to a modifier and a token |
|
|
27
|
+
| Maps to a modifier and a token | 1090 | 47358 | 88.2% |
|
|
28
28
|
| Expressed by the view’s structure | 48 | 3426 | 6.4% |
|
|
29
|
-
| Redundant in the language |
|
|
30
|
-
| Needs a named token (raw value) |
|
|
29
|
+
| Redundant in the language | 28 | 407 | 0.8% |
|
|
30
|
+
| Needs a named token (raw value) | 258 | 608 | 1.1% |
|
|
31
31
|
| An app’s own token (a brand colour) | 30 | 76 | 0.1% |
|
|
32
32
|
| Maps to the motion layer | 13 | 236 | 0.4% |
|
|
33
33
|
| Needs a modifier the language lacks | 26 | 63 | 0.1% |
|
|
34
|
-
| An app’s own class |
|
|
34
|
+
| An app’s own class | 427 | 1546 | 2.9% |
|
|
35
35
|
|
|
36
36
|
53720 uses of 1920 utilities. Variant prefixes are `when(condition, …)`
|
|
37
37
|
over the utility they prefix; 1739 of their 2061 uses (84.4%) have a
|
|
@@ -43,12 +43,12 @@ condition: `web:` 365 (`when('web')`), `active:` 332 (`when('pressed')`), `md:`
|
|
|
43
43
|
| --- | ---: | --- |
|
|
44
44
|
| 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) |
|
|
45
45
|
| 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) |
|
|
46
|
-
| opacity |
|
|
46
|
+
| 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) |
|
|
47
47
|
| 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) |
|
|
48
48
|
| 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) |
|
|
49
49
|
| 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) |
|
|
50
50
|
| shadow | 16 | shadow-shop-s (10), shadow-shop-m (2), shadow-dropdown (1), shadow-foreground/10 (1), shadow-foreground/20 (1), shadow-l (1) |
|
|
51
|
-
| zIndex |
|
|
51
|
+
| zIndex | 5 | 10000 (1), 2000 (1), 2001 (1), 80 (1), 9998 (1) |
|
|
52
52
|
| rotation | 1 | -12° (1) |
|
|
53
53
|
| weight | 1 | 900 (1) |
|
|
54
54
|
| scale | 1 | 1.01 (1) |
|
|
@@ -159,6 +159,7 @@ when the fill is a role's colour.
|
|
|
159
159
|
| `text-caption` | .font('11').leading('14px') | 94 | 2 |
|
|
160
160
|
| `text-xl` | .font('xl').leading('28px') | 92 | 19 |
|
|
161
161
|
| `text-2xl` | .font('24').leading('32px') | 90 | 16 |
|
|
162
|
+
| `cursor-pointer` | .cursor('pointer') | 89 | 10 |
|
|
162
163
|
| `text-white` | .foreground('white') | 89 | 13 |
|
|
163
164
|
| `py-16` | .padding('vertical', '64') | 88 | 11 |
|
|
164
165
|
| `h-10` | .frame({ height: '4xl' }) | 82 | 18 |
|
|
@@ -288,6 +289,7 @@ when the fill is a role's colour.
|
|
|
288
289
|
| `py-24` | .padding('vertical', '96') | 23 | 3 |
|
|
289
290
|
| `py-space-12` | .padding('vertical', 'md') | 23 | 3 |
|
|
290
291
|
| `text-body` | .font('md').leading('22px') | 23 | 2 |
|
|
292
|
+
| `cursor-not-allowed` | .cursor('not-allowed') | 22 | 6 |
|
|
291
293
|
| `h-16` | .frame({ height: '64' }) | 22 | 10 |
|
|
292
294
|
| `max-w-sm` | .frame({ maxWidth: '384' }) | 22 | 12 |
|
|
293
295
|
| `mt-space-4` | .margin('top', 'xs') | 22 | 2 |
|
|
@@ -375,6 +377,7 @@ when the fill is a role's colour.
|
|
|
375
377
|
| `w-6` | .frame({ width: '2xl' }) | 13 | 8 |
|
|
376
378
|
| `border-border-image` | .border('border') | 12 | 2 |
|
|
377
379
|
| `border-r` | .border(role, 'thin', 'right') | 12 | 4 |
|
|
380
|
+
| `cursor-default` | .cursor('default') | 12 | 4 |
|
|
378
381
|
| `leading-[20px]` | .leading('20px') | 12 | 4 |
|
|
379
382
|
| `ml-1` | .margin('left', 'xs') | 12 | 7 |
|
|
380
383
|
| `mt-space-8` | .margin('top', 'sm') | 12 | 3 |
|
|
@@ -473,9 +476,11 @@ when the fill is a role's colour.
|
|
|
473
476
|
| `z-20` | .zIndex('20') | 8 | 5 |
|
|
474
477
|
| `bg-background/80` | .background('background/80') | 7 | 5 |
|
|
475
478
|
| `bg-black/50` | .background('black/half') | 7 | 7 |
|
|
479
|
+
| `bg-foreground/5` | .background('foreground/5') | 7 | 3 |
|
|
476
480
|
| `border-l-2` | .border(role, 'thick', 'left') | 7 | 5 |
|
|
477
481
|
| `gap-space-20` | .spacing('xl') | 7 | 3 |
|
|
478
482
|
| `h-[30px]` | .frame({ height: '30' }) | 7 | 3 |
|
|
483
|
+
| `h-auto` | .frame({ height: 'auto' }) | 7 | 4 |
|
|
479
484
|
| `justify-start` | .justify('start') | 7 | 5 |
|
|
480
485
|
| `line-through` | .strikethrough() | 7 | 3 |
|
|
481
486
|
| `max-h-96` | .frame({ maxHeight: '384' }) | 7 | 5 |
|
|
@@ -522,10 +527,12 @@ when the fill is a role's colour.
|
|
|
522
527
|
| `text-black` | .foreground('black') | 6 | 2 |
|
|
523
528
|
| `text-foreground/80` | .foreground('foreground/80') | 6 | 3 |
|
|
524
529
|
| `w-4` | .frame({ width: 'lg' }) | 6 | 6 |
|
|
530
|
+
| `w-auto` | .frame({ width: 'auto' }) | 6 | 3 |
|
|
525
531
|
| `-mt-3` | .margin('top', '-md') | 5 | 3 |
|
|
526
532
|
| `bg-fill-secondary` | .background('mutedFill') | 5 | 2 |
|
|
527
533
|
| `bg-foreground/10` | .background('foreground/10') | 5 | 3 |
|
|
528
534
|
| `bg-muted/60` | .background('mutedFill/60') | 5 | 3 |
|
|
535
|
+
| `bg-primary/5` | .background('primary/5') | 5 | 4 |
|
|
529
536
|
| `border-background` | .border('background') | 5 | 3 |
|
|
530
537
|
| `border-foreground` | .border('foreground') | 5 | 3 |
|
|
531
538
|
| `border-transparent` | .border('transparent') | 5 | 4 |
|
|
@@ -661,6 +668,7 @@ when the fill is a role's colour.
|
|
|
661
668
|
| `bg-input` | .background('input') | 2 | 2 |
|
|
662
669
|
| `bg-primary/60` | .background('primary/60') | 2 | 2 |
|
|
663
670
|
| `bg-white/30` | .background('white/30') | 2 | 2 |
|
|
671
|
+
| `bg-white/5` | .background('white/5') | 2 | 2 |
|
|
664
672
|
| `bottom-1` | .position({ bottom: 'xs' }) | 2 | 2 |
|
|
665
673
|
| `bottom-6` | .position({ bottom: '2xl' }) | 2 | 2 |
|
|
666
674
|
| `bottom-8` | .position({ bottom: '3xl' }) | 2 | 2 |
|
|
@@ -762,15 +770,12 @@ when the fill is a role's colour.
|
|
|
762
770
|
| Utility | Language | Uses | Apps |
|
|
763
771
|
| --- | --- | ---: | ---: |
|
|
764
772
|
| `relative` | a view is the positioned parent of what it pins | 117 | 14 |
|
|
765
|
-
| `cursor-pointer` | a pressable view takes the pointer | 89 | 10 |
|
|
766
773
|
| `border-0` | no border is the default | 45 | 8 |
|
|
767
774
|
| `block` | display: views are boxes | 29 | 4 |
|
|
768
775
|
| `font-sans` | the family is Bloom’s: Text takes it from its font | 25 | 4 |
|
|
769
776
|
| `font-bloom-mono` | the family is Bloom’s: Text takes it from its font | 20 | 2 |
|
|
770
777
|
| `shadow-none` | a view has no shadow unless it says so | 17 | 4 |
|
|
771
|
-
| `h-auto` | a view’s size is its content’s unless a frame says otherwise | 7 | 4 |
|
|
772
778
|
| `inline-block` | display: views are boxes | 6 | 2 |
|
|
773
|
-
| `w-auto` | a view’s size is its content’s unless a frame says otherwise | 6 | 3 |
|
|
774
779
|
| `border-b-0` | no border is the default | 3 | 2 |
|
|
775
780
|
| `border-r-0` | no border is the default | 3 | 2 |
|
|
776
781
|
|
|
@@ -794,11 +799,9 @@ when the fill is a role's colour.
|
|
|
794
799
|
| `text-[10.5px]` | 10.5px | .font(…) | 8 | 3 |
|
|
795
800
|
| `text-accent-foreground` | --accent-foreground | .foreground(…) | 8 | 2 |
|
|
796
801
|
| `text-red-500` | red-500 | .foreground(…) | 8 | 2 |
|
|
797
|
-
| `bg-foreground/5` | --foreground at 5% | .background('foreground/…') | 7 | 3 |
|
|
798
802
|
| `bg-error-subtle` | --error-subtle | .background(…) | 6 | 3 |
|
|
799
803
|
| `max-w-[520px]` | 520px | .frame({ maxWidth: … }) | 6 | 4 |
|
|
800
804
|
| `rounded-[23px]` | 23px | .corner(…) | 6 | 2 |
|
|
801
|
-
| `bg-primary/5` | --primary at 5% | .background('primary/…') | 5 | 4 |
|
|
802
805
|
| `leading-[17px]` | 17px | .leading(…) | 5 | 2 |
|
|
803
806
|
| `max-w-xl` | 576px | .frame({ maxWidth: … }) | 5 | 4 |
|
|
804
807
|
| `min-h-[52px]` | 52px | .frame({ minHeight: … }) | 5 | 4 |
|
|
@@ -828,7 +831,6 @@ when the fill is a role's colour.
|
|
|
828
831
|
| `w-[7px]` | 7px | .frame({ width: … }) | 3 | 2 |
|
|
829
832
|
| `bg-black/[0.07]` | black at [0.07]% | .background('black/…') | 2 | 2 |
|
|
830
833
|
| `bg-tertiary-subtle` | --tertiary-subtle | .background(…) | 2 | 2 |
|
|
831
|
-
| `bg-white/5` | white at 5% | .background('white/…') | 2 | 2 |
|
|
832
834
|
| `bg-yellow-400/10` | yellow-400 | .background(…) | 2 | 2 |
|
|
833
835
|
| `border-sidebar-border` | --sidebar-border | .border(…) | 2 | 2 |
|
|
834
836
|
| `h-[199px]` | 199px | .frame({ height: … }) | 2 | 2 |
|
|
@@ -940,12 +942,10 @@ a Bloom role: it becomes the app's own token, declared once with
|
|
|
940
942
|
|
|
941
943
|
| Utility | Language | Uses | Apps |
|
|
942
944
|
| --- | --- | ---: | ---: |
|
|
943
|
-
| `cursor-not-allowed` | not a Bloom or Tailwind utility (an app’s own class) | 22 | 6 |
|
|
944
945
|
| `fixed` | not a Bloom or Tailwind utility (an app’s own class) | 21 | 8 |
|
|
945
946
|
| `sticky` | not a Bloom or Tailwind utility (an app’s own class) | 20 | 7 |
|
|
946
947
|
| `inset-x-0` | not a Bloom or Tailwind utility (an app’s own class) | 19 | 8 |
|
|
947
948
|
| `rounded-radius-lg` | not a Bloom or Tailwind utility (an app’s own class) | 16 | 2 |
|
|
948
|
-
| `cursor-default` | not a Bloom or Tailwind utility (an app’s own class) | 12 | 4 |
|
|
949
949
|
| `text-error-primary` | not a Bloom or Tailwind utility (an app’s own class) | 12 | 3 |
|
|
950
950
|
| `inset-y-0` | not a Bloom or Tailwind utility (an app’s own class) | 8 | 2 |
|
|
951
951
|
| `w-(--sidebar-width)` | not a Bloom or Tailwind utility (an app’s own class) | 8 | 2 |
|
|
@@ -24,6 +24,11 @@ is `toElement`'s second argument, a child's `.id()`).
|
|
|
24
24
|
| React Native's `TouchableOpacity`, as a `Pressable` | the same stack with `.pressFade(token)`, its `activeOpacity` the opacity token of its value (`0.7` is `'70'`; none, `.pressFade()`); an `activeOpacity` that is no token, or set at runtime, is a reason |
|
|
25
25
|
| `accessibilityState`, `accessibilityLiveRegion` on a view, a pressable or a text | `.accessibilityState(state)` (the object as written), `.liveRegion(region)`; `accessibilityElementsHidden`, `importantForAccessibility` and `aria-hidden` stay reasons: `.accessibilityHidden()` writes each platform's own form, which none of an app's single forms draws on every platform |
|
|
26
26
|
| `accessibilityValue`, `ref`, `onLayout` on a view, a pressable or a text | `.accessibilityValue(value)`, `.ref(r)` and `.onLayout(f)`, each as written |
|
|
27
|
+
| a `Button`'s render-function children, `(color) => <X fill={color} />` of a glyph alone at one icon rung (`size="lg"`, or a `width` and `height` of a rung's points) | `Button(Group(Icon(X).size(rung)))`, drawn in the ink Bloom hands it; any other function, or one beside a glyph or a label, is a reason (`render-children`) |
|
|
28
|
+
| an `Item`'s `onPress` chosen by a plain condition, `undefined` one branch; a `SpinnerIcon`'s `color`; a style's `fontFamily: 'monospace'` | `.onPress(full ? undefined : add)` as written (no press, no button); `.tint()` of its role (a theme colour) or an app colour written out; `.font('system-mono')` |
|
|
29
|
+
| `accessible`, `tabIndex`, `collapsable` on a view, a pressable or a text; a pressable's `delayLongPress` | `.accessibilityElement(on)`; `.focusable(true)` for `0` and `.focusable(false)` for `-1` (any other index, or one set at runtime, is a reason); `.collapsable(on)` on a view or a pressable; the long press's duration token of its value (`delayLongPress={500}` is `.onLongPress(f, '500')`; one that is no token, or a delay with no `onLongPress`, is a reason) |
|
|
30
|
+
| a style's text shadow written out, `insetInline`, `insetBlock`; `sticky` with `top-0` or `bottom-0` (both bare or both `web:`) | `.textShadow(token)` when its colour, offset and radius are a text shadow token's exactly (any other is a reason); `.position({ horizontal })` and `.position({ vertical })` of the space token of its points; `.sticky('top')` or `.sticky('bottom')`, the web's alone as NativeWind draws it |
|
|
31
|
+
| a `TextFieldInput`'s `textContentType` | `.textContentType(token)` (iOS's `URL`, `emailAddress`, `oneTimeCode`…) |
|
|
27
32
|
| a `Button`'s `appearance` or `tone` set at runtime, `iconSize`, `stopPropagation`, `loadingIndicator={null}`, `aria-expanded`, `color` and `hoverColor` | `.style(expr)` / `.tint(expr)`; `.iconSize(token)` of the exact size (`28` is `'xl'`); `.stopPropagation()`; `.loadingIndicator(null)`; `.accessibilityState({ expanded })`; `.foreground(role)` and `.hoverForeground(role)` for a theme colour (a colour held in a variable stays a reason). `aria-pressed` stays a reason: Bloom's `pressed` is a toggle that draws pressed, which the JSX's attribute does not |
|
|
28
33
|
| a `Tabs`' `pressOpenTab`; a `TextFieldInput`'s `multiline` and `editable`; a `PageHeader`'s `title` or `subtitle` that is an element | `.pressOpenTab(token)`; `.multiline()` and `.editable(value)`; `Header(view)` and `.subtitle(view)` |
|
|
29
34
|
| a `VirtualList`'s `refreshing` and `onRefresh` | `.refreshable({ refreshing, onRefresh })`, each as written (a query's `isRefetching` and `refetch`) |
|
|
@@ -31,6 +36,9 @@ is `toElement`'s second argument, a child's `.id()`).
|
|
|
31
36
|
| a style's `borderRadius` (and each corner's own, `borderTopLeftRadius`…`borderBottomEndRadius`), `zIndex`, `aspectRatio`, `overflow: 'visible'`, `inset` | `.corner(token)` (`.corner(token, side)` for one corner: `top-left`, `bottom-trailing`…) and `.zIndex(token)` of the exact value (a named rung over a numeric token; a radius of 999 is `full`, in a style and in a class (`rounded-[999px]`), which draws alike on any box under 1998pt), `.aspectRatio(ratio)`; `overflow: 'visible'` (and the class `overflow-visible`) is `.clipped(false)`, written out as the app wrote it, over a clip the view would otherwise have (a ScrollView's, an earlier style's); `inset` is its four edges; a value that is no token stays a reason |
|
|
32
37
|
| `hitSlop` on a view, a pressable or a text | `.hitSlop(token)` for one slop (a number of a hit slop token, `8` is `'md'`, or Bloom's `tokens.hitSlop.md`); an object of static sides is a call per pair of equal opposite sides, or per side, only the sides it names (`{ top: 8, bottom: 8 }` is `.hitSlop('vertical', 'md')`, a 0 side `'none'`); a side that is no token, or a slop set at runtime, is a reason |
|
|
33
38
|
| Bloom `Text` (`@oxy.so/bloom/typography`), its `variant` and `numberOfLines` | `Text(…runs)`, `.font()` / `.weight()`, `.lines()` |
|
|
39
|
+
| a Text's `onPress` or `onLongPress` (a span's too) | `.onPress()` / `.onLongPress()` on the `Text` or the span |
|
|
40
|
+
| an element inside a Text the codemod does not convert (a router's `Link`, an app's component) | an element run, `Embed(element)`, drawn as it is inside the line; one that converts as anything but a span of the Text (a Bloom `Text` inside React Native's) stays a reason (`text-child`) |
|
|
41
|
+
| an `asChild` element (expo-router's `Link asChild`) around one text, embedded | `Embed((render) => <Link … asChild>{render(Text(…))}</Link>)`: the element hands the text's host its props, as it did the JSX child. Outside a language view the child stays JSX (`as-child`): a root there would take the props in place of its host and drop them |
|
|
34
42
|
| Bloom's typography components (`Muted`, `H2`, `Small`…), without a `className` | `Text(…runs).textStyle('muted')` |
|
|
35
43
|
| a Bloom component with a rule (`src/components.ts`, below) | its node, prop by prop |
|
|
36
44
|
| React Native `Text` | `RawText(…runs)`: React Native's own Text, only what its chain names, in the platform face when it names no family |
|
|
@@ -105,9 +113,9 @@ the element JSX with the reason `Node:prop`.
|
|
|
105
113
|
| `Tabs` with its `TabsTrigger`s | `Tabs([value, set], TabItem(value, label).count(n)…).style(variant)` |
|
|
106
114
|
| `SegmentedControl` with its `SegmentedControlItem`s (each its `SegmentedControlItemText`) | `Segmented([value, set], Option(value, text)…)`, `type="tabs"` its `.tabs()` |
|
|
107
115
|
| `SettingsSelect`, `AvatarGroup`, `List` | `SettingsSelect(label, [value, onChange], items)`, `AvatarGroup(items)`, `List(items).headerContent().emptyState()` |
|
|
108
|
-
| `VirtualList` | `VirtualList(data, ({ item, index }) => row).itemKey().itemLayout().onEndReached(action, threshold).stickyIndices().headerFitsContent().screen().scrollbar().keyboardTaps().scrollDismissesKeyboard().tuning({ overscan, … })` |
|
|
116
|
+
| `VirtualList` | `VirtualList(data, ({ item, index }) => row).itemKey().itemLayout().onEndReached(action, threshold).stickyIndices().headerFitsContent().screen().scrollbar().keyboardTaps().scrollDismissesKeyboard().tuning({ overscan, … })`; an end action, a refresh action or sticky indices chosen by a plain condition with `undefined` for none, as written |
|
|
109
117
|
| `ChatSearchField` | `ChatSearchField([value, onChangeText], { placeholder, clearLabel, onClear, onSubmit, onFocus, onBlur, trailing, autoFocus })` |
|
|
110
|
-
| `Dialog` with `open` and `onClose` | `Dialog(...children).title().message().label().buttons().presentAt(base, tiers).header().footer().frame({ width, maxWidth }).padding().sideGutter().maxHeightRatio().dismissOnBackdrop().scrollable().presented([open, () => onClose()])` |
|
|
118
|
+
| `Dialog` with `open` and `onClose`, or a `control` | `Dialog(...children).title().message().label().buttons().presentAt(base, tiers).header().footer().frame({ width, maxWidth }).padding().sideGutter().maxHeightRatio().dismissOnBackdrop().scrollable().detached().panelFrame({ maxWidth }).presented([open, () => onClose()])`, or `.control(control)` |
|
|
111
119
|
|
|
112
120
|
A style's padding by the device's inset, `insets.top` where `insets` is a
|
|
113
121
|
`const` holding `useSafeAreaInsets()`, is `.safeAreaPadding(side)` on the same
|
|
@@ -281,13 +289,22 @@ binding that sets it false calling `onClose` with no arguments, as Bloom does.
|
|
|
281
289
|
A name or a member is called with none (`() => onClose()`) and an arrow of no
|
|
282
290
|
parameters is carried as it is; a handler that takes parameters may read one,
|
|
283
291
|
and is a reason (`Dialog:open`), as an `open` without `onClose` is. Bloom's
|
|
284
|
-
imperative `control` (`useDialogControl()`)
|
|
285
|
-
|
|
292
|
+
imperative `control` (`useDialogControl()`) is `.control(control)`, which
|
|
293
|
+
ends the chain as `.presented()` does; its `onClose` beside it stays a
|
|
294
|
+
reason (`Dialog:onClose`). Its `placement` is `.presentAt()`: a static token, or an
|
|
286
295
|
object of static tokens with its `base` (`{ base: 'bottom', md: 'center' }` is
|
|
287
296
|
`.presentAt('bottom', { md: 'center' })`, drawn as the same object). Its
|
|
288
297
|
`width` and `maxWidth` join one `.frame()` (numeric space tokens, `maxWidth={400}`
|
|
289
298
|
is `'400'`), its `contentPadding` is `.padding()`, and `actions` and `header`
|
|
290
|
-
are data carried as they are. `detached` and `panelStyle`
|
|
299
|
+
are data carried as they are. `detached` is `.detached()`, and a `panelStyle`
|
|
300
|
+
of static frame lengths `.panelFrame()` (`{ maxWidth: 540 }` is
|
|
301
|
+
`.panelFrame({ maxWidth: '540' })`); a panel style of anything else is a
|
|
302
|
+
reason. An `Avatar`'s `style` that is its corner radius alone is
|
|
303
|
+
`.cornerRadius(token)`; an `AvatarGroup`'s `ringColor` (a theme colour as its
|
|
304
|
+
role), `variant` and a one-parameter `renderItemAction` are `.ringColor()`,
|
|
305
|
+
`.variant()` and `.itemAction()`; a `Search`'s `editable` and a
|
|
306
|
+
`ScreenScrollView`'s `stickyHeaderIndices` are `.editable()` and
|
|
307
|
+
`.stickyIndices()`, as written.
|
|
291
308
|
|
|
292
309
|
`PageHeader` is `Header(title).inPage()`: Bloom's PageHeader on every platform,
|
|
293
310
|
iOS in a native stack included (a `Header` alone is the system bar there).
|
|
@@ -364,6 +381,13 @@ A View's or a Pressable's `pointerEvents` is `.allowsHitTesting()`: `none`
|
|
|
364
381
|
`false`, `box-none` `'children'`, `box-only` `'self'`, and values chosen by a
|
|
365
382
|
plain condition that choice, `undefined` none and `auto` `true`
|
|
366
383
|
(`split ? 'box-none' : undefined` is `.allowsHitTesting(split ? 'children' : undefined)`).
|
|
384
|
+
A `pointerEvents` in a style is drawn where the JSX's is: a StyleSheet's
|
|
385
|
+
style is compiled by react-native-web into the prop's classes, so it is
|
|
386
|
+
`.allowsHitTesting()` alike; an inline object or a module style constant
|
|
387
|
+
writes `box-none` and `box-only` as CSS the browser drops, so it is
|
|
388
|
+
`.when('native', (v) => v.allowsHitTesting('children'))` (or `'self'`). An
|
|
389
|
+
inline `none` or `auto` stays JSX: the browser keeps it, and what is inside
|
|
390
|
+
inherits it rather than taking the prop's rule.
|
|
367
391
|
|
|
368
392
|
A theme colour at an opacity, Bloom's `withAlpha(colors.primary, 0.1)` or
|
|
369
393
|
`tokenAlpha(tokens.primary, 0.1)` of a `useTheme()` or `useColorTokens()` read,
|
|
@@ -501,6 +525,17 @@ variants, one that adds a box layer or a placement a held variant cannot
|
|
|
501
525
|
change, more than one choice, and `cn()` (its merge is the app's own) stay
|
|
502
526
|
JSX as `dynamic-className`.
|
|
503
527
|
|
|
528
|
+
A style the component's caller hands in (a parameter, a name destructured
|
|
529
|
+
from one, or a property of either: `style={[styles.row, style]}`,
|
|
530
|
+
`style={props.containerStyle}`, `style?.container`) is its own reason,
|
|
531
|
+
`caller-style`. It is no style the codemod could read later: the language
|
|
532
|
+
takes no style object from a caller (see [Styles computed at
|
|
533
|
+
runtime](bloom-language.mdx#styles-computed-at-runtime)). The caller chains
|
|
534
|
+
modifiers on the view it places, and a part inside takes a recipe (`look?:
|
|
535
|
+
ViewModifier`, chained as `.modifier(look)`), which changes the component's
|
|
536
|
+
props and every caller's, a change the codemod leaves to the app. Geometry a
|
|
537
|
+
parameter gives (`{ width: size }`) is points, not a caller's style.
|
|
538
|
+
|
|
504
539
|
## Running it on an app
|
|
505
540
|
|
|
506
541
|
The app is read, never changed, unless `--write` is given. Installed in the
|
|
@@ -106,6 +106,8 @@ export default screen(function Items() {
|
|
|
106
106
|
| `TextField(value, …)` | `TextField([value, setValue], …)` | a binding, not a value |
|
|
107
107
|
| `<Pressable>` around a node | `.onPress(fn)` | presses are modifiers |
|
|
108
108
|
| `.onPress(() => router.push('/x'))` | `.onPress(navigate('/x'))` | the panel-aware navigator |
|
|
109
|
+
| `<Link asChild>` around a span in a text | `Embed((render) => <Link href={h} asChild>{render(Text(…))}</Link>)` as a run | the Link hands the span's host its href and press |
|
|
110
|
+
| `.plainRun((t) => Text(...linkify(t)))` | `.plainRun(linkify)` returning strings and spans | runs, no extra span around the prose |
|
|
109
111
|
| `.when('hover', …)` | `.when('hovered', …)` | condition names |
|
|
110
112
|
| `.when('md', v => v.onPress(…))` | handlers outside `when()` | variants change style only |
|
|
111
113
|
| `.opacity('half')` on a glass | no opacity on glass | a material is never faded |
|
|
@@ -120,7 +122,7 @@ export default screen(function Items() {
|
|
|
120
122
|
| --- | --- | --- |
|
|
121
123
|
| [space](bloom-language-tokens.mdx#space) | `none` `2xs` `xs` `sm` `md` `lg` `xl` `2xl` `3xl` `4xl` `5xl` | padding, spacing, margin, frame, offset; `-md` pulls outward |
|
|
122
124
|
| [corner](bloom-language-tokens.mdx#corner) | `none` `2xs` `xs` `sm` `md` `lg` `xl` `2xl` `3xl` `full` `concentric` `infinite` | `.corner()` |
|
|
123
|
-
| [font](bloom-language-tokens.mdx#font) | `large-title` `display-1` `display-2` `display-3` `display-4` `title-1` `title-2` `title-3` `headline` `body` `body-2` `caption-1` `caption-2` `2xs` `xs` `sm` `md` `lg` `xl` `2xl` `3xl` `4xl` `5xl` `mono` `display` | `.font()`: a type-ramp step, a size rung, or `mono` |
|
|
125
|
+
| [font](bloom-language-tokens.mdx#font) | `large-title` `display-1` `display-2` `display-3` `display-4` `title-1` `title-2` `title-3` `headline` `body` `body-2` `caption-1` `caption-2` `2xs` `xs` `sm` `md` `lg` `xl` `2xl` `3xl` `4xl` `5xl` `mono` `display` `system-mono` | `.font()`: a type-ramp step, a size rung, or `mono` |
|
|
124
126
|
| [weight](bloom-language-tokens.mdx#weight) | `light` `regular` `medium` `semibold` `bold` `extrabold` | `.weight()` |
|
|
125
127
|
| [leading](bloom-language-tokens.mdx#leading) | `tight` `close` `snug` `easy` `normal` `relaxed` | `.leading()` |
|
|
126
128
|
| [color](bloom-language-tokens.mdx#color) | `foreground` `muted` `textTertiary` `primary` `primaryText` `onPrimary` `secondary` `onSecondary` `tertiary` `onTertiary` `background` `surface` `popover` `border` `input` `success` `successText` `warning` `warningText` `error` `info` `mutedFill` `card` `destructive` `white` `black` `transparent` `onSurface` `accent` `errorText` `infoText` `surfaceFill` | foreground, background, border, ring; a role at an opacity is `role/70` |
|
|
@@ -85,6 +85,7 @@ export const PersonRow = view(function PersonRow({ person, onOpen }: { person: P
|
|
|
85
85
|
| `bg-card`, `text-muted-foreground`, `bg-primary/10` | `.background('card')`, `.foreground('muted')`, `.background('primary/10')` |
|
|
86
86
|
| `rounded-xl`, `rounded-full` | `.corner('xl')`, `.corner('infinite')` |
|
|
87
87
|
| `border border-border` | `.border('border', 'thin')` |
|
|
88
|
+
| `border` with no colour class, `style={{ borderWidth: 1 }}` with no `borderColor` | `.border(undefined, 'thin')`: the width alone, in the platform's default colour (black natively, react-native-web's own on the web) |
|
|
88
89
|
| `shadow-sm` | Tailwind's shadow by its exact box-shadow (the table's token); Bloom's elevation `.shadow('s' \| 'm' \| 'floating')` in new code |
|
|
89
90
|
| `opacity-60` | `.opacity('60')` |
|
|
90
91
|
| `absolute top-2 right-2` | `.position({ top: 'sm', right: 'sm' })` |
|