@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
package/dist/Dialog.jsx CHANGED
@@ -54,16 +54,12 @@ export function DialogClose(props) {
54
54
  }
55
55
  return t0;
56
56
  }
57
- /** Web `rounded-t-2xl` (16) on the compact sheet. */
58
57
  const SHEET_RADIUS = tokens.radius.lg;
59
-
60
- /** The centred panel: at most 480 wide. */
61
58
  const PANEL = {
62
59
  width: "100%",
63
60
  maxWidth: 480,
64
61
  alignSelf: "center"
65
62
  };
66
- /** The compact sheet: its bottom corners sit below the screen edge, and it shrinks to the room, as `SheetContent`. */
67
63
  const SHEET = {
68
64
  marginBottom: -SHEET_RADIUS,
69
65
  flexShrink: 1
@@ -275,11 +271,6 @@ export function DialogContent(t0) {
275
271
  }
276
272
  return t23;
277
273
  }
278
-
279
- /**
280
- * The web compact handle: an `h-1 w-12` pill in `surface-tertiary`, in a
281
- * 44-high row. The whole sheet drags (`SheetDragView`), the handle with it.
282
- */
283
274
  function DialogHandle() {
284
275
  const $ = _c(2);
285
276
  const scheme = useScheme();
@@ -361,9 +352,6 @@ export function DialogHeader(t0) {
361
352
  return t2;
362
353
  }
363
354
 
364
- // Text colours are styles (`textStyle`), so they follow the colour scheme in
365
- // apps whose `text-foreground` does not. Recolour with `style`, not `className`.
366
-
367
355
  /** Web `text-lg font-medium`. */
368
356
  export function DialogTitle(t0) {
369
357
  const $ = _c(17);
@@ -113,14 +113,10 @@ export function DropdownMenu(t0) {
113
113
  export function isMeasuredRect(rect) {
114
114
  return rect.width > 0 && rect.height > 0;
115
115
  }
116
- /** The wrapper shrink-wraps the trigger in a flex row (such as the PromptInput `leading` slot). */
117
116
  const TRIGGER_HOST = {
118
117
  alignSelf: "flex-start"
119
118
  };
120
-
121
- /** Frames to wait for layout to settle, when a view reads empty. */
122
119
  const MEASURE_RETRIES = 2;
123
- /** Last-resort trigger size when a press has a touch point but no `onLayout` size and no style size: a 44 point touch target. */
124
120
  const FALLBACK_SIZE = {
125
121
  width: 44,
126
122
  height: 44
@@ -420,12 +416,8 @@ export function dropdownMenuPosition({
420
416
  const above = trigger.y - sideOffset;
421
417
  const roomBelow = maxBottom - below;
422
418
  const roomAbove = above - minTop;
423
- // Not measured yet (0): flip only when almost no room is below, so a bottom
424
- // trigger never gets a first layout with a tiny `maxHeight`.
425
419
  const tooTight = contentHeight > 0 ? contentHeight > roomBelow : roomBelow < DROPDOWN_MENU.itemHeight;
426
420
  if (tooTight && roomAbove > roomBelow) {
427
- // `top` only: `bottom` is ignored inside `WindowLayerHost` on Android. The menu's
428
- // bottom edge lands on `above`; before measure, a two-row estimate stands in.
429
421
  const height = contentHeight > 0 ? contentHeight : Math.min(roomAbove, DROPDOWN_MENU.itemHeight * 2 + DROPDOWN_MENU.padding * 2);
430
422
  return {
431
423
  ...horizontal,
@@ -790,8 +782,6 @@ export function DropdownMenuContent(t0) {
790
782
  }
791
783
  return t32;
792
784
  }
793
-
794
- /** Item type and icon size: the web `text-sm` with a 16 icon in 48 rows, or `text-lg` with a 22 icon and 56 rows with larger text. */
795
785
  function itemMetrics(largerText) {
796
786
  return largerText ? {
797
787
  text: sizeStyle("text-lg"),
@@ -111,9 +111,6 @@ function EmptyStateView(t0) {
111
111
  return t15;
112
112
  }
113
113
 
114
- // Composable parts with the web names (`EmptyState.Root`, `.Icon`, `.Title`,
115
- // `.Description`, `.Actions`). `Root` sets the variant, the parts read it.
116
-
117
114
  /** `default`: open centred block with a large bare icon. `panel`: filled rounded block, icon in a tile. */
118
115
 
119
116
  const EmptyStateContext = createContext("default");
@@ -4,12 +4,6 @@ import { tokens } from "./tokens";
4
4
  const {
5
5
  ScrollViewStyleReset
6
6
  } = expoRouterHtml;
7
-
8
- // From Expo SDK 58 the static render no longer writes the page's CSS links and
9
- // script tags into the HTML afterwards: it hands them to the root as nodes, and
10
- // a root that leaves them out gives a blank page. Earlier SDKs have no such
11
- // hook and still write the tags themselves.
12
-
13
7
  const emptyDocument = {};
14
8
  const useServerDocument = expoRouterHtml.useServerDocumentContext ?? (() => emptyDocument);
15
9
 
package/dist/Field.jsx CHANGED
@@ -16,11 +16,6 @@ function useField(part) {
16
16
  }
17
17
  return value;
18
18
  }
19
- /**
20
- * A labelled control: a `gap-2` column. It generates the `nativeID` that
21
- * `FieldLabel` sets and `FieldControl` points at with `accessibilityLabelledBy`.
22
- * A plain `Input` does not need it.
23
- */
24
19
  function Field(t0) {
25
20
  const $ = _c(15);
26
21
  let className;
@@ -86,8 +81,6 @@ function Field(t0) {
86
81
  }
87
82
  return t4;
88
83
  }
89
-
90
- /** `Label` with the `nativeID` of the nearest `Field`. */
91
84
  function FieldLabel(props) {
92
85
  const $ = _c(6);
93
86
  const field = useField("FieldLabel");
@@ -121,12 +114,6 @@ function FieldLabel(props) {
121
114
  }
122
115
  return t2;
123
116
  }
124
-
125
- /**
126
- * `Input` that names itself from the `FieldLabel` of the nearest `Field`
127
- * (`accessibilityLabelledBy`, Android). With no `FieldLabel` rendered it
128
- * keeps the `accessibilityLabel` you pass, which is the fallback on iOS too.
129
- */
130
117
  function FieldControl(props) {
131
118
  const $ = _c(6);
132
119
  const field = useField("FieldControl");
@@ -152,8 +139,6 @@ function FieldControl(props) {
152
139
  }
153
140
  return t1;
154
141
  }
155
-
156
- /** Muted hint under the control. */
157
142
  function FieldDescription(t0) {
158
143
  const $ = _c(19);
159
144
  let className;
@@ -224,8 +209,6 @@ function FieldDescription(t0) {
224
209
  }
225
210
  return t5;
226
211
  }
227
-
228
- /** Error message under the control, read out when it appears. */
229
212
  function FieldError(t0) {
230
213
  const $ = _c(20);
231
214
  let className;
@@ -4,11 +4,13 @@ import { glassMode, loadBlur } from "./blur";
4
4
  import { cn } from "./cn";
5
5
  import { hasDefiniteHeight } from "./definiteSize";
6
6
  import { floatingFill, floatingHairline, floatingShadow, floatingSolidFill, FLOATING_RADIUS } from "./floating";
7
+ import { useGlass } from "./glass";
7
8
  import { useGlassBlurTarget } from "./glassBlur";
9
+ import { useSurface } from "./theme";
8
10
  import { useReduceTransparency } from "./useReduceTransparency";
9
11
  import { useScheme } from "./useScheme";
10
12
  export function FloatingSurface(t0) {
11
- const $ = _c(50);
13
+ const $ = _c(54);
12
14
  let children;
13
15
  let className;
14
16
  let props;
@@ -48,150 +50,165 @@ export function FloatingSurface(t0) {
48
50
  const elevated = t3 === undefined ? true : t3;
49
51
  const colorScheme = useScheme();
50
52
  const reduceTransparency = useReduceTransparency();
53
+ const flat = useSurface() === "flat";
54
+ const glass = useGlass("surface");
51
55
  const blurTarget = useGlassBlurTarget();
52
56
  const BlurView = loadBlur()?.BlurView;
53
- let t4;
54
- if ($[8] !== blur || $[9] !== reduceTransparency) {
55
- t4 = glassMode({
57
+ const t4 = reduceTransparency || flat;
58
+ let t5;
59
+ if ($[8] !== blur || $[9] !== t4) {
60
+ t5 = glassMode({
56
61
  os: Platform.OS,
57
62
  blur,
58
- reduceTransparency,
63
+ reduceTransparency: t4,
59
64
  hasBlurView: BlurView != null
60
65
  });
61
66
  $[8] = blur;
62
- $[9] = reduceTransparency;
63
- $[10] = t4;
67
+ $[9] = t4;
68
+ $[10] = t5;
64
69
  } else {
65
- t4 = $[10];
70
+ t5 = $[10];
66
71
  }
67
- const mode = t4;
72
+ const mode = t5;
68
73
  const isDark = colorScheme === "dark";
69
74
  const opaqueFill = isDark ? floatingSolidFill.dark : floatingSolidFill.light;
70
75
  const translucentFill = isDark ? floatingFill.dark : floatingFill.light;
71
76
  const border = isDark ? floatingHairline.dark : floatingHairline.light;
72
77
  const fill = mode === "solid" ? opaqueFill : translucentFill;
73
- let t5;
78
+ let t6;
74
79
  if ($[11] !== className) {
75
- t5 = cn(className);
80
+ t6 = cn(className);
76
81
  $[11] = className;
77
- $[12] = t5;
82
+ $[12] = t6;
78
83
  } else {
79
- t5 = $[12];
84
+ t6 = $[12];
80
85
  }
81
- let t6;
86
+ let t7;
82
87
  if ($[13] !== radius) {
83
- t6 = {
88
+ t7 = {
84
89
  borderRadius: radius
85
90
  };
86
91
  $[13] = radius;
87
- $[14] = t6;
92
+ $[14] = t7;
88
93
  } else {
89
- t6 = $[14];
94
+ t7 = $[14];
90
95
  }
91
- const t7 = elevated ? floatingShadow : null;
92
- let t8;
96
+ const t8 = elevated ? floatingShadow : null;
97
+ let t9;
93
98
  if ($[15] !== fill) {
94
- t8 = {
99
+ t9 = {
95
100
  backgroundColor: fill
96
101
  };
97
102
  $[15] = fill;
98
- $[16] = t8;
103
+ $[16] = t9;
99
104
  } else {
100
- t8 = $[16];
105
+ t9 = $[16];
101
106
  }
102
- let t9;
103
- if ($[17] !== style || $[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
104
- t9 = [t6, t7, style, t8];
107
+ let t10;
108
+ if ($[17] !== style || $[18] !== t7 || $[19] !== t8 || $[20] !== t9) {
109
+ t10 = [t7, t8, style, t9];
105
110
  $[17] = style;
106
- $[18] = t6;
107
- $[19] = t7;
108
- $[20] = t8;
109
- $[21] = t9;
111
+ $[18] = t7;
112
+ $[19] = t8;
113
+ $[20] = t9;
114
+ $[21] = t10;
110
115
  } else {
111
- t9 = $[21];
116
+ t10 = $[21];
112
117
  }
113
- const t10 = mode === "blur" ? "transparent" : fill;
114
- let t11;
115
- if ($[22] !== border || $[23] !== radius || $[24] !== t10) {
116
- t11 = {
118
+ const t11 = mode === "blur" ? "transparent" : fill;
119
+ let t12;
120
+ if ($[22] !== border || $[23] !== radius || $[24] !== t11) {
121
+ t12 = {
117
122
  borderRadius: radius,
118
123
  borderWidth: StyleSheet.hairlineWidth,
119
124
  borderColor: border,
120
- backgroundColor: t10
125
+ backgroundColor: t11
121
126
  };
122
127
  $[22] = border;
123
128
  $[23] = radius;
124
- $[24] = t10;
125
- $[25] = t11;
126
- } else {
127
- t11 = $[25];
128
- }
129
- const t12 = hasDefiniteHeight(style) ? styles.fill : null;
130
- let t13;
131
- if ($[26] !== t11 || $[27] !== t12) {
132
- t13 = [styles.clip, t11, Platform.OS === "ios" ? styles.continuous : null, t12];
133
- $[26] = t11;
134
- $[27] = t12;
135
- $[28] = t13;
129
+ $[24] = t11;
130
+ $[25] = t12;
136
131
  } else {
137
- t13 = $[28];
132
+ t12 = $[25];
138
133
  }
134
+ const t13 = hasDefiniteHeight(style) ? styles.fill : null;
139
135
  let t14;
136
+ if ($[26] !== t12 || $[27] !== t13) {
137
+ t14 = [styles.clip, t12, Platform.OS === "ios" ? styles.continuous : null, t13];
138
+ $[26] = t12;
139
+ $[27] = t13;
140
+ $[28] = t14;
141
+ } else {
142
+ t14 = $[28];
143
+ }
144
+ let t15;
140
145
  if ($[29] !== blurTarget || $[30] !== isDark || $[31] !== mode) {
141
- t14 = mode === "blur" && BlurView ? <BlurView pointerEvents="none" tint={isDark ? "systemMaterialDark" : "systemMaterialLight"} intensity={70} experimentalBlurMethod={Platform.OS === "android" ? "dimezisBlurView" : undefined} blurMethod="dimezisBlurView" blurReductionFactor={3} blurTarget={blurTarget ?? undefined} style={StyleSheet.absoluteFill} /> : null;
146
+ t15 = mode === "blur" && BlurView ? <BlurView pointerEvents="none" tint={isDark ? "systemMaterialDark" : "systemMaterialLight"} intensity={70} experimentalBlurMethod={Platform.OS === "android" ? "dimezisBlurView" : undefined} blurMethod="dimezisBlurView" blurReductionFactor={3} blurTarget={blurTarget ?? undefined} style={StyleSheet.absoluteFill} /> : null;
142
147
  $[29] = blurTarget;
143
148
  $[30] = isDark;
144
149
  $[31] = mode;
145
- $[32] = t14;
150
+ $[32] = t15;
146
151
  } else {
147
- t14 = $[32];
152
+ t15 = $[32];
148
153
  }
149
- let t15;
154
+ let t16;
150
155
  if ($[33] !== mode || $[34] !== translucentFill) {
151
- t15 = mode === "blur" && Platform.OS === "android" ? <View pointerEvents="none" style={[StyleSheet.absoluteFill, {
156
+ t16 = mode === "blur" && Platform.OS === "android" ? <View pointerEvents="none" style={[StyleSheet.absoluteFill, {
152
157
  backgroundColor: translucentFill
153
158
  }]} /> : null;
154
159
  $[33] = mode;
155
160
  $[34] = translucentFill;
156
- $[35] = t15;
161
+ $[35] = t16;
157
162
  } else {
158
- t15 = $[35];
163
+ t16 = $[35];
159
164
  }
160
- let t16;
165
+ let t17;
161
166
  if ($[36] !== mode || $[37] !== translucentFill) {
162
- t16 = mode === "backdrop" ? <View pointerEvents="none" className="absolute inset-0 backdrop-blur-xl" style={{
167
+ t17 = mode === "backdrop" ? <View pointerEvents="none" className="absolute inset-0 backdrop-blur-xl" style={{
163
168
  backgroundColor: translucentFill
164
169
  }} /> : null;
165
170
  $[36] = mode;
166
171
  $[37] = translucentFill;
167
- $[38] = t16;
172
+ $[38] = t17;
168
173
  } else {
169
- t16 = $[38];
174
+ t17 = $[38];
170
175
  }
171
- let t17;
172
- if ($[39] !== children || $[40] !== t13 || $[41] !== t14 || $[42] !== t15 || $[43] !== t16) {
173
- t17 = <View style={t13}>{t14}{t15}{t16}{children}</View>;
174
- $[39] = children;
175
- $[40] = t13;
176
- $[41] = t14;
177
- $[42] = t15;
178
- $[43] = t16;
179
- $[44] = t17;
176
+ let t18;
177
+ if ($[39] !== glass || $[40] !== radius) {
178
+ t18 = glass ? <View pointerEvents="none" style={[StyleSheet.absoluteFill, {
179
+ borderRadius: radius
180
+ }, glass]} /> : null;
181
+ $[39] = glass;
182
+ $[40] = radius;
183
+ $[41] = t18;
180
184
  } else {
181
- t17 = $[44];
185
+ t18 = $[41];
182
186
  }
183
- let t18;
184
- if ($[45] !== props || $[46] !== t17 || $[47] !== t5 || $[48] !== t9) {
185
- t18 = <View className={t5} {...props} style={t9}>{t17}</View>;
186
- $[45] = props;
187
+ let t19;
188
+ if ($[42] !== children || $[43] !== t14 || $[44] !== t15 || $[45] !== t16 || $[46] !== t17 || $[47] !== t18) {
189
+ t19 = <View style={t14}>{t15}{t16}{t17}{children}{t18}</View>;
190
+ $[42] = children;
191
+ $[43] = t14;
192
+ $[44] = t15;
193
+ $[45] = t16;
187
194
  $[46] = t17;
188
- $[47] = t5;
189
- $[48] = t9;
190
- $[49] = t18;
195
+ $[47] = t18;
196
+ $[48] = t19;
197
+ } else {
198
+ t19 = $[48];
199
+ }
200
+ let t20;
201
+ if ($[49] !== props || $[50] !== t10 || $[51] !== t19 || $[52] !== t6) {
202
+ t20 = <View className={t6} {...props} style={t10}>{t19}</View>;
203
+ $[49] = props;
204
+ $[50] = t10;
205
+ $[51] = t19;
206
+ $[52] = t6;
207
+ $[53] = t20;
191
208
  } else {
192
- t18 = $[49];
209
+ t20 = $[53];
193
210
  }
194
- return t18;
211
+ return t20;
195
212
  }
196
213
  export function GlassSheetBackground(t0) {
197
214
  const $ = _c(3);
@@ -213,8 +230,6 @@ export function GlassSheetBackground(t0) {
213
230
  const styles = StyleSheet.create({
214
231
  clip: {
215
232
  overflow: "hidden",
216
- // A surface held shorter than its content (a sheet in a short window)
217
- // shrinks the clip with it, so a scroll view inside can scroll.
218
233
  flexShrink: 1
219
234
  },
220
235
  fill: {
@@ -12,14 +12,7 @@ import { useReduceMotion } from "./useReduceMotion";
12
12
  import { useScheme } from "./useScheme";
13
13
  import { FLOATING_PILL_RADIUS, tabBarHeight, tabBarSlotStyle } from "./floating";
14
14
  import { usePressed } from "./usePressed";
15
-
16
- /**
17
- * Space between the bar edge and the tabs, on every side of the active pill,
18
- * in points. The same all round, so the pill follows the bar's curve.
19
- */
20
15
  const TAB_BAR_PADDING = 4;
21
-
22
- /** The web `--tabs-dur` (200ms) and `--tabs-ease` (`tokens.css`). */
23
16
  const PILL_SLIDE = {
24
17
  duration: 200,
25
18
  easing: Easing.bezier(0.22, 1, 0.36, 1)
@@ -190,12 +183,6 @@ export function FloatingTabBar(t0) {
190
183
  }
191
184
  return t9;
192
185
  }
193
- /**
194
- * One tab. React Compiler (the package build) memoises it, so a switch
195
- * renders only the two tabs whose focus changed. Its props are stable between
196
- * switches: `route`, `emitter` and `navigateToTab` keep their identity, and
197
- * `tabBarIcon` is the caller's function.
198
- */
199
186
  function TabBarItem(t0) {
200
187
  const $ = _c(33);
201
188
  const {
@@ -325,16 +312,6 @@ function TabBarItem(t0) {
325
312
  }
326
313
  return t13;
327
314
  }
328
-
329
- /**
330
- * The pill behind tab `index` of `count` drawn tabs: one tab wide (they share
331
- * the row equally), `TAB_BAR_PADDING` inside the bar, in
332
- * `floatingTabPillColors` (the muted `--default` in light, `--segment` in
333
- * dark, so it shows on the glass bar) and the `TabsTrigger` pills outline.
334
- * It slides to a newly focused tab, as the web segmented pill does,
335
- * and moves at once with Reduce Motion. Behind the tablist, so assistive tech
336
- * reads only the tabs.
337
- */
338
315
  function ActiveTabPill(t0) {
339
316
  const $ = _c(14);
340
317
  const {
@@ -7,7 +7,6 @@ import { withAlpha } from "./palette";
7
7
  import { useLargerText } from "./theme";
8
8
  import { tokens } from "./tokens";
9
9
  import { useScheme } from "./useScheme";
10
- /** Diameter and icon size per size, a step up with larger text. */
11
10
  const METRICS = {
12
11
  regular: {
13
12
  sm: [32, 16],
@@ -76,10 +76,6 @@ export function LoadingState(t0) {
76
76
  }
77
77
  return t8;
78
78
  }
79
-
80
- /** Column colours, left to right. */
81
-
82
- /** Owns the clock, so unmounting it (Reduce Motion, `paused`) stops the frame callback. */
83
79
  function RunningDriveGrid(t0) {
84
80
  const $ = _c(4);
85
81
  const {
@@ -104,8 +100,6 @@ function RunningDriveGrid(t0) {
104
100
  }
105
101
  return t1;
106
102
  }
107
-
108
- /** The nine cells. No `elapsed`: the still frame. */
109
103
  function DriveGrid(t0) {
110
104
  const $ = _c(11);
111
105
  const {
@@ -8,7 +8,6 @@ import { fieldStyle, fieldTextStyle, touchSlop, typeStyle } from "./controlStyle
8
8
  import { tokens } from "./tokens";
9
9
  import { useLargerText } from "./theme";
10
10
  import { useScheme } from "./useScheme";
11
- /** Toggle metrics: painted 24 (32 with larger text), 44 with its hit slop. */
12
11
  function passwordToggleSize(largerText) {
13
12
  return largerText ? {
14
13
  button: 32,
@@ -22,20 +21,6 @@ function passwordToggleSize(largerText) {
22
21
  paddingRight: 44
23
22
  };
24
23
  }
25
-
26
- /**
27
- * `Input` for a password, with a show/hide eye button at the end. The text is
28
- * hidden at first. The toggle flips `secureTextEntry` on the same mounted
29
- * field, so focus and the cursor stay where they were. The `secureTextEntry`
30
- * prop is not accepted: the toggle owns it. Every other `Input` prop, `ref`
31
- * and `testID` pass through. The toggle is labelled "Show password" while the
32
- * text is hidden and "Hide password" while it shows, has the test ID
33
- * `${testID}-toggle` (`password-input-toggle` without a `testID`), is painted
34
- * at 24 and reaches 44 with its hit slop (`touchSlop`). It is hidden when the
35
- * field is not editable. Inside a `ScrollView`, set
36
- * `keyboardShouldPersistTaps="handled"` so the first tap toggles while the
37
- * keyboard is up.
38
- */
39
24
  const PasswordInput = React.forwardRef((t0, ref) => {
40
25
  const $ = _c(21);
41
26
  let className;
package/dist/PillTabs.jsx CHANGED
@@ -6,6 +6,7 @@ import { selectionHaptic } from "./haptics";
6
6
  import { MIN_TOUCH_TARGET, tabColors, tabTriggerSize, touchSlop, typeStyle } from "./controlStyles";
7
7
  import { centredTabScroll } from "./pagerSwipe";
8
8
  import { useTabIndicator, useTabLabelStyle } from "./tabIndicator";
9
+ import { useGlass } from "./glass";
9
10
  import { useLargerText } from "./theme";
10
11
  import { useScheme } from "./useScheme";
11
12
 
@@ -22,7 +23,7 @@ import { useScheme } from "./useScheme";
22
23
  * a press still changes `value` at once.
23
24
  */
24
25
  export function PillTabs(t0) {
25
- const $ = _c(35);
26
+ const $ = _c(36);
26
27
  const {
27
28
  options,
28
29
  value,
@@ -31,6 +32,7 @@ export function PillTabs(t0) {
31
32
  } = t0;
32
33
  const largerText = useLargerText();
33
34
  const scheme = useScheme();
35
+ const glass = useGlass("control");
34
36
  let t1;
35
37
  let trigger;
36
38
  if ($[0] !== largerText) {
@@ -90,60 +92,61 @@ export function PillTabs(t0) {
90
92
  t5 = $[8];
91
93
  }
92
94
  let t6;
93
- if ($[9] !== indicator.measured || $[10] !== indicator.style || $[11] !== scheme) {
95
+ if ($[9] !== glass || $[10] !== indicator.measured || $[11] !== indicator.style || $[12] !== scheme) {
94
96
  t6 = indicator.measured ? <Animated.View pointerEvents="none" style={[{
95
97
  position: "absolute",
96
98
  left: 0,
97
99
  borderRadius: 9999
98
100
  }, {
99
101
  backgroundColor: tabColors("pills", true, scheme).backgroundColor
100
- }, indicator.style]} /> : null;
101
- $[9] = indicator.measured;
102
- $[10] = indicator.style;
103
- $[11] = scheme;
104
- $[12] = t6;
102
+ }, glass, indicator.style]} /> : null;
103
+ $[9] = glass;
104
+ $[10] = indicator.measured;
105
+ $[11] = indicator.style;
106
+ $[12] = scheme;
107
+ $[13] = t6;
105
108
  } else {
106
- t6 = $[12];
109
+ t6 = $[13];
107
110
  }
108
111
  let t7;
109
- if ($[13] !== indicator || $[14] !== onChange || $[15] !== options || $[16] !== progress || $[17] !== slop || $[18] !== trigger || $[19] !== value) {
112
+ if ($[14] !== indicator || $[15] !== onChange || $[16] !== options || $[17] !== progress || $[18] !== slop || $[19] !== trigger || $[20] !== value) {
110
113
  let t8;
111
- if ($[21] !== indicator || $[22] !== onChange || $[23] !== progress || $[24] !== slop || $[25] !== trigger || $[26] !== value) {
114
+ if ($[22] !== indicator || $[23] !== onChange || $[24] !== progress || $[25] !== slop || $[26] !== trigger || $[27] !== value) {
112
115
  t8 = (tab_0, index) => <PillTab key={tab_0.id} label={tab_0.label} testID={tab_0.testID} index={index} selected={value === tab_0.id} filled={!indicator.measured} progress={progress} trigger={trigger} hitSlop={slop} onLayout={indicator.onLayout(index)} onPress={() => onChange(tab_0.id)} />;
113
- $[21] = indicator;
114
- $[22] = onChange;
115
- $[23] = progress;
116
- $[24] = slop;
117
- $[25] = trigger;
118
- $[26] = value;
119
- $[27] = t8;
116
+ $[22] = indicator;
117
+ $[23] = onChange;
118
+ $[24] = progress;
119
+ $[25] = slop;
120
+ $[26] = trigger;
121
+ $[27] = value;
122
+ $[28] = t8;
120
123
  } else {
121
- t8 = $[27];
124
+ t8 = $[28];
122
125
  }
123
126
  t7 = options.map(t8);
124
- $[13] = indicator;
125
- $[14] = onChange;
126
- $[15] = options;
127
- $[16] = progress;
128
- $[17] = slop;
129
- $[18] = trigger;
130
- $[19] = value;
131
- $[20] = t7;
127
+ $[14] = indicator;
128
+ $[15] = onChange;
129
+ $[16] = options;
130
+ $[17] = progress;
131
+ $[18] = slop;
132
+ $[19] = trigger;
133
+ $[20] = value;
134
+ $[21] = t7;
132
135
  } else {
133
- t7 = $[20];
136
+ t7 = $[21];
134
137
  }
135
138
  let t8;
136
- if ($[28] !== scroll || $[29] !== t2 || $[30] !== t4 || $[31] !== t5 || $[32] !== t6 || $[33] !== t7) {
139
+ if ($[29] !== scroll || $[30] !== t2 || $[31] !== t4 || $[32] !== t5 || $[33] !== t6 || $[34] !== t7) {
137
140
  t8 = <Animated.ScrollView ref={scroll} horizontal={true} accessibilityRole="tablist" showsHorizontalScrollIndicator={false} fadingEdgeLength={16} onLayout={t2} style={t4} contentContainerStyle={t5}>{t6}{t7}</Animated.ScrollView>;
138
- $[28] = scroll;
139
- $[29] = t2;
140
- $[30] = t4;
141
- $[31] = t5;
142
- $[32] = t6;
143
- $[33] = t7;
144
- $[34] = t8;
141
+ $[29] = scroll;
142
+ $[30] = t2;
143
+ $[31] = t4;
144
+ $[32] = t5;
145
+ $[33] = t6;
146
+ $[34] = t7;
147
+ $[35] = t8;
145
148
  } else {
146
- t8 = $[34];
149
+ t8 = $[35];
147
150
  }
148
151
  return t8;
149
152
  }
@@ -17,19 +17,6 @@ export function searchChange(onChange, onClear) {
17
17
  if (onClear && next.length === 0) onClear();
18
18
  };
19
19
  }
20
-
21
- /**
22
- * Search field, the web `SearchInput`: a 16 search icon at the start and,
23
- * while there is text, a clear button (a 14 cross labelled "Clear search") at
24
- * the end. Controlled with `value` and `onChange(text)`, as on the web. The
25
- * field has the `Input` look (`fieldStyle`) at the web sizes from
26
- * `searchInputSize`. The clear button is painted at the web 24 and reaches 44
27
- * with its hit slop (`touchSlop`). It clears at once and leaves focus where it
28
- * was, as the default web clear does after its dissolve. It is hidden when the
29
- * field is not editable. Inside a `ScrollView`, set
30
- * `keyboardShouldPersistTaps="handled"` so the first tap clears while the
31
- * keyboard is up. The web `shortcut` hint and `toolbar` variant are not ported.
32
- */
33
20
  const SearchInput = React.forwardRef((t0, ref) => {
34
21
  const $ = _c(108);
35
22
  let className;
@@ -4,7 +4,6 @@ import { cn } from "./cn";
4
4
  import { sizeStyle, textStyle, typeStyle } from "./controlStyles";
5
5
  import { useLargerText } from "./theme";
6
6
  import { useScheme } from "./useScheme";
7
- /** Letter spacing in em: slightly open, or the web `tracking-widest` (0.1em) in capitals. */
8
7
  const TRACKING = {
9
8
  regular: 0.02,
10
9
  uppercase: 0.1