@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
package/dist/chunk-UFKSUELU.cjs
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunkWDDXU3OHcjs = require('./chunk-WDDXU3OH.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
26
|
-
|
|
27
|
-
// src/components/toast/toast-actions.tsx
|
|
28
|
-
var _react = require('react');
|
|
29
|
-
var _reactnative = require('react-native');
|
|
30
|
-
|
|
31
|
-
// src/components/toast/toast.context.ts
|
|
32
|
-
|
|
33
|
-
var [ToastProvider, useToastContext] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Toast");
|
|
34
|
-
var ToastDismissContext = _react.createContext.call(void 0, null);
|
|
35
|
-
var ToastQueueContext = _react.createContext.call(void 0, null);
|
|
36
|
-
var NO_HOST = {
|
|
37
|
-
toast: () => "",
|
|
38
|
-
dismiss: () => {
|
|
39
|
-
},
|
|
40
|
-
dismissAll: () => {
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
function useToast() {
|
|
44
|
-
const queue = _react.useContext.call(void 0, ToastQueueContext);
|
|
45
|
-
if (queue === null) {
|
|
46
|
-
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
47
|
-
"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."
|
|
48
|
-
);
|
|
49
|
-
return NO_HOST;
|
|
50
|
-
}
|
|
51
|
-
return queue;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// src/components/toast/toast-actions.tsx
|
|
55
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
56
|
-
var ToastActions = _react.forwardRef.call(void 0,
|
|
57
|
-
function ToastActions2({ children, style, ...props }, ref) {
|
|
58
|
-
const { actionsStyle } = useToastContext();
|
|
59
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
60
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, ...rest, style: [actionsStyle, styleProps, style], children });
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
ToastActions.displayName = "XAUI.Toast.Actions";
|
|
64
|
-
|
|
65
|
-
// src/components/toast/toast-close.tsx
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
var ToastClose = _react.forwardRef.call(void 0, function ToastClose2({
|
|
69
|
-
children,
|
|
70
|
-
asChild = false,
|
|
71
|
-
accessibilityRole = "button",
|
|
72
|
-
style,
|
|
73
|
-
onPress,
|
|
74
|
-
onPressIn,
|
|
75
|
-
onPressOut,
|
|
76
|
-
...props
|
|
77
|
-
}, ref) {
|
|
78
|
-
const { dismiss } = useToastContext();
|
|
79
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
80
|
-
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
81
|
-
const handlePress = _react.useCallback.call(void 0,
|
|
82
|
-
(event) => {
|
|
83
|
-
_optionalChain([onPress, 'optionalCall', _ => _(event)]);
|
|
84
|
-
dismiss();
|
|
85
|
-
},
|
|
86
|
-
[dismiss, onPress]
|
|
87
|
-
);
|
|
88
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
89
|
-
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
90
|
-
{
|
|
91
|
-
ref,
|
|
92
|
-
isPressed,
|
|
93
|
-
asChild,
|
|
94
|
-
accessibilityRole,
|
|
95
|
-
...rest,
|
|
96
|
-
style: [
|
|
97
|
-
styleProps,
|
|
98
|
-
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
99
|
-
],
|
|
100
|
-
onPress: handlePress,
|
|
101
|
-
onPressIn: press.onPressIn,
|
|
102
|
-
onPressOut: press.onPressOut,
|
|
103
|
-
children
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
});
|
|
107
|
-
ToastClose.displayName = "XAUI.Toast.Close";
|
|
108
|
-
|
|
109
|
-
// src/components/toast/toast-description.tsx
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
var ToastDescription = _react.forwardRef.call(void 0,
|
|
114
|
-
function ToastDescription2({ children, style, ...props }, ref) {
|
|
115
|
-
const { descriptionStyle } = useToastContext();
|
|
116
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
117
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, ...rest, style: [descriptionStyle, styleProps, style], children });
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
ToastDescription.displayName = "XAUI.Toast.Description";
|
|
121
|
-
|
|
122
|
-
// src/components/toast/toast-title.tsx
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var ToastTitle = _react.forwardRef.call(void 0, function ToastTitle2({ children, style, ...props }, ref) {
|
|
127
|
-
const { titleStyle } = useToastContext();
|
|
128
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
129
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { ref, ...rest, style: [titleStyle, styleProps, style], children });
|
|
130
|
-
});
|
|
131
|
-
ToastTitle.displayName = "XAUI.Toast.Title";
|
|
132
|
-
|
|
133
|
-
// src/components/toast/toast.tsx
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
// src/components/toast/toast.recipe.ts
|
|
138
|
-
var SLOTS = ["root", "title", "description", "actions"];
|
|
139
|
-
var VARIANT_TOKENS = {
|
|
140
|
-
default: { fg: "overlayForeground" },
|
|
141
|
-
accent: { fg: "accentSoftForeground" },
|
|
142
|
-
success: { fg: "successSoftForeground" },
|
|
143
|
-
warning: { fg: "warningSoftForeground" },
|
|
144
|
-
danger: { fg: "dangerSoftForeground" }
|
|
145
|
-
};
|
|
146
|
-
var toastRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
147
|
-
slots: SLOTS,
|
|
148
|
-
base: (theme) => ({
|
|
149
|
-
root: {
|
|
150
|
-
backgroundColor: theme.colors.overlay,
|
|
151
|
-
padding: theme.spacing(4),
|
|
152
|
-
// HeroUI's `--radius-3xl` on a base of 8 is 24 points; ours is 12, so the same 24
|
|
153
|
-
// is `2xl`.
|
|
154
|
-
borderRadius: theme.radius["2xl"],
|
|
155
|
-
borderCurve: "continuous",
|
|
156
|
-
gap: theme.spacing(1),
|
|
157
|
-
...theme.shadows.overlay
|
|
158
|
-
},
|
|
159
|
-
title: {
|
|
160
|
-
fontFamily: theme.fontFamilies.body,
|
|
161
|
-
fontWeight: theme.fontWeights.medium,
|
|
162
|
-
fontSize: theme.fontSizes.md,
|
|
163
|
-
lineHeight: theme.lineHeights.md
|
|
164
|
-
},
|
|
165
|
-
description: {
|
|
166
|
-
fontFamily: theme.fontFamilies.body,
|
|
167
|
-
fontSize: theme.fontSizes.sm,
|
|
168
|
-
lineHeight: theme.lineHeights.sm,
|
|
169
|
-
color: theme.colors.muted
|
|
170
|
-
},
|
|
171
|
-
actions: {
|
|
172
|
-
flexDirection: "row",
|
|
173
|
-
justifyContent: "flex-end",
|
|
174
|
-
gap: theme.spacing(2),
|
|
175
|
-
paddingTop: theme.spacing(1)
|
|
176
|
-
}
|
|
177
|
-
}),
|
|
178
|
-
variantTokens: VARIANT_TOKENS,
|
|
179
|
-
paint: (_theme, colors) => ({ title: { color: colors.fg } }),
|
|
180
|
-
variants: { radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root") },
|
|
181
|
-
defaultVariants: { variant: "default" }
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
// src/components/toast/toast.tsx
|
|
185
|
-
|
|
186
|
-
var Toast = _react.forwardRef.call(void 0, function Toast2({ children, variant, radius, accessibilityRole = "alert", style, ...props }, ref) {
|
|
187
|
-
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
188
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
189
|
-
const dismiss = _nullishCoalesce(_react.useContext.call(void 0, ToastDismissContext), () => ( NOOP));
|
|
190
|
-
const styles = toastRecipe.resolve({ theme, selection: { variant, radius } });
|
|
191
|
-
const context = _react.useMemo.call(void 0,
|
|
192
|
-
() => ({
|
|
193
|
-
rootStyle: styles.root,
|
|
194
|
-
titleStyle: styles.title,
|
|
195
|
-
descriptionStyle: styles.description,
|
|
196
|
-
actionsStyle: styles.actions,
|
|
197
|
-
dismiss
|
|
198
|
-
}),
|
|
199
|
-
[styles, dismiss]
|
|
200
|
-
);
|
|
201
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToastProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
202
|
-
_reactnative.View,
|
|
203
|
-
{
|
|
204
|
-
ref,
|
|
205
|
-
accessibilityRole,
|
|
206
|
-
accessibilityLiveRegion: "polite",
|
|
207
|
-
...rest,
|
|
208
|
-
style: [styles.root, styleProps, style],
|
|
209
|
-
children
|
|
210
|
-
}
|
|
211
|
-
) });
|
|
212
|
-
});
|
|
213
|
-
var NOOP = () => {
|
|
214
|
-
};
|
|
215
|
-
Toast.displayName = "XAUI.Toast.Root";
|
|
216
|
-
|
|
217
|
-
// src/components/toast/toast-host.tsx
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
var _reactnativegesturehandler = require('react-native-gesture-handler');
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
var _reactnativereanimated = require('react-native-reanimated'); var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
// src/components/toast/toast.animation.ts
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
var ENTER_MS = 260;
|
|
243
|
-
var EXIT_MS = 180;
|
|
244
|
-
function toastEntering(placement) {
|
|
245
|
-
const slide = placement === "top" ? _reactnativereanimated.SlideInUp : _reactnativereanimated.SlideInDown;
|
|
246
|
-
return slide.duration(ENTER_MS).easing(_reactnativereanimated.Easing.out(_reactnativereanimated.Easing.cubic));
|
|
247
|
-
}
|
|
248
|
-
function toastExiting(placement) {
|
|
249
|
-
const slide = placement === "top" ? _reactnativereanimated.SlideOutUp : _reactnativereanimated.SlideOutDown;
|
|
250
|
-
return slide.duration(EXIT_MS).easing(_reactnativereanimated.Easing.in(_reactnativereanimated.Easing.cubic));
|
|
251
|
-
}
|
|
252
|
-
var STACK_TIMING = { duration: 300 };
|
|
253
|
-
var SWIPE_DISTANCE = 50;
|
|
254
|
-
var SWIPE_VELOCITY = 500;
|
|
255
|
-
var DRAG_RUBBER = 40;
|
|
256
|
-
var PRESS_SCALE = 0.995;
|
|
257
|
-
var SWIPE_DECAY = 1.5;
|
|
258
|
-
var SWIPE_HIDE_MS = 200;
|
|
259
|
-
|
|
260
|
-
// src/components/toast/toast.utils.ts
|
|
261
|
-
var PEEK = 10;
|
|
262
|
-
var SHRINK = 0.03;
|
|
263
|
-
function toastStackStyle(depth, placement, maxVisible) {
|
|
264
|
-
const sign = placement === "top" ? 1 : -1;
|
|
265
|
-
return {
|
|
266
|
-
// `|| 0` normalises the negative zero the front card of a bottom stack produces.
|
|
267
|
-
// It renders the same, but `Object.is(-0, 0)` is false, and a caller comparing two
|
|
268
|
-
// stack styles would see a difference that is not there.
|
|
269
|
-
translateY: PEEK * depth * sign || 0,
|
|
270
|
-
// Clamped, because a deep enough stack would otherwise turn the card inside out. It is
|
|
271
|
-
// invisible long before that, but a negative scale is a mirrored card, not a small one.
|
|
272
|
-
scale: Math.max(1 - SHRINK * depth, 0),
|
|
273
|
-
opacity: depth >= maxVisible ? 0 : 1
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// src/components/toast/toast-host.tsx
|
|
278
|
-
|
|
279
|
-
function ToastHost({
|
|
280
|
-
children,
|
|
281
|
-
placement = "bottom",
|
|
282
|
-
duration = 4e3,
|
|
283
|
-
maxVisible = 3,
|
|
284
|
-
isSwipeable = true
|
|
285
|
-
}) {
|
|
286
|
-
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
287
|
-
const [records, setRecords] = _react.useState.call(void 0, []);
|
|
288
|
-
const seed = _react.useId.call(void 0, );
|
|
289
|
-
const count = _react.useRef.call(void 0, 0);
|
|
290
|
-
const timers = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
|
|
291
|
-
const dismiss = _react.useCallback.call(void 0, (id) => {
|
|
292
|
-
const timer = timers.current.get(id);
|
|
293
|
-
if (timer) {
|
|
294
|
-
clearTimeout(timer);
|
|
295
|
-
timers.current.delete(id);
|
|
296
|
-
}
|
|
297
|
-
setRecords((current) => current.filter((record) => record.id !== id));
|
|
298
|
-
}, []);
|
|
299
|
-
const dismissAll = _react.useCallback.call(void 0, () => {
|
|
300
|
-
for (const timer of timers.current.values()) clearTimeout(timer);
|
|
301
|
-
timers.current.clear();
|
|
302
|
-
setRecords([]);
|
|
303
|
-
}, []);
|
|
304
|
-
const toast = _react.useCallback.call(void 0,
|
|
305
|
-
(options) => {
|
|
306
|
-
count.current += 1;
|
|
307
|
-
const id = `${seed}-${count.current}`;
|
|
308
|
-
const life = _nullishCoalesce(options.duration, () => ( duration));
|
|
309
|
-
setRecords((current) => [...current, { ...options, id }]);
|
|
310
|
-
if (life > 0) {
|
|
311
|
-
timers.current.set(
|
|
312
|
-
id,
|
|
313
|
-
setTimeout(() => dismiss(id), life)
|
|
314
|
-
);
|
|
315
|
-
}
|
|
316
|
-
return id;
|
|
317
|
-
},
|
|
318
|
-
[dismiss, duration, seed]
|
|
319
|
-
);
|
|
320
|
-
const queue = _react.useMemo.call(void 0,
|
|
321
|
-
() => ({ toast, dismiss, dismissAll }),
|
|
322
|
-
[toast, dismiss, dismissAll]
|
|
323
|
-
);
|
|
324
|
-
const inset = theme.spacing(4);
|
|
325
|
-
const entry = {
|
|
326
|
-
...sheet.entry,
|
|
327
|
-
start: inset,
|
|
328
|
-
end: inset,
|
|
329
|
-
...placement === "top" ? { top: inset } : { bottom: inset }
|
|
330
|
-
};
|
|
331
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, ToastQueueContext.Provider, { value: queue, children: [
|
|
332
|
-
children,
|
|
333
|
-
records.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDDXU3OHcjs.Portal, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { pointerEvents: "box-none", style: sheet.stack, children: records.map((record, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
334
|
-
ToastStackEntry,
|
|
335
|
-
{
|
|
336
|
-
depth: records.length - 1 - index,
|
|
337
|
-
placement,
|
|
338
|
-
maxVisible,
|
|
339
|
-
isSwipeable,
|
|
340
|
-
onSwipe: () => dismiss(record.id),
|
|
341
|
-
style: entry,
|
|
342
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToastDismissContext.Provider, { value: () => dismiss(record.id), children: record.render({ dismiss: () => dismiss(record.id) }) })
|
|
343
|
-
},
|
|
344
|
-
record.id
|
|
345
|
-
)) }) }) : null
|
|
346
|
-
] });
|
|
347
|
-
}
|
|
348
|
-
function ToastStackEntry({
|
|
349
|
-
children,
|
|
350
|
-
depth,
|
|
351
|
-
placement,
|
|
352
|
-
maxVisible,
|
|
353
|
-
isSwipeable,
|
|
354
|
-
onSwipe,
|
|
355
|
-
style
|
|
356
|
-
}) {
|
|
357
|
-
const { translateY, scale, opacity } = toastStackStyle(
|
|
358
|
-
depth,
|
|
359
|
-
placement,
|
|
360
|
-
maxVisible
|
|
361
|
-
);
|
|
362
|
-
const stackY = _reactnativereanimated.useDerivedValue.call(void 0,
|
|
363
|
-
() => _reactnativereanimated.withTiming.call(void 0, translateY, STACK_TIMING),
|
|
364
|
-
[translateY]
|
|
365
|
-
);
|
|
366
|
-
const stackScale = _reactnativereanimated.useDerivedValue.call(void 0, () => _reactnativereanimated.withTiming.call(void 0, scale, STACK_TIMING), [scale]);
|
|
367
|
-
const fade = _reactnativereanimated.useDerivedValue.call(void 0, () => _reactnativereanimated.withTiming.call(void 0, opacity, STACK_TIMING), [opacity]);
|
|
368
|
-
const drag = _reactnativereanimated.useSharedValue.call(void 0, 0);
|
|
369
|
-
const press = _reactnativereanimated.useSharedValue.call(void 0, 1);
|
|
370
|
-
const screenHeight = _reactnative.Dimensions.get("window").height;
|
|
371
|
-
const away = placement === "top" ? -1 : 1;
|
|
372
|
-
const hideAfterThrow = _react.useCallback.call(void 0,
|
|
373
|
-
(velocity) => {
|
|
374
|
-
setTimeout(onSwipe, Math.min(SWIPE_HIDE_MS, Math.abs(velocity)));
|
|
375
|
-
},
|
|
376
|
-
[onSwipe]
|
|
377
|
-
);
|
|
378
|
-
const pan = _reactnativegesturehandler.Gesture.Pan().enabled(isSwipeable && depth === 0).onBegin(() => {
|
|
379
|
-
press.set(PRESS_SCALE);
|
|
380
|
-
}).onChange((event) => {
|
|
381
|
-
const towardExit = event.translationY * away;
|
|
382
|
-
if (towardExit > 0) {
|
|
383
|
-
drag.set(event.translationY);
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
const give = _reactnativereanimated.interpolate.call(void 0,
|
|
387
|
-
Math.abs(event.translationY),
|
|
388
|
-
[0, screenHeight],
|
|
389
|
-
[0, DRAG_RUBBER],
|
|
390
|
-
_reactnativereanimated.Extrapolation.CLAMP
|
|
391
|
-
);
|
|
392
|
-
drag.set(-give * away);
|
|
393
|
-
}).onFinalize((event) => {
|
|
394
|
-
press.set(1);
|
|
395
|
-
const towardExit = event.translationY * away > 0;
|
|
396
|
-
const farEnough = Math.abs(event.translationY) > SWIPE_DISTANCE;
|
|
397
|
-
const fastEnough = Math.abs(event.velocityY) > SWIPE_VELOCITY;
|
|
398
|
-
if (!towardExit || !(farEnough || fastEnough)) {
|
|
399
|
-
drag.set(_reactnativereanimated.withSpring.call(void 0, 0));
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
drag.set(
|
|
403
|
-
_reactnativereanimated.withDecay.call(void 0, {
|
|
404
|
-
velocity: event.velocityY * SWIPE_DECAY,
|
|
405
|
-
clamp: away === 1 ? [0, Number.POSITIVE_INFINITY] : [Number.NEGATIVE_INFINITY, 0]
|
|
406
|
-
})
|
|
407
|
-
);
|
|
408
|
-
_reactnativereanimated.runOnJS.call(void 0, hideAfterThrow)(event.velocityY);
|
|
409
|
-
});
|
|
410
|
-
const stacking = _reactnativereanimated.useAnimatedStyle.call(void 0, () => ({
|
|
411
|
-
opacity: fade.get(),
|
|
412
|
-
transform: [
|
|
413
|
-
{ translateY: stackY.get() + drag.get() },
|
|
414
|
-
{ scale: stackScale.get() * press.get() }
|
|
415
|
-
]
|
|
416
|
-
}));
|
|
417
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativegesturehandler.GestureDetector, { gesture: pan, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
418
|
-
_reactnativereanimated2.default.View,
|
|
419
|
-
{
|
|
420
|
-
pointerEvents: opacity === 0 ? "none" : "auto",
|
|
421
|
-
entering: toastEntering(placement),
|
|
422
|
-
exiting: toastExiting(placement),
|
|
423
|
-
style: [style, stacking],
|
|
424
|
-
children
|
|
425
|
-
}
|
|
426
|
-
) });
|
|
427
|
-
}
|
|
428
|
-
var sheet = _reactnative.StyleSheet.create({
|
|
429
|
-
stack: { position: "absolute", top: 0, bottom: 0, start: 0, end: 0 },
|
|
430
|
-
entry: { position: "absolute" }
|
|
431
|
-
});
|
|
432
|
-
ToastHost.displayName = "XAUI.ToastHost";
|
|
433
|
-
|
|
434
|
-
// src/components/toast/index.ts
|
|
435
|
-
var Toast3 = Object.assign(Toast, {
|
|
436
|
-
Title: ToastTitle,
|
|
437
|
-
Description: ToastDescription,
|
|
438
|
-
Actions: ToastActions,
|
|
439
|
-
Close: ToastClose
|
|
440
|
-
});
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
exports.useToastContext = useToastContext; exports.useToast = useToast; exports.ToastActions = ToastActions; exports.ToastClose = ToastClose; exports.ToastDescription = ToastDescription; exports.ToastTitle = ToastTitle; exports.toastRecipe = toastRecipe; exports.Toast = Toast; exports.ToastHost = ToastHost; exports.Toast2 = Toast3;
|
package/dist/chunk-W4IPOWLY.cjs
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _chunkNADCILBLcjs = require('./chunk-NADCILBL.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunkAXKDHX5Vcjs = require('./chunk-AXKDHX5V.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var _chunkYSTLHVQVcjs = require('./chunk-YSTLHVQV.cjs');
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
30
|
-
|
|
31
|
-
// src/components/time-field/time-field-field.tsx
|
|
32
|
-
var _react = require('react');
|
|
33
|
-
|
|
34
|
-
// src/components/time-field/time-field.context.ts
|
|
35
|
-
var [TimeFieldProvider, useTimeField] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "TimeField");
|
|
36
|
-
|
|
37
|
-
// src/components/time-field/time-field-field.tsx
|
|
38
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
39
|
-
var TimeFieldField = _react.forwardRef.call(void 0,
|
|
40
|
-
function TimeFieldField2({ placeholder, style, ...props }, ref) {
|
|
41
|
-
const { text, onType, placeholder: shape, length } = useTimeField();
|
|
42
|
-
const group = _chunkNADCILBLcjs.useOptionalFieldGroup.call(void 0, );
|
|
43
|
-
const padding = _react.useMemo.call(void 0,
|
|
44
|
-
() => _chunkNADCILBLcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _ => _.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.suffixWidth]), () => ( 0))),
|
|
45
|
-
[_optionalChain([group, 'optionalAccess', _3 => _3.prefixWidth]), _optionalChain([group, 'optionalAccess', _4 => _4.suffixWidth])]
|
|
46
|
-
);
|
|
47
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
_chunkAXKDHX5Vcjs.TextFieldField,
|
|
49
|
-
{
|
|
50
|
-
ref,
|
|
51
|
-
keyboardType: "number-pad",
|
|
52
|
-
autoCapitalize: "none",
|
|
53
|
-
autoCorrect: false,
|
|
54
|
-
maxLength: length,
|
|
55
|
-
placeholder: _nullishCoalesce(placeholder, () => ( shape)),
|
|
56
|
-
...props,
|
|
57
|
-
value: text,
|
|
58
|
-
onChangeText: onType,
|
|
59
|
-
style: [padding, style]
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
TimeFieldField.displayName = "XAUI.TimeField.Field";
|
|
65
|
-
|
|
66
|
-
// src/components/time-field/time-field-period.tsx
|
|
67
|
-
|
|
68
|
-
var _reactnative = require('react-native');
|
|
69
|
-
|
|
70
|
-
var HIT_SLOP = 12;
|
|
71
|
-
var TimeFieldPeriod = _react.forwardRef.call(void 0,
|
|
72
|
-
function TimeFieldPeriod2({ accessibilityLabel, ...props }, ref) {
|
|
73
|
-
const { period, periodLabels, onPeriodChange, hasPeriod } = useTimeField();
|
|
74
|
-
const { isDisabled, labelStyle } = _chunkAXKDHX5Vcjs.useTextField.call(void 0, );
|
|
75
|
-
if (hasPeriod && !accessibilityLabel) {
|
|
76
|
-
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
77
|
-
'TimeField.Period: the toggle needs an `accessibilityLabel` \u2014 "AM" read on its own says the value, not that pressing it changes which half of the day it is.'
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
if (!hasPeriod) return null;
|
|
81
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNADCILBLcjs.FieldGroupSuffix, { ref, ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
|
-
_reactnative.Pressable,
|
|
83
|
-
{
|
|
84
|
-
accessibilityRole: "button",
|
|
85
|
-
accessibilityLabel,
|
|
86
|
-
accessibilityState: { disabled: isDisabled },
|
|
87
|
-
accessibilityValue: { text: periodLabels[period] },
|
|
88
|
-
disabled: isDisabled,
|
|
89
|
-
hitSlop: HIT_SLOP,
|
|
90
|
-
onPress: () => onPeriodChange(period === "am" ? "pm" : "am"),
|
|
91
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: labelStyle, children: periodLabels[period] })
|
|
92
|
-
}
|
|
93
|
-
) });
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
TimeFieldPeriod.displayName = "XAUI.TimeField.Period";
|
|
97
|
-
|
|
98
|
-
// src/components/time-field/time-field.tsx
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
var DEFAULT_LABELS = { hours: "HH", minutes: "mm", seconds: "ss" };
|
|
102
|
-
var DEFAULT_PERIODS = { am: "AM", pm: "PM" };
|
|
103
|
-
var TimeFieldRoot = _react.forwardRef.call(void 0, function TimeField({
|
|
104
|
-
value,
|
|
105
|
-
defaultValue,
|
|
106
|
-
onValueChange,
|
|
107
|
-
granularity = "minute",
|
|
108
|
-
hourCycle: hourCycleProp,
|
|
109
|
-
locale = "en-US",
|
|
110
|
-
timeLabels = DEFAULT_LABELS,
|
|
111
|
-
periodLabels = DEFAULT_PERIODS,
|
|
112
|
-
children,
|
|
113
|
-
...props
|
|
114
|
-
}, ref) {
|
|
115
|
-
const hourCycle = _nullishCoalesce(hourCycleProp, () => ( _chunkYSTLHVQVcjs.hourCycleFor.call(void 0, locale)));
|
|
116
|
-
const [typed, setTyped] = _react.useState.call(void 0,
|
|
117
|
-
() => defaultValue ? _chunkYSTLHVQVcjs.formatTime.call(void 0, defaultValue, granularity, hourCycle) : ""
|
|
118
|
-
);
|
|
119
|
-
const [typedPeriod, setTypedPeriod] = _react.useState.call(void 0,
|
|
120
|
-
() => defaultValue ? _chunkYSTLHVQVcjs.periodOf.call(void 0, defaultValue) : "am"
|
|
121
|
-
);
|
|
122
|
-
const isControlled = value !== void 0;
|
|
123
|
-
const typedParts = _chunkYSTLHVQVcjs.parseTime.call(void 0, typed, granularity, hourCycle, typedPeriod);
|
|
124
|
-
const agrees = typedParts !== null && value != null && _chunkYSTLHVQVcjs.withTime.call(void 0, value, typedParts).getTime() === value.getTime();
|
|
125
|
-
const text = isControlled && !agrees ? value === null ? "" : _chunkYSTLHVQVcjs.formatTime.call(void 0, value, granularity, hourCycle) : typed;
|
|
126
|
-
const period = isControlled && !agrees && value != null ? _chunkYSTLHVQVcjs.periodOf.call(void 0, value) : typedPeriod;
|
|
127
|
-
const anchor = _react.useRef.call(void 0, _nullishCoalesce(_nullishCoalesce(value, () => ( defaultValue)), () => ( null)));
|
|
128
|
-
if (value != null) anchor.current = value;
|
|
129
|
-
const reported = _react.useRef.call(void 0, null);
|
|
130
|
-
const report = _react.useCallback.call(void 0,
|
|
131
|
-
(next, nextPeriod) => {
|
|
132
|
-
const parts = _chunkYSTLHVQVcjs.parseTime.call(void 0, next, granularity, hourCycle, nextPeriod);
|
|
133
|
-
const moment = parts === null ? null : _chunkYSTLHVQVcjs.withTime.call(void 0, _nullishCoalesce(anchor.current, () => ( /* @__PURE__ */ new Date())), parts);
|
|
134
|
-
const before = reported.current;
|
|
135
|
-
if (moment === null ? before === null : _optionalChain([before, 'optionalAccess', _5 => _5.getTime, 'call', _6 => _6()]) === moment.getTime())
|
|
136
|
-
return;
|
|
137
|
-
reported.current = moment;
|
|
138
|
-
_optionalChain([onValueChange, 'optionalCall', _7 => _7(moment)]);
|
|
139
|
-
},
|
|
140
|
-
[granularity, hourCycle, onValueChange]
|
|
141
|
-
);
|
|
142
|
-
const onType = _react.useCallback.call(void 0,
|
|
143
|
-
(input) => {
|
|
144
|
-
const next = _chunkYSTLHVQVcjs.maskTime.call(void 0, input, granularity, hourCycle);
|
|
145
|
-
setTyped(next);
|
|
146
|
-
report(next, period);
|
|
147
|
-
},
|
|
148
|
-
[granularity, hourCycle, period, report]
|
|
149
|
-
);
|
|
150
|
-
const onPeriodChange = _react.useCallback.call(void 0,
|
|
151
|
-
(next) => {
|
|
152
|
-
setTypedPeriod(next);
|
|
153
|
-
report(text, next);
|
|
154
|
-
},
|
|
155
|
-
[report, text]
|
|
156
|
-
);
|
|
157
|
-
const context = _react.useMemo.call(void 0,
|
|
158
|
-
() => ({
|
|
159
|
-
text,
|
|
160
|
-
onType,
|
|
161
|
-
placeholder: _chunkYSTLHVQVcjs.timePlaceholder.call(void 0, granularity, timeLabels),
|
|
162
|
-
length: _chunkYSTLHVQVcjs.timeLength.call(void 0, granularity),
|
|
163
|
-
period,
|
|
164
|
-
periodLabels,
|
|
165
|
-
onPeriodChange,
|
|
166
|
-
hasPeriod: hourCycle === 12
|
|
167
|
-
}),
|
|
168
|
-
[
|
|
169
|
-
text,
|
|
170
|
-
onType,
|
|
171
|
-
granularity,
|
|
172
|
-
timeLabels,
|
|
173
|
-
period,
|
|
174
|
-
periodLabels,
|
|
175
|
-
onPeriodChange,
|
|
176
|
-
hourCycle
|
|
177
|
-
]
|
|
178
|
-
);
|
|
179
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TimeFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXKDHX5Vcjs.TextFieldRoot, { ref, ...props, children }) });
|
|
180
|
-
});
|
|
181
|
-
TimeFieldRoot.displayName = "XAUI.TimeField.Root";
|
|
182
|
-
|
|
183
|
-
// src/components/time-field/index.ts
|
|
184
|
-
var TimeField2 = Object.assign(TimeFieldRoot, {
|
|
185
|
-
Label: _chunkAXKDHX5Vcjs.TextFieldLabel,
|
|
186
|
-
Field: TimeFieldField,
|
|
187
|
-
Period: TimeFieldPeriod,
|
|
188
|
-
Description: _chunkAXKDHX5Vcjs.TextFieldDescription,
|
|
189
|
-
Error: _chunkAXKDHX5Vcjs.TextFieldError
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
exports.useTimeField = useTimeField; exports.TimeFieldField = TimeFieldField; exports.TimeFieldPeriod = TimeFieldPeriod; exports.TimeFieldRoot = TimeFieldRoot; exports.TimeField = TimeField2;
|