@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
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-F6W3JQ7K.js";
|
|
22
22
|
import {
|
|
23
23
|
PressableFeedback
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KQW25RCC.js";
|
|
25
25
|
import {
|
|
26
26
|
usePressState
|
|
27
27
|
} from "./chunk-423RQBOX.js";
|
|
@@ -136,7 +136,7 @@ var menuRecipe = createRecipe({
|
|
|
136
136
|
// `flex: 1` is `flexBasis: 0`, and the panel is measured before it has a width: with
|
|
137
137
|
// a basis of zero and no definite width to grow into, the row's content size is
|
|
138
138
|
// nothing and the title collapses. The whole menu measured as a 70-point capsule
|
|
139
|
-
// with no text in it.
|
|
139
|
+
// with no text in it. The reference implementation writes `flex: 1` here and gets away with it because
|
|
140
140
|
// their measuring pass hands the panel a definite width; ours asks the panel how
|
|
141
141
|
// wide it wants to be, which is a question a zero basis cannot answer.
|
|
142
142
|
flexGrow: 1,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2IOL3VDPcjs = require('./chunk-2IOL3VDP.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
@@ -23,7 +23,7 @@ var [TextAreaProvider, useTextArea] = _chunkCDRGTUYFcjs.createSlotContext.call(v
|
|
|
23
23
|
var _jsxruntime = require('react/jsx-runtime');
|
|
24
24
|
var TextAreaField = _react.forwardRef.call(void 0,
|
|
25
25
|
function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
|
|
26
|
-
const { textAreaStyle, textArea } =
|
|
26
|
+
const { textAreaStyle, textArea } = _chunk2IOL3VDPcjs.useTextField.call(void 0, );
|
|
27
27
|
const { rows, maxRows } = useTextArea();
|
|
28
28
|
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
29
29
|
const height = _react.useMemo.call(void 0, () => {
|
|
@@ -37,7 +37,7 @@ var TextAreaField = _react.forwardRef.call(void 0,
|
|
|
37
37
|
};
|
|
38
38
|
}, [rows, maxRows, textArea]);
|
|
39
39
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
40
|
-
|
|
40
|
+
_chunk2IOL3VDPcjs.TextFieldField,
|
|
41
41
|
{
|
|
42
42
|
ref,
|
|
43
43
|
multiline: true,
|
|
@@ -56,16 +56,16 @@ TextAreaField.displayName = "XAUI.TextArea.Field";
|
|
|
56
56
|
var DEFAULT_ROWS = 3;
|
|
57
57
|
var TextAreaRoot = _react.forwardRef.call(void 0, function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
|
|
58
58
|
const context = _react.useMemo.call(void 0, () => ({ rows, maxRows }), [rows, maxRows]);
|
|
59
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IOL3VDPcjs.TextFieldRoot, { ref, ...props, children }) });
|
|
60
60
|
});
|
|
61
61
|
TextAreaRoot.displayName = "XAUI.TextArea.Root";
|
|
62
62
|
|
|
63
63
|
// src/components/text-area/index.ts
|
|
64
64
|
var TextArea2 = Object.assign(TextAreaRoot, {
|
|
65
|
-
Label:
|
|
65
|
+
Label: _chunk2IOL3VDPcjs.TextFieldLabel,
|
|
66
66
|
Field: TextAreaField,
|
|
67
|
-
Description:
|
|
68
|
-
Error:
|
|
67
|
+
Description: _chunk2IOL3VDPcjs.TextFieldDescription,
|
|
68
|
+
Error: _chunk2IOL3VDPcjs.TextFieldError
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
|
|
@@ -0,0 +1,627 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
function _interopRequireDefault(obj) {
|
|
7
|
+
return obj && obj.__esModule ? obj : {
|
|
8
|
+
default: obj
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function _nullishCoalesce(lhs, rhsFn) {
|
|
12
|
+
if (lhs != null) {
|
|
13
|
+
return lhs;
|
|
14
|
+
} else {
|
|
15
|
+
return rhsFn();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function _optionalChain(ops) {
|
|
19
|
+
let lastAccessLHS = undefined;
|
|
20
|
+
let value = ops[0];
|
|
21
|
+
let i = 1;
|
|
22
|
+
while (i < ops.length) {
|
|
23
|
+
const op = ops[i];
|
|
24
|
+
const fn = ops[i + 1];
|
|
25
|
+
i += 2;
|
|
26
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
30
|
+
lastAccessLHS = value;
|
|
31
|
+
value = fn(value);
|
|
32
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
33
|
+
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
34
|
+
lastAccessLHS = undefined;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
40
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
41
|
+
var _chunkHBYT7B47cjs = require('./chunk-HBYT7B47.cjs');
|
|
42
|
+
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
43
|
+
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
44
|
+
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
45
|
+
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
46
|
+
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
47
|
+
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
48
|
+
|
|
49
|
+
// src/components/accordion/accordion-content.tsx
|
|
50
|
+
var _react = require('react');
|
|
51
|
+
var _reactnativereanimated = require('react-native-reanimated');
|
|
52
|
+
var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
53
|
+
|
|
54
|
+
// src/components/accordion/accordion.animation.ts
|
|
55
|
+
|
|
56
|
+
var LAYOUT = _reactnativereanimated.LinearTransition.springify().damping(140).stiffness(1600).mass(4);
|
|
57
|
+
var CONTENT_MS = 200;
|
|
58
|
+
var contentEntering = _reactnativereanimated.FadeIn.duration(CONTENT_MS).easing(_reactnativereanimated.Easing.out(_reactnativereanimated.Easing.ease));
|
|
59
|
+
var contentExiting = _reactnativereanimated.FadeOut.duration(CONTENT_MS).easing(_reactnativereanimated.Easing.in(_reactnativereanimated.Easing.ease));
|
|
60
|
+
|
|
61
|
+
// src/components/accordion/accordion.context.ts
|
|
62
|
+
var [AccordionProvider, useAccordion] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Accordion");
|
|
63
|
+
var [AccordionItemProvider, useAccordionItem] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Accordion.Item");
|
|
64
|
+
|
|
65
|
+
// src/components/accordion/accordion-content.tsx
|
|
66
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
67
|
+
var AccordionContent = _react.forwardRef.call(void 0, function AccordionContent2({
|
|
68
|
+
children,
|
|
69
|
+
style,
|
|
70
|
+
...props
|
|
71
|
+
}, ref) {
|
|
72
|
+
const {
|
|
73
|
+
contentStyle
|
|
74
|
+
} = useAccordion();
|
|
75
|
+
const {
|
|
76
|
+
isExpanded
|
|
77
|
+
} = useAccordionItem();
|
|
78
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
79
|
+
if (!isExpanded) return null;
|
|
80
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
81
|
+
ref,
|
|
82
|
+
entering: contentEntering,
|
|
83
|
+
exiting: contentExiting,
|
|
84
|
+
...rest,
|
|
85
|
+
style: [contentStyle, styleProps, style],
|
|
86
|
+
children
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
AccordionContent.displayName = "XAUI.Accordion.Content";
|
|
90
|
+
|
|
91
|
+
// src/components/accordion/accordion-indicator.tsx
|
|
92
|
+
const _worklet_15415080829785_init_data = {
|
|
93
|
+
code: "function chunkUSQK6SFZCjs1(){const{_reactnativereanimated,progress,_chunkEKS3W46Mcjs}=this.__closure;return{transform:[{rotate:_reactnativereanimated.interpolate.call(void 0,progress.get(),[0,1],[_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0],_chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])+\"deg\"}]};}",
|
|
94
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-USQK6SFZ.cjs",
|
|
95
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUSQK6SFZCjs1\",\"_reactnativereanimated\",\"progress\",\"_chunkEKS3W46Mcjs\",\"__closure\",\"transform\",\"rotate\",\"interpolate\",\"call\",\"get\",\"INDICATOR_ROTATION\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-USQK6SFZ.cjs\"],\"mappings\":\"AA8FwE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,iBAAA,OAAAC,SAAA,CAE1E,MAAO,CACLC,SAAS,CAAE,CACT,CACEC,MAAM,CAAKL,sBAAsB,CAACM,WAAW,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEN,QAAQ,CAACO,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAAC,CAAC,CAAE,CAACN,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAEP,iBAAiB,CAACO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,MACxK,CAAC,CAEL,CAAC,CACH\",\"ignoreList\":[]}"
|
|
96
|
+
};
|
|
97
|
+
function AccordionIndicator({
|
|
98
|
+
as = _chunkGSZDN6EZcjs.ChevronDownIcon,
|
|
99
|
+
...props
|
|
100
|
+
}) {
|
|
101
|
+
const {
|
|
102
|
+
indicatorStyle
|
|
103
|
+
} = useAccordion();
|
|
104
|
+
const {
|
|
105
|
+
isExpanded
|
|
106
|
+
} = useAccordionItem();
|
|
107
|
+
const progress = _reactnativereanimated.useSharedValue.call(void 0, isExpanded ? 1 : 0);
|
|
108
|
+
_react.useEffect.call(void 0, () => {
|
|
109
|
+
progress.set(_reactnativereanimated.withSpring.call(void 0, isExpanded ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
110
|
+
}, [isExpanded, progress]);
|
|
111
|
+
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkUSQK6SFZCjs1Factory({
|
|
112
|
+
_worklet_15415080829785_init_data,
|
|
113
|
+
_reactnativereanimated,
|
|
114
|
+
progress,
|
|
115
|
+
_chunkEKS3W46Mcjs
|
|
116
|
+
}) {
|
|
117
|
+
const _e = [new global.Error(), -4, -27];
|
|
118
|
+
const chunkUSQK6SFZCjs1 = function () {
|
|
119
|
+
return {
|
|
120
|
+
transform: [{
|
|
121
|
+
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
122
|
+
}]
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
chunkUSQK6SFZCjs1.__closure = {
|
|
126
|
+
_reactnativereanimated,
|
|
127
|
+
progress,
|
|
128
|
+
_chunkEKS3W46Mcjs
|
|
129
|
+
};
|
|
130
|
+
chunkUSQK6SFZCjs1.__workletHash = 15415080829785;
|
|
131
|
+
chunkUSQK6SFZCjs1.__pluginVersion = "0.7.4";
|
|
132
|
+
chunkUSQK6SFZCjs1.__initData = _worklet_15415080829785_init_data;
|
|
133
|
+
chunkUSQK6SFZCjs1.__stackDetails = _e;
|
|
134
|
+
return chunkUSQK6SFZCjs1;
|
|
135
|
+
}({
|
|
136
|
+
_worklet_15415080829785_init_data,
|
|
137
|
+
_reactnativereanimated,
|
|
138
|
+
progress,
|
|
139
|
+
_chunkEKS3W46Mcjs
|
|
140
|
+
}), [progress]);
|
|
141
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
142
|
+
style: [indicatorStyle, rotation],
|
|
143
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, {
|
|
144
|
+
as,
|
|
145
|
+
...props
|
|
146
|
+
})
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
AccordionIndicator.displayName = "XAUI.Accordion.Indicator";
|
|
150
|
+
|
|
151
|
+
// src/components/accordion/accordion-item.tsx
|
|
152
|
+
|
|
153
|
+
var AccordionItem = _react.forwardRef.call(void 0, function AccordionItem2({
|
|
154
|
+
value,
|
|
155
|
+
children,
|
|
156
|
+
isDisabled = false,
|
|
157
|
+
style,
|
|
158
|
+
...props
|
|
159
|
+
}, ref) {
|
|
160
|
+
const {
|
|
161
|
+
itemStyle,
|
|
162
|
+
isDisabled: isRootDisabled,
|
|
163
|
+
isExpanded
|
|
164
|
+
} = useAccordion();
|
|
165
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
166
|
+
const expanded = isExpanded(value);
|
|
167
|
+
const disabled = isRootDisabled || isDisabled;
|
|
168
|
+
const context = _react.useMemo.call(void 0, () => ({
|
|
169
|
+
value,
|
|
170
|
+
isExpanded: expanded,
|
|
171
|
+
isDisabled: disabled
|
|
172
|
+
}), [value, expanded, disabled]);
|
|
173
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AccordionItemProvider, {
|
|
174
|
+
value: context,
|
|
175
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
176
|
+
ref,
|
|
177
|
+
layout: LAYOUT,
|
|
178
|
+
...rest,
|
|
179
|
+
style: [itemStyle, styleProps, style],
|
|
180
|
+
children: typeof children === "function" ? children(context) : children
|
|
181
|
+
})
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
AccordionItem.displayName = "XAUI.Accordion.Item";
|
|
185
|
+
|
|
186
|
+
// src/components/accordion/accordion-trigger.tsx
|
|
187
|
+
|
|
188
|
+
var _reactnative = require('react-native');
|
|
189
|
+
var AccordionTrigger = _react.forwardRef.call(void 0, function AccordionTrigger2({
|
|
190
|
+
children,
|
|
191
|
+
asChild = false,
|
|
192
|
+
accessibilityRole = "button",
|
|
193
|
+
accessibilityState,
|
|
194
|
+
style,
|
|
195
|
+
onPress,
|
|
196
|
+
onPressIn,
|
|
197
|
+
onPressOut,
|
|
198
|
+
...props
|
|
199
|
+
}, ref) {
|
|
200
|
+
const {
|
|
201
|
+
triggerStyle,
|
|
202
|
+
triggerPressedStyle,
|
|
203
|
+
labelStyle,
|
|
204
|
+
glyph,
|
|
205
|
+
toggle
|
|
206
|
+
} = useAccordion();
|
|
207
|
+
const {
|
|
208
|
+
value,
|
|
209
|
+
isExpanded,
|
|
210
|
+
isDisabled
|
|
211
|
+
} = useAccordionItem();
|
|
212
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
213
|
+
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, {
|
|
214
|
+
onPressIn,
|
|
215
|
+
onPressOut
|
|
216
|
+
});
|
|
217
|
+
const handlePress = _react.useCallback.call(void 0, event => {
|
|
218
|
+
_optionalChain([onPress, 'optionalCall', _ => _(event)]);
|
|
219
|
+
toggle(value);
|
|
220
|
+
}, [onPress, toggle, value]);
|
|
221
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, {
|
|
222
|
+
value: glyph,
|
|
223
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkHBYT7B47cjs.PressableFeedback, {
|
|
224
|
+
ref,
|
|
225
|
+
isPressed,
|
|
226
|
+
isDisabled,
|
|
227
|
+
asChild,
|
|
228
|
+
accessibilityRole,
|
|
229
|
+
accessibilityState: {
|
|
230
|
+
disabled: isDisabled,
|
|
231
|
+
expanded: isExpanded,
|
|
232
|
+
...accessibilityState
|
|
233
|
+
},
|
|
234
|
+
...rest,
|
|
235
|
+
style: [triggerStyle, isPressed && triggerPressedStyle, styleProps, typeof style === "function" ? style({
|
|
236
|
+
pressed: isPressed
|
|
237
|
+
}) : style],
|
|
238
|
+
onPress: handlePress,
|
|
239
|
+
onPressIn: press.onPressIn,
|
|
240
|
+
onPressOut: press.onPressOut,
|
|
241
|
+
children: asChild ? children : wrapText(children, labelStyle)
|
|
242
|
+
})
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
AccordionTrigger.displayName = "XAUI.Accordion.Trigger";
|
|
246
|
+
function wrapText(children, style) {
|
|
247
|
+
return _react.Children.map(children, child => typeof child === "string" || typeof child === "number" ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
248
|
+
style,
|
|
249
|
+
children: child
|
|
250
|
+
}) : child);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// src/components/accordion/accordion.tsx
|
|
254
|
+
|
|
255
|
+
// src/components/accordion/accordion.hook.ts
|
|
256
|
+
|
|
257
|
+
function useExpansion({
|
|
258
|
+
value,
|
|
259
|
+
defaultValue,
|
|
260
|
+
onValueChange,
|
|
261
|
+
selectionMode,
|
|
262
|
+
isCollapsible
|
|
263
|
+
}) {
|
|
264
|
+
const [current, setCurrent] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
265
|
+
value,
|
|
266
|
+
defaultValue: _nullishCoalesce(defaultValue, () => selectionMode === "multiple" ? [] : ""),
|
|
267
|
+
onChange: onValueChange
|
|
268
|
+
});
|
|
269
|
+
const isExpanded = _react.useCallback.call(void 0, item => Array.isArray(current) ? current.includes(item) : current === item, [current]);
|
|
270
|
+
const toggle = _react.useCallback.call(void 0, item => {
|
|
271
|
+
setCurrent(value_ => nextValue(value_, item, selectionMode, isCollapsible));
|
|
272
|
+
}, [isCollapsible, selectionMode, setCurrent]);
|
|
273
|
+
return _react.useMemo.call(void 0, () => ({
|
|
274
|
+
isExpanded,
|
|
275
|
+
toggle
|
|
276
|
+
}), [isExpanded, toggle]);
|
|
277
|
+
}
|
|
278
|
+
function nextValue(current, item, selectionMode, isCollapsible) {
|
|
279
|
+
if (selectionMode === "multiple") {
|
|
280
|
+
const list = Array.isArray(current) ? current : current ? [current] : [];
|
|
281
|
+
if (!list.includes(item)) return [...list, item];
|
|
282
|
+
if (!isCollapsible && list.length === 1) return current;
|
|
283
|
+
return list.filter(value => value !== item);
|
|
284
|
+
}
|
|
285
|
+
if (current !== item) return item;
|
|
286
|
+
return isCollapsible ? "" : current;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// src/components/accordion/accordion.recipe.ts
|
|
290
|
+
|
|
291
|
+
var SLOTS = ["root", "container", "separator", "item", "trigger", "indicator", "content"];
|
|
292
|
+
var VARIANT_TOKENS = {
|
|
293
|
+
primary: {
|
|
294
|
+
bg: "surface",
|
|
295
|
+
fg: "surfaceForeground"
|
|
296
|
+
},
|
|
297
|
+
secondary: {
|
|
298
|
+
bg: "surfaceSecondary",
|
|
299
|
+
fg: "surfaceSecondaryForeground"
|
|
300
|
+
},
|
|
301
|
+
tertiary: {
|
|
302
|
+
border: "border",
|
|
303
|
+
fg: "foreground"
|
|
304
|
+
},
|
|
305
|
+
ghost: {
|
|
306
|
+
fg: "foreground"
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
var HAIRLINE = _reactnative.StyleSheet.hairlineWidth;
|
|
310
|
+
var SIZES = {
|
|
311
|
+
xs: {
|
|
312
|
+
padding: 2.5,
|
|
313
|
+
gap: 2.5,
|
|
314
|
+
label: "sm",
|
|
315
|
+
glyph: "md",
|
|
316
|
+
radius: "md"
|
|
317
|
+
},
|
|
318
|
+
sm: {
|
|
319
|
+
padding: 3,
|
|
320
|
+
gap: 3,
|
|
321
|
+
label: "md",
|
|
322
|
+
glyph: "lg",
|
|
323
|
+
radius: "lg"
|
|
324
|
+
},
|
|
325
|
+
md: {
|
|
326
|
+
padding: 3,
|
|
327
|
+
gap: 4,
|
|
328
|
+
label: "md",
|
|
329
|
+
glyph: "lg",
|
|
330
|
+
radius: "xl"
|
|
331
|
+
},
|
|
332
|
+
lg: {
|
|
333
|
+
padding: 4,
|
|
334
|
+
gap: 4,
|
|
335
|
+
label: "lg",
|
|
336
|
+
glyph: "xl",
|
|
337
|
+
radius: "2xl"
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
var TRIGGER_PADDING_VERTICAL = 4;
|
|
341
|
+
function sizeAxis(step) {
|
|
342
|
+
const {
|
|
343
|
+
padding,
|
|
344
|
+
gap,
|
|
345
|
+
label,
|
|
346
|
+
glyph,
|
|
347
|
+
radius
|
|
348
|
+
} = step;
|
|
349
|
+
return theme => ({
|
|
350
|
+
// Both layers, at the same value: the outer one draws the corner, the inner one is
|
|
351
|
+
// what a pressed row is cut against.
|
|
352
|
+
root: {
|
|
353
|
+
borderRadius: theme.radius[radius]
|
|
354
|
+
},
|
|
355
|
+
container: {
|
|
356
|
+
borderRadius: theme.radius[radius]
|
|
357
|
+
},
|
|
358
|
+
trigger: {
|
|
359
|
+
paddingVertical: theme.spacing(TRIGGER_PADDING_VERTICAL),
|
|
360
|
+
paddingHorizontal: theme.spacing(padding),
|
|
361
|
+
gap: theme.spacing(gap),
|
|
362
|
+
fontSize: theme.fontSizes[label],
|
|
363
|
+
lineHeight: theme.lineHeights[label]
|
|
364
|
+
},
|
|
365
|
+
indicator: {
|
|
366
|
+
fontSize: theme.fontSizes[glyph]
|
|
367
|
+
},
|
|
368
|
+
content: {
|
|
369
|
+
paddingHorizontal: theme.spacing(padding),
|
|
370
|
+
paddingBottom: theme.spacing(TRIGGER_PADDING_VERTICAL)
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
var accordionRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
375
|
+
slots: SLOTS,
|
|
376
|
+
base: theme => ({
|
|
377
|
+
// The root carries the shadow and the border; it must **not** clip. On iOS
|
|
378
|
+
// `overflow: 'hidden'` sets `masksToBounds`, which clips the layer's own shadow along
|
|
379
|
+
// with everything else, and a lifted `primary` would have none at all.
|
|
380
|
+
root: {
|
|
381
|
+
flexDirection: "column",
|
|
382
|
+
borderCurve: "continuous"
|
|
383
|
+
},
|
|
384
|
+
// So the clipping is one layer in. This is the one extra node in the component, and
|
|
385
|
+
// it is here for a platform constraint rather than for layout: a single layer cannot
|
|
386
|
+
// both cast a shadow and clip its children on iOS. Without it a pressed row paints
|
|
387
|
+
// over the card's rounded corner, square, for as long as a finger is on it.
|
|
388
|
+
container: {
|
|
389
|
+
flexDirection: "column",
|
|
390
|
+
overflow: "hidden"
|
|
391
|
+
},
|
|
392
|
+
separator: {
|
|
393
|
+
height: HAIRLINE,
|
|
394
|
+
backgroundColor: theme.colors.separator
|
|
395
|
+
},
|
|
396
|
+
// This one is load-bearing: it is what makes the height animation read as a panel
|
|
397
|
+
// unrolling rather than as content sliding out from behind the row above it.
|
|
398
|
+
item: {
|
|
399
|
+
flexDirection: "column",
|
|
400
|
+
overflow: "hidden"
|
|
401
|
+
},
|
|
402
|
+
trigger: {
|
|
403
|
+
flexDirection: "row",
|
|
404
|
+
alignItems: "center",
|
|
405
|
+
justifyContent: "space-between",
|
|
406
|
+
fontFamily: theme.fontFamilies.body,
|
|
407
|
+
fontWeight: theme.fontWeights.medium
|
|
408
|
+
},
|
|
409
|
+
indicator: {
|
|
410
|
+
alignItems: "center",
|
|
411
|
+
justifyContent: "center"
|
|
412
|
+
}
|
|
413
|
+
}),
|
|
414
|
+
variantTokens: VARIANT_TOKENS,
|
|
415
|
+
/**
|
|
416
|
+
* The fill is the **root's**, never the row's. A row that painted its own would stack
|
|
417
|
+
* two fills where the separator sits, and the hairline would disappear into the seam.
|
|
418
|
+
*/
|
|
419
|
+
paint: (theme, colors) => ({
|
|
420
|
+
root: {
|
|
421
|
+
backgroundColor: colors.bg,
|
|
422
|
+
borderColor: colors.border,
|
|
423
|
+
borderWidth: colors.border ? theme.borderWidth.default : 0
|
|
424
|
+
},
|
|
425
|
+
trigger: {
|
|
426
|
+
color: colors.fg
|
|
427
|
+
},
|
|
428
|
+
indicator: {
|
|
429
|
+
color: theme.colors.muted
|
|
430
|
+
}
|
|
431
|
+
}),
|
|
432
|
+
variants: {
|
|
433
|
+
size: {
|
|
434
|
+
xs: sizeAxis(SIZES.xs),
|
|
435
|
+
sm: sizeAxis(SIZES.sm),
|
|
436
|
+
md: sizeAxis(SIZES.md),
|
|
437
|
+
lg: sizeAxis(SIZES.lg)
|
|
438
|
+
},
|
|
439
|
+
radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root", "container")
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
* A container inset from its own edge, and its separators inset with it. `ghost` has no
|
|
443
|
+
* edge to be inset from, so its rows run the full width and the hairline runs with them
|
|
444
|
+
* — which is the difference between a list on a page and a list in a box.
|
|
445
|
+
*
|
|
446
|
+
* `primary` is the only one lifted. It is the one that reads as a card, and the reference implementation puts
|
|
447
|
+
* their `--shadow-surface` on exactly that variant. `secondary` and `tertiary` have too
|
|
448
|
+
* little fill to lift — a shadow under either would read as dirt rather than as height
|
|
449
|
+
* — and in dark mode the theme's surface shadow is already nothing (§4), which is why
|
|
450
|
+
* this names the role rather than a set of numbers.
|
|
451
|
+
*/
|
|
452
|
+
compoundVariants: [...["primary", "secondary", "tertiary"].map(variant => ({
|
|
453
|
+
when: {
|
|
454
|
+
variant
|
|
455
|
+
},
|
|
456
|
+
style: theme => ({
|
|
457
|
+
separator: {
|
|
458
|
+
marginHorizontal: theme.spacing(3)
|
|
459
|
+
}
|
|
460
|
+
})
|
|
461
|
+
})), {
|
|
462
|
+
when: {
|
|
463
|
+
variant: "primary"
|
|
464
|
+
},
|
|
465
|
+
style: theme => ({
|
|
466
|
+
root: theme.shadows.surface
|
|
467
|
+
})
|
|
468
|
+
}],
|
|
469
|
+
states: {
|
|
470
|
+
// On the row, not on the root: pressing one row must not tint the whole container.
|
|
471
|
+
pressed: theme => ({
|
|
472
|
+
trigger: {
|
|
473
|
+
backgroundColor: theme.colors.defaultSoftPressed
|
|
474
|
+
}
|
|
475
|
+
}),
|
|
476
|
+
disabled: theme => ({
|
|
477
|
+
root: {
|
|
478
|
+
opacity: theme.opacity.disabled
|
|
479
|
+
}
|
|
480
|
+
})
|
|
481
|
+
},
|
|
482
|
+
defaultVariants: {
|
|
483
|
+
variant: "ghost",
|
|
484
|
+
size: "md"
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
// src/components/accordion/accordion.tsx
|
|
489
|
+
|
|
490
|
+
var AccordionRoot = _react.forwardRef.call(void 0, function Accordion({
|
|
491
|
+
children,
|
|
492
|
+
variant,
|
|
493
|
+
size,
|
|
494
|
+
radius,
|
|
495
|
+
color,
|
|
496
|
+
selectionMode = "single",
|
|
497
|
+
value,
|
|
498
|
+
defaultValue,
|
|
499
|
+
onValueChange,
|
|
500
|
+
isDisabled = false,
|
|
501
|
+
isCollapsible = true,
|
|
502
|
+
hasSeparator = true,
|
|
503
|
+
asChild = false,
|
|
504
|
+
style,
|
|
505
|
+
...props
|
|
506
|
+
}, ref) {
|
|
507
|
+
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0);
|
|
508
|
+
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
509
|
+
const {
|
|
510
|
+
isExpanded,
|
|
511
|
+
toggle
|
|
512
|
+
} = useExpansion({
|
|
513
|
+
value,
|
|
514
|
+
defaultValue,
|
|
515
|
+
onValueChange,
|
|
516
|
+
selectionMode,
|
|
517
|
+
isCollapsible
|
|
518
|
+
});
|
|
519
|
+
const selection = {
|
|
520
|
+
variant,
|
|
521
|
+
size,
|
|
522
|
+
radius
|
|
523
|
+
};
|
|
524
|
+
const styles = accordionRecipe.resolve({
|
|
525
|
+
theme,
|
|
526
|
+
selection,
|
|
527
|
+
states: {
|
|
528
|
+
disabled: isDisabled
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
const pressed = accordionRecipe.resolve({
|
|
532
|
+
theme,
|
|
533
|
+
selection,
|
|
534
|
+
states: {
|
|
535
|
+
pressed: true
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
const tint = color ? accordionRecipe.tint({
|
|
539
|
+
theme,
|
|
540
|
+
color,
|
|
541
|
+
selection
|
|
542
|
+
}) : void 0;
|
|
543
|
+
const context = _react.useMemo.call(void 0, () => {
|
|
544
|
+
const trigger = _reactnative.StyleSheet.flatten([styles.trigger, _optionalChain([tint, 'optionalAccess', _2 => _2.trigger])]);
|
|
545
|
+
const indicator = _reactnative.StyleSheet.flatten([styles.indicator, _optionalChain([tint, 'optionalAccess', _3 => _3.indicator])]);
|
|
546
|
+
return {
|
|
547
|
+
separatorStyle: styles.separator,
|
|
548
|
+
itemStyle: styles.item,
|
|
549
|
+
triggerStyle: tint ? [styles.trigger, tint.trigger] : styles.trigger,
|
|
550
|
+
triggerPressedStyle: pressed.trigger,
|
|
551
|
+
indicatorStyle: styles.indicator,
|
|
552
|
+
contentStyle: styles.content,
|
|
553
|
+
// The trigger is a row of views, so a stringifiable child is wrapped in a `Text` of
|
|
554
|
+
// its own — and that text takes the type the recipe put on the row.
|
|
555
|
+
labelStyle: {
|
|
556
|
+
color: trigger.color,
|
|
557
|
+
fontFamily: trigger.fontFamily,
|
|
558
|
+
fontWeight: trigger.fontWeight,
|
|
559
|
+
fontSize: trigger.fontSize,
|
|
560
|
+
lineHeight: trigger.lineHeight
|
|
561
|
+
},
|
|
562
|
+
glyph: {
|
|
563
|
+
size: indicator.fontSize,
|
|
564
|
+
color: typeof indicator.color === "string" ? indicator.color : void 0
|
|
565
|
+
},
|
|
566
|
+
isDisabled,
|
|
567
|
+
isExpanded,
|
|
568
|
+
toggle
|
|
569
|
+
};
|
|
570
|
+
}, [styles, pressed, tint, isDisabled, isExpanded, toggle]);
|
|
571
|
+
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _4 => _4.root]), styleProps, style];
|
|
572
|
+
const items = _react.Children.toArray(children);
|
|
573
|
+
const rows = items.map((child, index) => /* @__PURE__ */_jsxruntime.jsxs.call(void 0, _react.Fragment, {
|
|
574
|
+
children: [child, hasSeparator && index < items.length - 1 ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
575
|
+
layout: LAYOUT,
|
|
576
|
+
style: styles.separator
|
|
577
|
+
}) : null]
|
|
578
|
+
}, index));
|
|
579
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, AccordionProvider, {
|
|
580
|
+
value: context,
|
|
581
|
+
children: asChild ? /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, {
|
|
582
|
+
ref,
|
|
583
|
+
...rest,
|
|
584
|
+
style: rootStyle,
|
|
585
|
+
children
|
|
586
|
+
}) :
|
|
587
|
+
// Two layers, and the only place in the library where a root has one inside it.
|
|
588
|
+
// A single layer cannot both cast a shadow and clip its children on iOS, and this
|
|
589
|
+
// component needs both: `primary` is lifted, and a pressed row has to be cut
|
|
590
|
+
// against the card's rounded corner rather than painting over it.
|
|
591
|
+
//
|
|
592
|
+
// The layout transition is on each of them as well as on every row. Without it on
|
|
593
|
+
// the outer one the accordion's own height jumps to its new total in one frame
|
|
594
|
+
// while the rows inside it are still animating.
|
|
595
|
+
/* @__PURE__ */
|
|
596
|
+
_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
597
|
+
ref,
|
|
598
|
+
layout: LAYOUT,
|
|
599
|
+
...rest,
|
|
600
|
+
style: rootStyle,
|
|
601
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
602
|
+
layout: LAYOUT,
|
|
603
|
+
style: styles.container,
|
|
604
|
+
children: rows
|
|
605
|
+
})
|
|
606
|
+
})
|
|
607
|
+
});
|
|
608
|
+
});
|
|
609
|
+
AccordionRoot.displayName = "XAUI.Accordion.Root";
|
|
610
|
+
|
|
611
|
+
// src/components/accordion/index.ts
|
|
612
|
+
var Accordion2 = Object.assign(AccordionRoot, {
|
|
613
|
+
Item: AccordionItem,
|
|
614
|
+
Trigger: AccordionTrigger,
|
|
615
|
+
Indicator: AccordionIndicator,
|
|
616
|
+
Content: AccordionContent
|
|
617
|
+
});
|
|
618
|
+
exports.LAYOUT = LAYOUT;
|
|
619
|
+
exports.useAccordion = useAccordion;
|
|
620
|
+
exports.useAccordionItem = useAccordionItem;
|
|
621
|
+
exports.AccordionContent = AccordionContent;
|
|
622
|
+
exports.AccordionIndicator = AccordionIndicator;
|
|
623
|
+
exports.AccordionItem = AccordionItem;
|
|
624
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
625
|
+
exports.accordionRecipe = accordionRecipe;
|
|
626
|
+
exports.AccordionRoot = AccordionRoot;
|
|
627
|
+
exports.Accordion = Accordion2;
|