@terreno/ui 57.19.2 → 57.21.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 (379) hide show
  1. package/.ai/guidelines/core.md +1 -1
  2. package/CHANGELOG.md +443 -0
  3. package/dist/Accordion.d.ts.map +1 -1
  4. package/dist/Accordion.js +3 -3
  5. package/dist/Accordion.js.map +1 -1
  6. package/dist/Avatar.d.ts.map +1 -1
  7. package/dist/Avatar.js +3 -1
  8. package/dist/Avatar.js.map +1 -1
  9. package/dist/Box.d.ts.map +1 -1
  10. package/dist/Box.js +38 -2
  11. package/dist/Box.js.map +1 -1
  12. package/dist/Card.js +2 -2
  13. package/dist/Card.js.map +1 -1
  14. package/dist/Common.d.ts +175 -34
  15. package/dist/Common.d.ts.map +1 -1
  16. package/dist/Common.js.map +1 -1
  17. package/dist/ConsentFormScreen.d.ts +1 -1
  18. package/dist/ConsentFormScreen.d.ts.map +1 -1
  19. package/dist/ConsentFormScreen.js +13 -4
  20. package/dist/ConsentFormScreen.js.map +1 -1
  21. package/dist/DateTimeField.d.ts.map +1 -1
  22. package/dist/DateTimeField.js +11 -9
  23. package/dist/DateTimeField.js.map +1 -1
  24. package/dist/Field.d.ts.map +1 -1
  25. package/dist/Field.js +2 -0
  26. package/dist/Field.js.map +1 -1
  27. package/dist/FormContainer.d.ts +68 -0
  28. package/dist/FormContainer.d.ts.map +1 -0
  29. package/dist/FormContainer.js +79 -0
  30. package/dist/FormContainer.js.map +1 -0
  31. package/dist/GPTChat.d.ts.map +1 -1
  32. package/dist/GPTChat.js +2 -1
  33. package/dist/GPTChat.js.map +1 -1
  34. package/dist/Heading.d.ts +1 -1
  35. package/dist/Heading.d.ts.map +1 -1
  36. package/dist/Heading.js +5 -2
  37. package/dist/Heading.js.map +1 -1
  38. package/dist/HeightField.js +8 -8
  39. package/dist/HeightField.js.map +1 -1
  40. package/dist/Icon.d.ts +4 -0
  41. package/dist/Icon.d.ts.map +1 -1
  42. package/dist/Icon.js +43 -2
  43. package/dist/Icon.js.map +1 -1
  44. package/dist/LabeledCheckBox.d.ts +22 -0
  45. package/dist/LabeledCheckBox.d.ts.map +1 -0
  46. package/dist/LabeledCheckBox.js +30 -0
  47. package/dist/LabeledCheckBox.js.map +1 -0
  48. package/dist/ListDetailLayout.d.ts +36 -0
  49. package/dist/ListDetailLayout.d.ts.map +1 -0
  50. package/dist/ListDetailLayout.js +153 -0
  51. package/dist/ListDetailLayout.js.map +1 -0
  52. package/dist/MarkdownEditor.d.ts.map +1 -1
  53. package/dist/MarkdownEditor.js +2 -1
  54. package/dist/MarkdownEditor.js.map +1 -1
  55. package/dist/MediaQuery.d.ts +1 -1
  56. package/dist/MediaQuery.d.ts.map +1 -1
  57. package/dist/MediaQuery.js +1 -1
  58. package/dist/MediaQuery.js.map +1 -1
  59. package/dist/OtpField.d.ts +60 -0
  60. package/dist/OtpField.d.ts.map +1 -0
  61. package/dist/OtpField.js +154 -0
  62. package/dist/OtpField.js.map +1 -0
  63. package/dist/PickerSelect.js +9 -9
  64. package/dist/PickerSelect.js.map +1 -1
  65. package/dist/ProvisionalConsentSigner.d.ts +21 -0
  66. package/dist/ProvisionalConsentSigner.d.ts.map +1 -0
  67. package/dist/ProvisionalConsentSigner.js +199 -0
  68. package/dist/ProvisionalConsentSigner.js.map +1 -0
  69. package/dist/ResponsiveBreakpoint.d.ts +5 -0
  70. package/dist/ResponsiveBreakpoint.d.ts.map +1 -1
  71. package/dist/ResponsiveBreakpoint.js +7 -0
  72. package/dist/ResponsiveBreakpoint.js.map +1 -1
  73. package/dist/SocialLoginButton.d.ts +10 -0
  74. package/dist/SocialLoginButton.d.ts.map +1 -1
  75. package/dist/SocialLoginButton.js +26 -8
  76. package/dist/SocialLoginButton.js.map +1 -1
  77. package/dist/SplitPage.d.ts +11 -0
  78. package/dist/SplitPage.d.ts.map +1 -1
  79. package/dist/SplitPage.js +11 -5
  80. package/dist/SplitPage.js.map +1 -1
  81. package/dist/SplitPage.native.d.ts.map +1 -1
  82. package/dist/SplitPage.native.js +3 -1
  83. package/dist/SplitPage.native.js.map +1 -1
  84. package/dist/SyncStatusBanner.d.ts +7 -1
  85. package/dist/SyncStatusBanner.d.ts.map +1 -1
  86. package/dist/SyncStatusBanner.js +20 -4
  87. package/dist/SyncStatusBanner.js.map +1 -1
  88. package/dist/TapToEdit.d.ts +1 -1
  89. package/dist/TapToEdit.d.ts.map +1 -1
  90. package/dist/TapToEdit.js.map +1 -1
  91. package/dist/TextField.d.ts.map +1 -1
  92. package/dist/TextField.js +48 -14
  93. package/dist/TextField.js.map +1 -1
  94. package/dist/Theme.d.ts.map +1 -1
  95. package/dist/Theme.js +16 -0
  96. package/dist/Theme.js.map +1 -1
  97. package/dist/fieldElements/FieldError.d.ts.map +1 -1
  98. package/dist/fieldElements/FieldError.js +1 -1
  99. package/dist/fieldElements/FieldError.js.map +1 -1
  100. package/dist/index.d.ts +19 -3
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +14 -1
  103. package/dist/index.js.map +1 -1
  104. package/dist/lazyBoundaries/heavyOptionalExports.d.ts +3 -0
  105. package/dist/lazyBoundaries/heavyOptionalExports.d.ts.map +1 -1
  106. package/dist/lazyBoundaries/heavyOptionalExports.js +2 -0
  107. package/dist/lazyBoundaries/heavyOptionalExports.js.map +1 -1
  108. package/dist/login/LastUsedBadge.d.ts +14 -0
  109. package/dist/login/LastUsedBadge.d.ts.map +1 -0
  110. package/dist/login/LastUsedBadge.js +23 -0
  111. package/dist/login/LastUsedBadge.js.map +1 -0
  112. package/dist/login/LoginAccountCard.d.ts +38 -0
  113. package/dist/login/LoginAccountCard.d.ts.map +1 -0
  114. package/dist/login/LoginAccountCard.js +72 -0
  115. package/dist/login/LoginAccountCard.js.map +1 -0
  116. package/dist/login/LoginAccountList.d.ts +33 -0
  117. package/dist/login/LoginAccountList.d.ts.map +1 -0
  118. package/dist/login/LoginAccountList.js +30 -0
  119. package/dist/login/LoginAccountList.js.map +1 -0
  120. package/dist/login/LoginScreen.d.ts +4 -4
  121. package/dist/login/LoginScreen.d.ts.map +1 -1
  122. package/dist/login/LoginScreen.js +294 -13
  123. package/dist/login/LoginScreen.js.map +1 -1
  124. package/dist/login/OutlinePill.d.ts +28 -0
  125. package/dist/login/OutlinePill.d.ts.map +1 -0
  126. package/dist/login/OutlinePill.js +48 -0
  127. package/dist/login/OutlinePill.js.map +1 -0
  128. package/dist/login/TwoFactorChallengeScreen.d.ts +26 -0
  129. package/dist/login/TwoFactorChallengeScreen.d.ts.map +1 -0
  130. package/dist/login/TwoFactorChallengeScreen.js +139 -0
  131. package/dist/login/TwoFactorChallengeScreen.js.map +1 -0
  132. package/dist/login/loginMethods.d.ts +27 -0
  133. package/dist/login/loginMethods.d.ts.map +1 -0
  134. package/dist/login/loginMethods.js +37 -0
  135. package/dist/login/loginMethods.js.map +1 -0
  136. package/dist/login/loginTypes.d.ts +202 -5
  137. package/dist/login/loginTypes.d.ts.map +1 -1
  138. package/dist/pdfHtmlTemplate.d.ts +17 -0
  139. package/dist/pdfHtmlTemplate.d.ts.map +1 -1
  140. package/dist/pdfHtmlTemplate.js +78 -0
  141. package/dist/pdfHtmlTemplate.js.map +1 -1
  142. package/dist/security/AccountSecurityScreen.d.ts +10 -0
  143. package/dist/security/AccountSecurityScreen.d.ts.map +1 -0
  144. package/dist/security/AccountSecurityScreen.js +50 -0
  145. package/dist/security/AccountSecurityScreen.js.map +1 -0
  146. package/dist/security/LinkedAccountsCard.d.ts +32 -0
  147. package/dist/security/LinkedAccountsCard.d.ts.map +1 -0
  148. package/dist/security/LinkedAccountsCard.js +145 -0
  149. package/dist/security/LinkedAccountsCard.js.map +1 -0
  150. package/dist/security/PasskeysCard.d.ts +39 -0
  151. package/dist/security/PasskeysCard.d.ts.map +1 -0
  152. package/dist/security/PasskeysCard.js +168 -0
  153. package/dist/security/PasskeysCard.js.map +1 -0
  154. package/dist/security/PasswordCard.d.ts +32 -0
  155. package/dist/security/PasswordCard.d.ts.map +1 -0
  156. package/dist/security/PasswordCard.js +198 -0
  157. package/dist/security/PasswordCard.js.map +1 -0
  158. package/dist/security/SessionsCard.d.ts +39 -0
  159. package/dist/security/SessionsCard.d.ts.map +1 -0
  160. package/dist/security/SessionsCard.js +168 -0
  161. package/dist/security/SessionsCard.js.map +1 -0
  162. package/dist/security/TwoFactorSettingsCard.d.ts +55 -0
  163. package/dist/security/TwoFactorSettingsCard.d.ts.map +1 -0
  164. package/dist/security/TwoFactorSettingsCard.js +458 -0
  165. package/dist/security/TwoFactorSettingsCard.js.map +1 -0
  166. package/dist/security/securityMethods.d.ts +40 -0
  167. package/dist/security/securityMethods.d.ts.map +1 -0
  168. package/dist/security/securityMethods.js +66 -0
  169. package/dist/security/securityMethods.js.map +1 -0
  170. package/dist/security/securityTypes.d.ts +467 -0
  171. package/dist/security/securityTypes.d.ts.map +1 -0
  172. package/dist/security/securityTypes.js +2 -0
  173. package/dist/security/securityTypes.js.map +1 -0
  174. package/dist/security/userAgent.d.ts +26 -0
  175. package/dist/security/userAgent.d.ts.map +1 -0
  176. package/dist/security/userAgent.js +80 -0
  177. package/dist/security/userAgent.js.map +1 -0
  178. package/dist/signUp/OAuthButtons.d.ts +28 -5
  179. package/dist/signUp/OAuthButtons.d.ts.map +1 -1
  180. package/dist/signUp/OAuthButtons.js +44 -5
  181. package/dist/signUp/OAuthButtons.js.map +1 -1
  182. package/dist/signUp/SignUpScreen.d.ts.map +1 -1
  183. package/dist/signUp/SignUpScreen.js +50 -5
  184. package/dist/signUp/SignUpScreen.js.map +1 -1
  185. package/dist/signUp/signUpTypes.d.ts +21 -1
  186. package/dist/signUp/signUpTypes.d.ts.map +1 -1
  187. package/dist/useConsentForms.d.ts +9 -0
  188. package/dist/useConsentForms.d.ts.map +1 -1
  189. package/dist/useConsentForms.js +18 -0
  190. package/dist/useConsentForms.js.map +1 -1
  191. package/dist/useProvisionalConsent.d.ts +124 -0
  192. package/dist/useProvisionalConsent.d.ts.map +1 -0
  193. package/dist/useProvisionalConsent.js +79 -0
  194. package/dist/useProvisionalConsent.js.map +1 -0
  195. package/package.json +5 -2
  196. package/src/Accordion.test.tsx +5 -0
  197. package/src/Accordion.tsx +3 -8
  198. package/src/ActionSheet.test.tsx +13 -13
  199. package/src/AddressField.test.tsx +9 -3
  200. package/src/AnnouncementNavigator.test.tsx +4 -4
  201. package/src/AreaChart.test.tsx +15 -0
  202. package/src/Avatar.test.tsx +8 -0
  203. package/src/Avatar.tsx +2 -0
  204. package/src/Badge.test.tsx +1 -1
  205. package/src/Banner.test.tsx +0 -1
  206. package/src/BarChart.test.tsx +15 -0
  207. package/src/Box.test.tsx +143 -75
  208. package/src/Box.tsx +44 -2
  209. package/src/Button.test.tsx +11 -6
  210. package/src/Card.test.tsx +2 -2
  211. package/src/Card.tsx +2 -2
  212. package/src/Common.ts +194 -36
  213. package/src/ConflictSheet.test.tsx +5 -5
  214. package/src/ConsentFormScreen.test.tsx +87 -1
  215. package/src/ConsentFormScreen.tsx +28 -4
  216. package/src/ConsentNavigator.test.tsx +1 -2
  217. package/src/CustomSelectField.test.tsx +16 -4
  218. package/src/DataTable.test.tsx +4 -4
  219. package/src/DataTableVirtualizationRegression.test.tsx +1 -0
  220. package/src/DateTimeActionSheet.test.tsx +2 -0
  221. package/src/DateTimeField.test.tsx +3 -12
  222. package/src/DateTimeField.tsx +11 -9
  223. package/src/DismissButton.test.tsx +22 -4
  224. package/src/DonutChart.test.tsx +15 -0
  225. package/src/EmailField.test.tsx +13 -22
  226. package/src/EmojiSelector.test.tsx +2 -2
  227. package/src/ErrorBoundary.test.tsx +5 -3
  228. package/src/Field.test.tsx +20 -44
  229. package/src/Field.tsx +2 -0
  230. package/src/FilePickerButton.test.tsx +35 -0
  231. package/src/FormContainer.test.tsx +242 -0
  232. package/src/FormContainer.tsx +177 -0
  233. package/src/GPTChat.test.tsx +40 -16
  234. package/src/GPTChat.tsx +8 -2
  235. package/src/Heading.test.tsx +15 -1
  236. package/src/Heading.tsx +6 -1
  237. package/src/HeightField.tsx +8 -8
  238. package/src/Icon.test.tsx +54 -3
  239. package/src/Icon.tsx +92 -3
  240. package/src/IconButton.test.tsx +85 -0
  241. package/src/Image.test.tsx +1 -1
  242. package/src/LabeledCheckBox.test.tsx +45 -0
  243. package/src/LabeledCheckBox.tsx +89 -0
  244. package/src/Link.test.tsx +11 -4
  245. package/src/ListDetailLayout.tsx +247 -0
  246. package/src/MarkdownEditor.tsx +2 -1
  247. package/src/MarkdownView.test.tsx +1 -1
  248. package/src/MediaQuery.ts +1 -0
  249. package/src/MobileAddressAutoComplete.test.tsx +2 -1
  250. package/src/Modal.test.tsx +7 -2
  251. package/src/ModalSheet.test.tsx +5 -4
  252. package/src/MultiselectField.test.tsx +17 -3
  253. package/src/NumberField.test.tsx +14 -14
  254. package/src/NumberPickerActionSheet.test.tsx +1 -1
  255. package/src/OpenAPIContext.test.tsx +4 -4
  256. package/src/OpenAPIRenderRegression.test.tsx +1 -1
  257. package/src/OtpField.test.tsx +280 -0
  258. package/src/OtpField.tsx +307 -0
  259. package/src/P0RenderRegression.test.tsx +7 -1
  260. package/src/P1RenderRegression.test.tsx +1 -0
  261. package/src/P2ButtonRenderRegression.test.tsx +1 -0
  262. package/src/Page.test.tsx +1 -1
  263. package/src/PhoneNumberField.test.tsx +14 -38
  264. package/src/PickerSelect.tsx +9 -9
  265. package/src/Popover.test.tsx +2 -2
  266. package/src/ProvisionalConsentSigner.test.tsx +625 -0
  267. package/src/ProvisionalConsentSigner.tsx +423 -0
  268. package/src/RadioField.test.tsx +7 -2
  269. package/src/ResponsiveBreakpoint.test.tsx +7 -0
  270. package/src/ResponsiveBreakpoint.tsx +14 -0
  271. package/src/RootImportRegression.test.tsx +3 -0
  272. package/src/SegmentedControl.test.tsx +21 -12
  273. package/src/SidebarNavigation.test.tsx +18 -6
  274. package/src/Signature.test.tsx +20 -23
  275. package/src/Slider.test.tsx +1 -1
  276. package/src/SocialLoginButton.test.tsx +14 -0
  277. package/src/SocialLoginButton.tsx +51 -7
  278. package/src/SplitPage.native.tsx +3 -1
  279. package/src/SplitPage.test.tsx +15 -5
  280. package/src/SplitPage.tsx +11 -5
  281. package/src/SyncStatusBanner.test.tsx +61 -4
  282. package/src/SyncStatusBanner.tsx +29 -3
  283. package/src/TapToEdit.test.tsx +38 -15
  284. package/src/TapToEdit.tsx +1 -1
  285. package/src/TerrenoFontProvider.test.tsx +1 -1
  286. package/src/Text.test.tsx +4 -4
  287. package/src/TextField.test.tsx +232 -9
  288. package/src/TextField.tsx +70 -12
  289. package/src/Theme.test.tsx +49 -0
  290. package/src/Theme.tsx +16 -0
  291. package/src/Toast.test.tsx +5 -5
  292. package/src/ToastNotifications.test.tsx +73 -70
  293. package/src/ToastNotifications.webModal.test.tsx +2 -2
  294. package/src/Tooltip.test.tsx +3 -3
  295. package/src/UnifiedAddressAutoComplete.test.tsx +1 -1
  296. package/src/UserInactivity.test.tsx +4 -2
  297. package/src/WebAddressAutocomplete.test.tsx +12 -12
  298. package/src/WebDropdownMenu.test.tsx +16 -15
  299. package/src/__snapshots__/AddressField.test.tsx.snap +12 -0
  300. package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +15 -0
  301. package/src/__snapshots__/Avatar.test.tsx.snap +1 -0
  302. package/src/__snapshots__/Card.test.tsx.snap +1 -1
  303. package/src/__snapshots__/CustomSelectField.test.tsx.snap +3 -0
  304. package/src/__snapshots__/DismissButton.test.tsx.snap +3 -3
  305. package/src/__snapshots__/EmailField.test.tsx.snap +6 -0
  306. package/src/__snapshots__/Field.test.tsx.snap +41 -2
  307. package/src/__snapshots__/Heading.test.tsx.snap +1 -1
  308. package/src/__snapshots__/HeightField.test.tsx.snap +2 -0
  309. package/src/__snapshots__/Image.test.tsx.snap +1 -1
  310. package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +3 -0
  311. package/src/__snapshots__/NumberField.test.tsx.snap +3 -0
  312. package/src/__snapshots__/Page.test.tsx.snap +2 -2
  313. package/src/__snapshots__/PhoneNumberField.test.tsx.snap +12 -0
  314. package/src/__snapshots__/Slider.test.tsx.snap +1 -0
  315. package/src/__snapshots__/SocialLoginButton.test.tsx.snap +43 -22
  316. package/src/__snapshots__/TapToEdit.test.tsx.snap +3 -0
  317. package/src/__snapshots__/Text.test.tsx.snap +1 -1
  318. package/src/__snapshots__/TextArea.test.tsx.snap +17 -1
  319. package/src/__snapshots__/TextField.test.tsx.snap +19 -2
  320. package/src/__snapshots__/TypedSignatureField.test.tsx.snap +3 -0
  321. package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +18 -0
  322. package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +12 -0
  323. package/src/asks/AskCard.test.tsx +16 -13
  324. package/src/asks/AskFiles.test.tsx +5 -1
  325. package/src/asks/askFileRefs.test.ts +1 -1
  326. package/src/asks/askSummary.test.ts +2 -2
  327. package/src/benchmarks/importTiming.ts +1 -1
  328. package/src/blocks/BlocksView.test.tsx +20 -11
  329. package/src/bunSetup.ts +14 -2
  330. package/src/dataTableFilters.test.tsx +1 -1
  331. package/src/fieldElements/FieldError.tsx +1 -0
  332. package/src/fieldElements/__snapshots__/FieldError.test.tsx.snap +2 -0
  333. package/src/index.tsx +42 -1
  334. package/src/isolated/ListDetailLayout.isolated.tsx +632 -0
  335. package/src/lazyBoundaries/heavyOptionalExports.tsx +7 -0
  336. package/src/login/LastUsedBadge.tsx +40 -0
  337. package/src/login/LoginAccountCard.tsx +205 -0
  338. package/src/login/LoginAccountList.tsx +115 -0
  339. package/src/login/LoginScreen.test.tsx +839 -3
  340. package/src/login/LoginScreen.tsx +674 -91
  341. package/src/login/OutlinePill.tsx +110 -0
  342. package/src/login/TwoFactorChallengeScreen.test.tsx +376 -0
  343. package/src/login/TwoFactorChallengeScreen.tsx +307 -0
  344. package/src/login/__snapshots__/LoginScreen.test.tsx.snap +1454 -334
  345. package/src/login/loginMethods.test.ts +53 -0
  346. package/src/login/loginMethods.ts +60 -0
  347. package/src/login/loginTypes.ts +208 -5
  348. package/src/pdfHtmlTemplate.test.ts +243 -4
  349. package/src/pdfHtmlTemplate.ts +93 -0
  350. package/src/security/AccountSecurityScreen.test.tsx +262 -0
  351. package/src/security/AccountSecurityScreen.tsx +156 -0
  352. package/src/security/LinkedAccountsCard.test.tsx +371 -0
  353. package/src/security/LinkedAccountsCard.tsx +297 -0
  354. package/src/security/PasskeysCard.test.tsx +378 -0
  355. package/src/security/PasskeysCard.tsx +371 -0
  356. package/src/security/PasswordCard.test.tsx +445 -0
  357. package/src/security/PasswordCard.tsx +342 -0
  358. package/src/security/SessionsCard.test.tsx +349 -0
  359. package/src/security/SessionsCard.tsx +362 -0
  360. package/src/security/TwoFactorSettingsCard.test.tsx +700 -0
  361. package/src/security/TwoFactorSettingsCard.tsx +872 -0
  362. package/src/security/securityMethods.test.ts +101 -0
  363. package/src/security/securityMethods.ts +104 -0
  364. package/src/security/securityTypes.ts +480 -0
  365. package/src/security/userAgent.test.ts +119 -0
  366. package/src/security/userAgent.ts +102 -0
  367. package/src/signUp/OAuthButtons.test.tsx +27 -0
  368. package/src/signUp/OAuthButtons.tsx +153 -19
  369. package/src/signUp/SignUpScreen.test.tsx +171 -2
  370. package/src/signUp/SignUpScreen.tsx +87 -25
  371. package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +22 -11
  372. package/src/signUp/signUpTypes.ts +23 -1
  373. package/src/table/tableContext.test.tsx +5 -5
  374. package/src/test-utils.tsx +56 -1
  375. package/src/testing/reactDomServer.d.ts +7 -0
  376. package/src/useConsentForms.test.ts +38 -2
  377. package/src/useConsentForms.ts +25 -0
  378. package/src/useProvisionalConsent.test.ts +256 -0
  379. package/src/useProvisionalConsent.ts +218 -0
package/src/Box.tsx CHANGED
@@ -31,6 +31,28 @@ import {getLoadingAccessibilityProps, resolveLoadingContent} from "./Skeleton";
31
31
  import {useTheme} from "./Theme";
32
32
  import {Unifier} from "./Unifier";
33
33
 
34
+ const ARIA_SELECTABLE_ROLES = new Set([
35
+ "columnheader",
36
+ "gridcell",
37
+ "option",
38
+ "row",
39
+ "rowheader",
40
+ "tab",
41
+ "treeitem",
42
+ ]);
43
+
44
+ /**
45
+ * react-native-web turns `accessibilityState.selected` into `aria-selected`.
46
+ * A button cannot have that attribute, so a clickable row keeps `aria-current`
47
+ * only and drops `selected` from the state object on web.
48
+ */
49
+ const omitSelectedState = (
50
+ state: NonNullable<AccessibilityProps["accessibilityState"]>
51
+ ): NonNullable<AccessibilityProps["accessibilityState"]> => {
52
+ const {selected: _selected, ...rest} = state;
53
+ return rest;
54
+ };
55
+
34
56
  const ALIGN_CONTENT = {
35
57
  around: "space-around",
36
58
  between: "space-between",
@@ -427,15 +449,35 @@ const BoxComponent = React.forwardRef((props: BoxProps, ref) => {
427
449
  props.accessibilityState || isLoading
428
450
  ? {...props.accessibilityState, ...loadingAccessibilityProps.accessibilityState}
429
451
  : undefined;
452
+ const accessibilityRoleProp = (props as AccessibilityProps).accessibilityRole;
453
+ // ARIA allows aria-selected only on selectable roles. Any other Box, such as a clickable
454
+ // list row (a button), marks the selected item with aria-current instead.
455
+ const sendsAriaSelected = ARIA_SELECTABLE_ROLES.has(accessibilityRoleProp ?? "");
456
+ const selectedAriaProps =
457
+ accessibilityState?.selected === undefined
458
+ ? {}
459
+ : sendsAriaSelected
460
+ ? {"aria-selected": accessibilityState.selected}
461
+ : {"aria-current": accessibilityState.selected ? ("true" as const) : undefined};
462
+ const hostAccessibilityState =
463
+ accessibilityState &&
464
+ Platform.OS === "web" &&
465
+ accessibilityState.selected !== undefined &&
466
+ !sendsAriaSelected
467
+ ? omitSelectedState(accessibilityState)
468
+ : accessibilityState;
430
469
  const accessibilityStateProps = accessibilityState
431
470
  ? {
432
- accessibilityState,
471
+ ...(hostAccessibilityState && Object.keys(hostAccessibilityState).length > 0
472
+ ? {accessibilityState: hostAccessibilityState}
473
+ : {}),
433
474
  ...(accessibilityState.checked !== undefined
434
475
  ? {"aria-checked": accessibilityState.checked}
435
476
  : {}),
436
477
  ...(accessibilityState.disabled !== undefined
437
478
  ? {"aria-disabled": accessibilityState.disabled}
438
479
  : {}),
480
+ ...selectedAriaProps,
439
481
  ...(accessibilityState.busy !== undefined ? {"aria-busy": accessibilityState.busy} : {}),
440
482
  }
441
483
  : {};
@@ -445,7 +487,7 @@ const BoxComponent = React.forwardRef((props: BoxProps, ref) => {
445
487
  // itself translates to accessibilityRole under the hood) by default; an explicit
446
488
  // `accessibilityRole` prop is only forwarded literally when the caller opts in.
447
489
  if (props.onClick) {
448
- const explicitAccessibilityRole = (props as AccessibilityProps).accessibilityRole;
490
+ const explicitAccessibilityRole = accessibilityRoleProp;
449
491
  // Content is not there yet while loading, so presses are held until it is.
450
492
  const isDisabled = accessibilityState?.disabled === true || isLoading;
451
493
  // Per ARIA, Space toggles a checkbox or switch; react-native-web only maps Space to buttons.
@@ -8,7 +8,12 @@ import {Button} from "./Button";
8
8
  import type {ButtonProps} from "./Common";
9
9
  import {isNarrowViewport} from "./MediaQuery";
10
10
  import * as ThemeModule from "./Theme";
11
- import {renderWithIcons, renderWithTheme, TEST_CUSTOM_ICON_TEST_ID} from "./test-utils";
11
+ import {
12
+ renderWithIcons,
13
+ renderWithTheme,
14
+ rootJSONNode,
15
+ TEST_CUSTOM_ICON_TEST_ID,
16
+ } from "./test-utils";
12
17
  import {Unifier} from "./Unifier";
13
18
  import * as Utilities from "./Utilities";
14
19
 
@@ -289,7 +294,7 @@ describe("Button", () => {
289
294
  it("defaults to scale press animation", () => {
290
295
  const tree = renderWithTheme(<Button onClick={() => {}} text="Default animation" />).toJSON();
291
296
  expect(Array.isArray(tree)).toBe(false);
292
- expect(tree?.type).toBe("PressableScale");
297
+ expect(rootJSONNode(tree)?.type).toBe("PressableScale");
293
298
  });
294
299
 
295
300
  it("renders opacity press animation", () => {
@@ -297,7 +302,7 @@ describe("Button", () => {
297
302
  <Button onClick={() => {}} pressAnimation="opacity" text="Opacity" />
298
303
  ).toJSON();
299
304
  expect(Array.isArray(tree)).toBe(false);
300
- expect(tree?.type).toBe("PressableOpacity");
305
+ expect(rootJSONNode(tree)?.type).toBe("PressableOpacity");
301
306
  });
302
307
 
303
308
  it("renders no press animation", () => {
@@ -305,7 +310,7 @@ describe("Button", () => {
305
310
  <Button onClick={() => {}} pressAnimation="none" text="No animation" />
306
311
  ).toJSON();
307
312
  expect(Array.isArray(tree)).toBe(false);
308
- expect(tree?.type).toBe("PressableWithoutFeedback");
313
+ expect(rootJSONNode(tree)?.type).toBe("PressableWithoutFeedback");
309
314
  });
310
315
 
311
316
  // Disabled state
@@ -703,13 +708,13 @@ describe("Button", () => {
703
708
  it("uses Pressable when disabled (not PressableScale)", () => {
704
709
  const tree = renderWithTheme(<Button disabled onClick={() => {}} text="Disabled" />).toJSON();
705
710
  expect(Array.isArray(tree)).toBe(false);
706
- expect(tree?.type).toBe("Pressable");
711
+ expect(rootJSONNode(tree)?.type).toBe("Pressable");
707
712
  });
708
713
 
709
714
  it("uses Pressable when loading (not PressableScale)", () => {
710
715
  const tree = renderWithTheme(<Button loading onClick={() => {}} text="Loading" />).toJSON();
711
716
  expect(Array.isArray(tree)).toBe(false);
712
- expect(tree?.type).toBe("Pressable");
717
+ expect(rootJSONNode(tree)?.type).toBe("Pressable");
713
718
  });
714
719
 
715
720
  it("renders with custom confirmationText and modalSubTitle", () => {
package/src/Card.test.tsx CHANGED
@@ -33,7 +33,7 @@ const setWindowWidth = (width: number): (() => void) => {
33
33
  useWindowDimensionsMock.mockImplementation(dimensionsImpl);
34
34
 
35
35
  return (): void => {
36
- useWindowDimensionsMock.mockImplementation(getScaledSize(375));
36
+ useWindowDimensionsMock.mockImplementation?.(getScaledSize(375));
37
37
  };
38
38
  }
39
39
 
@@ -71,7 +71,7 @@ describe("Card", () => {
71
71
 
72
72
  it("applies custom color", () => {
73
73
  const {toJSON} = renderWithTheme(
74
- <Card color="secondary">
74
+ <Card color="secondaryDark">
75
75
  <Text>Content</Text>
76
76
  </Card>
77
77
  );
package/src/Card.tsx CHANGED
@@ -5,6 +5,7 @@ import {Box} from "./Box";
5
5
  import {Button} from "./Button";
6
6
  import type {CardProps} from "./Common";
7
7
  import {Heading} from "./Heading";
8
+ import {isSupportedDesktopWidth} from "./MediaQuery";
8
9
  import {SkeletonCard} from "./Skeleton";
9
10
  import {Text} from "./Text";
10
11
 
@@ -14,7 +15,6 @@ const MOBILE_ROW_IMAGE_WIDTH = 100;
14
15
  const DESKTOP_ROW_IMAGE_WIDTH = 160;
15
16
  const MOBILE_LARGE_IMAGE_HEIGHT = 300;
16
17
  const TITLE_DESCRIPTION_GAP = 2;
17
- const MOBILE_BREAKPOINT = 768;
18
18
 
19
19
  const getDisplayCardWidth = ({
20
20
  isMobile,
@@ -186,7 +186,7 @@ const ContainerCard = ({
186
186
 
187
187
  export const Card = ({variant = "container", ...props}: CardProps): React.ReactElement => {
188
188
  const {width: windowWidth} = useWindowDimensions();
189
- const isMobile = windowWidth <= MOBILE_BREAKPOINT;
189
+ const isMobile = !isSupportedDesktopWidth({width: windowWidth});
190
190
 
191
191
  if (variant === "display") {
192
192
  return <DisplayCard {...props} isMobile={isMobile} variant={variant} />;
package/src/Common.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import type {Block, BlockAction, BlocksDocument, InlineDataset} from "@terreno/blocks";
2
+ import type {Href, Stack} from "expo-router";
2
3
  import type {CountryCode} from "libphonenumber-js";
3
4
  import type React from "react";
4
- import type {FC, ReactElement, ReactNode} from "react";
5
+ import type {ComponentProps, FC, ReactElement, ReactNode} from "react";
5
6
  import type {
6
7
  ImageStyle,
7
8
  ListRenderItemInfo,
@@ -89,7 +90,7 @@ export interface AccordionProps extends InfoModalIconProps {
89
90
 
90
91
  /**
91
92
  * If true, the accordion will be collapsed.
92
- * @default true
93
+ * @default false
93
94
  */
94
95
  isCollapsed?: boolean;
95
96
 
@@ -259,6 +260,16 @@ export interface BorderThemeConfig {
259
260
  warning: keyof ThemePrimitiveColors;
260
261
  }
261
262
 
263
+ /** Maps form field (TextField, TextArea, SelectField, etc.) colors to primitives. */
264
+ export interface FieldThemeConfig {
265
+ background: keyof ThemePrimitiveColors;
266
+ backgroundDisabled: keyof ThemePrimitiveColors;
267
+ border: keyof ThemePrimitiveColors;
268
+ borderFocus: keyof ThemePrimitiveColors;
269
+ borderError: keyof ThemePrimitiveColors;
270
+ borderDisabled: keyof ThemePrimitiveColors;
271
+ }
272
+
262
273
  export interface StatusThemeConfig {
263
274
  active: keyof ThemePrimitiveColors;
264
275
  doNotDisturb: keyof ThemePrimitiveColors;
@@ -333,6 +344,22 @@ export interface BorderTheme {
333
344
  warning: string;
334
345
  }
335
346
 
347
+ /** Computed form field colors: the input box background and border in each state. */
348
+ export interface FieldTheme {
349
+ /** Input background when enabled. */
350
+ background: string;
351
+ /** Input background when disabled. */
352
+ backgroundDisabled: string;
353
+ /** Input border at rest. */
354
+ border: string;
355
+ /** Input border while focused. */
356
+ borderFocus: string;
357
+ /** Input border when the field has an error. */
358
+ borderError: string;
359
+ /** Input border when disabled. */
360
+ borderDisabled: string;
361
+ }
362
+
336
363
  export interface StatusTheme {
337
364
  active: string;
338
365
  doNotDisturb: string;
@@ -376,6 +403,7 @@ export interface TerrenoTheme {
376
403
  text: TextTheme;
377
404
  surface: SurfaceTheme;
378
405
  border: BorderTheme;
406
+ field: FieldTheme;
379
407
  status: StatusTheme;
380
408
  radius: RadiusTheme;
381
409
  spacing: SpacingTheme;
@@ -388,6 +416,7 @@ export interface TerrenoThemeConfig {
388
416
  text: TextThemeConfig;
389
417
  surface: SurfaceThemeConfig;
390
418
  border: BorderThemeConfig;
419
+ field: FieldThemeConfig;
391
420
  status: StatusThemeConfig;
392
421
  radius: RadiusThemeConfig;
393
422
  spacing: SpacingThemeConfig;
@@ -683,12 +712,13 @@ export interface AccessibilityProps {
683
712
  accessibilityRole?: string;
684
713
  }
685
714
 
686
- /** Checked and disabled state a `Box` reports to screen readers. */
715
+ /** Checked, disabled, and selected state a `Box` reports to screen readers. */
687
716
  export interface BoxAccessibilityState {
688
717
  /** Set automatically while `loading` is true; sent as `aria-busy` on web. */
689
718
  busy?: boolean;
690
719
  checked?: boolean;
691
720
  disabled?: boolean;
721
+ selected?: boolean;
692
722
  }
693
723
 
694
724
  /** How skeleton placeholders animate. `none` renders a static block. */
@@ -802,8 +832,12 @@ export interface SkeletonGroupProps {
802
832
 
803
833
  export interface BoxPropsBase extends WithTestID, LoadingProps {
804
834
  /**
805
- * Checked and disabled state for screen readers, sent as `accessibilityState` and as
806
- * `aria-checked` / `aria-disabled`. On a clickable Box, `disabled: true` also stops presses.
835
+ * Checked, disabled, and selected state for screen readers, sent as `accessibilityState` and as
836
+ * `aria-checked` / `aria-disabled`. `selected` is sent as `aria-selected` on a selectable
837
+ * `accessibilityRole` (`tab`, `option`, `row`, ...) and as `aria-current="true"` on any other Box,
838
+ * such as a clickable list row. On web that row does not also keep `selected` in
839
+ * `accessibilityState`, because react-native-web would emit `aria-selected` on the button.
840
+ * On a clickable Box, `disabled: true` also stops presses.
807
841
  */
808
842
  accessibilityState?: BoxAccessibilityState;
809
843
  /**
@@ -1098,6 +1132,11 @@ export interface HelperTextProps {
1098
1132
 
1099
1133
  export interface ErrorTextProps {
1100
1134
  errorText?: string;
1135
+ /**
1136
+ * Where `errorText` sits relative to the control.
1137
+ * @default "above"
1138
+ */
1139
+ errorPosition?: "above" | "below";
1101
1140
  }
1102
1141
 
1103
1142
  export interface AiSuggestionProps {
@@ -1130,7 +1169,24 @@ export interface TextFieldProps extends BaseFieldProps, HelperTextProps, ErrorTe
1130
1169
  */
1131
1170
  showVisibilityToggle?: boolean;
1132
1171
 
1133
- autoComplete?: "current-password" | "on" | "off" | "username";
1172
+ /**
1173
+ * Autofill hint. On web it is set as the input's `autocomplete` attribute; `"username webauthn"`
1174
+ * asks the browser to offer saved passkeys in the field's autofill. On native it is sent as
1175
+ * React Native's `autoComplete` (Android's autofill hint) and as the matching iOS
1176
+ * `textContentType`: `username` → `username`, `email` → `emailAddress`, `current-password` →
1177
+ * `password`, `new-password` → `newPassword` (iOS offers a strong password), `one-time-code` →
1178
+ * `oneTimeCode`, `off` → `none`. Without it (or with `"on"`) the field's `type` picks the iOS
1179
+ * hint.
1180
+ */
1181
+ autoComplete?:
1182
+ | "current-password"
1183
+ | "email"
1184
+ | "new-password"
1185
+ | "on"
1186
+ | "off"
1187
+ | "one-time-code"
1188
+ | "username"
1189
+ | "username webauthn";
1134
1190
  returnKeyType?: "done" | "go" | "next" | "search" | "send";
1135
1191
 
1136
1192
  grow?: boolean;
@@ -1144,8 +1200,15 @@ export interface TextFieldProps extends BaseFieldProps, HelperTextProps, ErrorTe
1144
1200
 
1145
1201
  inputRef?: (ref: TextInput | null) => void;
1146
1202
  trimOnBlur?: boolean;
1203
+ /** Renders the value in a monospace face with tracking, for codes such as backup codes. */
1204
+ mono?: boolean;
1147
1205
 
1148
1206
  aiSuggestion?: AiSuggestionProps;
1207
+
1208
+ /**
1209
+ * Accessible name for the input. Screen readers otherwise announce "Text input field".
1210
+ */
1211
+ accessibilityLabel?: string;
1149
1212
  }
1150
1213
 
1151
1214
  export interface TextAreaProps extends Omit<TextFieldProps, "multiline" | "type"> {}
@@ -1254,6 +1317,12 @@ export interface HeadingProps extends WithTestID {
1254
1317
  align?: "left" | "right" | "center" | "justify"; // default "left"
1255
1318
  children?: React.ReactNode;
1256
1319
  color?: TextColor;
1320
+ /**
1321
+ * Outline level, 1 for the page title. When set, the heading is exposed to assistive
1322
+ * technology as a heading: `role="heading"` with `aria-level` (an `<h1>`–`<h6>` on web, the
1323
+ * header accessibility role on native). When omitted, the heading is plain text.
1324
+ */
1325
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
1257
1326
  overflow?: "normal" | "breakWord"; // default "breakWord"
1258
1327
  size?: "sm" | "md" | "lg" | "xl" | "2xl"; // default "sm"
1259
1328
  truncate?: boolean; // default false
@@ -1279,7 +1348,7 @@ export interface MetaProps {
1279
1348
 
1280
1349
  export interface ImageProps {
1281
1350
  alt?: string;
1282
- color: BoxColor;
1351
+ color?: BoxColor;
1283
1352
  naturalHeight?: number;
1284
1353
  naturalWidth?: number;
1285
1354
  maxWidth?: number;
@@ -1428,6 +1497,79 @@ export interface SplitPageProps<TItem extends SplitPageListItem = SplitPageListI
1428
1497
  childColumnRounding?: Rounding;
1429
1498
  }
1430
1499
 
1500
+ /**
1501
+ * Props for ListDetailLayout, the route-driven list/detail layout used as a route group's
1502
+ * `_layout.tsx`. The group's `index.tsx` renders `ListDetailIndex`, and a dynamic child route
1503
+ * (default `[id].tsx`) renders the detail.
1504
+ */
1505
+ export interface ListDetailLayoutProps {
1506
+ /**
1507
+ * The list. Rendered in the left pane when split, and by `ListDetailIndex` when not split.
1508
+ */
1509
+ list: ReactElement;
1510
+ /**
1511
+ * Where selecting an item navigates, e.g. `(id) => \`/mail/${id}\``.
1512
+ */
1513
+ detailHref: (id: string) => Href;
1514
+ /**
1515
+ * The group's own path, e.g. `/mail`. `clear()` returns here, and `selectedId` is only read
1516
+ * from routes directly below it.
1517
+ */
1518
+ indexHref: string;
1519
+ /**
1520
+ * Shown in the detail pane when split and no item is open.
1521
+ */
1522
+ emptyDetail?: ReactElement;
1523
+ /**
1524
+ * Split into list and detail panes when the layout's measured width is at least this many
1525
+ * pixels. Defaults to 768.
1526
+ */
1527
+ splitAtWidth?: number;
1528
+ /**
1529
+ * Width in pixels of the list pane when split. Defaults to 360.
1530
+ */
1531
+ listWidth?: number;
1532
+ /**
1533
+ * The child route name that holds the detail. Defaults to `"[id]"`.
1534
+ */
1535
+ detailRoute?: string;
1536
+ /**
1537
+ * The route param that holds the item id. Defaults to `"id"`.
1538
+ */
1539
+ paramName?: string;
1540
+ /**
1541
+ * Screen options passed through to the underlying expo-router Stack.
1542
+ */
1543
+ screenOptions?: ComponentProps<typeof Stack>["screenOptions"];
1544
+ /**
1545
+ * Optional `Stack.Screen` definitions passed through to the underlying expo-router Stack.
1546
+ */
1547
+ children?: React.ReactNode;
1548
+ }
1549
+
1550
+ /**
1551
+ * The value returned by `useListDetail()` inside a ListDetailLayout.
1552
+ */
1553
+ export interface ListDetailState {
1554
+ /**
1555
+ * True when the list and detail panes are shown side by side.
1556
+ */
1557
+ isSplit: boolean;
1558
+ /**
1559
+ * The id of the open item, read from the detail route. Undefined on the index route.
1560
+ */
1561
+ selectedId?: string;
1562
+ /**
1563
+ * Open an item. Pushes the detail route, or replaces the open detail when split, so back
1564
+ * always returns to the list.
1565
+ */
1566
+ select: (id: string) => void;
1567
+ /**
1568
+ * Close the open item and return to the group's index route.
1569
+ */
1570
+ clear: () => void;
1571
+ }
1572
+
1431
1573
  export type PermissionKind =
1432
1574
  | "location"
1433
1575
  | "locationAlways"
@@ -1484,36 +1626,39 @@ export interface AddressAutocompleteProps extends WithTestID {
1484
1626
  googlePlacesMobileStyles?: Styles;
1485
1627
  }
1486
1628
 
1487
- export interface ActionSheetProps extends WithTestID {
1488
- children?: React.ReactNode;
1489
- ref?: React.MutableRefObject<{
1490
- /**
1491
- * Open or close the ActionSheet.
1492
- */
1493
- setModalVisible(visible?: boolean): void;
1629
+ /** Imperative methods exposed by an ActionSheet ref. */
1630
+ export interface ActionSheetHandle {
1631
+ /**
1632
+ * Open or close the ActionSheet.
1633
+ */
1634
+ setModalVisible(visible?: boolean): void;
1494
1635
 
1495
- /**
1496
- * Open the Action Sheet.
1497
- */
1498
- show(): void;
1636
+ /**
1637
+ * Open the Action Sheet.
1638
+ */
1639
+ show(): void;
1499
1640
 
1500
- /**
1501
- * Close the ActionSheet.
1502
- */
1503
- hide(): void;
1641
+ /**
1642
+ * Close the ActionSheet.
1643
+ */
1644
+ hide(): void;
1504
1645
 
1505
- /**
1506
- * Attach this to any child ScrollView Component's onScrollEndDrag,
1507
- * onMomentumScrollEnd,onScrollAnimationEnd callbacks to handle the ActionSheet
1508
- * closing and bouncing back properly.
1509
- */
1510
- handleChildScrollEnd(): void;
1646
+ /**
1647
+ * Attach this to any child ScrollView Component's onScrollEndDrag,
1648
+ * onMomentumScrollEnd,onScrollAnimationEnd callbacks to handle the ActionSheet
1649
+ * closing and bouncing back properly.
1650
+ */
1651
+ handleChildScrollEnd(): void;
1511
1652
 
1512
- /**
1513
- * Snap ActionSheet to given offset
1514
- */
1515
- snapToOffset(offset: number): void;
1516
- }>;
1653
+ /**
1654
+ * Snap ActionSheet to given offset
1655
+ */
1656
+ snapToOffset(offset: number): void;
1657
+ }
1658
+
1659
+ export interface ActionSheetProps extends WithTestID {
1660
+ children?: React.ReactNode;
1661
+ ref?: React.Ref<ActionSheetHandle>;
1517
1662
  /**
1518
1663
  * Animate the opening and closing of ActionSheet.
1519
1664
 
@@ -2297,6 +2442,11 @@ export interface ButtonProps extends WithTestID {
2297
2442
  * Used for OAuth social login buttons (Google, GitHub, Apple).
2298
2443
  */
2299
2444
  export interface SocialLoginButtonProps extends WithTestID {
2445
+ /**
2446
+ * Accessible name. Defaults to the button text.
2447
+ */
2448
+ accessibilityLabel?: string;
2449
+
2300
2450
  /**
2301
2451
  * The OAuth provider for the social login.
2302
2452
  */
@@ -2316,11 +2466,19 @@ export interface SocialLoginButtonProps extends WithTestID {
2316
2466
  /**
2317
2467
  * The visual variant of the button.
2318
2468
  * - "primary": Uses the provider's brand colors
2319
- * - "outline": Uses an outline style with neutral colors
2469
+ * - "outline": Neutral outline pill, matching the other sign-in methods
2320
2470
  * @default "primary"
2321
2471
  */
2322
2472
  variant?: "primary" | "outline";
2323
2473
 
2474
+ /**
2475
+ * When set on the outline variant, highlights the pill and shows this label inside it.
2476
+ */
2477
+ lastUsedLabel?: string;
2478
+
2479
+ /** Test ID of the last-used label. Requires `lastUsedLabel`. */
2480
+ lastUsedTestID?: string;
2481
+
2324
2482
  /**
2325
2483
  * If true, the button will be disabled.
2326
2484
  * @default false
@@ -3855,7 +4013,7 @@ export interface TableNumberProps {
3855
4013
  /**
3856
4014
  * The number to display in the text field.
3857
4015
  */
3858
- value: string;
4016
+ value: string | number;
3859
4017
  /**
3860
4018
  * Callback to save the text field value.
3861
4019
  */
@@ -3864,7 +4022,7 @@ export interface TableNumberProps {
3864
4022
  * Numbers generally should be right aligned for ease of scanability.
3865
4023
  * @default "right"
3866
4024
  */
3867
- align?: "left" | "right";
4025
+ align?: "left" | "right" | "center";
3868
4026
  }
3869
4027
 
3870
4028
  export interface SliderProps extends HelperTextProps, ErrorTextProps {
@@ -2,7 +2,7 @@ import {describe, expect, it, mock} from "bun:test";
2
2
  import {fireEvent, within} from "@testing-library/react-native";
3
3
  import {DateTime} from "luxon";
4
4
 
5
- import {ConflictSheet, type SyncConflictItem} from "./ConflictSheet";
5
+ import {ConflictSheet, type ConflictSheetProps, type SyncConflictItem} from "./ConflictSheet";
6
6
  import {renderWithTheme} from "./test-utils";
7
7
 
8
8
  /**
@@ -286,7 +286,7 @@ describe("ConflictSheet", () => {
286
286
  });
287
287
 
288
288
  it("calls onResolve with keepMine but keeps the sheet open until the conflict clears", async () => {
289
- const onResolve = mock(() => {});
289
+ const onResolve = mock((_args: Parameters<ConflictSheetProps["onResolve"]>[0]) => {});
290
290
  const onDismiss = mock(() => {});
291
291
  const {getByTestId, rerender} = renderWithTheme(
292
292
  <ConflictSheet
@@ -337,7 +337,7 @@ describe("ConflictSheet", () => {
337
337
  });
338
338
 
339
339
  it("calls onResolve with useServer without dismissing when other conflicts remain", async () => {
340
- const onResolve = mock(() => {});
340
+ const onResolve = mock((_args: Parameters<ConflictSheetProps["onResolve"]>[0]) => {});
341
341
  const onDismiss = mock(() => {});
342
342
  const {getByTestId} = renderWithTheme(
343
343
  <ConflictSheet
@@ -355,7 +355,7 @@ describe("ConflictSheet", () => {
355
355
  });
356
356
 
357
357
  it("uses the server version for every conflict after confirmation, dismissing once they clear", async () => {
358
- const onResolve = mock(() => {});
358
+ const onResolve = mock((_args: Parameters<ConflictSheetProps["onResolve"]>[0]) => {});
359
359
  const onDismiss = mock(() => {});
360
360
  const {findByText, getByTestId, rerender} = renderWithTheme(
361
361
  <ConflictSheet
@@ -385,7 +385,7 @@ describe("ConflictSheet", () => {
385
385
  });
386
386
 
387
387
  it("keeps the local version for every conflict after confirmation, dismissing once they clear", async () => {
388
- const onResolve = mock(() => {});
388
+ const onResolve = mock((_args: Parameters<ConflictSheetProps["onResolve"]>[0]) => {});
389
389
  const onDismiss = mock(() => {});
390
390
  const {findByText, getByTestId, rerender} = renderWithTheme(
391
391
  <ConflictSheet