@xaui/native 0.9.1-alpha.93 → 0.9.1-beta.100
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/{chunk-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
- package/dist/{chunk-PAQZOD2L.js → chunk-2JFMCW5E.js} +1 -1
- package/dist/{chunk-TPYOQSKT.js → chunk-2UNLQRXY.js} +1 -1
- package/dist/{chunk-GYEQEF5H.js → chunk-356DND54.js} +1 -1
- package/dist/{chunk-OD6H7ANY.js → chunk-3BRVAMXQ.js} +2 -2
- package/dist/{chunk-QCH7X7O2.cjs → chunk-3DQCHPB6.cjs} +14 -14
- package/dist/{chunk-B33OU34Z.cjs → chunk-3MMOZP4Y.cjs} +20 -20
- package/dist/chunk-3TBT6ORW.cjs +662 -0
- package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
- package/dist/{chunk-CBXILKQZ.cjs → chunk-435MOVG2.cjs} +3 -3
- package/dist/{chunk-2B6PUYTP.cjs → chunk-55KGHYYU.cjs} +4 -4
- package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
- package/dist/{chunk-FVEMTBU4.js → chunk-5G36GMFS.js} +3 -3
- package/dist/{chunk-BI5ME4QP.cjs → chunk-5UT5I53X.cjs} +8 -8
- package/dist/{chunk-V2CEKPJ6.js → chunk-6MVKLRLZ.js} +1 -1
- package/dist/{chunk-RSIWSVXI.js → chunk-6NAZ2IHL.js} +1 -1
- package/dist/{chunk-LPJ3UBSO.cjs → chunk-6NRWZR7T.cjs} +2 -2
- package/dist/{chunk-7NQL5DXY.js → chunk-6XY3XAEQ.js} +1 -1
- package/dist/{chunk-UEW3GAP5.cjs → chunk-6ZWQDTGQ.cjs} +5 -5
- package/dist/{chunk-ODQHAPQW.js → chunk-73EVNWZI.js} +25 -23
- package/dist/{chunk-VMPCXS4S.js → chunk-7EPH24S2.js} +23 -21
- package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
- package/dist/{chunk-FXN32S75.cjs → chunk-ADGHFLBJ.cjs} +4 -4
- package/dist/{chunk-OPLPLFGK.cjs → chunk-AHKKEM3K.cjs} +66 -23
- package/dist/{chunk-WRZV6ORJ.js → chunk-AYOJXFHR.js} +1 -1
- package/dist/{chunk-MMFIMQMQ.js → chunk-BBQQIO6L.js} +6 -6
- package/dist/{chunk-PROLOLZ5.cjs → chunk-BGBJTBFC.cjs} +3 -3
- package/dist/{chunk-RXEUKYM5.js → chunk-BH4IN6H6.js} +2 -2
- package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
- package/dist/{chunk-CYOUOQXT.cjs → chunk-C2S6J27O.cjs} +6 -6
- package/dist/chunk-C6JO2RTV.cjs +752 -0
- package/dist/{chunk-NVODH2PR.js → chunk-CCTAJXZ3.js} +63 -61
- package/dist/{chunk-ORXVXYKC.cjs → chunk-CHGBWFDI.cjs} +63 -26
- package/dist/chunk-CS6CYB4I.cjs +260 -0
- package/dist/{chunk-WLJPO3AS.cjs → chunk-CZ2NUGUI.cjs} +357 -201
- package/dist/{chunk-PYQ2P3M5.cjs → chunk-CZEWWCWG.cjs} +58 -58
- package/dist/{chunk-PDSR42YC.cjs → chunk-D22K3NZU.cjs} +3 -3
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/chunk-ETY5PM3E.cjs +797 -0
- package/dist/{chunk-62AYYMZP.cjs → chunk-FDYPWVNP.cjs} +3 -3
- package/dist/{chunk-PAQD6UUF.cjs → chunk-FLKTJ46K.cjs} +17 -17
- package/dist/{chunk-EBCAPIBD.js → chunk-FSVZXWLZ.js} +71 -51
- package/dist/{chunk-FOOXBVOQ.js → chunk-GVZJNIHN.js} +184 -68
- package/dist/chunk-GWTURY4S.cjs +999 -0
- package/dist/{chunk-OW4N2C3M.cjs → chunk-HBYT7B47.cjs} +88 -61
- package/dist/{chunk-7EVW6O2Q.js → chunk-HDERVGWZ.js} +2 -2
- package/dist/{chunk-XWIPLZTD.cjs → chunk-HOV25N3M.cjs} +2 -2
- package/dist/{chunk-5MMBEDZG.cjs → chunk-I3XIZWCV.cjs} +29 -29
- package/dist/{chunk-EDNCHCIN.cjs → chunk-IAJG7GYE.cjs} +2 -2
- package/dist/{chunk-P7OHZCU3.js → chunk-IAWLQN2W.js} +2 -2
- package/dist/{chunk-RCSEVEIR.js → chunk-ICVIWXK4.js} +1 -1
- package/dist/chunk-IHRPAKCZ.cjs +540 -0
- package/dist/{chunk-ZWS3FQ3J.js → chunk-IUDQG3JI.js} +57 -57
- package/dist/{chunk-JKDWYNSG.js → chunk-IVELCJEN.js} +110 -108
- package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
- package/dist/{chunk-QN2D5ZCS.cjs → chunk-KAYZH7ZN.cjs} +4 -4
- package/dist/{chunk-RREJUSAS.cjs → chunk-KIXHSX3L.cjs} +4 -4
- package/dist/{chunk-2AFA5HA2.js → chunk-KQW25RCC.js} +77 -75
- package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
- package/dist/{chunk-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
- package/dist/{chunk-X4CZYJZ6.cjs → chunk-LCGJA37L.cjs} +12 -12
- package/dist/{chunk-P2CJNTAP.js → chunk-LMMHAGOM.js} +33 -22
- package/dist/{chunk-SUJLTC2K.js → chunk-LPGY2IDX.js} +1 -1
- package/dist/{chunk-P5M5URAB.js → chunk-LSZW4G7B.js} +31 -31
- package/dist/{chunk-LECYGVIH.js → chunk-LYWXGEED.js} +51 -49
- package/dist/{chunk-VQGNLX5C.js → chunk-M352N6PQ.js} +6 -6
- package/dist/{chunk-AIND5F7P.js → chunk-MTQGFUW5.js} +29 -29
- package/dist/{chunk-ZKGVOXLQ.js → chunk-MXSIY6QQ.js} +4 -4
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-DYQB54JA.cjs → chunk-NPAGA6SH.cjs} +2 -2
- package/dist/{chunk-O6B72H4B.js → chunk-NQDTGYHC.js} +7 -9
- package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
- package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
- package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
- package/dist/{chunk-QELEKXN3.cjs → chunk-OMI2FRCU.cjs} +5 -5
- package/dist/{chunk-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
- package/dist/{chunk-JBZ7SBRV.cjs → chunk-Q3ZKZ2Y6.cjs} +3 -3
- package/dist/chunk-QRH45OO3.cjs +903 -0
- package/dist/{chunk-6RU6GUJP.js → chunk-QZF7RSVV.js} +1 -1
- package/dist/{chunk-UYQLW7OD.js → chunk-RAYO2TJL.js} +2 -2
- package/dist/{chunk-FRLWG5LM.js → chunk-RFT5MGJC.js} +25 -25
- package/dist/{chunk-USIWPESU.js → chunk-SIX5AVXG.js} +1 -1
- package/dist/chunk-SVS726BW.js +822 -0
- package/dist/{chunk-GGP2ERSV.js → chunk-T5ES7FOL.js} +1 -1
- package/dist/{chunk-JJYHW4PV.js → chunk-TNFLBURM.js} +2 -2
- package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
- package/dist/chunk-USQK6SFZ.cjs +627 -0
- package/dist/{chunk-MSORLKO7.cjs → chunk-V3C3ATRO.cjs} +2 -2
- package/dist/{chunk-TCWW7JI2.js → chunk-V5FYHQKQ.js} +111 -94
- package/dist/{chunk-CBRW53GN.cjs → chunk-V5V2QYFH.cjs} +43 -27
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-TRWZEOCO.js → chunk-VL2ZT4BB.js} +5 -5
- package/dist/{chunk-2SHWOFQV.js → chunk-VQ4OTVET.js} +29 -29
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-6GQ7UTJ7.cjs → chunk-VXAIFOXL.cjs} +2 -2
- package/dist/{chunk-BJVO7DWJ.js → chunk-W4F4NQXM.js} +1 -1
- package/dist/{chunk-JC4YCKKL.js → chunk-WIGDDZHO.js} +198 -82
- package/dist/{chunk-ZE4IHUUO.cjs → chunk-WNEDQTH6.cjs} +2 -2
- package/dist/chunk-WSDDUVF6.cjs +395 -0
- package/dist/{chunk-QHXTO525.js → chunk-WYJHDTU7.js} +1 -1
- package/dist/{chunk-RLC3EXMV.js → chunk-XM4IN4Q6.js} +2 -2
- package/dist/chunk-XXXR2AD3.cjs +94 -0
- package/dist/{chunk-AR7667VN.cjs → chunk-YJA7OQQZ.cjs} +4 -4
- package/dist/{chunk-LKRQUQZQ.cjs → chunk-YRANVNJG.cjs} +2 -2
- package/dist/{chunk-WIX4SYZI.cjs → chunk-YUCK5VJO.cjs} +10 -10
- package/dist/chunk-ZBFBF7S4.cjs +1054 -0
- package/dist/{chunk-52XUGOLD.js → chunk-ZBY7Q7WJ.js} +3 -3
- package/dist/chunk-ZDJQ643D.js +62 -0
- package/dist/{chunk-QUSQEYLP.cjs → chunk-ZNKHL5O6.cjs} +30 -32
- package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
- package/dist/components/accordion/accordion.animation.d.cts +1 -1
- package/dist/components/accordion/accordion.animation.d.ts +1 -1
- package/dist/components/accordion/accordion.type.d.cts +1 -1
- package/dist/components/accordion/accordion.type.d.ts +1 -1
- package/dist/components/accordion/index.cjs +3 -3
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +4 -4
- package/dist/components/agenda-calendar/index.js +3 -3
- package/dist/components/alert/alert-icon.d.cts +2 -2
- package/dist/components/alert/alert-icon.d.ts +2 -2
- package/dist/components/alert/alert.type.d.cts +1 -1
- package/dist/components/alert/alert.type.d.ts +1 -1
- package/dist/components/alert/index.cjs +4 -4
- package/dist/components/alert/index.js +3 -3
- package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +11 -4
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +10 -3
- package/dist/components/avatar/avatar-fallback.d.cts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar.d.cts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.type.d.cts +1 -1
- package/dist/components/avatar/avatar.type.d.ts +1 -1
- package/dist/components/avatar/index.cjs +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/components/bottom-sheet/index.cjs +3 -3
- package/dist/components/bottom-sheet/index.js +2 -2
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.cjs +3 -3
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/card-background.d.cts +1 -1
- package/dist/components/card/card-background.d.ts +1 -1
- package/dist/components/card/card.utils.d.cts +1 -1
- package/dist/components/card/card.utils.d.ts +1 -1
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.cjs +3 -3
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.type.d.cts +1 -1
- package/dist/components/checkbox/checkbox.type.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/chip.type.d.cts +1 -1
- package/dist/components/chip/chip.type.d.ts +1 -1
- package/dist/components/chip/index.cjs +4 -4
- package/dist/components/chip/index.js +3 -3
- package/dist/components/close-button/index.cjs +4 -4
- package/dist/components/close-button/index.js +3 -3
- package/dist/components/color-picker/index.cjs +9 -9
- package/dist/components/color-picker/index.js +8 -8
- package/dist/components/combobox/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +6 -5
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +5 -4
- package/dist/components/date-picker/index.cjs +6 -6
- package/dist/components/date-picker/index.js +5 -5
- package/dist/components/date-range-picker/index.cjs +7 -7
- package/dist/components/date-range-picker/index.js +6 -6
- package/dist/components/date-time-picker/date-time-picker-indicator.d.cts +2 -2
- package/dist/components/date-time-picker/date-time-picker-indicator.d.ts +2 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.cts +3 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.ts +3 -2
- package/dist/components/date-time-picker/index.cjs +9 -10
- package/dist/components/date-time-picker/index.d.cts +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +8 -9
- package/dist/components/dialog/index.cjs +4 -4
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/dummy-field/index.cjs +6 -6
- package/dist/components/dummy-field/index.js +5 -5
- package/dist/components/fab/index.cjs +3 -3
- package/dist/components/fab/index.js +2 -2
- package/dist/components/field-group/field-group-icon.d.cts +1 -1
- package/dist/components/field-group/field-group-icon.d.ts +1 -1
- package/dist/components/field-group/index.cjs +4 -4
- package/dist/components/field-group/index.js +3 -3
- package/dist/components/flip-card/index.cjs +3 -3
- package/dist/components/flip-card/index.js +2 -2
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/input-otp/input-otp.type.d.cts +1 -1
- package/dist/components/input-otp/input-otp.type.d.ts +1 -1
- package/dist/components/list-box/index.cjs +2 -2
- package/dist/components/list-box/index.js +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
- package/dist/components/mask-field/index.cjs +5 -5
- package/dist/components/mask-field/index.js +4 -4
- package/dist/components/menu/index.cjs +3 -3
- package/dist/components/menu/index.js +2 -2
- package/dist/components/morph-button/index.cjs +3 -3
- package/dist/components/morph-button/index.js +2 -2
- package/dist/components/number-field/index.cjs +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/number-field/number-field-increment.d.cts +2 -2
- package/dist/components/number-field/number-field-increment.d.ts +2 -2
- package/dist/components/number-pad/index.cjs +3 -3
- package/dist/components/number-pad/index.js +2 -2
- package/dist/components/number-stepper/index.cjs +3 -3
- package/dist/components/number-stepper/index.js +2 -2
- package/dist/components/pager/index.cjs +2 -2
- package/dist/components/pager/index.js +1 -1
- package/dist/components/phone-number-field/index.cjs +43 -36
- package/dist/components/phone-number-field/index.js +15 -8
- package/dist/components/popover/index.cjs +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.recipe.d.cts +1 -1
- package/dist/components/popover/popover.recipe.d.ts +1 -1
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.js +2 -2
- package/dist/components/range-calendar/index.cjs +4 -4
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/rating/index.cjs +3 -3
- package/dist/components/rating/index.js +2 -2
- package/dist/components/search-field/index.cjs +7 -7
- package/dist/components/search-field/index.js +6 -6
- package/dist/components/segment/index.cjs +4 -4
- package/dist/components/segment/index.js +2 -2
- package/dist/components/select/index.cjs +11 -4
- package/dist/components/select/index.d.cts +45 -4
- package/dist/components/select/index.d.ts +45 -4
- package/dist/components/select/index.js +10 -3
- package/dist/components/select/select-description.d.cts +14 -0
- package/dist/components/select/select-description.d.ts +14 -0
- package/dist/components/select/select-error.d.cts +13 -0
- package/dist/components/select/select-error.d.ts +13 -0
- package/dist/components/select/select-group-label.d.cts +11 -0
- package/dist/components/select/select-group-label.d.ts +11 -0
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/select/select-label.d.cts +11 -2
- package/dist/components/select/select-label.d.ts +11 -2
- package/dist/components/select/select.d.cts +49 -9
- package/dist/components/select/select.d.ts +49 -9
- package/dist/components/select/select.recipe.d.cts +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.type.d.cts +33 -9
- package/dist/components/select/select.type.d.ts +33 -9
- package/dist/components/skeleton/skeleton.type.d.cts +1 -1
- package/dist/components/skeleton/skeleton.type.d.ts +1 -1
- package/dist/components/slide-button/index.cjs +30 -0
- package/dist/components/slide-button/index.d.cts +44 -0
- package/dist/components/slide-button/index.d.ts +44 -0
- package/dist/components/slide-button/index.js +30 -0
- package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
- package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
- package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
- package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
- package/dist/components/slide-button/slide-button-label.d.cts +20 -0
- package/dist/components/slide-button/slide-button-label.d.ts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
- package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
- package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
- package/dist/components/slide-button/slide-button.context.d.cts +7 -0
- package/dist/components/slide-button/slide-button.context.d.ts +7 -0
- package/dist/components/slide-button/slide-button.d.cts +56 -0
- package/dist/components/slide-button/slide-button.d.ts +56 -0
- package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
- package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
- package/dist/components/slide-button/slide-button.type.d.cts +79 -0
- package/dist/components/slide-button/slide-button.type.d.ts +79 -0
- package/dist/components/slider/index.cjs +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider-thumb.d.cts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider.recipe.d.cts +1 -1
- package/dist/components/slider/slider.recipe.d.ts +1 -1
- package/dist/components/snackbar/index.cjs +3 -3
- package/dist/components/snackbar/index.js +2 -2
- package/dist/components/spinner/spinner.d.cts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.style.d.cts +1 -1
- package/dist/components/switch/switch.style.d.ts +1 -1
- package/dist/components/table/index.cjs +4 -4
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.cjs +4 -4
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tag-group/index.cjs +4 -4
- package/dist/components/tag-group/index.js +3 -3
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-area/text-area.d.cts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.type.d.cts +4 -4
- package/dist/components/text-field/text-field.type.d.ts +4 -4
- package/dist/components/time-picker/index.cjs +5 -6
- package/dist/components/time-picker/index.d.cts +1 -1
- package/dist/components/time-picker/index.d.ts +1 -1
- package/dist/components/time-picker/index.js +4 -5
- package/dist/components/time-picker/time-picker-display.d.cts +3 -3
- package/dist/components/time-picker/time-picker-display.d.ts +3 -3
- package/dist/components/time-picker/time-picker-indicator.d.cts +2 -2
- package/dist/components/time-picker/time-picker-indicator.d.ts +2 -2
- package/dist/components/time-picker/time-picker.d.cts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/time-picker/time-picker.type.d.cts +11 -1
- package/dist/components/time-picker/time-picker.type.d.ts +11 -1
- package/dist/components/toast/index.cjs +3 -3
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast.animation.d.cts +2 -2
- package/dist/components/toast/toast.animation.d.ts +2 -2
- package/dist/components/toast/toast.utils.d.cts +1 -1
- package/dist/components/toast/toast.utils.d.ts +1 -1
- package/dist/components/toggle-button/index.cjs +3 -3
- package/dist/components/toggle-button/index.js +2 -2
- package/dist/components/typography/typography.type.d.cts +1 -1
- package/dist/components/typography/typography.type.d.ts +1 -1
- package/dist/components/wheel-picker/index.cjs +2 -2
- package/dist/components/wheel-picker/index.js +1 -1
- package/dist/hooks/use-rotation.d.cts +1 -1
- package/dist/hooks/use-rotation.d.ts +1 -1
- package/dist/index.cjs +74 -63
- package/dist/index.js +92 -81
- package/dist/system/anchored/indicator-spring.d.cts +2 -2
- package/dist/system/anchored/indicator-spring.d.ts +2 -2
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/theme/derive-colors.d.cts +1 -1
- package/dist/theme/derive-colors.d.ts +1 -1
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/utils/time.d.cts +29 -0
- package/dist/utils/time.d.ts +29 -0
- package/package.json +11 -11
- package/dist/chunk-3MRCSXGT.js +0 -73
- package/dist/chunk-5E6SHYEQ.cjs +0 -631
- package/dist/chunk-6JAGPPZU.cjs +0 -788
- package/dist/chunk-CEPX7CKM.cjs +0 -365
- package/dist/chunk-CHFPFYNV.js +0 -60
- package/dist/chunk-ECR6GPJ6.js +0 -198
- package/dist/chunk-GBTNFQXN.cjs +0 -33
- package/dist/chunk-GZAGWNQM.cjs +0 -719
- package/dist/chunk-ILXKBDC6.cjs +0 -209
- package/dist/chunk-IPD3IUE2.cjs +0 -640
- package/dist/chunk-P2V6PIM7.cjs +0 -478
- package/dist/chunk-Q2BWXT55.cjs +0 -1011
- package/dist/chunk-UFKSUELU.cjs +0 -453
- package/dist/chunk-W4IPOWLY.cjs +0 -198
- package/dist/chunk-YSTLHVQV.cjs +0 -73
- package/dist/components/time-field/index.cjs +0 -27
- package/dist/components/time-field/index.d.cts +0 -52
- package/dist/components/time-field/index.d.ts +0 -52
- package/dist/components/time-field/index.js +0 -27
- package/dist/components/time-field/time-field-field.d.cts +0 -11
- package/dist/components/time-field/time-field-field.d.ts +0 -11
- package/dist/components/time-field/time-field-period.d.cts +0 -34
- package/dist/components/time-field/time-field-period.d.ts +0 -34
- package/dist/components/time-field/time-field.context.d.cts +0 -9
- package/dist/components/time-field/time-field.context.d.ts +0 -9
- package/dist/components/time-field/time-field.d.cts +0 -56
- package/dist/components/time-field/time-field.d.ts +0 -56
- package/dist/components/time-field/time-field.type.d.cts +0 -72
- package/dist/components/time-field/time-field.type.d.ts +0 -72
- package/dist/utils/time-mask.d.cts +0 -68
- package/dist/utils/time-mask.d.ts +0 -68
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _interopRequireDefault(obj) {
|
|
7
|
+
return obj && obj.__esModule ? obj : {
|
|
8
|
+
default: obj
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function _nullishCoalesce(lhs, rhsFn) {
|
|
12
|
+
if (lhs != null) {
|
|
13
|
+
return lhs;
|
|
14
|
+
} else {
|
|
15
|
+
return rhsFn();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function _optionalChain(ops) {
|
|
19
|
+
let lastAccessLHS = undefined;
|
|
20
|
+
let value = ops[0];
|
|
21
|
+
let i = 1;
|
|
22
|
+
while (i < ops.length) {
|
|
23
|
+
const op = ops[i];
|
|
24
|
+
const fn = ops[i + 1];
|
|
25
|
+
i += 2;
|
|
26
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
30
|
+
lastAccessLHS = value;
|
|
31
|
+
value = fn(value);
|
|
32
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
33
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
34
|
+
lastAccessLHS = undefined;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
40
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
41
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
42
|
+
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
43
|
+
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
44
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
45
|
+
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
46
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
47
|
+
|
|
48
|
+
// src/components/toast/toast-actions.tsx
|
|
49
|
+
var _react = require('react');
|
|
50
|
+
var _reactnative = require('react-native');
|
|
51
|
+
|
|
52
|
+
// src/components/toast/toast.context.ts
|
|
53
|
+
|
|
54
|
+
var [ToastProvider, useToastContext] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Toast");
|
|
55
|
+
var ToastDismissContext = _react.createContext.call(void 0, null);
|
|
56
|
+
var ToastQueueContext = _react.createContext.call(void 0, null);
|
|
57
|
+
var NO_HOST = {
|
|
58
|
+
toast: () => "",
|
|
59
|
+
dismiss: () => {},
|
|
60
|
+
dismissAll: () => {}
|
|
61
|
+
};
|
|
62
|
+
function useToast() {
|
|
63
|
+
const queue = _react.useContext.call(void 0, ToastQueueContext);
|
|
64
|
+
if (queue === null) {
|
|
65
|
+
_chunkEJQCQPETcjs.warnDev.call(void 0, "useToast was called outside a <ToastHost>. Nothing will be shown. Mount one once, at the root of the app \u2014 it is where the stack renders.");
|
|
66
|
+
return NO_HOST;
|
|
67
|
+
}
|
|
68
|
+
return queue;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// src/components/toast/toast-actions.tsx
|
|
72
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
73
|
+
var ToastActions = _react.forwardRef.call(void 0, function ToastActions2({
|
|
74
|
+
children,
|
|
75
|
+
style,
|
|
76
|
+
...props
|
|
77
|
+
}, ref) {
|
|
78
|
+
const {
|
|
79
|
+
actionsStyle
|
|
80
|
+
} = useToastContext();
|
|
81
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
82
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
83
|
+
ref,
|
|
84
|
+
...rest,
|
|
85
|
+
style: [actionsStyle, styleProps, style],
|
|
86
|
+
children
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
ToastActions.displayName = "XAUI.Toast.Actions";
|
|
90
|
+
|
|
91
|
+
// src/components/toast/toast-close.tsx
|
|
92
|
+
|
|
93
|
+
var ToastClose = _react.forwardRef.call(void 0, function ToastClose2({
|
|
94
|
+
children,
|
|
95
|
+
asChild = false,
|
|
96
|
+
accessibilityRole = "button",
|
|
97
|
+
style,
|
|
98
|
+
onPress,
|
|
99
|
+
onPressIn,
|
|
100
|
+
onPressOut,
|
|
101
|
+
...props
|
|
102
|
+
}, ref) {
|
|
103
|
+
const {
|
|
104
|
+
dismiss
|
|
105
|
+
} = useToastContext();
|
|
106
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
107
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
108
|
+
onPressIn,
|
|
109
|
+
onPressOut
|
|
110
|
+
});
|
|
111
|
+
const handlePress = _react.useCallback.call(void 0, event => {
|
|
112
|
+
_optionalChain([onPress, 'optionalCall', _ => _(event)]);
|
|
113
|
+
dismiss();
|
|
114
|
+
}, [dismiss, onPress]);
|
|
115
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
|
|
116
|
+
ref,
|
|
117
|
+
isPressed,
|
|
118
|
+
asChild,
|
|
119
|
+
accessibilityRole,
|
|
120
|
+
...rest,
|
|
121
|
+
style: [styleProps, typeof style === "function" ? style({
|
|
122
|
+
pressed: isPressed
|
|
123
|
+
}) : style],
|
|
124
|
+
onPress: handlePress,
|
|
125
|
+
onPressIn: press.onPressIn,
|
|
126
|
+
onPressOut: press.onPressOut,
|
|
127
|
+
children
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
ToastClose.displayName = "XAUI.Toast.Close";
|
|
131
|
+
|
|
132
|
+
// src/components/toast/toast-description.tsx
|
|
133
|
+
|
|
134
|
+
var ToastDescription = _react.forwardRef.call(void 0, function ToastDescription2({
|
|
135
|
+
children,
|
|
136
|
+
style,
|
|
137
|
+
...props
|
|
138
|
+
}, ref) {
|
|
139
|
+
const {
|
|
140
|
+
descriptionStyle
|
|
141
|
+
} = useToastContext();
|
|
142
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
143
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
144
|
+
ref,
|
|
145
|
+
...rest,
|
|
146
|
+
style: [descriptionStyle, styleProps, style],
|
|
147
|
+
children
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
ToastDescription.displayName = "XAUI.Toast.Description";
|
|
151
|
+
|
|
152
|
+
// src/components/toast/toast-title.tsx
|
|
153
|
+
|
|
154
|
+
var ToastTitle = _react.forwardRef.call(void 0, function ToastTitle2({
|
|
155
|
+
children,
|
|
156
|
+
style,
|
|
157
|
+
...props
|
|
158
|
+
}, ref) {
|
|
159
|
+
const {
|
|
160
|
+
titleStyle
|
|
161
|
+
} = useToastContext();
|
|
162
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
163
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
164
|
+
ref,
|
|
165
|
+
...rest,
|
|
166
|
+
style: [titleStyle, styleProps, style],
|
|
167
|
+
children
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
ToastTitle.displayName = "XAUI.Toast.Title";
|
|
171
|
+
|
|
172
|
+
// src/components/toast/toast.tsx
|
|
173
|
+
|
|
174
|
+
// src/components/toast/toast.recipe.ts
|
|
175
|
+
var SLOTS = ["root", "title", "description", "actions"];
|
|
176
|
+
var VARIANT_TOKENS = {
|
|
177
|
+
default: {
|
|
178
|
+
fg: "overlayForeground"
|
|
179
|
+
},
|
|
180
|
+
accent: {
|
|
181
|
+
fg: "accentSoftForeground"
|
|
182
|
+
},
|
|
183
|
+
success: {
|
|
184
|
+
fg: "successSoftForeground"
|
|
185
|
+
},
|
|
186
|
+
warning: {
|
|
187
|
+
fg: "warningSoftForeground"
|
|
188
|
+
},
|
|
189
|
+
danger: {
|
|
190
|
+
fg: "dangerSoftForeground"
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
var toastRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
194
|
+
slots: SLOTS,
|
|
195
|
+
base: theme => ({
|
|
196
|
+
root: {
|
|
197
|
+
backgroundColor: theme.colors.overlay,
|
|
198
|
+
padding: theme.spacing(4),
|
|
199
|
+
// The reference implementation's `--radius-3xl` on a base of 8 is 24 points; ours is 12, so the same 24
|
|
200
|
+
// is `2xl`.
|
|
201
|
+
borderRadius: theme.radius["2xl"],
|
|
202
|
+
borderCurve: "continuous",
|
|
203
|
+
gap: theme.spacing(1),
|
|
204
|
+
...theme.shadows.overlay
|
|
205
|
+
},
|
|
206
|
+
title: {
|
|
207
|
+
fontFamily: theme.fontFamilies.body,
|
|
208
|
+
fontWeight: theme.fontWeights.medium,
|
|
209
|
+
fontSize: theme.fontSizes.md,
|
|
210
|
+
lineHeight: theme.lineHeights.md
|
|
211
|
+
},
|
|
212
|
+
description: {
|
|
213
|
+
fontFamily: theme.fontFamilies.body,
|
|
214
|
+
fontSize: theme.fontSizes.sm,
|
|
215
|
+
lineHeight: theme.lineHeights.sm,
|
|
216
|
+
color: theme.colors.muted
|
|
217
|
+
},
|
|
218
|
+
actions: {
|
|
219
|
+
flexDirection: "row",
|
|
220
|
+
justifyContent: "flex-end",
|
|
221
|
+
gap: theme.spacing(2),
|
|
222
|
+
paddingTop: theme.spacing(1)
|
|
223
|
+
}
|
|
224
|
+
}),
|
|
225
|
+
variantTokens: VARIANT_TOKENS,
|
|
226
|
+
paint: (_theme, colors) => ({
|
|
227
|
+
title: {
|
|
228
|
+
color: colors.fg
|
|
229
|
+
}
|
|
230
|
+
}),
|
|
231
|
+
variants: {
|
|
232
|
+
radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root")
|
|
233
|
+
},
|
|
234
|
+
defaultVariants: {
|
|
235
|
+
variant: "default"
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
// src/components/toast/toast.tsx
|
|
240
|
+
|
|
241
|
+
var Toast = _react.forwardRef.call(void 0, function Toast2({
|
|
242
|
+
children,
|
|
243
|
+
variant,
|
|
244
|
+
radius,
|
|
245
|
+
accessibilityRole = "alert",
|
|
246
|
+
style,
|
|
247
|
+
...props
|
|
248
|
+
}, ref) {
|
|
249
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
250
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
251
|
+
const dismiss = _nullishCoalesce(_react.useContext.call(void 0, ToastDismissContext), () => NOOP);
|
|
252
|
+
const styles = toastRecipe.resolve({
|
|
253
|
+
theme,
|
|
254
|
+
selection: {
|
|
255
|
+
variant,
|
|
256
|
+
radius
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
const context = _react.useMemo.call(void 0, () => ({
|
|
260
|
+
rootStyle: styles.root,
|
|
261
|
+
titleStyle: styles.title,
|
|
262
|
+
descriptionStyle: styles.description,
|
|
263
|
+
actionsStyle: styles.actions,
|
|
264
|
+
dismiss
|
|
265
|
+
}), [styles, dismiss]);
|
|
266
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, ToastProvider, {
|
|
267
|
+
value: context,
|
|
268
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
269
|
+
ref,
|
|
270
|
+
accessibilityRole,
|
|
271
|
+
accessibilityLiveRegion: "polite",
|
|
272
|
+
...rest,
|
|
273
|
+
style: [styles.root, styleProps, style],
|
|
274
|
+
children
|
|
275
|
+
})
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
var NOOP = () => {};
|
|
279
|
+
Toast.displayName = "XAUI.Toast.Root";
|
|
280
|
+
|
|
281
|
+
// src/components/toast/toast-host.tsx
|
|
282
|
+
|
|
283
|
+
var _reactnativegesturehandler = require('react-native-gesture-handler');
|
|
284
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
285
|
+
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
286
|
+
|
|
287
|
+
// src/components/toast/toast.animation.ts
|
|
288
|
+
|
|
289
|
+
var ENTER_MS = 260;
|
|
290
|
+
var EXIT_MS = 180;
|
|
291
|
+
function toastEntering(placement) {
|
|
292
|
+
const slide = placement === "top" ? _reactnativereanimated.SlideInUp : _reactnativereanimated.SlideInDown;
|
|
293
|
+
return slide.duration(ENTER_MS).easing(_reactnativereanimated.Easing.out(_reactnativereanimated.Easing.cubic));
|
|
294
|
+
}
|
|
295
|
+
function toastExiting(placement) {
|
|
296
|
+
const slide = placement === "top" ? _reactnativereanimated.SlideOutUp : _reactnativereanimated.SlideOutDown;
|
|
297
|
+
return slide.duration(EXIT_MS).easing(_reactnativereanimated.Easing.in(_reactnativereanimated.Easing.cubic));
|
|
298
|
+
}
|
|
299
|
+
var STACK_TIMING = {
|
|
300
|
+
duration: 300
|
|
301
|
+
};
|
|
302
|
+
var SWIPE_DISTANCE = 50;
|
|
303
|
+
var SWIPE_VELOCITY = 500;
|
|
304
|
+
var DRAG_RUBBER = 40;
|
|
305
|
+
var PRESS_SCALE = 0.995;
|
|
306
|
+
var SWIPE_DECAY = 1.5;
|
|
307
|
+
var SWIPE_HIDE_MS = 200;
|
|
308
|
+
|
|
309
|
+
// src/components/toast/toast.utils.ts
|
|
310
|
+
var PEEK = 10;
|
|
311
|
+
var SHRINK = 0.03;
|
|
312
|
+
function toastStackStyle(depth, placement, maxVisible) {
|
|
313
|
+
const sign = placement === "top" ? 1 : -1;
|
|
314
|
+
return {
|
|
315
|
+
// `|| 0` normalises the negative zero the front card of a bottom stack produces.
|
|
316
|
+
// It renders the same, but `Object.is(-0, 0)` is false, and a caller comparing two
|
|
317
|
+
// stack styles would see a difference that is not there.
|
|
318
|
+
translateY: PEEK * depth * sign || 0,
|
|
319
|
+
// Clamped, because a deep enough stack would otherwise turn the card inside out. It is
|
|
320
|
+
// invisible long before that, but a negative scale is a mirrored card, not a small one.
|
|
321
|
+
scale: Math.max(1 - SHRINK * depth, 0),
|
|
322
|
+
opacity: depth >= maxVisible ? 0 : 1
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// src/components/toast/toast-host.tsx
|
|
327
|
+
|
|
328
|
+
function ToastHost({
|
|
329
|
+
children,
|
|
330
|
+
placement = "bottom",
|
|
331
|
+
duration = 4e3,
|
|
332
|
+
maxVisible = 3,
|
|
333
|
+
isSwipeable = true
|
|
334
|
+
}) {
|
|
335
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
336
|
+
const [records, setRecords] = _react.useState.call(void 0, []);
|
|
337
|
+
const seed = _react.useId.call(void 0);
|
|
338
|
+
const count = _react.useRef.call(void 0, 0);
|
|
339
|
+
const timers = _react.useRef.call(void 0, /* @__PURE__ */new Map());
|
|
340
|
+
const dismiss = _react.useCallback.call(void 0, id => {
|
|
341
|
+
const timer = timers.current.get(id);
|
|
342
|
+
if (timer) {
|
|
343
|
+
clearTimeout(timer);
|
|
344
|
+
timers.current.delete(id);
|
|
345
|
+
}
|
|
346
|
+
setRecords(current => current.filter(record => record.id !== id));
|
|
347
|
+
}, []);
|
|
348
|
+
const dismissAll = _react.useCallback.call(void 0, () => {
|
|
349
|
+
for (const timer of timers.current.values()) clearTimeout(timer);
|
|
350
|
+
timers.current.clear();
|
|
351
|
+
setRecords([]);
|
|
352
|
+
}, []);
|
|
353
|
+
const toast = _react.useCallback.call(void 0, options => {
|
|
354
|
+
count.current += 1;
|
|
355
|
+
const id = `${seed}-${count.current}`;
|
|
356
|
+
const life = _nullishCoalesce(options.duration, () => duration);
|
|
357
|
+
setRecords(current => [...current, {
|
|
358
|
+
...options,
|
|
359
|
+
id
|
|
360
|
+
}]);
|
|
361
|
+
if (life > 0) {
|
|
362
|
+
timers.current.set(id, setTimeout(() => dismiss(id), life));
|
|
363
|
+
}
|
|
364
|
+
return id;
|
|
365
|
+
}, [dismiss, duration, seed]);
|
|
366
|
+
const queue = _react.useMemo.call(void 0, () => ({
|
|
367
|
+
toast,
|
|
368
|
+
dismiss,
|
|
369
|
+
dismissAll
|
|
370
|
+
}), [toast, dismiss, dismissAll]);
|
|
371
|
+
const inset = theme.spacing(4);
|
|
372
|
+
const entry = {
|
|
373
|
+
...sheet.entry,
|
|
374
|
+
start: inset,
|
|
375
|
+
end: inset,
|
|
376
|
+
...(placement === "top" ? {
|
|
377
|
+
top: inset
|
|
378
|
+
} : {
|
|
379
|
+
bottom: inset
|
|
380
|
+
})
|
|
381
|
+
};
|
|
382
|
+
return /* @__PURE__ */_jsxruntime.jsxs.call(void 0, ToastQueueContext.Provider, {
|
|
383
|
+
value: queue,
|
|
384
|
+
children: [children, records.length > 0 ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, {
|
|
385
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
386
|
+
pointerEvents: "box-none",
|
|
387
|
+
style: sheet.stack,
|
|
388
|
+
children: records.map((record, index) => /* @__PURE__ */_jsxruntime.jsx.call(void 0, ToastStackEntry, {
|
|
389
|
+
depth: records.length - 1 - index,
|
|
390
|
+
placement,
|
|
391
|
+
maxVisible,
|
|
392
|
+
isSwipeable,
|
|
393
|
+
onSwipe: () => dismiss(record.id),
|
|
394
|
+
style: entry,
|
|
395
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, ToastDismissContext.Provider, {
|
|
396
|
+
value: () => dismiss(record.id),
|
|
397
|
+
children: record.render({
|
|
398
|
+
dismiss: () => dismiss(record.id)
|
|
399
|
+
})
|
|
400
|
+
})
|
|
401
|
+
}, record.id))
|
|
402
|
+
})
|
|
403
|
+
}) : null]
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
const _worklet_11458930173349_init_data = {
|
|
407
|
+
code: "function chunkIHRPAKCZCjs1(){const{fade,stackY,drag,stackScale,press}=this.__closure;return{opacity:fade.get(),transform:[{translateY:stackY.get()+drag.get()},{scale:stackScale.get()*press.get()}]};}",
|
|
408
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IHRPAKCZ.cjs",
|
|
409
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkIHRPAKCZCjs1\",\"fade\",\"stackY\",\"drag\",\"stackScale\",\"press\",\"__closure\",\"opacity\",\"get\",\"transform\",\"translateY\",\"scale\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IHRPAKCZ.cjs\"],\"mappings\":\"AAyZwE,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,CAAAC,MAAA,CAAAC,IAAA,CAAAC,UAAA,CAAAC,KAAA,OAAAC,SAAA,CAE1E,MAAO,CACLC,OAAO,CAAEN,IAAI,CAACO,GAAG,CAAC,CAAC,CACnBC,SAAS,CAAE,CACT,CAAEC,UAAU,CAAER,MAAM,CAACM,GAAG,CAAC,CAAC,CAAGL,IAAI,CAACK,GAAG,CAAC,CAAE,CAAC,CACzC,CAAEG,KAAK,CAAEP,UAAU,CAACI,GAAG,CAAC,CAAC,CAAGH,KAAK,CAACG,GAAG,CAAC,CAAE,CAAC,CAE7C,CAAC,CACH\",\"ignoreList\":[]}"
|
|
410
|
+
};
|
|
411
|
+
function ToastStackEntry({
|
|
412
|
+
children,
|
|
413
|
+
depth,
|
|
414
|
+
placement,
|
|
415
|
+
maxVisible,
|
|
416
|
+
isSwipeable,
|
|
417
|
+
onSwipe,
|
|
418
|
+
style
|
|
419
|
+
}) {
|
|
420
|
+
const {
|
|
421
|
+
translateY,
|
|
422
|
+
scale,
|
|
423
|
+
opacity
|
|
424
|
+
} = toastStackStyle(depth, placement, maxVisible);
|
|
425
|
+
const stackY = _reactnativereanimated.useDerivedValue.call(void 0, () => _reactnativereanimated.withTiming.call(void 0, translateY, STACK_TIMING), [translateY]);
|
|
426
|
+
const stackScale = _reactnativereanimated.useDerivedValue.call(void 0, () => _reactnativereanimated.withTiming.call(void 0, scale, STACK_TIMING), [scale]);
|
|
427
|
+
const fade = _reactnativereanimated.useDerivedValue.call(void 0, () => _reactnativereanimated.withTiming.call(void 0, opacity, STACK_TIMING), [opacity]);
|
|
428
|
+
const drag = _reactnativereanimated.useSharedValue.call(void 0, 0);
|
|
429
|
+
const press = _reactnativereanimated.useSharedValue.call(void 0, 1);
|
|
430
|
+
const screenHeight = _reactnative.Dimensions.get("window").height;
|
|
431
|
+
const away = placement === "top" ? -1 : 1;
|
|
432
|
+
const hideAfterThrow = _react.useCallback.call(void 0, velocity => {
|
|
433
|
+
setTimeout(onSwipe, Math.min(SWIPE_HIDE_MS, Math.abs(velocity)));
|
|
434
|
+
}, [onSwipe]);
|
|
435
|
+
const pan = _reactnativegesturehandler.Gesture.Pan().enabled(isSwipeable && depth === 0).onBegin(() => {
|
|
436
|
+
press.set(PRESS_SCALE);
|
|
437
|
+
}).onChange(event => {
|
|
438
|
+
const towardExit = event.translationY * away;
|
|
439
|
+
if (towardExit > 0) {
|
|
440
|
+
drag.set(event.translationY);
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
const give = _reactnativereanimated.interpolate.call(void 0, Math.abs(event.translationY), [0, screenHeight], [0, DRAG_RUBBER], _reactnativereanimated.Extrapolation.CLAMP);
|
|
444
|
+
drag.set(-give * away);
|
|
445
|
+
}).onFinalize(event => {
|
|
446
|
+
press.set(1);
|
|
447
|
+
const towardExit = event.translationY * away > 0;
|
|
448
|
+
const farEnough = Math.abs(event.translationY) > SWIPE_DISTANCE;
|
|
449
|
+
const fastEnough = Math.abs(event.velocityY) > SWIPE_VELOCITY;
|
|
450
|
+
if (!towardExit || !(farEnough || fastEnough)) {
|
|
451
|
+
drag.set(_reactnativereanimated.withSpring.call(void 0, 0));
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
drag.set(_reactnativereanimated.withDecay.call(void 0, {
|
|
455
|
+
velocity: event.velocityY * SWIPE_DECAY,
|
|
456
|
+
clamp: away === 1 ? [0, Number.POSITIVE_INFINITY] : [Number.NEGATIVE_INFINITY, 0]
|
|
457
|
+
}));
|
|
458
|
+
_reactnativereanimated.runOnJS.call(void 0, hideAfterThrow)(event.velocityY);
|
|
459
|
+
});
|
|
460
|
+
const stacking = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkIHRPAKCZCjs1Factory({
|
|
461
|
+
_worklet_11458930173349_init_data,
|
|
462
|
+
fade,
|
|
463
|
+
stackY,
|
|
464
|
+
drag,
|
|
465
|
+
stackScale,
|
|
466
|
+
press
|
|
467
|
+
}) {
|
|
468
|
+
const _e = [new global.Error(), -6, -27];
|
|
469
|
+
const chunkIHRPAKCZCjs1 = function () {
|
|
470
|
+
return {
|
|
471
|
+
opacity: fade.get(),
|
|
472
|
+
transform: [{
|
|
473
|
+
translateY: stackY.get() + drag.get()
|
|
474
|
+
}, {
|
|
475
|
+
scale: stackScale.get() * press.get()
|
|
476
|
+
}]
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
chunkIHRPAKCZCjs1.__closure = {
|
|
480
|
+
fade,
|
|
481
|
+
stackY,
|
|
482
|
+
drag,
|
|
483
|
+
stackScale,
|
|
484
|
+
press
|
|
485
|
+
};
|
|
486
|
+
chunkIHRPAKCZCjs1.__workletHash = 11458930173349;
|
|
487
|
+
chunkIHRPAKCZCjs1.__pluginVersion = "0.7.4";
|
|
488
|
+
chunkIHRPAKCZCjs1.__initData = _worklet_11458930173349_init_data;
|
|
489
|
+
chunkIHRPAKCZCjs1.__stackDetails = _e;
|
|
490
|
+
return chunkIHRPAKCZCjs1;
|
|
491
|
+
}({
|
|
492
|
+
_worklet_11458930173349_init_data,
|
|
493
|
+
fade,
|
|
494
|
+
stackY,
|
|
495
|
+
drag,
|
|
496
|
+
stackScale,
|
|
497
|
+
press
|
|
498
|
+
}), [fade, stackY, drag, stackScale, press]);
|
|
499
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativegesturehandler.GestureDetector, {
|
|
500
|
+
gesture: pan,
|
|
501
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
502
|
+
pointerEvents: opacity === 0 ? "none" : "auto",
|
|
503
|
+
entering: toastEntering(placement),
|
|
504
|
+
exiting: toastExiting(placement),
|
|
505
|
+
style: [style, stacking],
|
|
506
|
+
children
|
|
507
|
+
})
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
var sheet = _reactnative.StyleSheet.create({
|
|
511
|
+
stack: {
|
|
512
|
+
position: "absolute",
|
|
513
|
+
top: 0,
|
|
514
|
+
bottom: 0,
|
|
515
|
+
start: 0,
|
|
516
|
+
end: 0
|
|
517
|
+
},
|
|
518
|
+
entry: {
|
|
519
|
+
position: "absolute"
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
ToastHost.displayName = "XAUI.ToastHost";
|
|
523
|
+
|
|
524
|
+
// src/components/toast/index.ts
|
|
525
|
+
var Toast3 = Object.assign(Toast, {
|
|
526
|
+
Title: ToastTitle,
|
|
527
|
+
Description: ToastDescription,
|
|
528
|
+
Actions: ToastActions,
|
|
529
|
+
Close: ToastClose
|
|
530
|
+
});
|
|
531
|
+
exports.useToastContext = useToastContext;
|
|
532
|
+
exports.useToast = useToast;
|
|
533
|
+
exports.ToastActions = ToastActions;
|
|
534
|
+
exports.ToastClose = ToastClose;
|
|
535
|
+
exports.ToastDescription = ToastDescription;
|
|
536
|
+
exports.ToastTitle = ToastTitle;
|
|
537
|
+
exports.toastRecipe = toastRecipe;
|
|
538
|
+
exports.Toast = Toast;
|
|
539
|
+
exports.ToastHost = ToastHost;
|
|
540
|
+
exports.Toast2 = Toast3;
|