@vvedantb/native-ui 0.37.2 → 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 (385) hide show
  1. package/README.md +8 -7
  2. package/dist/Avatar.jsx +22 -19
  3. package/dist/BottomSheetContainer.jsx +0 -6
  4. package/dist/BulkActionBar.jsx +0 -24
  5. package/dist/Button.jsx +92 -116
  6. package/dist/Card.jsx +56 -50
  7. package/dist/ColorSwatches.jsx +0 -6
  8. package/dist/Dialog.jsx +0 -12
  9. package/dist/DropdownMenu.jsx +0 -10
  10. package/dist/EmptyState.jsx +0 -3
  11. package/dist/ExpoWebRoot.jsx +0 -6
  12. package/dist/Field.jsx +0 -17
  13. package/dist/FloatingSurface.jsx +95 -80
  14. package/dist/FloatingTabBar.jsx +0 -23
  15. package/dist/IconButton.jsx +0 -1
  16. package/dist/LoadingState.jsx +0 -6
  17. package/dist/PasswordInput.jsx +0 -15
  18. package/dist/PillTabs.jsx +39 -36
  19. package/dist/SearchInput.jsx +0 -13
  20. package/dist/SectionLabel.jsx +0 -1
  21. package/dist/SharedTransition.jsx +0 -3
  22. package/dist/Skeleton.jsx +0 -2
  23. package/dist/Spinner.jsx +0 -2
  24. package/dist/StatusDot.jsx +0 -5
  25. package/dist/Switch.jsx +32 -22
  26. package/dist/Tabs.jsx +27 -26
  27. package/dist/Textarea.jsx +0 -1
  28. package/dist/ThemeToggle.jsx +0 -1
  29. package/dist/Toast.jsx +80 -91
  30. package/dist/UpdateChecker.jsx +0 -1
  31. package/dist/ai/activity-question.jsx +0 -6
  32. package/dist/ai/activity-step-label.js +0 -6
  33. package/dist/ai/activity-step-types.js +0 -4
  34. package/dist/ai/activity-tasks-utils.js +0 -17
  35. package/dist/ai/activity-timeline.js +0 -8
  36. package/dist/ai/attachments.jsx +0 -2
  37. package/dist/ai/chain-of-thought.jsx +0 -3
  38. package/dist/ai/chat-text.js +0 -1
  39. package/dist/ai/chat-thread.jsx +0 -1
  40. package/dist/ai/choice-question.jsx +0 -10
  41. package/dist/ai/code-block.jsx +0 -31
  42. package/dist/ai/collapsible.jsx +0 -14
  43. package/dist/ai/conversation-context.js +0 -3
  44. package/dist/ai/conversation.jsx +2 -48
  45. package/dist/ai/file-chip.jsx +0 -2
  46. package/dist/ai/icon-button.jsx +0 -8
  47. package/dist/ai/index.js +0 -5
  48. package/dist/ai/message-context-menu.jsx +0 -7
  49. package/dist/ai/message.jsx +0 -21
  50. package/dist/ai/prompt-input-menu.jsx +0 -3
  51. package/dist/ai/prompt-input.jsx +0 -27
  52. package/dist/ai/response-text.jsx +0 -6
  53. package/dist/ai/sources.jsx +0 -1
  54. package/dist/ai/suggestion.jsx +0 -1
  55. package/dist/ai/trace.jsx +0 -11
  56. package/dist/ai/unified-diff.jsx +0 -4
  57. package/dist/app-root/AuthGroupGate.jsx +65 -0
  58. package/dist/app-root/SsoCallbackScreen.jsx +97 -0
  59. package/dist/app-root/fonts.js +88 -0
  60. package/dist/app-root/index.js +3 -0
  61. package/dist/auth/AuthScreen.jsx +250 -77
  62. package/dist/auth/GoogleSignInButton.jsx +0 -3
  63. package/dist/auth/SecondFactorScreen.jsx +18 -14
  64. package/dist/auth/SignInScreen.jsx +40 -34
  65. package/dist/auth/authErrors.js +0 -4
  66. package/dist/auth/clerkCore3.js +0 -7
  67. package/dist/auth/index.js +0 -4
  68. package/dist/auth/totp.js +0 -2
  69. package/dist/brand/GoogleMark.jsx +0 -1
  70. package/dist/brand/ProviderIcon.jsx +0 -2
  71. package/dist/brand/index.js +0 -3
  72. package/dist/brand/svg.js +0 -6
  73. package/dist/configureTheme.js +0 -9
  74. package/dist/controlStyles.js +0 -14
  75. package/dist/crash/LastCrashDialog.jsx +56 -0
  76. package/dist/crash/lastCrash.js +192 -0
  77. package/dist/entries/ai.js +0 -3
  78. package/dist/entries/ambient.js +0 -2
  79. package/dist/entries/app-root.js +1 -0
  80. package/dist/entries/auth.js +0 -4
  81. package/dist/entries/bottom-sheet.js +0 -2
  82. package/dist/entries/brand.js +0 -1
  83. package/dist/entries/button.js +0 -1
  84. package/dist/entries/crash.js +2 -0
  85. package/dist/entries/date-time.js +0 -2
  86. package/dist/entries/expo-router.js +0 -3
  87. package/dist/entries/expo-web-root.js +0 -2
  88. package/dist/entries/floating.js +0 -2
  89. package/dist/entries/generative-ui.js +0 -4
  90. package/dist/entries/gesture-handler.js +0 -3
  91. package/dist/entries/keyboard-controller.js +0 -3
  92. package/dist/entries/layout.js +0 -2
  93. package/dist/entries/markdown.js +0 -3
  94. package/dist/entries/marketing.js +0 -1
  95. package/dist/entries/page-title.js +0 -5
  96. package/dist/entries/password-input.js +0 -2
  97. package/dist/entries/paste-input.js +0 -3
  98. package/dist/entries/primitives.js +0 -6
  99. package/dist/entries/search-input.js +0 -2
  100. package/dist/entries/tab-bar.js +0 -2
  101. package/dist/entries/theme.js +4 -2
  102. package/dist/entries/toast.js +0 -3
  103. package/dist/entries/video.js +0 -2
  104. package/dist/entries/webview.js +0 -2
  105. package/dist/examples/AiChatGallery.jsx +0 -11
  106. package/dist/examples/ParityGallery.jsx +0 -12
  107. package/dist/floating.js +0 -8
  108. package/dist/generative-ui/GenerativeUiPanel.jsx +0 -2
  109. package/dist/generative-ui/components.jsx +0 -8
  110. package/dist/glass.js +55 -0
  111. package/dist/glassBlur.jsx +0 -12
  112. package/dist/highlight.js +0 -26
  113. package/dist/index.js +4 -2
  114. package/dist/loadingGrid.js +0 -13
  115. package/dist/markdown/Markdown.jsx +0 -59
  116. package/dist/markdown/MarkdownTable.jsx +0 -18
  117. package/dist/markdown/tableText.js +0 -5
  118. package/dist/marketing/UpgradeToProCard.jsx +0 -5
  119. package/dist/marketing/pricing.js +0 -3
  120. package/dist/media/ImageGallery.jsx +0 -16
  121. package/dist/media/imageZoom.js +0 -4
  122. package/dist/media/zoom-image-gesture.jsx +0 -8
  123. package/dist/media/zoomImage.js +0 -3
  124. package/dist/motion.js +0 -3
  125. package/dist/neutralTheme.js +158 -0
  126. package/dist/pagerSwipe.js +0 -16
  127. package/dist/palette.js +0 -10
  128. package/dist/primitives/button.jsx +0 -5
  129. package/dist/primitives/icon.jsx +0 -4
  130. package/dist/primitives/keyboard-controller.jsx +0 -27
  131. package/dist/primitives/native-only-animated-view.jsx +0 -5
  132. package/dist/primitives/overlay.jsx +0 -2
  133. package/dist/primitives/pager-gesture.jsx +3 -29
  134. package/dist/primitives/paste-input.jsx +0 -5
  135. package/dist/primitives/select.jsx +0 -10
  136. package/dist/primitives/sheet-drag.jsx +0 -3
  137. package/dist/primitives/sheet-gesture.jsx +0 -8
  138. package/dist/primitives/swipe-row-gesture.jsx +3 -45
  139. package/dist/primitives/text.jsx +0 -5
  140. package/dist/primitives/toast-drag-gesture.jsx +4 -24
  141. package/dist/primitives/web-click-guard.js +0 -3
  142. package/dist/primitives/window-layer.jsx +0 -14
  143. package/dist/push.js +0 -6
  144. package/dist/relativeTime.js +0 -13
  145. package/dist/settings/MoreFromProjectV.jsx +0 -5
  146. package/dist/settings/ThemeModePicker.jsx +2 -9
  147. package/dist/settings/projectVMobileApps.js +1 -6
  148. package/dist/sheetDrag.js +0 -10
  149. package/dist/swipeRow.js +0 -15
  150. package/dist/tabBarRoutes.js +0 -4
  151. package/dist/tabIndicator.js +0 -4
  152. package/dist/tailwind-preset.cjs +0 -54
  153. package/dist/tailwind-preset.d.cts +0 -8
  154. package/dist/theme.jsx +29 -21
  155. package/dist/themeModeStore.js +62 -0
  156. package/dist/themeModes.js +9 -0
  157. package/dist/toastChrome.js +0 -6
  158. package/dist/toastDrag.js +0 -14
  159. package/dist/toastStore.js +0 -4
  160. package/dist/updateCheck.js +0 -7
  161. package/dist/video/InlineVideo.jsx +0 -2
  162. package/dist/webview/htmlView.js +0 -5
  163. package/package.json +47 -19
  164. package/src/ArtifactList.tsx +0 -2
  165. package/src/Avatar.tsx +3 -3
  166. package/src/Badge.tsx +0 -1
  167. package/src/BottomSheetContainer.tsx +0 -11
  168. package/src/BulkActionBar.tsx +0 -66
  169. package/src/Button.tsx +4 -40
  170. package/src/CaptureButton.tsx +0 -1
  171. package/src/Card.tsx +3 -15
  172. package/src/Checkbox.tsx +0 -2
  173. package/src/ColorSwatches.tsx +0 -9
  174. package/src/ConfirmDialog.tsx +0 -7
  175. package/src/DateTimeField.tsx +0 -5
  176. package/src/Dialog.tsx +0 -27
  177. package/src/DividedList.tsx +0 -1
  178. package/src/DropdownMenu.tsx +0 -51
  179. package/src/EmptyState.tsx +0 -5
  180. package/src/ExpoWebRoot.tsx +0 -10
  181. package/src/Field.tsx +0 -14
  182. package/src/FloatingFAB.tsx +0 -3
  183. package/src/FloatingSurface.tsx +11 -8
  184. package/src/FloatingTabBar.tsx +0 -25
  185. package/src/IconButton.tsx +0 -5
  186. package/src/Input.tsx +0 -1
  187. package/src/Label.tsx +0 -1
  188. package/src/LabeledSwitchRow.tsx +0 -2
  189. package/src/ListRow.tsx +0 -12
  190. package/src/LoadingState.tsx +0 -12
  191. package/src/MenuSheet.tsx +0 -2
  192. package/src/PageIndicator.tsx +0 -2
  193. package/src/PageTitle.tsx +0 -15
  194. package/src/Pager.tsx +0 -9
  195. package/src/PasswordInput.tsx +0 -24
  196. package/src/PillTabs.tsx +3 -11
  197. package/src/PinnedBotTile.tsx +0 -6
  198. package/src/Progress.tsx +0 -3
  199. package/src/ReactionRow.tsx +0 -8
  200. package/src/ScreenContainer.tsx +0 -4
  201. package/src/SearchInput.tsx +0 -25
  202. package/src/SectionLabel.tsx +0 -2
  203. package/src/Select.tsx +0 -6
  204. package/src/Separator.tsx +0 -2
  205. package/src/SharedTransition.tsx +0 -7
  206. package/src/Sheet.tsx +0 -3
  207. package/src/SheetRow.tsx +0 -12
  208. package/src/Skeleton.tsx +0 -10
  209. package/src/Spinner.tsx +0 -6
  210. package/src/StackPageHeader.tsx +0 -16
  211. package/src/StatGrid.tsx +0 -1
  212. package/src/StatusDot.tsx +0 -6
  213. package/src/SurfaceRow.tsx +0 -12
  214. package/src/SwipeableRow.tsx +0 -4
  215. package/src/Switch.tsx +3 -4
  216. package/src/Tabs.tsx +3 -27
  217. package/src/Textarea.tsx +0 -2
  218. package/src/ThemeToggle.tsx +0 -1
  219. package/src/Toast.tsx +3 -19
  220. package/src/UpdateChecker.tsx +0 -46
  221. package/src/ai/activity-question.tsx +0 -8
  222. package/src/ai/activity-step-detail.tsx +0 -5
  223. package/src/ai/activity-step-label.ts +0 -5
  224. package/src/ai/activity-step-types.ts +0 -24
  225. package/src/ai/activity-step.tsx +0 -4
  226. package/src/ai/activity-tasks-utils.ts +0 -13
  227. package/src/ai/activity-timeline.ts +0 -6
  228. package/src/ai/attachments.tsx +0 -13
  229. package/src/ai/chain-of-thought.tsx +0 -5
  230. package/src/ai/chat-jump-rail.tsx +0 -2
  231. package/src/ai/chat-text.ts +0 -1
  232. package/src/ai/chat-thread.tsx +0 -9
  233. package/src/ai/choice-question.tsx +0 -36
  234. package/src/ai/code-block.tsx +0 -52
  235. package/src/ai/collapsible.tsx +0 -12
  236. package/src/ai/conversation-context.ts +0 -14
  237. package/src/ai/conversation.tsx +0 -58
  238. package/src/ai/file-chip.tsx +0 -1
  239. package/src/ai/icon-button.tsx +0 -17
  240. package/src/ai/index.ts +0 -5
  241. package/src/ai/message-action-sheet.tsx +0 -8
  242. package/src/ai/message-context-menu.tsx +0 -22
  243. package/src/ai/message-quote.tsx +0 -4
  244. package/src/ai/message.tsx +0 -66
  245. package/src/ai/prompt-input-menu.tsx +0 -19
  246. package/src/ai/prompt-input.tsx +0 -97
  247. package/src/ai/reasoning.tsx +0 -6
  248. package/src/ai/reply-quote-chip.tsx +0 -5
  249. package/src/ai/response-text.tsx +0 -8
  250. package/src/ai/shimmer.tsx +0 -2
  251. package/src/ai/sources.tsx +0 -3
  252. package/src/ai/subagent-cards.tsx +0 -13
  253. package/src/ai/suggestion.tsx +0 -4
  254. package/src/ai/tool-approval-card.tsx +0 -14
  255. package/src/ai/trace.tsx +0 -23
  256. package/src/ai/unified-diff.tsx +0 -16
  257. package/src/ai/use-streaming-disclosure.ts +0 -4
  258. package/src/app-root/AuthGroupGate.tsx +38 -0
  259. package/src/app-root/SsoCallbackScreen.tsx +52 -0
  260. package/src/app-root/fonts.ts +53 -0
  261. package/src/app-root/index.ts +6 -0
  262. package/src/auth/AccountScreens.tsx +0 -16
  263. package/src/auth/AuthProviders.tsx +0 -13
  264. package/src/auth/AuthScreen.tsx +95 -6
  265. package/src/auth/GoogleSignInButton.tsx +0 -12
  266. package/src/auth/SecondFactorScreen.tsx +17 -15
  267. package/src/auth/SignInScreen.tsx +103 -105
  268. package/src/auth/authErrors.ts +0 -6
  269. package/src/auth/clerkCore3.ts +0 -6
  270. package/src/auth/index.ts +0 -4
  271. package/src/auth/totp.ts +0 -13
  272. package/src/brand/AppIcons.tsx +0 -6
  273. package/src/brand/AppMark.tsx +0 -5
  274. package/src/brand/AppWordmark.tsx +0 -7
  275. package/src/brand/GoogleMark.tsx +0 -4
  276. package/src/brand/ProviderIcon.tsx +0 -6
  277. package/src/brand/familyApps.ts +0 -2
  278. package/src/brand/index.ts +0 -3
  279. package/src/brand/svg.ts +0 -9
  280. package/src/configureTheme.ts +0 -10
  281. package/src/controlStyles.ts +0 -12
  282. package/src/crash/LastCrashDialog.tsx +36 -0
  283. package/src/crash/lastCrash.ts +218 -0
  284. package/src/entries/ai.ts +0 -3
  285. package/src/entries/ambient.ts +0 -2
  286. package/src/entries/app-root.ts +1 -0
  287. package/src/entries/auth.ts +0 -4
  288. package/src/entries/bottom-sheet.ts +0 -2
  289. package/src/entries/brand.ts +0 -1
  290. package/src/entries/button.ts +0 -1
  291. package/src/entries/crash.ts +13 -0
  292. package/src/entries/date-time.ts +0 -2
  293. package/src/entries/expo-router.ts +0 -3
  294. package/src/entries/expo-web-root.ts +0 -2
  295. package/src/entries/floating.ts +0 -2
  296. package/src/entries/generative-ui.ts +0 -4
  297. package/src/entries/gesture-handler.ts +0 -3
  298. package/src/entries/keyboard-controller.ts +0 -3
  299. package/src/entries/layout.ts +0 -2
  300. package/src/entries/markdown.ts +0 -3
  301. package/src/entries/marketing.ts +0 -1
  302. package/src/entries/page-title.ts +0 -5
  303. package/src/entries/password-input.ts +0 -2
  304. package/src/entries/paste-input.ts +0 -3
  305. package/src/entries/primitives.ts +0 -6
  306. package/src/entries/search-input.ts +0 -2
  307. package/src/entries/tab-bar.ts +0 -2
  308. package/src/entries/theme.ts +8 -2
  309. package/src/entries/toast.ts +0 -3
  310. package/src/entries/video.ts +0 -2
  311. package/src/entries/webview.ts +0 -2
  312. package/src/examples/AiChatGallery.tsx +0 -11
  313. package/src/examples/ParityGallery.tsx +0 -25
  314. package/src/floating.ts +0 -6
  315. package/src/generative-ui/GenerativeUiPanel.tsx +0 -15
  316. package/src/generative-ui/components.tsx +0 -9
  317. package/src/generative-ui/context.ts +0 -2
  318. package/src/glass.ts +31 -0
  319. package/src/glassBlur.tsx +0 -15
  320. package/src/highlight.ts +1 -21
  321. package/src/index.ts +7 -2
  322. package/src/loadingGrid.ts +0 -12
  323. package/src/markdown/Markdown.tsx +0 -71
  324. package/src/markdown/MarkdownTable.tsx +0 -23
  325. package/src/markdown/tableText.ts +0 -3
  326. package/src/marketing/PricingModal.tsx +0 -13
  327. package/src/marketing/UpgradeToProCard.tsx +0 -14
  328. package/src/marketing/pricing.ts +0 -12
  329. package/src/media/ImageGallery.tsx +0 -18
  330. package/src/media/MediaCard.tsx +0 -8
  331. package/src/media/imageZoom.ts +0 -4
  332. package/src/media/zoom-image-gesture.tsx +0 -9
  333. package/src/media/zoomImage.ts +0 -5
  334. package/src/motion.ts +0 -3
  335. package/src/neutralTheme.ts +127 -0
  336. package/src/pagerSwipe.ts +0 -13
  337. package/src/palette.ts +0 -10
  338. package/src/pressScale.ts +0 -7
  339. package/src/primitives/button.tsx +0 -4
  340. package/src/primitives/card.tsx +0 -1
  341. package/src/primitives/icon.tsx +0 -2
  342. package/src/primitives/input.tsx +0 -4
  343. package/src/primitives/keyboard-controller.tsx +0 -25
  344. package/src/primitives/keyboard-parts.tsx +0 -27
  345. package/src/primitives/native-only-animated-view.tsx +0 -5
  346. package/src/primitives/overlay.tsx +0 -25
  347. package/src/primitives/pager-gesture.tsx +0 -20
  348. package/src/primitives/paste-input.tsx +0 -4
  349. package/src/primitives/paste-parts.tsx +0 -1
  350. package/src/primitives/select.tsx +0 -18
  351. package/src/primitives/sheet-drag.tsx +0 -19
  352. package/src/primitives/sheet-gesture.tsx +0 -22
  353. package/src/primitives/swipe-row-gesture.tsx +0 -33
  354. package/src/primitives/switch.tsx +0 -4
  355. package/src/primitives/text.tsx +0 -4
  356. package/src/primitives/toast-drag-gesture.tsx +0 -13
  357. package/src/primitives/web-click-guard.ts +0 -2
  358. package/src/primitives/window-layer.tsx +0 -18
  359. package/src/push.ts +0 -15
  360. package/src/relativeTime.ts +0 -21
  361. package/src/router/RouterStackPageHeader.tsx +0 -1
  362. package/src/settings/MoreFromProjectV.tsx +0 -8
  363. package/src/settings/SettingsEmptyState.tsx +0 -2
  364. package/src/settings/SettingsSection.tsx +0 -3
  365. package/src/settings/SettingsToggleRow.tsx +0 -4
  366. package/src/settings/ThemeModePicker.tsx +2 -16
  367. package/src/settings/projectVMobileApps.ts +0 -8
  368. package/src/sheetDrag.ts +0 -9
  369. package/src/swipeRow.ts +0 -23
  370. package/src/tabBarRoutes.ts +0 -13
  371. package/src/tabIndicator.ts +0 -5
  372. package/src/tailwind-preset.cjs +0 -54
  373. package/src/tailwind-preset.d.cts +0 -8
  374. package/src/theme.tsx +11 -2
  375. package/src/themeModeStore.ts +85 -0
  376. package/src/themeModes.ts +10 -0
  377. package/src/toastChrome.ts +0 -6
  378. package/src/toastDrag.ts +0 -13
  379. package/src/toastStore.ts +0 -7
  380. package/src/updateCheck.ts +0 -15
  381. package/src/video/InlineVideo.tsx +0 -5
  382. package/src/webview/HtmlView.tsx +0 -23
  383. package/src/webview/HtmlView.web.tsx +0 -1
  384. package/src/webview/htmlView.ts +0 -5
  385. package/types/prism-react-renderer.d.ts +22 -0
@@ -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
@@ -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
  /**