@xaui/native 0.9.1-alpha.93 → 0.9.1-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-AXKDHX5V.cjs → chunk-2IOL3VDP.cjs} +3 -3
- package/dist/{chunk-PAQZOD2L.js → chunk-2JFMCW5E.js} +1 -1
- package/dist/{chunk-TPYOQSKT.js → chunk-2UNLQRXY.js} +1 -1
- package/dist/{chunk-GYEQEF5H.js → chunk-356DND54.js} +1 -1
- package/dist/{chunk-OD6H7ANY.js → chunk-3BRVAMXQ.js} +2 -2
- package/dist/{chunk-QCH7X7O2.cjs → chunk-3DQCHPB6.cjs} +14 -14
- package/dist/{chunk-B33OU34Z.cjs → chunk-3MMOZP4Y.cjs} +20 -20
- package/dist/chunk-3TBT6ORW.cjs +662 -0
- package/dist/{chunk-DN3X5WIB.js → chunk-3VMKOQXH.js} +1 -1
- package/dist/{chunk-CBXILKQZ.cjs → chunk-435MOVG2.cjs} +3 -3
- package/dist/{chunk-2B6PUYTP.cjs → chunk-55KGHYYU.cjs} +4 -4
- package/dist/{chunk-V4IFH65I.cjs → chunk-5CXOSDFI.cjs} +2 -2
- package/dist/{chunk-FVEMTBU4.js → chunk-5G36GMFS.js} +3 -3
- package/dist/{chunk-BI5ME4QP.cjs → chunk-5UT5I53X.cjs} +8 -8
- package/dist/{chunk-V2CEKPJ6.js → chunk-6MVKLRLZ.js} +1 -1
- package/dist/{chunk-RSIWSVXI.js → chunk-6NAZ2IHL.js} +1 -1
- package/dist/{chunk-LPJ3UBSO.cjs → chunk-6NRWZR7T.cjs} +2 -2
- package/dist/{chunk-7NQL5DXY.js → chunk-6XY3XAEQ.js} +1 -1
- package/dist/{chunk-UEW3GAP5.cjs → chunk-6ZWQDTGQ.cjs} +5 -5
- package/dist/{chunk-ODQHAPQW.js → chunk-73EVNWZI.js} +25 -23
- package/dist/{chunk-VMPCXS4S.js → chunk-7EPH24S2.js} +23 -21
- package/dist/{chunk-G2YHGLN3.cjs → chunk-7JWOAGB3.cjs} +9 -9
- package/dist/{chunk-FXN32S75.cjs → chunk-ADGHFLBJ.cjs} +4 -4
- package/dist/{chunk-OPLPLFGK.cjs → chunk-AHKKEM3K.cjs} +66 -23
- package/dist/{chunk-WRZV6ORJ.js → chunk-AYOJXFHR.js} +1 -1
- package/dist/{chunk-MMFIMQMQ.js → chunk-BBQQIO6L.js} +6 -6
- package/dist/{chunk-PROLOLZ5.cjs → chunk-BGBJTBFC.cjs} +3 -3
- package/dist/{chunk-RXEUKYM5.js → chunk-BH4IN6H6.js} +2 -2
- package/dist/{chunk-WLWZG2PA.cjs → chunk-BKY5YQ7W.cjs} +1 -1
- package/dist/{chunk-CYOUOQXT.cjs → chunk-C2S6J27O.cjs} +6 -6
- package/dist/chunk-C6JO2RTV.cjs +752 -0
- package/dist/{chunk-NVODH2PR.js → chunk-CCTAJXZ3.js} +63 -61
- package/dist/{chunk-ORXVXYKC.cjs → chunk-CHGBWFDI.cjs} +63 -26
- package/dist/chunk-CS6CYB4I.cjs +260 -0
- package/dist/{chunk-WLJPO3AS.cjs → chunk-CZ2NUGUI.cjs} +357 -201
- package/dist/{chunk-PYQ2P3M5.cjs → chunk-CZEWWCWG.cjs} +58 -58
- package/dist/{chunk-PDSR42YC.cjs → chunk-D22K3NZU.cjs} +3 -3
- package/dist/{chunk-WYRM77XM.cjs → chunk-ENZBKNFJ.cjs} +15 -15
- package/dist/chunk-ETY5PM3E.cjs +797 -0
- package/dist/{chunk-62AYYMZP.cjs → chunk-FDYPWVNP.cjs} +3 -3
- package/dist/{chunk-PAQD6UUF.cjs → chunk-FLKTJ46K.cjs} +17 -17
- package/dist/{chunk-EBCAPIBD.js → chunk-FSVZXWLZ.js} +71 -51
- package/dist/{chunk-FOOXBVOQ.js → chunk-GVZJNIHN.js} +184 -68
- package/dist/chunk-GWTURY4S.cjs +999 -0
- package/dist/{chunk-OW4N2C3M.cjs → chunk-HBYT7B47.cjs} +88 -61
- package/dist/{chunk-7EVW6O2Q.js → chunk-HDERVGWZ.js} +2 -2
- package/dist/{chunk-XWIPLZTD.cjs → chunk-HOV25N3M.cjs} +2 -2
- package/dist/{chunk-5MMBEDZG.cjs → chunk-I3XIZWCV.cjs} +29 -29
- package/dist/{chunk-EDNCHCIN.cjs → chunk-IAJG7GYE.cjs} +2 -2
- package/dist/{chunk-P7OHZCU3.js → chunk-IAWLQN2W.js} +2 -2
- package/dist/{chunk-RCSEVEIR.js → chunk-ICVIWXK4.js} +1 -1
- package/dist/chunk-IHRPAKCZ.cjs +540 -0
- package/dist/{chunk-ZWS3FQ3J.js → chunk-IUDQG3JI.js} +57 -57
- package/dist/{chunk-JKDWYNSG.js → chunk-IVELCJEN.js} +110 -108
- package/dist/{chunk-5YZUYSV7.js → chunk-JYV53WUN.js} +1 -1
- package/dist/{chunk-QN2D5ZCS.cjs → chunk-KAYZH7ZN.cjs} +4 -4
- package/dist/{chunk-RREJUSAS.cjs → chunk-KIXHSX3L.cjs} +4 -4
- package/dist/{chunk-2AFA5HA2.js → chunk-KQW25RCC.js} +77 -75
- package/dist/{chunk-7M6YKCHX.js → chunk-KZZWNDDO.js} +2 -2
- package/dist/{chunk-J5COSALO.cjs → chunk-L4B6Z45Q.cjs} +5 -5
- package/dist/{chunk-X4CZYJZ6.cjs → chunk-LCGJA37L.cjs} +12 -12
- package/dist/{chunk-P2CJNTAP.js → chunk-LMMHAGOM.js} +33 -22
- package/dist/{chunk-SUJLTC2K.js → chunk-LPGY2IDX.js} +1 -1
- package/dist/{chunk-P5M5URAB.js → chunk-LSZW4G7B.js} +31 -31
- package/dist/{chunk-LECYGVIH.js → chunk-LYWXGEED.js} +51 -49
- package/dist/{chunk-VQGNLX5C.js → chunk-M352N6PQ.js} +6 -6
- package/dist/{chunk-AIND5F7P.js → chunk-MTQGFUW5.js} +29 -29
- package/dist/{chunk-ZKGVOXLQ.js → chunk-MXSIY6QQ.js} +4 -4
- package/dist/{chunk-3CPLJJWX.js → chunk-MZUYTCCB.js} +1 -1
- package/dist/{chunk-DYQB54JA.cjs → chunk-NPAGA6SH.cjs} +2 -2
- package/dist/{chunk-O6B72H4B.js → chunk-NQDTGYHC.js} +7 -9
- package/dist/{chunk-NADCILBL.cjs → chunk-NRU5APUE.cjs} +4 -4
- package/dist/{chunk-43S673KF.js → chunk-NTVPLDJC.js} +1 -1
- package/dist/{chunk-7AVZ2FST.cjs → chunk-NXVSNESK.cjs} +12 -12
- package/dist/{chunk-QELEKXN3.cjs → chunk-OMI2FRCU.cjs} +5 -5
- package/dist/{chunk-E4FWGZH2.js → chunk-OUNTRW6E.js} +5 -5
- package/dist/{chunk-JBZ7SBRV.cjs → chunk-Q3ZKZ2Y6.cjs} +3 -3
- package/dist/chunk-QRH45OO3.cjs +903 -0
- package/dist/{chunk-6RU6GUJP.js → chunk-QZF7RSVV.js} +1 -1
- package/dist/{chunk-UYQLW7OD.js → chunk-RAYO2TJL.js} +2 -2
- package/dist/{chunk-FRLWG5LM.js → chunk-RFT5MGJC.js} +25 -25
- package/dist/{chunk-USIWPESU.js → chunk-SIX5AVXG.js} +1 -1
- package/dist/chunk-SVS726BW.js +822 -0
- package/dist/{chunk-GGP2ERSV.js → chunk-T5ES7FOL.js} +1 -1
- package/dist/{chunk-JJYHW4PV.js → chunk-TNFLBURM.js} +2 -2
- package/dist/{chunk-YCQEX25B.cjs → chunk-U6YD3UBO.cjs} +7 -7
- package/dist/chunk-USQK6SFZ.cjs +627 -0
- package/dist/{chunk-MSORLKO7.cjs → chunk-V3C3ATRO.cjs} +2 -2
- package/dist/{chunk-TCWW7JI2.js → chunk-V5FYHQKQ.js} +111 -94
- package/dist/{chunk-CBRW53GN.cjs → chunk-V5V2QYFH.cjs} +43 -27
- package/dist/{chunk-YGETADPV.js → chunk-V7YT4SDX.js} +2 -2
- package/dist/{chunk-TRWZEOCO.js → chunk-VL2ZT4BB.js} +5 -5
- package/dist/{chunk-2SHWOFQV.js → chunk-VQ4OTVET.js} +29 -29
- package/dist/{chunk-Q6OVVUAT.js → chunk-VTGWFZCA.js} +2 -2
- package/dist/{chunk-6GQ7UTJ7.cjs → chunk-VXAIFOXL.cjs} +2 -2
- package/dist/{chunk-BJVO7DWJ.js → chunk-W4F4NQXM.js} +1 -1
- package/dist/{chunk-JC4YCKKL.js → chunk-WIGDDZHO.js} +198 -82
- package/dist/{chunk-ZE4IHUUO.cjs → chunk-WNEDQTH6.cjs} +2 -2
- package/dist/chunk-WSDDUVF6.cjs +395 -0
- package/dist/{chunk-QHXTO525.js → chunk-WYJHDTU7.js} +1 -1
- package/dist/{chunk-RLC3EXMV.js → chunk-XM4IN4Q6.js} +2 -2
- package/dist/chunk-XXXR2AD3.cjs +94 -0
- package/dist/{chunk-AR7667VN.cjs → chunk-YJA7OQQZ.cjs} +4 -4
- package/dist/{chunk-LKRQUQZQ.cjs → chunk-YRANVNJG.cjs} +2 -2
- package/dist/{chunk-WIX4SYZI.cjs → chunk-YUCK5VJO.cjs} +10 -10
- package/dist/chunk-ZBFBF7S4.cjs +1054 -0
- package/dist/{chunk-52XUGOLD.js → chunk-ZBY7Q7WJ.js} +3 -3
- package/dist/chunk-ZDJQ643D.js +62 -0
- package/dist/{chunk-QUSQEYLP.cjs → chunk-ZNKHL5O6.cjs} +30 -32
- package/dist/{chunk-U5CUBDJA.js → chunk-ZR5YOCOQ.js} +15 -15
- package/dist/components/accordion/accordion.animation.d.cts +1 -1
- package/dist/components/accordion/accordion.animation.d.ts +1 -1
- package/dist/components/accordion/accordion.type.d.cts +1 -1
- package/dist/components/accordion/accordion.type.d.ts +1 -1
- package/dist/components/accordion/index.cjs +3 -3
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +4 -4
- package/dist/components/agenda-calendar/index.js +3 -3
- package/dist/components/alert/alert-icon.d.cts +2 -2
- package/dist/components/alert/alert-icon.d.ts +2 -2
- package/dist/components/alert/alert.type.d.cts +1 -1
- package/dist/components/alert/alert.type.d.ts +1 -1
- package/dist/components/alert/index.cjs +4 -4
- package/dist/components/alert/index.js +3 -3
- package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +11 -4
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +10 -3
- package/dist/components/avatar/avatar-fallback.d.cts +1 -1
- package/dist/components/avatar/avatar-fallback.d.ts +1 -1
- package/dist/components/avatar/avatar.d.cts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.type.d.cts +1 -1
- package/dist/components/avatar/avatar.type.d.ts +1 -1
- package/dist/components/avatar/index.cjs +2 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +1 -1
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +1 -1
- package/dist/components/bottom-sheet/index.cjs +3 -3
- package/dist/components/bottom-sheet/index.js +2 -2
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.js +2 -2
- package/dist/components/calendar/index.cjs +3 -3
- package/dist/components/calendar/index.js +2 -2
- package/dist/components/card/card-background.d.cts +1 -1
- package/dist/components/card/card-background.d.ts +1 -1
- package/dist/components/card/card.utils.d.cts +1 -1
- package/dist/components/card/card.utils.d.ts +1 -1
- package/dist/components/card/index.cjs +3 -3
- package/dist/components/card/index.js +2 -2
- package/dist/components/carousel/index.cjs +3 -3
- package/dist/components/carousel/index.js +2 -2
- package/dist/components/checkbox/checkbox.recipe.d.cts +1 -1
- package/dist/components/checkbox/checkbox.recipe.d.ts +1 -1
- package/dist/components/checkbox/checkbox.type.d.cts +1 -1
- package/dist/components/checkbox/checkbox.type.d.ts +1 -1
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/chip.type.d.cts +1 -1
- package/dist/components/chip/chip.type.d.ts +1 -1
- package/dist/components/chip/index.cjs +4 -4
- package/dist/components/chip/index.js +3 -3
- package/dist/components/close-button/index.cjs +4 -4
- package/dist/components/close-button/index.js +3 -3
- package/dist/components/color-picker/index.cjs +9 -9
- package/dist/components/color-picker/index.js +8 -8
- package/dist/components/combobox/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +6 -5
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +5 -4
- package/dist/components/date-picker/index.cjs +6 -6
- package/dist/components/date-picker/index.js +5 -5
- package/dist/components/date-range-picker/index.cjs +7 -7
- package/dist/components/date-range-picker/index.js +6 -6
- package/dist/components/date-time-picker/date-time-picker-indicator.d.cts +2 -2
- package/dist/components/date-time-picker/date-time-picker-indicator.d.ts +2 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.cts +3 -2
- package/dist/components/date-time-picker/date-time-picker.type.d.ts +3 -2
- package/dist/components/date-time-picker/index.cjs +9 -10
- package/dist/components/date-time-picker/index.d.cts +1 -1
- package/dist/components/date-time-picker/index.d.ts +1 -1
- package/dist/components/date-time-picker/index.js +8 -9
- package/dist/components/dialog/index.cjs +4 -4
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/dummy-field/index.cjs +6 -6
- package/dist/components/dummy-field/index.js +5 -5
- package/dist/components/fab/index.cjs +3 -3
- package/dist/components/fab/index.js +2 -2
- package/dist/components/field-group/field-group-icon.d.cts +1 -1
- package/dist/components/field-group/field-group-icon.d.ts +1 -1
- package/dist/components/field-group/index.cjs +4 -4
- package/dist/components/field-group/index.js +3 -3
- package/dist/components/flip-card/index.cjs +3 -3
- package/dist/components/flip-card/index.js +2 -2
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/input-otp/input-otp.type.d.cts +1 -1
- package/dist/components/input-otp/input-otp.type.d.ts +1 -1
- package/dist/components/list-box/index.cjs +2 -2
- package/dist/components/list-box/index.js +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.cts +1 -1
- package/dist/components/list-box/list-box-item-suffix.d.ts +1 -1
- package/dist/components/mask-field/index.cjs +5 -5
- package/dist/components/mask-field/index.js +4 -4
- package/dist/components/menu/index.cjs +3 -3
- package/dist/components/menu/index.js +2 -2
- package/dist/components/morph-button/index.cjs +3 -3
- package/dist/components/morph-button/index.js +2 -2
- package/dist/components/number-field/index.cjs +5 -5
- package/dist/components/number-field/index.js +4 -4
- package/dist/components/number-field/number-field-increment.d.cts +2 -2
- package/dist/components/number-field/number-field-increment.d.ts +2 -2
- package/dist/components/number-pad/index.cjs +3 -3
- package/dist/components/number-pad/index.js +2 -2
- package/dist/components/number-stepper/index.cjs +3 -3
- package/dist/components/number-stepper/index.js +2 -2
- package/dist/components/pager/index.cjs +2 -2
- package/dist/components/pager/index.js +1 -1
- package/dist/components/phone-number-field/index.cjs +43 -36
- package/dist/components/phone-number-field/index.js +15 -8
- package/dist/components/popover/index.cjs +3 -3
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.recipe.d.cts +1 -1
- package/dist/components/popover/popover.recipe.d.ts +1 -1
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.js +2 -2
- package/dist/components/range-calendar/index.cjs +4 -4
- package/dist/components/range-calendar/index.js +3 -3
- package/dist/components/rating/index.cjs +3 -3
- package/dist/components/rating/index.js +2 -2
- package/dist/components/search-field/index.cjs +7 -7
- package/dist/components/search-field/index.js +6 -6
- package/dist/components/segment/index.cjs +4 -4
- package/dist/components/segment/index.js +2 -2
- package/dist/components/select/index.cjs +11 -4
- package/dist/components/select/index.d.cts +45 -4
- package/dist/components/select/index.d.ts +45 -4
- package/dist/components/select/index.js +10 -3
- package/dist/components/select/select-description.d.cts +14 -0
- package/dist/components/select/select-description.d.ts +14 -0
- package/dist/components/select/select-error.d.cts +13 -0
- package/dist/components/select/select-error.d.ts +13 -0
- package/dist/components/select/select-group-label.d.cts +11 -0
- package/dist/components/select/select-group-label.d.ts +11 -0
- package/dist/components/select/select-indicator.d.cts +1 -1
- package/dist/components/select/select-indicator.d.ts +1 -1
- package/dist/components/select/select-label.d.cts +11 -2
- package/dist/components/select/select-label.d.ts +11 -2
- package/dist/components/select/select.d.cts +49 -9
- package/dist/components/select/select.d.ts +49 -9
- package/dist/components/select/select.recipe.d.cts +1 -1
- package/dist/components/select/select.recipe.d.ts +1 -1
- package/dist/components/select/select.type.d.cts +33 -9
- package/dist/components/select/select.type.d.ts +33 -9
- package/dist/components/skeleton/skeleton.type.d.cts +1 -1
- package/dist/components/skeleton/skeleton.type.d.ts +1 -1
- package/dist/components/slide-button/index.cjs +30 -0
- package/dist/components/slide-button/index.d.cts +44 -0
- package/dist/components/slide-button/index.d.ts +44 -0
- package/dist/components/slide-button/index.js +30 -0
- package/dist/components/slide-button/slide-button-fill.d.cts +29 -0
- package/dist/components/slide-button/slide-button-fill.d.ts +29 -0
- package/dist/components/slide-button/slide-button-icon.d.cts +10 -0
- package/dist/components/slide-button/slide-button-icon.d.ts +10 -0
- package/dist/components/slide-button/slide-button-label.d.cts +20 -0
- package/dist/components/slide-button/slide-button-label.d.ts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.cts +20 -0
- package/dist/components/slide-button/slide-button-thumb.d.ts +20 -0
- package/dist/components/slide-button/slide-button.animation.d.cts +33 -0
- package/dist/components/slide-button/slide-button.animation.d.ts +33 -0
- package/dist/components/slide-button/slide-button.context.d.cts +7 -0
- package/dist/components/slide-button/slide-button.context.d.ts +7 -0
- package/dist/components/slide-button/slide-button.d.cts +56 -0
- package/dist/components/slide-button/slide-button.d.ts +56 -0
- package/dist/components/slide-button/slide-button.recipe.d.cts +31 -0
- package/dist/components/slide-button/slide-button.recipe.d.ts +31 -0
- package/dist/components/slide-button/slide-button.type.d.cts +79 -0
- package/dist/components/slide-button/slide-button.type.d.ts +79 -0
- package/dist/components/slider/index.cjs +2 -2
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider-thumb.d.cts +1 -1
- package/dist/components/slider/slider-thumb.d.ts +1 -1
- package/dist/components/slider/slider.recipe.d.cts +1 -1
- package/dist/components/slider/slider.recipe.d.ts +1 -1
- package/dist/components/snackbar/index.cjs +3 -3
- package/dist/components/snackbar/index.js +2 -2
- package/dist/components/spinner/spinner.d.cts +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.js +2 -2
- package/dist/components/switch/switch.style.d.cts +1 -1
- package/dist/components/switch/switch.style.d.ts +1 -1
- package/dist/components/table/index.cjs +4 -4
- package/dist/components/table/index.js +3 -3
- package/dist/components/tabs/index.cjs +4 -4
- package/dist/components/tabs/index.js +3 -3
- package/dist/components/tag-group/index.cjs +4 -4
- package/dist/components/tag-group/index.js +3 -3
- package/dist/components/text-area/index.cjs +4 -4
- package/dist/components/text-area/index.js +3 -3
- package/dist/components/text-area/text-area.d.cts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-field/index.cjs +3 -3
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.type.d.cts +4 -4
- package/dist/components/text-field/text-field.type.d.ts +4 -4
- package/dist/components/time-picker/index.cjs +5 -6
- package/dist/components/time-picker/index.d.cts +1 -1
- package/dist/components/time-picker/index.d.ts +1 -1
- package/dist/components/time-picker/index.js +4 -5
- package/dist/components/time-picker/time-picker-display.d.cts +3 -3
- package/dist/components/time-picker/time-picker-display.d.ts +3 -3
- package/dist/components/time-picker/time-picker-indicator.d.cts +2 -2
- package/dist/components/time-picker/time-picker-indicator.d.ts +2 -2
- package/dist/components/time-picker/time-picker.d.cts +1 -1
- package/dist/components/time-picker/time-picker.d.ts +1 -1
- package/dist/components/time-picker/time-picker.type.d.cts +11 -1
- package/dist/components/time-picker/time-picker.type.d.ts +11 -1
- package/dist/components/toast/index.cjs +3 -3
- package/dist/components/toast/index.js +2 -2
- package/dist/components/toast/toast.animation.d.cts +2 -2
- package/dist/components/toast/toast.animation.d.ts +2 -2
- package/dist/components/toast/toast.utils.d.cts +1 -1
- package/dist/components/toast/toast.utils.d.ts +1 -1
- package/dist/components/toggle-button/index.cjs +3 -3
- package/dist/components/toggle-button/index.js +2 -2
- package/dist/components/typography/typography.type.d.cts +1 -1
- package/dist/components/typography/typography.type.d.ts +1 -1
- package/dist/components/wheel-picker/index.cjs +2 -2
- package/dist/components/wheel-picker/index.js +1 -1
- package/dist/hooks/use-rotation.d.cts +1 -1
- package/dist/hooks/use-rotation.d.ts +1 -1
- package/dist/index.cjs +74 -63
- package/dist/index.js +92 -81
- package/dist/system/anchored/indicator-spring.d.cts +2 -2
- package/dist/system/anchored/indicator-spring.d.ts +2 -2
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.js +2 -2
- package/dist/theme/derive-colors.d.cts +1 -1
- package/dist/theme/derive-colors.d.ts +1 -1
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/utils/time.d.cts +29 -0
- package/dist/utils/time.d.ts +29 -0
- package/package.json +11 -11
- package/dist/chunk-3MRCSXGT.js +0 -73
- package/dist/chunk-5E6SHYEQ.cjs +0 -631
- package/dist/chunk-6JAGPPZU.cjs +0 -788
- package/dist/chunk-CEPX7CKM.cjs +0 -365
- package/dist/chunk-CHFPFYNV.js +0 -60
- package/dist/chunk-ECR6GPJ6.js +0 -198
- package/dist/chunk-GBTNFQXN.cjs +0 -33
- package/dist/chunk-GZAGWNQM.cjs +0 -719
- package/dist/chunk-ILXKBDC6.cjs +0 -209
- package/dist/chunk-IPD3IUE2.cjs +0 -640
- package/dist/chunk-P2V6PIM7.cjs +0 -478
- package/dist/chunk-Q2BWXT55.cjs +0 -1011
- package/dist/chunk-UFKSUELU.cjs +0 -453
- package/dist/chunk-W4IPOWLY.cjs +0 -198
- package/dist/chunk-YSTLHVQV.cjs +0 -73
- package/dist/components/time-field/index.cjs +0 -27
- package/dist/components/time-field/index.d.cts +0 -52
- package/dist/components/time-field/index.d.ts +0 -52
- package/dist/components/time-field/index.js +0 -27
- package/dist/components/time-field/time-field-field.d.cts +0 -11
- package/dist/components/time-field/time-field-field.d.ts +0 -11
- package/dist/components/time-field/time-field-period.d.cts +0 -34
- package/dist/components/time-field/time-field-period.d.ts +0 -34
- package/dist/components/time-field/time-field.context.d.cts +0 -9
- package/dist/components/time-field/time-field.context.d.ts +0 -9
- package/dist/components/time-field/time-field.d.cts +0 -56
- package/dist/components/time-field/time-field.d.ts +0 -56
- package/dist/components/time-field/time-field.type.d.cts +0 -72
- package/dist/components/time-field/time-field.type.d.ts +0 -72
- package/dist/utils/time-mask.d.cts +0 -68
- package/dist/utils/time-mask.d.ts +0 -68
package/dist/chunk-P2V6PIM7.cjs
DELETED
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkEKS3W46Mcjs = require('./chunk-EKS3W46M.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _chunkOW4N2C3Mcjs = require('./chunk-OW4N2C3M.cjs');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _chunkGSZDN6EZcjs = require('./chunk-GSZDN6EZ.cjs');
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _chunkSL3V7R2Ycjs = require('./chunk-SL3V7R2Y.cjs');
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var _chunkCDRGTUYFcjs = require('./chunk-CDRGTUYF.cjs');
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var _chunkIIAQISBGcjs = require('./chunk-IIAQISBG.cjs');
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
|
|
33
|
-
|
|
34
|
-
// src/components/accordion/accordion-content.tsx
|
|
35
|
-
var _react = require('react');
|
|
36
|
-
var _reactnativereanimated = require('react-native-reanimated'); var _reactnativereanimated2 = _interopRequireDefault(_reactnativereanimated);
|
|
37
|
-
|
|
38
|
-
// src/components/accordion/accordion.animation.ts
|
|
39
|
-
|
|
40
|
-
var LAYOUT = _reactnativereanimated.LinearTransition.springify().damping(140).stiffness(1600).mass(4);
|
|
41
|
-
var CONTENT_MS = 200;
|
|
42
|
-
var contentEntering = _reactnativereanimated.FadeIn.duration(CONTENT_MS).easing(
|
|
43
|
-
_reactnativereanimated.Easing.out(_reactnativereanimated.Easing.ease)
|
|
44
|
-
);
|
|
45
|
-
var contentExiting = _reactnativereanimated.FadeOut.duration(CONTENT_MS).easing(
|
|
46
|
-
_reactnativereanimated.Easing.in(_reactnativereanimated.Easing.ease)
|
|
47
|
-
);
|
|
48
|
-
|
|
49
|
-
// src/components/accordion/accordion.context.ts
|
|
50
|
-
var [AccordionProvider, useAccordion] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Accordion");
|
|
51
|
-
var [AccordionItemProvider, useAccordionItem] = _chunkCDRGTUYFcjs.createSlotContext.call(void 0, "Accordion.Item");
|
|
52
|
-
|
|
53
|
-
// src/components/accordion/accordion-content.tsx
|
|
54
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
55
|
-
var AccordionContent = _react.forwardRef.call(void 0,
|
|
56
|
-
function AccordionContent2({ children, style, ...props }, ref) {
|
|
57
|
-
const { contentStyle } = useAccordion();
|
|
58
|
-
const { isExpanded } = useAccordionItem();
|
|
59
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
60
|
-
if (!isExpanded) return null;
|
|
61
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
62
|
-
_reactnativereanimated2.default.View,
|
|
63
|
-
{
|
|
64
|
-
ref,
|
|
65
|
-
entering: contentEntering,
|
|
66
|
-
exiting: contentExiting,
|
|
67
|
-
...rest,
|
|
68
|
-
style: [contentStyle, styleProps, style],
|
|
69
|
-
children
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
AccordionContent.displayName = "XAUI.Accordion.Content";
|
|
75
|
-
|
|
76
|
-
// src/components/accordion/accordion-indicator.tsx
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
function AccordionIndicator({
|
|
86
|
-
as = _chunkGSZDN6EZcjs.ChevronDownIcon,
|
|
87
|
-
...props
|
|
88
|
-
}) {
|
|
89
|
-
const { indicatorStyle } = useAccordion();
|
|
90
|
-
const { isExpanded } = useAccordionItem();
|
|
91
|
-
const progress = _reactnativereanimated.useSharedValue.call(void 0, isExpanded ? 1 : 0);
|
|
92
|
-
_react.useEffect.call(void 0, () => {
|
|
93
|
-
progress.set(_reactnativereanimated.withSpring.call(void 0, isExpanded ? 1 : 0, _chunkEKS3W46Mcjs.INDICATOR_SPRING));
|
|
94
|
-
}, [isExpanded, progress]);
|
|
95
|
-
const rotation = _reactnativereanimated.useAnimatedStyle.call(void 0, () => ({
|
|
96
|
-
transform: [
|
|
97
|
-
{
|
|
98
|
-
rotate: `${_reactnativereanimated.interpolate.call(void 0, progress.get(), [0, 1], [_chunkEKS3W46Mcjs.INDICATOR_ROTATION[0], _chunkEKS3W46Mcjs.INDICATOR_ROTATION[1]])}deg`
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}));
|
|
102
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { style: [indicatorStyle, rotation], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.Icon, { as, ...props }) });
|
|
103
|
-
}
|
|
104
|
-
AccordionIndicator.displayName = "XAUI.Accordion.Indicator";
|
|
105
|
-
|
|
106
|
-
// src/components/accordion/accordion-item.tsx
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var AccordionItem = _react.forwardRef.call(void 0,
|
|
111
|
-
function AccordionItem2({ value, children, isDisabled = false, style, ...props }, ref) {
|
|
112
|
-
const { itemStyle, isDisabled: isRootDisabled, isExpanded } = useAccordion();
|
|
113
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
114
|
-
const expanded = isExpanded(value);
|
|
115
|
-
const disabled = isRootDisabled || isDisabled;
|
|
116
|
-
const context = _react.useMemo.call(void 0,
|
|
117
|
-
() => ({ value, isExpanded: expanded, isDisabled: disabled }),
|
|
118
|
-
[value, expanded, disabled]
|
|
119
|
-
);
|
|
120
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionItemProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
121
|
-
_reactnativereanimated2.default.View,
|
|
122
|
-
{
|
|
123
|
-
ref,
|
|
124
|
-
layout: LAYOUT,
|
|
125
|
-
...rest,
|
|
126
|
-
style: [itemStyle, styleProps, style],
|
|
127
|
-
children: typeof children === "function" ? children(context) : children
|
|
128
|
-
}
|
|
129
|
-
) });
|
|
130
|
-
}
|
|
131
|
-
);
|
|
132
|
-
AccordionItem.displayName = "XAUI.Accordion.Item";
|
|
133
|
-
|
|
134
|
-
// src/components/accordion/accordion-trigger.tsx
|
|
135
|
-
|
|
136
|
-
var _reactnative = require('react-native');
|
|
137
|
-
|
|
138
|
-
var AccordionTrigger = _react.forwardRef.call(void 0,
|
|
139
|
-
function AccordionTrigger2({
|
|
140
|
-
children,
|
|
141
|
-
asChild = false,
|
|
142
|
-
accessibilityRole = "button",
|
|
143
|
-
accessibilityState,
|
|
144
|
-
style,
|
|
145
|
-
onPress,
|
|
146
|
-
onPressIn,
|
|
147
|
-
onPressOut,
|
|
148
|
-
...props
|
|
149
|
-
}, ref) {
|
|
150
|
-
const { triggerStyle, triggerPressedStyle, labelStyle, glyph, toggle } = useAccordion();
|
|
151
|
-
const { value, isExpanded, isDisabled } = useAccordionItem();
|
|
152
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
153
|
-
const [isPressed, press] = _chunk7DPL3ZDScjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
154
|
-
const handlePress = _react.useCallback.call(void 0,
|
|
155
|
-
(event) => {
|
|
156
|
-
_optionalChain([onPress, 'optionalCall', _ => _(event)]);
|
|
157
|
-
toggle(value);
|
|
158
|
-
},
|
|
159
|
-
[onPress, toggle, value]
|
|
160
|
-
);
|
|
161
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGSZDN6EZcjs.IconContext.Provider, { value: glyph, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
-
_chunkOW4N2C3Mcjs.PressableFeedback,
|
|
163
|
-
{
|
|
164
|
-
ref,
|
|
165
|
-
isPressed,
|
|
166
|
-
isDisabled,
|
|
167
|
-
asChild,
|
|
168
|
-
accessibilityRole,
|
|
169
|
-
accessibilityState: {
|
|
170
|
-
disabled: isDisabled,
|
|
171
|
-
expanded: isExpanded,
|
|
172
|
-
...accessibilityState
|
|
173
|
-
},
|
|
174
|
-
...rest,
|
|
175
|
-
style: [
|
|
176
|
-
triggerStyle,
|
|
177
|
-
isPressed && triggerPressedStyle,
|
|
178
|
-
styleProps,
|
|
179
|
-
typeof style === "function" ? style({ pressed: isPressed }) : style
|
|
180
|
-
],
|
|
181
|
-
onPress: handlePress,
|
|
182
|
-
onPressIn: press.onPressIn,
|
|
183
|
-
onPressOut: press.onPressOut,
|
|
184
|
-
children: asChild ? children : wrapText(children, labelStyle)
|
|
185
|
-
}
|
|
186
|
-
) });
|
|
187
|
-
}
|
|
188
|
-
);
|
|
189
|
-
AccordionTrigger.displayName = "XAUI.Accordion.Trigger";
|
|
190
|
-
function wrapText(children, style) {
|
|
191
|
-
return _react.Children.map(
|
|
192
|
-
children,
|
|
193
|
-
(child) => typeof child === "string" || typeof child === "number" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style, children: child }) : child
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// src/components/accordion/accordion.tsx
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
// src/components/accordion/accordion.hook.ts
|
|
203
|
-
|
|
204
|
-
function useExpansion({
|
|
205
|
-
value,
|
|
206
|
-
defaultValue,
|
|
207
|
-
onValueChange,
|
|
208
|
-
selectionMode,
|
|
209
|
-
isCollapsible
|
|
210
|
-
}) {
|
|
211
|
-
const [current, setCurrent] = _chunk7EIHHOHPcjs.useControllableState.call(void 0, {
|
|
212
|
-
value,
|
|
213
|
-
defaultValue: _nullishCoalesce(defaultValue, () => ( (selectionMode === "multiple" ? [] : ""))),
|
|
214
|
-
onChange: onValueChange
|
|
215
|
-
});
|
|
216
|
-
const isExpanded = _react.useCallback.call(void 0,
|
|
217
|
-
(item) => Array.isArray(current) ? current.includes(item) : current === item,
|
|
218
|
-
[current]
|
|
219
|
-
);
|
|
220
|
-
const toggle = _react.useCallback.call(void 0,
|
|
221
|
-
(item) => {
|
|
222
|
-
setCurrent((value_) => nextValue(value_, item, selectionMode, isCollapsible));
|
|
223
|
-
},
|
|
224
|
-
[isCollapsible, selectionMode, setCurrent]
|
|
225
|
-
);
|
|
226
|
-
return _react.useMemo.call(void 0, () => ({ isExpanded, toggle }), [isExpanded, toggle]);
|
|
227
|
-
}
|
|
228
|
-
function nextValue(current, item, selectionMode, isCollapsible) {
|
|
229
|
-
if (selectionMode === "multiple") {
|
|
230
|
-
const list = Array.isArray(current) ? current : current ? [current] : [];
|
|
231
|
-
if (!list.includes(item)) return [...list, item];
|
|
232
|
-
if (!isCollapsible && list.length === 1) return current;
|
|
233
|
-
return list.filter((value) => value !== item);
|
|
234
|
-
}
|
|
235
|
-
if (current !== item) return item;
|
|
236
|
-
return isCollapsible ? "" : current;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// src/components/accordion/accordion.recipe.ts
|
|
240
|
-
|
|
241
|
-
var SLOTS = [
|
|
242
|
-
"root",
|
|
243
|
-
"container",
|
|
244
|
-
"separator",
|
|
245
|
-
"item",
|
|
246
|
-
"trigger",
|
|
247
|
-
"indicator",
|
|
248
|
-
"content"
|
|
249
|
-
];
|
|
250
|
-
var VARIANT_TOKENS = {
|
|
251
|
-
primary: { bg: "surface", fg: "surfaceForeground" },
|
|
252
|
-
secondary: { bg: "surfaceSecondary", fg: "surfaceSecondaryForeground" },
|
|
253
|
-
tertiary: { border: "border", fg: "foreground" },
|
|
254
|
-
ghost: { fg: "foreground" }
|
|
255
|
-
};
|
|
256
|
-
var HAIRLINE = _reactnative.StyleSheet.hairlineWidth;
|
|
257
|
-
var SIZES = {
|
|
258
|
-
xs: { padding: 2.5, gap: 2.5, label: "sm", glyph: "md", radius: "md" },
|
|
259
|
-
sm: { padding: 3, gap: 3, label: "md", glyph: "lg", radius: "lg" },
|
|
260
|
-
md: { padding: 3, gap: 4, label: "md", glyph: "lg", radius: "xl" },
|
|
261
|
-
lg: { padding: 4, gap: 4, label: "lg", glyph: "xl", radius: "2xl" }
|
|
262
|
-
};
|
|
263
|
-
var TRIGGER_PADDING_VERTICAL = 4;
|
|
264
|
-
function sizeAxis(step) {
|
|
265
|
-
const { padding, gap, label, glyph, radius } = step;
|
|
266
|
-
return (theme) => ({
|
|
267
|
-
// Both layers, at the same value: the outer one draws the corner, the inner one is
|
|
268
|
-
// what a pressed row is cut against.
|
|
269
|
-
root: { borderRadius: theme.radius[radius] },
|
|
270
|
-
container: { borderRadius: theme.radius[radius] },
|
|
271
|
-
trigger: {
|
|
272
|
-
paddingVertical: theme.spacing(TRIGGER_PADDING_VERTICAL),
|
|
273
|
-
paddingHorizontal: theme.spacing(padding),
|
|
274
|
-
gap: theme.spacing(gap),
|
|
275
|
-
fontSize: theme.fontSizes[label],
|
|
276
|
-
lineHeight: theme.lineHeights[label]
|
|
277
|
-
},
|
|
278
|
-
indicator: { fontSize: theme.fontSizes[glyph] },
|
|
279
|
-
content: {
|
|
280
|
-
paddingHorizontal: theme.spacing(padding),
|
|
281
|
-
paddingBottom: theme.spacing(TRIGGER_PADDING_VERTICAL)
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
var accordionRecipe = _chunkSL3V7R2Ycjs.createRecipe.call(void 0, {
|
|
286
|
-
slots: SLOTS,
|
|
287
|
-
base: (theme) => ({
|
|
288
|
-
// The root carries the shadow and the border; it must **not** clip. On iOS
|
|
289
|
-
// `overflow: 'hidden'` sets `masksToBounds`, which clips the layer's own shadow along
|
|
290
|
-
// with everything else, and a lifted `primary` would have none at all.
|
|
291
|
-
root: { flexDirection: "column", borderCurve: "continuous" },
|
|
292
|
-
// So the clipping is one layer in. This is the one extra node in the component, and
|
|
293
|
-
// it is here for a platform constraint rather than for layout: a single layer cannot
|
|
294
|
-
// both cast a shadow and clip its children on iOS. Without it a pressed row paints
|
|
295
|
-
// over the card's rounded corner, square, for as long as a finger is on it.
|
|
296
|
-
container: { flexDirection: "column", overflow: "hidden" },
|
|
297
|
-
separator: { height: HAIRLINE, backgroundColor: theme.colors.separator },
|
|
298
|
-
// This one is load-bearing: it is what makes the height animation read as a panel
|
|
299
|
-
// unrolling rather than as content sliding out from behind the row above it.
|
|
300
|
-
item: { flexDirection: "column", overflow: "hidden" },
|
|
301
|
-
trigger: {
|
|
302
|
-
flexDirection: "row",
|
|
303
|
-
alignItems: "center",
|
|
304
|
-
justifyContent: "space-between",
|
|
305
|
-
fontFamily: theme.fontFamilies.body,
|
|
306
|
-
fontWeight: theme.fontWeights.medium
|
|
307
|
-
},
|
|
308
|
-
indicator: { alignItems: "center", justifyContent: "center" }
|
|
309
|
-
}),
|
|
310
|
-
variantTokens: VARIANT_TOKENS,
|
|
311
|
-
/**
|
|
312
|
-
* The fill is the **root's**, never the row's. A row that painted its own would stack
|
|
313
|
-
* two fills where the separator sits, and the hairline would disappear into the seam.
|
|
314
|
-
*/
|
|
315
|
-
paint: (theme, colors) => ({
|
|
316
|
-
root: {
|
|
317
|
-
backgroundColor: colors.bg,
|
|
318
|
-
borderColor: colors.border,
|
|
319
|
-
borderWidth: colors.border ? theme.borderWidth.default : 0
|
|
320
|
-
},
|
|
321
|
-
trigger: { color: colors.fg },
|
|
322
|
-
indicator: { color: theme.colors.muted }
|
|
323
|
-
}),
|
|
324
|
-
variants: {
|
|
325
|
-
size: {
|
|
326
|
-
xs: sizeAxis(SIZES.xs),
|
|
327
|
-
sm: sizeAxis(SIZES.sm),
|
|
328
|
-
md: sizeAxis(SIZES.md),
|
|
329
|
-
lg: sizeAxis(SIZES.lg)
|
|
330
|
-
},
|
|
331
|
-
radius: _chunkSL3V7R2Ycjs.radiusAxis.call(void 0, "root", "container")
|
|
332
|
-
},
|
|
333
|
-
/**
|
|
334
|
-
* A container inset from its own edge, and its separators inset with it. `ghost` has no
|
|
335
|
-
* edge to be inset from, so its rows run the full width and the hairline runs with them
|
|
336
|
-
* — which is the difference between a list on a page and a list in a box.
|
|
337
|
-
*
|
|
338
|
-
* `primary` is the only one lifted. It is the one that reads as a card, and HeroUI puts
|
|
339
|
-
* their `--shadow-surface` on exactly that variant. `secondary` and `tertiary` have too
|
|
340
|
-
* little fill to lift — a shadow under either would read as dirt rather than as height
|
|
341
|
-
* — and in dark mode the theme's surface shadow is already nothing (§4), which is why
|
|
342
|
-
* this names the role rather than a set of numbers.
|
|
343
|
-
*/
|
|
344
|
-
compoundVariants: [
|
|
345
|
-
...["primary", "secondary", "tertiary"].map((variant) => ({
|
|
346
|
-
when: { variant },
|
|
347
|
-
style: (theme) => ({
|
|
348
|
-
separator: { marginHorizontal: theme.spacing(3) }
|
|
349
|
-
})
|
|
350
|
-
})),
|
|
351
|
-
{
|
|
352
|
-
when: { variant: "primary" },
|
|
353
|
-
style: (theme) => ({
|
|
354
|
-
root: theme.shadows.surface
|
|
355
|
-
})
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
states: {
|
|
359
|
-
// On the row, not on the root: pressing one row must not tint the whole container.
|
|
360
|
-
pressed: (theme) => ({
|
|
361
|
-
trigger: { backgroundColor: theme.colors.defaultSoftPressed }
|
|
362
|
-
}),
|
|
363
|
-
disabled: (theme) => ({ root: { opacity: theme.opacity.disabled } })
|
|
364
|
-
},
|
|
365
|
-
defaultVariants: { variant: "ghost", size: "md" }
|
|
366
|
-
});
|
|
367
|
-
|
|
368
|
-
// src/components/accordion/accordion.tsx
|
|
369
|
-
|
|
370
|
-
var AccordionRoot = _react.forwardRef.call(void 0, function Accordion({
|
|
371
|
-
children,
|
|
372
|
-
variant,
|
|
373
|
-
size,
|
|
374
|
-
radius,
|
|
375
|
-
color,
|
|
376
|
-
selectionMode = "single",
|
|
377
|
-
value,
|
|
378
|
-
defaultValue,
|
|
379
|
-
onValueChange,
|
|
380
|
-
isDisabled = false,
|
|
381
|
-
isCollapsible = true,
|
|
382
|
-
hasSeparator = true,
|
|
383
|
-
asChild = false,
|
|
384
|
-
style,
|
|
385
|
-
...props
|
|
386
|
-
}, ref) {
|
|
387
|
-
const theme = _chunkIIAQISBGcjs.useXAUITheme.call(void 0, );
|
|
388
|
-
const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
|
|
389
|
-
const { isExpanded, toggle } = useExpansion({
|
|
390
|
-
value,
|
|
391
|
-
defaultValue,
|
|
392
|
-
onValueChange,
|
|
393
|
-
selectionMode,
|
|
394
|
-
isCollapsible
|
|
395
|
-
});
|
|
396
|
-
const selection = { variant, size, radius };
|
|
397
|
-
const styles = accordionRecipe.resolve({
|
|
398
|
-
theme,
|
|
399
|
-
selection,
|
|
400
|
-
states: { disabled: isDisabled }
|
|
401
|
-
});
|
|
402
|
-
const pressed = accordionRecipe.resolve({
|
|
403
|
-
theme,
|
|
404
|
-
selection,
|
|
405
|
-
states: { pressed: true }
|
|
406
|
-
});
|
|
407
|
-
const tint = color ? accordionRecipe.tint({ theme, color, selection }) : void 0;
|
|
408
|
-
const context = _react.useMemo.call(void 0, () => {
|
|
409
|
-
const trigger = _reactnative.StyleSheet.flatten([styles.trigger, _optionalChain([tint, 'optionalAccess', _2 => _2.trigger])]);
|
|
410
|
-
const indicator = _reactnative.StyleSheet.flatten([
|
|
411
|
-
styles.indicator,
|
|
412
|
-
_optionalChain([tint, 'optionalAccess', _3 => _3.indicator])
|
|
413
|
-
]);
|
|
414
|
-
return {
|
|
415
|
-
separatorStyle: styles.separator,
|
|
416
|
-
itemStyle: styles.item,
|
|
417
|
-
triggerStyle: tint ? [styles.trigger, tint.trigger] : styles.trigger,
|
|
418
|
-
triggerPressedStyle: pressed.trigger,
|
|
419
|
-
indicatorStyle: styles.indicator,
|
|
420
|
-
contentStyle: styles.content,
|
|
421
|
-
// The trigger is a row of views, so a stringifiable child is wrapped in a `Text` of
|
|
422
|
-
// its own — and that text takes the type the recipe put on the row.
|
|
423
|
-
labelStyle: {
|
|
424
|
-
color: trigger.color,
|
|
425
|
-
fontFamily: trigger.fontFamily,
|
|
426
|
-
fontWeight: trigger.fontWeight,
|
|
427
|
-
fontSize: trigger.fontSize,
|
|
428
|
-
lineHeight: trigger.lineHeight
|
|
429
|
-
},
|
|
430
|
-
glyph: {
|
|
431
|
-
size: indicator.fontSize,
|
|
432
|
-
color: typeof indicator.color === "string" ? indicator.color : void 0
|
|
433
|
-
},
|
|
434
|
-
isDisabled,
|
|
435
|
-
isExpanded,
|
|
436
|
-
toggle
|
|
437
|
-
};
|
|
438
|
-
}, [styles, pressed, tint, isDisabled, isExpanded, toggle]);
|
|
439
|
-
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _4 => _4.root]), styleProps, style];
|
|
440
|
-
const items = _react.Children.toArray(children);
|
|
441
|
-
const rows = items.map((child, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
|
|
442
|
-
child,
|
|
443
|
-
hasSeparator && index < items.length - 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { layout: LAYOUT, style: styles.separator }) : null
|
|
444
|
-
] }, index));
|
|
445
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AccordionProvider, { value: context, children: asChild ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCDRGTUYFcjs.Slot, { ref, ...rest, style: rootStyle, children }) : (
|
|
446
|
-
// Two layers, and the only place in the library where a root has one inside it.
|
|
447
|
-
// A single layer cannot both cast a shadow and clip its children on iOS, and this
|
|
448
|
-
// component needs both: `primary` is lifted, and a pressed row has to be cut
|
|
449
|
-
// against the card's rounded corner rather than painting over it.
|
|
450
|
-
//
|
|
451
|
-
// The layout transition is on each of them as well as on every row. Without it on
|
|
452
|
-
// the outer one the accordion's own height jumps to its new total in one frame
|
|
453
|
-
// while the rows inside it are still animating.
|
|
454
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { ref, layout: LAYOUT, ...rest, style: rootStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, { layout: LAYOUT, style: styles.container, children: rows }) })
|
|
455
|
-
) });
|
|
456
|
-
});
|
|
457
|
-
AccordionRoot.displayName = "XAUI.Accordion.Root";
|
|
458
|
-
|
|
459
|
-
// src/components/accordion/index.ts
|
|
460
|
-
var Accordion2 = Object.assign(AccordionRoot, {
|
|
461
|
-
Item: AccordionItem,
|
|
462
|
-
Trigger: AccordionTrigger,
|
|
463
|
-
Indicator: AccordionIndicator,
|
|
464
|
-
Content: AccordionContent
|
|
465
|
-
});
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
exports.LAYOUT = LAYOUT; exports.useAccordion = useAccordion; exports.useAccordionItem = useAccordionItem; exports.AccordionContent = AccordionContent; exports.AccordionIndicator = AccordionIndicator; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.accordionRecipe = accordionRecipe; exports.AccordionRoot = AccordionRoot; exports.Accordion = Accordion2;
|