@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWNEDQTH6cjs = require('./chunk-WNEDQTH6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -35,7 +35,7 @@ function sizeAxis(box) {
|
|
|
35
35
|
var closeButtonRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
36
36
|
slots: SLOTS,
|
|
37
37
|
base: (theme) => {
|
|
38
|
-
const shared =
|
|
38
|
+
const shared = _chunkWNEDQTH6cjs.closeButtonGeometry.call(void 0, theme);
|
|
39
39
|
return {
|
|
40
40
|
// The stroke does **not** scale with the box. It is the shared thickness the `Chip`,
|
|
41
41
|
// the `Alert` and the `Dialog` all draw their cross at, and a family of crosses that
|
|
@@ -81,7 +81,7 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({ childre
|
|
|
81
81
|
});
|
|
82
82
|
const tint = color ? closeButtonRecipe.tint({ theme, color, selection }) : void 0;
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunkWNEDQTH6cjs.CloseButtonBase,
|
|
85
85
|
{
|
|
86
86
|
ref,
|
|
87
87
|
name: "CloseButton",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNRU5APUEcjs = require('./chunk-NRU5APUE.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,14 +11,14 @@ var _chunkNADCILBLcjs = require('./chunk-NADCILBL.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var _chunkWLWZG2PAcjs = require('./chunk-WLWZG2PA.cjs');
|
|
18
17
|
|
|
18
|
+
var _chunkWNEDQTH6cjs = require('./chunk-WNEDQTH6.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkBKY5YQ7Wcjs = require('./chunk-BKY5YQ7W.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
@@ -43,7 +43,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
43
43
|
var SearchFieldClear = _react.forwardRef.call(void 0,
|
|
44
44
|
function SearchFieldClear2({ onPress, ...props }, ref) {
|
|
45
45
|
const { query, clear, clearStyle, clearGlyphStyle } = useSearchField();
|
|
46
|
-
const { isDisabled } =
|
|
46
|
+
const { isDisabled } = _chunk2IOL3VDPcjs.useTextField.call(void 0, );
|
|
47
47
|
const handlePress = _react.useCallback.call(void 0,
|
|
48
48
|
(event) => {
|
|
49
49
|
clear();
|
|
@@ -52,8 +52,8 @@ var SearchFieldClear = _react.forwardRef.call(void 0,
|
|
|
52
52
|
[clear, onPress]
|
|
53
53
|
);
|
|
54
54
|
if (query.length === 0) return null;
|
|
55
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
-
|
|
55
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNRU5APUEcjs.FieldGroupSuffix, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
_chunkWNEDQTH6cjs.CloseButtonBase,
|
|
57
57
|
{
|
|
58
58
|
ref,
|
|
59
59
|
name: "SearchField.Clear",
|
|
@@ -75,13 +75,13 @@ var SearchFieldField = _react.forwardRef.call(void 0,
|
|
|
75
75
|
function SearchFieldField2({ style, ...props }, ref) {
|
|
76
76
|
const { query, onType, submit, boxStyle } = useSearchField();
|
|
77
77
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
78
|
-
const group =
|
|
78
|
+
const group = _chunkNRU5APUEcjs.useOptionalFieldGroup.call(void 0, );
|
|
79
79
|
const padding = _react.useMemo.call(void 0,
|
|
80
|
-
() =>
|
|
80
|
+
() => _chunkNRU5APUEcjs.decoratorPadding.call(void 0, _nullishCoalesce(_optionalChain([group, 'optionalAccess', _2 => _2.prefixWidth]), () => ( 0)), _nullishCoalesce(_optionalChain([group, 'optionalAccess', _3 => _3.suffixWidth]), () => ( 0))),
|
|
81
81
|
[_optionalChain([group, 'optionalAccess', _4 => _4.prefixWidth]), _optionalChain([group, 'optionalAccess', _5 => _5.suffixWidth])]
|
|
82
82
|
);
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunk2IOL3VDPcjs.TextFieldField,
|
|
85
85
|
{
|
|
86
86
|
ref,
|
|
87
87
|
accessibilityRole: "search",
|
|
@@ -128,7 +128,7 @@ function SearchFieldIcon({
|
|
|
128
128
|
size,
|
|
129
129
|
color
|
|
130
130
|
}) {
|
|
131
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
131
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNRU5APUEcjs.FieldGroupIcon, { as, size, color });
|
|
132
132
|
}
|
|
133
133
|
SearchFieldIcon.displayName = "XAUI.SearchField.Icon";
|
|
134
134
|
|
|
@@ -144,7 +144,7 @@ var VARIANT_TOKENS = {
|
|
|
144
144
|
var BAR_RATIO = 16 / 32;
|
|
145
145
|
function sizeAxis(size) {
|
|
146
146
|
return (theme) => {
|
|
147
|
-
const side = theme.fontSizes[
|
|
147
|
+
const side = theme.fontSizes[_chunkBKY5YQ7Wcjs.FIELD_GLYPH_SIZES[size]];
|
|
148
148
|
return {
|
|
149
149
|
clear: { width: side, height: side },
|
|
150
150
|
clearGlyph: { width: Math.round(side * BAR_RATIO) }
|
|
@@ -154,7 +154,7 @@ function sizeAxis(size) {
|
|
|
154
154
|
var searchFieldRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
155
155
|
slots: SLOTS,
|
|
156
156
|
base: (theme) => {
|
|
157
|
-
const shared =
|
|
157
|
+
const shared = _chunkWNEDQTH6cjs.closeButtonGeometry.call(void 0, theme);
|
|
158
158
|
return {
|
|
159
159
|
clear: shared.close,
|
|
160
160
|
// The cross sits with the magnifier rather than with the query: both are decoration
|
|
@@ -229,19 +229,19 @@ var SearchFieldRoot = _react.forwardRef.call(void 0,
|
|
|
229
229
|
}),
|
|
230
230
|
[query, report, clear, submit, styles, tint]
|
|
231
231
|
);
|
|
232
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SearchFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
232
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SearchFieldProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldRoot, { ref, variant: "tertiary", size, ...props, children }) });
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
SearchFieldRoot.displayName = "XAUI.SearchField.Root";
|
|
236
236
|
|
|
237
237
|
// src/components/search-field/index.ts
|
|
238
238
|
var SearchField2 = Object.assign(SearchFieldRoot, {
|
|
239
|
-
Label:
|
|
239
|
+
Label: _chunk2IOL3VDPcjs.TextFieldLabel,
|
|
240
240
|
Icon: SearchFieldIcon,
|
|
241
241
|
Field: SearchFieldField,
|
|
242
242
|
Clear: SearchFieldClear,
|
|
243
|
-
Description:
|
|
244
|
-
Error:
|
|
243
|
+
Description: _chunk2IOL3VDPcjs.TextFieldDescription,
|
|
244
|
+
Error: _chunk2IOL3VDPcjs.TextFieldError
|
|
245
245
|
});
|
|
246
246
|
|
|
247
247
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { selectRecipe } from "./chunk-E4FWGZH2.js";
|
|
1
|
+
import { BottomSheet2 as BottomSheet } from "./chunk-LYWXGEED.js";
|
|
2
|
+
import { selectRecipe } from "./chunk-OUNTRW6E.js";
|
|
4
3
|
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
5
|
-
import { PressableFeedback } from "./chunk-
|
|
4
|
+
import { PressableFeedback } from "./chunk-KQW25RCC.js";
|
|
6
5
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
7
6
|
import { Icon, IconContext, useIconContext } from "./chunk-JN6IRT2M.js";
|
|
8
7
|
import { createRecipe } from "./chunk-DKVXTMIJ.js";
|
|
@@ -336,20 +335,20 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
336
335
|
var HOURS_ON_A_FACE = 12;
|
|
337
336
|
var MINUTES_IN_AN_HOUR = 60;
|
|
338
337
|
var LABELLED_MINUTE = 5;
|
|
339
|
-
const
|
|
340
|
-
code: "function
|
|
341
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
342
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
338
|
+
const _worklet_14267644964491_init_data = {
|
|
339
|
+
code: "function chunkFSVZXWLZJs1(event){const{runOnJS,valueAt}=this.__closure;return runOnJS(valueAt)(event.x,event.y,true);}",
|
|
340
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FSVZXWLZ.js",
|
|
341
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFSVZXWLZJs1\",\"event\",\"runOnJS\",\"valueAt\",\"__closure\",\"x\",\"y\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FSVZXWLZ.js\"],\"mappings\":\"AA0akM,SAAAA,gBAAKA,CAAAC,KAAA,QAAAC,OAAA,CAAAC,OAAA,OAAAC,SAAA,OAAK,CAAAF,OAAQ,CAAAC,OAAQ,CAAC,CAAAF,KAAM,CAACI,CAAA,CAAEJ,KAAM,CAACK,CAAA,CAAE,IAAI\",\"ignoreList\":[]}"
|
|
343
342
|
};
|
|
344
|
-
const
|
|
345
|
-
code: "function
|
|
346
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
347
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
343
|
+
const _worklet_4559809561763_init_data = {
|
|
344
|
+
code: "function chunkFSVZXWLZJs2(event){const{runOnJS,valueAt}=this.__closure;return runOnJS(valueAt)(event.x,event.y,false);}",
|
|
345
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FSVZXWLZ.js",
|
|
346
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFSVZXWLZJs2\",\"event\",\"runOnJS\",\"valueAt\",\"__closure\",\"x\",\"y\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FSVZXWLZ.js\"],\"mappings\":\"AA0asI,SAAAA,gBAAKA,CAAAC,KAAA,QAAAC,OAAA,CAAAC,OAAA,OAAAC,SAAA,OAAK,CAAAF,OAAQ,CAAAC,OAAQ,CAAC,CAAAF,KAAM,CAACI,CAAA,CAAEJ,KAAM,CAACK,CAAA,CAAE,KAAK\",\"ignoreList\":[]}"
|
|
348
347
|
};
|
|
349
|
-
const
|
|
350
|
-
code: "function
|
|
351
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
352
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
348
|
+
const _worklet_1694514975714_init_data = {
|
|
349
|
+
code: "function chunkFSVZXWLZJs3(event){const{runOnJS,valueAt}=this.__closure;return runOnJS(valueAt)(event.x,event.y,false);}",
|
|
350
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-FSVZXWLZ.js",
|
|
351
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkFSVZXWLZJs3\",\"event\",\"runOnJS\",\"valueAt\",\"__closure\",\"x\",\"y\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-FSVZXWLZ.js\"],\"mappings\":\"AA0auE,SAAAA,gBAAKA,CAAAC,KAAA,QAAAC,OAAA,CAAAC,OAAA,OAAAC,SAAA,OAAK,CAAAF,OAAQ,CAAAC,OAAQ,CAAC,CAAAF,KAAM,CAACI,CAAA,CAAEJ,KAAM,CAACK,CAAA,CAAE,KAAK\",\"ignoreList\":[]}"
|
|
353
352
|
};
|
|
354
353
|
var TimePickerClock = forwardRef(function TimePickerClock2({
|
|
355
354
|
children,
|
|
@@ -477,64 +476,64 @@ var TimePickerClock = forwardRef(function TimePickerClock2({
|
|
|
477
476
|
const onInner = distanceFrom(now.center, point) < now.radius * (now.ring + now.innerRing) * 0.5;
|
|
478
477
|
if (onInner) setHour(raw === 0 ? 0 : raw + HOURS_ON_A_FACE);else setHour(raw === 0 ? HOURS_ON_A_FACE : raw);
|
|
479
478
|
}, []);
|
|
480
|
-
const drag = useMemo(() => Gesture.Pan().enabled(!isDisabled).minDistance(0).onStart(function
|
|
481
|
-
|
|
479
|
+
const drag = useMemo(() => Gesture.Pan().enabled(!isDisabled).minDistance(0).onStart(function chunkFSVZXWLZJs3Factory({
|
|
480
|
+
_worklet_1694514975714_init_data,
|
|
482
481
|
runOnJS,
|
|
483
482
|
valueAt
|
|
484
483
|
}) {
|
|
485
484
|
const _e = [new global.Error(), -3, -27];
|
|
486
|
-
const
|
|
487
|
-
|
|
485
|
+
const chunkFSVZXWLZJs3 = event => runOnJS(valueAt)(event.x, event.y, false);
|
|
486
|
+
chunkFSVZXWLZJs3.__closure = {
|
|
488
487
|
runOnJS,
|
|
489
488
|
valueAt
|
|
490
489
|
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
return
|
|
490
|
+
chunkFSVZXWLZJs3.__workletHash = 1694514975714;
|
|
491
|
+
chunkFSVZXWLZJs3.__pluginVersion = "0.7.4";
|
|
492
|
+
chunkFSVZXWLZJs3.__initData = _worklet_1694514975714_init_data;
|
|
493
|
+
chunkFSVZXWLZJs3.__stackDetails = _e;
|
|
494
|
+
return chunkFSVZXWLZJs3;
|
|
496
495
|
}({
|
|
497
|
-
|
|
496
|
+
_worklet_1694514975714_init_data,
|
|
498
497
|
runOnJS,
|
|
499
498
|
valueAt
|
|
500
|
-
})).onUpdate(function
|
|
501
|
-
|
|
499
|
+
})).onUpdate(function chunkFSVZXWLZJs2Factory({
|
|
500
|
+
_worklet_4559809561763_init_data,
|
|
502
501
|
runOnJS,
|
|
503
502
|
valueAt
|
|
504
503
|
}) {
|
|
505
504
|
const _e = [new global.Error(), -3, -27];
|
|
506
|
-
const
|
|
507
|
-
|
|
505
|
+
const chunkFSVZXWLZJs2 = event => runOnJS(valueAt)(event.x, event.y, false);
|
|
506
|
+
chunkFSVZXWLZJs2.__closure = {
|
|
508
507
|
runOnJS,
|
|
509
508
|
valueAt
|
|
510
509
|
};
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
return
|
|
510
|
+
chunkFSVZXWLZJs2.__workletHash = 4559809561763;
|
|
511
|
+
chunkFSVZXWLZJs2.__pluginVersion = "0.7.4";
|
|
512
|
+
chunkFSVZXWLZJs2.__initData = _worklet_4559809561763_init_data;
|
|
513
|
+
chunkFSVZXWLZJs2.__stackDetails = _e;
|
|
514
|
+
return chunkFSVZXWLZJs2;
|
|
516
515
|
}({
|
|
517
|
-
|
|
516
|
+
_worklet_4559809561763_init_data,
|
|
518
517
|
runOnJS,
|
|
519
518
|
valueAt
|
|
520
|
-
})).onEnd(function
|
|
521
|
-
|
|
519
|
+
})).onEnd(function chunkFSVZXWLZJs1Factory({
|
|
520
|
+
_worklet_14267644964491_init_data,
|
|
522
521
|
runOnJS,
|
|
523
522
|
valueAt
|
|
524
523
|
}) {
|
|
525
524
|
const _e = [new global.Error(), -3, -27];
|
|
526
|
-
const
|
|
527
|
-
|
|
525
|
+
const chunkFSVZXWLZJs1 = event => runOnJS(valueAt)(event.x, event.y, true);
|
|
526
|
+
chunkFSVZXWLZJs1.__closure = {
|
|
528
527
|
runOnJS,
|
|
529
528
|
valueAt
|
|
530
529
|
};
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
return
|
|
530
|
+
chunkFSVZXWLZJs1.__workletHash = 14267644964491;
|
|
531
|
+
chunkFSVZXWLZJs1.__pluginVersion = "0.7.4";
|
|
532
|
+
chunkFSVZXWLZJs1.__initData = _worklet_14267644964491_init_data;
|
|
533
|
+
chunkFSVZXWLZJs1.__stackDetails = _e;
|
|
534
|
+
return chunkFSVZXWLZJs1;
|
|
536
535
|
}({
|
|
537
|
-
|
|
536
|
+
_worklet_14267644964491_init_data,
|
|
538
537
|
runOnJS,
|
|
539
538
|
valueAt
|
|
540
539
|
})), [isDisabled, valueAt]);
|
|
@@ -732,11 +731,32 @@ TimePickerIndicator.displayName = "XAUI.TimePicker.Indicator";
|
|
|
732
731
|
// src/components/time-picker/time-picker.tsx
|
|
733
732
|
import { useCallback as useCallback2, useMemo as useMemo2, useState } from "react";
|
|
734
733
|
import { StyleSheet } from "react-native";
|
|
734
|
+
|
|
735
|
+
// src/utils/time.ts
|
|
736
|
+
var HOURS_IN_HALF_DAY = 12;
|
|
737
|
+
function hourCycleFor(locale) {
|
|
738
|
+
const {
|
|
739
|
+
hour12
|
|
740
|
+
} = new Intl.DateTimeFormat(locale, {
|
|
741
|
+
hour: "numeric"
|
|
742
|
+
}).resolvedOptions();
|
|
743
|
+
return hour12 ? 12 : 24;
|
|
744
|
+
}
|
|
745
|
+
function periodOf(date) {
|
|
746
|
+
return date.getHours() < HOURS_IN_HALF_DAY ? "am" : "pm";
|
|
747
|
+
}
|
|
748
|
+
function withTime(day, parts) {
|
|
749
|
+
const date = new Date(day);
|
|
750
|
+
date.setHours(parts.hours, parts.minutes, parts.seconds, 0);
|
|
751
|
+
return date;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
// src/components/time-picker/time-picker.tsx
|
|
735
755
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
736
756
|
var DEFAULT_FORMAT = {
|
|
737
757
|
timeStyle: "short"
|
|
738
758
|
};
|
|
739
|
-
var
|
|
759
|
+
var HOURS_IN_HALF_DAY2 = 12;
|
|
740
760
|
function TimePicker({
|
|
741
761
|
children,
|
|
742
762
|
variant,
|
|
@@ -815,12 +835,12 @@ function TimePicker({
|
|
|
815
835
|
const shown = value ?? new Date((/* @__PURE__ */new Date()).setHours(0, 0, 0, 0));
|
|
816
836
|
const hours24 = shown.getHours();
|
|
817
837
|
const period = periodOf(shown);
|
|
818
|
-
const hours = hourCycle === 24 ? hours24 : hours24 %
|
|
838
|
+
const hours = hourCycle === 24 ? hours24 : hours24 % HOURS_IN_HALF_DAY2 || HOURS_IN_HALF_DAY2;
|
|
819
839
|
const commit = useCallback2(next => {
|
|
820
840
|
setValue(next);
|
|
821
841
|
}, [setValue]);
|
|
822
842
|
const onDragHour = useCallback2(hour => {
|
|
823
|
-
const wanted = hourCycle === 24 ? hour : hour %
|
|
843
|
+
const wanted = hourCycle === 24 ? hour : hour % HOURS_IN_HALF_DAY2 + (period === "pm" ? HOURS_IN_HALF_DAY2 : 0);
|
|
824
844
|
commit(withTime(shown, {
|
|
825
845
|
hours: wanted,
|
|
826
846
|
minutes: shown.getMinutes(),
|
|
@@ -844,7 +864,7 @@ function TimePicker({
|
|
|
844
864
|
}, [closeOnSelect, onDragMinute, setOpen]);
|
|
845
865
|
const onPeriodChange = useCallback2(next => {
|
|
846
866
|
if (next === period) return;
|
|
847
|
-
const shifted = next === "pm" ? hours24 +
|
|
867
|
+
const shifted = next === "pm" ? hours24 + HOURS_IN_HALF_DAY2 : hours24 - HOURS_IN_HALF_DAY2;
|
|
848
868
|
commit(withTime(shown, {
|
|
849
869
|
hours: shifted,
|
|
850
870
|
minutes: shown.getMinutes(),
|
|
@@ -1046,4 +1066,4 @@ var TimePicker2 = Object.assign(TimePicker, {
|
|
|
1046
1066
|
Display: TimePickerDisplay,
|
|
1047
1067
|
Clock: TimePickerClock
|
|
1048
1068
|
});
|
|
1049
|
-
export { timePickerRecipe, useTimePicker, TimePickerClock, TimePickerDisplay, TimePickerIndicator, TimePicker, TimePickerSheet, TimePickerTrigger, TimePickerValue, TimePicker2 };
|
|
1069
|
+
export { withTime, timePickerRecipe, useTimePicker, TimePickerClock, TimePickerDisplay, TimePickerIndicator, TimePicker, TimePickerSheet, TimePickerTrigger, TimePickerValue, TimePicker2 };
|