@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.
Files changed (678) hide show
  1. package/android/src/main/java/so/oxy/bloom/AvatarLoops.kt +293 -0
  2. package/android/src/main/java/so/oxy/bloom/AvatarSurface.kt +351 -0
  3. package/android/src/main/java/so/oxy/bloom/BloomPackage.kt +1 -1
  4. package/docs/agent-avatar.mdx +77 -1
  5. package/docs/bloom-language-classnames.mdx +11 -11
  6. package/docs/bloom-language-codemod.mdx +30 -5
  7. package/docs/bloom-language-for-agents.mdx +1 -1
  8. package/docs/bloom-language-modifiers.mdx +222 -77
  9. package/docs/bloom-language-nodes.mdx +43 -21
  10. package/docs/bloom-language-tokens.mdx +69 -14
  11. package/docs/bloom-language.mdx +148 -46
  12. package/docs/design-tokens.mdx +12 -2
  13. package/docs/no-nativewind.mdx +5 -2
  14. package/docs/task-catalog.json +1 -1
  15. package/docs/task-catalog.mdx +1 -1
  16. package/docs/theme.mdx +37 -0
  17. package/lib/commonjs/accordion/Accordion.js +12 -12
  18. package/lib/commonjs/accordion/Accordion.js.map +1 -1
  19. package/lib/commonjs/accordion/Accordion.web.js +8 -8
  20. package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
  21. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js +267 -111
  22. package/lib/commonjs/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  23. package/lib/commonjs/agent-avatar/VectorNativeSurface.js +75 -0
  24. package/lib/commonjs/agent-avatar/VectorNativeSurface.js.map +1 -0
  25. package/lib/commonjs/agent-avatar/vector-loop.js +161 -0
  26. package/lib/commonjs/agent-avatar/vector-loop.js.map +1 -0
  27. package/lib/commonjs/agent-avatar/vector-visibility.js +4 -1
  28. package/lib/commonjs/agent-avatar/vector-visibility.js.map +1 -1
  29. package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
  30. package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
  31. package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
  32. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
  33. package/lib/commonjs/agent-log/AgentLog.js +131 -174
  34. package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
  35. package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
  36. package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
  37. package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
  38. package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
  39. package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
  40. package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
  41. package/lib/commonjs/app-shell/AppShell.js +5 -7
  42. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  43. package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
  44. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  45. package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
  46. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  47. package/lib/commonjs/app-shell/NotificationBell.js +9 -9
  48. package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
  49. package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
  50. package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
  51. package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
  52. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  53. package/lib/commonjs/blur/BlurIsland.js +112 -118
  54. package/lib/commonjs/blur/BlurIsland.js.map +1 -1
  55. package/lib/commonjs/button/Button.js +12 -22
  56. package/lib/commonjs/button/Button.js.map +1 -1
  57. package/lib/commonjs/button/GroupBase.js +35 -50
  58. package/lib/commonjs/button/GroupBase.js.map +1 -1
  59. package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
  60. package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
  61. package/lib/commonjs/choice-list/ChoiceList.js +5 -5
  62. package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
  63. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
  64. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  65. package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
  66. package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
  67. package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
  68. package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
  69. package/lib/commonjs/cover-header/CoverHeader.js +3 -3
  70. package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
  71. package/lib/commonjs/data-table/DataTableSelect.js +8 -8
  72. package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
  73. package/lib/commonjs/design-tokens/theme.css +1 -0
  74. package/lib/commonjs/design-tokens/tokens.json +390 -0
  75. package/lib/commonjs/dialog/DialogContent.js +5 -4
  76. package/lib/commonjs/dialog/DialogContent.js.map +1 -1
  77. package/lib/commonjs/dialog/DialogHeader.js +6 -5
  78. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  79. package/lib/commonjs/dialog/SheetShell.js +5 -4
  80. package/lib/commonjs/dialog/SheetShell.js.map +1 -1
  81. package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
  82. package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
  83. package/lib/commonjs/floating/lens/lens-cover.js +56 -0
  84. package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
  85. package/lib/commonjs/floating/lens/lens-frame.js +286 -0
  86. package/lib/commonjs/floating/lens/lens-frame.js.map +1 -0
  87. package/lib/commonjs/floating/lens/lens-material.js +1 -1
  88. package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
  89. package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
  90. package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
  91. package/lib/commonjs/home-search/BudgetPicker.js +8 -8
  92. package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
  93. package/lib/commonjs/home-search/MoveInPicker.js +7 -7
  94. package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
  95. package/lib/commonjs/icon-circle/IconCircle.js +14 -16
  96. package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
  97. package/lib/commonjs/icons/shared.js +3 -5
  98. package/lib/commonjs/icons/shared.js.map +1 -1
  99. package/lib/commonjs/kbd/Kbd.js +8 -8
  100. package/lib/commonjs/kbd/Kbd.js.map +1 -1
  101. package/lib/commonjs/layout/ResizeHandle.js +6 -5
  102. package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
  103. package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
  104. package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
  105. package/lib/commonjs/list/ListBase.js +3 -3
  106. package/lib/commonjs/list/ListBase.js.map +1 -1
  107. package/lib/commonjs/list/ListPerson.js +3 -3
  108. package/lib/commonjs/list/ListPerson.js.map +1 -1
  109. package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
  110. package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
  111. package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
  112. package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
  113. package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
  114. package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
  115. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
  116. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  117. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
  118. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  119. package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
  120. package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
  121. package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
  122. package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
  123. package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
  124. package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
  125. package/lib/commonjs/page-header/PageHeader.js +24 -15
  126. package/lib/commonjs/page-header/PageHeader.js.map +1 -1
  127. package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
  128. package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
  129. package/lib/commonjs/panel-routing/expo-router/StackScene.js +43 -24
  130. package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
  131. package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
  132. package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
  133. package/lib/commonjs/project-board/MemberAvatars.js +7 -9
  134. package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
  135. package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
  136. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
  137. package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
  138. package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
  139. package/lib/commonjs/project-board/styles.js +2 -5
  140. package/lib/commonjs/project-board/styles.js.map +1 -1
  141. package/lib/commonjs/radio/RadioSwatch.js +5 -5
  142. package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
  143. package/lib/commonjs/rating/Rating.js +7 -7
  144. package/lib/commonjs/rating/Rating.js.map +1 -1
  145. package/lib/commonjs/rating/RatingBar.js +8 -8
  146. package/lib/commonjs/rating/RatingBar.js.map +1 -1
  147. package/lib/commonjs/rating/RatingBar.web.js +5 -5
  148. package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
  149. package/lib/commonjs/rating/RatingInput.js +9 -9
  150. package/lib/commonjs/rating/RatingInput.js.map +1 -1
  151. package/lib/commonjs/rating/RatingSummary.js +6 -6
  152. package/lib/commonjs/rating/RatingSummary.js.map +1 -1
  153. package/lib/commonjs/row-actions/RowActions.js +5 -5
  154. package/lib/commonjs/row-actions/RowActions.js.map +1 -1
  155. package/lib/commonjs/select/Select.js +5 -5
  156. package/lib/commonjs/select/Select.js.map +1 -1
  157. package/lib/commonjs/skeleton/Skeleton.js +22 -30
  158. package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
  159. package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
  160. package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
  161. package/lib/commonjs/stay-filters/CountFilter.js +3 -3
  162. package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
  163. package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
  164. package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
  165. package/lib/commonjs/stay-filters/FilterSection.js +12 -12
  166. package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
  167. package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
  168. package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
  169. package/lib/commonjs/stay-search/GuestPicker.js +5 -5
  170. package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
  171. package/lib/commonjs/stepper/Stepper.js +11 -10
  172. package/lib/commonjs/stepper/Stepper.js.map +1 -1
  173. package/lib/commonjs/stepper/StepperRow.js +12 -12
  174. package/lib/commonjs/stepper/StepperRow.js.map +1 -1
  175. package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
  176. package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
  177. package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
  178. package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
  179. package/lib/commonjs/surface/Surface.js +64 -193
  180. package/lib/commonjs/surface/Surface.js.map +1 -1
  181. package/lib/commonjs/tab-bar/TabBarBase.js +18 -15
  182. package/lib/commonjs/tab-bar/TabBarBase.js.map +1 -1
  183. package/lib/commonjs/task-list/TaskList.js +14 -15
  184. package/lib/commonjs/task-list/TaskList.js.map +1 -1
  185. package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
  186. package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
  187. package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
  188. package/lib/commonjs/theme/build-theme.js +39 -9
  189. package/lib/commonjs/theme/build-theme.js.map +1 -1
  190. package/lib/commonjs/theme/canonical-tokens.js +40 -0
  191. package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
  192. package/lib/commonjs/theme/color-policy.js +3 -0
  193. package/lib/commonjs/theme/color-policy.js.map +1 -1
  194. package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
  195. package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
  196. package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
  197. package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
  198. package/lib/commonjs/theme/color-tokens.js +32 -10
  199. package/lib/commonjs/theme/color-tokens.js.map +1 -1
  200. package/lib/commonjs/theme/color-utils.js +4 -0
  201. package/lib/commonjs/theme/color-utils.js.map +1 -1
  202. package/lib/commonjs/theme/default-token-vars.js +92 -0
  203. package/lib/commonjs/theme/default-token-vars.js.map +1 -0
  204. package/lib/commonjs/theme/index.js +6 -0
  205. package/lib/commonjs/theme/index.js.map +1 -1
  206. package/lib/commonjs/theme/index.web.js +6 -0
  207. package/lib/commonjs/theme/index.web.js.map +1 -1
  208. package/lib/commonjs/theme/prepaint-palettes.js +1 -5
  209. package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
  210. package/lib/commonjs/theme/token-registry.js +7 -28
  211. package/lib/commonjs/theme/token-registry.js.map +1 -1
  212. package/lib/commonjs/theme/use-theme-paint.js +28 -0
  213. package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
  214. package/lib/commonjs/typography/Typography.js +27 -27
  215. package/lib/commonjs/typography/Typography.js.map +1 -1
  216. package/lib/commonjs/web-search/WebSearch.js +18 -19
  217. package/lib/commonjs/web-search/WebSearch.js.map +1 -1
  218. package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
  219. package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
  220. package/lib/commonjs/wizard/WizardProgress.js +5 -5
  221. package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
  222. package/lib/module/accordion/Accordion.js +12 -12
  223. package/lib/module/accordion/Accordion.js.map +1 -1
  224. package/lib/module/accordion/Accordion.web.js +8 -8
  225. package/lib/module/accordion/Accordion.web.js.map +1 -1
  226. package/lib/module/agent-avatar/VectorCharacterAvatar.js +268 -112
  227. package/lib/module/agent-avatar/VectorCharacterAvatar.js.map +1 -1
  228. package/lib/module/agent-avatar/VectorNativeSurface.js +66 -0
  229. package/lib/module/agent-avatar/VectorNativeSurface.js.map +1 -0
  230. package/lib/module/agent-avatar/vector-loop.js +150 -0
  231. package/lib/module/agent-avatar/vector-loop.js.map +1 -0
  232. package/lib/module/agent-avatar/vector-visibility.js +3 -1
  233. package/lib/module/agent-avatar/vector-visibility.js.map +1 -1
  234. package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
  235. package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
  236. package/lib/module/agent-creator/EmotionPicker.js +3 -5
  237. package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
  238. package/lib/module/agent-log/AgentLog.js +131 -174
  239. package/lib/module/agent-log/AgentLog.js.map +1 -1
  240. package/lib/module/agent-reply/AgentProfile.js +7 -10
  241. package/lib/module/agent-reply/AgentProfile.js.map +1 -1
  242. package/lib/module/agent-thinking/AgentThinking.js +8 -7
  243. package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
  244. package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
  245. package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
  246. package/lib/module/app-shell/AppShell.js +5 -7
  247. package/lib/module/app-shell/AppShell.js.map +1 -1
  248. package/lib/module/app-shell/AppShellEngine.js +73 -29
  249. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  250. package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
  251. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  252. package/lib/module/app-shell/NotificationBell.js +9 -9
  253. package/lib/module/app-shell/NotificationBell.js.map +1 -1
  254. package/lib/module/app-shell/PanelReorderHandle.js +4 -6
  255. package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
  256. package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
  257. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  258. package/lib/module/blur/BlurIsland.js +112 -116
  259. package/lib/module/blur/BlurIsland.js.map +1 -1
  260. package/lib/module/button/Button.js +13 -23
  261. package/lib/module/button/Button.js.map +1 -1
  262. package/lib/module/button/GroupBase.js +37 -52
  263. package/lib/module/button/GroupBase.js.map +1 -1
  264. package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
  265. package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
  266. package/lib/module/choice-list/ChoiceList.js +5 -5
  267. package/lib/module/choice-list/ChoiceList.js.map +1 -1
  268. package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
  269. package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  270. package/lib/module/connection-dots/ConnectionDots.js +4 -4
  271. package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
  272. package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
  273. package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
  274. package/lib/module/cover-header/CoverHeader.js +3 -3
  275. package/lib/module/cover-header/CoverHeader.js.map +1 -1
  276. package/lib/module/data-table/DataTableSelect.js +8 -8
  277. package/lib/module/data-table/DataTableSelect.js.map +1 -1
  278. package/lib/module/design-tokens/theme.css +1 -0
  279. package/lib/module/design-tokens/tokens.json +390 -0
  280. package/lib/module/dialog/DialogContent.js +5 -4
  281. package/lib/module/dialog/DialogContent.js.map +1 -1
  282. package/lib/module/dialog/DialogHeader.js +6 -5
  283. package/lib/module/dialog/DialogHeader.js.map +1 -1
  284. package/lib/module/dialog/SheetShell.js +5 -4
  285. package/lib/module/dialog/SheetShell.js.map +1 -1
  286. package/lib/module/expandable-text/ExpandableText.js +3 -3
  287. package/lib/module/expandable-text/ExpandableText.js.map +1 -1
  288. package/lib/module/floating/lens/lens-cover.js +51 -0
  289. package/lib/module/floating/lens/lens-cover.js.map +1 -0
  290. package/lib/module/floating/lens/lens-frame.js +282 -0
  291. package/lib/module/floating/lens/lens-frame.js.map +1 -0
  292. package/lib/module/floating/lens/lens-material.js +1 -1
  293. package/lib/module/floating/lens/native-lens.js.map +1 -1
  294. package/lib/module/grouped-section/GroupedSection.js +16 -15
  295. package/lib/module/grouped-section/GroupedSection.js.map +1 -1
  296. package/lib/module/home-search/BudgetPicker.js +8 -8
  297. package/lib/module/home-search/BudgetPicker.js.map +1 -1
  298. package/lib/module/home-search/MoveInPicker.js +7 -7
  299. package/lib/module/home-search/MoveInPicker.js.map +1 -1
  300. package/lib/module/icon-circle/IconCircle.js +14 -16
  301. package/lib/module/icon-circle/IconCircle.js.map +1 -1
  302. package/lib/module/icons/shared.js +3 -5
  303. package/lib/module/icons/shared.js.map +1 -1
  304. package/lib/module/kbd/Kbd.js +8 -8
  305. package/lib/module/kbd/Kbd.js.map +1 -1
  306. package/lib/module/layout/ResizeHandle.js +6 -5
  307. package/lib/module/layout/ResizeHandle.js.map +1 -1
  308. package/lib/module/link-preview/LinkPreviewCard.js +24 -26
  309. package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
  310. package/lib/module/list/ListBase.js +3 -3
  311. package/lib/module/list/ListBase.js.map +1 -1
  312. package/lib/module/list/ListPerson.js +3 -3
  313. package/lib/module/list/ListPerson.js.map +1 -1
  314. package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
  315. package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
  316. package/lib/module/markdown/InlineMarkdown.js +9 -11
  317. package/lib/module/markdown/InlineMarkdown.js.map +1 -1
  318. package/lib/module/markdown/MarkdownBlocks.js +35 -43
  319. package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
  320. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
  321. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  322. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
  323. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  324. package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
  325. package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
  326. package/lib/module/notifications/NotificationsScreen.js +21 -27
  327. package/lib/module/notifications/NotificationsScreen.js.map +1 -1
  328. package/lib/module/overlay/OverlayInertBoundary.js +33 -12
  329. package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
  330. package/lib/module/page-header/PageHeader.js +24 -15
  331. package/lib/module/page-header/PageHeader.js.map +1 -1
  332. package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
  333. package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
  334. package/lib/module/panel-routing/expo-router/StackScene.js +43 -24
  335. package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
  336. package/lib/module/phone-input/CountryCodeSelect.js +4 -4
  337. package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
  338. package/lib/module/project-board/MemberAvatars.js +7 -9
  339. package/lib/module/project-board/MemberAvatars.js.map +1 -1
  340. package/lib/module/project-board/ProjectBoardBase.js +4 -7
  341. package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
  342. package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
  343. package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
  344. package/lib/module/project-board/styles.js +3 -6
  345. package/lib/module/project-board/styles.js.map +1 -1
  346. package/lib/module/radio/RadioSwatch.js +5 -5
  347. package/lib/module/radio/RadioSwatch.js.map +1 -1
  348. package/lib/module/rating/Rating.js +7 -7
  349. package/lib/module/rating/Rating.js.map +1 -1
  350. package/lib/module/rating/RatingBar.js +8 -8
  351. package/lib/module/rating/RatingBar.js.map +1 -1
  352. package/lib/module/rating/RatingBar.web.js +5 -5
  353. package/lib/module/rating/RatingBar.web.js.map +1 -1
  354. package/lib/module/rating/RatingInput.js +9 -9
  355. package/lib/module/rating/RatingInput.js.map +1 -1
  356. package/lib/module/rating/RatingSummary.js +6 -6
  357. package/lib/module/rating/RatingSummary.js.map +1 -1
  358. package/lib/module/row-actions/RowActions.js +5 -5
  359. package/lib/module/row-actions/RowActions.js.map +1 -1
  360. package/lib/module/select/Select.js +5 -5
  361. package/lib/module/select/Select.js.map +1 -1
  362. package/lib/module/skeleton/Skeleton.js +22 -30
  363. package/lib/module/skeleton/Skeleton.js.map +1 -1
  364. package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
  365. package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
  366. package/lib/module/stay-filters/CountFilter.js +3 -3
  367. package/lib/module/stay-filters/CountFilter.js.map +1 -1
  368. package/lib/module/stay-filters/FilterFooter.js +7 -7
  369. package/lib/module/stay-filters/FilterFooter.js.map +1 -1
  370. package/lib/module/stay-filters/FilterSection.js +12 -12
  371. package/lib/module/stay-filters/FilterSection.js.map +1 -1
  372. package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
  373. package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
  374. package/lib/module/stay-search/GuestPicker.js +5 -5
  375. package/lib/module/stay-search/GuestPicker.js.map +1 -1
  376. package/lib/module/stepper/Stepper.js +11 -10
  377. package/lib/module/stepper/Stepper.js.map +1 -1
  378. package/lib/module/stepper/StepperRow.js +12 -12
  379. package/lib/module/stepper/StepperRow.js.map +1 -1
  380. package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
  381. package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
  382. package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
  383. package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
  384. package/lib/module/surface/Surface.js +65 -194
  385. package/lib/module/surface/Surface.js.map +1 -1
  386. package/lib/module/tab-bar/TabBarBase.js +18 -15
  387. package/lib/module/tab-bar/TabBarBase.js.map +1 -1
  388. package/lib/module/task-list/TaskList.js +14 -15
  389. package/lib/module/task-list/TaskList.js.map +1 -1
  390. package/lib/module/theme/BloomThemeProvider.js +208 -224
  391. package/lib/module/theme/BloomThemeProvider.js.map +1 -1
  392. package/lib/module/theme/build-theme-from-seed.js +1 -1
  393. package/lib/module/theme/build-theme.js +38 -9
  394. package/lib/module/theme/build-theme.js.map +1 -1
  395. package/lib/module/theme/canonical-tokens.js +36 -0
  396. package/lib/module/theme/canonical-tokens.js.map +1 -0
  397. package/lib/module/theme/color-policy.js +3 -0
  398. package/lib/module/theme/color-policy.js.map +1 -1
  399. package/lib/module/theme/color-scope/resolve-scope.js +46 -5
  400. package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
  401. package/lib/module/theme/color-scope/use-scope.js +2 -6
  402. package/lib/module/theme/color-scope/use-scope.js.map +1 -1
  403. package/lib/module/theme/color-tokens.js +30 -8
  404. package/lib/module/theme/color-tokens.js.map +1 -1
  405. package/lib/module/theme/color-utils.js +4 -0
  406. package/lib/module/theme/color-utils.js.map +1 -1
  407. package/lib/module/theme/default-token-vars.js +88 -0
  408. package/lib/module/theme/default-token-vars.js.map +1 -0
  409. package/lib/module/theme/index.js +1 -1
  410. package/lib/module/theme/index.js.map +1 -1
  411. package/lib/module/theme/index.web.js +1 -1
  412. package/lib/module/theme/index.web.js.map +1 -1
  413. package/lib/module/theme/prepaint-palettes.js +2 -6
  414. package/lib/module/theme/prepaint-palettes.js.map +1 -1
  415. package/lib/module/theme/token-registry.js +1 -27
  416. package/lib/module/theme/token-registry.js.map +1 -1
  417. package/lib/module/theme/use-theme-paint.js +30 -3
  418. package/lib/module/theme/use-theme-paint.js.map +1 -1
  419. package/lib/module/typography/Typography.js +27 -27
  420. package/lib/module/typography/Typography.js.map +1 -1
  421. package/lib/module/web-search/WebSearch.js +18 -19
  422. package/lib/module/web-search/WebSearch.js.map +1 -1
  423. package/lib/module/wizard/WizardFooterBase.js +10 -10
  424. package/lib/module/wizard/WizardFooterBase.js.map +1 -1
  425. package/lib/module/wizard/WizardProgress.js +5 -5
  426. package/lib/module/wizard/WizardProgress.js.map +1 -1
  427. package/lib/typescript/commonjs/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  428. package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts +75 -0
  429. package/lib/typescript/commonjs/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
  430. package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts +93 -0
  431. package/lib/typescript/commonjs/agent-avatar/vector-loop.d.ts.map +1 -0
  432. package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts +2 -0
  433. package/lib/typescript/commonjs/agent-avatar/vector-visibility.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  435. package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
  436. package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  439. package/lib/typescript/commonjs/blur/BlurIsland.d.ts +1 -1
  440. package/lib/typescript/commonjs/blur/BlurIsland.d.ts.map +1 -1
  441. package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/button/GroupBase.d.ts.map +1 -1
  443. package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  445. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
  447. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
  448. package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts +52 -0
  449. package/lib/typescript/commonjs/floating/lens/lens-frame.d.ts.map +1 -0
  450. package/lib/typescript/commonjs/floating/lens/lens-material.d.ts +1 -1
  451. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
  452. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
  453. package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
  454. package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
  455. package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
  456. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  457. package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
  458. package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
  459. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
  460. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  461. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
  462. package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
  463. package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
  464. package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
  465. package/lib/typescript/commonjs/surface/Surface.d.ts.map +1 -1
  466. package/lib/typescript/commonjs/tab-bar/TabBarBase.d.ts.map +1 -1
  467. package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
  468. package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
  469. package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
  471. package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
  472. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
  473. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
  474. package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
  475. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
  476. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
  477. package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
  478. package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
  479. package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
  480. package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
  481. package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
  482. package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
  483. package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
  484. package/lib/typescript/commonjs/theme/index.d.ts +1 -1
  485. package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
  486. package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
  487. package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
  488. package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
  489. package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
  490. package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
  491. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
  492. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
  493. package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
  494. package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
  495. package/lib/typescript/module/agent-avatar/VectorCharacterAvatar.d.ts.map +1 -1
  496. package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts +75 -0
  497. package/lib/typescript/module/agent-avatar/VectorNativeSurface.d.ts.map +1 -0
  498. package/lib/typescript/module/agent-avatar/vector-loop.d.ts +93 -0
  499. package/lib/typescript/module/agent-avatar/vector-loop.d.ts.map +1 -0
  500. package/lib/typescript/module/agent-avatar/vector-visibility.d.ts +2 -0
  501. package/lib/typescript/module/agent-avatar/vector-visibility.d.ts.map +1 -1
  502. package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  503. package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
  504. package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
  505. package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
  506. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  507. package/lib/typescript/module/blur/BlurIsland.d.ts +1 -1
  508. package/lib/typescript/module/blur/BlurIsland.d.ts.map +1 -1
  509. package/lib/typescript/module/button/Button.d.ts.map +1 -1
  510. package/lib/typescript/module/button/GroupBase.d.ts.map +1 -1
  511. package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
  512. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  513. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
  514. package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
  515. package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
  516. package/lib/typescript/module/floating/lens/lens-frame.d.ts +52 -0
  517. package/lib/typescript/module/floating/lens/lens-frame.d.ts.map +1 -0
  518. package/lib/typescript/module/floating/lens/lens-material.d.ts +1 -1
  519. package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
  520. package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
  521. package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
  522. package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
  523. package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
  524. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  525. package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
  526. package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
  527. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
  528. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  529. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
  530. package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
  531. package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
  532. package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
  533. package/lib/typescript/module/surface/Surface.d.ts.map +1 -1
  534. package/lib/typescript/module/tab-bar/TabBarBase.d.ts.map +1 -1
  535. package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
  536. package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
  537. package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
  538. package/lib/typescript/module/theme/build-theme.d.ts +9 -0
  539. package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
  540. package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
  541. package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
  542. package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
  543. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
  544. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
  545. package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
  546. package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
  547. package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
  548. package/lib/typescript/module/theme/color-utils.d.ts +3 -0
  549. package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
  550. package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
  551. package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
  552. package/lib/typescript/module/theme/index.d.ts +1 -1
  553. package/lib/typescript/module/theme/index.d.ts.map +1 -1
  554. package/lib/typescript/module/theme/index.web.d.ts +1 -1
  555. package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
  556. package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
  557. package/lib/typescript/module/theme/token-registry.d.ts +1 -16
  558. package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
  559. package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
  560. package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
  561. package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
  562. package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
  563. package/package.json +2 -1
  564. package/src/accordion/Accordion.tsx +6 -6
  565. package/src/accordion/Accordion.web.tsx +6 -6
  566. package/src/agent-avatar/VectorCharacterAvatar.tsx +327 -120
  567. package/src/agent-avatar/VectorNativeSurface.tsx +117 -0
  568. package/src/agent-avatar/vector-loop.ts +213 -0
  569. package/src/agent-avatar/vector-visibility.ts +3 -1
  570. package/src/agent-creator/AgentCreatorSection.tsx +4 -6
  571. package/src/agent-creator/EmotionPicker.tsx +3 -3
  572. package/src/agent-log/AgentLog.tsx +8 -21
  573. package/src/agent-reply/AgentProfile.tsx +4 -5
  574. package/src/agent-thinking/AgentThinking.tsx +4 -3
  575. package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
  576. package/src/app-shell/AppShell.tsx +3 -3
  577. package/src/app-shell/AppShellEngine.tsx +67 -19
  578. package/src/app-shell/AppShellPanelLayout.tsx +3 -3
  579. package/src/app-shell/NotificationBell.tsx +6 -6
  580. package/src/app-shell/PanelReorderHandle.tsx +4 -4
  581. package/src/avatar-group/AvatarGroupBase.tsx +6 -6
  582. package/src/blur/BlurIsland.tsx +16 -14
  583. package/src/button/Button.tsx +19 -36
  584. package/src/button/GroupBase.tsx +42 -56
  585. package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
  586. package/src/choice-list/ChoiceList.tsx +3 -3
  587. package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
  588. package/src/connection-dots/ConnectionDots.tsx +4 -4
  589. package/src/connection-dots/ConnectionDots.web.tsx +4 -4
  590. package/src/cover-header/CoverHeader.tsx +3 -3
  591. package/src/data-table/DataTableSelect.tsx +4 -4
  592. package/src/design-tokens/theme.css +1 -0
  593. package/src/design-tokens/tokens.json +390 -0
  594. package/src/dialog/DialogContent.tsx +3 -2
  595. package/src/dialog/DialogHeader.tsx +6 -5
  596. package/src/dialog/SheetShell.tsx +3 -2
  597. package/src/expandable-text/ExpandableText.tsx +3 -3
  598. package/src/floating/lens/lens-cover.tsx +29 -0
  599. package/src/floating/lens/lens-frame.tsx +195 -0
  600. package/src/floating/lens/lens-material.ts +1 -1
  601. package/src/floating/lens/native-lens.ts +2 -0
  602. package/src/grouped-section/GroupedSection.tsx +7 -6
  603. package/src/home-search/BudgetPicker.tsx +4 -4
  604. package/src/home-search/MoveInPicker.tsx +3 -3
  605. package/src/icon-circle/IconCircle.tsx +5 -5
  606. package/src/icons/shared.tsx +3 -3
  607. package/src/kbd/Kbd.tsx +4 -4
  608. package/src/layout/ResizeHandle.tsx +7 -5
  609. package/src/link-preview/LinkPreviewCard.tsx +7 -7
  610. package/src/list/ListBase.tsx +3 -6
  611. package/src/list/ListPerson.tsx +3 -3
  612. package/src/listing-editor/ListingPreviewPane.tsx +13 -13
  613. package/src/markdown/InlineMarkdown.tsx +3 -3
  614. package/src/markdown/MarkdownBlocks.tsx +14 -14
  615. package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
  616. package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
  617. package/src/notifications/NotificationPermissionSheet.tsx +3 -3
  618. package/src/notifications/NotificationsScreen.tsx +9 -9
  619. package/src/overlay/OverlayInertBoundary.tsx +10 -1
  620. package/src/page-header/PageHeader.tsx +26 -13
  621. package/src/page-header/PageHeaderTitleInput.tsx +4 -4
  622. package/src/panel-routing/expo-router/StackScene.tsx +16 -2
  623. package/src/phone-input/CountryCodeSelect.tsx +4 -4
  624. package/src/project-board/MemberAvatars.tsx +3 -3
  625. package/src/project-board/ProjectBoardBase.tsx +4 -5
  626. package/src/project-board/ProjectBoardCanvas.tsx +2 -2
  627. package/src/project-board/styles.ts +3 -4
  628. package/src/radio/RadioSwatch.tsx +3 -3
  629. package/src/rating/Rating.tsx +5 -5
  630. package/src/rating/RatingBar.tsx +4 -4
  631. package/src/rating/RatingBar.web.tsx +3 -3
  632. package/src/rating/RatingInput.tsx +5 -5
  633. package/src/rating/RatingSummary.tsx +4 -4
  634. package/src/row-actions/RowActions.tsx +3 -3
  635. package/src/select/Select.tsx +3 -3
  636. package/src/skeleton/Skeleton.tsx +9 -9
  637. package/src/stay-filters/AvailabilityFilter.tsx +3 -3
  638. package/src/stay-filters/CountFilter.tsx +3 -3
  639. package/src/stay-filters/FilterFooter.tsx +4 -4
  640. package/src/stay-filters/FilterSection.tsx +5 -5
  641. package/src/stay-filters/SwitchFilterRow.tsx +4 -4
  642. package/src/stay-search/GuestPicker.tsx +3 -6
  643. package/src/stepper/Stepper.tsx +6 -5
  644. package/src/stepper/StepperRow.tsx +5 -5
  645. package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
  646. package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
  647. package/src/surface/Surface.tsx +13 -28
  648. package/src/tab-bar/TabBarBase.tsx +13 -8
  649. package/src/task-list/TaskList.tsx +14 -16
  650. package/src/theme/BloomThemeProvider.tsx +33 -33
  651. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
  652. package/src/theme/build-theme-from-seed.ts +1 -1
  653. package/src/theme/build-theme.ts +52 -11
  654. package/src/theme/canonical-tokens.ts +108 -0
  655. package/src/theme/color-policy.ts +3 -0
  656. package/src/theme/color-scope/resolve-scope.ts +47 -8
  657. package/src/theme/color-scope/use-scope.ts +2 -6
  658. package/src/theme/color-tokens.ts +7 -7
  659. package/src/theme/color-utils.ts +4 -0
  660. package/src/theme/default-token-vars.ts +86 -0
  661. package/src/theme/index.ts +1 -1
  662. package/src/theme/index.web.ts +1 -1
  663. package/src/theme/prepaint-palettes.ts +2 -3
  664. package/src/theme/token-registry.ts +1 -101
  665. package/src/theme/use-theme-paint.ts +26 -3
  666. package/src/typography/Typography.tsx +12 -12
  667. package/src/web-search/WebSearch.tsx +16 -18
  668. package/src/wizard/WizardFooterBase.tsx +5 -5
  669. package/src/wizard/WizardProgress.tsx +5 -5
  670. package/lib/commonjs/floating/lens/lens-button-host.js +0 -218
  671. package/lib/commonjs/floating/lens/lens-button-host.js.map +0 -1
  672. package/lib/module/floating/lens/lens-button-host.js +0 -214
  673. package/lib/module/floating/lens/lens-button-host.js.map +0 -1
  674. package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts +0 -34
  675. package/lib/typescript/commonjs/floating/lens/lens-button-host.d.ts.map +0 -1
  676. package/lib/typescript/module/floating/lens/lens-button-host.d.ts +0 -34
  677. package/lib/typescript/module/floating/lens/lens-button-host.d.ts.map +0 -1
  678. package/src/floating/lens/lens-button-host.tsx +0 -148
@@ -360,7 +360,83 @@ contexts or shared instanced GPU scenes in the production avatar path.
360
360
  Browser checks do not establish native crowd performance. Native device verification is
361
361
  still required; the shared numeric renderer alone does not prove native SVG drawing speed.
362
362
 
363
- `style` applies to the outer layout node. `label` defaults to the
363
+ ### The rest loop
364
+
365
+ A frame is expensive: every one projects the meshes, rasterises a 322 × 322 depth buffer for the
366
+ occlusion masks and traces their contours, whatever size the avatar is drawn at. On Hermes that
367
+ was about 95 ms for Alia, so on a Pixel 8a the "Ask Alia" icon on Mention's Home kept the JS thread
368
+ at 94 % and still only reached about 10 frames a second.
369
+
370
+ At rest, though, a character repeats itself. With no gesture, pointer, mood or transition, and no
371
+ reference face (the `bot_*` shapes, see below), its frame depends only on where it is in its idle
372
+ clip. So the idle clip is drawn once, on a grid of about 30 frames a second (`vector-loop.ts`), and
373
+ every avatar with the same geometry and paint shares those frames: the loop. Each grid frame is
374
+ painted in turn, computed the first time and remembered after. The web replays the remembered
375
+ frames itself. The loops kept are bounded by `VECTOR_LOOP_CACHE_CHARACTERS` (Alia's loop is about
376
+ 2 M path characters, the largest preset's 10 M).
377
+
378
+ ### The native surface (Android)
379
+
380
+ On Android every frame is drawn by Bloom's own view, `BloomAvatarSurfaceV1`
381
+ (`android/.../AvatarSurface.kt`, `VectorNativeSurface.tsx`), not by `react-native-svg`: JS hands it
382
+ the frame's outlines, clips and paint as one prop, and it draws them on the hardware canvas with
383
+ the paint `react-native-svg` used (alpha rounding, miter limit, one layer for the entrance
384
+ opacity). At rest it does more: a complete loop is handed to it once and it plays the loop itself,
385
+ its paths parsed once, on its own `Choreographer` clock (waking only when the next loop frame is
386
+ due). Nothing goes through the shadow tree, no bitmap is drawn and no layout event is sent per
387
+ frame, and the JS thread does nothing.
388
+
389
+ Loops are named by `vectorLoopKey`: a hash of the character, its idle clip's tracks and its first
390
+ frame as drawn, so a change to the assets, the paint or the renderer names a different loop. The
391
+ surface keeps the loops in memory and in the app's cache directory (`bloom-avatar-loops`, 48 MB at
392
+ most). At rest the avatar asks its surface for the loop of that name (`loopKey`, answered by
393
+ `onLoop`); a surface that has it, from this start or an earlier one, plays it straight away, so a
394
+ cold start draws only the frame on screen and the first frame. One that has not got it is handed
395
+ the loop once it is complete (`loopTracks`). Playing is `loopClock`: at `epoch`, a
396
+ `performance.now()` reading, the loop is `time` seconds in; Android's `performance.now()` and the
397
+ `Choreographer` frame time are the same monotonic clock, so JS knows exactly which frame is on
398
+ screen. A gesture, a mood, the pointer or the screen going out of view takes the drawing back:
399
+ the JS clock moves on by the time played, the gesture blends from that frame's pose, and the
400
+ surface keeps the frame on screen until JS draws one. `capture` answers the avatar flights'
401
+ snapshot with a PNG. A binary without the view (a JS-only update, an older build) keeps
402
+ `react-native-svg`.
403
+
404
+ iOS: `ios/BloomAvatarSurface.swift` is the same view on Core Animation and `CADisplayLink`. It
405
+ has never been compiled (it was written without a Mac), so it is neither linked
406
+ (`react-native.config.js` keeps `ios: null`) nor packed, and iOS draws with `react-native-svg` and
407
+ replays the remembered frames on the JS thread, as the web does. Link it only after building it
408
+ and checking it on a device.
409
+
410
+ The `bot_*` shapes cannot be played as a loop. Their gaze wanders by a sum of sines at unrelated
411
+ frequencies (`vector-motion.ts`), and their blink repeats every 23 s on top of an 8.8 s idle clip,
412
+ so their motion never repeats and every frame is a new projection: about a third of Alia's frame
413
+ cost (Bun: 1.3 to 2 ms against 5.7 ms). The surface still draws their frames, but the JS cost stays
414
+ until their motion is made periodic, which would change it.
415
+
416
+ Measured on the Pixel 8a, Mention release build, idle on Home with the "Ask Alia" avatar
417
+ (`vector-rest-loop.test.tsx` pins the hand-off, that the surface is handed exactly the JS thread's
418
+ frames, the clock hand-back and a cold start with a kept loop; `AvatarLoopsTest.kt` the native
419
+ path parser, file format and clock):
420
+
421
+ | | JS thread | UI thread | RenderThread | process | window frames/s | cold start, JS |
422
+ | --- | --- | --- | --- | --- | --- | --- |
423
+ | SVG, every frame computed | 94 % | 9 % | 9 % | 118 % | about 10 | busy throughout |
424
+ | rest loop on the UI thread (Reanimated) | 5 % | 35 % | 28 % | 77 % | 51 | 15.7 s of JS, busy 17 s |
425
+ | native surface | 1 % | 21 % | 24 % | 53 % | 32 | 2.7 s of JS, busy 5 s (loop kept); 17.3 s, busy 20 s (first start) |
426
+
427
+ (2026-11-20, two runs each, back to back; the first row is the earlier measurement. A screen
428
+ recording confirms 30 distinct avatar frames a second.) The first start after installing, or after
429
+ the loop's assets, paint or renderer change, still computes the loop once.
430
+
431
+ What remains is not the avatar's drawing but the window's: a profile of the native-surface build
432
+ puts the avatar's paths at about 3 % of the RenderThread and its `onDraw` at about 4 % of the UI
433
+ thread. The rest is Android redrawing Mention's whole window 30 times a second (`prepareTree` over
434
+ every view, replaying every display list, submitting the buffer) and React Native's per-frame
435
+ callbacks, which any view animating in that window costs. With the avatar still, the process idles
436
+ at about 9 %. Going lower needs the avatar off the window's surface (its own `SurfaceView`), which
437
+ draws above every view of the window, sheets and menus included.
438
+
439
+ `className` and `style` apply to the outer layout node. `label` defaults to the
364
440
  translated “Agent avatar”; `locale` overrides the scope and `accessibilityLabel`
365
441
  overrides the accessible name. Use an agent's name when it identifies them.
366
442
 
@@ -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 | 1075 | 47195 | 87.9% |
27
+ | Maps to a modifier and a token | 1087 | 47344 | 88.1% |
28
28
  | Expressed by the view’s structure | 48 | 3426 | 6.4% |
29
- | Redundant in the language | 31 | 509 | 0.9% |
30
- | Needs a named token (raw value) | 267 | 634 | 1.2% |
29
+ | Redundant in the language | 30 | 420 | 0.8% |
30
+ | Needs a named token (raw value) | 259 | 609 | 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 | 430 | 1581 | 2.9% |
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,7 +43,7 @@ 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 | 83 | --ring at 50% (16), --foreground at 5% (7), black at [0.04]% (7), white at [0.06]% (6), --primary at 5% (5), white at 15% (4), white at 25% (4), black at 25% (3), --primary at 15% (3), --surface at 25% (3), black at [0.025]% (2), black at [0.07]% (2) |
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) |
@@ -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,6 +476,7 @@ 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 |
@@ -526,6 +530,7 @@ when the fill is a role's colour.
526
530
  | `bg-fill-secondary` | .background('mutedFill') | 5 | 2 |
527
531
  | `bg-foreground/10` | .background('foreground/10') | 5 | 3 |
528
532
  | `bg-muted/60` | .background('mutedFill/60') | 5 | 3 |
533
+ | `bg-primary/5` | .background('primary/5') | 5 | 4 |
529
534
  | `border-background` | .border('background') | 5 | 3 |
530
535
  | `border-foreground` | .border('foreground') | 5 | 3 |
531
536
  | `border-transparent` | .border('transparent') | 5 | 4 |
@@ -661,6 +666,7 @@ when the fill is a role's colour.
661
666
  | `bg-input` | .background('input') | 2 | 2 |
662
667
  | `bg-primary/60` | .background('primary/60') | 2 | 2 |
663
668
  | `bg-white/30` | .background('white/30') | 2 | 2 |
669
+ | `bg-white/5` | .background('white/5') | 2 | 2 |
664
670
  | `bottom-1` | .position({ bottom: 'xs' }) | 2 | 2 |
665
671
  | `bottom-6` | .position({ bottom: '2xl' }) | 2 | 2 |
666
672
  | `bottom-8` | .position({ bottom: '3xl' }) | 2 | 2 |
@@ -762,7 +768,6 @@ when the fill is a role's colour.
762
768
  | Utility | Language | Uses | Apps |
763
769
  | --- | --- | ---: | ---: |
764
770
  | `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
771
  | `border-0` | no border is the default | 45 | 8 |
767
772
  | `block` | display: views are boxes | 29 | 4 |
768
773
  | `font-sans` | the family is Bloom’s: Text takes it from its font | 25 | 4 |
@@ -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`) |
@@ -105,9 +110,9 @@ the element JSX with the reason `Node:prop`.
105
110
  | `Tabs` with its `TabsTrigger`s | `Tabs([value, set], TabItem(value, label).count(n)…).style(variant)` |
106
111
  | `SegmentedControl` with its `SegmentedControlItem`s (each its `SegmentedControlItemText`) | `Segmented([value, set], Option(value, text)…)`, `type="tabs"` its `.tabs()` |
107
112
  | `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, … })` |
113
+ | `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
114
  | `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()])` |
115
+ | `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
116
 
112
117
  A style's padding by the device's inset, `insets.top` where `insets` is a
113
118
  `const` holding `useSafeAreaInsets()`, is `.safeAreaPadding(side)` on the same
@@ -281,13 +286,22 @@ binding that sets it false calling `onClose` with no arguments, as Bloom does.
281
286
  A name or a member is called with none (`() => onClose()`) and an arrow of no
282
287
  parameters is carried as it is; a handler that takes parameters may read one,
283
288
  and is a reason (`Dialog:open`), as an `open` without `onClose` is. Bloom's
284
- imperative `control` (`useDialogControl()`) has no binding and stays JSX
285
- (`Dialog:control`). Its `placement` is `.presentAt()`: a static token, or an
289
+ imperative `control` (`useDialogControl()`) is `.control(control)`, which
290
+ ends the chain as `.presented()` does; its `onClose` beside it stays a
291
+ reason (`Dialog:onClose`). Its `placement` is `.presentAt()`: a static token, or an
286
292
  object of static tokens with its `base` (`{ base: 'bottom', md: 'center' }` is
287
293
  `.presentAt('bottom', { md: 'center' })`, drawn as the same object). Its
288
294
  `width` and `maxWidth` join one `.frame()` (numeric space tokens, `maxWidth={400}`
289
295
  is `'400'`), its `contentPadding` is `.padding()`, and `actions` and `header`
290
- are data carried as they are. `detached` and `panelStyle` have no modifier.
296
+ are data carried as they are. `detached` is `.detached()`, and a `panelStyle`
297
+ of static frame lengths `.panelFrame()` (`{ maxWidth: 540 }` is
298
+ `.panelFrame({ maxWidth: '540' })`); a panel style of anything else is a
299
+ reason. An `Avatar`'s `style` that is its corner radius alone is
300
+ `.cornerRadius(token)`; an `AvatarGroup`'s `ringColor` (a theme colour as its
301
+ role), `variant` and a one-parameter `renderItemAction` are `.ringColor()`,
302
+ `.variant()` and `.itemAction()`; a `Search`'s `editable` and a
303
+ `ScreenScrollView`'s `stickyHeaderIndices` are `.editable()` and
304
+ `.stickyIndices()`, as written.
291
305
 
292
306
  `PageHeader` is `Header(title).inPage()`: Bloom's PageHeader on every platform,
293
307
  iOS in a native stack included (a `Header` alone is the system bar there).
@@ -501,6 +515,17 @@ variants, one that adds a box layer or a placement a held variant cannot
501
515
  change, more than one choice, and `cn()` (its merge is the app's own) stay
502
516
  JSX as `dynamic-className`.
503
517
 
518
+ A style the component's caller hands in (a parameter, a name destructured
519
+ from one, or a property of either: `style={[styles.row, style]}`,
520
+ `style={props.containerStyle}`, `style?.container`) is its own reason,
521
+ `caller-style`. It is no style the codemod could read later: the language
522
+ takes no style object from a caller (see [Styles computed at
523
+ runtime](bloom-language.mdx#styles-computed-at-runtime)). The caller chains
524
+ modifiers on the view it places, and a part inside takes a recipe (`look?:
525
+ ViewModifier`, chained as `.modifier(look)`), which changes the component's
526
+ props and every caller's, a change the codemod leaves to the app. Geometry a
527
+ parameter gives (`{ width: size }`) is points, not a caller's style.
528
+
504
529
  ## Running it on an app
505
530
 
506
531
  The app is read, never changed, unless `--write` is given. Installed in the
@@ -120,7 +120,7 @@ export default screen(function Items() {
120
120
  | --- | --- | --- |
121
121
  | [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
122
  | [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` |
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` `system-mono` | `.font()`: a type-ramp step, a size rung, or `mono` |
124
124
  | [weight](bloom-language-tokens.mdx#weight) | `light` `regular` `medium` `semibold` `bold` `extrabold` | `.weight()` |
125
125
  | [leading](bloom-language-tokens.mdx#leading) | `tight` `close` `snug` `easy` `normal` `relaxed` | `.leading()` |
126
126
  | [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` |