@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
package/dist/chunk-RW6ZL2FQ.js
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { Icon } from './chunk-TKVFVF5D.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { View, Text, Pressable } from 'react-native';
|
|
4
|
-
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
5
|
-
import { profile, gateHintDisplay } from '@btndprojects/loam-analyzer';
|
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
function camGlass(theme) {
|
|
9
|
-
return {
|
|
10
|
-
backgroundColor: theme.black.a12,
|
|
11
|
-
borderWidth: theme.borderWidth.base,
|
|
12
|
-
borderColor: theme.white.a5
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function camInk(theme) {
|
|
16
|
-
return theme.media.ink;
|
|
17
|
-
}
|
|
18
|
-
function camMeta(theme) {
|
|
19
|
-
return {
|
|
20
|
-
fontFamily: theme.font.mono,
|
|
21
|
-
color: theme.white.a10,
|
|
22
|
-
letterSpacing: theme.tracking.wider
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
var GATE_ANNOUNCE_MS = 1200;
|
|
26
|
-
function pressedProps(on) {
|
|
27
|
-
return { "aria-pressed": on };
|
|
28
|
-
}
|
|
29
|
-
function decorativeProps() {
|
|
30
|
-
return { "aria-hidden": true };
|
|
31
|
-
}
|
|
32
|
-
function untabbableProps() {
|
|
33
|
-
return { tabIndex: -1 };
|
|
34
|
-
}
|
|
35
|
-
var AnnounceContext = React.createContext(null);
|
|
36
|
-
function SurfaceLiveRegion({ children }) {
|
|
37
|
-
const [message, setMessage] = React.useState("");
|
|
38
|
-
const announce = React.useCallback((m) => setMessage(m), []);
|
|
39
|
-
const { styles } = useStyles(chromeSheet);
|
|
40
|
-
return /* @__PURE__ */ jsxs(AnnounceContext.Provider, { value: announce, children: [
|
|
41
|
-
children,
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
View,
|
|
44
|
-
{
|
|
45
|
-
role: "status",
|
|
46
|
-
accessibilityLiveRegion: "polite",
|
|
47
|
-
style: styles.srOnly,
|
|
48
|
-
...{ "aria-live": "polite" },
|
|
49
|
-
children: /* @__PURE__ */ jsx(Text, { style: styles.srOnly, children: message })
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] });
|
|
53
|
-
}
|
|
54
|
-
function useSurfaceAnnounce() {
|
|
55
|
-
return React.useContext(AnnounceContext);
|
|
56
|
-
}
|
|
57
|
-
function GlassIconButton({
|
|
58
|
-
icon,
|
|
59
|
-
label,
|
|
60
|
-
on,
|
|
61
|
-
size = "md",
|
|
62
|
-
radius = "full",
|
|
63
|
-
onPress
|
|
64
|
-
}) {
|
|
65
|
-
const theme = useLoamTheme();
|
|
66
|
-
const { styles } = useStyles(chromeSheet, { size, radius, on: on === true });
|
|
67
|
-
const glyph = on ? theme.media.onInk : camInk(theme);
|
|
68
|
-
return /* @__PURE__ */ jsx(
|
|
69
|
-
Pressable,
|
|
70
|
-
{
|
|
71
|
-
accessibilityRole: "button",
|
|
72
|
-
accessibilityLabel: label,
|
|
73
|
-
accessibilityState: on === void 0 ? void 0 : { selected: on },
|
|
74
|
-
onPress,
|
|
75
|
-
hitSlop: Math.max(0, (theme.hit.lg - (size === "lg" ? theme.ctl.lg : theme.ctl.md)) / 2),
|
|
76
|
-
style: styles.glassButton,
|
|
77
|
-
...on === void 0 ? {} : pressedProps(on),
|
|
78
|
-
children: /* @__PURE__ */ jsx(Icon, { name: icon, size: size === "lg" ? theme.icon.lg : theme.icon.md, color: glyph })
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
function chipColours(theme, tone) {
|
|
83
|
-
switch (tone) {
|
|
84
|
-
case "good":
|
|
85
|
-
return { fill: theme.color.good, ink: theme.color.goodInk };
|
|
86
|
-
case "warn":
|
|
87
|
-
return { fill: theme.color.warn, ink: theme.color.warnInk };
|
|
88
|
-
case "danger":
|
|
89
|
-
return { fill: theme.color.danger, ink: theme.color.dangerInk };
|
|
90
|
-
case "info":
|
|
91
|
-
return { fill: theme.color.info, ink: theme.color.infoInk };
|
|
92
|
-
default:
|
|
93
|
-
return { ink: camInk(theme) };
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
function GuidanceChip({
|
|
97
|
-
text,
|
|
98
|
-
tone = "neutral",
|
|
99
|
-
icon
|
|
100
|
-
}) {
|
|
101
|
-
const theme = useLoamTheme();
|
|
102
|
-
const { styles } = useStyles(chromeSheet, { tone });
|
|
103
|
-
const { ink } = chipColours(theme, tone);
|
|
104
|
-
return (
|
|
105
|
-
// The tone is on the testID as well as in the fill, so a test can read the
|
|
106
|
-
// *pill* rather than the live region that repeats its words.
|
|
107
|
-
/* @__PURE__ */ jsxs(View, { testID: `loam-chip-${tone}`, style: styles.chip, children: [
|
|
108
|
-
icon ? /* @__PURE__ */ jsx(Icon, { name: icon, size: theme.icon.sm, color: ink }) : null,
|
|
109
|
-
/* @__PURE__ */ jsx(Text, { style: [styles.chipText, { color: ink }], children: text })
|
|
110
|
-
] })
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
function GateHint({
|
|
114
|
-
profile: profileProp,
|
|
115
|
-
gate = { pass: true, failing: [] },
|
|
116
|
-
countdown = null,
|
|
117
|
-
live = true,
|
|
118
|
-
throttleMs = GATE_ANNOUNCE_MS
|
|
119
|
-
}) {
|
|
120
|
-
const resolved = profile(profileProp);
|
|
121
|
-
const display = gateHintDisplay(resolved, gate, countdown);
|
|
122
|
-
const surface = useSurfaceAnnounce();
|
|
123
|
-
const [own, setOwn] = React.useState("");
|
|
124
|
-
const { styles } = useStyles(chromeSheet);
|
|
125
|
-
const sink = React.useRef(setOwn);
|
|
126
|
-
sink.current = surface ?? setOwn;
|
|
127
|
-
const last = React.useRef({ text: "", at: 0 });
|
|
128
|
-
React.useEffect(() => {
|
|
129
|
-
if (!live) return;
|
|
130
|
-
const text = display.text;
|
|
131
|
-
if (text === last.current.text) return;
|
|
132
|
-
const wait = last.current.at === 0 ? 0 : last.current.at + throttleMs - Date.now();
|
|
133
|
-
if (wait <= 0) {
|
|
134
|
-
last.current = { text, at: Date.now() };
|
|
135
|
-
sink.current(text);
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
const timer = setTimeout(() => {
|
|
139
|
-
last.current = { text, at: Date.now() };
|
|
140
|
-
sink.current(text);
|
|
141
|
-
}, wait);
|
|
142
|
-
return () => clearTimeout(timer);
|
|
143
|
-
}, [display.text, live, throttleMs]);
|
|
144
|
-
return /* @__PURE__ */ jsxs(View, { style: styles.centreRow, children: [
|
|
145
|
-
/* @__PURE__ */ jsx(GuidanceChip, { text: display.text, tone: display.tone, icon: display.icon }),
|
|
146
|
-
surface ? null : /* @__PURE__ */ jsx(
|
|
147
|
-
View,
|
|
148
|
-
{
|
|
149
|
-
role: "status",
|
|
150
|
-
accessibilityLiveRegion: "polite",
|
|
151
|
-
style: styles.srOnly,
|
|
152
|
-
...{ "aria-live": "polite" },
|
|
153
|
-
children: /* @__PURE__ */ jsx(Text, { style: styles.srOnly, children: own })
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
] });
|
|
157
|
-
}
|
|
158
|
-
function ViewfinderTopBar({
|
|
159
|
-
title,
|
|
160
|
-
subtitle,
|
|
161
|
-
align = "start",
|
|
162
|
-
closeLabel = "Close camera",
|
|
163
|
-
onClose,
|
|
164
|
-
children
|
|
165
|
-
}) {
|
|
166
|
-
const theme = useLoamTheme();
|
|
167
|
-
const { styles } = useStyles(chromeSheet, { align });
|
|
168
|
-
const ink = camInk(theme);
|
|
169
|
-
return /* @__PURE__ */ jsxs(View, { style: styles.topBar, children: [
|
|
170
|
-
onClose ? /* @__PURE__ */ jsx(GlassIconButton, { icon: "x", label: closeLabel, onPress: onClose }) : null,
|
|
171
|
-
/* @__PURE__ */ jsxs(View, { style: styles.titlePlate, children: [
|
|
172
|
-
/* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles.title, { color: ink }], children: title }),
|
|
173
|
-
subtitle ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles.subtitle, { color: ink }], children: subtitle }) : null
|
|
174
|
-
] }),
|
|
175
|
-
/* @__PURE__ */ jsx(View, { style: styles.topBarEnd, children })
|
|
176
|
-
] });
|
|
177
|
-
}
|
|
178
|
-
var chromeSheet = createStyleSheet((theme) => ({
|
|
179
|
-
// A 1×1 clipped box rather than `display:'none'`: a hidden region is not
|
|
180
|
-
// announced, and RN has no `sr-only` utility.
|
|
181
|
-
srOnly: {
|
|
182
|
-
position: "absolute",
|
|
183
|
-
width: theme.space[1],
|
|
184
|
-
height: theme.space[1],
|
|
185
|
-
overflow: "hidden"
|
|
186
|
-
},
|
|
187
|
-
centreRow: {
|
|
188
|
-
flexDirection: "row",
|
|
189
|
-
justifyContent: "center"
|
|
190
|
-
},
|
|
191
|
-
glassButton: {
|
|
192
|
-
flexDirection: "row",
|
|
193
|
-
alignItems: "center",
|
|
194
|
-
justifyContent: "center",
|
|
195
|
-
flexGrow: 0,
|
|
196
|
-
flexShrink: 0,
|
|
197
|
-
borderWidth: theme.borderWidth.base,
|
|
198
|
-
borderColor: theme.white.a5,
|
|
199
|
-
variants: {
|
|
200
|
-
size: {
|
|
201
|
-
// 36 and 44 drawn, 44 hit at both (see `hitSlop` on the Pressable).
|
|
202
|
-
md: { width: theme.ctl.md, height: theme.ctl.md },
|
|
203
|
-
lg: { width: theme.ctl.lg, height: theme.ctl.lg }
|
|
204
|
-
},
|
|
205
|
-
radius: {
|
|
206
|
-
full: { borderRadius: theme.radius.full },
|
|
207
|
-
sm: { borderRadius: theme.radius.sm }
|
|
208
|
-
},
|
|
209
|
-
// "On" inverts the plate to an opaque fill, so the state is not a colour.
|
|
210
|
-
on: {
|
|
211
|
-
true: { backgroundColor: theme.media.ink, borderColor: theme.media.ink },
|
|
212
|
-
false: { backgroundColor: theme.black.a12 }
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
chip: {
|
|
217
|
-
flexDirection: "row",
|
|
218
|
-
alignItems: "center",
|
|
219
|
-
gap: theme.space[6],
|
|
220
|
-
paddingHorizontal: theme.space[12],
|
|
221
|
-
paddingVertical: theme.space[6],
|
|
222
|
-
borderRadius: theme.radius.full,
|
|
223
|
-
maxWidth: theme.panel.lg,
|
|
224
|
-
variants: {
|
|
225
|
-
tone: {
|
|
226
|
-
neutral: {
|
|
227
|
-
backgroundColor: theme.black.a12,
|
|
228
|
-
borderWidth: theme.borderWidth.base,
|
|
229
|
-
borderColor: theme.white.a5
|
|
230
|
-
},
|
|
231
|
-
good: { backgroundColor: theme.color.good },
|
|
232
|
-
warn: { backgroundColor: theme.color.warn },
|
|
233
|
-
danger: { backgroundColor: theme.color.danger },
|
|
234
|
-
info: { backgroundColor: theme.color.info }
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
chipText: {
|
|
239
|
-
fontFamily: theme.font.sans,
|
|
240
|
-
fontSize: theme.fontSize[13],
|
|
241
|
-
flexShrink: 1
|
|
242
|
-
},
|
|
243
|
-
topBar: {
|
|
244
|
-
flexDirection: "row",
|
|
245
|
-
alignItems: "center",
|
|
246
|
-
gap: theme.space[8],
|
|
247
|
-
padding: theme.space[8]
|
|
248
|
-
},
|
|
249
|
-
titlePlate: {
|
|
250
|
-
flexShrink: 1,
|
|
251
|
-
minWidth: theme.space[0],
|
|
252
|
-
flexDirection: "column",
|
|
253
|
-
paddingHorizontal: theme.space[10],
|
|
254
|
-
paddingVertical: theme.space[4],
|
|
255
|
-
borderRadius: theme.radius.sm,
|
|
256
|
-
backgroundColor: theme.black.a12,
|
|
257
|
-
borderWidth: theme.borderWidth.base,
|
|
258
|
-
borderColor: theme.white.a5,
|
|
259
|
-
variants: {
|
|
260
|
-
align: {
|
|
261
|
-
start: { alignItems: "flex-start" },
|
|
262
|
-
center: { alignItems: "center", marginHorizontal: "auto" }
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
title: {
|
|
267
|
-
fontFamily: theme.font.sans,
|
|
268
|
-
fontSize: theme.fontSize[13],
|
|
269
|
-
fontWeight: theme.fontWeight.semibold
|
|
270
|
-
},
|
|
271
|
-
subtitle: {
|
|
272
|
-
fontFamily: theme.font.sans,
|
|
273
|
-
fontSize: theme.fontSize[11]
|
|
274
|
-
},
|
|
275
|
-
topBarEnd: {
|
|
276
|
-
marginStart: "auto",
|
|
277
|
-
flexShrink: 0,
|
|
278
|
-
flexDirection: "row",
|
|
279
|
-
alignItems: "center",
|
|
280
|
-
gap: theme.space[8]
|
|
281
|
-
}
|
|
282
|
-
}));
|
|
283
|
-
|
|
284
|
-
export { GATE_ANNOUNCE_MS, GateHint, GlassIconButton, GuidanceChip, SurfaceLiveRegion, ViewfinderTopBar, camGlass, camInk, camMeta, decorativeProps, pressedProps, untabbableProps, useSurfaceAnnounce };
|
package/dist/chunk-TKVFVF5D.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import { Svg, Circle, Line, Rect, Polyline, Polygon, Ellipse, Path } from 'react-native-svg';
|
|
3
|
-
import { icons } from '@btndprojects/loam-icons';
|
|
4
|
-
import { useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
// src/lib/icon.tsx
|
|
8
|
-
function Icon({ name, size = 20, color, strokeWidth = 1.5 }) {
|
|
9
|
-
const theme = useLoamTheme();
|
|
10
|
-
const stroke = color ?? theme.color.text;
|
|
11
|
-
return /* @__PURE__ */ jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", children: icons[name].map((p, i) => {
|
|
12
|
-
if (p.t === "circle")
|
|
13
|
-
return p.fill ? /* @__PURE__ */ jsx(Circle, { cx: p.cx, cy: p.cy, r: p.r, fill: stroke }, i) : /* @__PURE__ */ jsx(Circle, { cx: p.cx, cy: p.cy, r: p.r, stroke, strokeWidth }, i);
|
|
14
|
-
if (p.t === "line")
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
Line,
|
|
17
|
-
{
|
|
18
|
-
x1: p.x1,
|
|
19
|
-
y1: p.y1,
|
|
20
|
-
x2: p.x2,
|
|
21
|
-
y2: p.y2,
|
|
22
|
-
stroke,
|
|
23
|
-
strokeWidth,
|
|
24
|
-
strokeLinecap: "round"
|
|
25
|
-
},
|
|
26
|
-
i
|
|
27
|
-
);
|
|
28
|
-
if (p.t === "rect")
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
Rect,
|
|
31
|
-
{
|
|
32
|
-
x: p.x,
|
|
33
|
-
y: p.y,
|
|
34
|
-
width: p.width,
|
|
35
|
-
height: p.height,
|
|
36
|
-
rx: p.rx,
|
|
37
|
-
ry: p.ry,
|
|
38
|
-
stroke,
|
|
39
|
-
strokeWidth,
|
|
40
|
-
strokeLinejoin: "round"
|
|
41
|
-
},
|
|
42
|
-
i
|
|
43
|
-
);
|
|
44
|
-
if (p.t === "polyline")
|
|
45
|
-
return /* @__PURE__ */ jsx(
|
|
46
|
-
Polyline,
|
|
47
|
-
{
|
|
48
|
-
points: p.points,
|
|
49
|
-
stroke,
|
|
50
|
-
strokeWidth,
|
|
51
|
-
strokeLinecap: "round",
|
|
52
|
-
strokeLinejoin: "round"
|
|
53
|
-
},
|
|
54
|
-
i
|
|
55
|
-
);
|
|
56
|
-
if (p.t === "polygon")
|
|
57
|
-
return /* @__PURE__ */ jsx(
|
|
58
|
-
Polygon,
|
|
59
|
-
{
|
|
60
|
-
points: p.points,
|
|
61
|
-
stroke,
|
|
62
|
-
strokeWidth,
|
|
63
|
-
strokeLinecap: "round",
|
|
64
|
-
strokeLinejoin: "round"
|
|
65
|
-
},
|
|
66
|
-
i
|
|
67
|
-
);
|
|
68
|
-
if (p.t === "ellipse")
|
|
69
|
-
return /* @__PURE__ */ jsx(
|
|
70
|
-
Ellipse,
|
|
71
|
-
{
|
|
72
|
-
cx: p.cx,
|
|
73
|
-
cy: p.cy,
|
|
74
|
-
rx: p.rx,
|
|
75
|
-
ry: p.ry,
|
|
76
|
-
stroke,
|
|
77
|
-
strokeWidth
|
|
78
|
-
},
|
|
79
|
-
i
|
|
80
|
-
);
|
|
81
|
-
return /* @__PURE__ */ jsx(
|
|
82
|
-
Path,
|
|
83
|
-
{
|
|
84
|
-
d: p.d,
|
|
85
|
-
stroke,
|
|
86
|
-
strokeWidth,
|
|
87
|
-
strokeLinecap: "round",
|
|
88
|
-
strokeLinejoin: "round"
|
|
89
|
-
},
|
|
90
|
-
i
|
|
91
|
-
);
|
|
92
|
-
}) });
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export { Icon };
|
package/dist/chunk-TOXAGRDQ.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { CopyButton } from './chunk-4ZAHCY44.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { View, Text, ScrollView } from 'react-native';
|
|
4
|
-
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
5
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function CodeBlock({
|
|
8
|
-
code,
|
|
9
|
-
language,
|
|
10
|
-
showLineNumbers = true,
|
|
11
|
-
wrap = false,
|
|
12
|
-
copyable = true,
|
|
13
|
-
onCopy,
|
|
14
|
-
caption,
|
|
15
|
-
filename,
|
|
16
|
-
maxHeight,
|
|
17
|
-
highlightLines,
|
|
18
|
-
// `motion` is accepted for API parity only — a code block never animates.
|
|
19
|
-
motion: _motion
|
|
20
|
-
}) {
|
|
21
|
-
const { styles } = useStyles(sheet);
|
|
22
|
-
const theme = useLoamTheme();
|
|
23
|
-
const lines = code.split("\n");
|
|
24
|
-
const label = filename ?? caption;
|
|
25
|
-
const hasHeader = Boolean(label || language);
|
|
26
|
-
const highlighted = React.useMemo(() => new Set(highlightLines ?? []), [highlightLines]);
|
|
27
|
-
const rows = lines.map((line, i) => {
|
|
28
|
-
const n = i + 1;
|
|
29
|
-
const isHot = highlighted.has(n);
|
|
30
|
-
const contentStyle = wrap ? styles.codeWrap : styles.codeNoWrap;
|
|
31
|
-
return /* @__PURE__ */ jsxs(
|
|
32
|
-
View,
|
|
33
|
-
{
|
|
34
|
-
style: [
|
|
35
|
-
styles.line,
|
|
36
|
-
!showLineNumbers && styles.lineInset,
|
|
37
|
-
isHot && { backgroundColor: theme.state.selected }
|
|
38
|
-
],
|
|
39
|
-
children: [
|
|
40
|
-
showLineNumbers ? /* @__PURE__ */ jsx(
|
|
41
|
-
Text,
|
|
42
|
-
{
|
|
43
|
-
testID: "code-block-gutter",
|
|
44
|
-
style: [styles.gutter, isHot && { color: theme.code.fg }],
|
|
45
|
-
importantForAccessibility: "no",
|
|
46
|
-
accessibilityElementsHidden: true,
|
|
47
|
-
children: n
|
|
48
|
-
}
|
|
49
|
-
) : null,
|
|
50
|
-
/* @__PURE__ */ jsx(Text, { style: [styles.code, contentStyle], selectable: true, children: line.length ? line : " " })
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
i
|
|
54
|
-
);
|
|
55
|
-
});
|
|
56
|
-
return /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
|
|
57
|
-
hasHeader ? /* @__PURE__ */ jsxs(View, { style: styles.header, children: [
|
|
58
|
-
/* @__PURE__ */ jsxs(View, { style: styles.headerLabels, children: [
|
|
59
|
-
label ? /* @__PURE__ */ jsx(Text, { style: styles.filename, numberOfLines: 1, children: label }) : null,
|
|
60
|
-
language ? /* @__PURE__ */ jsx(Text, { style: styles.language, children: language.toUpperCase() }) : null
|
|
61
|
-
] }),
|
|
62
|
-
copyable ? /* @__PURE__ */ jsx(CopyButton, { value: code, onCopy, accessibilityLabel: "Copy code" }) : null
|
|
63
|
-
] }) : copyable ? /* @__PURE__ */ jsx(View, { style: styles.corner, children: /* @__PURE__ */ jsx(CopyButton, { value: code, onCopy, accessibilityLabel: "Copy code" }) }) : null,
|
|
64
|
-
/* @__PURE__ */ jsx(ScrollView, { focusable: true, style: maxHeight ? { maxHeight } : void 0, contentContainerStyle: styles.body, children: wrap ? /* @__PURE__ */ jsx(View, { style: styles.lines, children: rows }) : /* @__PURE__ */ jsx(ScrollView, { horizontal: true, focusable: true, contentContainerStyle: styles.lines, children: rows }) })
|
|
65
|
-
] });
|
|
66
|
-
}
|
|
67
|
-
var sheet = createStyleSheet((theme) => ({
|
|
68
|
-
root: {
|
|
69
|
-
position: "relative",
|
|
70
|
-
borderRadius: theme.radius.lg,
|
|
71
|
-
borderWidth: theme.borderWidth.base,
|
|
72
|
-
borderColor: theme.color.border,
|
|
73
|
-
backgroundColor: theme.code.bg,
|
|
74
|
-
overflow: "hidden"
|
|
75
|
-
},
|
|
76
|
-
header: {
|
|
77
|
-
flexDirection: "row",
|
|
78
|
-
alignItems: "center",
|
|
79
|
-
justifyContent: "space-between",
|
|
80
|
-
gap: theme.space.s3,
|
|
81
|
-
paddingStart: theme.space.s4,
|
|
82
|
-
paddingEnd: theme.space.s2,
|
|
83
|
-
paddingVertical: theme.space.s2,
|
|
84
|
-
borderBottomWidth: theme.borderWidth.base,
|
|
85
|
-
borderBottomColor: theme.color.border
|
|
86
|
-
},
|
|
87
|
-
headerLabels: {
|
|
88
|
-
flexShrink: 1,
|
|
89
|
-
flexDirection: "row",
|
|
90
|
-
alignItems: "baseline",
|
|
91
|
-
gap: theme.space.s2
|
|
92
|
-
},
|
|
93
|
-
filename: {
|
|
94
|
-
flexShrink: 1,
|
|
95
|
-
fontFamily: theme.font.mono,
|
|
96
|
-
fontSize: theme.type.footnote.fontSize,
|
|
97
|
-
color: theme.code.fg
|
|
98
|
-
},
|
|
99
|
-
language: {
|
|
100
|
-
fontFamily: theme.font.mono,
|
|
101
|
-
fontSize: theme.type.caption1.fontSize,
|
|
102
|
-
letterSpacing: 1,
|
|
103
|
-
color: theme.code.fg,
|
|
104
|
-
opacity: theme.opacity[80]
|
|
105
|
-
},
|
|
106
|
-
corner: {
|
|
107
|
-
position: "absolute",
|
|
108
|
-
top: theme.space.s1,
|
|
109
|
-
end: theme.space.s1,
|
|
110
|
-
zIndex: theme.z.raised
|
|
111
|
-
},
|
|
112
|
-
body: { paddingVertical: theme.space.s3 },
|
|
113
|
-
lines: { flexDirection: "column" },
|
|
114
|
-
line: { flexDirection: "row", alignItems: "flex-start" },
|
|
115
|
-
// No gutter → the code needs the leading inset the gutter would have carried.
|
|
116
|
-
lineInset: { paddingStart: theme.space.s4 },
|
|
117
|
-
gutter: {
|
|
118
|
-
minWidth: theme.space.s6,
|
|
119
|
-
paddingStart: theme.space.s4,
|
|
120
|
-
paddingEnd: theme.space.s3,
|
|
121
|
-
textAlign: "right",
|
|
122
|
-
fontFamily: theme.font.mono,
|
|
123
|
-
fontSize: theme.type.footnote.fontSize,
|
|
124
|
-
lineHeight: theme.code.lineH,
|
|
125
|
-
// A muted gutter ink that still clears AA (4.5:1) on code.bg: code.fg at 70%
|
|
126
|
-
// alpha (~5.6:1 light / ~7.2:1 dark). `theme.code.com` is short in dark
|
|
127
|
-
// (~4.1:1), and `aria-hidden` does not exempt the gutter from axe here.
|
|
128
|
-
color: `${theme.code.fg}b3`
|
|
129
|
-
},
|
|
130
|
-
code: {
|
|
131
|
-
fontFamily: theme.font.mono,
|
|
132
|
-
fontSize: theme.type.footnote.fontSize,
|
|
133
|
-
lineHeight: theme.code.lineH,
|
|
134
|
-
color: theme.code.fg,
|
|
135
|
-
paddingEnd: theme.space.s4
|
|
136
|
-
},
|
|
137
|
-
// Wrapped lines take the remaining width so the Text engine can break them.
|
|
138
|
-
codeWrap: { flex: 1 },
|
|
139
|
-
// Non-wrapped lines size to their intrinsic width inside the horizontal
|
|
140
|
-
// ScrollView, so a long line scrolls rather than wrapping.
|
|
141
|
-
codeNoWrap: {}
|
|
142
|
-
}));
|
|
143
|
-
|
|
144
|
-
export { CodeBlock };
|
package/dist/chunk-TUTI5HOZ.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, Text } from 'react-native';
|
|
3
|
-
import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
|
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
// src/description-list/description-list.tsx
|
|
7
|
-
var DescriptionListContext = React.createContext({
|
|
8
|
-
layout: "stacked",
|
|
9
|
-
density: "comfortable"
|
|
10
|
-
});
|
|
11
|
-
function DescriptionList({
|
|
12
|
-
layout = "stacked",
|
|
13
|
-
density = "comfortable",
|
|
14
|
-
dividers = false,
|
|
15
|
-
items,
|
|
16
|
-
// Accepted for API consistency; static data drives no motion.
|
|
17
|
-
motion: _motion,
|
|
18
|
-
children
|
|
19
|
-
}) {
|
|
20
|
-
const { styles } = useStyles(sheet);
|
|
21
|
-
const ctx = React.useMemo(
|
|
22
|
-
() => ({ layout, density }),
|
|
23
|
-
[layout, density]
|
|
24
|
-
);
|
|
25
|
-
const rows = [
|
|
26
|
-
...items?.map((entry, i) => /* @__PURE__ */ jsx(DescriptionItem, { term: entry.term, description: entry.description }, `item-${i}`)) ?? [],
|
|
27
|
-
...React.Children.toArray(children)
|
|
28
|
-
];
|
|
29
|
-
const content = dividers ? rows.flatMap(
|
|
30
|
-
(row, i) => i === 0 ? [row] : [/* @__PURE__ */ jsx(View, { style: styles.divider }, `divider-${i}`), row]
|
|
31
|
-
) : rows;
|
|
32
|
-
return /* @__PURE__ */ jsx(DescriptionListContext.Provider, { value: ctx, children: /* @__PURE__ */ jsx(View, { style: styles.root, children: content }) });
|
|
33
|
-
}
|
|
34
|
-
function DescriptionItem({
|
|
35
|
-
term,
|
|
36
|
-
description
|
|
37
|
-
}) {
|
|
38
|
-
const { layout, density } = React.useContext(DescriptionListContext);
|
|
39
|
-
const { styles } = useStyles(sheet, { layout, density });
|
|
40
|
-
const theme = useLoamTheme();
|
|
41
|
-
const isInline = layout === "inline";
|
|
42
|
-
const pairLabel = typeof term === "string" && typeof description === "string" ? `${term}, ${description}` : void 0;
|
|
43
|
-
return /* @__PURE__ */ jsxs(
|
|
44
|
-
View,
|
|
45
|
-
{
|
|
46
|
-
style: styles.container,
|
|
47
|
-
accessible: pairLabel !== void 0,
|
|
48
|
-
accessibilityLabel: pairLabel,
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ jsx(Text, { style: [styles.term, isInline && termInlineStyle], children: term }),
|
|
51
|
-
/* @__PURE__ */ jsx(
|
|
52
|
-
Text,
|
|
53
|
-
{
|
|
54
|
-
style: [
|
|
55
|
-
styles.value,
|
|
56
|
-
isInline && { flexShrink: 1, textAlign: theme.rtl ? "left" : "right" }
|
|
57
|
-
],
|
|
58
|
-
children: description
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
var termInlineStyle = { flexShrink: 0 };
|
|
66
|
-
var sheet = createStyleSheet((theme) => ({
|
|
67
|
-
root: { alignSelf: "stretch" },
|
|
68
|
-
container: {
|
|
69
|
-
alignSelf: "stretch",
|
|
70
|
-
variants: {
|
|
71
|
-
layout: {
|
|
72
|
-
stacked: { flexDirection: "column", alignItems: "stretch", gap: theme.space.s1 },
|
|
73
|
-
inline: {
|
|
74
|
-
flexDirection: "row",
|
|
75
|
-
justifyContent: "space-between",
|
|
76
|
-
alignItems: "baseline",
|
|
77
|
-
gap: theme.space.s4
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
density: {
|
|
81
|
-
comfortable: { paddingVertical: theme.space.s2 },
|
|
82
|
-
compact: { paddingVertical: theme.space.s1 }
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
// Muted secondary ink — measured to clear AA on a surface.
|
|
87
|
-
term: {
|
|
88
|
-
fontFamily: theme.font.sans,
|
|
89
|
-
fontWeight: theme.fontWeight.medium,
|
|
90
|
-
color: theme.color.text2,
|
|
91
|
-
fontSize: theme.type.footnote.fontSize,
|
|
92
|
-
lineHeight: theme.type.footnote.lineHeight,
|
|
93
|
-
letterSpacing: theme.type.footnote.letterSpacing
|
|
94
|
-
},
|
|
95
|
-
// Primary ink, with a measure cap so long values stay legible.
|
|
96
|
-
value: {
|
|
97
|
-
fontFamily: theme.font.sans,
|
|
98
|
-
fontWeight: theme.fontWeight.regular,
|
|
99
|
-
color: theme.color.text,
|
|
100
|
-
fontSize: theme.type.subheadline.fontSize,
|
|
101
|
-
lineHeight: theme.type.subheadline.lineHeight,
|
|
102
|
-
letterSpacing: theme.type.subheadline.letterSpacing,
|
|
103
|
-
maxWidth: Math.round(theme.type.subheadline.fontSize * 0.5 * theme.measure.base)
|
|
104
|
-
},
|
|
105
|
-
divider: {
|
|
106
|
-
alignSelf: "stretch",
|
|
107
|
-
height: theme.borderWidth.base,
|
|
108
|
-
backgroundColor: theme.color.border
|
|
109
|
-
}
|
|
110
|
-
}));
|
|
111
|
-
|
|
112
|
-
export { DescriptionItem, DescriptionList };
|