@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.
- package/dist/accordion/index.js +7 -3
- package/dist/adaptive/index.js +16 -2
- package/dist/address-block/index.js +23 -0
- package/dist/alert/index.js +8 -2
- package/dist/analyzer/index.js +17 -6
- package/dist/announcement/index.js +18 -5
- package/dist/appearance-picker/index.js +15 -0
- package/dist/audio-player/index.js +29 -3
- package/dist/avatar/index.js +5 -2
- package/dist/avatar-group/index.js +9 -3
- package/dist/badge/index.js +10 -4
- package/dist/banner/index.js +6 -2
- package/dist/board/index.js +18 -6
- package/dist/button/index.js +9 -3
- package/dist/camera-permission/index.js +23 -12
- package/dist/capture-result/index.js +30 -17
- package/dist/card/index.js +10 -3
- package/dist/card-form/index.js +19 -9
- package/dist/carousel/index.js +6 -2
- package/dist/chart/index.js +18 -5
- package/dist/charts/index.js +21 -6
- package/dist/chat/index.js +41 -0
- package/dist/checkbox/index.js +9 -5
- package/dist/checklist/index.js +20 -8
- package/dist/checkout/index.js +30 -12
- package/dist/chip/index.js +11 -5
- package/dist/chunk-2BZD3NAP.js +1110 -0
- package/dist/chunk-2YKVID2V.js +35 -0
- package/dist/{chunk-JUAMLEHX.js → chunk-36DA3IPO.js} +137 -37
- package/dist/chunk-3A56MIAN.js +599 -0
- package/dist/chunk-3SCKCWF5.js +298 -0
- package/dist/chunk-3TZNDHKO.js +187 -0
- package/dist/chunk-43K3BLXV.js +9 -0
- package/dist/chunk-46ZJIQ2Z.js +208 -0
- package/dist/chunk-4CZMQDQL.js +192 -0
- package/dist/chunk-5DTKORLI.js +255 -0
- package/dist/{chunk-LOE5YNN3.js → chunk-5J4WFXFA.js} +68 -24
- package/dist/chunk-5KJ7TEQ6.js +305 -0
- package/dist/chunk-5NU33TXK.js +529 -0
- package/dist/chunk-5Z5ZYMOJ.js +1 -0
- package/dist/chunk-6KSUS7DF.js +690 -0
- package/dist/chunk-6RV6UW2J.js +349 -0
- package/dist/chunk-6RZM7RP2.js +520 -0
- package/dist/{chunk-4BXMXBJO.js → chunk-75BDCC7K.js} +24 -11
- package/dist/{chunk-PZXZJBMP.js → chunk-7CGJBQUA.js} +357 -32
- package/dist/{chunk-CJ5EOYZE.js → chunk-7IVF6JLJ.js} +24 -7
- package/dist/chunk-7IWCGXYA.js +143 -0
- package/dist/chunk-7LM4ASFH.js +172 -0
- package/dist/chunk-7MCEJFWV.js +341 -0
- package/dist/chunk-7NGMUVNU.js +245 -0
- package/dist/chunk-7PBSIXT7.js +355 -0
- package/dist/chunk-7QOYGENL.js +443 -0
- package/dist/{chunk-H6NIOQHK.js → chunk-A7SWYDE5.js} +66 -15
- package/dist/chunk-ADHPJALR.js +3051 -0
- package/dist/chunk-ALJYZLNQ.js +509 -0
- package/dist/chunk-APCWFOZW.js +28 -0
- package/dist/chunk-AQ5FIG74.js +419 -0
- package/dist/chunk-AWKQIE5I.js +139 -0
- package/dist/chunk-B2MMZZQB.js +426 -0
- package/dist/{chunk-ZVFE5QGU.js → chunk-B7JZ3N5G.js} +174 -97
- package/dist/chunk-BL37SW6G.js +1314 -0
- package/dist/chunk-BTRMA7GC.js +21 -0
- package/dist/chunk-C7IUWIUZ.js +643 -0
- package/dist/chunk-CA3DUVYD.js +10 -0
- package/dist/{chunk-S7F6XLTK.js → chunk-CBCJSO2B.js} +213 -54
- package/dist/chunk-CHPX4MFI.js +239 -0
- package/dist/chunk-CLGAMIOT.js +648 -0
- package/dist/chunk-CUE7VML6.js +1141 -0
- package/dist/chunk-CVU6S2E5.js +1587 -0
- package/dist/{chunk-AZRX6SAC.js → chunk-CXPQMA6Z.js} +112 -37
- package/dist/chunk-D2LN4I7I.js +581 -0
- package/dist/{chunk-UWFLYMAR.js → chunk-D34LNBO5.js} +635 -238
- package/dist/chunk-D4BCQICM.js +765 -0
- package/dist/chunk-EABKIIA4.js +1 -0
- package/dist/chunk-EICSYRAG.js +341 -0
- package/dist/chunk-EMWAJMAS.js +83 -0
- package/dist/chunk-EOLZWRV6.js +149 -0
- package/dist/chunk-EOQVTGB6.js +350 -0
- package/dist/{chunk-BEDBFJND.js → chunk-ESGUHNB2.js} +119 -43
- package/dist/{chunk-Q72LJOVE.js → chunk-F2KNBPKY.js} +74 -18
- package/dist/{chunk-O7AE6DAF.js → chunk-G7H3NX3G.js} +57 -24
- package/dist/chunk-GM7YIPB7.js +1052 -0
- package/dist/chunk-GVQQG435.js +581 -0
- package/dist/chunk-HE43OMEL.js +1056 -0
- package/dist/chunk-HHOMFQ7R.js +2535 -0
- package/dist/chunk-HJFFOOJ4.js +1 -0
- package/dist/chunk-HNAKS4Z3.js +207 -0
- package/dist/chunk-HP6ST2OW.js +352 -0
- package/dist/chunk-HW3OWDTU.js +1 -0
- package/dist/{chunk-3ENTMPQY.js → chunk-HZDB44K4.js} +102 -52
- package/dist/chunk-I2KLQ2HA.js +19 -0
- package/dist/chunk-I6CUP2LW.js +1155 -0
- package/dist/chunk-ICV4Y2WY.js +27 -0
- package/dist/chunk-IHSIENOE.js +3950 -0
- package/dist/{chunk-CUMUNPXY.js → chunk-IMMALLRU.js} +68 -32
- package/dist/chunk-J64KGCGX.js +55 -0
- package/dist/{chunk-IVNRBPGC.js → chunk-JA6TK7H2.js} +255 -84
- package/dist/{chunk-OOPPQH27.js → chunk-JAVZ5JPV.js} +83 -29
- package/dist/chunk-JCMTP3E4.js +1251 -0
- package/dist/{chunk-U7TFM2JA.js → chunk-JCXFFK64.js} +75 -18
- package/dist/chunk-JWCVBFDU.js +236 -0
- package/dist/chunk-JXRTD5RI.js +414 -0
- package/dist/chunk-JYIUZUIQ.js +1567 -0
- package/dist/chunk-K3TK3GIV.js +219 -0
- package/dist/chunk-KEVZIHM2.js +1511 -0
- package/dist/chunk-KHZDNQQD.js +171 -0
- package/dist/chunk-KL4GDV4V.js +131 -0
- package/dist/chunk-KNILMM4H.js +225 -0
- package/dist/chunk-KRBUZV45.js +25 -0
- package/dist/{chunk-ITTYJZWX.js → chunk-KXLDK6HB.js} +161 -45
- package/dist/chunk-KZ3X7TSL.js +196 -0
- package/dist/chunk-L2WMOA2V.js +474 -0
- package/dist/chunk-L4D5LHCH.js +109 -0
- package/dist/chunk-LAUJPLDB.js +853 -0
- package/dist/{chunk-SBMNWWBV.js → chunk-LGNTP5XA.js} +89 -17
- package/dist/chunk-LUZFCCSD.js +271 -0
- package/dist/{chunk-HPPW424V.js → chunk-LXJCP4PL.js} +129 -37
- package/dist/chunk-MCOZJWPU.js +731 -0
- package/dist/chunk-MG4SKWLL.js +2587 -0
- package/dist/chunk-MPEPTSER.js +414 -0
- package/dist/chunk-MWPJ4YGP.js +1 -0
- package/dist/{chunk-TKQYWZ5V.js → chunk-N7AX4OA4.js} +108 -41
- package/dist/chunk-NHSLM6SE.js +523 -0
- package/dist/chunk-NNCOFLNE.js +24 -0
- package/dist/{chunk-J7Q7VCVC.js → chunk-NNJLVA7M.js} +54 -15
- package/dist/chunk-NZG75DGA.js +282 -0
- package/dist/chunk-O76QXRBV.js +431 -0
- package/dist/chunk-OANH27AK.js +223 -0
- package/dist/chunk-OCHPK5YV.js +609 -0
- package/dist/chunk-OMHVEVX4.js +436 -0
- package/dist/{chunk-YF4NSSMT.js → chunk-ONKQUJWD.js} +220 -65
- package/dist/chunk-OVTK7A6T.js +615 -0
- package/dist/chunk-PCEFCOLN.js +120 -0
- package/dist/chunk-PFLNFIVB.js +186 -0
- package/dist/chunk-PHSZY37H.js +300 -0
- package/dist/chunk-PJLTKDVY.js +18 -0
- package/dist/{chunk-4YIP3CWS.js → chunk-PK7BN3MI.js} +89 -19
- package/dist/{chunk-KMI5ML5I.js → chunk-PWFRDRGS.js} +155 -29
- package/dist/chunk-PYPMD46W.js +707 -0
- package/dist/chunk-Q6CCHDI7.js +331 -0
- package/dist/chunk-QFA5WS2A.js +750 -0
- package/dist/chunk-QJMMM4RC.js +124 -0
- package/dist/chunk-QNZII37O.js +10 -0
- package/dist/chunk-QYWEVAM6.js +407 -0
- package/dist/chunk-R5T4VZ7Z.js +126 -0
- package/dist/chunk-R77HFLZD.js +1 -0
- package/dist/{chunk-YC6WORFL.js → chunk-RAESDNU5.js} +228 -102
- package/dist/chunk-RBYQUXNL.js +1 -0
- package/dist/chunk-RCM3DT5E.js +1 -0
- package/dist/chunk-RGNY56L7.js +282 -0
- package/dist/chunk-RIK6UX2K.js +344 -0
- package/dist/{chunk-LAECSR4H.js → chunk-RJA3RXO3.js} +75 -60
- package/dist/chunk-RJYRJ3LD.js +1 -0
- package/dist/chunk-RMA3NOY4.js +599 -0
- package/dist/{chunk-DM5QUKKO.js → chunk-RSWKKAHK.js} +160 -66
- package/dist/chunk-RVOIIX3V.js +204 -0
- package/dist/chunk-SA2RRBGT.js +1077 -0
- package/dist/chunk-SG3J4R45.js +1428 -0
- package/dist/chunk-SPUK7JD4.js +238 -0
- package/dist/chunk-SWXV2K5N.js +434 -0
- package/dist/chunk-SYJEPXP6.js +1303 -0
- package/dist/{chunk-N32RGOA5.js → chunk-SZLI34TA.js} +93 -28
- package/dist/{chunk-4GBOGOTV.js → chunk-T77WJA74.js} +143 -18
- package/dist/chunk-TDWWVJA4.js +630 -0
- package/dist/chunk-TFHI5XDR.js +610 -0
- package/dist/chunk-TH4PW2WU.js +17 -0
- package/dist/chunk-TTQ24HQX.js +12 -0
- package/dist/chunk-TUACVJNG.js +12 -0
- package/dist/{chunk-CYRBHQQZ.js → chunk-TUL5RUIA.js} +201 -59
- package/dist/{chunk-4ZAHCY44.js → chunk-TYOSA7JG.js} +74 -38
- package/dist/chunk-TYQTMMEV.js +1 -0
- package/dist/chunk-TZO6YDS7.js +346 -0
- package/dist/chunk-U3ETF22F.js +328 -0
- package/dist/chunk-U6BYHD2N.js +213 -0
- package/dist/{chunk-WSW6ZFAQ.js → chunk-UF6EJXPQ.js} +20 -5
- package/dist/chunk-UNNQIPGK.js +792 -0
- package/dist/chunk-UQEN55EY.js +1 -0
- package/dist/chunk-UQVO6AJV.js +171 -0
- package/dist/chunk-VFDQAAIW.js +351 -0
- package/dist/chunk-VIUE3VQT.js +1 -0
- package/dist/chunk-VJLSSSGC.js +438 -0
- package/dist/chunk-VLMT6KYT.js +350 -0
- package/dist/chunk-VMHGBUGS.js +35 -0
- package/dist/{chunk-7O2FMUPT.js → chunk-VQKPBYW6.js} +400 -139
- package/dist/{chunk-EJBDRVIH.js → chunk-VSSTWLC5.js} +61 -16
- package/dist/chunk-VZYYZRPN.js +1992 -0
- package/dist/chunk-W23G6JLF.js +37 -0
- package/dist/chunk-WAIJCD2V.js +480 -0
- package/dist/chunk-WFMQ3WKM.js +378 -0
- package/dist/chunk-WJ2KDRMY.js +66 -0
- package/dist/chunk-WKFZJO54.js +437 -0
- package/dist/{chunk-SYNOJOQO.js → chunk-WVVD3XOV.js} +189 -93
- package/dist/chunk-XAIWMSLB.js +1 -0
- package/dist/chunk-XBXUBBJZ.js +98 -0
- package/dist/chunk-XCU7MYBJ.js +1 -0
- package/dist/chunk-XHE4PGCI.js +717 -0
- package/dist/chunk-XRSJ32M3.js +331 -0
- package/dist/chunk-XTCVOEAW.js +1 -0
- package/dist/chunk-XWGXVQF6.js +58 -0
- package/dist/{chunk-35OFI3JG.js → chunk-Y3XKKO5K.js} +258 -123
- package/dist/chunk-Y4QNMBLO.js +533 -0
- package/dist/chunk-Y5H4CTKO.js +1 -0
- package/dist/chunk-YBQIN75A.js +403 -0
- package/dist/chunk-YJ5PXOX3.js +158 -0
- package/dist/{chunk-AWJOCGFZ.js → chunk-YLRSRUPS.js} +81 -55
- package/dist/chunk-YM6MPJ4A.js +1 -0
- package/dist/chunk-YV7KZENV.js +200 -0
- package/dist/chunk-Z7I4ZSO6.js +316 -0
- package/dist/chunk-ZIRMWD2B.js +555 -0
- package/dist/chunk-ZPMG3FWU.js +75 -0
- package/dist/{chunk-QWCMU5B2.js → chunk-ZTXMK2G7.js} +289 -115
- package/dist/chunk-ZVJCWXAL.js +541 -0
- package/dist/{chunk-P23EQNRQ.js → chunk-ZYQ23DPT.js} +215 -49
- package/dist/coachmark/index.js +10 -3
- package/dist/code-block/index.js +6 -3
- package/dist/color-field/index.js +15 -5
- package/dist/color-picker/index.js +23 -0
- package/dist/commerce/index.js +31 -17
- package/dist/confirm/index.js +31 -0
- package/dist/connection-card/index.js +34 -0
- package/dist/connectivity/index.js +6 -2
- package/dist/context-menu/index.js +13 -3
- package/dist/copy-button/index.js +5 -2
- package/dist/data-grid/index.js +35 -17
- package/dist/date-range-picker/index.js +22 -9
- package/dist/description-list/index.js +6 -1
- package/dist/device-frame/index.js +30 -0
- package/dist/dialog/index.js +10 -2
- package/dist/divider/index.js +2 -0
- package/dist/empty-state/index.js +15 -2
- package/dist/error-summary/index.js +9 -2
- package/dist/fab/index.js +7 -2
- package/dist/file-manager/index.js +44 -0
- package/dist/file-upload/index.js +16 -7
- package/dist/filter-bar/index.js +14 -7
- package/dist/flow-run/index.js +23 -13
- package/dist/form/index.js +32 -3
- package/dist/gallery/index.js +8 -2
- package/dist/hold-to-confirm/index.js +6 -2
- package/dist/hover-card/index.js +18 -0
- package/dist/icon-tile/index.js +10 -0
- package/dist/image/index.js +9 -0
- package/dist/index.d.ts +30789 -12332
- package/dist/index.js +424 -135
- package/dist/infinite-list/index.js +6 -2
- package/dist/inline-edit/index.js +8 -5
- package/dist/input/index.js +7 -4
- package/dist/interactions/index.js +5 -1
- package/dist/invoice/index.js +22 -9
- package/dist/job-row/index.js +22 -0
- package/dist/json-inspector/index.js +20 -0
- package/dist/kbd/index.js +5 -1
- package/dist/keyboard/index.js +9 -2
- package/dist/level-meter/index.js +9 -0
- package/dist/list-row/index.js +14 -4
- package/dist/log-viewer/index.js +11 -2
- package/dist/map-view/index.js +16 -3
- package/dist/markdown/index.js +12 -6
- package/dist/metric/index.js +10 -4
- package/dist/metric-strip/index.js +12 -0
- package/dist/money/index.js +16 -3
- package/dist/nav-drawer/index.js +8 -2
- package/dist/nav-header/index.js +15 -0
- package/dist/navigation/index.js +32 -2
- package/dist/notification-center/index.js +28 -12
- package/dist/number-roll/index.js +7 -2
- package/dist/onboarding-pager/index.js +22 -0
- package/dist/one-handed/index.js +5 -3
- package/dist/os-surfaces/index.js +9 -3
- package/dist/otp/index.js +9 -5
- package/dist/page-header/index.js +3 -1
- package/dist/pagination/index.js +8 -0
- package/dist/payment-method/index.js +21 -11
- package/dist/payment-status/index.js +26 -15
- package/dist/permission/index.js +21 -2
- package/dist/picker/index.js +22 -6
- package/dist/progress/index.js +11 -3
- package/dist/provenance/index.js +16 -0
- package/dist/pull-to-refresh/index.js +4 -2
- package/dist/qr-code/index.js +16 -0
- package/dist/query-builder/index.js +30 -0
- package/dist/radio-group/index.js +9 -5
- package/dist/rating/index.js +10 -2
- package/dist/receivables/index.js +35 -17
- package/dist/recording-indicator/index.js +21 -0
- package/dist/refund/index.js +28 -15
- package/dist/repeatable-rows/index.js +19 -0
- package/dist/save-status/index.js +7 -3
- package/dist/screen/index.js +3 -0
- package/dist/scroll-area/index.js +3 -1
- package/dist/search-field/index.js +13 -0
- package/dist/secret-field/index.js +19 -0
- package/dist/section-header/index.js +4 -0
- package/dist/segmented-control/index.js +4 -3
- package/dist/sheet/index.js +11 -3
- package/dist/shortcuts-sheet/index.js +2 -0
- package/dist/sign-in-screen/index.js +25 -0
- package/dist/skeleton/index.js +5 -1
- package/dist/slider/index.js +5 -2
- package/dist/sortable/index.js +8 -0
- package/dist/spinner/index.js +4 -1
- package/dist/split-button/index.js +21 -6
- package/dist/spotlight/index.js +9 -1
- package/dist/stack/index.js +2 -0
- package/dist/stage-timeline/index.js +8 -3
- package/dist/status-dot/index.js +8 -2
- package/dist/stepper/index.js +11 -4
- package/dist/streaming-text/index.js +4 -2
- package/dist/survey/index.js +29 -16
- package/dist/switch/index.js +9 -3
- package/dist/system-state/index.js +15 -4
- package/dist/tab-bar/index.js +13 -2
- package/dist/tabs/index.js +12 -2
- package/dist/tags-input/index.js +13 -0
- package/dist/text/index.js +4 -0
- package/dist/textarea/index.js +8 -5
- package/dist/thinking/index.js +6 -1
- package/dist/tile-rail/index.js +10 -0
- package/dist/time-field/index.js +20 -0
- package/dist/time-range-control/index.js +36 -0
- package/dist/timeline/index.js +4 -2
- package/dist/toast/index.js +6 -2
- package/dist/toolbar/index.js +5 -2
- package/dist/tour/index.js +15 -10
- package/dist/transcript/index.js +28 -0
- package/dist/truncation-notice/index.js +5 -2
- package/dist/update-notice/index.js +19 -9
- package/dist/video-player/index.js +29 -2
- package/dist/viewfinder/index.js +15 -5
- package/dist/widget/index.js +14 -4
- package/dist/wizard/index.js +10 -4
- package/package.json +13 -12
- package/dist/chunk-223Q2T2Q.js +0 -229
- package/dist/chunk-2A5NIQAK.js +0 -254
- package/dist/chunk-2GK6PHGE.js +0 -363
- package/dist/chunk-2ZZ7TDJ4.js +0 -324
- package/dist/chunk-3ARE4TES.js +0 -195
- package/dist/chunk-3NMD74ZU.js +0 -4
- package/dist/chunk-3WPW4KUN.js +0 -182
- package/dist/chunk-423B7SPN.js +0 -993
- package/dist/chunk-47FWHGUN.js +0 -394
- package/dist/chunk-4DS5ZWVC.js +0 -83
- package/dist/chunk-4SZYY6AN.js +0 -99
- package/dist/chunk-4YQOR7JM.js +0 -204
- package/dist/chunk-52X2VYTD.js +0 -228
- package/dist/chunk-5YNTNN5A.js +0 -177
- package/dist/chunk-6HT2LP62.js +0 -504
- package/dist/chunk-6N33LFQA.js +0 -35
- package/dist/chunk-6X6PQ443.js +0 -432
- package/dist/chunk-7CFF4HXS.js +0 -126
- package/dist/chunk-AI4DWZCD.js +0 -162
- package/dist/chunk-BTTFCMKG.js +0 -166
- package/dist/chunk-BV3B2HYZ.js +0 -1635
- package/dist/chunk-C2NTXVWM.js +0 -98
- package/dist/chunk-CDRZHT42.js +0 -424
- package/dist/chunk-DHWADYZX.js +0 -144
- package/dist/chunk-F5XNPWS7.js +0 -1024
- package/dist/chunk-FMYDDECK.js +0 -1521
- package/dist/chunk-GDKZTW34.js +0 -395
- package/dist/chunk-GL7B2DOW.js +0 -134
- package/dist/chunk-GNNJ4GCC.js +0 -471
- package/dist/chunk-HET4LLMX.js +0 -129
- package/dist/chunk-HZ6CNMAF.js +0 -870
- package/dist/chunk-IIQTAY3J.js +0 -715
- package/dist/chunk-JNH2TYIN.js +0 -96
- package/dist/chunk-JNY4ZHAR.js +0 -634
- package/dist/chunk-JXJB2X6M.js +0 -131
- package/dist/chunk-LRJNDEIA.js +0 -302
- package/dist/chunk-LSS54GLJ.js +0 -116
- package/dist/chunk-LZLHELAG.js +0 -137
- package/dist/chunk-MOUJOP55.js +0 -425
- package/dist/chunk-NKB7BZYK.js +0 -167
- package/dist/chunk-NQYBUO3K.js +0 -1795
- package/dist/chunk-O4AEHWII.js +0 -464
- package/dist/chunk-OETCUXQP.js +0 -134
- package/dist/chunk-OPXFZ4Y5.js +0 -204
- package/dist/chunk-PJXUJYS6.js +0 -248
- package/dist/chunk-PUPM2YGF.js +0 -376
- package/dist/chunk-QCDXZBC5.js +0 -247
- package/dist/chunk-QDYDBCFP.js +0 -197
- package/dist/chunk-QJJ6MADV.js +0 -274
- package/dist/chunk-QKXCPTFS.js +0 -349
- package/dist/chunk-RIBDXGUG.js +0 -108
- package/dist/chunk-RJQOOHT2.js +0 -214
- package/dist/chunk-RNGLIHFA.js +0 -191
- package/dist/chunk-RQ3HASCC.js +0 -6
- package/dist/chunk-RSOJT5YW.js +0 -124
- package/dist/chunk-RUZHTGKB.js +0 -237
- package/dist/chunk-RW6ZL2FQ.js +0 -284
- package/dist/chunk-TKVFVF5D.js +0 -95
- package/dist/chunk-TOXAGRDQ.js +0 -144
- package/dist/chunk-TUTI5HOZ.js +0 -112
- package/dist/chunk-UC2WGUP3.js +0 -627
- package/dist/chunk-UYG5L34B.js +0 -87
- package/dist/chunk-VBOXAEPI.js +0 -336
- package/dist/chunk-VCDBXW5H.js +0 -188
- package/dist/chunk-VEAYTRPX.js +0 -414
- package/dist/chunk-VQHPQEUH.js +0 -273
- package/dist/chunk-VXDZFJGP.js +0 -874
- package/dist/chunk-XNUVB5OL.js +0 -375
- package/dist/chunk-XOSCY2CW.js +0 -242
- package/dist/chunk-XXXEFXY5.js +0 -99
- package/dist/chunk-YDGVJETP.js +0 -60
- package/dist/chunk-YG3ZJHGU.js +0 -223
- package/dist/chunk-YTFKPRUK.js +0 -845
- package/dist/chunk-Z7H7VSFZ.js +0 -323
- package/dist/header/index.js +0 -5
- package/dist/search-bar/index.js +0 -5
- /package/dist/{chunk-3ECPOSKO.js → chunk-3BKLBYPK.js} +0 -0
- /package/dist/{chunk-JRLTGLN4.js → chunk-3UG6JUCV.js} +0 -0
- /package/dist/{chunk-RTIKSY6A.js → chunk-4QCR3K2J.js} +0 -0
- /package/dist/{chunk-VFCUIDRT.js → chunk-5WWRTEPS.js} +0 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
import { Checkbox } from './chunk-KNILMM4H.js';
|
|
2
|
+
import { Banner } from './chunk-WVVD3XOV.js';
|
|
3
|
+
import { Button } from './chunk-5DTKORLI.js';
|
|
4
|
+
import { Skeleton } from './chunk-YJ5PXOX3.js';
|
|
5
|
+
import { announce } from './chunk-W23G6JLF.js';
|
|
6
|
+
import { FieldMessage } from './chunk-BTRMA7GC.js';
|
|
7
|
+
import { useInputPlatform } from './chunk-KXLDK6HB.js';
|
|
8
|
+
import { fieldSurfaceFill } from './chunk-43K3BLXV.js';
|
|
9
|
+
import { useLabels } from './chunk-APCWFOZW.js';
|
|
10
|
+
import { Icon } from './chunk-PCEFCOLN.js';
|
|
11
|
+
import { useResolvedMotion, springConfig } from './chunk-J64KGCGX.js';
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
import { Animated, AppState, View, Text, Pressable, ActivityIndicator } from 'react-native';
|
|
14
|
+
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
15
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
|
+
|
|
17
|
+
var DEFAULT_LABELS = {
|
|
18
|
+
reveal: "Reveal",
|
|
19
|
+
hide: "Hide",
|
|
20
|
+
copy: "Copy",
|
|
21
|
+
checking: "Checking your identity\u2026",
|
|
22
|
+
hidesAgain: "Hides again in 30 s",
|
|
23
|
+
copied: "Copied. Clears from the clipboard in 60 s.",
|
|
24
|
+
expired: "Expired",
|
|
25
|
+
expiresIn: "Expires in {time}",
|
|
26
|
+
acknowledge: "I\u2019ve stored this key somewhere safe",
|
|
27
|
+
oneTimeWarning: "You won\u2019t see this key again. Copy it now.",
|
|
28
|
+
done: "Done",
|
|
29
|
+
used: "Used",
|
|
30
|
+
copyAll: "Copy all",
|
|
31
|
+
download: "Download .txt",
|
|
32
|
+
print: "Print"
|
|
33
|
+
};
|
|
34
|
+
var SECRET_CLIPBOARD_TTL = 6e4;
|
|
35
|
+
function maskSecret(value, keepStart = 8, keepEnd = 4) {
|
|
36
|
+
if (value.length <= keepStart + keepEnd) return "\u2022".repeat(Math.max(value.length, 8));
|
|
37
|
+
return `${value.slice(0, keepStart)}${"\u2022".repeat(8)}${value.slice(-keepEnd)}`;
|
|
38
|
+
}
|
|
39
|
+
var ACTION_TIER = { lg: "md", md: "sm", sm: "xs", xs: "xs" };
|
|
40
|
+
function SecretField({
|
|
41
|
+
value,
|
|
42
|
+
label,
|
|
43
|
+
hint,
|
|
44
|
+
surface = "filled",
|
|
45
|
+
size = "lg",
|
|
46
|
+
keepStart = 8,
|
|
47
|
+
keepEnd = 4,
|
|
48
|
+
onReveal,
|
|
49
|
+
onCopy,
|
|
50
|
+
revealed: revealedProp,
|
|
51
|
+
onRevealedChange,
|
|
52
|
+
autoHide = 3e4,
|
|
53
|
+
copyOnly,
|
|
54
|
+
disabledReason,
|
|
55
|
+
platform,
|
|
56
|
+
error,
|
|
57
|
+
success,
|
|
58
|
+
motion = "full",
|
|
59
|
+
labels: labelsProp,
|
|
60
|
+
testID
|
|
61
|
+
}) {
|
|
62
|
+
const os = useInputPlatform(platform);
|
|
63
|
+
const { styles } = useStyles(sheet, { os });
|
|
64
|
+
const theme = useLoamTheme();
|
|
65
|
+
const labels = useLabels("secretFieldNative", DEFAULT_LABELS, labelsProp);
|
|
66
|
+
const [revealedState, setRevealedState] = React.useState(false);
|
|
67
|
+
const revealed = revealedProp ?? revealedState;
|
|
68
|
+
const [checking, setChecking] = React.useState(false);
|
|
69
|
+
const [copied, setCopied] = React.useState(false);
|
|
70
|
+
const disabled = !!disabledReason;
|
|
71
|
+
const level = useResolvedMotion(motion, "secret-field");
|
|
72
|
+
const pop = React.useRef(new Animated.Value(1)).current;
|
|
73
|
+
const invalid = error !== void 0 && error !== false;
|
|
74
|
+
const setRevealed = React.useCallback(
|
|
75
|
+
(next) => {
|
|
76
|
+
if (revealedProp === void 0) setRevealedState(next);
|
|
77
|
+
onRevealedChange?.(next);
|
|
78
|
+
},
|
|
79
|
+
[revealedProp, onRevealedChange]
|
|
80
|
+
);
|
|
81
|
+
const hideRef = React.useRef(() => setRevealed(false));
|
|
82
|
+
hideRef.current = () => setRevealed(false);
|
|
83
|
+
React.useEffect(() => {
|
|
84
|
+
if (!revealed) return;
|
|
85
|
+
const timer = autoHide > 0 ? setTimeout(() => hideRef.current(), autoHide) : void 0;
|
|
86
|
+
const sub = AppState.addEventListener("change", (s) => s !== "active" && hideRef.current());
|
|
87
|
+
return () => {
|
|
88
|
+
clearTimeout(timer);
|
|
89
|
+
sub.remove();
|
|
90
|
+
};
|
|
91
|
+
}, [revealed, autoHide]);
|
|
92
|
+
React.useEffect(() => {
|
|
93
|
+
if (!copied) return;
|
|
94
|
+
const t = setTimeout(() => setCopied(false), 3e3);
|
|
95
|
+
return () => clearTimeout(t);
|
|
96
|
+
}, [copied]);
|
|
97
|
+
const reveal = async () => {
|
|
98
|
+
if (revealed) return setRevealed(false);
|
|
99
|
+
if (!onReveal) return setRevealed(true);
|
|
100
|
+
setChecking(true);
|
|
101
|
+
try {
|
|
102
|
+
if (await onReveal()) setRevealed(true);
|
|
103
|
+
} finally {
|
|
104
|
+
setChecking(false);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const copy = () => {
|
|
108
|
+
onCopy?.(value, { localOnly: true, expiresIn: SECRET_CLIPBOARD_TTL, sensitive: true });
|
|
109
|
+
setCopied(true);
|
|
110
|
+
announce(labels.copied);
|
|
111
|
+
if (level === "full") {
|
|
112
|
+
pop.setValue(0.6);
|
|
113
|
+
Animated.spring(pop, {
|
|
114
|
+
...springConfig(theme, "de"),
|
|
115
|
+
toValue: 1,
|
|
116
|
+
useNativeDriver: true
|
|
117
|
+
}).start();
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const shown = copyOnly || revealed ? value : maskSecret(value, keepStart, keepEnd);
|
|
121
|
+
const hintText = disabledReason ? disabledReason : checking ? labels.checking : copied ? labels.copied : revealed && !copyOnly ? labels.hidesAgain : hint;
|
|
122
|
+
const glyph = theme.icon.md;
|
|
123
|
+
const actionTier = ACTION_TIER[size];
|
|
124
|
+
const actionBox = {
|
|
125
|
+
width: theme.ctl[actionTier],
|
|
126
|
+
height: theme.ctl[actionTier],
|
|
127
|
+
borderRadius: theme.ctl.r[actionTier]
|
|
128
|
+
};
|
|
129
|
+
const slop = os === "android" ? (theme.space[48] - theme.space[36]) / 2 : void 0;
|
|
130
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.container, children: [
|
|
131
|
+
label != null && /* @__PURE__ */ jsx(Text, { style: styles.label, children: label }),
|
|
132
|
+
/* @__PURE__ */ jsxs(
|
|
133
|
+
View,
|
|
134
|
+
{
|
|
135
|
+
testID,
|
|
136
|
+
style: [
|
|
137
|
+
styles.shell,
|
|
138
|
+
{
|
|
139
|
+
height: theme.ctl[size],
|
|
140
|
+
borderRadius: theme.ctl.r[size]
|
|
141
|
+
},
|
|
142
|
+
{ backgroundColor: fieldSurfaceFill(theme, surface) },
|
|
143
|
+
invalid && { borderColor: theme.edge.danger },
|
|
144
|
+
success && !invalid && { borderColor: theme.edge.good }
|
|
145
|
+
],
|
|
146
|
+
...invalid ? { "aria-invalid": true } : null,
|
|
147
|
+
children: [
|
|
148
|
+
/* @__PURE__ */ jsx(
|
|
149
|
+
Text,
|
|
150
|
+
{
|
|
151
|
+
testID: testID ? `${testID}-value` : void 0,
|
|
152
|
+
style: styles.value,
|
|
153
|
+
numberOfLines: 1,
|
|
154
|
+
ellipsizeMode: "middle",
|
|
155
|
+
accessibilityLabel: revealed || copyOnly ? void 0 : label,
|
|
156
|
+
children: shown
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
!copyOnly && /* @__PURE__ */ jsx(
|
|
160
|
+
Pressable,
|
|
161
|
+
{
|
|
162
|
+
accessibilityRole: "button",
|
|
163
|
+
accessibilityLabel: revealed ? labels.hide : labels.reveal,
|
|
164
|
+
accessibilityState: {
|
|
165
|
+
selected: revealed,
|
|
166
|
+
disabled: disabled || checking,
|
|
167
|
+
busy: checking
|
|
168
|
+
},
|
|
169
|
+
disabled: disabled || checking,
|
|
170
|
+
hitSlop: slop,
|
|
171
|
+
onPress: () => void reveal(),
|
|
172
|
+
style: ({ pressed }) => [
|
|
173
|
+
styles.action,
|
|
174
|
+
actionBox,
|
|
175
|
+
revealed && { backgroundColor: theme.state.selected },
|
|
176
|
+
pressed && { backgroundColor: theme.state.pressed },
|
|
177
|
+
disabled && { opacity: theme.state.disabledOpacity }
|
|
178
|
+
],
|
|
179
|
+
children: checking ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: theme.color.accentStrong }) : /* @__PURE__ */ jsx(Icon, { name: revealed ? "eye-off" : "eye", size: glyph, color: theme.color.text2 })
|
|
180
|
+
}
|
|
181
|
+
),
|
|
182
|
+
/* @__PURE__ */ jsx(
|
|
183
|
+
Pressable,
|
|
184
|
+
{
|
|
185
|
+
accessibilityRole: "button",
|
|
186
|
+
accessibilityLabel: labels.copy,
|
|
187
|
+
accessibilityState: { disabled },
|
|
188
|
+
disabled,
|
|
189
|
+
hitSlop: slop,
|
|
190
|
+
onPress: copy,
|
|
191
|
+
style: ({ pressed }) => [
|
|
192
|
+
styles.action,
|
|
193
|
+
actionBox,
|
|
194
|
+
pressed && { backgroundColor: theme.state.pressed },
|
|
195
|
+
disabled && { opacity: theme.state.disabledOpacity }
|
|
196
|
+
],
|
|
197
|
+
children: /* @__PURE__ */ jsx(Animated.View, { style: { transform: [{ scale: copied ? pop : 1 }] }, children: /* @__PURE__ */ jsx(
|
|
198
|
+
Icon,
|
|
199
|
+
{
|
|
200
|
+
name: copied ? "check" : "copy",
|
|
201
|
+
size: glyph,
|
|
202
|
+
color: copied ? theme.color.good : theme.color.text2
|
|
203
|
+
}
|
|
204
|
+
) })
|
|
205
|
+
}
|
|
206
|
+
)
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
typeof error === "string" && error && !disabledReason ? /* @__PURE__ */ jsx(View, { accessibilityRole: "alert", children: /* @__PURE__ */ jsx(FieldMessage, { invalid: true, children: error }) }) : hintText != null && /* @__PURE__ */ jsx(Text, { accessibilityLiveRegion: "polite", style: styles.hint, children: hintText })
|
|
211
|
+
] });
|
|
212
|
+
}
|
|
213
|
+
var CODE_FONT = { sm: 22, md: 28, lg: 32 };
|
|
214
|
+
function clock(s) {
|
|
215
|
+
const v = Math.max(0, Math.ceil(s));
|
|
216
|
+
return `${Math.floor(v / 60)}:${String(v % 60).padStart(2, "0")}`;
|
|
217
|
+
}
|
|
218
|
+
function CodeDisplay({
|
|
219
|
+
code,
|
|
220
|
+
group = 3,
|
|
221
|
+
expiresIn,
|
|
222
|
+
lifetime = 60,
|
|
223
|
+
expired,
|
|
224
|
+
onCopy,
|
|
225
|
+
size = "md",
|
|
226
|
+
surface,
|
|
227
|
+
error,
|
|
228
|
+
disabled,
|
|
229
|
+
readOnly,
|
|
230
|
+
labels: labelsProp
|
|
231
|
+
}) {
|
|
232
|
+
const { styles } = useStyles(sheet, { os: "ios" });
|
|
233
|
+
const theme = useLoamTheme();
|
|
234
|
+
const labels = useLabels("secretFieldNative", DEFAULT_LABELS, labelsProp);
|
|
235
|
+
const shown = code.replace(new RegExp(`(.{${group}})(?=.)`, "g"), "$1 ");
|
|
236
|
+
const invalid = error !== void 0 && error !== false;
|
|
237
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.codeWrap, children: [
|
|
238
|
+
/* @__PURE__ */ jsxs(
|
|
239
|
+
View,
|
|
240
|
+
{
|
|
241
|
+
style: [
|
|
242
|
+
styles.code,
|
|
243
|
+
surface && { backgroundColor: fieldSurfaceFill(theme, surface) },
|
|
244
|
+
invalid && {
|
|
245
|
+
borderWidth: theme.borderWidth.thick,
|
|
246
|
+
borderColor: theme.edge.danger
|
|
247
|
+
},
|
|
248
|
+
disabled && { opacity: theme.state.disabledOpacity }
|
|
249
|
+
],
|
|
250
|
+
...invalid ? { "aria-invalid": true } : null,
|
|
251
|
+
...disabled ? { "aria-disabled": true } : null,
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ jsx(
|
|
254
|
+
Text,
|
|
255
|
+
{
|
|
256
|
+
style: [
|
|
257
|
+
styles.codeText,
|
|
258
|
+
{
|
|
259
|
+
fontSize: theme.fontSize[CODE_FONT[size]],
|
|
260
|
+
letterSpacing: theme.fontSize[CODE_FONT[size]] * 0.06
|
|
261
|
+
},
|
|
262
|
+
expired && styles.codeExpired
|
|
263
|
+
],
|
|
264
|
+
children: shown
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
expired ? /* @__PURE__ */ jsx(View, { style: styles.badge, children: /* @__PURE__ */ jsx(Text, { style: styles.badgeText, children: labels.expired }) }) : onCopy && !readOnly ? /* @__PURE__ */ jsx(
|
|
268
|
+
Pressable,
|
|
269
|
+
{
|
|
270
|
+
accessibilityRole: "button",
|
|
271
|
+
accessibilityLabel: labels.copy,
|
|
272
|
+
accessibilityState: { disabled: !!disabled },
|
|
273
|
+
disabled,
|
|
274
|
+
onPress: () => onCopy(code),
|
|
275
|
+
style: ({ pressed }) => [
|
|
276
|
+
styles.action,
|
|
277
|
+
pressed && { backgroundColor: theme.state.pressed }
|
|
278
|
+
],
|
|
279
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "copy", size: theme.icon.md, color: theme.color.text2 })
|
|
280
|
+
}
|
|
281
|
+
) : null
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
typeof error === "string" && error ? /* @__PURE__ */ jsx(View, { accessibilityRole: "alert", children: /* @__PURE__ */ jsx(FieldMessage, { invalid: true, children: error }) }) : null,
|
|
286
|
+
expiresIn != null && !expired && /* @__PURE__ */ jsxs(View, { style: styles.expiry, children: [
|
|
287
|
+
/* @__PURE__ */ jsx(View, { style: styles.bar, children: /* @__PURE__ */ jsx(
|
|
288
|
+
View,
|
|
289
|
+
{
|
|
290
|
+
style: [styles.barFill, { width: `${Math.min(100, expiresIn / lifetime * 100)}%` }]
|
|
291
|
+
}
|
|
292
|
+
) }),
|
|
293
|
+
/* @__PURE__ */ jsx(Text, { accessibilityRole: "timer", style: styles.expiryText, children: labels.expiresIn.replace("{time}", clock(expiresIn)) })
|
|
294
|
+
] })
|
|
295
|
+
] });
|
|
296
|
+
}
|
|
297
|
+
function OneTimeSecret({
|
|
298
|
+
value,
|
|
299
|
+
title,
|
|
300
|
+
label,
|
|
301
|
+
onDone,
|
|
302
|
+
onCopy,
|
|
303
|
+
density,
|
|
304
|
+
size,
|
|
305
|
+
surface,
|
|
306
|
+
error,
|
|
307
|
+
readOnly = false,
|
|
308
|
+
loading = false,
|
|
309
|
+
labels: labelsProp,
|
|
310
|
+
style,
|
|
311
|
+
testID
|
|
312
|
+
}) {
|
|
313
|
+
const { styles } = useStyles(sheet, { os: "ios" });
|
|
314
|
+
const theme = useLoamTheme();
|
|
315
|
+
const labels = useLabels("secretFieldNative", DEFAULT_LABELS, labelsProp);
|
|
316
|
+
const [acked, setAcked] = React.useState(false);
|
|
317
|
+
const [copied, setCopied] = React.useState(false);
|
|
318
|
+
const locked = !(acked || copied) || readOnly;
|
|
319
|
+
const gap = density === "compact" ? theme.space.s3 : density === "comfortable" ? theme.space.s5 : theme.space.s4;
|
|
320
|
+
return /* @__PURE__ */ jsxs(
|
|
321
|
+
View,
|
|
322
|
+
{
|
|
323
|
+
testID,
|
|
324
|
+
accessibilityState: { busy: loading },
|
|
325
|
+
style: [styles.oneTime, { gap }, style],
|
|
326
|
+
children: [
|
|
327
|
+
/* @__PURE__ */ jsx(Text, { accessibilityRole: "header", style: styles.title, children: title }),
|
|
328
|
+
/* @__PURE__ */ jsx(Banner, { tone: "warn", message: labels.oneTimeWarning }),
|
|
329
|
+
loading ? /* @__PURE__ */ jsxs(View, { testID: testID ? `${testID}-loading` : void 0, style: styles.loadingBox, children: [
|
|
330
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: theme.space[120] }),
|
|
331
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "rect", height: theme.ctl[size ?? "md"] })
|
|
332
|
+
] }) : /* @__PURE__ */ jsx(
|
|
333
|
+
SecretField,
|
|
334
|
+
{
|
|
335
|
+
value,
|
|
336
|
+
label,
|
|
337
|
+
copyOnly: true,
|
|
338
|
+
size: size ?? "md",
|
|
339
|
+
surface,
|
|
340
|
+
error,
|
|
341
|
+
onCopy: (v, o) => {
|
|
342
|
+
setCopied(true);
|
|
343
|
+
onCopy?.(v, o);
|
|
344
|
+
},
|
|
345
|
+
labels: labelsProp
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ jsx(
|
|
349
|
+
Checkbox,
|
|
350
|
+
{
|
|
351
|
+
size: "sm",
|
|
352
|
+
label: labels.acknowledge,
|
|
353
|
+
checked: acked,
|
|
354
|
+
disabled: readOnly,
|
|
355
|
+
onCheckedChange: setAcked
|
|
356
|
+
}
|
|
357
|
+
),
|
|
358
|
+
/* @__PURE__ */ jsx(View, { style: styles.doneRow, children: /* @__PURE__ */ jsx(
|
|
359
|
+
Button,
|
|
360
|
+
{
|
|
361
|
+
variant: "primary",
|
|
362
|
+
size: size ?? "md",
|
|
363
|
+
softDisabled: locked,
|
|
364
|
+
onPress: () => !locked && onDone(),
|
|
365
|
+
children: labels.done
|
|
366
|
+
}
|
|
367
|
+
) })
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
function RecoveryCodes({
|
|
373
|
+
codes,
|
|
374
|
+
fileName = "recovery-codes.txt",
|
|
375
|
+
onPrint,
|
|
376
|
+
onCopy,
|
|
377
|
+
onDownload,
|
|
378
|
+
size = "md",
|
|
379
|
+
surface = "raised",
|
|
380
|
+
error = false,
|
|
381
|
+
disabled = false,
|
|
382
|
+
readOnly = false,
|
|
383
|
+
labels: labelsProp,
|
|
384
|
+
style,
|
|
385
|
+
testID
|
|
386
|
+
}) {
|
|
387
|
+
const { styles } = useStyles(sheet, { os: "ios" });
|
|
388
|
+
const theme = useLoamTheme();
|
|
389
|
+
const labels = useLabels("secretFieldNative", DEFAULT_LABELS, labelsProp);
|
|
390
|
+
const items = codes.map((c) => typeof c === "string" ? { code: c } : c);
|
|
391
|
+
const text = items.map((c) => c.code).join("\n");
|
|
392
|
+
const invalid = error !== void 0 && error !== null && error !== false;
|
|
393
|
+
return /* @__PURE__ */ jsxs(
|
|
394
|
+
View,
|
|
395
|
+
{
|
|
396
|
+
testID,
|
|
397
|
+
accessibilityState: { disabled },
|
|
398
|
+
style: [styles.recovery, disabled && { opacity: theme.state.disabledOpacity }, style],
|
|
399
|
+
children: [
|
|
400
|
+
/* @__PURE__ */ jsx(
|
|
401
|
+
View,
|
|
402
|
+
{
|
|
403
|
+
style: [
|
|
404
|
+
styles.recoveryList,
|
|
405
|
+
{ backgroundColor: fieldSurfaceFill(theme, surface) },
|
|
406
|
+
invalid && { borderColor: theme.edge.danger }
|
|
407
|
+
],
|
|
408
|
+
...invalid ? { "aria-invalid": true } : null,
|
|
409
|
+
children: items.map((c, i) => /* @__PURE__ */ jsxs(View, { style: styles.recoveryItem, children: [
|
|
410
|
+
/* @__PURE__ */ jsx(
|
|
411
|
+
Text,
|
|
412
|
+
{
|
|
413
|
+
style: [
|
|
414
|
+
styles.recoveryText,
|
|
415
|
+
styles.recoveryIndex,
|
|
416
|
+
{ fontSize: theme.fontSize[RECOVERY_FONT[size]] }
|
|
417
|
+
],
|
|
418
|
+
children: i + 1
|
|
419
|
+
}
|
|
420
|
+
),
|
|
421
|
+
/* @__PURE__ */ jsx(
|
|
422
|
+
Text,
|
|
423
|
+
{
|
|
424
|
+
style: [
|
|
425
|
+
styles.recoveryText,
|
|
426
|
+
{ fontSize: theme.fontSize[RECOVERY_FONT[size]] },
|
|
427
|
+
c.used && styles.recoveryUsed
|
|
428
|
+
],
|
|
429
|
+
children: c.code
|
|
430
|
+
}
|
|
431
|
+
),
|
|
432
|
+
c.used && /* @__PURE__ */ jsx(View, { style: styles.badge, children: /* @__PURE__ */ jsx(Text, { style: styles.badgeText, children: labels.used }) })
|
|
433
|
+
] }, c.code))
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
typeof error === "string" && error ? /* @__PURE__ */ jsx(View, { accessibilityRole: "alert", children: /* @__PURE__ */ jsx(FieldMessage, { invalid: true, children: error }) }) : null,
|
|
437
|
+
/* @__PURE__ */ jsxs(View, { style: styles.recoveryActions, children: [
|
|
438
|
+
/* @__PURE__ */ jsx(
|
|
439
|
+
Button,
|
|
440
|
+
{
|
|
441
|
+
variant: "outline",
|
|
442
|
+
size: "sm",
|
|
443
|
+
leadingIcon: "copy",
|
|
444
|
+
disabled,
|
|
445
|
+
onPress: () => onCopy?.(text, { localOnly: true, expiresIn: SECRET_CLIPBOARD_TTL, sensitive: true }),
|
|
446
|
+
children: labels.copyAll
|
|
447
|
+
}
|
|
448
|
+
),
|
|
449
|
+
onDownload && /* @__PURE__ */ jsx(
|
|
450
|
+
Button,
|
|
451
|
+
{
|
|
452
|
+
variant: "outline",
|
|
453
|
+
size: "sm",
|
|
454
|
+
leadingIcon: "download",
|
|
455
|
+
disabled: disabled || readOnly,
|
|
456
|
+
onPress: () => onDownload(text, fileName),
|
|
457
|
+
children: labels.download
|
|
458
|
+
}
|
|
459
|
+
),
|
|
460
|
+
onPrint && /* @__PURE__ */ jsx(
|
|
461
|
+
Button,
|
|
462
|
+
{
|
|
463
|
+
variant: "outline",
|
|
464
|
+
size: "sm",
|
|
465
|
+
leadingIcon: "print",
|
|
466
|
+
disabled: disabled || readOnly,
|
|
467
|
+
onPress: onPrint,
|
|
468
|
+
children: labels.print
|
|
469
|
+
}
|
|
470
|
+
)
|
|
471
|
+
] })
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
var RECOVERY_FONT = { sm: 13, md: 14, lg: 16 };
|
|
477
|
+
var sheet = createStyleSheet((theme) => ({
|
|
478
|
+
oneTime: {},
|
|
479
|
+
title: {
|
|
480
|
+
fontFamily: theme.font.sans,
|
|
481
|
+
fontSize: theme.fontSize[18],
|
|
482
|
+
fontWeight: theme.fontWeight.bold,
|
|
483
|
+
color: theme.color.text
|
|
484
|
+
},
|
|
485
|
+
loadingBox: { gap: theme.space.s2 },
|
|
486
|
+
doneRow: { flexDirection: "row", justifyContent: "flex-end" },
|
|
487
|
+
recovery: { gap: theme.space.s3 },
|
|
488
|
+
recoveryList: {
|
|
489
|
+
flexDirection: "row",
|
|
490
|
+
flexWrap: "wrap",
|
|
491
|
+
columnGap: theme.space.s4,
|
|
492
|
+
rowGap: theme.space.s2,
|
|
493
|
+
paddingHorizontal: theme.space.s4,
|
|
494
|
+
paddingVertical: theme.space.s3,
|
|
495
|
+
borderRadius: theme.radius.md,
|
|
496
|
+
borderWidth: theme.borderWidth.base,
|
|
497
|
+
borderColor: theme.color.border
|
|
498
|
+
},
|
|
499
|
+
recoveryItem: {
|
|
500
|
+
width: "45%",
|
|
501
|
+
flexDirection: "row",
|
|
502
|
+
alignItems: "center",
|
|
503
|
+
gap: theme.space.s2
|
|
504
|
+
},
|
|
505
|
+
recoveryText: {
|
|
506
|
+
fontFamily: theme.font.mono,
|
|
507
|
+
fontWeight: theme.fontWeight.medium,
|
|
508
|
+
fontVariant: ["tabular-nums"],
|
|
509
|
+
color: theme.color.text
|
|
510
|
+
},
|
|
511
|
+
recoveryIndex: { color: theme.color.text3, minWidth: theme.space[14] },
|
|
512
|
+
recoveryUsed: { color: theme.color.text3, textDecorationLine: "line-through" },
|
|
513
|
+
recoveryActions: { flexDirection: "row", flexWrap: "wrap", gap: theme.space.s2 },
|
|
514
|
+
container: { gap: theme.space[6] },
|
|
515
|
+
label: {
|
|
516
|
+
fontFamily: theme.font.sans,
|
|
517
|
+
color: theme.color.text,
|
|
518
|
+
variants: {
|
|
519
|
+
os: {
|
|
520
|
+
ios: { fontSize: theme.fontSize[13], fontWeight: theme.fontWeight.semibold },
|
|
521
|
+
android: { fontSize: theme.fontSize[14], fontWeight: theme.fontWeight.medium }
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
shell: {
|
|
526
|
+
flexDirection: "row",
|
|
527
|
+
alignItems: "center",
|
|
528
|
+
height: theme.ctl.lg,
|
|
529
|
+
paddingStart: theme.space.s3,
|
|
530
|
+
paddingEnd: theme.space[4],
|
|
531
|
+
gap: theme.space[2],
|
|
532
|
+
borderRadius: theme.ctl.r.lg,
|
|
533
|
+
backgroundColor: theme.color.surface2,
|
|
534
|
+
borderWidth: theme.borderWidth.thick,
|
|
535
|
+
borderColor: theme.color.borderStrong
|
|
536
|
+
},
|
|
537
|
+
value: {
|
|
538
|
+
flex: 1,
|
|
539
|
+
fontFamily: theme.font.mono,
|
|
540
|
+
fontWeight: theme.fontWeight.regular,
|
|
541
|
+
color: theme.color.text,
|
|
542
|
+
variants: {
|
|
543
|
+
os: {
|
|
544
|
+
ios: { fontSize: theme.fontSize[15] },
|
|
545
|
+
android: { fontSize: theme.fontSize[14] }
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
action: {
|
|
550
|
+
width: theme.space[36],
|
|
551
|
+
height: theme.space[36],
|
|
552
|
+
borderRadius: theme.ctl.r.md,
|
|
553
|
+
alignItems: "center",
|
|
554
|
+
justifyContent: "center"
|
|
555
|
+
},
|
|
556
|
+
hint: { fontFamily: theme.font.sans, fontSize: theme.fontSize[12], color: theme.color.text3 },
|
|
557
|
+
codeWrap: { gap: theme.space.s2, alignSelf: "flex-start" },
|
|
558
|
+
code: {
|
|
559
|
+
flexDirection: "row",
|
|
560
|
+
alignItems: "center",
|
|
561
|
+
gap: theme.space.s3,
|
|
562
|
+
paddingVertical: theme.space.s3,
|
|
563
|
+
paddingStart: theme.space.s4,
|
|
564
|
+
paddingEnd: theme.space.s2,
|
|
565
|
+
borderRadius: theme.radius.md,
|
|
566
|
+
backgroundColor: theme.color.surface2
|
|
567
|
+
},
|
|
568
|
+
codeText: {
|
|
569
|
+
fontFamily: theme.font.mono,
|
|
570
|
+
fontWeight: theme.fontWeight.semibold,
|
|
571
|
+
fontSize: theme.fontSize[28],
|
|
572
|
+
letterSpacing: theme.fontSize[28] * 0.06,
|
|
573
|
+
fontVariant: ["tabular-nums"],
|
|
574
|
+
color: theme.color.text
|
|
575
|
+
},
|
|
576
|
+
codeExpired: { color: theme.color.text3 },
|
|
577
|
+
badge: {
|
|
578
|
+
height: theme.space[20],
|
|
579
|
+
paddingHorizontal: theme.space.s2,
|
|
580
|
+
justifyContent: "center",
|
|
581
|
+
borderRadius: theme.radius.full,
|
|
582
|
+
backgroundColor: theme.color.surface2,
|
|
583
|
+
borderWidth: theme.borderWidth.base,
|
|
584
|
+
borderColor: theme.edge.neutral
|
|
585
|
+
},
|
|
586
|
+
badgeText: {
|
|
587
|
+
fontFamily: theme.font.sans,
|
|
588
|
+
fontSize: theme.fontSize[12],
|
|
589
|
+
fontWeight: theme.fontWeight.semibold,
|
|
590
|
+
color: theme.color.text2
|
|
591
|
+
},
|
|
592
|
+
expiry: { flexDirection: "row", alignItems: "center", gap: theme.space.s2 },
|
|
593
|
+
bar: {
|
|
594
|
+
width: theme.space[120],
|
|
595
|
+
height: theme.space[4],
|
|
596
|
+
borderRadius: theme.space[2],
|
|
597
|
+
overflow: "hidden",
|
|
598
|
+
backgroundColor: theme.color.surface3
|
|
599
|
+
},
|
|
600
|
+
barFill: { height: "100%", backgroundColor: theme.color.accentStrong },
|
|
601
|
+
expiryText: {
|
|
602
|
+
fontFamily: theme.font.mono,
|
|
603
|
+
fontSize: theme.fontSize[12],
|
|
604
|
+
fontWeight: theme.fontWeight.medium,
|
|
605
|
+
fontVariant: ["tabular-nums"],
|
|
606
|
+
color: theme.color.text2
|
|
607
|
+
}
|
|
608
|
+
}));
|
|
609
|
+
|
|
610
|
+
export { CodeDisplay, OneTimeSecret, RecoveryCodes, SECRET_CLIPBOARD_TTL, SecretField, maskSecret };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
// src/lib/state-layout.ts
|
|
4
|
+
function isAndroidIdiom(theme, platform) {
|
|
5
|
+
if (platform) return platform === "android";
|
|
6
|
+
if (Platform.OS === "android") return true;
|
|
7
|
+
if (Platform.OS === "ios") return false;
|
|
8
|
+
return theme.platform === "Android";
|
|
9
|
+
}
|
|
10
|
+
function stateLayout(theme, layout, platform) {
|
|
11
|
+
const android = isAndroidIdiom(theme, platform);
|
|
12
|
+
const full = layout === "fullScreen";
|
|
13
|
+
const title = android ? full ? { fontSize: theme.fontSize[24], lineHeight: theme.space[32], fontWeight: theme.fontWeight.regular } : { fontSize: theme.fontSize[16], lineHeight: theme.space[24], fontWeight: theme.fontWeight.medium } : full ? { fontSize: theme.fontSize[22], lineHeight: theme.space[28], fontWeight: theme.fontWeight.bold } : { fontSize: theme.fontSize[17], lineHeight: theme.space[22], fontWeight: theme.fontWeight.semibold };
|
|
14
|
+
return { tile: full ? "hero" : "lg", button: full ? "lg" : "md", title };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { isAndroidIdiom, stateLayout };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/lib/clipboard.ts
|
|
2
|
+
var registered = null;
|
|
3
|
+
function setClipboard(clipboard) {
|
|
4
|
+
registered = clipboard;
|
|
5
|
+
}
|
|
6
|
+
function getClipboard() {
|
|
7
|
+
if (registered) return registered;
|
|
8
|
+
const nav = globalThis.navigator;
|
|
9
|
+
return nav?.clipboard ?? null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { getClipboard, setClipboard };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/lib/align.ts
|
|
2
|
+
var FLEX_ALIGN = {
|
|
3
|
+
start: "flex-start",
|
|
4
|
+
center: "center",
|
|
5
|
+
end: "flex-end",
|
|
6
|
+
stretch: "stretch"
|
|
7
|
+
};
|
|
8
|
+
function alignItemsStyle(align) {
|
|
9
|
+
return align ? { alignItems: FLEX_ALIGN[align] } : null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { alignItemsStyle };
|