@btndprojects/loam-ui-native 0.1.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/dist/accordion/index.js +7 -3
  2. package/dist/adaptive/index.js +16 -2
  3. package/dist/address-block/index.js +23 -0
  4. package/dist/alert/index.js +8 -2
  5. package/dist/analyzer/index.js +17 -6
  6. package/dist/announcement/index.js +18 -5
  7. package/dist/appearance-picker/index.js +15 -0
  8. package/dist/audio-player/index.js +29 -3
  9. package/dist/avatar/index.js +5 -2
  10. package/dist/avatar-group/index.js +9 -3
  11. package/dist/badge/index.js +10 -4
  12. package/dist/banner/index.js +6 -2
  13. package/dist/board/index.js +18 -6
  14. package/dist/button/index.js +9 -3
  15. package/dist/camera-permission/index.js +23 -12
  16. package/dist/capture-result/index.js +30 -17
  17. package/dist/card/index.js +10 -3
  18. package/dist/card-form/index.js +19 -9
  19. package/dist/carousel/index.js +6 -2
  20. package/dist/chart/index.js +18 -5
  21. package/dist/charts/index.js +21 -6
  22. package/dist/chat/index.js +41 -0
  23. package/dist/checkbox/index.js +9 -5
  24. package/dist/checklist/index.js +20 -8
  25. package/dist/checkout/index.js +30 -12
  26. package/dist/chip/index.js +11 -5
  27. package/dist/chunk-2BZD3NAP.js +1110 -0
  28. package/dist/chunk-2YKVID2V.js +35 -0
  29. package/dist/{chunk-JUAMLEHX.js → chunk-36DA3IPO.js} +137 -37
  30. package/dist/chunk-3A56MIAN.js +599 -0
  31. package/dist/chunk-3SCKCWF5.js +298 -0
  32. package/dist/chunk-3TZNDHKO.js +187 -0
  33. package/dist/chunk-43K3BLXV.js +9 -0
  34. package/dist/chunk-46ZJIQ2Z.js +208 -0
  35. package/dist/chunk-4CZMQDQL.js +192 -0
  36. package/dist/chunk-5DTKORLI.js +255 -0
  37. package/dist/{chunk-LOE5YNN3.js → chunk-5J4WFXFA.js} +68 -24
  38. package/dist/chunk-5KJ7TEQ6.js +305 -0
  39. package/dist/chunk-5NU33TXK.js +529 -0
  40. package/dist/chunk-5Z5ZYMOJ.js +1 -0
  41. package/dist/chunk-6KSUS7DF.js +690 -0
  42. package/dist/chunk-6RV6UW2J.js +349 -0
  43. package/dist/chunk-6RZM7RP2.js +520 -0
  44. package/dist/{chunk-4BXMXBJO.js → chunk-75BDCC7K.js} +24 -11
  45. package/dist/{chunk-PZXZJBMP.js → chunk-7CGJBQUA.js} +357 -32
  46. package/dist/{chunk-CJ5EOYZE.js → chunk-7IVF6JLJ.js} +24 -7
  47. package/dist/chunk-7IWCGXYA.js +143 -0
  48. package/dist/chunk-7LM4ASFH.js +172 -0
  49. package/dist/chunk-7MCEJFWV.js +341 -0
  50. package/dist/chunk-7NGMUVNU.js +245 -0
  51. package/dist/chunk-7PBSIXT7.js +355 -0
  52. package/dist/chunk-7QOYGENL.js +443 -0
  53. package/dist/{chunk-H6NIOQHK.js → chunk-A7SWYDE5.js} +66 -15
  54. package/dist/chunk-ADHPJALR.js +3051 -0
  55. package/dist/chunk-ALJYZLNQ.js +509 -0
  56. package/dist/chunk-APCWFOZW.js +28 -0
  57. package/dist/chunk-AQ5FIG74.js +419 -0
  58. package/dist/chunk-AWKQIE5I.js +139 -0
  59. package/dist/chunk-B2MMZZQB.js +426 -0
  60. package/dist/{chunk-ZVFE5QGU.js → chunk-B7JZ3N5G.js} +174 -97
  61. package/dist/chunk-BL37SW6G.js +1314 -0
  62. package/dist/chunk-BTRMA7GC.js +21 -0
  63. package/dist/chunk-C7IUWIUZ.js +643 -0
  64. package/dist/chunk-CA3DUVYD.js +10 -0
  65. package/dist/{chunk-S7F6XLTK.js → chunk-CBCJSO2B.js} +213 -54
  66. package/dist/chunk-CHPX4MFI.js +239 -0
  67. package/dist/chunk-CLGAMIOT.js +648 -0
  68. package/dist/chunk-CUE7VML6.js +1141 -0
  69. package/dist/chunk-CVU6S2E5.js +1587 -0
  70. package/dist/{chunk-AZRX6SAC.js → chunk-CXPQMA6Z.js} +112 -37
  71. package/dist/chunk-D2LN4I7I.js +581 -0
  72. package/dist/{chunk-UWFLYMAR.js → chunk-D34LNBO5.js} +635 -238
  73. package/dist/chunk-D4BCQICM.js +765 -0
  74. package/dist/chunk-EABKIIA4.js +1 -0
  75. package/dist/chunk-EICSYRAG.js +341 -0
  76. package/dist/chunk-EMWAJMAS.js +83 -0
  77. package/dist/chunk-EOLZWRV6.js +149 -0
  78. package/dist/chunk-EOQVTGB6.js +350 -0
  79. package/dist/{chunk-BEDBFJND.js → chunk-ESGUHNB2.js} +119 -43
  80. package/dist/{chunk-Q72LJOVE.js → chunk-F2KNBPKY.js} +74 -18
  81. package/dist/{chunk-O7AE6DAF.js → chunk-G7H3NX3G.js} +57 -24
  82. package/dist/chunk-GM7YIPB7.js +1052 -0
  83. package/dist/chunk-GVQQG435.js +581 -0
  84. package/dist/chunk-HE43OMEL.js +1056 -0
  85. package/dist/chunk-HHOMFQ7R.js +2535 -0
  86. package/dist/chunk-HJFFOOJ4.js +1 -0
  87. package/dist/chunk-HNAKS4Z3.js +207 -0
  88. package/dist/chunk-HP6ST2OW.js +352 -0
  89. package/dist/chunk-HW3OWDTU.js +1 -0
  90. package/dist/{chunk-3ENTMPQY.js → chunk-HZDB44K4.js} +102 -52
  91. package/dist/chunk-I2KLQ2HA.js +19 -0
  92. package/dist/chunk-I6CUP2LW.js +1155 -0
  93. package/dist/chunk-ICV4Y2WY.js +27 -0
  94. package/dist/chunk-IHSIENOE.js +3950 -0
  95. package/dist/{chunk-CUMUNPXY.js → chunk-IMMALLRU.js} +68 -32
  96. package/dist/chunk-J64KGCGX.js +55 -0
  97. package/dist/{chunk-IVNRBPGC.js → chunk-JA6TK7H2.js} +255 -84
  98. package/dist/{chunk-OOPPQH27.js → chunk-JAVZ5JPV.js} +83 -29
  99. package/dist/chunk-JCMTP3E4.js +1251 -0
  100. package/dist/{chunk-U7TFM2JA.js → chunk-JCXFFK64.js} +75 -18
  101. package/dist/chunk-JWCVBFDU.js +236 -0
  102. package/dist/chunk-JXRTD5RI.js +414 -0
  103. package/dist/chunk-JYIUZUIQ.js +1567 -0
  104. package/dist/chunk-K3TK3GIV.js +219 -0
  105. package/dist/chunk-KEVZIHM2.js +1511 -0
  106. package/dist/chunk-KHZDNQQD.js +171 -0
  107. package/dist/chunk-KL4GDV4V.js +131 -0
  108. package/dist/chunk-KNILMM4H.js +225 -0
  109. package/dist/chunk-KRBUZV45.js +25 -0
  110. package/dist/{chunk-ITTYJZWX.js → chunk-KXLDK6HB.js} +161 -45
  111. package/dist/chunk-KZ3X7TSL.js +196 -0
  112. package/dist/chunk-L2WMOA2V.js +474 -0
  113. package/dist/chunk-L4D5LHCH.js +109 -0
  114. package/dist/chunk-LAUJPLDB.js +853 -0
  115. package/dist/{chunk-SBMNWWBV.js → chunk-LGNTP5XA.js} +89 -17
  116. package/dist/chunk-LUZFCCSD.js +271 -0
  117. package/dist/{chunk-HPPW424V.js → chunk-LXJCP4PL.js} +129 -37
  118. package/dist/chunk-MCOZJWPU.js +731 -0
  119. package/dist/chunk-MG4SKWLL.js +2587 -0
  120. package/dist/chunk-MPEPTSER.js +414 -0
  121. package/dist/chunk-MWPJ4YGP.js +1 -0
  122. package/dist/{chunk-TKQYWZ5V.js → chunk-N7AX4OA4.js} +108 -41
  123. package/dist/chunk-NHSLM6SE.js +523 -0
  124. package/dist/chunk-NNCOFLNE.js +24 -0
  125. package/dist/{chunk-J7Q7VCVC.js → chunk-NNJLVA7M.js} +54 -15
  126. package/dist/chunk-NZG75DGA.js +282 -0
  127. package/dist/chunk-O76QXRBV.js +431 -0
  128. package/dist/chunk-OANH27AK.js +223 -0
  129. package/dist/chunk-OCHPK5YV.js +609 -0
  130. package/dist/chunk-OMHVEVX4.js +436 -0
  131. package/dist/{chunk-YF4NSSMT.js → chunk-ONKQUJWD.js} +220 -65
  132. package/dist/chunk-OVTK7A6T.js +615 -0
  133. package/dist/chunk-PCEFCOLN.js +120 -0
  134. package/dist/chunk-PFLNFIVB.js +186 -0
  135. package/dist/chunk-PHSZY37H.js +300 -0
  136. package/dist/chunk-PJLTKDVY.js +18 -0
  137. package/dist/{chunk-4YIP3CWS.js → chunk-PK7BN3MI.js} +89 -19
  138. package/dist/{chunk-KMI5ML5I.js → chunk-PWFRDRGS.js} +155 -29
  139. package/dist/chunk-PYPMD46W.js +707 -0
  140. package/dist/chunk-Q6CCHDI7.js +331 -0
  141. package/dist/chunk-QFA5WS2A.js +750 -0
  142. package/dist/chunk-QJMMM4RC.js +124 -0
  143. package/dist/chunk-QNZII37O.js +10 -0
  144. package/dist/chunk-QYWEVAM6.js +407 -0
  145. package/dist/chunk-R5T4VZ7Z.js +126 -0
  146. package/dist/chunk-R77HFLZD.js +1 -0
  147. package/dist/{chunk-YC6WORFL.js → chunk-RAESDNU5.js} +228 -102
  148. package/dist/chunk-RBYQUXNL.js +1 -0
  149. package/dist/chunk-RCM3DT5E.js +1 -0
  150. package/dist/chunk-RGNY56L7.js +282 -0
  151. package/dist/chunk-RIK6UX2K.js +344 -0
  152. package/dist/{chunk-LAECSR4H.js → chunk-RJA3RXO3.js} +75 -60
  153. package/dist/chunk-RJYRJ3LD.js +1 -0
  154. package/dist/chunk-RMA3NOY4.js +599 -0
  155. package/dist/{chunk-DM5QUKKO.js → chunk-RSWKKAHK.js} +160 -66
  156. package/dist/chunk-RVOIIX3V.js +204 -0
  157. package/dist/chunk-SA2RRBGT.js +1077 -0
  158. package/dist/chunk-SG3J4R45.js +1428 -0
  159. package/dist/chunk-SPUK7JD4.js +238 -0
  160. package/dist/chunk-SWXV2K5N.js +434 -0
  161. package/dist/chunk-SYJEPXP6.js +1303 -0
  162. package/dist/{chunk-N32RGOA5.js → chunk-SZLI34TA.js} +93 -28
  163. package/dist/{chunk-4GBOGOTV.js → chunk-T77WJA74.js} +143 -18
  164. package/dist/chunk-TDWWVJA4.js +630 -0
  165. package/dist/chunk-TFHI5XDR.js +610 -0
  166. package/dist/chunk-TH4PW2WU.js +17 -0
  167. package/dist/chunk-TTQ24HQX.js +12 -0
  168. package/dist/chunk-TUACVJNG.js +12 -0
  169. package/dist/{chunk-CYRBHQQZ.js → chunk-TUL5RUIA.js} +201 -59
  170. package/dist/{chunk-4ZAHCY44.js → chunk-TYOSA7JG.js} +74 -38
  171. package/dist/chunk-TYQTMMEV.js +1 -0
  172. package/dist/chunk-TZO6YDS7.js +346 -0
  173. package/dist/chunk-U3ETF22F.js +328 -0
  174. package/dist/chunk-U6BYHD2N.js +213 -0
  175. package/dist/{chunk-WSW6ZFAQ.js → chunk-UF6EJXPQ.js} +20 -5
  176. package/dist/chunk-UNNQIPGK.js +792 -0
  177. package/dist/chunk-UQEN55EY.js +1 -0
  178. package/dist/chunk-UQVO6AJV.js +171 -0
  179. package/dist/chunk-VFDQAAIW.js +351 -0
  180. package/dist/chunk-VIUE3VQT.js +1 -0
  181. package/dist/chunk-VJLSSSGC.js +438 -0
  182. package/dist/chunk-VLMT6KYT.js +350 -0
  183. package/dist/chunk-VMHGBUGS.js +35 -0
  184. package/dist/{chunk-7O2FMUPT.js → chunk-VQKPBYW6.js} +400 -139
  185. package/dist/{chunk-EJBDRVIH.js → chunk-VSSTWLC5.js} +61 -16
  186. package/dist/chunk-VZYYZRPN.js +1992 -0
  187. package/dist/chunk-W23G6JLF.js +37 -0
  188. package/dist/chunk-WAIJCD2V.js +480 -0
  189. package/dist/chunk-WFMQ3WKM.js +378 -0
  190. package/dist/chunk-WJ2KDRMY.js +66 -0
  191. package/dist/chunk-WKFZJO54.js +437 -0
  192. package/dist/{chunk-SYNOJOQO.js → chunk-WVVD3XOV.js} +189 -93
  193. package/dist/chunk-XAIWMSLB.js +1 -0
  194. package/dist/chunk-XBXUBBJZ.js +98 -0
  195. package/dist/chunk-XCU7MYBJ.js +1 -0
  196. package/dist/chunk-XHE4PGCI.js +717 -0
  197. package/dist/chunk-XRSJ32M3.js +331 -0
  198. package/dist/chunk-XTCVOEAW.js +1 -0
  199. package/dist/chunk-XWGXVQF6.js +58 -0
  200. package/dist/{chunk-35OFI3JG.js → chunk-Y3XKKO5K.js} +258 -123
  201. package/dist/chunk-Y4QNMBLO.js +533 -0
  202. package/dist/chunk-Y5H4CTKO.js +1 -0
  203. package/dist/chunk-YBQIN75A.js +403 -0
  204. package/dist/chunk-YJ5PXOX3.js +158 -0
  205. package/dist/{chunk-AWJOCGFZ.js → chunk-YLRSRUPS.js} +81 -55
  206. package/dist/chunk-YM6MPJ4A.js +1 -0
  207. package/dist/chunk-YV7KZENV.js +200 -0
  208. package/dist/chunk-Z7I4ZSO6.js +316 -0
  209. package/dist/chunk-ZIRMWD2B.js +555 -0
  210. package/dist/chunk-ZPMG3FWU.js +75 -0
  211. package/dist/{chunk-QWCMU5B2.js → chunk-ZTXMK2G7.js} +289 -115
  212. package/dist/chunk-ZVJCWXAL.js +541 -0
  213. package/dist/{chunk-P23EQNRQ.js → chunk-ZYQ23DPT.js} +215 -49
  214. package/dist/coachmark/index.js +10 -3
  215. package/dist/code-block/index.js +6 -3
  216. package/dist/color-field/index.js +15 -5
  217. package/dist/color-picker/index.js +23 -0
  218. package/dist/commerce/index.js +31 -17
  219. package/dist/confirm/index.js +31 -0
  220. package/dist/connection-card/index.js +34 -0
  221. package/dist/connectivity/index.js +6 -2
  222. package/dist/context-menu/index.js +13 -3
  223. package/dist/copy-button/index.js +5 -2
  224. package/dist/data-grid/index.js +35 -17
  225. package/dist/date-range-picker/index.js +22 -9
  226. package/dist/description-list/index.js +6 -1
  227. package/dist/device-frame/index.js +30 -0
  228. package/dist/dialog/index.js +10 -2
  229. package/dist/divider/index.js +2 -0
  230. package/dist/empty-state/index.js +15 -2
  231. package/dist/error-summary/index.js +9 -2
  232. package/dist/fab/index.js +7 -2
  233. package/dist/file-manager/index.js +44 -0
  234. package/dist/file-upload/index.js +16 -7
  235. package/dist/filter-bar/index.js +14 -7
  236. package/dist/flow-run/index.js +23 -13
  237. package/dist/form/index.js +32 -3
  238. package/dist/gallery/index.js +8 -2
  239. package/dist/hold-to-confirm/index.js +6 -2
  240. package/dist/hover-card/index.js +18 -0
  241. package/dist/icon-tile/index.js +10 -0
  242. package/dist/image/index.js +9 -0
  243. package/dist/index.d.ts +30789 -12332
  244. package/dist/index.js +424 -135
  245. package/dist/infinite-list/index.js +6 -2
  246. package/dist/inline-edit/index.js +8 -5
  247. package/dist/input/index.js +7 -4
  248. package/dist/interactions/index.js +5 -1
  249. package/dist/invoice/index.js +22 -9
  250. package/dist/job-row/index.js +22 -0
  251. package/dist/json-inspector/index.js +20 -0
  252. package/dist/kbd/index.js +5 -1
  253. package/dist/keyboard/index.js +9 -2
  254. package/dist/level-meter/index.js +9 -0
  255. package/dist/list-row/index.js +14 -4
  256. package/dist/log-viewer/index.js +11 -2
  257. package/dist/map-view/index.js +16 -3
  258. package/dist/markdown/index.js +12 -6
  259. package/dist/metric/index.js +10 -4
  260. package/dist/metric-strip/index.js +12 -0
  261. package/dist/money/index.js +16 -3
  262. package/dist/nav-drawer/index.js +8 -2
  263. package/dist/nav-header/index.js +15 -0
  264. package/dist/navigation/index.js +32 -2
  265. package/dist/notification-center/index.js +28 -12
  266. package/dist/number-roll/index.js +7 -2
  267. package/dist/onboarding-pager/index.js +22 -0
  268. package/dist/one-handed/index.js +5 -3
  269. package/dist/os-surfaces/index.js +9 -3
  270. package/dist/otp/index.js +9 -5
  271. package/dist/page-header/index.js +3 -1
  272. package/dist/pagination/index.js +8 -0
  273. package/dist/payment-method/index.js +21 -11
  274. package/dist/payment-status/index.js +26 -15
  275. package/dist/permission/index.js +21 -2
  276. package/dist/picker/index.js +22 -6
  277. package/dist/progress/index.js +11 -3
  278. package/dist/provenance/index.js +16 -0
  279. package/dist/pull-to-refresh/index.js +4 -2
  280. package/dist/qr-code/index.js +16 -0
  281. package/dist/query-builder/index.js +30 -0
  282. package/dist/radio-group/index.js +9 -5
  283. package/dist/rating/index.js +10 -2
  284. package/dist/receivables/index.js +35 -17
  285. package/dist/recording-indicator/index.js +21 -0
  286. package/dist/refund/index.js +28 -15
  287. package/dist/repeatable-rows/index.js +19 -0
  288. package/dist/save-status/index.js +7 -3
  289. package/dist/screen/index.js +3 -0
  290. package/dist/scroll-area/index.js +3 -1
  291. package/dist/search-field/index.js +13 -0
  292. package/dist/secret-field/index.js +19 -0
  293. package/dist/section-header/index.js +4 -0
  294. package/dist/segmented-control/index.js +4 -3
  295. package/dist/sheet/index.js +11 -3
  296. package/dist/shortcuts-sheet/index.js +2 -0
  297. package/dist/sign-in-screen/index.js +25 -0
  298. package/dist/skeleton/index.js +5 -1
  299. package/dist/slider/index.js +5 -2
  300. package/dist/sortable/index.js +8 -0
  301. package/dist/spinner/index.js +4 -1
  302. package/dist/split-button/index.js +21 -6
  303. package/dist/spotlight/index.js +9 -1
  304. package/dist/stack/index.js +2 -0
  305. package/dist/stage-timeline/index.js +8 -3
  306. package/dist/status-dot/index.js +8 -2
  307. package/dist/stepper/index.js +11 -4
  308. package/dist/streaming-text/index.js +4 -2
  309. package/dist/survey/index.js +29 -16
  310. package/dist/switch/index.js +9 -3
  311. package/dist/system-state/index.js +15 -4
  312. package/dist/tab-bar/index.js +13 -2
  313. package/dist/tabs/index.js +12 -2
  314. package/dist/tags-input/index.js +13 -0
  315. package/dist/text/index.js +4 -0
  316. package/dist/textarea/index.js +8 -5
  317. package/dist/thinking/index.js +6 -1
  318. package/dist/tile-rail/index.js +10 -0
  319. package/dist/time-field/index.js +20 -0
  320. package/dist/time-range-control/index.js +36 -0
  321. package/dist/timeline/index.js +4 -2
  322. package/dist/toast/index.js +6 -2
  323. package/dist/toolbar/index.js +5 -2
  324. package/dist/tour/index.js +15 -10
  325. package/dist/transcript/index.js +28 -0
  326. package/dist/truncation-notice/index.js +5 -2
  327. package/dist/update-notice/index.js +19 -9
  328. package/dist/video-player/index.js +29 -2
  329. package/dist/viewfinder/index.js +15 -5
  330. package/dist/widget/index.js +14 -4
  331. package/dist/wizard/index.js +10 -4
  332. package/package.json +13 -12
  333. package/dist/chunk-223Q2T2Q.js +0 -229
  334. package/dist/chunk-2A5NIQAK.js +0 -254
  335. package/dist/chunk-2GK6PHGE.js +0 -363
  336. package/dist/chunk-2ZZ7TDJ4.js +0 -324
  337. package/dist/chunk-3ARE4TES.js +0 -195
  338. package/dist/chunk-3NMD74ZU.js +0 -4
  339. package/dist/chunk-3WPW4KUN.js +0 -182
  340. package/dist/chunk-423B7SPN.js +0 -993
  341. package/dist/chunk-47FWHGUN.js +0 -394
  342. package/dist/chunk-4DS5ZWVC.js +0 -83
  343. package/dist/chunk-4SZYY6AN.js +0 -99
  344. package/dist/chunk-4YQOR7JM.js +0 -204
  345. package/dist/chunk-52X2VYTD.js +0 -228
  346. package/dist/chunk-5YNTNN5A.js +0 -177
  347. package/dist/chunk-6HT2LP62.js +0 -504
  348. package/dist/chunk-6N33LFQA.js +0 -35
  349. package/dist/chunk-6X6PQ443.js +0 -432
  350. package/dist/chunk-7CFF4HXS.js +0 -126
  351. package/dist/chunk-AI4DWZCD.js +0 -162
  352. package/dist/chunk-BTTFCMKG.js +0 -166
  353. package/dist/chunk-BV3B2HYZ.js +0 -1635
  354. package/dist/chunk-C2NTXVWM.js +0 -98
  355. package/dist/chunk-CDRZHT42.js +0 -424
  356. package/dist/chunk-DHWADYZX.js +0 -144
  357. package/dist/chunk-F5XNPWS7.js +0 -1024
  358. package/dist/chunk-FMYDDECK.js +0 -1521
  359. package/dist/chunk-GDKZTW34.js +0 -395
  360. package/dist/chunk-GL7B2DOW.js +0 -134
  361. package/dist/chunk-GNNJ4GCC.js +0 -471
  362. package/dist/chunk-HET4LLMX.js +0 -129
  363. package/dist/chunk-HZ6CNMAF.js +0 -870
  364. package/dist/chunk-IIQTAY3J.js +0 -715
  365. package/dist/chunk-JNH2TYIN.js +0 -96
  366. package/dist/chunk-JNY4ZHAR.js +0 -634
  367. package/dist/chunk-JXJB2X6M.js +0 -131
  368. package/dist/chunk-LRJNDEIA.js +0 -302
  369. package/dist/chunk-LSS54GLJ.js +0 -116
  370. package/dist/chunk-LZLHELAG.js +0 -137
  371. package/dist/chunk-MOUJOP55.js +0 -425
  372. package/dist/chunk-NKB7BZYK.js +0 -167
  373. package/dist/chunk-NQYBUO3K.js +0 -1795
  374. package/dist/chunk-O4AEHWII.js +0 -464
  375. package/dist/chunk-OETCUXQP.js +0 -134
  376. package/dist/chunk-OPXFZ4Y5.js +0 -204
  377. package/dist/chunk-PJXUJYS6.js +0 -248
  378. package/dist/chunk-PUPM2YGF.js +0 -376
  379. package/dist/chunk-QCDXZBC5.js +0 -247
  380. package/dist/chunk-QDYDBCFP.js +0 -197
  381. package/dist/chunk-QJJ6MADV.js +0 -274
  382. package/dist/chunk-QKXCPTFS.js +0 -349
  383. package/dist/chunk-RIBDXGUG.js +0 -108
  384. package/dist/chunk-RJQOOHT2.js +0 -214
  385. package/dist/chunk-RNGLIHFA.js +0 -191
  386. package/dist/chunk-RQ3HASCC.js +0 -6
  387. package/dist/chunk-RSOJT5YW.js +0 -124
  388. package/dist/chunk-RUZHTGKB.js +0 -237
  389. package/dist/chunk-RW6ZL2FQ.js +0 -284
  390. package/dist/chunk-TKVFVF5D.js +0 -95
  391. package/dist/chunk-TOXAGRDQ.js +0 -144
  392. package/dist/chunk-TUTI5HOZ.js +0 -112
  393. package/dist/chunk-UC2WGUP3.js +0 -627
  394. package/dist/chunk-UYG5L34B.js +0 -87
  395. package/dist/chunk-VBOXAEPI.js +0 -336
  396. package/dist/chunk-VCDBXW5H.js +0 -188
  397. package/dist/chunk-VEAYTRPX.js +0 -414
  398. package/dist/chunk-VQHPQEUH.js +0 -273
  399. package/dist/chunk-VXDZFJGP.js +0 -874
  400. package/dist/chunk-XNUVB5OL.js +0 -375
  401. package/dist/chunk-XOSCY2CW.js +0 -242
  402. package/dist/chunk-XXXEFXY5.js +0 -99
  403. package/dist/chunk-YDGVJETP.js +0 -60
  404. package/dist/chunk-YG3ZJHGU.js +0 -223
  405. package/dist/chunk-YTFKPRUK.js +0 -845
  406. package/dist/chunk-Z7H7VSFZ.js +0 -323
  407. package/dist/header/index.js +0 -5
  408. package/dist/search-bar/index.js +0 -5
  409. /package/dist/{chunk-3ECPOSKO.js → chunk-3BKLBYPK.js} +0 -0
  410. /package/dist/{chunk-JRLTGLN4.js → chunk-3UG6JUCV.js} +0 -0
  411. /package/dist/{chunk-RTIKSY6A.js → chunk-4QCR3K2J.js} +0 -0
  412. /package/dist/{chunk-VFCUIDRT.js → chunk-5WWRTEPS.js} +0 -0
@@ -0,0 +1,1251 @@
1
+ import { PanelToneContext, panelMutedInk, PanelRoot, PanelFooter, panelSurface } from './chunk-R5T4VZ7Z.js';
2
+ import { OTP } from './chunk-U3ETF22F.js';
3
+ import { SecurePayLabel } from './chunk-7MCEJFWV.js';
4
+ import { Amount } from './chunk-GVQQG435.js';
5
+ import { DescriptionList } from './chunk-PFLNFIVB.js';
6
+ import { usePayLabels } from './chunk-QNZII37O.js';
7
+ import { formatTime } from './chunk-CA3DUVYD.js';
8
+ import { DismissButton } from './chunk-Z7I4ZSO6.js';
9
+ import { Button } from './chunk-5DTKORLI.js';
10
+ import { resolveTextRole } from './chunk-L4D5LHCH.js';
11
+ import { Badge } from './chunk-LGNTP5XA.js';
12
+ import { Skeleton } from './chunk-YJ5PXOX3.js';
13
+ import { softToneSkin } from './chunk-PJLTKDVY.js';
14
+ import { expandedProps } from './chunk-W23G6JLF.js';
15
+ import { Spinner } from './chunk-G7H3NX3G.js';
16
+ import { isAndroidIdiom } from './chunk-TH4PW2WU.js';
17
+ import { useLabels, useLoamLocale } from './chunk-APCWFOZW.js';
18
+ import { Icon } from './chunk-PCEFCOLN.js';
19
+ import { springConfig, motionTiming, useResolvedMotion } from './chunk-J64KGCGX.js';
20
+ import * as React from 'react';
21
+ import { StyleSheet, Animated, Easing, View, Text, Pressable } from 'react-native';
22
+ import { createStyleSheet, useLoamTheme, useStyles } from '@btndprojects/loam-theme-native';
23
+ import { STATES, stateText, isTerminal, declineText, recoveryActions, declineHeadline, nothingChargedText, THREE_DS_TIMEOUT_SECONDS } from '@btndprojects/loam-pay';
24
+ import { jsx, jsxs } from 'react/jsx-runtime';
25
+ import { icons } from '@btndprojects/loam-icons';
26
+
27
+ // src/payment-status/payment-status-labels.ts
28
+ var DEFAULT_LABELS = {
29
+ inProgress: "Payment in progress",
30
+ headlineAsync: "Your payment is on its way",
31
+ headlineSync: "Taking your payment",
32
+ cancelPayment: "Cancel payment",
33
+ reference: "Reference",
34
+ processingStatus: (headline, step) => `${headline}. ${step}.`,
35
+ receiptTitle: "Payment complete",
36
+ method: "Method",
37
+ date: "Date",
38
+ receipt: "Receipt",
39
+ sentTo: "Sent to",
40
+ receiptStatus: (title, id) => `${title}. Receipt ${id}.`,
41
+ chromeLabel: "Your bank is verifying this payment",
42
+ cancelAndGoBack: "Cancel and go back",
43
+ approve: "Approve",
44
+ authorise: "Authorise",
45
+ codeSent: (contact) => `We sent a code to ${contact}.`,
46
+ codeGroup: (digits) => `${digits}-digit verification code`,
47
+ digit: (index, total) => `Digit ${index} of ${total}`,
48
+ detailsForSupport: "Details for support",
49
+ nextStep: "Next step",
50
+ declineCode: "decline_code",
51
+ network: "network",
52
+ dismiss: "Dismiss",
53
+ soft: "soft",
54
+ hard: "hard",
55
+ attempt: "attempt",
56
+ attemptOf: (attempt, allowed) => `${attempt} of ${allowed}`,
57
+ intent: "intent"
58
+ };
59
+ var TONE_VARIANT = {
60
+ good: "good",
61
+ warn: "warn",
62
+ danger: "danger",
63
+ info: "info"
64
+ };
65
+ function StatePill({
66
+ state,
67
+ label,
68
+ showCode = false,
69
+ pulse = true,
70
+ size = "sm",
71
+ variant = "soft",
72
+ count,
73
+ error,
74
+ labels: labelsProp,
75
+ style
76
+ }) {
77
+ const theme = useLoamTheme("payment-status");
78
+ const { styles } = useStyles(sheet);
79
+ const pay = usePayLabels(labelsProp);
80
+ const def = STATES[state];
81
+ const pulsing = pulse && state === "processing";
82
+ const words = label ?? stateText(state, pay).label;
83
+ const dim = React.useRef(new Animated.Value(1)).current;
84
+ React.useEffect(() => {
85
+ if (!pulsing || theme.reduceMotion) {
86
+ dim.setValue(1);
87
+ return;
88
+ }
89
+ const half = theme.loop.pulse / 2;
90
+ const easing = Easing.bezier(...theme.easing.inOut);
91
+ const loop = Animated.loop(
92
+ Animated.sequence([
93
+ Animated.timing(dim, { toValue: 0.4, duration: half, easing, useNativeDriver: true }),
94
+ Animated.timing(dim, { toValue: 1, duration: half, easing, useNativeDriver: true })
95
+ ])
96
+ );
97
+ loop.start();
98
+ return () => loop.stop();
99
+ }, [pulsing, theme.reduceMotion, theme.loop.pulse, theme.easing.inOut, dim]);
100
+ const ink = def.tone === "good" ? theme.color.goodOnSoft : def.tone === "warn" ? theme.color.warnOnSoft : def.tone === "danger" ? theme.color.dangerOnSoft : theme.color.infoOnSoft;
101
+ return /* @__PURE__ */ jsx(
102
+ View,
103
+ {
104
+ testID: `state-pill-${state}${isTerminal(state) ? "-terminal" : ""}`,
105
+ style,
106
+ children: /* @__PURE__ */ jsx(
107
+ Badge,
108
+ {
109
+ variant: error ? "danger" : TONE_VARIANT[def.tone],
110
+ size,
111
+ outline: variant === "outline",
112
+ accessibilityLabel: typeof error === "string" && error ? error : `${showCode ? `${words} ${state}` : words}${count !== void 0 ? ` ${count}` : ""}`,
113
+ dot: true,
114
+ dotStyle: { opacity: dim },
115
+ children: /* @__PURE__ */ jsxs(View, { style: styles.pillRow, children: [
116
+ /* @__PURE__ */ jsx(Text, { style: [styles.pillLabel, { color: error ? theme.color.dangerOnSoft : ink }], children: typeof error === "string" && error ? error : words }),
117
+ count !== void 0 && !error ? /* @__PURE__ */ jsx(Text, { style: [styles.pillCode, { color: ink }], children: count }) : null,
118
+ showCode ? /* @__PURE__ */ jsx(Text, { style: [styles.pillCode, { color: ink }], children: state }) : null
119
+ ] })
120
+ }
121
+ )
122
+ }
123
+ );
124
+ }
125
+ function ProcessingStepRow({
126
+ label,
127
+ status,
128
+ style
129
+ }) {
130
+ const theme = useLoamTheme("payment-status");
131
+ const { styles } = useStyles(sheet);
132
+ const panelTone = React.useContext(PanelToneContext);
133
+ const currentAttr = status === "active" ? { "aria-current": "step" } : {};
134
+ return /* @__PURE__ */ jsxs(
135
+ View,
136
+ {
137
+ role: "listitem",
138
+ testID: `processing-step-${status}`,
139
+ ...currentAttr,
140
+ style: [styles.stepRow, style],
141
+ children: [
142
+ /* @__PURE__ */ jsx(
143
+ View,
144
+ {
145
+ style: styles.stepMarker,
146
+ "aria-hidden": true,
147
+ accessibilityElementsHidden: true,
148
+ importantForAccessibility: "no-hide-descendants",
149
+ children: status === "done" ? /* @__PURE__ */ jsx(Icon, { name: "check", size: theme.icon.sm, color: theme.color.good }) : status === "active" ? /* @__PURE__ */ jsx(View, { style: [styles.stepDot, { backgroundColor: theme.color.accent }] }) : /* @__PURE__ */ jsx(View, { style: [styles.stepDot, styles.stepDotHollow] })
150
+ }
151
+ ),
152
+ /* @__PURE__ */ jsx(
153
+ Text,
154
+ {
155
+ style: [
156
+ styles.stepLabel,
157
+ status === "active" ? styles.stepLabelActive : (
158
+ // The finished step settles on a *measured* ink rather than an
159
+ // opacity — see the module note.
160
+ status === "done" ? styles.stepLabelDone : [styles.stepLabelPending, { color: panelMutedInk(theme, panelTone) }]
161
+ )
162
+ ],
163
+ children: label
164
+ }
165
+ )
166
+ ]
167
+ }
168
+ );
169
+ }
170
+ function ProcessingPanel({
171
+ amount,
172
+ currency,
173
+ methodLabel,
174
+ async: isAsync = false,
175
+ headline,
176
+ eta,
177
+ steps,
178
+ asyncNote,
179
+ reference,
180
+ reservedUntil,
181
+ onCancel,
182
+ cancelLabel,
183
+ variant = "default",
184
+ elevation = "default",
185
+ padding,
186
+ tone = "neutral",
187
+ density = "comfortable",
188
+ size = "xl",
189
+ label,
190
+ motion,
191
+ orientation = "vertical",
192
+ loading = false,
193
+ error,
194
+ locale: localeProp,
195
+ roll = false,
196
+ labels: labelsProp,
197
+ platform,
198
+ style,
199
+ interactive = false,
200
+ onPress
201
+ }) {
202
+ const labels = useLabels("paymentStatus", DEFAULT_LABELS, labelsProp);
203
+ const providerLocale = useLoamLocale();
204
+ const locale = localeProp ?? providerLocale;
205
+ const theme = useLoamTheme("payment-status");
206
+ const { styles } = useStyles(sheet);
207
+ const resolvedHeadline = headline ?? (isAsync ? labels.headlineAsync : labels.headlineSync);
208
+ const active = steps.find((step) => step.status === "active");
209
+ const showAsyncBlock = isAsync && Boolean(asyncNote || reference || reservedUntil);
210
+ return /* @__PURE__ */ jsxs(
211
+ PanelRoot,
212
+ {
213
+ interactive,
214
+ onPress,
215
+ role: "region",
216
+ accessibilityLabel: resolvedHeadline,
217
+ "aria-busy": loading || void 0,
218
+ style: [
219
+ styles.panel,
220
+ density === "compact" ? styles.panelCompact : null,
221
+ panelSurface(theme, { variant, elevation, padding, tone, error }),
222
+ style
223
+ ],
224
+ children: [
225
+ /* @__PURE__ */ jsx(
226
+ Spinner,
227
+ {
228
+ size,
229
+ motion,
230
+ color: tone !== "neutral" ? softToneSkin(theme, tone).edge : void 0,
231
+ accessibilityLabel: label ?? labels.inProgress
232
+ }
233
+ ),
234
+ /* @__PURE__ */ jsxs(View, { style: styles.centred, children: [
235
+ /* @__PURE__ */ jsx(
236
+ Text,
237
+ {
238
+ accessibilityRole: "header",
239
+ style: [
240
+ styles.headline,
241
+ resolveTextRole(theme, "surfaceTitle", isAndroidIdiom(theme, platform))
242
+ ],
243
+ children: resolvedHeadline
244
+ }
245
+ ),
246
+ eta ? /* @__PURE__ */ jsx(Text, { style: styles.eta, children: eta }) : null
247
+ ] }),
248
+ /* @__PURE__ */ jsxs(View, { style: styles.centred, children: [
249
+ /* @__PURE__ */ jsx(
250
+ Amount,
251
+ {
252
+ minor: amount,
253
+ currency,
254
+ size: "lg",
255
+ weight: "bold",
256
+ locale,
257
+ roll,
258
+ motion
259
+ }
260
+ ),
261
+ /* @__PURE__ */ jsx(Text, { style: [styles.method, { color: panelMutedInk(theme, tone) }], children: methodLabel })
262
+ ] }),
263
+ steps.length > 0 ? /* @__PURE__ */ jsx(
264
+ View,
265
+ {
266
+ role: "list",
267
+ accessibilityRole: "list",
268
+ style: [styles.ladder, orientation === "horizontal" ? styles.ladderRow : null],
269
+ children: /* @__PURE__ */ jsx(PanelToneContext.Provider, { value: tone, children: steps.map((step) => /* @__PURE__ */ jsx(ProcessingStepRow, { label: step.label, status: step.status }, step.label)) })
270
+ }
271
+ ) : null,
272
+ /* @__PURE__ */ jsx(PanelFooter, { loading, error, tone }),
273
+ showAsyncBlock ? /* @__PURE__ */ jsxs(View, { style: styles.asyncBlock, children: [
274
+ asyncNote ? /* @__PURE__ */ jsx(Text, { style: styles.asyncBody, children: asyncNote }) : null,
275
+ reference ? /* @__PURE__ */ jsxs(View, { style: styles.referenceRow, children: [
276
+ /* @__PURE__ */ jsx(Text, { style: styles.asyncOverline, children: labels.reference }),
277
+ /* @__PURE__ */ jsx(Text, { selectable: true, style: styles.reference, children: reference })
278
+ ] }) : null,
279
+ reservedUntil ? /* @__PURE__ */ jsxs(View, { style: styles.reservedRow, children: [
280
+ /* @__PURE__ */ jsx(Icon, { name: "clock", size: theme.icon.xs, color: theme.color.infoOnSoft }),
281
+ /* @__PURE__ */ jsx(Text, { style: styles.reserved, children: reservedUntil })
282
+ ] }) : null
283
+ ] }) : null,
284
+ onCancel ? /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onPress: onCancel, children: cancelLabel ?? labels.cancelPayment }) : null,
285
+ /* @__PURE__ */ jsx(
286
+ View,
287
+ {
288
+ role: "status",
289
+ accessibilityLiveRegion: "polite",
290
+ style: styles.srOnly,
291
+ ...{ "aria-live": "polite" },
292
+ children: /* @__PURE__ */ jsx(Text, { style: styles.srOnly, children: active ? labels.processingStatus(resolvedHeadline, active.label) : resolvedHeadline })
293
+ }
294
+ )
295
+ ]
296
+ }
297
+ );
298
+ }
299
+ var sheet = createStyleSheet((theme) => ({
300
+ pillRow: { flexDirection: "row", alignItems: "center", gap: theme.space.s1 },
301
+ pillLabel: {
302
+ fontFamily: theme.font.sans,
303
+ fontWeight: theme.fontWeight.bold,
304
+ fontSize: theme.fontSize[11],
305
+ lineHeight: theme.type.caption2.lineHeight,
306
+ textTransform: "uppercase",
307
+ letterSpacing: theme.fontSize[11] * theme.tracking.caps
308
+ },
309
+ pillCode: {
310
+ fontFamily: theme.font.mono,
311
+ fontSize: theme.fontSize[10],
312
+ lineHeight: theme.type.caption2.lineHeight
313
+ },
314
+ stepRow: { flexDirection: "row", alignItems: "center", gap: theme.space.s2 },
315
+ stepMarker: {
316
+ width: theme.space[20],
317
+ height: theme.space[20],
318
+ alignItems: "center",
319
+ justifyContent: "center"
320
+ },
321
+ stepDot: {
322
+ width: theme.space[10],
323
+ height: theme.space[10],
324
+ borderRadius: theme.radius.full
325
+ },
326
+ stepDotHollow: {
327
+ borderWidth: theme.borderWidth.thick,
328
+ borderColor: theme.color.borderStrong,
329
+ backgroundColor: "transparent"
330
+ },
331
+ stepLabel: {
332
+ flexShrink: 1,
333
+ fontFamily: theme.font.sans,
334
+ fontSize: theme.type.footnote.fontSize,
335
+ lineHeight: theme.type.footnote.lineHeight
336
+ },
337
+ stepLabelActive: { fontWeight: theme.fontWeight.semibold, color: theme.color.text },
338
+ stepLabelDone: { color: theme.color.text2 },
339
+ stepLabelPending: { color: theme.color.text3 },
340
+ panel: {
341
+ alignItems: "center",
342
+ gap: theme.space.s5,
343
+ padding: theme.space[24],
344
+ borderRadius: theme.radius.lg,
345
+ borderWidth: theme.borderWidth.base,
346
+ borderColor: theme.color.border,
347
+ backgroundColor: theme.color.surface
348
+ },
349
+ centred: { alignItems: "center", gap: theme.space.s1 },
350
+ headline: {
351
+ fontFamily: theme.font.display,
352
+ fontWeight: theme.font.displayWeight,
353
+ fontSize: theme.type.title3.fontSize,
354
+ lineHeight: theme.type.title3.lineHeight,
355
+ letterSpacing: theme.type.title3.letterSpacing,
356
+ color: theme.color.text,
357
+ textAlign: "center"
358
+ },
359
+ eta: {
360
+ fontFamily: theme.font.sans,
361
+ fontSize: theme.type.footnote.fontSize,
362
+ lineHeight: theme.type.footnote.lineHeight,
363
+ color: theme.color.text2,
364
+ textAlign: "center"
365
+ },
366
+ method: {
367
+ fontFamily: theme.font.sans,
368
+ fontSize: theme.type.caption1.fontSize,
369
+ lineHeight: theme.type.caption1.lineHeight,
370
+ color: theme.color.text3
371
+ },
372
+ ladder: { alignSelf: "stretch", gap: theme.space.s2 },
373
+ ladderRow: {
374
+ flexDirection: "row",
375
+ flexWrap: "wrap",
376
+ justifyContent: "center",
377
+ columnGap: theme.space.s4
378
+ },
379
+ panelCompact: { gap: theme.space.s3 },
380
+ asyncBlock: {
381
+ alignSelf: "stretch",
382
+ gap: theme.space.s2,
383
+ padding: theme.space.s3,
384
+ borderRadius: theme.radius.md,
385
+ // The soft tint always carries its tone edge.
386
+ borderWidth: theme.borderWidth.base,
387
+ borderColor: theme.edge.info,
388
+ backgroundColor: theme.color.infoSoft
389
+ },
390
+ asyncBody: {
391
+ fontFamily: theme.font.sans,
392
+ fontSize: theme.type.footnote.fontSize,
393
+ lineHeight: theme.type.footnote.fontSize * theme.lineHeight.normal,
394
+ color: theme.color.infoOnSoft
395
+ },
396
+ asyncOverline: {
397
+ ...theme.type.overline,
398
+ fontFamily: theme.font.sans,
399
+ color: theme.color.infoOnSoft
400
+ },
401
+ referenceRow: {
402
+ flexDirection: "row",
403
+ flexWrap: "wrap",
404
+ alignItems: "baseline",
405
+ gap: theme.space.s2
406
+ },
407
+ reference: {
408
+ fontFamily: theme.font.mono,
409
+ fontVariant: ["tabular-nums"],
410
+ fontWeight: theme.fontWeight.medium,
411
+ fontSize: theme.type.caption1.fontSize,
412
+ lineHeight: theme.type.caption1.lineHeight,
413
+ color: theme.color.text2
414
+ },
415
+ reservedRow: { flexDirection: "row", alignItems: "center", gap: theme.space.s1 },
416
+ reserved: {
417
+ fontFamily: theme.font.sans,
418
+ fontSize: theme.type.caption1.fontSize,
419
+ lineHeight: theme.type.caption1.lineHeight,
420
+ color: theme.color.infoOnSoft
421
+ },
422
+ // Announced, never drawn: the panel already states every one of these facts
423
+ // visually, and repeating them on screen would be the same sentence twice.
424
+ srOnly: {
425
+ position: "absolute",
426
+ width: theme.space[1],
427
+ height: theme.space[1],
428
+ overflow: "hidden"
429
+ }
430
+ }));
431
+ function ThreeDSFrame({
432
+ origin,
433
+ secondsLeft,
434
+ timeoutNote,
435
+ chromeLabel: chromeLabelProp,
436
+ cancelLabel: cancelLabelProp,
437
+ elevation = "default",
438
+ loading = false,
439
+ variant = "default",
440
+ padding,
441
+ tone = "neutral",
442
+ error,
443
+ children,
444
+ labels: labelsProp,
445
+ style,
446
+ onCancel,
447
+ interactive = false,
448
+ onPress
449
+ }) {
450
+ const labels = useLabels("paymentStatus", DEFAULT_LABELS, labelsProp);
451
+ const chromeLabel = chromeLabelProp ?? labels.chromeLabel;
452
+ const cancelLabel = cancelLabelProp ?? labels.cancelAndGoBack;
453
+ const theme = useLoamTheme("payment-status");
454
+ const { styles } = useStyles(sheet2, {
455
+ elevation: elevation === "default" ? void 0 : elevation
456
+ });
457
+ const clamped = Math.max(0, Math.min(secondsLeft, THREE_DS_TIMEOUT_SECONDS));
458
+ return /* @__PURE__ */ jsxs(
459
+ PanelRoot,
460
+ {
461
+ interactive,
462
+ onPress,
463
+ role: "region",
464
+ accessibilityLabel: chromeLabel,
465
+ accessibilityState: loading ? { busy: true } : void 0,
466
+ "aria-busy": loading || void 0,
467
+ style: [
468
+ styles.frame,
469
+ panelSurface(theme, {
470
+ variant,
471
+ padding: padding === "none" ? void 0 : padding,
472
+ tone,
473
+ error
474
+ }),
475
+ style
476
+ ],
477
+ children: [
478
+ /* @__PURE__ */ jsxs(
479
+ View,
480
+ {
481
+ style: [
482
+ styles.chrome,
483
+ tone !== "neutral" ? { backgroundColor: softToneSkin(theme, tone).fill } : null
484
+ ],
485
+ children: [
486
+ /* @__PURE__ */ jsx(SecurePayLabel, { label: chromeLabel }),
487
+ /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles.origin, { color: panelMutedInk(theme, tone) }], children: origin }),
488
+ /* @__PURE__ */ jsx(View, { style: styles.pushEnd, children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onPress: onCancel, children: cancelLabel }) })
489
+ ]
490
+ }
491
+ ),
492
+ /* @__PURE__ */ jsxs(View, { children: [
493
+ children,
494
+ loading ? /* @__PURE__ */ jsxs(View, { testID: "threeds-loading", style: styles.loading, children: [
495
+ /* @__PURE__ */ jsx(View, { style: { width: "40%" }, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", decorative: true }) }),
496
+ /* @__PURE__ */ jsx(View, { style: { width: "70%" }, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", decorative: true }) }),
497
+ /* @__PURE__ */ jsx(Skeleton, { variant: "rect", height: theme.ctl.lg, decorative: true })
498
+ ] }) : null
499
+ ] }),
500
+ error ? /* @__PURE__ */ jsx(View, { style: styles.errorWrap, children: /* @__PURE__ */ jsx(PanelFooter, { error, tone }) }) : null,
501
+ /* @__PURE__ */ jsxs(View, { style: styles.footer, children: [
502
+ /* @__PURE__ */ jsx(Icon, { name: "clock", size: theme.icon.xs, color: panelMutedInk(theme, tone) }),
503
+ /* @__PURE__ */ jsx(Text, { role: "timer", style: styles.clock, children: formatTime(clamped) }),
504
+ timeoutNote ? /* @__PURE__ */ jsx(Text, { style: [styles.timeoutNote, { color: panelMutedInk(theme, tone) }], children: timeoutNote }) : null
505
+ ] })
506
+ ]
507
+ }
508
+ );
509
+ }
510
+ function ChallengeSurface({
511
+ bankName,
512
+ amountLabel,
513
+ maskedContact,
514
+ digits = 6,
515
+ code,
516
+ error,
517
+ busy = false,
518
+ note,
519
+ submitLabel,
520
+ variant = "default",
521
+ elevation = "default",
522
+ padding,
523
+ tone = "neutral",
524
+ density = "comfortable",
525
+ size = "lg",
526
+ disabled = false,
527
+ labels: labelsProp,
528
+ style,
529
+ onChangeCode,
530
+ onSubmit,
531
+ interactive = false,
532
+ onPress
533
+ }) {
534
+ const labels = useLabels("paymentStatus", DEFAULT_LABELS, labelsProp);
535
+ const theme = useLoamTheme("payment-status");
536
+ const { styles } = useStyles(sheet2);
537
+ return /* @__PURE__ */ jsxs(
538
+ PanelRoot,
539
+ {
540
+ interactive,
541
+ onPress,
542
+ "aria-disabled": disabled || void 0,
543
+ pointerEvents: disabled ? "none" : void 0,
544
+ style: [
545
+ styles.challenge,
546
+ density === "compact" ? styles.challengeCompact : null,
547
+ panelSurface(theme, { variant, elevation, padding, tone }),
548
+ disabled ? { opacity: theme.state.disabledOpacity } : null,
549
+ style
550
+ ],
551
+ children: [
552
+ /* @__PURE__ */ jsxs(View, { style: styles.challengeHead, children: [
553
+ /* @__PURE__ */ jsx(Text, { style: styles.bankName, children: bankName }),
554
+ /* @__PURE__ */ jsxs(View, { style: styles.authoriseRow, children: [
555
+ /* @__PURE__ */ jsx(Text, { style: styles.authorise, children: labels.authorise }),
556
+ amountLabel
557
+ ] }),
558
+ /* @__PURE__ */ jsx(Text, { style: [styles.sentTo, { color: panelMutedInk(theme, tone) }], children: labels.codeSent(maskedContact) })
559
+ ] }),
560
+ /* @__PURE__ */ jsx(View, { role: "group", children: /* @__PURE__ */ jsx(
561
+ OTP,
562
+ {
563
+ length: digits,
564
+ value: code,
565
+ error,
566
+ disabled,
567
+ accessibilityLabel: labels.codeGroup(digits),
568
+ onChangeText: onChangeCode
569
+ }
570
+ ) }),
571
+ /* @__PURE__ */ jsx(Button, { size, fullWidth: true, loading: busy, onPress: () => onSubmit(code), children: submitLabel ?? labels.approve }),
572
+ note ? /* @__PURE__ */ jsx(Text, { style: [styles.note, { color: panelMutedInk(theme, tone) }], children: note }) : null
573
+ ]
574
+ }
575
+ );
576
+ }
577
+ var sheet2 = createStyleSheet((theme) => ({
578
+ frame: {
579
+ alignSelf: "stretch",
580
+ overflow: "hidden",
581
+ borderRadius: theme.radius.lg,
582
+ borderWidth: theme.borderWidth.base,
583
+ borderColor: theme.color.border,
584
+ backgroundColor: theme.color.surface,
585
+ variants: {
586
+ elevation: {
587
+ flat: {},
588
+ raised: { ...theme.shadow.lg }
589
+ }
590
+ }
591
+ },
592
+ // The skeleton sits over the bank's surface until the page has loaded.
593
+ loading: {
594
+ ...StyleSheet.absoluteFillObject,
595
+ gap: theme.space.s3,
596
+ padding: theme.space.s5,
597
+ backgroundColor: theme.color.surface
598
+ },
599
+ errorWrap: { padding: theme.space.s3 },
600
+ chrome: {
601
+ flexDirection: "row",
602
+ flexWrap: "wrap",
603
+ alignItems: "center",
604
+ columnGap: theme.space.s3,
605
+ rowGap: theme.space.s1,
606
+ padding: theme.space.s3,
607
+ borderBottomWidth: theme.borderWidth.base,
608
+ borderBottomColor: theme.color.border,
609
+ backgroundColor: theme.color.surface2
610
+ },
611
+ origin: {
612
+ flexShrink: 1,
613
+ fontFamily: theme.font.mono,
614
+ fontSize: theme.type.caption1.fontSize,
615
+ lineHeight: theme.type.caption1.lineHeight,
616
+ color: theme.color.text3
617
+ },
618
+ pushEnd: { marginStart: "auto" },
619
+ footer: {
620
+ flexDirection: "row",
621
+ flexWrap: "wrap",
622
+ alignItems: "center",
623
+ columnGap: theme.space.s2,
624
+ rowGap: theme.space.s1,
625
+ padding: theme.space.s3,
626
+ borderTopWidth: theme.borderWidth.base,
627
+ borderTopColor: theme.color.border
628
+ },
629
+ clock: {
630
+ fontFamily: theme.font.mono,
631
+ fontVariant: ["tabular-nums"],
632
+ fontSize: theme.type.caption1.fontSize,
633
+ lineHeight: theme.type.caption1.lineHeight,
634
+ color: theme.color.text2
635
+ },
636
+ timeoutNote: {
637
+ flexShrink: 1,
638
+ fontFamily: theme.font.sans,
639
+ fontSize: theme.type.caption1.fontSize,
640
+ lineHeight: theme.type.caption1.fontSize * theme.lineHeight.normal,
641
+ color: theme.color.text3
642
+ },
643
+ challenge: {
644
+ gap: theme.space.s4,
645
+ padding: theme.space.s5,
646
+ backgroundColor: theme.color.surface
647
+ },
648
+ challengeCompact: { gap: theme.space.s2 },
649
+ challengeHead: { gap: theme.space.s1 },
650
+ bankName: {
651
+ fontFamily: theme.font.sans,
652
+ fontWeight: theme.fontWeight.bold,
653
+ fontSize: theme.type.footnote.fontSize,
654
+ lineHeight: theme.type.footnote.lineHeight,
655
+ color: theme.color.text
656
+ },
657
+ authoriseRow: {
658
+ flexDirection: "row",
659
+ flexWrap: "wrap",
660
+ alignItems: "baseline",
661
+ gap: theme.space.s1
662
+ },
663
+ authorise: {
664
+ fontFamily: theme.font.sans,
665
+ fontSize: theme.type.footnote.fontSize,
666
+ lineHeight: theme.type.footnote.lineHeight,
667
+ color: theme.color.text2
668
+ },
669
+ sentTo: {
670
+ fontFamily: theme.font.sans,
671
+ fontSize: theme.type.caption1.fontSize,
672
+ lineHeight: theme.type.caption1.lineHeight,
673
+ color: theme.color.text3
674
+ },
675
+ note: {
676
+ fontFamily: theme.font.sans,
677
+ fontSize: theme.type.caption1.fontSize,
678
+ lineHeight: theme.type.caption1.lineHeight,
679
+ color: theme.color.text3
680
+ }
681
+ }));
682
+ function recoveryIcon(name) {
683
+ return Object.prototype.hasOwnProperty.call(icons, name) ? name : "refresh";
684
+ }
685
+ function DetailRow({
686
+ term,
687
+ value,
688
+ tabular = false
689
+ }) {
690
+ const { styles } = useStyles(sheet3);
691
+ return /* @__PURE__ */ jsxs(View, { style: styles.detailRow, children: [
692
+ /* @__PURE__ */ jsx(Text, { style: styles.detailTerm, children: term }),
693
+ /* @__PURE__ */ jsx(Text, { selectable: true, style: [styles.detailValue, tabular ? styles.tabular : null], children: value })
694
+ ] });
695
+ }
696
+ function DeclineNotice({
697
+ decline,
698
+ attempt,
699
+ attemptsAllowed = 3,
700
+ intentId,
701
+ actions,
702
+ showSupportDetails = false,
703
+ detailsLabel,
704
+ nextLabel,
705
+ variant = "default",
706
+ size = "md",
707
+ density = "comfortable",
708
+ icon,
709
+ orientation = "horizontal",
710
+ align,
711
+ disabled = false,
712
+ loading = false,
713
+ error,
714
+ dismissible = false,
715
+ motion,
716
+ onDismiss,
717
+ labels: labelsProp,
718
+ platform,
719
+ style,
720
+ onAction,
721
+ onToggleDetails
722
+ }) {
723
+ const theme = useLoamTheme("payment-status");
724
+ const android = isAndroidIdiom(theme, platform);
725
+ const { styles } = useStyles(sheet3);
726
+ const labels = useLabels("paymentStatus", DEFAULT_LABELS, labelsProp);
727
+ const pay = usePayLabels(labelsProp);
728
+ const text = declineText(decline, pay);
729
+ const detailsId = React.useId();
730
+ const ladder = actions ?? recoveryActions(decline, pay);
731
+ const headline = declineHeadline(decline, pay);
732
+ const animated = motion === "full" || motion === "reduced";
733
+ const opacity = React.useRef(new Animated.Value(animated ? 0 : 1)).current;
734
+ React.useEffect(() => {
735
+ if (!animated) return;
736
+ const anim = motion === "full" && !theme.reduceMotion ? Animated.spring(opacity, {
737
+ ...springConfig(theme, "ds"),
738
+ toValue: 1,
739
+ useNativeDriver: true
740
+ }) : Animated.timing(opacity, {
741
+ ...motionTiming("reduced"),
742
+ toValue: 1,
743
+ useNativeDriver: true
744
+ });
745
+ anim.start();
746
+ return () => anim.stop();
747
+ }, []);
748
+ return /* @__PURE__ */ jsxs(
749
+ Animated.View,
750
+ {
751
+ role: "alert",
752
+ accessibilityLiveRegion: "assertive",
753
+ accessibilityLabel: headline,
754
+ testID: `decline-${decline.route}-${decline.soft ? "soft" : "hard"}`,
755
+ "aria-busy": loading || void 0,
756
+ style: [
757
+ styles.notice,
758
+ variant === "outline" ? { backgroundColor: theme.color.surface } : null,
759
+ variant === "elevated" ? theme.shadow.md : null,
760
+ size === "compact" ? styles.noticeCompact : null,
761
+ style,
762
+ animated ? { opacity } : null
763
+ ],
764
+ children: [
765
+ /* @__PURE__ */ jsxs(View, { style: styles.headRow, children: [
766
+ /* @__PURE__ */ jsx(Icon, { name: icon ?? "alert-circle", size: theme.icon.md, color: theme.color.dangerOnSoft }),
767
+ /* @__PURE__ */ jsxs(View, { style: styles.headBody, children: [
768
+ /* @__PURE__ */ jsx(
769
+ Text,
770
+ {
771
+ accessibilityRole: "header",
772
+ style: [styles.headline, resolveTextRole(theme, "surfaceTitle", android)],
773
+ children: headline
774
+ }
775
+ ),
776
+ /* @__PURE__ */ jsxs(Text, { style: styles.explain, children: [
777
+ `${text.user} `,
778
+ /* @__PURE__ */ jsx(Text, { style: styles.nothingCharged, children: nothingChargedText(pay) })
779
+ ] })
780
+ ] }),
781
+ dismissible || onDismiss ? /* @__PURE__ */ jsx(
782
+ DismissButton,
783
+ {
784
+ label: labels.dismiss,
785
+ onPress: () => onDismiss?.(),
786
+ color: theme.color.dangerOnSoft
787
+ }
788
+ ) : null
789
+ ] }),
790
+ /* @__PURE__ */ jsxs(View, { style: styles.nextBox, children: [
791
+ /* @__PURE__ */ jsx(Text, { style: styles.overline, children: nextLabel ?? labels.nextStep }),
792
+ /* @__PURE__ */ jsx(Text, { style: styles.nextBody, children: text.next })
793
+ ] }),
794
+ error ? /* @__PURE__ */ jsx(PanelFooter, { error }) : null,
795
+ /* @__PURE__ */ jsx(
796
+ View,
797
+ {
798
+ style: [
799
+ styles.ladder,
800
+ android ? styles.ladderEnd : null,
801
+ density === "compact" ? styles.ladderCompact : null,
802
+ orientation === "vertical" ? styles.ladderVertical : null,
803
+ align ? {
804
+ justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
805
+ } : null
806
+ ],
807
+ children: (android ? [
808
+ ...ladder.filter((a) => a.kind !== "primary"),
809
+ ...ladder.filter((a) => a.kind === "primary")
810
+ ] : ladder).map((action) => /* @__PURE__ */ jsx(
811
+ View,
812
+ {
813
+ style: android || orientation === "vertical" ? orientation === "vertical" ? styles.ladderStack : null : styles.ladderShare,
814
+ children: /* @__PURE__ */ jsx(
815
+ Button,
816
+ {
817
+ fullWidth: !android,
818
+ variant: action.kind === "primary" ? "primary" : "outline",
819
+ size: "sm",
820
+ loading,
821
+ disabled,
822
+ leadingIcon: recoveryIcon(action.icon),
823
+ onPress: () => onAction(action),
824
+ children: action.label
825
+ }
826
+ )
827
+ },
828
+ `${action.kind}-${action.label}`
829
+ ))
830
+ }
831
+ ),
832
+ onToggleDetails ? /* @__PURE__ */ jsxs(View, { style: styles.drawer, children: [
833
+ /* @__PURE__ */ jsxs(
834
+ Pressable,
835
+ {
836
+ accessibilityRole: "button",
837
+ accessibilityState: { expanded: showSupportDetails },
838
+ ...expandedProps(showSupportDetails),
839
+ "aria-controls": detailsId,
840
+ disabled,
841
+ onPress: () => onToggleDetails(!showSupportDetails),
842
+ style: styles.drawerTrigger,
843
+ children: [
844
+ /* @__PURE__ */ jsx(
845
+ Icon,
846
+ {
847
+ name: showSupportDetails ? "chevron-up" : "chevron-down",
848
+ size: theme.icon.xs,
849
+ color: theme.color.accentStrong
850
+ }
851
+ ),
852
+ /* @__PURE__ */ jsx(Text, { style: styles.drawerLabel, children: detailsLabel ?? labels.detailsForSupport })
853
+ ]
854
+ }
855
+ ),
856
+ showSupportDetails ? /* @__PURE__ */ jsxs(View, { nativeID: detailsId, style: styles.details, children: [
857
+ /* @__PURE__ */ jsx(DetailRow, { term: labels.declineCode, value: decline.code }),
858
+ /* @__PURE__ */ jsx(DetailRow, { term: labels.network, value: decline.soft ? labels.soft : labels.hard }),
859
+ /* @__PURE__ */ jsx(
860
+ DetailRow,
861
+ {
862
+ term: labels.attempt,
863
+ value: labels.attemptOf(attempt, attemptsAllowed),
864
+ tabular: true
865
+ }
866
+ ),
867
+ /* @__PURE__ */ jsx(DetailRow, { term: labels.intent, value: intentId })
868
+ ] }) : null
869
+ ] }) : null
870
+ ]
871
+ }
872
+ );
873
+ }
874
+ var sheet3 = createStyleSheet((theme) => ({
875
+ notice: {
876
+ alignSelf: "stretch",
877
+ gap: theme.space.s3,
878
+ padding: theme.space.s4,
879
+ borderRadius: theme.radius.lg,
880
+ // The soft fill always carries its tone edge: the tint collapses to the
881
+ // plain surface under high contrast, and the edge is then the only thing
882
+ // drawing the block.
883
+ borderWidth: theme.borderWidth.base,
884
+ borderColor: theme.edge.danger,
885
+ backgroundColor: theme.color.dangerSoft
886
+ },
887
+ headRow: { flexDirection: "row", alignItems: "flex-start", gap: theme.space.s2 },
888
+ headBody: { flex: 1, gap: theme.space.s1 },
889
+ headline: {
890
+ fontFamily: theme.font.sans,
891
+ fontWeight: theme.fontWeight.bold,
892
+ fontSize: theme.fontSize[14],
893
+ color: theme.color.dangerOnSoft
894
+ },
895
+ explain: {
896
+ fontFamily: theme.font.sans,
897
+ fontSize: theme.type.footnote.fontSize,
898
+ lineHeight: theme.type.footnote.fontSize * theme.lineHeight.normal,
899
+ color: theme.color.dangerOnSoft
900
+ },
901
+ nothingCharged: { fontWeight: theme.fontWeight.bold },
902
+ nextBox: {
903
+ gap: theme.space.s1,
904
+ padding: theme.space.s3,
905
+ borderRadius: theme.radius.md,
906
+ borderWidth: theme.borderWidth.base,
907
+ borderColor: theme.color.border,
908
+ backgroundColor: theme.color.surface
909
+ },
910
+ overline: {
911
+ ...theme.type.overline,
912
+ fontFamily: theme.font.sans,
913
+ color: theme.color.text3
914
+ },
915
+ nextBody: {
916
+ fontFamily: theme.font.sans,
917
+ fontSize: theme.type.footnote.fontSize,
918
+ lineHeight: theme.type.footnote.fontSize * theme.lineHeight.normal,
919
+ color: theme.color.text
920
+ },
921
+ ladder: { flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: theme.space.s2 },
922
+ // iOS: the actions share the width (F30); Android: end-aligned, outline at
923
+ // the start and primary at the end.
924
+ ladderShare: { flexGrow: 1, flexBasis: "auto" },
925
+ ladderCompact: { gap: theme.space.s1 },
926
+ ladderVertical: { flexDirection: "column", alignItems: "stretch" },
927
+ ladderStack: { alignSelf: "stretch" },
928
+ noticeCompact: { padding: theme.space.s3, gap: theme.space.s2 },
929
+ ladderEnd: { justifyContent: "flex-end" },
930
+ drawer: { gap: theme.space.s2 },
931
+ drawerTrigger: {
932
+ flexDirection: "row",
933
+ alignItems: "center",
934
+ alignSelf: "flex-start",
935
+ gap: theme.space.s1,
936
+ minHeight: theme.hit.sm
937
+ },
938
+ drawerLabel: {
939
+ fontFamily: theme.font.sans,
940
+ // F39: the reason toggle is the link Button at sm — accent-strong, the sm
941
+ // control label.
942
+ fontWeight: theme.fontWeight.semibold,
943
+ fontSize: theme.ctl.fs.sm,
944
+ color: theme.color.accentStrong
945
+ },
946
+ details: {
947
+ gap: theme.space.s1,
948
+ padding: theme.space.s3,
949
+ borderRadius: theme.radius.md,
950
+ borderWidth: theme.borderWidth.base,
951
+ borderColor: theme.color.border,
952
+ backgroundColor: theme.color.surface
953
+ },
954
+ detailRow: { flexDirection: "row", alignItems: "flex-start", gap: theme.space.s3 },
955
+ detailTerm: {
956
+ fontFamily: theme.font.mono,
957
+ fontSize: theme.type.caption1.fontSize,
958
+ lineHeight: theme.type.caption1.lineHeight,
959
+ color: theme.color.text3
960
+ },
961
+ detailValue: {
962
+ flexShrink: 1,
963
+ fontFamily: theme.font.mono,
964
+ fontSize: theme.type.caption1.fontSize,
965
+ lineHeight: theme.type.caption1.lineHeight,
966
+ color: theme.color.text2
967
+ },
968
+ tabular: { fontVariant: ["tabular-nums"] }
969
+ }));
970
+ var RING_TO = 1.6;
971
+ function ReceiptPanel({
972
+ amount,
973
+ currency,
974
+ title: titleProp,
975
+ methodLabel,
976
+ dateLabel,
977
+ receiptId,
978
+ email,
979
+ nextNote,
980
+ actions,
981
+ motion = "full",
982
+ variant = "default",
983
+ elevation = "default",
984
+ padding,
985
+ tone = "neutral",
986
+ density = "comfortable",
987
+ size = "hero",
988
+ roll,
989
+ unit,
990
+ delta,
991
+ caption,
992
+ orientation = "vertical",
993
+ align = "center",
994
+ loading = false,
995
+ error,
996
+ locale: localeProp,
997
+ labels: labelsProp,
998
+ platform,
999
+ style,
1000
+ onAction,
1001
+ interactive = false,
1002
+ onPress
1003
+ }) {
1004
+ const labels = useLabels("paymentStatus", DEFAULT_LABELS, labelsProp);
1005
+ const providerLocale = useLoamLocale();
1006
+ const locale = localeProp ?? providerLocale;
1007
+ const title = titleProp ?? labels.receiptTitle;
1008
+ const theme = useLoamTheme("payment-status");
1009
+ const tinted = tone !== "neutral";
1010
+ const deltaSign = delta?.trim().charAt(0);
1011
+ const deltaInk = tone === "good" && deltaSign === "+" ? theme.color.goodOnSoft : tone === "danger" && (deltaSign === "-" || deltaSign === "\u2212") ? theme.color.dangerOnSoft : theme.color.text2;
1012
+ const android = isAndroidIdiom(theme, platform);
1013
+ const { styles } = useStyles(sheet4);
1014
+ const resolved = useResolvedMotion(motion, "payment-status");
1015
+ const drawing = resolved === "full";
1016
+ const plate = React.useRef(new Animated.Value(drawing ? 0 : 1)).current;
1017
+ const ring = React.useRef(new Animated.Value(0)).current;
1018
+ React.useEffect(() => {
1019
+ if (!drawing) {
1020
+ plate.setValue(1);
1021
+ ring.setValue(0);
1022
+ return;
1023
+ }
1024
+ const easing = Easing.bezier(...theme.easing.out);
1025
+ const anim = Animated.parallel([
1026
+ Animated.timing(plate, {
1027
+ toValue: 1,
1028
+ duration: theme.duration.slow,
1029
+ easing,
1030
+ useNativeDriver: true
1031
+ }),
1032
+ Animated.timing(ring, {
1033
+ toValue: 1,
1034
+ duration: theme.duration.slower,
1035
+ easing,
1036
+ useNativeDriver: true
1037
+ })
1038
+ ]);
1039
+ anim.start();
1040
+ return () => anim.stop();
1041
+ }, [drawing, plate, ring, theme.easing.out, theme.duration.slow, theme.duration.slower]);
1042
+ const facts = [
1043
+ { term: labels.method, description: methodLabel },
1044
+ { term: labels.date, description: dateLabel },
1045
+ {
1046
+ term: labels.receipt,
1047
+ description: /* @__PURE__ */ jsx(Text, { selectable: true, style: styles.mono, children: receiptId })
1048
+ }
1049
+ ];
1050
+ if (email) facts.push({ term: labels.sentTo, description: email });
1051
+ return /* @__PURE__ */ jsxs(
1052
+ PanelRoot,
1053
+ {
1054
+ interactive,
1055
+ onPress,
1056
+ role: "region",
1057
+ accessibilityLabel: title,
1058
+ "aria-busy": loading || void 0,
1059
+ style: [
1060
+ styles.panel,
1061
+ density === "compact" ? styles.panelCompact : null,
1062
+ align === "start" ? styles.panelStart : null,
1063
+ panelSurface(theme, { variant, elevation, padding, tone, error }),
1064
+ style
1065
+ ],
1066
+ children: [
1067
+ /* @__PURE__ */ jsxs(View, { style: orientation === "horizontal" ? styles.headRowH : styles.headRowV, children: [
1068
+ /* @__PURE__ */ jsxs(
1069
+ View,
1070
+ {
1071
+ style: styles.mark,
1072
+ "aria-hidden": true,
1073
+ accessibilityElementsHidden: true,
1074
+ importantForAccessibility: "no-hide-descendants",
1075
+ children: [
1076
+ drawing ? /* @__PURE__ */ jsx(
1077
+ Animated.View,
1078
+ {
1079
+ style: [
1080
+ styles.ring,
1081
+ {
1082
+ opacity: ring.interpolate({ inputRange: [0, 1], outputRange: [1, 0] }),
1083
+ transform: [
1084
+ { scale: ring.interpolate({ inputRange: [0, 1], outputRange: [1, RING_TO] }) }
1085
+ ]
1086
+ }
1087
+ ]
1088
+ }
1089
+ ) : null,
1090
+ /* @__PURE__ */ jsx(Animated.View, { style: [styles.plate, { transform: [{ scale: plate }] }], children: /* @__PURE__ */ jsx(
1091
+ Icon,
1092
+ {
1093
+ name: "check",
1094
+ size: theme.icon.lg,
1095
+ color: theme.color.goodOnSoft,
1096
+ strokeWidth: theme.icon.strokeBold
1097
+ }
1098
+ ) })
1099
+ ]
1100
+ }
1101
+ ),
1102
+ /* @__PURE__ */ jsxs(View, { style: [styles.head, align === "start" ? styles.headStart : null], children: [
1103
+ /* @__PURE__ */ jsx(
1104
+ Text,
1105
+ {
1106
+ accessibilityRole: "header",
1107
+ style: [styles.title, resolveTextRole(theme, "surfaceTitle", android)],
1108
+ children: title
1109
+ }
1110
+ ),
1111
+ /* @__PURE__ */ jsx(
1112
+ Amount,
1113
+ {
1114
+ minor: amount,
1115
+ currency,
1116
+ size,
1117
+ locale,
1118
+ roll,
1119
+ unit,
1120
+ delta: tinted ? void 0 : delta,
1121
+ caption: tinted ? void 0 : caption
1122
+ }
1123
+ ),
1124
+ tinted && delta ? /* @__PURE__ */ jsx(Text, { style: [styles.delta, { color: deltaInk }], children: delta }) : null,
1125
+ tinted && caption ? /* @__PURE__ */ jsx(Text, { style: styles.caption, children: caption }) : null
1126
+ ] })
1127
+ ] }),
1128
+ /* @__PURE__ */ jsx(View, { style: styles.facts, children: /* @__PURE__ */ jsx(DescriptionList, { layout: "inline", density: "compact", items: facts }) }),
1129
+ /* @__PURE__ */ jsx(PanelFooter, { loading, error, tone }),
1130
+ nextNote ? /* @__PURE__ */ jsx(Text, { style: styles.nextNote, children: nextNote }) : null,
1131
+ actions && actions.length > 0 ? /* @__PURE__ */ jsx(View, { style: [styles.actions, android ? styles.actionsEnd : null], children: footerOrder(actions, android).map((action) => /* @__PURE__ */ jsx(View, { style: android ? null : styles.actionShare, children: /* @__PURE__ */ jsx(
1132
+ Button,
1133
+ {
1134
+ fullWidth: !android,
1135
+ variant: action.kind === "primary" ? "primary" : "outline",
1136
+ leadingIcon: action.icon && Object.prototype.hasOwnProperty.call(icons, action.icon) ? action.icon : void 0,
1137
+ onPress: () => onAction?.(action),
1138
+ children: action.label
1139
+ }
1140
+ ) }, action.id)) }) : null,
1141
+ /* @__PURE__ */ jsx(
1142
+ View,
1143
+ {
1144
+ role: "status",
1145
+ accessibilityLiveRegion: "polite",
1146
+ style: styles.srOnly,
1147
+ ...{ "aria-live": "polite" },
1148
+ children: /* @__PURE__ */ jsx(Text, { style: styles.srOnly, children: labels.receiptStatus(title, receiptId) })
1149
+ }
1150
+ )
1151
+ ]
1152
+ }
1153
+ );
1154
+ }
1155
+ var sheet4 = createStyleSheet((theme) => ({
1156
+ panel: {
1157
+ alignSelf: "stretch",
1158
+ alignItems: "center",
1159
+ gap: theme.space.s5,
1160
+ padding: theme.space.s5,
1161
+ borderRadius: theme.radius.lg,
1162
+ borderWidth: theme.borderWidth.base,
1163
+ borderColor: theme.color.border,
1164
+ backgroundColor: theme.color.surface
1165
+ },
1166
+ mark: {
1167
+ width: theme.space[56],
1168
+ height: theme.space[56],
1169
+ alignItems: "center",
1170
+ justifyContent: "center"
1171
+ },
1172
+ ring: {
1173
+ position: "absolute",
1174
+ width: theme.space[56],
1175
+ height: theme.space[56],
1176
+ borderRadius: theme.radius.full,
1177
+ borderWidth: theme.borderWidth.thick,
1178
+ borderColor: theme.color.good
1179
+ },
1180
+ plate: {
1181
+ width: theme.space[56],
1182
+ height: theme.space[56],
1183
+ alignItems: "center",
1184
+ justifyContent: "center",
1185
+ borderRadius: theme.radius.full,
1186
+ // The soft tint always carries its tone edge.
1187
+ borderWidth: theme.borderWidth.base,
1188
+ borderColor: theme.edge.good,
1189
+ backgroundColor: theme.color.goodSoft
1190
+ },
1191
+ head: { alignItems: "center", gap: theme.space.s2 },
1192
+ delta: {
1193
+ fontFamily: theme.font.sans,
1194
+ fontVariant: ["tabular-nums"],
1195
+ fontWeight: theme.fontWeight.medium,
1196
+ fontSize: theme.fontSize[13]
1197
+ },
1198
+ caption: { fontFamily: theme.font.sans, fontSize: theme.fontSize[12], color: theme.color.text2 },
1199
+ headStart: { alignItems: "flex-start" },
1200
+ headRowV: { alignItems: "center", gap: theme.space.s5 },
1201
+ headRowH: { flexDirection: "row", alignItems: "center", gap: theme.space.s4 },
1202
+ panelCompact: { gap: theme.space.s3 },
1203
+ panelStart: { alignItems: "flex-start" },
1204
+ title: {
1205
+ fontFamily: theme.font.display,
1206
+ fontWeight: theme.font.displayWeight,
1207
+ fontSize: theme.type.title3.fontSize,
1208
+ lineHeight: theme.type.title3.lineHeight,
1209
+ letterSpacing: theme.type.title3.letterSpacing,
1210
+ color: theme.color.text,
1211
+ textAlign: "center"
1212
+ },
1213
+ facts: { alignSelf: "stretch" },
1214
+ mono: {
1215
+ fontFamily: theme.font.mono,
1216
+ fontVariant: ["tabular-nums"],
1217
+ fontSize: theme.type.footnote.fontSize,
1218
+ lineHeight: theme.type.footnote.lineHeight,
1219
+ color: theme.color.text
1220
+ },
1221
+ nextNote: {
1222
+ fontFamily: theme.font.sans,
1223
+ fontSize: theme.type.footnote.fontSize,
1224
+ lineHeight: theme.type.footnote.fontSize * theme.lineHeight.normal,
1225
+ color: theme.color.text2,
1226
+ textAlign: "center"
1227
+ },
1228
+ // iOS: the footer actions share the width (F29); Android: end-aligned,
1229
+ // outline at the start and primary at the end.
1230
+ actionShare: { flexGrow: 1, flexBasis: "auto" },
1231
+ actionsEnd: { justifyContent: "flex-end" },
1232
+ actions: {
1233
+ flexDirection: "row",
1234
+ flexWrap: "wrap",
1235
+ alignItems: "center",
1236
+ justifyContent: "center",
1237
+ gap: theme.space.s2
1238
+ },
1239
+ srOnly: {
1240
+ position: "absolute",
1241
+ width: theme.space[1],
1242
+ height: theme.space[1],
1243
+ overflow: "hidden"
1244
+ }
1245
+ }));
1246
+ function footerOrder(list, android) {
1247
+ if (!android) return [...list];
1248
+ return [...list.filter((a) => a.kind !== "primary"), ...list.filter((a) => a.kind === "primary")];
1249
+ }
1250
+
1251
+ export { ChallengeSurface, DeclineNotice, ProcessingPanel, ProcessingStepRow, ReceiptPanel, StatePill, ThreeDSFrame, recoveryIcon };