@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.
Files changed (593) hide show
  1. package/docs/bloom-language-classnames.mdx +14 -14
  2. package/docs/bloom-language-codemod.mdx +40 -5
  3. package/docs/bloom-language-for-agents.mdx +3 -1
  4. package/docs/bloom-language-from-jsx.mdx +1 -0
  5. package/docs/bloom-language-modifiers.mdx +231 -84
  6. package/docs/bloom-language-nodes.mdx +48 -26
  7. package/docs/bloom-language-tokens.mdx +71 -14
  8. package/docs/bloom-language.mdx +251 -68
  9. package/docs/design-tokens.mdx +12 -2
  10. package/docs/no-nativewind.mdx +5 -4
  11. package/docs/task-catalog.json +1 -1
  12. package/docs/task-catalog.mdx +1 -1
  13. package/docs/theme.mdx +22 -6
  14. package/lib/commonjs/accordion/Accordion.js +12 -12
  15. package/lib/commonjs/accordion/Accordion.js.map +1 -1
  16. package/lib/commonjs/accordion/Accordion.web.js +8 -8
  17. package/lib/commonjs/accordion/Accordion.web.js.map +1 -1
  18. package/lib/commonjs/agent-creator/AgentCreatorSection.js +8 -10
  19. package/lib/commonjs/agent-creator/AgentCreatorSection.js.map +1 -1
  20. package/lib/commonjs/agent-creator/EmotionPicker.js +3 -5
  21. package/lib/commonjs/agent-creator/EmotionPicker.js.map +1 -1
  22. package/lib/commonjs/agent-log/AgentLog.js +131 -174
  23. package/lib/commonjs/agent-log/AgentLog.js.map +1 -1
  24. package/lib/commonjs/agent-reply/AgentProfile.js +6 -9
  25. package/lib/commonjs/agent-reply/AgentProfile.js.map +1 -1
  26. package/lib/commonjs/agent-thinking/AgentThinking.js +8 -7
  27. package/lib/commonjs/agent-thinking/AgentThinking.js.map +1 -1
  28. package/lib/commonjs/agent-thinking/ThinkingReasoning.js +8 -8
  29. package/lib/commonjs/agent-thinking/ThinkingReasoning.js.map +1 -1
  30. package/lib/commonjs/app-shell/AppShell.js +5 -7
  31. package/lib/commonjs/app-shell/AppShell.js.map +1 -1
  32. package/lib/commonjs/app-shell/AppShellEngine.js +72 -28
  33. package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
  34. package/lib/commonjs/app-shell/AppShellPanelLayout.js +3 -3
  35. package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
  36. package/lib/commonjs/app-shell/NotificationBell.js +9 -9
  37. package/lib/commonjs/app-shell/NotificationBell.js.map +1 -1
  38. package/lib/commonjs/app-shell/PanelReorderHandle.js +4 -6
  39. package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
  40. package/lib/commonjs/avatar-group/AvatarGroupBase.js +7 -7
  41. package/lib/commonjs/avatar-group/AvatarGroupBase.js.map +1 -1
  42. package/lib/commonjs/chat-list/ChatSearchResultsBase.js +4 -4
  43. package/lib/commonjs/chat-list/ChatSearchResultsBase.js.map +1 -1
  44. package/lib/commonjs/choice-list/ChoiceList.js +5 -5
  45. package/lib/commonjs/choice-list/ChoiceList.js.map +1 -1
  46. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js +7 -7
  47. package/lib/commonjs/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  48. package/lib/commonjs/connection-dots/ConnectionDots.js +4 -4
  49. package/lib/commonjs/connection-dots/ConnectionDots.js.map +1 -1
  50. package/lib/commonjs/connection-dots/ConnectionDots.web.js +4 -4
  51. package/lib/commonjs/connection-dots/ConnectionDots.web.js.map +1 -1
  52. package/lib/commonjs/cover-header/CoverHeader.js +3 -3
  53. package/lib/commonjs/cover-header/CoverHeader.js.map +1 -1
  54. package/lib/commonjs/data-table/DataTable.js +10 -11
  55. package/lib/commonjs/data-table/DataTable.js.map +1 -1
  56. package/lib/commonjs/data-table/DataTableSelect.js +8 -8
  57. package/lib/commonjs/data-table/DataTableSelect.js.map +1 -1
  58. package/lib/commonjs/design-tokens/theme.css +1 -0
  59. package/lib/commonjs/design-tokens/tokens.json +390 -0
  60. package/lib/commonjs/dialog/DialogContent.js +5 -4
  61. package/lib/commonjs/dialog/DialogContent.js.map +1 -1
  62. package/lib/commonjs/dialog/DialogHeader.js +6 -5
  63. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  64. package/lib/commonjs/dialog/SheetShell.js +5 -4
  65. package/lib/commonjs/dialog/SheetShell.js.map +1 -1
  66. package/lib/commonjs/expandable-text/ExpandableText.js +3 -3
  67. package/lib/commonjs/expandable-text/ExpandableText.js.map +1 -1
  68. package/lib/commonjs/floating/lens/lens-cover.js +56 -0
  69. package/lib/commonjs/floating/lens/lens-cover.js.map +1 -0
  70. package/lib/commonjs/floating/lens/native-lens.js.map +1 -1
  71. package/lib/commonjs/grouped-section/GroupedSection.js +16 -15
  72. package/lib/commonjs/grouped-section/GroupedSection.js.map +1 -1
  73. package/lib/commonjs/home-search/BudgetPicker.js +8 -8
  74. package/lib/commonjs/home-search/BudgetPicker.js.map +1 -1
  75. package/lib/commonjs/home-search/MoveInPicker.js +7 -7
  76. package/lib/commonjs/home-search/MoveInPicker.js.map +1 -1
  77. package/lib/commonjs/icon-circle/IconCircle.js +14 -16
  78. package/lib/commonjs/icon-circle/IconCircle.js.map +1 -1
  79. package/lib/commonjs/icons/shared.js +3 -5
  80. package/lib/commonjs/icons/shared.js.map +1 -1
  81. package/lib/commonjs/image/BloomImage.js +3 -0
  82. package/lib/commonjs/image/BloomImage.js.map +1 -1
  83. package/lib/commonjs/kbd/Kbd.js +8 -8
  84. package/lib/commonjs/kbd/Kbd.js.map +1 -1
  85. package/lib/commonjs/layout/ResizeHandle.js +6 -5
  86. package/lib/commonjs/layout/ResizeHandle.js.map +1 -1
  87. package/lib/commonjs/link-preview/LinkPreviewCard.js +24 -26
  88. package/lib/commonjs/link-preview/LinkPreviewCard.js.map +1 -1
  89. package/lib/commonjs/list/ListBase.js +3 -3
  90. package/lib/commonjs/list/ListBase.js.map +1 -1
  91. package/lib/commonjs/list/ListPerson.js +3 -3
  92. package/lib/commonjs/list/ListPerson.js.map +1 -1
  93. package/lib/commonjs/listing-editor/ListingPreviewPane.js +30 -30
  94. package/lib/commonjs/listing-editor/ListingPreviewPane.js.map +1 -1
  95. package/lib/commonjs/markdown/InlineMarkdown.js +9 -11
  96. package/lib/commonjs/markdown/InlineMarkdown.js.map +1 -1
  97. package/lib/commonjs/markdown/MarkdownBlocks.js +35 -43
  98. package/lib/commonjs/markdown/MarkdownBlocks.js.map +1 -1
  99. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js +5 -8
  100. package/lib/commonjs/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  101. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js +9 -11
  102. package/lib/commonjs/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  103. package/lib/commonjs/notifications/NotificationPermissionSheet.js +3 -5
  104. package/lib/commonjs/notifications/NotificationPermissionSheet.js.map +1 -1
  105. package/lib/commonjs/notifications/NotificationsScreen.js +21 -27
  106. package/lib/commonjs/notifications/NotificationsScreen.js.map +1 -1
  107. package/lib/commonjs/overlay/OverlayInertBoundary.js +33 -12
  108. package/lib/commonjs/overlay/OverlayInertBoundary.js.map +1 -1
  109. package/lib/commonjs/page-header/PageHeaderTitleInput.js +20 -20
  110. package/lib/commonjs/page-header/PageHeaderTitleInput.js.map +1 -1
  111. package/lib/commonjs/panel-routing/expo-router/StackScene.js +42 -24
  112. package/lib/commonjs/panel-routing/expo-router/StackScene.js.map +1 -1
  113. package/lib/commonjs/phone-input/CountryCodeSelect.js +4 -4
  114. package/lib/commonjs/phone-input/CountryCodeSelect.js.map +1 -1
  115. package/lib/commonjs/project-board/MemberAvatars.js +7 -9
  116. package/lib/commonjs/project-board/MemberAvatars.js.map +1 -1
  117. package/lib/commonjs/project-board/ProjectBoardBase.js +3 -6
  118. package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
  119. package/lib/commonjs/project-board/ProjectBoardCanvas.js +2 -2
  120. package/lib/commonjs/project-board/ProjectBoardCanvas.js.map +1 -1
  121. package/lib/commonjs/project-board/styles.js +2 -5
  122. package/lib/commonjs/project-board/styles.js.map +1 -1
  123. package/lib/commonjs/radio/RadioSwatch.js +5 -5
  124. package/lib/commonjs/radio/RadioSwatch.js.map +1 -1
  125. package/lib/commonjs/rating/Rating.js +7 -7
  126. package/lib/commonjs/rating/Rating.js.map +1 -1
  127. package/lib/commonjs/rating/RatingBar.js +8 -8
  128. package/lib/commonjs/rating/RatingBar.js.map +1 -1
  129. package/lib/commonjs/rating/RatingBar.web.js +5 -5
  130. package/lib/commonjs/rating/RatingBar.web.js.map +1 -1
  131. package/lib/commonjs/rating/RatingInput.js +9 -9
  132. package/lib/commonjs/rating/RatingInput.js.map +1 -1
  133. package/lib/commonjs/rating/RatingSummary.js +6 -6
  134. package/lib/commonjs/rating/RatingSummary.js.map +1 -1
  135. package/lib/commonjs/row-actions/RowActions.js +5 -5
  136. package/lib/commonjs/row-actions/RowActions.js.map +1 -1
  137. package/lib/commonjs/select/Select.js +5 -5
  138. package/lib/commonjs/select/Select.js.map +1 -1
  139. package/lib/commonjs/skeleton/Skeleton.js +22 -30
  140. package/lib/commonjs/skeleton/Skeleton.js.map +1 -1
  141. package/lib/commonjs/stat-bar/StatBar.js +41 -43
  142. package/lib/commonjs/stat-bar/StatBar.js.map +1 -1
  143. package/lib/commonjs/stay-filters/AvailabilityFilter.js +3 -3
  144. package/lib/commonjs/stay-filters/AvailabilityFilter.js.map +1 -1
  145. package/lib/commonjs/stay-filters/CountFilter.js +3 -3
  146. package/lib/commonjs/stay-filters/CountFilter.js.map +1 -1
  147. package/lib/commonjs/stay-filters/FilterFooter.js +7 -7
  148. package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -1
  149. package/lib/commonjs/stay-filters/FilterSection.js +12 -12
  150. package/lib/commonjs/stay-filters/FilterSection.js.map +1 -1
  151. package/lib/commonjs/stay-filters/SwitchFilterRow.js +9 -9
  152. package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -1
  153. package/lib/commonjs/stay-search/GuestPicker.js +5 -5
  154. package/lib/commonjs/stay-search/GuestPicker.js.map +1 -1
  155. package/lib/commonjs/stepper/Stepper.js +11 -10
  156. package/lib/commonjs/stepper/Stepper.js.map +1 -1
  157. package/lib/commonjs/stepper/StepperRow.js +12 -12
  158. package/lib/commonjs/stepper/StepperRow.js.map +1 -1
  159. package/lib/commonjs/subscription-plans/SubscriptionPlans.js +10 -10
  160. package/lib/commonjs/subscription-plans/SubscriptionPlans.js.map +1 -1
  161. package/lib/commonjs/subscription-plans/SubscriptionPrice.js +5 -5
  162. package/lib/commonjs/subscription-plans/SubscriptionPrice.js.map +1 -1
  163. package/lib/commonjs/task-list/TaskList.js +14 -15
  164. package/lib/commonjs/task-list/TaskList.js.map +1 -1
  165. package/lib/commonjs/theme/BloomThemeProvider.js +207 -223
  166. package/lib/commonjs/theme/BloomThemeProvider.js.map +1 -1
  167. package/lib/commonjs/theme/build-theme-from-seed.js +1 -1
  168. package/lib/commonjs/theme/build-theme.js +39 -9
  169. package/lib/commonjs/theme/build-theme.js.map +1 -1
  170. package/lib/commonjs/theme/canonical-tokens.js +40 -0
  171. package/lib/commonjs/theme/canonical-tokens.js.map +1 -0
  172. package/lib/commonjs/theme/color-policy.js +3 -0
  173. package/lib/commonjs/theme/color-policy.js.map +1 -1
  174. package/lib/commonjs/theme/color-scope/resolve-scope.js +48 -5
  175. package/lib/commonjs/theme/color-scope/resolve-scope.js.map +1 -1
  176. package/lib/commonjs/theme/color-scope/use-scope.js +1 -5
  177. package/lib/commonjs/theme/color-scope/use-scope.js.map +1 -1
  178. package/lib/commonjs/theme/color-tokens.js +32 -10
  179. package/lib/commonjs/theme/color-tokens.js.map +1 -1
  180. package/lib/commonjs/theme/color-utils.js +4 -0
  181. package/lib/commonjs/theme/color-utils.js.map +1 -1
  182. package/lib/commonjs/theme/default-token-vars.js +92 -0
  183. package/lib/commonjs/theme/default-token-vars.js.map +1 -0
  184. package/lib/commonjs/theme/index.js +6 -0
  185. package/lib/commonjs/theme/index.js.map +1 -1
  186. package/lib/commonjs/theme/index.web.js +6 -0
  187. package/lib/commonjs/theme/index.web.js.map +1 -1
  188. package/lib/commonjs/theme/prepaint-palettes.js +1 -5
  189. package/lib/commonjs/theme/prepaint-palettes.js.map +1 -1
  190. package/lib/commonjs/theme/token-registry.js +7 -28
  191. package/lib/commonjs/theme/token-registry.js.map +1 -1
  192. package/lib/commonjs/theme/use-theme-paint.js +28 -0
  193. package/lib/commonjs/theme/use-theme-paint.js.map +1 -1
  194. package/lib/commonjs/typography/Typography.js +27 -27
  195. package/lib/commonjs/typography/Typography.js.map +1 -1
  196. package/lib/commonjs/web-search/WebSearch.js +18 -19
  197. package/lib/commonjs/web-search/WebSearch.js.map +1 -1
  198. package/lib/commonjs/wizard/WizardFooterBase.js +10 -10
  199. package/lib/commonjs/wizard/WizardFooterBase.js.map +1 -1
  200. package/lib/commonjs/wizard/WizardProgress.js +5 -5
  201. package/lib/commonjs/wizard/WizardProgress.js.map +1 -1
  202. package/lib/module/accordion/Accordion.js +12 -12
  203. package/lib/module/accordion/Accordion.js.map +1 -1
  204. package/lib/module/accordion/Accordion.web.js +8 -8
  205. package/lib/module/accordion/Accordion.web.js.map +1 -1
  206. package/lib/module/agent-creator/AgentCreatorSection.js +8 -10
  207. package/lib/module/agent-creator/AgentCreatorSection.js.map +1 -1
  208. package/lib/module/agent-creator/EmotionPicker.js +3 -5
  209. package/lib/module/agent-creator/EmotionPicker.js.map +1 -1
  210. package/lib/module/agent-log/AgentLog.js +131 -174
  211. package/lib/module/agent-log/AgentLog.js.map +1 -1
  212. package/lib/module/agent-reply/AgentProfile.js +7 -10
  213. package/lib/module/agent-reply/AgentProfile.js.map +1 -1
  214. package/lib/module/agent-thinking/AgentThinking.js +8 -7
  215. package/lib/module/agent-thinking/AgentThinking.js.map +1 -1
  216. package/lib/module/agent-thinking/ThinkingReasoning.js +8 -8
  217. package/lib/module/agent-thinking/ThinkingReasoning.js.map +1 -1
  218. package/lib/module/app-shell/AppShell.js +5 -7
  219. package/lib/module/app-shell/AppShell.js.map +1 -1
  220. package/lib/module/app-shell/AppShellEngine.js +73 -29
  221. package/lib/module/app-shell/AppShellEngine.js.map +1 -1
  222. package/lib/module/app-shell/AppShellPanelLayout.js +3 -3
  223. package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
  224. package/lib/module/app-shell/NotificationBell.js +9 -9
  225. package/lib/module/app-shell/NotificationBell.js.map +1 -1
  226. package/lib/module/app-shell/PanelReorderHandle.js +4 -6
  227. package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
  228. package/lib/module/avatar-group/AvatarGroupBase.js +7 -7
  229. package/lib/module/avatar-group/AvatarGroupBase.js.map +1 -1
  230. package/lib/module/chat-list/ChatSearchResultsBase.js +4 -4
  231. package/lib/module/chat-list/ChatSearchResultsBase.js.map +1 -1
  232. package/lib/module/choice-list/ChoiceList.js +5 -5
  233. package/lib/module/choice-list/ChoiceList.js.map +1 -1
  234. package/lib/module/color-swatch-picker/ColorSwatchPicker.js +7 -7
  235. package/lib/module/color-swatch-picker/ColorSwatchPicker.js.map +1 -1
  236. package/lib/module/connection-dots/ConnectionDots.js +4 -4
  237. package/lib/module/connection-dots/ConnectionDots.js.map +1 -1
  238. package/lib/module/connection-dots/ConnectionDots.web.js +4 -4
  239. package/lib/module/connection-dots/ConnectionDots.web.js.map +1 -1
  240. package/lib/module/cover-header/CoverHeader.js +3 -3
  241. package/lib/module/cover-header/CoverHeader.js.map +1 -1
  242. package/lib/module/data-table/DataTable.js +10 -11
  243. package/lib/module/data-table/DataTable.js.map +1 -1
  244. package/lib/module/data-table/DataTableSelect.js +8 -8
  245. package/lib/module/data-table/DataTableSelect.js.map +1 -1
  246. package/lib/module/design-tokens/theme.css +1 -0
  247. package/lib/module/design-tokens/tokens.json +390 -0
  248. package/lib/module/dialog/DialogContent.js +5 -4
  249. package/lib/module/dialog/DialogContent.js.map +1 -1
  250. package/lib/module/dialog/DialogHeader.js +6 -5
  251. package/lib/module/dialog/DialogHeader.js.map +1 -1
  252. package/lib/module/dialog/SheetShell.js +5 -4
  253. package/lib/module/dialog/SheetShell.js.map +1 -1
  254. package/lib/module/expandable-text/ExpandableText.js +3 -3
  255. package/lib/module/expandable-text/ExpandableText.js.map +1 -1
  256. package/lib/module/floating/lens/lens-cover.js +51 -0
  257. package/lib/module/floating/lens/lens-cover.js.map +1 -0
  258. package/lib/module/floating/lens/native-lens.js.map +1 -1
  259. package/lib/module/grouped-section/GroupedSection.js +16 -15
  260. package/lib/module/grouped-section/GroupedSection.js.map +1 -1
  261. package/lib/module/home-search/BudgetPicker.js +8 -8
  262. package/lib/module/home-search/BudgetPicker.js.map +1 -1
  263. package/lib/module/home-search/MoveInPicker.js +7 -7
  264. package/lib/module/home-search/MoveInPicker.js.map +1 -1
  265. package/lib/module/icon-circle/IconCircle.js +14 -16
  266. package/lib/module/icon-circle/IconCircle.js.map +1 -1
  267. package/lib/module/icons/shared.js +3 -5
  268. package/lib/module/icons/shared.js.map +1 -1
  269. package/lib/module/image/BloomImage.js +3 -0
  270. package/lib/module/image/BloomImage.js.map +1 -1
  271. package/lib/module/kbd/Kbd.js +8 -8
  272. package/lib/module/kbd/Kbd.js.map +1 -1
  273. package/lib/module/layout/ResizeHandle.js +6 -5
  274. package/lib/module/layout/ResizeHandle.js.map +1 -1
  275. package/lib/module/link-preview/LinkPreviewCard.js +24 -26
  276. package/lib/module/link-preview/LinkPreviewCard.js.map +1 -1
  277. package/lib/module/list/ListBase.js +3 -3
  278. package/lib/module/list/ListBase.js.map +1 -1
  279. package/lib/module/list/ListPerson.js +3 -3
  280. package/lib/module/list/ListPerson.js.map +1 -1
  281. package/lib/module/listing-editor/ListingPreviewPane.js +30 -30
  282. package/lib/module/listing-editor/ListingPreviewPane.js.map +1 -1
  283. package/lib/module/markdown/InlineMarkdown.js +9 -11
  284. package/lib/module/markdown/InlineMarkdown.js.map +1 -1
  285. package/lib/module/markdown/MarkdownBlocks.js +35 -43
  286. package/lib/module/markdown/MarkdownBlocks.js.map +1 -1
  287. package/lib/module/multi-agent-chat/MultiAgentChatBase.js +6 -9
  288. package/lib/module/multi-agent-chat/MultiAgentChatBase.js.map +1 -1
  289. package/lib/module/multi-agent-chat/SelectedAgentPreview.js +9 -11
  290. package/lib/module/multi-agent-chat/SelectedAgentPreview.js.map +1 -1
  291. package/lib/module/notifications/NotificationPermissionSheet.js +3 -5
  292. package/lib/module/notifications/NotificationPermissionSheet.js.map +1 -1
  293. package/lib/module/notifications/NotificationsScreen.js +21 -27
  294. package/lib/module/notifications/NotificationsScreen.js.map +1 -1
  295. package/lib/module/overlay/OverlayInertBoundary.js +33 -12
  296. package/lib/module/overlay/OverlayInertBoundary.js.map +1 -1
  297. package/lib/module/page-header/PageHeaderTitleInput.js +20 -20
  298. package/lib/module/page-header/PageHeaderTitleInput.js.map +1 -1
  299. package/lib/module/panel-routing/expo-router/StackScene.js +42 -24
  300. package/lib/module/panel-routing/expo-router/StackScene.js.map +1 -1
  301. package/lib/module/phone-input/CountryCodeSelect.js +4 -4
  302. package/lib/module/phone-input/CountryCodeSelect.js.map +1 -1
  303. package/lib/module/project-board/MemberAvatars.js +7 -9
  304. package/lib/module/project-board/MemberAvatars.js.map +1 -1
  305. package/lib/module/project-board/ProjectBoardBase.js +4 -7
  306. package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
  307. package/lib/module/project-board/ProjectBoardCanvas.js +2 -2
  308. package/lib/module/project-board/ProjectBoardCanvas.js.map +1 -1
  309. package/lib/module/project-board/styles.js +3 -6
  310. package/lib/module/project-board/styles.js.map +1 -1
  311. package/lib/module/radio/RadioSwatch.js +5 -5
  312. package/lib/module/radio/RadioSwatch.js.map +1 -1
  313. package/lib/module/rating/Rating.js +7 -7
  314. package/lib/module/rating/Rating.js.map +1 -1
  315. package/lib/module/rating/RatingBar.js +8 -8
  316. package/lib/module/rating/RatingBar.js.map +1 -1
  317. package/lib/module/rating/RatingBar.web.js +5 -5
  318. package/lib/module/rating/RatingBar.web.js.map +1 -1
  319. package/lib/module/rating/RatingInput.js +9 -9
  320. package/lib/module/rating/RatingInput.js.map +1 -1
  321. package/lib/module/rating/RatingSummary.js +6 -6
  322. package/lib/module/rating/RatingSummary.js.map +1 -1
  323. package/lib/module/row-actions/RowActions.js +5 -5
  324. package/lib/module/row-actions/RowActions.js.map +1 -1
  325. package/lib/module/select/Select.js +5 -5
  326. package/lib/module/select/Select.js.map +1 -1
  327. package/lib/module/skeleton/Skeleton.js +22 -30
  328. package/lib/module/skeleton/Skeleton.js.map +1 -1
  329. package/lib/module/stat-bar/StatBar.js +41 -43
  330. package/lib/module/stat-bar/StatBar.js.map +1 -1
  331. package/lib/module/stay-filters/AvailabilityFilter.js +3 -3
  332. package/lib/module/stay-filters/AvailabilityFilter.js.map +1 -1
  333. package/lib/module/stay-filters/CountFilter.js +3 -3
  334. package/lib/module/stay-filters/CountFilter.js.map +1 -1
  335. package/lib/module/stay-filters/FilterFooter.js +7 -7
  336. package/lib/module/stay-filters/FilterFooter.js.map +1 -1
  337. package/lib/module/stay-filters/FilterSection.js +12 -12
  338. package/lib/module/stay-filters/FilterSection.js.map +1 -1
  339. package/lib/module/stay-filters/SwitchFilterRow.js +9 -9
  340. package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -1
  341. package/lib/module/stay-search/GuestPicker.js +5 -5
  342. package/lib/module/stay-search/GuestPicker.js.map +1 -1
  343. package/lib/module/stepper/Stepper.js +11 -10
  344. package/lib/module/stepper/Stepper.js.map +1 -1
  345. package/lib/module/stepper/StepperRow.js +12 -12
  346. package/lib/module/stepper/StepperRow.js.map +1 -1
  347. package/lib/module/subscription-plans/SubscriptionPlans.js +10 -10
  348. package/lib/module/subscription-plans/SubscriptionPlans.js.map +1 -1
  349. package/lib/module/subscription-plans/SubscriptionPrice.js +5 -5
  350. package/lib/module/subscription-plans/SubscriptionPrice.js.map +1 -1
  351. package/lib/module/task-list/TaskList.js +14 -15
  352. package/lib/module/task-list/TaskList.js.map +1 -1
  353. package/lib/module/theme/BloomThemeProvider.js +208 -224
  354. package/lib/module/theme/BloomThemeProvider.js.map +1 -1
  355. package/lib/module/theme/build-theme-from-seed.js +1 -1
  356. package/lib/module/theme/build-theme.js +38 -9
  357. package/lib/module/theme/build-theme.js.map +1 -1
  358. package/lib/module/theme/canonical-tokens.js +36 -0
  359. package/lib/module/theme/canonical-tokens.js.map +1 -0
  360. package/lib/module/theme/color-policy.js +3 -0
  361. package/lib/module/theme/color-policy.js.map +1 -1
  362. package/lib/module/theme/color-scope/resolve-scope.js +46 -5
  363. package/lib/module/theme/color-scope/resolve-scope.js.map +1 -1
  364. package/lib/module/theme/color-scope/use-scope.js +2 -6
  365. package/lib/module/theme/color-scope/use-scope.js.map +1 -1
  366. package/lib/module/theme/color-tokens.js +30 -8
  367. package/lib/module/theme/color-tokens.js.map +1 -1
  368. package/lib/module/theme/color-utils.js +4 -0
  369. package/lib/module/theme/color-utils.js.map +1 -1
  370. package/lib/module/theme/default-token-vars.js +88 -0
  371. package/lib/module/theme/default-token-vars.js.map +1 -0
  372. package/lib/module/theme/index.js +1 -1
  373. package/lib/module/theme/index.js.map +1 -1
  374. package/lib/module/theme/index.web.js +1 -1
  375. package/lib/module/theme/index.web.js.map +1 -1
  376. package/lib/module/theme/prepaint-palettes.js +2 -6
  377. package/lib/module/theme/prepaint-palettes.js.map +1 -1
  378. package/lib/module/theme/token-registry.js +1 -27
  379. package/lib/module/theme/token-registry.js.map +1 -1
  380. package/lib/module/theme/use-theme-paint.js +30 -3
  381. package/lib/module/theme/use-theme-paint.js.map +1 -1
  382. package/lib/module/typography/Typography.js +27 -27
  383. package/lib/module/typography/Typography.js.map +1 -1
  384. package/lib/module/web-search/WebSearch.js +18 -19
  385. package/lib/module/web-search/WebSearch.js.map +1 -1
  386. package/lib/module/wizard/WizardFooterBase.js +10 -10
  387. package/lib/module/wizard/WizardFooterBase.js.map +1 -1
  388. package/lib/module/wizard/WizardProgress.js +5 -5
  389. package/lib/module/wizard/WizardProgress.js.map +1 -1
  390. package/lib/typescript/commonjs/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  391. package/lib/typescript/commonjs/agent-log/AgentLog.d.ts.map +1 -1
  392. package/lib/typescript/commonjs/agent-reply/AgentProfile.d.ts.map +1 -1
  393. package/lib/typescript/commonjs/agent-thinking/AgentThinking.d.ts.map +1 -1
  394. package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
  395. package/lib/typescript/commonjs/data-table/DataTable.d.ts.map +1 -1
  396. package/lib/typescript/commonjs/dialog/DialogContent.d.ts.map +1 -1
  397. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  398. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
  399. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts +15 -0
  400. package/lib/typescript/commonjs/floating/lens/lens-cover.d.ts.map +1 -0
  401. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts +6 -0
  402. package/lib/typescript/commonjs/floating/lens/native-lens.d.ts.map +1 -1
  403. package/lib/typescript/commonjs/grouped-section/GroupedSection.d.ts.map +1 -1
  404. package/lib/typescript/commonjs/image/BloomImage.d.ts.map +1 -1
  405. package/lib/typescript/commonjs/layout/ResizeHandle.d.ts.map +1 -1
  406. package/lib/typescript/commonjs/list/ListBase.d.ts.map +1 -1
  407. package/lib/typescript/commonjs/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  408. package/lib/typescript/commonjs/overlay/OverlayInertBoundary.d.ts.map +1 -1
  409. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts +3 -1
  410. package/lib/typescript/commonjs/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  411. package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
  412. package/lib/typescript/commonjs/project-board/styles.d.ts.map +1 -1
  413. package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -1
  414. package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -1
  415. package/lib/typescript/commonjs/task-list/TaskList.d.ts +3 -3
  416. package/lib/typescript/commonjs/task-list/TaskList.d.ts.map +1 -1
  417. package/lib/typescript/commonjs/theme/BloomThemeProvider.d.ts.map +1 -1
  418. package/lib/typescript/commonjs/theme/build-theme.d.ts +9 -0
  419. package/lib/typescript/commonjs/theme/build-theme.d.ts.map +1 -1
  420. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts +20 -0
  421. package/lib/typescript/commonjs/theme/canonical-tokens.d.ts.map +1 -0
  422. package/lib/typescript/commonjs/theme/color-policy.d.ts.map +1 -1
  423. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts +58 -0
  424. package/lib/typescript/commonjs/theme/color-scope/resolve-scope.d.ts.map +1 -1
  425. package/lib/typescript/commonjs/theme/color-scope/use-scope.d.ts.map +1 -1
  426. package/lib/typescript/commonjs/theme/color-tokens.d.ts +5 -2
  427. package/lib/typescript/commonjs/theme/color-tokens.d.ts.map +1 -1
  428. package/lib/typescript/commonjs/theme/color-utils.d.ts +3 -0
  429. package/lib/typescript/commonjs/theme/color-utils.d.ts.map +1 -1
  430. package/lib/typescript/commonjs/theme/default-token-vars.d.ts +11 -0
  431. package/lib/typescript/commonjs/theme/default-token-vars.d.ts.map +1 -0
  432. package/lib/typescript/commonjs/theme/index.d.ts +1 -1
  433. package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
  434. package/lib/typescript/commonjs/theme/index.web.d.ts +1 -1
  435. package/lib/typescript/commonjs/theme/index.web.d.ts.map +1 -1
  436. package/lib/typescript/commonjs/theme/prepaint-palettes.d.ts.map +1 -1
  437. package/lib/typescript/commonjs/theme/token-registry.d.ts +1 -16
  438. package/lib/typescript/commonjs/theme/token-registry.d.ts.map +1 -1
  439. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts +11 -0
  440. package/lib/typescript/commonjs/theme/use-theme-paint.d.ts.map +1 -1
  441. package/lib/typescript/commonjs/web-search/WebSearch.d.ts +3 -3
  442. package/lib/typescript/commonjs/web-search/WebSearch.d.ts.map +1 -1
  443. package/lib/typescript/module/agent-creator/AgentCreatorSection.d.ts.map +1 -1
  444. package/lib/typescript/module/agent-log/AgentLog.d.ts.map +1 -1
  445. package/lib/typescript/module/agent-reply/AgentProfile.d.ts.map +1 -1
  446. package/lib/typescript/module/agent-thinking/AgentThinking.d.ts.map +1 -1
  447. package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
  448. package/lib/typescript/module/data-table/DataTable.d.ts.map +1 -1
  449. package/lib/typescript/module/dialog/DialogContent.d.ts.map +1 -1
  450. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  451. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
  452. package/lib/typescript/module/floating/lens/lens-cover.d.ts +15 -0
  453. package/lib/typescript/module/floating/lens/lens-cover.d.ts.map +1 -0
  454. package/lib/typescript/module/floating/lens/native-lens.d.ts +6 -0
  455. package/lib/typescript/module/floating/lens/native-lens.d.ts.map +1 -1
  456. package/lib/typescript/module/grouped-section/GroupedSection.d.ts.map +1 -1
  457. package/lib/typescript/module/image/BloomImage.d.ts.map +1 -1
  458. package/lib/typescript/module/layout/ResizeHandle.d.ts.map +1 -1
  459. package/lib/typescript/module/list/ListBase.d.ts.map +1 -1
  460. package/lib/typescript/module/multi-agent-chat/MultiAgentChatBase.d.ts.map +1 -1
  461. package/lib/typescript/module/overlay/OverlayInertBoundary.d.ts.map +1 -1
  462. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts +3 -1
  463. package/lib/typescript/module/panel-routing/expo-router/StackScene.d.ts.map +1 -1
  464. package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
  465. package/lib/typescript/module/project-board/styles.d.ts.map +1 -1
  466. package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -1
  467. package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -1
  468. package/lib/typescript/module/task-list/TaskList.d.ts +3 -3
  469. package/lib/typescript/module/task-list/TaskList.d.ts.map +1 -1
  470. package/lib/typescript/module/theme/BloomThemeProvider.d.ts.map +1 -1
  471. package/lib/typescript/module/theme/build-theme.d.ts +9 -0
  472. package/lib/typescript/module/theme/build-theme.d.ts.map +1 -1
  473. package/lib/typescript/module/theme/canonical-tokens.d.ts +20 -0
  474. package/lib/typescript/module/theme/canonical-tokens.d.ts.map +1 -0
  475. package/lib/typescript/module/theme/color-policy.d.ts.map +1 -1
  476. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts +58 -0
  477. package/lib/typescript/module/theme/color-scope/resolve-scope.d.ts.map +1 -1
  478. package/lib/typescript/module/theme/color-scope/use-scope.d.ts.map +1 -1
  479. package/lib/typescript/module/theme/color-tokens.d.ts +5 -2
  480. package/lib/typescript/module/theme/color-tokens.d.ts.map +1 -1
  481. package/lib/typescript/module/theme/color-utils.d.ts +3 -0
  482. package/lib/typescript/module/theme/color-utils.d.ts.map +1 -1
  483. package/lib/typescript/module/theme/default-token-vars.d.ts +11 -0
  484. package/lib/typescript/module/theme/default-token-vars.d.ts.map +1 -0
  485. package/lib/typescript/module/theme/index.d.ts +1 -1
  486. package/lib/typescript/module/theme/index.d.ts.map +1 -1
  487. package/lib/typescript/module/theme/index.web.d.ts +1 -1
  488. package/lib/typescript/module/theme/index.web.d.ts.map +1 -1
  489. package/lib/typescript/module/theme/prepaint-palettes.d.ts.map +1 -1
  490. package/lib/typescript/module/theme/token-registry.d.ts +1 -16
  491. package/lib/typescript/module/theme/token-registry.d.ts.map +1 -1
  492. package/lib/typescript/module/theme/use-theme-paint.d.ts +11 -0
  493. package/lib/typescript/module/theme/use-theme-paint.d.ts.map +1 -1
  494. package/lib/typescript/module/web-search/WebSearch.d.ts +3 -3
  495. package/lib/typescript/module/web-search/WebSearch.d.ts.map +1 -1
  496. package/package.json +2 -1
  497. package/src/accordion/Accordion.tsx +6 -6
  498. package/src/accordion/Accordion.web.tsx +6 -6
  499. package/src/agent-creator/AgentCreatorSection.tsx +4 -6
  500. package/src/agent-creator/EmotionPicker.tsx +3 -3
  501. package/src/agent-log/AgentLog.tsx +8 -21
  502. package/src/agent-reply/AgentProfile.tsx +4 -5
  503. package/src/agent-thinking/AgentThinking.tsx +4 -3
  504. package/src/agent-thinking/ThinkingReasoning.tsx +4 -4
  505. package/src/app-shell/AppShell.tsx +3 -3
  506. package/src/app-shell/AppShellEngine.tsx +67 -19
  507. package/src/app-shell/AppShellPanelLayout.tsx +3 -3
  508. package/src/app-shell/NotificationBell.tsx +6 -6
  509. package/src/app-shell/PanelReorderHandle.tsx +4 -4
  510. package/src/avatar-group/AvatarGroupBase.tsx +6 -6
  511. package/src/chat-list/ChatSearchResultsBase.tsx +4 -4
  512. package/src/choice-list/ChoiceList.tsx +3 -3
  513. package/src/color-swatch-picker/ColorSwatchPicker.tsx +4 -4
  514. package/src/connection-dots/ConnectionDots.tsx +4 -4
  515. package/src/connection-dots/ConnectionDots.web.tsx +4 -4
  516. package/src/cover-header/CoverHeader.tsx +3 -3
  517. package/src/data-table/DataTable.tsx +8 -10
  518. package/src/data-table/DataTableSelect.tsx +4 -4
  519. package/src/design-tokens/theme.css +1 -0
  520. package/src/design-tokens/tokens.json +390 -0
  521. package/src/dialog/DialogContent.tsx +3 -2
  522. package/src/dialog/DialogHeader.tsx +6 -5
  523. package/src/dialog/SheetShell.tsx +3 -2
  524. package/src/expandable-text/ExpandableText.tsx +3 -3
  525. package/src/floating/lens/lens-cover.tsx +29 -0
  526. package/src/floating/lens/native-lens.ts +2 -0
  527. package/src/grouped-section/GroupedSection.tsx +7 -6
  528. package/src/home-search/BudgetPicker.tsx +4 -4
  529. package/src/home-search/MoveInPicker.tsx +3 -3
  530. package/src/icon-circle/IconCircle.tsx +5 -5
  531. package/src/icons/shared.tsx +3 -3
  532. package/src/image/BloomImage.tsx +3 -0
  533. package/src/kbd/Kbd.tsx +4 -4
  534. package/src/layout/ResizeHandle.tsx +7 -5
  535. package/src/link-preview/LinkPreviewCard.tsx +7 -7
  536. package/src/list/ListBase.tsx +3 -6
  537. package/src/list/ListPerson.tsx +3 -3
  538. package/src/listing-editor/ListingPreviewPane.tsx +13 -13
  539. package/src/markdown/InlineMarkdown.tsx +3 -3
  540. package/src/markdown/MarkdownBlocks.tsx +14 -14
  541. package/src/multi-agent-chat/MultiAgentChatBase.tsx +6 -9
  542. package/src/multi-agent-chat/SelectedAgentPreview.tsx +4 -4
  543. package/src/notifications/NotificationPermissionSheet.tsx +3 -3
  544. package/src/notifications/NotificationsScreen.tsx +9 -9
  545. package/src/overlay/OverlayInertBoundary.tsx +10 -1
  546. package/src/page-header/PageHeaderTitleInput.tsx +4 -4
  547. package/src/panel-routing/expo-router/StackScene.tsx +7 -2
  548. package/src/phone-input/CountryCodeSelect.tsx +4 -4
  549. package/src/project-board/MemberAvatars.tsx +3 -3
  550. package/src/project-board/ProjectBoardBase.tsx +4 -5
  551. package/src/project-board/ProjectBoardCanvas.tsx +2 -2
  552. package/src/project-board/styles.ts +3 -4
  553. package/src/radio/RadioSwatch.tsx +3 -3
  554. package/src/rating/Rating.tsx +5 -5
  555. package/src/rating/RatingBar.tsx +4 -4
  556. package/src/rating/RatingBar.web.tsx +3 -3
  557. package/src/rating/RatingInput.tsx +5 -5
  558. package/src/rating/RatingSummary.tsx +4 -4
  559. package/src/row-actions/RowActions.tsx +3 -3
  560. package/src/select/Select.tsx +3 -3
  561. package/src/skeleton/Skeleton.tsx +9 -9
  562. package/src/stat-bar/StatBar.tsx +14 -14
  563. package/src/stay-filters/AvailabilityFilter.tsx +3 -3
  564. package/src/stay-filters/CountFilter.tsx +3 -3
  565. package/src/stay-filters/FilterFooter.tsx +4 -4
  566. package/src/stay-filters/FilterSection.tsx +5 -5
  567. package/src/stay-filters/SwitchFilterRow.tsx +4 -4
  568. package/src/stay-search/GuestPicker.tsx +3 -6
  569. package/src/stepper/Stepper.tsx +6 -5
  570. package/src/stepper/StepperRow.tsx +5 -5
  571. package/src/subscription-plans/SubscriptionPlans.tsx +6 -6
  572. package/src/subscription-plans/SubscriptionPrice.tsx +3 -3
  573. package/src/task-list/TaskList.tsx +14 -16
  574. package/src/theme/BloomThemeProvider.tsx +33 -33
  575. package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +134 -0
  576. package/src/theme/build-theme-from-seed.ts +1 -1
  577. package/src/theme/build-theme.ts +52 -11
  578. package/src/theme/canonical-tokens.ts +108 -0
  579. package/src/theme/color-policy.ts +3 -0
  580. package/src/theme/color-scope/resolve-scope.ts +47 -8
  581. package/src/theme/color-scope/use-scope.ts +2 -6
  582. package/src/theme/color-tokens.ts +7 -7
  583. package/src/theme/color-utils.ts +4 -0
  584. package/src/theme/default-token-vars.ts +86 -0
  585. package/src/theme/index.ts +1 -1
  586. package/src/theme/index.web.ts +1 -1
  587. package/src/theme/prepaint-palettes.ts +2 -3
  588. package/src/theme/token-registry.ts +1 -101
  589. package/src/theme/use-theme-paint.ts +26 -3
  590. package/src/typography/Typography.tsx +12 -12
  591. package/src/web-search/WebSearch.tsx +16 -18
  592. package/src/wizard/WizardFooterBase.tsx +5 -5
  593. package/src/wizard/WizardProgress.tsx +5 -5
@@ -15,6 +15,7 @@ import {
15
15
  type ViewStyle,
16
16
  } from 'react-native';
17
17
  import Animated, {
18
+ executeOnUIRuntimeSync,
18
19
  runOnJS,
19
20
  useAnimatedStyle,
20
21
  useDerivedValue,
@@ -552,12 +553,49 @@ export function createAppShellEngine() {
552
553
  defaultValue: false,
553
554
  onChange: onDrawerOpenChange,
554
555
  });
556
+ const drawerAvailable = hasNav && !wide;
557
+ const isOpen = open && drawerAvailable;
558
+ // The drawer's open amount: `reveal` always animates it; the `overlay`
559
+ // drawer only under `drawerSwipe` (see "the drawer's open amount" below).
560
+ const reveal = useSharedValue(isOpen ? 1 : 0);
561
+ // A request to open or close a native `reveal` drawer moves it before React
562
+ // renders anything: the open amount starts toward its end on the UI thread
563
+ // in this call, and the state (the shell's re-render, the hit-testing and
564
+ // accessibility that follow it, the menu icon) follows while it moves. The
565
+ // effect that drives the open amount finds that motion already under way.
566
+ const revealRequested = useRef<number | null>(null);
567
+ // Bumped by every request a press moved and every settled swipe, so the
568
+ // effect re-reads the state asked for, and slides back when a controlled
569
+ // parent declined it.
570
+ const [openRequests, setOpenRequests] = useState(0);
571
+ const requestOpen = useCallback(
572
+ (next: boolean) => {
573
+ if (
574
+ drawerStyle === 'reveal' &&
575
+ drawerAvailable &&
576
+ Platform.OS !== 'web' &&
577
+ !reducedMotion &&
578
+ next !== isOpen
579
+ ) {
580
+ const target = next ? 1 : 0;
581
+ revealRequested.current = target;
582
+ // Synchronously, so the motion is under way on the UI thread before
583
+ // the state's render can start: React may flush that render before
584
+ // an assignment's own trip to the UI thread (a microtask) leaves.
585
+ executeOnUIRuntimeSync((to: number) => {
586
+ 'worklet';
587
+ reveal.value = withTiming(to, { duration: REVEAL_MS, easing: REVEAL_EASE });
588
+ })(target);
589
+ setOpenRequests((count) => count + 1);
590
+ }
591
+ setOpen(next);
592
+ },
593
+ [drawerStyle, drawerAvailable, reducedMotion, isOpen, reveal, setOpen],
594
+ );
555
595
  // The drawer always opens the full panel, whatever the in-flow variant.
556
596
  const drawerSidebar = sidebar
557
- ? { ...closingOnChoice(sidebar, () => setOpen(false)), variant: 'panel' as const }
597
+ ? { ...closingOnChoice(sidebar, () => requestOpen(false)), variant: 'panel' as const }
558
598
  : undefined;
559
- const drawerAvailable = hasNav && !wide;
560
- const isOpen = open && drawerAvailable;
561
599
  // `drawerSwipe` is a native gesture: the web keeps its press-only drawer.
562
600
  const swipeEnabled = drawerSwipe && hasNav && Platform.OS !== 'web';
563
601
  const swipeOverlay = swipeEnabled && drawerStyle === 'overlay';
@@ -576,7 +614,7 @@ export function createAppShellEngine() {
576
614
 
577
615
  const revealInteractionOpen = isOpen && drawerStyle === 'reveal';
578
616
  const revealDrawerRef = usePanelInteraction(revealInteractionOpen, revealInteractionOpen, () =>
579
- setOpen(false),
617
+ requestOpen(false),
580
618
  );
581
619
 
582
620
  const revealAvailable = drawerStyle === 'reveal' && drawerAvailable;
@@ -588,13 +626,13 @@ export function createAppShellEngine() {
588
626
  drawerAvailable,
589
627
  drawerDisplay: cssScope && hasNav ? 'var(--bloom-drawer-trigger-display, none)' : undefined,
590
628
  drawerOpen: isOpen,
591
- openDrawer: () => setOpen(true),
592
- closeDrawer: () => setOpen(false),
593
- toggleDrawer: () => setOpen(!isOpen),
629
+ openDrawer: () => requestOpen(true),
630
+ closeDrawer: () => requestOpen(false),
631
+ toggleDrawer: () => requestOpen(!isOpen),
594
632
  navigationDock: navDock.state,
595
633
  topBarDock: topDock.state,
596
634
  }),
597
- [drawerAvailable, isOpen, setOpen, cssScope, hasNav, navDock.state, topDock.state],
635
+ [drawerAvailable, isOpen, requestOpen, cssScope, hasNav, navDock.state, topDock.state],
598
636
  );
599
637
 
600
638
  /**
@@ -1316,7 +1354,6 @@ export function createAppShellEngine() {
1316
1354
  // `reveal` always animates it; the `overlay` drawer only under
1317
1355
  // `drawerSwipe`, where a finger drives the same value (below) — without the
1318
1356
  // swipe it mounts open and unmounts closed, exactly as it always has.
1319
- const reveal = useSharedValue(isOpen ? 1 : 0);
1320
1357
  // The `overlay` drawer's travel is its whole box sliding in from
1321
1358
  // off-screen: the panel, 12 either side, and the device's side insets when
1322
1359
  // the shell owns the safe area.
@@ -1338,11 +1375,12 @@ export function createAppShellEngine() {
1338
1375
  setWasOpen(isOpen);
1339
1376
  if (!isOpen) setOverlayHeld(true);
1340
1377
  }
1341
- // Bumped by every settled swipe, so the effect below re-reads the state the
1342
- // swipe asked for — and slides back when a controlled parent declined it.
1343
- const [swipeSettles, setSwipeSettles] = useState(0);
1344
1378
  useEffect(() => {
1345
1379
  const target = isOpen && (drawerStyle === 'reveal' || swipeOverlay) ? 1 : 0;
1380
+ // A request already moving the drawer there (`requestOpen`) is left to run.
1381
+ const requested = revealRequested.current;
1382
+ revealRequested.current = null;
1383
+ if (requested === target) return;
1346
1384
  // The browser interpolates web frames; native keeps its UI-thread timing.
1347
1385
  if (Platform.OS === 'web' || reducedMotion || (swipeOverlay && reveal.value === target)) {
1348
1386
  reveal.value = target;
@@ -1359,11 +1397,11 @@ export function createAppShellEngine() {
1359
1397
  }
1360
1398
  : undefined,
1361
1399
  );
1362
- }, [isOpen, drawerStyle, swipeOverlay, reducedMotion, reveal, swipeSettles]);
1400
+ }, [isOpen, drawerStyle, swipeOverlay, reducedMotion, reveal, openRequests]);
1363
1401
  const settleSwipe = useCallback(
1364
1402
  (next: boolean) => {
1365
1403
  if (next !== isOpen) setOpen(next);
1366
- setSwipeSettles((count) => count + 1);
1404
+ setOpenRequests((count) => count + 1);
1367
1405
  },
1368
1406
  [isOpen, setOpen],
1369
1407
  );
@@ -1793,7 +1831,7 @@ export function createAppShellEngine() {
1793
1831
  };
1794
1832
  const overlayPanel = drawerSidebar ? (
1795
1833
  <View pointerEvents={isOpen ? 'auto' : 'none'} style={{ height: '100%' }}>
1796
- <SidebarSlot {...drawerSidebar} mobile onClose={() => setOpen(false)} />
1834
+ <SidebarSlot {...drawerSidebar} mobile onClose={() => requestOpen(false)} />
1797
1835
  </View>
1798
1836
  ) : null;
1799
1837
  const overlayFrameProps = {
@@ -1803,7 +1841,7 @@ export function createAppShellEngine() {
1803
1841
  const overlayDrawer = (
1804
1842
  <>
1805
1843
  <Backdrop
1806
- onPress={() => setOpen(false)}
1844
+ onPress={() => requestOpen(false)}
1807
1845
  disabled={!isOpen}
1808
1846
  progress={swipeOverlay ? reveal : undefined}
1809
1847
  blurIntensity={0}
@@ -1929,15 +1967,20 @@ export function createAppShellEngine() {
1929
1967
  ]}
1930
1968
  >
1931
1969
  {drawerAvailable && drawerSidebar ? (
1970
+ // Laid out while closed, so opening changes no layout: the rail's
1971
+ // opacity is 0 at rest (nothing is drawn), and the open amount
1972
+ // moves only opacity and transforms. The host never flattens, so
1973
+ // its accessibility toggling moves no children.
1932
1974
  <View
1933
1975
  ref={revealDrawerRef}
1976
+ collapsable={false}
1934
1977
  tabIndex={-1}
1935
1978
  testID={testID ? `${testID}-navigation-drawer` : undefined}
1936
1979
  aria-hidden={!isOpen}
1937
1980
  accessibilityViewIsModal={isOpen}
1938
1981
  // The page and its veil are hidden from VoiceOver while this is
1939
1982
  // modal, so its escape gesture is the way out.
1940
- onAccessibilityEscape={() => setOpen(false)}
1983
+ onAccessibilityEscape={() => requestOpen(false)}
1941
1984
  accessibilityElementsHidden={!isOpen}
1942
1985
  importantForAccessibility={isOpen ? 'auto' : 'no-hide-descendants'}
1943
1986
  {...(Platform.OS === 'web' && !isOpen ? { inert: true } : {})}
@@ -1958,6 +2001,7 @@ export function createAppShellEngine() {
1958
2001
  }}
1959
2002
  >
1960
2003
  <Animated.View
2004
+ collapsable={false}
1961
2005
  style={[
1962
2006
  {
1963
2007
  height: '100%',
@@ -1973,13 +2017,14 @@ export function createAppShellEngine() {
1973
2017
  {...drawerSidebar}
1974
2018
  mobile
1975
2019
  surface="plain"
1976
- onClose={() => setOpen(false)}
2020
+ onClose={() => requestOpen(false)}
1977
2021
  />
1978
2022
  )}
1979
2023
  </Animated.View>
1980
2024
  </View>
1981
2025
  ) : null}
1982
2026
  <Animated.View
2027
+ collapsable={false}
1983
2028
  testID={testID ? `${testID}-reveal-page` : undefined}
1984
2029
  style={[
1985
2030
  {
@@ -1999,6 +2044,7 @@ export function createAppShellEngine() {
1999
2044
  ]}
2000
2045
  >
2001
2046
  <View
2047
+ collapsable={false}
2002
2048
  aria-hidden={isOpen}
2003
2049
  accessibilityElementsHidden={isOpen}
2004
2050
  importantForAccessibility={isOpen ? 'no-hide-descendants' : 'auto'}
@@ -2020,6 +2066,7 @@ export function createAppShellEngine() {
2020
2066
  </View>
2021
2067
  </View>
2022
2068
  <Animated.View
2069
+ collapsable={false}
2023
2070
  pointerEvents={isOpen ? 'auto' : 'none'}
2024
2071
  style={[
2025
2072
  {
@@ -2039,7 +2086,7 @@ export function createAppShellEngine() {
2039
2086
  focusable={isOpen}
2040
2087
  tabIndex={isOpen ? 0 : -1}
2041
2088
  aria-hidden={!isOpen}
2042
- onPress={() => setOpen(false)}
2089
+ onPress={() => requestOpen(false)}
2043
2090
  testID={testID ? `${testID}-veil` : undefined}
2044
2091
  style={{
2045
2092
  flex: 1,
@@ -2051,6 +2098,7 @@ export function createAppShellEngine() {
2051
2098
  </Animated.View>
2052
2099
  </Animated.View>
2053
2100
  <Animated.View
2101
+ collapsable={false}
2054
2102
  pointerEvents={isOpen ? 'none' : 'box-none'}
2055
2103
  testID={testID ? `${testID}-reveal-bars` : undefined}
2056
2104
  aria-hidden={isOpen}
@@ -52,7 +52,7 @@ import { useMeasuredSizeClass, useWindowSizeWhile } from '../hooks/use-width-cla
52
52
  import { IS_WEB } from '../styles/platform';
53
53
  import { surfacePresenceStyle, useSurfacePresenceContent } from '../surface/use-surface-presence';
54
54
  import { useIsRtl } from '../hooks/use-is-rtl';
55
- import { useTheme } from '../theme/use-theme';
55
+ import { useColorTokens } from '../theme/color-tokens';
56
56
  import type { WebCssStyle } from '../styles/web-view-style';
57
57
  import { webViewportHeightMinus, WEB_POSITION_STICKY } from '../styles/web-view-style';
58
58
  import { useShellLayoutReady } from './use-shell-viewport';
@@ -483,7 +483,7 @@ export function createPanelLayoutView(
483
483
  };
484
484
  }, [dragLayer, dragOffset, vertical, restingZIndex]);
485
485
  const region = useAppShellRegion();
486
- const theme = useTheme();
486
+ const tokens = useColorTokens();
487
487
  const rtl = useIsRtl();
488
488
  // Only the web places a sticky panel from the viewport's height.
489
489
  const viewportHeight = useWindowSizeWhile(
@@ -1008,7 +1008,7 @@ export function createPanelLayoutView(
1008
1008
  : vertical
1009
1009
  ? { left: 0, right: 0, top: -track.gap, height: track.gap }
1010
1010
  : { top: 0, bottom: 0, insetInlineStart: -track.gap, width: track.gap }),
1011
- backgroundColor: theme.colors.border,
1011
+ backgroundColor: tokens.border,
1012
1012
  } as WebCssStyle
1013
1013
  }
1014
1014
  />
@@ -9,7 +9,7 @@ import { useMessages } from '../locale/messages';
9
9
  import { NotificationCenter } from '../notification-center';
10
10
  import { Popover, PopoverContent, PopoverTrigger } from '../popover';
11
11
  import { borderRadius } from '../styles/tokens';
12
- import { useTheme } from '../theme/use-theme';
12
+ import { useColorTokens } from '../theme/color-tokens';
13
13
  import { Text } from '../typography';
14
14
  import { APP_SHELL_MESSAGES } from './messages';
15
15
  import type { NotificationBellProps } from './types';
@@ -37,7 +37,7 @@ const NotificationBellComponent: React.FC<NotificationBellProps> = ({
37
37
  }) => {
38
38
  const { messages } = useMessages(APP_SHELL_MESSAGES);
39
39
  const accessibilityLabel = accessibilityLabelProp ?? messages.notifications;
40
- const theme = useTheme();
40
+ const tokens = useColorTokens();
41
41
  const rtl = useIsRtl();
42
42
  const dirProps = useDirectionProps();
43
43
  const [open, setOpen] = useState(false);
@@ -45,12 +45,12 @@ const NotificationBellComponent: React.FC<NotificationBellProps> = ({
45
45
  const unread = unreadCount ?? notifications.filter((item) => item.unread).length;
46
46
  const palette = useMemo(() => {
47
47
  return {
48
- badge: theme.colors.error,
49
- badgeForeground: theme.colors.errorForeground,
48
+ badge: tokens.error,
49
+ badgeForeground: tokens.errorForeground,
50
50
  // `border-background-primary-default`: the secondary button's own fill.
51
- ring: theme.colors.card,
51
+ ring: tokens.card,
52
52
  };
53
- }, [theme]);
53
+ }, [tokens]);
54
54
 
55
55
  return (
56
56
  <Popover open={open} onOpenChange={setOpen}>
@@ -5,7 +5,7 @@ import { interactiveWebCss, useInteractiveWebCss } from '../styles/interactive-w
5
5
  import { useRingOffsetStyle } from '../styles/surface-levels';
6
6
  import { Platform, Pressable, View } from 'react-native';
7
7
  import { RiDraggable } from '../icons/remix/RiDraggable';
8
- import { useTheme } from '../theme/use-theme';
8
+ import { useColorTokens } from '../theme/color-tokens';
9
9
  import { useMessages } from '../locale/messages';
10
10
  import { APP_SHELL_MESSAGES } from './messages';
11
11
  import type { WebCssStyle } from '../styles/web-view-style';
@@ -40,7 +40,7 @@ export function PanelReorderHandle({
40
40
  pointer: SharedValue<{ x: number; y: number }>;
41
41
  testID?: string;
42
42
  }) {
43
- const { colors } = useTheme();
43
+ const tokens = useColorTokens();
44
44
  const ringOffset = useRingOffsetStyle();
45
45
  useInteractiveWebCss('bloom-panel-reorder', HANDLE_CSS);
46
46
  const { messages } = useMessages(APP_SHELL_MESSAGES);
@@ -101,12 +101,12 @@ export function PanelReorderHandle({
101
101
  alignItems: 'center',
102
102
  justifyContent: 'center',
103
103
  borderRadius: 6,
104
- '--bloom-panel-reorder-ring': colors.primary,
104
+ '--bloom-panel-reorder-ring': tokens.primary,
105
105
  ...ringOffset,
106
106
  } as WebCssStyle
107
107
  }
108
108
  >
109
- <RiDraggable width={18} height={18} fill={colors.textSecondary} />
109
+ <RiDraggable width={18} height={18} fill={tokens.mutedForeground} />
110
110
  </Pressable>
111
111
  </View>
112
112
  </GestureDetector>
@@ -14,7 +14,7 @@ import {
14
14
  import { Avatar } from '../avatar';
15
15
  import type { AvatarMotion } from '../avatar/types';
16
16
  import { useMessages } from '../locale/messages';
17
- import { useTheme } from '../theme/use-theme';
17
+ import { useColorTokens } from '../theme/color-tokens';
18
18
  import { fontSize } from '../styles/tokens';
19
19
  import { computeClusterLayout } from './cluster-layout';
20
20
  import { computeConversationLayout } from './conversation-layout';
@@ -227,7 +227,7 @@ const AvatarGroupBaseComponent: React.FC<AvatarGroupBaseProps> = ({
227
227
  testID,
228
228
  hoverHandlers,
229
229
  }) => {
230
- const theme = useTheme();
230
+ const tokens = useColorTokens();
231
231
  const isCluster = layout === 'cluster' || layout === 'conversation';
232
232
  const ringWidth = ringWidthProp ?? DEFAULT_RING_WIDTH;
233
233
  const isRow = layout === 'row';
@@ -235,8 +235,8 @@ const AvatarGroupBaseComponent: React.FC<AvatarGroupBaseProps> = ({
235
235
  // The ring is the thin separator drawn between overlapping avatars. It
236
236
  // defaults to the page background so avatars read as cleanly punched out of
237
237
  // the surface behind them — matching the original Mention stack, which used
238
- // `theme.colors.background`, not a large `card`-colored ring cell.
239
- const ringFill = ringColor ?? theme.colors.background;
238
+ // `tokens.background`, not a large `card`-colored ring cell.
239
+ const ringFill = ringColor ?? tokens.background;
240
240
 
241
241
  const effectiveMax = max ?? DEFAULT_MAX;
242
242
  const effectiveOverlap = overlap ?? Math.round(size * DEFAULT_OVERLAP_RATIO);
@@ -561,7 +561,7 @@ function OverflowCircle({
561
561
  textStyle: TextStyle;
562
562
  onPress?: () => void;
563
563
  }) {
564
- const theme = useTheme();
564
+ const tokens = useColorTokens();
565
565
  const { messages } = useMessages(AVATAR_GROUP_MESSAGES);
566
566
 
567
567
  // A solid "+N" count circle: secondary-text-colored fill with white text,
@@ -569,7 +569,7 @@ function OverflowCircle({
569
569
  // (margin for the facepile, absolute coords for the cluster) is supplied by
570
570
  // the caller via `wrapperStyle`.
571
571
  const circle = (
572
- <View style={[cellStyle, { backgroundColor: theme.colors.textSecondary }]}>
572
+ <View style={[cellStyle, { backgroundColor: tokens.mutedForeground }]}>
573
573
  <Text allowFontScaling={false} style={textStyle}>
574
574
  +{count}
575
575
  </Text>
@@ -1,7 +1,7 @@
1
1
  import { View } from 'react-native';
2
2
  import { EmptyState } from '../empty-state';
3
3
  import { useMessages } from '../locale/messages';
4
- import { useTheme } from '../theme/use-theme';
4
+ import { useColorTokens } from '../theme/color-tokens';
5
5
  import { CHAT_LIST_MESSAGES } from './messages';
6
6
  import { HighlightedText } from './HighlightedText';
7
7
  import { chatMarker, groupSearchResults } from './shared';
@@ -20,7 +20,7 @@ export function createChatSearchResults({ List }: { List: typeof import('../list
20
20
  testID,
21
21
  }: ChatSearchResultsProps) {
22
22
  const { messages } = useMessages(CHAT_LIST_MESSAGES);
23
- const theme = useTheme();
23
+ const tokens = useColorTokens();
24
24
  const text = { ...messages.search, ...labels };
25
25
  return (
26
26
  <List
@@ -68,7 +68,7 @@ export function createChatSearchResults({ List }: { List: typeof import('../list
68
68
  <badge.icon
69
69
  width={14}
70
70
  height={14}
71
- fill={badge.accent ? theme.colors.primary : theme.colors.textSecondary}
71
+ fill={badge.accent ? tokens.primary : tokens.mutedForeground}
72
72
  testID={testID ? `${testID}-result-${result.id}-marker` : undefined}
73
73
  />
74
74
  ) : null}
@@ -78,7 +78,7 @@ export function createChatSearchResults({ List }: { List: typeof import('../list
78
78
  text={result.detail}
79
79
  query={query}
80
80
  variant="body-2-regular"
81
- color={theme.colors.textSecondary}
81
+ color={tokens.mutedForeground}
82
82
  numberOfLines={1}
83
83
  testID={testID ? `${testID}-result-${result.id}-detail` : undefined}
84
84
  />
@@ -9,7 +9,7 @@ import { useRingOffsetStyle } from '../styles/surface-levels';
9
9
  import { DISABLED_OPACITY, space } from '../styles/tokens';
10
10
  import { webDataSet } from '../styles/web-data';
11
11
  import type { WebCssStyle } from '../styles/web-view-style';
12
- import { useTheme } from '../theme/use-theme';
12
+ import { useColorTokens } from '../theme/color-tokens';
13
13
  import type { ChoiceListProps } from './types';
14
14
 
15
15
  /**
@@ -60,7 +60,7 @@ export function ChoiceList<Value extends string = string>({
60
60
  optionStyle,
61
61
  testID,
62
62
  }: ChoiceListProps<Value>) {
63
- const theme = useTheme();
63
+ const tokens = useColorTokens();
64
64
  const rtl = useIsRtl();
65
65
  const direction = useDirectionProps();
66
66
  const ringOffset = useRingOffsetStyle();
@@ -92,7 +92,7 @@ export function ChoiceList<Value extends string = string>({
92
92
  [orientation],
93
93
  );
94
94
  const optionLook: WebCssStyle = {
95
- '--bloom-choice-list-ring': theme.colors.primary,
95
+ '--bloom-choice-list-ring': tokens.primary,
96
96
  ...ringOffset,
97
97
  };
98
98
  return (
@@ -1,6 +1,6 @@
1
1
  import { View } from 'react-native';
2
2
  import { ChoiceList } from '../choice-list';
3
- import { useTheme } from '../theme/use-theme';
3
+ import { useColorTokens } from '../theme/color-tokens';
4
4
  import type { ColorSwatchPickerProps } from './types';
5
5
 
6
6
  /**
@@ -24,7 +24,7 @@ export function ColorSwatchPicker({
24
24
  style,
25
25
  testID,
26
26
  }: ColorSwatchPickerProps) {
27
- const theme = useTheme();
27
+ const tokens = useColorTokens();
28
28
  const ring = 2;
29
29
  const gap = 3;
30
30
  const outer = size + 2 * (ring + gap);
@@ -41,7 +41,7 @@ export function ColorSwatchPicker({
41
41
  height: outer,
42
42
  borderRadius: outer / 2,
43
43
  borderWidth: ring,
44
- borderColor: selected ? theme.colors.text : 'transparent',
44
+ borderColor: selected ? tokens.foreground : 'transparent',
45
45
  alignItems: 'center',
46
46
  justifyContent: 'center',
47
47
  }}
@@ -53,7 +53,7 @@ export function ColorSwatchPicker({
53
53
  borderRadius: size / 2,
54
54
  backgroundColor: option.value,
55
55
  borderWidth: 1,
56
- borderColor: theme.colors.border,
56
+ borderColor: tokens.border,
57
57
  }}
58
58
  />
59
59
  </View>
@@ -11,7 +11,7 @@ import Animated, {
11
11
  withTiming,
12
12
  } from 'react-native-reanimated';
13
13
 
14
- import { useTheme } from '../theme/use-theme';
14
+ import { useColorTokens } from '../theme/color-tokens';
15
15
  import { ConnectionDotsBase } from './ConnectionDotsBase';
16
16
  import type { ConnectionDotsProps } from './types';
17
17
  import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
@@ -68,7 +68,7 @@ const ShimmerDot: React.FC<ShimmerDotProps> = ({ phase, color, size, driver }) =
68
68
  /**
69
69
  * Native `ConnectionDots` — a consent/linking header rendering
70
70
  * `left · (animated ellipsis dots) · right`. The dots run a looping opacity wave
71
- * in the brand color (`fill-brand` → `theme.colors.primary`). Reduced-motion
71
+ * in the brand color (`fill-brand` → `tokens.primary`). Reduced-motion
72
72
  * (Reanimated's `useReducedMotion`, or the `reducedMotion` prop) renders the
73
73
  * dots static at full opacity.
74
74
  */
@@ -81,10 +81,10 @@ const ConnectionDotsComponent: React.FC<ConnectionDotsProps> = ({
81
81
  style,
82
82
  reducedMotion,
83
83
  }) => {
84
- const theme = useTheme();
84
+ const tokens = useColorTokens();
85
85
  const systemReduceMotion = usePrefersReducedMotion();
86
86
  const reduce = reducedMotion ?? systemReduceMotion;
87
- const color = theme.colors.primary;
87
+ const color = tokens.primary;
88
88
 
89
89
  const driver = useSharedValue(0);
90
90
 
@@ -4,7 +4,7 @@ import { View, type ViewStyle } from 'react-native';
4
4
 
5
5
  import { adoptStyleSheet } from '../styles/adopt-style-sheet';
6
6
  import type { WebCssStyle } from '../styles/web-view-style';
7
- import { useTheme } from '../theme/use-theme';
7
+ import { useColorTokens } from '../theme/color-tokens';
8
8
  import { ConnectionDotsBase } from './ConnectionDotsBase';
9
9
  import type { ConnectionDotsProps } from './types';
10
10
  import { usePrefersReducedMotion } from '../hooks/use-prefers-reduced-motion';
@@ -43,7 +43,7 @@ function useKeyframes(): void {
43
43
  * `react-native-reanimated`, which cannot ship to a web bundle. This fork drives
44
44
  * the same motion with a CSS `@keyframes` animation (injected once into
45
45
  * `<head>`) and a per-dot `animation-delay`. Brand color comes from the
46
- * `fill-brand` role (`theme.colors.primary`). Reduced-motion (the `reducedMotion`
46
+ * `fill-brand` role (`tokens.primary`). Reduced-motion (the `reducedMotion`
47
47
  * prop, the JS `matchMedia` gate, or the CSS media query) renders static dots.
48
48
  */
49
49
  const ConnectionDotsComponent: React.FC<ConnectionDotsProps> = ({
@@ -55,11 +55,11 @@ const ConnectionDotsComponent: React.FC<ConnectionDotsProps> = ({
55
55
  style,
56
56
  reducedMotion,
57
57
  }) => {
58
- const theme = useTheme();
58
+ const tokens = useColorTokens();
59
59
  useKeyframes();
60
60
  const systemReduceMotion = usePrefersReducedMotion();
61
61
  const reduce = reducedMotion ?? systemReduceMotion;
62
- const color = theme.colors.primary;
62
+ const color = tokens.primary;
63
63
 
64
64
  const count = Math.max(1, Math.floor(dotCount));
65
65
 
@@ -7,7 +7,7 @@ import { Text } from '../typography';
7
7
  import { useCommonMessages } from '../locale/common-messages';
8
8
  import { useMessages } from '../locale/messages';
9
9
  import { pointerEventsStyles } from '../styles/pointer-events';
10
- import { useTheme } from '../theme/use-theme';
10
+ import { useColorTokens } from '../theme/color-tokens';
11
11
  import { CoverImage } from './CoverImage';
12
12
  import { CENTER_POSITION, clampPosition, dragCoverPosition, coverSourceIdentity } from './geometry';
13
13
  import { COVER_HEADER_MESSAGES } from './messages';
@@ -35,7 +35,7 @@ function CoverHeaderComponent({
35
35
  onChangeCover,
36
36
  labels,
37
37
  }: CoverHeaderProps) {
38
- const theme = useTheme();
38
+ const tokens = useColorTokens();
39
39
  const common = useCommonMessages();
40
40
  const { messages } = useMessages(COVER_HEADER_MESSAGES);
41
41
  const m = { ...messages, save: common.save, cancel: common.cancel, ...labels };
@@ -207,7 +207,7 @@ function CoverHeaderComponent({
207
207
  right: 0,
208
208
  height: coverHeight,
209
209
  overflow: 'hidden',
210
- backgroundColor: theme.colors.backgroundTertiary,
210
+ backgroundColor: tokens.popover,
211
211
  },
212
212
  coverStyle,
213
213
  ]}
@@ -14,8 +14,7 @@ import {
14
14
  } from '../segmented-control';
15
15
  import { BREAKPOINTS } from '../styles/breakpoints';
16
16
  import { Table, TableBody, TableCell, TableColumn, TableHeader, TableRow } from '../table';
17
- import type { Theme } from '../theme/types';
18
- import { useTheme } from '../theme/use-theme';
17
+ import { useColorTokens, type ColorTokens } from '../theme/color-tokens';
19
18
  import { Text, TYPE_SCALE } from '../typography';
20
19
  import { DATA_TABLE_MESSAGES } from './messages';
21
20
  import { clampPage, isSortable, nextSort, pageCount, sortRows } from './sorting';
@@ -63,13 +62,12 @@ interface DataTablePalette {
63
62
  text: string;
64
63
  }
65
64
 
66
- function resolveDataTablePalette(theme: Theme): DataTablePalette {
67
- const c = theme.colors;
65
+ function resolveDataTablePalette(tokens: ColorTokens): DataTablePalette {
68
66
  return {
69
- border: c.borderLight,
70
- separator: c.borderLight,
71
- textTertiary: c.textSecondary,
72
- text: c.text,
67
+ border: tokens.input,
68
+ separator: tokens.input,
69
+ textTertiary: tokens.mutedForeground,
70
+ text: tokens.foreground,
73
71
  };
74
72
  }
75
73
 
@@ -155,8 +153,8 @@ export function DataTable<T>({
155
153
  { size: defaultSize },
156
154
  { size: 'md', tone: 'neutral' },
157
155
  );
158
- const theme = useTheme();
159
- const palette = useMemo(() => resolveDataTablePalette(theme), [theme]);
156
+ const tokens = useColorTokens();
157
+ const palette = useMemo(() => resolveDataTablePalette(tokens), [tokens]);
160
158
 
161
159
  const [size, setSize] = useControllableState<DataTableSize>({
162
160
  value: sizeProp,
@@ -13,7 +13,7 @@ import {
13
13
  SelectValue,
14
14
  } from '../select';
15
15
  import type { WebCssStyle } from '../styles/web-view-style';
16
- import { useTheme } from '../theme/use-theme';
16
+ import { useColorTokens } from '../theme/color-tokens';
17
17
  import type { DataTableSelectOption, DataTableSelectProps } from './types';
18
18
 
19
19
  /** `size-[18px]` — an option icon. */
@@ -61,7 +61,7 @@ export function DataTableSelect({
61
61
  disabled,
62
62
  testID,
63
63
  }: DataTableSelectProps) {
64
- const theme = useTheme();
64
+ const tokens = useColorTokens();
65
65
  const [value, setValue] = useControllableState<string | undefined>({
66
66
  value: valueProp,
67
67
  defaultValue,
@@ -82,7 +82,7 @@ export function DataTableSelect({
82
82
  >
83
83
  <SelectValue
84
84
  leading={
85
- current ? <OptionMark option={current} color={theme.colors.textSecondary} /> : null
85
+ current ? <OptionMark option={current} color={tokens.mutedForeground} /> : null
86
86
  }
87
87
  />
88
88
  <SelectIcon />
@@ -94,7 +94,7 @@ export function DataTableSelect({
94
94
  <SelectItem
95
95
  value={item.value}
96
96
  label={item.label}
97
- leading={<OptionMark option={item} color={theme.colors.textSecondary} />}
97
+ leading={<OptionMark option={item} color={tokens.mutedForeground} />}
98
98
  >
99
99
  <SelectItemText>{item.label}</SelectItemText>
100
100
  </SelectItem>
@@ -104,6 +104,7 @@
104
104
  --color-tertiary-foreground: var(--tertiary-foreground);
105
105
  --color-muted: var(--muted);
106
106
  --color-muted-foreground: var(--muted-foreground);
107
+ --color-faint-foreground: var(--faint-foreground);
107
108
  --color-accent: var(--accent);
108
109
  --color-accent-foreground: var(--accent-foreground);
109
110
  --color-destructive: var(--destructive);