@vvedantb/native-ui 0.38.0 → 0.39.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 (373) hide show
  1. package/dist/Avatar.jsx +22 -19
  2. package/dist/BottomSheetContainer.jsx +0 -6
  3. package/dist/BulkActionBar.jsx +0 -24
  4. package/dist/Button.jsx +92 -116
  5. package/dist/Card.jsx +56 -50
  6. package/dist/ColorSwatches.jsx +0 -6
  7. package/dist/Dialog.jsx +0 -12
  8. package/dist/DropdownMenu.jsx +0 -10
  9. package/dist/EmptyState.jsx +0 -3
  10. package/dist/ExpoWebRoot.jsx +0 -6
  11. package/dist/Field.jsx +0 -17
  12. package/dist/FloatingSurface.jsx +95 -80
  13. package/dist/FloatingTabBar.jsx +0 -23
  14. package/dist/IconButton.jsx +0 -1
  15. package/dist/LoadingState.jsx +0 -6
  16. package/dist/PasswordInput.jsx +0 -15
  17. package/dist/PillTabs.jsx +39 -36
  18. package/dist/SearchInput.jsx +0 -13
  19. package/dist/SectionLabel.jsx +0 -1
  20. package/dist/SharedTransition.jsx +0 -3
  21. package/dist/Skeleton.jsx +0 -2
  22. package/dist/Spinner.jsx +0 -2
  23. package/dist/StatusDot.jsx +0 -5
  24. package/dist/Switch.jsx +32 -22
  25. package/dist/Tabs.jsx +27 -26
  26. package/dist/Textarea.jsx +0 -1
  27. package/dist/ThemeToggle.jsx +0 -1
  28. package/dist/Toast.jsx +80 -91
  29. package/dist/UpdateChecker.jsx +0 -1
  30. package/dist/ai/activity-question.jsx +0 -6
  31. package/dist/ai/activity-step-label.js +0 -6
  32. package/dist/ai/activity-step-types.js +0 -4
  33. package/dist/ai/activity-tasks-utils.js +0 -17
  34. package/dist/ai/activity-timeline.js +0 -8
  35. package/dist/ai/attachments.jsx +0 -2
  36. package/dist/ai/chain-of-thought.jsx +0 -3
  37. package/dist/ai/chat-text.js +0 -1
  38. package/dist/ai/chat-thread.jsx +0 -1
  39. package/dist/ai/choice-question.jsx +0 -10
  40. package/dist/ai/code-block.jsx +0 -31
  41. package/dist/ai/collapsible.jsx +0 -14
  42. package/dist/ai/conversation-context.js +0 -3
  43. package/dist/ai/conversation.jsx +2 -48
  44. package/dist/ai/file-chip.jsx +0 -2
  45. package/dist/ai/icon-button.jsx +0 -8
  46. package/dist/ai/index.js +0 -5
  47. package/dist/ai/message-context-menu.jsx +0 -7
  48. package/dist/ai/message.jsx +0 -21
  49. package/dist/ai/prompt-input-menu.jsx +0 -3
  50. package/dist/ai/prompt-input.jsx +0 -27
  51. package/dist/ai/response-text.jsx +0 -6
  52. package/dist/ai/sources.jsx +0 -1
  53. package/dist/ai/suggestion.jsx +0 -1
  54. package/dist/ai/trace.jsx +0 -11
  55. package/dist/ai/unified-diff.jsx +0 -4
  56. package/dist/auth/AuthScreen.jsx +0 -5
  57. package/dist/auth/GoogleSignInButton.jsx +0 -3
  58. package/dist/auth/SecondFactorScreen.jsx +0 -2
  59. package/dist/auth/SignInScreen.jsx +0 -17
  60. package/dist/auth/authErrors.js +0 -4
  61. package/dist/auth/clerkCore3.js +0 -7
  62. package/dist/auth/index.js +0 -4
  63. package/dist/auth/totp.js +0 -2
  64. package/dist/brand/GoogleMark.jsx +0 -1
  65. package/dist/brand/ProviderIcon.jsx +0 -2
  66. package/dist/brand/index.js +0 -3
  67. package/dist/brand/svg.js +0 -6
  68. package/dist/configureTheme.js +0 -9
  69. package/dist/controlStyles.js +0 -14
  70. package/dist/crash/lastCrash.js +3 -24
  71. package/dist/entries/ai.js +0 -3
  72. package/dist/entries/ambient.js +0 -2
  73. package/dist/entries/app-root.js +0 -5
  74. package/dist/entries/auth.js +0 -4
  75. package/dist/entries/bottom-sheet.js +0 -2
  76. package/dist/entries/brand.js +0 -1
  77. package/dist/entries/button.js +0 -1
  78. package/dist/entries/crash.js +0 -3
  79. package/dist/entries/date-time.js +0 -2
  80. package/dist/entries/expo-router.js +0 -3
  81. package/dist/entries/expo-web-root.js +0 -2
  82. package/dist/entries/floating.js +0 -2
  83. package/dist/entries/generative-ui.js +0 -4
  84. package/dist/entries/gesture-handler.js +0 -3
  85. package/dist/entries/keyboard-controller.js +0 -3
  86. package/dist/entries/layout.js +0 -2
  87. package/dist/entries/markdown.js +0 -3
  88. package/dist/entries/marketing.js +0 -1
  89. package/dist/entries/page-title.js +0 -5
  90. package/dist/entries/password-input.js +0 -2
  91. package/dist/entries/paste-input.js +0 -3
  92. package/dist/entries/primitives.js +0 -6
  93. package/dist/entries/search-input.js +0 -2
  94. package/dist/entries/tab-bar.js +0 -2
  95. package/dist/entries/theme.js +1 -2
  96. package/dist/entries/toast.js +0 -3
  97. package/dist/entries/video.js +0 -2
  98. package/dist/entries/webview.js +0 -2
  99. package/dist/examples/AiChatGallery.jsx +0 -11
  100. package/dist/examples/ParityGallery.jsx +0 -12
  101. package/dist/floating.js +0 -8
  102. package/dist/generative-ui/GenerativeUiPanel.jsx +0 -2
  103. package/dist/generative-ui/components.jsx +0 -8
  104. package/dist/glass.js +55 -0
  105. package/dist/glassBlur.jsx +0 -12
  106. package/dist/highlight.js +0 -26
  107. package/dist/index.js +1 -2
  108. package/dist/loadingGrid.js +0 -13
  109. package/dist/markdown/Markdown.jsx +0 -59
  110. package/dist/markdown/MarkdownTable.jsx +0 -18
  111. package/dist/markdown/tableText.js +0 -5
  112. package/dist/marketing/UpgradeToProCard.jsx +0 -5
  113. package/dist/marketing/pricing.js +0 -3
  114. package/dist/media/ImageGallery.jsx +0 -16
  115. package/dist/media/imageZoom.js +0 -4
  116. package/dist/media/zoom-image-gesture.jsx +0 -8
  117. package/dist/media/zoomImage.js +0 -3
  118. package/dist/motion.js +0 -3
  119. package/dist/neutralTheme.js +0 -5
  120. package/dist/pagerSwipe.js +0 -16
  121. package/dist/palette.js +0 -10
  122. package/dist/primitives/button.jsx +0 -5
  123. package/dist/primitives/keyboard-controller.jsx +0 -27
  124. package/dist/primitives/native-only-animated-view.jsx +0 -5
  125. package/dist/primitives/overlay.jsx +0 -2
  126. package/dist/primitives/pager-gesture.jsx +3 -29
  127. package/dist/primitives/paste-input.jsx +0 -5
  128. package/dist/primitives/select.jsx +0 -8
  129. package/dist/primitives/sheet-drag.jsx +0 -3
  130. package/dist/primitives/sheet-gesture.jsx +0 -8
  131. package/dist/primitives/swipe-row-gesture.jsx +3 -45
  132. package/dist/primitives/text.jsx +0 -5
  133. package/dist/primitives/toast-drag-gesture.jsx +4 -24
  134. package/dist/primitives/web-click-guard.js +0 -3
  135. package/dist/primitives/window-layer.jsx +0 -14
  136. package/dist/push.js +0 -6
  137. package/dist/relativeTime.js +0 -13
  138. package/dist/settings/MoreFromProjectV.jsx +0 -5
  139. package/dist/settings/ThemeModePicker.jsx +0 -4
  140. package/dist/settings/projectVMobileApps.js +1 -6
  141. package/dist/sheetDrag.js +0 -10
  142. package/dist/swipeRow.js +0 -15
  143. package/dist/tabBarRoutes.js +0 -4
  144. package/dist/tabIndicator.js +0 -4
  145. package/dist/tailwind-preset.cjs +0 -54
  146. package/dist/tailwind-preset.d.cts +0 -8
  147. package/dist/theme.jsx +29 -21
  148. package/dist/themeModeStore.js +0 -5
  149. package/dist/toastChrome.js +0 -6
  150. package/dist/toastDrag.js +0 -14
  151. package/dist/toastStore.js +0 -4
  152. package/dist/updateCheck.js +0 -7
  153. package/dist/video/InlineVideo.jsx +0 -2
  154. package/dist/webview/htmlView.js +0 -5
  155. package/package.json +3 -3
  156. package/src/ArtifactList.tsx +0 -2
  157. package/src/Avatar.tsx +3 -3
  158. package/src/Badge.tsx +0 -1
  159. package/src/BottomSheetContainer.tsx +0 -11
  160. package/src/BulkActionBar.tsx +0 -66
  161. package/src/Button.tsx +4 -40
  162. package/src/CaptureButton.tsx +0 -1
  163. package/src/Card.tsx +3 -15
  164. package/src/Checkbox.tsx +0 -2
  165. package/src/ColorSwatches.tsx +0 -9
  166. package/src/ConfirmDialog.tsx +0 -7
  167. package/src/DateTimeField.tsx +0 -5
  168. package/src/Dialog.tsx +0 -27
  169. package/src/DividedList.tsx +0 -1
  170. package/src/DropdownMenu.tsx +0 -51
  171. package/src/EmptyState.tsx +0 -5
  172. package/src/ExpoWebRoot.tsx +0 -10
  173. package/src/Field.tsx +0 -14
  174. package/src/FloatingFAB.tsx +0 -3
  175. package/src/FloatingSurface.tsx +11 -8
  176. package/src/FloatingTabBar.tsx +0 -25
  177. package/src/IconButton.tsx +0 -5
  178. package/src/Input.tsx +0 -1
  179. package/src/Label.tsx +0 -1
  180. package/src/LabeledSwitchRow.tsx +0 -2
  181. package/src/ListRow.tsx +0 -12
  182. package/src/LoadingState.tsx +0 -12
  183. package/src/MenuSheet.tsx +0 -2
  184. package/src/PageIndicator.tsx +0 -2
  185. package/src/PageTitle.tsx +0 -15
  186. package/src/Pager.tsx +0 -9
  187. package/src/PasswordInput.tsx +0 -24
  188. package/src/PillTabs.tsx +3 -11
  189. package/src/PinnedBotTile.tsx +0 -6
  190. package/src/Progress.tsx +0 -3
  191. package/src/ReactionRow.tsx +0 -8
  192. package/src/ScreenContainer.tsx +0 -4
  193. package/src/SearchInput.tsx +0 -25
  194. package/src/SectionLabel.tsx +0 -2
  195. package/src/Select.tsx +0 -6
  196. package/src/Separator.tsx +0 -2
  197. package/src/SharedTransition.tsx +0 -7
  198. package/src/Sheet.tsx +0 -3
  199. package/src/SheetRow.tsx +0 -12
  200. package/src/Skeleton.tsx +0 -10
  201. package/src/Spinner.tsx +0 -6
  202. package/src/StackPageHeader.tsx +0 -16
  203. package/src/StatGrid.tsx +0 -1
  204. package/src/StatusDot.tsx +0 -6
  205. package/src/SurfaceRow.tsx +0 -12
  206. package/src/SwipeableRow.tsx +0 -4
  207. package/src/Switch.tsx +3 -4
  208. package/src/Tabs.tsx +3 -27
  209. package/src/Textarea.tsx +0 -2
  210. package/src/ThemeToggle.tsx +0 -1
  211. package/src/Toast.tsx +3 -19
  212. package/src/UpdateChecker.tsx +0 -46
  213. package/src/ai/activity-question.tsx +0 -8
  214. package/src/ai/activity-step-detail.tsx +0 -5
  215. package/src/ai/activity-step-label.ts +0 -5
  216. package/src/ai/activity-step-types.ts +0 -24
  217. package/src/ai/activity-step.tsx +0 -4
  218. package/src/ai/activity-tasks-utils.ts +0 -13
  219. package/src/ai/activity-timeline.ts +0 -6
  220. package/src/ai/attachments.tsx +0 -13
  221. package/src/ai/chain-of-thought.tsx +0 -5
  222. package/src/ai/chat-jump-rail.tsx +0 -2
  223. package/src/ai/chat-text.ts +0 -1
  224. package/src/ai/chat-thread.tsx +0 -9
  225. package/src/ai/choice-question.tsx +0 -36
  226. package/src/ai/code-block.tsx +0 -52
  227. package/src/ai/collapsible.tsx +0 -12
  228. package/src/ai/conversation-context.ts +0 -14
  229. package/src/ai/conversation.tsx +0 -58
  230. package/src/ai/file-chip.tsx +0 -1
  231. package/src/ai/icon-button.tsx +0 -17
  232. package/src/ai/index.ts +0 -5
  233. package/src/ai/message-action-sheet.tsx +0 -8
  234. package/src/ai/message-context-menu.tsx +0 -22
  235. package/src/ai/message-quote.tsx +0 -4
  236. package/src/ai/message.tsx +0 -66
  237. package/src/ai/prompt-input-menu.tsx +0 -19
  238. package/src/ai/prompt-input.tsx +0 -97
  239. package/src/ai/reasoning.tsx +0 -6
  240. package/src/ai/reply-quote-chip.tsx +0 -5
  241. package/src/ai/response-text.tsx +0 -8
  242. package/src/ai/shimmer.tsx +0 -2
  243. package/src/ai/sources.tsx +0 -3
  244. package/src/ai/subagent-cards.tsx +0 -13
  245. package/src/ai/suggestion.tsx +0 -4
  246. package/src/ai/tool-approval-card.tsx +0 -14
  247. package/src/ai/trace.tsx +0 -23
  248. package/src/ai/unified-diff.tsx +0 -16
  249. package/src/ai/use-streaming-disclosure.ts +0 -4
  250. package/src/app-root/AuthGroupGate.tsx +0 -8
  251. package/src/app-root/SsoCallbackScreen.tsx +0 -10
  252. package/src/app-root/fonts.ts +0 -2
  253. package/src/auth/AccountScreens.tsx +0 -16
  254. package/src/auth/AuthProviders.tsx +0 -13
  255. package/src/auth/AuthScreen.tsx +0 -12
  256. package/src/auth/GoogleSignInButton.tsx +0 -12
  257. package/src/auth/SecondFactorScreen.tsx +0 -16
  258. package/src/auth/SignInScreen.tsx +0 -68
  259. package/src/auth/authErrors.ts +0 -6
  260. package/src/auth/clerkCore3.ts +0 -6
  261. package/src/auth/index.ts +0 -4
  262. package/src/auth/totp.ts +0 -13
  263. package/src/brand/AppIcons.tsx +0 -6
  264. package/src/brand/AppMark.tsx +0 -5
  265. package/src/brand/AppWordmark.tsx +0 -7
  266. package/src/brand/GoogleMark.tsx +0 -4
  267. package/src/brand/ProviderIcon.tsx +0 -6
  268. package/src/brand/familyApps.ts +0 -2
  269. package/src/brand/index.ts +0 -3
  270. package/src/brand/svg.ts +0 -9
  271. package/src/configureTheme.ts +0 -10
  272. package/src/controlStyles.ts +0 -12
  273. package/src/crash/LastCrashDialog.tsx +0 -6
  274. package/src/crash/lastCrash.ts +0 -21
  275. package/src/entries/ai.ts +0 -3
  276. package/src/entries/ambient.ts +0 -2
  277. package/src/entries/app-root.ts +0 -5
  278. package/src/entries/auth.ts +0 -4
  279. package/src/entries/bottom-sheet.ts +0 -2
  280. package/src/entries/brand.ts +0 -1
  281. package/src/entries/button.ts +0 -1
  282. package/src/entries/crash.ts +0 -3
  283. package/src/entries/date-time.ts +0 -2
  284. package/src/entries/expo-router.ts +0 -3
  285. package/src/entries/expo-web-root.ts +0 -2
  286. package/src/entries/floating.ts +0 -2
  287. package/src/entries/generative-ui.ts +0 -4
  288. package/src/entries/gesture-handler.ts +0 -3
  289. package/src/entries/keyboard-controller.ts +0 -3
  290. package/src/entries/layout.ts +0 -2
  291. package/src/entries/markdown.ts +0 -3
  292. package/src/entries/marketing.ts +0 -1
  293. package/src/entries/page-title.ts +0 -5
  294. package/src/entries/password-input.ts +0 -2
  295. package/src/entries/paste-input.ts +0 -3
  296. package/src/entries/primitives.ts +0 -6
  297. package/src/entries/search-input.ts +0 -2
  298. package/src/entries/tab-bar.ts +0 -2
  299. package/src/entries/theme.ts +2 -2
  300. package/src/entries/toast.ts +0 -3
  301. package/src/entries/video.ts +0 -2
  302. package/src/entries/webview.ts +0 -2
  303. package/src/examples/AiChatGallery.tsx +0 -11
  304. package/src/examples/ParityGallery.tsx +0 -25
  305. package/src/floating.ts +0 -6
  306. package/src/generative-ui/GenerativeUiPanel.tsx +0 -15
  307. package/src/generative-ui/components.tsx +0 -9
  308. package/src/generative-ui/context.ts +0 -2
  309. package/src/glass.ts +31 -0
  310. package/src/glassBlur.tsx +0 -15
  311. package/src/highlight.ts +0 -20
  312. package/src/index.ts +2 -2
  313. package/src/loadingGrid.ts +0 -12
  314. package/src/markdown/Markdown.tsx +0 -71
  315. package/src/markdown/MarkdownTable.tsx +0 -23
  316. package/src/markdown/tableText.ts +0 -3
  317. package/src/marketing/PricingModal.tsx +0 -13
  318. package/src/marketing/UpgradeToProCard.tsx +0 -14
  319. package/src/marketing/pricing.ts +0 -12
  320. package/src/media/ImageGallery.tsx +0 -18
  321. package/src/media/MediaCard.tsx +0 -8
  322. package/src/media/imageZoom.ts +0 -4
  323. package/src/media/zoom-image-gesture.tsx +0 -9
  324. package/src/media/zoomImage.ts +0 -5
  325. package/src/motion.ts +0 -3
  326. package/src/neutralTheme.ts +0 -3
  327. package/src/pagerSwipe.ts +0 -13
  328. package/src/palette.ts +0 -10
  329. package/src/pressScale.ts +0 -7
  330. package/src/primitives/button.tsx +0 -4
  331. package/src/primitives/card.tsx +0 -1
  332. package/src/primitives/input.tsx +0 -4
  333. package/src/primitives/keyboard-controller.tsx +0 -25
  334. package/src/primitives/keyboard-parts.tsx +0 -27
  335. package/src/primitives/native-only-animated-view.tsx +0 -5
  336. package/src/primitives/overlay.tsx +0 -25
  337. package/src/primitives/pager-gesture.tsx +0 -20
  338. package/src/primitives/paste-input.tsx +0 -4
  339. package/src/primitives/paste-parts.tsx +0 -1
  340. package/src/primitives/select.tsx +0 -16
  341. package/src/primitives/sheet-drag.tsx +0 -19
  342. package/src/primitives/sheet-gesture.tsx +0 -22
  343. package/src/primitives/swipe-row-gesture.tsx +0 -33
  344. package/src/primitives/switch.tsx +0 -4
  345. package/src/primitives/text.tsx +0 -4
  346. package/src/primitives/toast-drag-gesture.tsx +0 -13
  347. package/src/primitives/web-click-guard.ts +0 -2
  348. package/src/primitives/window-layer.tsx +0 -18
  349. package/src/push.ts +0 -15
  350. package/src/relativeTime.ts +0 -21
  351. package/src/router/RouterStackPageHeader.tsx +0 -1
  352. package/src/settings/MoreFromProjectV.tsx +0 -8
  353. package/src/settings/SettingsEmptyState.tsx +0 -2
  354. package/src/settings/SettingsSection.tsx +0 -3
  355. package/src/settings/SettingsToggleRow.tsx +0 -4
  356. package/src/settings/ThemeModePicker.tsx +0 -11
  357. package/src/settings/projectVMobileApps.ts +0 -8
  358. package/src/sheetDrag.ts +0 -9
  359. package/src/swipeRow.ts +0 -23
  360. package/src/tabBarRoutes.ts +0 -13
  361. package/src/tabIndicator.ts +0 -5
  362. package/src/tailwind-preset.cjs +0 -54
  363. package/src/tailwind-preset.d.cts +0 -8
  364. package/src/theme.tsx +11 -2
  365. package/src/themeModeStore.ts +0 -9
  366. package/src/toastChrome.ts +0 -6
  367. package/src/toastDrag.ts +0 -13
  368. package/src/toastStore.ts +0 -7
  369. package/src/updateCheck.ts +0 -15
  370. package/src/video/InlineVideo.tsx +0 -5
  371. package/src/webview/HtmlView.tsx +0 -23
  372. package/src/webview/HtmlView.web.tsx +0 -1
  373. package/src/webview/htmlView.ts +0 -5
@@ -3,9 +3,6 @@ import { Text, View } from "react-native";
3
3
  import Animated, { ReduceMotion, SharedTransition } from "react-native-reanimated";
4
4
  import { useReduceMotion } from "./useReduceMotion";
5
5
 
6
- // Shared element transitions (Reanimated 4.8): a view with the same
7
- // `sharedTransitionTag` on two screens moves and resizes from one to the other
8
- // as the screens change. Docs:
9
6
  // https://docs.swmansion.com/react-native-reanimated/docs/shared-element-transitions/shared-transition/
10
7
  // https://docs.swmansion.com/react-native-reanimated/docs/shared-element-transitions/children-of-shared-views/
11
8
 
package/dist/Skeleton.jsx CHANGED
@@ -141,8 +141,6 @@ export function CardSkeleton() {
141
141
  }
142
142
  return t3;
143
143
  }
144
-
145
- /** Title widths, row by row, so a list of placeholders does not read as one block. */
146
144
  const TITLE_WIDTHS = ["72%", "54%", "84%", "62%", "46%", "78%"];
147
145
  /**
148
146
  * A list row's placeholder, shaped like the row it stands for: a round mark,
package/dist/Spinner.jsx CHANGED
@@ -3,9 +3,7 @@ import { ActivityIndicator, Platform, View } from "react-native";
3
3
  import { cn } from "./cn";
4
4
  import { tokens } from "./tokens";
5
5
  import { useScheme } from "./useScheme";
6
- /** The system `"small"` spinner box on iOS, Android and React Native Web. */
7
6
  const SYSTEM_SMALL = 20;
8
- /** Web `size-4`. No platform has a 16 spinner, so `sm` is the small one scaled down in a 16 box. */
9
7
  const SM = 16;
10
8
  function systemSize(size) {
11
9
  if (typeof size === "number") {
@@ -10,11 +10,6 @@ import { useScheme } from "./useScheme";
10
10
  * such as "synced" or "new", in blue.
11
11
  */
12
12
 
13
- /**
14
- * The `info` blue: Tailwind `blue-500` in light and the lighter `blue-400` in
15
- * dark. Local to the dot: `tokens.css` has no `--info`, so it is not a
16
- * `palette` key.
17
- */
18
13
  const INFO = {
19
14
  light: "#3b82f6",
20
15
  dark: "#60a5fa"
package/dist/Switch.jsx CHANGED
@@ -4,10 +4,11 @@ import { Switch as PrimitiveSwitch } from "./primitives/switch";
4
4
  import { cn } from "./cn";
5
5
  import { selectionHaptic } from "./haptics";
6
6
  import { switchColors, switchSize, touchSlop } from "./controlStyles";
7
+ import { useGlass } from "./glass";
7
8
  import { useLargerText } from "./theme";
8
9
  import { useScheme } from "./useScheme";
9
10
  const Switch = React.forwardRef((t0, ref) => {
10
- const $ = _c(34);
11
+ const $ = _c(37);
11
12
  let checked;
12
13
  let offColor;
13
14
  let onCheckedChange;
@@ -58,6 +59,7 @@ const Switch = React.forwardRef((t0, ref) => {
58
59
  t2 = $[11];
59
60
  }
60
61
  const colors = t2;
62
+ const glass = useGlass("small");
61
63
  const trackColor = resolvedValue ? onColor : offColor;
62
64
  const size = switchSize(useLargerText(), sizeName);
63
65
  let t3;
@@ -90,41 +92,49 @@ const Switch = React.forwardRef((t0, ref) => {
90
92
  } else {
91
93
  t7 = $[17];
92
94
  }
93
- const t8 = colors.thumb;
95
+ let t8;
96
+ if ($[18] !== colors.thumb || $[19] !== glass) {
97
+ t8 = [colors.thumb, glass];
98
+ $[18] = colors.thumb;
99
+ $[19] = glass;
100
+ $[20] = t8;
101
+ } else {
102
+ t8 = $[20];
103
+ }
94
104
  const t9 = cn(size.thumb, resolvedValue ? size.on : size.off);
95
105
  const t10 = props.accessibilityState;
96
106
  const t11 = Boolean(props.disabled);
97
107
  let t12;
98
- if ($[18] !== props.accessibilityState || $[19] !== resolvedValue || $[20] !== t11) {
108
+ if ($[21] !== props.accessibilityState || $[22] !== resolvedValue || $[23] !== t11) {
99
109
  t12 = {
100
110
  ...t10,
101
111
  checked: resolvedValue,
102
112
  disabled: t11
103
113
  };
104
- $[18] = props.accessibilityState;
105
- $[19] = resolvedValue;
106
- $[20] = t11;
107
- $[21] = t12;
114
+ $[21] = props.accessibilityState;
115
+ $[22] = resolvedValue;
116
+ $[23] = t11;
117
+ $[24] = t12;
108
118
  } else {
109
- t12 = $[21];
119
+ t12 = $[24];
110
120
  }
111
121
  let t13;
112
- if ($[22] !== T0 || $[23] !== colors.thumb || $[24] !== handleCheckedChange || $[25] !== props || $[26] !== ref || $[27] !== resolvedValue || $[28] !== t12 || $[29] !== t4 || $[30] !== t6 || $[31] !== t7 || $[32] !== t9) {
122
+ if ($[25] !== T0 || $[26] !== handleCheckedChange || $[27] !== props || $[28] !== ref || $[29] !== resolvedValue || $[30] !== t12 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9) {
113
123
  t13 = <T0 ref={ref} checked={resolvedValue} onCheckedChange={handleCheckedChange} hitSlop={t4} accessibilityRole={t5} className={t6} trackStyle={t7} thumbStyle={t8} thumbClassName={t9} {...props} accessibilityState={t12} />;
114
- $[22] = T0;
115
- $[23] = colors.thumb;
116
- $[24] = handleCheckedChange;
117
- $[25] = props;
118
- $[26] = ref;
119
- $[27] = resolvedValue;
120
- $[28] = t12;
121
- $[29] = t4;
122
- $[30] = t6;
123
- $[31] = t7;
124
- $[32] = t9;
125
- $[33] = t13;
124
+ $[25] = T0;
125
+ $[26] = handleCheckedChange;
126
+ $[27] = props;
127
+ $[28] = ref;
128
+ $[29] = resolvedValue;
129
+ $[30] = t12;
130
+ $[31] = t4;
131
+ $[32] = t6;
132
+ $[33] = t7;
133
+ $[34] = t8;
134
+ $[35] = t9;
135
+ $[36] = t13;
126
136
  } else {
127
- t13 = $[33];
137
+ t13 = $[36];
128
138
  }
129
139
  return t13;
130
140
  });
package/dist/Tabs.jsx CHANGED
@@ -7,6 +7,7 @@ import { MIN_TOUCH_TARGET, tabColors, tabTrackStyle, tabTriggerSize, touchSlop,
7
7
  import { selectionHaptic } from "./haptics";
8
8
  import { useControllableState } from "./primitives/use-controllable-state";
9
9
  import { useTabIndicator, useTabLabelStyle } from "./tabIndicator";
10
+ import { useGlass } from "./glass";
10
11
  import { useLargerText } from "./theme";
11
12
  import { useScheme } from "./useScheme";
12
13
 
@@ -17,8 +18,6 @@ const TabsListContext = createContext({
17
18
  variant: "pills",
18
19
  size: "default"
19
20
  });
20
-
21
- /** A trigger's place in its list, for the linked indicator and label colour. */
22
21
  const TabIndexContext = createContext(0);
23
22
  function useTabs(part) {
24
23
  const context = useContext(TabsContext);
@@ -113,7 +112,7 @@ export function Tabs(t0) {
113
112
  return t6;
114
113
  }
115
114
  export function TabsList(t0) {
116
- const $ = _c(36);
115
+ const $ = _c(37);
117
116
  let children;
118
117
  let className;
119
118
  let progress;
@@ -151,6 +150,7 @@ export function TabsList(t0) {
151
150
  const variant = t1 === undefined ? "pills" : t1;
152
151
  const size = t2 === undefined ? "default" : t2;
153
152
  const scheme = useScheme();
153
+ const glass = useGlass("control");
154
154
  const triggers = Children.toArray(children);
155
155
  const indicator = useTabIndicator(progress, triggers.length);
156
156
  const t3 = TabsListContext;
@@ -193,45 +193,46 @@ export function TabsList(t0) {
193
193
  t8 = $[19];
194
194
  }
195
195
  let t9;
196
- if ($[20] !== indicator.measured || $[21] !== indicator.style || $[22] !== scheme || $[23] !== variant) {
196
+ if ($[20] !== glass || $[21] !== indicator.measured || $[22] !== indicator.style || $[23] !== scheme || $[24] !== variant) {
197
197
  t9 = indicator.measured ? <Animated.View pointerEvents="none" style={[{
198
198
  position: "absolute",
199
199
  left: 0,
200
200
  borderRadius: 9999
201
201
  }, {
202
202
  backgroundColor: tabColors(variant, true, scheme).backgroundColor
203
- }, indicator.style]} /> : null;
204
- $[20] = indicator.measured;
205
- $[21] = indicator.style;
206
- $[22] = scheme;
207
- $[23] = variant;
208
- $[24] = t9;
203
+ }, glass, indicator.style]} /> : null;
204
+ $[20] = glass;
205
+ $[21] = indicator.measured;
206
+ $[22] = indicator.style;
207
+ $[23] = scheme;
208
+ $[24] = variant;
209
+ $[25] = t9;
209
210
  } else {
210
- t9 = $[24];
211
+ t9 = $[25];
211
212
  }
212
213
  const t10 = triggers.map(_temp);
213
214
  let t11;
214
- if ($[25] !== T0 || $[26] !== props || $[27] !== t10 || $[28] !== t7 || $[29] !== t8 || $[30] !== t9) {
215
+ if ($[26] !== T0 || $[27] !== props || $[28] !== t10 || $[29] !== t7 || $[30] !== t8 || $[31] !== t9) {
215
216
  t11 = <T0 accessibilityRole={t5} className={t7} style={t8} {...props}>{t9}{t10}</T0>;
216
- $[25] = T0;
217
- $[26] = props;
218
- $[27] = t10;
219
- $[28] = t7;
220
- $[29] = t8;
221
- $[30] = t9;
222
- $[31] = t11;
217
+ $[26] = T0;
218
+ $[27] = props;
219
+ $[28] = t10;
220
+ $[29] = t7;
221
+ $[30] = t8;
222
+ $[31] = t9;
223
+ $[32] = t11;
223
224
  } else {
224
- t11 = $[31];
225
+ t11 = $[32];
225
226
  }
226
227
  let t12;
227
- if ($[32] !== t11 || $[33] !== t3.Provider || $[34] !== t4) {
228
+ if ($[33] !== t11 || $[34] !== t3.Provider || $[35] !== t4) {
228
229
  t12 = <t3.Provider value={t4}>{t11}</t3.Provider>;
229
- $[32] = t11;
230
- $[33] = t3.Provider;
231
- $[34] = t4;
232
- $[35] = t12;
230
+ $[33] = t11;
231
+ $[34] = t3.Provider;
232
+ $[35] = t4;
233
+ $[36] = t12;
233
234
  } else {
234
- t12 = $[35];
235
+ t12 = $[36];
235
236
  }
236
237
  return t12;
237
238
  }
package/dist/Textarea.jsx CHANGED
@@ -6,7 +6,6 @@ import { fieldStyle, fieldTextStyle, typeStyle } from "./controlStyles";
6
6
  import { palette } from "./palette";
7
7
  import { useLargerText } from "./theme";
8
8
  import { useScheme } from "./useScheme";
9
- /** Multiline `Input`: same fill, border, radius and type. Grows from 4 lines. */
10
9
  const Textarea = React.forwardRef((t0, ref) => {
11
10
  const $ = _c(27);
12
11
  let className;
@@ -5,7 +5,6 @@ import { HeaderIconButton } from "./HeaderIconButton";
5
5
  import { useLargerText } from "./theme";
6
6
  import { tokens } from "./tokens";
7
7
  import { useScheme } from "./useScheme";
8
- /** Logged when NativeWind's `setColorScheme` throws. */
9
8
  const DARK_MODE_CLASS_HINT = 'ThemeToggle could not set the colour scheme. NativeWind throws while Tailwind darkMode is "media" (the default): set darkMode: "class" in tailwind.config.js. See the @vvedantb/native-ui README, Theme.';
10
9
 
11
10
  /**
package/dist/Toast.jsx CHANGED
@@ -12,19 +12,14 @@ import { sizeStyle, textStyle, typeStyle } from "./controlStyles";
12
12
  import { FLOATING_INSET } from "./floating";
13
13
  import { TOAST_ICON_SIZE, TOAST_ICONS, toastIconColor, toastShadowStyle, toastSurfaceStyle } from "./toastChrome";
14
14
  import { tokens } from "./tokens";
15
+ import { useGlass } from "./glass";
15
16
  import { useLargerText } from "./theme";
16
17
  import { useScheme } from "./useScheme";
17
18
  import { NativeOnlyAnimatedView } from "./primitives/native-only-animated-view";
18
19
  import { ToastDragContext } from "./toastDrag";
19
20
  import { getToasts, subscribeToasts, toast } from "./toastStore";
20
-
21
- // On iOS the overlay draws above RN `Modal`s, so toasts show over dialogs (as
22
- // sonner does on the web). On Android a `Modal` still covers them.
23
21
  const FullWindowOverlay = Platform.OS === "ios" ? RNFullWindowOverlay : Fragment;
24
22
  const toastShadow = toastShadowStyle(Platform.OS);
25
-
26
- // Down from the top edge and back up the way it came, the exit 20% quicker:
27
- // the reader is done with it.
28
23
  const TOAST_ENTER = FadeInUp.duration(200).easing(EASE_OUT);
29
24
  const TOAST_EXIT = FadeOutUp.duration(160).easing(EASE_OUT);
30
25
 
@@ -81,8 +76,6 @@ export function Toaster(t0) {
81
76
  }
82
77
  return t7;
83
78
  }
84
-
85
- /** The web filled 24 icons (`toastChrome`), or a spinner while loading. */
86
79
  function _temp(item) {
87
80
  return <ToastCard key={item.id} item={item} />;
88
81
  }
@@ -143,12 +136,6 @@ function ToastIcon(t0) {
143
136
  }
144
137
  return t3;
145
138
  }
146
-
147
- /**
148
- * Closes `item` after its `duration`, counting only while it is not `held`:
149
- * a finger on the toast pauses the time left, and lifting it resumes. A
150
- * toast replaced in place (same id, new item) starts its own time afresh.
151
- */
152
139
  function useToastTimer(item, held) {
153
140
  const $ = _c(6);
154
141
  let t0;
@@ -195,12 +182,13 @@ function useToastTimer(item, held) {
195
182
  useEffect(t1, t2);
196
183
  }
197
184
  function ToastCard(t0) {
198
- const $ = _c(56);
185
+ const $ = _c(57);
199
186
  const {
200
187
  item
201
188
  } = t0;
202
189
  const largerText = useLargerText();
203
190
  const scheme = useScheme();
191
+ const glass = useGlass("surface");
204
192
  const Drag = useContext(ToastDragContext);
205
193
  const [held, setHeld] = useState(false);
206
194
  useToastTimer(item, held);
@@ -251,146 +239,147 @@ function ToastCard(t0) {
251
239
  t5 = $[10];
252
240
  }
253
241
  let t6;
254
- if ($[11] !== t5) {
255
- t6 = [t5, toastShadow];
256
- $[11] = t5;
257
- $[12] = t6;
242
+ if ($[11] !== glass || $[12] !== t5) {
243
+ t6 = [t5, toastShadow, glass];
244
+ $[11] = glass;
245
+ $[12] = t5;
246
+ $[13] = t6;
258
247
  } else {
259
- t6 = $[12];
248
+ t6 = $[13];
260
249
  }
261
250
  const t7 = `toast-${item.id}`;
262
251
  const t8 = !item.action;
263
252
  let t9;
264
- if ($[13] !== item.id) {
253
+ if ($[14] !== item.id) {
265
254
  t9 = () => toast.dismiss(item.id);
266
- $[13] = item.id;
267
- $[14] = t9;
255
+ $[14] = item.id;
256
+ $[15] = t9;
268
257
  } else {
269
- t9 = $[14];
258
+ t9 = $[15];
270
259
  }
271
260
  let t10;
272
- if ($[15] !== item) {
261
+ if ($[16] !== item) {
273
262
  t10 = <ToastIcon item={item} />;
274
- $[15] = item;
275
- $[16] = t10;
263
+ $[16] = item;
264
+ $[17] = t10;
276
265
  } else {
277
- t10 = $[16];
266
+ t10 = $[17];
278
267
  }
279
268
  const t11 = largerText ? "text-lg" : "text-sm";
280
269
  let t12;
281
- if ($[17] !== t11) {
270
+ if ($[18] !== t11) {
282
271
  t12 = cn("font-instrument-sans-medium", t11);
283
- $[17] = t11;
284
- $[18] = t12;
272
+ $[18] = t11;
273
+ $[19] = t12;
285
274
  } else {
286
- t12 = $[18];
275
+ t12 = $[19];
287
276
  }
288
277
  let t13;
289
- if ($[19] !== scheme) {
278
+ if ($[20] !== scheme) {
290
279
  t13 = textStyle("foreground", scheme);
291
- $[19] = scheme;
292
- $[20] = t13;
280
+ $[20] = scheme;
281
+ $[21] = t13;
293
282
  } else {
294
- t13 = $[20];
283
+ t13 = $[21];
295
284
  }
296
285
  let t14;
297
- if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
286
+ if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
298
287
  t14 = typeStyle("medium");
299
- $[21] = t14;
288
+ $[22] = t14;
300
289
  } else {
301
- t14 = $[21];
290
+ t14 = $[22];
302
291
  }
303
292
  let t15;
304
- if ($[22] !== largerText) {
293
+ if ($[23] !== largerText) {
305
294
  t15 = largerText ? sizeStyle("text-lg") : sizeStyle("text-sm", "snug");
306
- $[22] = largerText;
307
- $[23] = t15;
295
+ $[23] = largerText;
296
+ $[24] = t15;
308
297
  } else {
309
- t15 = $[23];
298
+ t15 = $[24];
310
299
  }
311
300
  let t16;
312
- if ($[24] !== t13 || $[25] !== t15) {
301
+ if ($[25] !== t13 || $[26] !== t15) {
313
302
  t16 = [t13, t14, t15];
314
- $[24] = t13;
315
- $[25] = t15;
316
- $[26] = t16;
303
+ $[25] = t13;
304
+ $[26] = t15;
305
+ $[27] = t16;
317
306
  } else {
318
- t16 = $[26];
307
+ t16 = $[27];
319
308
  }
320
309
  let t17;
321
- if ($[27] !== item.title || $[28] !== t12 || $[29] !== t16) {
310
+ if ($[28] !== item.title || $[29] !== t12 || $[30] !== t16) {
322
311
  t17 = <Text className={t12} style={t16}>{item.title}</Text>;
323
- $[27] = item.title;
324
- $[28] = t12;
325
- $[29] = t16;
326
- $[30] = t17;
312
+ $[28] = item.title;
313
+ $[29] = t12;
314
+ $[30] = t16;
315
+ $[31] = t17;
327
316
  } else {
328
- t17 = $[30];
317
+ t17 = $[31];
329
318
  }
330
319
  let t18;
331
- if ($[31] !== item.description || $[32] !== largerText || $[33] !== scheme) {
320
+ if ($[32] !== item.description || $[33] !== largerText || $[34] !== scheme) {
332
321
  t18 = item.description ? <Text className={cn("font-instrument-sans", largerText ? "text-base" : "text-sm")} style={textStyle("muted", scheme)}>{item.description}</Text> : null;
333
- $[31] = item.description;
334
- $[32] = largerText;
335
- $[33] = scheme;
336
- $[34] = t18;
322
+ $[32] = item.description;
323
+ $[33] = largerText;
324
+ $[34] = scheme;
325
+ $[35] = t18;
337
326
  } else {
338
- t18 = $[34];
327
+ t18 = $[35];
339
328
  }
340
329
  let t19;
341
- if ($[35] !== t17 || $[36] !== t18) {
330
+ if ($[36] !== t17 || $[37] !== t18) {
342
331
  t19 = <View className="min-w-0 flex-1">{t17}{t18}</View>;
343
- $[35] = t17;
344
- $[36] = t18;
345
- $[37] = t19;
332
+ $[36] = t17;
333
+ $[37] = t18;
334
+ $[38] = t19;
346
335
  } else {
347
- t19 = $[37];
336
+ t19 = $[38];
348
337
  }
349
338
  let t20;
350
- if ($[38] !== item.action || $[39] !== item.id || $[40] !== scheme) {
339
+ if ($[39] !== item.action || $[40] !== item.id || $[41] !== scheme) {
351
340
  t20 = item.action ? <Pressable accessibilityRole="button" hitSlop={8} onPress={() => {
352
341
  item.action?.onPress();
353
342
  toast.dismiss(item.id);
354
343
  }} className="rounded-full bg-secondary px-3 py-1.5 active:opacity-70"><Text className="font-instrument-sans-medium text-sm" style={[textStyle("foreground", scheme), typeStyle("medium")]}>{item.action.label}</Text></Pressable> : null;
355
- $[38] = item.action;
356
- $[39] = item.id;
357
- $[40] = scheme;
358
- $[41] = t20;
344
+ $[39] = item.action;
345
+ $[40] = item.id;
346
+ $[41] = scheme;
347
+ $[42] = t20;
359
348
  } else {
360
- t20 = $[41];
349
+ t20 = $[42];
361
350
  }
362
351
  let t21;
363
- if ($[42] !== t10 || $[43] !== t19 || $[44] !== t20 || $[45] !== t7 || $[46] !== t8 || $[47] !== t9) {
352
+ if ($[43] !== t10 || $[44] !== t19 || $[45] !== t20 || $[46] !== t7 || $[47] !== t8 || $[48] !== t9) {
364
353
  t21 = <Pressable testID={t7} accessible={t8} accessibilityRole="button" accessibilityHint="Closes the message" onPress={t9} className="flex-row items-center gap-3 px-4 py-3">{t10}{t19}{t20}</Pressable>;
365
- $[42] = t10;
366
- $[43] = t19;
367
- $[44] = t20;
368
- $[45] = t7;
369
- $[46] = t8;
370
- $[47] = t9;
371
- $[48] = t21;
354
+ $[43] = t10;
355
+ $[44] = t19;
356
+ $[45] = t20;
357
+ $[46] = t7;
358
+ $[47] = t8;
359
+ $[48] = t9;
360
+ $[49] = t21;
372
361
  } else {
373
- t21 = $[48];
362
+ t21 = $[49];
374
363
  }
375
364
  let t22;
376
- if ($[49] !== t21 || $[50] !== t6) {
365
+ if ($[50] !== t21 || $[51] !== t6) {
377
366
  t22 = <View style={t6}>{t21}</View>;
378
- $[49] = t21;
379
- $[50] = t6;
380
- $[51] = t22;
367
+ $[50] = t21;
368
+ $[51] = t6;
369
+ $[52] = t22;
381
370
  } else {
382
- t22 = $[51];
371
+ t22 = $[52];
383
372
  }
384
373
  const surface = t22;
385
374
  let t23;
386
- if ($[52] !== Drag || $[53] !== item.id || $[54] !== surface) {
375
+ if ($[53] !== Drag || $[54] !== item.id || $[55] !== surface) {
387
376
  t23 = <NativeOnlyAnimatedView entering={TOAST_ENTER} exiting={TOAST_EXIT} layout={LinearTransition}>{Drag ? <Drag onDismiss={() => toast.dismiss(item.id)} onHoldChange={setHeld}>{surface}</Drag> : surface}</NativeOnlyAnimatedView>;
388
- $[52] = Drag;
389
- $[53] = item.id;
390
- $[54] = surface;
391
- $[55] = t23;
377
+ $[53] = Drag;
378
+ $[54] = item.id;
379
+ $[55] = surface;
380
+ $[56] = t23;
392
381
  } else {
393
- t23 = $[55];
382
+ t23 = $[56];
394
383
  }
395
384
  return t23;
396
385
  }
@@ -209,7 +209,6 @@ export function UpdatePrompt(t0) {
209
209
 
210
210
  /** Where "Later" is remembered, for example `expo-secure-store` or AsyncStorage. */
211
211
  function _temp() {}
212
- /** The version Later hid. An unreadable store means nothing was dismissed. */
213
212
  async function readDismissed(storage, key) {
214
213
  try {
215
214
  return await storage.getItem(key);
@@ -109,12 +109,6 @@ export function ActivityQuestionCard(t0) {
109
109
  }
110
110
  return t1;
111
111
  }
112
-
113
- /**
114
- * One option as recorded (web `OptionRow`): a 20 rounded mark (the letter, a
115
- * check when picked, a pencil for "Other"), the label and its description.
116
- * Picked: the row on the tertiary fill, the mark on primary, the label medium.
117
- */
118
112
  function RecordRow(t0) {
119
113
  const $ = _c(56);
120
114
  const {
@@ -636,11 +636,6 @@ function joinCommandText(verb, target) {
636
636
  }
637
637
  return `${verb} ${target}`;
638
638
  }
639
-
640
- /**
641
- * Past-tense phrase used when a step type is folded into a group summary line.
642
- * Deliberately plural/vague — the exact call is one click away in the fold.
643
- */
644
639
  const GROUP_PHRASES = {
645
640
  read: "read files",
646
641
  edit: "edited files",
@@ -667,7 +662,6 @@ function groupPhraseForStep(step) {
667
662
  if (step.type !== "tool") {
668
663
  return GROUP_PHRASES[step.type];
669
664
  }
670
- // Codex reports edits as a `file_change` tool call, not an edit step.
671
665
  if (isFileChangeTool(step)) {
672
666
  return GROUP_PHRASES.edit;
673
667
  }
@@ -1,7 +1,3 @@
1
- // Pure step types for the activity timeline: no React, so `@vvedantb/native-ui`
2
- // keeps a byte-identical copy (`src/ai/activity-step-types.ts`), with the step
3
- // labels and grouping that read them.
4
-
5
1
  /** One item in a todo checklist step (type "todos"). */
6
2
 
7
3
  /** One choice offered by an AskUserQuestion prompt. */
@@ -3,17 +3,8 @@
3
3
  * inside that agent (keyed by parentToolUseId → toolUseId).
4
4
  */
5
5
 
6
- /**
7
- * Status-filler thinking labels emitted by older callback versions (and by
8
- * prod until the current callback deploys). The response/reasoning text is
9
- * shown directly, so these narration rows are pure noise — hide them.
10
- */
11
6
  const LEGACY_NOISE_LABELS = new Set(["Generating response...", "Generated response", "Streaming response...", "Streamed response", "Finalizing response..."]);
12
-
13
- /** Thinking labels that mark model reasoning rather than status narration. */
14
7
  const REASONING_LABELS = new Set(["Thinking...", "Thought"]);
15
-
16
- /** Placeholder details older callbacks attached to reasoning-label steps. */
17
8
  const FILLER_DETAILS = new Set(["Claude is reasoning...", "Codex is reasoning...", "Opencode is reasoning...", "Cursor is reasoning...", "Receiving reply..."]);
18
9
 
19
10
  /**
@@ -35,8 +26,6 @@ export function normalizeStep(step) {
35
26
  }
36
27
  return step;
37
28
  }
38
-
39
- /** Builds one row per normalized step (no consecutive-type merging). */
40
29
  function stepsToRows(steps) {
41
30
  const rows = [];
42
31
  for (const raw of steps) {
@@ -48,11 +37,6 @@ function stepsToRows(steps) {
48
37
  }
49
38
  return rows;
50
39
  }
51
-
52
- /**
53
- * Row types that read as narration rather than work: they already summarise
54
- * themselves, so folding them into an action group would hide their only text.
55
- */
56
40
  const STANDALONE_TYPES = new Set(["todos", "notice", "status", "question", "steer"]);
57
41
 
58
42
  /** One block in the activity timeline: prose, a lone row, or a folded run. */
@@ -73,7 +57,6 @@ export function groupActivityRows(rows) {
73
57
  });
74
58
  continue;
75
59
  }
76
- // Mid-turn reply text: it ends the tool run before it, like reasoning.
77
60
  if (row.step.type === "response") {
78
61
  segments.push({
79
62
  kind: "response",
@@ -1,17 +1,9 @@
1
- // The folded (Codex-style) rules of the web `ActivityTasks`
2
- // (`@vvedantb/ui` `activity-tasks.tsx`), as pure logic for an app that draws
3
- // the rows with the `AgentTrace` parts. The row text, the grouping and the
4
- // step types are byte-identical copies of the web files
5
- // (`activity-step-label.ts`, `activity-tasks-utils.ts`, `activity-step-types.ts`).
6
-
7
1
  import { buildActivityRows, groupActivityRows } from "./activity-tasks-utils";
8
2
  /** Blocks a settled timeline shows before "Show N more" (web `MAX_VISIBLE_ROWS`). */
9
3
  export const ACTIVITY_MAX_VISIBLE_BLOCKS = 8;
10
4
 
11
5
  /** Child rows a subagent step shows before "+N more" (web `MAX_VISIBLE_CHILDREN`). */
12
6
  export const ACTIVITY_MAX_VISIBLE_CHILDREN = 8;
13
-
14
- /** Step types the folded layout hides: the reply text and the status thinking lines. */
15
7
  const HIDDEN_TYPES = new Set(["thinking", "response"]);
16
8
 
17
9
  /**
@@ -97,8 +97,6 @@ export function Attachments(t0) {
97
97
  }
98
98
  /** The hit target of a pressable chip, in points, on each axis. */
99
99
  export const ATTACHMENT_PRESS_TARGET = 48;
100
-
101
- /** A remove cross of 20 in a 32 row: the slop brings it to 44. */
102
100
  const REMOVE_SIZE = 20;
103
101
 
104
102
  /**